@opfr/utils-type 0.7.4 → 0.9.0
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/index.es.js +951 -1012
- package/dist/index.umd.js +5 -5
- package/dist/xp/types.d.ts +1 -1
- package/dist/xp/types.d.ts.map +1 -1
- package/package.json +3 -2
package/dist/index.es.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
var me = /* @__PURE__ */ ((e) => (e.BASIC = "BASIC", e.COMMON = "COMMON", e.RARE = "RARE", e.EPIC = "EPIC", e.LEGENDARY = "LEGENDARY", e.MYTHIC = "MYTHIC", e))(me || {});
|
|
2
|
-
const
|
|
2
|
+
const ru = {
|
|
3
3
|
BASIC: { color: "#fff", strength: 0, id: me.BASIC },
|
|
4
4
|
COMMON: { color: "#813D31", strength: 1, id: me.COMMON },
|
|
5
5
|
RARE: { color: "#5B6870", strength: 2, id: me.RARE },
|
|
6
6
|
EPIC: { color: "#C46619", strength: 3, id: me.EPIC },
|
|
7
7
|
LEGENDARY: { color: "#88A3CB", strength: 4, id: me.LEGENDARY },
|
|
8
8
|
MYTHIC: { color: "#F6bF62", strength: 5, id: me.MYTHIC }
|
|
9
|
-
},
|
|
9
|
+
}, au = [
|
|
10
10
|
"vitality",
|
|
11
11
|
"strength",
|
|
12
12
|
"agility",
|
|
13
13
|
"intelligence",
|
|
14
14
|
"chance",
|
|
15
15
|
"wisdom"
|
|
16
|
-
],
|
|
16
|
+
], ou = 10, Ys = 1, uu = [
|
|
17
17
|
[200, 4],
|
|
18
18
|
[100, 3],
|
|
19
19
|
[50, 2],
|
|
20
|
-
[0,
|
|
21
|
-
],
|
|
20
|
+
[0, Ys]
|
|
21
|
+
], lu = 100, du = 10, hu = {
|
|
22
22
|
pirate: {
|
|
23
23
|
name: "pirate",
|
|
24
24
|
color: "#8A1623",
|
|
@@ -39,7 +39,7 @@ const nu = {
|
|
|
39
39
|
color: "#fff",
|
|
40
40
|
role: "1147953458507423874"
|
|
41
41
|
}
|
|
42
|
-
},
|
|
42
|
+
}, cu = "citizen", fu = ["category", "alpha", "quantity"], Ns = {
|
|
43
43
|
type: "logger",
|
|
44
44
|
log(e) {
|
|
45
45
|
this.output("log", e);
|
|
@@ -61,7 +61,7 @@ class st {
|
|
|
61
61
|
}
|
|
62
62
|
init(t) {
|
|
63
63
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
64
|
-
this.prefix = n.prefix || "i18next:", this.logger = t ||
|
|
64
|
+
this.prefix = n.prefix || "i18next:", this.logger = t || Ns, this.options = n, this.debug = n.debug;
|
|
65
65
|
}
|
|
66
66
|
log() {
|
|
67
67
|
for (var t = arguments.length, n = new Array(t), s = 0; s < t; s++)
|
|
@@ -131,43 +131,30 @@ class ct {
|
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
|
|
134
|
+
const Te = () => {
|
|
135
135
|
let e, t;
|
|
136
136
|
const n = new Promise((s, i) => {
|
|
137
137
|
e = s, t = i;
|
|
138
138
|
});
|
|
139
139
|
return n.resolve = e, n.reject = t, n;
|
|
140
|
-
}
|
|
141
|
-
function fn(e) {
|
|
142
|
-
return e == null ? "" : "" + e;
|
|
143
|
-
}
|
|
144
|
-
function Ds(e, t, n) {
|
|
140
|
+
}, gn = (e) => e == null ? "" : "" + e, Cs = (e, t, n) => {
|
|
145
141
|
e.forEach((s) => {
|
|
146
142
|
t[s] && (n[s] = t[s]);
|
|
147
143
|
});
|
|
148
|
-
}
|
|
149
|
-
const
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
function i() {
|
|
155
|
-
return !e || typeof e == "string";
|
|
156
|
-
}
|
|
157
|
-
const r = typeof t != "string" ? t : t.split(".");
|
|
158
|
-
let a = 0;
|
|
159
|
-
for (; a < r.length - 1; ) {
|
|
160
|
-
if (i())
|
|
144
|
+
}, Ls = /###/g, mn = (e) => e && e.indexOf("###") > -1 ? e.replace(Ls, ".") : e, pn = (e) => !e || typeof e == "string", Ae = (e, t, n) => {
|
|
145
|
+
const s = typeof t != "string" ? t : t.split(".");
|
|
146
|
+
let i = 0;
|
|
147
|
+
for (; i < s.length - 1; ) {
|
|
148
|
+
if (pn(e))
|
|
161
149
|
return {};
|
|
162
|
-
const
|
|
163
|
-
!e[
|
|
150
|
+
const r = mn(s[i]);
|
|
151
|
+
!e[r] && n && (e[r] = new n()), Object.prototype.hasOwnProperty.call(e, r) ? e = e[r] : e = {}, ++i;
|
|
164
152
|
}
|
|
165
|
-
return
|
|
153
|
+
return pn(e) ? {} : {
|
|
166
154
|
obj: e,
|
|
167
|
-
k: s
|
|
155
|
+
k: mn(s[i])
|
|
168
156
|
};
|
|
169
|
-
}
|
|
170
|
-
function gn(e, t, n) {
|
|
157
|
+
}, yn = (e, t, n) => {
|
|
171
158
|
const {
|
|
172
159
|
obj: s,
|
|
173
160
|
k: i
|
|
@@ -180,35 +167,28 @@ function gn(e, t, n) {
|
|
|
180
167
|
for (; o.obj === void 0 && a.length; )
|
|
181
168
|
r = `${a[a.length - 1]}.${r}`, a = a.slice(0, a.length - 1), o = Ae(e, a, Object), o && o.obj && typeof o.obj[`${o.k}.${r}`] < "u" && (o.obj = void 0);
|
|
182
169
|
o.obj[`${o.k}.${r}`] = n;
|
|
183
|
-
}
|
|
184
|
-
function Ns(e, t, n, s) {
|
|
170
|
+
}, Rs = (e, t, n, s) => {
|
|
185
171
|
const {
|
|
186
172
|
obj: i,
|
|
187
173
|
k: r
|
|
188
174
|
} = Ae(e, t, Object);
|
|
189
175
|
i[r] = i[r] || [], i[r].push(n);
|
|
190
|
-
}
|
|
191
|
-
function it(e, t) {
|
|
176
|
+
}, it = (e, t) => {
|
|
192
177
|
const {
|
|
193
178
|
obj: n,
|
|
194
179
|
k: s
|
|
195
180
|
} = Ae(e, t);
|
|
196
181
|
if (n)
|
|
197
182
|
return n[s];
|
|
198
|
-
}
|
|
199
|
-
function Cs(e, t, n) {
|
|
183
|
+
}, Ps = (e, t, n) => {
|
|
200
184
|
const s = it(e, n);
|
|
201
185
|
return s !== void 0 ? s : it(t, n);
|
|
202
|
-
}
|
|
203
|
-
function Nn(e, t, n) {
|
|
186
|
+
}, Rn = (e, t, n) => {
|
|
204
187
|
for (const s in t)
|
|
205
|
-
s !== "__proto__" && s !== "constructor" && (s in e ? typeof e[s] == "string" || e[s] instanceof String || typeof t[s] == "string" || t[s] instanceof String ? n && (e[s] = t[s]) :
|
|
188
|
+
s !== "__proto__" && s !== "constructor" && (s in e ? typeof e[s] == "string" || e[s] instanceof String || typeof t[s] == "string" || t[s] instanceof String ? n && (e[s] = t[s]) : Rn(e[s], t[s], n) : e[s] = t[s]);
|
|
206
189
|
return e;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
210
|
-
}
|
|
211
|
-
var Ls = {
|
|
190
|
+
}, ve = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
191
|
+
var Ts = {
|
|
212
192
|
"&": "&",
|
|
213
193
|
"<": "<",
|
|
214
194
|
">": ">",
|
|
@@ -216,10 +196,8 @@ var Ls = {
|
|
|
216
196
|
"'": "'",
|
|
217
197
|
"/": "/"
|
|
218
198
|
};
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
}
|
|
222
|
-
class Ps {
|
|
199
|
+
const Es = (e) => typeof e == "string" ? e.replace(/[&<>"'\/]/g, (t) => Ts[t]) : e;
|
|
200
|
+
class Fs {
|
|
223
201
|
constructor(t) {
|
|
224
202
|
this.capacity = t, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
225
203
|
}
|
|
@@ -231,21 +209,19 @@ class Ps {
|
|
|
231
209
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(t, s), this.regExpQueue.push(t), s;
|
|
232
210
|
}
|
|
233
211
|
}
|
|
234
|
-
const
|
|
235
|
-
function Fs(e, t, n) {
|
|
212
|
+
const As = [" ", ",", "?", "!", ";"], Is = new Fs(20), js = (e, t, n) => {
|
|
236
213
|
t = t || "", n = n || "";
|
|
237
|
-
const s =
|
|
214
|
+
const s = As.filter((a) => t.indexOf(a) < 0 && n.indexOf(a) < 0);
|
|
238
215
|
if (s.length === 0)
|
|
239
216
|
return !0;
|
|
240
|
-
const i =
|
|
217
|
+
const i = Is.getRegExp(`(${s.map((a) => a === "?" ? "\\?" : a).join("|")})`);
|
|
241
218
|
let r = !i.test(e);
|
|
242
219
|
if (!r) {
|
|
243
220
|
const a = e.indexOf(n);
|
|
244
221
|
a > 0 && !i.test(e.substring(0, a)) && (r = !0);
|
|
245
222
|
}
|
|
246
223
|
return r;
|
|
247
|
-
}
|
|
248
|
-
function Pt(e, t) {
|
|
224
|
+
}, Tt = function(e, t) {
|
|
249
225
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
250
226
|
if (!e)
|
|
251
227
|
return;
|
|
@@ -267,11 +243,8 @@ function Pt(e, t) {
|
|
|
267
243
|
i = a;
|
|
268
244
|
}
|
|
269
245
|
return i;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
return e && e.indexOf("_") > 0 ? e.replace("_", "-") : e;
|
|
273
|
-
}
|
|
274
|
-
class mn extends ct {
|
|
246
|
+
}, rt = (e) => e && e.replace("_", "-");
|
|
247
|
+
class _n extends ct {
|
|
275
248
|
constructor(t) {
|
|
276
249
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
277
250
|
ns: ["translation"],
|
|
@@ -292,7 +265,7 @@ class mn extends ct {
|
|
|
292
265
|
let o;
|
|
293
266
|
t.indexOf(".") > -1 ? o = t.split(".") : (o = [t, n], s && (Array.isArray(s) ? o.push(...s) : typeof s == "string" && r ? o.push(...s.split(r)) : o.push(s)));
|
|
294
267
|
const u = it(this.data, o);
|
|
295
|
-
return !u && !n && !s && t.indexOf(".") > -1 && (t = o[0], n = o[1], s = o.slice(2).join(".")), u || !a || typeof s != "string" ? u :
|
|
268
|
+
return !u && !n && !s && t.indexOf(".") > -1 && (t = o[0], n = o[1], s = o.slice(2).join(".")), u || !a || typeof s != "string" ? u : Tt(this.data && this.data[t] && this.data[t][n], s, r);
|
|
296
269
|
}
|
|
297
270
|
addResource(t, n, s, i) {
|
|
298
271
|
let r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
@@ -300,7 +273,7 @@ class mn extends ct {
|
|
|
300
273
|
};
|
|
301
274
|
const a = r.keySeparator !== void 0 ? r.keySeparator : this.options.keySeparator;
|
|
302
275
|
let o = [t, n];
|
|
303
|
-
s && (o = o.concat(a ? s.split(a) : s)), t.indexOf(".") > -1 && (o = t.split("."), i = n, n = o[1]), this.addNamespaces(n),
|
|
276
|
+
s && (o = o.concat(a ? s.split(a) : s)), t.indexOf(".") > -1 && (o = t.split("."), i = n, n = o[1]), this.addNamespaces(n), yn(this.data, o, i), r.silent || this.emit("added", t, n, s, i);
|
|
304
277
|
}
|
|
305
278
|
addResources(t, n, s) {
|
|
306
279
|
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
@@ -319,10 +292,10 @@ class mn extends ct {
|
|
|
319
292
|
}, o = [t, n];
|
|
320
293
|
t.indexOf(".") > -1 && (o = t.split("."), i = s, s = n, n = o[1]), this.addNamespaces(n);
|
|
321
294
|
let u = it(this.data, o) || {};
|
|
322
|
-
a.skipCopy || (s = JSON.parse(JSON.stringify(s))), i ?
|
|
295
|
+
a.skipCopy || (s = JSON.parse(JSON.stringify(s))), i ? Rn(u, s, r) : u = {
|
|
323
296
|
...u,
|
|
324
297
|
...s
|
|
325
|
-
},
|
|
298
|
+
}, yn(this.data, o, u), a.silent || this.emit("added", t, n, s);
|
|
326
299
|
}
|
|
327
300
|
removeResourceBundle(t, n) {
|
|
328
301
|
this.hasResourceBundle(t, n) && delete this.data[t][n], this.removeNamespaces(n), this.emit("removed", t, n);
|
|
@@ -346,7 +319,7 @@ class mn extends ct {
|
|
|
346
319
|
return this.data;
|
|
347
320
|
}
|
|
348
321
|
}
|
|
349
|
-
var
|
|
322
|
+
var Pn = {
|
|
350
323
|
processors: {},
|
|
351
324
|
addPostProcessor(e) {
|
|
352
325
|
this.processors[e.name] = e;
|
|
@@ -357,11 +330,11 @@ var Cn = {
|
|
|
357
330
|
}), t;
|
|
358
331
|
}
|
|
359
332
|
};
|
|
360
|
-
const
|
|
333
|
+
const vn = {};
|
|
361
334
|
class at extends ct {
|
|
362
335
|
constructor(t) {
|
|
363
336
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
364
|
-
super(),
|
|
337
|
+
super(), Cs(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], t, this), this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = Z.create("translator");
|
|
365
338
|
}
|
|
366
339
|
changeLanguage(t) {
|
|
367
340
|
t && (this.language = t);
|
|
@@ -380,7 +353,7 @@ class at extends ct {
|
|
|
380
353
|
s === void 0 && (s = ":");
|
|
381
354
|
const i = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator;
|
|
382
355
|
let r = n.ns || this.options.defaultNS || [];
|
|
383
|
-
const a = s && t.indexOf(s) > -1, o = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !
|
|
356
|
+
const a = s && t.indexOf(s) > -1, o = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !js(t, s, i);
|
|
384
357
|
if (a && !o) {
|
|
385
358
|
const u = t.match(this.interpolator.nestingRegexp);
|
|
386
359
|
if (u && u.length > 0)
|
|
@@ -429,39 +402,39 @@ class at extends ct {
|
|
|
429
402
|
}
|
|
430
403
|
const f = this.resolve(t, n);
|
|
431
404
|
let d = f && f.res;
|
|
432
|
-
const
|
|
433
|
-
if (
|
|
405
|
+
const y = f && f.usedKey || a, x = f && f.exactUsedKey || a, N = Object.prototype.toString.apply(d), D = ["[object Number]", "[object Function]", "[object RegExp]"], I = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, T = !this.i18nFormat || this.i18nFormat.handleAsObject;
|
|
406
|
+
if (T && d && (typeof d != "string" && typeof d != "boolean" && typeof d != "number") && D.indexOf(N) < 0 && !(typeof I == "string" && Array.isArray(d))) {
|
|
434
407
|
if (!n.returnObjects && !this.options.returnObjects) {
|
|
435
408
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
436
|
-
const C = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(
|
|
409
|
+
const C = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(y, d, {
|
|
437
410
|
...n,
|
|
438
411
|
ns: o
|
|
439
412
|
}) : `key '${a} (${this.language})' returned an object instead of string.`;
|
|
440
413
|
return i ? (f.res = C, f.usedParams = this.getUsedParamsDetails(n), f) : C;
|
|
441
414
|
}
|
|
442
415
|
if (r) {
|
|
443
|
-
const C = Array.isArray(d),
|
|
444
|
-
for (const
|
|
445
|
-
if (Object.prototype.hasOwnProperty.call(d,
|
|
446
|
-
const qe = `${G}${r}${
|
|
447
|
-
|
|
416
|
+
const C = Array.isArray(d), j = C ? [] : {}, G = C ? x : y;
|
|
417
|
+
for (const E in d)
|
|
418
|
+
if (Object.prototype.hasOwnProperty.call(d, E)) {
|
|
419
|
+
const qe = `${G}${r}${E}`;
|
|
420
|
+
j[E] = this.translate(qe, {
|
|
448
421
|
...n,
|
|
449
422
|
joinArrays: !1,
|
|
450
423
|
ns: o
|
|
451
|
-
}),
|
|
424
|
+
}), j[E] === qe && (j[E] = d[E]);
|
|
452
425
|
}
|
|
453
|
-
d =
|
|
426
|
+
d = j;
|
|
454
427
|
}
|
|
455
|
-
} else if (
|
|
456
|
-
d = d.join(
|
|
428
|
+
} else if (T && typeof I == "string" && Array.isArray(d))
|
|
429
|
+
d = d.join(I), d && (d = this.extendTranslation(d, t, n, s));
|
|
457
430
|
else {
|
|
458
|
-
let C = !1,
|
|
459
|
-
const G = n.count !== void 0 && typeof n.count != "string",
|
|
431
|
+
let C = !1, j = !1;
|
|
432
|
+
const G = n.count !== void 0 && typeof n.count != "string", E = at.hasDefaultValue(n), qe = G ? this.pluralResolver.getSuffix(l, n.count, n) : "", Ms = n.ordinal && G ? this.pluralResolver.getSuffix(l, n.count, {
|
|
460
433
|
ordinal: !1
|
|
461
|
-
}) : "",
|
|
462
|
-
!this.isValidLookup(d) &&
|
|
463
|
-
const
|
|
464
|
-
if (
|
|
434
|
+
}) : "", hn = G && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), Ce = hn && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${qe}`] || n[`defaultValue${Ms}`] || n.defaultValue;
|
|
435
|
+
!this.isValidLookup(d) && E && (C = !0, d = Ce), this.isValidLookup(d) || (j = !0, d = a);
|
|
436
|
+
const Ds = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && j ? void 0 : d, Le = E && Ce !== d && this.options.updateMissing;
|
|
437
|
+
if (j || C || Le) {
|
|
465
438
|
if (this.logger.log(Le ? "updateKey" : "missingKey", l, u, a, Le ? Ce : d), r) {
|
|
466
439
|
const U = this.resolve(a, {
|
|
467
440
|
...n,
|
|
@@ -476,18 +449,18 @@ class at extends ct {
|
|
|
476
449
|
Re.push(Je[U]);
|
|
477
450
|
else
|
|
478
451
|
this.options.saveMissingTo === "all" ? Re = this.languageUtils.toResolveHierarchy(n.lng || this.language) : Re.push(n.lng || this.language);
|
|
479
|
-
const
|
|
480
|
-
const
|
|
481
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(U, u, fe,
|
|
452
|
+
const cn = (U, fe, Pe) => {
|
|
453
|
+
const fn = E && Pe !== d ? Pe : Ds;
|
|
454
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(U, u, fe, fn, Le, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(U, u, fe, fn, Le, n), this.emit("missingKey", U, u, fe, d);
|
|
482
455
|
};
|
|
483
456
|
this.options.saveMissing && (this.options.saveMissingPlurals && G ? Re.forEach((U) => {
|
|
484
457
|
const fe = this.pluralResolver.getSuffixes(U, n);
|
|
485
|
-
|
|
486
|
-
|
|
458
|
+
hn && n[`defaultValue${this.options.pluralSeparator}zero`] && fe.indexOf(`${this.options.pluralSeparator}zero`) < 0 && fe.push(`${this.options.pluralSeparator}zero`), fe.forEach((Pe) => {
|
|
459
|
+
cn([U], a + Pe, n[`defaultValue${Pe}`] || Ce);
|
|
487
460
|
});
|
|
488
|
-
}) :
|
|
461
|
+
}) : cn(Re, a, Ce));
|
|
489
462
|
}
|
|
490
|
-
d = this.extendTranslation(d, t, n, f, s),
|
|
463
|
+
d = this.extendTranslation(d, t, n, f, s), j && d === a && this.options.appendNamespaceToMissingKey && (d = `${u}:${a}`), (j || C) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? d = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${u}:${a}` : a, C ? d : void 0) : d = this.options.parseMissingKeyHandler(d));
|
|
491
464
|
}
|
|
492
465
|
return i ? (f.res = d, f.usedParams = this.getUsedParamsDetails(n), f) : d;
|
|
493
466
|
}
|
|
@@ -519,17 +492,17 @@ class at extends ct {
|
|
|
519
492
|
...this.options.interpolation.defaultVariables,
|
|
520
493
|
...f
|
|
521
494
|
}), t = this.interpolator.interpolate(t, f, s.lng || this.language || i.usedLng, s), l) {
|
|
522
|
-
const d = t.match(this.interpolator.nestingRegexp),
|
|
523
|
-
h <
|
|
495
|
+
const d = t.match(this.interpolator.nestingRegexp), y = d && d.length;
|
|
496
|
+
h < y && (s.nest = !1);
|
|
524
497
|
}
|
|
525
498
|
!s.lng && this.options.compatibilityAPI !== "v1" && i && i.res && (s.lng = this.language || i.usedLng), s.nest !== !1 && (t = this.interpolator.nest(t, function() {
|
|
526
|
-
for (var d = arguments.length,
|
|
527
|
-
x
|
|
528
|
-
return r && r[0] ===
|
|
499
|
+
for (var d = arguments.length, y = new Array(d), x = 0; x < d; x++)
|
|
500
|
+
y[x] = arguments[x];
|
|
501
|
+
return r && r[0] === y[0] && !s.context ? (a.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${n[0]}`), null) : a.translate(...y, n);
|
|
529
502
|
}, s)), s.interpolation && this.interpolator.reset();
|
|
530
503
|
}
|
|
531
504
|
const o = s.postProcess || this.options.postProcess, u = typeof o == "string" ? [o] : o;
|
|
532
|
-
return t != null && u && u.length && s.applyPostProcessor !== !1 && (t =
|
|
505
|
+
return t != null && u && u.length && s.applyPostProcessor !== !1 && (t = Pn.handle(u, t, n, this.options && this.options.postProcessPassResolved ? {
|
|
533
506
|
i18nResolved: {
|
|
534
507
|
...i,
|
|
535
508
|
usedParams: this.getUsedParamsDetails(s)
|
|
@@ -546,27 +519,27 @@ class at extends ct {
|
|
|
546
519
|
i = h;
|
|
547
520
|
let f = l.namespaces;
|
|
548
521
|
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
|
549
|
-
const d = n.count !== void 0 && typeof n.count != "string",
|
|
522
|
+
const d = n.count !== void 0 && typeof n.count != "string", y = d && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), x = n.context !== void 0 && (typeof n.context == "string" || typeof n.context == "number") && n.context !== "", N = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng);
|
|
550
523
|
f.forEach((D) => {
|
|
551
|
-
this.isValidLookup(s) || (o = D, !
|
|
524
|
+
this.isValidLookup(s) || (o = D, !vn[`${N[0]}-${D}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (vn[`${N[0]}-${D}`] = !0, this.logger.warn(`key "${i}" for languages "${N.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), N.forEach((I) => {
|
|
552
525
|
if (this.isValidLookup(s))
|
|
553
526
|
return;
|
|
554
|
-
a =
|
|
555
|
-
const
|
|
527
|
+
a = I;
|
|
528
|
+
const T = [h];
|
|
556
529
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
557
|
-
this.i18nFormat.addLookupKeys(
|
|
530
|
+
this.i18nFormat.addLookupKeys(T, h, I, D, n);
|
|
558
531
|
else {
|
|
559
532
|
let C;
|
|
560
|
-
d && (C = this.pluralResolver.getSuffix(
|
|
561
|
-
const
|
|
562
|
-
if (d && (
|
|
563
|
-
const
|
|
564
|
-
|
|
533
|
+
d && (C = this.pluralResolver.getSuffix(I, n.count, n));
|
|
534
|
+
const j = `${this.options.pluralSeparator}zero`, G = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
535
|
+
if (d && (T.push(h + C), n.ordinal && C.indexOf(G) === 0 && T.push(h + C.replace(G, this.options.pluralSeparator)), y && T.push(h + j)), x) {
|
|
536
|
+
const E = `${h}${this.options.contextSeparator}${n.context}`;
|
|
537
|
+
T.push(E), d && (T.push(E + C), n.ordinal && C.indexOf(G) === 0 && T.push(E + C.replace(G, this.options.pluralSeparator)), y && T.push(E + j));
|
|
565
538
|
}
|
|
566
539
|
}
|
|
567
540
|
let Be;
|
|
568
|
-
for (; Be =
|
|
569
|
-
this.isValidLookup(s) || (r = Be, s = this.getResource(
|
|
541
|
+
for (; Be = T.pop(); )
|
|
542
|
+
this.isValidLookup(s) || (r = Be, s = this.getResource(I, D, Be, n));
|
|
570
543
|
}));
|
|
571
544
|
});
|
|
572
545
|
}), {
|
|
@@ -608,10 +581,8 @@ class at extends ct {
|
|
|
608
581
|
return !1;
|
|
609
582
|
}
|
|
610
583
|
}
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
}
|
|
614
|
-
class yn {
|
|
584
|
+
const kt = (e) => e.charAt(0).toUpperCase() + e.slice(1);
|
|
585
|
+
class wn {
|
|
615
586
|
constructor(t) {
|
|
616
587
|
this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Z.create("languageUtils");
|
|
617
588
|
}
|
|
@@ -629,6 +600,13 @@ class yn {
|
|
|
629
600
|
}
|
|
630
601
|
formatLanguageCode(t) {
|
|
631
602
|
if (typeof t == "string" && t.indexOf("-") > -1) {
|
|
603
|
+
if (typeof Intl < "u" && typeof Intl.getCanonicalLocales < "u")
|
|
604
|
+
try {
|
|
605
|
+
let i = Intl.getCanonicalLocales(t)[0];
|
|
606
|
+
if (i && this.options.lowerCaseLng && (i = i.toLowerCase()), i)
|
|
607
|
+
return i;
|
|
608
|
+
} catch {
|
|
609
|
+
}
|
|
632
610
|
const n = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
|
|
633
611
|
let s = t.split("-");
|
|
634
612
|
return this.options.lowerCaseLng ? s = s.map((i) => i.toLowerCase()) : s.length === 2 ? (s[0] = s[0].toLowerCase(), s[1] = s[1].toUpperCase(), n.indexOf(s[1].toLowerCase()) > -1 && (s[1] = kt(s[1].toLowerCase()))) : s.length === 3 && (s[0] = s[0].toLowerCase(), s[1].length === 2 && (s[1] = s[1].toUpperCase()), s[0] !== "sgn" && s[2].length === 2 && (s[2] = s[2].toUpperCase()), n.indexOf(s[1].toLowerCase()) > -1 && (s[1] = kt(s[1].toLowerCase())), n.indexOf(s[2].toLowerCase()) > -1 && (s[2] = kt(s[2].toLowerCase()))), s.join("-");
|
|
@@ -680,7 +658,7 @@ class yn {
|
|
|
680
658
|
}), i;
|
|
681
659
|
}
|
|
682
660
|
}
|
|
683
|
-
let
|
|
661
|
+
let Us = [{
|
|
684
662
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
685
663
|
nr: [1, 2],
|
|
686
664
|
fc: 1
|
|
@@ -772,108 +750,73 @@ let As = [{
|
|
|
772
750
|
lngs: ["he", "iw"],
|
|
773
751
|
nr: [1, 2, 20, 21],
|
|
774
752
|
fc: 22
|
|
775
|
-
}],
|
|
776
|
-
1:
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
return e == 1 ? 0 : e == 2 ? 1 : e != 8 && e != 11 ? 2 : 3;
|
|
799
|
-
},
|
|
800
|
-
9: function(e) {
|
|
801
|
-
return +(e >= 2);
|
|
802
|
-
},
|
|
803
|
-
10: function(e) {
|
|
804
|
-
return e == 1 ? 0 : e == 2 ? 1 : e < 7 ? 2 : e < 11 ? 3 : 4;
|
|
805
|
-
},
|
|
806
|
-
11: function(e) {
|
|
807
|
-
return e == 1 || e == 11 ? 0 : e == 2 || e == 12 ? 1 : e > 2 && e < 20 ? 2 : 3;
|
|
808
|
-
},
|
|
809
|
-
12: function(e) {
|
|
810
|
-
return +(e % 10 != 1 || e % 100 == 11);
|
|
811
|
-
},
|
|
812
|
-
13: function(e) {
|
|
813
|
-
return +(e !== 0);
|
|
814
|
-
},
|
|
815
|
-
14: function(e) {
|
|
816
|
-
return e == 1 ? 0 : e == 2 ? 1 : e == 3 ? 2 : 3;
|
|
817
|
-
},
|
|
818
|
-
15: function(e) {
|
|
819
|
-
return e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2;
|
|
820
|
-
},
|
|
821
|
-
16: function(e) {
|
|
822
|
-
return e % 10 == 1 && e % 100 != 11 ? 0 : e !== 0 ? 1 : 2;
|
|
823
|
-
},
|
|
824
|
-
17: function(e) {
|
|
825
|
-
return e == 1 || e % 10 == 1 && e % 100 != 11 ? 0 : 1;
|
|
826
|
-
},
|
|
827
|
-
18: function(e) {
|
|
828
|
-
return e == 0 ? 0 : e == 1 ? 1 : 2;
|
|
829
|
-
},
|
|
830
|
-
19: function(e) {
|
|
831
|
-
return e == 1 ? 0 : e == 0 || e % 100 > 1 && e % 100 < 11 ? 1 : e % 100 > 10 && e % 100 < 20 ? 2 : 3;
|
|
832
|
-
},
|
|
833
|
-
20: function(e) {
|
|
834
|
-
return e == 1 ? 0 : e == 0 || e % 100 > 0 && e % 100 < 20 ? 1 : 2;
|
|
835
|
-
},
|
|
836
|
-
21: function(e) {
|
|
837
|
-
return e % 100 == 1 ? 1 : e % 100 == 2 ? 2 : e % 100 == 3 || e % 100 == 4 ? 3 : 0;
|
|
838
|
-
},
|
|
839
|
-
22: function(e) {
|
|
840
|
-
return e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3;
|
|
841
|
-
}
|
|
753
|
+
}], Hs = {
|
|
754
|
+
1: (e) => +(e > 1),
|
|
755
|
+
2: (e) => +(e != 1),
|
|
756
|
+
3: (e) => 0,
|
|
757
|
+
4: (e) => e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2,
|
|
758
|
+
5: (e) => e == 0 ? 0 : e == 1 ? 1 : e == 2 ? 2 : e % 100 >= 3 && e % 100 <= 10 ? 3 : e % 100 >= 11 ? 4 : 5,
|
|
759
|
+
6: (e) => e == 1 ? 0 : e >= 2 && e <= 4 ? 1 : 2,
|
|
760
|
+
7: (e) => e == 1 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2,
|
|
761
|
+
8: (e) => e == 1 ? 0 : e == 2 ? 1 : e != 8 && e != 11 ? 2 : 3,
|
|
762
|
+
9: (e) => +(e >= 2),
|
|
763
|
+
10: (e) => e == 1 ? 0 : e == 2 ? 1 : e < 7 ? 2 : e < 11 ? 3 : 4,
|
|
764
|
+
11: (e) => e == 1 || e == 11 ? 0 : e == 2 || e == 12 ? 1 : e > 2 && e < 20 ? 2 : 3,
|
|
765
|
+
12: (e) => +(e % 10 != 1 || e % 100 == 11),
|
|
766
|
+
13: (e) => +(e !== 0),
|
|
767
|
+
14: (e) => e == 1 ? 0 : e == 2 ? 1 : e == 3 ? 2 : 3,
|
|
768
|
+
15: (e) => e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2,
|
|
769
|
+
16: (e) => e % 10 == 1 && e % 100 != 11 ? 0 : e !== 0 ? 1 : 2,
|
|
770
|
+
17: (e) => e == 1 || e % 10 == 1 && e % 100 != 11 ? 0 : 1,
|
|
771
|
+
18: (e) => e == 0 ? 0 : e == 1 ? 1 : 2,
|
|
772
|
+
19: (e) => e == 1 ? 0 : e == 0 || e % 100 > 1 && e % 100 < 11 ? 1 : e % 100 > 10 && e % 100 < 20 ? 2 : 3,
|
|
773
|
+
20: (e) => e == 1 ? 0 : e == 0 || e % 100 > 0 && e % 100 < 20 ? 1 : 2,
|
|
774
|
+
21: (e) => e % 100 == 1 ? 1 : e % 100 == 2 ? 2 : e % 100 == 3 || e % 100 == 4 ? 3 : 0,
|
|
775
|
+
22: (e) => e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3
|
|
842
776
|
};
|
|
843
|
-
const
|
|
777
|
+
const $s = ["v1", "v2", "v3"], Vs = ["v4"], Sn = {
|
|
844
778
|
zero: 0,
|
|
845
779
|
one: 1,
|
|
846
780
|
two: 2,
|
|
847
781
|
few: 3,
|
|
848
782
|
many: 4,
|
|
849
783
|
other: 5
|
|
850
|
-
}
|
|
851
|
-
function Hs() {
|
|
784
|
+
}, Ws = () => {
|
|
852
785
|
const e = {};
|
|
853
|
-
return
|
|
786
|
+
return Us.forEach((t) => {
|
|
854
787
|
t.lngs.forEach((n) => {
|
|
855
788
|
e[n] = {
|
|
856
789
|
numbers: t.nr,
|
|
857
|
-
plurals:
|
|
790
|
+
plurals: Hs[t.fc]
|
|
858
791
|
};
|
|
859
792
|
});
|
|
860
793
|
}), e;
|
|
861
|
-
}
|
|
862
|
-
class
|
|
794
|
+
};
|
|
795
|
+
class Gs {
|
|
863
796
|
constructor(t) {
|
|
864
797
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
865
|
-
this.languageUtils = t, this.options = n, this.logger = Z.create("pluralResolver"), (!this.options.compatibilityJSON ||
|
|
798
|
+
this.languageUtils = t, this.options = n, this.logger = Z.create("pluralResolver"), (!this.options.compatibilityJSON || Vs.includes(this.options.compatibilityJSON)) && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = Ws(), this.pluralRulesCache = {};
|
|
866
799
|
}
|
|
867
800
|
addRule(t, n) {
|
|
868
801
|
this.rules[t] = n;
|
|
869
802
|
}
|
|
803
|
+
clearCache() {
|
|
804
|
+
this.pluralRulesCache = {};
|
|
805
|
+
}
|
|
870
806
|
getRule(t) {
|
|
871
807
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
872
808
|
if (this.shouldUseIntlApi())
|
|
873
809
|
try {
|
|
874
|
-
|
|
875
|
-
|
|
810
|
+
const s = rt(t === "dev" ? "en" : t), i = n.ordinal ? "ordinal" : "cardinal", r = JSON.stringify({
|
|
811
|
+
cleanedCode: s,
|
|
812
|
+
type: i
|
|
813
|
+
});
|
|
814
|
+
if (r in this.pluralRulesCache)
|
|
815
|
+
return this.pluralRulesCache[r];
|
|
816
|
+
const a = new Intl.PluralRules(s, {
|
|
817
|
+
type: i
|
|
876
818
|
});
|
|
819
|
+
return this.pluralRulesCache[r] = a, a;
|
|
877
820
|
} catch {
|
|
878
821
|
return;
|
|
879
822
|
}
|
|
@@ -891,7 +834,7 @@ class $s {
|
|
|
891
834
|
getSuffixes(t) {
|
|
892
835
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
893
836
|
const s = this.getRule(t, n);
|
|
894
|
-
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((i, r) =>
|
|
837
|
+
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((i, r) => Sn[i] - Sn[r]).map((i) => `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${i}`) : s.numbers.map((i) => this.getSuffix(t, i, n)) : [];
|
|
895
838
|
}
|
|
896
839
|
getSuffix(t, n) {
|
|
897
840
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -906,14 +849,14 @@ class $s {
|
|
|
906
849
|
return this.options.compatibilityJSON === "v1" ? i === 1 ? "" : typeof i == "number" ? `_plural_${i.toString()}` : r() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && t.numbers.length === 2 && t.numbers[0] === 1 ? r() : this.options.prepend && s.toString() ? this.options.prepend + s.toString() : s.toString();
|
|
907
850
|
}
|
|
908
851
|
shouldUseIntlApi() {
|
|
909
|
-
return
|
|
852
|
+
return !$s.includes(this.options.compatibilityJSON);
|
|
910
853
|
}
|
|
911
854
|
}
|
|
912
|
-
function
|
|
913
|
-
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, r =
|
|
914
|
-
return !r && i && typeof n == "string" && (r =
|
|
915
|
-
}
|
|
916
|
-
class
|
|
855
|
+
const bn = function(e, t, n) {
|
|
856
|
+
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, r = Ps(e, t, n);
|
|
857
|
+
return !r && i && typeof n == "string" && (r = Tt(e, n, s), r === void 0 && (r = Tt(t, n, s))), r;
|
|
858
|
+
}, Ot = (e) => e.replace(/\$/g, "$$$$");
|
|
859
|
+
class zs {
|
|
917
860
|
constructor() {
|
|
918
861
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
919
862
|
this.logger = Z.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || ((n) => n), this.init(t);
|
|
@@ -935,14 +878,14 @@ class Vs {
|
|
|
935
878
|
unescapeSuffix: h,
|
|
936
879
|
unescapePrefix: f,
|
|
937
880
|
nestingPrefix: d,
|
|
938
|
-
nestingPrefixEscaped:
|
|
939
|
-
nestingSuffix:
|
|
881
|
+
nestingPrefixEscaped: y,
|
|
882
|
+
nestingSuffix: x,
|
|
940
883
|
nestingSuffixEscaped: N,
|
|
941
884
|
nestingOptionsSeparator: D,
|
|
942
|
-
maxReplaces:
|
|
943
|
-
alwaysFormat:
|
|
885
|
+
maxReplaces: I,
|
|
886
|
+
alwaysFormat: T
|
|
944
887
|
} = t.interpolation;
|
|
945
|
-
this.escape = n !== void 0 ? n :
|
|
888
|
+
this.escape = n !== void 0 ? n : Es, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = r ? ve(r) : a || "{{", this.suffix = o ? ve(o) : u || "}}", this.formatSeparator = l || ",", this.unescapePrefix = h ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : h || "", this.nestingPrefix = d ? ve(d) : y || ve("$t("), this.nestingSuffix = x ? ve(x) : N || ve(")"), this.nestingOptionsSeparator = D || ",", this.maxReplaces = I || 1e3, this.alwaysFormat = T !== void 0 ? T : !1, this.resetRegExp();
|
|
946
889
|
}
|
|
947
890
|
reset() {
|
|
948
891
|
this.options && this.init(this.options);
|
|
@@ -953,67 +896,63 @@ class Vs {
|
|
|
953
896
|
}
|
|
954
897
|
interpolate(t, n, s, i) {
|
|
955
898
|
let r, a, o;
|
|
956
|
-
const u = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}
|
|
957
|
-
function l(y) {
|
|
958
|
-
return y.replace(/\$/g, "$$$$");
|
|
959
|
-
}
|
|
960
|
-
const h = (y) => {
|
|
899
|
+
const u = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (y) => {
|
|
961
900
|
if (y.indexOf(this.formatSeparator) < 0) {
|
|
962
|
-
const
|
|
963
|
-
return this.alwaysFormat ? this.format(
|
|
901
|
+
const I = bn(n, u, y, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
902
|
+
return this.alwaysFormat ? this.format(I, void 0, s, {
|
|
964
903
|
...i,
|
|
965
904
|
...n,
|
|
966
905
|
interpolationkey: y
|
|
967
|
-
}) :
|
|
906
|
+
}) : I;
|
|
968
907
|
}
|
|
969
|
-
const
|
|
970
|
-
return this.format(
|
|
908
|
+
const x = y.split(this.formatSeparator), N = x.shift().trim(), D = x.join(this.formatSeparator).trim();
|
|
909
|
+
return this.format(bn(n, u, N, this.options.keySeparator, this.options.ignoreJSONStructure), D, s, {
|
|
971
910
|
...i,
|
|
972
911
|
...n,
|
|
973
|
-
interpolationkey:
|
|
912
|
+
interpolationkey: N
|
|
974
913
|
});
|
|
975
914
|
};
|
|
976
915
|
this.resetRegExp();
|
|
977
|
-
const
|
|
916
|
+
const h = i && i.missingInterpolationHandler || this.options.missingInterpolationHandler, f = i && i.interpolation && i.interpolation.skipOnVariables !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
978
917
|
return [{
|
|
979
918
|
regex: this.regexpUnescape,
|
|
980
|
-
safeValue: (y) =>
|
|
919
|
+
safeValue: (y) => Ot(y)
|
|
981
920
|
}, {
|
|
982
921
|
regex: this.regexp,
|
|
983
|
-
safeValue: (y) => this.escapeValue ?
|
|
922
|
+
safeValue: (y) => this.escapeValue ? Ot(this.escape(y)) : Ot(y)
|
|
984
923
|
}].forEach((y) => {
|
|
985
924
|
for (o = 0; r = y.regex.exec(t); ) {
|
|
986
|
-
const
|
|
987
|
-
if (a =
|
|
988
|
-
if (typeof
|
|
989
|
-
const
|
|
990
|
-
a = typeof
|
|
991
|
-
} else if (i && Object.prototype.hasOwnProperty.call(i,
|
|
925
|
+
const x = r[1].trim();
|
|
926
|
+
if (a = l(x), a === void 0)
|
|
927
|
+
if (typeof h == "function") {
|
|
928
|
+
const D = h(t, r, i);
|
|
929
|
+
a = typeof D == "string" ? D : "";
|
|
930
|
+
} else if (i && Object.prototype.hasOwnProperty.call(i, x))
|
|
992
931
|
a = "";
|
|
993
|
-
else if (
|
|
932
|
+
else if (f) {
|
|
994
933
|
a = r[0];
|
|
995
934
|
continue;
|
|
996
935
|
} else
|
|
997
|
-
this.logger.warn(`missed to pass in variable ${
|
|
936
|
+
this.logger.warn(`missed to pass in variable ${x} for interpolating ${t}`), a = "";
|
|
998
937
|
else
|
|
999
|
-
typeof a != "string" && !this.useRawValueToEscape && (a =
|
|
1000
|
-
const
|
|
1001
|
-
if (t = t.replace(r[0],
|
|
938
|
+
typeof a != "string" && !this.useRawValueToEscape && (a = gn(a));
|
|
939
|
+
const N = y.safeValue(a);
|
|
940
|
+
if (t = t.replace(r[0], N), f ? (y.regex.lastIndex += a.length, y.regex.lastIndex -= r[0].length) : y.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
1002
941
|
break;
|
|
1003
942
|
}
|
|
1004
943
|
}), t;
|
|
1005
944
|
}
|
|
1006
945
|
nest(t, n) {
|
|
1007
946
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i, r, a;
|
|
1008
|
-
|
|
947
|
+
const o = (u, l) => {
|
|
1009
948
|
const h = this.nestingOptionsSeparator;
|
|
1010
949
|
if (u.indexOf(h) < 0)
|
|
1011
950
|
return u;
|
|
1012
951
|
const f = u.split(new RegExp(`${h}[ ]*{`));
|
|
1013
952
|
let d = `{${f[1]}`;
|
|
1014
953
|
u = f[0], d = this.interpolate(d, a);
|
|
1015
|
-
const
|
|
1016
|
-
(
|
|
954
|
+
const y = d.match(/'/g), x = d.match(/"/g);
|
|
955
|
+
(y && y.length % 2 === 0 && !x || x.length % 2 !== 0) && (d = d.replace(/'/g, '"'));
|
|
1017
956
|
try {
|
|
1018
957
|
a = JSON.parse(d), l && (a = {
|
|
1019
958
|
...l,
|
|
@@ -1023,7 +962,7 @@ class Vs {
|
|
|
1023
962
|
return this.logger.warn(`failed parsing options string in nesting for key ${u}`, N), `${u}${h}${d}`;
|
|
1024
963
|
}
|
|
1025
964
|
return a.defaultValue && a.defaultValue.indexOf(this.prefix) > -1 && delete a.defaultValue, u;
|
|
1026
|
-
}
|
|
965
|
+
};
|
|
1027
966
|
for (; i = this.nestingRegexp.exec(t); ) {
|
|
1028
967
|
let u = [];
|
|
1029
968
|
a = {
|
|
@@ -1036,7 +975,7 @@ class Vs {
|
|
|
1036
975
|
}
|
|
1037
976
|
if (r = n(o.call(this, i[1].trim(), a), a), r && i[0] === t && typeof r != "string")
|
|
1038
977
|
return r;
|
|
1039
|
-
typeof r != "string" && (r =
|
|
978
|
+
typeof r != "string" && (r = gn(r)), r || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`), r = ""), l && (r = u.reduce((h, f) => this.format(h, f, s.lng, {
|
|
1040
979
|
...s,
|
|
1041
980
|
interpolationkey: i[1].trim()
|
|
1042
981
|
}), r.trim())), t = t.replace(i[0], r), this.regexp.lastIndex = 0;
|
|
@@ -1044,7 +983,7 @@ class Vs {
|
|
|
1044
983
|
return t;
|
|
1045
984
|
}
|
|
1046
985
|
}
|
|
1047
|
-
|
|
986
|
+
const Ks = (e) => {
|
|
1048
987
|
let t = e.toLowerCase().trim();
|
|
1049
988
|
const n = {};
|
|
1050
989
|
if (e.indexOf("(") > -1) {
|
|
@@ -1062,16 +1001,20 @@ function Ws(e) {
|
|
|
1062
1001
|
formatName: t,
|
|
1063
1002
|
formatOptions: n
|
|
1064
1003
|
};
|
|
1065
|
-
}
|
|
1066
|
-
function we(e) {
|
|
1004
|
+
}, we = (e) => {
|
|
1067
1005
|
const t = {};
|
|
1068
|
-
return
|
|
1069
|
-
|
|
1006
|
+
return (n, s, i) => {
|
|
1007
|
+
let r = i;
|
|
1008
|
+
i && i.interpolationkey && i.formatParams && i.formatParams[i.interpolationkey] && i[i.interpolationkey] && (r = {
|
|
1009
|
+
...r,
|
|
1010
|
+
[i.interpolationkey]: void 0
|
|
1011
|
+
});
|
|
1012
|
+
const a = s + JSON.stringify(r);
|
|
1070
1013
|
let o = t[a];
|
|
1071
|
-
return o || (o = e(rt(
|
|
1014
|
+
return o || (o = e(rt(s), i), t[a] = o), o(n);
|
|
1072
1015
|
};
|
|
1073
|
-
}
|
|
1074
|
-
class
|
|
1016
|
+
};
|
|
1017
|
+
class Bs {
|
|
1075
1018
|
constructor() {
|
|
1076
1019
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1077
1020
|
this.logger = Z.create("formatter"), this.options = t, this.formats = {
|
|
@@ -1122,16 +1065,21 @@ class Gs {
|
|
|
1122
1065
|
}
|
|
1123
1066
|
format(t, n, s) {
|
|
1124
1067
|
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
1125
|
-
|
|
1068
|
+
const r = n.split(this.formatSeparator);
|
|
1069
|
+
if (r.length > 1 && r[0].indexOf("(") > 1 && r[0].indexOf(")") < 0 && r.find((o) => o.indexOf(")") > -1)) {
|
|
1070
|
+
const o = r.findIndex((u) => u.indexOf(")") > -1);
|
|
1071
|
+
r[0] = [r[0], ...r.splice(1, o)].join(this.formatSeparator);
|
|
1072
|
+
}
|
|
1073
|
+
return r.reduce((o, u) => {
|
|
1126
1074
|
const {
|
|
1127
1075
|
formatName: l,
|
|
1128
1076
|
formatOptions: h
|
|
1129
|
-
} =
|
|
1077
|
+
} = Ks(u);
|
|
1130
1078
|
if (this.formats[l]) {
|
|
1131
1079
|
let f = o;
|
|
1132
1080
|
try {
|
|
1133
|
-
const d = i && i.formatParams && i.formatParams[i.interpolationkey] || {},
|
|
1134
|
-
f = this.formats[l](o,
|
|
1081
|
+
const d = i && i.formatParams && i.formatParams[i.interpolationkey] || {}, y = d.locale || d.lng || i.locale || i.lng || s;
|
|
1082
|
+
f = this.formats[l](o, y, {
|
|
1135
1083
|
...h,
|
|
1136
1084
|
...i,
|
|
1137
1085
|
...d
|
|
@@ -1146,10 +1094,10 @@ class Gs {
|
|
|
1146
1094
|
}, t);
|
|
1147
1095
|
}
|
|
1148
1096
|
}
|
|
1149
|
-
|
|
1097
|
+
const qs = (e, t) => {
|
|
1150
1098
|
e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
|
|
1151
|
-
}
|
|
1152
|
-
class
|
|
1099
|
+
};
|
|
1100
|
+
class Js extends ct {
|
|
1153
1101
|
constructor(t, n, s) {
|
|
1154
1102
|
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
1155
1103
|
super(), this.backend = t, this.store = n, this.services = s, this.languageUtils = s.languageUtils, this.options = i, this.logger = Z.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = i.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = i.maxRetries >= 0 ? i.maxRetries : 5, this.retryTimeout = i.retryTimeout >= 1 ? i.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(s, i.backend, i);
|
|
@@ -1177,12 +1125,12 @@ class Ks extends ct {
|
|
|
1177
1125
|
}
|
|
1178
1126
|
loaded(t, n, s) {
|
|
1179
1127
|
const i = t.split("|"), r = i[0], a = i[1];
|
|
1180
|
-
n && this.emit("failedLoading", r, a, n), s && this.store.addResourceBundle(r, a, s, void 0, void 0, {
|
|
1128
|
+
n && this.emit("failedLoading", r, a, n), !n && s && this.store.addResourceBundle(r, a, s, void 0, void 0, {
|
|
1181
1129
|
skipCopy: !0
|
|
1182
|
-
}), this.state[t] = n ? -1 : 2;
|
|
1130
|
+
}), this.state[t] = n ? -1 : 2, n && s && (this.state[t] = 0);
|
|
1183
1131
|
const o = {};
|
|
1184
1132
|
this.queue.forEach((u) => {
|
|
1185
|
-
|
|
1133
|
+
Rs(u.loaded, [r], a), qs(u, t), n && u.errors.push(n), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((l) => {
|
|
1186
1134
|
o[l] || (o[l] = {});
|
|
1187
1135
|
const h = u.loaded[l];
|
|
1188
1136
|
h.length && h.forEach((f) => {
|
|
@@ -1285,81 +1233,74 @@ class Ks extends ct {
|
|
|
1285
1233
|
}
|
|
1286
1234
|
}
|
|
1287
1235
|
}
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
});
|
|
1329
|
-
}
|
|
1330
|
-
return n;
|
|
1331
|
-
},
|
|
1332
|
-
interpolation: {
|
|
1333
|
-
escapeValue: !0,
|
|
1334
|
-
format: (e) => e,
|
|
1335
|
-
prefix: "{{",
|
|
1336
|
-
suffix: "}}",
|
|
1337
|
-
formatSeparator: ",",
|
|
1338
|
-
unescapePrefix: "-",
|
|
1339
|
-
nestingPrefix: "$t(",
|
|
1340
|
-
nestingSuffix: ")",
|
|
1341
|
-
nestingOptionsSeparator: ",",
|
|
1342
|
-
maxReplaces: 1e3,
|
|
1343
|
-
skipOnVariables: !0
|
|
1236
|
+
const xn = () => ({
|
|
1237
|
+
debug: !1,
|
|
1238
|
+
initImmediate: !0,
|
|
1239
|
+
ns: ["translation"],
|
|
1240
|
+
defaultNS: ["translation"],
|
|
1241
|
+
fallbackLng: ["dev"],
|
|
1242
|
+
fallbackNS: !1,
|
|
1243
|
+
supportedLngs: !1,
|
|
1244
|
+
nonExplicitSupportedLngs: !1,
|
|
1245
|
+
load: "all",
|
|
1246
|
+
preload: !1,
|
|
1247
|
+
simplifyPluralSuffix: !0,
|
|
1248
|
+
keySeparator: ".",
|
|
1249
|
+
nsSeparator: ":",
|
|
1250
|
+
pluralSeparator: "_",
|
|
1251
|
+
contextSeparator: "_",
|
|
1252
|
+
partialBundledLanguages: !1,
|
|
1253
|
+
saveMissing: !1,
|
|
1254
|
+
updateMissing: !1,
|
|
1255
|
+
saveMissingTo: "fallback",
|
|
1256
|
+
saveMissingPlurals: !0,
|
|
1257
|
+
missingKeyHandler: !1,
|
|
1258
|
+
missingInterpolationHandler: !1,
|
|
1259
|
+
postProcess: !1,
|
|
1260
|
+
postProcessPassResolved: !1,
|
|
1261
|
+
returnNull: !1,
|
|
1262
|
+
returnEmptyString: !0,
|
|
1263
|
+
returnObjects: !1,
|
|
1264
|
+
joinArrays: !1,
|
|
1265
|
+
returnedObjectHandler: !1,
|
|
1266
|
+
parseMissingKeyHandler: !1,
|
|
1267
|
+
appendNamespaceToMissingKey: !1,
|
|
1268
|
+
appendNamespaceToCIMode: !1,
|
|
1269
|
+
overloadTranslationOptionHandler: (e) => {
|
|
1270
|
+
let t = {};
|
|
1271
|
+
if (typeof e[1] == "object" && (t = e[1]), typeof e[1] == "string" && (t.defaultValue = e[1]), typeof e[2] == "string" && (t.tDescription = e[2]), typeof e[2] == "object" || typeof e[3] == "object") {
|
|
1272
|
+
const n = e[3] || e[2];
|
|
1273
|
+
Object.keys(n).forEach((s) => {
|
|
1274
|
+
t[s] = n[s];
|
|
1275
|
+
});
|
|
1344
1276
|
}
|
|
1345
|
-
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1277
|
+
return t;
|
|
1278
|
+
},
|
|
1279
|
+
interpolation: {
|
|
1280
|
+
escapeValue: !0,
|
|
1281
|
+
format: (e) => e,
|
|
1282
|
+
prefix: "{{",
|
|
1283
|
+
suffix: "}}",
|
|
1284
|
+
formatSeparator: ",",
|
|
1285
|
+
unescapePrefix: "-",
|
|
1286
|
+
nestingPrefix: "$t(",
|
|
1287
|
+
nestingSuffix: ")",
|
|
1288
|
+
nestingOptionsSeparator: ",",
|
|
1289
|
+
maxReplaces: 1e3,
|
|
1290
|
+
skipOnVariables: !0
|
|
1291
|
+
}
|
|
1292
|
+
}), kn = (e) => (typeof e.ns == "string" && (e.ns = [e.ns]), typeof e.fallbackLng == "string" && (e.fallbackLng = [e.fallbackLng]), typeof e.fallbackNS == "string" && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs && e.supportedLngs.indexOf("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e), Ze = () => {
|
|
1293
|
+
}, Zs = (e) => {
|
|
1353
1294
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((n) => {
|
|
1354
1295
|
typeof e[n] == "function" && (e[n] = e[n].bind(e));
|
|
1355
1296
|
});
|
|
1356
|
-
}
|
|
1357
|
-
class
|
|
1297
|
+
};
|
|
1298
|
+
class je extends ct {
|
|
1358
1299
|
constructor() {
|
|
1359
1300
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
1360
|
-
if (super(), this.options =
|
|
1301
|
+
if (super(), this.options = kn(t), this.services = {}, this.logger = Z, this.modules = {
|
|
1361
1302
|
external: []
|
|
1362
|
-
},
|
|
1303
|
+
}, Zs(this), n && !this.isInitialized && !t.isClone) {
|
|
1363
1304
|
if (!this.options.initImmediate)
|
|
1364
1305
|
return this.init(t, n), this;
|
|
1365
1306
|
setTimeout(() => {
|
|
@@ -1371,41 +1312,39 @@ class Ie extends ct {
|
|
|
1371
1312
|
var t = this;
|
|
1372
1313
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 ? arguments[1] : void 0;
|
|
1373
1314
|
this.isInitializing = !0, typeof n == "function" && (s = n, n = {}), !n.defaultNS && n.defaultNS !== !1 && n.ns && (typeof n.ns == "string" ? n.defaultNS = n.ns : n.ns.indexOf("translation") < 0 && (n.defaultNS = n.ns[0]));
|
|
1374
|
-
const i =
|
|
1315
|
+
const i = xn();
|
|
1375
1316
|
this.options = {
|
|
1376
1317
|
...i,
|
|
1377
1318
|
...this.options,
|
|
1378
|
-
...
|
|
1319
|
+
...kn(n)
|
|
1379
1320
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
|
1380
1321
|
...i.interpolation,
|
|
1381
1322
|
...this.options.interpolation
|
|
1382
1323
|
}), n.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = n.keySeparator), n.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = n.nsSeparator);
|
|
1383
|
-
|
|
1384
|
-
return h ? typeof h == "function" ? new h() : h : null;
|
|
1385
|
-
}
|
|
1324
|
+
const r = (h) => h ? typeof h == "function" ? new h() : h : null;
|
|
1386
1325
|
if (!this.options.isClone) {
|
|
1387
1326
|
this.modules.logger ? Z.init(r(this.modules.logger), this.options) : Z.init(null, this.options);
|
|
1388
1327
|
let h;
|
|
1389
|
-
this.modules.formatter ? h = this.modules.formatter : typeof Intl < "u" && (h =
|
|
1390
|
-
const f = new
|
|
1391
|
-
this.store = new
|
|
1328
|
+
this.modules.formatter ? h = this.modules.formatter : typeof Intl < "u" && (h = Bs);
|
|
1329
|
+
const f = new wn(this.options);
|
|
1330
|
+
this.store = new _n(this.options.resources, this.options);
|
|
1392
1331
|
const d = this.services;
|
|
1393
|
-
d.logger = Z, d.resourceStore = this.store, d.languageUtils = f, d.pluralResolver = new
|
|
1332
|
+
d.logger = Z, d.resourceStore = this.store, d.languageUtils = f, d.pluralResolver = new Gs(f, {
|
|
1394
1333
|
prepend: this.options.pluralSeparator,
|
|
1395
1334
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
1396
1335
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
1397
|
-
}), h && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (d.formatter = r(h), d.formatter.init(d, this.options), this.options.interpolation.format = d.formatter.format.bind(d.formatter)), d.interpolator = new
|
|
1336
|
+
}), h && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (d.formatter = r(h), d.formatter.init(d, this.options), this.options.interpolation.format = d.formatter.format.bind(d.formatter)), d.interpolator = new zs(this.options), d.utils = {
|
|
1398
1337
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
1399
|
-
}, d.backendConnector = new
|
|
1400
|
-
for (var
|
|
1338
|
+
}, d.backendConnector = new Js(r(this.modules.backend), d.resourceStore, d, this.options), d.backendConnector.on("*", function(y) {
|
|
1339
|
+
for (var x = arguments.length, N = new Array(x > 1 ? x - 1 : 0), D = 1; D < x; D++)
|
|
1401
1340
|
N[D - 1] = arguments[D];
|
|
1402
|
-
t.emit(
|
|
1403
|
-
}), this.modules.languageDetector && (d.languageDetector = r(this.modules.languageDetector), d.languageDetector.init && d.languageDetector.init(d, this.options.detection, this.options)), this.modules.i18nFormat && (d.i18nFormat = r(this.modules.i18nFormat), d.i18nFormat.init && d.i18nFormat.init(this)), this.translator = new at(this.services, this.options), this.translator.on("*", function(
|
|
1404
|
-
for (var
|
|
1341
|
+
t.emit(y, ...N);
|
|
1342
|
+
}), this.modules.languageDetector && (d.languageDetector = r(this.modules.languageDetector), d.languageDetector.init && d.languageDetector.init(d, this.options.detection, this.options)), this.modules.i18nFormat && (d.i18nFormat = r(this.modules.i18nFormat), d.i18nFormat.init && d.i18nFormat.init(this)), this.translator = new at(this.services, this.options), this.translator.on("*", function(y) {
|
|
1343
|
+
for (var x = arguments.length, N = new Array(x > 1 ? x - 1 : 0), D = 1; D < x; D++)
|
|
1405
1344
|
N[D - 1] = arguments[D];
|
|
1406
|
-
t.emit(
|
|
1407
|
-
}), this.modules.external.forEach((
|
|
1408
|
-
|
|
1345
|
+
t.emit(y, ...N);
|
|
1346
|
+
}), this.modules.external.forEach((y) => {
|
|
1347
|
+
y.init && y.init(this);
|
|
1409
1348
|
});
|
|
1410
1349
|
}
|
|
1411
1350
|
if (this.format = this.options.interpolation.format, s || (s = Ze), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
@@ -1452,7 +1391,7 @@ class Ie extends ct {
|
|
|
1452
1391
|
}
|
|
1453
1392
|
reloadResources(t, n, s) {
|
|
1454
1393
|
const i = Te();
|
|
1455
|
-
return t || (t = this.languages), n || (n = this.options.ns), s || (s = Ze), this.services.backendConnector.reload(t, n, (r) => {
|
|
1394
|
+
return typeof t == "function" && (s = t, t = void 0), typeof n == "function" && (s = n, n = void 0), t || (t = this.languages), n || (n = this.options.ns), s || (s = Ze), this.services.backendConnector.reload(t, n, (r) => {
|
|
1456
1395
|
i.resolve(), s(r);
|
|
1457
1396
|
}), i;
|
|
1458
1397
|
}
|
|
@@ -1461,7 +1400,7 @@ class Ie extends ct {
|
|
|
1461
1400
|
throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
1462
1401
|
if (!t.type)
|
|
1463
1402
|
throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
1464
|
-
return t.type === "backend" && (this.modules.backend = t), (t.type === "logger" || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === "languageDetector" && (this.modules.languageDetector = t), t.type === "i18nFormat" && (this.modules.i18nFormat = t), t.type === "postProcessor" &&
|
|
1403
|
+
return t.type === "backend" && (this.modules.backend = t), (t.type === "logger" || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === "languageDetector" && (this.modules.languageDetector = t), t.type === "i18nFormat" && (this.modules.i18nFormat = t), t.type === "postProcessor" && Pn.addPostProcessor(t), t.type === "formatter" && (this.modules.formatter = t), t.type === "3rdParty" && this.modules.external.push(t), this;
|
|
1465
1404
|
}
|
|
1466
1405
|
setResolvedLanguage(t) {
|
|
1467
1406
|
if (!(!t || !this.languages) && !(["cimode", "dev"].indexOf(t) > -1))
|
|
@@ -1509,8 +1448,8 @@ class Ie extends ct {
|
|
|
1509
1448
|
};
|
|
1510
1449
|
u.lng = u.lng || r.lng, u.lngs = u.lngs || r.lngs, u.ns = u.ns || r.ns, u.keyPrefix !== "" && (u.keyPrefix = u.keyPrefix || s || r.keyPrefix);
|
|
1511
1450
|
const d = i.options.keySeparator || ".";
|
|
1512
|
-
let
|
|
1513
|
-
return u.keyPrefix && Array.isArray(a) ?
|
|
1451
|
+
let y;
|
|
1452
|
+
return u.keyPrefix && Array.isArray(a) ? y = a.map((x) => `${u.keyPrefix}${d}${x}`) : y = u.keyPrefix ? `${u.keyPrefix}${d}${a}` : a, i.t(y, u);
|
|
1514
1453
|
};
|
|
1515
1454
|
return typeof t == "string" ? r.lng = t : r.lngs = t, r.ns = n, r.keyPrefix = s, r;
|
|
1516
1455
|
}
|
|
@@ -1534,7 +1473,7 @@ class Ie extends ct {
|
|
|
1534
1473
|
return !0;
|
|
1535
1474
|
const a = (o, u) => {
|
|
1536
1475
|
const l = this.services.backendConnector.state[`${o}|${u}`];
|
|
1537
|
-
return l === -1 || l === 2;
|
|
1476
|
+
return l === -1 || l === 0 || l === 2;
|
|
1538
1477
|
};
|
|
1539
1478
|
if (n.precheck) {
|
|
1540
1479
|
const o = n.precheck(this, a);
|
|
@@ -1562,12 +1501,12 @@ class Ie extends ct {
|
|
|
1562
1501
|
dir(t) {
|
|
1563
1502
|
if (t || (t = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !t)
|
|
1564
1503
|
return "rtl";
|
|
1565
|
-
const n = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], s = this.services && this.services.languageUtils || new
|
|
1504
|
+
const n = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], s = this.services && this.services.languageUtils || new wn(xn());
|
|
1566
1505
|
return n.indexOf(s.getLanguagePartFromCode(t)) > -1 || t.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
1567
1506
|
}
|
|
1568
1507
|
static createInstance() {
|
|
1569
1508
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
1570
|
-
return new
|
|
1509
|
+
return new je(t, n);
|
|
1571
1510
|
}
|
|
1572
1511
|
cloneInstance() {
|
|
1573
1512
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ze;
|
|
@@ -1577,14 +1516,14 @@ class Ie extends ct {
|
|
|
1577
1516
|
...this.options,
|
|
1578
1517
|
...t,
|
|
1579
1518
|
isClone: !0
|
|
1580
|
-
}, r = new
|
|
1519
|
+
}, r = new je(i);
|
|
1581
1520
|
return (t.debug !== void 0 || t.prefix !== void 0) && (r.logger = r.logger.clone(t)), ["store", "services", "language"].forEach((o) => {
|
|
1582
1521
|
r[o] = this[o];
|
|
1583
1522
|
}), r.services = {
|
|
1584
1523
|
...this.services
|
|
1585
1524
|
}, r.services.utils = {
|
|
1586
1525
|
hasLoadedNamespace: r.hasLoadedNamespace.bind(r)
|
|
1587
|
-
}, s && (r.store = new
|
|
1526
|
+
}, s && (r.store = new _n(this.store.data, i), r.services.resourceStore = r.store), r.translator = new at(r.services, i), r.translator.on("*", function(o) {
|
|
1588
1527
|
for (var u = arguments.length, l = new Array(u > 1 ? u - 1 : 0), h = 1; h < u; h++)
|
|
1589
1528
|
l[h - 1] = arguments[h];
|
|
1590
1529
|
r.emit(o, ...l);
|
|
@@ -1602,23 +1541,23 @@ class Ie extends ct {
|
|
|
1602
1541
|
};
|
|
1603
1542
|
}
|
|
1604
1543
|
}
|
|
1605
|
-
const
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
const
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
const
|
|
1544
|
+
const F = je.createInstance();
|
|
1545
|
+
F.createInstance = je.createInstance;
|
|
1546
|
+
F.createInstance;
|
|
1547
|
+
F.dir;
|
|
1548
|
+
F.init;
|
|
1549
|
+
F.loadResources;
|
|
1550
|
+
F.reloadResources;
|
|
1551
|
+
F.use;
|
|
1552
|
+
F.changeLanguage;
|
|
1553
|
+
F.getFixedT;
|
|
1554
|
+
const Mt = F.t;
|
|
1555
|
+
F.exists;
|
|
1556
|
+
F.setDefaultNamespace;
|
|
1557
|
+
F.hasLoadedNamespace;
|
|
1558
|
+
F.loadNamespaces;
|
|
1559
|
+
F.loadLanguages;
|
|
1560
|
+
const Dt = {
|
|
1622
1561
|
d1: "<:d1:1159542168738873455>",
|
|
1623
1562
|
d2: "<:d2:1159542071049334814>",
|
|
1624
1563
|
d3: "<:d3:1159542073914032191>",
|
|
@@ -1740,18 +1679,18 @@ const Mt = {
|
|
|
1740
1679
|
equipment_adventurer_helmet: "<:Casque_cuir:1256965718432550953>",
|
|
1741
1680
|
equipment_adventurer_weapon: "<:Dague_cuir:1256965714141515837>",
|
|
1742
1681
|
equipment_adventurer_belt: "<:Ceinture_cuir:1256965593333108838>"
|
|
1743
|
-
},
|
|
1682
|
+
}, Yt = (e) => new Intl.NumberFormat("de-DE").format(e);
|
|
1744
1683
|
//! moment.js
|
|
1745
1684
|
//! version : 2.30.1
|
|
1746
1685
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
1747
1686
|
//! license : MIT
|
|
1748
1687
|
//! momentjs.com
|
|
1749
|
-
var
|
|
1688
|
+
var Tn;
|
|
1750
1689
|
function g() {
|
|
1751
|
-
return
|
|
1690
|
+
return Tn.apply(null, arguments);
|
|
1752
1691
|
}
|
|
1753
|
-
function
|
|
1754
|
-
|
|
1692
|
+
function Qs(e) {
|
|
1693
|
+
Tn = e;
|
|
1755
1694
|
}
|
|
1756
1695
|
function K(e) {
|
|
1757
1696
|
return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
|
|
@@ -1762,7 +1701,7 @@ function ye(e) {
|
|
|
1762
1701
|
function S(e, t) {
|
|
1763
1702
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
1764
1703
|
}
|
|
1765
|
-
function
|
|
1704
|
+
function $t(e) {
|
|
1766
1705
|
if (Object.getOwnPropertyNames)
|
|
1767
1706
|
return Object.getOwnPropertyNames(e).length === 0;
|
|
1768
1707
|
var t;
|
|
@@ -1771,7 +1710,7 @@ function Ht(e) {
|
|
|
1771
1710
|
return !1;
|
|
1772
1711
|
return !0;
|
|
1773
1712
|
}
|
|
1774
|
-
function
|
|
1713
|
+
function A(e) {
|
|
1775
1714
|
return e === void 0;
|
|
1776
1715
|
}
|
|
1777
1716
|
function oe(e) {
|
|
@@ -1780,7 +1719,7 @@ function oe(e) {
|
|
|
1780
1719
|
function We(e) {
|
|
1781
1720
|
return e instanceof Date || Object.prototype.toString.call(e) === "[object Date]";
|
|
1782
1721
|
}
|
|
1783
|
-
function
|
|
1722
|
+
function En(e, t) {
|
|
1784
1723
|
var n = [], s, i = e.length;
|
|
1785
1724
|
for (s = 0; s < i; ++s)
|
|
1786
1725
|
n.push(t(e[s], s));
|
|
@@ -1792,9 +1731,9 @@ function de(e, t) {
|
|
|
1792
1731
|
return S(t, "toString") && (e.toString = t.toString), S(t, "valueOf") && (e.valueOf = t.valueOf), e;
|
|
1793
1732
|
}
|
|
1794
1733
|
function X(e, t, n, s) {
|
|
1795
|
-
return
|
|
1734
|
+
return is(e, t, n, s, !0).utc();
|
|
1796
1735
|
}
|
|
1797
|
-
function
|
|
1736
|
+
function Xs() {
|
|
1798
1737
|
return {
|
|
1799
1738
|
empty: !1,
|
|
1800
1739
|
unusedTokens: [],
|
|
@@ -1815,19 +1754,19 @@ function Js() {
|
|
|
1815
1754
|
};
|
|
1816
1755
|
}
|
|
1817
1756
|
function _(e) {
|
|
1818
|
-
return e._pf == null && (e._pf =
|
|
1757
|
+
return e._pf == null && (e._pf = Xs()), e._pf;
|
|
1819
1758
|
}
|
|
1820
|
-
var
|
|
1821
|
-
Array.prototype.some ?
|
|
1759
|
+
var Et;
|
|
1760
|
+
Array.prototype.some ? Et = Array.prototype.some : Et = function(e) {
|
|
1822
1761
|
var t = Object(this), n = t.length >>> 0, s;
|
|
1823
1762
|
for (s = 0; s < n; s++)
|
|
1824
1763
|
if (s in t && e.call(this, t[s], s, t))
|
|
1825
1764
|
return !0;
|
|
1826
1765
|
return !1;
|
|
1827
1766
|
};
|
|
1828
|
-
function
|
|
1767
|
+
function Vt(e) {
|
|
1829
1768
|
var t = null, n = !1, s = e._d && !isNaN(e._d.getTime());
|
|
1830
|
-
if (s && (t = _(e), n =
|
|
1769
|
+
if (s && (t = _(e), n = Et.call(t.parsedDateParts, function(i) {
|
|
1831
1770
|
return i != null;
|
|
1832
1771
|
}), s = t.overflow < 0 && !t.empty && !t.invalidEra && !t.invalidMonth && !t.invalidWeekday && !t.weekdayMismatch && !t.nullInput && !t.invalidFormat && !t.userInvalidated && (!t.meridiem || t.meridiem && n), e._strict && (s = s && t.charsLeftOver === 0 && t.unusedTokens.length === 0 && t.bigHour === void 0)), Object.isFrozen == null || !Object.isFrozen(e))
|
|
1833
1772
|
e._isValid = s;
|
|
@@ -1839,21 +1778,21 @@ function ft(e) {
|
|
|
1839
1778
|
var t = X(NaN);
|
|
1840
1779
|
return e != null ? de(_(t), e) : _(t).userInvalidated = !0, t;
|
|
1841
1780
|
}
|
|
1842
|
-
var
|
|
1843
|
-
function
|
|
1844
|
-
var n, s, i, r =
|
|
1845
|
-
if (
|
|
1781
|
+
var On = g.momentProperties = [], Nt = !1;
|
|
1782
|
+
function Wt(e, t) {
|
|
1783
|
+
var n, s, i, r = On.length;
|
|
1784
|
+
if (A(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), A(t._i) || (e._i = t._i), A(t._f) || (e._f = t._f), A(t._l) || (e._l = t._l), A(t._strict) || (e._strict = t._strict), A(t._tzm) || (e._tzm = t._tzm), A(t._isUTC) || (e._isUTC = t._isUTC), A(t._offset) || (e._offset = t._offset), A(t._pf) || (e._pf = _(t)), A(t._locale) || (e._locale = t._locale), r > 0)
|
|
1846
1785
|
for (n = 0; n < r; n++)
|
|
1847
|
-
s =
|
|
1786
|
+
s = On[n], i = t[s], A(i) || (e[s] = i);
|
|
1848
1787
|
return e;
|
|
1849
1788
|
}
|
|
1850
1789
|
function Ge(e) {
|
|
1851
|
-
|
|
1790
|
+
Wt(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), Nt === !1 && (Nt = !0, g.updateOffset(this), Nt = !1);
|
|
1852
1791
|
}
|
|
1853
1792
|
function B(e) {
|
|
1854
1793
|
return e instanceof Ge || e != null && e._isAMomentObject != null;
|
|
1855
1794
|
}
|
|
1856
|
-
function
|
|
1795
|
+
function Fn(e) {
|
|
1857
1796
|
g.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
|
|
1858
1797
|
}
|
|
1859
1798
|
function V(e, t) {
|
|
@@ -1872,7 +1811,7 @@ function V(e, t) {
|
|
|
1872
1811
|
i = arguments[r];
|
|
1873
1812
|
s.push(i);
|
|
1874
1813
|
}
|
|
1875
|
-
|
|
1814
|
+
Fn(
|
|
1876
1815
|
e + `
|
|
1877
1816
|
Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
1878
1817
|
` + new Error().stack
|
|
@@ -1881,16 +1820,16 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1881
1820
|
return t.apply(this, arguments);
|
|
1882
1821
|
}, t);
|
|
1883
1822
|
}
|
|
1884
|
-
var
|
|
1885
|
-
function
|
|
1886
|
-
g.deprecationHandler != null && g.deprecationHandler(e, t),
|
|
1823
|
+
var Mn = {};
|
|
1824
|
+
function An(e, t) {
|
|
1825
|
+
g.deprecationHandler != null && g.deprecationHandler(e, t), Mn[e] || (Fn(t), Mn[e] = !0);
|
|
1887
1826
|
}
|
|
1888
1827
|
g.suppressDeprecationWarnings = !1;
|
|
1889
1828
|
g.deprecationHandler = null;
|
|
1890
1829
|
function ee(e) {
|
|
1891
1830
|
return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
|
|
1892
1831
|
}
|
|
1893
|
-
function
|
|
1832
|
+
function ei(e) {
|
|
1894
1833
|
var t, n;
|
|
1895
1834
|
for (n in e)
|
|
1896
1835
|
S(e, n) && (t = e[n], ee(t) ? this[n] = t : this["_" + n] = t);
|
|
@@ -1898,7 +1837,7 @@ function Zs(e) {
|
|
|
1898
1837
|
(this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
|
|
1899
1838
|
);
|
|
1900
1839
|
}
|
|
1901
|
-
function
|
|
1840
|
+
function Ft(e, t) {
|
|
1902
1841
|
var n = de({}, e), s;
|
|
1903
1842
|
for (s in t)
|
|
1904
1843
|
S(t, s) && (ye(e[s]) && ye(t[s]) ? (n[s] = {}, de(n[s], e[s]), de(n[s], t[s])) : t[s] != null ? n[s] = t[s] : delete n[s]);
|
|
@@ -1906,17 +1845,17 @@ function Et(e, t) {
|
|
|
1906
1845
|
S(e, s) && !S(t, s) && ye(e[s]) && (n[s] = de({}, n[s]));
|
|
1907
1846
|
return n;
|
|
1908
1847
|
}
|
|
1909
|
-
function
|
|
1848
|
+
function Gt(e) {
|
|
1910
1849
|
e != null && this.set(e);
|
|
1911
1850
|
}
|
|
1912
|
-
var
|
|
1913
|
-
Object.keys ?
|
|
1851
|
+
var At;
|
|
1852
|
+
Object.keys ? At = Object.keys : At = function(e) {
|
|
1914
1853
|
var t, n = [];
|
|
1915
1854
|
for (t in e)
|
|
1916
1855
|
S(e, t) && n.push(t);
|
|
1917
1856
|
return n;
|
|
1918
1857
|
};
|
|
1919
|
-
var
|
|
1858
|
+
var ti = {
|
|
1920
1859
|
sameDay: "[Today at] LT",
|
|
1921
1860
|
nextDay: "[Tomorrow at] LT",
|
|
1922
1861
|
nextWeek: "dddd [at] LT",
|
|
@@ -1924,7 +1863,7 @@ var Qs = {
|
|
|
1924
1863
|
lastWeek: "[Last] dddd [at] LT",
|
|
1925
1864
|
sameElse: "L"
|
|
1926
1865
|
};
|
|
1927
|
-
function
|
|
1866
|
+
function ni(e, t, n) {
|
|
1928
1867
|
var s = this._calendar[e] || this._calendar.sameElse;
|
|
1929
1868
|
return ee(s) ? s.call(t, n) : s;
|
|
1930
1869
|
}
|
|
@@ -1932,7 +1871,7 @@ function Q(e, t, n) {
|
|
|
1932
1871
|
var s = "" + Math.abs(e), i = t - s.length, r = e >= 0;
|
|
1933
1872
|
return (r ? n ? "+" : "" : "-") + Math.pow(10, Math.max(0, i)).toString().substr(1) + s;
|
|
1934
1873
|
}
|
|
1935
|
-
var
|
|
1874
|
+
var zt = /(\[[^\[]*\])|(\\)?([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, Qe = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, Ct = {}, ke = {};
|
|
1936
1875
|
function p(e, t, n, s) {
|
|
1937
1876
|
var i = s;
|
|
1938
1877
|
typeof s == "string" && (i = function() {
|
|
@@ -1946,13 +1885,13 @@ function p(e, t, n, s) {
|
|
|
1946
1885
|
);
|
|
1947
1886
|
});
|
|
1948
1887
|
}
|
|
1949
|
-
function
|
|
1888
|
+
function si(e) {
|
|
1950
1889
|
return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "");
|
|
1951
1890
|
}
|
|
1952
|
-
function
|
|
1953
|
-
var t = e.match(
|
|
1891
|
+
function ii(e) {
|
|
1892
|
+
var t = e.match(zt), n, s;
|
|
1954
1893
|
for (n = 0, s = t.length; n < s; n++)
|
|
1955
|
-
ke[t[n]] ? t[n] = ke[t[n]] : t[n] =
|
|
1894
|
+
ke[t[n]] ? t[n] = ke[t[n]] : t[n] = si(t[n]);
|
|
1956
1895
|
return function(i) {
|
|
1957
1896
|
var r = "", a;
|
|
1958
1897
|
for (a = 0; a < s; a++)
|
|
@@ -1961,9 +1900,9 @@ function ti(e) {
|
|
|
1961
1900
|
};
|
|
1962
1901
|
}
|
|
1963
1902
|
function et(e, t) {
|
|
1964
|
-
return e.isValid() ? (t =
|
|
1903
|
+
return e.isValid() ? (t = In(t, e.localeData()), Ct[t] = Ct[t] || ii(t), Ct[t](e)) : e.localeData().invalidDate();
|
|
1965
1904
|
}
|
|
1966
|
-
function
|
|
1905
|
+
function In(e, t) {
|
|
1967
1906
|
var n = 5;
|
|
1968
1907
|
function s(i) {
|
|
1969
1908
|
return t.longDateFormat(i) || i;
|
|
@@ -1975,7 +1914,7 @@ function En(e, t) {
|
|
|
1975
1914
|
), Qe.lastIndex = 0, n -= 1;
|
|
1976
1915
|
return e;
|
|
1977
1916
|
}
|
|
1978
|
-
var
|
|
1917
|
+
var ri = {
|
|
1979
1918
|
LTS: "h:mm:ss A",
|
|
1980
1919
|
LT: "h:mm A",
|
|
1981
1920
|
L: "MM/DD/YYYY",
|
|
@@ -1983,21 +1922,21 @@ var ni = {
|
|
|
1983
1922
|
LLL: "MMMM D, YYYY h:mm A",
|
|
1984
1923
|
LLLL: "dddd, MMMM D, YYYY h:mm A"
|
|
1985
1924
|
};
|
|
1986
|
-
function
|
|
1925
|
+
function ai(e) {
|
|
1987
1926
|
var t = this._longDateFormat[e], n = this._longDateFormat[e.toUpperCase()];
|
|
1988
|
-
return t || !n ? t : (this._longDateFormat[e] = n.match(
|
|
1927
|
+
return t || !n ? t : (this._longDateFormat[e] = n.match(zt).map(function(s) {
|
|
1989
1928
|
return s === "MMMM" || s === "MM" || s === "DD" || s === "dddd" ? s.slice(1) : s;
|
|
1990
1929
|
}).join(""), this._longDateFormat[e]);
|
|
1991
1930
|
}
|
|
1992
|
-
var
|
|
1993
|
-
function
|
|
1931
|
+
var oi = "Invalid date";
|
|
1932
|
+
function ui() {
|
|
1994
1933
|
return this._invalidDate;
|
|
1995
1934
|
}
|
|
1996
|
-
var
|
|
1997
|
-
function
|
|
1935
|
+
var li = "%d", di = /\d{1,2}/;
|
|
1936
|
+
function hi(e) {
|
|
1998
1937
|
return this._ordinal.replace("%d", e);
|
|
1999
1938
|
}
|
|
2000
|
-
var
|
|
1939
|
+
var ci = {
|
|
2001
1940
|
future: "in %s",
|
|
2002
1941
|
past: "%s ago",
|
|
2003
1942
|
s: "a few seconds",
|
|
@@ -2015,15 +1954,15 @@ var li = {
|
|
|
2015
1954
|
y: "a year",
|
|
2016
1955
|
yy: "%d years"
|
|
2017
1956
|
};
|
|
2018
|
-
function
|
|
1957
|
+
function fi(e, t, n, s) {
|
|
2019
1958
|
var i = this._relativeTime[n];
|
|
2020
1959
|
return ee(i) ? i(e, t, n, s) : i.replace(/%d/i, e);
|
|
2021
1960
|
}
|
|
2022
|
-
function
|
|
1961
|
+
function gi(e, t) {
|
|
2023
1962
|
var n = this._relativeTime[e > 0 ? "future" : "past"];
|
|
2024
1963
|
return ee(n) ? n(t) : n.replace(/%s/i, t);
|
|
2025
1964
|
}
|
|
2026
|
-
var
|
|
1965
|
+
var Dn = {
|
|
2027
1966
|
D: "date",
|
|
2028
1967
|
dates: "date",
|
|
2029
1968
|
date: "date",
|
|
@@ -2074,15 +2013,15 @@ var kn = {
|
|
|
2074
2013
|
year: "year"
|
|
2075
2014
|
};
|
|
2076
2015
|
function W(e) {
|
|
2077
|
-
return typeof e == "string" ?
|
|
2016
|
+
return typeof e == "string" ? Dn[e] || Dn[e.toLowerCase()] : void 0;
|
|
2078
2017
|
}
|
|
2079
|
-
function
|
|
2018
|
+
function Kt(e) {
|
|
2080
2019
|
var t = {}, n, s;
|
|
2081
2020
|
for (s in e)
|
|
2082
2021
|
S(e, s) && (n = W(s), n && (t[n] = e[s]));
|
|
2083
2022
|
return t;
|
|
2084
2023
|
}
|
|
2085
|
-
var
|
|
2024
|
+
var mi = {
|
|
2086
2025
|
date: 9,
|
|
2087
2026
|
day: 11,
|
|
2088
2027
|
weekday: 11,
|
|
@@ -2100,25 +2039,25 @@ var ci = {
|
|
|
2100
2039
|
isoWeek: 5,
|
|
2101
2040
|
year: 1
|
|
2102
2041
|
};
|
|
2103
|
-
function
|
|
2042
|
+
function pi(e) {
|
|
2104
2043
|
var t = [], n;
|
|
2105
2044
|
for (n in e)
|
|
2106
|
-
S(e, n) && t.push({ unit: n, priority:
|
|
2045
|
+
S(e, n) && t.push({ unit: n, priority: mi[n] });
|
|
2107
2046
|
return t.sort(function(s, i) {
|
|
2108
2047
|
return s.priority - i.priority;
|
|
2109
2048
|
}), t;
|
|
2110
2049
|
}
|
|
2111
|
-
var
|
|
2050
|
+
var jn = /\d/, H = /\d\d/, Un = /\d{3}/, Bt = /\d{4}/, gt = /[+-]?\d{6}/, M = /\d\d?/, Hn = /\d\d\d\d?/, $n = /\d\d\d\d\d\d?/, mt = /\d{1,3}/, qt = /\d{1,4}/, pt = /[+-]?\d{1,6}/, De = /\d+/, yt = /[+-]?\d+/, yi = /Z|[+-]\d\d:?\d\d/gi, _t = /Z|[+-]\d\d(?::?\d\d)?/gi, _i = /[+-]?\d+(\.\d{1,3})?/, ze = /[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, Ye = /^[1-9]\d?/, Jt = /^([1-9]\d|\d)/, ot;
|
|
2112
2051
|
ot = {};
|
|
2113
2052
|
function m(e, t, n) {
|
|
2114
2053
|
ot[e] = ee(t) ? t : function(s, i) {
|
|
2115
2054
|
return s && n ? n : t;
|
|
2116
2055
|
};
|
|
2117
2056
|
}
|
|
2118
|
-
function
|
|
2119
|
-
return S(ot, e) ? ot[e](t._strict, t._locale) : new RegExp(
|
|
2057
|
+
function vi(e, t) {
|
|
2058
|
+
return S(ot, e) ? ot[e](t._strict, t._locale) : new RegExp(wi(e));
|
|
2120
2059
|
}
|
|
2121
|
-
function
|
|
2060
|
+
function wi(e) {
|
|
2122
2061
|
return re(
|
|
2123
2062
|
e.replace("\\", "").replace(
|
|
2124
2063
|
/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
|
|
@@ -2138,26 +2077,26 @@ function v(e) {
|
|
|
2138
2077
|
var t = +e, n = 0;
|
|
2139
2078
|
return t !== 0 && isFinite(t) && (n = $(t)), n;
|
|
2140
2079
|
}
|
|
2141
|
-
var
|
|
2080
|
+
var It = {};
|
|
2142
2081
|
function k(e, t) {
|
|
2143
2082
|
var n, s = t, i;
|
|
2144
2083
|
for (typeof e == "string" && (e = [e]), oe(t) && (s = function(r, a) {
|
|
2145
2084
|
a[t] = v(r);
|
|
2146
2085
|
}), i = e.length, n = 0; n < i; n++)
|
|
2147
|
-
|
|
2086
|
+
It[e[n]] = s;
|
|
2148
2087
|
}
|
|
2149
2088
|
function Ke(e, t) {
|
|
2150
2089
|
k(e, function(n, s, i, r) {
|
|
2151
2090
|
i._w = i._w || {}, t(n, i._w, i, r);
|
|
2152
2091
|
});
|
|
2153
2092
|
}
|
|
2154
|
-
function
|
|
2155
|
-
t != null && S(
|
|
2093
|
+
function Si(e, t, n) {
|
|
2094
|
+
t != null && S(It, e) && It[e](t, n._a, n, e);
|
|
2156
2095
|
}
|
|
2157
2096
|
function vt(e) {
|
|
2158
2097
|
return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
|
|
2159
2098
|
}
|
|
2160
|
-
var
|
|
2099
|
+
var P = 0, se = 1, J = 2, R = 3, z = 4, ie = 5, pe = 6, bi = 7, xi = 8;
|
|
2161
2100
|
p("Y", 0, 0, function() {
|
|
2162
2101
|
var e = this.year();
|
|
2163
2102
|
return e <= 9999 ? Q(e, 4) : "+" + e;
|
|
@@ -2170,32 +2109,32 @@ p(0, ["YYYYY", 5], 0, "year");
|
|
|
2170
2109
|
p(0, ["YYYYYY", 6, !0], 0, "year");
|
|
2171
2110
|
m("Y", yt);
|
|
2172
2111
|
m("YY", M, H);
|
|
2173
|
-
m("YYYY",
|
|
2112
|
+
m("YYYY", qt, Bt);
|
|
2174
2113
|
m("YYYYY", pt, gt);
|
|
2175
2114
|
m("YYYYYY", pt, gt);
|
|
2176
|
-
k(["YYYYY", "YYYYYY"],
|
|
2115
|
+
k(["YYYYY", "YYYYYY"], P);
|
|
2177
2116
|
k("YYYY", function(e, t) {
|
|
2178
|
-
t[
|
|
2117
|
+
t[P] = e.length === 2 ? g.parseTwoDigitYear(e) : v(e);
|
|
2179
2118
|
});
|
|
2180
2119
|
k("YY", function(e, t) {
|
|
2181
|
-
t[
|
|
2120
|
+
t[P] = g.parseTwoDigitYear(e);
|
|
2182
2121
|
});
|
|
2183
2122
|
k("Y", function(e, t) {
|
|
2184
|
-
t[
|
|
2123
|
+
t[P] = parseInt(e, 10);
|
|
2185
2124
|
});
|
|
2186
|
-
function
|
|
2125
|
+
function Ie(e) {
|
|
2187
2126
|
return vt(e) ? 366 : 365;
|
|
2188
2127
|
}
|
|
2189
2128
|
g.parseTwoDigitYear = function(e) {
|
|
2190
2129
|
return v(e) + (v(e) > 68 ? 1900 : 2e3);
|
|
2191
2130
|
};
|
|
2192
|
-
var
|
|
2193
|
-
function
|
|
2131
|
+
var Vn = Ne("FullYear", !0);
|
|
2132
|
+
function ki() {
|
|
2194
2133
|
return vt(this.year());
|
|
2195
2134
|
}
|
|
2196
2135
|
function Ne(e, t) {
|
|
2197
2136
|
return function(n) {
|
|
2198
|
-
return n != null ? (
|
|
2137
|
+
return n != null ? (Wn(this, e, n), g.updateOffset(this, t), this) : Ue(this, e);
|
|
2199
2138
|
};
|
|
2200
2139
|
}
|
|
2201
2140
|
function Ue(e, t) {
|
|
@@ -2223,7 +2162,7 @@ function Ue(e, t) {
|
|
|
2223
2162
|
return NaN;
|
|
2224
2163
|
}
|
|
2225
2164
|
}
|
|
2226
|
-
function
|
|
2165
|
+
function Wn(e, t, n) {
|
|
2227
2166
|
var s, i, r, a, o;
|
|
2228
2167
|
if (!(!e.isValid() || isNaN(n))) {
|
|
2229
2168
|
switch (s = e._d, i = e._isUTC, t) {
|
|
@@ -2245,20 +2184,20 @@ function Hn(e, t, n) {
|
|
|
2245
2184
|
r = n, a = e.month(), o = e.date(), o = o === 29 && a === 1 && !vt(r) ? 28 : o, i ? s.setUTCFullYear(r, a, o) : s.setFullYear(r, a, o);
|
|
2246
2185
|
}
|
|
2247
2186
|
}
|
|
2248
|
-
function
|
|
2187
|
+
function Oi(e) {
|
|
2249
2188
|
return e = W(e), ee(this[e]) ? this[e]() : this;
|
|
2250
2189
|
}
|
|
2251
|
-
function
|
|
2190
|
+
function Mi(e, t) {
|
|
2252
2191
|
if (typeof e == "object") {
|
|
2253
|
-
e =
|
|
2254
|
-
var n =
|
|
2192
|
+
e = Kt(e);
|
|
2193
|
+
var n = pi(e), s, i = n.length;
|
|
2255
2194
|
for (s = 0; s < i; s++)
|
|
2256
2195
|
this[n[s].unit](e[n[s].unit]);
|
|
2257
2196
|
} else if (e = W(e), ee(this[e]))
|
|
2258
2197
|
return this[e](t);
|
|
2259
2198
|
return this;
|
|
2260
2199
|
}
|
|
2261
|
-
function
|
|
2200
|
+
function Di(e, t) {
|
|
2262
2201
|
return (e % t + t) % t;
|
|
2263
2202
|
}
|
|
2264
2203
|
var L;
|
|
@@ -2269,10 +2208,10 @@ Array.prototype.indexOf ? L = Array.prototype.indexOf : L = function(e) {
|
|
|
2269
2208
|
return t;
|
|
2270
2209
|
return -1;
|
|
2271
2210
|
};
|
|
2272
|
-
function
|
|
2211
|
+
function Zt(e, t) {
|
|
2273
2212
|
if (isNaN(e) || isNaN(t))
|
|
2274
2213
|
return NaN;
|
|
2275
|
-
var n =
|
|
2214
|
+
var n = Di(t, 12);
|
|
2276
2215
|
return e += (t - n) / 12, n === 1 ? vt(e) ? 29 : 28 : 31 - n % 7 % 2;
|
|
2277
2216
|
}
|
|
2278
2217
|
p("M", ["MM", 2], "Mo", function() {
|
|
@@ -2299,16 +2238,16 @@ k(["MMM", "MMMM"], function(e, t, n, s) {
|
|
|
2299
2238
|
var i = n._locale.monthsParse(e, s, n._strict);
|
|
2300
2239
|
i != null ? t[se] = i : _(n).invalidMonth = e;
|
|
2301
2240
|
});
|
|
2302
|
-
var
|
|
2241
|
+
var Yi = "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
2303
2242
|
"_"
|
|
2304
|
-
),
|
|
2305
|
-
function
|
|
2306
|
-
return e ? K(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat ||
|
|
2243
|
+
), Gn = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), zn = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, Ni = ze, Ci = ze;
|
|
2244
|
+
function Li(e, t) {
|
|
2245
|
+
return e ? K(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || zn).test(t) ? "format" : "standalone"][e.month()] : K(this._months) ? this._months : this._months.standalone;
|
|
2307
2246
|
}
|
|
2308
|
-
function
|
|
2309
|
-
return e ? K(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[
|
|
2247
|
+
function Ri(e, t) {
|
|
2248
|
+
return e ? K(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[zn.test(t) ? "format" : "standalone"][e.month()] : K(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
|
|
2310
2249
|
}
|
|
2311
|
-
function
|
|
2250
|
+
function Pi(e, t, n) {
|
|
2312
2251
|
var s, i, r, a = e.toLocaleLowerCase();
|
|
2313
2252
|
if (!this._monthsParse)
|
|
2314
2253
|
for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], s = 0; s < 12; ++s)
|
|
@@ -2318,10 +2257,10 @@ function Ci(e, t, n) {
|
|
|
2318
2257
|
).toLocaleLowerCase(), this._longMonthsParse[s] = this.months(r, "").toLocaleLowerCase();
|
|
2319
2258
|
return n ? t === "MMM" ? (i = L.call(this._shortMonthsParse, a), i !== -1 ? i : null) : (i = L.call(this._longMonthsParse, a), i !== -1 ? i : null) : t === "MMM" ? (i = L.call(this._shortMonthsParse, a), i !== -1 ? i : (i = L.call(this._longMonthsParse, a), i !== -1 ? i : null)) : (i = L.call(this._longMonthsParse, a), i !== -1 ? i : (i = L.call(this._shortMonthsParse, a), i !== -1 ? i : null));
|
|
2320
2259
|
}
|
|
2321
|
-
function
|
|
2260
|
+
function Ti(e, t, n) {
|
|
2322
2261
|
var s, i, r;
|
|
2323
2262
|
if (this._monthsParseExact)
|
|
2324
|
-
return
|
|
2263
|
+
return Pi.call(this, e, t, n);
|
|
2325
2264
|
for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), s = 0; s < 12; s++)
|
|
2326
2265
|
if (i = X([2e3, s]), n && !this._longMonthsParse[s] && (this._longMonthsParse[s] = new RegExp(
|
|
2327
2266
|
"^" + this.months(i, "").replace(".", "") + "$",
|
|
@@ -2332,7 +2271,7 @@ function Li(e, t, n) {
|
|
|
2332
2271
|
)), !n && !this._monthsParse[s] && (r = "^" + this.months(i, "") + "|^" + this.monthsShort(i, ""), this._monthsParse[s] = new RegExp(r.replace(".", ""), "i")), n && t === "MMMM" && this._longMonthsParse[s].test(e) || n && t === "MMM" && this._shortMonthsParse[s].test(e) || !n && this._monthsParse[s].test(e))
|
|
2333
2272
|
return s;
|
|
2334
2273
|
}
|
|
2335
|
-
function
|
|
2274
|
+
function Kn(e, t) {
|
|
2336
2275
|
if (!e.isValid())
|
|
2337
2276
|
return e;
|
|
2338
2277
|
if (typeof t == "string") {
|
|
@@ -2342,21 +2281,21 @@ function Wn(e, t) {
|
|
|
2342
2281
|
return e;
|
|
2343
2282
|
}
|
|
2344
2283
|
var n = t, s = e.date();
|
|
2345
|
-
return s = s < 29 ? s : Math.min(s,
|
|
2284
|
+
return s = s < 29 ? s : Math.min(s, Zt(e.year(), n)), e._isUTC ? e._d.setUTCMonth(n, s) : e._d.setMonth(n, s), e;
|
|
2346
2285
|
}
|
|
2347
|
-
function
|
|
2348
|
-
return e != null ? (
|
|
2286
|
+
function Bn(e) {
|
|
2287
|
+
return e != null ? (Kn(this, e), g.updateOffset(this, !0), this) : Ue(this, "Month");
|
|
2349
2288
|
}
|
|
2350
|
-
function
|
|
2351
|
-
return
|
|
2289
|
+
function Ei() {
|
|
2290
|
+
return Zt(this.year(), this.month());
|
|
2352
2291
|
}
|
|
2353
|
-
function
|
|
2354
|
-
return this._monthsParseExact ? (S(this, "_monthsRegex") ||
|
|
2292
|
+
function Fi(e) {
|
|
2293
|
+
return this._monthsParseExact ? (S(this, "_monthsRegex") || qn.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (S(this, "_monthsShortRegex") || (this._monthsShortRegex = Ni), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);
|
|
2355
2294
|
}
|
|
2356
|
-
function
|
|
2357
|
-
return this._monthsParseExact ? (S(this, "_monthsRegex") ||
|
|
2295
|
+
function Ai(e) {
|
|
2296
|
+
return this._monthsParseExact ? (S(this, "_monthsRegex") || qn.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (S(this, "_monthsRegex") || (this._monthsRegex = Ci), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);
|
|
2358
2297
|
}
|
|
2359
|
-
function
|
|
2298
|
+
function qn() {
|
|
2360
2299
|
function e(u, l) {
|
|
2361
2300
|
return l.length - u.length;
|
|
2362
2301
|
}
|
|
@@ -2371,7 +2310,7 @@ function zn() {
|
|
|
2371
2310
|
"i"
|
|
2372
2311
|
);
|
|
2373
2312
|
}
|
|
2374
|
-
function
|
|
2313
|
+
function Ii(e, t, n, s, i, r, a) {
|
|
2375
2314
|
var o;
|
|
2376
2315
|
return e < 100 && e >= 0 ? (o = new Date(e + 400, t, n, s, i, r, a), isFinite(o.getFullYear()) && o.setFullYear(e)) : o = new Date(e, t, n, s, i, r, a), o;
|
|
2377
2316
|
}
|
|
@@ -2383,9 +2322,9 @@ function ut(e, t, n) {
|
|
|
2383
2322
|
var s = 7 + t - n, i = (7 + He(e, 0, s).getUTCDay() - t) % 7;
|
|
2384
2323
|
return -i + s - 1;
|
|
2385
2324
|
}
|
|
2386
|
-
function
|
|
2325
|
+
function Jn(e, t, n, s, i) {
|
|
2387
2326
|
var r = (7 + n - s) % 7, a = ut(e, s, i), o = 1 + 7 * (t - 1) + r + a, u, l;
|
|
2388
|
-
return o <= 0 ? (u = e - 1, l =
|
|
2327
|
+
return o <= 0 ? (u = e - 1, l = Ie(u) + o) : o > Ie(e) ? (u = e + 1, l = o - Ie(e)) : (u = e, l = o), {
|
|
2389
2328
|
year: u,
|
|
2390
2329
|
dayOfYear: l
|
|
2391
2330
|
};
|
|
@@ -2399,7 +2338,7 @@ function $e(e, t, n) {
|
|
|
2399
2338
|
}
|
|
2400
2339
|
function ae(e, t, n) {
|
|
2401
2340
|
var s = ut(e, t, n), i = ut(e + 1, t, n);
|
|
2402
|
-
return (
|
|
2341
|
+
return (Ie(e) - s + i) / 7;
|
|
2403
2342
|
}
|
|
2404
2343
|
p("w", ["ww", 2], "wo", "week");
|
|
2405
2344
|
p("W", ["WW", 2], "Wo", "isoWeek");
|
|
@@ -2413,26 +2352,26 @@ Ke(
|
|
|
2413
2352
|
t[s.substr(0, 1)] = v(e);
|
|
2414
2353
|
}
|
|
2415
2354
|
);
|
|
2416
|
-
function
|
|
2355
|
+
function ji(e) {
|
|
2417
2356
|
return $e(e, this._week.dow, this._week.doy).week;
|
|
2418
2357
|
}
|
|
2419
|
-
var
|
|
2358
|
+
var Ui = {
|
|
2420
2359
|
dow: 0,
|
|
2421
2360
|
// Sunday is the first day of the week.
|
|
2422
2361
|
doy: 6
|
|
2423
2362
|
// The week that contains Jan 6th is the first week of the year.
|
|
2424
2363
|
};
|
|
2425
|
-
function
|
|
2364
|
+
function Hi() {
|
|
2426
2365
|
return this._week.dow;
|
|
2427
2366
|
}
|
|
2428
|
-
function
|
|
2367
|
+
function $i() {
|
|
2429
2368
|
return this._week.doy;
|
|
2430
2369
|
}
|
|
2431
|
-
function
|
|
2370
|
+
function Vi(e) {
|
|
2432
2371
|
var t = this.localeData().week(this);
|
|
2433
2372
|
return e == null ? t : this.add((e - t) * 7, "d");
|
|
2434
2373
|
}
|
|
2435
|
-
function
|
|
2374
|
+
function Wi(e) {
|
|
2436
2375
|
var t = $e(this, 1, 4).week;
|
|
2437
2376
|
return e == null ? t : this.add((e - t) * 7, "d");
|
|
2438
2377
|
}
|
|
@@ -2467,27 +2406,27 @@ Ke(["dd", "ddd", "dddd"], function(e, t, n, s) {
|
|
|
2467
2406
|
Ke(["d", "e", "E"], function(e, t, n, s) {
|
|
2468
2407
|
t[s] = v(e);
|
|
2469
2408
|
});
|
|
2470
|
-
function
|
|
2409
|
+
function Gi(e, t) {
|
|
2471
2410
|
return typeof e != "string" ? e : isNaN(e) ? (e = t.weekdaysParse(e), typeof e == "number" ? e : null) : parseInt(e, 10);
|
|
2472
2411
|
}
|
|
2473
|
-
function
|
|
2412
|
+
function zi(e, t) {
|
|
2474
2413
|
return typeof e == "string" ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e;
|
|
2475
2414
|
}
|
|
2476
|
-
function
|
|
2415
|
+
function Qt(e, t) {
|
|
2477
2416
|
return e.slice(t, 7).concat(e.slice(0, t));
|
|
2478
2417
|
}
|
|
2479
|
-
var
|
|
2480
|
-
function
|
|
2418
|
+
var Ki = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), Zn = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), Bi = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), qi = ze, Ji = ze, Zi = ze;
|
|
2419
|
+
function Qi(e, t) {
|
|
2481
2420
|
var n = K(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
|
|
2482
|
-
return e === !0 ?
|
|
2421
|
+
return e === !0 ? Qt(n, this._week.dow) : e ? n[e.day()] : n;
|
|
2483
2422
|
}
|
|
2484
|
-
function
|
|
2485
|
-
return e === !0 ?
|
|
2423
|
+
function Xi(e) {
|
|
2424
|
+
return e === !0 ? Qt(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort;
|
|
2486
2425
|
}
|
|
2487
|
-
function
|
|
2488
|
-
return e === !0 ?
|
|
2426
|
+
function er(e) {
|
|
2427
|
+
return e === !0 ? Qt(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
|
|
2489
2428
|
}
|
|
2490
|
-
function
|
|
2429
|
+
function tr(e, t, n) {
|
|
2491
2430
|
var s, i, r, a = e.toLocaleLowerCase();
|
|
2492
2431
|
if (!this._weekdaysParse)
|
|
2493
2432
|
for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], s = 0; s < 7; ++s)
|
|
@@ -2500,10 +2439,10 @@ function Qi(e, t, n) {
|
|
|
2500
2439
|
).toLocaleLowerCase(), this._weekdaysParse[s] = this.weekdays(r, "").toLocaleLowerCase();
|
|
2501
2440
|
return n ? t === "dddd" ? (i = L.call(this._weekdaysParse, a), i !== -1 ? i : null) : t === "ddd" ? (i = L.call(this._shortWeekdaysParse, a), i !== -1 ? i : null) : (i = L.call(this._minWeekdaysParse, a), i !== -1 ? i : null) : t === "dddd" ? (i = L.call(this._weekdaysParse, a), i !== -1 || (i = L.call(this._shortWeekdaysParse, a), i !== -1) ? i : (i = L.call(this._minWeekdaysParse, a), i !== -1 ? i : null)) : t === "ddd" ? (i = L.call(this._shortWeekdaysParse, a), i !== -1 || (i = L.call(this._weekdaysParse, a), i !== -1) ? i : (i = L.call(this._minWeekdaysParse, a), i !== -1 ? i : null)) : (i = L.call(this._minWeekdaysParse, a), i !== -1 || (i = L.call(this._weekdaysParse, a), i !== -1) ? i : (i = L.call(this._shortWeekdaysParse, a), i !== -1 ? i : null));
|
|
2502
2441
|
}
|
|
2503
|
-
function
|
|
2442
|
+
function nr(e, t, n) {
|
|
2504
2443
|
var s, i, r;
|
|
2505
2444
|
if (this._weekdaysParseExact)
|
|
2506
|
-
return
|
|
2445
|
+
return tr.call(this, e, t, n);
|
|
2507
2446
|
for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), s = 0; s < 7; s++)
|
|
2508
2447
|
if (i = X([2e3, 1]).day(s), n && !this._fullWeekdaysParse[s] && (this._fullWeekdaysParse[s] = new RegExp(
|
|
2509
2448
|
"^" + this.weekdays(i, "").replace(".", "\\.?") + "$",
|
|
@@ -2517,37 +2456,37 @@ function Xi(e, t, n) {
|
|
|
2517
2456
|
)), this._weekdaysParse[s] || (r = "^" + this.weekdays(i, "") + "|^" + this.weekdaysShort(i, "") + "|^" + this.weekdaysMin(i, ""), this._weekdaysParse[s] = new RegExp(r.replace(".", ""), "i")), n && t === "dddd" && this._fullWeekdaysParse[s].test(e) || n && t === "ddd" && this._shortWeekdaysParse[s].test(e) || n && t === "dd" && this._minWeekdaysParse[s].test(e) || !n && this._weekdaysParse[s].test(e))
|
|
2518
2457
|
return s;
|
|
2519
2458
|
}
|
|
2520
|
-
function
|
|
2459
|
+
function sr(e) {
|
|
2521
2460
|
if (!this.isValid())
|
|
2522
2461
|
return e != null ? this : NaN;
|
|
2523
2462
|
var t = Ue(this, "Day");
|
|
2524
|
-
return e != null ? (e =
|
|
2463
|
+
return e != null ? (e = Gi(e, this.localeData()), this.add(e - t, "d")) : t;
|
|
2525
2464
|
}
|
|
2526
|
-
function
|
|
2465
|
+
function ir(e) {
|
|
2527
2466
|
if (!this.isValid())
|
|
2528
2467
|
return e != null ? this : NaN;
|
|
2529
2468
|
var t = (this.day() + 7 - this.localeData()._week.dow) % 7;
|
|
2530
2469
|
return e == null ? t : this.add(e - t, "d");
|
|
2531
2470
|
}
|
|
2532
|
-
function
|
|
2471
|
+
function rr(e) {
|
|
2533
2472
|
if (!this.isValid())
|
|
2534
2473
|
return e != null ? this : NaN;
|
|
2535
2474
|
if (e != null) {
|
|
2536
|
-
var t =
|
|
2475
|
+
var t = zi(e, this.localeData());
|
|
2537
2476
|
return this.day(this.day() % 7 ? t : t - 7);
|
|
2538
2477
|
} else
|
|
2539
2478
|
return this.day() || 7;
|
|
2540
2479
|
}
|
|
2541
|
-
function
|
|
2542
|
-
return this._weekdaysParseExact ? (S(this, "_weekdaysRegex") ||
|
|
2480
|
+
function ar(e) {
|
|
2481
|
+
return this._weekdaysParseExact ? (S(this, "_weekdaysRegex") || Xt.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (S(this, "_weekdaysRegex") || (this._weekdaysRegex = qi), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex);
|
|
2543
2482
|
}
|
|
2544
|
-
function
|
|
2545
|
-
return this._weekdaysParseExact ? (S(this, "_weekdaysRegex") ||
|
|
2483
|
+
function or(e) {
|
|
2484
|
+
return this._weekdaysParseExact ? (S(this, "_weekdaysRegex") || Xt.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (S(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = Ji), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
|
|
2546
2485
|
}
|
|
2547
|
-
function
|
|
2548
|
-
return this._weekdaysParseExact ? (S(this, "_weekdaysRegex") ||
|
|
2486
|
+
function ur(e) {
|
|
2487
|
+
return this._weekdaysParseExact ? (S(this, "_weekdaysRegex") || Xt.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (S(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Zi), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
|
|
2549
2488
|
}
|
|
2550
|
-
function
|
|
2489
|
+
function Xt() {
|
|
2551
2490
|
function e(h, f) {
|
|
2552
2491
|
return f.length - h.length;
|
|
2553
2492
|
}
|
|
@@ -2565,20 +2504,20 @@ function Qt() {
|
|
|
2565
2504
|
"i"
|
|
2566
2505
|
);
|
|
2567
2506
|
}
|
|
2568
|
-
function
|
|
2507
|
+
function en() {
|
|
2569
2508
|
return this.hours() % 12 || 12;
|
|
2570
2509
|
}
|
|
2571
|
-
function
|
|
2510
|
+
function lr() {
|
|
2572
2511
|
return this.hours() || 24;
|
|
2573
2512
|
}
|
|
2574
2513
|
p("H", ["HH", 2], 0, "hour");
|
|
2575
|
-
p("h", ["hh", 2], 0,
|
|
2576
|
-
p("k", ["kk", 2], 0,
|
|
2514
|
+
p("h", ["hh", 2], 0, en);
|
|
2515
|
+
p("k", ["kk", 2], 0, lr);
|
|
2577
2516
|
p("hmm", 0, 0, function() {
|
|
2578
|
-
return "" +
|
|
2517
|
+
return "" + en.apply(this) + Q(this.minutes(), 2);
|
|
2579
2518
|
});
|
|
2580
2519
|
p("hmmss", 0, 0, function() {
|
|
2581
|
-
return "" +
|
|
2520
|
+
return "" + en.apply(this) + Q(this.minutes(), 2) + Q(this.seconds(), 2);
|
|
2582
2521
|
});
|
|
2583
2522
|
p("Hmm", 0, 0, function() {
|
|
2584
2523
|
return "" + this.hours() + Q(this.minutes(), 2);
|
|
@@ -2586,7 +2525,7 @@ p("Hmm", 0, 0, function() {
|
|
|
2586
2525
|
p("Hmmss", 0, 0, function() {
|
|
2587
2526
|
return "" + this.hours() + Q(this.minutes(), 2) + Q(this.seconds(), 2);
|
|
2588
2527
|
});
|
|
2589
|
-
function
|
|
2528
|
+
function Qn(e, t) {
|
|
2590
2529
|
p(e, 0, 0, function() {
|
|
2591
2530
|
return this.localeData().meridiem(
|
|
2592
2531
|
this.hours(),
|
|
@@ -2595,23 +2534,23 @@ function qn(e, t) {
|
|
|
2595
2534
|
);
|
|
2596
2535
|
});
|
|
2597
2536
|
}
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
function
|
|
2537
|
+
Qn("a", !0);
|
|
2538
|
+
Qn("A", !1);
|
|
2539
|
+
function Xn(e, t) {
|
|
2601
2540
|
return t._meridiemParse;
|
|
2602
2541
|
}
|
|
2603
|
-
m("a",
|
|
2604
|
-
m("A",
|
|
2605
|
-
m("H", M,
|
|
2542
|
+
m("a", Xn);
|
|
2543
|
+
m("A", Xn);
|
|
2544
|
+
m("H", M, Jt);
|
|
2606
2545
|
m("h", M, Ye);
|
|
2607
2546
|
m("k", M, Ye);
|
|
2608
2547
|
m("HH", M, H);
|
|
2609
2548
|
m("hh", M, H);
|
|
2610
2549
|
m("kk", M, H);
|
|
2611
|
-
m("hmm",
|
|
2612
|
-
m("hmmss",
|
|
2613
|
-
m("Hmm",
|
|
2614
|
-
m("Hmmss",
|
|
2550
|
+
m("hmm", Hn);
|
|
2551
|
+
m("hmmss", $n);
|
|
2552
|
+
m("Hmm", Hn);
|
|
2553
|
+
m("Hmmss", $n);
|
|
2615
2554
|
k(["H", "HH"], R);
|
|
2616
2555
|
k(["k", "kk"], function(e, t, n) {
|
|
2617
2556
|
var s = v(e);
|
|
@@ -2639,44 +2578,44 @@ k("Hmmss", function(e, t, n) {
|
|
|
2639
2578
|
var s = e.length - 4, i = e.length - 2;
|
|
2640
2579
|
t[R] = v(e.substr(0, s)), t[z] = v(e.substr(s, 2)), t[ie] = v(e.substr(i));
|
|
2641
2580
|
});
|
|
2642
|
-
function
|
|
2581
|
+
function dr(e) {
|
|
2643
2582
|
return (e + "").toLowerCase().charAt(0) === "p";
|
|
2644
2583
|
}
|
|
2645
|
-
var
|
|
2646
|
-
function
|
|
2584
|
+
var hr = /[ap]\.?m?\.?/i, cr = Ne("Hours", !0);
|
|
2585
|
+
function fr(e, t, n) {
|
|
2647
2586
|
return e > 11 ? n ? "pm" : "PM" : n ? "am" : "AM";
|
|
2648
2587
|
}
|
|
2649
|
-
var
|
|
2650
|
-
calendar:
|
|
2651
|
-
longDateFormat:
|
|
2652
|
-
invalidDate:
|
|
2653
|
-
ordinal:
|
|
2654
|
-
dayOfMonthOrdinalParse:
|
|
2655
|
-
relativeTime:
|
|
2656
|
-
months:
|
|
2657
|
-
monthsShort:
|
|
2658
|
-
week:
|
|
2659
|
-
weekdays:
|
|
2660
|
-
weekdaysMin:
|
|
2661
|
-
weekdaysShort:
|
|
2662
|
-
meridiemParse:
|
|
2588
|
+
var es = {
|
|
2589
|
+
calendar: ti,
|
|
2590
|
+
longDateFormat: ri,
|
|
2591
|
+
invalidDate: oi,
|
|
2592
|
+
ordinal: li,
|
|
2593
|
+
dayOfMonthOrdinalParse: di,
|
|
2594
|
+
relativeTime: ci,
|
|
2595
|
+
months: Yi,
|
|
2596
|
+
monthsShort: Gn,
|
|
2597
|
+
week: Ui,
|
|
2598
|
+
weekdays: Ki,
|
|
2599
|
+
weekdaysMin: Bi,
|
|
2600
|
+
weekdaysShort: Zn,
|
|
2601
|
+
meridiemParse: hr
|
|
2663
2602
|
}, Y = {}, Ee = {}, Ve;
|
|
2664
|
-
function
|
|
2603
|
+
function gr(e, t) {
|
|
2665
2604
|
var n, s = Math.min(e.length, t.length);
|
|
2666
2605
|
for (n = 0; n < s; n += 1)
|
|
2667
2606
|
if (e[n] !== t[n])
|
|
2668
2607
|
return n;
|
|
2669
2608
|
return s;
|
|
2670
2609
|
}
|
|
2671
|
-
function
|
|
2610
|
+
function Yn(e) {
|
|
2672
2611
|
return e && e.toLowerCase().replace("_", "-");
|
|
2673
2612
|
}
|
|
2674
|
-
function
|
|
2613
|
+
function mr(e) {
|
|
2675
2614
|
for (var t = 0, n, s, i, r; t < e.length; ) {
|
|
2676
|
-
for (r =
|
|
2615
|
+
for (r = Yn(e[t]).split("-"), n = r.length, s = Yn(e[t + 1]), s = s ? s.split("-") : null; n > 0; ) {
|
|
2677
2616
|
if (i = wt(r.slice(0, n).join("-")), i)
|
|
2678
2617
|
return i;
|
|
2679
|
-
if (s && s.length >= n &&
|
|
2618
|
+
if (s && s.length >= n && gr(r, s) >= n - 1)
|
|
2680
2619
|
break;
|
|
2681
2620
|
n--;
|
|
2682
2621
|
}
|
|
@@ -2684,12 +2623,12 @@ function cr(e) {
|
|
|
2684
2623
|
}
|
|
2685
2624
|
return Ve;
|
|
2686
2625
|
}
|
|
2687
|
-
function
|
|
2626
|
+
function pr(e) {
|
|
2688
2627
|
return !!(e && e.match("^[^/\\\\]*$"));
|
|
2689
2628
|
}
|
|
2690
2629
|
function wt(e) {
|
|
2691
2630
|
var t = null, n;
|
|
2692
|
-
if (Y[e] === void 0 && typeof module < "u" && module && module.exports &&
|
|
2631
|
+
if (Y[e] === void 0 && typeof module < "u" && module && module.exports && pr(e))
|
|
2693
2632
|
try {
|
|
2694
2633
|
t = Ve._abbr, n = require, n("./locale/" + e), ce(t);
|
|
2695
2634
|
} catch {
|
|
@@ -2699,15 +2638,15 @@ function wt(e) {
|
|
|
2699
2638
|
}
|
|
2700
2639
|
function ce(e, t) {
|
|
2701
2640
|
var n;
|
|
2702
|
-
return e && (
|
|
2641
|
+
return e && (A(t) ? n = ue(e) : n = tn(e, t), n ? Ve = n : typeof console < "u" && console.warn && console.warn(
|
|
2703
2642
|
"Locale " + e + " not found. Did you forget to load it?"
|
|
2704
2643
|
)), Ve._abbr;
|
|
2705
2644
|
}
|
|
2706
|
-
function
|
|
2645
|
+
function tn(e, t) {
|
|
2707
2646
|
if (t !== null) {
|
|
2708
|
-
var n, s =
|
|
2647
|
+
var n, s = es;
|
|
2709
2648
|
if (t.abbr = e, Y[e] != null)
|
|
2710
|
-
|
|
2649
|
+
An(
|
|
2711
2650
|
"defineLocaleOverride",
|
|
2712
2651
|
"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."
|
|
2713
2652
|
), s = Y[e]._config;
|
|
@@ -2721,16 +2660,16 @@ function en(e, t) {
|
|
|
2721
2660
|
name: e,
|
|
2722
2661
|
config: t
|
|
2723
2662
|
}), null;
|
|
2724
|
-
return Y[e] = new
|
|
2725
|
-
|
|
2663
|
+
return Y[e] = new Gt(Ft(s, t)), Ee[e] && Ee[e].forEach(function(i) {
|
|
2664
|
+
tn(i.name, i.config);
|
|
2726
2665
|
}), ce(e), Y[e];
|
|
2727
2666
|
} else
|
|
2728
2667
|
return delete Y[e], null;
|
|
2729
2668
|
}
|
|
2730
|
-
function
|
|
2669
|
+
function yr(e, t) {
|
|
2731
2670
|
if (t != null) {
|
|
2732
|
-
var n, s, i =
|
|
2733
|
-
Y[e] != null && Y[e].parentLocale != null ? Y[e].set(
|
|
2671
|
+
var n, s, i = es;
|
|
2672
|
+
Y[e] != null && Y[e].parentLocale != null ? Y[e].set(Ft(Y[e]._config, t)) : (s = wt(e), s != null && (i = s._config), t = Ft(i, t), s == null && (t.abbr = e), n = new Gt(t), n.parentLocale = Y[e], Y[e] = n), ce(e);
|
|
2734
2673
|
} else
|
|
2735
2674
|
Y[e] != null && (Y[e].parentLocale != null ? (Y[e] = Y[e].parentLocale, e === ce() && ce(e)) : Y[e] != null && delete Y[e]);
|
|
2736
2675
|
return Y[e];
|
|
@@ -2744,16 +2683,16 @@ function ue(e) {
|
|
|
2744
2683
|
return t;
|
|
2745
2684
|
e = [e];
|
|
2746
2685
|
}
|
|
2747
|
-
return
|
|
2686
|
+
return mr(e);
|
|
2748
2687
|
}
|
|
2749
|
-
function
|
|
2750
|
-
return
|
|
2688
|
+
function _r() {
|
|
2689
|
+
return At(Y);
|
|
2751
2690
|
}
|
|
2752
|
-
function
|
|
2691
|
+
function nn(e) {
|
|
2753
2692
|
var t, n = e._a;
|
|
2754
|
-
return n && _(e).overflow === -2 && (t = n[se] < 0 || n[se] > 11 ? se : n[J] < 1 || n[J] >
|
|
2693
|
+
return n && _(e).overflow === -2 && (t = n[se] < 0 || n[se] > 11 ? se : n[J] < 1 || n[J] > Zt(n[P], n[se]) ? J : n[R] < 0 || n[R] > 24 || n[R] === 24 && (n[z] !== 0 || n[ie] !== 0 || n[pe] !== 0) ? R : n[z] < 0 || n[z] > 59 ? z : n[ie] < 0 || n[ie] > 59 ? ie : n[pe] < 0 || n[pe] > 999 ? pe : -1, _(e)._overflowDayOfYear && (t < P || t > J) && (t = J), _(e)._overflowWeeks && t === -1 && (t = bi), _(e)._overflowWeekday && t === -1 && (t = xi), _(e).overflow = t), e;
|
|
2755
2694
|
}
|
|
2756
|
-
var
|
|
2695
|
+
var vr = /^\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)?)?$/, wr = /^\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)?)?$/, Sr = /Z|[+-]\d\d(?::?\d\d)?/, Xe = [
|
|
2757
2696
|
["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
|
|
2758
2697
|
["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
|
|
2759
2698
|
["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
|
|
@@ -2767,7 +2706,7 @@ var pr = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
2767
2706
|
["YYYYDDD", /\d{7}/],
|
|
2768
2707
|
["YYYYMM", /\d{6}/, !1],
|
|
2769
2708
|
["YYYY", /\d{4}/, !1]
|
|
2770
|
-
],
|
|
2709
|
+
], Lt = [
|
|
2771
2710
|
["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/],
|
|
2772
2711
|
["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/],
|
|
2773
2712
|
["HH:mm:ss", /\d\d:\d\d:\d\d/],
|
|
@@ -2777,7 +2716,7 @@ var pr = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
2777
2716
|
["HHmmss", /\d\d\d\d\d\d/],
|
|
2778
2717
|
["HHmm", /\d\d\d\d/],
|
|
2779
2718
|
["HH", /\d\d/]
|
|
2780
|
-
],
|
|
2719
|
+
], br = /^\/?Date\((-?\d+)/i, xr = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, kr = {
|
|
2781
2720
|
UT: 0,
|
|
2782
2721
|
GMT: 0,
|
|
2783
2722
|
EDT: -4 * 60,
|
|
@@ -2789,8 +2728,8 @@ var pr = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
2789
2728
|
PDT: -7 * 60,
|
|
2790
2729
|
PST: -8 * 60
|
|
2791
2730
|
};
|
|
2792
|
-
function
|
|
2793
|
-
var t, n, s = e._i, i =
|
|
2731
|
+
function ts(e) {
|
|
2732
|
+
var t, n, s = e._i, i = vr.exec(s) || wr.exec(s), r, a, o, u, l = Xe.length, h = Lt.length;
|
|
2794
2733
|
if (i) {
|
|
2795
2734
|
for (_(e).iso = !0, t = 0, n = l; t < n; t++)
|
|
2796
2735
|
if (Xe[t][1].exec(i[1])) {
|
|
@@ -2803,8 +2742,8 @@ function Qn(e) {
|
|
|
2803
2742
|
}
|
|
2804
2743
|
if (i[3]) {
|
|
2805
2744
|
for (t = 0, n = h; t < n; t++)
|
|
2806
|
-
if (
|
|
2807
|
-
o = (i[2] || " ") +
|
|
2745
|
+
if (Lt[t][1].exec(i[3])) {
|
|
2746
|
+
o = (i[2] || " ") + Lt[t][0];
|
|
2808
2747
|
break;
|
|
2809
2748
|
}
|
|
2810
2749
|
if (o == null) {
|
|
@@ -2817,36 +2756,36 @@ function Qn(e) {
|
|
|
2817
2756
|
return;
|
|
2818
2757
|
}
|
|
2819
2758
|
if (i[4])
|
|
2820
|
-
if (
|
|
2759
|
+
if (Sr.exec(i[4]))
|
|
2821
2760
|
u = "Z";
|
|
2822
2761
|
else {
|
|
2823
2762
|
e._isValid = !1;
|
|
2824
2763
|
return;
|
|
2825
2764
|
}
|
|
2826
|
-
e._f = a + (o || "") + (u || ""),
|
|
2765
|
+
e._f = a + (o || "") + (u || ""), rn(e);
|
|
2827
2766
|
} else
|
|
2828
2767
|
e._isValid = !1;
|
|
2829
2768
|
}
|
|
2830
|
-
function
|
|
2769
|
+
function Or(e, t, n, s, i, r) {
|
|
2831
2770
|
var a = [
|
|
2832
|
-
|
|
2833
|
-
|
|
2771
|
+
Mr(e),
|
|
2772
|
+
Gn.indexOf(t),
|
|
2834
2773
|
parseInt(n, 10),
|
|
2835
2774
|
parseInt(s, 10),
|
|
2836
2775
|
parseInt(i, 10)
|
|
2837
2776
|
];
|
|
2838
2777
|
return r && a.push(parseInt(r, 10)), a;
|
|
2839
2778
|
}
|
|
2840
|
-
function
|
|
2779
|
+
function Mr(e) {
|
|
2841
2780
|
var t = parseInt(e, 10);
|
|
2842
2781
|
return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t;
|
|
2843
2782
|
}
|
|
2844
|
-
function
|
|
2783
|
+
function Dr(e) {
|
|
2845
2784
|
return e.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
|
|
2846
2785
|
}
|
|
2847
|
-
function
|
|
2786
|
+
function Yr(e, t, n) {
|
|
2848
2787
|
if (e) {
|
|
2849
|
-
var s =
|
|
2788
|
+
var s = Zn.indexOf(e), i = new Date(
|
|
2850
2789
|
t[0],
|
|
2851
2790
|
t[1],
|
|
2852
2791
|
t[2]
|
|
@@ -2856,41 +2795,41 @@ function Or(e, t, n) {
|
|
|
2856
2795
|
}
|
|
2857
2796
|
return !0;
|
|
2858
2797
|
}
|
|
2859
|
-
function
|
|
2798
|
+
function Nr(e, t, n) {
|
|
2860
2799
|
if (e)
|
|
2861
|
-
return
|
|
2800
|
+
return kr[e];
|
|
2862
2801
|
if (t)
|
|
2863
2802
|
return 0;
|
|
2864
2803
|
var s = parseInt(n, 10), i = s % 100, r = (s - i) / 100;
|
|
2865
2804
|
return r * 60 + i;
|
|
2866
2805
|
}
|
|
2867
|
-
function
|
|
2868
|
-
var t =
|
|
2806
|
+
function ns(e) {
|
|
2807
|
+
var t = xr.exec(Dr(e._i)), n;
|
|
2869
2808
|
if (t) {
|
|
2870
|
-
if (n =
|
|
2809
|
+
if (n = Or(
|
|
2871
2810
|
t[4],
|
|
2872
2811
|
t[3],
|
|
2873
2812
|
t[2],
|
|
2874
2813
|
t[5],
|
|
2875
2814
|
t[6],
|
|
2876
2815
|
t[7]
|
|
2877
|
-
), !
|
|
2816
|
+
), !Yr(t[1], n, e))
|
|
2878
2817
|
return;
|
|
2879
|
-
e._a = n, e._tzm =
|
|
2818
|
+
e._a = n, e._tzm = Nr(t[8], t[9], t[10]), e._d = He.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), _(e).rfc2822 = !0;
|
|
2880
2819
|
} else
|
|
2881
2820
|
e._isValid = !1;
|
|
2882
2821
|
}
|
|
2883
|
-
function
|
|
2884
|
-
var t =
|
|
2822
|
+
function Cr(e) {
|
|
2823
|
+
var t = br.exec(e._i);
|
|
2885
2824
|
if (t !== null) {
|
|
2886
2825
|
e._d = /* @__PURE__ */ new Date(+t[1]);
|
|
2887
2826
|
return;
|
|
2888
2827
|
}
|
|
2889
|
-
if (
|
|
2828
|
+
if (ts(e), e._isValid === !1)
|
|
2890
2829
|
delete e._isValid;
|
|
2891
2830
|
else
|
|
2892
2831
|
return;
|
|
2893
|
-
if (
|
|
2832
|
+
if (ns(e), e._isValid === !1)
|
|
2894
2833
|
delete e._isValid;
|
|
2895
2834
|
else
|
|
2896
2835
|
return;
|
|
@@ -2905,7 +2844,7 @@ g.createFromInputFallback = V(
|
|
|
2905
2844
|
function be(e, t, n) {
|
|
2906
2845
|
return e ?? t ?? n;
|
|
2907
2846
|
}
|
|
2908
|
-
function
|
|
2847
|
+
function Lr(e) {
|
|
2909
2848
|
var t = new Date(g.now());
|
|
2910
2849
|
return e._useUTC ? [
|
|
2911
2850
|
t.getUTCFullYear(),
|
|
@@ -2913,112 +2852,112 @@ function Yr(e) {
|
|
|
2913
2852
|
t.getUTCDate()
|
|
2914
2853
|
] : [t.getFullYear(), t.getMonth(), t.getDate()];
|
|
2915
2854
|
}
|
|
2916
|
-
function
|
|
2855
|
+
function sn(e) {
|
|
2917
2856
|
var t, n, s = [], i, r, a;
|
|
2918
2857
|
if (!e._d) {
|
|
2919
|
-
for (i =
|
|
2858
|
+
for (i = Lr(e), e._w && e._a[J] == null && e._a[se] == null && Rr(e), e._dayOfYear != null && (a = be(e._a[P], i[P]), (e._dayOfYear > Ie(a) || e._dayOfYear === 0) && (_(e)._overflowDayOfYear = !0), n = He(a, 0, e._dayOfYear), e._a[se] = n.getUTCMonth(), e._a[J] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
|
|
2920
2859
|
e._a[t] = s[t] = i[t];
|
|
2921
2860
|
for (; t < 7; t++)
|
|
2922
2861
|
e._a[t] = s[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
|
|
2923
|
-
e._a[R] === 24 && e._a[z] === 0 && e._a[ie] === 0 && e._a[pe] === 0 && (e._nextDay = !0, e._a[R] = 0), e._d = (e._useUTC ? He :
|
|
2862
|
+
e._a[R] === 24 && e._a[z] === 0 && e._a[ie] === 0 && e._a[pe] === 0 && (e._nextDay = !0, e._a[R] = 0), e._d = (e._useUTC ? He : Ii).apply(
|
|
2924
2863
|
null,
|
|
2925
2864
|
s
|
|
2926
2865
|
), r = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[R] = 24), e._w && typeof e._w.d < "u" && e._w.d !== r && (_(e).weekdayMismatch = !0);
|
|
2927
2866
|
}
|
|
2928
2867
|
}
|
|
2929
|
-
function
|
|
2868
|
+
function Rr(e) {
|
|
2930
2869
|
var t, n, s, i, r, a, o, u, l;
|
|
2931
2870
|
t = e._w, t.GG != null || t.W != null || t.E != null ? (r = 1, a = 4, n = be(
|
|
2932
2871
|
t.GG,
|
|
2933
|
-
e._a[
|
|
2872
|
+
e._a[P],
|
|
2934
2873
|
$e(O(), 1, 4).year
|
|
2935
|
-
), s = be(t.W, 1), i = be(t.E, 1), (i < 1 || i > 7) && (u = !0)) : (r = e._locale._week.dow, a = e._locale._week.doy, l = $e(O(), r, a), n = be(t.gg, e._a[
|
|
2874
|
+
), s = be(t.W, 1), i = be(t.E, 1), (i < 1 || i > 7) && (u = !0)) : (r = e._locale._week.dow, a = e._locale._week.doy, l = $e(O(), r, a), n = be(t.gg, e._a[P], l.year), s = be(t.w, l.week), t.d != null ? (i = t.d, (i < 0 || i > 6) && (u = !0)) : t.e != null ? (i = t.e + r, (t.e < 0 || t.e > 6) && (u = !0)) : i = r), s < 1 || s > ae(n, r, a) ? _(e)._overflowWeeks = !0 : u != null ? _(e)._overflowWeekday = !0 : (o = Jn(n, s, i, r, a), e._a[P] = o.year, e._dayOfYear = o.dayOfYear);
|
|
2936
2875
|
}
|
|
2937
2876
|
g.ISO_8601 = function() {
|
|
2938
2877
|
};
|
|
2939
2878
|
g.RFC_2822 = function() {
|
|
2940
2879
|
};
|
|
2941
|
-
function
|
|
2880
|
+
function rn(e) {
|
|
2942
2881
|
if (e._f === g.ISO_8601) {
|
|
2943
|
-
|
|
2882
|
+
ts(e);
|
|
2944
2883
|
return;
|
|
2945
2884
|
}
|
|
2946
2885
|
if (e._f === g.RFC_2822) {
|
|
2947
|
-
|
|
2886
|
+
ns(e);
|
|
2948
2887
|
return;
|
|
2949
2888
|
}
|
|
2950
2889
|
e._a = [], _(e).empty = !0;
|
|
2951
2890
|
var t = "" + e._i, n, s, i, r, a, o = t.length, u = 0, l, h;
|
|
2952
|
-
for (i =
|
|
2953
|
-
r = i[n], s = (t.match(
|
|
2891
|
+
for (i = In(e._f, e._locale).match(zt) || [], h = i.length, n = 0; n < h; n++)
|
|
2892
|
+
r = i[n], s = (t.match(vi(r, e)) || [])[0], s && (a = t.substr(0, t.indexOf(s)), a.length > 0 && _(e).unusedInput.push(a), t = t.slice(
|
|
2954
2893
|
t.indexOf(s) + s.length
|
|
2955
|
-
), u += s.length), ke[r] ? (s ? _(e).empty = !1 : _(e).unusedTokens.push(r),
|
|
2956
|
-
_(e).charsLeftOver = o - u, t.length > 0 && _(e).unusedInput.push(t), e._a[R] <= 12 && _(e).bigHour === !0 && e._a[R] > 0 && (_(e).bigHour = void 0), _(e).parsedDateParts = e._a.slice(0), _(e).meridiem = e._meridiem, e._a[R] =
|
|
2894
|
+
), u += s.length), ke[r] ? (s ? _(e).empty = !1 : _(e).unusedTokens.push(r), Si(r, s, e)) : e._strict && !s && _(e).unusedTokens.push(r);
|
|
2895
|
+
_(e).charsLeftOver = o - u, t.length > 0 && _(e).unusedInput.push(t), e._a[R] <= 12 && _(e).bigHour === !0 && e._a[R] > 0 && (_(e).bigHour = void 0), _(e).parsedDateParts = e._a.slice(0), _(e).meridiem = e._meridiem, e._a[R] = Pr(
|
|
2957
2896
|
e._locale,
|
|
2958
2897
|
e._a[R],
|
|
2959
2898
|
e._meridiem
|
|
2960
|
-
), l = _(e).era, l !== null && (e._a[
|
|
2899
|
+
), l = _(e).era, l !== null && (e._a[P] = e._locale.erasConvertYear(l, e._a[P])), sn(e), nn(e);
|
|
2961
2900
|
}
|
|
2962
|
-
function
|
|
2901
|
+
function Pr(e, t, n) {
|
|
2963
2902
|
var s;
|
|
2964
2903
|
return n == null ? t : e.meridiemHour != null ? e.meridiemHour(t, n) : (e.isPM != null && (s = e.isPM(n), s && t < 12 && (t += 12), !s && t === 12 && (t = 0)), t);
|
|
2965
2904
|
}
|
|
2966
|
-
function
|
|
2905
|
+
function Tr(e) {
|
|
2967
2906
|
var t, n, s, i, r, a, o = !1, u = e._f.length;
|
|
2968
2907
|
if (u === 0) {
|
|
2969
2908
|
_(e).invalidFormat = !0, e._d = /* @__PURE__ */ new Date(NaN);
|
|
2970
2909
|
return;
|
|
2971
2910
|
}
|
|
2972
2911
|
for (i = 0; i < u; i++)
|
|
2973
|
-
r = 0, a = !1, t =
|
|
2912
|
+
r = 0, a = !1, t = Wt({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[i], rn(t), Vt(t) && (a = !0), r += _(t).charsLeftOver, r += _(t).unusedTokens.length * 10, _(t).score = r, o ? r < s && (s = r, n = t) : (s == null || r < s || a) && (s = r, n = t, a && (o = !0));
|
|
2974
2913
|
de(e, n || t);
|
|
2975
2914
|
}
|
|
2976
|
-
function
|
|
2915
|
+
function Er(e) {
|
|
2977
2916
|
if (!e._d) {
|
|
2978
|
-
var t =
|
|
2979
|
-
e._a =
|
|
2917
|
+
var t = Kt(e._i), n = t.day === void 0 ? t.date : t.day;
|
|
2918
|
+
e._a = En(
|
|
2980
2919
|
[t.year, t.month, n, t.hour, t.minute, t.second, t.millisecond],
|
|
2981
2920
|
function(s) {
|
|
2982
2921
|
return s && parseInt(s, 10);
|
|
2983
2922
|
}
|
|
2984
|
-
),
|
|
2923
|
+
), sn(e);
|
|
2985
2924
|
}
|
|
2986
2925
|
}
|
|
2987
|
-
function
|
|
2988
|
-
var t = new Ge(
|
|
2926
|
+
function Fr(e) {
|
|
2927
|
+
var t = new Ge(nn(ss(e)));
|
|
2989
2928
|
return t._nextDay && (t.add(1, "d"), t._nextDay = void 0), t;
|
|
2990
2929
|
}
|
|
2991
|
-
function
|
|
2930
|
+
function ss(e) {
|
|
2992
2931
|
var t = e._i, n = e._f;
|
|
2993
|
-
return e._locale = e._locale || ue(e._l), t === null || n === void 0 && t === "" ? ft({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), B(t) ? new Ge(
|
|
2932
|
+
return e._locale = e._locale || ue(e._l), t === null || n === void 0 && t === "" ? ft({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), B(t) ? new Ge(nn(t)) : (We(t) ? e._d = t : K(n) ? Tr(e) : n ? rn(e) : Ar(e), Vt(e) || (e._d = null), e));
|
|
2994
2933
|
}
|
|
2995
|
-
function
|
|
2934
|
+
function Ar(e) {
|
|
2996
2935
|
var t = e._i;
|
|
2997
|
-
|
|
2936
|
+
A(t) ? e._d = new Date(g.now()) : We(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? Cr(e) : K(t) ? (e._a = En(t.slice(0), function(n) {
|
|
2998
2937
|
return parseInt(n, 10);
|
|
2999
|
-
}),
|
|
2938
|
+
}), sn(e)) : ye(t) ? Er(e) : oe(t) ? e._d = new Date(t) : g.createFromInputFallback(e);
|
|
3000
2939
|
}
|
|
3001
|
-
function
|
|
2940
|
+
function is(e, t, n, s, i) {
|
|
3002
2941
|
var r = {};
|
|
3003
|
-
return (t === !0 || t === !1) && (s = t, t = void 0), (n === !0 || n === !1) && (s = n, n = void 0), (ye(e) &&
|
|
2942
|
+
return (t === !0 || t === !1) && (s = t, t = void 0), (n === !0 || n === !1) && (s = n, n = void 0), (ye(e) && $t(e) || K(e) && e.length === 0) && (e = void 0), r._isAMomentObject = !0, r._useUTC = r._isUTC = i, r._l = n, r._i = e, r._f = t, r._strict = s, Fr(r);
|
|
3004
2943
|
}
|
|
3005
2944
|
function O(e, t, n, s) {
|
|
3006
|
-
return
|
|
2945
|
+
return is(e, t, n, s, !1);
|
|
3007
2946
|
}
|
|
3008
|
-
var
|
|
2947
|
+
var Ir = V(
|
|
3009
2948
|
"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
3010
2949
|
function() {
|
|
3011
2950
|
var e = O.apply(null, arguments);
|
|
3012
2951
|
return this.isValid() && e.isValid() ? e < this ? this : e : ft();
|
|
3013
2952
|
}
|
|
3014
|
-
),
|
|
2953
|
+
), jr = V(
|
|
3015
2954
|
"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
3016
2955
|
function() {
|
|
3017
2956
|
var e = O.apply(null, arguments);
|
|
3018
2957
|
return this.isValid() && e.isValid() ? e > this ? this : e : ft();
|
|
3019
2958
|
}
|
|
3020
2959
|
);
|
|
3021
|
-
function
|
|
2960
|
+
function rs(e, t) {
|
|
3022
2961
|
var n, s;
|
|
3023
2962
|
if (t.length === 1 && K(t[0]) && (t = t[0]), !t.length)
|
|
3024
2963
|
return O();
|
|
@@ -3026,15 +2965,15 @@ function ns(e, t) {
|
|
|
3026
2965
|
(!t[s].isValid() || t[s][e](n)) && (n = t[s]);
|
|
3027
2966
|
return n;
|
|
3028
2967
|
}
|
|
3029
|
-
function
|
|
2968
|
+
function Ur() {
|
|
3030
2969
|
var e = [].slice.call(arguments, 0);
|
|
3031
|
-
return
|
|
2970
|
+
return rs("isBefore", e);
|
|
3032
2971
|
}
|
|
3033
|
-
function
|
|
2972
|
+
function Hr() {
|
|
3034
2973
|
var e = [].slice.call(arguments, 0);
|
|
3035
|
-
return
|
|
2974
|
+
return rs("isAfter", e);
|
|
3036
2975
|
}
|
|
3037
|
-
var
|
|
2976
|
+
var $r = function() {
|
|
3038
2977
|
return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
|
|
3039
2978
|
}, Fe = [
|
|
3040
2979
|
"year",
|
|
@@ -3047,7 +2986,7 @@ var Ir = function() {
|
|
|
3047
2986
|
"second",
|
|
3048
2987
|
"millisecond"
|
|
3049
2988
|
];
|
|
3050
|
-
function
|
|
2989
|
+
function Vr(e) {
|
|
3051
2990
|
var t, n = !1, s, i = Fe.length;
|
|
3052
2991
|
for (t in e)
|
|
3053
2992
|
if (S(e, t) && !(L.call(Fe, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
|
|
@@ -3060,15 +2999,15 @@ function Ur(e) {
|
|
|
3060
2999
|
}
|
|
3061
3000
|
return !0;
|
|
3062
3001
|
}
|
|
3063
|
-
function
|
|
3002
|
+
function Wr() {
|
|
3064
3003
|
return this._isValid;
|
|
3065
3004
|
}
|
|
3066
|
-
function
|
|
3005
|
+
function Gr() {
|
|
3067
3006
|
return q(NaN);
|
|
3068
3007
|
}
|
|
3069
3008
|
function St(e) {
|
|
3070
|
-
var t =
|
|
3071
|
-
this._isValid =
|
|
3009
|
+
var t = Kt(e), n = t.year || 0, s = t.quarter || 0, i = t.month || 0, r = t.week || t.isoWeek || 0, a = t.day || 0, o = t.hour || 0, u = t.minute || 0, l = t.second || 0, h = t.millisecond || 0;
|
|
3010
|
+
this._isValid = Vr(t), this._milliseconds = +h + l * 1e3 + // 1000
|
|
3072
3011
|
u * 6e4 + // 1000 * 60
|
|
3073
3012
|
o * 1e3 * 60 * 60, this._days = +a + r * 7, this._months = +i + s * 3 + n * 12, this._data = {}, this._locale = ue(), this._bubble();
|
|
3074
3013
|
}
|
|
@@ -3078,105 +3017,105 @@ function tt(e) {
|
|
|
3078
3017
|
function jt(e) {
|
|
3079
3018
|
return e < 0 ? Math.round(-1 * e) * -1 : Math.round(e);
|
|
3080
3019
|
}
|
|
3081
|
-
function
|
|
3020
|
+
function zr(e, t, n) {
|
|
3082
3021
|
var s = Math.min(e.length, t.length), i = Math.abs(e.length - t.length), r = 0, a;
|
|
3083
3022
|
for (a = 0; a < s; a++)
|
|
3084
3023
|
v(e[a]) !== v(t[a]) && r++;
|
|
3085
3024
|
return r + i;
|
|
3086
3025
|
}
|
|
3087
|
-
function
|
|
3026
|
+
function as(e, t) {
|
|
3088
3027
|
p(e, 0, 0, function() {
|
|
3089
3028
|
var n = this.utcOffset(), s = "+";
|
|
3090
3029
|
return n < 0 && (n = -n, s = "-"), s + Q(~~(n / 60), 2) + t + Q(~~n % 60, 2);
|
|
3091
3030
|
});
|
|
3092
3031
|
}
|
|
3093
|
-
|
|
3094
|
-
|
|
3032
|
+
as("Z", ":");
|
|
3033
|
+
as("ZZ", "");
|
|
3095
3034
|
m("Z", _t);
|
|
3096
3035
|
m("ZZ", _t);
|
|
3097
3036
|
k(["Z", "ZZ"], function(e, t, n) {
|
|
3098
|
-
n._useUTC = !0, n._tzm =
|
|
3037
|
+
n._useUTC = !0, n._tzm = an(_t, e);
|
|
3099
3038
|
});
|
|
3100
|
-
var
|
|
3101
|
-
function
|
|
3039
|
+
var Kr = /([\+\-]|\d\d)/gi;
|
|
3040
|
+
function an(e, t) {
|
|
3102
3041
|
var n = (t || "").match(e), s, i, r;
|
|
3103
|
-
return n === null ? null : (s = n[n.length - 1] || [], i = (s + "").match(
|
|
3042
|
+
return n === null ? null : (s = n[n.length - 1] || [], i = (s + "").match(Kr) || ["-", 0, 0], r = +(i[1] * 60) + v(i[2]), r === 0 ? 0 : i[0] === "+" ? r : -r);
|
|
3104
3043
|
}
|
|
3105
|
-
function
|
|
3044
|
+
function on(e, t) {
|
|
3106
3045
|
var n, s;
|
|
3107
3046
|
return t._isUTC ? (n = t.clone(), s = (B(e) || We(e) ? e.valueOf() : O(e).valueOf()) - n.valueOf(), n._d.setTime(n._d.valueOf() + s), g.updateOffset(n, !1), n) : O(e).local();
|
|
3108
3047
|
}
|
|
3109
|
-
function
|
|
3048
|
+
function Ut(e) {
|
|
3110
3049
|
return -Math.round(e._d.getTimezoneOffset());
|
|
3111
3050
|
}
|
|
3112
3051
|
g.updateOffset = function() {
|
|
3113
3052
|
};
|
|
3114
|
-
function
|
|
3053
|
+
function Br(e, t, n) {
|
|
3115
3054
|
var s = this._offset || 0, i;
|
|
3116
3055
|
if (!this.isValid())
|
|
3117
3056
|
return e != null ? this : NaN;
|
|
3118
3057
|
if (e != null) {
|
|
3119
3058
|
if (typeof e == "string") {
|
|
3120
|
-
if (e =
|
|
3059
|
+
if (e = an(_t, e), e === null)
|
|
3121
3060
|
return this;
|
|
3122
3061
|
} else
|
|
3123
3062
|
Math.abs(e) < 16 && !n && (e = e * 60);
|
|
3124
|
-
return !this._isUTC && t && (i =
|
|
3063
|
+
return !this._isUTC && t && (i = Ut(this)), this._offset = e, this._isUTC = !0, i != null && this.add(i, "m"), s !== e && (!t || this._changeInProgress ? ls(
|
|
3125
3064
|
this,
|
|
3126
3065
|
q(e - s, "m"),
|
|
3127
3066
|
1,
|
|
3128
3067
|
!1
|
|
3129
3068
|
) : this._changeInProgress || (this._changeInProgress = !0, g.updateOffset(this, !0), this._changeInProgress = null)), this;
|
|
3130
3069
|
} else
|
|
3131
|
-
return this._isUTC ? s :
|
|
3070
|
+
return this._isUTC ? s : Ut(this);
|
|
3132
3071
|
}
|
|
3133
|
-
function
|
|
3072
|
+
function qr(e, t) {
|
|
3134
3073
|
return e != null ? (typeof e != "string" && (e = -e), this.utcOffset(e, t), this) : -this.utcOffset();
|
|
3135
3074
|
}
|
|
3136
|
-
function
|
|
3075
|
+
function Jr(e) {
|
|
3137
3076
|
return this.utcOffset(0, e);
|
|
3138
3077
|
}
|
|
3139
|
-
function
|
|
3140
|
-
return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(
|
|
3078
|
+
function Zr(e) {
|
|
3079
|
+
return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(Ut(this), "m")), this;
|
|
3141
3080
|
}
|
|
3142
|
-
function
|
|
3081
|
+
function Qr() {
|
|
3143
3082
|
if (this._tzm != null)
|
|
3144
3083
|
this.utcOffset(this._tzm, !1, !0);
|
|
3145
3084
|
else if (typeof this._i == "string") {
|
|
3146
|
-
var e =
|
|
3085
|
+
var e = an(yi, this._i);
|
|
3147
3086
|
e != null ? this.utcOffset(e) : this.utcOffset(0, !0);
|
|
3148
3087
|
}
|
|
3149
3088
|
return this;
|
|
3150
3089
|
}
|
|
3151
|
-
function
|
|
3090
|
+
function Xr(e) {
|
|
3152
3091
|
return this.isValid() ? (e = e ? O(e).utcOffset() : 0, (this.utcOffset() - e) % 60 === 0) : !1;
|
|
3153
3092
|
}
|
|
3154
|
-
function
|
|
3093
|
+
function ea() {
|
|
3155
3094
|
return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
|
|
3156
3095
|
}
|
|
3157
|
-
function
|
|
3158
|
-
if (!
|
|
3096
|
+
function ta() {
|
|
3097
|
+
if (!A(this._isDSTShifted))
|
|
3159
3098
|
return this._isDSTShifted;
|
|
3160
3099
|
var e = {}, t;
|
|
3161
|
-
return
|
|
3100
|
+
return Wt(e, this), e = ss(e), e._a ? (t = e._isUTC ? X(e._a) : O(e._a), this._isDSTShifted = this.isValid() && zr(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
|
|
3162
3101
|
}
|
|
3163
|
-
function
|
|
3102
|
+
function na() {
|
|
3164
3103
|
return this.isValid() ? !this._isUTC : !1;
|
|
3165
3104
|
}
|
|
3166
|
-
function
|
|
3105
|
+
function sa() {
|
|
3167
3106
|
return this.isValid() ? this._isUTC : !1;
|
|
3168
3107
|
}
|
|
3169
|
-
function
|
|
3108
|
+
function os() {
|
|
3170
3109
|
return this.isValid() ? this._isUTC && this._offset === 0 : !1;
|
|
3171
3110
|
}
|
|
3172
|
-
var
|
|
3111
|
+
var ia = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, ra = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
|
3173
3112
|
function q(e, t) {
|
|
3174
3113
|
var n = e, s = null, i, r, a;
|
|
3175
3114
|
return tt(e) ? n = {
|
|
3176
3115
|
ms: e._milliseconds,
|
|
3177
3116
|
d: e._days,
|
|
3178
3117
|
M: e._months
|
|
3179
|
-
} : oe(e) || !isNaN(+e) ? (n = {}, t ? n[t] = +e : n.milliseconds = +e) : (s =
|
|
3118
|
+
} : oe(e) || !isNaN(+e) ? (n = {}, t ? n[t] = +e : n.milliseconds = +e) : (s = ia.exec(e)) ? (i = s[1] === "-" ? -1 : 1, n = {
|
|
3180
3119
|
y: 0,
|
|
3181
3120
|
d: v(s[J]) * i,
|
|
3182
3121
|
h: v(s[R]) * i,
|
|
@@ -3184,7 +3123,7 @@ function q(e, t) {
|
|
|
3184
3123
|
s: v(s[ie]) * i,
|
|
3185
3124
|
ms: v(jt(s[pe] * 1e3)) * i
|
|
3186
3125
|
// the millisecond decimal point is included in the match
|
|
3187
|
-
}) : (s =
|
|
3126
|
+
}) : (s = ra.exec(e)) ? (i = s[1] === "-" ? -1 : 1, n = {
|
|
3188
3127
|
y: ge(s[2], i),
|
|
3189
3128
|
M: ge(s[3], i),
|
|
3190
3129
|
w: ge(s[4], i),
|
|
@@ -3192,47 +3131,47 @@ function q(e, t) {
|
|
|
3192
3131
|
h: ge(s[6], i),
|
|
3193
3132
|
m: ge(s[7], i),
|
|
3194
3133
|
s: ge(s[8], i)
|
|
3195
|
-
}) : n == null ? n = {} : typeof n == "object" && ("from" in n || "to" in n) && (a =
|
|
3134
|
+
}) : n == null ? n = {} : typeof n == "object" && ("from" in n || "to" in n) && (a = aa(
|
|
3196
3135
|
O(n.from),
|
|
3197
3136
|
O(n.to)
|
|
3198
3137
|
), n = {}, n.ms = a.milliseconds, n.M = a.months), r = new St(n), tt(e) && S(e, "_locale") && (r._locale = e._locale), tt(e) && S(e, "_isValid") && (r._isValid = e._isValid), r;
|
|
3199
3138
|
}
|
|
3200
3139
|
q.fn = St.prototype;
|
|
3201
|
-
q.invalid =
|
|
3140
|
+
q.invalid = Gr;
|
|
3202
3141
|
function ge(e, t) {
|
|
3203
3142
|
var n = e && parseFloat(e.replace(",", "."));
|
|
3204
3143
|
return (isNaN(n) ? 0 : n) * t;
|
|
3205
3144
|
}
|
|
3206
|
-
function
|
|
3145
|
+
function Nn(e, t) {
|
|
3207
3146
|
var n = {};
|
|
3208
3147
|
return n.months = t.month() - e.month() + (t.year() - e.year()) * 12, e.clone().add(n.months, "M").isAfter(t) && --n.months, n.milliseconds = +t - +e.clone().add(n.months, "M"), n;
|
|
3209
3148
|
}
|
|
3210
|
-
function
|
|
3149
|
+
function aa(e, t) {
|
|
3211
3150
|
var n;
|
|
3212
|
-
return e.isValid() && t.isValid() ? (t =
|
|
3151
|
+
return e.isValid() && t.isValid() ? (t = on(t, e), e.isBefore(t) ? n = Nn(e, t) : (n = Nn(t, e), n.milliseconds = -n.milliseconds, n.months = -n.months), n) : { milliseconds: 0, months: 0 };
|
|
3213
3152
|
}
|
|
3214
|
-
function
|
|
3153
|
+
function us(e, t) {
|
|
3215
3154
|
return function(n, s) {
|
|
3216
3155
|
var i, r;
|
|
3217
|
-
return s !== null && !isNaN(+s) && (
|
|
3156
|
+
return s !== null && !isNaN(+s) && (An(
|
|
3218
3157
|
t,
|
|
3219
3158
|
"moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
|
|
3220
|
-
), r = n, n = s, s = r), i = q(n, s),
|
|
3159
|
+
), r = n, n = s, s = r), i = q(n, s), ls(this, i, e), this;
|
|
3221
3160
|
};
|
|
3222
3161
|
}
|
|
3223
|
-
function
|
|
3162
|
+
function ls(e, t, n, s) {
|
|
3224
3163
|
var i = t._milliseconds, r = jt(t._days), a = jt(t._months);
|
|
3225
|
-
e.isValid() && (s = s ?? !0, a &&
|
|
3164
|
+
e.isValid() && (s = s ?? !0, a && Kn(e, Ue(e, "Month") + a * n), r && Wn(e, "Date", Ue(e, "Date") + r * n), i && e._d.setTime(e._d.valueOf() + i * n), s && g.updateOffset(e, r || a));
|
|
3226
3165
|
}
|
|
3227
|
-
var
|
|
3228
|
-
function
|
|
3166
|
+
var oa = us(1, "add"), ua = us(-1, "subtract");
|
|
3167
|
+
function ds(e) {
|
|
3229
3168
|
return typeof e == "string" || e instanceof String;
|
|
3230
3169
|
}
|
|
3231
|
-
function
|
|
3232
|
-
return B(e) || We(e) ||
|
|
3170
|
+
function la(e) {
|
|
3171
|
+
return B(e) || We(e) || ds(e) || oe(e) || ha(e) || da(e) || e === null || e === void 0;
|
|
3233
3172
|
}
|
|
3234
|
-
function
|
|
3235
|
-
var t = ye(e) &&
|
|
3173
|
+
function da(e) {
|
|
3174
|
+
var t = ye(e) && !$t(e), n = !1, s = [
|
|
3236
3175
|
"years",
|
|
3237
3176
|
"year",
|
|
3238
3177
|
"y",
|
|
@@ -3262,14 +3201,14 @@ function oa(e) {
|
|
|
3262
3201
|
r = s[i], n = n || S(e, r);
|
|
3263
3202
|
return t && n;
|
|
3264
3203
|
}
|
|
3265
|
-
function
|
|
3204
|
+
function ha(e) {
|
|
3266
3205
|
var t = K(e), n = !1;
|
|
3267
3206
|
return t && (n = e.filter(function(s) {
|
|
3268
|
-
return !oe(s) &&
|
|
3207
|
+
return !oe(s) && ds(e);
|
|
3269
3208
|
}).length === 0), t && n;
|
|
3270
3209
|
}
|
|
3271
|
-
function
|
|
3272
|
-
var t = ye(e) &&
|
|
3210
|
+
function ca(e) {
|
|
3211
|
+
var t = ye(e) && !$t(e), n = !1, s = [
|
|
3273
3212
|
"sameDay",
|
|
3274
3213
|
"nextDay",
|
|
3275
3214
|
"lastDay",
|
|
@@ -3281,47 +3220,47 @@ function la(e) {
|
|
|
3281
3220
|
r = s[i], n = n || S(e, r);
|
|
3282
3221
|
return t && n;
|
|
3283
3222
|
}
|
|
3284
|
-
function
|
|
3223
|
+
function fa(e, t) {
|
|
3285
3224
|
var n = e.diff(t, "days", !0);
|
|
3286
3225
|
return n < -6 ? "sameElse" : n < -1 ? "lastWeek" : n < 0 ? "lastDay" : n < 1 ? "sameDay" : n < 2 ? "nextDay" : n < 7 ? "nextWeek" : "sameElse";
|
|
3287
3226
|
}
|
|
3288
|
-
function
|
|
3289
|
-
arguments.length === 1 && (arguments[0] ?
|
|
3290
|
-
var n = e || O(), s =
|
|
3227
|
+
function ga(e, t) {
|
|
3228
|
+
arguments.length === 1 && (arguments[0] ? la(arguments[0]) ? (e = arguments[0], t = void 0) : ca(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
|
|
3229
|
+
var n = e || O(), s = on(n, this).startOf("day"), i = g.calendarFormat(this, s) || "sameElse", r = t && (ee(t[i]) ? t[i].call(this, n) : t[i]);
|
|
3291
3230
|
return this.format(
|
|
3292
3231
|
r || this.localeData().calendar(i, this, O(n))
|
|
3293
3232
|
);
|
|
3294
3233
|
}
|
|
3295
|
-
function
|
|
3234
|
+
function ma() {
|
|
3296
3235
|
return new Ge(this);
|
|
3297
3236
|
}
|
|
3298
|
-
function
|
|
3237
|
+
function pa(e, t) {
|
|
3299
3238
|
var n = B(e) ? e : O(e);
|
|
3300
3239
|
return this.isValid() && n.isValid() ? (t = W(t) || "millisecond", t === "millisecond" ? this.valueOf() > n.valueOf() : n.valueOf() < this.clone().startOf(t).valueOf()) : !1;
|
|
3301
3240
|
}
|
|
3302
|
-
function
|
|
3241
|
+
function ya(e, t) {
|
|
3303
3242
|
var n = B(e) ? e : O(e);
|
|
3304
3243
|
return this.isValid() && n.isValid() ? (t = W(t) || "millisecond", t === "millisecond" ? this.valueOf() < n.valueOf() : this.clone().endOf(t).valueOf() < n.valueOf()) : !1;
|
|
3305
3244
|
}
|
|
3306
|
-
function
|
|
3245
|
+
function _a(e, t, n, s) {
|
|
3307
3246
|
var i = B(e) ? e : O(e), r = B(t) ? t : O(t);
|
|
3308
3247
|
return this.isValid() && i.isValid() && r.isValid() ? (s = s || "()", (s[0] === "(" ? this.isAfter(i, n) : !this.isBefore(i, n)) && (s[1] === ")" ? this.isBefore(r, n) : !this.isAfter(r, n))) : !1;
|
|
3309
3248
|
}
|
|
3310
|
-
function
|
|
3249
|
+
function va(e, t) {
|
|
3311
3250
|
var n = B(e) ? e : O(e), s;
|
|
3312
3251
|
return this.isValid() && n.isValid() ? (t = W(t) || "millisecond", t === "millisecond" ? this.valueOf() === n.valueOf() : (s = n.valueOf(), this.clone().startOf(t).valueOf() <= s && s <= this.clone().endOf(t).valueOf())) : !1;
|
|
3313
3252
|
}
|
|
3314
|
-
function
|
|
3253
|
+
function wa(e, t) {
|
|
3315
3254
|
return this.isSame(e, t) || this.isAfter(e, t);
|
|
3316
3255
|
}
|
|
3317
|
-
function
|
|
3256
|
+
function Sa(e, t) {
|
|
3318
3257
|
return this.isSame(e, t) || this.isBefore(e, t);
|
|
3319
3258
|
}
|
|
3320
|
-
function
|
|
3259
|
+
function ba(e, t, n) {
|
|
3321
3260
|
var s, i, r;
|
|
3322
3261
|
if (!this.isValid())
|
|
3323
3262
|
return NaN;
|
|
3324
|
-
if (s =
|
|
3263
|
+
if (s = on(e, this), !s.isValid())
|
|
3325
3264
|
return NaN;
|
|
3326
3265
|
switch (i = (s.utcOffset() - this.utcOffset()) * 6e4, t = W(t), t) {
|
|
3327
3266
|
case "year":
|
|
@@ -3361,10 +3300,10 @@ function nt(e, t) {
|
|
|
3361
3300
|
}
|
|
3362
3301
|
g.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
|
|
3363
3302
|
g.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
3364
|
-
function
|
|
3303
|
+
function xa() {
|
|
3365
3304
|
return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
|
|
3366
3305
|
}
|
|
3367
|
-
function
|
|
3306
|
+
function ka(e) {
|
|
3368
3307
|
if (!this.isValid())
|
|
3369
3308
|
return null;
|
|
3370
3309
|
var t = e !== !0, n = t ? this.clone().utc() : this;
|
|
@@ -3376,57 +3315,57 @@ function Sa(e) {
|
|
|
3376
3315
|
t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
|
|
3377
3316
|
);
|
|
3378
3317
|
}
|
|
3379
|
-
function
|
|
3318
|
+
function Oa() {
|
|
3380
3319
|
if (!this.isValid())
|
|
3381
3320
|
return "moment.invalid(/* " + this._i + " */)";
|
|
3382
3321
|
var e = "moment", t = "", n, s, i, r;
|
|
3383
3322
|
return this.isLocal() || (e = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", t = "Z"), n = "[" + e + '("]', s = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", i = "-MM-DD[T]HH:mm:ss.SSS", r = t + '[")]', this.format(n + s + i + r);
|
|
3384
3323
|
}
|
|
3385
|
-
function
|
|
3324
|
+
function Ma(e) {
|
|
3386
3325
|
e || (e = this.isUtc() ? g.defaultFormatUtc : g.defaultFormat);
|
|
3387
3326
|
var t = et(this, e);
|
|
3388
3327
|
return this.localeData().postformat(t);
|
|
3389
3328
|
}
|
|
3390
|
-
function
|
|
3329
|
+
function Da(e, t) {
|
|
3391
3330
|
return this.isValid() && (B(e) && e.isValid() || O(e).isValid()) ? q({ to: this, from: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
3392
3331
|
}
|
|
3393
|
-
function
|
|
3332
|
+
function Ya(e) {
|
|
3394
3333
|
return this.from(O(), e);
|
|
3395
3334
|
}
|
|
3396
|
-
function
|
|
3335
|
+
function Na(e, t) {
|
|
3397
3336
|
return this.isValid() && (B(e) && e.isValid() || O(e).isValid()) ? q({ from: this, to: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
3398
3337
|
}
|
|
3399
|
-
function
|
|
3338
|
+
function Ca(e) {
|
|
3400
3339
|
return this.to(O(), e);
|
|
3401
3340
|
}
|
|
3402
|
-
function
|
|
3341
|
+
function hs(e) {
|
|
3403
3342
|
var t;
|
|
3404
3343
|
return e === void 0 ? this._locale._abbr : (t = ue(e), t != null && (this._locale = t), this);
|
|
3405
3344
|
}
|
|
3406
|
-
var
|
|
3345
|
+
var cs = V(
|
|
3407
3346
|
"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
|
|
3408
3347
|
function(e) {
|
|
3409
3348
|
return e === void 0 ? this.localeData() : this.locale(e);
|
|
3410
3349
|
}
|
|
3411
3350
|
);
|
|
3412
|
-
function
|
|
3351
|
+
function fs() {
|
|
3413
3352
|
return this._locale;
|
|
3414
3353
|
}
|
|
3415
|
-
var lt = 1e3, Oe = 60 * lt, dt = 60 * Oe,
|
|
3354
|
+
var lt = 1e3, Oe = 60 * lt, dt = 60 * Oe, gs = (365 * 400 + 97) * 24 * dt;
|
|
3416
3355
|
function Me(e, t) {
|
|
3417
3356
|
return (e % t + t) % t;
|
|
3418
3357
|
}
|
|
3419
|
-
function
|
|
3420
|
-
return e < 100 && e >= 0 ? new Date(e + 400, t, n) -
|
|
3358
|
+
function ms(e, t, n) {
|
|
3359
|
+
return e < 100 && e >= 0 ? new Date(e + 400, t, n) - gs : new Date(e, t, n).valueOf();
|
|
3421
3360
|
}
|
|
3422
|
-
function
|
|
3423
|
-
return e < 100 && e >= 0 ? Date.UTC(e + 400, t, n) -
|
|
3361
|
+
function ps(e, t, n) {
|
|
3362
|
+
return e < 100 && e >= 0 ? Date.UTC(e + 400, t, n) - gs : Date.UTC(e, t, n);
|
|
3424
3363
|
}
|
|
3425
|
-
function
|
|
3364
|
+
function La(e) {
|
|
3426
3365
|
var t, n;
|
|
3427
3366
|
if (e = W(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
3428
3367
|
return this;
|
|
3429
|
-
switch (n = this._isUTC ?
|
|
3368
|
+
switch (n = this._isUTC ? ps : ms, e) {
|
|
3430
3369
|
case "year":
|
|
3431
3370
|
t = n(this.year(), 0, 1);
|
|
3432
3371
|
break;
|
|
@@ -3473,11 +3412,11 @@ function Ya(e) {
|
|
|
3473
3412
|
}
|
|
3474
3413
|
return this._d.setTime(t), g.updateOffset(this, !0), this;
|
|
3475
3414
|
}
|
|
3476
|
-
function
|
|
3415
|
+
function Ra(e) {
|
|
3477
3416
|
var t, n;
|
|
3478
3417
|
if (e = W(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
3479
3418
|
return this;
|
|
3480
|
-
switch (n = this._isUTC ?
|
|
3419
|
+
switch (n = this._isUTC ? ps : ms, e) {
|
|
3481
3420
|
case "year":
|
|
3482
3421
|
t = n(this.year() + 1, 0, 1) - 1;
|
|
3483
3422
|
break;
|
|
@@ -3524,16 +3463,16 @@ function Na(e) {
|
|
|
3524
3463
|
}
|
|
3525
3464
|
return this._d.setTime(t), g.updateOffset(this, !0), this;
|
|
3526
3465
|
}
|
|
3527
|
-
function
|
|
3466
|
+
function Pa() {
|
|
3528
3467
|
return this._d.valueOf() - (this._offset || 0) * 6e4;
|
|
3529
3468
|
}
|
|
3530
|
-
function
|
|
3469
|
+
function Ta() {
|
|
3531
3470
|
return Math.floor(this.valueOf() / 1e3);
|
|
3532
3471
|
}
|
|
3533
|
-
function
|
|
3472
|
+
function Ea() {
|
|
3534
3473
|
return new Date(this.valueOf());
|
|
3535
3474
|
}
|
|
3536
|
-
function
|
|
3475
|
+
function Fa() {
|
|
3537
3476
|
var e = this;
|
|
3538
3477
|
return [
|
|
3539
3478
|
e.year(),
|
|
@@ -3545,7 +3484,7 @@ function Pa() {
|
|
|
3545
3484
|
e.millisecond()
|
|
3546
3485
|
];
|
|
3547
3486
|
}
|
|
3548
|
-
function
|
|
3487
|
+
function Aa() {
|
|
3549
3488
|
var e = this;
|
|
3550
3489
|
return {
|
|
3551
3490
|
years: e.year(),
|
|
@@ -3557,19 +3496,19 @@ function Ta() {
|
|
|
3557
3496
|
milliseconds: e.milliseconds()
|
|
3558
3497
|
};
|
|
3559
3498
|
}
|
|
3560
|
-
function
|
|
3499
|
+
function Ia() {
|
|
3561
3500
|
return this.isValid() ? this.toISOString() : null;
|
|
3562
3501
|
}
|
|
3563
|
-
function
|
|
3564
|
-
return
|
|
3502
|
+
function ja() {
|
|
3503
|
+
return Vt(this);
|
|
3565
3504
|
}
|
|
3566
|
-
function
|
|
3505
|
+
function Ua() {
|
|
3567
3506
|
return de({}, _(this));
|
|
3568
3507
|
}
|
|
3569
|
-
function
|
|
3508
|
+
function Ha() {
|
|
3570
3509
|
return _(this).overflow;
|
|
3571
3510
|
}
|
|
3572
|
-
function
|
|
3511
|
+
function $a() {
|
|
3573
3512
|
return {
|
|
3574
3513
|
input: this._i,
|
|
3575
3514
|
format: this._f,
|
|
@@ -3587,11 +3526,11 @@ p("y", ["y", 1], "yo", "eraYear");
|
|
|
3587
3526
|
p("y", ["yy", 2], 0, "eraYear");
|
|
3588
3527
|
p("y", ["yyy", 3], 0, "eraYear");
|
|
3589
3528
|
p("y", ["yyyy", 4], 0, "eraYear");
|
|
3590
|
-
m("N",
|
|
3591
|
-
m("NN",
|
|
3592
|
-
m("NNN",
|
|
3593
|
-
m("NNNN",
|
|
3594
|
-
m("NNNNN",
|
|
3529
|
+
m("N", un);
|
|
3530
|
+
m("NN", un);
|
|
3531
|
+
m("NNN", un);
|
|
3532
|
+
m("NNNN", Xa);
|
|
3533
|
+
m("NNNNN", eo);
|
|
3595
3534
|
k(
|
|
3596
3535
|
["N", "NN", "NNN", "NNNN", "NNNNN"],
|
|
3597
3536
|
function(e, t, n, s) {
|
|
@@ -3603,13 +3542,13 @@ m("y", De);
|
|
|
3603
3542
|
m("yy", De);
|
|
3604
3543
|
m("yyy", De);
|
|
3605
3544
|
m("yyyy", De);
|
|
3606
|
-
m("yo",
|
|
3607
|
-
k(["y", "yy", "yyy", "yyyy"],
|
|
3545
|
+
m("yo", to);
|
|
3546
|
+
k(["y", "yy", "yyy", "yyyy"], P);
|
|
3608
3547
|
k(["yo"], function(e, t, n, s) {
|
|
3609
3548
|
var i;
|
|
3610
|
-
n._locale._eraYearOrdinalRegex && (i = e.match(n._locale._eraYearOrdinalRegex)), n._locale.eraYearOrdinalParse ? t[
|
|
3549
|
+
n._locale._eraYearOrdinalRegex && (i = e.match(n._locale._eraYearOrdinalRegex)), n._locale.eraYearOrdinalParse ? t[P] = n._locale.eraYearOrdinalParse(e, i) : t[P] = parseInt(e, 10);
|
|
3611
3550
|
});
|
|
3612
|
-
function
|
|
3551
|
+
function Va(e, t) {
|
|
3613
3552
|
var n, s, i, r = this._eras || ue("en")._eras;
|
|
3614
3553
|
for (n = 0, s = r.length; n < s; ++n) {
|
|
3615
3554
|
switch (typeof r[n].since) {
|
|
@@ -3628,7 +3567,7 @@ function Ua(e, t) {
|
|
|
3628
3567
|
}
|
|
3629
3568
|
return r;
|
|
3630
3569
|
}
|
|
3631
|
-
function
|
|
3570
|
+
function Wa(e, t, n) {
|
|
3632
3571
|
var s, i, r = this.eras(), a, o, u;
|
|
3633
3572
|
for (e = e.toUpperCase(), s = 0, i = r.length; s < i; ++s)
|
|
3634
3573
|
if (a = r[s].name.toUpperCase(), o = r[s].abbr.toUpperCase(), u = r[s].narrow.toUpperCase(), n)
|
|
@@ -3651,60 +3590,60 @@ function Ha(e, t, n) {
|
|
|
3651
3590
|
else if ([a, o, u].indexOf(e) >= 0)
|
|
3652
3591
|
return r[s];
|
|
3653
3592
|
}
|
|
3654
|
-
function
|
|
3593
|
+
function Ga(e, t) {
|
|
3655
3594
|
var n = e.since <= e.until ? 1 : -1;
|
|
3656
3595
|
return t === void 0 ? g(e.since).year() : g(e.since).year() + (t - e.offset) * n;
|
|
3657
3596
|
}
|
|
3658
|
-
function
|
|
3597
|
+
function za() {
|
|
3659
3598
|
var e, t, n, s = this.localeData().eras();
|
|
3660
3599
|
for (e = 0, t = s.length; e < t; ++e)
|
|
3661
3600
|
if (n = this.clone().startOf("day").valueOf(), s[e].since <= n && n <= s[e].until || s[e].until <= n && n <= s[e].since)
|
|
3662
3601
|
return s[e].name;
|
|
3663
3602
|
return "";
|
|
3664
3603
|
}
|
|
3665
|
-
function
|
|
3604
|
+
function Ka() {
|
|
3666
3605
|
var e, t, n, s = this.localeData().eras();
|
|
3667
3606
|
for (e = 0, t = s.length; e < t; ++e)
|
|
3668
3607
|
if (n = this.clone().startOf("day").valueOf(), s[e].since <= n && n <= s[e].until || s[e].until <= n && n <= s[e].since)
|
|
3669
3608
|
return s[e].narrow;
|
|
3670
3609
|
return "";
|
|
3671
3610
|
}
|
|
3672
|
-
function
|
|
3611
|
+
function Ba() {
|
|
3673
3612
|
var e, t, n, s = this.localeData().eras();
|
|
3674
3613
|
for (e = 0, t = s.length; e < t; ++e)
|
|
3675
3614
|
if (n = this.clone().startOf("day").valueOf(), s[e].since <= n && n <= s[e].until || s[e].until <= n && n <= s[e].since)
|
|
3676
3615
|
return s[e].abbr;
|
|
3677
3616
|
return "";
|
|
3678
3617
|
}
|
|
3679
|
-
function
|
|
3618
|
+
function qa() {
|
|
3680
3619
|
var e, t, n, s, i = this.localeData().eras();
|
|
3681
3620
|
for (e = 0, t = i.length; e < t; ++e)
|
|
3682
3621
|
if (n = i[e].since <= i[e].until ? 1 : -1, s = this.clone().startOf("day").valueOf(), i[e].since <= s && s <= i[e].until || i[e].until <= s && s <= i[e].since)
|
|
3683
3622
|
return (this.year() - g(i[e].since).year()) * n + i[e].offset;
|
|
3684
3623
|
return this.year();
|
|
3685
3624
|
}
|
|
3686
|
-
function
|
|
3687
|
-
return S(this, "_erasNameRegex") ||
|
|
3625
|
+
function Ja(e) {
|
|
3626
|
+
return S(this, "_erasNameRegex") || ln.call(this), e ? this._erasNameRegex : this._erasRegex;
|
|
3688
3627
|
}
|
|
3689
|
-
function
|
|
3690
|
-
return S(this, "_erasAbbrRegex") ||
|
|
3628
|
+
function Za(e) {
|
|
3629
|
+
return S(this, "_erasAbbrRegex") || ln.call(this), e ? this._erasAbbrRegex : this._erasRegex;
|
|
3691
3630
|
}
|
|
3692
|
-
function
|
|
3693
|
-
return S(this, "_erasNarrowRegex") ||
|
|
3631
|
+
function Qa(e) {
|
|
3632
|
+
return S(this, "_erasNarrowRegex") || ln.call(this), e ? this._erasNarrowRegex : this._erasRegex;
|
|
3694
3633
|
}
|
|
3695
|
-
function
|
|
3634
|
+
function un(e, t) {
|
|
3696
3635
|
return t.erasAbbrRegex(e);
|
|
3697
3636
|
}
|
|
3698
|
-
function
|
|
3637
|
+
function Xa(e, t) {
|
|
3699
3638
|
return t.erasNameRegex(e);
|
|
3700
3639
|
}
|
|
3701
|
-
function
|
|
3640
|
+
function eo(e, t) {
|
|
3702
3641
|
return t.erasNarrowRegex(e);
|
|
3703
3642
|
}
|
|
3704
|
-
function
|
|
3643
|
+
function to(e, t) {
|
|
3705
3644
|
return t._eraYearOrdinalRegex || De;
|
|
3706
3645
|
}
|
|
3707
|
-
function
|
|
3646
|
+
function ln() {
|
|
3708
3647
|
var e = [], t = [], n = [], s = [], i, r, a, o, u, l = this.eras();
|
|
3709
3648
|
for (i = 0, r = l.length; i < r; ++i)
|
|
3710
3649
|
a = re(l[i].name), o = re(l[i].abbr), u = re(l[i].narrow), t.push(a), e.push(o), n.push(u), s.push(a), s.push(o), s.push(u);
|
|
@@ -3730,8 +3669,8 @@ m("G", yt);
|
|
|
3730
3669
|
m("g", yt);
|
|
3731
3670
|
m("GG", M, H);
|
|
3732
3671
|
m("gg", M, H);
|
|
3733
|
-
m("GGGG",
|
|
3734
|
-
m("gggg",
|
|
3672
|
+
m("GGGG", qt, Bt);
|
|
3673
|
+
m("gggg", qt, Bt);
|
|
3735
3674
|
m("GGGGG", pt, gt);
|
|
3736
3675
|
m("ggggg", pt, gt);
|
|
3737
3676
|
Ke(
|
|
@@ -3743,8 +3682,8 @@ Ke(
|
|
|
3743
3682
|
Ke(["gg", "GG"], function(e, t, n, s) {
|
|
3744
3683
|
t[s] = g.parseTwoDigitYear(e);
|
|
3745
3684
|
});
|
|
3746
|
-
function
|
|
3747
|
-
return
|
|
3685
|
+
function no(e) {
|
|
3686
|
+
return ys.call(
|
|
3748
3687
|
this,
|
|
3749
3688
|
e,
|
|
3750
3689
|
this.week(),
|
|
@@ -3753,8 +3692,8 @@ function Xa(e) {
|
|
|
3753
3692
|
this.localeData()._week.doy
|
|
3754
3693
|
);
|
|
3755
3694
|
}
|
|
3756
|
-
function
|
|
3757
|
-
return
|
|
3695
|
+
function so(e) {
|
|
3696
|
+
return ys.call(
|
|
3758
3697
|
this,
|
|
3759
3698
|
e,
|
|
3760
3699
|
this.isoWeek(),
|
|
@@ -3763,34 +3702,34 @@ function eo(e) {
|
|
|
3763
3702
|
4
|
|
3764
3703
|
);
|
|
3765
3704
|
}
|
|
3766
|
-
function
|
|
3705
|
+
function io() {
|
|
3767
3706
|
return ae(this.year(), 1, 4);
|
|
3768
3707
|
}
|
|
3769
|
-
function
|
|
3708
|
+
function ro() {
|
|
3770
3709
|
return ae(this.isoWeekYear(), 1, 4);
|
|
3771
3710
|
}
|
|
3772
|
-
function
|
|
3711
|
+
function ao() {
|
|
3773
3712
|
var e = this.localeData()._week;
|
|
3774
3713
|
return ae(this.year(), e.dow, e.doy);
|
|
3775
3714
|
}
|
|
3776
|
-
function
|
|
3715
|
+
function oo() {
|
|
3777
3716
|
var e = this.localeData()._week;
|
|
3778
3717
|
return ae(this.weekYear(), e.dow, e.doy);
|
|
3779
3718
|
}
|
|
3780
|
-
function
|
|
3719
|
+
function ys(e, t, n, s, i) {
|
|
3781
3720
|
var r;
|
|
3782
|
-
return e == null ? $e(this, s, i).year : (r = ae(e, s, i), t > r && (t = r),
|
|
3721
|
+
return e == null ? $e(this, s, i).year : (r = ae(e, s, i), t > r && (t = r), uo.call(this, e, t, n, s, i));
|
|
3783
3722
|
}
|
|
3784
|
-
function
|
|
3785
|
-
var r =
|
|
3723
|
+
function uo(e, t, n, s, i) {
|
|
3724
|
+
var r = Jn(e, t, n, s, i), a = He(r.year, 0, r.dayOfYear);
|
|
3786
3725
|
return this.year(a.getUTCFullYear()), this.month(a.getUTCMonth()), this.date(a.getUTCDate()), this;
|
|
3787
3726
|
}
|
|
3788
3727
|
p("Q", 0, "Qo", "quarter");
|
|
3789
|
-
m("Q",
|
|
3728
|
+
m("Q", jn);
|
|
3790
3729
|
k("Q", function(e, t) {
|
|
3791
3730
|
t[se] = (v(e) - 1) * 3;
|
|
3792
3731
|
});
|
|
3793
|
-
function
|
|
3732
|
+
function lo(e) {
|
|
3794
3733
|
return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
|
|
3795
3734
|
}
|
|
3796
3735
|
p("D", ["DD", 2], "Do", "date");
|
|
@@ -3803,29 +3742,29 @@ k(["D", "DD"], J);
|
|
|
3803
3742
|
k("Do", function(e, t) {
|
|
3804
3743
|
t[J] = v(e.match(M)[0]);
|
|
3805
3744
|
});
|
|
3806
|
-
var
|
|
3745
|
+
var _s = Ne("Date", !0);
|
|
3807
3746
|
p("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
|
|
3808
3747
|
m("DDD", mt);
|
|
3809
|
-
m("DDDD",
|
|
3748
|
+
m("DDDD", Un);
|
|
3810
3749
|
k(["DDD", "DDDD"], function(e, t, n) {
|
|
3811
3750
|
n._dayOfYear = v(e);
|
|
3812
3751
|
});
|
|
3813
|
-
function
|
|
3752
|
+
function ho(e) {
|
|
3814
3753
|
var t = Math.round(
|
|
3815
3754
|
(this.clone().startOf("day") - this.clone().startOf("year")) / 864e5
|
|
3816
3755
|
) + 1;
|
|
3817
3756
|
return e == null ? t : this.add(e - t, "d");
|
|
3818
3757
|
}
|
|
3819
3758
|
p("m", ["mm", 2], 0, "minute");
|
|
3820
|
-
m("m", M,
|
|
3759
|
+
m("m", M, Jt);
|
|
3821
3760
|
m("mm", M, H);
|
|
3822
3761
|
k(["m", "mm"], z);
|
|
3823
|
-
var
|
|
3762
|
+
var co = Ne("Minutes", !1);
|
|
3824
3763
|
p("s", ["ss", 2], 0, "second");
|
|
3825
|
-
m("s", M,
|
|
3764
|
+
m("s", M, Jt);
|
|
3826
3765
|
m("ss", M, H);
|
|
3827
3766
|
k(["s", "ss"], ie);
|
|
3828
|
-
var
|
|
3767
|
+
var fo = Ne("Seconds", !1);
|
|
3829
3768
|
p("S", 0, 0, function() {
|
|
3830
3769
|
return ~~(this.millisecond() / 100);
|
|
3831
3770
|
});
|
|
@@ -3851,173 +3790,173 @@ p(0, ["SSSSSSSS", 8], 0, function() {
|
|
|
3851
3790
|
p(0, ["SSSSSSSSS", 9], 0, function() {
|
|
3852
3791
|
return this.millisecond() * 1e6;
|
|
3853
3792
|
});
|
|
3854
|
-
m("S", mt,
|
|
3793
|
+
m("S", mt, jn);
|
|
3855
3794
|
m("SS", mt, H);
|
|
3856
|
-
m("SSS", mt,
|
|
3857
|
-
var he,
|
|
3795
|
+
m("SSS", mt, Un);
|
|
3796
|
+
var he, vs;
|
|
3858
3797
|
for (he = "SSSS"; he.length <= 9; he += "S")
|
|
3859
3798
|
m(he, De);
|
|
3860
|
-
function
|
|
3799
|
+
function go(e, t) {
|
|
3861
3800
|
t[pe] = v(("0." + e) * 1e3);
|
|
3862
3801
|
}
|
|
3863
3802
|
for (he = "S"; he.length <= 9; he += "S")
|
|
3864
|
-
k(he,
|
|
3865
|
-
|
|
3803
|
+
k(he, go);
|
|
3804
|
+
vs = Ne("Milliseconds", !1);
|
|
3866
3805
|
p("z", 0, 0, "zoneAbbr");
|
|
3867
3806
|
p("zz", 0, 0, "zoneName");
|
|
3868
|
-
function
|
|
3807
|
+
function mo() {
|
|
3869
3808
|
return this._isUTC ? "UTC" : "";
|
|
3870
3809
|
}
|
|
3871
|
-
function
|
|
3810
|
+
function po() {
|
|
3872
3811
|
return this._isUTC ? "Coordinated Universal Time" : "";
|
|
3873
3812
|
}
|
|
3874
3813
|
var c = Ge.prototype;
|
|
3875
|
-
c.add =
|
|
3876
|
-
c.calendar =
|
|
3877
|
-
c.clone =
|
|
3878
|
-
c.diff =
|
|
3879
|
-
c.endOf =
|
|
3880
|
-
c.format =
|
|
3881
|
-
c.from =
|
|
3882
|
-
c.fromNow =
|
|
3883
|
-
c.to =
|
|
3884
|
-
c.toNow =
|
|
3885
|
-
c.get =
|
|
3886
|
-
c.invalidAt =
|
|
3887
|
-
c.isAfter =
|
|
3888
|
-
c.isBefore =
|
|
3889
|
-
c.isBetween =
|
|
3890
|
-
c.isSame =
|
|
3891
|
-
c.isSameOrAfter =
|
|
3892
|
-
c.isSameOrBefore =
|
|
3893
|
-
c.isValid =
|
|
3894
|
-
c.lang =
|
|
3895
|
-
c.locale =
|
|
3896
|
-
c.localeData =
|
|
3897
|
-
c.max =
|
|
3898
|
-
c.min =
|
|
3899
|
-
c.parsingFlags =
|
|
3900
|
-
c.set =
|
|
3901
|
-
c.startOf =
|
|
3902
|
-
c.subtract =
|
|
3903
|
-
c.toArray =
|
|
3904
|
-
c.toObject =
|
|
3905
|
-
c.toDate =
|
|
3906
|
-
c.toISOString =
|
|
3907
|
-
c.inspect =
|
|
3814
|
+
c.add = oa;
|
|
3815
|
+
c.calendar = ga;
|
|
3816
|
+
c.clone = ma;
|
|
3817
|
+
c.diff = ba;
|
|
3818
|
+
c.endOf = Ra;
|
|
3819
|
+
c.format = Ma;
|
|
3820
|
+
c.from = Da;
|
|
3821
|
+
c.fromNow = Ya;
|
|
3822
|
+
c.to = Na;
|
|
3823
|
+
c.toNow = Ca;
|
|
3824
|
+
c.get = Oi;
|
|
3825
|
+
c.invalidAt = Ha;
|
|
3826
|
+
c.isAfter = pa;
|
|
3827
|
+
c.isBefore = ya;
|
|
3828
|
+
c.isBetween = _a;
|
|
3829
|
+
c.isSame = va;
|
|
3830
|
+
c.isSameOrAfter = wa;
|
|
3831
|
+
c.isSameOrBefore = Sa;
|
|
3832
|
+
c.isValid = ja;
|
|
3833
|
+
c.lang = cs;
|
|
3834
|
+
c.locale = hs;
|
|
3835
|
+
c.localeData = fs;
|
|
3836
|
+
c.max = jr;
|
|
3837
|
+
c.min = Ir;
|
|
3838
|
+
c.parsingFlags = Ua;
|
|
3839
|
+
c.set = Mi;
|
|
3840
|
+
c.startOf = La;
|
|
3841
|
+
c.subtract = ua;
|
|
3842
|
+
c.toArray = Fa;
|
|
3843
|
+
c.toObject = Aa;
|
|
3844
|
+
c.toDate = Ea;
|
|
3845
|
+
c.toISOString = ka;
|
|
3846
|
+
c.inspect = Oa;
|
|
3908
3847
|
typeof Symbol < "u" && Symbol.for != null && (c[Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
3909
3848
|
return "Moment<" + this.format() + ">";
|
|
3910
3849
|
});
|
|
3911
|
-
c.toJSON =
|
|
3912
|
-
c.toString =
|
|
3913
|
-
c.unix =
|
|
3914
|
-
c.valueOf =
|
|
3915
|
-
c.creationData =
|
|
3916
|
-
c.eraName =
|
|
3917
|
-
c.eraNarrow =
|
|
3918
|
-
c.eraAbbr =
|
|
3919
|
-
c.eraYear =
|
|
3920
|
-
c.year =
|
|
3921
|
-
c.isLeapYear =
|
|
3922
|
-
c.weekYear =
|
|
3923
|
-
c.isoWeekYear =
|
|
3924
|
-
c.quarter = c.quarters =
|
|
3925
|
-
c.month =
|
|
3926
|
-
c.daysInMonth =
|
|
3927
|
-
c.week = c.weeks =
|
|
3928
|
-
c.isoWeek = c.isoWeeks =
|
|
3929
|
-
c.weeksInYear =
|
|
3930
|
-
c.weeksInWeekYear =
|
|
3931
|
-
c.isoWeeksInYear =
|
|
3932
|
-
c.isoWeeksInISOWeekYear =
|
|
3933
|
-
c.date =
|
|
3934
|
-
c.day = c.days =
|
|
3935
|
-
c.weekday =
|
|
3936
|
-
c.isoWeekday =
|
|
3937
|
-
c.dayOfYear =
|
|
3938
|
-
c.hour = c.hours =
|
|
3939
|
-
c.minute = c.minutes =
|
|
3940
|
-
c.second = c.seconds =
|
|
3941
|
-
c.millisecond = c.milliseconds =
|
|
3942
|
-
c.utcOffset =
|
|
3943
|
-
c.utc =
|
|
3944
|
-
c.local =
|
|
3945
|
-
c.parseZone =
|
|
3946
|
-
c.hasAlignedHourOffset =
|
|
3947
|
-
c.isDST =
|
|
3948
|
-
c.isLocal =
|
|
3949
|
-
c.isUtcOffset =
|
|
3950
|
-
c.isUtc =
|
|
3951
|
-
c.isUTC =
|
|
3952
|
-
c.zoneAbbr =
|
|
3953
|
-
c.zoneName =
|
|
3850
|
+
c.toJSON = Ia;
|
|
3851
|
+
c.toString = xa;
|
|
3852
|
+
c.unix = Ta;
|
|
3853
|
+
c.valueOf = Pa;
|
|
3854
|
+
c.creationData = $a;
|
|
3855
|
+
c.eraName = za;
|
|
3856
|
+
c.eraNarrow = Ka;
|
|
3857
|
+
c.eraAbbr = Ba;
|
|
3858
|
+
c.eraYear = qa;
|
|
3859
|
+
c.year = Vn;
|
|
3860
|
+
c.isLeapYear = ki;
|
|
3861
|
+
c.weekYear = no;
|
|
3862
|
+
c.isoWeekYear = so;
|
|
3863
|
+
c.quarter = c.quarters = lo;
|
|
3864
|
+
c.month = Bn;
|
|
3865
|
+
c.daysInMonth = Ei;
|
|
3866
|
+
c.week = c.weeks = Vi;
|
|
3867
|
+
c.isoWeek = c.isoWeeks = Wi;
|
|
3868
|
+
c.weeksInYear = ao;
|
|
3869
|
+
c.weeksInWeekYear = oo;
|
|
3870
|
+
c.isoWeeksInYear = io;
|
|
3871
|
+
c.isoWeeksInISOWeekYear = ro;
|
|
3872
|
+
c.date = _s;
|
|
3873
|
+
c.day = c.days = sr;
|
|
3874
|
+
c.weekday = ir;
|
|
3875
|
+
c.isoWeekday = rr;
|
|
3876
|
+
c.dayOfYear = ho;
|
|
3877
|
+
c.hour = c.hours = cr;
|
|
3878
|
+
c.minute = c.minutes = co;
|
|
3879
|
+
c.second = c.seconds = fo;
|
|
3880
|
+
c.millisecond = c.milliseconds = vs;
|
|
3881
|
+
c.utcOffset = Br;
|
|
3882
|
+
c.utc = Jr;
|
|
3883
|
+
c.local = Zr;
|
|
3884
|
+
c.parseZone = Qr;
|
|
3885
|
+
c.hasAlignedHourOffset = Xr;
|
|
3886
|
+
c.isDST = ea;
|
|
3887
|
+
c.isLocal = na;
|
|
3888
|
+
c.isUtcOffset = sa;
|
|
3889
|
+
c.isUtc = os;
|
|
3890
|
+
c.isUTC = os;
|
|
3891
|
+
c.zoneAbbr = mo;
|
|
3892
|
+
c.zoneName = po;
|
|
3954
3893
|
c.dates = V(
|
|
3955
3894
|
"dates accessor is deprecated. Use date instead.",
|
|
3956
|
-
|
|
3895
|
+
_s
|
|
3957
3896
|
);
|
|
3958
3897
|
c.months = V(
|
|
3959
3898
|
"months accessor is deprecated. Use month instead",
|
|
3960
|
-
|
|
3899
|
+
Bn
|
|
3961
3900
|
);
|
|
3962
3901
|
c.years = V(
|
|
3963
3902
|
"years accessor is deprecated. Use year instead",
|
|
3964
|
-
|
|
3903
|
+
Vn
|
|
3965
3904
|
);
|
|
3966
3905
|
c.zone = V(
|
|
3967
3906
|
"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
|
|
3968
|
-
|
|
3907
|
+
qr
|
|
3969
3908
|
);
|
|
3970
3909
|
c.isDSTShifted = V(
|
|
3971
3910
|
"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
|
|
3972
|
-
|
|
3911
|
+
ta
|
|
3973
3912
|
);
|
|
3974
|
-
function
|
|
3913
|
+
function yo(e) {
|
|
3975
3914
|
return O(e * 1e3);
|
|
3976
3915
|
}
|
|
3977
|
-
function
|
|
3916
|
+
function _o() {
|
|
3978
3917
|
return O.apply(null, arguments).parseZone();
|
|
3979
3918
|
}
|
|
3980
|
-
function
|
|
3919
|
+
function ws(e) {
|
|
3981
3920
|
return e;
|
|
3982
3921
|
}
|
|
3983
|
-
var b =
|
|
3984
|
-
b.calendar =
|
|
3985
|
-
b.longDateFormat =
|
|
3986
|
-
b.invalidDate =
|
|
3987
|
-
b.ordinal =
|
|
3988
|
-
b.preparse =
|
|
3989
|
-
b.postformat =
|
|
3990
|
-
b.relativeTime =
|
|
3991
|
-
b.pastFuture =
|
|
3992
|
-
b.set =
|
|
3993
|
-
b.eras =
|
|
3994
|
-
b.erasParse =
|
|
3995
|
-
b.erasConvertYear =
|
|
3996
|
-
b.erasAbbrRegex =
|
|
3997
|
-
b.erasNameRegex =
|
|
3998
|
-
b.erasNarrowRegex =
|
|
3999
|
-
b.months =
|
|
4000
|
-
b.monthsShort =
|
|
4001
|
-
b.monthsParse =
|
|
4002
|
-
b.monthsRegex =
|
|
4003
|
-
b.monthsShortRegex =
|
|
4004
|
-
b.week =
|
|
4005
|
-
b.firstDayOfYear =
|
|
4006
|
-
b.firstDayOfWeek =
|
|
4007
|
-
b.weekdays =
|
|
4008
|
-
b.weekdaysMin =
|
|
4009
|
-
b.weekdaysShort =
|
|
4010
|
-
b.weekdaysParse =
|
|
4011
|
-
b.weekdaysRegex =
|
|
4012
|
-
b.weekdaysShortRegex =
|
|
4013
|
-
b.weekdaysMinRegex =
|
|
4014
|
-
b.isPM =
|
|
4015
|
-
b.meridiem =
|
|
3922
|
+
var b = Gt.prototype;
|
|
3923
|
+
b.calendar = ni;
|
|
3924
|
+
b.longDateFormat = ai;
|
|
3925
|
+
b.invalidDate = ui;
|
|
3926
|
+
b.ordinal = hi;
|
|
3927
|
+
b.preparse = ws;
|
|
3928
|
+
b.postformat = ws;
|
|
3929
|
+
b.relativeTime = fi;
|
|
3930
|
+
b.pastFuture = gi;
|
|
3931
|
+
b.set = ei;
|
|
3932
|
+
b.eras = Va;
|
|
3933
|
+
b.erasParse = Wa;
|
|
3934
|
+
b.erasConvertYear = Ga;
|
|
3935
|
+
b.erasAbbrRegex = Za;
|
|
3936
|
+
b.erasNameRegex = Ja;
|
|
3937
|
+
b.erasNarrowRegex = Qa;
|
|
3938
|
+
b.months = Li;
|
|
3939
|
+
b.monthsShort = Ri;
|
|
3940
|
+
b.monthsParse = Ti;
|
|
3941
|
+
b.monthsRegex = Ai;
|
|
3942
|
+
b.monthsShortRegex = Fi;
|
|
3943
|
+
b.week = ji;
|
|
3944
|
+
b.firstDayOfYear = $i;
|
|
3945
|
+
b.firstDayOfWeek = Hi;
|
|
3946
|
+
b.weekdays = Qi;
|
|
3947
|
+
b.weekdaysMin = er;
|
|
3948
|
+
b.weekdaysShort = Xi;
|
|
3949
|
+
b.weekdaysParse = nr;
|
|
3950
|
+
b.weekdaysRegex = ar;
|
|
3951
|
+
b.weekdaysShortRegex = or;
|
|
3952
|
+
b.weekdaysMinRegex = ur;
|
|
3953
|
+
b.isPM = dr;
|
|
3954
|
+
b.meridiem = fr;
|
|
4016
3955
|
function ht(e, t, n, s) {
|
|
4017
3956
|
var i = ue(), r = X().set(s, t);
|
|
4018
3957
|
return i[n](r, e);
|
|
4019
3958
|
}
|
|
4020
|
-
function
|
|
3959
|
+
function Ss(e, t, n) {
|
|
4021
3960
|
if (oe(e) && (t = e, e = void 0), e = e || "", t != null)
|
|
4022
3961
|
return ht(e, t, n, "month");
|
|
4023
3962
|
var s, i = [];
|
|
@@ -4025,7 +3964,7 @@ function _s(e, t, n) {
|
|
|
4025
3964
|
i[s] = ht(e, s, n, "month");
|
|
4026
3965
|
return i;
|
|
4027
3966
|
}
|
|
4028
|
-
function
|
|
3967
|
+
function dn(e, t, n, s) {
|
|
4029
3968
|
typeof e == "boolean" ? (oe(t) && (n = t, t = void 0), t = t || "") : (t = e, n = t, e = !1, oe(t) && (n = t, t = void 0), t = t || "");
|
|
4030
3969
|
var i = ue(), r = e ? i._week.dow : 0, a, o = [];
|
|
4031
3970
|
if (n != null)
|
|
@@ -4034,20 +3973,20 @@ function ln(e, t, n, s) {
|
|
|
4034
3973
|
o[a] = ht(t, (a + r) % 7, s, "day");
|
|
4035
3974
|
return o;
|
|
4036
3975
|
}
|
|
4037
|
-
function
|
|
4038
|
-
return
|
|
3976
|
+
function vo(e, t) {
|
|
3977
|
+
return Ss(e, t, "months");
|
|
4039
3978
|
}
|
|
4040
|
-
function
|
|
4041
|
-
return
|
|
3979
|
+
function wo(e, t) {
|
|
3980
|
+
return Ss(e, t, "monthsShort");
|
|
4042
3981
|
}
|
|
4043
|
-
function
|
|
4044
|
-
return
|
|
3982
|
+
function So(e, t, n) {
|
|
3983
|
+
return dn(e, t, n, "weekdays");
|
|
4045
3984
|
}
|
|
4046
|
-
function
|
|
4047
|
-
return
|
|
3985
|
+
function bo(e, t, n) {
|
|
3986
|
+
return dn(e, t, n, "weekdaysShort");
|
|
4048
3987
|
}
|
|
4049
|
-
function
|
|
4050
|
-
return
|
|
3988
|
+
function xo(e, t, n) {
|
|
3989
|
+
return dn(e, t, n, "weekdaysMin");
|
|
4051
3990
|
}
|
|
4052
3991
|
ce("en", {
|
|
4053
3992
|
eras: [
|
|
@@ -4083,39 +4022,39 @@ g.langData = V(
|
|
|
4083
4022
|
ue
|
|
4084
4023
|
);
|
|
4085
4024
|
var te = Math.abs;
|
|
4086
|
-
function
|
|
4025
|
+
function ko() {
|
|
4087
4026
|
var e = this._data;
|
|
4088
4027
|
return this._milliseconds = te(this._milliseconds), this._days = te(this._days), this._months = te(this._months), e.milliseconds = te(e.milliseconds), e.seconds = te(e.seconds), e.minutes = te(e.minutes), e.hours = te(e.hours), e.months = te(e.months), e.years = te(e.years), this;
|
|
4089
4028
|
}
|
|
4090
|
-
function
|
|
4029
|
+
function bs(e, t, n, s) {
|
|
4091
4030
|
var i = q(t, n);
|
|
4092
4031
|
return e._milliseconds += s * i._milliseconds, e._days += s * i._days, e._months += s * i._months, e._bubble();
|
|
4093
4032
|
}
|
|
4094
|
-
function
|
|
4095
|
-
return
|
|
4033
|
+
function Oo(e, t) {
|
|
4034
|
+
return bs(this, e, t, 1);
|
|
4096
4035
|
}
|
|
4097
|
-
function
|
|
4098
|
-
return
|
|
4036
|
+
function Mo(e, t) {
|
|
4037
|
+
return bs(this, e, t, -1);
|
|
4099
4038
|
}
|
|
4100
|
-
function
|
|
4039
|
+
function Cn(e) {
|
|
4101
4040
|
return e < 0 ? Math.floor(e) : Math.ceil(e);
|
|
4102
4041
|
}
|
|
4103
|
-
function
|
|
4042
|
+
function Do() {
|
|
4104
4043
|
var e = this._milliseconds, t = this._days, n = this._months, s = this._data, i, r, a, o, u;
|
|
4105
|
-
return e >= 0 && t >= 0 && n >= 0 || e <= 0 && t <= 0 && n <= 0 || (e +=
|
|
4044
|
+
return e >= 0 && t >= 0 && n >= 0 || e <= 0 && t <= 0 && n <= 0 || (e += Cn(Ht(n) + t) * 864e5, t = 0, n = 0), s.milliseconds = e % 1e3, i = $(e / 1e3), s.seconds = i % 60, r = $(i / 60), s.minutes = r % 60, a = $(r / 60), s.hours = a % 24, t += $(a / 24), u = $(xs(t)), n += u, t -= Cn(Ht(u)), o = $(n / 12), n %= 12, s.days = t, s.months = n, s.years = o, this;
|
|
4106
4045
|
}
|
|
4107
|
-
function
|
|
4046
|
+
function xs(e) {
|
|
4108
4047
|
return e * 4800 / 146097;
|
|
4109
4048
|
}
|
|
4110
|
-
function
|
|
4049
|
+
function Ht(e) {
|
|
4111
4050
|
return e * 146097 / 4800;
|
|
4112
4051
|
}
|
|
4113
|
-
function
|
|
4052
|
+
function Yo(e) {
|
|
4114
4053
|
if (!this.isValid())
|
|
4115
4054
|
return NaN;
|
|
4116
4055
|
var t, n, s = this._milliseconds;
|
|
4117
4056
|
if (e = W(e), e === "month" || e === "quarter" || e === "year")
|
|
4118
|
-
switch (t = this._days + s / 864e5, n = this._months +
|
|
4057
|
+
switch (t = this._days + s / 864e5, n = this._months + xs(t), e) {
|
|
4119
4058
|
case "month":
|
|
4120
4059
|
return n;
|
|
4121
4060
|
case "quarter":
|
|
@@ -4124,7 +4063,7 @@ function Oo(e) {
|
|
|
4124
4063
|
return n / 12;
|
|
4125
4064
|
}
|
|
4126
4065
|
else
|
|
4127
|
-
switch (t = this._days + Math.round(
|
|
4066
|
+
switch (t = this._days + Math.round(Ht(this._months)), e) {
|
|
4128
4067
|
case "week":
|
|
4129
4068
|
return t / 7 + s / 6048e5;
|
|
4130
4069
|
case "day":
|
|
@@ -4146,11 +4085,11 @@ function le(e) {
|
|
|
4146
4085
|
return this.as(e);
|
|
4147
4086
|
};
|
|
4148
4087
|
}
|
|
4149
|
-
var
|
|
4150
|
-
function
|
|
4088
|
+
var ks = le("ms"), No = le("s"), Co = le("m"), Lo = le("h"), Ro = le("d"), Po = le("w"), To = le("M"), Eo = le("Q"), Fo = le("y"), Ao = ks;
|
|
4089
|
+
function Io() {
|
|
4151
4090
|
return q(this);
|
|
4152
4091
|
}
|
|
4153
|
-
function
|
|
4092
|
+
function jo(e) {
|
|
4154
4093
|
return e = W(e), this.isValid() ? this[e + "s"]() : NaN;
|
|
4155
4094
|
}
|
|
4156
4095
|
function _e(e) {
|
|
@@ -4158,8 +4097,8 @@ function _e(e) {
|
|
|
4158
4097
|
return this.isValid() ? this._data[e] : NaN;
|
|
4159
4098
|
};
|
|
4160
4099
|
}
|
|
4161
|
-
var
|
|
4162
|
-
function
|
|
4100
|
+
var Uo = _e("milliseconds"), Ho = _e("seconds"), $o = _e("minutes"), Vo = _e("hours"), Wo = _e("days"), Go = _e("months"), zo = _e("years");
|
|
4101
|
+
function Ko() {
|
|
4163
4102
|
return $(this.days() / 7);
|
|
4164
4103
|
}
|
|
4165
4104
|
var ne = Math.round, xe = {
|
|
@@ -4178,77 +4117,77 @@ var ne = Math.round, xe = {
|
|
|
4178
4117
|
M: 11
|
|
4179
4118
|
// months to year
|
|
4180
4119
|
};
|
|
4181
|
-
function
|
|
4120
|
+
function Bo(e, t, n, s, i) {
|
|
4182
4121
|
return i.relativeTime(t || 1, !!n, e, s);
|
|
4183
4122
|
}
|
|
4184
|
-
function
|
|
4123
|
+
function qo(e, t, n, s) {
|
|
4185
4124
|
var i = q(e).abs(), r = ne(i.as("s")), a = ne(i.as("m")), o = ne(i.as("h")), u = ne(i.as("d")), l = ne(i.as("M")), h = ne(i.as("w")), f = ne(i.as("y")), d = r <= n.ss && ["s", r] || r < n.s && ["ss", r] || a <= 1 && ["m"] || a < n.m && ["mm", a] || o <= 1 && ["h"] || o < n.h && ["hh", o] || u <= 1 && ["d"] || u < n.d && ["dd", u];
|
|
4186
|
-
return n.w != null && (d = d || h <= 1 && ["w"] || h < n.w && ["ww", h]), d = d || l <= 1 && ["M"] || l < n.M && ["MM", l] || f <= 1 && ["y"] || ["yy", f], d[2] = t, d[3] = +e > 0, d[4] = s,
|
|
4125
|
+
return n.w != null && (d = d || h <= 1 && ["w"] || h < n.w && ["ww", h]), d = d || l <= 1 && ["M"] || l < n.M && ["MM", l] || f <= 1 && ["y"] || ["yy", f], d[2] = t, d[3] = +e > 0, d[4] = s, Bo.apply(null, d);
|
|
4187
4126
|
}
|
|
4188
|
-
function
|
|
4127
|
+
function Jo(e) {
|
|
4189
4128
|
return e === void 0 ? ne : typeof e == "function" ? (ne = e, !0) : !1;
|
|
4190
4129
|
}
|
|
4191
|
-
function
|
|
4130
|
+
function Zo(e, t) {
|
|
4192
4131
|
return xe[e] === void 0 ? !1 : t === void 0 ? xe[e] : (xe[e] = t, e === "s" && (xe.ss = t - 1), !0);
|
|
4193
4132
|
}
|
|
4194
|
-
function
|
|
4133
|
+
function Qo(e, t) {
|
|
4195
4134
|
if (!this.isValid())
|
|
4196
4135
|
return this.localeData().invalidDate();
|
|
4197
4136
|
var n = !1, s = xe, i, r;
|
|
4198
|
-
return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (n = e), typeof t == "object" && (s = Object.assign({}, xe, t), t.s != null && t.ss == null && (s.ss = t.s - 1)), i = this.localeData(), r =
|
|
4137
|
+
return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (n = e), typeof t == "object" && (s = Object.assign({}, xe, t), t.s != null && t.ss == null && (s.ss = t.s - 1)), i = this.localeData(), r = qo(this, !n, s, i), n && (r = i.pastFuture(+this, r)), i.postformat(r);
|
|
4199
4138
|
}
|
|
4200
|
-
var
|
|
4139
|
+
var Rt = Math.abs;
|
|
4201
4140
|
function Se(e) {
|
|
4202
4141
|
return (e > 0) - (e < 0) || +e;
|
|
4203
4142
|
}
|
|
4204
4143
|
function xt() {
|
|
4205
4144
|
if (!this.isValid())
|
|
4206
4145
|
return this.localeData().invalidDate();
|
|
4207
|
-
var e =
|
|
4146
|
+
var e = Rt(this._milliseconds) / 1e3, t = Rt(this._days), n = Rt(this._months), s, i, r, a, o = this.asSeconds(), u, l, h, f;
|
|
4208
4147
|
return o ? (s = $(e / 60), i = $(s / 60), e %= 60, s %= 60, r = $(n / 12), n %= 12, a = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", u = o < 0 ? "-" : "", l = Se(this._months) !== Se(o) ? "-" : "", h = Se(this._days) !== Se(o) ? "-" : "", f = Se(this._milliseconds) !== Se(o) ? "-" : "", u + "P" + (r ? l + r + "Y" : "") + (n ? l + n + "M" : "") + (t ? h + t + "D" : "") + (i || s || e ? "T" : "") + (i ? f + i + "H" : "") + (s ? f + s + "M" : "") + (e ? f + a + "S" : "")) : "P0D";
|
|
4209
4148
|
}
|
|
4210
4149
|
var w = St.prototype;
|
|
4211
|
-
w.isValid =
|
|
4212
|
-
w.abs =
|
|
4213
|
-
w.add =
|
|
4214
|
-
w.subtract =
|
|
4215
|
-
w.as =
|
|
4216
|
-
w.asMilliseconds =
|
|
4217
|
-
w.asSeconds =
|
|
4218
|
-
w.asMinutes =
|
|
4219
|
-
w.asHours =
|
|
4220
|
-
w.asDays =
|
|
4221
|
-
w.asWeeks =
|
|
4222
|
-
w.asMonths =
|
|
4223
|
-
w.asQuarters =
|
|
4224
|
-
w.asYears =
|
|
4225
|
-
w.valueOf =
|
|
4226
|
-
w._bubble =
|
|
4227
|
-
w.clone =
|
|
4228
|
-
w.get =
|
|
4229
|
-
w.milliseconds =
|
|
4230
|
-
w.seconds =
|
|
4231
|
-
w.minutes =
|
|
4232
|
-
w.hours =
|
|
4233
|
-
w.days =
|
|
4234
|
-
w.weeks =
|
|
4235
|
-
w.months =
|
|
4236
|
-
w.years =
|
|
4237
|
-
w.humanize =
|
|
4150
|
+
w.isValid = Wr;
|
|
4151
|
+
w.abs = ko;
|
|
4152
|
+
w.add = Oo;
|
|
4153
|
+
w.subtract = Mo;
|
|
4154
|
+
w.as = Yo;
|
|
4155
|
+
w.asMilliseconds = ks;
|
|
4156
|
+
w.asSeconds = No;
|
|
4157
|
+
w.asMinutes = Co;
|
|
4158
|
+
w.asHours = Lo;
|
|
4159
|
+
w.asDays = Ro;
|
|
4160
|
+
w.asWeeks = Po;
|
|
4161
|
+
w.asMonths = To;
|
|
4162
|
+
w.asQuarters = Eo;
|
|
4163
|
+
w.asYears = Fo;
|
|
4164
|
+
w.valueOf = Ao;
|
|
4165
|
+
w._bubble = Do;
|
|
4166
|
+
w.clone = Io;
|
|
4167
|
+
w.get = jo;
|
|
4168
|
+
w.milliseconds = Uo;
|
|
4169
|
+
w.seconds = Ho;
|
|
4170
|
+
w.minutes = $o;
|
|
4171
|
+
w.hours = Vo;
|
|
4172
|
+
w.days = Wo;
|
|
4173
|
+
w.weeks = Ko;
|
|
4174
|
+
w.months = Go;
|
|
4175
|
+
w.years = zo;
|
|
4176
|
+
w.humanize = Qo;
|
|
4238
4177
|
w.toISOString = xt;
|
|
4239
4178
|
w.toString = xt;
|
|
4240
4179
|
w.toJSON = xt;
|
|
4241
|
-
w.locale =
|
|
4242
|
-
w.localeData =
|
|
4180
|
+
w.locale = hs;
|
|
4181
|
+
w.localeData = fs;
|
|
4243
4182
|
w.toIsoString = V(
|
|
4244
4183
|
"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
|
|
4245
4184
|
xt
|
|
4246
4185
|
);
|
|
4247
|
-
w.lang =
|
|
4186
|
+
w.lang = cs;
|
|
4248
4187
|
p("X", 0, 0, "unix");
|
|
4249
4188
|
p("x", 0, 0, "valueOf");
|
|
4250
4189
|
m("x", yt);
|
|
4251
|
-
m("X",
|
|
4190
|
+
m("X", _i);
|
|
4252
4191
|
k("X", function(e, t, n) {
|
|
4253
4192
|
n._d = new Date(parseFloat(e) * 1e3);
|
|
4254
4193
|
});
|
|
@@ -4257,33 +4196,33 @@ k("x", function(e, t, n) {
|
|
|
4257
4196
|
});
|
|
4258
4197
|
//! moment.js
|
|
4259
4198
|
g.version = "2.30.1";
|
|
4260
|
-
|
|
4199
|
+
Qs(O);
|
|
4261
4200
|
g.fn = c;
|
|
4262
|
-
g.min =
|
|
4263
|
-
g.max =
|
|
4264
|
-
g.now =
|
|
4201
|
+
g.min = Ur;
|
|
4202
|
+
g.max = Hr;
|
|
4203
|
+
g.now = $r;
|
|
4265
4204
|
g.utc = X;
|
|
4266
|
-
g.unix =
|
|
4267
|
-
g.months =
|
|
4205
|
+
g.unix = yo;
|
|
4206
|
+
g.months = vo;
|
|
4268
4207
|
g.isDate = We;
|
|
4269
4208
|
g.locale = ce;
|
|
4270
4209
|
g.invalid = ft;
|
|
4271
4210
|
g.duration = q;
|
|
4272
4211
|
g.isMoment = B;
|
|
4273
|
-
g.weekdays =
|
|
4274
|
-
g.parseZone =
|
|
4212
|
+
g.weekdays = So;
|
|
4213
|
+
g.parseZone = _o;
|
|
4275
4214
|
g.localeData = ue;
|
|
4276
4215
|
g.isDuration = tt;
|
|
4277
|
-
g.monthsShort =
|
|
4278
|
-
g.weekdaysMin =
|
|
4279
|
-
g.defineLocale =
|
|
4280
|
-
g.updateLocale =
|
|
4281
|
-
g.locales =
|
|
4282
|
-
g.weekdaysShort =
|
|
4216
|
+
g.monthsShort = wo;
|
|
4217
|
+
g.weekdaysMin = xo;
|
|
4218
|
+
g.defineLocale = tn;
|
|
4219
|
+
g.updateLocale = yr;
|
|
4220
|
+
g.locales = _r;
|
|
4221
|
+
g.weekdaysShort = bo;
|
|
4283
4222
|
g.normalizeUnits = W;
|
|
4284
|
-
g.relativeTimeRounding =
|
|
4285
|
-
g.relativeTimeThreshold =
|
|
4286
|
-
g.calendarFormat =
|
|
4223
|
+
g.relativeTimeRounding = Jo;
|
|
4224
|
+
g.relativeTimeThreshold = Zo;
|
|
4225
|
+
g.calendarFormat = fa;
|
|
4287
4226
|
g.prototype = c;
|
|
4288
4227
|
g.HTML5_FMT = {
|
|
4289
4228
|
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
|
@@ -4305,7 +4244,7 @@ g.HTML5_FMT = {
|
|
|
4305
4244
|
MONTH: "YYYY-MM"
|
|
4306
4245
|
// <input type="month" />
|
|
4307
4246
|
};
|
|
4308
|
-
const
|
|
4247
|
+
const Xo = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, eu = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i, Ln = /(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, Pt = [
|
|
4309
4248
|
/^janv/i,
|
|
4310
4249
|
/^févr/i,
|
|
4311
4250
|
/^mars/i,
|
|
@@ -4318,18 +4257,18 @@ const Jo = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octob
|
|
|
4318
4257
|
/^oct/i,
|
|
4319
4258
|
/^nov/i,
|
|
4320
4259
|
/^déc/i
|
|
4321
|
-
],
|
|
4260
|
+
], tu = {
|
|
4322
4261
|
months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split(
|
|
4323
4262
|
"_"
|
|
4324
4263
|
),
|
|
4325
4264
|
monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
|
|
4326
|
-
monthsRegex:
|
|
4327
|
-
monthsShortRegex:
|
|
4328
|
-
monthsStrictRegex:
|
|
4329
|
-
monthsShortStrictRegex:
|
|
4330
|
-
monthsParse:
|
|
4331
|
-
longMonthsParse:
|
|
4332
|
-
shortMonthsParse:
|
|
4265
|
+
monthsRegex: Ln,
|
|
4266
|
+
monthsShortRegex: Ln,
|
|
4267
|
+
monthsStrictRegex: Xo,
|
|
4268
|
+
monthsShortStrictRegex: eu,
|
|
4269
|
+
monthsParse: Pt,
|
|
4270
|
+
longMonthsParse: Pt,
|
|
4271
|
+
shortMonthsParse: Pt,
|
|
4333
4272
|
weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
|
|
4334
4273
|
weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
|
|
4335
4274
|
weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"),
|
|
@@ -4389,22 +4328,22 @@ const Jo = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octob
|
|
|
4389
4328
|
doy: 4
|
|
4390
4329
|
}
|
|
4391
4330
|
};
|
|
4392
|
-
g.locale("fr",
|
|
4393
|
-
const
|
|
4331
|
+
g.locale("fr", tu);
|
|
4332
|
+
const nu = (e) => Math.round(5e3 * Math.pow(200, 0.01 * e) / 10) * 10, Os = (e) => e >= 1 ? Os(e - 1) + nu(e) : 0, su = (e, t = 0) => e < Os(t + 1) ? t : su(e, t + 1), gu = ([e, t]) => t ? `${Mt("xp.user", { amount: Yt(e), emoji: Dt.xp })} ${Mt("xp.crew", { amount: Yt(t), emoji: Dt.xp })}` : Mt("xp.user", { amount: Yt(e), emoji: Dt.xp });
|
|
4394
4333
|
export {
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4334
|
+
au as CHARACTERISTICS,
|
|
4335
|
+
Ys as CHARACTERISTIC_DEFAULT_POINT_COST,
|
|
4336
|
+
uu as CHARACTERISTIC_POINT_COSTS,
|
|
4337
|
+
ou as CHARACTERISTIC_POINT_PER_LEVEL,
|
|
4338
|
+
cu as DEFAULT_FACTION,
|
|
4339
|
+
lu as DEFAULT_MAX_HP,
|
|
4340
|
+
hu as FACTIONS,
|
|
4341
|
+
du as HP_PER_VITALITY,
|
|
4342
|
+
ru as RANKS,
|
|
4404
4343
|
me as RankId,
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4344
|
+
fu as SORT_VALUES,
|
|
4345
|
+
gu as displayXp,
|
|
4346
|
+
su as getCurrentLevel,
|
|
4347
|
+
Os as totalXpToLevel,
|
|
4348
|
+
nu as xpToLevel
|
|
4410
4349
|
};
|