moment.min.js 66 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796
  1. ! function(e, t) {
  2. "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define &&
  3. define.amd ? define(t) : e.moment = t()
  4. }(this, function() {
  5. "use strict";
  6. var e, i;
  7. function c() {
  8. return e.apply(null, arguments)
  9. }
  10. function o(e) {
  11. return e instanceof Array || "[object Array]" === Object.prototype.toString.call(e)
  12. }
  13. function u(e) {
  14. return null != e && "[object Object]" === Object.prototype.toString.call(e)
  15. }
  16. function l(e) {
  17. return void 0 === e
  18. }
  19. function h(e) {
  20. return "number" == typeof e || "[object Number]" === Object.prototype.toString.call(e)
  21. }
  22. function d(e) {
  23. return e instanceof Date || "[object Date]" === Object.prototype.toString.call(e)
  24. }
  25. function f(e, t) {
  26. var n, s = [];
  27. for (n = 0; n < e.length; ++n) s.push(t(e[n], n));
  28. return s
  29. }
  30. function m(e, t) {
  31. return Object.prototype.hasOwnProperty.call(e, t)
  32. }
  33. function _(e, t) {
  34. for (var n in t) m(t, n) && (e[n] = t[n]);
  35. return m(t, "toString") && (e.toString = t.toString), m(t, "valueOf") && (e.valueOf = t.valueOf), e
  36. }
  37. function y(e, t, n, s) {
  38. return Tt(e, t, n, s, !0).utc()
  39. }
  40. function g(e) {
  41. return null == e._pf && (e._pf = {
  42. empty: !1,
  43. unusedTokens: [],
  44. unusedInput: [],
  45. overflow: -2,
  46. charsLeftOver: 0,
  47. nullInput: !1,
  48. invalidMonth: null,
  49. invalidFormat: !1,
  50. userInvalidated: !1,
  51. iso: !1,
  52. parsedDateParts: [],
  53. meridiem: null,
  54. rfc2822: !1,
  55. weekdayMismatch: !1
  56. }), e._pf
  57. }
  58. function v(e) {
  59. if (null == e._isValid) {
  60. var t = g(e),
  61. n = i.call(t.parsedDateParts, function(e) {
  62. return null != e
  63. }),
  64. s = !isNaN(e._d.getTime()) && t.overflow < 0 && !t.empty && !t.invalidMonth && !t.invalidWeekday && !t.weekdayMismatch &&
  65. !t.nullInput && !t.invalidFormat && !t.userInvalidated && (!t.meridiem || t.meridiem && n);
  66. if (e._strict && (s = s && 0 === t.charsLeftOver && 0 === t.unusedTokens.length && void 0 === t.bigHour), null !=
  67. Object.isFrozen && Object.isFrozen(e)) return s;
  68. e._isValid = s
  69. }
  70. return e._isValid
  71. }
  72. function p(e) {
  73. var t = y(NaN);
  74. return null != e ? _(g(t), e) : g(t).userInvalidated = !0, t
  75. }
  76. i = Array.prototype.some ? Array.prototype.some : function(e) {
  77. for (var t = Object(this), n = t.length >>> 0, s = 0; s < n; s++)
  78. if (s in t && e.call(this, t[s], s, t)) return !0;
  79. return !1
  80. };
  81. var r = c.momentProperties = [];
  82. function w(e, t) {
  83. var n, s, i;
  84. if (l(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), l(t._i) || (e._i = t._i), l(t._f) || (e._f =
  85. t._f), l(t._l) || (e._l = t._l), l(t._strict) || (e._strict = t._strict), l(t._tzm) || (e._tzm = t._tzm), l(t._isUTC) ||
  86. (e._isUTC = t._isUTC), l(t._offset) || (e._offset = t._offset), l(t._pf) || (e._pf = g(t)), l(t._locale) || (e._locale =
  87. t._locale), 0 < r.length)
  88. for (n = 0; n < r.length; n++) l(i = t[s = r[n]]) || (e[s] = i);
  89. return e
  90. }
  91. var t = !1;
  92. function M(e) {
  93. w(this, e), this._d = new Date(null != e._d ? e._d.getTime() : NaN), this.isValid() || (this._d = new Date(NaN)), !1 ===
  94. t && (t = !0, c.updateOffset(this), t = !1)
  95. }
  96. function k(e) {
  97. return e instanceof M || null != e && null != e._isAMomentObject
  98. }
  99. function S(e) {
  100. return e < 0 ? Math.ceil(e) || 0 : Math.floor(e)
  101. }
  102. function D(e) {
  103. var t = +e,
  104. n = 0;
  105. return 0 !== t && isFinite(t) && (n = S(t)), n
  106. }
  107. function a(e, t, n) {
  108. var s, i = Math.min(e.length, t.length),
  109. r = Math.abs(e.length - t.length),
  110. a = 0;
  111. for (s = 0; s < i; s++)(n && e[s] !== t[s] || !n && D(e[s]) !== D(t[s])) && a++;
  112. return a + r
  113. }
  114. function Y(e) {
  115. !1 === c.suppressDeprecationWarnings && "undefined" != typeof console && console.warn && console.warn(
  116. "Deprecation warning: " + e)
  117. }
  118. function n(i, r) {
  119. var a = !0;
  120. return _(function() {
  121. if (null != c.deprecationHandler && c.deprecationHandler(null, i), a) {
  122. for (var e, t = [], n = 0; n < arguments.length; n++) {
  123. if (e = "", "object" == typeof arguments[n]) {
  124. for (var s in e += "\n[" + n + "] ", arguments[0]) e += s + ": " + arguments[0][s] + ", ";
  125. e = e.slice(0, -2)
  126. } else e = arguments[n];
  127. t.push(e)
  128. }
  129. Y(i + "\nArguments: " + Array.prototype.slice.call(t).join("") + "\n" + (new Error).stack), a = !1
  130. }
  131. return r.apply(this, arguments)
  132. }, r)
  133. }
  134. var s, O = {};
  135. function T(e, t) {
  136. null != c.deprecationHandler && c.deprecationHandler(e, t), O[e] || (Y(t), O[e] = !0)
  137. }
  138. function b(e) {
  139. return e instanceof Function || "[object Function]" === Object.prototype.toString.call(e)
  140. }
  141. function x(e, t) {
  142. var n, s = _({}, e);
  143. for (n in t) m(t, n) && (u(e[n]) && u(t[n]) ? (s[n] = {}, _(s[n], e[n]), _(s[n], t[n])) : null != t[n] ? s[n] = t[n] :
  144. delete s[n]);
  145. for (n in e) m(e, n) && !m(t, n) && u(e[n]) && (s[n] = _({}, s[n]));
  146. return s
  147. }
  148. function P(e) {
  149. null != e && this.set(e)
  150. }
  151. c.suppressDeprecationWarnings = !1, c.deprecationHandler = null, s = Object.keys ? Object.keys : function(e) {
  152. var t, n = [];
  153. for (t in e) m(e, t) && n.push(t);
  154. return n
  155. };
  156. var W = {};
  157. function C(e, t) {
  158. var n = e.toLowerCase();
  159. W[n] = W[n + "s"] = W[t] = e
  160. }
  161. function H(e) {
  162. return "string" == typeof e ? W[e] || W[e.toLowerCase()] : void 0
  163. }
  164. function R(e) {
  165. var t, n, s = {};
  166. for (n in e) m(e, n) && (t = H(n)) && (s[t] = e[n]);
  167. return s
  168. }
  169. var U = {};
  170. function F(e, t) {
  171. U[e] = t
  172. }
  173. function L(e, t, n) {
  174. var s = "" + Math.abs(e),
  175. i = t - s.length;
  176. return (0 <= e ? n ? "+" : "" : "-") + Math.pow(10, Math.max(0, i)).toString().substr(1) + s
  177. }
  178. var N =
  179. /(\[[^\[]*\])|(\\)?([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,
  180. G = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
  181. V = {},
  182. E = {};
  183. function I(e, t, n, s) {
  184. var i = s;
  185. "string" == typeof s && (i = function() {
  186. return this[s]()
  187. }), e && (E[e] = i), t && (E[t[0]] = function() {
  188. return L(i.apply(this, arguments), t[1], t[2])
  189. }), n && (E[n] = function() {
  190. return this.localeData().ordinal(i.apply(this, arguments), e)
  191. })
  192. }
  193. function A(e, t) {
  194. return e.isValid() ? (t = j(t, e.localeData()), V[t] = V[t] || function(s) {
  195. var e, i, t, r = s.match(N);
  196. for (e = 0, i = r.length; e < i; e++) E[r[e]] ? r[e] = E[r[e]] : r[e] = (t = r[e]).match(/\[[\s\S]/) ? t.replace(
  197. /^\[|\]$/g, "") : t.replace(/\\/g, "");
  198. return function(e) {
  199. var t, n = "";
  200. for (t = 0; t < i; t++) n += b(r[t]) ? r[t].call(e, s) : r[t];
  201. return n
  202. }
  203. }(t), V[t](e)) : e.localeData().invalidDate()
  204. }
  205. function j(e, t) {
  206. var n = 5;
  207. function s(e) {
  208. return t.longDateFormat(e) || e
  209. }
  210. for (G.lastIndex = 0; 0 <= n && G.test(e);) e = e.replace(G, s), G.lastIndex = 0, n -= 1;
  211. return e
  212. }
  213. var Z = /\d/,
  214. z = /\d\d/,
  215. $ = /\d{3}/,
  216. q = /\d{4}/,
  217. J = /[+-]?\d{6}/,
  218. B = /\d\d?/,
  219. Q = /\d\d\d\d?/,
  220. X = /\d\d\d\d\d\d?/,
  221. K = /\d{1,3}/,
  222. ee = /\d{1,4}/,
  223. te = /[+-]?\d{1,6}/,
  224. ne = /\d+/,
  225. se = /[+-]?\d+/,
  226. ie = /Z|[+-]\d\d:?\d\d/gi,
  227. re = /Z|[+-]\d\d(?::?\d\d)?/gi,
  228. ae =
  229. /[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,
  230. oe = {};
  231. function ue(e, n, s) {
  232. oe[e] = b(n) ? n : function(e, t) {
  233. return e && s ? s : n
  234. }
  235. }
  236. function le(e, t) {
  237. return m(oe, e) ? oe[e](t._strict, t._locale) : new RegExp(he(e.replace("\\", "").replace(
  238. /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
  239. function(e, t, n, s, i) {
  240. return t || n || s || i
  241. })))
  242. }
  243. function he(e) {
  244. return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&")
  245. }
  246. var de = {};
  247. function ce(e, n) {
  248. var t, s = n;
  249. for ("string" == typeof e && (e = [e]), h(n) && (s = function(e, t) {
  250. t[n] = D(e)
  251. }), t = 0; t < e.length; t++) de[e[t]] = s
  252. }
  253. function fe(e, i) {
  254. ce(e, function(e, t, n, s) {
  255. n._w = n._w || {}, i(e, n._w, n, s)
  256. })
  257. }
  258. var me = 0,
  259. _e = 1,
  260. ye = 2,
  261. ge = 3,
  262. ve = 4,
  263. pe = 5,
  264. we = 6,
  265. Me = 7,
  266. ke = 8;
  267. function Se(e) {
  268. return De(e) ? 366 : 365
  269. }
  270. function De(e) {
  271. return e % 4 == 0 && e % 100 != 0 || e % 400 == 0
  272. }
  273. I("Y", 0, 0, function() {
  274. var e = this.year();
  275. return e <= 9999 ? "" + e : "+" + e
  276. }), I(0, ["YY", 2], 0, function() {
  277. return this.year() % 100
  278. }), I(0, ["YYYY", 4], 0, "year"), I(0, ["YYYYY", 5], 0, "year"), I(0, ["YYYYYY", 6, !0], 0, "year"), C("year", "y"),
  279. F("year", 1), ue("Y", se), ue("YY", B, z), ue("YYYY", ee, q), ue("YYYYY", te, J), ue("YYYYYY", te, J), ce(["YYYYY",
  280. "YYYYYY"
  281. ], me), ce("YYYY", function(e, t) {
  282. t[me] = 2 === e.length ? c.parseTwoDigitYear(e) : D(e)
  283. }), ce("YY", function(e, t) {
  284. t[me] = c.parseTwoDigitYear(e)
  285. }), ce("Y", function(e, t) {
  286. t[me] = parseInt(e, 10)
  287. }), c.parseTwoDigitYear = function(e) {
  288. return D(e) + (68 < D(e) ? 1900 : 2e3)
  289. };
  290. var Ye, Oe = Te("FullYear", !0);
  291. function Te(t, n) {
  292. return function(e) {
  293. return null != e ? (xe(this, t, e), c.updateOffset(this, n), this) : be(this, t)
  294. }
  295. }
  296. function be(e, t) {
  297. return e.isValid() ? e._d["get" + (e._isUTC ? "UTC" : "") + t]() : NaN
  298. }
  299. function xe(e, t, n) {
  300. e.isValid() && !isNaN(n) && ("FullYear" === t && De(e.year()) && 1 === e.month() && 29 === e.date() ? e._d["set" + (
  301. e._isUTC ? "UTC" : "") + t](n, e.month(), Pe(n, e.month())) : e._d["set" + (e._isUTC ? "UTC" : "") + t](n))
  302. }
  303. function Pe(e, t) {
  304. if (isNaN(e) || isNaN(t)) return NaN;
  305. var n, s = (t % (n = 12) + n) % n;
  306. return e += (t - s) / 12, 1 === s ? De(e) ? 29 : 28 : 31 - s % 7 % 2
  307. }
  308. Ye = Array.prototype.indexOf ? Array.prototype.indexOf : function(e) {
  309. var t;
  310. for (t = 0; t < this.length; ++t)
  311. if (this[t] === e) return t;
  312. return -1
  313. }, I("M", ["MM", 2], "Mo", function() {
  314. return this.month() + 1
  315. }), I("MMM", 0, 0, function(e) {
  316. return this.localeData().monthsShort(this, e)
  317. }), I("MMMM", 0, 0, function(e) {
  318. return this.localeData().months(this, e)
  319. }), C("month", "M"), F("month", 8), ue("M", B), ue("MM", B, z), ue("MMM", function(e, t) {
  320. return t.monthsShortRegex(e)
  321. }), ue("MMMM", function(e, t) {
  322. return t.monthsRegex(e)
  323. }), ce(["M", "MM"], function(e, t) {
  324. t[_e] = D(e) - 1
  325. }), ce(["MMM", "MMMM"], function(e, t, n, s) {
  326. var i = n._locale.monthsParse(e, s, n._strict);
  327. null != i ? t[_e] = i : g(n).invalidMonth = e
  328. });
  329. var We = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
  330. Ce = "January_February_March_April_May_June_July_August_September_October_November_December".split("_");
  331. var He = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");
  332. function Re(e, t) {
  333. var n;
  334. if (!e.isValid()) return e;
  335. if ("string" == typeof t)
  336. if (/^\d+$/.test(t)) t = D(t);
  337. else if (!h(t = e.localeData().monthsParse(t))) return e;
  338. return n = Math.min(e.date(), Pe(e.year(), t)), e._d["set" + (e._isUTC ? "UTC" : "") + "Month"](t, n), e
  339. }
  340. function Ue(e) {
  341. return null != e ? (Re(this, e), c.updateOffset(this, !0), this) : be(this, "Month")
  342. }
  343. var Fe = ae;
  344. var Le = ae;
  345. function Ne() {
  346. function e(e, t) {
  347. return t.length - e.length
  348. }
  349. var t, n, s = [],
  350. i = [],
  351. r = [];
  352. for (t = 0; t < 12; t++) n = y([2e3, t]), s.push(this.monthsShort(n, "")), i.push(this.months(n, "")), r.push(this.months(
  353. n, "")), r.push(this.monthsShort(n, ""));
  354. for (s.sort(e), i.sort(e), r.sort(e), t = 0; t < 12; t++) s[t] = he(s[t]), i[t] = he(i[t]);
  355. for (t = 0; t < 24; t++) r[t] = he(r[t]);
  356. this._monthsRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex =
  357. new RegExp("^(" + i.join("|") + ")", "i"), this._monthsShortStrictRegex = new RegExp("^(" + s.join("|") + ")", "i")
  358. }
  359. function Ge(e) {
  360. var t;
  361. if (e < 100 && 0 <= e) {
  362. var n = Array.prototype.slice.call(arguments);
  363. n[0] = e + 400, t = new Date(Date.UTC.apply(null, n)), isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e)
  364. } else t = new Date(Date.UTC.apply(null, arguments));
  365. return t
  366. }
  367. function Ve(e, t, n) {
  368. var s = 7 + t - n;
  369. return -((7 + Ge(e, 0, s).getUTCDay() - t) % 7) + s - 1
  370. }
  371. function Ee(e, t, n, s, i) {
  372. var r, a, o = 1 + 7 * (t - 1) + (7 + n - s) % 7 + Ve(e, s, i);
  373. return a = o <= 0 ? Se(r = e - 1) + o : o > Se(e) ? (r = e + 1, o - Se(e)) : (r = e, o), {
  374. year: r,
  375. dayOfYear: a
  376. }
  377. }
  378. function Ie(e, t, n) {
  379. var s, i, r = Ve(e.year(), t, n),
  380. a = Math.floor((e.dayOfYear() - r - 1) / 7) + 1;
  381. return a < 1 ? s = a + Ae(i = e.year() - 1, t, n) : a > Ae(e.year(), t, n) ? (s = a - Ae(e.year(), t, n), i = e.year() +
  382. 1) : (i = e.year(), s = a), {
  383. week: s,
  384. year: i
  385. }
  386. }
  387. function Ae(e, t, n) {
  388. var s = Ve(e, t, n),
  389. i = Ve(e + 1, t, n);
  390. return (Se(e) - s + i) / 7
  391. }
  392. I("w", ["ww", 2], "wo", "week"), I("W", ["WW", 2], "Wo", "isoWeek"), C("week", "w"), C("isoWeek", "W"), F("week", 5),
  393. F("isoWeek", 5), ue("w", B), ue("ww", B, z), ue("W", B), ue("WW", B, z), fe(["w", "ww", "W", "WW"], function(e, t, n,
  394. s) {
  395. t[s.substr(0, 1)] = D(e)
  396. });
  397. function je(e, t) {
  398. return e.slice(t, 7).concat(e.slice(0, t))
  399. }
  400. I("d", 0, "do", "day"), I("dd", 0, 0, function(e) {
  401. return this.localeData().weekdaysMin(this, e)
  402. }), I("ddd", 0, 0, function(e) {
  403. return this.localeData().weekdaysShort(this, e)
  404. }), I("dddd", 0, 0, function(e) {
  405. return this.localeData().weekdays(this, e)
  406. }), I("e", 0, 0, "weekday"), I("E", 0, 0, "isoWeekday"), C("day", "d"), C("weekday", "e"), C("isoWeekday", "E"), F(
  407. "day", 11), F("weekday", 11), F("isoWeekday", 11), ue("d", B), ue("e", B), ue("E", B), ue("dd", function(e, t) {
  408. return t.weekdaysMinRegex(e)
  409. }), ue("ddd", function(e, t) {
  410. return t.weekdaysShortRegex(e)
  411. }), ue("dddd", function(e, t) {
  412. return t.weekdaysRegex(e)
  413. }), fe(["dd", "ddd", "dddd"], function(e, t, n, s) {
  414. var i = n._locale.weekdaysParse(e, s, n._strict);
  415. null != i ? t.d = i : g(n).invalidWeekday = e
  416. }), fe(["d", "e", "E"], function(e, t, n, s) {
  417. t[s] = D(e)
  418. });
  419. var Ze = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");
  420. var ze = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");
  421. var $e = "Su_Mo_Tu_We_Th_Fr_Sa".split("_");
  422. var qe = ae;
  423. var Je = ae;
  424. var Be = ae;
  425. function Qe() {
  426. function e(e, t) {
  427. return t.length - e.length
  428. }
  429. var t, n, s, i, r, a = [],
  430. o = [],
  431. u = [],
  432. l = [];
  433. for (t = 0; t < 7; t++) n = y([2e3, 1]).day(t), s = this.weekdaysMin(n, ""), i = this.weekdaysShort(n, ""), r = this
  434. .weekdays(n, ""), a.push(s), o.push(i), u.push(r), l.push(s), l.push(i), l.push(r);
  435. for (a.sort(e), o.sort(e), u.sort(e), l.sort(e), t = 0; t < 7; t++) o[t] = he(o[t]), u[t] = he(u[t]), l[t] = he(l[t]);
  436. this._weekdaysRegex = new RegExp("^(" + l.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex,
  437. this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp("^(" + u.join("|") + ")", "i"),
  438. this._weekdaysShortStrictRegex = new RegExp("^(" + o.join("|") + ")", "i"), this._weekdaysMinStrictRegex = new RegExp(
  439. "^(" + a.join("|") + ")", "i")
  440. }
  441. function Xe() {
  442. return this.hours() % 12 || 12
  443. }
  444. function Ke(e, t) {
  445. I(e, 0, 0, function() {
  446. return this.localeData().meridiem(this.hours(), this.minutes(), t)
  447. })
  448. }
  449. function et(e, t) {
  450. return t._meridiemParse
  451. }
  452. I("H", ["HH", 2], 0, "hour"), I("h", ["hh", 2], 0, Xe), I("k", ["kk", 2], 0, function() {
  453. return this.hours() || 24
  454. }), I("hmm", 0, 0, function() {
  455. return "" + Xe.apply(this) + L(this.minutes(), 2)
  456. }), I("hmmss", 0, 0, function() {
  457. return "" + Xe.apply(this) + L(this.minutes(), 2) + L(this.seconds(), 2)
  458. }), I("Hmm", 0, 0, function() {
  459. return "" + this.hours() + L(this.minutes(), 2)
  460. }), I("Hmmss", 0, 0, function() {
  461. return "" + this.hours() + L(this.minutes(), 2) + L(this.seconds(), 2)
  462. }), Ke("a", !0), Ke("A", !1), C("hour", "h"), F("hour", 13), ue("a", et), ue("A", et), ue("H", B), ue("h", B), ue(
  463. "k", B), ue("HH", B, z), ue("hh", B, z), ue("kk", B, z), ue("hmm", Q), ue("hmmss", X), ue("Hmm", Q), ue("Hmmss", X),
  464. ce(["H", "HH"], ge), ce(["k", "kk"], function(e, t, n) {
  465. var s = D(e);
  466. t[ge] = 24 === s ? 0 : s
  467. }), ce(["a", "A"], function(e, t, n) {
  468. n._isPm = n._locale.isPM(e), n._meridiem = e
  469. }), ce(["h", "hh"], function(e, t, n) {
  470. t[ge] = D(e), g(n).bigHour = !0
  471. }), ce("hmm", function(e, t, n) {
  472. var s = e.length - 2;
  473. t[ge] = D(e.substr(0, s)), t[ve] = D(e.substr(s)), g(n).bigHour = !0
  474. }), ce("hmmss", function(e, t, n) {
  475. var s = e.length - 4,
  476. i = e.length - 2;
  477. t[ge] = D(e.substr(0, s)), t[ve] = D(e.substr(s, 2)), t[pe] = D(e.substr(i)), g(n).bigHour = !0
  478. }), ce("Hmm", function(e, t, n) {
  479. var s = e.length - 2;
  480. t[ge] = D(e.substr(0, s)), t[ve] = D(e.substr(s))
  481. }), ce("Hmmss", function(e, t, n) {
  482. var s = e.length - 4,
  483. i = e.length - 2;
  484. t[ge] = D(e.substr(0, s)), t[ve] = D(e.substr(s, 2)), t[pe] = D(e.substr(i))
  485. });
  486. var tt, nt = Te("Hours", !0),
  487. st = {
  488. calendar: {
  489. sameDay: "[Today at] LT",
  490. nextDay: "[Tomorrow at] LT",
  491. nextWeek: "dddd [at] LT",
  492. lastDay: "[Yesterday at] LT",
  493. lastWeek: "[Last] dddd [at] LT",
  494. sameElse: "L"
  495. },
  496. longDateFormat: {
  497. LTS: "h:mm:ss A",
  498. LT: "h:mm A",
  499. L: "MM/DD/YYYY",
  500. LL: "MMMM D, YYYY",
  501. LLL: "MMMM D, YYYY h:mm A",
  502. LLLL: "dddd, MMMM D, YYYY h:mm A"
  503. },
  504. invalidDate: "Invalid date",
  505. ordinal: "%d",
  506. dayOfMonthOrdinalParse: /\d{1,2}/,
  507. relativeTime: {
  508. future: "in %s",
  509. past: "%s ago",
  510. s: "a few seconds",
  511. ss: "%d seconds",
  512. m: "a minute",
  513. mm: "%d minutes",
  514. h: "an hour",
  515. hh: "%d hours",
  516. d: "a day",
  517. dd: "%d days",
  518. M: "a month",
  519. MM: "%d months",
  520. y: "a year",
  521. yy: "%d years"
  522. },
  523. months: Ce,
  524. monthsShort: He,
  525. week: {
  526. dow: 0,
  527. doy: 6
  528. },
  529. weekdays: Ze,
  530. weekdaysMin: $e,
  531. weekdaysShort: ze,
  532. meridiemParse: /[ap]\.?m?\.?/i
  533. },
  534. it = {},
  535. rt = {};
  536. function at(e) {
  537. return e ? e.toLowerCase().replace("_", "-") : e
  538. }
  539. function ot(e) {
  540. var t = null;
  541. if (!it[e] && "undefined" != typeof module && module && module.exports) try {
  542. t = tt._abbr, require("./locale/" + e), ut(t)
  543. } catch (e) {}
  544. return it[e]
  545. }
  546. function ut(e, t) {
  547. var n;
  548. return e && ((n = l(t) ? ht(e) : lt(e, t)) ? tt = n : "undefined" != typeof console && console.warn && console.warn(
  549. "Locale " + e + " not found. Did you forget to load it?")), tt._abbr
  550. }
  551. function lt(e, t) {
  552. if (null === t) return delete it[e], null;
  553. var n, s = st;
  554. if (t.abbr = e, null != it[e]) T("defineLocaleOverride",
  555. "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."
  556. ), s = it[e]._config;
  557. else if (null != t.parentLocale)
  558. if (null != it[t.parentLocale]) s = it[t.parentLocale]._config;
  559. else {
  560. if (null == (n = ot(t.parentLocale))) return rt[t.parentLocale] || (rt[t.parentLocale] = []), rt[t.parentLocale].push({
  561. name: e,
  562. config: t
  563. }), null;
  564. s = n._config
  565. } return it[e] = new P(x(s, t)), rt[e] && rt[e].forEach(function(e) {
  566. lt(e.name, e.config)
  567. }), ut(e), it[e]
  568. }
  569. function ht(e) {
  570. var t;
  571. if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e) return tt;
  572. if (!o(e)) {
  573. if (t = ot(e)) return t;
  574. e = [e]
  575. }
  576. return function(e) {
  577. for (var t, n, s, i, r = 0; r < e.length;) {
  578. for (t = (i = at(e[r]).split("-")).length, n = (n = at(e[r + 1])) ? n.split("-") : null; 0 < t;) {
  579. if (s = ot(i.slice(0, t).join("-"))) return s;
  580. if (n && n.length >= t && a(i, n, !0) >= t - 1) break;
  581. t--
  582. }
  583. r++
  584. }
  585. return tt
  586. }(e)
  587. }
  588. function dt(e) {
  589. var t, n = e._a;
  590. return n && -2 === g(e).overflow && (t = n[_e] < 0 || 11 < n[_e] ? _e : n[ye] < 1 || n[ye] > Pe(n[me], n[_e]) ? ye :
  591. n[ge] < 0 || 24 < n[ge] || 24 === n[ge] && (0 !== n[ve] || 0 !== n[pe] || 0 !== n[we]) ? ge : n[ve] < 0 || 59 < n[
  592. ve] ? ve : n[pe] < 0 || 59 < n[pe] ? pe : n[we] < 0 || 999 < n[we] ? we : -1, g(e)._overflowDayOfYear && (t < me ||
  593. ye < t) && (t = ye), g(e)._overflowWeeks && -1 === t && (t = Me), g(e)._overflowWeekday && -1 === t && (t = ke),
  594. g(e).overflow = t), e
  595. }
  596. function ct(e, t, n) {
  597. return null != e ? e : null != t ? t : n
  598. }
  599. function ft(e) {
  600. var t, n, s, i, r, a = [];
  601. if (!e._d) {
  602. var o, u;
  603. for (o = e, u = new Date(c.now()), s = o._useUTC ? [u.getUTCFullYear(), u.getUTCMonth(), u.getUTCDate()] : [u.getFullYear(),
  604. u.getMonth(), u.getDate()
  605. ], e._w && null == e._a[ye] && null == e._a[_e] && function(e) {
  606. var t, n, s, i, r, a, o, u;
  607. if (null != (t = e._w).GG || null != t.W || null != t.E) r = 1, a = 4, n = ct(t.GG, e._a[me], Ie(bt(), 1, 4).year),
  608. s = ct(t.W, 1), ((i = ct(t.E, 1)) < 1 || 7 < i) && (u = !0);
  609. else {
  610. r = e._locale._week.dow, a = e._locale._week.doy;
  611. var l = Ie(bt(), r, a);
  612. n = ct(t.gg, e._a[me], l.year), s = ct(t.w, l.week), null != t.d ? ((i = t.d) < 0 || 6 < i) && (u = !0) : null !=
  613. t.e ? (i = t.e + r, (t.e < 0 || 6 < t.e) && (u = !0)) : i = r
  614. }
  615. s < 1 || s > Ae(n, r, a) ? g(e)._overflowWeeks = !0 : null != u ? g(e)._overflowWeekday = !0 : (o = Ee(n, s, i, r,
  616. a), e._a[me] = o.year, e._dayOfYear = o.dayOfYear)
  617. }(e), null != e._dayOfYear && (r = ct(e._a[me], s[me]), (e._dayOfYear > Se(r) || 0 === e._dayOfYear) && (g(e)._overflowDayOfYear = !
  618. 0), n = Ge(r, 0, e._dayOfYear), e._a[_e] = n.getUTCMonth(), e._a[ye] = n.getUTCDate()), t = 0; t < 3 && null == e
  619. ._a[t]; ++t) e._a[t] = a[t] = s[t];
  620. for (; t < 7; t++) e._a[t] = a[t] = null == e._a[t] ? 2 === t ? 1 : 0 : e._a[t];
  621. 24 === e._a[ge] && 0 === e._a[ve] && 0 === e._a[pe] && 0 === e._a[we] && (e._nextDay = !0, e._a[ge] = 0), e._d = (e
  622. ._useUTC ? Ge : function(e, t, n, s, i, r, a) {
  623. var o;
  624. return e < 100 && 0 <= e ? (o = new Date(e + 400, t, n, s, i, r, a), isFinite(o.getFullYear()) && o.setFullYear(
  625. e)) : o = new Date(e, t, n, s, i, r, a), o
  626. }).apply(null, a), i = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), null != e._tzm && e._d.setUTCMinutes(e._d.getUTCMinutes() -
  627. e._tzm), e._nextDay && (e._a[ge] = 24), e._w && void 0 !== e._w.d && e._w.d !== i && (g(e).weekdayMismatch = !0)
  628. }
  629. }
  630. var mt =
  631. /^\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)?)?$/,
  632. _t =
  633. /^\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)?)?$/,
  634. yt = /Z|[+-]\d\d(?::?\d\d)?/,
  635. gt = [
  636. ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
  637. ["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
  638. ["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
  639. ["GGGG-[W]WW", /\d{4}-W\d\d/, !1],
  640. ["YYYY-DDD", /\d{4}-\d{3}/],
  641. ["YYYY-MM", /\d{4}-\d\d/, !1],
  642. ["YYYYYYMMDD", /[+-]\d{10}/],
  643. ["YYYYMMDD", /\d{8}/],
  644. ["GGGG[W]WWE", /\d{4}W\d{3}/],
  645. ["GGGG[W]WW", /\d{4}W\d{2}/, !1],
  646. ["YYYYDDD", /\d{7}/]
  647. ],
  648. vt = [
  649. ["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/],
  650. ["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/],
  651. ["HH:mm:ss", /\d\d:\d\d:\d\d/],
  652. ["HH:mm", /\d\d:\d\d/],
  653. ["HHmmss.SSSS", /\d\d\d\d\d\d\.\d+/],
  654. ["HHmmss,SSSS", /\d\d\d\d\d\d,\d+/],
  655. ["HHmmss", /\d\d\d\d\d\d/],
  656. ["HHmm", /\d\d\d\d/],
  657. ["HH", /\d\d/]
  658. ],
  659. pt = /^\/?Date\((\-?\d+)/i;
  660. function wt(e) {
  661. var t, n, s, i, r, a, o = e._i,
  662. u = mt.exec(o) || _t.exec(o);
  663. if (u) {
  664. for (g(e).iso = !0, t = 0, n = gt.length; t < n; t++)
  665. if (gt[t][1].exec(u[1])) {
  666. i = gt[t][0], s = !1 !== gt[t][2];
  667. break
  668. } if (null == i) return void(e._isValid = !1);
  669. if (u[3]) {
  670. for (t = 0, n = vt.length; t < n; t++)
  671. if (vt[t][1].exec(u[3])) {
  672. r = (u[2] || " ") + vt[t][0];
  673. break
  674. } if (null == r) return void(e._isValid = !1)
  675. }
  676. if (!s && null != r) return void(e._isValid = !1);
  677. if (u[4]) {
  678. if (!yt.exec(u[4])) return void(e._isValid = !1);
  679. a = "Z"
  680. }
  681. e._f = i + (r || "") + (a || ""), Yt(e)
  682. } else e._isValid = !1
  683. }
  684. var Mt =
  685. /^(?:(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}))$/;
  686. function kt(e, t, n, s, i, r) {
  687. var a = [function(e) {
  688. var t = parseInt(e, 10); {
  689. if (t <= 49) return 2e3 + t;
  690. if (t <= 999) return 1900 + t
  691. }
  692. return t
  693. }(e), He.indexOf(t), parseInt(n, 10), parseInt(s, 10), parseInt(i, 10)];
  694. return r && a.push(parseInt(r, 10)), a
  695. }
  696. var St = {
  697. UT: 0,
  698. GMT: 0,
  699. EDT: -240,
  700. EST: -300,
  701. CDT: -300,
  702. CST: -360,
  703. MDT: -360,
  704. MST: -420,
  705. PDT: -420,
  706. PST: -480
  707. };
  708. function Dt(e) {
  709. var t, n, s, i = Mt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(
  710. /\s\s*$/, ""));
  711. if (i) {
  712. var r = kt(i[4], i[3], i[2], i[5], i[6], i[7]);
  713. if (t = i[1], n = r, s = e, t && ze.indexOf(t) !== new Date(n[0], n[1], n[2]).getDay() && (g(s).weekdayMismatch = !
  714. 0, !(s._isValid = !1))) return;
  715. e._a = r, e._tzm = function(e, t, n) {
  716. if (e) return St[e];
  717. if (t) return 0;
  718. var s = parseInt(n, 10),
  719. i = s % 100;
  720. return (s - i) / 100 * 60 + i
  721. }(i[8], i[9], i[10]), e._d = Ge.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), g(e).rfc2822 = !
  722. 0
  723. } else e._isValid = !1
  724. }
  725. function Yt(e) {
  726. if (e._f !== c.ISO_8601)
  727. if (e._f !== c.RFC_2822) {
  728. e._a = [], g(e).empty = !0;
  729. var t, n, s, i, r, a, o, u, l = "" + e._i,
  730. h = l.length,
  731. d = 0;
  732. for (s = j(e._f, e._locale).match(N) || [], t = 0; t < s.length; t++) i = s[t], (n = (l.match(le(i, e)) || [])[0]) &&
  733. (0 < (r = l.substr(0, l.indexOf(n))).length && g(e).unusedInput.push(r), l = l.slice(l.indexOf(n) + n.length), d +=
  734. n.length), E[i] ? (n ? g(e).empty = !1 : g(e).unusedTokens.push(i), a = i, u = e, null != (o = n) && m(de, a) &&
  735. de[a](o, u._a, u, a)) : e._strict && !n && g(e).unusedTokens.push(i);
  736. g(e).charsLeftOver = h - d, 0 < l.length && g(e).unusedInput.push(l), e._a[ge] <= 12 && !0 === g(e).bigHour && 0 <
  737. e._a[ge] && (g(e).bigHour = void 0), g(e).parsedDateParts = e._a.slice(0), g(e).meridiem = e._meridiem, e._a[ge] =
  738. function(e, t, n) {
  739. var s;
  740. if (null == n) return t;
  741. return null != e.meridiemHour ? e.meridiemHour(t, n) : (null != e.isPM && ((s = e.isPM(n)) && t < 12 && (t += 12),
  742. s || 12 !== t || (t = 0)), t)
  743. }(e._locale, e._a[ge], e._meridiem), ft(e), dt(e)
  744. } else Dt(e);
  745. else wt(e)
  746. }
  747. function Ot(e) {
  748. var t, n, s, i, r = e._i,
  749. a = e._f;
  750. return e._locale = e._locale || ht(e._l), null === r || void 0 === a && "" === r ? p({
  751. nullInput: !0
  752. }) : ("string" == typeof r && (e._i = r = e._locale.preparse(r)), k(r) ? new M(dt(r)) : (d(r) ? e._d = r : o(a) ?
  753. function(e) {
  754. var t, n, s, i, r;
  755. if (0 === e._f.length) return g(e).invalidFormat = !0, e._d = new Date(NaN);
  756. for (i = 0; i < e._f.length; i++) r = 0, t = w({}, e), null != e._useUTC && (t._useUTC = e._useUTC), t._f = e._f[
  757. i], Yt(t), v(t) && (r += g(t).charsLeftOver, r += 10 * g(t).unusedTokens.length, g(t).score = r, (null == s ||
  758. r < s) && (s = r, n = t));
  759. _(e, n || t)
  760. }(e) : a ? Yt(e) : l(n = (t = e)._i) ? t._d = new Date(c.now()) : d(n) ? t._d = new Date(n.valueOf()) : "string" ==
  761. typeof n ? (s = t, null === (i = pt.exec(s._i)) ? (wt(s), !1 === s._isValid && (delete s._isValid, Dt(s), !1 ===
  762. s._isValid && (delete s._isValid, c.createFromInputFallback(s)))) : s._d = new Date(+i[1])) : o(n) ? (t._a = f(n
  763. .slice(0),
  764. function(e) {
  765. return parseInt(e, 10)
  766. }), ft(t)) : u(n) ? function(e) {
  767. if (!e._d) {
  768. var t = R(e._i);
  769. e._a = f([t.year, t.month, t.day || t.date, t.hour, t.minute, t.second, t.millisecond], function(e) {
  770. return e && parseInt(e, 10)
  771. }), ft(e)
  772. }
  773. }(t) : h(n) ? t._d = new Date(n) : c.createFromInputFallback(t), v(e) || (e._d = null), e))
  774. }
  775. function Tt(e, t, n, s, i) {
  776. var r, a = {};
  777. return !0 !== n && !1 !== n || (s = n, n = void 0), (u(e) && function(e) {
  778. if (Object.getOwnPropertyNames) return 0 === Object.getOwnPropertyNames(e).length;
  779. var t;
  780. for (t in e)
  781. if (e.hasOwnProperty(t)) return !1;
  782. return !0
  783. }(e) || o(e) && 0 === e.length) && (e = void 0), a._isAMomentObject = !0, a._useUTC = a._isUTC = i, a._l = n, a._i =
  784. e, a._f = t, a._strict = s, (r = new M(dt(Ot(a))))._nextDay && (r.add(1, "d"), r._nextDay = void 0), r
  785. }
  786. function bt(e, t, n, s) {
  787. return Tt(e, t, n, s, !1)
  788. }
  789. c.createFromInputFallback = n(
  790. "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 and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",
  791. function(e) {
  792. e._d = new Date(e._i + (e._useUTC ? " UTC" : ""))
  793. }), c.ISO_8601 = function() {}, c.RFC_2822 = function() {};
  794. var xt = n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
  795. function() {
  796. var e = bt.apply(null, arguments);
  797. return this.isValid() && e.isValid() ? e < this ? this : e : p()
  798. }),
  799. Pt = n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
  800. function() {
  801. var e = bt.apply(null, arguments);
  802. return this.isValid() && e.isValid() ? this < e ? this : e : p()
  803. });
  804. function Wt(e, t) {
  805. var n, s;
  806. if (1 === t.length && o(t[0]) && (t = t[0]), !t.length) return bt();
  807. for (n = t[0], s = 1; s < t.length; ++s) t[s].isValid() && !t[s][e](n) || (n = t[s]);
  808. return n
  809. }
  810. var Ct = ["year", "quarter", "month", "week", "day", "hour", "minute", "second", "millisecond"];
  811. function Ht(e) {
  812. var t = R(e),
  813. n = t.year || 0,
  814. s = t.quarter || 0,
  815. i = t.month || 0,
  816. r = t.week || t.isoWeek || 0,
  817. a = t.day || 0,
  818. o = t.hour || 0,
  819. u = t.minute || 0,
  820. l = t.second || 0,
  821. h = t.millisecond || 0;
  822. this._isValid = function(e) {
  823. for (var t in e)
  824. if (-1 === Ye.call(Ct, t) || null != e[t] && isNaN(e[t])) return !1;
  825. for (var n = !1, s = 0; s < Ct.length; ++s)
  826. if (e[Ct[s]]) {
  827. if (n) return !1;
  828. parseFloat(e[Ct[s]]) !== D(e[Ct[s]]) && (n = !0)
  829. } return !0
  830. }(t), this._milliseconds = +h + 1e3 * l + 6e4 * u + 1e3 * o * 60 * 60, this._days = +a + 7 * r, this._months = +i +
  831. 3 * s + 12 * n, this._data = {}, this._locale = ht(), this._bubble()
  832. }
  833. function Rt(e) {
  834. return e instanceof Ht
  835. }
  836. function Ut(e) {
  837. return e < 0 ? -1 * Math.round(-1 * e) : Math.round(e)
  838. }
  839. function Ft(e, n) {
  840. I(e, 0, 0, function() {
  841. var e = this.utcOffset(),
  842. t = "+";
  843. return e < 0 && (e = -e, t = "-"), t + L(~~(e / 60), 2) + n + L(~~e % 60, 2)
  844. })
  845. }
  846. Ft("Z", ":"), Ft("ZZ", ""), ue("Z", re), ue("ZZ", re), ce(["Z", "ZZ"], function(e, t, n) {
  847. n._useUTC = !0, n._tzm = Nt(re, e)
  848. });
  849. var Lt = /([\+\-]|\d\d)/gi;
  850. function Nt(e, t) {
  851. var n = (t || "").match(e);
  852. if (null === n) return null;
  853. var s = ((n[n.length - 1] || []) + "").match(Lt) || ["-", 0, 0],
  854. i = 60 * s[1] + D(s[2]);
  855. return 0 === i ? 0 : "+" === s[0] ? i : -i
  856. }
  857. function Gt(e, t) {
  858. var n, s;
  859. return t._isUTC ? (n = t.clone(), s = (k(e) || d(e) ? e.valueOf() : bt(e).valueOf()) - n.valueOf(), n._d.setTime(n._d
  860. .valueOf() + s), c.updateOffset(n, !1), n) : bt(e).local()
  861. }
  862. function Vt(e) {
  863. return 15 * -Math.round(e._d.getTimezoneOffset() / 15)
  864. }
  865. function Et() {
  866. return !!this.isValid() && (this._isUTC && 0 === this._offset)
  867. }
  868. c.updateOffset = function() {};
  869. var It = /^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,
  870. At =
  871. /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
  872. function jt(e, t) {
  873. var n, s, i, r = e,
  874. a = null;
  875. return Rt(e) ? r = {
  876. ms: e._milliseconds,
  877. d: e._days,
  878. M: e._months
  879. } : h(e) ? (r = {}, t ? r[t] = e : r.milliseconds = e) : (a = It.exec(e)) ? (n = "-" === a[1] ? -1 : 1, r = {
  880. y: 0,
  881. d: D(a[ye]) * n,
  882. h: D(a[ge]) * n,
  883. m: D(a[ve]) * n,
  884. s: D(a[pe]) * n,
  885. ms: D(Ut(1e3 * a[we])) * n
  886. }) : (a = At.exec(e)) ? (n = "-" === a[1] ? -1 : 1, r = {
  887. y: Zt(a[2], n),
  888. M: Zt(a[3], n),
  889. w: Zt(a[4], n),
  890. d: Zt(a[5], n),
  891. h: Zt(a[6], n),
  892. m: Zt(a[7], n),
  893. s: Zt(a[8], n)
  894. }) : null == r ? r = {} : "object" == typeof r && ("from" in r || "to" in r) && (i = function(e, t) {
  895. var n;
  896. if (!e.isValid() || !t.isValid()) return {
  897. milliseconds: 0,
  898. months: 0
  899. };
  900. t = Gt(t, e), e.isBefore(t) ? n = zt(e, t) : ((n = zt(t, e)).milliseconds = -n.milliseconds, n.months = -n.months);
  901. return n
  902. }(bt(r.from), bt(r.to)), (r = {}).ms = i.milliseconds, r.M = i.months), s = new Ht(r), Rt(e) && m(e, "_locale") &&
  903. (s._locale = e._locale), s
  904. }
  905. function Zt(e, t) {
  906. var n = e && parseFloat(e.replace(",", "."));
  907. return (isNaN(n) ? 0 : n) * t
  908. }
  909. function zt(e, t) {
  910. var n = {};
  911. return n.months = t.month() - e.month() + 12 * (t.year() - e.year()), e.clone().add(n.months, "M").isAfter(t) && --n
  912. .months, n.milliseconds = +t - +e.clone().add(n.months, "M"), n
  913. }
  914. function $t(s, i) {
  915. return function(e, t) {
  916. var n;
  917. return null === t || isNaN(+t) || (T(i, "moment()." + i + "(period, number) is deprecated. Please use moment()." +
  918. i + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."), n = e, e =
  919. t, t = n), qt(this, jt(e = "string" == typeof e ? +e : e, t), s), this
  920. }
  921. }
  922. function qt(e, t, n, s) {
  923. var i = t._milliseconds,
  924. r = Ut(t._days),
  925. a = Ut(t._months);
  926. e.isValid() && (s = null == s || s, a && Re(e, be(e, "Month") + a * n), r && xe(e, "Date", be(e, "Date") + r * n), i &&
  927. e._d.setTime(e._d.valueOf() + i * n), s && c.updateOffset(e, r || a))
  928. }
  929. jt.fn = Ht.prototype, jt.invalid = function() {
  930. return jt(NaN)
  931. };
  932. var Jt = $t(1, "add"),
  933. Bt = $t(-1, "subtract");
  934. function Qt(e, t) {
  935. var n = 12 * (t.year() - e.year()) + (t.month() - e.month()),
  936. s = e.clone().add(n, "months");
  937. return -(n + (t - s < 0 ? (t - s) / (s - e.clone().add(n - 1, "months")) : (t - s) / (e.clone().add(n + 1, "months") -
  938. s))) || 0
  939. }
  940. function Xt(e) {
  941. var t;
  942. return void 0 === e ? this._locale._abbr : (null != (t = ht(e)) && (this._locale = t), this)
  943. }
  944. c.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ", c.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
  945. var Kt = n(
  946. "moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
  947. function(e) {
  948. return void 0 === e ? this.localeData() : this.locale(e)
  949. });
  950. function en() {
  951. return this._locale
  952. }
  953. var tn = 126227808e5;
  954. function nn(e, t) {
  955. return (e % t + t) % t
  956. }
  957. function sn(e, t, n) {
  958. return e < 100 && 0 <= e ? new Date(e + 400, t, n) - tn : new Date(e, t, n).valueOf()
  959. }
  960. function rn(e, t, n) {
  961. return e < 100 && 0 <= e ? Date.UTC(e + 400, t, n) - tn : Date.UTC(e, t, n)
  962. }
  963. function an(e, t) {
  964. I(0, [e, e.length], 0, t)
  965. }
  966. function on(e, t, n, s, i) {
  967. var r;
  968. return null == e ? Ie(this, s, i).year : ((r = Ae(e, s, i)) < t && (t = r), function(e, t, n, s, i) {
  969. var r = Ee(e, t, n, s, i),
  970. a = Ge(r.year, 0, r.dayOfYear);
  971. return this.year(a.getUTCFullYear()), this.month(a.getUTCMonth()), this.date(a.getUTCDate()), this
  972. }.call(this, e, t, n, s, i))
  973. }
  974. I(0, ["gg", 2], 0, function() {
  975. return this.weekYear() % 100
  976. }), I(0, ["GG", 2], 0, function() {
  977. return this.isoWeekYear() % 100
  978. }), an("gggg", "weekYear"), an("ggggg", "weekYear"), an("GGGG", "isoWeekYear"), an("GGGGG", "isoWeekYear"), C(
  979. "weekYear", "gg"), C("isoWeekYear", "GG"), F("weekYear", 1), F("isoWeekYear", 1), ue("G", se), ue("g", se), ue("GG",
  980. B, z), ue("gg", B, z), ue("GGGG", ee, q), ue("gggg", ee, q), ue("GGGGG", te, J), ue("ggggg", te, J), fe(["gggg",
  981. "ggggg", "GGGG", "GGGGG"
  982. ], function(e, t, n, s) {
  983. t[s.substr(0, 2)] = D(e)
  984. }), fe(["gg", "GG"], function(e, t, n, s) {
  985. t[s] = c.parseTwoDigitYear(e)
  986. }), I("Q", 0, "Qo", "quarter"), C("quarter", "Q"), F("quarter", 7), ue("Q", Z), ce("Q", function(e, t) {
  987. t[_e] = 3 * (D(e) - 1)
  988. }), I("D", ["DD", 2], "Do", "date"), C("date", "D"), F("date", 9), ue("D", B), ue("DD", B, z), ue("Do", function(e,
  989. t) {
  990. return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient
  991. }), ce(["D", "DD"], ye), ce("Do", function(e, t) {
  992. t[ye] = D(e.match(B)[0])
  993. });
  994. var un = Te("Date", !0);
  995. I("DDD", ["DDDD", 3], "DDDo", "dayOfYear"), C("dayOfYear", "DDD"), F("dayOfYear", 4), ue("DDD", K), ue("DDDD", $), ce(
  996. ["DDD", "DDDD"],
  997. function(e, t, n) {
  998. n._dayOfYear = D(e)
  999. }), I("m", ["mm", 2], 0, "minute"), C("minute", "m"), F("minute", 14), ue("m", B), ue("mm", B, z), ce(["m", "mm"],
  1000. ve);
  1001. var ln = Te("Minutes", !1);
  1002. I("s", ["ss", 2], 0, "second"), C("second", "s"), F("second", 15), ue("s", B), ue("ss", B, z), ce(["s", "ss"], pe);
  1003. var hn, dn = Te("Seconds", !1);
  1004. for (I("S", 0, 0, function() {
  1005. return ~~(this.millisecond() / 100)
  1006. }), I(0, ["SS", 2], 0, function() {
  1007. return ~~(this.millisecond() / 10)
  1008. }), I(0, ["SSS", 3], 0, "millisecond"), I(0, ["SSSS", 4], 0, function() {
  1009. return 10 * this.millisecond()
  1010. }), I(0, ["SSSSS", 5], 0, function() {
  1011. return 100 * this.millisecond()
  1012. }), I(0, ["SSSSSS", 6], 0, function() {
  1013. return 1e3 * this.millisecond()
  1014. }), I(0, ["SSSSSSS", 7], 0, function() {
  1015. return 1e4 * this.millisecond()
  1016. }), I(0, ["SSSSSSSS", 8], 0, function() {
  1017. return 1e5 * this.millisecond()
  1018. }), I(0, ["SSSSSSSSS", 9], 0, function() {
  1019. return 1e6 * this.millisecond()
  1020. }), C("millisecond", "ms"), F("millisecond", 16), ue("S", K, Z), ue("SS", K, z), ue("SSS", K, $), hn = "SSSS"; hn.length <=
  1021. 9; hn += "S") ue(hn, ne);
  1022. function cn(e, t) {
  1023. t[we] = D(1e3 * ("0." + e))
  1024. }
  1025. for (hn = "S"; hn.length <= 9; hn += "S") ce(hn, cn);
  1026. var fn = Te("Milliseconds", !1);
  1027. I("z", 0, 0, "zoneAbbr"), I("zz", 0, 0, "zoneName");
  1028. var mn = M.prototype;
  1029. function _n(e) {
  1030. return e
  1031. }
  1032. mn.add = Jt, mn.calendar = function(e, t) {
  1033. var n = e || bt(),
  1034. s = Gt(n, this).startOf("day"),
  1035. i = c.calendarFormat(this, s) || "sameElse",
  1036. r = t && (b(t[i]) ? t[i].call(this, n) : t[i]);
  1037. return this.format(r || this.localeData().calendar(i, this, bt(n)))
  1038. }, mn.clone = function() {
  1039. return new M(this)
  1040. }, mn.diff = function(e, t, n) {
  1041. var s, i, r;
  1042. if (!this.isValid()) return NaN;
  1043. if (!(s = Gt(e, this)).isValid()) return NaN;
  1044. switch (i = 6e4 * (s.utcOffset() - this.utcOffset()), t = H(t)) {
  1045. case "year":
  1046. r = Qt(this, s) / 12;
  1047. break;
  1048. case "month":
  1049. r = Qt(this, s);
  1050. break;
  1051. case "quarter":
  1052. r = Qt(this, s) / 3;
  1053. break;
  1054. case "second":
  1055. r = (this - s) / 1e3;
  1056. break;
  1057. case "minute":
  1058. r = (this - s) / 6e4;
  1059. break;
  1060. case "hour":
  1061. r = (this - s) / 36e5;
  1062. break;
  1063. case "day":
  1064. r = (this - s - i) / 864e5;
  1065. break;
  1066. case "week":
  1067. r = (this - s - i) / 6048e5;
  1068. break;
  1069. default:
  1070. r = this - s
  1071. }
  1072. return n ? r : S(r)
  1073. }, mn.endOf = function(e) {
  1074. var t;
  1075. if (void 0 === (e = H(e)) || "millisecond" === e || !this.isValid()) return this;
  1076. var n = this._isUTC ? rn : sn;
  1077. switch (e) {
  1078. case "year":
  1079. t = n(this.year() + 1, 0, 1) - 1;
  1080. break;
  1081. case "quarter":
  1082. t = n(this.year(), this.month() - this.month() % 3 + 3, 1) - 1;
  1083. break;
  1084. case "month":
  1085. t = n(this.year(), this.month() + 1, 1) - 1;
  1086. break;
  1087. case "week":
  1088. t = n(this.year(), this.month(), this.date() - this.weekday() + 7) - 1;
  1089. break;
  1090. case "isoWeek":
  1091. t = n(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1;
  1092. break;
  1093. case "day":
  1094. case "date":
  1095. t = n(this.year(), this.month(), this.date() + 1) - 1;
  1096. break;
  1097. case "hour":
  1098. t = this._d.valueOf(), t += 36e5 - nn(t + (this._isUTC ? 0 : 6e4 * this.utcOffset()), 36e5) - 1;
  1099. break;
  1100. case "minute":
  1101. t = this._d.valueOf(), t += 6e4 - nn(t, 6e4) - 1;
  1102. break;
  1103. case "second":
  1104. t = this._d.valueOf(), t += 1e3 - nn(t, 1e3) - 1;
  1105. break
  1106. }
  1107. return this._d.setTime(t), c.updateOffset(this, !0), this
  1108. }, mn.format = function(e) {
  1109. e || (e = this.isUtc() ? c.defaultFormatUtc : c.defaultFormat);
  1110. var t = A(this, e);
  1111. return this.localeData().postformat(t)
  1112. }, mn.from = function(e, t) {
  1113. return this.isValid() && (k(e) && e.isValid() || bt(e).isValid()) ? jt({
  1114. to: this,
  1115. from: e
  1116. }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate()
  1117. }, mn.fromNow = function(e) {
  1118. return this.from(bt(), e)
  1119. }, mn.to = function(e, t) {
  1120. return this.isValid() && (k(e) && e.isValid() || bt(e).isValid()) ? jt({
  1121. from: this,
  1122. to: e
  1123. }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate()
  1124. }, mn.toNow = function(e) {
  1125. return this.to(bt(), e)
  1126. }, mn.get = function(e) {
  1127. return b(this[e = H(e)]) ? this[e]() : this
  1128. }, mn.invalidAt = function() {
  1129. return g(this).overflow
  1130. }, mn.isAfter = function(e, t) {
  1131. var n = k(e) ? e : bt(e);
  1132. return !(!this.isValid() || !n.isValid()) && ("millisecond" === (t = H(t) || "millisecond") ? this.valueOf() > n.valueOf() :
  1133. n.valueOf() < this.clone().startOf(t).valueOf())
  1134. }, mn.isBefore = function(e, t) {
  1135. var n = k(e) ? e : bt(e);
  1136. return !(!this.isValid() || !n.isValid()) && ("millisecond" === (t = H(t) || "millisecond") ? this.valueOf() < n.valueOf() :
  1137. this.clone().endOf(t).valueOf() < n.valueOf())
  1138. }, mn.isBetween = function(e, t, n, s) {
  1139. var i = k(e) ? e : bt(e),
  1140. r = k(t) ? t : bt(t);
  1141. return !!(this.isValid() && i.isValid() && r.isValid()) && ("(" === (s = s || "()")[0] ? this.isAfter(i, n) : !this
  1142. .isBefore(i, n)) && (")" === s[1] ? this.isBefore(r, n) : !this.isAfter(r, n))
  1143. }, mn.isSame = function(e, t) {
  1144. var n, s = k(e) ? e : bt(e);
  1145. return !(!this.isValid() || !s.isValid()) && ("millisecond" === (t = H(t) || "millisecond") ? this.valueOf() === s.valueOf() :
  1146. (n = s.valueOf(), this.clone().startOf(t).valueOf() <= n && n <= this.clone().endOf(t).valueOf()))
  1147. }, mn.isSameOrAfter = function(e, t) {
  1148. return this.isSame(e, t) || this.isAfter(e, t)
  1149. }, mn.isSameOrBefore = function(e, t) {
  1150. return this.isSame(e, t) || this.isBefore(e, t)
  1151. }, mn.isValid = function() {
  1152. return v(this)
  1153. }, mn.lang = Kt, mn.locale = Xt, mn.localeData = en, mn.max = Pt, mn.min = xt, mn.parsingFlags = function() {
  1154. return _({}, g(this))
  1155. }, mn.set = function(e, t) {
  1156. if ("object" == typeof e)
  1157. for (var n = function(e) {
  1158. var t = [];
  1159. for (var n in e) t.push({
  1160. unit: n,
  1161. priority: U[n]
  1162. });
  1163. return t.sort(function(e, t) {
  1164. return e.priority - t.priority
  1165. }), t
  1166. }(e = R(e)), s = 0; s < n.length; s++) this[n[s].unit](e[n[s].unit]);
  1167. else if (b(this[e = H(e)])) return this[e](t);
  1168. return this
  1169. }, mn.startOf = function(e) {
  1170. var t;
  1171. if (void 0 === (e = H(e)) || "millisecond" === e || !this.isValid()) return this;
  1172. var n = this._isUTC ? rn : sn;
  1173. switch (e) {
  1174. case "year":
  1175. t = n(this.year(), 0, 1);
  1176. break;
  1177. case "quarter":
  1178. t = n(this.year(), this.month() - this.month() % 3, 1);
  1179. break;
  1180. case "month":
  1181. t = n(this.year(), this.month(), 1);
  1182. break;
  1183. case "week":
  1184. t = n(this.year(), this.month(), this.date() - this.weekday());
  1185. break;
  1186. case "isoWeek":
  1187. t = n(this.year(), this.month(), this.date() - (this.isoWeekday() - 1));
  1188. break;
  1189. case "day":
  1190. case "date":
  1191. t = n(this.year(), this.month(), this.date());
  1192. break;
  1193. case "hour":
  1194. t = this._d.valueOf(), t -= nn(t + (this._isUTC ? 0 : 6e4 * this.utcOffset()), 36e5);
  1195. break;
  1196. case "minute":
  1197. t = this._d.valueOf(), t -= nn(t, 6e4);
  1198. break;
  1199. case "second":
  1200. t = this._d.valueOf(), t -= nn(t, 1e3);
  1201. break
  1202. }
  1203. return this._d.setTime(t), c.updateOffset(this, !0), this
  1204. }, mn.subtract = Bt, mn.toArray = function() {
  1205. var e = this;
  1206. return [e.year(), e.month(), e.date(), e.hour(), e.minute(), e.second(), e.millisecond()]
  1207. }, mn.toObject = function() {
  1208. var e = this;
  1209. return {
  1210. years: e.year(),
  1211. months: e.month(),
  1212. date: e.date(),
  1213. hours: e.hours(),
  1214. minutes: e.minutes(),
  1215. seconds: e.seconds(),
  1216. milliseconds: e.milliseconds()
  1217. }
  1218. }, mn.toDate = function() {
  1219. return new Date(this.valueOf())
  1220. }, mn.toISOString = function(e) {
  1221. if (!this.isValid()) return null;
  1222. var t = !0 !== e,
  1223. n = t ? this.clone().utc() : this;
  1224. return n.year() < 0 || 9999 < n.year() ? A(n, t ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ") :
  1225. b(Date.prototype.toISOString) ? t ? this.toDate().toISOString() : new Date(this.valueOf() + 60 * this.utcOffset() *
  1226. 1e3).toISOString().replace("Z", A(n, "Z")) : A(n, t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" :
  1227. "YYYY-MM-DD[T]HH:mm:ss.SSSZ")
  1228. }, mn.inspect = function() {
  1229. if (!this.isValid()) return "moment.invalid(/* " + this._i + " */)";
  1230. var e = "moment",
  1231. t = "";
  1232. this.isLocal() || (e = 0 === this.utcOffset() ? "moment.utc" : "moment.parseZone", t = "Z");
  1233. var n = "[" + e + '("]',
  1234. s = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY",
  1235. i = t + '[")]';
  1236. return this.format(n + s + "-MM-DD[T]HH:mm:ss.SSS" + i)
  1237. }, mn.toJSON = function() {
  1238. return this.isValid() ? this.toISOString() : null
  1239. }, mn.toString = function() {
  1240. return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")
  1241. }, mn.unix = function() {
  1242. return Math.floor(this.valueOf() / 1e3)
  1243. }, mn.valueOf = function() {
  1244. return this._d.valueOf() - 6e4 * (this._offset || 0)
  1245. }, mn.creationData = function() {
  1246. return {
  1247. input: this._i,
  1248. format: this._f,
  1249. locale: this._locale,
  1250. isUTC: this._isUTC,
  1251. strict: this._strict
  1252. }
  1253. }, mn.year = Oe, mn.isLeapYear = function() {
  1254. return De(this.year())
  1255. }, mn.weekYear = function(e) {
  1256. return on.call(this, e, this.week(), this.weekday(), this.localeData()._week.dow, this.localeData()._week.doy)
  1257. }, mn.isoWeekYear = function(e) {
  1258. return on.call(this, e, this.isoWeek(), this.isoWeekday(), 1, 4)
  1259. }, mn.quarter = mn.quarters = function(e) {
  1260. return null == e ? Math.ceil((this.month() + 1) / 3) : this.month(3 * (e - 1) + this.month() % 3)
  1261. }, mn.month = Ue, mn.daysInMonth = function() {
  1262. return Pe(this.year(), this.month())
  1263. }, mn.week = mn.weeks = function(e) {
  1264. var t = this.localeData().week(this);
  1265. return null == e ? t : this.add(7 * (e - t), "d")
  1266. }, mn.isoWeek = mn.isoWeeks = function(e) {
  1267. var t = Ie(this, 1, 4).week;
  1268. return null == e ? t : this.add(7 * (e - t), "d")
  1269. }, mn.weeksInYear = function() {
  1270. var e = this.localeData()._week;
  1271. return Ae(this.year(), e.dow, e.doy)
  1272. }, mn.isoWeeksInYear = function() {
  1273. return Ae(this.year(), 1, 4)
  1274. }, mn.date = un, mn.day = mn.days = function(e) {
  1275. if (!this.isValid()) return null != e ? this : NaN;
  1276. var t, n, s = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  1277. return null != e ? (t = e, n = this.localeData(), e = "string" != typeof t ? t : isNaN(t) ? "number" == typeof(t =
  1278. n.weekdaysParse(t)) ? t : null : parseInt(t, 10), this.add(e - s, "d")) : s
  1279. }, mn.weekday = function(e) {
  1280. if (!this.isValid()) return null != e ? this : NaN;
  1281. var t = (this.day() + 7 - this.localeData()._week.dow) % 7;
  1282. return null == e ? t : this.add(e - t, "d")
  1283. }, mn.isoWeekday = function(e) {
  1284. if (!this.isValid()) return null != e ? this : NaN;
  1285. if (null == e) return this.day() || 7;
  1286. var t, n, s = (t = e, n = this.localeData(), "string" == typeof t ? n.weekdaysParse(t) % 7 || 7 : isNaN(t) ? null :
  1287. t);
  1288. return this.day(this.day() % 7 ? s : s - 7)
  1289. }, mn.dayOfYear = function(e) {
  1290. var t = Math.round((this.clone().startOf("day") - this.clone().startOf("year")) / 864e5) + 1;
  1291. return null == e ? t : this.add(e - t, "d")
  1292. }, mn.hour = mn.hours = nt, mn.minute = mn.minutes = ln, mn.second = mn.seconds = dn, mn.millisecond = mn.milliseconds =
  1293. fn, mn.utcOffset = function(e, t, n) {
  1294. var s, i = this._offset || 0;
  1295. if (!this.isValid()) return null != e ? this : NaN;
  1296. if (null == e) return this._isUTC ? i : Vt(this);
  1297. if ("string" == typeof e) {
  1298. if (null === (e = Nt(re, e))) return this
  1299. } else Math.abs(e) < 16 && !n && (e *= 60);
  1300. return !this._isUTC && t && (s = Vt(this)), this._offset = e, this._isUTC = !0, null != s && this.add(s, "m"), i !==
  1301. e && (!t || this._changeInProgress ? qt(this, jt(e - i, "m"), 1, !1) : this._changeInProgress || (this._changeInProgress = !
  1302. 0, c.updateOffset(this, !0), this._changeInProgress = null)), this
  1303. }, mn.utc = function(e) {
  1304. return this.utcOffset(0, e)
  1305. }, mn.local = function(e) {
  1306. return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(Vt(this), "m")), this
  1307. }, mn.parseZone = function() {
  1308. if (null != this._tzm) this.utcOffset(this._tzm, !1, !0);
  1309. else if ("string" == typeof this._i) {
  1310. var e = Nt(ie, this._i);
  1311. null != e ? this.utcOffset(e) : this.utcOffset(0, !0)
  1312. }
  1313. return this
  1314. }, mn.hasAlignedHourOffset = function(e) {
  1315. return !!this.isValid() && (e = e ? bt(e).utcOffset() : 0, (this.utcOffset() - e) % 60 == 0)
  1316. }, mn.isDST = function() {
  1317. return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset()
  1318. }, mn.isLocal = function() {
  1319. return !!this.isValid() && !this._isUTC
  1320. }, mn.isUtcOffset = function() {
  1321. return !!this.isValid() && this._isUTC
  1322. }, mn.isUtc = Et, mn.isUTC = Et, mn.zoneAbbr = function() {
  1323. return this._isUTC ? "UTC" : ""
  1324. }, mn.zoneName = function() {
  1325. return this._isUTC ? "Coordinated Universal Time" : ""
  1326. }, mn.dates = n("dates accessor is deprecated. Use date instead.", un), mn.months = n(
  1327. "months accessor is deprecated. Use month instead", Ue), mn.years = n(
  1328. "years accessor is deprecated. Use year instead", Oe), mn.zone = n(
  1329. "moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
  1330. function(e, t) {
  1331. return null != e ? ("string" != typeof e && (e = -e), this.utcOffset(e, t), this) : -this.utcOffset()
  1332. }), mn.isDSTShifted = n(
  1333. "isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
  1334. function() {
  1335. if (!l(this._isDSTShifted)) return this._isDSTShifted;
  1336. var e = {};
  1337. if (w(e, this), (e = Ot(e))._a) {
  1338. var t = e._isUTC ? y(e._a) : bt(e._a);
  1339. this._isDSTShifted = this.isValid() && 0 < a(e._a, t.toArray())
  1340. } else this._isDSTShifted = !1;
  1341. return this._isDSTShifted
  1342. });
  1343. var yn = P.prototype;
  1344. function gn(e, t, n, s) {
  1345. var i = ht(),
  1346. r = y().set(s, t);
  1347. return i[n](r, e)
  1348. }
  1349. function vn(e, t, n) {
  1350. if (h(e) && (t = e, e = void 0), e = e || "", null != t) return gn(e, t, n, "month");
  1351. var s, i = [];
  1352. for (s = 0; s < 12; s++) i[s] = gn(e, s, n, "month");
  1353. return i
  1354. }
  1355. function pn(e, t, n, s) {
  1356. t = ("boolean" == typeof e ? h(t) && (n = t, t = void 0) : (t = e, e = !1, h(n = t) && (n = t, t = void 0)), t || "");
  1357. var i, r = ht(),
  1358. a = e ? r._week.dow : 0;
  1359. if (null != n) return gn(t, (n + a) % 7, s, "day");
  1360. var o = [];
  1361. for (i = 0; i < 7; i++) o[i] = gn(t, (i + a) % 7, s, "day");
  1362. return o
  1363. }
  1364. yn.calendar = function(e, t, n) {
  1365. var s = this._calendar[e] || this._calendar.sameElse;
  1366. return b(s) ? s.call(t, n) : s
  1367. }, yn.longDateFormat = function(e) {
  1368. var t = this._longDateFormat[e],
  1369. n = this._longDateFormat[e.toUpperCase()];
  1370. return t || !n ? t : (this._longDateFormat[e] = n.replace(/MMMM|MM|DD|dddd/g, function(e) {
  1371. return e.slice(1)
  1372. }), this._longDateFormat[e])
  1373. }, yn.invalidDate = function() {
  1374. return this._invalidDate
  1375. }, yn.ordinal = function(e) {
  1376. return this._ordinal.replace("%d", e)
  1377. }, yn.preparse = _n, yn.postformat = _n, yn.relativeTime = function(e, t, n, s) {
  1378. var i = this._relativeTime[n];
  1379. return b(i) ? i(e, t, n, s) : i.replace(/%d/i, e)
  1380. }, yn.pastFuture = function(e, t) {
  1381. var n = this._relativeTime[0 < e ? "future" : "past"];
  1382. return b(n) ? n(t) : n.replace(/%s/i, t)
  1383. }, yn.set = function(e) {
  1384. var t, n;
  1385. for (n in e) b(t = e[n]) ? this[n] = t : this["_" + n] = t;
  1386. this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse
  1387. .source) + "|" + /\d{1,2}/.source)
  1388. }, yn.months = function(e, t) {
  1389. return e ? o(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || We).test(t) ?
  1390. "format" : "standalone"][e.month()] : o(this._months) ? this._months : this._months.standalone
  1391. }, yn.monthsShort = function(e, t) {
  1392. return e ? o(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[We.test(t) ? "format" :
  1393. "standalone"][e.month()] : o(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone
  1394. }, yn.monthsParse = function(e, t, n) {
  1395. var s, i, r;
  1396. if (this._monthsParseExact) return function(e, t, n) {
  1397. var s, i, r, a = e.toLocaleLowerCase();
  1398. if (!this._monthsParse)
  1399. for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], s = 0; s < 12; ++s) r = y(
  1400. [2e3, s]), this._shortMonthsParse[s] = this.monthsShort(r, "").toLocaleLowerCase(), this._longMonthsParse[s] =
  1401. this.months(r, "").toLocaleLowerCase();
  1402. return n ? "MMM" === t ? -1 !== (i = Ye.call(this._shortMonthsParse, a)) ? i : null : -1 !== (i = Ye.call(this._longMonthsParse,
  1403. a)) ? i : null : "MMM" === t ? -1 !== (i = Ye.call(this._shortMonthsParse, a)) ? i : -1 !== (i = Ye.call(this._longMonthsParse,
  1404. a)) ? i : null : -1 !== (i = Ye.call(this._longMonthsParse, a)) ? i : -1 !== (i = Ye.call(this._shortMonthsParse,
  1405. a)) ? i : null
  1406. }.call(this, e, t, n);
  1407. for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), s = 0; s <
  1408. 12; s++) {
  1409. if (i = y([2e3, s]), n && !this._longMonthsParse[s] && (this._longMonthsParse[s] = new RegExp("^" + this.months(i,
  1410. "").replace(".", "") + "$", "i"), this._shortMonthsParse[s] = new RegExp("^" + this.monthsShort(i, "").replace(
  1411. ".", "") + "$", "i")), n || this._monthsParse[s] || (r = "^" + this.months(i, "") + "|^" + this.monthsShort(i,
  1412. ""), this._monthsParse[s] = new RegExp(r.replace(".", ""), "i")), n && "MMMM" === t && this._longMonthsParse[s].test(
  1413. e)) return s;
  1414. if (n && "MMM" === t && this._shortMonthsParse[s].test(e)) return s;
  1415. if (!n && this._monthsParse[s].test(e)) return s
  1416. }
  1417. }, yn.monthsRegex = function(e) {
  1418. return this._monthsParseExact ? (m(this, "_monthsRegex") || Ne.call(this), e ? this._monthsStrictRegex : this._monthsRegex) :
  1419. (m(this, "_monthsRegex") || (this._monthsRegex = Le), this._monthsStrictRegex && e ? this._monthsStrictRegex :
  1420. this._monthsRegex)
  1421. }, yn.monthsShortRegex = function(e) {
  1422. return this._monthsParseExact ? (m(this, "_monthsRegex") || Ne.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) :
  1423. (m(this, "_monthsShortRegex") || (this._monthsShortRegex = Fe), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex :
  1424. this._monthsShortRegex)
  1425. }, yn.week = function(e) {
  1426. return Ie(e, this._week.dow, this._week.doy).week
  1427. }, yn.firstDayOfYear = function() {
  1428. return this._week.doy
  1429. }, yn.firstDayOfWeek = function() {
  1430. return this._week.dow
  1431. }, yn.weekdays = function(e, t) {
  1432. var n = o(this._weekdays) ? this._weekdays : this._weekdays[e && !0 !== e && this._weekdays.isFormat.test(t) ?
  1433. "format" : "standalone"];
  1434. return !0 === e ? je(n, this._week.dow) : e ? n[e.day()] : n
  1435. }, yn.weekdaysMin = function(e) {
  1436. return !0 === e ? je(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin
  1437. }, yn.weekdaysShort = function(e) {
  1438. return !0 === e ? je(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort
  1439. }, yn.weekdaysParse = function(e, t, n) {
  1440. var s, i, r;
  1441. if (this._weekdaysParseExact) return function(e, t, n) {
  1442. var s, i, r, a = e.toLocaleLowerCase();
  1443. if (!this._weekdaysParse)
  1444. for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], s = 0; s < 7; ++s) r =
  1445. y([2e3, 1]).day(s), this._minWeekdaysParse[s] = this.weekdaysMin(r, "").toLocaleLowerCase(), this._shortWeekdaysParse[
  1446. s] = this.weekdaysShort(r, "").toLocaleLowerCase(), this._weekdaysParse[s] = this.weekdays(r, "").toLocaleLowerCase();
  1447. return n ? "dddd" === t ? -1 !== (i = Ye.call(this._weekdaysParse, a)) ? i : null : "ddd" === t ? -1 !== (i = Ye
  1448. .call(this._shortWeekdaysParse, a)) ? i : null : -1 !== (i = Ye.call(this._minWeekdaysParse, a)) ? i : null :
  1449. "dddd" === t ? -1 !== (i = Ye.call(this._weekdaysParse, a)) ? i : -1 !== (i = Ye.call(this._shortWeekdaysParse,
  1450. a)) ? i : -1 !== (i = Ye.call(this._minWeekdaysParse, a)) ? i : null : "ddd" === t ? -1 !== (i = Ye.call(this._shortWeekdaysParse,
  1451. a)) ? i : -1 !== (i = Ye.call(this._weekdaysParse, a)) ? i : -1 !== (i = Ye.call(this._minWeekdaysParse, a)) ?
  1452. i : null : -1 !== (i = Ye.call(this._minWeekdaysParse, a)) ? i : -1 !== (i = Ye.call(this._weekdaysParse, a)) ?
  1453. i : -1 !== (i = Ye.call(this._shortWeekdaysParse, a)) ? i : null
  1454. }.call(this, e, t, n);
  1455. for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [],
  1456. this._fullWeekdaysParse = []), s = 0; s < 7; s++) {
  1457. if (i = y([2e3, 1]).day(s), n && !this._fullWeekdaysParse[s] && (this._fullWeekdaysParse[s] = new RegExp("^" +
  1458. this.weekdays(i, "").replace(".", "\\.?") + "$", "i"), this._shortWeekdaysParse[s] = new RegExp("^" + this.weekdaysShort(
  1459. i, "").replace(".", "\\.?") + "$", "i"), this._minWeekdaysParse[s] = new RegExp("^" + this.weekdaysMin(i, "").replace(
  1460. ".", "\\.?") + "$", "i")), this._weekdaysParse[s] || (r = "^" + this.weekdays(i, "") + "|^" + this.weekdaysShort(
  1461. i, "") + "|^" + this.weekdaysMin(i, ""), this._weekdaysParse[s] = new RegExp(r.replace(".", ""), "i")), n &&
  1462. "dddd" === t && this._fullWeekdaysParse[s].test(e)) return s;
  1463. if (n && "ddd" === t && this._shortWeekdaysParse[s].test(e)) return s;
  1464. if (n && "dd" === t && this._minWeekdaysParse[s].test(e)) return s;
  1465. if (!n && this._weekdaysParse[s].test(e)) return s
  1466. }
  1467. }, yn.weekdaysRegex = function(e) {
  1468. return this._weekdaysParseExact ? (m(this, "_weekdaysRegex") || Qe.call(this), e ? this._weekdaysStrictRegex : this
  1469. ._weekdaysRegex) : (m(this, "_weekdaysRegex") || (this._weekdaysRegex = qe), this._weekdaysStrictRegex && e ?
  1470. this._weekdaysStrictRegex : this._weekdaysRegex)
  1471. }, yn.weekdaysShortRegex = function(e) {
  1472. return this._weekdaysParseExact ? (m(this, "_weekdaysRegex") || Qe.call(this), e ? this._weekdaysShortStrictRegex :
  1473. this._weekdaysShortRegex) : (m(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = Je), this._weekdaysShortStrictRegex &&
  1474. e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex)
  1475. }, yn.weekdaysMinRegex = function(e) {
  1476. return this._weekdaysParseExact ? (m(this, "_weekdaysRegex") || Qe.call(this), e ? this._weekdaysMinStrictRegex :
  1477. this._weekdaysMinRegex) : (m(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Be), this._weekdaysMinStrictRegex &&
  1478. e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex)
  1479. }, yn.isPM = function(e) {
  1480. return "p" === (e + "").toLowerCase().charAt(0)
  1481. }, yn.meridiem = function(e, t, n) {
  1482. return 11 < e ? n ? "pm" : "PM" : n ? "am" : "AM"
  1483. }, ut("en", {
  1484. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  1485. ordinal: function(e) {
  1486. var t = e % 10;
  1487. return e + (1 === D(e % 100 / 10) ? "th" : 1 === t ? "st" : 2 === t ? "nd" : 3 === t ? "rd" : "th")
  1488. }
  1489. }), c.lang = n("moment.lang is deprecated. Use moment.locale instead.", ut), c.langData = n(
  1490. "moment.langData is deprecated. Use moment.localeData instead.", ht);
  1491. var wn = Math.abs;
  1492. function Mn(e, t, n, s) {
  1493. var i = jt(t, n);
  1494. return e._milliseconds += s * i._milliseconds, e._days += s * i._days, e._months += s * i._months, e._bubble()
  1495. }
  1496. function kn(e) {
  1497. return e < 0 ? Math.floor(e) : Math.ceil(e)
  1498. }
  1499. function Sn(e) {
  1500. return 4800 * e / 146097
  1501. }
  1502. function Dn(e) {
  1503. return 146097 * e / 4800
  1504. }
  1505. function Yn(e) {
  1506. return function() {
  1507. return this.as(e)
  1508. }
  1509. }
  1510. var On = Yn("ms"),
  1511. Tn = Yn("s"),
  1512. bn = Yn("m"),
  1513. xn = Yn("h"),
  1514. Pn = Yn("d"),
  1515. Wn = Yn("w"),
  1516. Cn = Yn("M"),
  1517. Hn = Yn("Q"),
  1518. Rn = Yn("y");
  1519. function Un(e) {
  1520. return function() {
  1521. return this.isValid() ? this._data[e] : NaN
  1522. }
  1523. }
  1524. var Fn = Un("milliseconds"),
  1525. Ln = Un("seconds"),
  1526. Nn = Un("minutes"),
  1527. Gn = Un("hours"),
  1528. Vn = Un("days"),
  1529. En = Un("months"),
  1530. In = Un("years");
  1531. var An = Math.round,
  1532. jn = {
  1533. ss: 44,
  1534. s: 45,
  1535. m: 45,
  1536. h: 22,
  1537. d: 26,
  1538. M: 11
  1539. };
  1540. var Zn = Math.abs;
  1541. function zn(e) {
  1542. return (0 < e) - (e < 0) || +e
  1543. }
  1544. function $n() {
  1545. if (!this.isValid()) return this.localeData().invalidDate();
  1546. var e, t, n = Zn(this._milliseconds) / 1e3,
  1547. s = Zn(this._days),
  1548. i = Zn(this._months);
  1549. t = S((e = S(n / 60)) / 60), n %= 60, e %= 60;
  1550. var r = S(i / 12),
  1551. a = i %= 12,
  1552. o = s,
  1553. u = t,
  1554. l = e,
  1555. h = n ? n.toFixed(3).replace(/\.?0+$/, "") : "",
  1556. d = this.asSeconds();
  1557. if (!d) return "P0D";
  1558. var c = d < 0 ? "-" : "",
  1559. f = zn(this._months) !== zn(d) ? "-" : "",
  1560. m = zn(this._days) !== zn(d) ? "-" : "",
  1561. _ = zn(this._milliseconds) !== zn(d) ? "-" : "";
  1562. return c + "P" + (r ? f + r + "Y" : "") + (a ? f + a + "M" : "") + (o ? m + o + "D" : "") + (u || l || h ? "T" : "") +
  1563. (u ? _ + u + "H" : "") + (l ? _ + l + "M" : "") + (h ? _ + h + "S" : "")
  1564. }
  1565. var qn = Ht.prototype;
  1566. return qn.isValid = function() {
  1567. return this._isValid
  1568. }, qn.abs = function() {
  1569. var e = this._data;
  1570. return this._milliseconds = wn(this._milliseconds), this._days = wn(this._days), this._months = wn(this._months), e
  1571. .milliseconds = wn(e.milliseconds), e.seconds = wn(e.seconds), e.minutes = wn(e.minutes), e.hours = wn(e.hours), e
  1572. .months = wn(e.months), e.years = wn(e.years), this
  1573. }, qn.add = function(e, t) {
  1574. return Mn(this, e, t, 1)
  1575. }, qn.subtract = function(e, t) {
  1576. return Mn(this, e, t, -1)
  1577. }, qn.as = function(e) {
  1578. if (!this.isValid()) return NaN;
  1579. var t, n, s = this._milliseconds;
  1580. if ("month" === (e = H(e)) || "quarter" === e || "year" === e) switch (t = this._days + s / 864e5, n = this._months +
  1581. Sn(t), e) {
  1582. case "month":
  1583. return n;
  1584. case "quarter":
  1585. return n / 3;
  1586. case "year":
  1587. return n / 12
  1588. } else switch (t = this._days + Math.round(Dn(this._months)), e) {
  1589. case "week":
  1590. return t / 7 + s / 6048e5;
  1591. case "day":
  1592. return t + s / 864e5;
  1593. case "hour":
  1594. return 24 * t + s / 36e5;
  1595. case "minute":
  1596. return 1440 * t + s / 6e4;
  1597. case "second":
  1598. return 86400 * t + s / 1e3;
  1599. case "millisecond":
  1600. return Math.floor(864e5 * t) + s;
  1601. default:
  1602. throw new Error("Unknown unit " + e)
  1603. }
  1604. }, qn.asMilliseconds = On, qn.asSeconds = Tn, qn.asMinutes = bn, qn.asHours = xn, qn.asDays = Pn, qn.asWeeks = Wn,
  1605. qn.asMonths = Cn, qn.asQuarters = Hn, qn.asYears = Rn, qn.valueOf = function() {
  1606. return this.isValid() ? this._milliseconds + 864e5 * this._days + this._months % 12 * 2592e6 + 31536e6 * D(this._months /
  1607. 12) : NaN
  1608. }, qn._bubble = function() {
  1609. var e, t, n, s, i, r = this._milliseconds,
  1610. a = this._days,
  1611. o = this._months,
  1612. u = this._data;
  1613. return 0 <= r && 0 <= a && 0 <= o || r <= 0 && a <= 0 && o <= 0 || (r += 864e5 * kn(Dn(o) + a), o = a = 0), u.milliseconds =
  1614. r % 1e3, e = S(r / 1e3), u.seconds = e % 60, t = S(e / 60), u.minutes = t % 60, n = S(t / 60), u.hours = n % 24, o +=
  1615. i = S(Sn(a += S(n / 24))), a -= kn(Dn(i)), s = S(o / 12), o %= 12, u.days = a, u.months = o, u.years = s, this
  1616. }, qn.clone = function() {
  1617. return jt(this)
  1618. }, qn.get = function(e) {
  1619. return e = H(e), this.isValid() ? this[e + "s"]() : NaN
  1620. }, qn.milliseconds = Fn, qn.seconds = Ln, qn.minutes = Nn, qn.hours = Gn, qn.days = Vn, qn.weeks = function() {
  1621. return S(this.days() / 7)
  1622. }, qn.months = En, qn.years = In, qn.humanize = function(e) {
  1623. if (!this.isValid()) return this.localeData().invalidDate();
  1624. var t, n, s, i, r, a, o, u, l, h, d, c = this.localeData(),
  1625. f = (n = !e, s = c, i = jt(t = this).abs(), r = An(i.as("s")), a = An(i.as("m")), o = An(i.as("h")), u = An(i.as(
  1626. "d")), l = An(i.as("M")), h = An(i.as("y")), (d = r <= jn.ss && ["s", r] || r < jn.s && ["ss", r] || a <= 1 && [
  1627. "m"
  1628. ] || a < jn.m && ["mm", a] || o <= 1 && ["h"] || o < jn.h && ["hh", o] || u <= 1 && ["d"] || u < jn.d && ["dd",
  1629. u
  1630. ] || l <= 1 && ["M"] || l < jn.M && ["MM", l] || h <= 1 && ["y"] || ["yy", h])[2] = n, d[3] = 0 < +t, d[4] = s,
  1631. function(e, t, n, s, i) {
  1632. return i.relativeTime(t || 1, !!n, e, s)
  1633. }.apply(null, d));
  1634. return e && (f = c.pastFuture(+this, f)), c.postformat(f)
  1635. }, qn.toISOString = $n, qn.toString = $n, qn.toJSON = $n, qn.locale = Xt, qn.localeData = en, qn.toIsoString = n(
  1636. "toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)", $n), qn.lang = Kt, I("X", 0,
  1637. 0, "unix"), I("x", 0, 0, "valueOf"), ue("x", se), ue("X", /[+-]?\d+(\.\d{1,3})?/), ce("X", function(e, t, n) {
  1638. n._d = new Date(1e3 * parseFloat(e, 10))
  1639. }), ce("x", function(e, t, n) {
  1640. n._d = new Date(D(e))
  1641. }), c.version = "2.24.0", e = bt, c.fn = mn, c.min = function() {
  1642. return Wt("isBefore", [].slice.call(arguments, 0))
  1643. }, c.max = function() {
  1644. return Wt("isAfter", [].slice.call(arguments, 0))
  1645. }, c.now = function() {
  1646. return Date.now ? Date.now() : +new Date
  1647. }, c.utc = y, c.unix = function(e) {
  1648. return bt(1e3 * e)
  1649. }, c.months = function(e, t) {
  1650. return vn(e, t, "months")
  1651. }, c.isDate = d, c.locale = ut, c.invalid = p, c.duration = jt, c.isMoment = k, c.weekdays = function(e, t, n) {
  1652. return pn(e, t, n, "weekdays")
  1653. }, c.parseZone = function() {
  1654. return bt.apply(null, arguments).parseZone()
  1655. }, c.localeData = ht, c.isDuration = Rt, c.monthsShort = function(e, t) {
  1656. return vn(e, t, "monthsShort")
  1657. }, c.weekdaysMin = function(e, t, n) {
  1658. return pn(e, t, n, "weekdaysMin")
  1659. }, c.defineLocale = lt, c.updateLocale = function(e, t) {
  1660. if (null != t) {
  1661. var n, s, i = st;
  1662. null != (s = ot(e)) && (i = s._config), (n = new P(t = x(i, t))).parentLocale = it[e], it[e] = n, ut(e)
  1663. } else null != it[e] && (null != it[e].parentLocale ? it[e] = it[e].parentLocale : null != it[e] && delete it[e]);
  1664. return it[e]
  1665. }, c.locales = function() {
  1666. return s(it)
  1667. }, c.weekdaysShort = function(e, t, n) {
  1668. return pn(e, t, n, "weekdaysShort")
  1669. }, c.normalizeUnits = H, c.relativeTimeRounding = function(e) {
  1670. return void 0 === e ? An : "function" == typeof e && (An = e, !0)
  1671. }, c.relativeTimeThreshold = function(e, t) {
  1672. return void 0 !== jn[e] && (void 0 === t ? jn[e] : (jn[e] = t, "s" === e && (jn.ss = t - 1), !0))
  1673. }, c.calendarFormat = function(e, t) {
  1674. var n = e.diff(t, "days", !0);
  1675. return n < -6 ? "sameElse" : n < -1 ? "lastWeek" : n < 0 ? "lastDay" : n < 1 ? "sameDay" : n < 2 ? "nextDay" : n <
  1676. 7 ? "nextWeek" : "sameElse"
  1677. }, c.prototype = mn, c.HTML5_FMT = {
  1678. DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
  1679. DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
  1680. DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
  1681. DATE: "YYYY-MM-DD",
  1682. TIME: "HH:mm",
  1683. TIME_SECONDS: "HH:mm:ss",
  1684. TIME_MS: "HH:mm:ss.SSS",
  1685. WEEK: "GGGG-[W]WW",
  1686. MONTH: "YYYY-MM"
  1687. }, c
  1688. });