@x4b/banner 28.6.0 → 28.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/banner.es.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as w from "react";
|
2
2
|
import ce, { useCallback as Xt, useLayoutEffect as xa, useEffect as qr, useRef as Ta, useState as Qr } from "react";
|
3
|
-
import { Button as
|
3
|
+
import { Button as ee } from "@x4b/design-system";
|
4
4
|
import { createPortal as Sa } from "react-dom";
|
5
5
|
var Pt = function(e, t) {
|
6
6
|
return Pt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
@@ -10,7 +10,7 @@ var Pt = function(e, t) {
|
|
10
10
|
Object.prototype.hasOwnProperty.call(n, a) && (r[a] = n[a]);
|
11
11
|
}, Pt(e, t);
|
12
12
|
};
|
13
|
-
function
|
13
|
+
function te(e, t) {
|
14
14
|
if (typeof t != "function" && t !== null)
|
15
15
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
16
16
|
Pt(e, t);
|
@@ -38,7 +38,7 @@ function Vt(e, t) {
|
|
38
38
|
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
39
39
|
return r;
|
40
40
|
}
|
41
|
-
function
|
41
|
+
function oe(e, t, r) {
|
42
42
|
if (r || arguments.length === 2)
|
43
43
|
for (var n = 0, a = t.length, o; n < a; n++)
|
44
44
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
@@ -58,8 +58,8 @@ function Ra() {
|
|
58
58
|
if (yr)
|
59
59
|
return _;
|
60
60
|
yr = 1;
|
61
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113,
|
62
|
-
function
|
61
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, I = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, p = e ? Symbol.for("react.scope") : 60119;
|
62
|
+
function g(y) {
|
63
63
|
if (typeof y == "object" && y !== null) {
|
64
64
|
var z = y.$$typeof;
|
65
65
|
switch (z) {
|
@@ -89,36 +89,36 @@ function Ra() {
|
|
89
89
|
}
|
90
90
|
}
|
91
91
|
}
|
92
|
-
function
|
93
|
-
return
|
92
|
+
function N(y) {
|
93
|
+
return g(y) === f;
|
94
94
|
}
|
95
95
|
return _.AsyncMode = u, _.ConcurrentMode = f, _.ContextConsumer = l, _.ContextProvider = i, _.Element = t, _.ForwardRef = c, _.Fragment = n, _.Lazy = M, _.Memo = b, _.Portal = r, _.Profiler = o, _.StrictMode = a, _.Suspense = h, _.isAsyncMode = function(y) {
|
96
|
-
return
|
97
|
-
}, _.isConcurrentMode =
|
98
|
-
return
|
96
|
+
return N(y) || g(y) === u;
|
97
|
+
}, _.isConcurrentMode = N, _.isContextConsumer = function(y) {
|
98
|
+
return g(y) === l;
|
99
99
|
}, _.isContextProvider = function(y) {
|
100
|
-
return
|
100
|
+
return g(y) === i;
|
101
101
|
}, _.isElement = function(y) {
|
102
102
|
return typeof y == "object" && y !== null && y.$$typeof === t;
|
103
103
|
}, _.isForwardRef = function(y) {
|
104
|
-
return
|
104
|
+
return g(y) === c;
|
105
105
|
}, _.isFragment = function(y) {
|
106
|
-
return
|
106
|
+
return g(y) === n;
|
107
107
|
}, _.isLazy = function(y) {
|
108
|
-
return
|
108
|
+
return g(y) === M;
|
109
109
|
}, _.isMemo = function(y) {
|
110
|
-
return
|
110
|
+
return g(y) === b;
|
111
111
|
}, _.isPortal = function(y) {
|
112
|
-
return
|
112
|
+
return g(y) === r;
|
113
113
|
}, _.isProfiler = function(y) {
|
114
|
-
return
|
114
|
+
return g(y) === o;
|
115
115
|
}, _.isStrictMode = function(y) {
|
116
|
-
return
|
116
|
+
return g(y) === a;
|
117
117
|
}, _.isSuspense = function(y) {
|
118
|
-
return
|
118
|
+
return g(y) === h;
|
119
119
|
}, _.isValidElementType = function(y) {
|
120
|
-
return typeof y == "string" || typeof y == "function" || y === n || y === f || y === o || y === a || y === h || y ===
|
121
|
-
}, _.typeOf =
|
120
|
+
return typeof y == "string" || typeof y == "function" || y === n || y === f || y === o || y === a || y === h || y === m || typeof y == "object" && y !== null && (y.$$typeof === M || y.$$typeof === b || y.$$typeof === i || y.$$typeof === l || y.$$typeof === c || y.$$typeof === I || y.$$typeof === x || y.$$typeof === p || y.$$typeof === R);
|
121
|
+
}, _.typeOf = g, _;
|
122
122
|
}
|
123
123
|
var F = {};
|
124
124
|
/** @license React v16.13.1
|
@@ -132,16 +132,16 @@ var F = {};
|
|
132
132
|
var br;
|
133
133
|
function Ia() {
|
134
134
|
return br || (br = 1, process.env.NODE_ENV !== "production" && function() {
|
135
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113,
|
136
|
-
function
|
137
|
-
return typeof
|
135
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, I = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, p = e ? Symbol.for("react.scope") : 60119;
|
136
|
+
function g(S) {
|
137
|
+
return typeof S == "string" || typeof S == "function" || S === n || S === f || S === o || S === a || S === h || S === m || typeof S == "object" && S !== null && (S.$$typeof === M || S.$$typeof === b || S.$$typeof === i || S.$$typeof === l || S.$$typeof === c || S.$$typeof === I || S.$$typeof === x || S.$$typeof === p || S.$$typeof === R);
|
138
138
|
}
|
139
|
-
function
|
140
|
-
if (typeof
|
141
|
-
var Ue =
|
139
|
+
function N(S) {
|
140
|
+
if (typeof S == "object" && S !== null) {
|
141
|
+
var Ue = S.$$typeof;
|
142
142
|
switch (Ue) {
|
143
143
|
case t:
|
144
|
-
var Ce =
|
144
|
+
var Ce = S.type;
|
145
145
|
switch (Ce) {
|
146
146
|
case u:
|
147
147
|
case f:
|
@@ -168,47 +168,47 @@ function Ia() {
|
|
168
168
|
}
|
169
169
|
}
|
170
170
|
}
|
171
|
-
var y = u, z = f, B = l, ge = i, Ie = t, Fe = c, fe = n, ye = M, Q = b,
|
172
|
-
function Pe(
|
173
|
-
return he || (he = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), be(
|
171
|
+
var y = u, z = f, B = l, ge = i, Ie = t, Fe = c, fe = n, ye = M, Q = b, re = r, V = o, se = a, Me = h, he = !1;
|
172
|
+
function Pe(S) {
|
173
|
+
return he || (he = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), be(S) || N(S) === u;
|
174
174
|
}
|
175
|
-
function be(
|
176
|
-
return
|
175
|
+
function be(S) {
|
176
|
+
return N(S) === f;
|
177
177
|
}
|
178
|
-
function Ne(
|
179
|
-
return
|
178
|
+
function Ne(S) {
|
179
|
+
return N(S) === l;
|
180
180
|
}
|
181
|
-
function Oe(
|
182
|
-
return
|
181
|
+
function Oe(S) {
|
182
|
+
return N(S) === i;
|
183
183
|
}
|
184
|
-
function Ae(
|
185
|
-
return typeof
|
184
|
+
function Ae(S) {
|
185
|
+
return typeof S == "object" && S !== null && S.$$typeof === t;
|
186
186
|
}
|
187
|
-
function Be(
|
188
|
-
return
|
187
|
+
function Be(S) {
|
188
|
+
return N(S) === c;
|
189
189
|
}
|
190
|
-
function ke(
|
191
|
-
return
|
190
|
+
function ke(S) {
|
191
|
+
return N(S) === n;
|
192
192
|
}
|
193
|
-
function Ee(
|
194
|
-
return
|
193
|
+
function Ee(S) {
|
194
|
+
return N(S) === M;
|
195
195
|
}
|
196
|
-
function L(
|
197
|
-
return
|
196
|
+
function L(S) {
|
197
|
+
return N(S) === b;
|
198
198
|
}
|
199
|
-
function J(
|
200
|
-
return
|
199
|
+
function J(S) {
|
200
|
+
return N(S) === r;
|
201
201
|
}
|
202
|
-
function we(
|
203
|
-
return
|
202
|
+
function we(S) {
|
203
|
+
return N(S) === o;
|
204
204
|
}
|
205
|
-
function de(
|
206
|
-
return
|
205
|
+
function de(S) {
|
206
|
+
return N(S) === a;
|
207
207
|
}
|
208
|
-
function
|
209
|
-
return
|
208
|
+
function mt(S) {
|
209
|
+
return N(S) === h;
|
210
210
|
}
|
211
|
-
F.AsyncMode = y, F.ConcurrentMode = z, F.ContextConsumer = B, F.ContextProvider = ge, F.Element = Ie, F.ForwardRef = Fe, F.Fragment = fe, F.Lazy = ye, F.Memo = Q, F.Portal =
|
211
|
+
F.AsyncMode = y, F.ConcurrentMode = z, F.ContextConsumer = B, F.ContextProvider = ge, F.Element = Ie, F.ForwardRef = Fe, F.Fragment = fe, F.Lazy = ye, F.Memo = Q, F.Portal = re, F.Profiler = V, F.StrictMode = se, F.Suspense = Me, F.isAsyncMode = Pe, F.isConcurrentMode = be, F.isContextConsumer = Ne, F.isContextProvider = Oe, F.isElement = Ae, F.isForwardRef = Be, F.isFragment = ke, F.isLazy = Ee, F.isMemo = L, F.isPortal = J, F.isProfiler = we, F.isStrictMode = de, F.isSuspense = mt, F.isValidElementType = g, F.typeOf = N;
|
212
212
|
}()), F;
|
213
213
|
}
|
214
214
|
(function(e) {
|
@@ -238,40 +238,40 @@ var A;
|
|
238
238
|
(function(e) {
|
239
239
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
240
240
|
})(A || (A = {}));
|
241
|
-
var
|
241
|
+
var G;
|
242
242
|
(function(e) {
|
243
243
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
244
|
-
})(
|
244
|
+
})(G || (G = {}));
|
245
245
|
var _e;
|
246
246
|
(function(e) {
|
247
247
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
248
248
|
})(_e || (_e = {}));
|
249
249
|
function Er(e) {
|
250
|
-
return e.type ===
|
250
|
+
return e.type === G.literal;
|
251
251
|
}
|
252
252
|
function Na(e) {
|
253
|
-
return e.type ===
|
253
|
+
return e.type === G.argument;
|
254
254
|
}
|
255
255
|
function tn(e) {
|
256
|
-
return e.type ===
|
256
|
+
return e.type === G.number;
|
257
257
|
}
|
258
258
|
function rn(e) {
|
259
|
-
return e.type ===
|
259
|
+
return e.type === G.date;
|
260
260
|
}
|
261
261
|
function nn(e) {
|
262
|
-
return e.type ===
|
262
|
+
return e.type === G.time;
|
263
263
|
}
|
264
264
|
function an(e) {
|
265
|
-
return e.type ===
|
265
|
+
return e.type === G.select;
|
266
266
|
}
|
267
267
|
function on(e) {
|
268
|
-
return e.type ===
|
268
|
+
return e.type === G.plural;
|
269
269
|
}
|
270
270
|
function Oa(e) {
|
271
|
-
return e.type ===
|
271
|
+
return e.type === G.pound;
|
272
272
|
}
|
273
273
|
function sn(e) {
|
274
|
-
return e.type ===
|
274
|
+
return e.type === G.tag;
|
275
275
|
}
|
276
276
|
function ln(e) {
|
277
277
|
return !!(e && typeof e == "object" && e.type === _e.number);
|
@@ -375,8 +375,8 @@ var Da = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
375
375
|
function Ha(e) {
|
376
376
|
if (e.length === 0)
|
377
377
|
throw new Error("Number skeleton cannot be empty");
|
378
|
-
for (var t = e.split(Da).filter(function(
|
379
|
-
return
|
378
|
+
for (var t = e.split(Da).filter(function(m) {
|
379
|
+
return m.length > 0;
|
380
380
|
}), r = [], n = 0, a = t; n < a.length; n++) {
|
381
381
|
var o = a[n], i = o.split("/");
|
382
382
|
if (i.length === 0)
|
@@ -523,11 +523,11 @@ function Ba(e) {
|
|
523
523
|
case "integer-width":
|
524
524
|
if (a.options.length > 1)
|
525
525
|
throw new RangeError("integer-width stems only accept a single optional option");
|
526
|
-
a.options[0].replace(_a, function(u, f, c, h,
|
526
|
+
a.options[0].replace(_a, function(u, f, c, h, m, b) {
|
527
527
|
if (f)
|
528
528
|
t.minimumIntegerDigits = c.length;
|
529
529
|
else {
|
530
|
-
if (h &&
|
530
|
+
if (h && m)
|
531
531
|
throw new Error("We currently do not support maximum integer digits");
|
532
532
|
if (b)
|
533
533
|
throw new Error("We currently do not support exact integer digits");
|
@@ -543,8 +543,8 @@ function Ba(e) {
|
|
543
543
|
if (wr.test(a.stem)) {
|
544
544
|
if (a.options.length > 1)
|
545
545
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
546
|
-
a.stem.replace(wr, function(u, f, c, h,
|
547
|
-
return c === "*" ? t.minimumFractionDigits = f.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length :
|
546
|
+
a.stem.replace(wr, function(u, f, c, h, m, b) {
|
547
|
+
return c === "*" ? t.minimumFractionDigits = f.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : m && b ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + b.length) : (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length), "";
|
548
548
|
});
|
549
549
|
var o = a.options[0];
|
550
550
|
o === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = T(T({}, t), xr(o)));
|
@@ -1934,20 +1934,20 @@ function Ua(e) {
|
|
1934
1934
|
var a = et[n || ""] || et[r || ""] || et["".concat(r, "-001")] || et["001"];
|
1935
1935
|
return a[0];
|
1936
1936
|
}
|
1937
|
-
var
|
1937
|
+
var Et, za = new RegExp("^".concat(un.source, "*")), Ga = new RegExp("".concat(un.source, "*$"));
|
1938
1938
|
function D(e, t) {
|
1939
1939
|
return { start: e, end: t };
|
1940
1940
|
}
|
1941
|
-
var
|
1941
|
+
var ja = !!String.prototype.startsWith, Xa = !!String.fromCodePoint, Va = !!Object.fromEntries, Za = !!String.prototype.codePointAt, Ja = !!String.prototype.trimStart, Ya = !!String.prototype.trimEnd, Wa = !!Number.isSafeInteger, qa = Wa ? Number.isSafeInteger : function(e) {
|
1942
1942
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
1943
1943
|
}, Ot = !0;
|
1944
1944
|
try {
|
1945
1945
|
var Qa = mn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
1946
|
-
Ot = ((
|
1946
|
+
Ot = ((Et = Qa.exec("a")) === null || Et === void 0 ? void 0 : Et[0]) === "a";
|
1947
1947
|
} catch {
|
1948
1948
|
Ot = !1;
|
1949
1949
|
}
|
1950
|
-
var Sr =
|
1950
|
+
var Sr = ja ? function(t, r, n) {
|
1951
1951
|
return t.startsWith(r, n);
|
1952
1952
|
} : function(t, r, n) {
|
1953
1953
|
return t.slice(n, n + r.length) === r;
|
@@ -1981,7 +1981,7 @@ var Sr = Ga ? function(t, r, n) {
|
|
1981
1981
|
}, $a = Ya ? function(t) {
|
1982
1982
|
return t.trimEnd();
|
1983
1983
|
} : function(t) {
|
1984
|
-
return t.replace(
|
1984
|
+
return t.replace(Ga, "");
|
1985
1985
|
};
|
1986
1986
|
function mn(e, t) {
|
1987
1987
|
return new RegExp(e, t);
|
@@ -2027,7 +2027,7 @@ var eo = function() {
|
|
2027
2027
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
2028
2028
|
var l = this.clonePosition();
|
2029
2029
|
this.bump(), a.push({
|
2030
|
-
type:
|
2030
|
+
type: G.pound,
|
2031
2031
|
location: D(l, this.clonePosition())
|
2032
2032
|
});
|
2033
2033
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
@@ -2055,7 +2055,7 @@ var eo = function() {
|
|
2055
2055
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
2056
2056
|
return {
|
2057
2057
|
val: {
|
2058
|
-
type:
|
2058
|
+
type: G.literal,
|
2059
2059
|
value: "<".concat(a, "/>"),
|
2060
2060
|
location: D(n, this.clonePosition())
|
2061
2061
|
},
|
@@ -2072,7 +2072,7 @@ var eo = function() {
|
|
2072
2072
|
var u = this.clonePosition(), f = this.parseTagName();
|
2073
2073
|
return a !== f ? this.error(A.UNMATCHED_CLOSING_TAG, D(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2074
2074
|
val: {
|
2075
|
-
type:
|
2075
|
+
type: G.tag,
|
2076
2076
|
value: a,
|
2077
2077
|
children: i,
|
2078
2078
|
location: D(n, this.clonePosition())
|
@@ -2109,7 +2109,7 @@ var eo = function() {
|
|
2109
2109
|
}
|
2110
2110
|
var u = D(n, this.clonePosition());
|
2111
2111
|
return {
|
2112
|
-
val: { type:
|
2112
|
+
val: { type: G.literal, value: a, location: u },
|
2113
2113
|
err: null
|
2114
2114
|
};
|
2115
2115
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
@@ -2168,7 +2168,7 @@ var eo = function() {
|
|
2168
2168
|
case 125:
|
2169
2169
|
return this.bump(), {
|
2170
2170
|
val: {
|
2171
|
-
type:
|
2171
|
+
type: G.argument,
|
2172
2172
|
value: a,
|
2173
2173
|
location: D(n, this.clonePosition())
|
2174
2174
|
},
|
@@ -2199,46 +2199,46 @@ var eo = function() {
|
|
2199
2199
|
var c = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
|
2200
2200
|
if (h.err)
|
2201
2201
|
return h;
|
2202
|
-
var
|
2203
|
-
if (
|
2202
|
+
var m = $a(h.val);
|
2203
|
+
if (m.length === 0)
|
2204
2204
|
return this.error(A.EXPECT_ARGUMENT_STYLE, D(this.clonePosition(), this.clonePosition()));
|
2205
2205
|
var b = D(c, this.clonePosition());
|
2206
|
-
f = { style:
|
2206
|
+
f = { style: m, styleLocation: b };
|
2207
2207
|
}
|
2208
2208
|
var M = this.tryParseArgumentClose(a);
|
2209
2209
|
if (M.err)
|
2210
2210
|
return M;
|
2211
|
-
var
|
2211
|
+
var R = D(a, this.clonePosition());
|
2212
2212
|
if (f && Sr(f == null ? void 0 : f.style, "::", 0)) {
|
2213
|
-
var
|
2213
|
+
var I = Ka(f.style.slice(2));
|
2214
2214
|
if (l === "number") {
|
2215
|
-
var h = this.parseNumberSkeletonFromString(
|
2215
|
+
var h = this.parseNumberSkeletonFromString(I, f.styleLocation);
|
2216
2216
|
return h.err ? h : {
|
2217
|
-
val: { type:
|
2217
|
+
val: { type: G.number, value: n, location: R, style: h.val },
|
2218
2218
|
err: null
|
2219
2219
|
};
|
2220
2220
|
} else {
|
2221
|
-
if (
|
2222
|
-
return this.error(A.EXPECT_DATE_TIME_SKELETON,
|
2223
|
-
var x =
|
2224
|
-
this.locale && (x = ka(
|
2225
|
-
var
|
2221
|
+
if (I.length === 0)
|
2222
|
+
return this.error(A.EXPECT_DATE_TIME_SKELETON, R);
|
2223
|
+
var x = I;
|
2224
|
+
this.locale && (x = ka(I, this.locale));
|
2225
|
+
var m = {
|
2226
2226
|
type: _e.dateTime,
|
2227
2227
|
pattern: x,
|
2228
2228
|
location: f.styleLocation,
|
2229
2229
|
parsedOptions: this.shouldParseSkeletons ? Ca(x) : {}
|
2230
|
-
}, p = l === "date" ?
|
2230
|
+
}, p = l === "date" ? G.date : G.time;
|
2231
2231
|
return {
|
2232
|
-
val: { type: p, value: n, location:
|
2232
|
+
val: { type: p, value: n, location: R, style: m },
|
2233
2233
|
err: null
|
2234
2234
|
};
|
2235
2235
|
}
|
2236
2236
|
}
|
2237
2237
|
return {
|
2238
2238
|
val: {
|
2239
|
-
type: l === "number" ?
|
2239
|
+
type: l === "number" ? G.number : l === "date" ? G.date : G.time,
|
2240
2240
|
value: n,
|
2241
|
-
location:
|
2241
|
+
location: R,
|
2242
2242
|
style: (o = f == null ? void 0 : f.style) !== null && o !== void 0 ? o : null
|
2243
2243
|
},
|
2244
2244
|
err: null
|
@@ -2247,21 +2247,21 @@ var eo = function() {
|
|
2247
2247
|
case "plural":
|
2248
2248
|
case "selectordinal":
|
2249
2249
|
case "select": {
|
2250
|
-
var
|
2250
|
+
var g = this.clonePosition();
|
2251
2251
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2252
|
-
return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS, D(
|
2252
|
+
return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS, D(g, T({}, g)));
|
2253
2253
|
this.bumpSpace();
|
2254
|
-
var
|
2255
|
-
if (l !== "select" &&
|
2254
|
+
var N = this.parseIdentifierIfPossible(), y = 0;
|
2255
|
+
if (l !== "select" && N.value === "offset") {
|
2256
2256
|
if (!this.bumpIf(":"))
|
2257
2257
|
return this.error(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, D(this.clonePosition(), this.clonePosition()));
|
2258
2258
|
this.bumpSpace();
|
2259
2259
|
var h = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, A.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2260
2260
|
if (h.err)
|
2261
2261
|
return h;
|
2262
|
-
this.bumpSpace(),
|
2262
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), y = h.val;
|
2263
2263
|
}
|
2264
|
-
var z = this.tryParsePluralOrSelectOptions(t, l, r,
|
2264
|
+
var z = this.tryParsePluralOrSelectOptions(t, l, r, N);
|
2265
2265
|
if (z.err)
|
2266
2266
|
return z;
|
2267
2267
|
var M = this.tryParseArgumentClose(a);
|
@@ -2270,7 +2270,7 @@ var eo = function() {
|
|
2270
2270
|
var B = D(a, this.clonePosition());
|
2271
2271
|
return l === "select" ? {
|
2272
2272
|
val: {
|
2273
|
-
type:
|
2273
|
+
type: G.select,
|
2274
2274
|
value: n,
|
2275
2275
|
options: Rr(z.val),
|
2276
2276
|
location: B
|
@@ -2278,7 +2278,7 @@ var eo = function() {
|
|
2278
2278
|
err: null
|
2279
2279
|
} : {
|
2280
2280
|
val: {
|
2281
|
-
type:
|
2281
|
+
type: G.plural,
|
2282
2282
|
value: n,
|
2283
2283
|
options: Rr(z.val),
|
2284
2284
|
offset: y,
|
@@ -2349,9 +2349,9 @@ var eo = function() {
|
|
2349
2349
|
if (f.length === 0) {
|
2350
2350
|
var h = this.clonePosition();
|
2351
2351
|
if (r !== "select" && this.bumpIf("=")) {
|
2352
|
-
var
|
2353
|
-
if (
|
2354
|
-
return
|
2352
|
+
var m = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_SELECTOR, A.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
2353
|
+
if (m.err)
|
2354
|
+
return m;
|
2355
2355
|
c = D(h, this.clonePosition()), f = this.message.slice(h.offset, this.offset());
|
2356
2356
|
} else
|
2357
2357
|
break;
|
@@ -2365,9 +2365,9 @@ var eo = function() {
|
|
2365
2365
|
var M = this.parseMessage(t + 1, r, n);
|
2366
2366
|
if (M.err)
|
2367
2367
|
return M;
|
2368
|
-
var
|
2369
|
-
if (
|
2370
|
-
return
|
2368
|
+
var R = this.tryParseArgumentClose(b);
|
2369
|
+
if (R.err)
|
2370
|
+
return R;
|
2371
2371
|
l.push([
|
2372
2372
|
f,
|
2373
2373
|
{
|
@@ -2486,7 +2486,7 @@ function ao(e, t) {
|
|
2486
2486
|
}
|
2487
2487
|
return t != null && t.captureLocation || Ht(r.val), r.val;
|
2488
2488
|
}
|
2489
|
-
function
|
2489
|
+
function ne(e, t) {
|
2490
2490
|
var r = t && t.cache ? t.cache : co, n = t && t.serializer ? t.serializer : uo, a = t && t.strategy ? t.strategy : io;
|
2491
2491
|
return a(e, {
|
2492
2492
|
cache: r,
|
@@ -2533,7 +2533,7 @@ var co = {
|
|
2533
2533
|
create: function() {
|
2534
2534
|
return new Yt();
|
2535
2535
|
}
|
2536
|
-
},
|
2536
|
+
}, ae = {
|
2537
2537
|
variadic: so,
|
2538
2538
|
monadic: lo
|
2539
2539
|
}, ie;
|
@@ -2541,7 +2541,7 @@ var co = {
|
|
2541
2541
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
2542
2542
|
})(ie || (ie = {}));
|
2543
2543
|
var ve = function(e) {
|
2544
|
-
|
2544
|
+
te(t, e);
|
2545
2545
|
function t(r, n, a) {
|
2546
2546
|
var o = e.call(this, r) || this;
|
2547
2547
|
return o.code = n, o.originalMessage = a, o;
|
@@ -2550,19 +2550,19 @@ var ve = function(e) {
|
|
2550
2550
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
2551
2551
|
}, t;
|
2552
2552
|
}(Error), Mr = function(e) {
|
2553
|
-
|
2553
|
+
te(t, e);
|
2554
2554
|
function t(r, n, a, o) {
|
2555
2555
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(a).join('", "'), '"'), ie.INVALID_VALUE, o) || this;
|
2556
2556
|
}
|
2557
2557
|
return t;
|
2558
2558
|
}(ve), fo = function(e) {
|
2559
|
-
|
2559
|
+
te(t, e);
|
2560
2560
|
function t(r, n, a) {
|
2561
2561
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ie.INVALID_VALUE, a) || this;
|
2562
2562
|
}
|
2563
2563
|
return t;
|
2564
2564
|
}(ve), ho = function(e) {
|
2565
|
-
|
2565
|
+
te(t, e);
|
2566
2566
|
function t(r, n) {
|
2567
2567
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ie.MISSING_VALUE, n) || this;
|
2568
2568
|
}
|
@@ -2580,7 +2580,7 @@ function mo(e) {
|
|
2580
2580
|
function yn(e) {
|
2581
2581
|
return typeof e == "function";
|
2582
2582
|
}
|
2583
|
-
function
|
2583
|
+
function rt(e, t, r, n, a, o, i) {
|
2584
2584
|
if (e.length === 1 && Er(e[0]))
|
2585
2585
|
return [
|
2586
2586
|
{
|
@@ -2607,11 +2607,11 @@ function at(e, t, r, n, a, o, i) {
|
|
2607
2607
|
var h = c.value;
|
2608
2608
|
if (!(a && h in a))
|
2609
2609
|
throw new ho(h, i);
|
2610
|
-
var
|
2610
|
+
var m = a[h];
|
2611
2611
|
if (Na(c)) {
|
2612
|
-
(!
|
2613
|
-
type: typeof
|
2614
|
-
value:
|
2612
|
+
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), l.push({
|
2613
|
+
type: typeof m == "string" ? W.literal : W.object,
|
2614
|
+
value: m
|
2615
2615
|
});
|
2616
2616
|
continue;
|
2617
2617
|
}
|
@@ -2619,7 +2619,7 @@ function at(e, t, r, n, a, o, i) {
|
|
2619
2619
|
var b = typeof c.style == "string" ? n.date[c.style] : Nt(c.style) ? c.style.parsedOptions : void 0;
|
2620
2620
|
l.push({
|
2621
2621
|
type: W.literal,
|
2622
|
-
value: r.getDateTimeFormat(t, b).format(
|
2622
|
+
value: r.getDateTimeFormat(t, b).format(m)
|
2623
2623
|
});
|
2624
2624
|
continue;
|
2625
2625
|
}
|
@@ -2627,23 +2627,23 @@ function at(e, t, r, n, a, o, i) {
|
|
2627
2627
|
var b = typeof c.style == "string" ? n.time[c.style] : Nt(c.style) ? c.style.parsedOptions : n.time.medium;
|
2628
2628
|
l.push({
|
2629
2629
|
type: W.literal,
|
2630
|
-
value: r.getDateTimeFormat(t, b).format(
|
2630
|
+
value: r.getDateTimeFormat(t, b).format(m)
|
2631
2631
|
});
|
2632
2632
|
continue;
|
2633
2633
|
}
|
2634
2634
|
if (tn(c)) {
|
2635
2635
|
var b = typeof c.style == "string" ? n.number[c.style] : ln(c.style) ? c.style.parsedOptions : void 0;
|
2636
|
-
b && b.scale && (
|
2636
|
+
b && b.scale && (m = m * (b.scale || 1)), l.push({
|
2637
2637
|
type: W.literal,
|
2638
|
-
value: r.getNumberFormat(t, b).format(
|
2638
|
+
value: r.getNumberFormat(t, b).format(m)
|
2639
2639
|
});
|
2640
2640
|
continue;
|
2641
2641
|
}
|
2642
2642
|
if (sn(c)) {
|
2643
|
-
var M = c.children,
|
2644
|
-
if (!yn(
|
2645
|
-
throw new fo(
|
2646
|
-
var x =
|
2643
|
+
var M = c.children, R = c.value, I = a[R];
|
2644
|
+
if (!yn(I))
|
2645
|
+
throw new fo(R, "function", i);
|
2646
|
+
var x = rt(M, t, r, n, a, o), p = I(x.map(function(y) {
|
2647
2647
|
return y.value;
|
2648
2648
|
}));
|
2649
2649
|
Array.isArray(p) || (p = [p]), l.push.apply(l, p.map(function(y) {
|
@@ -2654,25 +2654,25 @@ function at(e, t, r, n, a, o, i) {
|
|
2654
2654
|
}));
|
2655
2655
|
}
|
2656
2656
|
if (an(c)) {
|
2657
|
-
var
|
2658
|
-
if (!
|
2659
|
-
throw new Mr(c.value,
|
2660
|
-
l.push.apply(l,
|
2657
|
+
var g = c.options[m] || c.options.other;
|
2658
|
+
if (!g)
|
2659
|
+
throw new Mr(c.value, m, Object.keys(c.options), i);
|
2660
|
+
l.push.apply(l, rt(g.value, t, r, n, a));
|
2661
2661
|
continue;
|
2662
2662
|
}
|
2663
2663
|
if (on(c)) {
|
2664
|
-
var
|
2665
|
-
if (!
|
2664
|
+
var g = c.options["=".concat(m)];
|
2665
|
+
if (!g) {
|
2666
2666
|
if (!Intl.PluralRules)
|
2667
2667
|
throw new ve(`Intl.PluralRules is not available in this environment.
|
2668
2668
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
2669
2669
|
`, ie.MISSING_INTL_API, i);
|
2670
|
-
var
|
2671
|
-
|
2670
|
+
var N = r.getPluralRules(t, { type: c.pluralType }).select(m - (c.offset || 0));
|
2671
|
+
g = c.options[N] || c.options.other;
|
2672
2672
|
}
|
2673
|
-
if (!
|
2674
|
-
throw new Mr(c.value,
|
2675
|
-
l.push.apply(l,
|
2673
|
+
if (!g)
|
2674
|
+
throw new Mr(c.value, m, Object.keys(c.options), i);
|
2675
|
+
l.push.apply(l, rt(g.value, t, r, n, a, m - (c.offset || 0)));
|
2676
2676
|
continue;
|
2677
2677
|
}
|
2678
2678
|
}
|
@@ -2688,7 +2688,7 @@ function vo(e, t) {
|
|
2688
2688
|
return r[n] = po(e[n], t[n]), r;
|
2689
2689
|
}, T({}, e)) : e;
|
2690
2690
|
}
|
2691
|
-
function
|
2691
|
+
function wt(e) {
|
2692
2692
|
return {
|
2693
2693
|
create: function() {
|
2694
2694
|
return {
|
@@ -2708,29 +2708,29 @@ function go(e) {
|
|
2708
2708
|
dateTime: {},
|
2709
2709
|
pluralRules: {}
|
2710
2710
|
}), {
|
2711
|
-
getNumberFormat:
|
2711
|
+
getNumberFormat: ne(function() {
|
2712
2712
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
2713
2713
|
r[n] = arguments[n];
|
2714
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
2714
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, oe([void 0], r, !1)))();
|
2715
2715
|
}, {
|
2716
|
-
cache:
|
2717
|
-
strategy:
|
2716
|
+
cache: wt(e.number),
|
2717
|
+
strategy: ae.variadic
|
2718
2718
|
}),
|
2719
|
-
getDateTimeFormat:
|
2719
|
+
getDateTimeFormat: ne(function() {
|
2720
2720
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
2721
2721
|
r[n] = arguments[n];
|
2722
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
2722
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, oe([void 0], r, !1)))();
|
2723
2723
|
}, {
|
2724
|
-
cache:
|
2725
|
-
strategy:
|
2724
|
+
cache: wt(e.dateTime),
|
2725
|
+
strategy: ae.variadic
|
2726
2726
|
}),
|
2727
|
-
getPluralRules:
|
2727
|
+
getPluralRules: ne(function() {
|
2728
2728
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
2729
2729
|
r[n] = arguments[n];
|
2730
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
2730
|
+
return new ((t = Intl.PluralRules).bind.apply(t, oe([void 0], r, !1)))();
|
2731
2731
|
}, {
|
2732
|
-
cache:
|
2733
|
-
strategy:
|
2732
|
+
cache: wt(e.pluralRules),
|
2733
|
+
strategy: ae.variadic
|
2734
2734
|
})
|
2735
2735
|
};
|
2736
2736
|
}
|
@@ -2751,7 +2751,7 @@ var bn = function() {
|
|
2751
2751
|
}, []);
|
2752
2752
|
return u.length <= 1 ? u[0] || "" : u;
|
2753
2753
|
}, this.formatToParts = function(i) {
|
2754
|
-
return
|
2754
|
+
return rt(o.ast, o.locales, o.formatters, o.formats, i, void 0, o.message);
|
2755
2755
|
}, this.resolvedOptions = function() {
|
2756
2756
|
var i;
|
2757
2757
|
return {
|
@@ -2847,7 +2847,7 @@ var bn = function() {
|
|
2847
2847
|
e.FORMAT_ERROR = "FORMAT_ERROR", e.UNSUPPORTED_FORMATTER = "UNSUPPORTED_FORMATTER", e.INVALID_CONFIG = "INVALID_CONFIG", e.MISSING_DATA = "MISSING_DATA", e.MISSING_TRANSLATION = "MISSING_TRANSLATION";
|
2848
2848
|
})(Z || (Z = {}));
|
2849
2849
|
var q = function(e) {
|
2850
|
-
|
2850
|
+
te(t, e);
|
2851
2851
|
function t(r, n, a) {
|
2852
2852
|
var o = this, i = a ? a instanceof Error ? a : new Error(String(a)) : void 0;
|
2853
2853
|
return o = e.call(this, "[@formatjs/intl Error ".concat(r, "] ").concat(n, `
|
@@ -2857,33 +2857,33 @@ var q = function(e) {
|
|
2857
2857
|
}
|
2858
2858
|
return t;
|
2859
2859
|
}(Error), yo = function(e) {
|
2860
|
-
|
2860
|
+
te(t, e);
|
2861
2861
|
function t(r, n) {
|
2862
2862
|
return e.call(this, Z.UNSUPPORTED_FORMATTER, r, n) || this;
|
2863
2863
|
}
|
2864
2864
|
return t;
|
2865
2865
|
}(q), bo = function(e) {
|
2866
|
-
|
2866
|
+
te(t, e);
|
2867
2867
|
function t(r, n) {
|
2868
2868
|
return e.call(this, Z.INVALID_CONFIG, r, n) || this;
|
2869
2869
|
}
|
2870
2870
|
return t;
|
2871
2871
|
}(q), Pr = function(e) {
|
2872
|
-
|
2872
|
+
te(t, e);
|
2873
2873
|
function t(r, n) {
|
2874
2874
|
return e.call(this, Z.MISSING_DATA, r, n) || this;
|
2875
2875
|
}
|
2876
2876
|
return t;
|
2877
2877
|
}(q), Wt = function(e) {
|
2878
|
-
|
2878
|
+
te(t, e);
|
2879
2879
|
function t(r, n, a) {
|
2880
2880
|
return e.call(this, Z.FORMAT_ERROR, "".concat(r, `
|
2881
2881
|
Locale: `).concat(n, `
|
2882
2882
|
`), a) || this;
|
2883
2883
|
}
|
2884
2884
|
return t;
|
2885
|
-
}(q),
|
2886
|
-
|
2885
|
+
}(q), xt = function(e) {
|
2886
|
+
te(t, e);
|
2887
2887
|
function t(r, n, a, o) {
|
2888
2888
|
var i = e.call(this, "".concat(r, `
|
2889
2889
|
MessageID: `).concat(a == null ? void 0 : a.id, `
|
@@ -2894,7 +2894,7 @@ Description: `).concat(a == null ? void 0 : a.description, `
|
|
2894
2894
|
}
|
2895
2895
|
return t;
|
2896
2896
|
}(Wt), Eo = function(e) {
|
2897
|
-
|
2897
|
+
te(t, e);
|
2898
2898
|
function t(r, n) {
|
2899
2899
|
var a = e.call(this, Z.MISSING_TRANSLATION, 'Missing message: "'.concat(r.id, '" for locale "').concat(n, '", using ').concat(r.defaultMessage ? "default message (".concat(typeof r.defaultMessage == "string" ? r.defaultMessage : r.defaultMessage.map(function(o) {
|
2900
2900
|
var i;
|
@@ -2950,32 +2950,32 @@ function Te(e) {
|
|
2950
2950
|
}
|
2951
2951
|
function To(e) {
|
2952
2952
|
e === void 0 && (e = wn());
|
2953
|
-
var t = Intl.RelativeTimeFormat, r = Intl.ListFormat, n = Intl.DisplayNames, a =
|
2953
|
+
var t = Intl.RelativeTimeFormat, r = Intl.ListFormat, n = Intl.DisplayNames, a = ne(function() {
|
2954
2954
|
for (var l, u = [], f = 0; f < arguments.length; f++)
|
2955
2955
|
u[f] = arguments[f];
|
2956
|
-
return new ((l = Intl.DateTimeFormat).bind.apply(l,
|
2956
|
+
return new ((l = Intl.DateTimeFormat).bind.apply(l, oe([void 0], u, !1)))();
|
2957
2957
|
}, {
|
2958
2958
|
cache: Te(e.dateTime),
|
2959
|
-
strategy:
|
2960
|
-
}), o =
|
2959
|
+
strategy: ae.variadic
|
2960
|
+
}), o = ne(function() {
|
2961
2961
|
for (var l, u = [], f = 0; f < arguments.length; f++)
|
2962
2962
|
u[f] = arguments[f];
|
2963
|
-
return new ((l = Intl.NumberFormat).bind.apply(l,
|
2963
|
+
return new ((l = Intl.NumberFormat).bind.apply(l, oe([void 0], u, !1)))();
|
2964
2964
|
}, {
|
2965
2965
|
cache: Te(e.number),
|
2966
|
-
strategy:
|
2967
|
-
}), i =
|
2966
|
+
strategy: ae.variadic
|
2967
|
+
}), i = ne(function() {
|
2968
2968
|
for (var l, u = [], f = 0; f < arguments.length; f++)
|
2969
2969
|
u[f] = arguments[f];
|
2970
|
-
return new ((l = Intl.PluralRules).bind.apply(l,
|
2970
|
+
return new ((l = Intl.PluralRules).bind.apply(l, oe([void 0], u, !1)))();
|
2971
2971
|
}, {
|
2972
2972
|
cache: Te(e.pluralRules),
|
2973
|
-
strategy:
|
2973
|
+
strategy: ae.variadic
|
2974
2974
|
});
|
2975
2975
|
return {
|
2976
2976
|
getDateTimeFormat: a,
|
2977
2977
|
getNumberFormat: o,
|
2978
|
-
getMessageFormat:
|
2978
|
+
getMessageFormat: ne(function(l, u, f, c) {
|
2979
2979
|
return new bn(l, u, f, T({ formatters: {
|
2980
2980
|
getNumberFormat: o,
|
2981
2981
|
getDateTimeFormat: a,
|
@@ -2983,32 +2983,32 @@ function To(e) {
|
|
2983
2983
|
} }, c || {}));
|
2984
2984
|
}, {
|
2985
2985
|
cache: Te(e.message),
|
2986
|
-
strategy:
|
2986
|
+
strategy: ae.variadic
|
2987
2987
|
}),
|
2988
|
-
getRelativeTimeFormat:
|
2988
|
+
getRelativeTimeFormat: ne(function() {
|
2989
2989
|
for (var l = [], u = 0; u < arguments.length; u++)
|
2990
2990
|
l[u] = arguments[u];
|
2991
|
-
return new (t.bind.apply(t,
|
2991
|
+
return new (t.bind.apply(t, oe([void 0], l, !1)))();
|
2992
2992
|
}, {
|
2993
2993
|
cache: Te(e.relativeTime),
|
2994
|
-
strategy:
|
2994
|
+
strategy: ae.variadic
|
2995
2995
|
}),
|
2996
2996
|
getPluralRules: i,
|
2997
|
-
getListFormat:
|
2997
|
+
getListFormat: ne(function() {
|
2998
2998
|
for (var l = [], u = 0; u < arguments.length; u++)
|
2999
2999
|
l[u] = arguments[u];
|
3000
|
-
return new (r.bind.apply(r,
|
3000
|
+
return new (r.bind.apply(r, oe([void 0], l, !1)))();
|
3001
3001
|
}, {
|
3002
3002
|
cache: Te(e.list),
|
3003
|
-
strategy:
|
3003
|
+
strategy: ae.variadic
|
3004
3004
|
}),
|
3005
|
-
getDisplayNames:
|
3005
|
+
getDisplayNames: ne(function() {
|
3006
3006
|
for (var l = [], u = 0; u < arguments.length; u++)
|
3007
3007
|
l[u] = arguments[u];
|
3008
|
-
return new (n.bind.apply(n,
|
3008
|
+
return new (n.bind.apply(n, oe([void 0], l, !1)))();
|
3009
3009
|
}, {
|
3010
3010
|
cache: Te(e.displayNames),
|
3011
|
-
strategy:
|
3011
|
+
strategy: ae.variadic
|
3012
3012
|
})
|
3013
3013
|
};
|
3014
3014
|
}
|
@@ -3036,41 +3036,41 @@ function Or(e, t) {
|
|
3036
3036
|
return T(T(T({}, r), e), { date: Nr(tt(r.date, t), tt(e.date || {}, t)), time: Nr(tt(r.time, t), tt(e.time || {}, t)) });
|
3037
3037
|
}
|
3038
3038
|
var Lt = function(e, t, r, n, a) {
|
3039
|
-
var o = e.locale, i = e.formats, l = e.messages, u = e.defaultLocale, f = e.defaultFormats, c = e.fallbackOnEmptyString, h = e.onError,
|
3039
|
+
var o = e.locale, i = e.formats, l = e.messages, u = e.defaultLocale, f = e.defaultFormats, c = e.fallbackOnEmptyString, h = e.onError, m = e.timeZone, b = e.defaultRichTextElements;
|
3040
3040
|
r === void 0 && (r = { id: "" });
|
3041
|
-
var M = r.id,
|
3041
|
+
var M = r.id, R = r.defaultMessage;
|
3042
3042
|
en(!!M, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
|
3043
|
-
var
|
3044
|
-
if (Array.isArray(x) && x.length === 1 && x[0].type ===
|
3043
|
+
var I = String(M), x = l && Object.prototype.hasOwnProperty.call(l, I) && l[I];
|
3044
|
+
if (Array.isArray(x) && x.length === 1 && x[0].type === G.literal)
|
3045
3045
|
return x[0].value;
|
3046
3046
|
if (!n && x && typeof x == "string" && !b)
|
3047
3047
|
return x.replace(/'\{(.*?)\}'/gi, "{$1}");
|
3048
|
-
if (n = T(T({}, b), n || {}), i = Or(i,
|
3048
|
+
if (n = T(T({}, b), n || {}), i = Or(i, m), f = Or(f, m), !x) {
|
3049
3049
|
if (c === !1 && x === "")
|
3050
3050
|
return x;
|
3051
|
-
if ((!
|
3051
|
+
if ((!R || o && o.toLowerCase() !== u.toLowerCase()) && h(new Eo(r, o)), R)
|
3052
3052
|
try {
|
3053
|
-
var p = t.getMessageFormat(
|
3053
|
+
var p = t.getMessageFormat(R, u, f, a);
|
3054
3054
|
return p.format(n);
|
3055
|
-
} catch (
|
3056
|
-
return h(new
|
3055
|
+
} catch (g) {
|
3056
|
+
return h(new xt('Error formatting default message for: "'.concat(I, '", rendering default message verbatim'), o, r, g)), typeof R == "string" ? R : I;
|
3057
3057
|
}
|
3058
|
-
return
|
3058
|
+
return I;
|
3059
3059
|
}
|
3060
3060
|
try {
|
3061
3061
|
var p = t.getMessageFormat(x, o, i, T({ formatters: t }, a || {}));
|
3062
3062
|
return p.format(n);
|
3063
|
-
} catch (
|
3064
|
-
h(new
|
3063
|
+
} catch (g) {
|
3064
|
+
h(new xt('Error formatting message: "'.concat(I, '", using ').concat(R ? "default message" : "id", " as fallback."), o, r, g));
|
3065
3065
|
}
|
3066
|
-
if (
|
3066
|
+
if (R)
|
3067
3067
|
try {
|
3068
|
-
var p = t.getMessageFormat(
|
3068
|
+
var p = t.getMessageFormat(R, u, f, a);
|
3069
3069
|
return p.format(n);
|
3070
|
-
} catch (
|
3071
|
-
h(new
|
3070
|
+
} catch (g) {
|
3071
|
+
h(new xt('Error formatting the default message for: "'.concat(I, '", rendering message verbatim'), o, r, g));
|
3072
3072
|
}
|
3073
|
-
return typeof x == "string" ? x : typeof
|
3073
|
+
return typeof x == "string" ? x : typeof R == "string" ? R : I;
|
3074
3074
|
}, xn = [
|
3075
3075
|
"formatMatcher",
|
3076
3076
|
"timeZone",
|
@@ -3091,7 +3091,7 @@ var Lt = function(e, t, r, n, a) {
|
|
3091
3091
|
"numberingSystem",
|
3092
3092
|
"fractionalSecondDigits"
|
3093
3093
|
];
|
3094
|
-
function
|
3094
|
+
function ut(e, t, r, n) {
|
3095
3095
|
var a = e.locale, o = e.formats, i = e.onError, l = e.timeZone;
|
3096
3096
|
n === void 0 && (n = {});
|
3097
3097
|
var u = n.format, f = T(T({}, l && { timeZone: l }), u && qt(o, t, u, i)), c = Se(n, xn, f);
|
@@ -3102,7 +3102,7 @@ function So(e, t) {
|
|
3102
3102
|
r[n - 2] = arguments[n];
|
3103
3103
|
var a = r[0], o = r[1], i = o === void 0 ? {} : o, l = typeof a == "string" ? new Date(a || 0) : a;
|
3104
3104
|
try {
|
3105
|
-
return
|
3105
|
+
return ut(e, "date", t, i).format(l);
|
3106
3106
|
} catch (u) {
|
3107
3107
|
e.onError(new q(Z.FORMAT_ERROR, "Error formatting date.", u));
|
3108
3108
|
}
|
@@ -3113,7 +3113,7 @@ function Ro(e, t) {
|
|
3113
3113
|
r[n - 2] = arguments[n];
|
3114
3114
|
var a = r[0], o = r[1], i = o === void 0 ? {} : o, l = typeof a == "string" ? new Date(a || 0) : a;
|
3115
3115
|
try {
|
3116
|
-
return
|
3116
|
+
return ut(e, "time", t, i).format(l);
|
3117
3117
|
} catch (u) {
|
3118
3118
|
e.onError(new q(Z.FORMAT_ERROR, "Error formatting time.", u));
|
3119
3119
|
}
|
@@ -3125,8 +3125,8 @@ function Io(e, t) {
|
|
3125
3125
|
var a = r[0], o = r[1], i = r[2], l = i === void 0 ? {} : i, u = e.timeZone, f = e.locale, c = e.onError, h = Se(l, xn, u ? { timeZone: u } : {});
|
3126
3126
|
try {
|
3127
3127
|
return t(f, h).formatRange(a, o);
|
3128
|
-
} catch (
|
3129
|
-
c(new q(Z.FORMAT_ERROR, "Error formatting date time range.",
|
3128
|
+
} catch (m) {
|
3129
|
+
c(new q(Z.FORMAT_ERROR, "Error formatting date time range.", m));
|
3130
3130
|
}
|
3131
3131
|
return String(a);
|
3132
3132
|
}
|
@@ -3135,7 +3135,7 @@ function Mo(e, t) {
|
|
3135
3135
|
r[n - 2] = arguments[n];
|
3136
3136
|
var a = r[0], o = r[1], i = o === void 0 ? {} : o, l = typeof a == "string" ? new Date(a || 0) : a;
|
3137
3137
|
try {
|
3138
|
-
return
|
3138
|
+
return ut(e, "date", t, i).formatToParts(l);
|
3139
3139
|
} catch (u) {
|
3140
3140
|
e.onError(new q(Z.FORMAT_ERROR, "Error formatting date.", u));
|
3141
3141
|
}
|
@@ -3146,7 +3146,7 @@ function Po(e, t) {
|
|
3146
3146
|
r[n - 2] = arguments[n];
|
3147
3147
|
var a = r[0], o = r[1], i = o === void 0 ? {} : o, l = typeof a == "string" ? new Date(a || 0) : a;
|
3148
3148
|
try {
|
3149
|
-
return
|
3149
|
+
return ut(e, "time", t, i).formatToParts(l);
|
3150
3150
|
} catch (u) {
|
3151
3151
|
e.onError(new q(Z.FORMAT_ERROR, "Error formatting time.", u));
|
3152
3152
|
}
|
@@ -3195,8 +3195,8 @@ Try polyfilling it using "@formatjs/intl-listformat"
|
|
3195
3195
|
try {
|
3196
3196
|
var u = {}, f = r.map(function(c, h) {
|
3197
3197
|
if (typeof c == "object") {
|
3198
|
-
var
|
3199
|
-
return u[
|
3198
|
+
var m = Co(h);
|
3199
|
+
return u[m] = c, m;
|
3200
3200
|
}
|
3201
3201
|
return String(c);
|
3202
3202
|
});
|
@@ -3287,18 +3287,18 @@ function zo(e, t, r, n) {
|
|
3287
3287
|
}
|
3288
3288
|
return [];
|
3289
3289
|
}
|
3290
|
-
function
|
3290
|
+
function Go(e) {
|
3291
3291
|
var t = e ? e[Object.keys(e)[0]] : void 0;
|
3292
3292
|
return typeof t == "string";
|
3293
3293
|
}
|
3294
|
-
function
|
3295
|
-
e.onWarn && e.defaultRichTextElements &&
|
3294
|
+
function jo(e) {
|
3295
|
+
e.onWarn && e.defaultRichTextElements && Go(e.messages || {}) && e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
3296
3296
|
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
3297
3297
|
For more details see https://formatjs.io/docs/getting-started/message-distribution`);
|
3298
3298
|
}
|
3299
3299
|
function Xo(e, t) {
|
3300
3300
|
var r = To(t), n = T(T({}, En), e), a = n.locale, o = n.defaultLocale, i = n.onError;
|
3301
|
-
return a ? !Intl.NumberFormat.supportedLocalesOf(a).length && i ? i(new Pr('Missing locale data for locale: "'.concat(a, '" in Intl.NumberFormat. Using default locale: "').concat(o, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(a).length && i && i(new Pr('Missing locale data for locale: "'.concat(a, '" in Intl.DateTimeFormat. Using default locale: "').concat(o, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : (i && i(new bo('"locale" was not configured, using "'.concat(o, '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))), n.locale = n.defaultLocale || "en"),
|
3301
|
+
return a ? !Intl.NumberFormat.supportedLocalesOf(a).length && i ? i(new Pr('Missing locale data for locale: "'.concat(a, '" in Intl.NumberFormat. Using default locale: "').concat(o, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(a).length && i && i(new Pr('Missing locale data for locale: "'.concat(a, '" in Intl.DateTimeFormat. Using default locale: "').concat(o, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : (i && i(new bo('"locale" was not configured, using "'.concat(o, '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))), n.locale = n.defaultLocale || "en"), jo(n), T(T({}, n), {
|
3302
3302
|
formatters: r,
|
3303
3303
|
formatNumber: Uo.bind(null, n, r.getNumberFormat),
|
3304
3304
|
formatNumberToParts: zo.bind(null, n, r.getNumberFormat),
|
@@ -3342,7 +3342,7 @@ function Zo(e, t) {
|
|
3342
3342
|
}
|
3343
3343
|
return !0;
|
3344
3344
|
}
|
3345
|
-
var
|
3345
|
+
var ct = { exports: {} }, Ge = {};
|
3346
3346
|
/**
|
3347
3347
|
* @license React
|
3348
3348
|
* react-jsx-runtime.production.min.js
|
@@ -3355,22 +3355,22 @@ var ht = { exports: {} }, je = {};
|
|
3355
3355
|
var Cr;
|
3356
3356
|
function Jo() {
|
3357
3357
|
if (Cr)
|
3358
|
-
return
|
3358
|
+
return Ge;
|
3359
3359
|
Cr = 1;
|
3360
3360
|
var e = ce, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
3361
3361
|
function i(l, u, f) {
|
3362
|
-
var c, h = {},
|
3363
|
-
f !== void 0 && (
|
3362
|
+
var c, h = {}, m = null, b = null;
|
3363
|
+
f !== void 0 && (m = "" + f), u.key !== void 0 && (m = "" + u.key), u.ref !== void 0 && (b = u.ref);
|
3364
3364
|
for (c in u)
|
3365
3365
|
n.call(u, c) && !o.hasOwnProperty(c) && (h[c] = u[c]);
|
3366
3366
|
if (l && l.defaultProps)
|
3367
3367
|
for (c in u = l.defaultProps, u)
|
3368
3368
|
h[c] === void 0 && (h[c] = u[c]);
|
3369
|
-
return { $$typeof: t, type: l, key:
|
3369
|
+
return { $$typeof: t, type: l, key: m, ref: b, props: h, _owner: a.current };
|
3370
3370
|
}
|
3371
|
-
return
|
3371
|
+
return Ge.Fragment = r, Ge.jsx = i, Ge.jsxs = i, Ge;
|
3372
3372
|
}
|
3373
|
-
var
|
3373
|
+
var je = {};
|
3374
3374
|
/**
|
3375
3375
|
* @license React
|
3376
3376
|
* react-jsx-runtime.development.js
|
@@ -3383,41 +3383,41 @@ var Ge = {};
|
|
3383
3383
|
var Dr;
|
3384
3384
|
function Yo() {
|
3385
3385
|
return Dr || (Dr = 1, process.env.NODE_ENV !== "production" && function() {
|
3386
|
-
var e = ce, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"),
|
3387
|
-
function
|
3386
|
+
var e = ce, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), M = Symbol.iterator, R = "@@iterator";
|
3387
|
+
function I(s) {
|
3388
3388
|
if (s === null || typeof s != "object")
|
3389
3389
|
return null;
|
3390
|
-
var
|
3391
|
-
return typeof
|
3390
|
+
var v = M && s[M] || s[R];
|
3391
|
+
return typeof v == "function" ? v : null;
|
3392
3392
|
}
|
3393
3393
|
var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
3394
3394
|
function p(s) {
|
3395
3395
|
{
|
3396
|
-
for (var
|
3397
|
-
E[
|
3398
|
-
|
3396
|
+
for (var v = arguments.length, E = new Array(v > 1 ? v - 1 : 0), P = 1; P < v; P++)
|
3397
|
+
E[P - 1] = arguments[P];
|
3398
|
+
g("error", s, E);
|
3399
3399
|
}
|
3400
3400
|
}
|
3401
|
-
function
|
3401
|
+
function g(s, v, E) {
|
3402
3402
|
{
|
3403
|
-
var
|
3404
|
-
H !== "" && (
|
3403
|
+
var P = x.ReactDebugCurrentFrame, H = P.getStackAddendum();
|
3404
|
+
H !== "" && (v += "%s", E = E.concat([H]));
|
3405
3405
|
var U = E.map(function(C) {
|
3406
3406
|
return String(C);
|
3407
3407
|
});
|
3408
|
-
U.unshift("Warning: " +
|
3408
|
+
U.unshift("Warning: " + v), Function.prototype.apply.call(console[s], console, U);
|
3409
3409
|
}
|
3410
3410
|
}
|
3411
|
-
var
|
3411
|
+
var N = !1, y = !1, z = !1, B = !1, ge = !1, Ie;
|
3412
3412
|
Ie = Symbol.for("react.module.reference");
|
3413
3413
|
function Fe(s) {
|
3414
|
-
return !!(typeof s == "string" || typeof s == "function" || s === n || s === o || ge || s === a || s === f || s === c || B || s === b ||
|
3414
|
+
return !!(typeof s == "string" || typeof s == "function" || s === n || s === o || ge || s === a || s === f || s === c || B || s === b || N || y || z || typeof s == "object" && s !== null && (s.$$typeof === m || s.$$typeof === h || s.$$typeof === i || s.$$typeof === l || s.$$typeof === u || s.$$typeof === Ie || s.getModuleId !== void 0));
|
3415
3415
|
}
|
3416
|
-
function fe(s,
|
3417
|
-
var
|
3418
|
-
if (
|
3419
|
-
return
|
3420
|
-
var H =
|
3416
|
+
function fe(s, v, E) {
|
3417
|
+
var P = s.displayName;
|
3418
|
+
if (P)
|
3419
|
+
return P;
|
3420
|
+
var H = v.displayName || v.name || "";
|
3421
3421
|
return H !== "" ? E + "(" + H + ")" : E;
|
3422
3422
|
}
|
3423
3423
|
function ye(s) {
|
@@ -3447,17 +3447,17 @@ function Yo() {
|
|
3447
3447
|
if (typeof s == "object")
|
3448
3448
|
switch (s.$$typeof) {
|
3449
3449
|
case l:
|
3450
|
-
var
|
3451
|
-
return ye(
|
3450
|
+
var v = s;
|
3451
|
+
return ye(v) + ".Consumer";
|
3452
3452
|
case i:
|
3453
3453
|
var E = s;
|
3454
3454
|
return ye(E._context) + ".Provider";
|
3455
3455
|
case u:
|
3456
3456
|
return fe(s, s.render, "ForwardRef");
|
3457
3457
|
case h:
|
3458
|
-
var
|
3459
|
-
return
|
3460
|
-
case
|
3458
|
+
var P = s.displayName || null;
|
3459
|
+
return P !== null ? P : Q(s.type) || "Memo";
|
3460
|
+
case m: {
|
3461
3461
|
var H = s, U = H._payload, C = H._init;
|
3462
3462
|
try {
|
3463
3463
|
return Q(C(U));
|
@@ -3468,7 +3468,7 @@ function Yo() {
|
|
3468
3468
|
}
|
3469
3469
|
return null;
|
3470
3470
|
}
|
3471
|
-
var
|
3471
|
+
var re = Object.assign, V = 0, se, Me, he, Pe, be, Ne, Oe;
|
3472
3472
|
function Ae() {
|
3473
3473
|
}
|
3474
3474
|
Ae.__reactDisabledLog = !0;
|
@@ -3504,25 +3504,25 @@ function Yo() {
|
|
3504
3504
|
writable: !0
|
3505
3505
|
};
|
3506
3506
|
Object.defineProperties(console, {
|
3507
|
-
log:
|
3507
|
+
log: re({}, s, {
|
3508
3508
|
value: se
|
3509
3509
|
}),
|
3510
|
-
info:
|
3510
|
+
info: re({}, s, {
|
3511
3511
|
value: Me
|
3512
3512
|
}),
|
3513
|
-
warn:
|
3513
|
+
warn: re({}, s, {
|
3514
3514
|
value: he
|
3515
3515
|
}),
|
3516
|
-
error:
|
3516
|
+
error: re({}, s, {
|
3517
3517
|
value: Pe
|
3518
3518
|
}),
|
3519
|
-
group:
|
3519
|
+
group: re({}, s, {
|
3520
3520
|
value: be
|
3521
3521
|
}),
|
3522
|
-
groupCollapsed:
|
3522
|
+
groupCollapsed: re({}, s, {
|
3523
3523
|
value: Ne
|
3524
3524
|
}),
|
3525
|
-
groupEnd:
|
3525
|
+
groupEnd: re({}, s, {
|
3526
3526
|
value: Oe
|
3527
3527
|
})
|
3528
3528
|
});
|
@@ -3531,14 +3531,14 @@ function Yo() {
|
|
3531
3531
|
}
|
3532
3532
|
}
|
3533
3533
|
var Ee = x.ReactCurrentDispatcher, L;
|
3534
|
-
function J(s,
|
3534
|
+
function J(s, v, E) {
|
3535
3535
|
{
|
3536
3536
|
if (L === void 0)
|
3537
3537
|
try {
|
3538
3538
|
throw Error();
|
3539
3539
|
} catch (H) {
|
3540
|
-
var
|
3541
|
-
L =
|
3540
|
+
var P = H.stack.trim().match(/\n( *(at )?)/);
|
3541
|
+
L = P && P[1] || "";
|
3542
3542
|
}
|
3543
3543
|
return `
|
3544
3544
|
` + L + s;
|
@@ -3546,10 +3546,10 @@ function Yo() {
|
|
3546
3546
|
}
|
3547
3547
|
var we = !1, de;
|
3548
3548
|
{
|
3549
|
-
var
|
3550
|
-
de = new
|
3549
|
+
var mt = typeof WeakMap == "function" ? WeakMap : Map;
|
3550
|
+
de = new mt();
|
3551
3551
|
}
|
3552
|
-
function
|
3552
|
+
function S(s, v) {
|
3553
3553
|
if (!s || we)
|
3554
3554
|
return "";
|
3555
3555
|
{
|
@@ -3557,14 +3557,14 @@ function Yo() {
|
|
3557
3557
|
if (E !== void 0)
|
3558
3558
|
return E;
|
3559
3559
|
}
|
3560
|
-
var
|
3560
|
+
var P;
|
3561
3561
|
we = !0;
|
3562
3562
|
var H = Error.prepareStackTrace;
|
3563
3563
|
Error.prepareStackTrace = void 0;
|
3564
3564
|
var U;
|
3565
3565
|
U = Ee.current, Ee.current = null, Be();
|
3566
3566
|
try {
|
3567
|
-
if (
|
3567
|
+
if (v) {
|
3568
3568
|
var C = function() {
|
3569
3569
|
throw Error();
|
3570
3570
|
};
|
@@ -3576,14 +3576,14 @@ function Yo() {
|
|
3576
3576
|
try {
|
3577
3577
|
Reflect.construct(C, []);
|
3578
3578
|
} catch (le) {
|
3579
|
-
|
3579
|
+
P = le;
|
3580
3580
|
}
|
3581
3581
|
Reflect.construct(s, [], C);
|
3582
3582
|
} else {
|
3583
3583
|
try {
|
3584
3584
|
C.call();
|
3585
3585
|
} catch (le) {
|
3586
|
-
|
3586
|
+
P = le;
|
3587
3587
|
}
|
3588
3588
|
s.call(C.prototype);
|
3589
3589
|
}
|
@@ -3591,26 +3591,26 @@ function Yo() {
|
|
3591
3591
|
try {
|
3592
3592
|
throw Error();
|
3593
3593
|
} catch (le) {
|
3594
|
-
|
3594
|
+
P = le;
|
3595
3595
|
}
|
3596
3596
|
s();
|
3597
3597
|
}
|
3598
3598
|
} catch (le) {
|
3599
|
-
if (le &&
|
3599
|
+
if (le && P && typeof le.stack == "string") {
|
3600
3600
|
for (var O = le.stack.split(`
|
3601
|
-
`), Y =
|
3602
|
-
`),
|
3601
|
+
`), Y = P.stack.split(`
|
3602
|
+
`), j = O.length - 1, X = Y.length - 1; j >= 1 && X >= 0 && O[j] !== Y[X]; )
|
3603
3603
|
X--;
|
3604
|
-
for (;
|
3605
|
-
if (O[
|
3606
|
-
if (
|
3604
|
+
for (; j >= 1 && X >= 0; j--, X--)
|
3605
|
+
if (O[j] !== Y[X]) {
|
3606
|
+
if (j !== 1 || X !== 1)
|
3607
3607
|
do
|
3608
|
-
if (
|
3608
|
+
if (j--, X--, X < 0 || O[j] !== Y[X]) {
|
3609
3609
|
var $ = `
|
3610
|
-
` + O[
|
3610
|
+
` + O[j].replace(" at new ", " at ");
|
3611
3611
|
return s.displayName && $.includes("<anonymous>") && ($ = $.replace("<anonymous>", s.displayName)), typeof s == "function" && de.set(s, $), $;
|
3612
3612
|
}
|
3613
|
-
while (
|
3613
|
+
while (j >= 1 && X >= 0);
|
3614
3614
|
break;
|
3615
3615
|
}
|
3616
3616
|
}
|
@@ -3620,18 +3620,18 @@ function Yo() {
|
|
3620
3620
|
var He = s ? s.displayName || s.name : "", gr = He ? J(He) : "";
|
3621
3621
|
return typeof s == "function" && de.set(s, gr), gr;
|
3622
3622
|
}
|
3623
|
-
function Ue(s,
|
3624
|
-
return
|
3623
|
+
function Ue(s, v, E) {
|
3624
|
+
return S(s, !1);
|
3625
3625
|
}
|
3626
3626
|
function Ce(s) {
|
3627
|
-
var
|
3628
|
-
return !!(
|
3627
|
+
var v = s.prototype;
|
3628
|
+
return !!(v && v.isReactComponent);
|
3629
3629
|
}
|
3630
|
-
function xe(s,
|
3630
|
+
function xe(s, v, E) {
|
3631
3631
|
if (s == null)
|
3632
3632
|
return "";
|
3633
3633
|
if (typeof s == "function")
|
3634
|
-
return
|
3634
|
+
return S(s, Ce(s));
|
3635
3635
|
if (typeof s == "string")
|
3636
3636
|
return J(s);
|
3637
3637
|
switch (s) {
|
@@ -3645,11 +3645,11 @@ function Yo() {
|
|
3645
3645
|
case u:
|
3646
3646
|
return Ue(s.render);
|
3647
3647
|
case h:
|
3648
|
-
return xe(s.type,
|
3649
|
-
case
|
3650
|
-
var
|
3648
|
+
return xe(s.type, v, E);
|
3649
|
+
case m: {
|
3650
|
+
var P = s, H = P._payload, U = P._init;
|
3651
3651
|
try {
|
3652
|
-
return xe(U(H),
|
3652
|
+
return xe(U(H), v, E);
|
3653
3653
|
} catch {
|
3654
3654
|
}
|
3655
3655
|
}
|
@@ -3659,12 +3659,12 @@ function Yo() {
|
|
3659
3659
|
var Ke = Object.prototype.hasOwnProperty, or = {}, ir = x.ReactDebugCurrentFrame;
|
3660
3660
|
function $e(s) {
|
3661
3661
|
if (s) {
|
3662
|
-
var
|
3662
|
+
var v = s._owner, E = xe(s.type, s._source, v ? v.type : null);
|
3663
3663
|
ir.setExtraStackFrame(E);
|
3664
3664
|
} else
|
3665
3665
|
ir.setExtraStackFrame(null);
|
3666
3666
|
}
|
3667
|
-
function ra(s,
|
3667
|
+
function ra(s, v, E, P, H) {
|
3668
3668
|
{
|
3669
3669
|
var U = Function.call.bind(Ke);
|
3670
3670
|
for (var C in s)
|
@@ -3672,24 +3672,24 @@ function Yo() {
|
|
3672
3672
|
var O = void 0;
|
3673
3673
|
try {
|
3674
3674
|
if (typeof s[C] != "function") {
|
3675
|
-
var Y = Error((
|
3675
|
+
var Y = Error((P || "React class") + ": " + E + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
3676
3676
|
throw Y.name = "Invariant Violation", Y;
|
3677
3677
|
}
|
3678
|
-
O = s[C](
|
3679
|
-
} catch (
|
3680
|
-
O =
|
3678
|
+
O = s[C](v, C, P, E, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
3679
|
+
} catch (j) {
|
3680
|
+
O = j;
|
3681
3681
|
}
|
3682
|
-
O && !(O instanceof Error) && ($e(H), p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",
|
3682
|
+
O && !(O instanceof Error) && ($e(H), p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", P || "React class", E, C, typeof O), $e(null)), O instanceof Error && !(O.message in or) && (or[O.message] = !0, $e(H), p("Failed %s type: %s", E, O.message), $e(null));
|
3683
3683
|
}
|
3684
3684
|
}
|
3685
3685
|
}
|
3686
3686
|
var na = Array.isArray;
|
3687
|
-
function
|
3687
|
+
function pt(s) {
|
3688
3688
|
return na(s);
|
3689
3689
|
}
|
3690
3690
|
function aa(s) {
|
3691
3691
|
{
|
3692
|
-
var
|
3692
|
+
var v = typeof Symbol == "function" && Symbol.toStringTag, E = v && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
3693
3693
|
return E;
|
3694
3694
|
}
|
3695
3695
|
}
|
@@ -3712,34 +3712,34 @@ function Yo() {
|
|
3712
3712
|
ref: !0,
|
3713
3713
|
__self: !0,
|
3714
3714
|
__source: !0
|
3715
|
-
}, ur, cr,
|
3716
|
-
|
3715
|
+
}, ur, cr, vt;
|
3716
|
+
vt = {};
|
3717
3717
|
function sa(s) {
|
3718
3718
|
if (Ke.call(s, "ref")) {
|
3719
|
-
var
|
3720
|
-
if (
|
3719
|
+
var v = Object.getOwnPropertyDescriptor(s, "ref").get;
|
3720
|
+
if (v && v.isReactWarning)
|
3721
3721
|
return !1;
|
3722
3722
|
}
|
3723
3723
|
return s.ref !== void 0;
|
3724
3724
|
}
|
3725
3725
|
function la(s) {
|
3726
3726
|
if (Ke.call(s, "key")) {
|
3727
|
-
var
|
3728
|
-
if (
|
3727
|
+
var v = Object.getOwnPropertyDescriptor(s, "key").get;
|
3728
|
+
if (v && v.isReactWarning)
|
3729
3729
|
return !1;
|
3730
3730
|
}
|
3731
3731
|
return s.key !== void 0;
|
3732
3732
|
}
|
3733
|
-
function ua(s,
|
3734
|
-
if (typeof s.ref == "string" && ze.current &&
|
3733
|
+
function ua(s, v) {
|
3734
|
+
if (typeof s.ref == "string" && ze.current && v && ze.current.stateNode !== v) {
|
3735
3735
|
var E = Q(ze.current.type);
|
3736
|
-
|
3736
|
+
vt[E] || (p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Q(ze.current.type), s.ref), vt[E] = !0);
|
3737
3737
|
}
|
3738
3738
|
}
|
3739
|
-
function ca(s,
|
3739
|
+
function ca(s, v) {
|
3740
3740
|
{
|
3741
3741
|
var E = function() {
|
3742
|
-
ur || (ur = !0, p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
3742
|
+
ur || (ur = !0, p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
|
3743
3743
|
};
|
3744
3744
|
E.isReactWarning = !0, Object.defineProperty(s, "key", {
|
3745
3745
|
get: E,
|
@@ -3747,10 +3747,10 @@ function Yo() {
|
|
3747
3747
|
});
|
3748
3748
|
}
|
3749
3749
|
}
|
3750
|
-
function fa(s,
|
3750
|
+
function fa(s, v) {
|
3751
3751
|
{
|
3752
3752
|
var E = function() {
|
3753
|
-
cr || (cr = !0, p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
3753
|
+
cr || (cr = !0, p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
|
3754
3754
|
};
|
3755
3755
|
E.isReactWarning = !0, Object.defineProperty(s, "ref", {
|
3756
3756
|
get: E,
|
@@ -3758,11 +3758,11 @@ function Yo() {
|
|
3758
3758
|
});
|
3759
3759
|
}
|
3760
3760
|
}
|
3761
|
-
var ha = function(s,
|
3761
|
+
var ha = function(s, v, E, P, H, U, C) {
|
3762
3762
|
var O = {
|
3763
3763
|
$$typeof: t,
|
3764
3764
|
type: s,
|
3765
|
-
key:
|
3765
|
+
key: v,
|
3766
3766
|
ref: E,
|
3767
3767
|
props: C,
|
3768
3768
|
_owner: U
|
@@ -3776,7 +3776,7 @@ function Yo() {
|
|
3776
3776
|
configurable: !1,
|
3777
3777
|
enumerable: !1,
|
3778
3778
|
writable: !1,
|
3779
|
-
value:
|
3779
|
+
value: P
|
3780
3780
|
}), Object.defineProperty(O, "_source", {
|
3781
3781
|
configurable: !1,
|
3782
3782
|
enumerable: !1,
|
@@ -3784,41 +3784,41 @@ function Yo() {
|
|
3784
3784
|
value: H
|
3785
3785
|
}), Object.freeze && (Object.freeze(O.props), Object.freeze(O)), O;
|
3786
3786
|
};
|
3787
|
-
function da(s,
|
3787
|
+
function da(s, v, E, P, H) {
|
3788
3788
|
{
|
3789
3789
|
var U, C = {}, O = null, Y = null;
|
3790
|
-
E !== void 0 && (lr(E), O = "" + E), la(
|
3791
|
-
for (U in
|
3792
|
-
Ke.call(
|
3790
|
+
E !== void 0 && (lr(E), O = "" + E), la(v) && (lr(v.key), O = "" + v.key), sa(v) && (Y = v.ref, ua(v, H));
|
3791
|
+
for (U in v)
|
3792
|
+
Ke.call(v, U) && !ia.hasOwnProperty(U) && (C[U] = v[U]);
|
3793
3793
|
if (s && s.defaultProps) {
|
3794
|
-
var
|
3795
|
-
for (U in
|
3796
|
-
C[U] === void 0 && (C[U] =
|
3794
|
+
var j = s.defaultProps;
|
3795
|
+
for (U in j)
|
3796
|
+
C[U] === void 0 && (C[U] = j[U]);
|
3797
3797
|
}
|
3798
3798
|
if (O || Y) {
|
3799
3799
|
var X = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
3800
3800
|
O && ca(C, X), Y && fa(C, X);
|
3801
3801
|
}
|
3802
|
-
return ha(s, O, Y, H,
|
3802
|
+
return ha(s, O, Y, H, P, ze.current, C);
|
3803
3803
|
}
|
3804
3804
|
}
|
3805
|
-
var
|
3805
|
+
var gt = x.ReactCurrentOwner, fr = x.ReactDebugCurrentFrame;
|
3806
3806
|
function De(s) {
|
3807
3807
|
if (s) {
|
3808
|
-
var
|
3808
|
+
var v = s._owner, E = xe(s.type, s._source, v ? v.type : null);
|
3809
3809
|
fr.setExtraStackFrame(E);
|
3810
3810
|
} else
|
3811
3811
|
fr.setExtraStackFrame(null);
|
3812
3812
|
}
|
3813
|
-
var
|
3814
|
-
|
3815
|
-
function
|
3813
|
+
var yt;
|
3814
|
+
yt = !1;
|
3815
|
+
function bt(s) {
|
3816
3816
|
return typeof s == "object" && s !== null && s.$$typeof === t;
|
3817
3817
|
}
|
3818
3818
|
function hr() {
|
3819
3819
|
{
|
3820
|
-
if (
|
3821
|
-
var s = Q(
|
3820
|
+
if (gt.current) {
|
3821
|
+
var s = Q(gt.current.type);
|
3822
3822
|
if (s)
|
3823
3823
|
return `
|
3824
3824
|
|
@@ -3830,10 +3830,10 @@ Check the render method of \`` + s + "`.";
|
|
3830
3830
|
function ma(s) {
|
3831
3831
|
{
|
3832
3832
|
if (s !== void 0) {
|
3833
|
-
var
|
3833
|
+
var v = s.fileName.replace(/^.*[\\\/]/, ""), E = s.lineNumber;
|
3834
3834
|
return `
|
3835
3835
|
|
3836
|
-
Check your code at ` +
|
3836
|
+
Check your code at ` + v + ":" + E + ".";
|
3837
3837
|
}
|
3838
3838
|
return "";
|
3839
3839
|
}
|
@@ -3841,84 +3841,84 @@ Check your code at ` + m + ":" + E + ".";
|
|
3841
3841
|
var dr = {};
|
3842
3842
|
function pa(s) {
|
3843
3843
|
{
|
3844
|
-
var
|
3845
|
-
if (!
|
3844
|
+
var v = hr();
|
3845
|
+
if (!v) {
|
3846
3846
|
var E = typeof s == "string" ? s : s.displayName || s.name;
|
3847
|
-
E && (
|
3847
|
+
E && (v = `
|
3848
3848
|
|
3849
3849
|
Check the top-level render call using <` + E + ">.");
|
3850
3850
|
}
|
3851
|
-
return
|
3851
|
+
return v;
|
3852
3852
|
}
|
3853
3853
|
}
|
3854
|
-
function mr(s,
|
3854
|
+
function mr(s, v) {
|
3855
3855
|
{
|
3856
3856
|
if (!s._store || s._store.validated || s.key != null)
|
3857
3857
|
return;
|
3858
3858
|
s._store.validated = !0;
|
3859
|
-
var E = pa(
|
3859
|
+
var E = pa(v);
|
3860
3860
|
if (dr[E])
|
3861
3861
|
return;
|
3862
3862
|
dr[E] = !0;
|
3863
|
-
var
|
3864
|
-
s && s._owner && s._owner !==
|
3863
|
+
var P = "";
|
3864
|
+
s && s._owner && s._owner !== gt.current && (P = " It was passed a child from " + Q(s._owner.type) + "."), De(s), p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', E, P), De(null);
|
3865
3865
|
}
|
3866
3866
|
}
|
3867
|
-
function pr(s,
|
3867
|
+
function pr(s, v) {
|
3868
3868
|
{
|
3869
3869
|
if (typeof s != "object")
|
3870
3870
|
return;
|
3871
|
-
if (
|
3871
|
+
if (pt(s))
|
3872
3872
|
for (var E = 0; E < s.length; E++) {
|
3873
|
-
var
|
3874
|
-
|
3873
|
+
var P = s[E];
|
3874
|
+
bt(P) && mr(P, v);
|
3875
3875
|
}
|
3876
|
-
else if (
|
3876
|
+
else if (bt(s))
|
3877
3877
|
s._store && (s._store.validated = !0);
|
3878
3878
|
else if (s) {
|
3879
|
-
var H =
|
3879
|
+
var H = I(s);
|
3880
3880
|
if (typeof H == "function" && H !== s.entries)
|
3881
3881
|
for (var U = H.call(s), C; !(C = U.next()).done; )
|
3882
|
-
|
3882
|
+
bt(C.value) && mr(C.value, v);
|
3883
3883
|
}
|
3884
3884
|
}
|
3885
3885
|
}
|
3886
3886
|
function va(s) {
|
3887
3887
|
{
|
3888
|
-
var
|
3889
|
-
if (
|
3888
|
+
var v = s.type;
|
3889
|
+
if (v == null || typeof v == "string")
|
3890
3890
|
return;
|
3891
3891
|
var E;
|
3892
|
-
if (typeof
|
3893
|
-
E =
|
3894
|
-
else if (typeof
|
3895
|
-
E =
|
3892
|
+
if (typeof v == "function")
|
3893
|
+
E = v.propTypes;
|
3894
|
+
else if (typeof v == "object" && (v.$$typeof === u || v.$$typeof === h))
|
3895
|
+
E = v.propTypes;
|
3896
3896
|
else
|
3897
3897
|
return;
|
3898
3898
|
if (E) {
|
3899
|
-
var
|
3900
|
-
ra(E, s.props, "prop",
|
3901
|
-
} else if (
|
3902
|
-
|
3903
|
-
var H = Q(
|
3899
|
+
var P = Q(v);
|
3900
|
+
ra(E, s.props, "prop", P, s);
|
3901
|
+
} else if (v.PropTypes !== void 0 && !yt) {
|
3902
|
+
yt = !0;
|
3903
|
+
var H = Q(v);
|
3904
3904
|
p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", H || "Unknown");
|
3905
3905
|
}
|
3906
|
-
typeof
|
3906
|
+
typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
3907
3907
|
}
|
3908
3908
|
}
|
3909
3909
|
function ga(s) {
|
3910
3910
|
{
|
3911
|
-
for (var
|
3912
|
-
var
|
3913
|
-
if (
|
3914
|
-
De(s), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
3911
|
+
for (var v = Object.keys(s.props), E = 0; E < v.length; E++) {
|
3912
|
+
var P = v[E];
|
3913
|
+
if (P !== "children" && P !== "key") {
|
3914
|
+
De(s), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", P), De(null);
|
3915
3915
|
break;
|
3916
3916
|
}
|
3917
3917
|
}
|
3918
3918
|
s.ref !== null && (De(s), p("Invalid attribute `ref` supplied to `React.Fragment`."), De(null));
|
3919
3919
|
}
|
3920
3920
|
}
|
3921
|
-
function vr(s,
|
3921
|
+
function vr(s, v, E, P, H, U) {
|
3922
3922
|
{
|
3923
3923
|
var C = Fe(s);
|
3924
3924
|
if (!C) {
|
@@ -3926,17 +3926,17 @@ Check the top-level render call using <` + E + ">.");
|
|
3926
3926
|
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (O += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
3927
3927
|
var Y = ma(H);
|
3928
3928
|
Y ? O += Y : O += hr();
|
3929
|
-
var
|
3930
|
-
s === null ?
|
3929
|
+
var j;
|
3930
|
+
s === null ? j = "null" : pt(s) ? j = "array" : s !== void 0 && s.$$typeof === t ? (j = "<" + (Q(s.type) || "Unknown") + " />", O = " Did you accidentally export a JSX literal instead of a component?") : j = typeof s, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, O);
|
3931
3931
|
}
|
3932
|
-
var X = da(s,
|
3932
|
+
var X = da(s, v, E, H, U);
|
3933
3933
|
if (X == null)
|
3934
3934
|
return X;
|
3935
3935
|
if (C) {
|
3936
|
-
var $ =
|
3936
|
+
var $ = v.children;
|
3937
3937
|
if ($ !== void 0)
|
3938
|
-
if (
|
3939
|
-
if (
|
3938
|
+
if (P)
|
3939
|
+
if (pt($)) {
|
3940
3940
|
for (var He = 0; He < $.length; He++)
|
3941
3941
|
pr($[He], s);
|
3942
3942
|
Object.freeze && Object.freeze($);
|
@@ -3948,20 +3948,20 @@ Check the top-level render call using <` + E + ">.");
|
|
3948
3948
|
return s === n ? ga(X) : va(X), X;
|
3949
3949
|
}
|
3950
3950
|
}
|
3951
|
-
function ya(s,
|
3952
|
-
return vr(s,
|
3951
|
+
function ya(s, v, E) {
|
3952
|
+
return vr(s, v, E, !0);
|
3953
3953
|
}
|
3954
|
-
function ba(s,
|
3955
|
-
return vr(s,
|
3954
|
+
function ba(s, v, E) {
|
3955
|
+
return vr(s, v, E, !1);
|
3956
3956
|
}
|
3957
3957
|
var Ea = ba, wa = ya;
|
3958
|
-
|
3959
|
-
}()),
|
3958
|
+
je.Fragment = n, je.jsx = Ea, je.jsxs = wa;
|
3959
|
+
}()), je;
|
3960
3960
|
}
|
3961
3961
|
(function(e) {
|
3962
3962
|
process.env.NODE_ENV === "production" ? e.exports = Jo() : e.exports = Yo();
|
3963
|
-
})(
|
3964
|
-
const Wo =
|
3963
|
+
})(ct);
|
3964
|
+
const Wo = ct.exports.Fragment, d = ct.exports.jsx, k = ct.exports.jsxs;
|
3965
3965
|
var Qt = w.createContext(null);
|
3966
3966
|
Qt.Consumer;
|
3967
3967
|
var qo = Qt.Provider, Qo = qo, Ko = Qt;
|
@@ -3999,7 +3999,7 @@ function Je(e) {
|
|
3999
3999
|
};
|
4000
4000
|
return t.displayName = _t[e], t;
|
4001
4001
|
}
|
4002
|
-
function
|
4002
|
+
function Tt(e) {
|
4003
4003
|
return {
|
4004
4004
|
locale: e.locale,
|
4005
4005
|
timeZone: e.timeZone,
|
@@ -4024,7 +4024,7 @@ function Pn(e) {
|
|
4024
4024
|
var Hr = function(e, t, r, n) {
|
4025
4025
|
for (var a = [], o = 4; o < arguments.length; o++)
|
4026
4026
|
a[o - 4] = arguments[o];
|
4027
|
-
var i = Pn(n), l = Lt.apply(void 0,
|
4027
|
+
var i = Pn(n), l = Lt.apply(void 0, oe([e, t, r, i], a, !1));
|
4028
4028
|
return Array.isArray(l) ? w.Children.toArray(l) : l;
|
4029
4029
|
}, Lr = function(e, t) {
|
4030
4030
|
var r = e.defaultRichTextElements, n = Vt(e, ["defaultRichTextElements"]), a = Pn(r), o = Xo(T(T(T({}, In), n), {
|
@@ -4045,17 +4045,17 @@ var Hr = function(e, t, r, n) {
|
|
4045
4045
|
$t: Hr.bind(null, i, o.formatters)
|
4046
4046
|
});
|
4047
4047
|
}, $o = function(e) {
|
4048
|
-
|
4048
|
+
te(t, e);
|
4049
4049
|
function t() {
|
4050
4050
|
var r = e !== null && e.apply(this, arguments) || this;
|
4051
4051
|
return r.cache = wn(), r.state = {
|
4052
4052
|
cache: r.cache,
|
4053
|
-
intl: Lr(
|
4054
|
-
prevConfig:
|
4053
|
+
intl: Lr(Tt(r.props), r.cache),
|
4054
|
+
prevConfig: Tt(r.props)
|
4055
4055
|
}, r;
|
4056
4056
|
}
|
4057
4057
|
return t.getDerivedStateFromProps = function(r, n) {
|
4058
|
-
var a = n.prevConfig, o = n.cache, i =
|
4058
|
+
var a = n.prevConfig, o = n.cache, i = Tt(r);
|
4059
4059
|
return Zo(a, i) ? null : {
|
4060
4060
|
intl: Lr(i, o),
|
4061
4061
|
prevConfig: i
|
@@ -4088,7 +4088,7 @@ function Nn(e) {
|
|
4088
4088
|
e[t] && (n && (n += " "), n += t);
|
4089
4089
|
return n;
|
4090
4090
|
}
|
4091
|
-
function
|
4091
|
+
function at() {
|
4092
4092
|
for (var e, t, r = 0, n = ""; r < arguments.length; )
|
4093
4093
|
(e = arguments[r++]) && (t = Nn(e)) && (n && (n += " "), n += t);
|
4094
4094
|
return n;
|
@@ -4122,7 +4122,7 @@ function K(e, t) {
|
|
4122
4122
|
function _r(e) {
|
4123
4123
|
return typeof e == "boolean";
|
4124
4124
|
}
|
4125
|
-
function
|
4125
|
+
function ot(e) {
|
4126
4126
|
return !!(e && {}.toString.call(e) == "[object Function]");
|
4127
4127
|
}
|
4128
4128
|
function ni(e) {
|
@@ -4130,7 +4130,7 @@ function ni(e) {
|
|
4130
4130
|
}
|
4131
4131
|
function ai(e, t) {
|
4132
4132
|
if (e != null)
|
4133
|
-
if (
|
4133
|
+
if (ot(e))
|
4134
4134
|
e(t);
|
4135
4135
|
else
|
4136
4136
|
try {
|
@@ -4170,10 +4170,10 @@ function oi(e, t) {
|
|
4170
4170
|
}
|
4171
4171
|
return r.displayName = `${e}Context`, n.displayName = `${e}Provider`, [n, a];
|
4172
4172
|
}
|
4173
|
-
function
|
4173
|
+
function nt(e) {
|
4174
4174
|
return "which" in e ? e.which === 3 : "button" in e ? e.button === 2 : !1;
|
4175
4175
|
}
|
4176
|
-
function
|
4176
|
+
function it(...e) {
|
4177
4177
|
return e.filter((t) => t != null).join("--");
|
4178
4178
|
}
|
4179
4179
|
function Kt() {
|
@@ -4185,7 +4185,7 @@ function Cn() {
|
|
4185
4185
|
}, []);
|
4186
4186
|
}
|
4187
4187
|
var Le = An() ? xa : qr;
|
4188
|
-
function
|
4188
|
+
function St(e) {
|
4189
4189
|
const t = Ta(null);
|
4190
4190
|
return qr(() => {
|
4191
4191
|
t.current = e;
|
@@ -4262,12 +4262,12 @@ function fi(e, t) {
|
|
4262
4262
|
};
|
4263
4263
|
}
|
4264
4264
|
function Fr(e, t, r) {
|
4265
|
-
var
|
4265
|
+
var m;
|
4266
4266
|
let n, a;
|
4267
|
-
_r(t) ? n = t : (n = (
|
4267
|
+
_r(t) ? n = t : (n = (m = t == null ? void 0 : t.observe) != null ? m : !0, a = t == null ? void 0 : t.onChange), ot(r) && (a = r), w.useEffect(() => {
|
4268
4268
|
_r(t) && console.warn("Passing `observe` as the second argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `observe` property as the second argument (`useRect(ref, { observe })`).\nSee https://reach.tech/rect#userect-observe");
|
4269
4269
|
}, [t]), w.useEffect(() => {
|
4270
|
-
|
4270
|
+
ot(r) && console.warn("Passing `onChange` as the third argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `onChange` property as the second argument (`useRect(ref, { onChange })`).\nSee https://reach.tech/rect#userect-onchange");
|
4271
4271
|
}, [r]);
|
4272
4272
|
let [o, i] = w.useState(e.current), l = w.useRef(!1), u = w.useRef(!1), [f, c] = w.useState(null), h = w.useRef(a);
|
4273
4273
|
return Le(() => {
|
@@ -4282,9 +4282,9 @@ function Fr(e, t, r) {
|
|
4282
4282
|
console.warn("You need to place the ref");
|
4283
4283
|
return;
|
4284
4284
|
}
|
4285
|
-
let M = fi(b, (
|
4286
|
-
var
|
4287
|
-
(
|
4285
|
+
let M = fi(b, (R) => {
|
4286
|
+
var I;
|
4287
|
+
(I = h.current) == null || I.call(h, R), c(R);
|
4288
4288
|
});
|
4289
4289
|
return M.observe(), () => {
|
4290
4290
|
M.unobserve();
|
@@ -4315,8 +4315,8 @@ var hi = ["input", "select", "textarea", "a[href]", "button", "[tabindex]:not(sl
|
|
4315
4315
|
} else {
|
4316
4316
|
var c = Ve.call(i, Bt);
|
4317
4317
|
c && n.filter(i) && (r || !t.includes(i)) && a.push(i);
|
4318
|
-
var h = i.shadowRoot || typeof n.getShadowRoot == "function" && n.getShadowRoot(i),
|
4319
|
-
if (h &&
|
4318
|
+
var h = i.shadowRoot || typeof n.getShadowRoot == "function" && n.getShadowRoot(i), m = !n.shadowRootFilter || n.shadowRootFilter(i);
|
4319
|
+
if (h && m) {
|
4320
4320
|
var b = e(h === !0 ? i.children : h.children, !0, n);
|
4321
4321
|
n.flatten ? a.push.apply(a, b) : a.push({
|
4322
4322
|
scope: i,
|
@@ -4510,72 +4510,72 @@ function Oi(e, t, r = 0, n = 0) {
|
|
4510
4510
|
function Ai(e, t) {
|
4511
4511
|
const r = Xe(e.current);
|
4512
4512
|
function n(p) {
|
4513
|
-
p.key === "Tab" && t.current && ue(t.current).length === 0 || (p.key === "Tab" && p.shiftKey ? f(p) ? c(p) : h(p) ?
|
4513
|
+
p.key === "Tab" && t.current && ue(t.current).length === 0 || (p.key === "Tab" && p.shiftKey ? f(p) ? c(p) : h(p) ? m(p) : M(p) && I() : p.key === "Tab" && (o() ? i(p) : l() ? u(p) : b(p) && I()));
|
4514
4514
|
}
|
4515
4515
|
w.useEffect(() => (r.addEventListener("keydown", n), () => {
|
4516
4516
|
r.removeEventListener("keydown", n);
|
4517
4517
|
}), []);
|
4518
4518
|
function a() {
|
4519
|
-
const p = ue(r),
|
4520
|
-
return t.current && t.current.contains(
|
4519
|
+
const p = ue(r), g = p && e.current ? p.indexOf(e.current) : -1, N = p && p[g + 1];
|
4520
|
+
return t.current && t.current.contains(N || null) ? !1 : N;
|
4521
4521
|
}
|
4522
4522
|
function o() {
|
4523
4523
|
return e.current ? e.current === r.activeElement : !1;
|
4524
4524
|
}
|
4525
4525
|
function i(p) {
|
4526
|
-
const
|
4527
|
-
|
4526
|
+
const g = t.current && ue(t.current);
|
4527
|
+
g && g[0] && (p.preventDefault(), g[0].focus());
|
4528
4528
|
}
|
4529
4529
|
function l() {
|
4530
4530
|
if (t.current ? t.current.contains(r.activeElement || null) : !1) {
|
4531
|
-
const
|
4532
|
-
return Boolean(
|
4531
|
+
const g = t.current && ue(t.current);
|
4532
|
+
return Boolean(g && g[g.length - 1] === r.activeElement);
|
4533
4533
|
}
|
4534
4534
|
return !1;
|
4535
4535
|
}
|
4536
4536
|
function u(p) {
|
4537
|
-
const
|
4538
|
-
|
4537
|
+
const g = a();
|
4538
|
+
g && (p.preventDefault(), g.focus());
|
4539
4539
|
}
|
4540
4540
|
function f(p) {
|
4541
4541
|
if (!p.shiftKey)
|
4542
4542
|
return;
|
4543
|
-
const
|
4544
|
-
return p.target ===
|
4543
|
+
const g = a();
|
4544
|
+
return p.target === g;
|
4545
4545
|
}
|
4546
4546
|
function c(p) {
|
4547
|
-
const
|
4548
|
-
|
4547
|
+
const g = t.current && ue(t.current), N = g && g[g.length - 1];
|
4548
|
+
N && (p.preventDefault(), N.focus());
|
4549
4549
|
}
|
4550
4550
|
function h(p) {
|
4551
|
-
const
|
4552
|
-
return
|
4551
|
+
const g = t.current && ue(t.current);
|
4552
|
+
return g ? g.length === 0 ? !1 : p.target === g[0] : !1;
|
4553
4553
|
}
|
4554
|
-
function
|
4555
|
-
var
|
4556
|
-
p.preventDefault(), (
|
4554
|
+
function m(p) {
|
4555
|
+
var g;
|
4556
|
+
p.preventDefault(), (g = e.current) == null || g.focus();
|
4557
4557
|
}
|
4558
4558
|
function b(p) {
|
4559
|
-
const
|
4560
|
-
return
|
4559
|
+
const g = t.current ? ue(r).filter((N) => !t.current.contains(N)) : null;
|
4560
|
+
return g ? p.target === g[g.length - 1] : !1;
|
4561
4561
|
}
|
4562
4562
|
function M(p) {
|
4563
4563
|
return p.target === ue(r)[0];
|
4564
4564
|
}
|
4565
|
-
let
|
4566
|
-
function
|
4565
|
+
let R = [];
|
4566
|
+
function I() {
|
4567
4567
|
const p = t.current && ue(t.current);
|
4568
|
-
p && (p.forEach((
|
4569
|
-
|
4568
|
+
p && (p.forEach((g) => {
|
4569
|
+
R.push([g, g.tabIndex]), g.tabIndex = -1;
|
4570
4570
|
}), r.addEventListener("focusin", x));
|
4571
4571
|
}
|
4572
4572
|
function x() {
|
4573
|
-
r.removeEventListener("focusin", x),
|
4574
|
-
p.tabIndex =
|
4573
|
+
r.removeEventListener("focusin", x), R.forEach(([p, g]) => {
|
4574
|
+
p.tabIndex = g;
|
4575
4575
|
});
|
4576
4576
|
}
|
4577
4577
|
}
|
4578
|
-
var
|
4578
|
+
var Rt = !1, Ci = 0;
|
4579
4579
|
function Ur() {
|
4580
4580
|
return ++Ci;
|
4581
4581
|
}
|
@@ -4586,11 +4586,11 @@ function Di(e) {
|
|
4586
4586
|
let o = zr();
|
4587
4587
|
return e != null ? e : o;
|
4588
4588
|
}
|
4589
|
-
let t = e != null ? e :
|
4589
|
+
let t = e != null ? e : Rt ? Ur() : null, [r, n] = w.useState(t);
|
4590
4590
|
return Le(() => {
|
4591
4591
|
r === null && n(Ur());
|
4592
4592
|
}, []), w.useEffect(() => {
|
4593
|
-
|
4593
|
+
Rt === !1 && (Rt = !0);
|
4594
4594
|
}, []), (a = e != null ? e : r) != null ? a : void 0;
|
4595
4595
|
}
|
4596
4596
|
function Hi(e, t = {}) {
|
@@ -4630,7 +4630,7 @@ function Bi({
|
|
4630
4630
|
...l
|
4631
4631
|
}) => o ? (n((u) => {
|
4632
4632
|
if (i != null && i !== -1)
|
4633
|
-
return
|
4633
|
+
return Gr(u, {
|
4634
4634
|
element: o,
|
4635
4635
|
index: i,
|
4636
4636
|
...l
|
@@ -4658,7 +4658,7 @@ IMPORTANT: this check will only run in the development build, so if you see this
|
|
4658
4658
|
...l,
|
4659
4659
|
element: o,
|
4660
4660
|
index: u.length
|
4661
|
-
}] : c =
|
4661
|
+
}] : c = Gr(u, {
|
4662
4662
|
...l,
|
4663
4663
|
element: o,
|
4664
4664
|
index: f
|
@@ -4689,15 +4689,15 @@ function ki(e, t) {
|
|
4689
4689
|
return function(h) {
|
4690
4690
|
if (!["ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Home", "End"].includes(h.key))
|
4691
4691
|
return;
|
4692
|
-
let
|
4692
|
+
let m = a != null ? a : -1, b = o ? r.filter(o) : r;
|
4693
4693
|
if (!b.length)
|
4694
4694
|
return;
|
4695
|
-
let M = b.findIndex((
|
4696
|
-
function
|
4697
|
-
return
|
4695
|
+
let M = b.findIndex((g) => g.index === a);
|
4696
|
+
function R() {
|
4697
|
+
return m === p().index ? u ? x() : b[M] : b[(M + 1) % b.length];
|
4698
4698
|
}
|
4699
|
-
function
|
4700
|
-
return
|
4699
|
+
function I() {
|
4700
|
+
return m === x().index ? u ? p() : b[M] : b[(M - 1 + b.length) % b.length];
|
4701
4701
|
}
|
4702
4702
|
function x() {
|
4703
4703
|
return b[0];
|
@@ -4709,44 +4709,44 @@ function ki(e, t) {
|
|
4709
4709
|
case "ArrowDown":
|
4710
4710
|
if (l === "vertical" || l === "both") {
|
4711
4711
|
h.preventDefault();
|
4712
|
-
let B =
|
4712
|
+
let B = R();
|
4713
4713
|
n(i === "option" ? B : B[i]);
|
4714
4714
|
}
|
4715
4715
|
break;
|
4716
4716
|
case "ArrowUp":
|
4717
4717
|
if (l === "vertical" || l === "both") {
|
4718
4718
|
h.preventDefault();
|
4719
|
-
let B =
|
4719
|
+
let B = I();
|
4720
4720
|
n(i === "option" ? B : B[i]);
|
4721
4721
|
}
|
4722
4722
|
break;
|
4723
4723
|
case "ArrowLeft":
|
4724
4724
|
if (l === "horizontal" || l === "both") {
|
4725
4725
|
h.preventDefault();
|
4726
|
-
let B = (f ?
|
4726
|
+
let B = (f ? R : I)();
|
4727
4727
|
n(i === "option" ? B : B[i]);
|
4728
4728
|
}
|
4729
4729
|
break;
|
4730
4730
|
case "ArrowRight":
|
4731
4731
|
if (l === "horizontal" || l === "both") {
|
4732
4732
|
h.preventDefault();
|
4733
|
-
let B = (f ?
|
4733
|
+
let B = (f ? I : R)();
|
4734
4734
|
n(i === "option" ? B : B[i]);
|
4735
4735
|
}
|
4736
4736
|
break;
|
4737
4737
|
case "PageUp":
|
4738
4738
|
h.preventDefault();
|
4739
|
-
let
|
4740
|
-
n(i === "option" ?
|
4739
|
+
let g = (h.ctrlKey ? I : x)();
|
4740
|
+
n(i === "option" ? g : g[i]);
|
4741
4741
|
break;
|
4742
4742
|
case "Home":
|
4743
4743
|
h.preventDefault();
|
4744
|
-
let
|
4745
|
-
n(i === "option" ?
|
4744
|
+
let N = x();
|
4745
|
+
n(i === "option" ? N : N[i]);
|
4746
4746
|
break;
|
4747
4747
|
case "PageDown":
|
4748
4748
|
h.preventDefault();
|
4749
|
-
let y = (h.ctrlKey ?
|
4749
|
+
let y = (h.ctrlKey ? R : p)();
|
4750
4750
|
n(i === "option" ? y : y[i]);
|
4751
4751
|
break;
|
4752
4752
|
case "End":
|
@@ -4771,7 +4771,7 @@ function Ui(e, t) {
|
|
4771
4771
|
}
|
4772
4772
|
return -1;
|
4773
4773
|
}
|
4774
|
-
function
|
4774
|
+
function Gr(e, t, r) {
|
4775
4775
|
return r == null || !(r in e) ? [...e, t] : [...e.slice(0, r), t, ...e.slice(r)];
|
4776
4776
|
}
|
4777
4777
|
function zi(e) {
|
@@ -4780,50 +4780,50 @@ function zi(e) {
|
|
4780
4780
|
index: r
|
4781
4781
|
}));
|
4782
4782
|
}
|
4783
|
-
var Un = "CLEAR_SELECTION_INDEX", er = "CLICK_MENU_ITEM", Ze = "CLOSE_MENU",
|
4783
|
+
var Un = "CLEAR_SELECTION_INDEX", er = "CLICK_MENU_ITEM", Ze = "CLOSE_MENU", Gi = "OPEN_MENU_AT_FIRST_ITEM", Ut = "OPEN_MENU_AT_INDEX", zn = "OPEN_MENU_CLEARED", zt = "SEARCH_FOR_ITEM", pe = "SELECT_ITEM_AT_INDEX", Gt = "SET_BUTTON_ID", ft = Hi("DropdownDescendantContext"), [ji, We] = oi("Dropdown"), Xi = {
|
4784
4784
|
triggerId: null,
|
4785
4785
|
isExpanded: !1,
|
4786
4786
|
typeaheadQuery: "",
|
4787
4787
|
selectionIndex: -1
|
4788
|
-
},
|
4788
|
+
}, Gn = ({
|
4789
4789
|
id: e,
|
4790
4790
|
children: t
|
4791
4791
|
}) => {
|
4792
|
-
let r = w.useRef(null), n = w.useRef(null), a = w.useRef(null), [o, i] = _i(), l = Di(e), u = e ||
|
4792
|
+
let r = w.useRef(null), n = w.useRef(null), a = w.useRef(null), [o, i] = _i(), l = Di(e), u = e || it("menu", l), f = it("menu-button", u), [c, h] = w.useReducer(Qi, {
|
4793
4793
|
...Xi,
|
4794
4794
|
triggerId: f
|
4795
|
-
}),
|
4795
|
+
}), m = w.useRef(!1), b = w.useRef([]), M = w.useRef(!1), R = w.useRef({
|
4796
4796
|
x: 0,
|
4797
4797
|
y: 0
|
4798
4798
|
});
|
4799
4799
|
return w.useEffect(() => {
|
4800
4800
|
c.isExpanded ? (window.__REACH_DISABLE_TOOLTIPS = !0, window.requestAnimationFrame(() => {
|
4801
|
-
|
4801
|
+
st(n.current);
|
4802
4802
|
})) : window.__REACH_DISABLE_TOOLTIPS = !1;
|
4803
4803
|
}, [c.isExpanded]), /* @__PURE__ */ d(Bi, {
|
4804
|
-
context:
|
4804
|
+
context: ft,
|
4805
4805
|
items: o,
|
4806
4806
|
set: i,
|
4807
|
-
children: /* @__PURE__ */ d(
|
4807
|
+
children: /* @__PURE__ */ d(ji, {
|
4808
4808
|
dispatch: h,
|
4809
4809
|
dropdownId: u,
|
4810
4810
|
dropdownRef: n,
|
4811
|
-
mouseDownStartPosRef:
|
4811
|
+
mouseDownStartPosRef: R,
|
4812
4812
|
popoverRef: a,
|
4813
4813
|
readyToSelect: M,
|
4814
4814
|
selectCallbacks: b,
|
4815
4815
|
state: c,
|
4816
|
-
triggerClickedRef:
|
4816
|
+
triggerClickedRef: m,
|
4817
4817
|
triggerRef: r,
|
4818
|
-
children:
|
4818
|
+
children: ot(t) ? t({
|
4819
4819
|
isExpanded: c.isExpanded,
|
4820
4820
|
isOpen: c.isExpanded
|
4821
4821
|
}) : t
|
4822
4822
|
})
|
4823
4823
|
});
|
4824
4824
|
};
|
4825
|
-
|
4826
|
-
function
|
4825
|
+
Gn.displayName = "DropdownProvider";
|
4826
|
+
function jn({
|
4827
4827
|
onKeyDown: e,
|
4828
4828
|
onMouseDown: t,
|
4829
4829
|
id: r,
|
@@ -4840,19 +4840,19 @@ function Gn({
|
|
4840
4840
|
triggerId: c,
|
4841
4841
|
isExpanded: h
|
4842
4842
|
}
|
4843
|
-
} = We("useDropdownTrigger"),
|
4843
|
+
} = We("useDropdownTrigger"), m = Ye(f, n), b = Yn(), M = w.useMemo(() => b.findIndex((x) => !x.disabled), [b]);
|
4844
4844
|
w.useEffect(() => {
|
4845
4845
|
r != null && r !== c && o({
|
4846
|
-
type:
|
4846
|
+
type: Gt,
|
4847
4847
|
payload: r
|
4848
4848
|
});
|
4849
4849
|
}, [c, o, r]), w.useEffect(() => {
|
4850
4850
|
r == null && o({
|
4851
|
-
type:
|
4852
|
-
payload:
|
4851
|
+
type: Gt,
|
4852
|
+
payload: it("menu-button", i)
|
4853
4853
|
});
|
4854
4854
|
}, [i, o, r]);
|
4855
|
-
function
|
4855
|
+
function R(x) {
|
4856
4856
|
switch (x.key) {
|
4857
4857
|
case "ArrowDown":
|
4858
4858
|
case "ArrowUp":
|
@@ -4874,8 +4874,8 @@ function Gn({
|
|
4874
4874
|
break;
|
4875
4875
|
}
|
4876
4876
|
}
|
4877
|
-
function
|
4878
|
-
|
4877
|
+
function I(x) {
|
4878
|
+
nt(x.nativeEvent) || (l.current = {
|
4879
4879
|
x: x.clientX,
|
4880
4880
|
y: x.clientY
|
4881
4881
|
}, h || (u.current = !0), o(h ? {
|
@@ -4891,10 +4891,10 @@ function Gn({
|
|
4891
4891
|
},
|
4892
4892
|
props: {
|
4893
4893
|
...a,
|
4894
|
-
ref:
|
4894
|
+
ref: m,
|
4895
4895
|
id: c || void 0,
|
4896
|
-
onKeyDown: K(e,
|
4897
|
-
onMouseDown: K(t,
|
4896
|
+
onKeyDown: K(e, R),
|
4897
|
+
onMouseDown: K(t, I),
|
4898
4898
|
type: "button"
|
4899
4899
|
}
|
4900
4900
|
};
|
@@ -4905,7 +4905,7 @@ var Vi = w.forwardRef(({
|
|
4905
4905
|
}, r) => {
|
4906
4906
|
let {
|
4907
4907
|
props: n
|
4908
|
-
} =
|
4908
|
+
} = jn({
|
4909
4909
|
...t,
|
4910
4910
|
ref: r
|
4911
4911
|
});
|
@@ -4928,47 +4928,47 @@ function Xn({
|
|
4928
4928
|
onSelect: f,
|
4929
4929
|
disabled: c,
|
4930
4930
|
onFocus: h,
|
4931
|
-
valueText:
|
4931
|
+
valueText: m,
|
4932
4932
|
ref: b,
|
4933
4933
|
...M
|
4934
4934
|
}) {
|
4935
4935
|
let {
|
4936
|
-
dispatch:
|
4937
|
-
dropdownRef:
|
4936
|
+
dispatch: R,
|
4937
|
+
dropdownRef: I,
|
4938
4938
|
mouseDownStartPosRef: x,
|
4939
4939
|
readyToSelect: p,
|
4940
|
-
selectCallbacks:
|
4941
|
-
triggerRef:
|
4940
|
+
selectCallbacks: g,
|
4941
|
+
triggerRef: N,
|
4942
4942
|
state: {
|
4943
4943
|
selectionIndex: y,
|
4944
4944
|
isExpanded: z
|
4945
4945
|
}
|
4946
|
-
} = We("useDropdownItem"), B = w.useRef(null), [ge, Ie] = w.useState(
|
4947
|
-
!
|
4948
|
-
}, [
|
4946
|
+
} = We("useDropdownItem"), B = w.useRef(null), [ge, Ie] = w.useState(m || ""), Fe = w.useCallback((L) => {
|
4947
|
+
!m && (L == null ? void 0 : L.textContent) && Ie(L.textContent);
|
4948
|
+
}, [m]), fe = w.useRef(!1), [ye, Q] = ii(B, null), re = w.useMemo(() => ({
|
4949
4949
|
element: ye,
|
4950
4950
|
key: ge,
|
4951
4951
|
disabled: c,
|
4952
4952
|
isLink: t
|
4953
|
-
}), [c, ye, t, ge]), V = Li(
|
4954
|
-
|
4953
|
+
}), [c, ye, t, ge]), V = Li(re, ft, e), se = V === y && !c, Me = Ye(b, Q, Fe);
|
4954
|
+
g.current[V] = f;
|
4955
4955
|
function he() {
|
4956
|
-
|
4956
|
+
st(N.current), f && f(), R({
|
4957
4957
|
type: er
|
4958
4958
|
});
|
4959
4959
|
}
|
4960
4960
|
function Pe(L) {
|
4961
|
-
|
4961
|
+
nt(L.nativeEvent) || t && (c ? L.preventDefault() : he());
|
4962
4962
|
}
|
4963
4963
|
function be(L) {
|
4964
4964
|
t && L.preventDefault();
|
4965
4965
|
}
|
4966
4966
|
function Ne(L) {
|
4967
|
-
|
4967
|
+
nt(L.nativeEvent) || (t ? fe.current = !0 : L.preventDefault());
|
4968
4968
|
}
|
4969
4969
|
function Oe(L) {
|
4970
|
-
let J = Xe(
|
4971
|
-
!se && V != null && !c && ((
|
4970
|
+
let J = Xe(I.current);
|
4971
|
+
!se && V != null && !c && ((I == null ? void 0 : I.current) && I.current !== J.activeElement && B.current !== J.activeElement && I.current.focus(), R({
|
4972
4972
|
type: pe,
|
4973
4973
|
payload: {
|
4974
4974
|
index: V
|
@@ -4976,7 +4976,7 @@ function Xn({
|
|
4976
4976
|
}));
|
4977
4977
|
}
|
4978
4978
|
function Ae(L) {
|
4979
|
-
|
4979
|
+
R({
|
4980
4980
|
type: Un
|
4981
4981
|
});
|
4982
4982
|
}
|
@@ -4985,16 +4985,16 @@ function Xn({
|
|
4985
4985
|
let J = 8, we = Math.abs(L.clientX - x.current.x), de = Math.abs(L.clientY - x.current.y);
|
4986
4986
|
(we > J || de > J) && (p.current = !0);
|
4987
4987
|
}
|
4988
|
-
!se && V != null && !c &&
|
4988
|
+
!se && V != null && !c && R({
|
4989
4989
|
type: pe,
|
4990
4990
|
payload: {
|
4991
4991
|
index: V,
|
4992
|
-
dropdownRef:
|
4992
|
+
dropdownRef: I
|
4993
4993
|
}
|
4994
4994
|
});
|
4995
4995
|
}
|
4996
4996
|
function ke() {
|
4997
|
-
p.current = !0, !se && V != null && !c &&
|
4997
|
+
p.current = !0, !se && V != null && !c && R({
|
4998
4998
|
type: pe,
|
4999
4999
|
payload: {
|
5000
5000
|
index: V
|
@@ -5002,7 +5002,7 @@ function Xn({
|
|
5002
5002
|
});
|
5003
5003
|
}
|
5004
5004
|
function Ee(L) {
|
5005
|
-
if (!
|
5005
|
+
if (!nt(L.nativeEvent)) {
|
5006
5006
|
if (!p.current) {
|
5007
5007
|
p.current = !0;
|
5008
5008
|
return;
|
@@ -5083,25 +5083,25 @@ function Vn({
|
|
5083
5083
|
isExpanded: f,
|
5084
5084
|
triggerId: c,
|
5085
5085
|
selectionIndex: h,
|
5086
|
-
typeaheadQuery:
|
5086
|
+
typeaheadQuery: m
|
5087
5087
|
}
|
5088
5088
|
} = We("useDropdownItems"), b = Yn(), M = Ye(i, r);
|
5089
5089
|
w.useEffect(() => {
|
5090
|
-
let
|
5091
|
-
|
5090
|
+
let g = Wi(b, m);
|
5091
|
+
m && g != null && a({
|
5092
5092
|
type: pe,
|
5093
5093
|
payload: {
|
5094
|
-
index:
|
5094
|
+
index: g,
|
5095
5095
|
dropdownRef: i
|
5096
5096
|
}
|
5097
5097
|
});
|
5098
|
-
let
|
5098
|
+
let N = window.setTimeout(() => m && a({
|
5099
5099
|
type: zt,
|
5100
5100
|
payload: ""
|
5101
5101
|
}), 1e3);
|
5102
|
-
return () => window.clearTimeout(
|
5103
|
-
}, [a, b,
|
5104
|
-
let
|
5102
|
+
return () => window.clearTimeout(N);
|
5103
|
+
}, [a, b, m, i]);
|
5104
|
+
let R = St(b.length), I = St(b[h]), x = St(h);
|
5105
5105
|
w.useEffect(() => {
|
5106
5106
|
h > b.length - 1 ? a({
|
5107
5107
|
type: pe,
|
@@ -5109,38 +5109,38 @@ function Vn({
|
|
5109
5109
|
index: b.length - 1,
|
5110
5110
|
dropdownRef: i
|
5111
5111
|
}
|
5112
|
-
}) :
|
5112
|
+
}) : R !== b.length && h > -1 && I && x === h && b[h] !== I && a({
|
5113
5113
|
type: pe,
|
5114
5114
|
payload: {
|
5115
|
-
index: b.findIndex((
|
5115
|
+
index: b.findIndex((g) => g.key === (I == null ? void 0 : I.key)),
|
5116
5116
|
dropdownRef: i
|
5117
5117
|
}
|
5118
5118
|
});
|
5119
|
-
}, [i, a, b,
|
5120
|
-
let p = K(function(
|
5119
|
+
}, [i, a, b, R, I, x, h]);
|
5120
|
+
let p = K(function(N) {
|
5121
5121
|
let {
|
5122
5122
|
key: y
|
5123
|
-
} =
|
5123
|
+
} = N;
|
5124
5124
|
if (!!f)
|
5125
5125
|
switch (y) {
|
5126
5126
|
case "Enter":
|
5127
5127
|
case " ":
|
5128
5128
|
let z = b.find((B) => B.index === h);
|
5129
|
-
z && !z.disabled && (
|
5129
|
+
z && !z.disabled && (N.preventDefault(), z.isLink && z.element ? z.element.click() : (st(o.current), l.current[z.index] && l.current[z.index](), a({
|
5130
5130
|
type: er
|
5131
5131
|
})));
|
5132
5132
|
break;
|
5133
5133
|
case "Escape":
|
5134
|
-
|
5134
|
+
st(o.current), a({
|
5135
5135
|
type: Ze
|
5136
5136
|
});
|
5137
5137
|
break;
|
5138
5138
|
case "Tab":
|
5139
|
-
|
5139
|
+
N.preventDefault();
|
5140
5140
|
break;
|
5141
5141
|
default:
|
5142
5142
|
if (ni(y) && y.length === 1) {
|
5143
|
-
let B =
|
5143
|
+
let B = m + y.toLowerCase();
|
5144
5144
|
a({
|
5145
5145
|
type: zt,
|
5146
5146
|
payload: B
|
@@ -5148,16 +5148,16 @@ function Vn({
|
|
5148
5148
|
}
|
5149
5149
|
break;
|
5150
5150
|
}
|
5151
|
-
}, ki(
|
5151
|
+
}, ki(ft, {
|
5152
5152
|
currentIndex: h,
|
5153
5153
|
orientation: "vertical",
|
5154
5154
|
rotate: !1,
|
5155
|
-
filter: (
|
5156
|
-
callback: (
|
5155
|
+
filter: (g) => !g.disabled,
|
5156
|
+
callback: (g) => {
|
5157
5157
|
a({
|
5158
5158
|
type: pe,
|
5159
5159
|
payload: {
|
5160
|
-
index:
|
5160
|
+
index: g,
|
5161
5161
|
dropdownRef: i
|
5162
5162
|
}
|
5163
5163
|
});
|
@@ -5214,14 +5214,14 @@ function Zn({
|
|
5214
5214
|
return w.useEffect(() => {
|
5215
5215
|
if (!c)
|
5216
5216
|
return;
|
5217
|
-
let
|
5217
|
+
let m = Xe(f.current);
|
5218
5218
|
function b(M) {
|
5219
5219
|
i.current ? i.current = !1 : qi(f.current, M.target) || l({
|
5220
5220
|
type: Ze
|
5221
5221
|
});
|
5222
5222
|
}
|
5223
|
-
return
|
5224
|
-
|
5223
|
+
return m.addEventListener("mousedown", b), () => {
|
5224
|
+
m.removeEventListener("mousedown", b);
|
5225
5225
|
};
|
5226
5226
|
}, [i, o, l, u, f, c]), {
|
5227
5227
|
data: {
|
@@ -5233,8 +5233,8 @@ function Zn({
|
|
5233
5233
|
props: {
|
5234
5234
|
ref: h,
|
5235
5235
|
hidden: !c,
|
5236
|
-
onBlur: K(e, (
|
5237
|
-
|
5236
|
+
onBlur: K(e, (m) => {
|
5237
|
+
m.currentTarget.contains(m.relatedTarget) || l({
|
5238
5238
|
type: Ze
|
5239
5239
|
});
|
5240
5240
|
}),
|
@@ -5285,9 +5285,9 @@ function Jn(e) {
|
|
5285
5285
|
let {
|
5286
5286
|
dropdownId: t
|
5287
5287
|
} = We("useItemId");
|
5288
|
-
return e != null && e > -1 ?
|
5288
|
+
return e != null && e > -1 ? it(`option-${e}`, t) : void 0;
|
5289
5289
|
}
|
5290
|
-
function
|
5290
|
+
function st(e) {
|
5291
5291
|
e && e.focus();
|
5292
5292
|
}
|
5293
5293
|
function qi(e, t) {
|
@@ -5307,7 +5307,7 @@ function Qi(e, t = {}) {
|
|
5307
5307
|
isExpanded: !1,
|
5308
5308
|
selectionIndex: -1
|
5309
5309
|
};
|
5310
|
-
case
|
5310
|
+
case Gi:
|
5311
5311
|
return {
|
5312
5312
|
...e,
|
5313
5313
|
isExpanded: !0,
|
@@ -5348,7 +5348,7 @@ function Qi(e, t = {}) {
|
|
5348
5348
|
...e,
|
5349
5349
|
selectionIndex: -1
|
5350
5350
|
};
|
5351
|
-
case
|
5351
|
+
case Gt:
|
5352
5352
|
return {
|
5353
5353
|
...e,
|
5354
5354
|
triggerId: t.payload
|
@@ -5363,7 +5363,7 @@ function Qi(e, t = {}) {
|
|
5363
5363
|
}
|
5364
5364
|
}
|
5365
5365
|
function Yn() {
|
5366
|
-
return Fi(
|
5366
|
+
return Fi(ft);
|
5367
5367
|
}
|
5368
5368
|
var qe = w.forwardRef(({
|
5369
5369
|
as: e = w.Fragment,
|
@@ -5387,7 +5387,7 @@ var qe = w.forwardRef(({
|
|
5387
5387
|
};
|
5388
5388
|
return /* @__PURE__ */ d(e, {
|
5389
5389
|
...i,
|
5390
|
-
children: /* @__PURE__ */ d(
|
5390
|
+
children: /* @__PURE__ */ d(Gn, {
|
5391
5391
|
id: t,
|
5392
5392
|
children: r
|
5393
5393
|
})
|
@@ -5404,7 +5404,7 @@ var Qe = w.forwardRef(({
|
|
5404
5404
|
controls: a
|
5405
5405
|
},
|
5406
5406
|
props: o
|
5407
|
-
} =
|
5407
|
+
} = jn({
|
5408
5408
|
...t,
|
5409
5409
|
ref: r
|
5410
5410
|
});
|
@@ -5470,7 +5470,7 @@ var qn = w.forwardRef(({
|
|
5470
5470
|
});
|
5471
5471
|
});
|
5472
5472
|
qn.displayName = "MenuItems";
|
5473
|
-
var
|
5473
|
+
var ht = w.forwardRef(({
|
5474
5474
|
as: e = "a",
|
5475
5475
|
component: t,
|
5476
5476
|
onSelect: r,
|
@@ -5485,7 +5485,7 @@ var mt = w.forwardRef(({
|
|
5485
5485
|
isLink: !0,
|
5486
5486
|
onSelect: r || Kt
|
5487
5487
|
})));
|
5488
|
-
|
5488
|
+
ht.displayName = "MenuLink";
|
5489
5489
|
var Qn = w.forwardRef(({
|
5490
5490
|
portal: e = !0,
|
5491
5491
|
...t
|
@@ -5528,7 +5528,7 @@ var Kn = w.forwardRef(({
|
|
5528
5528
|
});
|
5529
5529
|
});
|
5530
5530
|
Kn.displayName = "MenuPopover";
|
5531
|
-
function
|
5531
|
+
function dt({
|
5532
5532
|
children: e,
|
5533
5533
|
withMinWidth: t = !0,
|
5534
5534
|
className: r,
|
@@ -5536,7 +5536,7 @@ function pt({
|
|
5536
5536
|
}) {
|
5537
5537
|
return /* @__PURE__ */ d(Qn, {
|
5538
5538
|
...n,
|
5539
|
-
className:
|
5539
|
+
className: at({
|
5540
5540
|
"tw-min-w-[13.125rem]": t
|
5541
5541
|
}, "motion-safe:data-[reach-menu-list]:tw-animate-slideDown motion-safe:data-[reach-menu-items]:tw-animate-slideDown tw-z-[1] tw-mt-2 tw-bg-white tw-shadow-[0_1px_2px_0_rgb(60,64,67,0.3),0_2px_6px_2px_rgb(60,64,67,0.15)] tw-outline-none tw-will-change-transform", r),
|
5542
5542
|
children: e
|
@@ -5552,7 +5552,7 @@ function Ki({
|
|
5552
5552
|
}));
|
5553
5553
|
return /* @__PURE__ */ k(qe, {
|
5554
5554
|
children: [/* @__PURE__ */ k(Qe, {
|
5555
|
-
as:
|
5555
|
+
as: ee,
|
5556
5556
|
className: "aria-expanded:tw-text-primary-700 aria-expanded:tw-bg-primary-100 aria-expanded:tw-border-primary-100 aria-expanded:tw-duration-150",
|
5557
5557
|
variant: "ghost",
|
5558
5558
|
colorScheme: "primary",
|
@@ -5582,9 +5582,9 @@ function Ki({
|
|
5582
5582
|
})
|
5583
5583
|
})]
|
5584
5584
|
})]
|
5585
|
-
}), /* @__PURE__ */ d(
|
5585
|
+
}), /* @__PURE__ */ d(dt, {
|
5586
5586
|
className: "tw-grid tw-max-w-[250px] tw-grid-cols-2 tw-gap-3 tw-px-4 tw-py-4",
|
5587
|
-
children: n.map((a) => /* @__PURE__ */ k(
|
5587
|
+
children: n.map((a) => /* @__PURE__ */ k(ht, {
|
5588
5588
|
className: "data-selected:tw-duration-150 tw-flex tw-flex-col tw-items-center tw-gap-2 tw-rounded-lg tw-px-2 tw-py-2 tw-text-center tw-text-sm tw-font-light tw-text-black tw-no-underline tw-transition-colors tw-duration-500 hover:tw-cursor-pointer hover:tw-bg-gray-50 hover:tw-duration-150 data-[selected]:tw-cursor-pointer data-[selected]:tw-bg-gray-50",
|
5589
5589
|
href: a.url,
|
5590
5590
|
children: [/* @__PURE__ */ d("img", {
|
@@ -5599,14 +5599,14 @@ function Ki({
|
|
5599
5599
|
})]
|
5600
5600
|
});
|
5601
5601
|
}
|
5602
|
-
function
|
5602
|
+
function jr({
|
5603
5603
|
children: e,
|
5604
5604
|
className: t,
|
5605
5605
|
...r
|
5606
5606
|
}) {
|
5607
5607
|
return /* @__PURE__ */ d("h1", {
|
5608
5608
|
...r,
|
5609
|
-
className:
|
5609
|
+
className: at("tw-my-0 tw-mr-auto tw-ml-2 tw-text-lg tw-font-light tw-leading-none tw-tracking-wide tw-text-black md:tw-text-xl lg:tw-text-2xl", t),
|
5610
5610
|
children: e
|
5611
5611
|
});
|
5612
5612
|
}
|
@@ -5637,7 +5637,7 @@ function as({
|
|
5637
5637
|
return /* @__PURE__ */ k(qe, {
|
5638
5638
|
children: [/* @__PURE__ */ k(Qe, {
|
5639
5639
|
className: "aria-expanded:tw-text-primary-700 aria-expanded:tw-bg-primary-100 aria-expanded:tw-border-primary-100 tw-hidden aria-expanded:tw-duration-150 sm:tw-inline-block",
|
5640
|
-
as:
|
5640
|
+
as: ee,
|
5641
5641
|
variant: "ghost",
|
5642
5642
|
colorScheme: "primary",
|
5643
5643
|
compact: !0,
|
@@ -5668,14 +5668,14 @@ function as({
|
|
5668
5668
|
})]
|
5669
5669
|
})]
|
5670
5670
|
})]
|
5671
|
-
}), /* @__PURE__ */ k(
|
5672
|
-
children: [t && /* @__PURE__ */ d(
|
5671
|
+
}), /* @__PURE__ */ k(dt, {
|
5672
|
+
children: [t && /* @__PURE__ */ d(It, {
|
5673
5673
|
href: t,
|
5674
5674
|
label: r.formatMessage({
|
5675
5675
|
id: "documentation"
|
5676
5676
|
}),
|
5677
5677
|
icon: /* @__PURE__ */ k("svg", {
|
5678
|
-
className:
|
5678
|
+
className: Mt,
|
5679
5679
|
"aria-hidden": !0,
|
5680
5680
|
xmlns: "http://www.w3.org/2000/svg",
|
5681
5681
|
viewBox: "0 0 100 100",
|
@@ -5689,7 +5689,7 @@ function as({
|
|
5689
5689
|
d: "M78.521 5H21.479a4.067 4.067 0 00-4.063 4.063v81.875a4.067 4.067 0 004.063 4.063h43.522c.161 0 .314-.032.46-.08.023-.007.045-.012.067-.021.148-.056.282-.136.404-.233.011-.008.024-.011.034-.02L82.05 81.083c.015-.013.026-.029.041-.042a1.27 1.27 0 00.114-.118c.03-.034.06-.068.086-.104.03-.041.056-.084.082-.128a1.2 1.2 0 00.066-.122c.021-.045.038-.092.055-.139a1.315 1.315 0 00.084-.43c.001-.021.006-.041.006-.062V9.063A4.068 4.068 0 0078.521 5zM20.417 90.938V9.063c0-.586.476-1.063 1.062-1.063h57.042c.586 0 1.063.477 1.063 1.063v69.374H65a1.5 1.5 0 00-1.5 1.5V92H21.479a1.063 1.063 0 01-1.062-1.062zm56.562-9.501L66.5 90.273v-8.837h10.479z"
|
5690
5690
|
})]
|
5691
5691
|
})
|
5692
|
-
}), /* @__PURE__ */ d(
|
5692
|
+
}), /* @__PURE__ */ d(It, {
|
5693
5693
|
href: Xr(rs, `[${e.applicationName}] Support Request`, r.formatMessage({
|
5694
5694
|
id: "contactUsMailBody"
|
5695
5695
|
}), e),
|
@@ -5697,7 +5697,7 @@ function as({
|
|
5697
5697
|
id: "contactus"
|
5698
5698
|
}),
|
5699
5699
|
icon: /* @__PURE__ */ d("svg", {
|
5700
|
-
className:
|
5700
|
+
className: Mt,
|
5701
5701
|
"aria-hidden": !0,
|
5702
5702
|
xmlns: "http://www.w3.org/2000/svg",
|
5703
5703
|
viewBox: "0 0 100 100",
|
@@ -5710,7 +5710,7 @@ function as({
|
|
5710
5710
|
})
|
5711
5711
|
})
|
5712
5712
|
})
|
5713
|
-
}), /* @__PURE__ */ d(
|
5713
|
+
}), /* @__PURE__ */ d(It, {
|
5714
5714
|
href: Xr(ns, `[${e.applicationName}] Sales Contact Request`, r.formatMessage({
|
5715
5715
|
id: "contactSalesMailBody"
|
5716
5716
|
}), e),
|
@@ -5718,7 +5718,7 @@ function as({
|
|
5718
5718
|
id: "contactSales"
|
5719
5719
|
}),
|
5720
5720
|
icon: /* @__PURE__ */ d("svg", {
|
5721
|
-
className:
|
5721
|
+
className: Mt,
|
5722
5722
|
"aria-hidden": !0,
|
5723
5723
|
xmlns: "http://www.w3.org/2000/svg",
|
5724
5724
|
viewBox: "0 0 100 100",
|
@@ -5731,41 +5731,16 @@ function as({
|
|
5731
5731
|
})
|
5732
5732
|
})
|
5733
5733
|
})
|
5734
|
-
}), /* @__PURE__ */ d(rt, {
|
5735
|
-
href: "https://slack.xcomponent.com",
|
5736
|
-
label: r.formatMessage({
|
5737
|
-
id: "contactDevelopers"
|
5738
|
-
}),
|
5739
|
-
icon: /* @__PURE__ */ k("svg", {
|
5740
|
-
className: nt,
|
5741
|
-
viewBox: "8 8 30 30",
|
5742
|
-
fill: "none",
|
5743
|
-
xmlns: "http://www.w3.org/2000/svg",
|
5744
|
-
"aria-hidden": !0,
|
5745
|
-
children: [/* @__PURE__ */ d("path", {
|
5746
|
-
d: "M16.535 27.397a2.711 2.711 0 01-2.704 2.705 2.711 2.711 0 01-2.705-2.705 2.711 2.711 0 012.705-2.705h2.704v2.705zM17.898 27.397a2.711 2.711 0 012.705-2.705 2.711 2.711 0 012.705 2.705v6.772a2.712 2.712 0 01-2.705 2.705 2.711 2.711 0 01-2.705-2.705v-6.772z",
|
5747
|
-
fill: "#E01E5A"
|
5748
|
-
}), /* @__PURE__ */ d("path", {
|
5749
|
-
d: "M20.603 16.535a2.711 2.711 0 01-2.705-2.704 2.711 2.711 0 012.705-2.705 2.711 2.711 0 012.705 2.705v2.704h-2.705zM20.603 17.898a2.712 2.712 0 012.705 2.705 2.711 2.711 0 01-2.705 2.705h-6.772a2.711 2.711 0 01-2.705-2.705 2.711 2.711 0 012.705-2.705h6.772z",
|
5750
|
-
fill: "#36C5F0"
|
5751
|
-
}), /* @__PURE__ */ d("path", {
|
5752
|
-
d: "M31.465 20.603a2.711 2.711 0 012.704-2.705 2.711 2.711 0 012.705 2.705 2.711 2.711 0 01-2.705 2.705h-2.704v-2.705zM30.102 20.603a2.711 2.711 0 01-2.705 2.705 2.711 2.711 0 01-2.705-2.705v-6.772a2.711 2.711 0 012.705-2.705 2.711 2.711 0 012.705 2.705v6.772z",
|
5753
|
-
fill: "#2EB67D"
|
5754
|
-
}), /* @__PURE__ */ d("path", {
|
5755
|
-
d: "M27.397 31.465a2.711 2.711 0 012.705 2.704 2.711 2.711 0 01-2.705 2.705 2.712 2.712 0 01-2.705-2.705v-2.704h2.705zM27.397 30.102a2.711 2.711 0 01-2.705-2.705 2.711 2.711 0 012.705-2.705h6.772a2.711 2.711 0 012.705 2.705 2.711 2.711 0 01-2.705 2.705h-6.772z",
|
5756
|
-
fill: "#ECB22E"
|
5757
|
-
})]
|
5758
|
-
})
|
5759
5734
|
})]
|
5760
5735
|
})]
|
5761
5736
|
});
|
5762
5737
|
}
|
5763
|
-
function
|
5738
|
+
function It({
|
5764
5739
|
href: e,
|
5765
5740
|
label: t,
|
5766
5741
|
icon: r
|
5767
5742
|
}) {
|
5768
|
-
return /* @__PURE__ */ k(
|
5743
|
+
return /* @__PURE__ */ k(ht, {
|
5769
5744
|
className: "tw-m-0 tw-flex tw-items-center tw-gap-4 tw-whitespace-nowrap tw-py-2 tw-px-4 tw-text-base tw-font-normal tw-leading-normal tw-tracking-normal tw-text-black tw-no-underline hover:tw-cursor-pointer hover:tw-bg-gray-50 data-[selected]:tw-cursor-pointer data-[selected]:tw-bg-gray-50",
|
5770
5745
|
href: e,
|
5771
5746
|
target: "_blank",
|
@@ -5773,7 +5748,7 @@ function rt({
|
|
5773
5748
|
children: [r, t]
|
5774
5749
|
});
|
5775
5750
|
}
|
5776
|
-
const
|
5751
|
+
const Mt = "tw-w-[1.5rem] tw-h-[1.5rem] tw-block", $n = "x4b.language", os = (e) => {
|
5777
5752
|
window.localStorage.setItem($n, e);
|
5778
5753
|
};
|
5779
5754
|
function is() {
|
@@ -5790,7 +5765,7 @@ function ss({
|
|
5790
5765
|
}) {
|
5791
5766
|
return /* @__PURE__ */ k(qe, {
|
5792
5767
|
children: [/* @__PURE__ */ d(Qe, {
|
5793
|
-
as:
|
5768
|
+
as: ee,
|
5794
5769
|
className: "aria-expanded:tw-border-gray-100 aria-expanded:tw-bg-gray-100 aria-expanded:tw-text-gray-700 aria-expanded:tw-duration-150",
|
5795
5770
|
variant: "ghost",
|
5796
5771
|
colorScheme: "gray",
|
@@ -5819,7 +5794,7 @@ function ss({
|
|
5819
5794
|
})]
|
5820
5795
|
})]
|
5821
5796
|
})
|
5822
|
-
}), /* @__PURE__ */ d(
|
5797
|
+
}), /* @__PURE__ */ d(dt, {
|
5823
5798
|
withMinWidth: !1,
|
5824
5799
|
className: "tw-min-w-fit",
|
5825
5800
|
children: t.filter((n) => Vr[n]).map((n) => /* @__PURE__ */ d(Wn, {
|
@@ -5837,7 +5812,7 @@ function ls({
|
|
5837
5812
|
onClick: t
|
5838
5813
|
}) {
|
5839
5814
|
const r = Re();
|
5840
|
-
return /* @__PURE__ */ k(
|
5815
|
+
return /* @__PURE__ */ k(ee, {
|
5841
5816
|
className: "tw-hidden sm:tw-inline-block",
|
5842
5817
|
variant: "ghost",
|
5843
5818
|
colorScheme: "primary",
|
@@ -5884,7 +5859,7 @@ function us({
|
|
5884
5859
|
return /* @__PURE__ */ k(qe, {
|
5885
5860
|
children: [/* @__PURE__ */ k(Qe, {
|
5886
5861
|
className: "!tw-px-0 !tw-py-0 tw-transition-opacity hover:tw-opacity-80 aria-expanded:tw-opacity-80 aria-expanded:tw-duration-150",
|
5887
|
-
as:
|
5862
|
+
as: ee,
|
5888
5863
|
variant: "ghost",
|
5889
5864
|
colorScheme: "primary",
|
5890
5865
|
compact: !0,
|
@@ -5922,7 +5897,7 @@ function us({
|
|
5922
5897
|
clipPath: "url(#user-badge--clip-path)"
|
5923
5898
|
})]
|
5924
5899
|
})]
|
5925
|
-
}), /* @__PURE__ */ k(
|
5900
|
+
}), /* @__PURE__ */ k(dt, {
|
5926
5901
|
withMinWidth: !1,
|
5927
5902
|
className: "tw-w-[310px]",
|
5928
5903
|
children: [/* @__PURE__ */ k("div", {
|
@@ -5930,8 +5905,8 @@ function us({
|
|
5930
5905
|
children: [/* @__PURE__ */ d("div", {
|
5931
5906
|
className: "tw-overflow-hidden tw-overflow-ellipsis tw-whitespace-nowrap tw-text-base tw-font-semibold tw-leading-tight tw-text-black",
|
5932
5907
|
children: e
|
5933
|
-
}), /* @__PURE__ */ d(
|
5934
|
-
as:
|
5908
|
+
}), /* @__PURE__ */ d(ht, {
|
5909
|
+
as: ee,
|
5935
5910
|
className: "tw-self-end data-[selected]:[&:not(:hover)]:tw-ring data-[selected]:[&:not(:hover)]:tw-ring-gray-300",
|
5936
5911
|
variant: "outline",
|
5937
5912
|
colorScheme: "gray",
|
@@ -5956,39 +5931,40 @@ function cs({
|
|
5956
5931
|
applications: t,
|
5957
5932
|
notificationCount: r,
|
5958
5933
|
onNotificationClick: n,
|
5959
|
-
|
5960
|
-
|
5961
|
-
|
5962
|
-
|
5963
|
-
|
5964
|
-
|
5965
|
-
|
5966
|
-
|
5967
|
-
|
5968
|
-
|
5969
|
-
|
5934
|
+
onInstallationClick: a,
|
5935
|
+
onToggleMenuClick: o,
|
5936
|
+
language: i,
|
5937
|
+
languages: l,
|
5938
|
+
onLanguageChange: u,
|
5939
|
+
username: f,
|
5940
|
+
version: c,
|
5941
|
+
logout: h,
|
5942
|
+
refreshToken: m,
|
5943
|
+
loginUrl: b,
|
5944
|
+
withMaxWith: M = !1,
|
5945
|
+
className: R,
|
5970
5946
|
...I
|
5971
5947
|
}) {
|
5972
|
-
const
|
5973
|
-
const
|
5974
|
-
ri(
|
5948
|
+
const x = Re(), p = t == null ? void 0 : t[e], g = t == null ? void 0 : t["x4b-settings"], N = () => {
|
5949
|
+
const y = !ti();
|
5950
|
+
ri(y), o && o(y);
|
5975
5951
|
};
|
5976
|
-
return
|
5952
|
+
return p ? /* @__PURE__ */ d("header", {
|
5977
5953
|
...I,
|
5978
5954
|
"aria-label": "Global",
|
5979
|
-
className:
|
5955
|
+
className: at(R, "tw-box-border tw-bg-white ", m && "tw-shadow-[0_0_10px_0_rgba(72,40,83,0.1)]"),
|
5980
5956
|
children: /* @__PURE__ */ k("nav", {
|
5981
5957
|
"aria-label": "top",
|
5982
|
-
className:
|
5983
|
-
children: [
|
5958
|
+
className: at(m ? "tw-gap-0 sm:tw-gap-1 lg:tw-gap-2" : "tw-gap-0 sm:tw-gap-1", M && "tw-mx-auto tw-max-w-7xl", "tw-text-primary-600 tw-isolate tw-m-0 tw-box-border tw-flex tw-w-full tw-flex-row tw-flex-wrap tw-items-center tw-justify-start tw-py-2 tw-px-4 tw-font-sans tw-antialiased lg:tw-px-5 xl:tw-px-3 "),
|
5959
|
+
children: [m && o && /* @__PURE__ */ k(ee, {
|
5984
5960
|
variant: "ghost",
|
5985
5961
|
colorScheme: "primary",
|
5986
5962
|
compact: !0,
|
5987
5963
|
rounded: !0,
|
5988
|
-
onClick:
|
5964
|
+
onClick: N,
|
5989
5965
|
children: [/* @__PURE__ */ d("p", {
|
5990
5966
|
className: "tw-sr-only",
|
5991
|
-
children:
|
5967
|
+
children: x.formatMessage({
|
5992
5968
|
id: "mainMenu"
|
5993
5969
|
})
|
5994
5970
|
}), /* @__PURE__ */ k("svg", {
|
@@ -5998,7 +5974,7 @@ function cs({
|
|
5998
5974
|
height: "20",
|
5999
5975
|
viewBox: "0 0 18 16",
|
6000
5976
|
children: [/* @__PURE__ */ d("title", {
|
6001
|
-
children:
|
5977
|
+
children: x.formatMessage({
|
6002
5978
|
id: "mainMenu"
|
6003
5979
|
})
|
6004
5980
|
}), /* @__PURE__ */ d("g", {
|
@@ -6015,27 +5991,40 @@ function cs({
|
|
6015
5991
|
width: "34",
|
6016
5992
|
height: "34",
|
6017
5993
|
"aria-hidden": !0,
|
6018
|
-
src: `data:image/svg+xml;base64,${
|
5994
|
+
src: `data:image/svg+xml;base64,${p.logo}`,
|
6019
5995
|
className: "tw-my-0 tw-block"
|
6020
|
-
}), /* @__PURE__ */ d(
|
5996
|
+
}), /* @__PURE__ */ d(jr, {
|
6021
5997
|
className: "tw-hidden md:tw-block",
|
6022
|
-
children:
|
6023
|
-
}), /* @__PURE__ */ d(
|
5998
|
+
children: p.name
|
5999
|
+
}), /* @__PURE__ */ d(jr, {
|
6024
6000
|
className: "tw-block md:tw-hidden",
|
6025
|
-
children:
|
6026
|
-
}),
|
6001
|
+
children: p.shortname || p.name
|
6002
|
+
}), a !== void 0 && /* @__PURE__ */ d(ee, {
|
6003
|
+
as: "a",
|
6004
|
+
variant: "ghost",
|
6005
|
+
colorScheme: "primary",
|
6006
|
+
compact: !1,
|
6007
|
+
rounded: !1,
|
6008
|
+
"aria-label": x.formatMessage({
|
6009
|
+
id: "installGateway"
|
6010
|
+
}),
|
6011
|
+
onClick: a,
|
6012
|
+
children: x.formatMessage({
|
6013
|
+
id: "installGateway"
|
6014
|
+
})
|
6015
|
+
}), r !== void 0 && m && /* @__PURE__ */ d(ls, {
|
6027
6016
|
count: r,
|
6028
6017
|
onClick: n
|
6029
|
-
}),
|
6018
|
+
}), g && m && /* @__PURE__ */ k(ee, {
|
6030
6019
|
as: "a",
|
6031
6020
|
variant: "ghost",
|
6032
6021
|
colorScheme: "primary",
|
6033
6022
|
compact: !0,
|
6034
6023
|
rounded: !0,
|
6035
|
-
href: `${
|
6024
|
+
href: `${g.url}${m ? `#refreshToken=${m}` : ""}`,
|
6036
6025
|
children: [/* @__PURE__ */ d("p", {
|
6037
6026
|
className: "tw-sr-only",
|
6038
|
-
children:
|
6027
|
+
children: x.formatMessage({
|
6039
6028
|
id: "settings"
|
6040
6029
|
})
|
6041
6030
|
}), /* @__PURE__ */ k("svg", {
|
@@ -6045,7 +6034,7 @@ function cs({
|
|
6045
6034
|
height: "22",
|
6046
6035
|
viewBox: "0 0 22 22",
|
6047
6036
|
children: [/* @__PURE__ */ d("title", {
|
6048
|
-
children:
|
6037
|
+
children: x.formatMessage({
|
6049
6038
|
id: "settings"
|
6050
6039
|
})
|
6051
6040
|
}), /* @__PURE__ */ d("g", {
|
@@ -6058,43 +6047,77 @@ function cs({
|
|
6058
6047
|
})]
|
6059
6048
|
})]
|
6060
6049
|
}), /* @__PURE__ */ d(as, {
|
6061
|
-
documentationUrl:
|
6050
|
+
documentationUrl: p.documentationUrl,
|
6062
6051
|
systemInfo: {
|
6063
|
-
applicationName:
|
6064
|
-
username:
|
6065
|
-
version:
|
6066
|
-
url:
|
6052
|
+
applicationName: p.name,
|
6053
|
+
username: f,
|
6054
|
+
version: c,
|
6055
|
+
url: p.url
|
6067
6056
|
}
|
6068
|
-
}),
|
6057
|
+
}), /* @__PURE__ */ d(ee, {
|
6058
|
+
href: "https://slack.xcomponent.com",
|
6059
|
+
as: "a",
|
6060
|
+
variant: "ghost",
|
6061
|
+
colorScheme: "primary",
|
6062
|
+
compact: !0,
|
6063
|
+
rounded: !0,
|
6064
|
+
"aria-label": x.formatMessage({
|
6065
|
+
id: "contactDevelopers"
|
6066
|
+
}),
|
6067
|
+
children: /* @__PURE__ */ k("svg", {
|
6068
|
+
viewBox: "8 8 30 30",
|
6069
|
+
fill: "none",
|
6070
|
+
xmlns: "http://www.w3.org/2000/svg",
|
6071
|
+
"aria-hidden": !0,
|
6072
|
+
className: "tw-w-[1.5rem] tw-h-[1.5rem] tw-block",
|
6073
|
+
children: [/* @__PURE__ */ d("title", {
|
6074
|
+
children: x.formatMessage({
|
6075
|
+
id: "contactDevelopers"
|
6076
|
+
})
|
6077
|
+
}), /* @__PURE__ */ d("path", {
|
6078
|
+
d: "M16.535 27.397a2.711 2.711 0 01-2.704 2.705 2.711 2.711 0 01-2.705-2.705 2.711 2.711 0 012.705-2.705h2.704v2.705zM17.898 27.397a2.711 2.711 0 012.705-2.705 2.711 2.711 0 012.705 2.705v6.772a2.712 2.712 0 01-2.705 2.705 2.711 2.711 0 01-2.705-2.705v-6.772z",
|
6079
|
+
fill: "#E01E5A"
|
6080
|
+
}), /* @__PURE__ */ d("path", {
|
6081
|
+
d: "M20.603 16.535a2.711 2.711 0 01-2.705-2.704 2.711 2.711 0 012.705-2.705 2.711 2.711 0 012.705 2.705v2.704h-2.705zM20.603 17.898a2.712 2.712 0 012.705 2.705 2.711 2.711 0 01-2.705 2.705h-6.772a2.711 2.711 0 01-2.705-2.705 2.711 2.711 0 012.705-2.705h6.772z",
|
6082
|
+
fill: "#36C5F0"
|
6083
|
+
}), /* @__PURE__ */ d("path", {
|
6084
|
+
d: "M31.465 20.603a2.711 2.711 0 012.704-2.705 2.711 2.711 0 012.705 2.705 2.711 2.711 0 01-2.705 2.705h-2.704v-2.705zM30.102 20.603a2.711 2.711 0 01-2.705 2.705 2.711 2.711 0 01-2.705-2.705v-6.772a2.711 2.711 0 012.705-2.705 2.711 2.711 0 012.705 2.705v6.772z",
|
6085
|
+
fill: "#2EB67D"
|
6086
|
+
}), /* @__PURE__ */ d("path", {
|
6087
|
+
d: "M27.397 31.465a2.711 2.711 0 012.705 2.704 2.711 2.711 0 01-2.705 2.705 2.712 2.712 0 01-2.705-2.705v-2.704h2.705zM27.397 30.102a2.711 2.711 0 01-2.705-2.705 2.711 2.711 0 012.705-2.705h6.772a2.711 2.711 0 012.705 2.705 2.711 2.711 0 01-2.705 2.705h-6.772z",
|
6088
|
+
fill: "#ECB22E"
|
6089
|
+
})]
|
6090
|
+
})
|
6091
|
+
}), m && t && /* @__PURE__ */ d(Ki, {
|
6069
6092
|
applicationDescriptions: t,
|
6070
|
-
refreshToken:
|
6071
|
-
}),
|
6072
|
-
username:
|
6073
|
-
version:
|
6074
|
-
onLogout:
|
6093
|
+
refreshToken: m
|
6094
|
+
}), m && f && c && h && /* @__PURE__ */ d(us, {
|
6095
|
+
username: f,
|
6096
|
+
version: c,
|
6097
|
+
onLogout: h
|
6075
6098
|
}), /* @__PURE__ */ d(ss, {
|
6076
|
-
language:
|
6077
|
-
languages:
|
6078
|
-
onLanguageSelected:
|
6079
|
-
}), !
|
6080
|
-
children: [/* @__PURE__ */ d(
|
6099
|
+
language: i || "en",
|
6100
|
+
languages: l || ["en"],
|
6101
|
+
onLanguageSelected: u
|
6102
|
+
}), !m && /* @__PURE__ */ k(Wo, {
|
6103
|
+
children: [/* @__PURE__ */ d(ee, {
|
6081
6104
|
className: "tw-ml-2 tw-mr-0 md:tw-ml-3 lg:tw-mr-3",
|
6082
6105
|
size: "lg",
|
6083
|
-
href:
|
6106
|
+
href: b,
|
6084
6107
|
as: "a",
|
6085
6108
|
variant: "link",
|
6086
6109
|
colorScheme: "gray",
|
6087
|
-
children:
|
6110
|
+
children: x.formatMessage({
|
6088
6111
|
id: "login"
|
6089
6112
|
})
|
6090
|
-
}), /* @__PURE__ */ d(
|
6113
|
+
}), /* @__PURE__ */ d(ee, {
|
6091
6114
|
className: "tw-ml-3 tw-hidden lg:tw-inline-block",
|
6092
6115
|
size: "xl",
|
6093
|
-
href:
|
6116
|
+
href: b,
|
6094
6117
|
as: "a",
|
6095
6118
|
variant: "solid",
|
6096
6119
|
colorScheme: "primary",
|
6097
|
-
children:
|
6120
|
+
children: x.formatMessage({
|
6098
6121
|
id: "getStartedFree"
|
6099
6122
|
})
|
6100
6123
|
})]
|
@@ -6108,7 +6131,7 @@ const fs = {
|
|
6108
6131
|
mainMenu: "Main menu",
|
6109
6132
|
settings: "Settings",
|
6110
6133
|
help: "Help",
|
6111
|
-
contactDevelopers: "Contact
|
6134
|
+
contactDevelopers: "Contact Community",
|
6112
6135
|
contactus: "Contact Support",
|
6113
6136
|
contactUsMailBody: `Hello Support team,
|
6114
6137
|
|
@@ -6134,12 +6157,13 @@ The more precise your explanation, the better our answer. \u{1F60A}>
|
|
6134
6157
|
logout: "Sign out",
|
6135
6158
|
version: "Version: {version}",
|
6136
6159
|
login: "Log in",
|
6137
|
-
getStartedFree: "Get started free"
|
6160
|
+
getStartedFree: "Get started free",
|
6161
|
+
installGateway: "Install Gateways & Agents"
|
6138
6162
|
}, hs = {
|
6139
6163
|
mainMenu: "Menu principal",
|
6140
6164
|
settings: "Param\xE8tres",
|
6141
6165
|
help: "Aide",
|
6142
|
-
contactDevelopers: "Contacter
|
6166
|
+
contactDevelopers: "Contacter la communaut\xE9",
|
6143
6167
|
contactus: "Contacter le support",
|
6144
6168
|
contactUsMailBody: `Bonjour,
|
6145
6169
|
|
@@ -6165,7 +6189,8 @@ The more precise your explanation, the better our answer. \u{1F60A}>
|
|
6165
6189
|
logout: "D\xE9connexion",
|
6166
6190
|
version: "Version : {version}",
|
6167
6191
|
login: "Se connecter",
|
6168
|
-
getStartedFree: "Essayer gratuitement"
|
6192
|
+
getStartedFree: "Essayer gratuitement",
|
6193
|
+
installGateway: "Installation des passerelles & agents"
|
6169
6194
|
}, ds = {
|
6170
6195
|
en: fs,
|
6171
6196
|
fr: hs
|
@@ -6191,14 +6216,14 @@ async function ps(e) {
|
|
6191
6216
|
hidden: Boolean(a.hidden)
|
6192
6217
|
}, n), {}) : (console.error(t.text), {});
|
6193
6218
|
}
|
6194
|
-
function
|
6219
|
+
function jt(e) {
|
6195
6220
|
this.message = e;
|
6196
6221
|
}
|
6197
|
-
|
6222
|
+
jt.prototype = new Error(), jt.prototype.name = "InvalidCharacterError";
|
6198
6223
|
var Zr = typeof window < "u" && window.atob && window.atob.bind(window) || function(e) {
|
6199
6224
|
var t = String(e).replace(/=+$/, "");
|
6200
6225
|
if (t.length % 4 == 1)
|
6201
|
-
throw new
|
6226
|
+
throw new jt("'atob' failed: The string to be decoded is not correctly encoded.");
|
6202
6227
|
for (var r, n, a = 0, o = 0, i = ""; n = t.charAt(o++); ~n && (r = a % 4 ? 64 * r + n : n, a++ % 4) ? i += String.fromCharCode(255 & r >> (-2 * a & 6)) : 0)
|
6203
6228
|
n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);
|
6204
6229
|
return i;
|
@@ -6228,20 +6253,20 @@ function vs(e) {
|
|
6228
6253
|
return Zr(t);
|
6229
6254
|
}
|
6230
6255
|
}
|
6231
|
-
function
|
6256
|
+
function lt(e) {
|
6232
6257
|
this.message = e;
|
6233
6258
|
}
|
6234
6259
|
function rr(e, t) {
|
6235
6260
|
if (typeof e != "string")
|
6236
|
-
throw new
|
6261
|
+
throw new lt("Invalid token specified");
|
6237
6262
|
var r = (t = t || {}).header === !0 ? 0 : 1;
|
6238
6263
|
try {
|
6239
6264
|
return JSON.parse(vs(e.split(".")[r]));
|
6240
6265
|
} catch (n) {
|
6241
|
-
throw new
|
6266
|
+
throw new lt("Invalid token specified: " + n.message);
|
6242
6267
|
}
|
6243
6268
|
}
|
6244
|
-
|
6269
|
+
lt.prototype = new Error(), lt.prototype.name = "InvalidTokenError";
|
6245
6270
|
const gs = (e) => {
|
6246
6271
|
if (e) {
|
6247
6272
|
const t = rr(e);
|