@opfr/utils-lang 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__tests__/function.test.d.ts +1 -0
- package/dist/emojis.d.ts +25 -0
- package/dist/function.d.ts +1 -0
- package/dist/utils-lang.js +601 -576
- package/dist/utils-lang.umd.cjs +5 -5
- package/package.json +1 -1
package/dist/utils-lang.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
return (r[
|
|
4
|
-
}, []),
|
|
1
|
+
const Fn = (e, t) => e.reduce((r, s, a) => {
|
|
2
|
+
const i = Math.floor(a / t);
|
|
3
|
+
return (r[i] || (r[i] = [])).push(s), r;
|
|
4
|
+
}, []), Ln = (e, t) => e.reduce(
|
|
5
5
|
(r, s) => ((r[t(s)] = r[t(s)] || []).push(s), r),
|
|
6
6
|
{}
|
|
7
|
-
),
|
|
7
|
+
), Cn = (e, t) => [...e].sort((r, s) => t(r) < t(s) ? -1 : t(r) > t(s) ? 1 : 0), Un = (e, t, r = (s) => s) => e.filter((s) => t.some((a) => r(a) === r(s))), In = (e, t, r = (s) => s) => e.filter((s) => !t.some((a) => r(a) === r(s))), Hn = (e, t) => [...new Set(e.map((r) => t(r)))], En = (e) => {
|
|
8
8
|
for (let t = e.length - 1; t > 0; t--) {
|
|
9
9
|
const r = Math.floor(Math.random() * (t + 1));
|
|
10
10
|
[e[t], e[r]] = [e[r], e[t]];
|
|
@@ -29,7 +29,7 @@ function N(e) {
|
|
|
29
29
|
function re(e) {
|
|
30
30
|
return e != null && Object.prototype.toString.call(e) === "[object Object]";
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function p(e, t) {
|
|
33
33
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
34
34
|
}
|
|
35
35
|
function at(e) {
|
|
@@ -37,7 +37,7 @@ function at(e) {
|
|
|
37
37
|
return Object.getOwnPropertyNames(e).length === 0;
|
|
38
38
|
var t;
|
|
39
39
|
for (t in e)
|
|
40
|
-
if (
|
|
40
|
+
if (p(e, t))
|
|
41
41
|
return !1;
|
|
42
42
|
return !0;
|
|
43
43
|
}
|
|
@@ -47,7 +47,7 @@ function b(e) {
|
|
|
47
47
|
function q(e) {
|
|
48
48
|
return typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]";
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function ge(e) {
|
|
51
51
|
return e instanceof Date || Object.prototype.toString.call(e) === "[object Date]";
|
|
52
52
|
}
|
|
53
53
|
function Lt(e, t) {
|
|
@@ -58,8 +58,8 @@ function Lt(e, t) {
|
|
|
58
58
|
}
|
|
59
59
|
function Q(e, t) {
|
|
60
60
|
for (var r in t)
|
|
61
|
-
|
|
62
|
-
return
|
|
61
|
+
p(t, r) && (e[r] = t[r]);
|
|
62
|
+
return p(t, "toString") && (e.toString = t.toString), p(t, "valueOf") && (e.valueOf = t.valueOf), e;
|
|
63
63
|
}
|
|
64
64
|
function I(e, t, r, s) {
|
|
65
65
|
return ar(e, t, r, s, !0).utc();
|
|
@@ -95,7 +95,7 @@ Array.prototype.some ? Qe = Array.prototype.some : Qe = function(e) {
|
|
|
95
95
|
return !0;
|
|
96
96
|
return !1;
|
|
97
97
|
};
|
|
98
|
-
function
|
|
98
|
+
function it(e) {
|
|
99
99
|
var t = null, r = !1, s = e._d && !isNaN(e._d.getTime());
|
|
100
100
|
if (s && (t = c(e), r = Qe.call(t.parsedDateParts, function(a) {
|
|
101
101
|
return a != null;
|
|
@@ -110,15 +110,15 @@ function Le(e) {
|
|
|
110
110
|
return e != null ? Q(c(t), e) : c(t).userInvalidated = !0, t;
|
|
111
111
|
}
|
|
112
112
|
var bt = l.momentProperties = [], $e = !1;
|
|
113
|
-
function
|
|
114
|
-
var r, s, a,
|
|
115
|
-
if (b(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), b(t._i) || (e._i = t._i), b(t._f) || (e._f = t._f), b(t._l) || (e._l = t._l), b(t._strict) || (e._strict = t._strict), b(t._tzm) || (e._tzm = t._tzm), b(t._isUTC) || (e._isUTC = t._isUTC), b(t._offset) || (e._offset = t._offset), b(t._pf) || (e._pf = c(t)), b(t._locale) || (e._locale = t._locale),
|
|
116
|
-
for (r = 0; r <
|
|
113
|
+
function nt(e, t) {
|
|
114
|
+
var r, s, a, i = bt.length;
|
|
115
|
+
if (b(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), b(t._i) || (e._i = t._i), b(t._f) || (e._f = t._f), b(t._l) || (e._l = t._l), b(t._strict) || (e._strict = t._strict), b(t._tzm) || (e._tzm = t._tzm), b(t._isUTC) || (e._isUTC = t._isUTC), b(t._offset) || (e._offset = t._offset), b(t._pf) || (e._pf = c(t)), b(t._locale) || (e._locale = t._locale), i > 0)
|
|
116
|
+
for (r = 0; r < i; r++)
|
|
117
117
|
s = bt[r], a = t[s], b(a) || (e[s] = a);
|
|
118
118
|
return e;
|
|
119
119
|
}
|
|
120
120
|
function ke(e) {
|
|
121
|
-
|
|
121
|
+
nt(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), $e === !1 && ($e = !0, l.updateOffset(this), $e = !1);
|
|
122
122
|
}
|
|
123
123
|
function F(e) {
|
|
124
124
|
return e instanceof ke || e != null && e._isAMomentObject != null;
|
|
@@ -130,16 +130,16 @@ function P(e, t) {
|
|
|
130
130
|
var r = !0;
|
|
131
131
|
return Q(function() {
|
|
132
132
|
if (l.deprecationHandler != null && l.deprecationHandler(null, e), r) {
|
|
133
|
-
var s = [], a,
|
|
134
|
-
for (
|
|
135
|
-
if (a = "", typeof arguments[
|
|
133
|
+
var s = [], a, i, n, u = arguments.length;
|
|
134
|
+
for (i = 0; i < u; i++) {
|
|
135
|
+
if (a = "", typeof arguments[i] == "object") {
|
|
136
136
|
a += `
|
|
137
|
-
[` +
|
|
138
|
-
for (
|
|
139
|
-
|
|
137
|
+
[` + i + "] ";
|
|
138
|
+
for (n in arguments[0])
|
|
139
|
+
p(arguments[0], n) && (a += n + ": " + arguments[0][n] + ", ");
|
|
140
140
|
a = a.slice(0, -2);
|
|
141
141
|
} else
|
|
142
|
-
a = arguments[
|
|
142
|
+
a = arguments[i];
|
|
143
143
|
s.push(a);
|
|
144
144
|
}
|
|
145
145
|
Ct(
|
|
@@ -163,7 +163,7 @@ function H(e) {
|
|
|
163
163
|
function Tr(e) {
|
|
164
164
|
var t, r;
|
|
165
165
|
for (r in e)
|
|
166
|
-
|
|
166
|
+
p(e, r) && (t = e[r], H(t) ? this[r] = t : this["_" + r] = t);
|
|
167
167
|
this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp(
|
|
168
168
|
(this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
|
|
169
169
|
);
|
|
@@ -171,9 +171,9 @@ function Tr(e) {
|
|
|
171
171
|
function Ke(e, t) {
|
|
172
172
|
var r = Q({}, e), s;
|
|
173
173
|
for (s in t)
|
|
174
|
-
|
|
174
|
+
p(t, s) && (re(e[s]) && re(t[s]) ? (r[s] = {}, Q(r[s], e[s]), Q(r[s], t[s])) : t[s] != null ? r[s] = t[s] : delete r[s]);
|
|
175
175
|
for (s in e)
|
|
176
|
-
|
|
176
|
+
p(e, s) && !p(t, s) && re(e[s]) && (r[s] = Q({}, r[s]));
|
|
177
177
|
return r;
|
|
178
178
|
}
|
|
179
179
|
function ot(e) {
|
|
@@ -183,7 +183,7 @@ var Xe;
|
|
|
183
183
|
Object.keys ? Xe = Object.keys : Xe = function(e) {
|
|
184
184
|
var t, r = [];
|
|
185
185
|
for (t in e)
|
|
186
|
-
|
|
186
|
+
p(e, t) && r.push(t);
|
|
187
187
|
return r;
|
|
188
188
|
};
|
|
189
189
|
var xr = {
|
|
@@ -199,10 +199,10 @@ function Pr(e, t, r) {
|
|
|
199
199
|
return H(s) ? s.call(t, r) : s;
|
|
200
200
|
}
|
|
201
201
|
function U(e, t, r) {
|
|
202
|
-
var s = "" + Math.abs(e), a = t - s.length,
|
|
203
|
-
return (
|
|
202
|
+
var s = "" + Math.abs(e), a = t - s.length, i = e >= 0;
|
|
203
|
+
return (i ? r ? "+" : "" : "-") + Math.pow(10, Math.max(0, a)).toString().substr(1) + s;
|
|
204
204
|
}
|
|
205
|
-
var lt = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
|
|
205
|
+
var lt = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, De = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, qe = {}, oe = {};
|
|
206
206
|
function h(e, t, r, s) {
|
|
207
207
|
var a = s;
|
|
208
208
|
typeof s == "string" && (a = function() {
|
|
@@ -224,10 +224,10 @@ function Rr(e) {
|
|
|
224
224
|
for (r = 0, s = t.length; r < s; r++)
|
|
225
225
|
oe[t[r]] ? t[r] = oe[t[r]] : t[r] = Wr(t[r]);
|
|
226
226
|
return function(a) {
|
|
227
|
-
var
|
|
228
|
-
for (
|
|
229
|
-
|
|
230
|
-
return
|
|
227
|
+
var i = "", n;
|
|
228
|
+
for (n = 0; n < s; n++)
|
|
229
|
+
i += H(t[n]) ? t[n].call(a, e) : t[n];
|
|
230
|
+
return i;
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
233
|
function be(e, t) {
|
|
@@ -238,11 +238,11 @@ function It(e, t) {
|
|
|
238
238
|
function s(a) {
|
|
239
239
|
return t.longDateFormat(a) || a;
|
|
240
240
|
}
|
|
241
|
-
for (
|
|
241
|
+
for (De.lastIndex = 0; r >= 0 && De.test(e); )
|
|
242
242
|
e = e.replace(
|
|
243
|
-
|
|
243
|
+
De,
|
|
244
244
|
s
|
|
245
|
-
),
|
|
245
|
+
), De.lastIndex = 0, r -= 1;
|
|
246
246
|
return e;
|
|
247
247
|
}
|
|
248
248
|
var Nr = {
|
|
@@ -349,7 +349,7 @@ function W(e) {
|
|
|
349
349
|
function ut(e) {
|
|
350
350
|
var t = {}, r, s;
|
|
351
351
|
for (s in e)
|
|
352
|
-
|
|
352
|
+
p(e, s) && (r = W(s), r && (t[r] = e[s]));
|
|
353
353
|
return t;
|
|
354
354
|
}
|
|
355
355
|
var Vr = {
|
|
@@ -373,12 +373,12 @@ var Vr = {
|
|
|
373
373
|
function Gr(e) {
|
|
374
374
|
var t = [], r;
|
|
375
375
|
for (r in e)
|
|
376
|
-
|
|
376
|
+
p(e, r) && t.push({ unit: r, priority: Vr[r] });
|
|
377
377
|
return t.sort(function(s, a) {
|
|
378
378
|
return s.priority - a.priority;
|
|
379
379
|
}), t;
|
|
380
380
|
}
|
|
381
|
-
var Ht = /\d/, T = /\d\d/, Et = /\d{3}/, dt = /\d{4}/, Ce = /[+-]?\d{6}/, k = /\d\d?/, At = /\d\d\d\d?/, jt = /\d\d\d\d\d\d?/, Ue = /\d{1,3}/, ht = /\d{1,4}/, Ie = /[+-]?\d{1,6}/, de = /\d+/, He = /[+-]?\d+/, zr = /Z|[+-]\d\d:?\d\d/gi, Ee = /Z|[+-]\d\d(?::?\d\d)?/gi, $r = /[+-]?\d+(\.\d{1,3})?/,
|
|
381
|
+
var Ht = /\d/, T = /\d\d/, Et = /\d{3}/, dt = /\d{4}/, Ce = /[+-]?\d{6}/, k = /\d\d?/, At = /\d\d\d\d?/, jt = /\d\d\d\d\d\d?/, Ue = /\d{1,3}/, ht = /\d{1,4}/, Ie = /[+-]?\d{1,6}/, de = /\d+/, He = /[+-]?\d+/, zr = /Z|[+-]\d\d:?\d\d/gi, Ee = /Z|[+-]\d\d(?::?\d\d)?/gi, $r = /[+-]?\d+(\.\d{1,3})?/, Se = /[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, he = /^[1-9]\d?/, ft = /^([1-9]\d|\d)/, Pe;
|
|
382
382
|
Pe = {};
|
|
383
383
|
function d(e, t, r) {
|
|
384
384
|
Pe[e] = H(t) ? t : function(s, a) {
|
|
@@ -386,14 +386,14 @@ function d(e, t, r) {
|
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
388
|
function qr(e, t) {
|
|
389
|
-
return
|
|
389
|
+
return p(Pe, e) ? Pe[e](t._strict, t._locale) : new RegExp(Zr(e));
|
|
390
390
|
}
|
|
391
391
|
function Zr(e) {
|
|
392
392
|
return z(
|
|
393
393
|
e.replace("\\", "").replace(
|
|
394
394
|
/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
|
|
395
|
-
function(t, r, s, a,
|
|
396
|
-
return r || s || a ||
|
|
395
|
+
function(t, r, s, a, i) {
|
|
396
|
+
return r || s || a || i;
|
|
397
397
|
}
|
|
398
398
|
)
|
|
399
399
|
);
|
|
@@ -409,25 +409,25 @@ function m(e) {
|
|
|
409
409
|
return t !== 0 && isFinite(t) && (r = x(t)), r;
|
|
410
410
|
}
|
|
411
411
|
var et = {};
|
|
412
|
-
function
|
|
412
|
+
function M(e, t) {
|
|
413
413
|
var r, s = t, a;
|
|
414
|
-
for (typeof e == "string" && (e = [e]), q(t) && (s = function(
|
|
415
|
-
|
|
414
|
+
for (typeof e == "string" && (e = [e]), q(t) && (s = function(i, n) {
|
|
415
|
+
n[t] = m(i);
|
|
416
416
|
}), a = e.length, r = 0; r < a; r++)
|
|
417
417
|
et[e[r]] = s;
|
|
418
418
|
}
|
|
419
|
-
function
|
|
420
|
-
|
|
421
|
-
a._w = a._w || {}, t(r, a._w, a,
|
|
419
|
+
function ve(e, t) {
|
|
420
|
+
M(e, function(r, s, a, i) {
|
|
421
|
+
a._w = a._w || {}, t(r, a._w, a, i);
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
424
|
function Br(e, t, r) {
|
|
425
|
-
t != null &&
|
|
425
|
+
t != null && p(et, e) && et[e](t, r._a, r, e);
|
|
426
426
|
}
|
|
427
427
|
function Ae(e) {
|
|
428
428
|
return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
|
|
429
429
|
}
|
|
430
|
-
var Y = 0, V = 1, C = 2,
|
|
430
|
+
var Y = 0, V = 1, C = 2, D = 3, R = 4, G = 5, te = 6, Jr = 7, Qr = 8;
|
|
431
431
|
h("Y", 0, 0, function() {
|
|
432
432
|
var e = this.year();
|
|
433
433
|
return e <= 9999 ? U(e, 4) : "+" + e;
|
|
@@ -443,14 +443,14 @@ d("YY", k, T);
|
|
|
443
443
|
d("YYYY", ht, dt);
|
|
444
444
|
d("YYYYY", Ie, Ce);
|
|
445
445
|
d("YYYYYY", Ie, Ce);
|
|
446
|
-
|
|
447
|
-
|
|
446
|
+
M(["YYYYY", "YYYYYY"], Y);
|
|
447
|
+
M("YYYY", function(e, t) {
|
|
448
448
|
t[Y] = e.length === 2 ? l.parseTwoDigitYear(e) : m(e);
|
|
449
449
|
});
|
|
450
|
-
|
|
450
|
+
M("YY", function(e, t) {
|
|
451
451
|
t[Y] = l.parseTwoDigitYear(e);
|
|
452
452
|
});
|
|
453
|
-
|
|
453
|
+
M("Y", function(e, t) {
|
|
454
454
|
t[Y] = parseInt(e, 10);
|
|
455
455
|
});
|
|
456
456
|
function _e(e) {
|
|
@@ -494,7 +494,7 @@ function ye(e, t) {
|
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
496
|
function Gt(e, t, r) {
|
|
497
|
-
var s, a,
|
|
497
|
+
var s, a, i, n, u;
|
|
498
498
|
if (!(!e.isValid() || isNaN(r))) {
|
|
499
499
|
switch (s = e._d, a = e._isUTC, t) {
|
|
500
500
|
case "Milliseconds":
|
|
@@ -512,7 +512,7 @@ function Gt(e, t, r) {
|
|
|
512
512
|
default:
|
|
513
513
|
return;
|
|
514
514
|
}
|
|
515
|
-
|
|
515
|
+
i = r, n = e.month(), u = e.date(), u = u === 29 && n === 1 && !Ae(i) ? 28 : u, a ? s.setUTCFullYear(i, n, u) : s.setFullYear(i, n, u);
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
function Xr(e) {
|
|
@@ -531,8 +531,8 @@ function es(e, t) {
|
|
|
531
531
|
function ts(e, t) {
|
|
532
532
|
return (e % t + t) % t;
|
|
533
533
|
}
|
|
534
|
-
var
|
|
535
|
-
Array.prototype.indexOf ?
|
|
534
|
+
var v;
|
|
535
|
+
Array.prototype.indexOf ? v = Array.prototype.indexOf : v = function(e) {
|
|
536
536
|
var t;
|
|
537
537
|
for (t = 0; t < this.length; ++t)
|
|
538
538
|
if (this[t] === e)
|
|
@@ -562,34 +562,34 @@ d("MMM", function(e, t) {
|
|
|
562
562
|
d("MMMM", function(e, t) {
|
|
563
563
|
return t.monthsRegex(e);
|
|
564
564
|
});
|
|
565
|
-
|
|
565
|
+
M(["M", "MM"], function(e, t) {
|
|
566
566
|
t[V] = m(e) - 1;
|
|
567
567
|
});
|
|
568
|
-
|
|
568
|
+
M(["MMM", "MMMM"], function(e, t, r, s) {
|
|
569
569
|
var a = r._locale.monthsParse(e, s, r._strict);
|
|
570
570
|
a != null ? t[V] = a : c(r).invalidMonth = e;
|
|
571
571
|
});
|
|
572
572
|
var rs = "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
573
573
|
"_"
|
|
574
|
-
), zt = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), $t = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, ss =
|
|
575
|
-
function
|
|
574
|
+
), zt = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), $t = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, ss = Se, as = Se;
|
|
575
|
+
function is(e, t) {
|
|
576
576
|
return e ? N(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || $t).test(t) ? "format" : "standalone"][e.month()] : N(this._months) ? this._months : this._months.standalone;
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function ns(e, t) {
|
|
579
579
|
return e ? N(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[$t.test(t) ? "format" : "standalone"][e.month()] : N(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
|
|
580
580
|
}
|
|
581
581
|
function os(e, t, r) {
|
|
582
|
-
var s, a,
|
|
582
|
+
var s, a, i, n = e.toLocaleLowerCase();
|
|
583
583
|
if (!this._monthsParse)
|
|
584
584
|
for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], s = 0; s < 12; ++s)
|
|
585
|
-
|
|
586
|
-
|
|
585
|
+
i = I([2e3, s]), this._shortMonthsParse[s] = this.monthsShort(
|
|
586
|
+
i,
|
|
587
587
|
""
|
|
588
|
-
).toLocaleLowerCase(), this._longMonthsParse[s] = this.months(
|
|
589
|
-
return r ? t === "MMM" ? (a =
|
|
588
|
+
).toLocaleLowerCase(), this._longMonthsParse[s] = this.months(i, "").toLocaleLowerCase();
|
|
589
|
+
return r ? t === "MMM" ? (a = v.call(this._shortMonthsParse, n), a !== -1 ? a : null) : (a = v.call(this._longMonthsParse, n), a !== -1 ? a : null) : t === "MMM" ? (a = v.call(this._shortMonthsParse, n), a !== -1 ? a : (a = v.call(this._longMonthsParse, n), a !== -1 ? a : null)) : (a = v.call(this._longMonthsParse, n), a !== -1 ? a : (a = v.call(this._shortMonthsParse, n), a !== -1 ? a : null));
|
|
590
590
|
}
|
|
591
591
|
function ls(e, t, r) {
|
|
592
|
-
var s, a,
|
|
592
|
+
var s, a, i;
|
|
593
593
|
if (this._monthsParseExact)
|
|
594
594
|
return os.call(this, e, t, r);
|
|
595
595
|
for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), s = 0; s < 12; s++) {
|
|
@@ -599,7 +599,7 @@ function ls(e, t, r) {
|
|
|
599
599
|
), this._shortMonthsParse[s] = new RegExp(
|
|
600
600
|
"^" + this.monthsShort(a, "").replace(".", "") + "$",
|
|
601
601
|
"i"
|
|
602
|
-
)), !r && !this._monthsParse[s] && (
|
|
602
|
+
)), !r && !this._monthsParse[s] && (i = "^" + this.months(a, "") + "|^" + this.monthsShort(a, ""), this._monthsParse[s] = new RegExp(i.replace(".", ""), "i")), r && t === "MMMM" && this._longMonthsParse[s].test(e))
|
|
603
603
|
return s;
|
|
604
604
|
if (r && t === "MMM" && this._shortMonthsParse[s].test(e))
|
|
605
605
|
return s;
|
|
@@ -626,18 +626,18 @@ function us() {
|
|
|
626
626
|
return ct(this.year(), this.month());
|
|
627
627
|
}
|
|
628
628
|
function ds(e) {
|
|
629
|
-
return this._monthsParseExact ? (
|
|
629
|
+
return this._monthsParseExact ? (p(this, "_monthsRegex") || Bt.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (p(this, "_monthsShortRegex") || (this._monthsShortRegex = ss), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);
|
|
630
630
|
}
|
|
631
631
|
function hs(e) {
|
|
632
|
-
return this._monthsParseExact ? (
|
|
632
|
+
return this._monthsParseExact ? (p(this, "_monthsRegex") || Bt.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (p(this, "_monthsRegex") || (this._monthsRegex = as), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);
|
|
633
633
|
}
|
|
634
634
|
function Bt() {
|
|
635
635
|
function e(f, _) {
|
|
636
636
|
return _.length - f.length;
|
|
637
637
|
}
|
|
638
|
-
var t = [], r = [], s = [], a,
|
|
638
|
+
var t = [], r = [], s = [], a, i, n, u;
|
|
639
639
|
for (a = 0; a < 12; a++)
|
|
640
|
-
|
|
640
|
+
i = I([2e3, a]), n = z(this.monthsShort(i, "")), u = z(this.months(i, "")), t.push(n), r.push(u), s.push(u), s.push(n);
|
|
641
641
|
t.sort(e), r.sort(e), s.sort(e), this._monthsRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
|
|
642
642
|
"^(" + r.join("|") + ")",
|
|
643
643
|
"i"
|
|
@@ -646,30 +646,30 @@ function Bt() {
|
|
|
646
646
|
"i"
|
|
647
647
|
);
|
|
648
648
|
}
|
|
649
|
-
function fs(e, t, r, s, a,
|
|
649
|
+
function fs(e, t, r, s, a, i, n) {
|
|
650
650
|
var u;
|
|
651
|
-
return e < 100 && e >= 0 ? (u = new Date(e + 400, t, r, s, a,
|
|
651
|
+
return e < 100 && e >= 0 ? (u = new Date(e + 400, t, r, s, a, i, n), isFinite(u.getFullYear()) && u.setFullYear(e)) : u = new Date(e, t, r, s, a, i, n), u;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function pe(e) {
|
|
654
654
|
var t, r;
|
|
655
655
|
return e < 100 && e >= 0 ? (r = Array.prototype.slice.call(arguments), r[0] = e + 400, t = new Date(Date.UTC.apply(null, r)), isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e)) : t = new Date(Date.UTC.apply(null, arguments)), t;
|
|
656
656
|
}
|
|
657
657
|
function We(e, t, r) {
|
|
658
|
-
var s = 7 + t - r, a = (7 +
|
|
658
|
+
var s = 7 + t - r, a = (7 + pe(e, 0, s).getUTCDay() - t) % 7;
|
|
659
659
|
return -a + s - 1;
|
|
660
660
|
}
|
|
661
661
|
function Jt(e, t, r, s, a) {
|
|
662
|
-
var
|
|
662
|
+
var i = (7 + r - s) % 7, n = We(e, s, a), u = 1 + 7 * (t - 1) + i + n, f, _;
|
|
663
663
|
return u <= 0 ? (f = e - 1, _ = _e(f) + u) : u > _e(e) ? (f = e + 1, _ = u - _e(e)) : (f = e, _ = u), {
|
|
664
664
|
year: f,
|
|
665
665
|
dayOfYear: _
|
|
666
666
|
};
|
|
667
667
|
}
|
|
668
|
-
function
|
|
669
|
-
var s = We(e.year(), t, r), a = Math.floor((e.dayOfYear() - s - 1) / 7) + 1,
|
|
670
|
-
return a < 1 ? (
|
|
671
|
-
week:
|
|
672
|
-
year:
|
|
668
|
+
function we(e, t, r) {
|
|
669
|
+
var s = We(e.year(), t, r), a = Math.floor((e.dayOfYear() - s - 1) / 7) + 1, i, n;
|
|
670
|
+
return a < 1 ? (n = e.year() - 1, i = a + $(n, t, r)) : a > $(e.year(), t, r) ? (i = a - $(e.year(), t, r), n = e.year() + 1) : (n = e.year(), i = a), {
|
|
671
|
+
week: i,
|
|
672
|
+
year: n
|
|
673
673
|
};
|
|
674
674
|
}
|
|
675
675
|
function $(e, t, r) {
|
|
@@ -682,14 +682,14 @@ d("w", k, he);
|
|
|
682
682
|
d("ww", k, T);
|
|
683
683
|
d("W", k, he);
|
|
684
684
|
d("WW", k, T);
|
|
685
|
-
|
|
685
|
+
ve(
|
|
686
686
|
["w", "ww", "W", "WW"],
|
|
687
687
|
function(e, t, r, s) {
|
|
688
688
|
t[s.substr(0, 1)] = m(e);
|
|
689
689
|
}
|
|
690
690
|
);
|
|
691
691
|
function cs(e) {
|
|
692
|
-
return
|
|
692
|
+
return we(e, this._week.dow, this._week.doy).week;
|
|
693
693
|
}
|
|
694
694
|
var ms = {
|
|
695
695
|
dow: 0,
|
|
@@ -703,12 +703,12 @@ function _s() {
|
|
|
703
703
|
function ys() {
|
|
704
704
|
return this._week.doy;
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function ps(e) {
|
|
707
707
|
var t = this.localeData().week(this);
|
|
708
708
|
return e == null ? t : this.add((e - t) * 7, "d");
|
|
709
709
|
}
|
|
710
|
-
function
|
|
711
|
-
var t =
|
|
710
|
+
function ws(e) {
|
|
711
|
+
var t = we(this, 1, 4).week;
|
|
712
712
|
return e == null ? t : this.add((e - t) * 7, "d");
|
|
713
713
|
}
|
|
714
714
|
h("d", 0, "do", "day");
|
|
@@ -735,23 +735,23 @@ d("ddd", function(e, t) {
|
|
|
735
735
|
d("dddd", function(e, t) {
|
|
736
736
|
return t.weekdaysRegex(e);
|
|
737
737
|
});
|
|
738
|
-
|
|
738
|
+
ve(["dd", "ddd", "dddd"], function(e, t, r, s) {
|
|
739
739
|
var a = r._locale.weekdaysParse(e, s, r._strict);
|
|
740
740
|
a != null ? t.d = a : c(r).invalidWeekday = e;
|
|
741
741
|
});
|
|
742
|
-
|
|
742
|
+
ve(["d", "e", "E"], function(e, t, r, s) {
|
|
743
743
|
t[s] = m(e);
|
|
744
744
|
});
|
|
745
|
-
function
|
|
745
|
+
function Ms(e, t) {
|
|
746
746
|
return typeof e != "string" ? e : isNaN(e) ? (e = t.weekdaysParse(e), typeof e == "number" ? e : null) : parseInt(e, 10);
|
|
747
747
|
}
|
|
748
|
-
function
|
|
748
|
+
function gs(e, t) {
|
|
749
749
|
return typeof e == "string" ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e;
|
|
750
750
|
}
|
|
751
751
|
function mt(e, t) {
|
|
752
752
|
return e.slice(t, 7).concat(e.slice(0, t));
|
|
753
753
|
}
|
|
754
|
-
var ks = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), Qt = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
|
|
754
|
+
var ks = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), Qt = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), Ss = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), vs = Se, Ds = Se, Ys = Se;
|
|
755
755
|
function Os(e, t) {
|
|
756
756
|
var r = N(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
|
|
757
757
|
return e === !0 ? mt(r, this._week.dow) : e ? r[e.day()] : r;
|
|
@@ -763,20 +763,20 @@ function Ts(e) {
|
|
|
763
763
|
return e === !0 ? mt(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
|
|
764
764
|
}
|
|
765
765
|
function xs(e, t, r) {
|
|
766
|
-
var s, a,
|
|
766
|
+
var s, a, i, n = e.toLocaleLowerCase();
|
|
767
767
|
if (!this._weekdaysParse)
|
|
768
768
|
for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], s = 0; s < 7; ++s)
|
|
769
|
-
|
|
770
|
-
|
|
769
|
+
i = I([2e3, 1]).day(s), this._minWeekdaysParse[s] = this.weekdaysMin(
|
|
770
|
+
i,
|
|
771
771
|
""
|
|
772
772
|
).toLocaleLowerCase(), this._shortWeekdaysParse[s] = this.weekdaysShort(
|
|
773
|
-
|
|
773
|
+
i,
|
|
774
774
|
""
|
|
775
|
-
).toLocaleLowerCase(), this._weekdaysParse[s] = this.weekdays(
|
|
776
|
-
return r ? t === "dddd" ? (a =
|
|
775
|
+
).toLocaleLowerCase(), this._weekdaysParse[s] = this.weekdays(i, "").toLocaleLowerCase();
|
|
776
|
+
return r ? t === "dddd" ? (a = v.call(this._weekdaysParse, n), a !== -1 ? a : null) : t === "ddd" ? (a = v.call(this._shortWeekdaysParse, n), a !== -1 ? a : null) : (a = v.call(this._minWeekdaysParse, n), a !== -1 ? a : null) : t === "dddd" ? (a = v.call(this._weekdaysParse, n), a !== -1 || (a = v.call(this._shortWeekdaysParse, n), a !== -1) ? a : (a = v.call(this._minWeekdaysParse, n), a !== -1 ? a : null)) : t === "ddd" ? (a = v.call(this._shortWeekdaysParse, n), a !== -1 || (a = v.call(this._weekdaysParse, n), a !== -1) ? a : (a = v.call(this._minWeekdaysParse, n), a !== -1 ? a : null)) : (a = v.call(this._minWeekdaysParse, n), a !== -1 || (a = v.call(this._weekdaysParse, n), a !== -1) ? a : (a = v.call(this._shortWeekdaysParse, n), a !== -1 ? a : null));
|
|
777
777
|
}
|
|
778
778
|
function Ps(e, t, r) {
|
|
779
|
-
var s, a,
|
|
779
|
+
var s, a, i;
|
|
780
780
|
if (this._weekdaysParseExact)
|
|
781
781
|
return xs.call(this, e, t, r);
|
|
782
782
|
for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), s = 0; s < 7; s++) {
|
|
@@ -789,7 +789,7 @@ function Ps(e, t, r) {
|
|
|
789
789
|
), this._minWeekdaysParse[s] = new RegExp(
|
|
790
790
|
"^" + this.weekdaysMin(a, "").replace(".", "\\.?") + "$",
|
|
791
791
|
"i"
|
|
792
|
-
)), this._weekdaysParse[s] || (
|
|
792
|
+
)), this._weekdaysParse[s] || (i = "^" + this.weekdays(a, "") + "|^" + this.weekdaysShort(a, "") + "|^" + this.weekdaysMin(a, ""), this._weekdaysParse[s] = new RegExp(i.replace(".", ""), "i")), r && t === "dddd" && this._fullWeekdaysParse[s].test(e))
|
|
793
793
|
return s;
|
|
794
794
|
if (r && t === "ddd" && this._shortWeekdaysParse[s].test(e))
|
|
795
795
|
return s;
|
|
@@ -803,7 +803,7 @@ function Ws(e) {
|
|
|
803
803
|
if (!this.isValid())
|
|
804
804
|
return e != null ? this : NaN;
|
|
805
805
|
var t = ye(this, "Day");
|
|
806
|
-
return e != null ? (e =
|
|
806
|
+
return e != null ? (e = Ms(e, this.localeData()), this.add(e - t, "d")) : t;
|
|
807
807
|
}
|
|
808
808
|
function Rs(e) {
|
|
809
809
|
if (!this.isValid())
|
|
@@ -815,27 +815,27 @@ function Ns(e) {
|
|
|
815
815
|
if (!this.isValid())
|
|
816
816
|
return e != null ? this : NaN;
|
|
817
817
|
if (e != null) {
|
|
818
|
-
var t =
|
|
818
|
+
var t = gs(e, this.localeData());
|
|
819
819
|
return this.day(this.day() % 7 ? t : t - 7);
|
|
820
820
|
} else
|
|
821
821
|
return this.day() || 7;
|
|
822
822
|
}
|
|
823
823
|
function Fs(e) {
|
|
824
|
-
return this._weekdaysParseExact ? (
|
|
824
|
+
return this._weekdaysParseExact ? (p(this, "_weekdaysRegex") || _t.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (p(this, "_weekdaysRegex") || (this._weekdaysRegex = vs), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex);
|
|
825
825
|
}
|
|
826
826
|
function Ls(e) {
|
|
827
|
-
return this._weekdaysParseExact ? (
|
|
827
|
+
return this._weekdaysParseExact ? (p(this, "_weekdaysRegex") || _t.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (p(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = Ds), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
|
|
828
828
|
}
|
|
829
829
|
function Cs(e) {
|
|
830
|
-
return this._weekdaysParseExact ? (
|
|
830
|
+
return this._weekdaysParseExact ? (p(this, "_weekdaysRegex") || _t.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (p(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Ys), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
|
|
831
831
|
}
|
|
832
832
|
function _t() {
|
|
833
833
|
function e(O, E) {
|
|
834
834
|
return E.length - O.length;
|
|
835
835
|
}
|
|
836
|
-
var t = [], r = [], s = [], a = [],
|
|
837
|
-
for (
|
|
838
|
-
|
|
836
|
+
var t = [], r = [], s = [], a = [], i, n, u, f, _;
|
|
837
|
+
for (i = 0; i < 7; i++)
|
|
838
|
+
n = I([2e3, 1]).day(i), u = z(this.weekdaysMin(n, "")), f = z(this.weekdaysShort(n, "")), _ = z(this.weekdays(n, "")), t.push(u), r.push(f), s.push(_), a.push(u), a.push(f), a.push(_);
|
|
839
839
|
t.sort(e), r.sort(e), s.sort(e), a.sort(e), this._weekdaysRegex = new RegExp("^(" + a.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
|
|
840
840
|
"^(" + s.join("|") + ")",
|
|
841
841
|
"i"
|
|
@@ -894,32 +894,32 @@ d("hmm", At);
|
|
|
894
894
|
d("hmmss", jt);
|
|
895
895
|
d("Hmm", At);
|
|
896
896
|
d("Hmmss", jt);
|
|
897
|
-
|
|
898
|
-
|
|
897
|
+
M(["H", "HH"], D);
|
|
898
|
+
M(["k", "kk"], function(e, t, r) {
|
|
899
899
|
var s = m(e);
|
|
900
|
-
t[
|
|
900
|
+
t[D] = s === 24 ? 0 : s;
|
|
901
901
|
});
|
|
902
|
-
|
|
902
|
+
M(["a", "A"], function(e, t, r) {
|
|
903
903
|
r._isPm = r._locale.isPM(e), r._meridiem = e;
|
|
904
904
|
});
|
|
905
|
-
|
|
906
|
-
t[
|
|
905
|
+
M(["h", "hh"], function(e, t, r) {
|
|
906
|
+
t[D] = m(e), c(r).bigHour = !0;
|
|
907
907
|
});
|
|
908
|
-
|
|
908
|
+
M("hmm", function(e, t, r) {
|
|
909
909
|
var s = e.length - 2;
|
|
910
|
-
t[
|
|
910
|
+
t[D] = m(e.substr(0, s)), t[R] = m(e.substr(s)), c(r).bigHour = !0;
|
|
911
911
|
});
|
|
912
|
-
|
|
912
|
+
M("hmmss", function(e, t, r) {
|
|
913
913
|
var s = e.length - 4, a = e.length - 2;
|
|
914
|
-
t[
|
|
914
|
+
t[D] = m(e.substr(0, s)), t[R] = m(e.substr(s, 2)), t[G] = m(e.substr(a)), c(r).bigHour = !0;
|
|
915
915
|
});
|
|
916
|
-
|
|
916
|
+
M("Hmm", function(e, t, r) {
|
|
917
917
|
var s = e.length - 2;
|
|
918
|
-
t[
|
|
918
|
+
t[D] = m(e.substr(0, s)), t[R] = m(e.substr(s));
|
|
919
919
|
});
|
|
920
|
-
|
|
920
|
+
M("Hmmss", function(e, t, r) {
|
|
921
921
|
var s = e.length - 4, a = e.length - 2;
|
|
922
|
-
t[
|
|
922
|
+
t[D] = m(e.substr(0, s)), t[R] = m(e.substr(s, 2)), t[G] = m(e.substr(a));
|
|
923
923
|
});
|
|
924
924
|
function Is(e) {
|
|
925
925
|
return (e + "").toLowerCase().charAt(0) === "p";
|
|
@@ -939,10 +939,10 @@ var er = {
|
|
|
939
939
|
monthsShort: zt,
|
|
940
940
|
week: ms,
|
|
941
941
|
weekdays: ks,
|
|
942
|
-
weekdaysMin:
|
|
942
|
+
weekdaysMin: Ss,
|
|
943
943
|
weekdaysShort: Qt,
|
|
944
944
|
meridiemParse: Hs
|
|
945
|
-
},
|
|
945
|
+
}, S = {}, ce = {}, Me;
|
|
946
946
|
function js(e, t) {
|
|
947
947
|
var r, s = Math.min(e.length, t.length);
|
|
948
948
|
for (r = 0; r < s; r += 1)
|
|
@@ -954,48 +954,48 @@ function Pt(e) {
|
|
|
954
954
|
return e && e.toLowerCase().replace("_", "-");
|
|
955
955
|
}
|
|
956
956
|
function Vs(e) {
|
|
957
|
-
for (var t = 0, r, s, a,
|
|
958
|
-
for (
|
|
959
|
-
if (a = je(
|
|
957
|
+
for (var t = 0, r, s, a, i; t < e.length; ) {
|
|
958
|
+
for (i = Pt(e[t]).split("-"), r = i.length, s = Pt(e[t + 1]), s = s ? s.split("-") : null; r > 0; ) {
|
|
959
|
+
if (a = je(i.slice(0, r).join("-")), a)
|
|
960
960
|
return a;
|
|
961
|
-
if (s && s.length >= r && js(
|
|
961
|
+
if (s && s.length >= r && js(i, s) >= r - 1)
|
|
962
962
|
break;
|
|
963
963
|
r--;
|
|
964
964
|
}
|
|
965
965
|
t++;
|
|
966
966
|
}
|
|
967
|
-
return
|
|
967
|
+
return Me;
|
|
968
968
|
}
|
|
969
969
|
function Gs(e) {
|
|
970
970
|
return !!(e && e.match("^[^/\\\\]*$"));
|
|
971
971
|
}
|
|
972
972
|
function je(e) {
|
|
973
973
|
var t = null, r;
|
|
974
|
-
if (
|
|
974
|
+
if (S[e] === void 0 && typeof module < "u" && module && module.exports && Gs(e))
|
|
975
975
|
try {
|
|
976
|
-
t =
|
|
976
|
+
t = Me._abbr, r = require, r("./locale/" + e), X(t);
|
|
977
977
|
} catch {
|
|
978
|
-
|
|
978
|
+
S[e] = null;
|
|
979
979
|
}
|
|
980
|
-
return
|
|
980
|
+
return S[e];
|
|
981
981
|
}
|
|
982
982
|
function X(e, t) {
|
|
983
983
|
var r;
|
|
984
|
-
return e && (b(t) ? r = Z(e) : r =
|
|
984
|
+
return e && (b(t) ? r = Z(e) : r = pt(e, t), r ? Me = r : typeof console < "u" && console.warn && console.warn(
|
|
985
985
|
"Locale " + e + " not found. Did you forget to load it?"
|
|
986
|
-
)),
|
|
986
|
+
)), Me._abbr;
|
|
987
987
|
}
|
|
988
|
-
function
|
|
988
|
+
function pt(e, t) {
|
|
989
989
|
if (t !== null) {
|
|
990
990
|
var r, s = er;
|
|
991
|
-
if (t.abbr = e,
|
|
991
|
+
if (t.abbr = e, S[e] != null)
|
|
992
992
|
Ut(
|
|
993
993
|
"defineLocaleOverride",
|
|
994
994
|
"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."
|
|
995
|
-
), s =
|
|
995
|
+
), s = S[e]._config;
|
|
996
996
|
else if (t.parentLocale != null)
|
|
997
|
-
if (
|
|
998
|
-
s =
|
|
997
|
+
if (S[t.parentLocale] != null)
|
|
998
|
+
s = S[t.parentLocale]._config;
|
|
999
999
|
else if (r = je(t.parentLocale), r != null)
|
|
1000
1000
|
s = r._config;
|
|
1001
1001
|
else
|
|
@@ -1003,24 +1003,24 @@ function wt(e, t) {
|
|
|
1003
1003
|
name: e,
|
|
1004
1004
|
config: t
|
|
1005
1005
|
}), null;
|
|
1006
|
-
return
|
|
1007
|
-
|
|
1008
|
-
}), X(e),
|
|
1006
|
+
return S[e] = new ot(Ke(s, t)), ce[e] && ce[e].forEach(function(a) {
|
|
1007
|
+
pt(a.name, a.config);
|
|
1008
|
+
}), X(e), S[e];
|
|
1009
1009
|
} else
|
|
1010
|
-
return delete
|
|
1010
|
+
return delete S[e], null;
|
|
1011
1011
|
}
|
|
1012
1012
|
function zs(e, t) {
|
|
1013
1013
|
if (t != null) {
|
|
1014
1014
|
var r, s, a = er;
|
|
1015
|
-
|
|
1015
|
+
S[e] != null && S[e].parentLocale != null ? S[e].set(Ke(S[e]._config, t)) : (s = je(e), s != null && (a = s._config), t = Ke(a, t), s == null && (t.abbr = e), r = new ot(t), r.parentLocale = S[e], S[e] = r), X(e);
|
|
1016
1016
|
} else
|
|
1017
|
-
|
|
1018
|
-
return
|
|
1017
|
+
S[e] != null && (S[e].parentLocale != null ? (S[e] = S[e].parentLocale, e === X() && X(e)) : S[e] != null && delete S[e]);
|
|
1018
|
+
return S[e];
|
|
1019
1019
|
}
|
|
1020
1020
|
function Z(e) {
|
|
1021
1021
|
var t;
|
|
1022
1022
|
if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)
|
|
1023
|
-
return
|
|
1023
|
+
return Me;
|
|
1024
1024
|
if (!N(e)) {
|
|
1025
1025
|
if (t = je(e), t)
|
|
1026
1026
|
return t;
|
|
@@ -1029,11 +1029,11 @@ function Z(e) {
|
|
|
1029
1029
|
return Vs(e);
|
|
1030
1030
|
}
|
|
1031
1031
|
function $s() {
|
|
1032
|
-
return Xe(
|
|
1032
|
+
return Xe(S);
|
|
1033
1033
|
}
|
|
1034
|
-
function
|
|
1034
|
+
function wt(e) {
|
|
1035
1035
|
var t, r = e._a;
|
|
1036
|
-
return r && c(e).overflow === -2 && (t = r[V] < 0 || r[V] > 11 ? V : r[C] < 1 || r[C] > ct(r[Y], r[V]) ? C : r[
|
|
1036
|
+
return r && c(e).overflow === -2 && (t = r[V] < 0 || r[V] > 11 ? V : r[C] < 1 || r[C] > ct(r[Y], r[V]) ? C : r[D] < 0 || r[D] > 24 || r[D] === 24 && (r[R] !== 0 || r[G] !== 0 || r[te] !== 0) ? D : r[R] < 0 || r[R] > 59 ? R : r[G] < 0 || r[G] > 59 ? G : r[te] < 0 || r[te] > 999 ? te : -1, c(e)._overflowDayOfYear && (t < Y || t > C) && (t = C), c(e)._overflowWeeks && t === -1 && (t = Jr), c(e)._overflowWeekday && t === -1 && (t = Qr), c(e).overflow = t), e;
|
|
1037
1037
|
}
|
|
1038
1038
|
var qs = /^\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)?)?$/, Zs = /^\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)?)?$/, Bs = /Z|[+-]\d\d(?::?\d\d)?/, Ye = [
|
|
1039
1039
|
["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
|
|
@@ -1072,14 +1072,14 @@ var qs = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
1072
1072
|
PST: -8 * 60
|
|
1073
1073
|
};
|
|
1074
1074
|
function tr(e) {
|
|
1075
|
-
var t, r, s = e._i, a = qs.exec(s) || Zs.exec(s),
|
|
1075
|
+
var t, r, s = e._i, a = qs.exec(s) || Zs.exec(s), i, n, u, f, _ = Ye.length, O = Ze.length;
|
|
1076
1076
|
if (a) {
|
|
1077
1077
|
for (c(e).iso = !0, t = 0, r = _; t < r; t++)
|
|
1078
1078
|
if (Ye[t][1].exec(a[1])) {
|
|
1079
|
-
|
|
1079
|
+
n = Ye[t][0], i = Ye[t][2] !== !1;
|
|
1080
1080
|
break;
|
|
1081
1081
|
}
|
|
1082
|
-
if (
|
|
1082
|
+
if (n == null) {
|
|
1083
1083
|
e._isValid = !1;
|
|
1084
1084
|
return;
|
|
1085
1085
|
}
|
|
@@ -1094,7 +1094,7 @@ function tr(e) {
|
|
|
1094
1094
|
return;
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
|
1097
|
-
if (!
|
|
1097
|
+
if (!i && u != null) {
|
|
1098
1098
|
e._isValid = !1;
|
|
1099
1099
|
return;
|
|
1100
1100
|
}
|
|
@@ -1105,19 +1105,19 @@ function tr(e) {
|
|
|
1105
1105
|
e._isValid = !1;
|
|
1106
1106
|
return;
|
|
1107
1107
|
}
|
|
1108
|
-
e._f =
|
|
1108
|
+
e._f = n + (u || "") + (f || ""), gt(e);
|
|
1109
1109
|
} else
|
|
1110
1110
|
e._isValid = !1;
|
|
1111
1111
|
}
|
|
1112
|
-
function Xs(e, t, r, s, a,
|
|
1113
|
-
var
|
|
1112
|
+
function Xs(e, t, r, s, a, i) {
|
|
1113
|
+
var n = [
|
|
1114
1114
|
ea(e),
|
|
1115
1115
|
zt.indexOf(t),
|
|
1116
1116
|
parseInt(r, 10),
|
|
1117
1117
|
parseInt(s, 10),
|
|
1118
1118
|
parseInt(a, 10)
|
|
1119
1119
|
];
|
|
1120
|
-
return
|
|
1120
|
+
return i && n.push(parseInt(i, 10)), n;
|
|
1121
1121
|
}
|
|
1122
1122
|
function ea(e) {
|
|
1123
1123
|
var t = parseInt(e, 10);
|
|
@@ -1143,8 +1143,8 @@ function sa(e, t, r) {
|
|
|
1143
1143
|
return Ks[e];
|
|
1144
1144
|
if (t)
|
|
1145
1145
|
return 0;
|
|
1146
|
-
var s = parseInt(r, 10), a = s % 100,
|
|
1147
|
-
return
|
|
1146
|
+
var s = parseInt(r, 10), a = s % 100, i = (s - a) / 100;
|
|
1147
|
+
return i * 60 + a;
|
|
1148
1148
|
}
|
|
1149
1149
|
function rr(e) {
|
|
1150
1150
|
var t = Qs.exec(ta(e._i)), r;
|
|
@@ -1158,7 +1158,7 @@ function rr(e) {
|
|
|
1158
1158
|
t[7]
|
|
1159
1159
|
), !ra(t[1], r, e))
|
|
1160
1160
|
return;
|
|
1161
|
-
e._a = r, e._tzm = sa(t[8], t[9], t[10]), e._d =
|
|
1161
|
+
e._a = r, e._tzm = sa(t[8], t[9], t[10]), e._d = pe.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), c(e).rfc2822 = !0;
|
|
1162
1162
|
} else
|
|
1163
1163
|
e._isValid = !1;
|
|
1164
1164
|
}
|
|
@@ -1184,10 +1184,10 @@ l.createFromInputFallback = P(
|
|
|
1184
1184
|
e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
|
|
1185
1185
|
}
|
|
1186
1186
|
);
|
|
1187
|
-
function
|
|
1187
|
+
function ie(e, t, r) {
|
|
1188
1188
|
return e ?? t ?? r;
|
|
1189
1189
|
}
|
|
1190
|
-
function
|
|
1190
|
+
function ia(e) {
|
|
1191
1191
|
var t = new Date(l.now());
|
|
1192
1192
|
return e._useUTC ? [
|
|
1193
1193
|
t.getUTCFullYear(),
|
|
@@ -1195,32 +1195,32 @@ function na(e) {
|
|
|
1195
1195
|
t.getUTCDate()
|
|
1196
1196
|
] : [t.getFullYear(), t.getMonth(), t.getDate()];
|
|
1197
1197
|
}
|
|
1198
|
-
function
|
|
1199
|
-
var t, r, s = [], a,
|
|
1198
|
+
function Mt(e) {
|
|
1199
|
+
var t, r, s = [], a, i, n;
|
|
1200
1200
|
if (!e._d) {
|
|
1201
|
-
for (a =
|
|
1201
|
+
for (a = ia(e), e._w && e._a[C] == null && e._a[V] == null && na(e), e._dayOfYear != null && (n = ie(e._a[Y], a[Y]), (e._dayOfYear > _e(n) || e._dayOfYear === 0) && (c(e)._overflowDayOfYear = !0), r = pe(n, 0, e._dayOfYear), e._a[V] = r.getUTCMonth(), e._a[C] = r.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
|
|
1202
1202
|
e._a[t] = s[t] = a[t];
|
|
1203
1203
|
for (; t < 7; t++)
|
|
1204
1204
|
e._a[t] = s[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
|
|
1205
|
-
e._a[
|
|
1205
|
+
e._a[D] === 24 && e._a[R] === 0 && e._a[G] === 0 && e._a[te] === 0 && (e._nextDay = !0, e._a[D] = 0), e._d = (e._useUTC ? pe : fs).apply(
|
|
1206
1206
|
null,
|
|
1207
1207
|
s
|
|
1208
|
-
),
|
|
1208
|
+
), i = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[D] = 24), e._w && typeof e._w.d < "u" && e._w.d !== i && (c(e).weekdayMismatch = !0);
|
|
1209
1209
|
}
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1212
|
-
var t, r, s, a,
|
|
1213
|
-
t = e._w, t.GG != null || t.W != null || t.E != null ? (
|
|
1211
|
+
function na(e) {
|
|
1212
|
+
var t, r, s, a, i, n, u, f, _;
|
|
1213
|
+
t = e._w, t.GG != null || t.W != null || t.E != null ? (i = 1, n = 4, r = ie(
|
|
1214
1214
|
t.GG,
|
|
1215
1215
|
e._a[Y],
|
|
1216
|
-
|
|
1217
|
-
), s =
|
|
1216
|
+
we(g(), 1, 4).year
|
|
1217
|
+
), s = ie(t.W, 1), a = ie(t.E, 1), (a < 1 || a > 7) && (f = !0)) : (i = e._locale._week.dow, n = e._locale._week.doy, _ = we(g(), i, n), r = ie(t.gg, e._a[Y], _.year), s = ie(t.w, _.week), t.d != null ? (a = t.d, (a < 0 || a > 6) && (f = !0)) : t.e != null ? (a = t.e + i, (t.e < 0 || t.e > 6) && (f = !0)) : a = i), s < 1 || s > $(r, i, n) ? c(e)._overflowWeeks = !0 : f != null ? c(e)._overflowWeekday = !0 : (u = Jt(r, s, a, i, n), e._a[Y] = u.year, e._dayOfYear = u.dayOfYear);
|
|
1218
1218
|
}
|
|
1219
1219
|
l.ISO_8601 = function() {
|
|
1220
1220
|
};
|
|
1221
1221
|
l.RFC_2822 = function() {
|
|
1222
1222
|
};
|
|
1223
|
-
function
|
|
1223
|
+
function gt(e) {
|
|
1224
1224
|
if (e._f === l.ISO_8601) {
|
|
1225
1225
|
tr(e);
|
|
1226
1226
|
return;
|
|
@@ -1230,29 +1230,29 @@ function pt(e) {
|
|
|
1230
1230
|
return;
|
|
1231
1231
|
}
|
|
1232
1232
|
e._a = [], c(e).empty = !0;
|
|
1233
|
-
var t = "" + e._i, r, s, a,
|
|
1233
|
+
var t = "" + e._i, r, s, a, i, n, u = t.length, f = 0, _, O;
|
|
1234
1234
|
for (a = It(e._f, e._locale).match(lt) || [], O = a.length, r = 0; r < O; r++)
|
|
1235
|
-
|
|
1235
|
+
i = a[r], s = (t.match(qr(i, e)) || [])[0], s && (n = t.substr(0, t.indexOf(s)), n.length > 0 && c(e).unusedInput.push(n), t = t.slice(
|
|
1236
1236
|
t.indexOf(s) + s.length
|
|
1237
|
-
), f += s.length), oe[
|
|
1238
|
-
c(e).charsLeftOver = u - f, t.length > 0 && c(e).unusedInput.push(t), e._a[
|
|
1237
|
+
), f += s.length), oe[i] ? (s ? c(e).empty = !1 : c(e).unusedTokens.push(i), Br(i, s, e)) : e._strict && !s && c(e).unusedTokens.push(i);
|
|
1238
|
+
c(e).charsLeftOver = u - f, t.length > 0 && c(e).unusedInput.push(t), e._a[D] <= 12 && c(e).bigHour === !0 && e._a[D] > 0 && (c(e).bigHour = void 0), c(e).parsedDateParts = e._a.slice(0), c(e).meridiem = e._meridiem, e._a[D] = oa(
|
|
1239
1239
|
e._locale,
|
|
1240
|
-
e._a[
|
|
1240
|
+
e._a[D],
|
|
1241
1241
|
e._meridiem
|
|
1242
|
-
), _ = c(e).era, _ !== null && (e._a[Y] = e._locale.erasConvertYear(_, e._a[Y])),
|
|
1242
|
+
), _ = c(e).era, _ !== null && (e._a[Y] = e._locale.erasConvertYear(_, e._a[Y])), Mt(e), wt(e);
|
|
1243
1243
|
}
|
|
1244
1244
|
function oa(e, t, r) {
|
|
1245
1245
|
var s;
|
|
1246
1246
|
return r == null ? t : e.meridiemHour != null ? e.meridiemHour(t, r) : (e.isPM != null && (s = e.isPM(r), s && t < 12 && (t += 12), !s && t === 12 && (t = 0)), t);
|
|
1247
1247
|
}
|
|
1248
1248
|
function la(e) {
|
|
1249
|
-
var t, r, s, a,
|
|
1249
|
+
var t, r, s, a, i, n, u = !1, f = e._f.length;
|
|
1250
1250
|
if (f === 0) {
|
|
1251
1251
|
c(e).invalidFormat = !0, e._d = /* @__PURE__ */ new Date(NaN);
|
|
1252
1252
|
return;
|
|
1253
1253
|
}
|
|
1254
1254
|
for (a = 0; a < f; a++)
|
|
1255
|
-
|
|
1255
|
+
i = 0, n = !1, t = nt({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[a], gt(t), it(t) && (n = !0), i += c(t).charsLeftOver, i += c(t).unusedTokens.length * 10, c(t).score = i, u ? i < s && (s = i, r = t) : (s == null || i < s || n) && (s = i, r = t, n && (u = !0));
|
|
1256
1256
|
Q(e, r || t);
|
|
1257
1257
|
}
|
|
1258
1258
|
function ua(e) {
|
|
@@ -1263,58 +1263,58 @@ function ua(e) {
|
|
|
1263
1263
|
function(s) {
|
|
1264
1264
|
return s && parseInt(s, 10);
|
|
1265
1265
|
}
|
|
1266
|
-
),
|
|
1266
|
+
), Mt(e);
|
|
1267
1267
|
}
|
|
1268
1268
|
}
|
|
1269
1269
|
function da(e) {
|
|
1270
|
-
var t = new ke(
|
|
1270
|
+
var t = new ke(wt(sr(e)));
|
|
1271
1271
|
return t._nextDay && (t.add(1, "d"), t._nextDay = void 0), t;
|
|
1272
1272
|
}
|
|
1273
1273
|
function sr(e) {
|
|
1274
1274
|
var t = e._i, r = e._f;
|
|
1275
|
-
return e._locale = e._locale || Z(e._l), t === null || r === void 0 && t === "" ? Le({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), F(t) ? new ke(
|
|
1275
|
+
return e._locale = e._locale || Z(e._l), t === null || r === void 0 && t === "" ? Le({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), F(t) ? new ke(wt(t)) : (ge(t) ? e._d = t : N(r) ? la(e) : r ? gt(e) : ha(e), it(e) || (e._d = null), e));
|
|
1276
1276
|
}
|
|
1277
1277
|
function ha(e) {
|
|
1278
1278
|
var t = e._i;
|
|
1279
|
-
b(t) ? e._d = new Date(l.now()) :
|
|
1279
|
+
b(t) ? e._d = new Date(l.now()) : ge(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? aa(e) : N(t) ? (e._a = Lt(t.slice(0), function(r) {
|
|
1280
1280
|
return parseInt(r, 10);
|
|
1281
|
-
}),
|
|
1281
|
+
}), Mt(e)) : re(t) ? ua(e) : q(t) ? e._d = new Date(t) : l.createFromInputFallback(e);
|
|
1282
1282
|
}
|
|
1283
1283
|
function ar(e, t, r, s, a) {
|
|
1284
|
-
var
|
|
1285
|
-
return (t === !0 || t === !1) && (s = t, t = void 0), (r === !0 || r === !1) && (s = r, r = void 0), (re(e) && at(e) || N(e) && e.length === 0) && (e = void 0),
|
|
1284
|
+
var i = {};
|
|
1285
|
+
return (t === !0 || t === !1) && (s = t, t = void 0), (r === !0 || r === !1) && (s = r, r = void 0), (re(e) && at(e) || N(e) && e.length === 0) && (e = void 0), i._isAMomentObject = !0, i._useUTC = i._isUTC = a, i._l = r, i._i = e, i._f = t, i._strict = s, da(i);
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1287
|
+
function g(e, t, r, s) {
|
|
1288
1288
|
return ar(e, t, r, s, !1);
|
|
1289
1289
|
}
|
|
1290
1290
|
var fa = P(
|
|
1291
1291
|
"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
1292
1292
|
function() {
|
|
1293
|
-
var e =
|
|
1293
|
+
var e = g.apply(null, arguments);
|
|
1294
1294
|
return this.isValid() && e.isValid() ? e < this ? this : e : Le();
|
|
1295
1295
|
}
|
|
1296
1296
|
), ca = P(
|
|
1297
1297
|
"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
1298
1298
|
function() {
|
|
1299
|
-
var e =
|
|
1299
|
+
var e = g.apply(null, arguments);
|
|
1300
1300
|
return this.isValid() && e.isValid() ? e > this ? this : e : Le();
|
|
1301
1301
|
}
|
|
1302
1302
|
);
|
|
1303
|
-
function
|
|
1303
|
+
function ir(e, t) {
|
|
1304
1304
|
var r, s;
|
|
1305
1305
|
if (t.length === 1 && N(t[0]) && (t = t[0]), !t.length)
|
|
1306
|
-
return
|
|
1306
|
+
return g();
|
|
1307
1307
|
for (r = t[0], s = 1; s < t.length; ++s)
|
|
1308
1308
|
(!t[s].isValid() || t[s][e](r)) && (r = t[s]);
|
|
1309
1309
|
return r;
|
|
1310
1310
|
}
|
|
1311
1311
|
function ma() {
|
|
1312
1312
|
var e = [].slice.call(arguments, 0);
|
|
1313
|
-
return
|
|
1313
|
+
return ir("isBefore", e);
|
|
1314
1314
|
}
|
|
1315
1315
|
function _a() {
|
|
1316
1316
|
var e = [].slice.call(arguments, 0);
|
|
1317
|
-
return
|
|
1317
|
+
return ir("isAfter", e);
|
|
1318
1318
|
}
|
|
1319
1319
|
var ya = function() {
|
|
1320
1320
|
return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
|
|
@@ -1329,10 +1329,10 @@ var ya = function() {
|
|
|
1329
1329
|
"second",
|
|
1330
1330
|
"millisecond"
|
|
1331
1331
|
];
|
|
1332
|
-
function
|
|
1332
|
+
function pa(e) {
|
|
1333
1333
|
var t, r = !1, s, a = me.length;
|
|
1334
1334
|
for (t in e)
|
|
1335
|
-
if (
|
|
1335
|
+
if (p(e, t) && !(v.call(me, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
|
|
1336
1336
|
return !1;
|
|
1337
1337
|
for (s = 0; s < a; ++s)
|
|
1338
1338
|
if (e[me[s]]) {
|
|
@@ -1342,17 +1342,17 @@ function wa(e) {
|
|
|
1342
1342
|
}
|
|
1343
1343
|
return !0;
|
|
1344
1344
|
}
|
|
1345
|
-
function
|
|
1345
|
+
function wa() {
|
|
1346
1346
|
return this._isValid;
|
|
1347
1347
|
}
|
|
1348
|
-
function
|
|
1348
|
+
function Ma() {
|
|
1349
1349
|
return L(NaN);
|
|
1350
1350
|
}
|
|
1351
1351
|
function Ve(e) {
|
|
1352
|
-
var t = ut(e), r = t.year || 0, s = t.quarter || 0, a = t.month || 0,
|
|
1353
|
-
this._isValid =
|
|
1352
|
+
var t = ut(e), r = t.year || 0, s = t.quarter || 0, a = t.month || 0, i = t.week || t.isoWeek || 0, n = t.day || 0, u = t.hour || 0, f = t.minute || 0, _ = t.second || 0, O = t.millisecond || 0;
|
|
1353
|
+
this._isValid = pa(t), this._milliseconds = +O + _ * 1e3 + // 1000
|
|
1354
1354
|
f * 6e4 + // 1000 * 60
|
|
1355
|
-
u * 1e3 * 60 * 60, this._days = +
|
|
1355
|
+
u * 1e3 * 60 * 60, this._days = +n + i * 7, this._months = +a + s * 3 + r * 12, this._data = {}, this._locale = Z(), this._bubble();
|
|
1356
1356
|
}
|
|
1357
1357
|
function Te(e) {
|
|
1358
1358
|
return e instanceof Ve;
|
|
@@ -1360,40 +1360,40 @@ function Te(e) {
|
|
|
1360
1360
|
function tt(e) {
|
|
1361
1361
|
return e < 0 ? Math.round(-1 * e) * -1 : Math.round(e);
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1364
|
-
var s = Math.min(e.length, t.length), a = Math.abs(e.length - t.length),
|
|
1365
|
-
for (
|
|
1366
|
-
(r && e[
|
|
1367
|
-
return
|
|
1363
|
+
function ga(e, t, r) {
|
|
1364
|
+
var s = Math.min(e.length, t.length), a = Math.abs(e.length - t.length), i = 0, n;
|
|
1365
|
+
for (n = 0; n < s; n++)
|
|
1366
|
+
(r && e[n] !== t[n] || !r && m(e[n]) !== m(t[n])) && i++;
|
|
1367
|
+
return i + a;
|
|
1368
1368
|
}
|
|
1369
|
-
function
|
|
1369
|
+
function nr(e, t) {
|
|
1370
1370
|
h(e, 0, 0, function() {
|
|
1371
1371
|
var r = this.utcOffset(), s = "+";
|
|
1372
1372
|
return r < 0 && (r = -r, s = "-"), s + U(~~(r / 60), 2) + t + U(~~r % 60, 2);
|
|
1373
1373
|
});
|
|
1374
1374
|
}
|
|
1375
|
-
|
|
1376
|
-
|
|
1375
|
+
nr("Z", ":");
|
|
1376
|
+
nr("ZZ", "");
|
|
1377
1377
|
d("Z", Ee);
|
|
1378
1378
|
d("ZZ", Ee);
|
|
1379
|
-
|
|
1379
|
+
M(["Z", "ZZ"], function(e, t, r) {
|
|
1380
1380
|
r._useUTC = !0, r._tzm = kt(Ee, e);
|
|
1381
1381
|
});
|
|
1382
1382
|
var ka = /([\+\-]|\d\d)/gi;
|
|
1383
1383
|
function kt(e, t) {
|
|
1384
|
-
var r = (t || "").match(e), s, a,
|
|
1385
|
-
return r === null ? null : (s = r[r.length - 1] || [], a = (s + "").match(ka) || ["-", 0, 0],
|
|
1384
|
+
var r = (t || "").match(e), s, a, i;
|
|
1385
|
+
return r === null ? null : (s = r[r.length - 1] || [], a = (s + "").match(ka) || ["-", 0, 0], i = +(a[1] * 60) + m(a[2]), i === 0 ? 0 : a[0] === "+" ? i : -i);
|
|
1386
1386
|
}
|
|
1387
|
-
function
|
|
1387
|
+
function St(e, t) {
|
|
1388
1388
|
var r, s;
|
|
1389
|
-
return t._isUTC ? (r = t.clone(), s = (F(e) ||
|
|
1389
|
+
return t._isUTC ? (r = t.clone(), s = (F(e) || ge(e) ? e.valueOf() : g(e).valueOf()) - r.valueOf(), r._d.setTime(r._d.valueOf() + s), l.updateOffset(r, !1), r) : g(e).local();
|
|
1390
1390
|
}
|
|
1391
1391
|
function rt(e) {
|
|
1392
1392
|
return -Math.round(e._d.getTimezoneOffset());
|
|
1393
1393
|
}
|
|
1394
1394
|
l.updateOffset = function() {
|
|
1395
1395
|
};
|
|
1396
|
-
function
|
|
1396
|
+
function Sa(e, t, r) {
|
|
1397
1397
|
var s = this._offset || 0, a;
|
|
1398
1398
|
if (!this.isValid())
|
|
1399
1399
|
return e != null ? this : NaN;
|
|
@@ -1412,10 +1412,10 @@ function Da(e, t, r) {
|
|
|
1412
1412
|
} else
|
|
1413
1413
|
return this._isUTC ? s : rt(this);
|
|
1414
1414
|
}
|
|
1415
|
-
function
|
|
1415
|
+
function va(e, t) {
|
|
1416
1416
|
return e != null ? (typeof e != "string" && (e = -e), this.utcOffset(e, t), this) : -this.utcOffset();
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1418
|
+
function Da(e) {
|
|
1419
1419
|
return this.utcOffset(0, e);
|
|
1420
1420
|
}
|
|
1421
1421
|
function Ya(e) {
|
|
@@ -1431,7 +1431,7 @@ function Oa() {
|
|
|
1431
1431
|
return this;
|
|
1432
1432
|
}
|
|
1433
1433
|
function ba(e) {
|
|
1434
|
-
return this.isValid() ? (e = e ?
|
|
1434
|
+
return this.isValid() ? (e = e ? g(e).utcOffset() : 0, (this.utcOffset() - e) % 60 === 0) : !1;
|
|
1435
1435
|
}
|
|
1436
1436
|
function Ta() {
|
|
1437
1437
|
return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
|
|
@@ -1440,7 +1440,7 @@ function xa() {
|
|
|
1440
1440
|
if (!b(this._isDSTShifted))
|
|
1441
1441
|
return this._isDSTShifted;
|
|
1442
1442
|
var e = {}, t;
|
|
1443
|
-
return
|
|
1443
|
+
return nt(e, this), e = sr(e), e._a ? (t = e._isUTC ? I(e._a) : g(e._a), this._isDSTShifted = this.isValid() && ga(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
|
|
1444
1444
|
}
|
|
1445
1445
|
function Pa() {
|
|
1446
1446
|
return this.isValid() ? !this._isUTC : !1;
|
|
@@ -1453,7 +1453,7 @@ function or() {
|
|
|
1453
1453
|
}
|
|
1454
1454
|
var Ra = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, Na = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
|
1455
1455
|
function L(e, t) {
|
|
1456
|
-
var r = e, s = null, a,
|
|
1456
|
+
var r = e, s = null, a, i, n;
|
|
1457
1457
|
return Te(e) ? r = {
|
|
1458
1458
|
ms: e._milliseconds,
|
|
1459
1459
|
d: e._days,
|
|
@@ -1461,7 +1461,7 @@ function L(e, t) {
|
|
|
1461
1461
|
} : q(e) || !isNaN(+e) ? (r = {}, t ? r[t] = +e : r.milliseconds = +e) : (s = Ra.exec(e)) ? (a = s[1] === "-" ? -1 : 1, r = {
|
|
1462
1462
|
y: 0,
|
|
1463
1463
|
d: m(s[C]) * a,
|
|
1464
|
-
h: m(s[
|
|
1464
|
+
h: m(s[D]) * a,
|
|
1465
1465
|
m: m(s[R]) * a,
|
|
1466
1466
|
s: m(s[G]) * a,
|
|
1467
1467
|
ms: m(tt(s[te] * 1e3)) * a
|
|
@@ -1474,13 +1474,13 @@ function L(e, t) {
|
|
|
1474
1474
|
h: ee(s[6], a),
|
|
1475
1475
|
m: ee(s[7], a),
|
|
1476
1476
|
s: ee(s[8], a)
|
|
1477
|
-
}) : r == null ? r = {} : typeof r == "object" && ("from" in r || "to" in r) && (
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
), r = {}, r.ms =
|
|
1477
|
+
}) : r == null ? r = {} : typeof r == "object" && ("from" in r || "to" in r) && (n = Fa(
|
|
1478
|
+
g(r.from),
|
|
1479
|
+
g(r.to)
|
|
1480
|
+
), r = {}, r.ms = n.milliseconds, r.M = n.months), i = new Ve(r), Te(e) && p(e, "_locale") && (i._locale = e._locale), Te(e) && p(e, "_isValid") && (i._isValid = e._isValid), i;
|
|
1481
1481
|
}
|
|
1482
1482
|
L.fn = Ve.prototype;
|
|
1483
|
-
L.invalid =
|
|
1483
|
+
L.invalid = Ma;
|
|
1484
1484
|
function ee(e, t) {
|
|
1485
1485
|
var r = e && parseFloat(e.replace(",", "."));
|
|
1486
1486
|
return (isNaN(r) ? 0 : r) * t;
|
|
@@ -1491,27 +1491,27 @@ function Wt(e, t) {
|
|
|
1491
1491
|
}
|
|
1492
1492
|
function Fa(e, t) {
|
|
1493
1493
|
var r;
|
|
1494
|
-
return e.isValid() && t.isValid() ? (t =
|
|
1494
|
+
return e.isValid() && t.isValid() ? (t = St(t, e), e.isBefore(t) ? r = Wt(e, t) : (r = Wt(t, e), r.milliseconds = -r.milliseconds, r.months = -r.months), r) : { milliseconds: 0, months: 0 };
|
|
1495
1495
|
}
|
|
1496
1496
|
function lr(e, t) {
|
|
1497
1497
|
return function(r, s) {
|
|
1498
|
-
var a,
|
|
1498
|
+
var a, i;
|
|
1499
1499
|
return s !== null && !isNaN(+s) && (Ut(
|
|
1500
1500
|
t,
|
|
1501
1501
|
"moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
|
|
1502
|
-
),
|
|
1502
|
+
), i = r, r = s, s = i), a = L(r, s), ur(this, a, e), this;
|
|
1503
1503
|
};
|
|
1504
1504
|
}
|
|
1505
1505
|
function ur(e, t, r, s) {
|
|
1506
|
-
var a = t._milliseconds,
|
|
1507
|
-
e.isValid() && (s = s ?? !0,
|
|
1506
|
+
var a = t._milliseconds, i = tt(t._days), n = tt(t._months);
|
|
1507
|
+
e.isValid() && (s = s ?? !0, n && qt(e, ye(e, "Month") + n * r), i && Gt(e, "Date", ye(e, "Date") + i * r), a && e._d.setTime(e._d.valueOf() + a * r), s && l.updateOffset(e, i || n));
|
|
1508
1508
|
}
|
|
1509
1509
|
var La = lr(1, "add"), Ca = lr(-1, "subtract");
|
|
1510
1510
|
function dr(e) {
|
|
1511
1511
|
return typeof e == "string" || e instanceof String;
|
|
1512
1512
|
}
|
|
1513
1513
|
function Ua(e) {
|
|
1514
|
-
return F(e) ||
|
|
1514
|
+
return F(e) || ge(e) || dr(e) || q(e) || Ha(e) || Ia(e) || e === null || e === void 0;
|
|
1515
1515
|
}
|
|
1516
1516
|
function Ia(e) {
|
|
1517
1517
|
var t = re(e) && !at(e), r = !1, s = [
|
|
@@ -1539,9 +1539,9 @@ function Ia(e) {
|
|
|
1539
1539
|
"milliseconds",
|
|
1540
1540
|
"millisecond",
|
|
1541
1541
|
"ms"
|
|
1542
|
-
], a,
|
|
1543
|
-
for (a = 0; a <
|
|
1544
|
-
|
|
1542
|
+
], a, i, n = s.length;
|
|
1543
|
+
for (a = 0; a < n; a += 1)
|
|
1544
|
+
i = s[a], r = r || p(e, i);
|
|
1545
1545
|
return t && r;
|
|
1546
1546
|
}
|
|
1547
1547
|
function Ha(e) {
|
|
@@ -1558,9 +1558,9 @@ function Ea(e) {
|
|
|
1558
1558
|
"nextWeek",
|
|
1559
1559
|
"lastWeek",
|
|
1560
1560
|
"sameElse"
|
|
1561
|
-
], a,
|
|
1561
|
+
], a, i;
|
|
1562
1562
|
for (a = 0; a < s.length; a += 1)
|
|
1563
|
-
|
|
1563
|
+
i = s[a], r = r || p(e, i);
|
|
1564
1564
|
return t && r;
|
|
1565
1565
|
}
|
|
1566
1566
|
function Aa(e, t) {
|
|
@@ -1569,28 +1569,28 @@ function Aa(e, t) {
|
|
|
1569
1569
|
}
|
|
1570
1570
|
function ja(e, t) {
|
|
1571
1571
|
arguments.length === 1 && (arguments[0] ? Ua(arguments[0]) ? (e = arguments[0], t = void 0) : Ea(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
|
|
1572
|
-
var r = e ||
|
|
1572
|
+
var r = e || g(), s = St(r, this).startOf("day"), a = l.calendarFormat(this, s) || "sameElse", i = t && (H(t[a]) ? t[a].call(this, r) : t[a]);
|
|
1573
1573
|
return this.format(
|
|
1574
|
-
|
|
1574
|
+
i || this.localeData().calendar(a, this, g(r))
|
|
1575
1575
|
);
|
|
1576
1576
|
}
|
|
1577
1577
|
function Va() {
|
|
1578
1578
|
return new ke(this);
|
|
1579
1579
|
}
|
|
1580
1580
|
function Ga(e, t) {
|
|
1581
|
-
var r = F(e) ? e :
|
|
1581
|
+
var r = F(e) ? e : g(e);
|
|
1582
1582
|
return this.isValid() && r.isValid() ? (t = W(t) || "millisecond", t === "millisecond" ? this.valueOf() > r.valueOf() : r.valueOf() < this.clone().startOf(t).valueOf()) : !1;
|
|
1583
1583
|
}
|
|
1584
1584
|
function za(e, t) {
|
|
1585
|
-
var r = F(e) ? e :
|
|
1585
|
+
var r = F(e) ? e : g(e);
|
|
1586
1586
|
return this.isValid() && r.isValid() ? (t = W(t) || "millisecond", t === "millisecond" ? this.valueOf() < r.valueOf() : this.clone().endOf(t).valueOf() < r.valueOf()) : !1;
|
|
1587
1587
|
}
|
|
1588
1588
|
function $a(e, t, r, s) {
|
|
1589
|
-
var a = F(e) ? e :
|
|
1590
|
-
return this.isValid() && a.isValid() &&
|
|
1589
|
+
var a = F(e) ? e : g(e), i = F(t) ? t : g(t);
|
|
1590
|
+
return this.isValid() && a.isValid() && i.isValid() ? (s = s || "()", (s[0] === "(" ? this.isAfter(a, r) : !this.isBefore(a, r)) && (s[1] === ")" ? this.isBefore(i, r) : !this.isAfter(i, r))) : !1;
|
|
1591
1591
|
}
|
|
1592
1592
|
function qa(e, t) {
|
|
1593
|
-
var r = F(e) ? e :
|
|
1593
|
+
var r = F(e) ? e : g(e), s;
|
|
1594
1594
|
return this.isValid() && r.isValid() ? (t = W(t) || "millisecond", t === "millisecond" ? this.valueOf() === r.valueOf() : (s = r.valueOf(), this.clone().startOf(t).valueOf() <= s && s <= this.clone().endOf(t).valueOf())) : !1;
|
|
1595
1595
|
}
|
|
1596
1596
|
function Za(e, t) {
|
|
@@ -1600,46 +1600,46 @@ function Ba(e, t) {
|
|
|
1600
1600
|
return this.isSame(e, t) || this.isBefore(e, t);
|
|
1601
1601
|
}
|
|
1602
1602
|
function Ja(e, t, r) {
|
|
1603
|
-
var s, a,
|
|
1603
|
+
var s, a, i;
|
|
1604
1604
|
if (!this.isValid())
|
|
1605
1605
|
return NaN;
|
|
1606
|
-
if (s =
|
|
1606
|
+
if (s = St(e, this), !s.isValid())
|
|
1607
1607
|
return NaN;
|
|
1608
1608
|
switch (a = (s.utcOffset() - this.utcOffset()) * 6e4, t = W(t), t) {
|
|
1609
1609
|
case "year":
|
|
1610
|
-
|
|
1610
|
+
i = xe(this, s) / 12;
|
|
1611
1611
|
break;
|
|
1612
1612
|
case "month":
|
|
1613
|
-
|
|
1613
|
+
i = xe(this, s);
|
|
1614
1614
|
break;
|
|
1615
1615
|
case "quarter":
|
|
1616
|
-
|
|
1616
|
+
i = xe(this, s) / 3;
|
|
1617
1617
|
break;
|
|
1618
1618
|
case "second":
|
|
1619
|
-
|
|
1619
|
+
i = (this - s) / 1e3;
|
|
1620
1620
|
break;
|
|
1621
1621
|
case "minute":
|
|
1622
|
-
|
|
1622
|
+
i = (this - s) / 6e4;
|
|
1623
1623
|
break;
|
|
1624
1624
|
case "hour":
|
|
1625
|
-
|
|
1625
|
+
i = (this - s) / 36e5;
|
|
1626
1626
|
break;
|
|
1627
1627
|
case "day":
|
|
1628
|
-
|
|
1628
|
+
i = (this - s - a) / 864e5;
|
|
1629
1629
|
break;
|
|
1630
1630
|
case "week":
|
|
1631
|
-
|
|
1631
|
+
i = (this - s - a) / 6048e5;
|
|
1632
1632
|
break;
|
|
1633
1633
|
default:
|
|
1634
|
-
|
|
1634
|
+
i = this - s;
|
|
1635
1635
|
}
|
|
1636
|
-
return r ?
|
|
1636
|
+
return r ? i : x(i);
|
|
1637
1637
|
}
|
|
1638
1638
|
function xe(e, t) {
|
|
1639
1639
|
if (e.date() < t.date())
|
|
1640
1640
|
return -xe(t, e);
|
|
1641
|
-
var r = (t.year() - e.year()) * 12 + (t.month() - e.month()), s = e.clone().add(r, "months"), a,
|
|
1642
|
-
return t - s < 0 ? (a = e.clone().add(r - 1, "months"),
|
|
1641
|
+
var r = (t.year() - e.year()) * 12 + (t.month() - e.month()), s = e.clone().add(r, "months"), a, i;
|
|
1642
|
+
return t - s < 0 ? (a = e.clone().add(r - 1, "months"), i = (t - s) / (s - a)) : (a = e.clone().add(r + 1, "months"), i = (t - s) / (a - s)), -(r + i) || 0;
|
|
1643
1643
|
}
|
|
1644
1644
|
l.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
|
|
1645
1645
|
l.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
@@ -1661,25 +1661,25 @@ function Ka(e) {
|
|
|
1661
1661
|
function Xa() {
|
|
1662
1662
|
if (!this.isValid())
|
|
1663
1663
|
return "moment.invalid(/* " + this._i + " */)";
|
|
1664
|
-
var e = "moment", t = "", r, s, a,
|
|
1665
|
-
return this.isLocal() || (e = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", t = "Z"), r = "[" + e + '("]', s = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", a = "-MM-DD[T]HH:mm:ss.SSS",
|
|
1664
|
+
var e = "moment", t = "", r, s, a, i;
|
|
1665
|
+
return this.isLocal() || (e = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", t = "Z"), r = "[" + e + '("]', s = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", a = "-MM-DD[T]HH:mm:ss.SSS", i = t + '[")]', this.format(r + s + a + i);
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1667
|
+
function ei(e) {
|
|
1668
1668
|
e || (e = this.isUtc() ? l.defaultFormatUtc : l.defaultFormat);
|
|
1669
1669
|
var t = be(this, e);
|
|
1670
1670
|
return this.localeData().postformat(t);
|
|
1671
1671
|
}
|
|
1672
|
-
function
|
|
1673
|
-
return this.isValid() && (F(e) && e.isValid() ||
|
|
1672
|
+
function ti(e, t) {
|
|
1673
|
+
return this.isValid() && (F(e) && e.isValid() || g(e).isValid()) ? L({ to: this, from: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
1674
1674
|
}
|
|
1675
|
-
function
|
|
1676
|
-
return this.from(
|
|
1675
|
+
function ri(e) {
|
|
1676
|
+
return this.from(g(), e);
|
|
1677
1677
|
}
|
|
1678
|
-
function
|
|
1679
|
-
return this.isValid() && (F(e) && e.isValid() ||
|
|
1678
|
+
function si(e, t) {
|
|
1679
|
+
return this.isValid() && (F(e) && e.isValid() || g(e).isValid()) ? L({ from: this, to: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
1680
1680
|
}
|
|
1681
|
-
function
|
|
1682
|
-
return this.to(
|
|
1681
|
+
function ai(e) {
|
|
1682
|
+
return this.to(g(), e);
|
|
1683
1683
|
}
|
|
1684
1684
|
function hr(e) {
|
|
1685
1685
|
var t;
|
|
@@ -1704,7 +1704,7 @@ function _r(e, t, r) {
|
|
|
1704
1704
|
function yr(e, t, r) {
|
|
1705
1705
|
return e < 100 && e >= 0 ? Date.UTC(e + 400, t, r) - mr : Date.UTC(e, t, r);
|
|
1706
1706
|
}
|
|
1707
|
-
function
|
|
1707
|
+
function ii(e) {
|
|
1708
1708
|
var t, r;
|
|
1709
1709
|
if (e = W(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
1710
1710
|
return this;
|
|
@@ -1755,7 +1755,7 @@ function nn(e) {
|
|
|
1755
1755
|
}
|
|
1756
1756
|
return this._d.setTime(t), l.updateOffset(this, !0), this;
|
|
1757
1757
|
}
|
|
1758
|
-
function
|
|
1758
|
+
function ni(e) {
|
|
1759
1759
|
var t, r;
|
|
1760
1760
|
if (e = W(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
1761
1761
|
return this;
|
|
@@ -1806,16 +1806,16 @@ function on(e) {
|
|
|
1806
1806
|
}
|
|
1807
1807
|
return this._d.setTime(t), l.updateOffset(this, !0), this;
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1809
|
+
function oi() {
|
|
1810
1810
|
return this._d.valueOf() - (this._offset || 0) * 6e4;
|
|
1811
1811
|
}
|
|
1812
|
-
function
|
|
1812
|
+
function li() {
|
|
1813
1813
|
return Math.floor(this.valueOf() / 1e3);
|
|
1814
1814
|
}
|
|
1815
|
-
function
|
|
1815
|
+
function ui() {
|
|
1816
1816
|
return new Date(this.valueOf());
|
|
1817
1817
|
}
|
|
1818
|
-
function
|
|
1818
|
+
function di() {
|
|
1819
1819
|
var e = this;
|
|
1820
1820
|
return [
|
|
1821
1821
|
e.year(),
|
|
@@ -1827,7 +1827,7 @@ function hn() {
|
|
|
1827
1827
|
e.millisecond()
|
|
1828
1828
|
];
|
|
1829
1829
|
}
|
|
1830
|
-
function
|
|
1830
|
+
function hi() {
|
|
1831
1831
|
var e = this;
|
|
1832
1832
|
return {
|
|
1833
1833
|
years: e.year(),
|
|
@@ -1839,19 +1839,19 @@ function fn() {
|
|
|
1839
1839
|
milliseconds: e.milliseconds()
|
|
1840
1840
|
};
|
|
1841
1841
|
}
|
|
1842
|
-
function
|
|
1842
|
+
function fi() {
|
|
1843
1843
|
return this.isValid() ? this.toISOString() : null;
|
|
1844
1844
|
}
|
|
1845
|
-
function
|
|
1846
|
-
return
|
|
1845
|
+
function ci() {
|
|
1846
|
+
return it(this);
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1848
|
+
function mi() {
|
|
1849
1849
|
return Q({}, c(this));
|
|
1850
1850
|
}
|
|
1851
|
-
function
|
|
1851
|
+
function _i() {
|
|
1852
1852
|
return c(this).overflow;
|
|
1853
1853
|
}
|
|
1854
|
-
function
|
|
1854
|
+
function yi() {
|
|
1855
1855
|
return {
|
|
1856
1856
|
input: this._i,
|
|
1857
1857
|
format: this._f,
|
|
@@ -1869,12 +1869,12 @@ h("y", ["y", 1], "yo", "eraYear");
|
|
|
1869
1869
|
h("y", ["yy", 2], 0, "eraYear");
|
|
1870
1870
|
h("y", ["yyy", 3], 0, "eraYear");
|
|
1871
1871
|
h("y", ["yyyy", 4], 0, "eraYear");
|
|
1872
|
-
d("N",
|
|
1873
|
-
d("NN",
|
|
1874
|
-
d("NNN",
|
|
1875
|
-
d("NNNN",
|
|
1876
|
-
d("NNNNN",
|
|
1877
|
-
|
|
1872
|
+
d("N", vt);
|
|
1873
|
+
d("NN", vt);
|
|
1874
|
+
d("NNN", vt);
|
|
1875
|
+
d("NNNN", bi);
|
|
1876
|
+
d("NNNNN", Ti);
|
|
1877
|
+
M(
|
|
1878
1878
|
["N", "NN", "NNN", "NNNN", "NNNNN"],
|
|
1879
1879
|
function(e, t, r, s) {
|
|
1880
1880
|
var a = r._locale.erasParse(e, s, r._strict);
|
|
@@ -1885,111 +1885,111 @@ d("y", de);
|
|
|
1885
1885
|
d("yy", de);
|
|
1886
1886
|
d("yyy", de);
|
|
1887
1887
|
d("yyyy", de);
|
|
1888
|
-
d("yo",
|
|
1889
|
-
|
|
1890
|
-
|
|
1888
|
+
d("yo", xi);
|
|
1889
|
+
M(["y", "yy", "yyy", "yyyy"], Y);
|
|
1890
|
+
M(["yo"], function(e, t, r, s) {
|
|
1891
1891
|
var a;
|
|
1892
1892
|
r._locale._eraYearOrdinalRegex && (a = e.match(r._locale._eraYearOrdinalRegex)), r._locale.eraYearOrdinalParse ? t[Y] = r._locale.eraYearOrdinalParse(e, a) : t[Y] = parseInt(e, 10);
|
|
1893
1893
|
});
|
|
1894
|
-
function
|
|
1895
|
-
var r, s, a,
|
|
1896
|
-
for (r = 0, s =
|
|
1897
|
-
switch (typeof
|
|
1894
|
+
function pi(e, t) {
|
|
1895
|
+
var r, s, a, i = this._eras || Z("en")._eras;
|
|
1896
|
+
for (r = 0, s = i.length; r < s; ++r) {
|
|
1897
|
+
switch (typeof i[r].since) {
|
|
1898
1898
|
case "string":
|
|
1899
|
-
a = l(
|
|
1899
|
+
a = l(i[r].since).startOf("day"), i[r].since = a.valueOf();
|
|
1900
1900
|
break;
|
|
1901
1901
|
}
|
|
1902
|
-
switch (typeof
|
|
1902
|
+
switch (typeof i[r].until) {
|
|
1903
1903
|
case "undefined":
|
|
1904
|
-
|
|
1904
|
+
i[r].until = 1 / 0;
|
|
1905
1905
|
break;
|
|
1906
1906
|
case "string":
|
|
1907
|
-
a = l(
|
|
1907
|
+
a = l(i[r].until).startOf("day").valueOf(), i[r].until = a.valueOf();
|
|
1908
1908
|
break;
|
|
1909
1909
|
}
|
|
1910
1910
|
}
|
|
1911
|
-
return
|
|
1911
|
+
return i;
|
|
1912
1912
|
}
|
|
1913
|
-
function
|
|
1914
|
-
var s, a,
|
|
1915
|
-
for (e = e.toUpperCase(), s = 0, a =
|
|
1916
|
-
if (
|
|
1913
|
+
function wi(e, t, r) {
|
|
1914
|
+
var s, a, i = this.eras(), n, u, f;
|
|
1915
|
+
for (e = e.toUpperCase(), s = 0, a = i.length; s < a; ++s)
|
|
1916
|
+
if (n = i[s].name.toUpperCase(), u = i[s].abbr.toUpperCase(), f = i[s].narrow.toUpperCase(), r)
|
|
1917
1917
|
switch (t) {
|
|
1918
1918
|
case "N":
|
|
1919
1919
|
case "NN":
|
|
1920
1920
|
case "NNN":
|
|
1921
1921
|
if (u === e)
|
|
1922
|
-
return
|
|
1922
|
+
return i[s];
|
|
1923
1923
|
break;
|
|
1924
1924
|
case "NNNN":
|
|
1925
|
-
if (
|
|
1926
|
-
return
|
|
1925
|
+
if (n === e)
|
|
1926
|
+
return i[s];
|
|
1927
1927
|
break;
|
|
1928
1928
|
case "NNNNN":
|
|
1929
1929
|
if (f === e)
|
|
1930
|
-
return
|
|
1930
|
+
return i[s];
|
|
1931
1931
|
break;
|
|
1932
1932
|
}
|
|
1933
|
-
else if ([
|
|
1934
|
-
return
|
|
1933
|
+
else if ([n, u, f].indexOf(e) >= 0)
|
|
1934
|
+
return i[s];
|
|
1935
1935
|
}
|
|
1936
|
-
function
|
|
1936
|
+
function Mi(e, t) {
|
|
1937
1937
|
var r = e.since <= e.until ? 1 : -1;
|
|
1938
1938
|
return t === void 0 ? l(e.since).year() : l(e.since).year() + (t - e.offset) * r;
|
|
1939
1939
|
}
|
|
1940
|
-
function
|
|
1940
|
+
function gi() {
|
|
1941
1941
|
var e, t, r, s = this.localeData().eras();
|
|
1942
1942
|
for (e = 0, t = s.length; e < t; ++e)
|
|
1943
1943
|
if (r = this.clone().startOf("day").valueOf(), s[e].since <= r && r <= s[e].until || s[e].until <= r && r <= s[e].since)
|
|
1944
1944
|
return s[e].name;
|
|
1945
1945
|
return "";
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1947
|
+
function ki() {
|
|
1948
1948
|
var e, t, r, s = this.localeData().eras();
|
|
1949
1949
|
for (e = 0, t = s.length; e < t; ++e)
|
|
1950
1950
|
if (r = this.clone().startOf("day").valueOf(), s[e].since <= r && r <= s[e].until || s[e].until <= r && r <= s[e].since)
|
|
1951
1951
|
return s[e].narrow;
|
|
1952
1952
|
return "";
|
|
1953
1953
|
}
|
|
1954
|
-
function
|
|
1954
|
+
function Si() {
|
|
1955
1955
|
var e, t, r, s = this.localeData().eras();
|
|
1956
1956
|
for (e = 0, t = s.length; e < t; ++e)
|
|
1957
1957
|
if (r = this.clone().startOf("day").valueOf(), s[e].since <= r && r <= s[e].until || s[e].until <= r && r <= s[e].since)
|
|
1958
1958
|
return s[e].abbr;
|
|
1959
1959
|
return "";
|
|
1960
1960
|
}
|
|
1961
|
-
function
|
|
1961
|
+
function vi() {
|
|
1962
1962
|
var e, t, r, s, a = this.localeData().eras();
|
|
1963
1963
|
for (e = 0, t = a.length; e < t; ++e)
|
|
1964
1964
|
if (r = a[e].since <= a[e].until ? 1 : -1, s = this.clone().startOf("day").valueOf(), a[e].since <= s && s <= a[e].until || a[e].until <= s && s <= a[e].since)
|
|
1965
1965
|
return (this.year() - l(a[e].since).year()) * r + a[e].offset;
|
|
1966
1966
|
return this.year();
|
|
1967
1967
|
}
|
|
1968
|
-
function
|
|
1969
|
-
return
|
|
1968
|
+
function Di(e) {
|
|
1969
|
+
return p(this, "_erasNameRegex") || Dt.call(this), e ? this._erasNameRegex : this._erasRegex;
|
|
1970
1970
|
}
|
|
1971
|
-
function
|
|
1972
|
-
return
|
|
1971
|
+
function Yi(e) {
|
|
1972
|
+
return p(this, "_erasAbbrRegex") || Dt.call(this), e ? this._erasAbbrRegex : this._erasRegex;
|
|
1973
1973
|
}
|
|
1974
|
-
function
|
|
1975
|
-
return
|
|
1974
|
+
function Oi(e) {
|
|
1975
|
+
return p(this, "_erasNarrowRegex") || Dt.call(this), e ? this._erasNarrowRegex : this._erasRegex;
|
|
1976
1976
|
}
|
|
1977
|
-
function
|
|
1977
|
+
function vt(e, t) {
|
|
1978
1978
|
return t.erasAbbrRegex(e);
|
|
1979
1979
|
}
|
|
1980
|
-
function
|
|
1980
|
+
function bi(e, t) {
|
|
1981
1981
|
return t.erasNameRegex(e);
|
|
1982
1982
|
}
|
|
1983
|
-
function
|
|
1983
|
+
function Ti(e, t) {
|
|
1984
1984
|
return t.erasNarrowRegex(e);
|
|
1985
1985
|
}
|
|
1986
|
-
function
|
|
1986
|
+
function xi(e, t) {
|
|
1987
1987
|
return t._eraYearOrdinalRegex || de;
|
|
1988
1988
|
}
|
|
1989
|
-
function
|
|
1990
|
-
var e = [], t = [], r = [], s = [], a,
|
|
1991
|
-
for (a = 0,
|
|
1992
|
-
|
|
1989
|
+
function Dt() {
|
|
1990
|
+
var e = [], t = [], r = [], s = [], a, i, n, u, f, _ = this.eras();
|
|
1991
|
+
for (a = 0, i = _.length; a < i; ++a)
|
|
1992
|
+
n = z(_[a].name), u = z(_[a].abbr), f = z(_[a].narrow), t.push(n), e.push(u), r.push(f), s.push(n), s.push(u), s.push(f);
|
|
1993
1993
|
this._erasRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + t.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + e.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
|
|
1994
1994
|
"^(" + r.join("|") + ")",
|
|
1995
1995
|
"i"
|
|
@@ -2016,17 +2016,17 @@ d("GGGG", ht, dt);
|
|
|
2016
2016
|
d("gggg", ht, dt);
|
|
2017
2017
|
d("GGGGG", Ie, Ce);
|
|
2018
2018
|
d("ggggg", Ie, Ce);
|
|
2019
|
-
|
|
2019
|
+
ve(
|
|
2020
2020
|
["gggg", "ggggg", "GGGG", "GGGGG"],
|
|
2021
2021
|
function(e, t, r, s) {
|
|
2022
2022
|
t[s.substr(0, 2)] = m(e);
|
|
2023
2023
|
}
|
|
2024
2024
|
);
|
|
2025
|
-
|
|
2025
|
+
ve(["gg", "GG"], function(e, t, r, s) {
|
|
2026
2026
|
t[s] = l.parseTwoDigitYear(e);
|
|
2027
2027
|
});
|
|
2028
|
-
function
|
|
2029
|
-
return
|
|
2028
|
+
function Pi(e) {
|
|
2029
|
+
return pr.call(
|
|
2030
2030
|
this,
|
|
2031
2031
|
e,
|
|
2032
2032
|
this.week(),
|
|
@@ -2035,8 +2035,8 @@ function Wn(e) {
|
|
|
2035
2035
|
this.localeData()._week.doy
|
|
2036
2036
|
);
|
|
2037
2037
|
}
|
|
2038
|
-
function
|
|
2039
|
-
return
|
|
2038
|
+
function Wi(e) {
|
|
2039
|
+
return pr.call(
|
|
2040
2040
|
this,
|
|
2041
2041
|
e,
|
|
2042
2042
|
this.isoWeek(),
|
|
@@ -2045,34 +2045,34 @@ function Rn(e) {
|
|
|
2045
2045
|
4
|
|
2046
2046
|
);
|
|
2047
2047
|
}
|
|
2048
|
-
function
|
|
2048
|
+
function Ri() {
|
|
2049
2049
|
return $(this.year(), 1, 4);
|
|
2050
2050
|
}
|
|
2051
|
-
function
|
|
2051
|
+
function Ni() {
|
|
2052
2052
|
return $(this.isoWeekYear(), 1, 4);
|
|
2053
2053
|
}
|
|
2054
|
-
function
|
|
2054
|
+
function Fi() {
|
|
2055
2055
|
var e = this.localeData()._week;
|
|
2056
2056
|
return $(this.year(), e.dow, e.doy);
|
|
2057
2057
|
}
|
|
2058
|
-
function
|
|
2058
|
+
function Li() {
|
|
2059
2059
|
var e = this.localeData()._week;
|
|
2060
2060
|
return $(this.weekYear(), e.dow, e.doy);
|
|
2061
2061
|
}
|
|
2062
|
-
function
|
|
2063
|
-
var
|
|
2064
|
-
return e == null ?
|
|
2062
|
+
function pr(e, t, r, s, a) {
|
|
2063
|
+
var i;
|
|
2064
|
+
return e == null ? we(this, s, a).year : (i = $(e, s, a), t > i && (t = i), Ci.call(this, e, t, r, s, a));
|
|
2065
2065
|
}
|
|
2066
|
-
function
|
|
2067
|
-
var
|
|
2068
|
-
return this.year(
|
|
2066
|
+
function Ci(e, t, r, s, a) {
|
|
2067
|
+
var i = Jt(e, t, r, s, a), n = pe(i.year, 0, i.dayOfYear);
|
|
2068
|
+
return this.year(n.getUTCFullYear()), this.month(n.getUTCMonth()), this.date(n.getUTCDate()), this;
|
|
2069
2069
|
}
|
|
2070
2070
|
h("Q", 0, "Qo", "quarter");
|
|
2071
2071
|
d("Q", Ht);
|
|
2072
|
-
|
|
2072
|
+
M("Q", function(e, t) {
|
|
2073
2073
|
t[V] = (m(e) - 1) * 3;
|
|
2074
2074
|
});
|
|
2075
|
-
function
|
|
2075
|
+
function Ui(e) {
|
|
2076
2076
|
return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
|
|
2077
2077
|
}
|
|
2078
2078
|
h("D", ["DD", 2], "Do", "date");
|
|
@@ -2081,18 +2081,18 @@ d("DD", k, T);
|
|
|
2081
2081
|
d("Do", function(e, t) {
|
|
2082
2082
|
return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
|
|
2083
2083
|
});
|
|
2084
|
-
|
|
2085
|
-
|
|
2084
|
+
M(["D", "DD"], C);
|
|
2085
|
+
M("Do", function(e, t) {
|
|
2086
2086
|
t[C] = m(e.match(k)[0]);
|
|
2087
2087
|
});
|
|
2088
|
-
var
|
|
2088
|
+
var wr = fe("Date", !0);
|
|
2089
2089
|
h("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
|
|
2090
2090
|
d("DDD", Ue);
|
|
2091
2091
|
d("DDDD", Et);
|
|
2092
|
-
|
|
2092
|
+
M(["DDD", "DDDD"], function(e, t, r) {
|
|
2093
2093
|
r._dayOfYear = m(e);
|
|
2094
2094
|
});
|
|
2095
|
-
function
|
|
2095
|
+
function Ii(e) {
|
|
2096
2096
|
var t = Math.round(
|
|
2097
2097
|
(this.clone().startOf("day") - this.clone().startOf("year")) / 864e5
|
|
2098
2098
|
) + 1;
|
|
@@ -2101,13 +2101,13 @@ function Hn(e) {
|
|
|
2101
2101
|
h("m", ["mm", 2], 0, "minute");
|
|
2102
2102
|
d("m", k, ft);
|
|
2103
2103
|
d("mm", k, T);
|
|
2104
|
-
|
|
2105
|
-
var
|
|
2104
|
+
M(["m", "mm"], R);
|
|
2105
|
+
var Hi = fe("Minutes", !1);
|
|
2106
2106
|
h("s", ["ss", 2], 0, "second");
|
|
2107
2107
|
d("s", k, ft);
|
|
2108
2108
|
d("ss", k, T);
|
|
2109
|
-
|
|
2110
|
-
var
|
|
2109
|
+
M(["s", "ss"], G);
|
|
2110
|
+
var Ei = fe("Seconds", !1);
|
|
2111
2111
|
h("S", 0, 0, function() {
|
|
2112
2112
|
return ~~(this.millisecond() / 100);
|
|
2113
2113
|
});
|
|
@@ -2136,21 +2136,21 @@ h(0, ["SSSSSSSSS", 9], 0, function() {
|
|
|
2136
2136
|
d("S", Ue, Ht);
|
|
2137
2137
|
d("SS", Ue, T);
|
|
2138
2138
|
d("SSS", Ue, Et);
|
|
2139
|
-
var K,
|
|
2139
|
+
var K, Mr;
|
|
2140
2140
|
for (K = "SSSS"; K.length <= 9; K += "S")
|
|
2141
2141
|
d(K, de);
|
|
2142
|
-
function
|
|
2142
|
+
function Ai(e, t) {
|
|
2143
2143
|
t[te] = m(("0." + e) * 1e3);
|
|
2144
2144
|
}
|
|
2145
2145
|
for (K = "S"; K.length <= 9; K += "S")
|
|
2146
|
-
|
|
2147
|
-
|
|
2146
|
+
M(K, Ai);
|
|
2147
|
+
Mr = fe("Milliseconds", !1);
|
|
2148
2148
|
h("z", 0, 0, "zoneAbbr");
|
|
2149
2149
|
h("zz", 0, 0, "zoneName");
|
|
2150
|
-
function
|
|
2150
|
+
function ji() {
|
|
2151
2151
|
return this._isUTC ? "UTC" : "";
|
|
2152
2152
|
}
|
|
2153
|
-
function
|
|
2153
|
+
function Vi() {
|
|
2154
2154
|
return this._isUTC ? "Coordinated Universal Time" : "";
|
|
2155
2155
|
}
|
|
2156
2156
|
var o = ke.prototype;
|
|
@@ -2158,71 +2158,71 @@ o.add = La;
|
|
|
2158
2158
|
o.calendar = ja;
|
|
2159
2159
|
o.clone = Va;
|
|
2160
2160
|
o.diff = Ja;
|
|
2161
|
-
o.endOf =
|
|
2162
|
-
o.format =
|
|
2163
|
-
o.from =
|
|
2164
|
-
o.fromNow =
|
|
2165
|
-
o.to =
|
|
2166
|
-
o.toNow =
|
|
2161
|
+
o.endOf = ni;
|
|
2162
|
+
o.format = ei;
|
|
2163
|
+
o.from = ti;
|
|
2164
|
+
o.fromNow = ri;
|
|
2165
|
+
o.to = si;
|
|
2166
|
+
o.toNow = ai;
|
|
2167
2167
|
o.get = Xr;
|
|
2168
|
-
o.invalidAt =
|
|
2168
|
+
o.invalidAt = _i;
|
|
2169
2169
|
o.isAfter = Ga;
|
|
2170
2170
|
o.isBefore = za;
|
|
2171
2171
|
o.isBetween = $a;
|
|
2172
2172
|
o.isSame = qa;
|
|
2173
2173
|
o.isSameOrAfter = Za;
|
|
2174
2174
|
o.isSameOrBefore = Ba;
|
|
2175
|
-
o.isValid =
|
|
2175
|
+
o.isValid = ci;
|
|
2176
2176
|
o.lang = fr;
|
|
2177
2177
|
o.locale = hr;
|
|
2178
2178
|
o.localeData = cr;
|
|
2179
2179
|
o.max = ca;
|
|
2180
2180
|
o.min = fa;
|
|
2181
|
-
o.parsingFlags =
|
|
2181
|
+
o.parsingFlags = mi;
|
|
2182
2182
|
o.set = es;
|
|
2183
|
-
o.startOf =
|
|
2183
|
+
o.startOf = ii;
|
|
2184
2184
|
o.subtract = Ca;
|
|
2185
|
-
o.toArray =
|
|
2186
|
-
o.toObject =
|
|
2187
|
-
o.toDate =
|
|
2185
|
+
o.toArray = di;
|
|
2186
|
+
o.toObject = hi;
|
|
2187
|
+
o.toDate = ui;
|
|
2188
2188
|
o.toISOString = Ka;
|
|
2189
2189
|
o.inspect = Xa;
|
|
2190
2190
|
typeof Symbol < "u" && Symbol.for != null && (o[Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
2191
2191
|
return "Moment<" + this.format() + ">";
|
|
2192
2192
|
});
|
|
2193
|
-
o.toJSON =
|
|
2193
|
+
o.toJSON = fi;
|
|
2194
2194
|
o.toString = Qa;
|
|
2195
|
-
o.unix =
|
|
2196
|
-
o.valueOf =
|
|
2197
|
-
o.creationData =
|
|
2198
|
-
o.eraName =
|
|
2199
|
-
o.eraNarrow =
|
|
2200
|
-
o.eraAbbr =
|
|
2201
|
-
o.eraYear =
|
|
2195
|
+
o.unix = li;
|
|
2196
|
+
o.valueOf = oi;
|
|
2197
|
+
o.creationData = yi;
|
|
2198
|
+
o.eraName = gi;
|
|
2199
|
+
o.eraNarrow = ki;
|
|
2200
|
+
o.eraAbbr = Si;
|
|
2201
|
+
o.eraYear = vi;
|
|
2202
2202
|
o.year = Vt;
|
|
2203
2203
|
o.isLeapYear = Kr;
|
|
2204
|
-
o.weekYear =
|
|
2205
|
-
o.isoWeekYear =
|
|
2206
|
-
o.quarter = o.quarters =
|
|
2204
|
+
o.weekYear = Pi;
|
|
2205
|
+
o.isoWeekYear = Wi;
|
|
2206
|
+
o.quarter = o.quarters = Ui;
|
|
2207
2207
|
o.month = Zt;
|
|
2208
2208
|
o.daysInMonth = us;
|
|
2209
|
-
o.week = o.weeks =
|
|
2210
|
-
o.isoWeek = o.isoWeeks =
|
|
2211
|
-
o.weeksInYear =
|
|
2212
|
-
o.weeksInWeekYear =
|
|
2213
|
-
o.isoWeeksInYear =
|
|
2214
|
-
o.isoWeeksInISOWeekYear =
|
|
2215
|
-
o.date =
|
|
2209
|
+
o.week = o.weeks = ps;
|
|
2210
|
+
o.isoWeek = o.isoWeeks = ws;
|
|
2211
|
+
o.weeksInYear = Fi;
|
|
2212
|
+
o.weeksInWeekYear = Li;
|
|
2213
|
+
o.isoWeeksInYear = Ri;
|
|
2214
|
+
o.isoWeeksInISOWeekYear = Ni;
|
|
2215
|
+
o.date = wr;
|
|
2216
2216
|
o.day = o.days = Ws;
|
|
2217
2217
|
o.weekday = Rs;
|
|
2218
2218
|
o.isoWeekday = Ns;
|
|
2219
|
-
o.dayOfYear =
|
|
2219
|
+
o.dayOfYear = Ii;
|
|
2220
2220
|
o.hour = o.hours = Es;
|
|
2221
|
-
o.minute = o.minutes =
|
|
2222
|
-
o.second = o.seconds =
|
|
2223
|
-
o.millisecond = o.milliseconds =
|
|
2224
|
-
o.utcOffset =
|
|
2225
|
-
o.utc =
|
|
2221
|
+
o.minute = o.minutes = Hi;
|
|
2222
|
+
o.second = o.seconds = Ei;
|
|
2223
|
+
o.millisecond = o.milliseconds = Mr;
|
|
2224
|
+
o.utcOffset = Sa;
|
|
2225
|
+
o.utc = Da;
|
|
2226
2226
|
o.local = Ya;
|
|
2227
2227
|
o.parseZone = Oa;
|
|
2228
2228
|
o.hasAlignedHourOffset = ba;
|
|
@@ -2231,11 +2231,11 @@ o.isLocal = Pa;
|
|
|
2231
2231
|
o.isUtcOffset = Wa;
|
|
2232
2232
|
o.isUtc = or;
|
|
2233
2233
|
o.isUTC = or;
|
|
2234
|
-
o.zoneAbbr =
|
|
2235
|
-
o.zoneName =
|
|
2234
|
+
o.zoneAbbr = ji;
|
|
2235
|
+
o.zoneName = Vi;
|
|
2236
2236
|
o.dates = P(
|
|
2237
2237
|
"dates accessor is deprecated. Use date instead.",
|
|
2238
|
-
|
|
2238
|
+
wr
|
|
2239
2239
|
);
|
|
2240
2240
|
o.months = P(
|
|
2241
2241
|
"months accessor is deprecated. Use month instead",
|
|
@@ -2247,57 +2247,57 @@ o.years = P(
|
|
|
2247
2247
|
);
|
|
2248
2248
|
o.zone = P(
|
|
2249
2249
|
"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
|
|
2250
|
-
|
|
2250
|
+
va
|
|
2251
2251
|
);
|
|
2252
2252
|
o.isDSTShifted = P(
|
|
2253
2253
|
"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
|
|
2254
2254
|
xa
|
|
2255
2255
|
);
|
|
2256
|
-
function
|
|
2257
|
-
return
|
|
2256
|
+
function Gi(e) {
|
|
2257
|
+
return g(e * 1e3);
|
|
2258
2258
|
}
|
|
2259
|
-
function
|
|
2260
|
-
return
|
|
2259
|
+
function zi() {
|
|
2260
|
+
return g.apply(null, arguments).parseZone();
|
|
2261
2261
|
}
|
|
2262
|
-
function
|
|
2262
|
+
function gr(e) {
|
|
2263
2263
|
return e;
|
|
2264
2264
|
}
|
|
2265
|
-
var
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2265
|
+
var w = ot.prototype;
|
|
2266
|
+
w.calendar = Pr;
|
|
2267
|
+
w.longDateFormat = Fr;
|
|
2268
|
+
w.invalidDate = Cr;
|
|
2269
|
+
w.ordinal = Hr;
|
|
2270
|
+
w.preparse = gr;
|
|
2271
|
+
w.postformat = gr;
|
|
2272
|
+
w.relativeTime = Ar;
|
|
2273
|
+
w.pastFuture = jr;
|
|
2274
|
+
w.set = Tr;
|
|
2275
|
+
w.eras = pi;
|
|
2276
|
+
w.erasParse = wi;
|
|
2277
|
+
w.erasConvertYear = Mi;
|
|
2278
|
+
w.erasAbbrRegex = Yi;
|
|
2279
|
+
w.erasNameRegex = Di;
|
|
2280
|
+
w.erasNarrowRegex = Oi;
|
|
2281
|
+
w.months = is;
|
|
2282
|
+
w.monthsShort = ns;
|
|
2283
|
+
w.monthsParse = ls;
|
|
2284
|
+
w.monthsRegex = hs;
|
|
2285
|
+
w.monthsShortRegex = ds;
|
|
2286
|
+
w.week = cs;
|
|
2287
|
+
w.firstDayOfYear = ys;
|
|
2288
|
+
w.firstDayOfWeek = _s;
|
|
2289
|
+
w.weekdays = Os;
|
|
2290
|
+
w.weekdaysMin = Ts;
|
|
2291
|
+
w.weekdaysShort = bs;
|
|
2292
|
+
w.weekdaysParse = Ps;
|
|
2293
|
+
w.weekdaysRegex = Fs;
|
|
2294
|
+
w.weekdaysShortRegex = Ls;
|
|
2295
|
+
w.weekdaysMinRegex = Cs;
|
|
2296
|
+
w.isPM = Is;
|
|
2297
|
+
w.meridiem = As;
|
|
2298
2298
|
function Fe(e, t, r, s) {
|
|
2299
|
-
var a = Z(),
|
|
2300
|
-
return a[r](
|
|
2299
|
+
var a = Z(), i = I().set(s, t);
|
|
2300
|
+
return a[r](i, e);
|
|
2301
2301
|
}
|
|
2302
2302
|
function kr(e, t, r) {
|
|
2303
2303
|
if (q(e) && (t = e, e = void 0), e = e || "", t != null)
|
|
@@ -2309,26 +2309,26 @@ function kr(e, t, r) {
|
|
|
2309
2309
|
}
|
|
2310
2310
|
function Yt(e, t, r, s) {
|
|
2311
2311
|
typeof e == "boolean" ? (q(t) && (r = t, t = void 0), t = t || "") : (t = e, r = t, e = !1, q(t) && (r = t, t = void 0), t = t || "");
|
|
2312
|
-
var a = Z(),
|
|
2312
|
+
var a = Z(), i = e ? a._week.dow : 0, n, u = [];
|
|
2313
2313
|
if (r != null)
|
|
2314
|
-
return Fe(t, (r +
|
|
2315
|
-
for (
|
|
2316
|
-
u[
|
|
2314
|
+
return Fe(t, (r + i) % 7, s, "day");
|
|
2315
|
+
for (n = 0; n < 7; n++)
|
|
2316
|
+
u[n] = Fe(t, (n + i) % 7, s, "day");
|
|
2317
2317
|
return u;
|
|
2318
2318
|
}
|
|
2319
|
-
function
|
|
2319
|
+
function $i(e, t) {
|
|
2320
2320
|
return kr(e, t, "months");
|
|
2321
2321
|
}
|
|
2322
|
-
function
|
|
2322
|
+
function qi(e, t) {
|
|
2323
2323
|
return kr(e, t, "monthsShort");
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2325
|
+
function Zi(e, t, r) {
|
|
2326
2326
|
return Yt(e, t, r, "weekdays");
|
|
2327
2327
|
}
|
|
2328
|
-
function
|
|
2328
|
+
function Bi(e, t, r) {
|
|
2329
2329
|
return Yt(e, t, r, "weekdaysShort");
|
|
2330
2330
|
}
|
|
2331
|
-
function
|
|
2331
|
+
function Ji(e, t, r) {
|
|
2332
2332
|
return Yt(e, t, r, "weekdaysMin");
|
|
2333
2333
|
}
|
|
2334
2334
|
X("en", {
|
|
@@ -2365,39 +2365,39 @@ l.langData = P(
|
|
|
2365
2365
|
Z
|
|
2366
2366
|
);
|
|
2367
2367
|
var A = Math.abs;
|
|
2368
|
-
function
|
|
2368
|
+
function Qi() {
|
|
2369
2369
|
var e = this._data;
|
|
2370
2370
|
return this._milliseconds = A(this._milliseconds), this._days = A(this._days), this._months = A(this._months), e.milliseconds = A(e.milliseconds), e.seconds = A(e.seconds), e.minutes = A(e.minutes), e.hours = A(e.hours), e.months = A(e.months), e.years = A(e.years), this;
|
|
2371
2371
|
}
|
|
2372
|
-
function
|
|
2372
|
+
function Sr(e, t, r, s) {
|
|
2373
2373
|
var a = L(t, r);
|
|
2374
2374
|
return e._milliseconds += s * a._milliseconds, e._days += s * a._days, e._months += s * a._months, e._bubble();
|
|
2375
2375
|
}
|
|
2376
|
-
function
|
|
2377
|
-
return
|
|
2376
|
+
function Ki(e, t) {
|
|
2377
|
+
return Sr(this, e, t, 1);
|
|
2378
2378
|
}
|
|
2379
|
-
function
|
|
2380
|
-
return
|
|
2379
|
+
function Xi(e, t) {
|
|
2380
|
+
return Sr(this, e, t, -1);
|
|
2381
2381
|
}
|
|
2382
2382
|
function Rt(e) {
|
|
2383
2383
|
return e < 0 ? Math.floor(e) : Math.ceil(e);
|
|
2384
2384
|
}
|
|
2385
|
-
function
|
|
2386
|
-
var e = this._milliseconds, t = this._days, r = this._months, s = this._data, a,
|
|
2387
|
-
return e >= 0 && t >= 0 && r >= 0 || e <= 0 && t <= 0 && r <= 0 || (e += Rt(st(r) + t) * 864e5, t = 0, r = 0), s.milliseconds = e % 1e3, a = x(e / 1e3), s.seconds = a % 60,
|
|
2385
|
+
function en() {
|
|
2386
|
+
var e = this._milliseconds, t = this._days, r = this._months, s = this._data, a, i, n, u, f;
|
|
2387
|
+
return e >= 0 && t >= 0 && r >= 0 || e <= 0 && t <= 0 && r <= 0 || (e += Rt(st(r) + t) * 864e5, t = 0, r = 0), s.milliseconds = e % 1e3, a = x(e / 1e3), s.seconds = a % 60, i = x(a / 60), s.minutes = i % 60, n = x(i / 60), s.hours = n % 24, t += x(n / 24), f = x(vr(t)), r += f, t -= Rt(st(f)), u = x(r / 12), r %= 12, s.days = t, s.months = r, s.years = u, this;
|
|
2388
2388
|
}
|
|
2389
|
-
function
|
|
2389
|
+
function vr(e) {
|
|
2390
2390
|
return e * 4800 / 146097;
|
|
2391
2391
|
}
|
|
2392
2392
|
function st(e) {
|
|
2393
2393
|
return e * 146097 / 4800;
|
|
2394
2394
|
}
|
|
2395
|
-
function
|
|
2395
|
+
function tn(e) {
|
|
2396
2396
|
if (!this.isValid())
|
|
2397
2397
|
return NaN;
|
|
2398
2398
|
var t, r, s = this._milliseconds;
|
|
2399
2399
|
if (e = W(e), e === "month" || e === "quarter" || e === "year")
|
|
2400
|
-
switch (t = this._days + s / 864e5, r = this._months +
|
|
2400
|
+
switch (t = this._days + s / 864e5, r = this._months + vr(t), e) {
|
|
2401
2401
|
case "month":
|
|
2402
2402
|
return r;
|
|
2403
2403
|
case "quarter":
|
|
@@ -2428,11 +2428,11 @@ function B(e) {
|
|
|
2428
2428
|
return this.as(e);
|
|
2429
2429
|
};
|
|
2430
2430
|
}
|
|
2431
|
-
var
|
|
2432
|
-
function
|
|
2431
|
+
var Dr = B("ms"), rn = B("s"), sn = B("m"), an = B("h"), nn = B("d"), on = B("w"), ln = B("M"), un = B("Q"), dn = B("y"), hn = Dr;
|
|
2432
|
+
function fn() {
|
|
2433
2433
|
return L(this);
|
|
2434
2434
|
}
|
|
2435
|
-
function
|
|
2435
|
+
function cn(e) {
|
|
2436
2436
|
return e = W(e), this.isValid() ? this[e + "s"]() : NaN;
|
|
2437
2437
|
}
|
|
2438
2438
|
function se(e) {
|
|
@@ -2440,11 +2440,11 @@ function se(e) {
|
|
|
2440
2440
|
return this.isValid() ? this._data[e] : NaN;
|
|
2441
2441
|
};
|
|
2442
2442
|
}
|
|
2443
|
-
var
|
|
2444
|
-
function
|
|
2443
|
+
var mn = se("milliseconds"), _n = se("seconds"), yn = se("minutes"), pn = se("hours"), wn = se("days"), Mn = se("months"), gn = se("years");
|
|
2444
|
+
function kn() {
|
|
2445
2445
|
return x(this.days() / 7);
|
|
2446
2446
|
}
|
|
2447
|
-
var j = Math.round,
|
|
2447
|
+
var j = Math.round, ne = {
|
|
2448
2448
|
ss: 44,
|
|
2449
2449
|
// a few seconds to seconds
|
|
2450
2450
|
s: 45,
|
|
@@ -2460,24 +2460,24 @@ var j = Math.round, ie = {
|
|
|
2460
2460
|
M: 11
|
|
2461
2461
|
// months to year
|
|
2462
2462
|
};
|
|
2463
|
-
function
|
|
2463
|
+
function Sn(e, t, r, s, a) {
|
|
2464
2464
|
return a.relativeTime(t || 1, !!r, e, s);
|
|
2465
2465
|
}
|
|
2466
|
-
function
|
|
2467
|
-
var a = L(e).abs(),
|
|
2468
|
-
return r.w != null && (J = J || O <= 1 && ["w"] || O < r.w && ["ww", O]), J = J || _ <= 1 && ["M"] || _ < r.M && ["MM", _] || E <= 1 && ["y"] || ["yy", E], J[2] = t, J[3] = +e > 0, J[4] = s,
|
|
2466
|
+
function vn(e, t, r, s) {
|
|
2467
|
+
var a = L(e).abs(), i = j(a.as("s")), n = j(a.as("m")), u = j(a.as("h")), f = j(a.as("d")), _ = j(a.as("M")), O = j(a.as("w")), E = j(a.as("y")), J = i <= r.ss && ["s", i] || i < r.s && ["ss", i] || n <= 1 && ["m"] || n < r.m && ["mm", n] || u <= 1 && ["h"] || u < r.h && ["hh", u] || f <= 1 && ["d"] || f < r.d && ["dd", f];
|
|
2468
|
+
return r.w != null && (J = J || O <= 1 && ["w"] || O < r.w && ["ww", O]), J = J || _ <= 1 && ["M"] || _ < r.M && ["MM", _] || E <= 1 && ["y"] || ["yy", E], J[2] = t, J[3] = +e > 0, J[4] = s, Sn.apply(null, J);
|
|
2469
2469
|
}
|
|
2470
|
-
function
|
|
2470
|
+
function Dn(e) {
|
|
2471
2471
|
return e === void 0 ? j : typeof e == "function" ? (j = e, !0) : !1;
|
|
2472
2472
|
}
|
|
2473
|
-
function
|
|
2474
|
-
return
|
|
2473
|
+
function Yn(e, t) {
|
|
2474
|
+
return ne[e] === void 0 ? !1 : t === void 0 ? ne[e] : (ne[e] = t, e === "s" && (ne.ss = t - 1), !0);
|
|
2475
2475
|
}
|
|
2476
|
-
function
|
|
2476
|
+
function On(e, t) {
|
|
2477
2477
|
if (!this.isValid())
|
|
2478
2478
|
return this.localeData().invalidDate();
|
|
2479
|
-
var r = !1, s =
|
|
2480
|
-
return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (r = e), typeof t == "object" && (s = Object.assign({},
|
|
2479
|
+
var r = !1, s = ne, a, i;
|
|
2480
|
+
return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (r = e), typeof t == "object" && (s = Object.assign({}, ne, t), t.s != null && t.ss == null && (s.ss = t.s - 1)), a = this.localeData(), i = vn(this, !r, s, a), r && (i = a.pastFuture(+this, i)), a.postformat(i);
|
|
2481
2481
|
}
|
|
2482
2482
|
var Be = Math.abs;
|
|
2483
2483
|
function ae(e) {
|
|
@@ -2486,37 +2486,37 @@ function ae(e) {
|
|
|
2486
2486
|
function ze() {
|
|
2487
2487
|
if (!this.isValid())
|
|
2488
2488
|
return this.localeData().invalidDate();
|
|
2489
|
-
var e = Be(this._milliseconds) / 1e3, t = Be(this._days), r = Be(this._months), s, a,
|
|
2490
|
-
return u ? (s = x(e / 60), a = x(s / 60), e %= 60, s %= 60,
|
|
2489
|
+
var e = Be(this._milliseconds) / 1e3, t = Be(this._days), r = Be(this._months), s, a, i, n, u = this.asSeconds(), f, _, O, E;
|
|
2490
|
+
return u ? (s = x(e / 60), a = x(s / 60), e %= 60, s %= 60, i = x(r / 12), r %= 12, n = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", f = u < 0 ? "-" : "", _ = ae(this._months) !== ae(u) ? "-" : "", O = ae(this._days) !== ae(u) ? "-" : "", E = ae(this._milliseconds) !== ae(u) ? "-" : "", f + "P" + (i ? _ + i + "Y" : "") + (r ? _ + r + "M" : "") + (t ? O + t + "D" : "") + (a || s || e ? "T" : "") + (a ? E + a + "H" : "") + (s ? E + s + "M" : "") + (e ? E + n + "S" : "")) : "P0D";
|
|
2491
2491
|
}
|
|
2492
2492
|
var y = Ve.prototype;
|
|
2493
|
-
y.isValid =
|
|
2494
|
-
y.abs =
|
|
2495
|
-
y.add =
|
|
2496
|
-
y.subtract =
|
|
2497
|
-
y.as =
|
|
2498
|
-
y.asMilliseconds =
|
|
2499
|
-
y.asSeconds =
|
|
2500
|
-
y.asMinutes =
|
|
2501
|
-
y.asHours =
|
|
2502
|
-
y.asDays =
|
|
2503
|
-
y.asWeeks =
|
|
2504
|
-
y.asMonths =
|
|
2505
|
-
y.asQuarters =
|
|
2506
|
-
y.asYears =
|
|
2507
|
-
y.valueOf =
|
|
2508
|
-
y._bubble =
|
|
2509
|
-
y.clone =
|
|
2510
|
-
y.get =
|
|
2511
|
-
y.milliseconds =
|
|
2512
|
-
y.seconds =
|
|
2513
|
-
y.minutes =
|
|
2514
|
-
y.hours =
|
|
2515
|
-
y.days =
|
|
2516
|
-
y.weeks =
|
|
2517
|
-
y.months =
|
|
2518
|
-
y.years =
|
|
2519
|
-
y.humanize =
|
|
2493
|
+
y.isValid = wa;
|
|
2494
|
+
y.abs = Qi;
|
|
2495
|
+
y.add = Ki;
|
|
2496
|
+
y.subtract = Xi;
|
|
2497
|
+
y.as = tn;
|
|
2498
|
+
y.asMilliseconds = Dr;
|
|
2499
|
+
y.asSeconds = rn;
|
|
2500
|
+
y.asMinutes = sn;
|
|
2501
|
+
y.asHours = an;
|
|
2502
|
+
y.asDays = nn;
|
|
2503
|
+
y.asWeeks = on;
|
|
2504
|
+
y.asMonths = ln;
|
|
2505
|
+
y.asQuarters = un;
|
|
2506
|
+
y.asYears = dn;
|
|
2507
|
+
y.valueOf = hn;
|
|
2508
|
+
y._bubble = en;
|
|
2509
|
+
y.clone = fn;
|
|
2510
|
+
y.get = cn;
|
|
2511
|
+
y.milliseconds = mn;
|
|
2512
|
+
y.seconds = _n;
|
|
2513
|
+
y.minutes = yn;
|
|
2514
|
+
y.hours = pn;
|
|
2515
|
+
y.days = wn;
|
|
2516
|
+
y.weeks = kn;
|
|
2517
|
+
y.months = Mn;
|
|
2518
|
+
y.years = gn;
|
|
2519
|
+
y.humanize = On;
|
|
2520
2520
|
y.toISOString = ze;
|
|
2521
2521
|
y.toString = ze;
|
|
2522
2522
|
y.toJSON = ze;
|
|
@@ -2531,40 +2531,40 @@ h("X", 0, 0, "unix");
|
|
|
2531
2531
|
h("x", 0, 0, "valueOf");
|
|
2532
2532
|
d("x", He);
|
|
2533
2533
|
d("X", $r);
|
|
2534
|
-
|
|
2534
|
+
M("X", function(e, t, r) {
|
|
2535
2535
|
r._d = new Date(parseFloat(e) * 1e3);
|
|
2536
2536
|
});
|
|
2537
|
-
|
|
2537
|
+
M("x", function(e, t, r) {
|
|
2538
2538
|
r._d = new Date(m(e));
|
|
2539
2539
|
});
|
|
2540
2540
|
//! moment.js
|
|
2541
2541
|
l.version = "2.30.1";
|
|
2542
|
-
Or(
|
|
2542
|
+
Or(g);
|
|
2543
2543
|
l.fn = o;
|
|
2544
2544
|
l.min = ma;
|
|
2545
2545
|
l.max = _a;
|
|
2546
2546
|
l.now = ya;
|
|
2547
2547
|
l.utc = I;
|
|
2548
|
-
l.unix =
|
|
2549
|
-
l.months =
|
|
2550
|
-
l.isDate =
|
|
2548
|
+
l.unix = Gi;
|
|
2549
|
+
l.months = $i;
|
|
2550
|
+
l.isDate = ge;
|
|
2551
2551
|
l.locale = X;
|
|
2552
2552
|
l.invalid = Le;
|
|
2553
2553
|
l.duration = L;
|
|
2554
2554
|
l.isMoment = F;
|
|
2555
|
-
l.weekdays =
|
|
2556
|
-
l.parseZone =
|
|
2555
|
+
l.weekdays = Zi;
|
|
2556
|
+
l.parseZone = zi;
|
|
2557
2557
|
l.localeData = Z;
|
|
2558
2558
|
l.isDuration = Te;
|
|
2559
|
-
l.monthsShort =
|
|
2560
|
-
l.weekdaysMin =
|
|
2561
|
-
l.defineLocale =
|
|
2559
|
+
l.monthsShort = qi;
|
|
2560
|
+
l.weekdaysMin = Ji;
|
|
2561
|
+
l.defineLocale = pt;
|
|
2562
2562
|
l.updateLocale = zs;
|
|
2563
2563
|
l.locales = $s;
|
|
2564
|
-
l.weekdaysShort =
|
|
2564
|
+
l.weekdaysShort = Bi;
|
|
2565
2565
|
l.normalizeUnits = W;
|
|
2566
|
-
l.relativeTimeRounding =
|
|
2567
|
-
l.relativeTimeThreshold =
|
|
2566
|
+
l.relativeTimeRounding = Dn;
|
|
2567
|
+
l.relativeTimeThreshold = Yn;
|
|
2568
2568
|
l.calendarFormat = Aa;
|
|
2569
2569
|
l.prototype = o;
|
|
2570
2570
|
l.HTML5_FMT = {
|
|
@@ -2587,7 +2587,7 @@ l.HTML5_FMT = {
|
|
|
2587
2587
|
MONTH: "YYYY-MM"
|
|
2588
2588
|
// <input type="month" />
|
|
2589
2589
|
};
|
|
2590
|
-
const
|
|
2590
|
+
const bn = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, Tn = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i, Nt = /(janv\.?|févr\.?|avr\.?|juil\.?|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, Je = [
|
|
2591
2591
|
/^janv/i,
|
|
2592
2592
|
/^févr/i,
|
|
2593
2593
|
/^mars/i,
|
|
@@ -2600,15 +2600,15 @@ const bi = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octob
|
|
|
2600
2600
|
/^oct/i,
|
|
2601
2601
|
/^nov/i,
|
|
2602
2602
|
/^déc/i
|
|
2603
|
-
],
|
|
2603
|
+
], xn = {
|
|
2604
2604
|
months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split(
|
|
2605
2605
|
"_"
|
|
2606
2606
|
),
|
|
2607
2607
|
monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
|
|
2608
2608
|
monthsRegex: Nt,
|
|
2609
2609
|
monthsShortRegex: Nt,
|
|
2610
|
-
monthsStrictRegex:
|
|
2611
|
-
monthsShortStrictRegex:
|
|
2610
|
+
monthsStrictRegex: bn,
|
|
2611
|
+
monthsShortStrictRegex: Tn,
|
|
2612
2612
|
monthsParse: Je,
|
|
2613
2613
|
longMonthsParse: Je,
|
|
2614
2614
|
shortMonthsParse: Je,
|
|
@@ -2670,28 +2670,28 @@ const bi = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octob
|
|
|
2670
2670
|
dow: 1,
|
|
2671
2671
|
doy: 4
|
|
2672
2672
|
}
|
|
2673
|
-
},
|
|
2673
|
+
}, Pn = " ", Wn = " ", An = (e, t = "") => e.split(t).join(Pn), jn = (e, t = "") => e.split(t).join(Wn), Vn = (e, t) => e.length > t ? e.slice(0, t - 3) + "..." : e, Rn = (e) => e && e[0].toUpperCase() + e.slice(1), Yr = (e) => e.split(" ").map(Rn).join(" "), Gn = (e) => /^\d+$/.test(e), zn = (e) => e !== Math.round(e) || e < 1 || e === 1 / 0 || e === -1 / 0 ? null : e === 1 ? "1er" : `${e}ème`, $n = (e) => e.trim().replace(/\s+/gi, " "), qn = (e) => {
|
|
2674
2674
|
const t = e.split(" "), s = ((a) => {
|
|
2675
|
-
let
|
|
2676
|
-
for (let
|
|
2675
|
+
let i = 1 / 0;
|
|
2676
|
+
for (let n = 0; n < a.length; n++) {
|
|
2677
2677
|
const u = Math.abs(
|
|
2678
|
-
a.slice(0,
|
|
2678
|
+
a.slice(0, n + 1).join(" ").length - a.slice(n + 1).join(" ").length
|
|
2679
2679
|
);
|
|
2680
|
-
if (u <=
|
|
2681
|
-
|
|
2680
|
+
if (u <= i)
|
|
2681
|
+
i = u;
|
|
2682
2682
|
else
|
|
2683
|
-
return
|
|
2683
|
+
return n - 1;
|
|
2684
2684
|
}
|
|
2685
|
-
return
|
|
2685
|
+
return i;
|
|
2686
2686
|
})(t);
|
|
2687
2687
|
return t.length === 1 ? [t[0]] : [t.slice(0, s + 1), t.slice(s + 1)].map(
|
|
2688
2688
|
(a) => a.join(" ")
|
|
2689
2689
|
);
|
|
2690
2690
|
};
|
|
2691
|
-
l.locale("fr",
|
|
2692
|
-
const
|
|
2691
|
+
l.locale("fr", xn);
|
|
2692
|
+
const Zn = (e) => new Date(e).toString() !== "Invalid Date", Bn = (e, t) => Math.abs(
|
|
2693
2693
|
Math.ceil((t.getTime() - e.getTime()) / (1e3 * 60 * 60 * 24))
|
|
2694
|
-
),
|
|
2694
|
+
), Jn = (e) => Yr(l(e).format("DD MMMM YYYY")), Qn = (e) => Yr(l(e).format("dddd DD MMMM YYYY")), Kn = (e, t, r = !0) => (r ? e.getFullYear() === t.getFullYear() : !0) && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Xn = () => l().locale("fr").subtract(1, "days").toDate(), eo = (e) => {
|
|
2695
2695
|
const t = [], r = l.duration(e);
|
|
2696
2696
|
if (!(!r || r.toISOString() === "P0D")) {
|
|
2697
2697
|
if (r.years() >= 1) {
|
|
@@ -2724,13 +2724,13 @@ const Zi = (e) => new Date(e).toString() !== "Invalid Date", Bi = (e, t) => Math
|
|
|
2724
2724
|
const t = Ot.exec(e);
|
|
2725
2725
|
if (!t)
|
|
2726
2726
|
return null;
|
|
2727
|
-
const [, r, s] = t, a = parseInt(r, 10),
|
|
2727
|
+
const [, r, s] = t, a = parseInt(r, 10), i = 1e3 * 60;
|
|
2728
2728
|
if (s === "m")
|
|
2729
|
-
return
|
|
2729
|
+
return i * a;
|
|
2730
2730
|
if (s === "h")
|
|
2731
|
-
return
|
|
2731
|
+
return i * 60 * a;
|
|
2732
2732
|
if (s === "d")
|
|
2733
|
-
return
|
|
2733
|
+
return i * 60 * 24 * a;
|
|
2734
2734
|
}, so = (e) => {
|
|
2735
2735
|
const t = Ot.exec(e);
|
|
2736
2736
|
if (!t)
|
|
@@ -2862,8 +2862,33 @@ const Zi = (e) => new Date(e).toString() !== "Invalid Date", Bi = (e, t) => Math
|
|
|
2862
2862
|
item_repair_glue: "<:Colle:1233782388497186846>",
|
|
2863
2863
|
item_repair_rope: "<:Corde:1233782392225927168>",
|
|
2864
2864
|
item_repair_kit: "<:Kitderparation:1233782876223570011>",
|
|
2865
|
-
item_repair_tissue: "<:Tissus:1233784184099573852>"
|
|
2866
|
-
|
|
2865
|
+
item_repair_tissue: "<:Tissus:1233784184099573852>",
|
|
2866
|
+
item_ship_lock: "<:Serrureclef:1233782436068982814>",
|
|
2867
|
+
item_ship_iron: "<:Ferbrut:1233782399125426207>",
|
|
2868
|
+
item_ship_clover: "<:Treflesixfeuilles:1233782439503990915> ",
|
|
2869
|
+
item_ship_glass_bottle: "<:Fioleenverre:1233782402233532496>",
|
|
2870
|
+
item_ship_pure_water: "<:Eaupure:1233782393572298802>",
|
|
2871
|
+
item_ship_sea_salt: "<:SelMarin:1233784181696233602>",
|
|
2872
|
+
item_ship_ebony_poppy: "<:MandragoreAdulte:1233782409070247946>",
|
|
2873
|
+
item_ship_rose: "<:Roseimmaculee:1233784180215644180>",
|
|
2874
|
+
item_ship_poppy: "<:Coquelicotecarlate:1233782390099280023>",
|
|
2875
|
+
item_ship_manganese: "<:Manganesescintillante:1233784177221042196>",
|
|
2876
|
+
item_ship_cursed_hawthorn: "<:AubpineMaudite:1233782382872629329>",
|
|
2877
|
+
item_ship_mugwort: "<:Armoiseblanche:1233782381400424519>",
|
|
2878
|
+
item_ship_mandrake: "<:MandragoreAdulte:1233782409070247946>",
|
|
2879
|
+
item_ship_obsidian: "<:Obsidiennesombre:1233784178307371110>",
|
|
2880
|
+
item_ship_saffron: "<:Safranvermeille:1233782430385836124>",
|
|
2881
|
+
item_ship_edelweiss: "<:Edelweiss:1233782395019329546>",
|
|
2882
|
+
item_ship_emerald: "<:emeraude:1233782873165791273>",
|
|
2883
|
+
item_ship_ruby: "<:Rubis:1233782426174619679>",
|
|
2884
|
+
item_ship_sapphire: "<:Safranvermeille:1233782430385836124>",
|
|
2885
|
+
item_ship_siren_tear: "<:Larmedesirene:1233782405538517095>",
|
|
2886
|
+
item_ship_compass: "<:Rosedesvents:1233782421892239360>",
|
|
2887
|
+
item_ship_dragon_heart: "<:CoeurdeDragon:1233782386580258848>",
|
|
2888
|
+
item_ship_fairy_wing: "<:Ailedefees:1233782379269722293>",
|
|
2889
|
+
item_ship_phoenix_feather: "<:PlumedePhoenix:1233784783822127167>",
|
|
2890
|
+
item_ship_mithril: "<:MandragoreAdulte:1233782409070247946>"
|
|
2891
|
+
}, Nn = (e) => new Intl.NumberFormat("de-DE").format(e), io = (e, t) => Math.floor(Math.random() * (t - e) + e), Oe = (e) => `${Nn(Math.round(e / 1024 / 1024 * 100) / 100)} MB`, no = () => {
|
|
2867
2892
|
const e = process.memoryUsage(), t = {
|
|
2868
2893
|
rss: `${Oe(e.rss)} -> Resident Set Size - total memory allocated for the process execution`,
|
|
2869
2894
|
heapTotal: `${Oe(e.heapTotal)} -> total size of the allocated heap`,
|
|
@@ -2873,37 +2898,37 @@ const Zi = (e) => new Date(e).toString() !== "Invalid Date", Bi = (e, t) => Math
|
|
|
2873
2898
|
console.log(t);
|
|
2874
2899
|
};
|
|
2875
2900
|
export {
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2901
|
+
Pn as TIGHT_SPACE,
|
|
2902
|
+
Wn as WIDE_SPACE,
|
|
2903
|
+
qn as breakWords,
|
|
2904
|
+
Rn as capitalize,
|
|
2880
2905
|
Yr as capitalizeAllWords,
|
|
2881
|
-
|
|
2906
|
+
Bn as dateDiff,
|
|
2882
2907
|
ro as durationToMs,
|
|
2883
|
-
|
|
2908
|
+
Vn as ellipsis,
|
|
2884
2909
|
ao as emojis,
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2910
|
+
In as exclude,
|
|
2911
|
+
An as fillWithTightSpaces,
|
|
2912
|
+
jn as fillWithWideSpaces,
|
|
2913
|
+
Jn as formatDate,
|
|
2914
|
+
Qn as formatDateWithDay,
|
|
2890
2915
|
so as formatDuration,
|
|
2891
2916
|
Oe as formatMemoryUsage,
|
|
2892
|
-
|
|
2893
|
-
|
|
2917
|
+
Nn as formatNumber,
|
|
2918
|
+
Ln as groupBy,
|
|
2894
2919
|
to as isDuration,
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2920
|
+
Gn as isPositiveInteger,
|
|
2921
|
+
Zn as isValidDate,
|
|
2922
|
+
Un as mutuallyInclusive,
|
|
2923
|
+
zn as numberToOrdinal,
|
|
2924
|
+
Fn as paginate,
|
|
2900
2925
|
eo as precise,
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
$
|
|
2907
|
-
|
|
2908
|
-
|
|
2926
|
+
no as printMemoryUsage,
|
|
2927
|
+
io as randomBetween,
|
|
2928
|
+
Kn as sameDay,
|
|
2929
|
+
En as shuffle,
|
|
2930
|
+
Cn as sortBy,
|
|
2931
|
+
$n as trim,
|
|
2932
|
+
Hn as unique,
|
|
2933
|
+
Xn as yesterday
|
|
2909
2934
|
};
|