@shipengine/alchemy 0.4.4 → 0.4.5
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/components/element/element.d.ts +2 -3
- package/create-element.d.ts +3 -2
- package/index.js +14 -10
- package/index.mjs +640 -588
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import * as Mt from "react";
|
|
2
|
-
import { createContext as
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { css as
|
|
5
|
-
import { BrandName as
|
|
6
|
-
import { getEmotionResetStyles as
|
|
7
|
-
import { logger as it, ShipEngine as
|
|
2
|
+
import { createContext as Zt, forwardRef as ma, useContext as Qt, createElement as wt, Fragment as va, useState as er, useEffect as tr, useMemo as ya } from "react";
|
|
3
|
+
import { jsx as hr, jsxs as gr } from "react/jsx-runtime";
|
|
4
|
+
import { css as ba, Global as wa, ThemeProvider as Sa, CacheProvider as xa } from "@emotion/react";
|
|
5
|
+
import { BrandName as Cn, Theme as Oa } from "@packlink/brands";
|
|
6
|
+
import { getEmotionResetStyles as Ea, GigerConfigProvider as Pa } from "@packlink/giger";
|
|
7
|
+
import { logger as it, ShipEngine as Ca } from "@shipengine/react-api";
|
|
8
8
|
export * from "@shipengine/react-api";
|
|
9
|
-
import { I18nextProvider as
|
|
10
|
-
function
|
|
9
|
+
import { I18nextProvider as Ra } from "react-i18next";
|
|
10
|
+
function ka(e) {
|
|
11
11
|
if (e.sheet)
|
|
12
12
|
return e.sheet;
|
|
13
13
|
for (var t = 0; t < document.styleSheets.length; t++)
|
|
14
14
|
if (document.styleSheets[t].ownerNode === e)
|
|
15
15
|
return document.styleSheets[t];
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function Na(e) {
|
|
18
18
|
var t = document.createElement("style");
|
|
19
19
|
return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
|
|
20
20
|
}
|
|
21
|
-
var
|
|
21
|
+
var La = /* @__PURE__ */ function() {
|
|
22
22
|
function e(r) {
|
|
23
23
|
var a = this;
|
|
24
24
|
this._insertTag = function(n) {
|
|
@@ -30,7 +30,7 @@ var Na = /* @__PURE__ */ function() {
|
|
|
30
30
|
return t.hydrate = function(a) {
|
|
31
31
|
a.forEach(this._insertTag);
|
|
32
32
|
}, t.insert = function(a) {
|
|
33
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
33
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Na(this));
|
|
34
34
|
var n = this.tags[this.tags.length - 1];
|
|
35
35
|
if (process.env.NODE_ENV !== "production") {
|
|
36
36
|
var i = a.charCodeAt(0) === 64 && a.charCodeAt(1) === 105;
|
|
@@ -38,7 +38,7 @@ var Na = /* @__PURE__ */ function() {
|
|
|
38
38
|
` + a + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."), this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !i;
|
|
39
39
|
}
|
|
40
40
|
if (this.isSpeedy) {
|
|
41
|
-
var o =
|
|
41
|
+
var o = ka(n);
|
|
42
42
|
try {
|
|
43
43
|
o.insertRule(a, o.cssRules.length);
|
|
44
44
|
} catch (s) {
|
|
@@ -52,11 +52,11 @@ var Na = /* @__PURE__ */ function() {
|
|
|
52
52
|
return a.parentNode && a.parentNode.removeChild(a);
|
|
53
53
|
}), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1);
|
|
54
54
|
}, e;
|
|
55
|
-
}(), P = "-ms-", oe = "-moz-", x = "-webkit-",
|
|
56
|
-
function
|
|
55
|
+
}(), P = "-ms-", oe = "-moz-", x = "-webkit-", rr = "comm", ot = "rule", st = "decl", _a = "@import", nr = "@keyframes", Aa = Math.abs, ut = String.fromCharCode, Ta = Object.assign;
|
|
56
|
+
function Rn(e, t) {
|
|
57
57
|
return L(e, 0) ^ 45 ? (((t << 2 ^ L(e, 0)) << 2 ^ L(e, 1)) << 2 ^ L(e, 2)) << 2 ^ L(e, 3) : 0;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function kn(e) {
|
|
60
60
|
return e.trim();
|
|
61
61
|
}
|
|
62
62
|
function ie(e, t) {
|
|
@@ -77,30 +77,30 @@ function Ce(e, t, r) {
|
|
|
77
77
|
function H(e) {
|
|
78
78
|
return e.length;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function ar(e) {
|
|
81
81
|
return e.length;
|
|
82
82
|
}
|
|
83
83
|
function Ke(e, t) {
|
|
84
84
|
return t.push(e), e;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function Nn(e, t) {
|
|
87
87
|
return e.map(t).join("");
|
|
88
88
|
}
|
|
89
|
-
var ct = 1, Re = 1,
|
|
89
|
+
var ct = 1, Re = 1, Ln = 0, D = 0, A = 0, ke = "";
|
|
90
90
|
function ft(e, t, r, a, n, i, o) {
|
|
91
91
|
return { value: e, root: t, parent: r, type: a, props: n, children: i, line: ct, column: Re, length: o, return: "" };
|
|
92
92
|
}
|
|
93
93
|
function Q(e, t) {
|
|
94
|
-
return
|
|
94
|
+
return Ta(ft("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function $a() {
|
|
97
97
|
return A;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function ja() {
|
|
100
100
|
return A = D > 0 ? L(ke, --D) : 0, Re--, A === 10 && (Re = 1, ct--), A;
|
|
101
101
|
}
|
|
102
102
|
function M() {
|
|
103
|
-
return A = D <
|
|
103
|
+
return A = D < Ln ? L(ke, D++) : 0, Re++, A === 10 && (Re = 1, ct++), A;
|
|
104
104
|
}
|
|
105
105
|
function te() {
|
|
106
106
|
return L(ke, D);
|
|
@@ -143,21 +143,21 @@ function De(e) {
|
|
|
143
143
|
}
|
|
144
144
|
return 0;
|
|
145
145
|
}
|
|
146
|
-
function Ln(e) {
|
|
147
|
-
return ct = Re = 1, Nn = H(ke = e), D = 0, [];
|
|
148
|
-
}
|
|
149
146
|
function _n(e) {
|
|
147
|
+
return ct = Re = 1, Ln = H(ke = e), D = 0, [];
|
|
148
|
+
}
|
|
149
|
+
function An(e) {
|
|
150
150
|
return ke = "", e;
|
|
151
151
|
}
|
|
152
152
|
function Ge(e) {
|
|
153
|
-
return
|
|
153
|
+
return kn(Ue(D - 1, Bt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Ia(e) {
|
|
156
156
|
for (; (A = te()) && A < 33; )
|
|
157
157
|
M();
|
|
158
158
|
return De(e) > 2 || De(A) > 3 ? "" : " ";
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function Da(e, t) {
|
|
161
161
|
for (; --t && M() && !(A < 48 || A > 102 || A > 57 && A < 65 || A > 70 && A < 97); )
|
|
162
162
|
;
|
|
163
163
|
return Ue(e, We() + (t < 6 && te() == 32 && M() == 32));
|
|
@@ -180,19 +180,19 @@ function Bt(e) {
|
|
|
180
180
|
}
|
|
181
181
|
return D;
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function Fa(e, t) {
|
|
184
184
|
for (; M() && e + A !== 47 + 10; )
|
|
185
185
|
if (e + A === 42 + 42 && te() === 47)
|
|
186
186
|
break;
|
|
187
187
|
return "/*" + Ue(t, D - 1) + "*" + ut(e === 47 ? e : M());
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function Ua(e) {
|
|
190
190
|
for (; !De(te()); )
|
|
191
191
|
M();
|
|
192
192
|
return Ue(e, D);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
return
|
|
194
|
+
function Ma(e) {
|
|
195
|
+
return An(Xe("", null, null, null, [""], e = _n(e), 0, [0], e));
|
|
196
196
|
}
|
|
197
197
|
function Xe(e, t, r, a, n, i, o, s, u) {
|
|
198
198
|
for (var f = 0, l = 0, c = o, d = 0, p = 0, y = 0, b = 1, w = 1, h = 1, g = 0, O = "", m = n, v = i, N = a, C = O; w; )
|
|
@@ -211,16 +211,16 @@ function Xe(e, t, r, a, n, i, o, s, u) {
|
|
|
211
211
|
case 10:
|
|
212
212
|
case 13:
|
|
213
213
|
case 32:
|
|
214
|
-
C +=
|
|
214
|
+
C += Ia(y);
|
|
215
215
|
break;
|
|
216
216
|
case 92:
|
|
217
|
-
C +=
|
|
217
|
+
C += Da(We() - 1, 7);
|
|
218
218
|
continue;
|
|
219
219
|
case 47:
|
|
220
220
|
switch (te()) {
|
|
221
221
|
case 42:
|
|
222
222
|
case 47:
|
|
223
|
-
Ke(
|
|
223
|
+
Ke(Ba(Fa(M(), We()), t, r), u);
|
|
224
224
|
break;
|
|
225
225
|
default:
|
|
226
226
|
C += "/";
|
|
@@ -236,12 +236,12 @@ function Xe(e, t, r, a, n, i, o, s, u) {
|
|
|
236
236
|
case 125:
|
|
237
237
|
w = 0;
|
|
238
238
|
case 59 + l:
|
|
239
|
-
p > 0 && H(C) - c && Ke(p > 32 ?
|
|
239
|
+
p > 0 && H(C) - c && Ke(p > 32 ? vr(C + ";", a, r, c - 1) : vr(S(C, " ", "") + ";", a, r, c - 2), u);
|
|
240
240
|
break;
|
|
241
241
|
case 59:
|
|
242
242
|
C += ";";
|
|
243
243
|
default:
|
|
244
|
-
if (Ke(N =
|
|
244
|
+
if (Ke(N = mr(C, t, r, f, l, n, s, O, m = [], v = [], c), i), g === 123)
|
|
245
245
|
if (l === 0)
|
|
246
246
|
Xe(C, t, N, N, m, i, c, s, v);
|
|
247
247
|
else
|
|
@@ -249,7 +249,7 @@ function Xe(e, t, r, a, n, i, o, s, u) {
|
|
|
249
249
|
case 100:
|
|
250
250
|
case 109:
|
|
251
251
|
case 115:
|
|
252
|
-
Xe(e, N, N, a && Ke(
|
|
252
|
+
Xe(e, N, N, a && Ke(mr(e, N, N, 0, 0, n, s, O, n, m = [], c), v), n, v, c, s, a ? m : v);
|
|
253
253
|
break;
|
|
254
254
|
default:
|
|
255
255
|
Xe(C, N, N, N, [""], v, 0, s, v);
|
|
@@ -263,7 +263,7 @@ function Xe(e, t, r, a, n, i, o, s, u) {
|
|
|
263
263
|
if (b < 1) {
|
|
264
264
|
if (g == 123)
|
|
265
265
|
--b;
|
|
266
|
-
else if (g == 125 && b++ == 0 &&
|
|
266
|
+
else if (g == 125 && b++ == 0 && ja() == 125)
|
|
267
267
|
continue;
|
|
268
268
|
}
|
|
269
269
|
switch (C += ut(g), g * b) {
|
|
@@ -274,7 +274,7 @@ function Xe(e, t, r, a, n, i, o, s, u) {
|
|
|
274
274
|
s[f++] = (H(C) - 1) * h, h = 1;
|
|
275
275
|
break;
|
|
276
276
|
case 64:
|
|
277
|
-
te() === 45 && (C += Ge(M())), d = te(), l = c = H(O = C +=
|
|
277
|
+
te() === 45 && (C += Ge(M())), d = te(), l = c = H(O = C += Ua(We())), g++;
|
|
278
278
|
break;
|
|
279
279
|
case 45:
|
|
280
280
|
y === 45 && H(C) == 2 && (b = 0);
|
|
@@ -282,20 +282,20 @@ function Xe(e, t, r, a, n, i, o, s, u) {
|
|
|
282
282
|
}
|
|
283
283
|
return i;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
for (var c = n - 1, d = n === 0 ? i : [""], p =
|
|
287
|
-
for (var h = 0, g = Ce(e, c + 1, c =
|
|
288
|
-
(O =
|
|
285
|
+
function mr(e, t, r, a, n, i, o, s, u, f, l) {
|
|
286
|
+
for (var c = n - 1, d = n === 0 ? i : [""], p = ar(d), y = 0, b = 0, w = 0; y < a; ++y)
|
|
287
|
+
for (var h = 0, g = Ce(e, c + 1, c = Aa(b = o[y])), O = e; h < p; ++h)
|
|
288
|
+
(O = kn(b > 0 ? d[h] + " " + g : S(g, /&\f/g, d[h]))) && (u[w++] = O);
|
|
289
289
|
return ft(e, t, r, n === 0 ? ot : s, u, f, l);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
292
|
-
return ft(e, t, r,
|
|
291
|
+
function Ba(e, t, r) {
|
|
292
|
+
return ft(e, t, r, rr, ut($a()), Ce(e, 2, -2), 0);
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function vr(e, t, r, a) {
|
|
295
295
|
return ft(e, t, r, st, Ce(e, 0, a), Ce(e, a + 1, -1), a);
|
|
296
296
|
}
|
|
297
|
-
function
|
|
298
|
-
switch (
|
|
297
|
+
function Tn(e, t, r) {
|
|
298
|
+
switch (Rn(e, t)) {
|
|
299
299
|
case 5103:
|
|
300
300
|
return x + "print-" + e + e;
|
|
301
301
|
case 5737:
|
|
@@ -410,7 +410,7 @@ function An(e, t, r) {
|
|
|
410
410
|
case 102:
|
|
411
411
|
return S(e, /(.+:)(.+)-([^]+)/, "$1" + x + "$2-$3$1" + oe + (L(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
412
412
|
case 115:
|
|
413
|
-
return ~Pe(e, "stretch") ?
|
|
413
|
+
return ~Pe(e, "stretch") ? Tn(S(e, "stretch", "fill-available"), t, r) + e : e;
|
|
414
414
|
}
|
|
415
415
|
break;
|
|
416
416
|
case 5152:
|
|
@@ -440,48 +440,48 @@ function An(e, t, r) {
|
|
|
440
440
|
return e;
|
|
441
441
|
}
|
|
442
442
|
function se(e, t) {
|
|
443
|
-
for (var r = "", a =
|
|
443
|
+
for (var r = "", a = ar(e), n = 0; n < a; n++)
|
|
444
444
|
r += t(e[n], n, e, t) || "";
|
|
445
445
|
return r;
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function Va(e, t, r, a) {
|
|
448
448
|
switch (e.type) {
|
|
449
|
-
case
|
|
449
|
+
case _a:
|
|
450
450
|
case st:
|
|
451
451
|
return e.return = e.return || e.value;
|
|
452
|
-
case tr:
|
|
453
|
-
return "";
|
|
454
452
|
case rr:
|
|
453
|
+
return "";
|
|
454
|
+
case nr:
|
|
455
455
|
return e.return = e.value + "{" + se(e.children, a) + "}";
|
|
456
456
|
case ot:
|
|
457
457
|
e.value = e.props.join(",");
|
|
458
458
|
}
|
|
459
459
|
return H(r = se(e.children, a)) ? e.return = e.value + "{" + r + "}" : "";
|
|
460
460
|
}
|
|
461
|
-
function
|
|
462
|
-
var t =
|
|
461
|
+
function qa(e) {
|
|
462
|
+
var t = ar(e);
|
|
463
463
|
return function(r, a, n, i) {
|
|
464
464
|
for (var o = "", s = 0; s < t; s++)
|
|
465
465
|
o += e[s](r, a, n, i) || "";
|
|
466
466
|
return o;
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function za(e) {
|
|
470
470
|
return function(t) {
|
|
471
471
|
t.root || (t = t.return) && e(t);
|
|
472
472
|
};
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function Ha(e, t, r, a) {
|
|
475
475
|
if (e.length > -1 && !e.return)
|
|
476
476
|
switch (e.type) {
|
|
477
477
|
case st:
|
|
478
|
-
e.return =
|
|
478
|
+
e.return = Tn(e.value, e.length, r);
|
|
479
479
|
return;
|
|
480
|
-
case
|
|
480
|
+
case nr:
|
|
481
481
|
return se([Q(e, { value: S(e.value, "@", "@" + x) })], a);
|
|
482
482
|
case ot:
|
|
483
483
|
if (e.length)
|
|
484
|
-
return
|
|
484
|
+
return Nn(e.props, function(n) {
|
|
485
485
|
switch (ie(n, /(::plac\w+|:read-\w+)/)) {
|
|
486
486
|
case ":read-only":
|
|
487
487
|
case ":read-write":
|
|
@@ -497,22 +497,22 @@ function za(e, t, r, a) {
|
|
|
497
497
|
});
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function $n(e) {
|
|
501
501
|
var t = /* @__PURE__ */ Object.create(null);
|
|
502
502
|
return function(r) {
|
|
503
503
|
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
|
504
504
|
};
|
|
505
505
|
}
|
|
506
|
-
var
|
|
506
|
+
var Ka = function(t, r, a) {
|
|
507
507
|
for (var n = 0, i = 0; n = i, i = te(), n === 38 && i === 12 && (r[a] = 1), !De(i); )
|
|
508
508
|
M();
|
|
509
509
|
return Ue(t, D);
|
|
510
|
-
},
|
|
510
|
+
}, Ja = function(t, r) {
|
|
511
511
|
var a = -1, n = 44;
|
|
512
512
|
do
|
|
513
513
|
switch (De(n)) {
|
|
514
514
|
case 0:
|
|
515
|
-
n === 38 && te() === 12 && (r[a] = 1), t[a] +=
|
|
515
|
+
n === 38 && te() === 12 && (r[a] = 1), t[a] += Ka(D - 1, r, a);
|
|
516
516
|
break;
|
|
517
517
|
case 2:
|
|
518
518
|
t[a] += Ge(n);
|
|
@@ -527,32 +527,32 @@ var Ha = function(t, r, a) {
|
|
|
527
527
|
}
|
|
528
528
|
while (n = M());
|
|
529
529
|
return t;
|
|
530
|
-
},
|
|
531
|
-
return
|
|
532
|
-
},
|
|
530
|
+
}, Ya = function(t, r) {
|
|
531
|
+
return An(Ja(_n(t), r));
|
|
532
|
+
}, yr = /* @__PURE__ */ new WeakMap(), Wa = function(t) {
|
|
533
533
|
if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
|
|
534
534
|
// negative .length indicates that this rule has been already prefixed
|
|
535
535
|
t.length < 1)) {
|
|
536
536
|
for (var r = t.value, a = t.parent, n = t.column === a.column && t.line === a.line; a.type !== "rule"; )
|
|
537
537
|
if (a = a.parent, !a)
|
|
538
538
|
return;
|
|
539
|
-
if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !
|
|
540
|
-
|
|
541
|
-
for (var i = [], o =
|
|
539
|
+
if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !yr.get(a)) && !n) {
|
|
540
|
+
yr.set(t, !0);
|
|
541
|
+
for (var i = [], o = Ya(r, i), s = a.props, u = 0, f = 0; u < o.length; u++)
|
|
542
542
|
for (var l = 0; l < s.length; l++, f++)
|
|
543
543
|
t.props[f] = i[u] ? o[u].replace(/&\f/g, s[l]) : s[l] + " " + o[u];
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
|
-
},
|
|
546
|
+
}, Ga = function(t) {
|
|
547
547
|
if (t.type === "decl") {
|
|
548
548
|
var r = t.value;
|
|
549
549
|
// charcode for l
|
|
550
550
|
r.charCodeAt(0) === 108 && // charcode for b
|
|
551
551
|
r.charCodeAt(2) === 98 && (t.return = "", t.value = "");
|
|
552
552
|
}
|
|
553
|
-
},
|
|
554
|
-
return t.type === "comm" && t.children.indexOf(
|
|
555
|
-
},
|
|
553
|
+
}, Xa = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason", Za = function(t) {
|
|
554
|
+
return t.type === "comm" && t.children.indexOf(Xa) > -1;
|
|
555
|
+
}, Qa = function(t) {
|
|
556
556
|
return function(r, a, n) {
|
|
557
557
|
if (!(r.type !== "rule" || t.compat)) {
|
|
558
558
|
var i = r.value.match(/(:first|:nth|:nth-last)-child/g);
|
|
@@ -565,7 +565,7 @@ var Ha = function(t, r, a) {
|
|
|
565
565
|
if (f.line < r.line)
|
|
566
566
|
break;
|
|
567
567
|
if (f.column < r.column) {
|
|
568
|
-
if (
|
|
568
|
+
if (Za(f))
|
|
569
569
|
return;
|
|
570
570
|
break;
|
|
571
571
|
}
|
|
@@ -576,20 +576,20 @@ var Ha = function(t, r, a) {
|
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
};
|
|
579
|
-
},
|
|
579
|
+
}, jn = function(t) {
|
|
580
580
|
return t.type.charCodeAt(1) === 105 && t.type.charCodeAt(0) === 64;
|
|
581
|
-
},
|
|
581
|
+
}, ei = function(t, r) {
|
|
582
582
|
for (var a = t - 1; a >= 0; a--)
|
|
583
|
-
if (
|
|
583
|
+
if (!jn(r[a]))
|
|
584
584
|
return !0;
|
|
585
585
|
return !1;
|
|
586
|
-
},
|
|
586
|
+
}, br = function(t) {
|
|
587
587
|
t.type = "", t.value = "", t.return = "", t.children = "", t.props = "";
|
|
588
|
-
},
|
|
589
|
-
|
|
588
|
+
}, ti = function(t, r, a) {
|
|
589
|
+
jn(t) && (t.parent ? (console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."), br(t)) : ei(r, a) && (console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."), br(t)));
|
|
590
590
|
};
|
|
591
|
-
function
|
|
592
|
-
switch (
|
|
591
|
+
function In(e, t) {
|
|
592
|
+
switch (Rn(e, t)) {
|
|
593
593
|
case 5103:
|
|
594
594
|
return x + "print-" + e + e;
|
|
595
595
|
case 5737:
|
|
@@ -675,7 +675,7 @@ function jn(e, t) {
|
|
|
675
675
|
case 102:
|
|
676
676
|
return S(e, /(.+:)(.+)-([^]+)/, "$1" + x + "$2-$3$1" + oe + (L(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
677
677
|
case 115:
|
|
678
|
-
return ~Pe(e, "stretch") ?
|
|
678
|
+
return ~Pe(e, "stretch") ? In(S(e, "stretch", "fill-available"), t) + e : e;
|
|
679
679
|
}
|
|
680
680
|
break;
|
|
681
681
|
case 4949:
|
|
@@ -702,19 +702,19 @@ function jn(e, t) {
|
|
|
702
702
|
}
|
|
703
703
|
return e;
|
|
704
704
|
}
|
|
705
|
-
var
|
|
705
|
+
var ri = function(t, r, a, n) {
|
|
706
706
|
if (t.length > -1 && !t.return)
|
|
707
707
|
switch (t.type) {
|
|
708
708
|
case st:
|
|
709
|
-
t.return =
|
|
709
|
+
t.return = In(t.value, t.length);
|
|
710
710
|
break;
|
|
711
|
-
case
|
|
711
|
+
case nr:
|
|
712
712
|
return se([Q(t, {
|
|
713
713
|
value: S(t.value, "@", "@" + x)
|
|
714
714
|
})], n);
|
|
715
715
|
case ot:
|
|
716
716
|
if (t.length)
|
|
717
|
-
return
|
|
717
|
+
return Nn(t.props, function(i) {
|
|
718
718
|
switch (ie(i, /(::plac\w+|:read-\w+)/)) {
|
|
719
719
|
case ":read-only":
|
|
720
720
|
case ":read-write":
|
|
@@ -733,7 +733,7 @@ var ti = function(t, r, a, n) {
|
|
|
733
733
|
return "";
|
|
734
734
|
});
|
|
735
735
|
}
|
|
736
|
-
},
|
|
736
|
+
}, ni = [ri], Dn = function(t) {
|
|
737
737
|
var r = t.key;
|
|
738
738
|
if (process.env.NODE_ENV !== "production" && !r)
|
|
739
739
|
throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
@@ -745,7 +745,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
745
745
|
w.indexOf(" ") !== -1 && (document.head.appendChild(b), b.setAttribute("data-s", ""));
|
|
746
746
|
});
|
|
747
747
|
}
|
|
748
|
-
var n = t.stylisPlugins ||
|
|
748
|
+
var n = t.stylisPlugins || ni;
|
|
749
749
|
if (process.env.NODE_ENV !== "production" && /[^a-z-]/.test(r))
|
|
750
750
|
throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + r + '" was passed');
|
|
751
751
|
var i = {}, o, s = [];
|
|
@@ -759,19 +759,19 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
759
759
|
s.push(b);
|
|
760
760
|
}
|
|
761
761
|
);
|
|
762
|
-
var u, f = [
|
|
763
|
-
process.env.NODE_ENV !== "production" && f.push(
|
|
762
|
+
var u, f = [Wa, Ga];
|
|
763
|
+
process.env.NODE_ENV !== "production" && f.push(Qa({
|
|
764
764
|
get compat() {
|
|
765
765
|
return y.compat;
|
|
766
766
|
}
|
|
767
|
-
}),
|
|
767
|
+
}), ti);
|
|
768
768
|
{
|
|
769
|
-
var l, c = [
|
|
770
|
-
b.root || (b.return ? l.insert(b.return) : b.value && b.type !==
|
|
771
|
-
} :
|
|
769
|
+
var l, c = [Va, process.env.NODE_ENV !== "production" ? function(b) {
|
|
770
|
+
b.root || (b.return ? l.insert(b.return) : b.value && b.type !== rr && l.insert(b.value + "{}"));
|
|
771
|
+
} : za(function(b) {
|
|
772
772
|
l.insert(b);
|
|
773
|
-
})], d =
|
|
774
|
-
return se(
|
|
773
|
+
})], d = qa(f.concat(n, c)), p = function(w) {
|
|
774
|
+
return se(Ma(w), d);
|
|
775
775
|
};
|
|
776
776
|
u = function(w, h, g, O) {
|
|
777
777
|
l = g, process.env.NODE_ENV !== "production" && h.map !== void 0 && (l = {
|
|
@@ -783,7 +783,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
783
783
|
}
|
|
784
784
|
var y = {
|
|
785
785
|
key: r,
|
|
786
|
-
sheet: new
|
|
786
|
+
sheet: new La({
|
|
787
787
|
key: r,
|
|
788
788
|
container: o,
|
|
789
789
|
nonce: t.nonce,
|
|
@@ -798,10 +798,10 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
798
798
|
};
|
|
799
799
|
return y.sheet.hydrate(s), y;
|
|
800
800
|
};
|
|
801
|
-
function
|
|
801
|
+
function ai(e) {
|
|
802
802
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
803
803
|
}
|
|
804
|
-
var Vt = {},
|
|
804
|
+
var Vt = {}, ii = {
|
|
805
805
|
get exports() {
|
|
806
806
|
return Vt;
|
|
807
807
|
},
|
|
@@ -817,11 +817,11 @@ var Vt = {}, ai = {
|
|
|
817
817
|
* This source code is licensed under the MIT license found in the
|
|
818
818
|
* LICENSE file in the root directory of this source tree.
|
|
819
819
|
*/
|
|
820
|
-
var
|
|
821
|
-
function
|
|
822
|
-
if (
|
|
820
|
+
var wr;
|
|
821
|
+
function oi() {
|
|
822
|
+
if (wr)
|
|
823
823
|
return R;
|
|
824
|
-
|
|
824
|
+
wr = 1;
|
|
825
825
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, n = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, d = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, g = e ? Symbol.for("react.scope") : 60119;
|
|
826
826
|
function O(v) {
|
|
827
827
|
if (typeof v == "object" && v !== null) {
|
|
@@ -893,9 +893,9 @@ var k = {};
|
|
|
893
893
|
* This source code is licensed under the MIT license found in the
|
|
894
894
|
* LICENSE file in the root directory of this source tree.
|
|
895
895
|
*/
|
|
896
|
-
var
|
|
897
|
-
function
|
|
898
|
-
return
|
|
896
|
+
var Sr;
|
|
897
|
+
function si() {
|
|
898
|
+
return Sr || (Sr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
899
899
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, n = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, d = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, g = e ? Symbol.for("react.scope") : 60119;
|
|
900
900
|
function O(E) {
|
|
901
901
|
return typeof E == "string" || typeof E == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
@@ -916,14 +916,14 @@ function oi() {
|
|
|
916
916
|
case c:
|
|
917
917
|
return ve;
|
|
918
918
|
default:
|
|
919
|
-
var
|
|
920
|
-
switch (
|
|
919
|
+
var pr = ve && ve.$$typeof;
|
|
920
|
+
switch (pr) {
|
|
921
921
|
case s:
|
|
922
922
|
case l:
|
|
923
923
|
case y:
|
|
924
924
|
case p:
|
|
925
925
|
case o:
|
|
926
|
-
return
|
|
926
|
+
return pr;
|
|
927
927
|
default:
|
|
928
928
|
return we;
|
|
929
929
|
}
|
|
@@ -977,32 +977,32 @@ function oi() {
|
|
|
977
977
|
}()), k;
|
|
978
978
|
}
|
|
979
979
|
(function(e) {
|
|
980
|
-
process.env.NODE_ENV === "production" ? e.exports =
|
|
981
|
-
})(
|
|
982
|
-
var
|
|
980
|
+
process.env.NODE_ENV === "production" ? e.exports = oi() : e.exports = si();
|
|
981
|
+
})(ii);
|
|
982
|
+
var Fn = Vt, ui = {
|
|
983
983
|
$$typeof: !0,
|
|
984
984
|
render: !0,
|
|
985
985
|
defaultProps: !0,
|
|
986
986
|
displayName: !0,
|
|
987
987
|
propTypes: !0
|
|
988
|
-
},
|
|
988
|
+
}, ci = {
|
|
989
989
|
$$typeof: !0,
|
|
990
990
|
compare: !0,
|
|
991
991
|
defaultProps: !0,
|
|
992
992
|
displayName: !0,
|
|
993
993
|
propTypes: !0,
|
|
994
994
|
type: !0
|
|
995
|
-
},
|
|
996
|
-
Fn
|
|
997
|
-
Fn
|
|
998
|
-
var
|
|
999
|
-
function
|
|
995
|
+
}, Un = {};
|
|
996
|
+
Un[Fn.ForwardRef] = ui;
|
|
997
|
+
Un[Fn.Memo] = ci;
|
|
998
|
+
var fi = !0;
|
|
999
|
+
function li(e, t, r) {
|
|
1000
1000
|
var a = "";
|
|
1001
1001
|
return r.split(" ").forEach(function(n) {
|
|
1002
1002
|
e[n] !== void 0 ? t.push(e[n] + ";") : a += n + " ";
|
|
1003
1003
|
}), a;
|
|
1004
1004
|
}
|
|
1005
|
-
var
|
|
1005
|
+
var Mn = function(t, r, a) {
|
|
1006
1006
|
var n = t.key + "-" + r.name;
|
|
1007
1007
|
// we only need to add the styles to the registered cache if the
|
|
1008
1008
|
// class name could be used further down
|
|
@@ -1013,9 +1013,9 @@ var Un = function(t, r, a) {
|
|
|
1013
1013
|
// in node since emotion-server relies on whether a style is in
|
|
1014
1014
|
// the registered cache to know whether a style is global or not
|
|
1015
1015
|
// also, note that this check will be dead code eliminated in the browser
|
|
1016
|
-
|
|
1017
|
-
},
|
|
1018
|
-
|
|
1016
|
+
fi === !1) && t.registered[n] === void 0 && (t.registered[n] = r.styles);
|
|
1017
|
+
}, di = function(t, r, a) {
|
|
1018
|
+
Mn(t, r, a);
|
|
1019
1019
|
var n = t.key + "-" + r.name;
|
|
1020
1020
|
if (t.inserted[r.name] === void 0) {
|
|
1021
1021
|
var i = r;
|
|
@@ -1024,7 +1024,7 @@ var Un = function(t, r, a) {
|
|
|
1024
1024
|
while (i !== void 0);
|
|
1025
1025
|
}
|
|
1026
1026
|
};
|
|
1027
|
-
function
|
|
1027
|
+
function pi(e) {
|
|
1028
1028
|
for (var t = 0, r, a = 0, n = e.length; n >= 4; ++a, n -= 4)
|
|
1029
1029
|
r = e.charCodeAt(a) & 255 | (e.charCodeAt(++a) & 255) << 8 | (e.charCodeAt(++a) & 255) << 16 | (e.charCodeAt(++a) & 255) << 24, r = /* Math.imul(k, m): */
|
|
1030
1030
|
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
|
|
@@ -1043,7 +1043,7 @@ function di(e) {
|
|
|
1043
1043
|
return t ^= t >>> 13, t = /* Math.imul(h, m): */
|
|
1044
1044
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
1045
1045
|
}
|
|
1046
|
-
var
|
|
1046
|
+
var hi = {
|
|
1047
1047
|
animationIterationCount: 1,
|
|
1048
1048
|
borderImageOutset: 1,
|
|
1049
1049
|
borderImageSlice: 1,
|
|
@@ -1090,21 +1090,21 @@ var pi = {
|
|
|
1090
1090
|
strokeMiterlimit: 1,
|
|
1091
1091
|
strokeOpacity: 1,
|
|
1092
1092
|
strokeWidth: 1
|
|
1093
|
-
},
|
|
1093
|
+
}, xr = `You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
1094
1094
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
1095
1095
|
You can read more about this here:
|
|
1096
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,
|
|
1096
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, gi = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", mi = /[A-Z]|^ms/g, Bn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ir = function(t) {
|
|
1097
1097
|
return t.charCodeAt(1) === 45;
|
|
1098
|
-
},
|
|
1098
|
+
}, Or = function(t) {
|
|
1099
1099
|
return t != null && typeof t != "boolean";
|
|
1100
|
-
}, St = /* @__PURE__ */
|
|
1101
|
-
return
|
|
1100
|
+
}, St = /* @__PURE__ */ $n(function(e) {
|
|
1101
|
+
return ir(e) ? e : e.replace(mi, "-$&").toLowerCase();
|
|
1102
1102
|
}), et = function(t, r) {
|
|
1103
1103
|
switch (t) {
|
|
1104
1104
|
case "animation":
|
|
1105
1105
|
case "animationName":
|
|
1106
1106
|
if (typeof r == "string")
|
|
1107
|
-
return r.replace(
|
|
1107
|
+
return r.replace(Bn, function(a, n, i) {
|
|
1108
1108
|
return K = {
|
|
1109
1109
|
name: n,
|
|
1110
1110
|
styles: i,
|
|
@@ -1112,26 +1112,26 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
1112
1112
|
}, n;
|
|
1113
1113
|
});
|
|
1114
1114
|
}
|
|
1115
|
-
return
|
|
1115
|
+
return hi[t] !== 1 && !ir(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
|
|
1116
1116
|
};
|
|
1117
1117
|
if (process.env.NODE_ENV !== "production") {
|
|
1118
|
-
var
|
|
1118
|
+
var vi = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, yi = ["normal", "none", "initial", "inherit", "unset"], bi = et, wi = /^-ms-/, Si = /-(.)/g, Er = {};
|
|
1119
1119
|
et = function(t, r) {
|
|
1120
|
-
if (t === "content" && (typeof r != "string" ||
|
|
1120
|
+
if (t === "content" && (typeof r != "string" || yi.indexOf(r) === -1 && !vi.test(r) && (r.charAt(0) !== r.charAt(r.length - 1) || r.charAt(0) !== '"' && r.charAt(0) !== "'")))
|
|
1121
1121
|
throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + r + "\"'`");
|
|
1122
|
-
var a =
|
|
1123
|
-
return a !== "" && !
|
|
1122
|
+
var a = bi(t, r);
|
|
1123
|
+
return a !== "" && !ir(t) && t.indexOf("-") !== -1 && Er[t] === void 0 && (Er[t] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + t.replace(wi, "ms-").replace(Si, function(n, i) {
|
|
1124
1124
|
return i.toUpperCase();
|
|
1125
1125
|
}) + "?")), a;
|
|
1126
1126
|
};
|
|
1127
1127
|
}
|
|
1128
|
-
var
|
|
1128
|
+
var Vn = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
|
|
1129
1129
|
function Fe(e, t, r) {
|
|
1130
1130
|
if (r == null)
|
|
1131
1131
|
return "";
|
|
1132
1132
|
if (r.__emotion_styles !== void 0) {
|
|
1133
1133
|
if (process.env.NODE_ENV !== "production" && r.toString() === "NO_COMPONENT_SELECTOR")
|
|
1134
|
-
throw new Error(
|
|
1134
|
+
throw new Error(Vn);
|
|
1135
1135
|
return r;
|
|
1136
1136
|
}
|
|
1137
1137
|
switch (typeof r) {
|
|
@@ -1156,7 +1156,7 @@ function Fe(e, t, r) {
|
|
|
1156
1156
|
var n = r.styles + ";";
|
|
1157
1157
|
return process.env.NODE_ENV !== "production" && r.map !== void 0 && (n += r.map), n;
|
|
1158
1158
|
}
|
|
1159
|
-
return
|
|
1159
|
+
return xi(e, t, r);
|
|
1160
1160
|
}
|
|
1161
1161
|
case "function": {
|
|
1162
1162
|
if (e !== void 0) {
|
|
@@ -1168,7 +1168,7 @@ function Fe(e, t, r) {
|
|
|
1168
1168
|
}
|
|
1169
1169
|
case "string":
|
|
1170
1170
|
if (process.env.NODE_ENV !== "production") {
|
|
1171
|
-
var s = [], u = r.replace(
|
|
1171
|
+
var s = [], u = r.replace(Bn, function(l, c, d) {
|
|
1172
1172
|
var p = "animation" + s.length;
|
|
1173
1173
|
return s.push("const " + p + " = keyframes`" + d.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + p + "}";
|
|
1174
1174
|
});
|
|
@@ -1186,7 +1186,7 @@ You should wrap it with \`css\` like this:
|
|
|
1186
1186
|
var f = t[r];
|
|
1187
1187
|
return f !== void 0 ? f : r;
|
|
1188
1188
|
}
|
|
1189
|
-
function
|
|
1189
|
+
function xi(e, t, r) {
|
|
1190
1190
|
var a = "";
|
|
1191
1191
|
if (Array.isArray(r))
|
|
1192
1192
|
for (var n = 0; n < r.length; n++)
|
|
@@ -1195,13 +1195,13 @@ function Si(e, t, r) {
|
|
|
1195
1195
|
for (var i in r) {
|
|
1196
1196
|
var o = r[i];
|
|
1197
1197
|
if (typeof o != "object")
|
|
1198
|
-
t != null && t[o] !== void 0 ? a += i + "{" + t[o] + "}" :
|
|
1198
|
+
t != null && t[o] !== void 0 ? a += i + "{" + t[o] + "}" : Or(o) && (a += St(i) + ":" + et(i, o) + ";");
|
|
1199
1199
|
else {
|
|
1200
1200
|
if (i === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production")
|
|
1201
|
-
throw new Error(
|
|
1201
|
+
throw new Error(Vn);
|
|
1202
1202
|
if (Array.isArray(o) && typeof o[0] == "string" && (t == null || t[o[0]] === void 0))
|
|
1203
1203
|
for (var s = 0; s < o.length; s++)
|
|
1204
|
-
|
|
1204
|
+
Or(o[s]) && (a += St(i) + ":" + et(i, o[s]) + ";");
|
|
1205
1205
|
else {
|
|
1206
1206
|
var u = Fe(e, t, o);
|
|
1207
1207
|
switch (i) {
|
|
@@ -1211,32 +1211,32 @@ function Si(e, t, r) {
|
|
|
1211
1211
|
break;
|
|
1212
1212
|
}
|
|
1213
1213
|
default:
|
|
1214
|
-
process.env.NODE_ENV !== "production" && i === "undefined" && console.error(
|
|
1214
|
+
process.env.NODE_ENV !== "production" && i === "undefined" && console.error(gi), a += i + "{" + u + "}";
|
|
1215
1215
|
}
|
|
1216
1216
|
}
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
1219
|
return a;
|
|
1220
1220
|
}
|
|
1221
|
-
var
|
|
1222
|
-
process.env.NODE_ENV !== "production" && (
|
|
1223
|
-
var K,
|
|
1221
|
+
var Pr = /label:\s*([^\s;\n{]+)\s*(;|$)/g, qn;
|
|
1222
|
+
process.env.NODE_ENV !== "production" && (qn = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);
|
|
1223
|
+
var K, Cr = function(t, r, a) {
|
|
1224
1224
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
1225
1225
|
return t[0];
|
|
1226
1226
|
var n = !0, i = "";
|
|
1227
1227
|
K = void 0;
|
|
1228
1228
|
var o = t[0];
|
|
1229
|
-
o == null || o.raw === void 0 ? (n = !1, i += Fe(a, r, o)) : (process.env.NODE_ENV !== "production" && o[0] === void 0 && console.error(
|
|
1229
|
+
o == null || o.raw === void 0 ? (n = !1, i += Fe(a, r, o)) : (process.env.NODE_ENV !== "production" && o[0] === void 0 && console.error(xr), i += o[0]);
|
|
1230
1230
|
for (var s = 1; s < t.length; s++)
|
|
1231
|
-
i += Fe(a, r, t[s]), n && (process.env.NODE_ENV !== "production" && o[s] === void 0 && console.error(
|
|
1231
|
+
i += Fe(a, r, t[s]), n && (process.env.NODE_ENV !== "production" && o[s] === void 0 && console.error(xr), i += o[s]);
|
|
1232
1232
|
var u;
|
|
1233
|
-
process.env.NODE_ENV !== "production" && (i = i.replace(
|
|
1233
|
+
process.env.NODE_ENV !== "production" && (i = i.replace(qn, function(d) {
|
|
1234
1234
|
return u = d, "";
|
|
1235
|
-
})),
|
|
1236
|
-
for (var f = "", l; (l =
|
|
1235
|
+
})), Pr.lastIndex = 0;
|
|
1236
|
+
for (var f = "", l; (l = Pr.exec(i)) !== null; )
|
|
1237
1237
|
f += "-" + // $FlowFixMe we know it's not null
|
|
1238
1238
|
l[1];
|
|
1239
|
-
var c =
|
|
1239
|
+
var c = pi(i) + f;
|
|
1240
1240
|
return process.env.NODE_ENV !== "production" ? {
|
|
1241
1241
|
name: c,
|
|
1242
1242
|
styles: i,
|
|
@@ -1250,50 +1250,50 @@ var K, Pr = function(t, r, a) {
|
|
|
1250
1250
|
styles: i,
|
|
1251
1251
|
next: K
|
|
1252
1252
|
};
|
|
1253
|
-
},
|
|
1253
|
+
}, Oi = function(t) {
|
|
1254
1254
|
return t();
|
|
1255
|
-
},
|
|
1255
|
+
}, Ei = Mt["useInsertionEffect"] ? Mt["useInsertionEffect"] : !1, Pi = Ei || Oi, lt = {}.hasOwnProperty, or = /* @__PURE__ */ Zt(
|
|
1256
1256
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1257
1257
|
// because this module is primarily intended for the browser and node
|
|
1258
1258
|
// but it's also required in react native and similar environments sometimes
|
|
1259
1259
|
// and we could have a special build just for that
|
|
1260
1260
|
// but this is much easier and the native packages
|
|
1261
1261
|
// might use a different theme context in the future anyway
|
|
1262
|
-
typeof HTMLElement < "u" ? /* @__PURE__ */
|
|
1262
|
+
typeof HTMLElement < "u" ? /* @__PURE__ */ Dn({
|
|
1263
1263
|
key: "css"
|
|
1264
1264
|
}) : null
|
|
1265
1265
|
);
|
|
1266
|
-
process.env.NODE_ENV !== "production" && (
|
|
1267
|
-
|
|
1268
|
-
var
|
|
1269
|
-
return /* @__PURE__ */
|
|
1270
|
-
var n =
|
|
1266
|
+
process.env.NODE_ENV !== "production" && (or.displayName = "EmotionCacheContext");
|
|
1267
|
+
or.Provider;
|
|
1268
|
+
var Ci = function(t) {
|
|
1269
|
+
return /* @__PURE__ */ ma(function(r, a) {
|
|
1270
|
+
var n = Qt(or);
|
|
1271
1271
|
return t(r, n, a);
|
|
1272
1272
|
});
|
|
1273
|
-
},
|
|
1274
|
-
process.env.NODE_ENV !== "production" && (
|
|
1275
|
-
var
|
|
1273
|
+
}, zn = /* @__PURE__ */ Zt({});
|
|
1274
|
+
process.env.NODE_ENV !== "production" && (zn.displayName = "EmotionThemeContext");
|
|
1275
|
+
var Rr = function(t) {
|
|
1276
1276
|
var r = t.split(".");
|
|
1277
1277
|
return r[r.length - 1];
|
|
1278
|
-
},
|
|
1278
|
+
}, Ri = function(t) {
|
|
1279
1279
|
var r = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t);
|
|
1280
1280
|
if (r || (r = /^([A-Za-z0-9$.]+)@/.exec(t), r))
|
|
1281
|
-
return
|
|
1282
|
-
},
|
|
1281
|
+
return Rr(r[1]);
|
|
1282
|
+
}, ki = /* @__PURE__ */ new Set(["renderWithHooks", "processChild", "finishClassComponent", "renderToString"]), Ni = function(t) {
|
|
1283
1283
|
return t.replace(/\$/g, "-");
|
|
1284
|
-
},
|
|
1284
|
+
}, Li = function(t) {
|
|
1285
1285
|
if (t)
|
|
1286
1286
|
for (var r = t.split(`
|
|
1287
1287
|
`), a = 0; a < r.length; a++) {
|
|
1288
|
-
var n =
|
|
1288
|
+
var n = Ri(r[a]);
|
|
1289
1289
|
if (n) {
|
|
1290
|
-
if (
|
|
1290
|
+
if (ki.has(n))
|
|
1291
1291
|
break;
|
|
1292
1292
|
if (/^[A-Z]/.test(n))
|
|
1293
|
-
return
|
|
1293
|
+
return Ni(n);
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
|
-
}, qt = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", zt = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__",
|
|
1296
|
+
}, qt = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", zt = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", Hn = function(t, r) {
|
|
1297
1297
|
if (process.env.NODE_ENV !== "production" && typeof r.css == "string" && // check if there is a css declaration
|
|
1298
1298
|
r.css.indexOf(":") !== -1)
|
|
1299
1299
|
throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`" + r.css + "`");
|
|
@@ -1301,46 +1301,46 @@ var Cr = function(t) {
|
|
|
1301
1301
|
for (var n in r)
|
|
1302
1302
|
lt.call(r, n) && (a[n] = r[n]);
|
|
1303
1303
|
if (a[qt] = t, process.env.NODE_ENV !== "production" && r.css && (typeof r.css != "object" || typeof r.css.name != "string" || r.css.name.indexOf("-") === -1)) {
|
|
1304
|
-
var i =
|
|
1304
|
+
var i = Li(new Error().stack);
|
|
1305
1305
|
i && (a[zt] = i);
|
|
1306
1306
|
}
|
|
1307
1307
|
return a;
|
|
1308
|
-
},
|
|
1308
|
+
}, _i = function(t) {
|
|
1309
1309
|
var r = t.cache, a = t.serialized, n = t.isStringTag;
|
|
1310
|
-
return
|
|
1311
|
-
return
|
|
1310
|
+
return Mn(r, a, n), Pi(function() {
|
|
1311
|
+
return di(r, a, n);
|
|
1312
1312
|
}), null;
|
|
1313
|
-
},
|
|
1313
|
+
}, sr = /* @__PURE__ */ Ci(function(e, t, r) {
|
|
1314
1314
|
var a = e.css;
|
|
1315
1315
|
typeof a == "string" && t.registered[a] !== void 0 && (a = t.registered[a]);
|
|
1316
1316
|
var n = e[qt], i = [a], o = "";
|
|
1317
|
-
typeof e.className == "string" ? o =
|
|
1318
|
-
var s =
|
|
1317
|
+
typeof e.className == "string" ? o = li(t.registered, i, e.className) : e.className != null && (o = e.className + " ");
|
|
1318
|
+
var s = Cr(i, void 0, Qt(zn));
|
|
1319
1319
|
if (process.env.NODE_ENV !== "production" && s.name.indexOf("-") === -1) {
|
|
1320
1320
|
var u = e[zt];
|
|
1321
|
-
u && (s =
|
|
1321
|
+
u && (s = Cr([s, "label:" + u + ";"]));
|
|
1322
1322
|
}
|
|
1323
1323
|
o += t.key + "-" + s.name;
|
|
1324
1324
|
var f = {};
|
|
1325
1325
|
for (var l in e)
|
|
1326
1326
|
lt.call(e, l) && l !== "css" && l !== qt && (process.env.NODE_ENV === "production" || l !== zt) && (f[l] = e[l]);
|
|
1327
|
-
return f.ref = r, f.className = o, /* @__PURE__ */ wt(
|
|
1327
|
+
return f.ref = r, f.className = o, /* @__PURE__ */ wt(va, null, /* @__PURE__ */ wt(_i, {
|
|
1328
1328
|
cache: t,
|
|
1329
1329
|
serialized: s,
|
|
1330
1330
|
isStringTag: typeof n == "string"
|
|
1331
1331
|
}), /* @__PURE__ */ wt(n, f));
|
|
1332
1332
|
});
|
|
1333
|
-
process.env.NODE_ENV !== "production" && (
|
|
1333
|
+
process.env.NODE_ENV !== "production" && (sr.displayName = "EmotionCssPropInternal");
|
|
1334
1334
|
function V(e, t, r) {
|
|
1335
|
-
return lt.call(t, "css") ?
|
|
1335
|
+
return lt.call(t, "css") ? hr(sr, Hn(e, t), r) : hr(e, t, r);
|
|
1336
1336
|
}
|
|
1337
|
-
function
|
|
1338
|
-
return lt.call(t, "css") ?
|
|
1337
|
+
function Ai(e, t, r) {
|
|
1338
|
+
return lt.call(t, "css") ? gr(sr, Hn(e, t), r) : gr(e, t, r);
|
|
1339
1339
|
}
|
|
1340
|
-
var
|
|
1341
|
-
Object.defineProperty(
|
|
1342
|
-
var
|
|
1343
|
-
},
|
|
1340
|
+
var Kn = {};
|
|
1341
|
+
Object.defineProperty(Kn, "__esModule", { value: !0 });
|
|
1342
|
+
var Ti = Kn.default = function() {
|
|
1343
|
+
}, kr = (e, t, r) => new Promise((a, n) => {
|
|
1344
1344
|
var i = (u) => {
|
|
1345
1345
|
try {
|
|
1346
1346
|
s(r.next(u));
|
|
@@ -1356,15 +1356,15 @@ var Ai = Hn.default = function() {
|
|
|
1356
1356
|
}, s = (u) => u.done ? a(u.value) : Promise.resolve(u.value).then(i, o);
|
|
1357
1357
|
s((r = r.apply(e, t)).next());
|
|
1358
1358
|
});
|
|
1359
|
-
const
|
|
1360
|
-
const [a, n] =
|
|
1361
|
-
return
|
|
1362
|
-
|
|
1359
|
+
const $i = ({ cdnURL: e = "/", scope: t, theme: r }) => {
|
|
1360
|
+
const [a, n] = er();
|
|
1361
|
+
return tr(() => {
|
|
1362
|
+
kr(void 0, null, function* () {
|
|
1363
1363
|
var i;
|
|
1364
1364
|
try {
|
|
1365
1365
|
const o = (i = r?.fontFaces) != null ? i : [];
|
|
1366
1366
|
yield Promise.all(
|
|
1367
|
-
o.map((s) =>
|
|
1367
|
+
o.map((s) => kr(void 0, [s], function* ({ family: u, source: f, descriptors: l }) {
|
|
1368
1368
|
const c = f.map((d) => `url(${d.replace("$cdnUrl", e)})`).join(", ");
|
|
1369
1369
|
try {
|
|
1370
1370
|
const p = yield new FontFace(u, c, l).load();
|
|
@@ -1378,57 +1378,57 @@ const Ti = ({ cdnURL: e = "/", scope: t, theme: r }) => {
|
|
|
1378
1378
|
it.error({ error: o }, "Error loading fonts");
|
|
1379
1379
|
}
|
|
1380
1380
|
});
|
|
1381
|
-
}, [e, r]),
|
|
1381
|
+
}, [e, r]), ba({
|
|
1382
1382
|
[`.${t}`]: { fontFamily: a }
|
|
1383
1383
|
});
|
|
1384
1384
|
};
|
|
1385
|
-
var Ht = {},
|
|
1385
|
+
var Ht = {}, ji = {
|
|
1386
1386
|
get exports() {
|
|
1387
1387
|
return Ht;
|
|
1388
1388
|
},
|
|
1389
1389
|
set exports(e) {
|
|
1390
1390
|
Ht = e;
|
|
1391
1391
|
}
|
|
1392
|
-
}, tt = {},
|
|
1392
|
+
}, tt = {}, Ii = {
|
|
1393
1393
|
get exports() {
|
|
1394
1394
|
return tt;
|
|
1395
1395
|
},
|
|
1396
1396
|
set exports(e) {
|
|
1397
1397
|
tt = e;
|
|
1398
1398
|
}
|
|
1399
|
-
},
|
|
1399
|
+
}, Jn = function(t, r) {
|
|
1400
1400
|
return function() {
|
|
1401
1401
|
for (var n = new Array(arguments.length), i = 0; i < n.length; i++)
|
|
1402
1402
|
n[i] = arguments[i];
|
|
1403
1403
|
return t.apply(r, n);
|
|
1404
1404
|
};
|
|
1405
|
-
},
|
|
1406
|
-
function
|
|
1405
|
+
}, Di = Jn, le = Object.prototype.toString;
|
|
1406
|
+
function ur(e) {
|
|
1407
1407
|
return Array.isArray(e);
|
|
1408
1408
|
}
|
|
1409
1409
|
function Kt(e) {
|
|
1410
1410
|
return typeof e > "u";
|
|
1411
1411
|
}
|
|
1412
|
-
function
|
|
1412
|
+
function Fi(e) {
|
|
1413
1413
|
return e !== null && !Kt(e) && e.constructor !== null && !Kt(e.constructor) && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e);
|
|
1414
1414
|
}
|
|
1415
|
-
function
|
|
1415
|
+
function Yn(e) {
|
|
1416
1416
|
return le.call(e) === "[object ArrayBuffer]";
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1418
|
+
function Ui(e) {
|
|
1419
1419
|
return le.call(e) === "[object FormData]";
|
|
1420
1420
|
}
|
|
1421
|
-
function
|
|
1421
|
+
function Mi(e) {
|
|
1422
1422
|
var t;
|
|
1423
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
1423
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Yn(e.buffer), t;
|
|
1424
1424
|
}
|
|
1425
|
-
function
|
|
1425
|
+
function Bi(e) {
|
|
1426
1426
|
return typeof e == "string";
|
|
1427
1427
|
}
|
|
1428
|
-
function
|
|
1428
|
+
function Vi(e) {
|
|
1429
1429
|
return typeof e == "number";
|
|
1430
1430
|
}
|
|
1431
|
-
function
|
|
1431
|
+
function Wn(e) {
|
|
1432
1432
|
return e !== null && typeof e == "object";
|
|
1433
1433
|
}
|
|
1434
1434
|
function Ze(e) {
|
|
@@ -1437,33 +1437,33 @@ function Ze(e) {
|
|
|
1437
1437
|
var t = Object.getPrototypeOf(e);
|
|
1438
1438
|
return t === null || t === Object.prototype;
|
|
1439
1439
|
}
|
|
1440
|
-
function
|
|
1440
|
+
function qi(e) {
|
|
1441
1441
|
return le.call(e) === "[object Date]";
|
|
1442
1442
|
}
|
|
1443
|
-
function
|
|
1443
|
+
function zi(e) {
|
|
1444
1444
|
return le.call(e) === "[object File]";
|
|
1445
1445
|
}
|
|
1446
|
-
function
|
|
1446
|
+
function Hi(e) {
|
|
1447
1447
|
return le.call(e) === "[object Blob]";
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function Gn(e) {
|
|
1450
1450
|
return le.call(e) === "[object Function]";
|
|
1451
1451
|
}
|
|
1452
|
-
function Hi(e) {
|
|
1453
|
-
return Yn(e) && Wn(e.pipe);
|
|
1454
|
-
}
|
|
1455
1452
|
function Ki(e) {
|
|
1456
|
-
return
|
|
1453
|
+
return Wn(e) && Gn(e.pipe);
|
|
1457
1454
|
}
|
|
1458
1455
|
function Ji(e) {
|
|
1456
|
+
return le.call(e) === "[object URLSearchParams]";
|
|
1457
|
+
}
|
|
1458
|
+
function Yi(e) {
|
|
1459
1459
|
return e.trim ? e.trim() : e.replace(/^\s+|\s+$/g, "");
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1461
|
+
function Wi() {
|
|
1462
1462
|
return typeof navigator < "u" && (navigator.product === "ReactNative" || navigator.product === "NativeScript" || navigator.product === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
1463
1463
|
}
|
|
1464
|
-
function
|
|
1464
|
+
function cr(e, t) {
|
|
1465
1465
|
if (!(e === null || typeof e > "u"))
|
|
1466
|
-
if (typeof e != "object" && (e = [e]),
|
|
1466
|
+
if (typeof e != "object" && (e = [e]), ur(e))
|
|
1467
1467
|
for (var r = 0, a = e.length; r < a; r++)
|
|
1468
1468
|
t.call(null, e[r], r, e);
|
|
1469
1469
|
else
|
|
@@ -1473,48 +1473,48 @@ function ur(e, t) {
|
|
|
1473
1473
|
function Jt() {
|
|
1474
1474
|
var e = {};
|
|
1475
1475
|
function t(n, i) {
|
|
1476
|
-
Ze(e[i]) && Ze(n) ? e[i] = Jt(e[i], n) : Ze(n) ? e[i] = Jt({}, n) :
|
|
1476
|
+
Ze(e[i]) && Ze(n) ? e[i] = Jt(e[i], n) : Ze(n) ? e[i] = Jt({}, n) : ur(n) ? e[i] = n.slice() : e[i] = n;
|
|
1477
1477
|
}
|
|
1478
1478
|
for (var r = 0, a = arguments.length; r < a; r++)
|
|
1479
|
-
|
|
1479
|
+
cr(arguments[r], t);
|
|
1480
1480
|
return e;
|
|
1481
1481
|
}
|
|
1482
|
-
function
|
|
1483
|
-
return
|
|
1484
|
-
r && typeof n == "function" ? e[i] =
|
|
1482
|
+
function Gi(e, t, r) {
|
|
1483
|
+
return cr(t, function(n, i) {
|
|
1484
|
+
r && typeof n == "function" ? e[i] = Di(n, r) : e[i] = n;
|
|
1485
1485
|
}), e;
|
|
1486
1486
|
}
|
|
1487
|
-
function
|
|
1487
|
+
function Xi(e) {
|
|
1488
1488
|
return e.charCodeAt(0) === 65279 && (e = e.slice(1)), e;
|
|
1489
1489
|
}
|
|
1490
1490
|
var F = {
|
|
1491
|
-
isArray:
|
|
1492
|
-
isArrayBuffer:
|
|
1493
|
-
isBuffer:
|
|
1494
|
-
isFormData:
|
|
1495
|
-
isArrayBufferView:
|
|
1496
|
-
isString:
|
|
1497
|
-
isNumber:
|
|
1498
|
-
isObject:
|
|
1491
|
+
isArray: ur,
|
|
1492
|
+
isArrayBuffer: Yn,
|
|
1493
|
+
isBuffer: Fi,
|
|
1494
|
+
isFormData: Ui,
|
|
1495
|
+
isArrayBufferView: Mi,
|
|
1496
|
+
isString: Bi,
|
|
1497
|
+
isNumber: Vi,
|
|
1498
|
+
isObject: Wn,
|
|
1499
1499
|
isPlainObject: Ze,
|
|
1500
1500
|
isUndefined: Kt,
|
|
1501
|
-
isDate:
|
|
1502
|
-
isFile:
|
|
1503
|
-
isBlob:
|
|
1504
|
-
isFunction:
|
|
1505
|
-
isStream:
|
|
1506
|
-
isURLSearchParams:
|
|
1507
|
-
isStandardBrowserEnv:
|
|
1508
|
-
forEach:
|
|
1501
|
+
isDate: qi,
|
|
1502
|
+
isFile: zi,
|
|
1503
|
+
isBlob: Hi,
|
|
1504
|
+
isFunction: Gn,
|
|
1505
|
+
isStream: Ki,
|
|
1506
|
+
isURLSearchParams: Ji,
|
|
1507
|
+
isStandardBrowserEnv: Wi,
|
|
1508
|
+
forEach: cr,
|
|
1509
1509
|
merge: Jt,
|
|
1510
|
-
extend:
|
|
1511
|
-
trim:
|
|
1512
|
-
stripBOM:
|
|
1510
|
+
extend: Gi,
|
|
1511
|
+
trim: Yi,
|
|
1512
|
+
stripBOM: Xi
|
|
1513
1513
|
}, Se = F;
|
|
1514
|
-
function
|
|
1514
|
+
function Nr(e) {
|
|
1515
1515
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
1516
1516
|
}
|
|
1517
|
-
var
|
|
1517
|
+
var Xn = function(t, r, a) {
|
|
1518
1518
|
if (!r)
|
|
1519
1519
|
return t;
|
|
1520
1520
|
var n;
|
|
@@ -1526,7 +1526,7 @@ var Gn = function(t, r, a) {
|
|
|
1526
1526
|
var i = [];
|
|
1527
1527
|
Se.forEach(r, function(u, f) {
|
|
1528
1528
|
u === null || typeof u > "u" || (Se.isArray(u) ? f = f + "[]" : u = [u], Se.forEach(u, function(c) {
|
|
1529
|
-
Se.isDate(c) ? c = c.toISOString() : Se.isObject(c) && (c = JSON.stringify(c)), i.push(
|
|
1529
|
+
Se.isDate(c) ? c = c.toISOString() : Se.isObject(c) && (c = JSON.stringify(c)), i.push(Nr(f) + "=" + Nr(c));
|
|
1530
1530
|
}));
|
|
1531
1531
|
}), n = i.join("&");
|
|
1532
1532
|
}
|
|
@@ -1535,7 +1535,7 @@ var Gn = function(t, r, a) {
|
|
|
1535
1535
|
o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + n;
|
|
1536
1536
|
}
|
|
1537
1537
|
return t;
|
|
1538
|
-
},
|
|
1538
|
+
}, Zi = F;
|
|
1539
1539
|
function dt() {
|
|
1540
1540
|
this.handlers = [];
|
|
1541
1541
|
}
|
|
@@ -1551,15 +1551,15 @@ dt.prototype.eject = function(t) {
|
|
|
1551
1551
|
this.handlers[t] && (this.handlers[t] = null);
|
|
1552
1552
|
};
|
|
1553
1553
|
dt.prototype.forEach = function(t) {
|
|
1554
|
-
|
|
1554
|
+
Zi.forEach(this.handlers, function(a) {
|
|
1555
1555
|
a !== null && t(a);
|
|
1556
1556
|
});
|
|
1557
1557
|
};
|
|
1558
|
-
var
|
|
1559
|
-
|
|
1558
|
+
var Qi = dt, eo = F, to = function(t, r) {
|
|
1559
|
+
eo.forEach(t, function(n, i) {
|
|
1560
1560
|
i !== r && i.toUpperCase() === r.toUpperCase() && (t[r] = n, delete t[i]);
|
|
1561
1561
|
});
|
|
1562
|
-
},
|
|
1562
|
+
}, Zn = function(t, r, a, n, i) {
|
|
1563
1563
|
return t.config = r, a && (t.code = a), t.request = n, t.response = i, t.isAxiosError = !0, t.toJSON = function() {
|
|
1564
1564
|
return {
|
|
1565
1565
|
// Standard
|
|
@@ -1579,27 +1579,27 @@ var Zi = dt, Qi = F, eo = function(t, r) {
|
|
|
1579
1579
|
status: this.response && this.response.status ? this.response.status : null
|
|
1580
1580
|
};
|
|
1581
1581
|
}, t;
|
|
1582
|
-
},
|
|
1582
|
+
}, Qn = {
|
|
1583
1583
|
silentJSONParsing: !0,
|
|
1584
1584
|
forcedJSONParsing: !0,
|
|
1585
1585
|
clarifyTimeoutError: !1
|
|
1586
|
-
}, xt,
|
|
1587
|
-
function
|
|
1588
|
-
if (
|
|
1586
|
+
}, xt, Lr;
|
|
1587
|
+
function ea() {
|
|
1588
|
+
if (Lr)
|
|
1589
1589
|
return xt;
|
|
1590
|
-
|
|
1591
|
-
var e =
|
|
1590
|
+
Lr = 1;
|
|
1591
|
+
var e = Zn;
|
|
1592
1592
|
return xt = function(r, a, n, i, o) {
|
|
1593
1593
|
var s = new Error(r);
|
|
1594
1594
|
return e(s, a, n, i, o);
|
|
1595
1595
|
}, xt;
|
|
1596
1596
|
}
|
|
1597
|
-
var Ot,
|
|
1598
|
-
function
|
|
1599
|
-
if (
|
|
1597
|
+
var Ot, _r;
|
|
1598
|
+
function ro() {
|
|
1599
|
+
if (_r)
|
|
1600
1600
|
return Ot;
|
|
1601
|
-
|
|
1602
|
-
var e =
|
|
1601
|
+
_r = 1;
|
|
1602
|
+
var e = ea();
|
|
1603
1603
|
return Ot = function(r, a, n) {
|
|
1604
1604
|
var i = n.config.validateStatus;
|
|
1605
1605
|
!n.status || !i || i(n.status) ? r(n) : a(e(
|
|
@@ -1611,11 +1611,11 @@ function to() {
|
|
|
1611
1611
|
));
|
|
1612
1612
|
}, Ot;
|
|
1613
1613
|
}
|
|
1614
|
-
var Et,
|
|
1615
|
-
function
|
|
1616
|
-
if (
|
|
1614
|
+
var Et, Ar;
|
|
1615
|
+
function no() {
|
|
1616
|
+
if (Ar)
|
|
1617
1617
|
return Et;
|
|
1618
|
-
|
|
1618
|
+
Ar = 1;
|
|
1619
1619
|
var e = F;
|
|
1620
1620
|
return Et = e.isStandardBrowserEnv() ? (
|
|
1621
1621
|
// Standard browser envs support document.cookie
|
|
@@ -1649,33 +1649,33 @@ function ro() {
|
|
|
1649
1649
|
}()
|
|
1650
1650
|
), Et;
|
|
1651
1651
|
}
|
|
1652
|
-
var Pt,
|
|
1653
|
-
function
|
|
1654
|
-
return
|
|
1652
|
+
var Pt, Tr;
|
|
1653
|
+
function ao() {
|
|
1654
|
+
return Tr || (Tr = 1, Pt = function(t) {
|
|
1655
1655
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
1656
1656
|
}), Pt;
|
|
1657
1657
|
}
|
|
1658
|
-
var Ct,
|
|
1659
|
-
function
|
|
1660
|
-
return
|
|
1658
|
+
var Ct, $r;
|
|
1659
|
+
function io() {
|
|
1660
|
+
return $r || ($r = 1, Ct = function(t, r) {
|
|
1661
1661
|
return r ? t.replace(/\/+$/, "") + "/" + r.replace(/^\/+/, "") : t;
|
|
1662
1662
|
}), Ct;
|
|
1663
1663
|
}
|
|
1664
|
-
var Rt,
|
|
1665
|
-
function
|
|
1666
|
-
if (
|
|
1664
|
+
var Rt, jr;
|
|
1665
|
+
function oo() {
|
|
1666
|
+
if (jr)
|
|
1667
1667
|
return Rt;
|
|
1668
|
-
|
|
1669
|
-
var e =
|
|
1668
|
+
jr = 1;
|
|
1669
|
+
var e = ao(), t = io();
|
|
1670
1670
|
return Rt = function(a, n) {
|
|
1671
1671
|
return a && !e(n) ? t(a, n) : n;
|
|
1672
1672
|
}, Rt;
|
|
1673
1673
|
}
|
|
1674
|
-
var kt,
|
|
1675
|
-
function
|
|
1676
|
-
if (
|
|
1674
|
+
var kt, Ir;
|
|
1675
|
+
function so() {
|
|
1676
|
+
if (Ir)
|
|
1677
1677
|
return kt;
|
|
1678
|
-
|
|
1678
|
+
Ir = 1;
|
|
1679
1679
|
var e = F, t = [
|
|
1680
1680
|
"age",
|
|
1681
1681
|
"authorization",
|
|
@@ -1707,11 +1707,11 @@ function oo() {
|
|
|
1707
1707
|
}), n;
|
|
1708
1708
|
}, kt;
|
|
1709
1709
|
}
|
|
1710
|
-
var Nt,
|
|
1711
|
-
function
|
|
1712
|
-
if (
|
|
1710
|
+
var Nt, Dr;
|
|
1711
|
+
function uo() {
|
|
1712
|
+
if (Dr)
|
|
1713
1713
|
return Nt;
|
|
1714
|
-
|
|
1714
|
+
Dr = 1;
|
|
1715
1715
|
var e = F;
|
|
1716
1716
|
return Nt = e.isStandardBrowserEnv() ? (
|
|
1717
1717
|
// Standard browser envs have full support of the APIs needed to test
|
|
@@ -1745,11 +1745,11 @@ function so() {
|
|
|
1745
1745
|
}()
|
|
1746
1746
|
), Nt;
|
|
1747
1747
|
}
|
|
1748
|
-
var Lt,
|
|
1748
|
+
var Lt, Fr;
|
|
1749
1749
|
function pt() {
|
|
1750
|
-
if (
|
|
1750
|
+
if (Fr)
|
|
1751
1751
|
return Lt;
|
|
1752
|
-
|
|
1752
|
+
Fr = 1;
|
|
1753
1753
|
function e(t) {
|
|
1754
1754
|
this.message = t;
|
|
1755
1755
|
}
|
|
@@ -1757,12 +1757,12 @@ function pt() {
|
|
|
1757
1757
|
return "Cancel" + (this.message ? ": " + this.message : "");
|
|
1758
1758
|
}, e.prototype.__CANCEL__ = !0, Lt = e, Lt;
|
|
1759
1759
|
}
|
|
1760
|
-
var _t,
|
|
1761
|
-
function
|
|
1762
|
-
if (
|
|
1760
|
+
var _t, Ur;
|
|
1761
|
+
function Mr() {
|
|
1762
|
+
if (Ur)
|
|
1763
1763
|
return _t;
|
|
1764
|
-
|
|
1765
|
-
var e = F, t =
|
|
1764
|
+
Ur = 1;
|
|
1765
|
+
var e = F, t = ro(), r = no(), a = Xn, n = oo(), i = so(), o = uo(), s = ea(), u = Qn, f = pt();
|
|
1766
1766
|
return _t = function(c) {
|
|
1767
1767
|
return new Promise(function(p, y) {
|
|
1768
1768
|
var b = c.data, w = c.headers, h = c.responseType, g;
|
|
@@ -1820,17 +1820,17 @@ function Ur() {
|
|
|
1820
1820
|
});
|
|
1821
1821
|
}, _t;
|
|
1822
1822
|
}
|
|
1823
|
-
var T = F,
|
|
1823
|
+
var T = F, Br = to, co = Zn, fo = Qn, lo = {
|
|
1824
1824
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
1825
1825
|
};
|
|
1826
|
-
function
|
|
1826
|
+
function Vr(e, t) {
|
|
1827
1827
|
!T.isUndefined(e) && T.isUndefined(e["Content-Type"]) && (e["Content-Type"] = t);
|
|
1828
1828
|
}
|
|
1829
|
-
function
|
|
1829
|
+
function po() {
|
|
1830
1830
|
var e;
|
|
1831
|
-
return (typeof XMLHttpRequest < "u" || typeof process < "u" && Object.prototype.toString.call(process) === "[object process]") && (e =
|
|
1831
|
+
return (typeof XMLHttpRequest < "u" || typeof process < "u" && Object.prototype.toString.call(process) === "[object process]") && (e = Mr()), e;
|
|
1832
1832
|
}
|
|
1833
|
-
function
|
|
1833
|
+
function ho(e, t, r) {
|
|
1834
1834
|
if (T.isString(e))
|
|
1835
1835
|
try {
|
|
1836
1836
|
return (t || JSON.parse)(e), T.trim(e);
|
|
@@ -1841,10 +1841,10 @@ function po(e, t, r) {
|
|
|
1841
1841
|
return (r || JSON.stringify)(e);
|
|
1842
1842
|
}
|
|
1843
1843
|
var ht = {
|
|
1844
|
-
transitional:
|
|
1845
|
-
adapter:
|
|
1844
|
+
transitional: fo,
|
|
1845
|
+
adapter: po(),
|
|
1846
1846
|
transformRequest: [function(t, r) {
|
|
1847
|
-
return
|
|
1847
|
+
return Br(r, "Accept"), Br(r, "Content-Type"), T.isFormData(t) || T.isArrayBuffer(t) || T.isBuffer(t) || T.isStream(t) || T.isFile(t) || T.isBlob(t) ? t : T.isArrayBufferView(t) ? t.buffer : T.isURLSearchParams(t) ? (Vr(r, "application/x-www-form-urlencoded;charset=utf-8"), t.toString()) : T.isObject(t) || r && r["Content-Type"] === "application/json" ? (Vr(r, "application/json"), ho(t)) : t;
|
|
1848
1848
|
}],
|
|
1849
1849
|
transformResponse: [function(t) {
|
|
1850
1850
|
var r = this.transitional || ht.transitional, a = r && r.silentJSONParsing, n = r && r.forcedJSONParsing, i = !a && this.responseType === "json";
|
|
@@ -1853,7 +1853,7 @@ var ht = {
|
|
|
1853
1853
|
return JSON.parse(t);
|
|
1854
1854
|
} catch (o) {
|
|
1855
1855
|
if (i)
|
|
1856
|
-
throw o.name === "SyntaxError" ?
|
|
1856
|
+
throw o.name === "SyntaxError" ? co(o, this, "E_JSON_PARSE") : o;
|
|
1857
1857
|
}
|
|
1858
1858
|
return t;
|
|
1859
1859
|
}],
|
|
@@ -1879,41 +1879,41 @@ T.forEach(["delete", "get", "head"], function(t) {
|
|
|
1879
1879
|
ht.headers[t] = {};
|
|
1880
1880
|
});
|
|
1881
1881
|
T.forEach(["post", "put", "patch"], function(t) {
|
|
1882
|
-
ht.headers[t] = T.merge(
|
|
1882
|
+
ht.headers[t] = T.merge(lo);
|
|
1883
1883
|
});
|
|
1884
|
-
var
|
|
1885
|
-
var n = this ||
|
|
1886
|
-
return
|
|
1884
|
+
var fr = ht, go = F, mo = fr, vo = function(t, r, a) {
|
|
1885
|
+
var n = this || mo;
|
|
1886
|
+
return go.forEach(a, function(o) {
|
|
1887
1887
|
t = o.call(n, t, r);
|
|
1888
1888
|
}), t;
|
|
1889
|
-
}, At,
|
|
1890
|
-
function
|
|
1891
|
-
return
|
|
1889
|
+
}, At, qr;
|
|
1890
|
+
function ta() {
|
|
1891
|
+
return qr || (qr = 1, At = function(t) {
|
|
1892
1892
|
return !!(t && t.__CANCEL__);
|
|
1893
1893
|
}), At;
|
|
1894
1894
|
}
|
|
1895
|
-
var
|
|
1895
|
+
var zr = F, Tt = vo, yo = ta(), bo = fr, wo = pt();
|
|
1896
1896
|
function $t(e) {
|
|
1897
1897
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1898
|
-
throw new
|
|
1898
|
+
throw new wo("canceled");
|
|
1899
1899
|
}
|
|
1900
|
-
var
|
|
1900
|
+
var So = function(t) {
|
|
1901
1901
|
$t(t), t.headers = t.headers || {}, t.data = Tt.call(
|
|
1902
1902
|
t,
|
|
1903
1903
|
t.data,
|
|
1904
1904
|
t.headers,
|
|
1905
1905
|
t.transformRequest
|
|
1906
|
-
), t.headers =
|
|
1906
|
+
), t.headers = zr.merge(
|
|
1907
1907
|
t.headers.common || {},
|
|
1908
1908
|
t.headers[t.method] || {},
|
|
1909
1909
|
t.headers
|
|
1910
|
-
),
|
|
1910
|
+
), zr.forEach(
|
|
1911
1911
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1912
1912
|
function(n) {
|
|
1913
1913
|
delete t.headers[n];
|
|
1914
1914
|
}
|
|
1915
1915
|
);
|
|
1916
|
-
var r = t.adapter ||
|
|
1916
|
+
var r = t.adapter || bo.adapter;
|
|
1917
1917
|
return r(t).then(function(n) {
|
|
1918
1918
|
return $t(t), n.data = Tt.call(
|
|
1919
1919
|
t,
|
|
@@ -1922,14 +1922,14 @@ var wo = function(t) {
|
|
|
1922
1922
|
t.transformResponse
|
|
1923
1923
|
), n;
|
|
1924
1924
|
}, function(n) {
|
|
1925
|
-
return
|
|
1925
|
+
return yo(n) || ($t(t), n && n.response && (n.response.data = Tt.call(
|
|
1926
1926
|
t,
|
|
1927
1927
|
n.response.data,
|
|
1928
1928
|
n.response.headers,
|
|
1929
1929
|
t.transformResponse
|
|
1930
1930
|
))), Promise.reject(n);
|
|
1931
1931
|
});
|
|
1932
|
-
}, U = F,
|
|
1932
|
+
}, U = F, ra = function(t, r) {
|
|
1933
1933
|
r = r || {};
|
|
1934
1934
|
var a = {};
|
|
1935
1935
|
function n(l, c) {
|
|
@@ -1991,27 +1991,27 @@ var wo = function(t) {
|
|
|
1991
1991
|
var d = f[c] || i, p = d(c);
|
|
1992
1992
|
U.isUndefined(p) && d !== u || (a[c] = p);
|
|
1993
1993
|
}), a;
|
|
1994
|
-
}, jt,
|
|
1995
|
-
function
|
|
1996
|
-
return
|
|
1994
|
+
}, jt, Hr;
|
|
1995
|
+
function na() {
|
|
1996
|
+
return Hr || (Hr = 1, jt = {
|
|
1997
1997
|
version: "0.26.1"
|
|
1998
1998
|
}), jt;
|
|
1999
1999
|
}
|
|
2000
|
-
var
|
|
2000
|
+
var xo = na().version, lr = {};
|
|
2001
2001
|
["object", "boolean", "number", "function", "string", "symbol"].forEach(function(e, t) {
|
|
2002
|
-
|
|
2002
|
+
lr[e] = function(a) {
|
|
2003
2003
|
return typeof a === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
2004
2004
|
};
|
|
2005
2005
|
});
|
|
2006
|
-
var
|
|
2007
|
-
|
|
2006
|
+
var Kr = {};
|
|
2007
|
+
lr.transitional = function(t, r, a) {
|
|
2008
2008
|
function n(i, o) {
|
|
2009
|
-
return "[Axios v" +
|
|
2009
|
+
return "[Axios v" + xo + "] Transitional option '" + i + "'" + o + (a ? ". " + a : "");
|
|
2010
2010
|
}
|
|
2011
2011
|
return function(i, o, s) {
|
|
2012
2012
|
if (t === !1)
|
|
2013
2013
|
throw new Error(n(o, " has been removed" + (r ? " in " + r : "")));
|
|
2014
|
-
return r && !
|
|
2014
|
+
return r && !Kr[o] && (Kr[o] = !0, console.warn(
|
|
2015
2015
|
n(
|
|
2016
2016
|
o,
|
|
2017
2017
|
" has been deprecated since v" + r + " and will be removed in the near future"
|
|
@@ -2019,7 +2019,7 @@ fr.transitional = function(t, r, a) {
|
|
|
2019
2019
|
)), t ? t(i, o, s) : !0;
|
|
2020
2020
|
};
|
|
2021
2021
|
};
|
|
2022
|
-
function
|
|
2022
|
+
function Oo(e, t, r) {
|
|
2023
2023
|
if (typeof e != "object")
|
|
2024
2024
|
throw new TypeError("options must be an object");
|
|
2025
2025
|
for (var a = Object.keys(e), n = a.length; n-- > 0; ) {
|
|
@@ -2034,20 +2034,20 @@ function xo(e, t, r) {
|
|
|
2034
2034
|
throw Error("Unknown option " + i);
|
|
2035
2035
|
}
|
|
2036
2036
|
}
|
|
2037
|
-
var
|
|
2038
|
-
assertOptions:
|
|
2039
|
-
validators:
|
|
2040
|
-
},
|
|
2037
|
+
var Eo = {
|
|
2038
|
+
assertOptions: Oo,
|
|
2039
|
+
validators: lr
|
|
2040
|
+
}, aa = F, Po = Xn, Jr = Qi, Yr = So, gt = ra, ia = Eo, xe = ia.validators;
|
|
2041
2041
|
function Me(e) {
|
|
2042
2042
|
this.defaults = e, this.interceptors = {
|
|
2043
|
-
request: new
|
|
2044
|
-
response: new
|
|
2043
|
+
request: new Jr(),
|
|
2044
|
+
response: new Jr()
|
|
2045
2045
|
};
|
|
2046
2046
|
}
|
|
2047
2047
|
Me.prototype.request = function(t, r) {
|
|
2048
2048
|
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = gt(this.defaults, r), r.method ? r.method = r.method.toLowerCase() : this.defaults.method ? r.method = this.defaults.method.toLowerCase() : r.method = "get";
|
|
2049
2049
|
var a = r.transitional;
|
|
2050
|
-
a !== void 0 &&
|
|
2050
|
+
a !== void 0 && ia.assertOptions(a, {
|
|
2051
2051
|
silentJSONParsing: xe.transitional(xe.boolean),
|
|
2052
2052
|
forcedJSONParsing: xe.transitional(xe.boolean),
|
|
2053
2053
|
clarifyTimeoutError: xe.transitional(xe.boolean)
|
|
@@ -2062,7 +2062,7 @@ Me.prototype.request = function(t, r) {
|
|
|
2062
2062
|
});
|
|
2063
2063
|
var s;
|
|
2064
2064
|
if (!i) {
|
|
2065
|
-
var u = [
|
|
2065
|
+
var u = [Yr, void 0];
|
|
2066
2066
|
for (Array.prototype.unshift.apply(u, n), u = u.concat(o), s = Promise.resolve(r); u.length; )
|
|
2067
2067
|
s = s.then(u.shift(), u.shift());
|
|
2068
2068
|
return s;
|
|
@@ -2077,7 +2077,7 @@ Me.prototype.request = function(t, r) {
|
|
|
2077
2077
|
}
|
|
2078
2078
|
}
|
|
2079
2079
|
try {
|
|
2080
|
-
s =
|
|
2080
|
+
s = Yr(f);
|
|
2081
2081
|
} catch (d) {
|
|
2082
2082
|
return Promise.reject(d);
|
|
2083
2083
|
}
|
|
@@ -2086,9 +2086,9 @@ Me.prototype.request = function(t, r) {
|
|
|
2086
2086
|
return s;
|
|
2087
2087
|
};
|
|
2088
2088
|
Me.prototype.getUri = function(t) {
|
|
2089
|
-
return t = gt(this.defaults, t),
|
|
2089
|
+
return t = gt(this.defaults, t), Po(t.url, t.params, t.paramsSerializer).replace(/^\?/, "");
|
|
2090
2090
|
};
|
|
2091
|
-
|
|
2091
|
+
aa.forEach(["delete", "get", "head", "options"], function(t) {
|
|
2092
2092
|
Me.prototype[t] = function(r, a) {
|
|
2093
2093
|
return this.request(gt(a || {}, {
|
|
2094
2094
|
method: t,
|
|
@@ -2097,7 +2097,7 @@ na.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
2097
2097
|
}));
|
|
2098
2098
|
};
|
|
2099
2099
|
});
|
|
2100
|
-
|
|
2100
|
+
aa.forEach(["post", "put", "patch"], function(t) {
|
|
2101
2101
|
Me.prototype[t] = function(r, a, n) {
|
|
2102
2102
|
return this.request(gt(n || {}, {
|
|
2103
2103
|
method: t,
|
|
@@ -2106,11 +2106,11 @@ na.forEach(["post", "put", "patch"], function(t) {
|
|
|
2106
2106
|
}));
|
|
2107
2107
|
};
|
|
2108
2108
|
});
|
|
2109
|
-
var
|
|
2110
|
-
function
|
|
2111
|
-
if (
|
|
2109
|
+
var Co = Me, It, Wr;
|
|
2110
|
+
function Ro() {
|
|
2111
|
+
if (Wr)
|
|
2112
2112
|
return It;
|
|
2113
|
-
|
|
2113
|
+
Wr = 1;
|
|
2114
2114
|
var e = pt();
|
|
2115
2115
|
function t(r) {
|
|
2116
2116
|
if (typeof r != "function")
|
|
@@ -2162,49 +2162,49 @@ function Co() {
|
|
|
2162
2162
|
};
|
|
2163
2163
|
}, It = t, It;
|
|
2164
2164
|
}
|
|
2165
|
-
var Dt,
|
|
2166
|
-
function
|
|
2167
|
-
return
|
|
2165
|
+
var Dt, Gr;
|
|
2166
|
+
function ko() {
|
|
2167
|
+
return Gr || (Gr = 1, Dt = function(t) {
|
|
2168
2168
|
return function(a) {
|
|
2169
2169
|
return t.apply(null, a);
|
|
2170
2170
|
};
|
|
2171
2171
|
}), Dt;
|
|
2172
2172
|
}
|
|
2173
|
-
var Ft,
|
|
2174
|
-
function
|
|
2175
|
-
if (
|
|
2173
|
+
var Ft, Xr;
|
|
2174
|
+
function No() {
|
|
2175
|
+
if (Xr)
|
|
2176
2176
|
return Ft;
|
|
2177
|
-
|
|
2177
|
+
Xr = 1;
|
|
2178
2178
|
var e = F;
|
|
2179
2179
|
return Ft = function(r) {
|
|
2180
2180
|
return e.isObject(r) && r.isAxiosError === !0;
|
|
2181
2181
|
}, Ft;
|
|
2182
2182
|
}
|
|
2183
|
-
var
|
|
2184
|
-
function
|
|
2185
|
-
var t = new Qe(e), r =
|
|
2186
|
-
return
|
|
2187
|
-
return
|
|
2183
|
+
var Zr = F, Lo = Jn, Qe = Co, _o = ra, Ao = fr;
|
|
2184
|
+
function oa(e) {
|
|
2185
|
+
var t = new Qe(e), r = Lo(Qe.prototype.request, t);
|
|
2186
|
+
return Zr.extend(r, Qe.prototype, t), Zr.extend(r, t), r.create = function(n) {
|
|
2187
|
+
return oa(_o(e, n));
|
|
2188
2188
|
}, r;
|
|
2189
2189
|
}
|
|
2190
|
-
var ne =
|
|
2190
|
+
var ne = oa(Ao);
|
|
2191
2191
|
ne.Axios = Qe;
|
|
2192
2192
|
ne.Cancel = pt();
|
|
2193
|
-
ne.CancelToken =
|
|
2194
|
-
ne.isCancel =
|
|
2195
|
-
ne.VERSION =
|
|
2193
|
+
ne.CancelToken = Ro();
|
|
2194
|
+
ne.isCancel = ta();
|
|
2195
|
+
ne.VERSION = na().version;
|
|
2196
2196
|
ne.all = function(t) {
|
|
2197
2197
|
return Promise.all(t);
|
|
2198
2198
|
};
|
|
2199
|
-
ne.spread =
|
|
2200
|
-
ne.isAxiosError =
|
|
2201
|
-
|
|
2199
|
+
ne.spread = ko();
|
|
2200
|
+
ne.isAxiosError = No();
|
|
2201
|
+
Ii.exports = ne;
|
|
2202
2202
|
tt.default = ne;
|
|
2203
2203
|
(function(e) {
|
|
2204
2204
|
e.exports = tt;
|
|
2205
|
-
})(
|
|
2206
|
-
const Yt = /* @__PURE__ */
|
|
2207
|
-
var
|
|
2205
|
+
})(ji);
|
|
2206
|
+
const Yt = /* @__PURE__ */ ai(Ht);
|
|
2207
|
+
var Qr = (e, t, r) => new Promise((a, n) => {
|
|
2208
2208
|
var i = (u) => {
|
|
2209
2209
|
try {
|
|
2210
2210
|
s(r.next(u));
|
|
@@ -2220,10 +2220,10 @@ var Zr = (e, t, r) => new Promise((a, n) => {
|
|
|
2220
2220
|
}, s = (u) => u.done ? a(u.value) : Promise.resolve(u.value).then(i, o);
|
|
2221
2221
|
s((r = r.apply(e, t)).next());
|
|
2222
2222
|
});
|
|
2223
|
-
const
|
|
2224
|
-
const [r, a] =
|
|
2225
|
-
return
|
|
2226
|
-
|
|
2223
|
+
const To = ({ brandName: e, cdnURL: t = "/" }) => {
|
|
2224
|
+
const [r, a] = er();
|
|
2225
|
+
return tr(() => {
|
|
2226
|
+
Qr(void 0, null, function* () {
|
|
2227
2227
|
try {
|
|
2228
2228
|
const n = yield Yt.get("/brand/iconIndex.json", { baseURL: t });
|
|
2229
2229
|
a(n.data);
|
|
@@ -2231,9 +2231,9 @@ const Ao = ({ brandName: e, cdnURL: t = "/" }) => {
|
|
|
2231
2231
|
it.error({ error: n }, `Error loading icon index for brand ${e}`);
|
|
2232
2232
|
}
|
|
2233
2233
|
});
|
|
2234
|
-
}, [e, t]), (n) =>
|
|
2234
|
+
}, [e, t]), (n) => Qr(void 0, null, function* () {
|
|
2235
2235
|
if (r) {
|
|
2236
|
-
const i = (r[n.toLowerCase()] || []).includes(e) ? e :
|
|
2236
|
+
const i = (r[n.toLowerCase()] || []).includes(e) ? e : Cn.FALLBACK;
|
|
2237
2237
|
return (yield Yt.get(`/brand/${i}/icons/${n.toLowerCase()}.svg`, {
|
|
2238
2238
|
baseURL: t,
|
|
2239
2239
|
responseType: "text"
|
|
@@ -2241,7 +2241,7 @@ const Ao = ({ brandName: e, cdnURL: t = "/" }) => {
|
|
|
2241
2241
|
}
|
|
2242
2242
|
});
|
|
2243
2243
|
};
|
|
2244
|
-
var
|
|
2244
|
+
var $o = (e, t, r) => new Promise((a, n) => {
|
|
2245
2245
|
var i = (u) => {
|
|
2246
2246
|
try {
|
|
2247
2247
|
s(r.next(u));
|
|
@@ -2257,45 +2257,89 @@ var To = (e, t, r) => new Promise((a, n) => {
|
|
|
2257
2257
|
}, s = (u) => u.done ? a(u.value) : Promise.resolve(u.value).then(i, o);
|
|
2258
2258
|
s((r = r.apply(e, t)).next());
|
|
2259
2259
|
});
|
|
2260
|
-
const
|
|
2261
|
-
const [r, a] =
|
|
2262
|
-
return
|
|
2263
|
-
|
|
2260
|
+
const jo = ({ cdnURL: e = "/", brandName: t }) => {
|
|
2261
|
+
const [r, a] = er();
|
|
2262
|
+
return tr(() => {
|
|
2263
|
+
$o(void 0, null, function* () {
|
|
2264
2264
|
try {
|
|
2265
|
-
const n = yield Yt.get(`/brand/${t}/theme.json`, { baseURL: e }), i = new
|
|
2265
|
+
const n = yield Yt.get(`/brand/${t}/theme.json`, { baseURL: e }), i = new Oa(n.data);
|
|
2266
2266
|
a(i);
|
|
2267
2267
|
} catch (n) {
|
|
2268
2268
|
it.error({ error: n }, `Error loading theme for brand ${t}`);
|
|
2269
2269
|
}
|
|
2270
2270
|
});
|
|
2271
2271
|
}, [t, e]), r;
|
|
2272
|
-
},
|
|
2272
|
+
}, sa = Zt(void 0), Js = ({
|
|
2273
2273
|
baseURL: e = "https://api.shipengine.com",
|
|
2274
|
-
brandName: t =
|
|
2274
|
+
brandName: t = Cn.FALLBACK,
|
|
2275
2275
|
cdnURL: r = "/",
|
|
2276
2276
|
children: a,
|
|
2277
2277
|
getToken: n,
|
|
2278
2278
|
onError: i,
|
|
2279
2279
|
scope: o = "lmnt"
|
|
2280
2280
|
}) => {
|
|
2281
|
-
const s =
|
|
2282
|
-
return s ? (i = i ??
|
|
2283
|
-
|
|
2281
|
+
const s = jo({ brandName: t, cdnURL: r }), u = $i({ cdnURL: r, scope: o, theme: s }), f = To({ brandName: t, cdnURL: r });
|
|
2282
|
+
return s ? (i = i ?? Ti, /* @__PURE__ */ V(
|
|
2283
|
+
sa.Provider,
|
|
2284
2284
|
{
|
|
2285
2285
|
value: { baseURL: e, brandName: t, cdnURL: r, getToken: n, onError: i, scope: o, theme: s },
|
|
2286
|
-
children: /* @__PURE__ */
|
|
2287
|
-
/* @__PURE__ */ V(
|
|
2288
|
-
/* @__PURE__ */ V(
|
|
2286
|
+
children: /* @__PURE__ */ Ai(Sa, { theme: s, children: [
|
|
2287
|
+
/* @__PURE__ */ V(wa, { styles: [Ea(o), u] }),
|
|
2288
|
+
/* @__PURE__ */ V(Pa, { resolveIcon: f, children: /* @__PURE__ */ V(Ca, { baseURL: e, getToken: n, children: a }) })
|
|
2289
2289
|
] })
|
|
2290
2290
|
}
|
|
2291
2291
|
)) : null;
|
|
2292
|
-
},
|
|
2293
|
-
const e =
|
|
2292
|
+
}, Io = () => {
|
|
2293
|
+
const e = Qt(sa);
|
|
2294
2294
|
if (!e)
|
|
2295
2295
|
throw new Error("useAlchemy must be called from within the scope of <Alchemy />");
|
|
2296
2296
|
return e;
|
|
2297
2297
|
};
|
|
2298
|
-
|
|
2298
|
+
var Wt = {}, Do = {
|
|
2299
|
+
get exports() {
|
|
2300
|
+
return Wt;
|
|
2301
|
+
},
|
|
2302
|
+
set exports(e) {
|
|
2303
|
+
Wt = e;
|
|
2304
|
+
}
|
|
2305
|
+
};
|
|
2306
|
+
/*!
|
|
2307
|
+
Copyright (c) 2018 Jed Watson.
|
|
2308
|
+
Licensed under the MIT License (MIT), see
|
|
2309
|
+
http://jedwatson.github.io/classnames
|
|
2310
|
+
*/
|
|
2311
|
+
(function(e) {
|
|
2312
|
+
(function() {
|
|
2313
|
+
var t = {}.hasOwnProperty;
|
|
2314
|
+
function r() {
|
|
2315
|
+
for (var a = [], n = 0; n < arguments.length; n++) {
|
|
2316
|
+
var i = arguments[n];
|
|
2317
|
+
if (i) {
|
|
2318
|
+
var o = typeof i;
|
|
2319
|
+
if (o === "string" || o === "number")
|
|
2320
|
+
a.push(i);
|
|
2321
|
+
else if (Array.isArray(i)) {
|
|
2322
|
+
if (i.length) {
|
|
2323
|
+
var s = r.apply(null, i);
|
|
2324
|
+
s && a.push(s);
|
|
2325
|
+
}
|
|
2326
|
+
} else if (o === "object") {
|
|
2327
|
+
if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]")) {
|
|
2328
|
+
a.push(i.toString());
|
|
2329
|
+
continue;
|
|
2330
|
+
}
|
|
2331
|
+
for (var u in i)
|
|
2332
|
+
t.call(i, u) && i[u] && a.push(u);
|
|
2333
|
+
}
|
|
2334
|
+
}
|
|
2335
|
+
}
|
|
2336
|
+
return a.join(" ");
|
|
2337
|
+
}
|
|
2338
|
+
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
2339
|
+
})();
|
|
2340
|
+
})(Do);
|
|
2341
|
+
const Fo = Wt;
|
|
2342
|
+
class Uo extends Mt.Component {
|
|
2299
2343
|
constructor(t) {
|
|
2300
2344
|
super(t), this.state = {
|
|
2301
2345
|
error: void 0
|
|
@@ -2320,7 +2364,7 @@ function Y(e, t) {
|
|
|
2320
2364
|
if (!(e instanceof t))
|
|
2321
2365
|
throw new TypeError("Cannot call a class as a function");
|
|
2322
2366
|
}
|
|
2323
|
-
function
|
|
2367
|
+
function Mo(e, t) {
|
|
2324
2368
|
if (J(e) !== "object" || e === null)
|
|
2325
2369
|
return e;
|
|
2326
2370
|
var r = e[Symbol.toPrimitive];
|
|
@@ -2332,18 +2376,18 @@ function Do(e, t) {
|
|
|
2332
2376
|
}
|
|
2333
2377
|
return (t === "string" ? String : Number)(e);
|
|
2334
2378
|
}
|
|
2335
|
-
function
|
|
2336
|
-
var t =
|
|
2379
|
+
function ua(e) {
|
|
2380
|
+
var t = Mo(e, "string");
|
|
2337
2381
|
return J(t) === "symbol" ? t : String(t);
|
|
2338
2382
|
}
|
|
2339
|
-
function
|
|
2383
|
+
function en(e, t) {
|
|
2340
2384
|
for (var r = 0; r < t.length; r++) {
|
|
2341
2385
|
var a = t[r];
|
|
2342
|
-
a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e,
|
|
2386
|
+
a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, ua(a.key), a);
|
|
2343
2387
|
}
|
|
2344
2388
|
}
|
|
2345
2389
|
function W(e, t, r) {
|
|
2346
|
-
return t &&
|
|
2390
|
+
return t && en(e.prototype, t), r && en(e, r), Object.defineProperty(e, "prototype", {
|
|
2347
2391
|
writable: !1
|
|
2348
2392
|
}), e;
|
|
2349
2393
|
}
|
|
@@ -2352,10 +2396,10 @@ function ce(e) {
|
|
|
2352
2396
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2353
2397
|
return e;
|
|
2354
2398
|
}
|
|
2355
|
-
function
|
|
2356
|
-
return
|
|
2399
|
+
function Gt(e, t) {
|
|
2400
|
+
return Gt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(a, n) {
|
|
2357
2401
|
return a.__proto__ = n, a;
|
|
2358
|
-
},
|
|
2402
|
+
}, Gt(e, t);
|
|
2359
2403
|
}
|
|
2360
2404
|
function mt(e, t) {
|
|
2361
2405
|
if (typeof t != "function" && t !== null)
|
|
@@ -2368,7 +2412,7 @@ function mt(e, t) {
|
|
|
2368
2412
|
}
|
|
2369
2413
|
}), Object.defineProperty(e, "prototype", {
|
|
2370
2414
|
writable: !1
|
|
2371
|
-
}), t &&
|
|
2415
|
+
}), t && Gt(e, t);
|
|
2372
2416
|
}
|
|
2373
2417
|
function Be(e, t) {
|
|
2374
2418
|
if (t && (J(t) === "object" || typeof t == "function"))
|
|
@@ -2383,46 +2427,46 @@ function re(e) {
|
|
|
2383
2427
|
}, re(e);
|
|
2384
2428
|
}
|
|
2385
2429
|
function de(e, t, r) {
|
|
2386
|
-
return t =
|
|
2430
|
+
return t = ua(t), t in e ? Object.defineProperty(e, t, {
|
|
2387
2431
|
value: r,
|
|
2388
2432
|
enumerable: !0,
|
|
2389
2433
|
configurable: !0,
|
|
2390
2434
|
writable: !0
|
|
2391
2435
|
}) : e[t] = r, e;
|
|
2392
2436
|
}
|
|
2393
|
-
function
|
|
2437
|
+
function Bo(e) {
|
|
2394
2438
|
if (Array.isArray(e))
|
|
2395
2439
|
return e;
|
|
2396
2440
|
}
|
|
2397
|
-
function
|
|
2441
|
+
function Vo(e) {
|
|
2398
2442
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
|
|
2399
2443
|
return Array.from(e);
|
|
2400
2444
|
}
|
|
2401
|
-
function
|
|
2445
|
+
function tn(e, t) {
|
|
2402
2446
|
(t == null || t > e.length) && (t = e.length);
|
|
2403
2447
|
for (var r = 0, a = new Array(t); r < t; r++)
|
|
2404
2448
|
a[r] = e[r];
|
|
2405
2449
|
return a;
|
|
2406
2450
|
}
|
|
2407
|
-
function
|
|
2451
|
+
function qo(e, t) {
|
|
2408
2452
|
if (e) {
|
|
2409
2453
|
if (typeof e == "string")
|
|
2410
|
-
return
|
|
2454
|
+
return tn(e, t);
|
|
2411
2455
|
var r = Object.prototype.toString.call(e).slice(8, -1);
|
|
2412
2456
|
if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set")
|
|
2413
2457
|
return Array.from(e);
|
|
2414
2458
|
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
|
|
2415
|
-
return
|
|
2459
|
+
return tn(e, t);
|
|
2416
2460
|
}
|
|
2417
2461
|
}
|
|
2418
|
-
function
|
|
2462
|
+
function zo() {
|
|
2419
2463
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2420
2464
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2421
2465
|
}
|
|
2422
|
-
function
|
|
2423
|
-
return
|
|
2466
|
+
function Ho(e) {
|
|
2467
|
+
return Bo(e) || Vo(e) || qo(e) || zo();
|
|
2424
2468
|
}
|
|
2425
|
-
function
|
|
2469
|
+
function rn(e, t) {
|
|
2426
2470
|
var r = Object.keys(e);
|
|
2427
2471
|
if (Object.getOwnPropertySymbols) {
|
|
2428
2472
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -2432,18 +2476,18 @@ function tn(e, t) {
|
|
|
2432
2476
|
}
|
|
2433
2477
|
return r;
|
|
2434
2478
|
}
|
|
2435
|
-
function
|
|
2479
|
+
function nn(e) {
|
|
2436
2480
|
for (var t = 1; t < arguments.length; t++) {
|
|
2437
2481
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
2438
|
-
t % 2 ?
|
|
2482
|
+
t % 2 ? rn(Object(r), !0).forEach(function(a) {
|
|
2439
2483
|
de(e, a, r[a]);
|
|
2440
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
2484
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : rn(Object(r)).forEach(function(a) {
|
|
2441
2485
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
|
|
2442
2486
|
});
|
|
2443
2487
|
}
|
|
2444
2488
|
return e;
|
|
2445
2489
|
}
|
|
2446
|
-
var
|
|
2490
|
+
var Ko = {
|
|
2447
2491
|
type: "logger",
|
|
2448
2492
|
log: function(t) {
|
|
2449
2493
|
this.output("log", t);
|
|
@@ -2457,7 +2501,7 @@ var qo = {
|
|
|
2457
2501
|
output: function(t, r) {
|
|
2458
2502
|
console && console[t] && console[t].apply(console, r);
|
|
2459
2503
|
}
|
|
2460
|
-
},
|
|
2504
|
+
}, Jo = function() {
|
|
2461
2505
|
function e(t) {
|
|
2462
2506
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2463
2507
|
Y(this, e), this.init(t, r);
|
|
@@ -2466,7 +2510,7 @@ var qo = {
|
|
|
2466
2510
|
key: "init",
|
|
2467
2511
|
value: function(r) {
|
|
2468
2512
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2469
|
-
this.prefix = a.prefix || "i18next:", this.logger = r ||
|
|
2513
|
+
this.prefix = a.prefix || "i18next:", this.logger = r || Ko, this.options = a, this.debug = a.debug;
|
|
2470
2514
|
}
|
|
2471
2515
|
}, {
|
|
2472
2516
|
key: "setDebug",
|
|
@@ -2509,7 +2553,7 @@ var qo = {
|
|
|
2509
2553
|
}, {
|
|
2510
2554
|
key: "create",
|
|
2511
2555
|
value: function(r) {
|
|
2512
|
-
return new e(this.logger,
|
|
2556
|
+
return new e(this.logger, nn(nn({}, {
|
|
2513
2557
|
prefix: "".concat(this.prefix, ":").concat(r, ":")
|
|
2514
2558
|
}), this.options));
|
|
2515
2559
|
}
|
|
@@ -2519,7 +2563,7 @@ var qo = {
|
|
|
2519
2563
|
return r = r || this.options, r.prefix = r.prefix || this.prefix, new e(this.logger, r);
|
|
2520
2564
|
}
|
|
2521
2565
|
}]), e;
|
|
2522
|
-
}(), ee = new
|
|
2566
|
+
}(), ee = new Jo(), fe = function() {
|
|
2523
2567
|
function e() {
|
|
2524
2568
|
Y(this, e), this.observers = {};
|
|
2525
2569
|
}
|
|
@@ -2570,15 +2614,15 @@ function $e() {
|
|
|
2570
2614
|
});
|
|
2571
2615
|
return r.resolve = e, r.reject = t, r;
|
|
2572
2616
|
}
|
|
2573
|
-
function
|
|
2617
|
+
function an(e) {
|
|
2574
2618
|
return e == null ? "" : "" + e;
|
|
2575
2619
|
}
|
|
2576
|
-
function
|
|
2620
|
+
function Yo(e, t, r) {
|
|
2577
2621
|
e.forEach(function(a) {
|
|
2578
2622
|
t[a] && (r[a] = t[a]);
|
|
2579
2623
|
});
|
|
2580
2624
|
}
|
|
2581
|
-
function
|
|
2625
|
+
function dr(e, t, r) {
|
|
2582
2626
|
function a(s) {
|
|
2583
2627
|
return s && s.indexOf("###") > -1 ? s.replace(/###/g, ".") : s;
|
|
2584
2628
|
}
|
|
@@ -2596,32 +2640,32 @@ function lr(e, t, r) {
|
|
|
2596
2640
|
k: a(i.shift())
|
|
2597
2641
|
};
|
|
2598
2642
|
}
|
|
2599
|
-
function
|
|
2600
|
-
var a =
|
|
2643
|
+
function on(e, t, r) {
|
|
2644
|
+
var a = dr(e, t, Object), n = a.obj, i = a.k;
|
|
2601
2645
|
n[i] = r;
|
|
2602
2646
|
}
|
|
2603
|
-
function
|
|
2604
|
-
var n =
|
|
2647
|
+
function Wo(e, t, r, a) {
|
|
2648
|
+
var n = dr(e, t, Object), i = n.obj, o = n.k;
|
|
2605
2649
|
i[o] = i[o] || [], a && (i[o] = i[o].concat(r)), a || i[o].push(r);
|
|
2606
2650
|
}
|
|
2607
2651
|
function rt(e, t) {
|
|
2608
|
-
var r =
|
|
2652
|
+
var r = dr(e, t), a = r.obj, n = r.k;
|
|
2609
2653
|
if (a)
|
|
2610
2654
|
return a[n];
|
|
2611
2655
|
}
|
|
2612
|
-
function
|
|
2656
|
+
function sn(e, t, r) {
|
|
2613
2657
|
var a = rt(e, r);
|
|
2614
2658
|
return a !== void 0 ? a : rt(t, r);
|
|
2615
2659
|
}
|
|
2616
|
-
function
|
|
2660
|
+
function ca(e, t, r) {
|
|
2617
2661
|
for (var a in t)
|
|
2618
|
-
a !== "__proto__" && a !== "constructor" && (a in e ? typeof e[a] == "string" || e[a] instanceof String || typeof t[a] == "string" || t[a] instanceof String ? r && (e[a] = t[a]) :
|
|
2662
|
+
a !== "__proto__" && a !== "constructor" && (a in e ? typeof e[a] == "string" || e[a] instanceof String || typeof t[a] == "string" || t[a] instanceof String ? r && (e[a] = t[a]) : ca(e[a], t[a], r) : e[a] = t[a]);
|
|
2619
2663
|
return e;
|
|
2620
2664
|
}
|
|
2621
2665
|
function Oe(e) {
|
|
2622
2666
|
return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2623
2667
|
}
|
|
2624
|
-
var
|
|
2668
|
+
var Go = {
|
|
2625
2669
|
"&": "&",
|
|
2626
2670
|
"<": "<",
|
|
2627
2671
|
">": ">",
|
|
@@ -2629,15 +2673,15 @@ var Jo = {
|
|
|
2629
2673
|
"'": "'",
|
|
2630
2674
|
"/": "/"
|
|
2631
2675
|
};
|
|
2632
|
-
function
|
|
2676
|
+
function Xo(e) {
|
|
2633
2677
|
return typeof e == "string" ? e.replace(/[&<>"'\/]/g, function(t) {
|
|
2634
|
-
return
|
|
2678
|
+
return Go[t];
|
|
2635
2679
|
}) : e;
|
|
2636
2680
|
}
|
|
2637
|
-
var vt = typeof window < "u" && window.navigator && typeof window.navigator.userAgentData > "u" && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1,
|
|
2638
|
-
function
|
|
2681
|
+
var vt = typeof window < "u" && window.navigator && typeof window.navigator.userAgentData > "u" && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, Zo = [" ", ",", "?", "!", ";"];
|
|
2682
|
+
function Qo(e, t, r) {
|
|
2639
2683
|
t = t || "", r = r || "";
|
|
2640
|
-
var a =
|
|
2684
|
+
var a = Zo.filter(function(s) {
|
|
2641
2685
|
return t.indexOf(s) < 0 && r.indexOf(s) < 0;
|
|
2642
2686
|
});
|
|
2643
2687
|
if (a.length === 0)
|
|
@@ -2651,7 +2695,7 @@ function Go(e, t, r) {
|
|
|
2651
2695
|
}
|
|
2652
2696
|
return i;
|
|
2653
2697
|
}
|
|
2654
|
-
function
|
|
2698
|
+
function un(e, t) {
|
|
2655
2699
|
var r = Object.keys(e);
|
|
2656
2700
|
if (Object.getOwnPropertySymbols) {
|
|
2657
2701
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -2664,16 +2708,16 @@ function sn(e, t) {
|
|
|
2664
2708
|
function Je(e) {
|
|
2665
2709
|
for (var t = 1; t < arguments.length; t++) {
|
|
2666
2710
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
2667
|
-
t % 2 ?
|
|
2711
|
+
t % 2 ? un(Object(r), !0).forEach(function(a) {
|
|
2668
2712
|
de(e, a, r[a]);
|
|
2669
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
2713
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : un(Object(r)).forEach(function(a) {
|
|
2670
2714
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
|
|
2671
2715
|
});
|
|
2672
2716
|
}
|
|
2673
2717
|
return e;
|
|
2674
2718
|
}
|
|
2675
|
-
function
|
|
2676
|
-
var t =
|
|
2719
|
+
function es(e) {
|
|
2720
|
+
var t = ts();
|
|
2677
2721
|
return function() {
|
|
2678
2722
|
var a = re(e), n;
|
|
2679
2723
|
if (t) {
|
|
@@ -2684,7 +2728,7 @@ function Xo(e) {
|
|
|
2684
2728
|
return Be(this, n);
|
|
2685
2729
|
};
|
|
2686
2730
|
}
|
|
2687
|
-
function
|
|
2731
|
+
function ts() {
|
|
2688
2732
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
2689
2733
|
return !1;
|
|
2690
2734
|
if (typeof Proxy == "function")
|
|
@@ -2696,7 +2740,7 @@ function Zo() {
|
|
|
2696
2740
|
return !1;
|
|
2697
2741
|
}
|
|
2698
2742
|
}
|
|
2699
|
-
function
|
|
2743
|
+
function fa(e, t) {
|
|
2700
2744
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
2701
2745
|
if (e) {
|
|
2702
2746
|
if (e[t])
|
|
@@ -2718,16 +2762,16 @@ function ca(e, t) {
|
|
|
2718
2762
|
return u[s];
|
|
2719
2763
|
}
|
|
2720
2764
|
var f = a.slice(i + o).join(r);
|
|
2721
|
-
return f ?
|
|
2765
|
+
return f ? fa(u, f, r) : void 0;
|
|
2722
2766
|
}
|
|
2723
2767
|
n = n[a[i]];
|
|
2724
2768
|
}
|
|
2725
2769
|
return n;
|
|
2726
2770
|
}
|
|
2727
2771
|
}
|
|
2728
|
-
var
|
|
2772
|
+
var rs = function(e) {
|
|
2729
2773
|
mt(r, e);
|
|
2730
|
-
var t =
|
|
2774
|
+
var t = es(r);
|
|
2731
2775
|
function r(a) {
|
|
2732
2776
|
var n, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2733
2777
|
ns: ["translation"],
|
|
@@ -2752,7 +2796,7 @@ var Qo = function(e) {
|
|
|
2752
2796
|
var s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, u = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, f = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure, l = [n, i];
|
|
2753
2797
|
o && typeof o != "string" && (l = l.concat(o)), o && typeof o == "string" && (l = l.concat(u ? o.split(u) : o)), n.indexOf(".") > -1 && (l = n.split("."));
|
|
2754
2798
|
var c = rt(this.data, l);
|
|
2755
|
-
return c || !f || typeof o != "string" ? c :
|
|
2799
|
+
return c || !f || typeof o != "string" ? c : fa(this.data && this.data[n] && this.data[n][i], o, u);
|
|
2756
2800
|
}
|
|
2757
2801
|
}, {
|
|
2758
2802
|
key: "addResource",
|
|
@@ -2762,7 +2806,7 @@ var Qo = function(e) {
|
|
|
2762
2806
|
}, f = this.options.keySeparator;
|
|
2763
2807
|
f === void 0 && (f = ".");
|
|
2764
2808
|
var l = [n, i];
|
|
2765
|
-
o && (l = l.concat(f ? o.split(f) : o)), n.indexOf(".") > -1 && (l = n.split("."), s = i, i = l[1]), this.addNamespaces(i),
|
|
2809
|
+
o && (l = l.concat(f ? o.split(f) : o)), n.indexOf(".") > -1 && (l = n.split("."), s = i, i = l[1]), this.addNamespaces(i), on(this.data, l, s), u.silent || this.emit("added", n, i, o, s);
|
|
2766
2810
|
}
|
|
2767
2811
|
}, {
|
|
2768
2812
|
key: "addResources",
|
|
@@ -2784,7 +2828,7 @@ var Qo = function(e) {
|
|
|
2784
2828
|
}, l = [n, i];
|
|
2785
2829
|
n.indexOf(".") > -1 && (l = n.split("."), s = o, o = i, i = l[1]), this.addNamespaces(i);
|
|
2786
2830
|
var c = rt(this.data, l) || {};
|
|
2787
|
-
s ?
|
|
2831
|
+
s ? ca(c, o, u) : c = Je(Je({}, c), o), on(this.data, l, c), f.silent || this.emit("added", n, i, o);
|
|
2788
2832
|
}
|
|
2789
2833
|
}, {
|
|
2790
2834
|
key: "removeResourceBundle",
|
|
@@ -2820,7 +2864,7 @@ var Qo = function(e) {
|
|
|
2820
2864
|
return this.data;
|
|
2821
2865
|
}
|
|
2822
2866
|
}]), r;
|
|
2823
|
-
}(fe),
|
|
2867
|
+
}(fe), la = {
|
|
2824
2868
|
processors: {},
|
|
2825
2869
|
addPostProcessor: function(t) {
|
|
2826
2870
|
this.processors[t.name] = t;
|
|
@@ -2832,7 +2876,7 @@ var Qo = function(e) {
|
|
|
2832
2876
|
}), r;
|
|
2833
2877
|
}
|
|
2834
2878
|
};
|
|
2835
|
-
function
|
|
2879
|
+
function cn(e, t) {
|
|
2836
2880
|
var r = Object.keys(e);
|
|
2837
2881
|
if (Object.getOwnPropertySymbols) {
|
|
2838
2882
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -2845,16 +2889,16 @@ function un(e, t) {
|
|
|
2845
2889
|
function j(e) {
|
|
2846
2890
|
for (var t = 1; t < arguments.length; t++) {
|
|
2847
2891
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
2848
|
-
t % 2 ?
|
|
2892
|
+
t % 2 ? cn(Object(r), !0).forEach(function(a) {
|
|
2849
2893
|
de(e, a, r[a]);
|
|
2850
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
2894
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : cn(Object(r)).forEach(function(a) {
|
|
2851
2895
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
|
|
2852
2896
|
});
|
|
2853
2897
|
}
|
|
2854
2898
|
return e;
|
|
2855
2899
|
}
|
|
2856
|
-
function
|
|
2857
|
-
var t =
|
|
2900
|
+
function ns(e) {
|
|
2901
|
+
var t = as();
|
|
2858
2902
|
return function() {
|
|
2859
2903
|
var a = re(e), n;
|
|
2860
2904
|
if (t) {
|
|
@@ -2865,7 +2909,7 @@ function es(e) {
|
|
|
2865
2909
|
return Be(this, n);
|
|
2866
2910
|
};
|
|
2867
2911
|
}
|
|
2868
|
-
function
|
|
2912
|
+
function as() {
|
|
2869
2913
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
2870
2914
|
return !1;
|
|
2871
2915
|
if (typeof Proxy == "function")
|
|
@@ -2877,12 +2921,12 @@ function ts() {
|
|
|
2877
2921
|
return !1;
|
|
2878
2922
|
}
|
|
2879
2923
|
}
|
|
2880
|
-
var
|
|
2924
|
+
var fn = {}, ln = function(e) {
|
|
2881
2925
|
mt(r, e);
|
|
2882
|
-
var t =
|
|
2926
|
+
var t = ns(r);
|
|
2883
2927
|
function r(a) {
|
|
2884
2928
|
var n, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2885
|
-
return Y(this, r), n = t.call(this), vt && fe.call(ce(n)),
|
|
2929
|
+
return Y(this, r), n = t.call(this), vt && fe.call(ce(n)), Yo(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], a, ce(n)), n.options = i, n.options.keySeparator === void 0 && (n.options.keySeparator = "."), n.logger = ee.create("translator"), n;
|
|
2886
2930
|
}
|
|
2887
2931
|
return W(r, [{
|
|
2888
2932
|
key: "changeLanguage",
|
|
@@ -2905,7 +2949,7 @@ var cn = {}, fn = function(e) {
|
|
|
2905
2949
|
value: function(n, i) {
|
|
2906
2950
|
var o = i.nsSeparator !== void 0 ? i.nsSeparator : this.options.nsSeparator;
|
|
2907
2951
|
o === void 0 && (o = ":");
|
|
2908
|
-
var s = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator, u = i.ns || this.options.defaultNS || [], f = o && n.indexOf(o) > -1, l = !this.options.userDefinedKeySeparator && !i.keySeparator && !this.options.userDefinedNsSeparator && !i.nsSeparator && !
|
|
2952
|
+
var s = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator, u = i.ns || this.options.defaultNS || [], f = o && n.indexOf(o) > -1, l = !this.options.userDefinedKeySeparator && !i.keySeparator && !this.options.userDefinedNsSeparator && !i.nsSeparator && !Qo(n, o, s);
|
|
2909
2953
|
if (f && !l) {
|
|
2910
2954
|
var c = n.match(this.interpolator.nestingRegexp);
|
|
2911
2955
|
if (c && c.length > 0)
|
|
@@ -3031,7 +3075,7 @@ var cn = {}, fn = function(e) {
|
|
|
3031
3075
|
}, o)), o.interpolation && this.interpolator.reset();
|
|
3032
3076
|
}
|
|
3033
3077
|
var w = o.postProcess || this.options.postProcess, h = typeof w == "string" ? [w] : w;
|
|
3034
|
-
return n != null && h && h.length && o.applyPostProcessor !== !1 && (n =
|
|
3078
|
+
return n != null && h && h.length && o.applyPostProcessor !== !1 && (n = la.handle(h, n, i, this.options && this.options.postProcessPassResolved ? j({
|
|
3035
3079
|
i18nResolved: s
|
|
3036
3080
|
}, o) : o, this)), n;
|
|
3037
3081
|
}
|
|
@@ -3047,7 +3091,7 @@ var cn = {}, fn = function(e) {
|
|
|
3047
3091
|
i.options.fallbackNS && (b = b.concat(i.options.fallbackNS));
|
|
3048
3092
|
var w = o.count !== void 0 && typeof o.count != "string", h = w && !o.ordinal && o.count === 0 && i.pluralResolver.shouldUseIntlApi(), g = o.context !== void 0 && (typeof o.context == "string" || typeof o.context == "number") && o.context !== "", O = o.lngs ? o.lngs : i.languageUtils.toResolveHierarchy(o.lng || i.language, o.fallbackLng);
|
|
3049
3093
|
b.forEach(function(m) {
|
|
3050
|
-
i.isValidLookup(s) || (c = m, !
|
|
3094
|
+
i.isValidLookup(s) || (c = m, !fn["".concat(O[0], "-").concat(m)] && i.utils && i.utils.hasLoadedNamespace && !i.utils.hasLoadedNamespace(c) && (fn["".concat(O[0], "-").concat(m)] = !0, i.logger.warn('key "'.concat(u, '" for languages "').concat(O.join(", "), `" won't get resolved as namespace "`).concat(c, '" 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!!!")), O.forEach(function(v) {
|
|
3051
3095
|
if (!i.isValidLookup(s)) {
|
|
3052
3096
|
l = v;
|
|
3053
3097
|
var N = [y];
|
|
@@ -3101,7 +3145,7 @@ var cn = {}, fn = function(e) {
|
|
|
3101
3145
|
function Ut(e) {
|
|
3102
3146
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
3103
3147
|
}
|
|
3104
|
-
var
|
|
3148
|
+
var dn = function() {
|
|
3105
3149
|
function e(t) {
|
|
3106
3150
|
Y(this, e), this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger = ee.create("languageUtils");
|
|
3107
3151
|
}
|
|
@@ -3184,7 +3228,7 @@ var ln = function() {
|
|
|
3184
3228
|
}), o;
|
|
3185
3229
|
}
|
|
3186
3230
|
}]), e;
|
|
3187
|
-
}(),
|
|
3231
|
+
}(), is = [{
|
|
3188
3232
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
3189
3233
|
nr: [1, 2],
|
|
3190
3234
|
fc: 1
|
|
@@ -3276,7 +3320,7 @@ var ln = function() {
|
|
|
3276
3320
|
lngs: ["he", "iw"],
|
|
3277
3321
|
nr: [1, 2, 20, 21],
|
|
3278
3322
|
fc: 22
|
|
3279
|
-
}],
|
|
3323
|
+
}], os = {
|
|
3280
3324
|
1: function(t) {
|
|
3281
3325
|
return Number(t > 1);
|
|
3282
3326
|
},
|
|
@@ -3343,7 +3387,7 @@ var ln = function() {
|
|
|
3343
3387
|
22: function(t) {
|
|
3344
3388
|
return Number(t == 1 ? 0 : t == 2 ? 1 : (t < 0 || t > 10) && t % 10 == 0 ? 2 : 3);
|
|
3345
3389
|
}
|
|
3346
|
-
},
|
|
3390
|
+
}, ss = ["v1", "v2", "v3"], pn = {
|
|
3347
3391
|
zero: 0,
|
|
3348
3392
|
one: 1,
|
|
3349
3393
|
two: 2,
|
|
@@ -3351,21 +3395,21 @@ var ln = function() {
|
|
|
3351
3395
|
many: 4,
|
|
3352
3396
|
other: 5
|
|
3353
3397
|
};
|
|
3354
|
-
function
|
|
3398
|
+
function us() {
|
|
3355
3399
|
var e = {};
|
|
3356
|
-
return
|
|
3400
|
+
return is.forEach(function(t) {
|
|
3357
3401
|
t.lngs.forEach(function(r) {
|
|
3358
3402
|
e[r] = {
|
|
3359
3403
|
numbers: t.nr,
|
|
3360
|
-
plurals:
|
|
3404
|
+
plurals: os[t.fc]
|
|
3361
3405
|
};
|
|
3362
3406
|
});
|
|
3363
3407
|
}), e;
|
|
3364
3408
|
}
|
|
3365
|
-
var
|
|
3409
|
+
var cs = function() {
|
|
3366
3410
|
function e(t) {
|
|
3367
3411
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3368
|
-
Y(this, e), this.languageUtils = t, this.options = r, this.logger = ee.create("pluralResolver"), (!this.options.compatibilityJSON || this.options.compatibilityJSON === "v4") && (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 =
|
|
3412
|
+
Y(this, e), this.languageUtils = t, this.options = r, this.logger = ee.create("pluralResolver"), (!this.options.compatibilityJSON || this.options.compatibilityJSON === "v4") && (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 = us();
|
|
3369
3413
|
}
|
|
3370
3414
|
return W(e, [{
|
|
3371
3415
|
key: "addRule",
|
|
@@ -3405,7 +3449,7 @@ var os = function() {
|
|
|
3405
3449
|
value: function(r) {
|
|
3406
3450
|
var a = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = this.getRule(r, n);
|
|
3407
3451
|
return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort(function(o, s) {
|
|
3408
|
-
return
|
|
3452
|
+
return pn[o] - pn[s];
|
|
3409
3453
|
}).map(function(o) {
|
|
3410
3454
|
return "".concat(a.options.prepend).concat(o);
|
|
3411
3455
|
}) : i.numbers.map(function(o) {
|
|
@@ -3431,11 +3475,11 @@ var os = function() {
|
|
|
3431
3475
|
}, {
|
|
3432
3476
|
key: "shouldUseIntlApi",
|
|
3433
3477
|
value: function() {
|
|
3434
|
-
return !
|
|
3478
|
+
return !ss.includes(this.options.compatibilityJSON);
|
|
3435
3479
|
}
|
|
3436
3480
|
}]), e;
|
|
3437
3481
|
}();
|
|
3438
|
-
function
|
|
3482
|
+
function hn(e, t) {
|
|
3439
3483
|
var r = Object.keys(e);
|
|
3440
3484
|
if (Object.getOwnPropertySymbols) {
|
|
3441
3485
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -3448,15 +3492,15 @@ function pn(e, t) {
|
|
|
3448
3492
|
function z(e) {
|
|
3449
3493
|
for (var t = 1; t < arguments.length; t++) {
|
|
3450
3494
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
3451
|
-
t % 2 ?
|
|
3495
|
+
t % 2 ? hn(Object(r), !0).forEach(function(a) {
|
|
3452
3496
|
de(e, a, r[a]);
|
|
3453
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
3497
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : hn(Object(r)).forEach(function(a) {
|
|
3454
3498
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
|
|
3455
3499
|
});
|
|
3456
3500
|
}
|
|
3457
3501
|
return e;
|
|
3458
3502
|
}
|
|
3459
|
-
var
|
|
3503
|
+
var fs = function() {
|
|
3460
3504
|
function e() {
|
|
3461
3505
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3462
3506
|
Y(this, e), this.logger = ee.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || function(r) {
|
|
@@ -3471,7 +3515,7 @@ var ss = function() {
|
|
|
3471
3515
|
escapeValue: !0
|
|
3472
3516
|
});
|
|
3473
3517
|
var a = r.interpolation;
|
|
3474
|
-
this.escape = a.escape !== void 0 ? a.escape :
|
|
3518
|
+
this.escape = a.escape !== void 0 ? a.escape : Xo, this.escapeValue = a.escapeValue !== void 0 ? a.escapeValue : !0, this.useRawValueToEscape = a.useRawValueToEscape !== void 0 ? a.useRawValueToEscape : !1, this.prefix = a.prefix ? Oe(a.prefix) : a.prefixEscaped || "{{", this.suffix = a.suffix ? Oe(a.suffix) : a.suffixEscaped || "}}", this.formatSeparator = a.formatSeparator ? a.formatSeparator : a.formatSeparator || ",", this.unescapePrefix = a.unescapeSuffix ? "" : a.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : a.unescapeSuffix || "", this.nestingPrefix = a.nestingPrefix ? Oe(a.nestingPrefix) : a.nestingPrefixEscaped || Oe("$t("), this.nestingSuffix = a.nestingSuffix ? Oe(a.nestingSuffix) : a.nestingSuffixEscaped || Oe(")"), this.nestingOptionsSeparator = a.nestingOptionsSeparator ? a.nestingOptionsSeparator : a.nestingOptionsSeparator || ",", this.maxReplaces = a.maxReplaces ? a.maxReplaces : 1e3, this.alwaysFormat = a.alwaysFormat !== void 0 ? a.alwaysFormat : !1, this.resetRegExp();
|
|
3475
3519
|
}
|
|
3476
3520
|
}, {
|
|
3477
3521
|
key: "reset",
|
|
@@ -3497,13 +3541,13 @@ var ss = function() {
|
|
|
3497
3541
|
}
|
|
3498
3542
|
var d = function(h) {
|
|
3499
3543
|
if (h.indexOf(o.formatSeparator) < 0) {
|
|
3500
|
-
var g =
|
|
3544
|
+
var g = sn(a, l, h);
|
|
3501
3545
|
return o.alwaysFormat ? o.format(g, void 0, n, z(z(z({}, i), a), {}, {
|
|
3502
3546
|
interpolationkey: h
|
|
3503
3547
|
})) : g;
|
|
3504
3548
|
}
|
|
3505
3549
|
var O = h.split(o.formatSeparator), m = O.shift().trim(), v = O.join(o.formatSeparator).trim();
|
|
3506
|
-
return o.format(
|
|
3550
|
+
return o.format(sn(a, l, m), v, n, z(z(z({}, i), a), {}, {
|
|
3507
3551
|
interpolationkey: m
|
|
3508
3552
|
}));
|
|
3509
3553
|
};
|
|
@@ -3534,7 +3578,7 @@ var ss = function() {
|
|
|
3534
3578
|
} else
|
|
3535
3579
|
o.logger.warn("missed to pass in variable ".concat(h, " for interpolating ").concat(r)), u = "";
|
|
3536
3580
|
else
|
|
3537
|
-
typeof u != "string" && !o.useRawValueToEscape && (u =
|
|
3581
|
+
typeof u != "string" && !o.useRawValueToEscape && (u = an(u));
|
|
3538
3582
|
var O = w.safeValue(u);
|
|
3539
3583
|
if (r = r.replace(s[0], O), y ? (w.regex.lastIndex += u.length, w.regex.lastIndex -= s[0].length) : w.regex.lastIndex = 0, f++, f >= o.maxReplaces)
|
|
3540
3584
|
break;
|
|
@@ -3572,7 +3616,7 @@ var ss = function() {
|
|
|
3572
3616
|
}
|
|
3573
3617
|
if (s = a(f.call(this, o[1].trim(), u), u), s && o[0] === r && typeof s != "string")
|
|
3574
3618
|
return s;
|
|
3575
|
-
typeof s != "string" && (s =
|
|
3619
|
+
typeof s != "string" && (s = an(s)), s || (this.logger.warn("missed to resolve ".concat(o[1], " for nesting ").concat(r)), s = ""), c && (s = l.reduce(function(p, y) {
|
|
3576
3620
|
return n.format(p, y, i.lng, z(z({}, i), {}, {
|
|
3577
3621
|
interpolationkey: o[1].trim()
|
|
3578
3622
|
}));
|
|
@@ -3582,7 +3626,7 @@ var ss = function() {
|
|
|
3582
3626
|
}
|
|
3583
3627
|
}]), e;
|
|
3584
3628
|
}();
|
|
3585
|
-
function
|
|
3629
|
+
function gn(e, t) {
|
|
3586
3630
|
var r = Object.keys(e);
|
|
3587
3631
|
if (Object.getOwnPropertySymbols) {
|
|
3588
3632
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -3595,15 +3639,15 @@ function hn(e, t) {
|
|
|
3595
3639
|
function ae(e) {
|
|
3596
3640
|
for (var t = 1; t < arguments.length; t++) {
|
|
3597
3641
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
3598
|
-
t % 2 ?
|
|
3642
|
+
t % 2 ? gn(Object(r), !0).forEach(function(a) {
|
|
3599
3643
|
de(e, a, r[a]);
|
|
3600
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
3644
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : gn(Object(r)).forEach(function(a) {
|
|
3601
3645
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
|
|
3602
3646
|
});
|
|
3603
3647
|
}
|
|
3604
3648
|
return e;
|
|
3605
3649
|
}
|
|
3606
|
-
function
|
|
3650
|
+
function ls(e) {
|
|
3607
3651
|
var t = e.toLowerCase().trim(), r = {};
|
|
3608
3652
|
if (e.indexOf("(") > -1) {
|
|
3609
3653
|
var a = e.split("(");
|
|
@@ -3617,7 +3661,7 @@ function us(e) {
|
|
|
3617
3661
|
var i = n.split(";");
|
|
3618
3662
|
i.forEach(function(o) {
|
|
3619
3663
|
if (o) {
|
|
3620
|
-
var s = o.split(":"), u =
|
|
3664
|
+
var s = o.split(":"), u = Ho(s), f = u[0], l = u.slice(1), c = l.join(":").trim().replace(/^'+|'+$/g, "");
|
|
3621
3665
|
r[f.trim()] || (r[f.trim()] = c), c === "false" && (r[f.trim()] = !1), c === "true" && (r[f.trim()] = !0), isNaN(c) || (r[f.trim()] = parseInt(c, 10));
|
|
3622
3666
|
}
|
|
3623
3667
|
});
|
|
@@ -3635,7 +3679,7 @@ function Ee(e) {
|
|
|
3635
3679
|
return s || (s = e(n, i), t[o] = s), s(a);
|
|
3636
3680
|
};
|
|
3637
3681
|
}
|
|
3638
|
-
var
|
|
3682
|
+
var ds = function() {
|
|
3639
3683
|
function e() {
|
|
3640
3684
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3641
3685
|
Y(this, e), this.logger = ee.create("formatter"), this.options = t, this.formats = {
|
|
@@ -3695,7 +3739,7 @@ var cs = function() {
|
|
|
3695
3739
|
key: "format",
|
|
3696
3740
|
value: function(r, a, n) {
|
|
3697
3741
|
var i = this, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, s = a.split(this.formatSeparator), u = s.reduce(function(f, l) {
|
|
3698
|
-
var c =
|
|
3742
|
+
var c = ls(l), d = c.formatName, p = c.formatOptions;
|
|
3699
3743
|
if (i.formats[d]) {
|
|
3700
3744
|
var y = f;
|
|
3701
3745
|
try {
|
|
@@ -3713,7 +3757,7 @@ var cs = function() {
|
|
|
3713
3757
|
}
|
|
3714
3758
|
}]), e;
|
|
3715
3759
|
}();
|
|
3716
|
-
function
|
|
3760
|
+
function mn(e, t) {
|
|
3717
3761
|
var r = Object.keys(e);
|
|
3718
3762
|
if (Object.getOwnPropertySymbols) {
|
|
3719
3763
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -3723,19 +3767,19 @@ function gn(e, t) {
|
|
|
3723
3767
|
}
|
|
3724
3768
|
return r;
|
|
3725
3769
|
}
|
|
3726
|
-
function
|
|
3770
|
+
function vn(e) {
|
|
3727
3771
|
for (var t = 1; t < arguments.length; t++) {
|
|
3728
3772
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
3729
|
-
t % 2 ?
|
|
3773
|
+
t % 2 ? mn(Object(r), !0).forEach(function(a) {
|
|
3730
3774
|
de(e, a, r[a]);
|
|
3731
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
3775
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : mn(Object(r)).forEach(function(a) {
|
|
3732
3776
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
|
|
3733
3777
|
});
|
|
3734
3778
|
}
|
|
3735
3779
|
return e;
|
|
3736
3780
|
}
|
|
3737
|
-
function
|
|
3738
|
-
var t =
|
|
3781
|
+
function ps(e) {
|
|
3782
|
+
var t = hs();
|
|
3739
3783
|
return function() {
|
|
3740
3784
|
var a = re(e), n;
|
|
3741
3785
|
if (t) {
|
|
@@ -3746,7 +3790,7 @@ function fs(e) {
|
|
|
3746
3790
|
return Be(this, n);
|
|
3747
3791
|
};
|
|
3748
3792
|
}
|
|
3749
|
-
function
|
|
3793
|
+
function hs() {
|
|
3750
3794
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
3751
3795
|
return !1;
|
|
3752
3796
|
if (typeof Proxy == "function")
|
|
@@ -3758,12 +3802,12 @@ function ls() {
|
|
|
3758
3802
|
return !1;
|
|
3759
3803
|
}
|
|
3760
3804
|
}
|
|
3761
|
-
function
|
|
3805
|
+
function gs(e, t) {
|
|
3762
3806
|
e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
|
|
3763
3807
|
}
|
|
3764
|
-
var
|
|
3808
|
+
var ms = function(e) {
|
|
3765
3809
|
mt(r, e);
|
|
3766
|
-
var t =
|
|
3810
|
+
var t = ps(r);
|
|
3767
3811
|
function r(a, n, i) {
|
|
3768
3812
|
var o, s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
3769
3813
|
return Y(this, r), o = t.call(this), vt && fe.call(ce(o)), o.backend = a, o.store = n, o.services = i, o.languageUtils = i.languageUtils, o.options = s, o.logger = ee.create("backendConnector"), o.waitingReads = [], o.maxParallelReads = s.maxParallelReads || 10, o.readingCalls = 0, o.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, o.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, o.state = {}, o.queue = [], o.backend && o.backend.init && o.backend.init(i, s.backend, s), o;
|
|
@@ -3798,7 +3842,7 @@ var ps = function(e) {
|
|
|
3798
3842
|
i && this.emit("failedLoading", u, f, i), o && this.store.addResourceBundle(u, f, o), this.state[n] = i ? -1 : 2;
|
|
3799
3843
|
var l = {};
|
|
3800
3844
|
this.queue.forEach(function(c) {
|
|
3801
|
-
|
|
3845
|
+
Wo(c.loaded, [u], f), gs(c, n), i && c.errors.push(i), c.pendingCount === 0 && !c.done && (Object.keys(c.loaded).forEach(function(d) {
|
|
3802
3846
|
l[d] || (l[d] = {});
|
|
3803
3847
|
var p = c.loaded[d];
|
|
3804
3848
|
p.length && p.forEach(function(y) {
|
|
@@ -3898,7 +3942,7 @@ var ps = function(e) {
|
|
|
3898
3942
|
}
|
|
3899
3943
|
if (!(o == null || o === "")) {
|
|
3900
3944
|
if (this.backend && this.backend.create) {
|
|
3901
|
-
var c =
|
|
3945
|
+
var c = vn(vn({}, f), {}, {
|
|
3902
3946
|
isUpdate: u
|
|
3903
3947
|
}), d = this.backend.create.bind(this.backend);
|
|
3904
3948
|
if (d.length < 6)
|
|
@@ -3918,7 +3962,7 @@ var ps = function(e) {
|
|
|
3918
3962
|
}
|
|
3919
3963
|
}]), r;
|
|
3920
3964
|
}(fe);
|
|
3921
|
-
function
|
|
3965
|
+
function yn() {
|
|
3922
3966
|
return {
|
|
3923
3967
|
debug: !1,
|
|
3924
3968
|
initImmediate: !0,
|
|
@@ -3979,10 +4023,10 @@ function vn() {
|
|
|
3979
4023
|
}
|
|
3980
4024
|
};
|
|
3981
4025
|
}
|
|
3982
|
-
function
|
|
4026
|
+
function bn(e) {
|
|
3983
4027
|
return 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;
|
|
3984
4028
|
}
|
|
3985
|
-
function
|
|
4029
|
+
function wn(e, t) {
|
|
3986
4030
|
var r = Object.keys(e);
|
|
3987
4031
|
if (Object.getOwnPropertySymbols) {
|
|
3988
4032
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -3995,16 +4039,16 @@ function bn(e, t) {
|
|
|
3995
4039
|
function Z(e) {
|
|
3996
4040
|
for (var t = 1; t < arguments.length; t++) {
|
|
3997
4041
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
3998
|
-
t % 2 ?
|
|
4042
|
+
t % 2 ? wn(Object(r), !0).forEach(function(a) {
|
|
3999
4043
|
de(e, a, r[a]);
|
|
4000
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
4044
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : wn(Object(r)).forEach(function(a) {
|
|
4001
4045
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
|
|
4002
4046
|
});
|
|
4003
4047
|
}
|
|
4004
4048
|
return e;
|
|
4005
4049
|
}
|
|
4006
|
-
function
|
|
4007
|
-
var t =
|
|
4050
|
+
function vs(e) {
|
|
4051
|
+
var t = ys();
|
|
4008
4052
|
return function() {
|
|
4009
4053
|
var a = re(e), n;
|
|
4010
4054
|
if (t) {
|
|
@@ -4015,7 +4059,7 @@ function hs(e) {
|
|
|
4015
4059
|
return Be(this, n);
|
|
4016
4060
|
};
|
|
4017
4061
|
}
|
|
4018
|
-
function
|
|
4062
|
+
function ys() {
|
|
4019
4063
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
4020
4064
|
return !1;
|
|
4021
4065
|
if (typeof Proxy == "function")
|
|
@@ -4029,7 +4073,7 @@ function gs() {
|
|
|
4029
4073
|
}
|
|
4030
4074
|
function Ye() {
|
|
4031
4075
|
}
|
|
4032
|
-
function
|
|
4076
|
+
function bs(e) {
|
|
4033
4077
|
var t = Object.getOwnPropertyNames(Object.getPrototypeOf(e));
|
|
4034
4078
|
t.forEach(function(r) {
|
|
4035
4079
|
typeof e[r] == "function" && (e[r] = e[r].bind(e));
|
|
@@ -4037,12 +4081,12 @@ function ms(e) {
|
|
|
4037
4081
|
}
|
|
4038
4082
|
var nt = function(e) {
|
|
4039
4083
|
mt(r, e);
|
|
4040
|
-
var t =
|
|
4084
|
+
var t = vs(r);
|
|
4041
4085
|
function r() {
|
|
4042
4086
|
var a, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 ? arguments[1] : void 0;
|
|
4043
|
-
if (Y(this, r), a = t.call(this), vt && fe.call(ce(a)), a.options =
|
|
4087
|
+
if (Y(this, r), a = t.call(this), vt && fe.call(ce(a)), a.options = bn(n), a.services = {}, a.logger = ee, a.modules = {
|
|
4044
4088
|
external: []
|
|
4045
|
-
},
|
|
4089
|
+
}, bs(ce(a)), i && !a.isInitialized && !n.isClone) {
|
|
4046
4090
|
if (!a.options.initImmediate)
|
|
4047
4091
|
return a.init(n, i), Be(a, ce(a));
|
|
4048
4092
|
setTimeout(function() {
|
|
@@ -4056,29 +4100,29 @@ var nt = function(e) {
|
|
|
4056
4100
|
value: function() {
|
|
4057
4101
|
var n = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 ? arguments[1] : void 0;
|
|
4058
4102
|
typeof i == "function" && (o = i, i = {}), !i.defaultNS && i.defaultNS !== !1 && i.ns && (typeof i.ns == "string" ? i.defaultNS = i.ns : i.ns.indexOf("translation") < 0 && (i.defaultNS = i.ns[0]));
|
|
4059
|
-
var s =
|
|
4060
|
-
this.options = Z(Z(Z({}, s), this.options),
|
|
4103
|
+
var s = yn();
|
|
4104
|
+
this.options = Z(Z(Z({}, s), this.options), bn(i)), this.options.compatibilityAPI !== "v1" && (this.options.interpolation = Z(Z({}, s.interpolation), this.options.interpolation)), i.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = i.keySeparator), i.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = i.nsSeparator);
|
|
4061
4105
|
function u(h) {
|
|
4062
4106
|
return h ? typeof h == "function" ? new h() : h : null;
|
|
4063
4107
|
}
|
|
4064
4108
|
if (!this.options.isClone) {
|
|
4065
4109
|
this.modules.logger ? ee.init(u(this.modules.logger), this.options) : ee.init(null, this.options);
|
|
4066
4110
|
var f;
|
|
4067
|
-
this.modules.formatter ? f = this.modules.formatter : typeof Intl < "u" && (f =
|
|
4068
|
-
var l = new
|
|
4069
|
-
this.store = new
|
|
4111
|
+
this.modules.formatter ? f = this.modules.formatter : typeof Intl < "u" && (f = ds);
|
|
4112
|
+
var l = new dn(this.options);
|
|
4113
|
+
this.store = new rs(this.options.resources, this.options);
|
|
4070
4114
|
var c = this.services;
|
|
4071
|
-
c.logger = ee, c.resourceStore = this.store, c.languageUtils = l, c.pluralResolver = new
|
|
4115
|
+
c.logger = ee, c.resourceStore = this.store, c.languageUtils = l, c.pluralResolver = new cs(l, {
|
|
4072
4116
|
prepend: this.options.pluralSeparator,
|
|
4073
4117
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
4074
4118
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
4075
|
-
}), f && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (c.formatter = u(f), c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new
|
|
4119
|
+
}), f && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (c.formatter = u(f), c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new fs(this.options), c.utils = {
|
|
4076
4120
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
4077
|
-
}, c.backendConnector = new
|
|
4121
|
+
}, c.backendConnector = new ms(u(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", function(h) {
|
|
4078
4122
|
for (var g = arguments.length, O = new Array(g > 1 ? g - 1 : 0), m = 1; m < g; m++)
|
|
4079
4123
|
O[m - 1] = arguments[m];
|
|
4080
4124
|
n.emit.apply(n, [h].concat(O));
|
|
4081
|
-
}), this.modules.languageDetector && (c.languageDetector = u(this.modules.languageDetector), c.languageDetector.init && c.languageDetector.init(c, this.options.detection, this.options)), this.modules.i18nFormat && (c.i18nFormat = u(this.modules.i18nFormat), c.i18nFormat.init && c.i18nFormat.init(this)), this.translator = new
|
|
4125
|
+
}), this.modules.languageDetector && (c.languageDetector = u(this.modules.languageDetector), c.languageDetector.init && c.languageDetector.init(c, this.options.detection, this.options)), this.modules.i18nFormat && (c.i18nFormat = u(this.modules.i18nFormat), c.i18nFormat.init && c.i18nFormat.init(this)), this.translator = new ln(this.services, this.options), this.translator.on("*", function(h) {
|
|
4082
4126
|
for (var g = arguments.length, O = new Array(g > 1 ? g - 1 : 0), m = 1; m < g; m++)
|
|
4083
4127
|
O[m - 1] = arguments[m];
|
|
4084
4128
|
n.emit.apply(n, [h].concat(O));
|
|
@@ -4161,7 +4205,7 @@ var nt = function(e) {
|
|
|
4161
4205
|
throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
4162
4206
|
if (!n.type)
|
|
4163
4207
|
throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
4164
|
-
return n.type === "backend" && (this.modules.backend = n), (n.type === "logger" || n.log && n.warn && n.error) && (this.modules.logger = n), n.type === "languageDetector" && (this.modules.languageDetector = n), n.type === "i18nFormat" && (this.modules.i18nFormat = n), n.type === "postProcessor" &&
|
|
4208
|
+
return n.type === "backend" && (this.modules.backend = n), (n.type === "logger" || n.log && n.warn && n.error) && (this.modules.logger = n), n.type === "languageDetector" && (this.modules.languageDetector = n), n.type === "i18nFormat" && (this.modules.i18nFormat = n), n.type === "postProcessor" && la.addPostProcessor(n), n.type === "formatter" && (this.modules.formatter = n), n.type === "3rdParty" && this.modules.external.push(n), this;
|
|
4165
4209
|
}
|
|
4166
4210
|
}, {
|
|
4167
4211
|
key: "setResolvedLanguage",
|
|
@@ -4284,7 +4328,7 @@ var nt = function(e) {
|
|
|
4284
4328
|
value: function(n) {
|
|
4285
4329
|
if (n || (n = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !n)
|
|
4286
4330
|
return "rtl";
|
|
4287
|
-
var i = ["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"], o = this.services && this.services.languageUtils || new
|
|
4331
|
+
var i = ["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"], o = this.services && this.services.languageUtils || new dn(yn());
|
|
4288
4332
|
return i.indexOf(o.getLanguagePartFromCode(n)) > -1 || n.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
4289
4333
|
}
|
|
4290
4334
|
}, {
|
|
@@ -4299,7 +4343,7 @@ var nt = function(e) {
|
|
|
4299
4343
|
u[l] = n[l];
|
|
4300
4344
|
}), u.services = Z({}, this.services), u.services.utils = {
|
|
4301
4345
|
hasLoadedNamespace: u.hasLoadedNamespace.bind(u)
|
|
4302
|
-
}, u.translator = new
|
|
4346
|
+
}, u.translator = new ln(u.services, u.options), u.translator.on("*", function(l) {
|
|
4303
4347
|
for (var c = arguments.length, d = new Array(c > 1 ? c - 1 : 0), p = 1; p < c; p++)
|
|
4304
4348
|
d[p - 1] = arguments[p];
|
|
4305
4349
|
u.emit.apply(u, [l].concat(d));
|
|
@@ -4340,15 +4384,15 @@ $.setDefaultNamespace;
|
|
|
4340
4384
|
$.hasLoadedNamespace;
|
|
4341
4385
|
$.loadNamespaces;
|
|
4342
4386
|
$.loadLanguages;
|
|
4343
|
-
var
|
|
4344
|
-
function
|
|
4345
|
-
return
|
|
4387
|
+
var da = [], ws = da.forEach, Ss = da.slice;
|
|
4388
|
+
function xs(e) {
|
|
4389
|
+
return ws.call(Ss.call(arguments, 1), function(t) {
|
|
4346
4390
|
if (t)
|
|
4347
4391
|
for (var r in t)
|
|
4348
4392
|
e[r] === void 0 && (e[r] = t[r]);
|
|
4349
4393
|
}), e;
|
|
4350
4394
|
}
|
|
4351
|
-
var
|
|
4395
|
+
var Sn = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Os = function(t, r, a) {
|
|
4352
4396
|
var n = a || {};
|
|
4353
4397
|
n.path = n.path || "/";
|
|
4354
4398
|
var i = encodeURIComponent(r), o = "".concat(t, "=").concat(i);
|
|
@@ -4359,12 +4403,12 @@ var wn = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ws = function(t, r, a) {
|
|
|
4359
4403
|
o += "; Max-Age=".concat(Math.floor(s));
|
|
4360
4404
|
}
|
|
4361
4405
|
if (n.domain) {
|
|
4362
|
-
if (!
|
|
4406
|
+
if (!Sn.test(n.domain))
|
|
4363
4407
|
throw new TypeError("option domain is invalid");
|
|
4364
4408
|
o += "; Domain=".concat(n.domain);
|
|
4365
4409
|
}
|
|
4366
4410
|
if (n.path) {
|
|
4367
|
-
if (!
|
|
4411
|
+
if (!Sn.test(n.path))
|
|
4368
4412
|
throw new TypeError("option path is invalid");
|
|
4369
4413
|
o += "; Path=".concat(n.path);
|
|
4370
4414
|
}
|
|
@@ -4393,13 +4437,13 @@ var wn = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ws = function(t, r, a) {
|
|
|
4393
4437
|
}
|
|
4394
4438
|
}
|
|
4395
4439
|
return o;
|
|
4396
|
-
},
|
|
4440
|
+
}, xn = {
|
|
4397
4441
|
create: function(t, r, a, n) {
|
|
4398
4442
|
var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
4399
4443
|
path: "/",
|
|
4400
4444
|
sameSite: "strict"
|
|
4401
4445
|
};
|
|
4402
|
-
a && (i.expires = new Date(), i.expires.setTime(i.expires.getTime() + a * 60 * 1e3)), n && (i.domain = n), document.cookie =
|
|
4446
|
+
a && (i.expires = new Date(), i.expires.setTime(i.expires.getTime() + a * 60 * 1e3)), n && (i.domain = n), document.cookie = Os(t, encodeURIComponent(r), i);
|
|
4403
4447
|
},
|
|
4404
4448
|
read: function(t) {
|
|
4405
4449
|
for (var r = "".concat(t, "="), a = document.cookie.split(";"), n = 0; n < a.length; n++) {
|
|
@@ -4413,20 +4457,20 @@ var wn = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ws = function(t, r, a) {
|
|
|
4413
4457
|
remove: function(t) {
|
|
4414
4458
|
this.create(t, "", -1);
|
|
4415
4459
|
}
|
|
4416
|
-
},
|
|
4460
|
+
}, Es = {
|
|
4417
4461
|
name: "cookie",
|
|
4418
4462
|
lookup: function(t) {
|
|
4419
4463
|
var r;
|
|
4420
4464
|
if (t.lookupCookie && typeof document < "u") {
|
|
4421
|
-
var a =
|
|
4465
|
+
var a = xn.read(t.lookupCookie);
|
|
4422
4466
|
a && (r = a);
|
|
4423
4467
|
}
|
|
4424
4468
|
return r;
|
|
4425
4469
|
},
|
|
4426
4470
|
cacheUserLanguage: function(t, r) {
|
|
4427
|
-
r.lookupCookie && typeof document < "u" &&
|
|
4471
|
+
r.lookupCookie && typeof document < "u" && xn.create(r.lookupCookie, t, r.cookieMinutes, r.cookieDomain, r.cookieOptions);
|
|
4428
4472
|
}
|
|
4429
|
-
},
|
|
4473
|
+
}, Ps = {
|
|
4430
4474
|
name: "querystring",
|
|
4431
4475
|
lookup: function(t) {
|
|
4432
4476
|
var r;
|
|
@@ -4443,7 +4487,7 @@ var wn = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ws = function(t, r, a) {
|
|
|
4443
4487
|
}
|
|
4444
4488
|
return r;
|
|
4445
4489
|
}
|
|
4446
|
-
}, je = null,
|
|
4490
|
+
}, je = null, On = function() {
|
|
4447
4491
|
if (je !== null)
|
|
4448
4492
|
return je;
|
|
4449
4493
|
try {
|
|
@@ -4454,20 +4498,20 @@ var wn = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ws = function(t, r, a) {
|
|
|
4454
4498
|
je = !1;
|
|
4455
4499
|
}
|
|
4456
4500
|
return je;
|
|
4457
|
-
},
|
|
4501
|
+
}, Cs = {
|
|
4458
4502
|
name: "localStorage",
|
|
4459
4503
|
lookup: function(t) {
|
|
4460
4504
|
var r;
|
|
4461
|
-
if (t.lookupLocalStorage &&
|
|
4505
|
+
if (t.lookupLocalStorage && On()) {
|
|
4462
4506
|
var a = window.localStorage.getItem(t.lookupLocalStorage);
|
|
4463
4507
|
a && (r = a);
|
|
4464
4508
|
}
|
|
4465
4509
|
return r;
|
|
4466
4510
|
},
|
|
4467
4511
|
cacheUserLanguage: function(t, r) {
|
|
4468
|
-
r.lookupLocalStorage &&
|
|
4512
|
+
r.lookupLocalStorage && On() && window.localStorage.setItem(r.lookupLocalStorage, t);
|
|
4469
4513
|
}
|
|
4470
|
-
}, Ie = null,
|
|
4514
|
+
}, Ie = null, En = function() {
|
|
4471
4515
|
if (Ie !== null)
|
|
4472
4516
|
return Ie;
|
|
4473
4517
|
try {
|
|
@@ -4478,20 +4522,20 @@ var wn = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ws = function(t, r, a) {
|
|
|
4478
4522
|
Ie = !1;
|
|
4479
4523
|
}
|
|
4480
4524
|
return Ie;
|
|
4481
|
-
},
|
|
4525
|
+
}, Rs = {
|
|
4482
4526
|
name: "sessionStorage",
|
|
4483
4527
|
lookup: function(t) {
|
|
4484
4528
|
var r;
|
|
4485
|
-
if (t.lookupSessionStorage &&
|
|
4529
|
+
if (t.lookupSessionStorage && En()) {
|
|
4486
4530
|
var a = window.sessionStorage.getItem(t.lookupSessionStorage);
|
|
4487
4531
|
a && (r = a);
|
|
4488
4532
|
}
|
|
4489
4533
|
return r;
|
|
4490
4534
|
},
|
|
4491
4535
|
cacheUserLanguage: function(t, r) {
|
|
4492
|
-
r.lookupSessionStorage &&
|
|
4536
|
+
r.lookupSessionStorage && En() && window.sessionStorage.setItem(r.lookupSessionStorage, t);
|
|
4493
4537
|
}
|
|
4494
|
-
},
|
|
4538
|
+
}, ks = {
|
|
4495
4539
|
name: "navigator",
|
|
4496
4540
|
lookup: function(t) {
|
|
4497
4541
|
var r = [];
|
|
@@ -4503,13 +4547,13 @@ var wn = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ws = function(t, r, a) {
|
|
|
4503
4547
|
}
|
|
4504
4548
|
return r.length > 0 ? r : void 0;
|
|
4505
4549
|
}
|
|
4506
|
-
},
|
|
4550
|
+
}, Ns = {
|
|
4507
4551
|
name: "htmlTag",
|
|
4508
4552
|
lookup: function(t) {
|
|
4509
4553
|
var r, a = t.htmlTag || (typeof document < "u" ? document.documentElement : null);
|
|
4510
4554
|
return a && typeof a.getAttribute == "function" && (r = a.getAttribute("lang")), r;
|
|
4511
4555
|
}
|
|
4512
|
-
},
|
|
4556
|
+
}, Ls = {
|
|
4513
4557
|
name: "path",
|
|
4514
4558
|
lookup: function(t) {
|
|
4515
4559
|
var r;
|
|
@@ -4525,7 +4569,7 @@ var wn = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ws = function(t, r, a) {
|
|
|
4525
4569
|
}
|
|
4526
4570
|
return r;
|
|
4527
4571
|
}
|
|
4528
|
-
},
|
|
4572
|
+
}, _s = {
|
|
4529
4573
|
name: "subdomain",
|
|
4530
4574
|
lookup: function(t) {
|
|
4531
4575
|
var r = typeof t.lookupFromSubdomainIndex == "number" ? t.lookupFromSubdomainIndex + 1 : 1, a = typeof window < "u" && window.location && window.location.hostname && window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
|
|
@@ -4533,7 +4577,7 @@ var wn = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ws = function(t, r, a) {
|
|
|
4533
4577
|
return a[r];
|
|
4534
4578
|
}
|
|
4535
4579
|
};
|
|
4536
|
-
function
|
|
4580
|
+
function As() {
|
|
4537
4581
|
return {
|
|
4538
4582
|
order: ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"],
|
|
4539
4583
|
lookupQuerystring: "lng",
|
|
@@ -4547,7 +4591,7 @@ function Ns() {
|
|
|
4547
4591
|
// cookieDomain: 'myDomain'
|
|
4548
4592
|
};
|
|
4549
4593
|
}
|
|
4550
|
-
var
|
|
4594
|
+
var pa = /* @__PURE__ */ function() {
|
|
4551
4595
|
function e(t) {
|
|
4552
4596
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
4553
4597
|
Y(this, e), this.type = "languageDetector", this.detectors = {}, this.init(t, r);
|
|
@@ -4556,7 +4600,7 @@ var da = /* @__PURE__ */ function() {
|
|
|
4556
4600
|
key: "init",
|
|
4557
4601
|
value: function(r) {
|
|
4558
4602
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
4559
|
-
this.services = r, this.options =
|
|
4603
|
+
this.services = r, this.options = xs(a, this.options || {}, As()), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = n, this.addDetector(Es), this.addDetector(Ps), this.addDetector(Cs), this.addDetector(Rs), this.addDetector(ks), this.addDetector(Ns), this.addDetector(Ls), this.addDetector(_s);
|
|
4560
4604
|
}
|
|
4561
4605
|
}, {
|
|
4562
4606
|
key: "addDetector",
|
|
@@ -4586,8 +4630,8 @@ var da = /* @__PURE__ */ function() {
|
|
|
4586
4630
|
}
|
|
4587
4631
|
}]), e;
|
|
4588
4632
|
}();
|
|
4589
|
-
|
|
4590
|
-
const
|
|
4633
|
+
pa.type = "languageDetector";
|
|
4634
|
+
const Ts = ({ resources: e }) => ya(() => $.createInstance(
|
|
4591
4635
|
{
|
|
4592
4636
|
defaultNS: "common",
|
|
4593
4637
|
fallbackLng: "en",
|
|
@@ -4605,65 +4649,73 @@ const Ls = ({ resources: e }) => va(() => $.createInstance(
|
|
|
4605
4649
|
if (t)
|
|
4606
4650
|
return console.error(t);
|
|
4607
4651
|
}
|
|
4608
|
-
).use(
|
|
4652
|
+
).use(pa), [e]), $s = $n((e) => {
|
|
4609
4653
|
const t = `.${e}`;
|
|
4610
|
-
return
|
|
4654
|
+
return Dn({
|
|
4611
4655
|
key: "css",
|
|
4612
4656
|
stylisPlugins: [(a) => {
|
|
4613
4657
|
a?.type === "rule" && a?.value.startsWith(".css") && (a.props = [a.props].flat().map((n) => n.includes(t) ? n : `${t} ${n}`));
|
|
4614
|
-
},
|
|
4658
|
+
}, Ha]
|
|
4615
4659
|
});
|
|
4616
|
-
}),
|
|
4660
|
+
}), js = ({
|
|
4617
4661
|
children: e,
|
|
4618
|
-
|
|
4662
|
+
className: t,
|
|
4619
4663
|
fallback: r,
|
|
4620
4664
|
resources: a
|
|
4621
4665
|
}) => {
|
|
4622
|
-
const { scope: n, onError: i } =
|
|
4623
|
-
return /* @__PURE__ */ V("div", { className: n,
|
|
4666
|
+
const { scope: n, onError: i } = Io(), o = Ts({ resources: a });
|
|
4667
|
+
return /* @__PURE__ */ V("div", { className: Fo(n, t), "data-testid": n, children: /* @__PURE__ */ V(xa, { value: $s(n), children: /* @__PURE__ */ V(Ra, { i18n: o, children: /* @__PURE__ */ V(Uo, { fallback: r, onError: i, children: e }) }) }) });
|
|
4624
4668
|
};
|
|
4625
|
-
var
|
|
4669
|
+
var Is = Object.defineProperty, at = Object.getOwnPropertySymbols, ha = Object.prototype.hasOwnProperty, ga = Object.prototype.propertyIsEnumerable, Pn = (e, t, r) => t in e ? Is(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xt = (e, t) => {
|
|
4626
4670
|
for (var r in t || (t = {}))
|
|
4627
|
-
|
|
4671
|
+
ha.call(t, r) && Pn(e, r, t[r]);
|
|
4628
4672
|
if (at)
|
|
4629
4673
|
for (var r of at(t))
|
|
4630
|
-
|
|
4674
|
+
ga.call(t, r) && Pn(e, r, t[r]);
|
|
4631
4675
|
return e;
|
|
4632
|
-
},
|
|
4676
|
+
}, Ds = (e, t) => {
|
|
4633
4677
|
var r = {};
|
|
4634
4678
|
for (var a in e)
|
|
4635
|
-
|
|
4679
|
+
ha.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
|
|
4636
4680
|
if (e != null && at)
|
|
4637
4681
|
for (var a of at(e))
|
|
4638
|
-
t.indexOf(a) < 0 &&
|
|
4682
|
+
t.indexOf(a) < 0 && ga.call(e, a) && (r[a] = e[a]);
|
|
4639
4683
|
return r;
|
|
4640
4684
|
};
|
|
4641
|
-
const
|
|
4685
|
+
const Fs = (e, t) => {
|
|
4642
4686
|
if (!e)
|
|
4643
4687
|
return;
|
|
4644
4688
|
const r = e;
|
|
4645
4689
|
return e && t && Object.entries(e).forEach(([a, n]) => {
|
|
4646
4690
|
Object.keys(n).forEach((i) => {
|
|
4647
4691
|
var o;
|
|
4648
|
-
r[a][i] =
|
|
4692
|
+
r[a][i] = Xt(Xt({}, r[a][i]), (o = t[a]) == null ? void 0 : o[i]);
|
|
4649
4693
|
});
|
|
4650
4694
|
}), r;
|
|
4651
|
-
},
|
|
4652
|
-
var n = a, { resources: i } = n, o =
|
|
4653
|
-
return /* @__PURE__ */ V(
|
|
4654
|
-
|
|
4655
|
-
|
|
4695
|
+
}, Us = (e, t, r) => (a) => {
|
|
4696
|
+
var n = a, { resources: i } = n, o = Ds(n, ["resources"]);
|
|
4697
|
+
return /* @__PURE__ */ V(
|
|
4698
|
+
js,
|
|
4699
|
+
{
|
|
4700
|
+
resources: Fs(r?.resources, i),
|
|
4701
|
+
fallback: t,
|
|
4702
|
+
css: r?.css,
|
|
4703
|
+
children: /* @__PURE__ */ V(e, Xt({}, o))
|
|
4704
|
+
}
|
|
4705
|
+
);
|
|
4706
|
+
}, Ys = {
|
|
4707
|
+
createElement: Us
|
|
4656
4708
|
};
|
|
4657
4709
|
export {
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4710
|
+
Js as Alchemy,
|
|
4711
|
+
sa as AlchemyContext,
|
|
4712
|
+
js as Element,
|
|
4713
|
+
Uo as ErrorBoundary,
|
|
4714
|
+
Ys as default,
|
|
4715
|
+
$s as memoizedCreateCache,
|
|
4716
|
+
Io as useAlchemy,
|
|
4717
|
+
Ts as useI18n,
|
|
4718
|
+
$i as useLoadFonts,
|
|
4719
|
+
To as useLoadIcons,
|
|
4720
|
+
jo as useLoadTheme
|
|
4669
4721
|
};
|