@opfr/utils-lang 0.0.10 → 0.0.12
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/array.d.ts +1 -0
- package/dist/emojis.d.ts +25 -0
- package/dist/utils-lang.js +614 -582
- package/dist/utils-lang.umd.cjs +5 -5
- package/package.json +1 -1
package/dist/utils-lang.js
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
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
|
+
for (let t = e.length - 1; t > 0; t--) {
|
|
9
|
+
const r = Math.floor(Math.random() * (t + 1));
|
|
10
|
+
[e[t], e[r]] = [e[r], e[t]];
|
|
11
|
+
}
|
|
12
|
+
return e;
|
|
13
|
+
};
|
|
8
14
|
//! moment.js
|
|
9
15
|
//! version : 2.30.1
|
|
10
16
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
@@ -23,7 +29,7 @@ function N(e) {
|
|
|
23
29
|
function re(e) {
|
|
24
30
|
return e != null && Object.prototype.toString.call(e) === "[object Object]";
|
|
25
31
|
}
|
|
26
|
-
function
|
|
32
|
+
function p(e, t) {
|
|
27
33
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
28
34
|
}
|
|
29
35
|
function at(e) {
|
|
@@ -31,7 +37,7 @@ function at(e) {
|
|
|
31
37
|
return Object.getOwnPropertyNames(e).length === 0;
|
|
32
38
|
var t;
|
|
33
39
|
for (t in e)
|
|
34
|
-
if (
|
|
40
|
+
if (p(e, t))
|
|
35
41
|
return !1;
|
|
36
42
|
return !0;
|
|
37
43
|
}
|
|
@@ -41,7 +47,7 @@ function b(e) {
|
|
|
41
47
|
function q(e) {
|
|
42
48
|
return typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]";
|
|
43
49
|
}
|
|
44
|
-
function
|
|
50
|
+
function ge(e) {
|
|
45
51
|
return e instanceof Date || Object.prototype.toString.call(e) === "[object Date]";
|
|
46
52
|
}
|
|
47
53
|
function Lt(e, t) {
|
|
@@ -52,8 +58,8 @@ function Lt(e, t) {
|
|
|
52
58
|
}
|
|
53
59
|
function Q(e, t) {
|
|
54
60
|
for (var r in t)
|
|
55
|
-
|
|
56
|
-
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;
|
|
57
63
|
}
|
|
58
64
|
function I(e, t, r, s) {
|
|
59
65
|
return ar(e, t, r, s, !0).utc();
|
|
@@ -89,7 +95,7 @@ Array.prototype.some ? Qe = Array.prototype.some : Qe = function(e) {
|
|
|
89
95
|
return !0;
|
|
90
96
|
return !1;
|
|
91
97
|
};
|
|
92
|
-
function
|
|
98
|
+
function it(e) {
|
|
93
99
|
var t = null, r = !1, s = e._d && !isNaN(e._d.getTime());
|
|
94
100
|
if (s && (t = c(e), r = Qe.call(t.parsedDateParts, function(a) {
|
|
95
101
|
return a != null;
|
|
@@ -104,15 +110,15 @@ function Le(e) {
|
|
|
104
110
|
return e != null ? Q(c(t), e) : c(t).userInvalidated = !0, t;
|
|
105
111
|
}
|
|
106
112
|
var bt = l.momentProperties = [], $e = !1;
|
|
107
|
-
function
|
|
108
|
-
var r, s, a,
|
|
109
|
-
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),
|
|
110
|
-
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++)
|
|
111
117
|
s = bt[r], a = t[s], b(a) || (e[s] = a);
|
|
112
118
|
return e;
|
|
113
119
|
}
|
|
114
120
|
function ke(e) {
|
|
115
|
-
|
|
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);
|
|
116
122
|
}
|
|
117
123
|
function F(e) {
|
|
118
124
|
return e instanceof ke || e != null && e._isAMomentObject != null;
|
|
@@ -124,16 +130,16 @@ function P(e, t) {
|
|
|
124
130
|
var r = !0;
|
|
125
131
|
return Q(function() {
|
|
126
132
|
if (l.deprecationHandler != null && l.deprecationHandler(null, e), r) {
|
|
127
|
-
var s = [], a,
|
|
128
|
-
for (
|
|
129
|
-
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") {
|
|
130
136
|
a += `
|
|
131
|
-
[` +
|
|
132
|
-
for (
|
|
133
|
-
|
|
137
|
+
[` + i + "] ";
|
|
138
|
+
for (n in arguments[0])
|
|
139
|
+
p(arguments[0], n) && (a += n + ": " + arguments[0][n] + ", ");
|
|
134
140
|
a = a.slice(0, -2);
|
|
135
141
|
} else
|
|
136
|
-
a = arguments[
|
|
142
|
+
a = arguments[i];
|
|
137
143
|
s.push(a);
|
|
138
144
|
}
|
|
139
145
|
Ct(
|
|
@@ -157,7 +163,7 @@ function H(e) {
|
|
|
157
163
|
function Tr(e) {
|
|
158
164
|
var t, r;
|
|
159
165
|
for (r in e)
|
|
160
|
-
|
|
166
|
+
p(e, r) && (t = e[r], H(t) ? this[r] = t : this["_" + r] = t);
|
|
161
167
|
this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp(
|
|
162
168
|
(this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
|
|
163
169
|
);
|
|
@@ -165,9 +171,9 @@ function Tr(e) {
|
|
|
165
171
|
function Ke(e, t) {
|
|
166
172
|
var r = Q({}, e), s;
|
|
167
173
|
for (s in t)
|
|
168
|
-
|
|
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]);
|
|
169
175
|
for (s in e)
|
|
170
|
-
|
|
176
|
+
p(e, s) && !p(t, s) && re(e[s]) && (r[s] = Q({}, r[s]));
|
|
171
177
|
return r;
|
|
172
178
|
}
|
|
173
179
|
function ot(e) {
|
|
@@ -177,7 +183,7 @@ var Xe;
|
|
|
177
183
|
Object.keys ? Xe = Object.keys : Xe = function(e) {
|
|
178
184
|
var t, r = [];
|
|
179
185
|
for (t in e)
|
|
180
|
-
|
|
186
|
+
p(e, t) && r.push(t);
|
|
181
187
|
return r;
|
|
182
188
|
};
|
|
183
189
|
var xr = {
|
|
@@ -193,10 +199,10 @@ function Pr(e, t, r) {
|
|
|
193
199
|
return H(s) ? s.call(t, r) : s;
|
|
194
200
|
}
|
|
195
201
|
function U(e, t, r) {
|
|
196
|
-
var s = "" + Math.abs(e), a = t - s.length,
|
|
197
|
-
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;
|
|
198
204
|
}
|
|
199
|
-
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 = {};
|
|
200
206
|
function h(e, t, r, s) {
|
|
201
207
|
var a = s;
|
|
202
208
|
typeof s == "string" && (a = function() {
|
|
@@ -218,10 +224,10 @@ function Rr(e) {
|
|
|
218
224
|
for (r = 0, s = t.length; r < s; r++)
|
|
219
225
|
oe[t[r]] ? t[r] = oe[t[r]] : t[r] = Wr(t[r]);
|
|
220
226
|
return function(a) {
|
|
221
|
-
var
|
|
222
|
-
for (
|
|
223
|
-
|
|
224
|
-
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;
|
|
225
231
|
};
|
|
226
232
|
}
|
|
227
233
|
function be(e, t) {
|
|
@@ -232,11 +238,11 @@ function It(e, t) {
|
|
|
232
238
|
function s(a) {
|
|
233
239
|
return t.longDateFormat(a) || a;
|
|
234
240
|
}
|
|
235
|
-
for (
|
|
241
|
+
for (De.lastIndex = 0; r >= 0 && De.test(e); )
|
|
236
242
|
e = e.replace(
|
|
237
|
-
|
|
243
|
+
De,
|
|
238
244
|
s
|
|
239
|
-
),
|
|
245
|
+
), De.lastIndex = 0, r -= 1;
|
|
240
246
|
return e;
|
|
241
247
|
}
|
|
242
248
|
var Nr = {
|
|
@@ -343,7 +349,7 @@ function W(e) {
|
|
|
343
349
|
function ut(e) {
|
|
344
350
|
var t = {}, r, s;
|
|
345
351
|
for (s in e)
|
|
346
|
-
|
|
352
|
+
p(e, s) && (r = W(s), r && (t[r] = e[s]));
|
|
347
353
|
return t;
|
|
348
354
|
}
|
|
349
355
|
var Vr = {
|
|
@@ -367,12 +373,12 @@ var Vr = {
|
|
|
367
373
|
function Gr(e) {
|
|
368
374
|
var t = [], r;
|
|
369
375
|
for (r in e)
|
|
370
|
-
|
|
376
|
+
p(e, r) && t.push({ unit: r, priority: Vr[r] });
|
|
371
377
|
return t.sort(function(s, a) {
|
|
372
378
|
return s.priority - a.priority;
|
|
373
379
|
}), t;
|
|
374
380
|
}
|
|
375
|
-
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;
|
|
376
382
|
Pe = {};
|
|
377
383
|
function d(e, t, r) {
|
|
378
384
|
Pe[e] = H(t) ? t : function(s, a) {
|
|
@@ -380,14 +386,14 @@ function d(e, t, r) {
|
|
|
380
386
|
};
|
|
381
387
|
}
|
|
382
388
|
function qr(e, t) {
|
|
383
|
-
return
|
|
389
|
+
return p(Pe, e) ? Pe[e](t._strict, t._locale) : new RegExp(Zr(e));
|
|
384
390
|
}
|
|
385
391
|
function Zr(e) {
|
|
386
392
|
return z(
|
|
387
393
|
e.replace("\\", "").replace(
|
|
388
394
|
/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
|
|
389
|
-
function(t, r, s, a,
|
|
390
|
-
return r || s || a ||
|
|
395
|
+
function(t, r, s, a, i) {
|
|
396
|
+
return r || s || a || i;
|
|
391
397
|
}
|
|
392
398
|
)
|
|
393
399
|
);
|
|
@@ -403,25 +409,25 @@ function m(e) {
|
|
|
403
409
|
return t !== 0 && isFinite(t) && (r = x(t)), r;
|
|
404
410
|
}
|
|
405
411
|
var et = {};
|
|
406
|
-
function
|
|
412
|
+
function M(e, t) {
|
|
407
413
|
var r, s = t, a;
|
|
408
|
-
for (typeof e == "string" && (e = [e]), q(t) && (s = function(
|
|
409
|
-
|
|
414
|
+
for (typeof e == "string" && (e = [e]), q(t) && (s = function(i, n) {
|
|
415
|
+
n[t] = m(i);
|
|
410
416
|
}), a = e.length, r = 0; r < a; r++)
|
|
411
417
|
et[e[r]] = s;
|
|
412
418
|
}
|
|
413
|
-
function
|
|
414
|
-
|
|
415
|
-
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);
|
|
416
422
|
});
|
|
417
423
|
}
|
|
418
424
|
function Br(e, t, r) {
|
|
419
|
-
t != null &&
|
|
425
|
+
t != null && p(et, e) && et[e](t, r._a, r, e);
|
|
420
426
|
}
|
|
421
427
|
function Ae(e) {
|
|
422
428
|
return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
|
|
423
429
|
}
|
|
424
|
-
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;
|
|
425
431
|
h("Y", 0, 0, function() {
|
|
426
432
|
var e = this.year();
|
|
427
433
|
return e <= 9999 ? U(e, 4) : "+" + e;
|
|
@@ -437,14 +443,14 @@ d("YY", k, T);
|
|
|
437
443
|
d("YYYY", ht, dt);
|
|
438
444
|
d("YYYYY", Ie, Ce);
|
|
439
445
|
d("YYYYYY", Ie, Ce);
|
|
440
|
-
|
|
441
|
-
|
|
446
|
+
M(["YYYYY", "YYYYYY"], Y);
|
|
447
|
+
M("YYYY", function(e, t) {
|
|
442
448
|
t[Y] = e.length === 2 ? l.parseTwoDigitYear(e) : m(e);
|
|
443
449
|
});
|
|
444
|
-
|
|
450
|
+
M("YY", function(e, t) {
|
|
445
451
|
t[Y] = l.parseTwoDigitYear(e);
|
|
446
452
|
});
|
|
447
|
-
|
|
453
|
+
M("Y", function(e, t) {
|
|
448
454
|
t[Y] = parseInt(e, 10);
|
|
449
455
|
});
|
|
450
456
|
function _e(e) {
|
|
@@ -488,7 +494,7 @@ function ye(e, t) {
|
|
|
488
494
|
}
|
|
489
495
|
}
|
|
490
496
|
function Gt(e, t, r) {
|
|
491
|
-
var s, a,
|
|
497
|
+
var s, a, i, n, u;
|
|
492
498
|
if (!(!e.isValid() || isNaN(r))) {
|
|
493
499
|
switch (s = e._d, a = e._isUTC, t) {
|
|
494
500
|
case "Milliseconds":
|
|
@@ -506,7 +512,7 @@ function Gt(e, t, r) {
|
|
|
506
512
|
default:
|
|
507
513
|
return;
|
|
508
514
|
}
|
|
509
|
-
|
|
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);
|
|
510
516
|
}
|
|
511
517
|
}
|
|
512
518
|
function Xr(e) {
|
|
@@ -525,8 +531,8 @@ function es(e, t) {
|
|
|
525
531
|
function ts(e, t) {
|
|
526
532
|
return (e % t + t) % t;
|
|
527
533
|
}
|
|
528
|
-
var
|
|
529
|
-
Array.prototype.indexOf ?
|
|
534
|
+
var v;
|
|
535
|
+
Array.prototype.indexOf ? v = Array.prototype.indexOf : v = function(e) {
|
|
530
536
|
var t;
|
|
531
537
|
for (t = 0; t < this.length; ++t)
|
|
532
538
|
if (this[t] === e)
|
|
@@ -556,34 +562,34 @@ d("MMM", function(e, t) {
|
|
|
556
562
|
d("MMMM", function(e, t) {
|
|
557
563
|
return t.monthsRegex(e);
|
|
558
564
|
});
|
|
559
|
-
|
|
565
|
+
M(["M", "MM"], function(e, t) {
|
|
560
566
|
t[V] = m(e) - 1;
|
|
561
567
|
});
|
|
562
|
-
|
|
568
|
+
M(["MMM", "MMMM"], function(e, t, r, s) {
|
|
563
569
|
var a = r._locale.monthsParse(e, s, r._strict);
|
|
564
570
|
a != null ? t[V] = a : c(r).invalidMonth = e;
|
|
565
571
|
});
|
|
566
572
|
var rs = "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
567
573
|
"_"
|
|
568
|
-
), zt = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), $t = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, ss =
|
|
569
|
-
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) {
|
|
570
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;
|
|
571
577
|
}
|
|
572
|
-
function
|
|
578
|
+
function ns(e, t) {
|
|
573
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;
|
|
574
580
|
}
|
|
575
581
|
function os(e, t, r) {
|
|
576
|
-
var s, a,
|
|
582
|
+
var s, a, i, n = e.toLocaleLowerCase();
|
|
577
583
|
if (!this._monthsParse)
|
|
578
584
|
for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], s = 0; s < 12; ++s)
|
|
579
|
-
|
|
580
|
-
|
|
585
|
+
i = I([2e3, s]), this._shortMonthsParse[s] = this.monthsShort(
|
|
586
|
+
i,
|
|
581
587
|
""
|
|
582
|
-
).toLocaleLowerCase(), this._longMonthsParse[s] = this.months(
|
|
583
|
-
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));
|
|
584
590
|
}
|
|
585
591
|
function ls(e, t, r) {
|
|
586
|
-
var s, a,
|
|
592
|
+
var s, a, i;
|
|
587
593
|
if (this._monthsParseExact)
|
|
588
594
|
return os.call(this, e, t, r);
|
|
589
595
|
for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), s = 0; s < 12; s++) {
|
|
@@ -593,7 +599,7 @@ function ls(e, t, r) {
|
|
|
593
599
|
), this._shortMonthsParse[s] = new RegExp(
|
|
594
600
|
"^" + this.monthsShort(a, "").replace(".", "") + "$",
|
|
595
601
|
"i"
|
|
596
|
-
)), !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))
|
|
597
603
|
return s;
|
|
598
604
|
if (r && t === "MMM" && this._shortMonthsParse[s].test(e))
|
|
599
605
|
return s;
|
|
@@ -620,18 +626,18 @@ function us() {
|
|
|
620
626
|
return ct(this.year(), this.month());
|
|
621
627
|
}
|
|
622
628
|
function ds(e) {
|
|
623
|
-
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);
|
|
624
630
|
}
|
|
625
631
|
function hs(e) {
|
|
626
|
-
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);
|
|
627
633
|
}
|
|
628
634
|
function Bt() {
|
|
629
635
|
function e(f, _) {
|
|
630
636
|
return _.length - f.length;
|
|
631
637
|
}
|
|
632
|
-
var t = [], r = [], s = [], a,
|
|
638
|
+
var t = [], r = [], s = [], a, i, n, u;
|
|
633
639
|
for (a = 0; a < 12; a++)
|
|
634
|
-
|
|
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);
|
|
635
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(
|
|
636
642
|
"^(" + r.join("|") + ")",
|
|
637
643
|
"i"
|
|
@@ -640,30 +646,30 @@ function Bt() {
|
|
|
640
646
|
"i"
|
|
641
647
|
);
|
|
642
648
|
}
|
|
643
|
-
function fs(e, t, r, s, a,
|
|
649
|
+
function fs(e, t, r, s, a, i, n) {
|
|
644
650
|
var u;
|
|
645
|
-
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;
|
|
646
652
|
}
|
|
647
|
-
function
|
|
653
|
+
function pe(e) {
|
|
648
654
|
var t, r;
|
|
649
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;
|
|
650
656
|
}
|
|
651
657
|
function We(e, t, r) {
|
|
652
|
-
var s = 7 + t - r, a = (7 +
|
|
658
|
+
var s = 7 + t - r, a = (7 + pe(e, 0, s).getUTCDay() - t) % 7;
|
|
653
659
|
return -a + s - 1;
|
|
654
660
|
}
|
|
655
661
|
function Jt(e, t, r, s, a) {
|
|
656
|
-
var
|
|
662
|
+
var i = (7 + r - s) % 7, n = We(e, s, a), u = 1 + 7 * (t - 1) + i + n, f, _;
|
|
657
663
|
return u <= 0 ? (f = e - 1, _ = _e(f) + u) : u > _e(e) ? (f = e + 1, _ = u - _e(e)) : (f = e, _ = u), {
|
|
658
664
|
year: f,
|
|
659
665
|
dayOfYear: _
|
|
660
666
|
};
|
|
661
667
|
}
|
|
662
|
-
function
|
|
663
|
-
var s = We(e.year(), t, r), a = Math.floor((e.dayOfYear() - s - 1) / 7) + 1,
|
|
664
|
-
return a < 1 ? (
|
|
665
|
-
week:
|
|
666
|
-
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
|
|
667
673
|
};
|
|
668
674
|
}
|
|
669
675
|
function $(e, t, r) {
|
|
@@ -676,14 +682,14 @@ d("w", k, he);
|
|
|
676
682
|
d("ww", k, T);
|
|
677
683
|
d("W", k, he);
|
|
678
684
|
d("WW", k, T);
|
|
679
|
-
|
|
685
|
+
ve(
|
|
680
686
|
["w", "ww", "W", "WW"],
|
|
681
687
|
function(e, t, r, s) {
|
|
682
688
|
t[s.substr(0, 1)] = m(e);
|
|
683
689
|
}
|
|
684
690
|
);
|
|
685
691
|
function cs(e) {
|
|
686
|
-
return
|
|
692
|
+
return we(e, this._week.dow, this._week.doy).week;
|
|
687
693
|
}
|
|
688
694
|
var ms = {
|
|
689
695
|
dow: 0,
|
|
@@ -697,12 +703,12 @@ function _s() {
|
|
|
697
703
|
function ys() {
|
|
698
704
|
return this._week.doy;
|
|
699
705
|
}
|
|
700
|
-
function
|
|
706
|
+
function ps(e) {
|
|
701
707
|
var t = this.localeData().week(this);
|
|
702
708
|
return e == null ? t : this.add((e - t) * 7, "d");
|
|
703
709
|
}
|
|
704
|
-
function
|
|
705
|
-
var t =
|
|
710
|
+
function ws(e) {
|
|
711
|
+
var t = we(this, 1, 4).week;
|
|
706
712
|
return e == null ? t : this.add((e - t) * 7, "d");
|
|
707
713
|
}
|
|
708
714
|
h("d", 0, "do", "day");
|
|
@@ -729,23 +735,23 @@ d("ddd", function(e, t) {
|
|
|
729
735
|
d("dddd", function(e, t) {
|
|
730
736
|
return t.weekdaysRegex(e);
|
|
731
737
|
});
|
|
732
|
-
|
|
738
|
+
ve(["dd", "ddd", "dddd"], function(e, t, r, s) {
|
|
733
739
|
var a = r._locale.weekdaysParse(e, s, r._strict);
|
|
734
740
|
a != null ? t.d = a : c(r).invalidWeekday = e;
|
|
735
741
|
});
|
|
736
|
-
|
|
742
|
+
ve(["d", "e", "E"], function(e, t, r, s) {
|
|
737
743
|
t[s] = m(e);
|
|
738
744
|
});
|
|
739
|
-
function
|
|
745
|
+
function Ms(e, t) {
|
|
740
746
|
return typeof e != "string" ? e : isNaN(e) ? (e = t.weekdaysParse(e), typeof e == "number" ? e : null) : parseInt(e, 10);
|
|
741
747
|
}
|
|
742
|
-
function
|
|
748
|
+
function gs(e, t) {
|
|
743
749
|
return typeof e == "string" ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e;
|
|
744
750
|
}
|
|
745
751
|
function mt(e, t) {
|
|
746
752
|
return e.slice(t, 7).concat(e.slice(0, t));
|
|
747
753
|
}
|
|
748
|
-
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;
|
|
749
755
|
function Os(e, t) {
|
|
750
756
|
var r = N(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
|
|
751
757
|
return e === !0 ? mt(r, this._week.dow) : e ? r[e.day()] : r;
|
|
@@ -757,20 +763,20 @@ function Ts(e) {
|
|
|
757
763
|
return e === !0 ? mt(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
|
|
758
764
|
}
|
|
759
765
|
function xs(e, t, r) {
|
|
760
|
-
var s, a,
|
|
766
|
+
var s, a, i, n = e.toLocaleLowerCase();
|
|
761
767
|
if (!this._weekdaysParse)
|
|
762
768
|
for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], s = 0; s < 7; ++s)
|
|
763
|
-
|
|
764
|
-
|
|
769
|
+
i = I([2e3, 1]).day(s), this._minWeekdaysParse[s] = this.weekdaysMin(
|
|
770
|
+
i,
|
|
765
771
|
""
|
|
766
772
|
).toLocaleLowerCase(), this._shortWeekdaysParse[s] = this.weekdaysShort(
|
|
767
|
-
|
|
773
|
+
i,
|
|
768
774
|
""
|
|
769
|
-
).toLocaleLowerCase(), this._weekdaysParse[s] = this.weekdays(
|
|
770
|
-
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));
|
|
771
777
|
}
|
|
772
778
|
function Ps(e, t, r) {
|
|
773
|
-
var s, a,
|
|
779
|
+
var s, a, i;
|
|
774
780
|
if (this._weekdaysParseExact)
|
|
775
781
|
return xs.call(this, e, t, r);
|
|
776
782
|
for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), s = 0; s < 7; s++) {
|
|
@@ -783,7 +789,7 @@ function Ps(e, t, r) {
|
|
|
783
789
|
), this._minWeekdaysParse[s] = new RegExp(
|
|
784
790
|
"^" + this.weekdaysMin(a, "").replace(".", "\\.?") + "$",
|
|
785
791
|
"i"
|
|
786
|
-
)), 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))
|
|
787
793
|
return s;
|
|
788
794
|
if (r && t === "ddd" && this._shortWeekdaysParse[s].test(e))
|
|
789
795
|
return s;
|
|
@@ -797,7 +803,7 @@ function Ws(e) {
|
|
|
797
803
|
if (!this.isValid())
|
|
798
804
|
return e != null ? this : NaN;
|
|
799
805
|
var t = ye(this, "Day");
|
|
800
|
-
return e != null ? (e =
|
|
806
|
+
return e != null ? (e = Ms(e, this.localeData()), this.add(e - t, "d")) : t;
|
|
801
807
|
}
|
|
802
808
|
function Rs(e) {
|
|
803
809
|
if (!this.isValid())
|
|
@@ -809,27 +815,27 @@ function Ns(e) {
|
|
|
809
815
|
if (!this.isValid())
|
|
810
816
|
return e != null ? this : NaN;
|
|
811
817
|
if (e != null) {
|
|
812
|
-
var t =
|
|
818
|
+
var t = gs(e, this.localeData());
|
|
813
819
|
return this.day(this.day() % 7 ? t : t - 7);
|
|
814
820
|
} else
|
|
815
821
|
return this.day() || 7;
|
|
816
822
|
}
|
|
817
823
|
function Fs(e) {
|
|
818
|
-
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);
|
|
819
825
|
}
|
|
820
826
|
function Ls(e) {
|
|
821
|
-
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);
|
|
822
828
|
}
|
|
823
829
|
function Cs(e) {
|
|
824
|
-
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);
|
|
825
831
|
}
|
|
826
832
|
function _t() {
|
|
827
833
|
function e(O, E) {
|
|
828
834
|
return E.length - O.length;
|
|
829
835
|
}
|
|
830
|
-
var t = [], r = [], s = [], a = [],
|
|
831
|
-
for (
|
|
832
|
-
|
|
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(_);
|
|
833
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(
|
|
834
840
|
"^(" + s.join("|") + ")",
|
|
835
841
|
"i"
|
|
@@ -888,32 +894,32 @@ d("hmm", At);
|
|
|
888
894
|
d("hmmss", jt);
|
|
889
895
|
d("Hmm", At);
|
|
890
896
|
d("Hmmss", jt);
|
|
891
|
-
|
|
892
|
-
|
|
897
|
+
M(["H", "HH"], D);
|
|
898
|
+
M(["k", "kk"], function(e, t, r) {
|
|
893
899
|
var s = m(e);
|
|
894
|
-
t[
|
|
900
|
+
t[D] = s === 24 ? 0 : s;
|
|
895
901
|
});
|
|
896
|
-
|
|
902
|
+
M(["a", "A"], function(e, t, r) {
|
|
897
903
|
r._isPm = r._locale.isPM(e), r._meridiem = e;
|
|
898
904
|
});
|
|
899
|
-
|
|
900
|
-
t[
|
|
905
|
+
M(["h", "hh"], function(e, t, r) {
|
|
906
|
+
t[D] = m(e), c(r).bigHour = !0;
|
|
901
907
|
});
|
|
902
|
-
|
|
908
|
+
M("hmm", function(e, t, r) {
|
|
903
909
|
var s = e.length - 2;
|
|
904
|
-
t[
|
|
910
|
+
t[D] = m(e.substr(0, s)), t[R] = m(e.substr(s)), c(r).bigHour = !0;
|
|
905
911
|
});
|
|
906
|
-
|
|
912
|
+
M("hmmss", function(e, t, r) {
|
|
907
913
|
var s = e.length - 4, a = e.length - 2;
|
|
908
|
-
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;
|
|
909
915
|
});
|
|
910
|
-
|
|
916
|
+
M("Hmm", function(e, t, r) {
|
|
911
917
|
var s = e.length - 2;
|
|
912
|
-
t[
|
|
918
|
+
t[D] = m(e.substr(0, s)), t[R] = m(e.substr(s));
|
|
913
919
|
});
|
|
914
|
-
|
|
920
|
+
M("Hmmss", function(e, t, r) {
|
|
915
921
|
var s = e.length - 4, a = e.length - 2;
|
|
916
|
-
t[
|
|
922
|
+
t[D] = m(e.substr(0, s)), t[R] = m(e.substr(s, 2)), t[G] = m(e.substr(a));
|
|
917
923
|
});
|
|
918
924
|
function Is(e) {
|
|
919
925
|
return (e + "").toLowerCase().charAt(0) === "p";
|
|
@@ -933,10 +939,10 @@ var er = {
|
|
|
933
939
|
monthsShort: zt,
|
|
934
940
|
week: ms,
|
|
935
941
|
weekdays: ks,
|
|
936
|
-
weekdaysMin:
|
|
942
|
+
weekdaysMin: Ss,
|
|
937
943
|
weekdaysShort: Qt,
|
|
938
944
|
meridiemParse: Hs
|
|
939
|
-
},
|
|
945
|
+
}, S = {}, ce = {}, Me;
|
|
940
946
|
function js(e, t) {
|
|
941
947
|
var r, s = Math.min(e.length, t.length);
|
|
942
948
|
for (r = 0; r < s; r += 1)
|
|
@@ -948,48 +954,48 @@ function Pt(e) {
|
|
|
948
954
|
return e && e.toLowerCase().replace("_", "-");
|
|
949
955
|
}
|
|
950
956
|
function Vs(e) {
|
|
951
|
-
for (var t = 0, r, s, a,
|
|
952
|
-
for (
|
|
953
|
-
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)
|
|
954
960
|
return a;
|
|
955
|
-
if (s && s.length >= r && js(
|
|
961
|
+
if (s && s.length >= r && js(i, s) >= r - 1)
|
|
956
962
|
break;
|
|
957
963
|
r--;
|
|
958
964
|
}
|
|
959
965
|
t++;
|
|
960
966
|
}
|
|
961
|
-
return
|
|
967
|
+
return Me;
|
|
962
968
|
}
|
|
963
969
|
function Gs(e) {
|
|
964
970
|
return !!(e && e.match("^[^/\\\\]*$"));
|
|
965
971
|
}
|
|
966
972
|
function je(e) {
|
|
967
973
|
var t = null, r;
|
|
968
|
-
if (
|
|
974
|
+
if (S[e] === void 0 && typeof module < "u" && module && module.exports && Gs(e))
|
|
969
975
|
try {
|
|
970
|
-
t =
|
|
976
|
+
t = Me._abbr, r = require, r("./locale/" + e), X(t);
|
|
971
977
|
} catch {
|
|
972
|
-
|
|
978
|
+
S[e] = null;
|
|
973
979
|
}
|
|
974
|
-
return
|
|
980
|
+
return S[e];
|
|
975
981
|
}
|
|
976
982
|
function X(e, t) {
|
|
977
983
|
var r;
|
|
978
|
-
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(
|
|
979
985
|
"Locale " + e + " not found. Did you forget to load it?"
|
|
980
|
-
)),
|
|
986
|
+
)), Me._abbr;
|
|
981
987
|
}
|
|
982
|
-
function
|
|
988
|
+
function pt(e, t) {
|
|
983
989
|
if (t !== null) {
|
|
984
990
|
var r, s = er;
|
|
985
|
-
if (t.abbr = e,
|
|
991
|
+
if (t.abbr = e, S[e] != null)
|
|
986
992
|
Ut(
|
|
987
993
|
"defineLocaleOverride",
|
|
988
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."
|
|
989
|
-
), s =
|
|
995
|
+
), s = S[e]._config;
|
|
990
996
|
else if (t.parentLocale != null)
|
|
991
|
-
if (
|
|
992
|
-
s =
|
|
997
|
+
if (S[t.parentLocale] != null)
|
|
998
|
+
s = S[t.parentLocale]._config;
|
|
993
999
|
else if (r = je(t.parentLocale), r != null)
|
|
994
1000
|
s = r._config;
|
|
995
1001
|
else
|
|
@@ -997,24 +1003,24 @@ function wt(e, t) {
|
|
|
997
1003
|
name: e,
|
|
998
1004
|
config: t
|
|
999
1005
|
}), null;
|
|
1000
|
-
return
|
|
1001
|
-
|
|
1002
|
-
}), 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];
|
|
1003
1009
|
} else
|
|
1004
|
-
return delete
|
|
1010
|
+
return delete S[e], null;
|
|
1005
1011
|
}
|
|
1006
1012
|
function zs(e, t) {
|
|
1007
1013
|
if (t != null) {
|
|
1008
1014
|
var r, s, a = er;
|
|
1009
|
-
|
|
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);
|
|
1010
1016
|
} else
|
|
1011
|
-
|
|
1012
|
-
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];
|
|
1013
1019
|
}
|
|
1014
1020
|
function Z(e) {
|
|
1015
1021
|
var t;
|
|
1016
1022
|
if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)
|
|
1017
|
-
return
|
|
1023
|
+
return Me;
|
|
1018
1024
|
if (!N(e)) {
|
|
1019
1025
|
if (t = je(e), t)
|
|
1020
1026
|
return t;
|
|
@@ -1023,11 +1029,11 @@ function Z(e) {
|
|
|
1023
1029
|
return Vs(e);
|
|
1024
1030
|
}
|
|
1025
1031
|
function $s() {
|
|
1026
|
-
return Xe(
|
|
1032
|
+
return Xe(S);
|
|
1027
1033
|
}
|
|
1028
|
-
function
|
|
1034
|
+
function wt(e) {
|
|
1029
1035
|
var t, r = e._a;
|
|
1030
|
-
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;
|
|
1031
1037
|
}
|
|
1032
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 = [
|
|
1033
1039
|
["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
|
|
@@ -1066,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))(?:(
|
|
|
1066
1072
|
PST: -8 * 60
|
|
1067
1073
|
};
|
|
1068
1074
|
function tr(e) {
|
|
1069
|
-
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;
|
|
1070
1076
|
if (a) {
|
|
1071
1077
|
for (c(e).iso = !0, t = 0, r = _; t < r; t++)
|
|
1072
1078
|
if (Ye[t][1].exec(a[1])) {
|
|
1073
|
-
|
|
1079
|
+
n = Ye[t][0], i = Ye[t][2] !== !1;
|
|
1074
1080
|
break;
|
|
1075
1081
|
}
|
|
1076
|
-
if (
|
|
1082
|
+
if (n == null) {
|
|
1077
1083
|
e._isValid = !1;
|
|
1078
1084
|
return;
|
|
1079
1085
|
}
|
|
@@ -1088,7 +1094,7 @@ function tr(e) {
|
|
|
1088
1094
|
return;
|
|
1089
1095
|
}
|
|
1090
1096
|
}
|
|
1091
|
-
if (!
|
|
1097
|
+
if (!i && u != null) {
|
|
1092
1098
|
e._isValid = !1;
|
|
1093
1099
|
return;
|
|
1094
1100
|
}
|
|
@@ -1099,19 +1105,19 @@ function tr(e) {
|
|
|
1099
1105
|
e._isValid = !1;
|
|
1100
1106
|
return;
|
|
1101
1107
|
}
|
|
1102
|
-
e._f =
|
|
1108
|
+
e._f = n + (u || "") + (f || ""), gt(e);
|
|
1103
1109
|
} else
|
|
1104
1110
|
e._isValid = !1;
|
|
1105
1111
|
}
|
|
1106
|
-
function Xs(e, t, r, s, a,
|
|
1107
|
-
var
|
|
1112
|
+
function Xs(e, t, r, s, a, i) {
|
|
1113
|
+
var n = [
|
|
1108
1114
|
ea(e),
|
|
1109
1115
|
zt.indexOf(t),
|
|
1110
1116
|
parseInt(r, 10),
|
|
1111
1117
|
parseInt(s, 10),
|
|
1112
1118
|
parseInt(a, 10)
|
|
1113
1119
|
];
|
|
1114
|
-
return
|
|
1120
|
+
return i && n.push(parseInt(i, 10)), n;
|
|
1115
1121
|
}
|
|
1116
1122
|
function ea(e) {
|
|
1117
1123
|
var t = parseInt(e, 10);
|
|
@@ -1137,8 +1143,8 @@ function sa(e, t, r) {
|
|
|
1137
1143
|
return Ks[e];
|
|
1138
1144
|
if (t)
|
|
1139
1145
|
return 0;
|
|
1140
|
-
var s = parseInt(r, 10), a = s % 100,
|
|
1141
|
-
return
|
|
1146
|
+
var s = parseInt(r, 10), a = s % 100, i = (s - a) / 100;
|
|
1147
|
+
return i * 60 + a;
|
|
1142
1148
|
}
|
|
1143
1149
|
function rr(e) {
|
|
1144
1150
|
var t = Qs.exec(ta(e._i)), r;
|
|
@@ -1152,7 +1158,7 @@ function rr(e) {
|
|
|
1152
1158
|
t[7]
|
|
1153
1159
|
), !ra(t[1], r, e))
|
|
1154
1160
|
return;
|
|
1155
|
-
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;
|
|
1156
1162
|
} else
|
|
1157
1163
|
e._isValid = !1;
|
|
1158
1164
|
}
|
|
@@ -1178,10 +1184,10 @@ l.createFromInputFallback = P(
|
|
|
1178
1184
|
e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
|
|
1179
1185
|
}
|
|
1180
1186
|
);
|
|
1181
|
-
function
|
|
1187
|
+
function ie(e, t, r) {
|
|
1182
1188
|
return e ?? t ?? r;
|
|
1183
1189
|
}
|
|
1184
|
-
function
|
|
1190
|
+
function ia(e) {
|
|
1185
1191
|
var t = new Date(l.now());
|
|
1186
1192
|
return e._useUTC ? [
|
|
1187
1193
|
t.getUTCFullYear(),
|
|
@@ -1189,32 +1195,32 @@ function na(e) {
|
|
|
1189
1195
|
t.getUTCDate()
|
|
1190
1196
|
] : [t.getFullYear(), t.getMonth(), t.getDate()];
|
|
1191
1197
|
}
|
|
1192
|
-
function
|
|
1193
|
-
var t, r, s = [], a,
|
|
1198
|
+
function Mt(e) {
|
|
1199
|
+
var t, r, s = [], a, i, n;
|
|
1194
1200
|
if (!e._d) {
|
|
1195
|
-
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)
|
|
1196
1202
|
e._a[t] = s[t] = a[t];
|
|
1197
1203
|
for (; t < 7; t++)
|
|
1198
1204
|
e._a[t] = s[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
|
|
1199
|
-
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(
|
|
1200
1206
|
null,
|
|
1201
1207
|
s
|
|
1202
|
-
),
|
|
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);
|
|
1203
1209
|
}
|
|
1204
1210
|
}
|
|
1205
|
-
function
|
|
1206
|
-
var t, r, s, a,
|
|
1207
|
-
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(
|
|
1208
1214
|
t.GG,
|
|
1209
1215
|
e._a[Y],
|
|
1210
|
-
|
|
1211
|
-
), 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);
|
|
1212
1218
|
}
|
|
1213
1219
|
l.ISO_8601 = function() {
|
|
1214
1220
|
};
|
|
1215
1221
|
l.RFC_2822 = function() {
|
|
1216
1222
|
};
|
|
1217
|
-
function
|
|
1223
|
+
function gt(e) {
|
|
1218
1224
|
if (e._f === l.ISO_8601) {
|
|
1219
1225
|
tr(e);
|
|
1220
1226
|
return;
|
|
@@ -1224,29 +1230,29 @@ function pt(e) {
|
|
|
1224
1230
|
return;
|
|
1225
1231
|
}
|
|
1226
1232
|
e._a = [], c(e).empty = !0;
|
|
1227
|
-
var t = "" + e._i, r, s, a,
|
|
1233
|
+
var t = "" + e._i, r, s, a, i, n, u = t.length, f = 0, _, O;
|
|
1228
1234
|
for (a = It(e._f, e._locale).match(lt) || [], O = a.length, r = 0; r < O; r++)
|
|
1229
|
-
|
|
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(
|
|
1230
1236
|
t.indexOf(s) + s.length
|
|
1231
|
-
), f += s.length), oe[
|
|
1232
|
-
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(
|
|
1233
1239
|
e._locale,
|
|
1234
|
-
e._a[
|
|
1240
|
+
e._a[D],
|
|
1235
1241
|
e._meridiem
|
|
1236
|
-
), _ = 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);
|
|
1237
1243
|
}
|
|
1238
1244
|
function oa(e, t, r) {
|
|
1239
1245
|
var s;
|
|
1240
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);
|
|
1241
1247
|
}
|
|
1242
1248
|
function la(e) {
|
|
1243
|
-
var t, r, s, a,
|
|
1249
|
+
var t, r, s, a, i, n, u = !1, f = e._f.length;
|
|
1244
1250
|
if (f === 0) {
|
|
1245
1251
|
c(e).invalidFormat = !0, e._d = /* @__PURE__ */ new Date(NaN);
|
|
1246
1252
|
return;
|
|
1247
1253
|
}
|
|
1248
1254
|
for (a = 0; a < f; a++)
|
|
1249
|
-
|
|
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));
|
|
1250
1256
|
Q(e, r || t);
|
|
1251
1257
|
}
|
|
1252
1258
|
function ua(e) {
|
|
@@ -1257,58 +1263,58 @@ function ua(e) {
|
|
|
1257
1263
|
function(s) {
|
|
1258
1264
|
return s && parseInt(s, 10);
|
|
1259
1265
|
}
|
|
1260
|
-
),
|
|
1266
|
+
), Mt(e);
|
|
1261
1267
|
}
|
|
1262
1268
|
}
|
|
1263
1269
|
function da(e) {
|
|
1264
|
-
var t = new ke(
|
|
1270
|
+
var t = new ke(wt(sr(e)));
|
|
1265
1271
|
return t._nextDay && (t.add(1, "d"), t._nextDay = void 0), t;
|
|
1266
1272
|
}
|
|
1267
1273
|
function sr(e) {
|
|
1268
1274
|
var t = e._i, r = e._f;
|
|
1269
|
-
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));
|
|
1270
1276
|
}
|
|
1271
1277
|
function ha(e) {
|
|
1272
1278
|
var t = e._i;
|
|
1273
|
-
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) {
|
|
1274
1280
|
return parseInt(r, 10);
|
|
1275
|
-
}),
|
|
1281
|
+
}), Mt(e)) : re(t) ? ua(e) : q(t) ? e._d = new Date(t) : l.createFromInputFallback(e);
|
|
1276
1282
|
}
|
|
1277
1283
|
function ar(e, t, r, s, a) {
|
|
1278
|
-
var
|
|
1279
|
-
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);
|
|
1280
1286
|
}
|
|
1281
|
-
function
|
|
1287
|
+
function g(e, t, r, s) {
|
|
1282
1288
|
return ar(e, t, r, s, !1);
|
|
1283
1289
|
}
|
|
1284
1290
|
var fa = P(
|
|
1285
1291
|
"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
1286
1292
|
function() {
|
|
1287
|
-
var e =
|
|
1293
|
+
var e = g.apply(null, arguments);
|
|
1288
1294
|
return this.isValid() && e.isValid() ? e < this ? this : e : Le();
|
|
1289
1295
|
}
|
|
1290
1296
|
), ca = P(
|
|
1291
1297
|
"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
1292
1298
|
function() {
|
|
1293
|
-
var e =
|
|
1299
|
+
var e = g.apply(null, arguments);
|
|
1294
1300
|
return this.isValid() && e.isValid() ? e > this ? this : e : Le();
|
|
1295
1301
|
}
|
|
1296
1302
|
);
|
|
1297
|
-
function
|
|
1303
|
+
function ir(e, t) {
|
|
1298
1304
|
var r, s;
|
|
1299
1305
|
if (t.length === 1 && N(t[0]) && (t = t[0]), !t.length)
|
|
1300
|
-
return
|
|
1306
|
+
return g();
|
|
1301
1307
|
for (r = t[0], s = 1; s < t.length; ++s)
|
|
1302
1308
|
(!t[s].isValid() || t[s][e](r)) && (r = t[s]);
|
|
1303
1309
|
return r;
|
|
1304
1310
|
}
|
|
1305
1311
|
function ma() {
|
|
1306
1312
|
var e = [].slice.call(arguments, 0);
|
|
1307
|
-
return
|
|
1313
|
+
return ir("isBefore", e);
|
|
1308
1314
|
}
|
|
1309
1315
|
function _a() {
|
|
1310
1316
|
var e = [].slice.call(arguments, 0);
|
|
1311
|
-
return
|
|
1317
|
+
return ir("isAfter", e);
|
|
1312
1318
|
}
|
|
1313
1319
|
var ya = function() {
|
|
1314
1320
|
return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
|
|
@@ -1323,10 +1329,10 @@ var ya = function() {
|
|
|
1323
1329
|
"second",
|
|
1324
1330
|
"millisecond"
|
|
1325
1331
|
];
|
|
1326
|
-
function
|
|
1332
|
+
function pa(e) {
|
|
1327
1333
|
var t, r = !1, s, a = me.length;
|
|
1328
1334
|
for (t in e)
|
|
1329
|
-
if (
|
|
1335
|
+
if (p(e, t) && !(v.call(me, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
|
|
1330
1336
|
return !1;
|
|
1331
1337
|
for (s = 0; s < a; ++s)
|
|
1332
1338
|
if (e[me[s]]) {
|
|
@@ -1336,17 +1342,17 @@ function wa(e) {
|
|
|
1336
1342
|
}
|
|
1337
1343
|
return !0;
|
|
1338
1344
|
}
|
|
1339
|
-
function
|
|
1345
|
+
function wa() {
|
|
1340
1346
|
return this._isValid;
|
|
1341
1347
|
}
|
|
1342
|
-
function
|
|
1348
|
+
function Ma() {
|
|
1343
1349
|
return L(NaN);
|
|
1344
1350
|
}
|
|
1345
1351
|
function Ve(e) {
|
|
1346
|
-
var t = ut(e), r = t.year || 0, s = t.quarter || 0, a = t.month || 0,
|
|
1347
|
-
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
|
|
1348
1354
|
f * 6e4 + // 1000 * 60
|
|
1349
|
-
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();
|
|
1350
1356
|
}
|
|
1351
1357
|
function Te(e) {
|
|
1352
1358
|
return e instanceof Ve;
|
|
@@ -1354,40 +1360,40 @@ function Te(e) {
|
|
|
1354
1360
|
function tt(e) {
|
|
1355
1361
|
return e < 0 ? Math.round(-1 * e) * -1 : Math.round(e);
|
|
1356
1362
|
}
|
|
1357
|
-
function
|
|
1358
|
-
var s = Math.min(e.length, t.length), a = Math.abs(e.length - t.length),
|
|
1359
|
-
for (
|
|
1360
|
-
(r && e[
|
|
1361
|
-
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;
|
|
1362
1368
|
}
|
|
1363
|
-
function
|
|
1369
|
+
function nr(e, t) {
|
|
1364
1370
|
h(e, 0, 0, function() {
|
|
1365
1371
|
var r = this.utcOffset(), s = "+";
|
|
1366
1372
|
return r < 0 && (r = -r, s = "-"), s + U(~~(r / 60), 2) + t + U(~~r % 60, 2);
|
|
1367
1373
|
});
|
|
1368
1374
|
}
|
|
1369
|
-
|
|
1370
|
-
|
|
1375
|
+
nr("Z", ":");
|
|
1376
|
+
nr("ZZ", "");
|
|
1371
1377
|
d("Z", Ee);
|
|
1372
1378
|
d("ZZ", Ee);
|
|
1373
|
-
|
|
1379
|
+
M(["Z", "ZZ"], function(e, t, r) {
|
|
1374
1380
|
r._useUTC = !0, r._tzm = kt(Ee, e);
|
|
1375
1381
|
});
|
|
1376
1382
|
var ka = /([\+\-]|\d\d)/gi;
|
|
1377
1383
|
function kt(e, t) {
|
|
1378
|
-
var r = (t || "").match(e), s, a,
|
|
1379
|
-
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);
|
|
1380
1386
|
}
|
|
1381
|
-
function
|
|
1387
|
+
function St(e, t) {
|
|
1382
1388
|
var r, s;
|
|
1383
|
-
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();
|
|
1384
1390
|
}
|
|
1385
1391
|
function rt(e) {
|
|
1386
1392
|
return -Math.round(e._d.getTimezoneOffset());
|
|
1387
1393
|
}
|
|
1388
1394
|
l.updateOffset = function() {
|
|
1389
1395
|
};
|
|
1390
|
-
function
|
|
1396
|
+
function Sa(e, t, r) {
|
|
1391
1397
|
var s = this._offset || 0, a;
|
|
1392
1398
|
if (!this.isValid())
|
|
1393
1399
|
return e != null ? this : NaN;
|
|
@@ -1406,10 +1412,10 @@ function Da(e, t, r) {
|
|
|
1406
1412
|
} else
|
|
1407
1413
|
return this._isUTC ? s : rt(this);
|
|
1408
1414
|
}
|
|
1409
|
-
function
|
|
1415
|
+
function va(e, t) {
|
|
1410
1416
|
return e != null ? (typeof e != "string" && (e = -e), this.utcOffset(e, t), this) : -this.utcOffset();
|
|
1411
1417
|
}
|
|
1412
|
-
function
|
|
1418
|
+
function Da(e) {
|
|
1413
1419
|
return this.utcOffset(0, e);
|
|
1414
1420
|
}
|
|
1415
1421
|
function Ya(e) {
|
|
@@ -1425,7 +1431,7 @@ function Oa() {
|
|
|
1425
1431
|
return this;
|
|
1426
1432
|
}
|
|
1427
1433
|
function ba(e) {
|
|
1428
|
-
return this.isValid() ? (e = e ?
|
|
1434
|
+
return this.isValid() ? (e = e ? g(e).utcOffset() : 0, (this.utcOffset() - e) % 60 === 0) : !1;
|
|
1429
1435
|
}
|
|
1430
1436
|
function Ta() {
|
|
1431
1437
|
return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
|
|
@@ -1434,7 +1440,7 @@ function xa() {
|
|
|
1434
1440
|
if (!b(this._isDSTShifted))
|
|
1435
1441
|
return this._isDSTShifted;
|
|
1436
1442
|
var e = {}, t;
|
|
1437
|
-
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;
|
|
1438
1444
|
}
|
|
1439
1445
|
function Pa() {
|
|
1440
1446
|
return this.isValid() ? !this._isUTC : !1;
|
|
@@ -1447,7 +1453,7 @@ function or() {
|
|
|
1447
1453
|
}
|
|
1448
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)?)?$/;
|
|
1449
1455
|
function L(e, t) {
|
|
1450
|
-
var r = e, s = null, a,
|
|
1456
|
+
var r = e, s = null, a, i, n;
|
|
1451
1457
|
return Te(e) ? r = {
|
|
1452
1458
|
ms: e._milliseconds,
|
|
1453
1459
|
d: e._days,
|
|
@@ -1455,7 +1461,7 @@ function L(e, t) {
|
|
|
1455
1461
|
} : q(e) || !isNaN(+e) ? (r = {}, t ? r[t] = +e : r.milliseconds = +e) : (s = Ra.exec(e)) ? (a = s[1] === "-" ? -1 : 1, r = {
|
|
1456
1462
|
y: 0,
|
|
1457
1463
|
d: m(s[C]) * a,
|
|
1458
|
-
h: m(s[
|
|
1464
|
+
h: m(s[D]) * a,
|
|
1459
1465
|
m: m(s[R]) * a,
|
|
1460
1466
|
s: m(s[G]) * a,
|
|
1461
1467
|
ms: m(tt(s[te] * 1e3)) * a
|
|
@@ -1468,13 +1474,13 @@ function L(e, t) {
|
|
|
1468
1474
|
h: ee(s[6], a),
|
|
1469
1475
|
m: ee(s[7], a),
|
|
1470
1476
|
s: ee(s[8], a)
|
|
1471
|
-
}) : r == null ? r = {} : typeof r == "object" && ("from" in r || "to" in r) && (
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
), 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;
|
|
1475
1481
|
}
|
|
1476
1482
|
L.fn = Ve.prototype;
|
|
1477
|
-
L.invalid =
|
|
1483
|
+
L.invalid = Ma;
|
|
1478
1484
|
function ee(e, t) {
|
|
1479
1485
|
var r = e && parseFloat(e.replace(",", "."));
|
|
1480
1486
|
return (isNaN(r) ? 0 : r) * t;
|
|
@@ -1485,27 +1491,27 @@ function Wt(e, t) {
|
|
|
1485
1491
|
}
|
|
1486
1492
|
function Fa(e, t) {
|
|
1487
1493
|
var r;
|
|
1488
|
-
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 };
|
|
1489
1495
|
}
|
|
1490
1496
|
function lr(e, t) {
|
|
1491
1497
|
return function(r, s) {
|
|
1492
|
-
var a,
|
|
1498
|
+
var a, i;
|
|
1493
1499
|
return s !== null && !isNaN(+s) && (Ut(
|
|
1494
1500
|
t,
|
|
1495
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."
|
|
1496
|
-
),
|
|
1502
|
+
), i = r, r = s, s = i), a = L(r, s), ur(this, a, e), this;
|
|
1497
1503
|
};
|
|
1498
1504
|
}
|
|
1499
1505
|
function ur(e, t, r, s) {
|
|
1500
|
-
var a = t._milliseconds,
|
|
1501
|
-
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));
|
|
1502
1508
|
}
|
|
1503
1509
|
var La = lr(1, "add"), Ca = lr(-1, "subtract");
|
|
1504
1510
|
function dr(e) {
|
|
1505
1511
|
return typeof e == "string" || e instanceof String;
|
|
1506
1512
|
}
|
|
1507
1513
|
function Ua(e) {
|
|
1508
|
-
return F(e) ||
|
|
1514
|
+
return F(e) || ge(e) || dr(e) || q(e) || Ha(e) || Ia(e) || e === null || e === void 0;
|
|
1509
1515
|
}
|
|
1510
1516
|
function Ia(e) {
|
|
1511
1517
|
var t = re(e) && !at(e), r = !1, s = [
|
|
@@ -1533,9 +1539,9 @@ function Ia(e) {
|
|
|
1533
1539
|
"milliseconds",
|
|
1534
1540
|
"millisecond",
|
|
1535
1541
|
"ms"
|
|
1536
|
-
], a,
|
|
1537
|
-
for (a = 0; a <
|
|
1538
|
-
|
|
1542
|
+
], a, i, n = s.length;
|
|
1543
|
+
for (a = 0; a < n; a += 1)
|
|
1544
|
+
i = s[a], r = r || p(e, i);
|
|
1539
1545
|
return t && r;
|
|
1540
1546
|
}
|
|
1541
1547
|
function Ha(e) {
|
|
@@ -1552,9 +1558,9 @@ function Ea(e) {
|
|
|
1552
1558
|
"nextWeek",
|
|
1553
1559
|
"lastWeek",
|
|
1554
1560
|
"sameElse"
|
|
1555
|
-
], a,
|
|
1561
|
+
], a, i;
|
|
1556
1562
|
for (a = 0; a < s.length; a += 1)
|
|
1557
|
-
|
|
1563
|
+
i = s[a], r = r || p(e, i);
|
|
1558
1564
|
return t && r;
|
|
1559
1565
|
}
|
|
1560
1566
|
function Aa(e, t) {
|
|
@@ -1563,28 +1569,28 @@ function Aa(e, t) {
|
|
|
1563
1569
|
}
|
|
1564
1570
|
function ja(e, t) {
|
|
1565
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));
|
|
1566
|
-
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]);
|
|
1567
1573
|
return this.format(
|
|
1568
|
-
|
|
1574
|
+
i || this.localeData().calendar(a, this, g(r))
|
|
1569
1575
|
);
|
|
1570
1576
|
}
|
|
1571
1577
|
function Va() {
|
|
1572
1578
|
return new ke(this);
|
|
1573
1579
|
}
|
|
1574
1580
|
function Ga(e, t) {
|
|
1575
|
-
var r = F(e) ? e :
|
|
1581
|
+
var r = F(e) ? e : g(e);
|
|
1576
1582
|
return this.isValid() && r.isValid() ? (t = W(t) || "millisecond", t === "millisecond" ? this.valueOf() > r.valueOf() : r.valueOf() < this.clone().startOf(t).valueOf()) : !1;
|
|
1577
1583
|
}
|
|
1578
1584
|
function za(e, t) {
|
|
1579
|
-
var r = F(e) ? e :
|
|
1585
|
+
var r = F(e) ? e : g(e);
|
|
1580
1586
|
return this.isValid() && r.isValid() ? (t = W(t) || "millisecond", t === "millisecond" ? this.valueOf() < r.valueOf() : this.clone().endOf(t).valueOf() < r.valueOf()) : !1;
|
|
1581
1587
|
}
|
|
1582
1588
|
function $a(e, t, r, s) {
|
|
1583
|
-
var a = F(e) ? e :
|
|
1584
|
-
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;
|
|
1585
1591
|
}
|
|
1586
1592
|
function qa(e, t) {
|
|
1587
|
-
var r = F(e) ? e :
|
|
1593
|
+
var r = F(e) ? e : g(e), s;
|
|
1588
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;
|
|
1589
1595
|
}
|
|
1590
1596
|
function Za(e, t) {
|
|
@@ -1594,46 +1600,46 @@ function Ba(e, t) {
|
|
|
1594
1600
|
return this.isSame(e, t) || this.isBefore(e, t);
|
|
1595
1601
|
}
|
|
1596
1602
|
function Ja(e, t, r) {
|
|
1597
|
-
var s, a,
|
|
1603
|
+
var s, a, i;
|
|
1598
1604
|
if (!this.isValid())
|
|
1599
1605
|
return NaN;
|
|
1600
|
-
if (s =
|
|
1606
|
+
if (s = St(e, this), !s.isValid())
|
|
1601
1607
|
return NaN;
|
|
1602
1608
|
switch (a = (s.utcOffset() - this.utcOffset()) * 6e4, t = W(t), t) {
|
|
1603
1609
|
case "year":
|
|
1604
|
-
|
|
1610
|
+
i = xe(this, s) / 12;
|
|
1605
1611
|
break;
|
|
1606
1612
|
case "month":
|
|
1607
|
-
|
|
1613
|
+
i = xe(this, s);
|
|
1608
1614
|
break;
|
|
1609
1615
|
case "quarter":
|
|
1610
|
-
|
|
1616
|
+
i = xe(this, s) / 3;
|
|
1611
1617
|
break;
|
|
1612
1618
|
case "second":
|
|
1613
|
-
|
|
1619
|
+
i = (this - s) / 1e3;
|
|
1614
1620
|
break;
|
|
1615
1621
|
case "minute":
|
|
1616
|
-
|
|
1622
|
+
i = (this - s) / 6e4;
|
|
1617
1623
|
break;
|
|
1618
1624
|
case "hour":
|
|
1619
|
-
|
|
1625
|
+
i = (this - s) / 36e5;
|
|
1620
1626
|
break;
|
|
1621
1627
|
case "day":
|
|
1622
|
-
|
|
1628
|
+
i = (this - s - a) / 864e5;
|
|
1623
1629
|
break;
|
|
1624
1630
|
case "week":
|
|
1625
|
-
|
|
1631
|
+
i = (this - s - a) / 6048e5;
|
|
1626
1632
|
break;
|
|
1627
1633
|
default:
|
|
1628
|
-
|
|
1634
|
+
i = this - s;
|
|
1629
1635
|
}
|
|
1630
|
-
return r ?
|
|
1636
|
+
return r ? i : x(i);
|
|
1631
1637
|
}
|
|
1632
1638
|
function xe(e, t) {
|
|
1633
1639
|
if (e.date() < t.date())
|
|
1634
1640
|
return -xe(t, e);
|
|
1635
|
-
var r = (t.year() - e.year()) * 12 + (t.month() - e.month()), s = e.clone().add(r, "months"), a,
|
|
1636
|
-
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;
|
|
1637
1643
|
}
|
|
1638
1644
|
l.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
|
|
1639
1645
|
l.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
@@ -1655,25 +1661,25 @@ function Ka(e) {
|
|
|
1655
1661
|
function Xa() {
|
|
1656
1662
|
if (!this.isValid())
|
|
1657
1663
|
return "moment.invalid(/* " + this._i + " */)";
|
|
1658
|
-
var e = "moment", t = "", r, s, a,
|
|
1659
|
-
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);
|
|
1660
1666
|
}
|
|
1661
|
-
function
|
|
1667
|
+
function ei(e) {
|
|
1662
1668
|
e || (e = this.isUtc() ? l.defaultFormatUtc : l.defaultFormat);
|
|
1663
1669
|
var t = be(this, e);
|
|
1664
1670
|
return this.localeData().postformat(t);
|
|
1665
1671
|
}
|
|
1666
|
-
function
|
|
1667
|
-
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();
|
|
1668
1674
|
}
|
|
1669
|
-
function
|
|
1670
|
-
return this.from(
|
|
1675
|
+
function ri(e) {
|
|
1676
|
+
return this.from(g(), e);
|
|
1671
1677
|
}
|
|
1672
|
-
function
|
|
1673
|
-
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();
|
|
1674
1680
|
}
|
|
1675
|
-
function
|
|
1676
|
-
return this.to(
|
|
1681
|
+
function ai(e) {
|
|
1682
|
+
return this.to(g(), e);
|
|
1677
1683
|
}
|
|
1678
1684
|
function hr(e) {
|
|
1679
1685
|
var t;
|
|
@@ -1698,7 +1704,7 @@ function _r(e, t, r) {
|
|
|
1698
1704
|
function yr(e, t, r) {
|
|
1699
1705
|
return e < 100 && e >= 0 ? Date.UTC(e + 400, t, r) - mr : Date.UTC(e, t, r);
|
|
1700
1706
|
}
|
|
1701
|
-
function
|
|
1707
|
+
function ii(e) {
|
|
1702
1708
|
var t, r;
|
|
1703
1709
|
if (e = W(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
1704
1710
|
return this;
|
|
@@ -1749,7 +1755,7 @@ function nn(e) {
|
|
|
1749
1755
|
}
|
|
1750
1756
|
return this._d.setTime(t), l.updateOffset(this, !0), this;
|
|
1751
1757
|
}
|
|
1752
|
-
function
|
|
1758
|
+
function ni(e) {
|
|
1753
1759
|
var t, r;
|
|
1754
1760
|
if (e = W(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
1755
1761
|
return this;
|
|
@@ -1800,16 +1806,16 @@ function on(e) {
|
|
|
1800
1806
|
}
|
|
1801
1807
|
return this._d.setTime(t), l.updateOffset(this, !0), this;
|
|
1802
1808
|
}
|
|
1803
|
-
function
|
|
1809
|
+
function oi() {
|
|
1804
1810
|
return this._d.valueOf() - (this._offset || 0) * 6e4;
|
|
1805
1811
|
}
|
|
1806
|
-
function
|
|
1812
|
+
function li() {
|
|
1807
1813
|
return Math.floor(this.valueOf() / 1e3);
|
|
1808
1814
|
}
|
|
1809
|
-
function
|
|
1815
|
+
function ui() {
|
|
1810
1816
|
return new Date(this.valueOf());
|
|
1811
1817
|
}
|
|
1812
|
-
function
|
|
1818
|
+
function di() {
|
|
1813
1819
|
var e = this;
|
|
1814
1820
|
return [
|
|
1815
1821
|
e.year(),
|
|
@@ -1821,7 +1827,7 @@ function hn() {
|
|
|
1821
1827
|
e.millisecond()
|
|
1822
1828
|
];
|
|
1823
1829
|
}
|
|
1824
|
-
function
|
|
1830
|
+
function hi() {
|
|
1825
1831
|
var e = this;
|
|
1826
1832
|
return {
|
|
1827
1833
|
years: e.year(),
|
|
@@ -1833,19 +1839,19 @@ function fn() {
|
|
|
1833
1839
|
milliseconds: e.milliseconds()
|
|
1834
1840
|
};
|
|
1835
1841
|
}
|
|
1836
|
-
function
|
|
1842
|
+
function fi() {
|
|
1837
1843
|
return this.isValid() ? this.toISOString() : null;
|
|
1838
1844
|
}
|
|
1839
|
-
function
|
|
1840
|
-
return
|
|
1845
|
+
function ci() {
|
|
1846
|
+
return it(this);
|
|
1841
1847
|
}
|
|
1842
|
-
function
|
|
1848
|
+
function mi() {
|
|
1843
1849
|
return Q({}, c(this));
|
|
1844
1850
|
}
|
|
1845
|
-
function
|
|
1851
|
+
function _i() {
|
|
1846
1852
|
return c(this).overflow;
|
|
1847
1853
|
}
|
|
1848
|
-
function
|
|
1854
|
+
function yi() {
|
|
1849
1855
|
return {
|
|
1850
1856
|
input: this._i,
|
|
1851
1857
|
format: this._f,
|
|
@@ -1863,12 +1869,12 @@ h("y", ["y", 1], "yo", "eraYear");
|
|
|
1863
1869
|
h("y", ["yy", 2], 0, "eraYear");
|
|
1864
1870
|
h("y", ["yyy", 3], 0, "eraYear");
|
|
1865
1871
|
h("y", ["yyyy", 4], 0, "eraYear");
|
|
1866
|
-
d("N",
|
|
1867
|
-
d("NN",
|
|
1868
|
-
d("NNN",
|
|
1869
|
-
d("NNNN",
|
|
1870
|
-
d("NNNNN",
|
|
1871
|
-
|
|
1872
|
+
d("N", vt);
|
|
1873
|
+
d("NN", vt);
|
|
1874
|
+
d("NNN", vt);
|
|
1875
|
+
d("NNNN", bi);
|
|
1876
|
+
d("NNNNN", Ti);
|
|
1877
|
+
M(
|
|
1872
1878
|
["N", "NN", "NNN", "NNNN", "NNNNN"],
|
|
1873
1879
|
function(e, t, r, s) {
|
|
1874
1880
|
var a = r._locale.erasParse(e, s, r._strict);
|
|
@@ -1879,111 +1885,111 @@ d("y", de);
|
|
|
1879
1885
|
d("yy", de);
|
|
1880
1886
|
d("yyy", de);
|
|
1881
1887
|
d("yyyy", de);
|
|
1882
|
-
d("yo",
|
|
1883
|
-
|
|
1884
|
-
|
|
1888
|
+
d("yo", xi);
|
|
1889
|
+
M(["y", "yy", "yyy", "yyyy"], Y);
|
|
1890
|
+
M(["yo"], function(e, t, r, s) {
|
|
1885
1891
|
var a;
|
|
1886
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);
|
|
1887
1893
|
});
|
|
1888
|
-
function
|
|
1889
|
-
var r, s, a,
|
|
1890
|
-
for (r = 0, s =
|
|
1891
|
-
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) {
|
|
1892
1898
|
case "string":
|
|
1893
|
-
a = l(
|
|
1899
|
+
a = l(i[r].since).startOf("day"), i[r].since = a.valueOf();
|
|
1894
1900
|
break;
|
|
1895
1901
|
}
|
|
1896
|
-
switch (typeof
|
|
1902
|
+
switch (typeof i[r].until) {
|
|
1897
1903
|
case "undefined":
|
|
1898
|
-
|
|
1904
|
+
i[r].until = 1 / 0;
|
|
1899
1905
|
break;
|
|
1900
1906
|
case "string":
|
|
1901
|
-
a = l(
|
|
1907
|
+
a = l(i[r].until).startOf("day").valueOf(), i[r].until = a.valueOf();
|
|
1902
1908
|
break;
|
|
1903
1909
|
}
|
|
1904
1910
|
}
|
|
1905
|
-
return
|
|
1911
|
+
return i;
|
|
1906
1912
|
}
|
|
1907
|
-
function
|
|
1908
|
-
var s, a,
|
|
1909
|
-
for (e = e.toUpperCase(), s = 0, a =
|
|
1910
|
-
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)
|
|
1911
1917
|
switch (t) {
|
|
1912
1918
|
case "N":
|
|
1913
1919
|
case "NN":
|
|
1914
1920
|
case "NNN":
|
|
1915
1921
|
if (u === e)
|
|
1916
|
-
return
|
|
1922
|
+
return i[s];
|
|
1917
1923
|
break;
|
|
1918
1924
|
case "NNNN":
|
|
1919
|
-
if (
|
|
1920
|
-
return
|
|
1925
|
+
if (n === e)
|
|
1926
|
+
return i[s];
|
|
1921
1927
|
break;
|
|
1922
1928
|
case "NNNNN":
|
|
1923
1929
|
if (f === e)
|
|
1924
|
-
return
|
|
1930
|
+
return i[s];
|
|
1925
1931
|
break;
|
|
1926
1932
|
}
|
|
1927
|
-
else if ([
|
|
1928
|
-
return
|
|
1933
|
+
else if ([n, u, f].indexOf(e) >= 0)
|
|
1934
|
+
return i[s];
|
|
1929
1935
|
}
|
|
1930
|
-
function
|
|
1936
|
+
function Mi(e, t) {
|
|
1931
1937
|
var r = e.since <= e.until ? 1 : -1;
|
|
1932
1938
|
return t === void 0 ? l(e.since).year() : l(e.since).year() + (t - e.offset) * r;
|
|
1933
1939
|
}
|
|
1934
|
-
function
|
|
1940
|
+
function gi() {
|
|
1935
1941
|
var e, t, r, s = this.localeData().eras();
|
|
1936
1942
|
for (e = 0, t = s.length; e < t; ++e)
|
|
1937
1943
|
if (r = this.clone().startOf("day").valueOf(), s[e].since <= r && r <= s[e].until || s[e].until <= r && r <= s[e].since)
|
|
1938
1944
|
return s[e].name;
|
|
1939
1945
|
return "";
|
|
1940
1946
|
}
|
|
1941
|
-
function
|
|
1947
|
+
function ki() {
|
|
1942
1948
|
var e, t, r, s = this.localeData().eras();
|
|
1943
1949
|
for (e = 0, t = s.length; e < t; ++e)
|
|
1944
1950
|
if (r = this.clone().startOf("day").valueOf(), s[e].since <= r && r <= s[e].until || s[e].until <= r && r <= s[e].since)
|
|
1945
1951
|
return s[e].narrow;
|
|
1946
1952
|
return "";
|
|
1947
1953
|
}
|
|
1948
|
-
function
|
|
1954
|
+
function Si() {
|
|
1949
1955
|
var e, t, r, s = this.localeData().eras();
|
|
1950
1956
|
for (e = 0, t = s.length; e < t; ++e)
|
|
1951
1957
|
if (r = this.clone().startOf("day").valueOf(), s[e].since <= r && r <= s[e].until || s[e].until <= r && r <= s[e].since)
|
|
1952
1958
|
return s[e].abbr;
|
|
1953
1959
|
return "";
|
|
1954
1960
|
}
|
|
1955
|
-
function
|
|
1961
|
+
function vi() {
|
|
1956
1962
|
var e, t, r, s, a = this.localeData().eras();
|
|
1957
1963
|
for (e = 0, t = a.length; e < t; ++e)
|
|
1958
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)
|
|
1959
1965
|
return (this.year() - l(a[e].since).year()) * r + a[e].offset;
|
|
1960
1966
|
return this.year();
|
|
1961
1967
|
}
|
|
1962
|
-
function
|
|
1963
|
-
return
|
|
1968
|
+
function Di(e) {
|
|
1969
|
+
return p(this, "_erasNameRegex") || Dt.call(this), e ? this._erasNameRegex : this._erasRegex;
|
|
1964
1970
|
}
|
|
1965
|
-
function
|
|
1966
|
-
return
|
|
1971
|
+
function Yi(e) {
|
|
1972
|
+
return p(this, "_erasAbbrRegex") || Dt.call(this), e ? this._erasAbbrRegex : this._erasRegex;
|
|
1967
1973
|
}
|
|
1968
|
-
function
|
|
1969
|
-
return
|
|
1974
|
+
function Oi(e) {
|
|
1975
|
+
return p(this, "_erasNarrowRegex") || Dt.call(this), e ? this._erasNarrowRegex : this._erasRegex;
|
|
1970
1976
|
}
|
|
1971
|
-
function
|
|
1977
|
+
function vt(e, t) {
|
|
1972
1978
|
return t.erasAbbrRegex(e);
|
|
1973
1979
|
}
|
|
1974
|
-
function
|
|
1980
|
+
function bi(e, t) {
|
|
1975
1981
|
return t.erasNameRegex(e);
|
|
1976
1982
|
}
|
|
1977
|
-
function
|
|
1983
|
+
function Ti(e, t) {
|
|
1978
1984
|
return t.erasNarrowRegex(e);
|
|
1979
1985
|
}
|
|
1980
|
-
function
|
|
1986
|
+
function xi(e, t) {
|
|
1981
1987
|
return t._eraYearOrdinalRegex || de;
|
|
1982
1988
|
}
|
|
1983
|
-
function
|
|
1984
|
-
var e = [], t = [], r = [], s = [], a,
|
|
1985
|
-
for (a = 0,
|
|
1986
|
-
|
|
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);
|
|
1987
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(
|
|
1988
1994
|
"^(" + r.join("|") + ")",
|
|
1989
1995
|
"i"
|
|
@@ -2010,17 +2016,17 @@ d("GGGG", ht, dt);
|
|
|
2010
2016
|
d("gggg", ht, dt);
|
|
2011
2017
|
d("GGGGG", Ie, Ce);
|
|
2012
2018
|
d("ggggg", Ie, Ce);
|
|
2013
|
-
|
|
2019
|
+
ve(
|
|
2014
2020
|
["gggg", "ggggg", "GGGG", "GGGGG"],
|
|
2015
2021
|
function(e, t, r, s) {
|
|
2016
2022
|
t[s.substr(0, 2)] = m(e);
|
|
2017
2023
|
}
|
|
2018
2024
|
);
|
|
2019
|
-
|
|
2025
|
+
ve(["gg", "GG"], function(e, t, r, s) {
|
|
2020
2026
|
t[s] = l.parseTwoDigitYear(e);
|
|
2021
2027
|
});
|
|
2022
|
-
function
|
|
2023
|
-
return
|
|
2028
|
+
function Pi(e) {
|
|
2029
|
+
return pr.call(
|
|
2024
2030
|
this,
|
|
2025
2031
|
e,
|
|
2026
2032
|
this.week(),
|
|
@@ -2029,8 +2035,8 @@ function Wn(e) {
|
|
|
2029
2035
|
this.localeData()._week.doy
|
|
2030
2036
|
);
|
|
2031
2037
|
}
|
|
2032
|
-
function
|
|
2033
|
-
return
|
|
2038
|
+
function Wi(e) {
|
|
2039
|
+
return pr.call(
|
|
2034
2040
|
this,
|
|
2035
2041
|
e,
|
|
2036
2042
|
this.isoWeek(),
|
|
@@ -2039,34 +2045,34 @@ function Rn(e) {
|
|
|
2039
2045
|
4
|
|
2040
2046
|
);
|
|
2041
2047
|
}
|
|
2042
|
-
function
|
|
2048
|
+
function Ri() {
|
|
2043
2049
|
return $(this.year(), 1, 4);
|
|
2044
2050
|
}
|
|
2045
|
-
function
|
|
2051
|
+
function Ni() {
|
|
2046
2052
|
return $(this.isoWeekYear(), 1, 4);
|
|
2047
2053
|
}
|
|
2048
|
-
function
|
|
2054
|
+
function Fi() {
|
|
2049
2055
|
var e = this.localeData()._week;
|
|
2050
2056
|
return $(this.year(), e.dow, e.doy);
|
|
2051
2057
|
}
|
|
2052
|
-
function
|
|
2058
|
+
function Li() {
|
|
2053
2059
|
var e = this.localeData()._week;
|
|
2054
2060
|
return $(this.weekYear(), e.dow, e.doy);
|
|
2055
2061
|
}
|
|
2056
|
-
function
|
|
2057
|
-
var
|
|
2058
|
-
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));
|
|
2059
2065
|
}
|
|
2060
|
-
function
|
|
2061
|
-
var
|
|
2062
|
-
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;
|
|
2063
2069
|
}
|
|
2064
2070
|
h("Q", 0, "Qo", "quarter");
|
|
2065
2071
|
d("Q", Ht);
|
|
2066
|
-
|
|
2072
|
+
M("Q", function(e, t) {
|
|
2067
2073
|
t[V] = (m(e) - 1) * 3;
|
|
2068
2074
|
});
|
|
2069
|
-
function
|
|
2075
|
+
function Ui(e) {
|
|
2070
2076
|
return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
|
|
2071
2077
|
}
|
|
2072
2078
|
h("D", ["DD", 2], "Do", "date");
|
|
@@ -2075,18 +2081,18 @@ d("DD", k, T);
|
|
|
2075
2081
|
d("Do", function(e, t) {
|
|
2076
2082
|
return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
|
|
2077
2083
|
});
|
|
2078
|
-
|
|
2079
|
-
|
|
2084
|
+
M(["D", "DD"], C);
|
|
2085
|
+
M("Do", function(e, t) {
|
|
2080
2086
|
t[C] = m(e.match(k)[0]);
|
|
2081
2087
|
});
|
|
2082
|
-
var
|
|
2088
|
+
var wr = fe("Date", !0);
|
|
2083
2089
|
h("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
|
|
2084
2090
|
d("DDD", Ue);
|
|
2085
2091
|
d("DDDD", Et);
|
|
2086
|
-
|
|
2092
|
+
M(["DDD", "DDDD"], function(e, t, r) {
|
|
2087
2093
|
r._dayOfYear = m(e);
|
|
2088
2094
|
});
|
|
2089
|
-
function
|
|
2095
|
+
function Ii(e) {
|
|
2090
2096
|
var t = Math.round(
|
|
2091
2097
|
(this.clone().startOf("day") - this.clone().startOf("year")) / 864e5
|
|
2092
2098
|
) + 1;
|
|
@@ -2095,13 +2101,13 @@ function Hn(e) {
|
|
|
2095
2101
|
h("m", ["mm", 2], 0, "minute");
|
|
2096
2102
|
d("m", k, ft);
|
|
2097
2103
|
d("mm", k, T);
|
|
2098
|
-
|
|
2099
|
-
var
|
|
2104
|
+
M(["m", "mm"], R);
|
|
2105
|
+
var Hi = fe("Minutes", !1);
|
|
2100
2106
|
h("s", ["ss", 2], 0, "second");
|
|
2101
2107
|
d("s", k, ft);
|
|
2102
2108
|
d("ss", k, T);
|
|
2103
|
-
|
|
2104
|
-
var
|
|
2109
|
+
M(["s", "ss"], G);
|
|
2110
|
+
var Ei = fe("Seconds", !1);
|
|
2105
2111
|
h("S", 0, 0, function() {
|
|
2106
2112
|
return ~~(this.millisecond() / 100);
|
|
2107
2113
|
});
|
|
@@ -2130,21 +2136,21 @@ h(0, ["SSSSSSSSS", 9], 0, function() {
|
|
|
2130
2136
|
d("S", Ue, Ht);
|
|
2131
2137
|
d("SS", Ue, T);
|
|
2132
2138
|
d("SSS", Ue, Et);
|
|
2133
|
-
var K,
|
|
2139
|
+
var K, Mr;
|
|
2134
2140
|
for (K = "SSSS"; K.length <= 9; K += "S")
|
|
2135
2141
|
d(K, de);
|
|
2136
|
-
function
|
|
2142
|
+
function Ai(e, t) {
|
|
2137
2143
|
t[te] = m(("0." + e) * 1e3);
|
|
2138
2144
|
}
|
|
2139
2145
|
for (K = "S"; K.length <= 9; K += "S")
|
|
2140
|
-
|
|
2141
|
-
|
|
2146
|
+
M(K, Ai);
|
|
2147
|
+
Mr = fe("Milliseconds", !1);
|
|
2142
2148
|
h("z", 0, 0, "zoneAbbr");
|
|
2143
2149
|
h("zz", 0, 0, "zoneName");
|
|
2144
|
-
function
|
|
2150
|
+
function ji() {
|
|
2145
2151
|
return this._isUTC ? "UTC" : "";
|
|
2146
2152
|
}
|
|
2147
|
-
function
|
|
2153
|
+
function Vi() {
|
|
2148
2154
|
return this._isUTC ? "Coordinated Universal Time" : "";
|
|
2149
2155
|
}
|
|
2150
2156
|
var o = ke.prototype;
|
|
@@ -2152,71 +2158,71 @@ o.add = La;
|
|
|
2152
2158
|
o.calendar = ja;
|
|
2153
2159
|
o.clone = Va;
|
|
2154
2160
|
o.diff = Ja;
|
|
2155
|
-
o.endOf =
|
|
2156
|
-
o.format =
|
|
2157
|
-
o.from =
|
|
2158
|
-
o.fromNow =
|
|
2159
|
-
o.to =
|
|
2160
|
-
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;
|
|
2161
2167
|
o.get = Xr;
|
|
2162
|
-
o.invalidAt =
|
|
2168
|
+
o.invalidAt = _i;
|
|
2163
2169
|
o.isAfter = Ga;
|
|
2164
2170
|
o.isBefore = za;
|
|
2165
2171
|
o.isBetween = $a;
|
|
2166
2172
|
o.isSame = qa;
|
|
2167
2173
|
o.isSameOrAfter = Za;
|
|
2168
2174
|
o.isSameOrBefore = Ba;
|
|
2169
|
-
o.isValid =
|
|
2175
|
+
o.isValid = ci;
|
|
2170
2176
|
o.lang = fr;
|
|
2171
2177
|
o.locale = hr;
|
|
2172
2178
|
o.localeData = cr;
|
|
2173
2179
|
o.max = ca;
|
|
2174
2180
|
o.min = fa;
|
|
2175
|
-
o.parsingFlags =
|
|
2181
|
+
o.parsingFlags = mi;
|
|
2176
2182
|
o.set = es;
|
|
2177
|
-
o.startOf =
|
|
2183
|
+
o.startOf = ii;
|
|
2178
2184
|
o.subtract = Ca;
|
|
2179
|
-
o.toArray =
|
|
2180
|
-
o.toObject =
|
|
2181
|
-
o.toDate =
|
|
2185
|
+
o.toArray = di;
|
|
2186
|
+
o.toObject = hi;
|
|
2187
|
+
o.toDate = ui;
|
|
2182
2188
|
o.toISOString = Ka;
|
|
2183
2189
|
o.inspect = Xa;
|
|
2184
2190
|
typeof Symbol < "u" && Symbol.for != null && (o[Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
2185
2191
|
return "Moment<" + this.format() + ">";
|
|
2186
2192
|
});
|
|
2187
|
-
o.toJSON =
|
|
2193
|
+
o.toJSON = fi;
|
|
2188
2194
|
o.toString = Qa;
|
|
2189
|
-
o.unix =
|
|
2190
|
-
o.valueOf =
|
|
2191
|
-
o.creationData =
|
|
2192
|
-
o.eraName =
|
|
2193
|
-
o.eraNarrow =
|
|
2194
|
-
o.eraAbbr =
|
|
2195
|
-
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;
|
|
2196
2202
|
o.year = Vt;
|
|
2197
2203
|
o.isLeapYear = Kr;
|
|
2198
|
-
o.weekYear =
|
|
2199
|
-
o.isoWeekYear =
|
|
2200
|
-
o.quarter = o.quarters =
|
|
2204
|
+
o.weekYear = Pi;
|
|
2205
|
+
o.isoWeekYear = Wi;
|
|
2206
|
+
o.quarter = o.quarters = Ui;
|
|
2201
2207
|
o.month = Zt;
|
|
2202
2208
|
o.daysInMonth = us;
|
|
2203
|
-
o.week = o.weeks =
|
|
2204
|
-
o.isoWeek = o.isoWeeks =
|
|
2205
|
-
o.weeksInYear =
|
|
2206
|
-
o.weeksInWeekYear =
|
|
2207
|
-
o.isoWeeksInYear =
|
|
2208
|
-
o.isoWeeksInISOWeekYear =
|
|
2209
|
-
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;
|
|
2210
2216
|
o.day = o.days = Ws;
|
|
2211
2217
|
o.weekday = Rs;
|
|
2212
2218
|
o.isoWeekday = Ns;
|
|
2213
|
-
o.dayOfYear =
|
|
2219
|
+
o.dayOfYear = Ii;
|
|
2214
2220
|
o.hour = o.hours = Es;
|
|
2215
|
-
o.minute = o.minutes =
|
|
2216
|
-
o.second = o.seconds =
|
|
2217
|
-
o.millisecond = o.milliseconds =
|
|
2218
|
-
o.utcOffset =
|
|
2219
|
-
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;
|
|
2220
2226
|
o.local = Ya;
|
|
2221
2227
|
o.parseZone = Oa;
|
|
2222
2228
|
o.hasAlignedHourOffset = ba;
|
|
@@ -2225,11 +2231,11 @@ o.isLocal = Pa;
|
|
|
2225
2231
|
o.isUtcOffset = Wa;
|
|
2226
2232
|
o.isUtc = or;
|
|
2227
2233
|
o.isUTC = or;
|
|
2228
|
-
o.zoneAbbr =
|
|
2229
|
-
o.zoneName =
|
|
2234
|
+
o.zoneAbbr = ji;
|
|
2235
|
+
o.zoneName = Vi;
|
|
2230
2236
|
o.dates = P(
|
|
2231
2237
|
"dates accessor is deprecated. Use date instead.",
|
|
2232
|
-
|
|
2238
|
+
wr
|
|
2233
2239
|
);
|
|
2234
2240
|
o.months = P(
|
|
2235
2241
|
"months accessor is deprecated. Use month instead",
|
|
@@ -2241,57 +2247,57 @@ o.years = P(
|
|
|
2241
2247
|
);
|
|
2242
2248
|
o.zone = P(
|
|
2243
2249
|
"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
|
|
2244
|
-
|
|
2250
|
+
va
|
|
2245
2251
|
);
|
|
2246
2252
|
o.isDSTShifted = P(
|
|
2247
2253
|
"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
|
|
2248
2254
|
xa
|
|
2249
2255
|
);
|
|
2250
|
-
function
|
|
2251
|
-
return
|
|
2256
|
+
function Gi(e) {
|
|
2257
|
+
return g(e * 1e3);
|
|
2252
2258
|
}
|
|
2253
|
-
function
|
|
2254
|
-
return
|
|
2259
|
+
function zi() {
|
|
2260
|
+
return g.apply(null, arguments).parseZone();
|
|
2255
2261
|
}
|
|
2256
|
-
function
|
|
2262
|
+
function gr(e) {
|
|
2257
2263
|
return e;
|
|
2258
2264
|
}
|
|
2259
|
-
var
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
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
|
-
|
|
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;
|
|
2292
2298
|
function Fe(e, t, r, s) {
|
|
2293
|
-
var a = Z(),
|
|
2294
|
-
return a[r](
|
|
2299
|
+
var a = Z(), i = I().set(s, t);
|
|
2300
|
+
return a[r](i, e);
|
|
2295
2301
|
}
|
|
2296
2302
|
function kr(e, t, r) {
|
|
2297
2303
|
if (q(e) && (t = e, e = void 0), e = e || "", t != null)
|
|
@@ -2303,26 +2309,26 @@ function kr(e, t, r) {
|
|
|
2303
2309
|
}
|
|
2304
2310
|
function Yt(e, t, r, s) {
|
|
2305
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 || "");
|
|
2306
|
-
var a = Z(),
|
|
2312
|
+
var a = Z(), i = e ? a._week.dow : 0, n, u = [];
|
|
2307
2313
|
if (r != null)
|
|
2308
|
-
return Fe(t, (r +
|
|
2309
|
-
for (
|
|
2310
|
-
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");
|
|
2311
2317
|
return u;
|
|
2312
2318
|
}
|
|
2313
|
-
function
|
|
2319
|
+
function $i(e, t) {
|
|
2314
2320
|
return kr(e, t, "months");
|
|
2315
2321
|
}
|
|
2316
|
-
function
|
|
2322
|
+
function qi(e, t) {
|
|
2317
2323
|
return kr(e, t, "monthsShort");
|
|
2318
2324
|
}
|
|
2319
|
-
function
|
|
2325
|
+
function Zi(e, t, r) {
|
|
2320
2326
|
return Yt(e, t, r, "weekdays");
|
|
2321
2327
|
}
|
|
2322
|
-
function
|
|
2328
|
+
function Bi(e, t, r) {
|
|
2323
2329
|
return Yt(e, t, r, "weekdaysShort");
|
|
2324
2330
|
}
|
|
2325
|
-
function
|
|
2331
|
+
function Ji(e, t, r) {
|
|
2326
2332
|
return Yt(e, t, r, "weekdaysMin");
|
|
2327
2333
|
}
|
|
2328
2334
|
X("en", {
|
|
@@ -2359,39 +2365,39 @@ l.langData = P(
|
|
|
2359
2365
|
Z
|
|
2360
2366
|
);
|
|
2361
2367
|
var A = Math.abs;
|
|
2362
|
-
function
|
|
2368
|
+
function Qi() {
|
|
2363
2369
|
var e = this._data;
|
|
2364
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;
|
|
2365
2371
|
}
|
|
2366
|
-
function
|
|
2372
|
+
function Sr(e, t, r, s) {
|
|
2367
2373
|
var a = L(t, r);
|
|
2368
2374
|
return e._milliseconds += s * a._milliseconds, e._days += s * a._days, e._months += s * a._months, e._bubble();
|
|
2369
2375
|
}
|
|
2370
|
-
function
|
|
2371
|
-
return
|
|
2376
|
+
function Ki(e, t) {
|
|
2377
|
+
return Sr(this, e, t, 1);
|
|
2372
2378
|
}
|
|
2373
|
-
function
|
|
2374
|
-
return
|
|
2379
|
+
function Xi(e, t) {
|
|
2380
|
+
return Sr(this, e, t, -1);
|
|
2375
2381
|
}
|
|
2376
2382
|
function Rt(e) {
|
|
2377
2383
|
return e < 0 ? Math.floor(e) : Math.ceil(e);
|
|
2378
2384
|
}
|
|
2379
|
-
function
|
|
2380
|
-
var e = this._milliseconds, t = this._days, r = this._months, s = this._data, a,
|
|
2381
|
-
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;
|
|
2382
2388
|
}
|
|
2383
|
-
function
|
|
2389
|
+
function vr(e) {
|
|
2384
2390
|
return e * 4800 / 146097;
|
|
2385
2391
|
}
|
|
2386
2392
|
function st(e) {
|
|
2387
2393
|
return e * 146097 / 4800;
|
|
2388
2394
|
}
|
|
2389
|
-
function
|
|
2395
|
+
function tn(e) {
|
|
2390
2396
|
if (!this.isValid())
|
|
2391
2397
|
return NaN;
|
|
2392
2398
|
var t, r, s = this._milliseconds;
|
|
2393
2399
|
if (e = W(e), e === "month" || e === "quarter" || e === "year")
|
|
2394
|
-
switch (t = this._days + s / 864e5, r = this._months +
|
|
2400
|
+
switch (t = this._days + s / 864e5, r = this._months + vr(t), e) {
|
|
2395
2401
|
case "month":
|
|
2396
2402
|
return r;
|
|
2397
2403
|
case "quarter":
|
|
@@ -2422,11 +2428,11 @@ function B(e) {
|
|
|
2422
2428
|
return this.as(e);
|
|
2423
2429
|
};
|
|
2424
2430
|
}
|
|
2425
|
-
var
|
|
2426
|
-
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() {
|
|
2427
2433
|
return L(this);
|
|
2428
2434
|
}
|
|
2429
|
-
function
|
|
2435
|
+
function cn(e) {
|
|
2430
2436
|
return e = W(e), this.isValid() ? this[e + "s"]() : NaN;
|
|
2431
2437
|
}
|
|
2432
2438
|
function se(e) {
|
|
@@ -2434,11 +2440,11 @@ function se(e) {
|
|
|
2434
2440
|
return this.isValid() ? this._data[e] : NaN;
|
|
2435
2441
|
};
|
|
2436
2442
|
}
|
|
2437
|
-
var
|
|
2438
|
-
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() {
|
|
2439
2445
|
return x(this.days() / 7);
|
|
2440
2446
|
}
|
|
2441
|
-
var j = Math.round,
|
|
2447
|
+
var j = Math.round, ne = {
|
|
2442
2448
|
ss: 44,
|
|
2443
2449
|
// a few seconds to seconds
|
|
2444
2450
|
s: 45,
|
|
@@ -2454,24 +2460,24 @@ var j = Math.round, ie = {
|
|
|
2454
2460
|
M: 11
|
|
2455
2461
|
// months to year
|
|
2456
2462
|
};
|
|
2457
|
-
function
|
|
2463
|
+
function Sn(e, t, r, s, a) {
|
|
2458
2464
|
return a.relativeTime(t || 1, !!r, e, s);
|
|
2459
2465
|
}
|
|
2460
|
-
function
|
|
2461
|
-
var a = L(e).abs(),
|
|
2462
|
-
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);
|
|
2463
2469
|
}
|
|
2464
|
-
function
|
|
2470
|
+
function Dn(e) {
|
|
2465
2471
|
return e === void 0 ? j : typeof e == "function" ? (j = e, !0) : !1;
|
|
2466
2472
|
}
|
|
2467
|
-
function
|
|
2468
|
-
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);
|
|
2469
2475
|
}
|
|
2470
|
-
function
|
|
2476
|
+
function On(e, t) {
|
|
2471
2477
|
if (!this.isValid())
|
|
2472
2478
|
return this.localeData().invalidDate();
|
|
2473
|
-
var r = !1, s =
|
|
2474
|
-
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);
|
|
2475
2481
|
}
|
|
2476
2482
|
var Be = Math.abs;
|
|
2477
2483
|
function ae(e) {
|
|
@@ -2480,37 +2486,37 @@ function ae(e) {
|
|
|
2480
2486
|
function ze() {
|
|
2481
2487
|
if (!this.isValid())
|
|
2482
2488
|
return this.localeData().invalidDate();
|
|
2483
|
-
var e = Be(this._milliseconds) / 1e3, t = Be(this._days), r = Be(this._months), s, a,
|
|
2484
|
-
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";
|
|
2485
2491
|
}
|
|
2486
2492
|
var y = Ve.prototype;
|
|
2487
|
-
y.isValid =
|
|
2488
|
-
y.abs =
|
|
2489
|
-
y.add =
|
|
2490
|
-
y.subtract =
|
|
2491
|
-
y.as =
|
|
2492
|
-
y.asMilliseconds =
|
|
2493
|
-
y.asSeconds =
|
|
2494
|
-
y.asMinutes =
|
|
2495
|
-
y.asHours =
|
|
2496
|
-
y.asDays =
|
|
2497
|
-
y.asWeeks =
|
|
2498
|
-
y.asMonths =
|
|
2499
|
-
y.asQuarters =
|
|
2500
|
-
y.asYears =
|
|
2501
|
-
y.valueOf =
|
|
2502
|
-
y._bubble =
|
|
2503
|
-
y.clone =
|
|
2504
|
-
y.get =
|
|
2505
|
-
y.milliseconds =
|
|
2506
|
-
y.seconds =
|
|
2507
|
-
y.minutes =
|
|
2508
|
-
y.hours =
|
|
2509
|
-
y.days =
|
|
2510
|
-
y.weeks =
|
|
2511
|
-
y.months =
|
|
2512
|
-
y.years =
|
|
2513
|
-
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;
|
|
2514
2520
|
y.toISOString = ze;
|
|
2515
2521
|
y.toString = ze;
|
|
2516
2522
|
y.toJSON = ze;
|
|
@@ -2525,40 +2531,40 @@ h("X", 0, 0, "unix");
|
|
|
2525
2531
|
h("x", 0, 0, "valueOf");
|
|
2526
2532
|
d("x", He);
|
|
2527
2533
|
d("X", $r);
|
|
2528
|
-
|
|
2534
|
+
M("X", function(e, t, r) {
|
|
2529
2535
|
r._d = new Date(parseFloat(e) * 1e3);
|
|
2530
2536
|
});
|
|
2531
|
-
|
|
2537
|
+
M("x", function(e, t, r) {
|
|
2532
2538
|
r._d = new Date(m(e));
|
|
2533
2539
|
});
|
|
2534
2540
|
//! moment.js
|
|
2535
2541
|
l.version = "2.30.1";
|
|
2536
|
-
Or(
|
|
2542
|
+
Or(g);
|
|
2537
2543
|
l.fn = o;
|
|
2538
2544
|
l.min = ma;
|
|
2539
2545
|
l.max = _a;
|
|
2540
2546
|
l.now = ya;
|
|
2541
2547
|
l.utc = I;
|
|
2542
|
-
l.unix =
|
|
2543
|
-
l.months =
|
|
2544
|
-
l.isDate =
|
|
2548
|
+
l.unix = Gi;
|
|
2549
|
+
l.months = $i;
|
|
2550
|
+
l.isDate = ge;
|
|
2545
2551
|
l.locale = X;
|
|
2546
2552
|
l.invalid = Le;
|
|
2547
2553
|
l.duration = L;
|
|
2548
2554
|
l.isMoment = F;
|
|
2549
|
-
l.weekdays =
|
|
2550
|
-
l.parseZone =
|
|
2555
|
+
l.weekdays = Zi;
|
|
2556
|
+
l.parseZone = zi;
|
|
2551
2557
|
l.localeData = Z;
|
|
2552
2558
|
l.isDuration = Te;
|
|
2553
|
-
l.monthsShort =
|
|
2554
|
-
l.weekdaysMin =
|
|
2555
|
-
l.defineLocale =
|
|
2559
|
+
l.monthsShort = qi;
|
|
2560
|
+
l.weekdaysMin = Ji;
|
|
2561
|
+
l.defineLocale = pt;
|
|
2556
2562
|
l.updateLocale = zs;
|
|
2557
2563
|
l.locales = $s;
|
|
2558
|
-
l.weekdaysShort =
|
|
2564
|
+
l.weekdaysShort = Bi;
|
|
2559
2565
|
l.normalizeUnits = W;
|
|
2560
|
-
l.relativeTimeRounding =
|
|
2561
|
-
l.relativeTimeThreshold =
|
|
2566
|
+
l.relativeTimeRounding = Dn;
|
|
2567
|
+
l.relativeTimeThreshold = Yn;
|
|
2562
2568
|
l.calendarFormat = Aa;
|
|
2563
2569
|
l.prototype = o;
|
|
2564
2570
|
l.HTML5_FMT = {
|
|
@@ -2581,7 +2587,7 @@ l.HTML5_FMT = {
|
|
|
2581
2587
|
MONTH: "YYYY-MM"
|
|
2582
2588
|
// <input type="month" />
|
|
2583
2589
|
};
|
|
2584
|
-
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 = [
|
|
2585
2591
|
/^janv/i,
|
|
2586
2592
|
/^févr/i,
|
|
2587
2593
|
/^mars/i,
|
|
@@ -2594,15 +2600,15 @@ const bi = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octob
|
|
|
2594
2600
|
/^oct/i,
|
|
2595
2601
|
/^nov/i,
|
|
2596
2602
|
/^déc/i
|
|
2597
|
-
],
|
|
2603
|
+
], xn = {
|
|
2598
2604
|
months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split(
|
|
2599
2605
|
"_"
|
|
2600
2606
|
),
|
|
2601
2607
|
monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
|
|
2602
2608
|
monthsRegex: Nt,
|
|
2603
2609
|
monthsShortRegex: Nt,
|
|
2604
|
-
monthsStrictRegex:
|
|
2605
|
-
monthsShortStrictRegex:
|
|
2610
|
+
monthsStrictRegex: bn,
|
|
2611
|
+
monthsShortStrictRegex: Tn,
|
|
2606
2612
|
monthsParse: Je,
|
|
2607
2613
|
longMonthsParse: Je,
|
|
2608
2614
|
shortMonthsParse: Je,
|
|
@@ -2664,28 +2670,28 @@ const bi = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octob
|
|
|
2664
2670
|
dow: 1,
|
|
2665
2671
|
doy: 4
|
|
2666
2672
|
}
|
|
2667
|
-
},
|
|
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) => {
|
|
2668
2674
|
const t = e.split(" "), s = ((a) => {
|
|
2669
|
-
let
|
|
2670
|
-
for (let
|
|
2675
|
+
let i = 1 / 0;
|
|
2676
|
+
for (let n = 0; n < a.length; n++) {
|
|
2671
2677
|
const u = Math.abs(
|
|
2672
|
-
a.slice(0,
|
|
2678
|
+
a.slice(0, n + 1).join(" ").length - a.slice(n + 1).join(" ").length
|
|
2673
2679
|
);
|
|
2674
|
-
if (u <=
|
|
2675
|
-
|
|
2680
|
+
if (u <= i)
|
|
2681
|
+
i = u;
|
|
2676
2682
|
else
|
|
2677
|
-
return
|
|
2683
|
+
return n - 1;
|
|
2678
2684
|
}
|
|
2679
|
-
return
|
|
2685
|
+
return i;
|
|
2680
2686
|
})(t);
|
|
2681
2687
|
return t.length === 1 ? [t[0]] : [t.slice(0, s + 1), t.slice(s + 1)].map(
|
|
2682
2688
|
(a) => a.join(" ")
|
|
2683
2689
|
);
|
|
2684
2690
|
};
|
|
2685
|
-
l.locale("fr",
|
|
2686
|
-
const
|
|
2691
|
+
l.locale("fr", xn);
|
|
2692
|
+
const Zn = (e) => new Date(e).toString() !== "Invalid Date", Bn = (e, t) => Math.abs(
|
|
2687
2693
|
Math.ceil((t.getTime() - e.getTime()) / (1e3 * 60 * 60 * 24))
|
|
2688
|
-
),
|
|
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) => {
|
|
2689
2695
|
const t = [], r = l.duration(e);
|
|
2690
2696
|
if (!(!r || r.toISOString() === "P0D")) {
|
|
2691
2697
|
if (r.years() >= 1) {
|
|
@@ -2714,18 +2720,18 @@ const qi = (e) => new Date(e).toString() !== "Invalid Date", Zi = (e, t) => Math
|
|
|
2714
2720
|
}
|
|
2715
2721
|
return t.join(", ");
|
|
2716
2722
|
}
|
|
2717
|
-
}, Ot = /^([1-9][0-9]?)([hmd])$/i,
|
|
2723
|
+
}, Ot = /^([1-9][0-9]?)([hmd])$/i, to = (e) => !!e && Ot.test(e), ro = (e) => {
|
|
2718
2724
|
const t = Ot.exec(e);
|
|
2719
2725
|
if (!t)
|
|
2720
2726
|
return null;
|
|
2721
|
-
const [, r, s] = t, a = parseInt(r, 10),
|
|
2727
|
+
const [, r, s] = t, a = parseInt(r, 10), i = 1e3 * 60;
|
|
2722
2728
|
if (s === "m")
|
|
2723
|
-
return
|
|
2729
|
+
return i * a;
|
|
2724
2730
|
if (s === "h")
|
|
2725
|
-
return
|
|
2731
|
+
return i * 60 * a;
|
|
2726
2732
|
if (s === "d")
|
|
2727
|
-
return
|
|
2728
|
-
},
|
|
2733
|
+
return i * 60 * 24 * a;
|
|
2734
|
+
}, so = (e) => {
|
|
2729
2735
|
const t = Ot.exec(e);
|
|
2730
2736
|
if (!t)
|
|
2731
2737
|
return null;
|
|
@@ -2736,7 +2742,7 @@ const qi = (e) => new Date(e).toString() !== "Invalid Date", Zi = (e, t) => Math
|
|
|
2736
2742
|
return `${a} heure${a > 1 ? "s" : ""}`;
|
|
2737
2743
|
if (s === "d")
|
|
2738
2744
|
return `${a} jour${a > 1 ? "s" : ""}`;
|
|
2739
|
-
},
|
|
2745
|
+
}, ao = {
|
|
2740
2746
|
d1: "<:d1:1159542168738873455>",
|
|
2741
2747
|
d2: "<:d2:1159542071049334814>",
|
|
2742
2748
|
d3: "<:d3:1159542073914032191>",
|
|
@@ -2856,8 +2862,33 @@ const qi = (e) => new Date(e).toString() !== "Invalid Date", Zi = (e, t) => Math
|
|
|
2856
2862
|
item_repair_glue: "<:Colle:1233782388497186846>",
|
|
2857
2863
|
item_repair_rope: "<:Corde:1233782392225927168>",
|
|
2858
2864
|
item_repair_kit: "<:Kitderparation:1233782876223570011>",
|
|
2859
|
-
item_repair_tissue: "<:Tissus:1233784184099573852>"
|
|
2860
|
-
|
|
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 = () => {
|
|
2861
2892
|
const e = process.memoryUsage(), t = {
|
|
2862
2893
|
rss: `${Oe(e.rss)} -> Resident Set Size - total memory allocated for the process execution`,
|
|
2863
2894
|
heapTotal: `${Oe(e.heapTotal)} -> total size of the allocated heap`,
|
|
@@ -2867,36 +2898,37 @@ const qi = (e) => new Date(e).toString() !== "Invalid Date", Zi = (e, t) => Math
|
|
|
2867
2898
|
console.log(t);
|
|
2868
2899
|
};
|
|
2869
2900
|
export {
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2901
|
+
Pn as TIGHT_SPACE,
|
|
2902
|
+
Wn as WIDE_SPACE,
|
|
2903
|
+
qn as breakWords,
|
|
2904
|
+
Rn as capitalize,
|
|
2874
2905
|
Yr as capitalizeAllWords,
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2906
|
+
Bn as dateDiff,
|
|
2907
|
+
ro as durationToMs,
|
|
2908
|
+
Vn as ellipsis,
|
|
2909
|
+
ao as emojis,
|
|
2910
|
+
In as exclude,
|
|
2911
|
+
An as fillWithTightSpaces,
|
|
2912
|
+
jn as fillWithWideSpaces,
|
|
2913
|
+
Jn as formatDate,
|
|
2914
|
+
Qn as formatDateWithDay,
|
|
2915
|
+
so as formatDuration,
|
|
2885
2916
|
Oe as formatMemoryUsage,
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2917
|
+
Nn as formatNumber,
|
|
2918
|
+
Ln as groupBy,
|
|
2919
|
+
to as isDuration,
|
|
2920
|
+
Gn as isPositiveInteger,
|
|
2921
|
+
Zn as isValidDate,
|
|
2922
|
+
Un as mutuallyInclusive,
|
|
2923
|
+
zn as numberToOrdinal,
|
|
2924
|
+
Fn as paginate,
|
|
2925
|
+
eo as precise,
|
|
2895
2926
|
no as printMemoryUsage,
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
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
|
|
2902
2934
|
};
|