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