gearboxdownloadmodal 7.0.6 → 8.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +548 -563
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +19 -19
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/src/services/getDownloadLimit.d.ts +0 -1
package/dist/index.es.js
CHANGED
|
@@ -72,17 +72,17 @@ function ul() {
|
|
|
72
72
|
var O = g && h[g] || h[m];
|
|
73
73
|
return typeof O == "function" ? O : null;
|
|
74
74
|
}
|
|
75
|
-
var
|
|
75
|
+
var b = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
76
76
|
function Z(h) {
|
|
77
77
|
{
|
|
78
78
|
for (var O = arguments.length, N = new Array(O > 1 ? O - 1 : 0), ee = 1; ee < O; ee++)
|
|
79
79
|
N[ee - 1] = arguments[ee];
|
|
80
|
-
|
|
80
|
+
k("error", h, N);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function k(h, O, N) {
|
|
84
84
|
{
|
|
85
|
-
var ee =
|
|
85
|
+
var ee = b.ReactDebugCurrentFrame, fe = ee.getStackAddendum();
|
|
86
86
|
fe !== "" && (O += "%s", N = N.concat([fe]));
|
|
87
87
|
var me = N.map(function(ce) {
|
|
88
88
|
return String(ce);
|
|
@@ -90,10 +90,10 @@ function ul() {
|
|
|
90
90
|
me.unshift("Warning: " + O), Function.prototype.apply.call(console[h], console, me);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
var S = !1,
|
|
93
|
+
var S = !1, q = !1, T = !1, x = !1, K = !1, Y;
|
|
94
94
|
Y = Symbol.for("react.module.reference");
|
|
95
95
|
function W(h) {
|
|
96
|
-
return !!(typeof h == "string" || typeof h == "function" || h === r || h === s ||
|
|
96
|
+
return !!(typeof h == "string" || typeof h == "function" || h === r || h === s || K || h === i || h === A || h === u || x || h === p || S || q || T || typeof h == "object" && h !== null && (h.$$typeof === f || h.$$typeof === d || h.$$typeof === o || h.$$typeof === a || h.$$typeof === l || // This needs to include all possible module reference object
|
|
97
97
|
// types supported by any Flight configuration anywhere since
|
|
98
98
|
// we don't know which Flight build this will end up being used
|
|
99
99
|
// with.
|
|
@@ -154,14 +154,14 @@ function ul() {
|
|
|
154
154
|
}
|
|
155
155
|
return null;
|
|
156
156
|
}
|
|
157
|
-
var E = Object.assign, L = 0, G, y,
|
|
157
|
+
var E = Object.assign, L = 0, G, y, M, U, w, I, V;
|
|
158
158
|
function H() {
|
|
159
159
|
}
|
|
160
160
|
H.__reactDisabledLog = !0;
|
|
161
161
|
function J() {
|
|
162
162
|
{
|
|
163
163
|
if (L === 0) {
|
|
164
|
-
G = console.log, y = console.info,
|
|
164
|
+
G = console.log, y = console.info, M = console.warn, U = console.error, w = console.group, I = console.groupCollapsed, V = console.groupEnd;
|
|
165
165
|
var h = {
|
|
166
166
|
configurable: !0,
|
|
167
167
|
enumerable: !0,
|
|
@@ -197,10 +197,10 @@ function ul() {
|
|
|
197
197
|
value: y
|
|
198
198
|
}),
|
|
199
199
|
warn: E({}, h, {
|
|
200
|
-
value:
|
|
200
|
+
value: M
|
|
201
201
|
}),
|
|
202
202
|
error: E({}, h, {
|
|
203
|
-
value:
|
|
203
|
+
value: U
|
|
204
204
|
}),
|
|
205
205
|
group: E({}, h, {
|
|
206
206
|
value: w
|
|
@@ -216,7 +216,7 @@ function ul() {
|
|
|
216
216
|
L < 0 && Z("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
var F =
|
|
219
|
+
var F = b.ReactCurrentDispatcher, _;
|
|
220
220
|
function ne(h, O, N) {
|
|
221
221
|
{
|
|
222
222
|
if (_ === void 0)
|
|
@@ -284,14 +284,14 @@ function ul() {
|
|
|
284
284
|
} catch (Ye) {
|
|
285
285
|
if (Ye && ee && typeof Ye.stack == "string") {
|
|
286
286
|
for (var le = Ye.stack.split(`
|
|
287
|
-
`),
|
|
288
|
-
`), xe = le.length - 1, Ze =
|
|
287
|
+
`), Re = ee.stack.split(`
|
|
288
|
+
`), xe = le.length - 1, Ze = Re.length - 1; xe >= 1 && Ze >= 0 && le[xe] !== Re[Ze]; )
|
|
289
289
|
Ze--;
|
|
290
290
|
for (; xe >= 1 && Ze >= 0; xe--, Ze--)
|
|
291
|
-
if (le[xe] !==
|
|
291
|
+
if (le[xe] !== Re[Ze]) {
|
|
292
292
|
if (xe !== 1 || Ze !== 1)
|
|
293
293
|
do
|
|
294
|
-
if (xe--, Ze--, Ze < 0 || le[xe] !==
|
|
294
|
+
if (xe--, Ze--, Ze < 0 || le[xe] !== Re[Ze]) {
|
|
295
295
|
var Ve = `
|
|
296
296
|
` + le[xe].replace(" at new ", " at ");
|
|
297
297
|
return h.displayName && Ve.includes("<anonymous>") && (Ve = Ve.replace("<anonymous>", h.displayName)), typeof h == "function" && $.set(h, Ve), Ve;
|
|
@@ -309,15 +309,15 @@ function ul() {
|
|
|
309
309
|
function we(h, O, N) {
|
|
310
310
|
return R(h, !1);
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function We(h) {
|
|
313
313
|
var O = h.prototype;
|
|
314
314
|
return !!(O && O.isReactComponent);
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function je(h, O, N) {
|
|
317
317
|
if (h == null)
|
|
318
318
|
return "";
|
|
319
319
|
if (typeof h == "function")
|
|
320
|
-
return R(h,
|
|
320
|
+
return R(h, We(h));
|
|
321
321
|
if (typeof h == "string")
|
|
322
322
|
return ne(h);
|
|
323
323
|
switch (h) {
|
|
@@ -331,24 +331,24 @@ function ul() {
|
|
|
331
331
|
case l:
|
|
332
332
|
return we(h.render);
|
|
333
333
|
case d:
|
|
334
|
-
return
|
|
334
|
+
return je(h.type, O, N);
|
|
335
335
|
case f: {
|
|
336
336
|
var ee = h, fe = ee._payload, me = ee._init;
|
|
337
337
|
try {
|
|
338
|
-
return
|
|
338
|
+
return je(me(fe), O, N);
|
|
339
339
|
} catch {
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
return "";
|
|
344
344
|
}
|
|
345
|
-
var Be = Object.prototype.hasOwnProperty, D = {},
|
|
345
|
+
var Be = Object.prototype.hasOwnProperty, D = {}, Q = b.ReactDebugCurrentFrame;
|
|
346
346
|
function oe(h) {
|
|
347
347
|
if (h) {
|
|
348
|
-
var O = h._owner, N =
|
|
349
|
-
|
|
348
|
+
var O = h._owner, N = je(h.type, h._source, O ? O.type : null);
|
|
349
|
+
Q.setExtraStackFrame(N);
|
|
350
350
|
} else
|
|
351
|
-
|
|
351
|
+
Q.setExtraStackFrame(null);
|
|
352
352
|
}
|
|
353
353
|
function qe(h, O, N, ee, fe) {
|
|
354
354
|
{
|
|
@@ -358,8 +358,8 @@ function ul() {
|
|
|
358
358
|
var le = void 0;
|
|
359
359
|
try {
|
|
360
360
|
if (typeof h[ce] != "function") {
|
|
361
|
-
var
|
|
362
|
-
throw
|
|
361
|
+
var Re = Error((ee || "React class") + ": " + N + " type `" + ce + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof h[ce] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
362
|
+
throw Re.name = "Invariant Violation", Re;
|
|
363
363
|
}
|
|
364
364
|
le = h[ce](O, ce, ee, N, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
365
365
|
} catch (xe) {
|
|
@@ -370,7 +370,7 @@ function ul() {
|
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
var be = Array.isArray;
|
|
373
|
-
function
|
|
373
|
+
function ze(h) {
|
|
374
374
|
return be(h);
|
|
375
375
|
}
|
|
376
376
|
function $e(h) {
|
|
@@ -393,7 +393,7 @@ function ul() {
|
|
|
393
393
|
if (Ct(h))
|
|
394
394
|
return Z("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", $e(h)), Rt(h);
|
|
395
395
|
}
|
|
396
|
-
var At =
|
|
396
|
+
var At = b.ReactCurrentOwner, Cn = {
|
|
397
397
|
key: !0,
|
|
398
398
|
ref: !0,
|
|
399
399
|
__self: !0,
|
|
@@ -475,8 +475,8 @@ function ul() {
|
|
|
475
475
|
};
|
|
476
476
|
function Ta(h, O, N, ee, fe) {
|
|
477
477
|
{
|
|
478
|
-
var me, ce = {}, le = null,
|
|
479
|
-
N !== void 0 && (ut(N), le = "" + N), yr(O) && (ut(O.key), le = "" + O.key), Yt(O) && (
|
|
478
|
+
var me, ce = {}, le = null, Re = null;
|
|
479
|
+
N !== void 0 && (ut(N), le = "" + N), yr(O) && (ut(O.key), le = "" + O.key), Yt(O) && (Re = O.ref, vr(O, fe));
|
|
480
480
|
for (me in O)
|
|
481
481
|
Be.call(O, me) && !Cn.hasOwnProperty(me) && (ce[me] = O[me]);
|
|
482
482
|
if (h && h.defaultProps) {
|
|
@@ -484,17 +484,17 @@ function ul() {
|
|
|
484
484
|
for (me in xe)
|
|
485
485
|
ce[me] === void 0 && (ce[me] = xe[me]);
|
|
486
486
|
}
|
|
487
|
-
if (le ||
|
|
487
|
+
if (le || Re) {
|
|
488
488
|
var Ze = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
|
|
489
|
-
le && wt(ce, Ze),
|
|
489
|
+
le && wt(ce, Ze), Re && Ja(ce, Ze);
|
|
490
490
|
}
|
|
491
|
-
return Da(h, le,
|
|
491
|
+
return Da(h, le, Re, fe, ee, At.current, ce);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
var qr =
|
|
494
|
+
var qr = b.ReactCurrentOwner, Bi = b.ReactDebugCurrentFrame;
|
|
495
495
|
function Nt(h) {
|
|
496
496
|
if (h) {
|
|
497
|
-
var O = h._owner, N =
|
|
497
|
+
var O = h._owner, N = je(h.type, h._source, O ? O.type : null);
|
|
498
498
|
Bi.setExtraStackFrame(N);
|
|
499
499
|
} else
|
|
500
500
|
Bi.setExtraStackFrame(null);
|
|
@@ -557,7 +557,7 @@ Check the top-level render call using <` + N + ">.");
|
|
|
557
557
|
{
|
|
558
558
|
if (typeof h != "object")
|
|
559
559
|
return;
|
|
560
|
-
if (
|
|
560
|
+
if (ze(h))
|
|
561
561
|
for (var N = 0; N < h.length; N++) {
|
|
562
562
|
var ee = h[N];
|
|
563
563
|
Cr(ee) && Ui(ee, O);
|
|
@@ -616,10 +616,10 @@ Check the top-level render call using <` + N + ">.");
|
|
|
616
616
|
if (!ce) {
|
|
617
617
|
var le = "";
|
|
618
618
|
(h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (le += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
619
|
-
var
|
|
620
|
-
|
|
619
|
+
var Re = Ga(fe);
|
|
620
|
+
Re ? le += Re : le += Vi();
|
|
621
621
|
var xe;
|
|
622
|
-
h === null ? xe = "null" :
|
|
622
|
+
h === null ? xe = "null" : ze(h) ? xe = "array" : h !== void 0 && h.$$typeof === e ? (xe = "<" + (B(h.type) || "Unknown") + " />", le = " Did you accidentally export a JSX literal instead of a component?") : xe = typeof h, Z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", xe, le);
|
|
623
623
|
}
|
|
624
624
|
var Ze = Ta(h, O, N, fe, me);
|
|
625
625
|
if (Ze == null)
|
|
@@ -628,7 +628,7 @@ Check the top-level render call using <` + N + ">.");
|
|
|
628
628
|
var Ve = O.children;
|
|
629
629
|
if (Ve !== void 0)
|
|
630
630
|
if (ee)
|
|
631
|
-
if (
|
|
631
|
+
if (ze(Ve)) {
|
|
632
632
|
for (var Jt = 0; Jt < Ve.length; Jt++)
|
|
633
633
|
Qi(Ve[Jt], h);
|
|
634
634
|
Object.freeze && Object.freeze(Ve);
|
|
@@ -742,28 +742,28 @@ function fl() {
|
|
|
742
742
|
if (ts)
|
|
743
743
|
return pe;
|
|
744
744
|
ts = 1;
|
|
745
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, A = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117,
|
|
746
|
-
function
|
|
747
|
-
if (typeof
|
|
748
|
-
var T =
|
|
745
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, A = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117, b = t ? Symbol.for("react.responder") : 60118, Z = t ? Symbol.for("react.scope") : 60119;
|
|
746
|
+
function k(q) {
|
|
747
|
+
if (typeof q == "object" && q !== null) {
|
|
748
|
+
var T = q.$$typeof;
|
|
749
749
|
switch (T) {
|
|
750
750
|
case e:
|
|
751
|
-
switch (
|
|
751
|
+
switch (q = q.type, q) {
|
|
752
752
|
case l:
|
|
753
753
|
case A:
|
|
754
754
|
case r:
|
|
755
755
|
case s:
|
|
756
756
|
case i:
|
|
757
757
|
case d:
|
|
758
|
-
return
|
|
758
|
+
return q;
|
|
759
759
|
default:
|
|
760
|
-
switch (
|
|
760
|
+
switch (q = q && q.$$typeof, q) {
|
|
761
761
|
case a:
|
|
762
762
|
case u:
|
|
763
763
|
case g:
|
|
764
764
|
case p:
|
|
765
765
|
case o:
|
|
766
|
-
return
|
|
766
|
+
return q;
|
|
767
767
|
default:
|
|
768
768
|
return T;
|
|
769
769
|
}
|
|
@@ -773,36 +773,36 @@ function fl() {
|
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
|
-
function S(
|
|
777
|
-
return
|
|
778
|
-
}
|
|
779
|
-
return pe.AsyncMode = l, pe.ConcurrentMode = A, pe.ContextConsumer = a, pe.ContextProvider = o, pe.Element = e, pe.ForwardRef = u, pe.Fragment = r, pe.Lazy = g, pe.Memo = p, pe.Portal = n, pe.Profiler = s, pe.StrictMode = i, pe.Suspense = d, pe.isAsyncMode = function(
|
|
780
|
-
return S(
|
|
781
|
-
}, pe.isConcurrentMode = S, pe.isContextConsumer = function(
|
|
782
|
-
return
|
|
783
|
-
}, pe.isContextProvider = function(
|
|
784
|
-
return
|
|
785
|
-
}, pe.isElement = function(
|
|
786
|
-
return typeof
|
|
787
|
-
}, pe.isForwardRef = function(
|
|
788
|
-
return
|
|
789
|
-
}, pe.isFragment = function(
|
|
790
|
-
return
|
|
791
|
-
}, pe.isLazy = function(
|
|
792
|
-
return
|
|
793
|
-
}, pe.isMemo = function(
|
|
794
|
-
return
|
|
795
|
-
}, pe.isPortal = function(
|
|
796
|
-
return
|
|
797
|
-
}, pe.isProfiler = function(
|
|
798
|
-
return
|
|
799
|
-
}, pe.isStrictMode = function(
|
|
800
|
-
return
|
|
801
|
-
}, pe.isSuspense = function(
|
|
802
|
-
return
|
|
803
|
-
}, pe.isValidElementType = function(
|
|
804
|
-
return typeof
|
|
805
|
-
}, pe.typeOf =
|
|
776
|
+
function S(q) {
|
|
777
|
+
return k(q) === A;
|
|
778
|
+
}
|
|
779
|
+
return pe.AsyncMode = l, pe.ConcurrentMode = A, pe.ContextConsumer = a, pe.ContextProvider = o, pe.Element = e, pe.ForwardRef = u, pe.Fragment = r, pe.Lazy = g, pe.Memo = p, pe.Portal = n, pe.Profiler = s, pe.StrictMode = i, pe.Suspense = d, pe.isAsyncMode = function(q) {
|
|
780
|
+
return S(q) || k(q) === l;
|
|
781
|
+
}, pe.isConcurrentMode = S, pe.isContextConsumer = function(q) {
|
|
782
|
+
return k(q) === a;
|
|
783
|
+
}, pe.isContextProvider = function(q) {
|
|
784
|
+
return k(q) === o;
|
|
785
|
+
}, pe.isElement = function(q) {
|
|
786
|
+
return typeof q == "object" && q !== null && q.$$typeof === e;
|
|
787
|
+
}, pe.isForwardRef = function(q) {
|
|
788
|
+
return k(q) === u;
|
|
789
|
+
}, pe.isFragment = function(q) {
|
|
790
|
+
return k(q) === r;
|
|
791
|
+
}, pe.isLazy = function(q) {
|
|
792
|
+
return k(q) === g;
|
|
793
|
+
}, pe.isMemo = function(q) {
|
|
794
|
+
return k(q) === p;
|
|
795
|
+
}, pe.isPortal = function(q) {
|
|
796
|
+
return k(q) === n;
|
|
797
|
+
}, pe.isProfiler = function(q) {
|
|
798
|
+
return k(q) === s;
|
|
799
|
+
}, pe.isStrictMode = function(q) {
|
|
800
|
+
return k(q) === i;
|
|
801
|
+
}, pe.isSuspense = function(q) {
|
|
802
|
+
return k(q) === d;
|
|
803
|
+
}, pe.isValidElementType = function(q) {
|
|
804
|
+
return typeof q == "string" || typeof q == "function" || q === r || q === A || q === s || q === i || q === d || q === f || typeof q == "object" && q !== null && (q.$$typeof === g || q.$$typeof === p || q.$$typeof === o || q.$$typeof === a || q.$$typeof === u || q.$$typeof === v || q.$$typeof === b || q.$$typeof === Z || q.$$typeof === m);
|
|
805
|
+
}, pe.typeOf = k, pe;
|
|
806
806
|
}
|
|
807
807
|
var he = {};
|
|
808
808
|
/** @license React v16.13.1
|
|
@@ -816,34 +816,34 @@ var he = {};
|
|
|
816
816
|
var ns;
|
|
817
817
|
function pl() {
|
|
818
818
|
return ns || (ns = 1, process.env.NODE_ENV !== "production" && function() {
|
|
819
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, A = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117,
|
|
820
|
-
function
|
|
819
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, A = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117, b = t ? Symbol.for("react.responder") : 60118, Z = t ? Symbol.for("react.scope") : 60119;
|
|
820
|
+
function k(R) {
|
|
821
821
|
return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
822
|
-
R === r || R === A || R === s || R === i || R === d || R === f || typeof R == "object" && R !== null && (R.$$typeof === g || R.$$typeof === p || R.$$typeof === o || R.$$typeof === a || R.$$typeof === u || R.$$typeof === v || R.$$typeof ===
|
|
822
|
+
R === r || R === A || R === s || R === i || R === d || R === f || typeof R == "object" && R !== null && (R.$$typeof === g || R.$$typeof === p || R.$$typeof === o || R.$$typeof === a || R.$$typeof === u || R.$$typeof === v || R.$$typeof === b || R.$$typeof === Z || R.$$typeof === m);
|
|
823
823
|
}
|
|
824
824
|
function S(R) {
|
|
825
825
|
if (typeof R == "object" && R !== null) {
|
|
826
826
|
var we = R.$$typeof;
|
|
827
827
|
switch (we) {
|
|
828
828
|
case e:
|
|
829
|
-
var
|
|
830
|
-
switch (
|
|
829
|
+
var We = R.type;
|
|
830
|
+
switch (We) {
|
|
831
831
|
case l:
|
|
832
832
|
case A:
|
|
833
833
|
case r:
|
|
834
834
|
case s:
|
|
835
835
|
case i:
|
|
836
836
|
case d:
|
|
837
|
-
return
|
|
837
|
+
return We;
|
|
838
838
|
default:
|
|
839
|
-
var
|
|
840
|
-
switch (
|
|
839
|
+
var je = We && We.$$typeof;
|
|
840
|
+
switch (je) {
|
|
841
841
|
case a:
|
|
842
842
|
case u:
|
|
843
843
|
case g:
|
|
844
844
|
case p:
|
|
845
845
|
case o:
|
|
846
|
-
return
|
|
846
|
+
return je;
|
|
847
847
|
default:
|
|
848
848
|
return we;
|
|
849
849
|
}
|
|
@@ -853,9 +853,9 @@ function pl() {
|
|
|
853
853
|
}
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
|
-
var
|
|
857
|
-
function
|
|
858
|
-
return
|
|
856
|
+
var q = l, T = A, x = a, K = o, Y = e, W = u, z = r, j = g, B = p, E = n, L = s, G = i, y = d, M = !1;
|
|
857
|
+
function U(R) {
|
|
858
|
+
return M || (M = !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.")), w(R) || S(R) === l;
|
|
859
859
|
}
|
|
860
860
|
function w(R) {
|
|
861
861
|
return S(R) === A;
|
|
@@ -893,7 +893,7 @@ function pl() {
|
|
|
893
893
|
function ge(R) {
|
|
894
894
|
return S(R) === d;
|
|
895
895
|
}
|
|
896
|
-
he.AsyncMode =
|
|
896
|
+
he.AsyncMode = q, he.ConcurrentMode = T, he.ContextConsumer = x, he.ContextProvider = K, he.Element = Y, he.ForwardRef = W, he.Fragment = z, he.Lazy = j, he.Memo = B, he.Portal = E, he.Profiler = L, he.StrictMode = G, he.Suspense = y, he.isAsyncMode = U, he.isConcurrentMode = w, he.isContextConsumer = I, he.isContextProvider = V, he.isElement = H, he.isForwardRef = J, he.isFragment = P, he.isLazy = F, he.isMemo = _, he.isPortal = ne, he.isProfiler = se, he.isStrictMode = $, he.isSuspense = ge, he.isValidElementType = k, he.typeOf = S;
|
|
897
897
|
}()), he;
|
|
898
898
|
}
|
|
899
899
|
var rs;
|
|
@@ -1040,21 +1040,21 @@ function gl() {
|
|
|
1040
1040
|
return I;
|
|
1041
1041
|
}
|
|
1042
1042
|
var f = "<<anonymous>>", p = {
|
|
1043
|
-
array:
|
|
1044
|
-
bigint:
|
|
1045
|
-
bool:
|
|
1046
|
-
func:
|
|
1047
|
-
number:
|
|
1048
|
-
object:
|
|
1049
|
-
string:
|
|
1050
|
-
symbol:
|
|
1043
|
+
array: b("array"),
|
|
1044
|
+
bigint: b("bigint"),
|
|
1045
|
+
bool: b("boolean"),
|
|
1046
|
+
func: b("function"),
|
|
1047
|
+
number: b("number"),
|
|
1048
|
+
object: b("object"),
|
|
1049
|
+
string: b("string"),
|
|
1050
|
+
symbol: b("symbol"),
|
|
1051
1051
|
any: Z(),
|
|
1052
|
-
arrayOf:
|
|
1052
|
+
arrayOf: k,
|
|
1053
1053
|
element: S(),
|
|
1054
|
-
elementType:
|
|
1054
|
+
elementType: q(),
|
|
1055
1055
|
instanceOf: T,
|
|
1056
1056
|
node: W(),
|
|
1057
|
-
objectOf:
|
|
1057
|
+
objectOf: K,
|
|
1058
1058
|
oneOf: x,
|
|
1059
1059
|
oneOfType: Y,
|
|
1060
1060
|
shape: j,
|
|
@@ -1090,7 +1090,7 @@ function gl() {
|
|
|
1090
1090
|
var J = H.bind(null, !1);
|
|
1091
1091
|
return J.isRequired = H.bind(null, !0), J;
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function b(w) {
|
|
1094
1094
|
function I(V, H, J, P, F, _) {
|
|
1095
1095
|
var ne = V[H], se = G(ne);
|
|
1096
1096
|
if (se !== w) {
|
|
@@ -1107,7 +1107,7 @@ function gl() {
|
|
|
1107
1107
|
function Z() {
|
|
1108
1108
|
return v(o);
|
|
1109
1109
|
}
|
|
1110
|
-
function
|
|
1110
|
+
function k(w) {
|
|
1111
1111
|
function I(V, H, J, P, F) {
|
|
1112
1112
|
if (typeof w != "function")
|
|
1113
1113
|
return new m("Property `" + F + "` of component `" + J + "` has invalid PropType notation inside arrayOf.");
|
|
@@ -1136,7 +1136,7 @@ function gl() {
|
|
|
1136
1136
|
}
|
|
1137
1137
|
return v(w);
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1139
|
+
function q() {
|
|
1140
1140
|
function w(I, V, H, J, P) {
|
|
1141
1141
|
var F = I[V];
|
|
1142
1142
|
if (!t.isValidElementType(F)) {
|
|
@@ -1150,7 +1150,7 @@ function gl() {
|
|
|
1150
1150
|
function T(w) {
|
|
1151
1151
|
function I(V, H, J, P, F) {
|
|
1152
1152
|
if (!(V[H] instanceof w)) {
|
|
1153
|
-
var _ = w.name || f, ne =
|
|
1153
|
+
var _ = w.name || f, ne = U(V[H]);
|
|
1154
1154
|
return new m("Invalid " + P + " `" + F + "` of type " + ("`" + ne + "` supplied to `" + J + "`, expected ") + ("instance of `" + _ + "`."));
|
|
1155
1155
|
}
|
|
1156
1156
|
return null;
|
|
@@ -1174,7 +1174,7 @@ function gl() {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
return v(I);
|
|
1176
1176
|
}
|
|
1177
|
-
function
|
|
1177
|
+
function K(w) {
|
|
1178
1178
|
function I(V, H, J, P, F) {
|
|
1179
1179
|
if (typeof w != "function")
|
|
1180
1180
|
return new m("Property `" + F + "` of component `" + J + "` has invalid PropType notation inside objectOf.");
|
|
@@ -1198,7 +1198,7 @@ function gl() {
|
|
|
1198
1198
|
var V = w[I];
|
|
1199
1199
|
if (typeof V != "function")
|
|
1200
1200
|
return s(
|
|
1201
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
1201
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + M(V) + " at index " + I + "."
|
|
1202
1202
|
), o;
|
|
1203
1203
|
}
|
|
1204
1204
|
function H(J, P, F, _, ne) {
|
|
@@ -1316,7 +1316,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
1316
1316
|
}
|
|
1317
1317
|
return I;
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function M(w) {
|
|
1320
1320
|
var I = y(w);
|
|
1321
1321
|
switch (I) {
|
|
1322
1322
|
case "array":
|
|
@@ -1330,7 +1330,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
1330
1330
|
return I;
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function U(w) {
|
|
1334
1334
|
return !w.constructor || !w.constructor.name ? f : w.constructor.name;
|
|
1335
1335
|
}
|
|
1336
1336
|
return p.checkPropTypes = i, p.resetWarningCache = i.resetWarningCache, p.PropTypes = p, p;
|
|
@@ -2044,12 +2044,12 @@ dt.createBytes = function(t, e) {
|
|
|
2044
2044
|
}
|
|
2045
2045
|
for (var m = 0, u = 0; u < e.length; u++)
|
|
2046
2046
|
m += e[u].totalCount;
|
|
2047
|
-
for (var v = new Array(m),
|
|
2047
|
+
for (var v = new Array(m), b = 0, u = 0; u < r; u++)
|
|
2048
2048
|
for (var a = 0; a < e.length; a++)
|
|
2049
|
-
u < s[a].length && (v[
|
|
2049
|
+
u < s[a].length && (v[b++] = s[a][u]);
|
|
2050
2050
|
for (var u = 0; u < i; u++)
|
|
2051
2051
|
for (var a = 0; a < e.length; a++)
|
|
2052
|
-
u < o[a].length && (v[
|
|
2052
|
+
u < o[a].length && (v[b++] = o[a][u]);
|
|
2053
2053
|
return v;
|
|
2054
2054
|
};
|
|
2055
2055
|
var Ol = dt, xi = {};
|
|
@@ -2133,14 +2133,14 @@ var Pl = {
|
|
|
2133
2133
|
return Jl.default.createElement(Tl.default, Wl({}, d, {
|
|
2134
2134
|
bgColor: r,
|
|
2135
2135
|
bgD: p.map(function(g, m) {
|
|
2136
|
-
return g.map(function(v,
|
|
2137
|
-
return v ? "" : "M " +
|
|
2136
|
+
return g.map(function(v, b) {
|
|
2137
|
+
return v ? "" : "M " + b + " " + m + " l 1 0 0 1 -1 0 Z";
|
|
2138
2138
|
}).join(" ");
|
|
2139
2139
|
}).join(" "),
|
|
2140
2140
|
fgColor: s,
|
|
2141
2141
|
fgD: p.map(function(g, m) {
|
|
2142
|
-
return g.map(function(v,
|
|
2143
|
-
return v ? "M " +
|
|
2142
|
+
return g.map(function(v, b) {
|
|
2143
|
+
return v ? "M " + b + " " + m + " l 1 0 0 1 -1 0 Z" : "";
|
|
2144
2144
|
}).join(" ");
|
|
2145
2145
|
}).join(" "),
|
|
2146
2146
|
ref: e,
|
|
@@ -2552,8 +2552,8 @@ class Vn extends or {
|
|
|
2552
2552
|
}
|
|
2553
2553
|
const d = this.resolve(e, n);
|
|
2554
2554
|
let f = d && d.res;
|
|
2555
|
-
const p = d && d.usedKey || o, g = d && d.exactUsedKey || o, m = Object.prototype.toString.apply(f), v = ["[object Number]", "[object Function]", "[object RegExp]"],
|
|
2556
|
-
if (Z && f &&
|
|
2555
|
+
const p = d && d.usedKey || o, g = d && d.exactUsedKey || o, m = Object.prototype.toString.apply(f), v = ["[object Number]", "[object Function]", "[object RegExp]"], b = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, Z = !this.i18nFormat || this.i18nFormat.handleAsObject, k = !te(f) && typeof f != "boolean" && typeof f != "number";
|
|
2556
|
+
if (Z && f && k && v.indexOf(m) < 0 && !(te(b) && Array.isArray(f))) {
|
|
2557
2557
|
if (!n.returnObjects && !this.options.returnObjects) {
|
|
2558
2558
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2559
2559
|
const S = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, f, {
|
|
@@ -2563,54 +2563,54 @@ class Vn extends or {
|
|
|
2563
2563
|
return i ? (d.res = S, d.usedParams = this.getUsedParamsDetails(n), d) : S;
|
|
2564
2564
|
}
|
|
2565
2565
|
if (s) {
|
|
2566
|
-
const S = Array.isArray(f),
|
|
2566
|
+
const S = Array.isArray(f), q = S ? [] : {}, T = S ? g : p;
|
|
2567
2567
|
for (const x in f)
|
|
2568
2568
|
if (Object.prototype.hasOwnProperty.call(f, x)) {
|
|
2569
|
-
const
|
|
2570
|
-
|
|
2569
|
+
const K = `${T}${s}${x}`;
|
|
2570
|
+
q[x] = this.translate(K, {
|
|
2571
2571
|
...n,
|
|
2572
2572
|
joinArrays: !1,
|
|
2573
2573
|
ns: a
|
|
2574
|
-
}),
|
|
2574
|
+
}), q[x] === K && (q[x] = f[x]);
|
|
2575
2575
|
}
|
|
2576
|
-
f =
|
|
2576
|
+
f = q;
|
|
2577
2577
|
}
|
|
2578
|
-
} else if (Z && te(
|
|
2579
|
-
f = f.join(
|
|
2578
|
+
} else if (Z && te(b) && Array.isArray(f))
|
|
2579
|
+
f = f.join(b), f && (f = this.extendTranslation(f, e, n, r));
|
|
2580
2580
|
else {
|
|
2581
|
-
let S = !1,
|
|
2582
|
-
const T = n.count !== void 0 && !te(n.count), x = Vn.hasDefaultValue(n),
|
|
2581
|
+
let S = !1, q = !1;
|
|
2582
|
+
const T = n.count !== void 0 && !te(n.count), x = Vn.hasDefaultValue(n), K = T ? this.pluralResolver.getSuffix(A, n.count, n) : "", Y = n.ordinal && T ? this.pluralResolver.getSuffix(A, n.count, {
|
|
2583
2583
|
ordinal: !1
|
|
2584
|
-
}) : "", W = T && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), z = W && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${
|
|
2585
|
-
!this.isValidLookup(f) && x && (S = !0, f = z), this.isValidLookup(f) || (
|
|
2586
|
-
const B = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) &&
|
|
2587
|
-
if (
|
|
2584
|
+
}) : "", W = T && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), z = W && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${K}`] || n[`defaultValue${Y}`] || n.defaultValue;
|
|
2585
|
+
!this.isValidLookup(f) && x && (S = !0, f = z), this.isValidLookup(f) || (q = !0, f = o);
|
|
2586
|
+
const B = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && q ? void 0 : f, E = x && z !== f && this.options.updateMissing;
|
|
2587
|
+
if (q || S || E) {
|
|
2588
2588
|
if (this.logger.log(E ? "updateKey" : "missingKey", A, l, o, E ? z : f), s) {
|
|
2589
|
-
const
|
|
2589
|
+
const M = this.resolve(o, {
|
|
2590
2590
|
...n,
|
|
2591
2591
|
keySeparator: !1
|
|
2592
2592
|
});
|
|
2593
|
-
|
|
2593
|
+
M && M.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
2594
2594
|
}
|
|
2595
2595
|
let L = [];
|
|
2596
2596
|
const G = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
|
|
2597
2597
|
if (this.options.saveMissingTo === "fallback" && G && G[0])
|
|
2598
|
-
for (let
|
|
2599
|
-
L.push(G[
|
|
2598
|
+
for (let M = 0; M < G.length; M++)
|
|
2599
|
+
L.push(G[M]);
|
|
2600
2600
|
else
|
|
2601
2601
|
this.options.saveMissingTo === "all" ? L = this.languageUtils.toResolveHierarchy(n.lng || this.language) : L.push(n.lng || this.language);
|
|
2602
|
-
const y = (
|
|
2602
|
+
const y = (M, U, w) => {
|
|
2603
2603
|
const I = x && w !== f ? w : B;
|
|
2604
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
2604
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(M, l, U, I, E, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(M, l, U, I, E, n), this.emit("missingKey", M, l, U, f);
|
|
2605
2605
|
};
|
|
2606
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && T ? L.forEach((
|
|
2607
|
-
const
|
|
2608
|
-
W && n[`defaultValue${this.options.pluralSeparator}zero`] &&
|
|
2609
|
-
y([
|
|
2606
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && T ? L.forEach((M) => {
|
|
2607
|
+
const U = this.pluralResolver.getSuffixes(M, n);
|
|
2608
|
+
W && n[`defaultValue${this.options.pluralSeparator}zero`] && U.indexOf(`${this.options.pluralSeparator}zero`) < 0 && U.push(`${this.options.pluralSeparator}zero`), U.forEach((w) => {
|
|
2609
|
+
y([M], o + w, n[`defaultValue${w}`] || z);
|
|
2610
2610
|
});
|
|
2611
2611
|
}) : y(L, o, z));
|
|
2612
2612
|
}
|
|
2613
|
-
f = this.extendTranslation(f, e, n, d, r),
|
|
2613
|
+
f = this.extendTranslation(f, e, n, d, r), q && f === o && this.options.appendNamespaceToMissingKey && (f = `${l}:${o}`), (q || S) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? f = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}:${o}` : o, S ? f : void 0) : f = this.options.parseMissingKeyHandler(f));
|
|
2614
2614
|
}
|
|
2615
2615
|
return i ? (d.res = f, d.usedParams = this.getUsedParamsDetails(n), d) : f;
|
|
2616
2616
|
}
|
|
@@ -2671,25 +2671,25 @@ class Vn extends or {
|
|
|
2671
2671
|
this.options.fallbackNS && (d = d.concat(this.options.fallbackNS));
|
|
2672
2672
|
const f = n.count !== void 0 && !te(n.count), p = f && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), g = n.context !== void 0 && (te(n.context) || typeof n.context == "number") && n.context !== "", m = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng);
|
|
2673
2673
|
d.forEach((v) => {
|
|
2674
|
-
this.isValidLookup(r) || (a = v, !ms[`${m[0]}-${v}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(a) && (ms[`${m[0]}-${v}`] = !0, this.logger.warn(`key "${i}" for languages "${m.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), m.forEach((
|
|
2674
|
+
this.isValidLookup(r) || (a = v, !ms[`${m[0]}-${v}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(a) && (ms[`${m[0]}-${v}`] = !0, this.logger.warn(`key "${i}" for languages "${m.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), m.forEach((b) => {
|
|
2675
2675
|
if (this.isValidLookup(r))
|
|
2676
2676
|
return;
|
|
2677
|
-
o =
|
|
2677
|
+
o = b;
|
|
2678
2678
|
const Z = [u];
|
|
2679
2679
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
2680
|
-
this.i18nFormat.addLookupKeys(Z, u,
|
|
2680
|
+
this.i18nFormat.addLookupKeys(Z, u, b, v, n);
|
|
2681
2681
|
else {
|
|
2682
2682
|
let S;
|
|
2683
|
-
f && (S = this.pluralResolver.getSuffix(
|
|
2684
|
-
const
|
|
2685
|
-
if (f && (Z.push(u + S), n.ordinal && S.indexOf(T) === 0 && Z.push(u + S.replace(T, this.options.pluralSeparator)), p && Z.push(u +
|
|
2683
|
+
f && (S = this.pluralResolver.getSuffix(b, n.count, n));
|
|
2684
|
+
const q = `${this.options.pluralSeparator}zero`, T = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2685
|
+
if (f && (Z.push(u + S), n.ordinal && S.indexOf(T) === 0 && Z.push(u + S.replace(T, this.options.pluralSeparator)), p && Z.push(u + q)), g) {
|
|
2686
2686
|
const x = `${u}${this.options.contextSeparator}${n.context}`;
|
|
2687
|
-
Z.push(x), f && (Z.push(x + S), n.ordinal && S.indexOf(T) === 0 && Z.push(x + S.replace(T, this.options.pluralSeparator)), p && Z.push(x +
|
|
2687
|
+
Z.push(x), f && (Z.push(x + S), n.ordinal && S.indexOf(T) === 0 && Z.push(x + S.replace(T, this.options.pluralSeparator)), p && Z.push(x + q));
|
|
2688
2688
|
}
|
|
2689
2689
|
}
|
|
2690
|
-
let
|
|
2691
|
-
for (;
|
|
2692
|
-
this.isValidLookup(r) || (s =
|
|
2690
|
+
let k;
|
|
2691
|
+
for (; k = Z.pop(); )
|
|
2692
|
+
this.isValidLookup(r) || (s = k, r = this.getResource(b, v, k, n));
|
|
2693
2693
|
}));
|
|
2694
2694
|
});
|
|
2695
2695
|
}), {
|
|
@@ -3037,10 +3037,10 @@ class uu {
|
|
|
3037
3037
|
nestingSuffix: g,
|
|
3038
3038
|
nestingSuffixEscaped: m,
|
|
3039
3039
|
nestingOptionsSeparator: v,
|
|
3040
|
-
maxReplaces:
|
|
3040
|
+
maxReplaces: b,
|
|
3041
3041
|
alwaysFormat: Z
|
|
3042
3042
|
} = e.interpolation;
|
|
3043
|
-
this.escape = n !== void 0 ? n : Fl, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ? Dt(s) : o || "{{", this.suffix = a ? Dt(a) : l || "}}", this.formatSeparator = A || ",", this.unescapePrefix = u ? "" : d || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = f ? Dt(f) : p || Dt("$t("), this.nestingSuffix = g ? Dt(g) : m || Dt(")"), this.nestingOptionsSeparator = v || ",", this.maxReplaces =
|
|
3043
|
+
this.escape = n !== void 0 ? n : Fl, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ? Dt(s) : o || "{{", this.suffix = a ? Dt(a) : l || "}}", this.formatSeparator = A || ",", this.unescapePrefix = u ? "" : d || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = f ? Dt(f) : p || Dt("$t("), this.nestingSuffix = g ? Dt(g) : m || Dt(")"), this.nestingOptionsSeparator = v || ",", this.maxReplaces = b || 1e3, this.alwaysFormat = Z !== void 0 ? Z : !1, this.resetRegExp();
|
|
3044
3044
|
}
|
|
3045
3045
|
reset() {
|
|
3046
3046
|
this.options && this.init(this.options);
|
|
@@ -3053,12 +3053,12 @@ class uu {
|
|
|
3053
3053
|
let s, o, a;
|
|
3054
3054
|
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, A = (p) => {
|
|
3055
3055
|
if (p.indexOf(this.formatSeparator) < 0) {
|
|
3056
|
-
const
|
|
3057
|
-
return this.alwaysFormat ? this.format(
|
|
3056
|
+
const b = vs(n, l, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
3057
|
+
return this.alwaysFormat ? this.format(b, void 0, r, {
|
|
3058
3058
|
...i,
|
|
3059
3059
|
...n,
|
|
3060
3060
|
interpolationkey: p
|
|
3061
|
-
}) :
|
|
3061
|
+
}) : b;
|
|
3062
3062
|
}
|
|
3063
3063
|
const g = p.split(this.formatSeparator), m = g.shift().trim(), v = g.join(this.formatSeparator).trim();
|
|
3064
3064
|
return this.format(vs(n, l, m, this.options.keySeparator, this.options.ignoreJSONStructure), v, r, {
|
|
@@ -3942,7 +3942,7 @@ const JA = (t) => {
|
|
|
3942
3942
|
return r;
|
|
3943
3943
|
};
|
|
3944
3944
|
return n(t, 0);
|
|
3945
|
-
}, DA = ot("AsyncFunction"), TA = (t) => t && (ur(t) || _e(t)) && _e(t.then) && _e(t.catch),
|
|
3945
|
+
}, DA = ot("AsyncFunction"), TA = (t) => t && (ur(t) || _e(t)) && _e(t.then) && _e(t.catch), C = {
|
|
3946
3946
|
isArray: Bt,
|
|
3947
3947
|
isArrayBuffer: ko,
|
|
3948
3948
|
isBuffer: oA,
|
|
@@ -4003,7 +4003,7 @@ const JA = (t) => {
|
|
|
4003
4003
|
function ie(t, e, n, r, i) {
|
|
4004
4004
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), i && (this.response = i);
|
|
4005
4005
|
}
|
|
4006
|
-
|
|
4006
|
+
C.inherits(ie, Error, {
|
|
4007
4007
|
toJSON: function() {
|
|
4008
4008
|
return {
|
|
4009
4009
|
// Standard
|
|
@@ -4018,7 +4018,7 @@ b.inherits(ie, Error, {
|
|
|
4018
4018
|
columnNumber: this.columnNumber,
|
|
4019
4019
|
stack: this.stack,
|
|
4020
4020
|
// Axios
|
|
4021
|
-
config:
|
|
4021
|
+
config: C.toJSONObject(this.config),
|
|
4022
4022
|
code: this.code,
|
|
4023
4023
|
status: this.response && this.response.status ? this.response.status : null
|
|
4024
4024
|
};
|
|
@@ -4046,16 +4046,16 @@ Object.defineProperties(ie, No);
|
|
|
4046
4046
|
Object.defineProperty(Yo, "isAxiosError", { value: !0 });
|
|
4047
4047
|
ie.from = (t, e, n, r, i, s) => {
|
|
4048
4048
|
const o = Object.create(Yo);
|
|
4049
|
-
return
|
|
4049
|
+
return C.toFlatObject(t, o, function(l) {
|
|
4050
4050
|
return l !== Error.prototype;
|
|
4051
4051
|
}, (a) => a !== "isAxiosError"), ie.call(o, t.message, e, n, r, i), o.cause = t, o.name = t.name, s && Object.assign(o, s), o;
|
|
4052
4052
|
};
|
|
4053
4053
|
const GA = null;
|
|
4054
4054
|
function _r(t) {
|
|
4055
|
-
return
|
|
4055
|
+
return C.isPlainObject(t) || C.isArray(t);
|
|
4056
4056
|
}
|
|
4057
4057
|
function Jo(t) {
|
|
4058
|
-
return
|
|
4058
|
+
return C.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
4059
4059
|
}
|
|
4060
4060
|
function xs(t, e, n) {
|
|
4061
4061
|
return t ? t.concat(e).map(function(i, s) {
|
|
@@ -4063,44 +4063,44 @@ function xs(t, e, n) {
|
|
|
4063
4063
|
}).join(n ? "." : "") : e;
|
|
4064
4064
|
}
|
|
4065
4065
|
function PA(t) {
|
|
4066
|
-
return
|
|
4066
|
+
return C.isArray(t) && !t.some(_r);
|
|
4067
4067
|
}
|
|
4068
|
-
const HA =
|
|
4068
|
+
const HA = C.toFlatObject(C, {}, null, function(e) {
|
|
4069
4069
|
return /^is[A-Z]/.test(e);
|
|
4070
4070
|
});
|
|
4071
4071
|
function Ar(t, e, n) {
|
|
4072
|
-
if (!
|
|
4072
|
+
if (!C.isObject(t))
|
|
4073
4073
|
throw new TypeError("target must be an object");
|
|
4074
|
-
e = e || new FormData(), n =
|
|
4074
|
+
e = e || new FormData(), n = C.toFlatObject(n, {
|
|
4075
4075
|
metaTokens: !0,
|
|
4076
4076
|
dots: !1,
|
|
4077
4077
|
indexes: !1
|
|
4078
4078
|
}, !1, function(m, v) {
|
|
4079
|
-
return !
|
|
4079
|
+
return !C.isUndefined(v[m]);
|
|
4080
4080
|
});
|
|
4081
|
-
const r = n.metaTokens, i = n.visitor || u, s = n.dots, o = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) &&
|
|
4082
|
-
if (!
|
|
4081
|
+
const r = n.metaTokens, i = n.visitor || u, s = n.dots, o = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && C.isSpecCompliantForm(e);
|
|
4082
|
+
if (!C.isFunction(i))
|
|
4083
4083
|
throw new TypeError("visitor must be a function");
|
|
4084
4084
|
function A(g) {
|
|
4085
4085
|
if (g === null)
|
|
4086
4086
|
return "";
|
|
4087
|
-
if (
|
|
4087
|
+
if (C.isDate(g))
|
|
4088
4088
|
return g.toISOString();
|
|
4089
|
-
if (!l &&
|
|
4089
|
+
if (!l && C.isBlob(g))
|
|
4090
4090
|
throw new ie("Blob is not supported. Use a Buffer instead.");
|
|
4091
|
-
return
|
|
4091
|
+
return C.isArrayBuffer(g) || C.isTypedArray(g) ? l && typeof Blob == "function" ? new Blob([g]) : Buffer.from(g) : g;
|
|
4092
4092
|
}
|
|
4093
4093
|
function u(g, m, v) {
|
|
4094
|
-
let
|
|
4094
|
+
let b = g;
|
|
4095
4095
|
if (g && !v && typeof g == "object") {
|
|
4096
|
-
if (
|
|
4096
|
+
if (C.endsWith(m, "{}"))
|
|
4097
4097
|
m = r ? m : m.slice(0, -2), g = JSON.stringify(g);
|
|
4098
|
-
else if (
|
|
4099
|
-
return m = Jo(m),
|
|
4100
|
-
!(
|
|
4098
|
+
else if (C.isArray(g) && PA(g) || (C.isFileList(g) || C.endsWith(m, "[]")) && (b = C.toArray(g)))
|
|
4099
|
+
return m = Jo(m), b.forEach(function(k, S) {
|
|
4100
|
+
!(C.isUndefined(k) || k === null) && e.append(
|
|
4101
4101
|
// eslint-disable-next-line no-nested-ternary
|
|
4102
4102
|
o === !0 ? xs([m], S, s) : o === null ? m : m + "[]",
|
|
4103
|
-
A(
|
|
4103
|
+
A(k)
|
|
4104
4104
|
);
|
|
4105
4105
|
}), !1;
|
|
4106
4106
|
}
|
|
@@ -4112,21 +4112,21 @@ function Ar(t, e, n) {
|
|
|
4112
4112
|
isVisitable: _r
|
|
4113
4113
|
});
|
|
4114
4114
|
function p(g, m) {
|
|
4115
|
-
if (!
|
|
4115
|
+
if (!C.isUndefined(g)) {
|
|
4116
4116
|
if (d.indexOf(g) !== -1)
|
|
4117
4117
|
throw Error("Circular reference detected in " + m.join("."));
|
|
4118
|
-
d.push(g),
|
|
4119
|
-
(!(
|
|
4118
|
+
d.push(g), C.forEach(g, function(b, Z) {
|
|
4119
|
+
(!(C.isUndefined(b) || b === null) && i.call(
|
|
4120
4120
|
e,
|
|
4121
|
-
|
|
4122
|
-
|
|
4121
|
+
b,
|
|
4122
|
+
C.isString(Z) ? Z.trim() : Z,
|
|
4123
4123
|
m,
|
|
4124
4124
|
f
|
|
4125
|
-
)) === !0 && p(
|
|
4125
|
+
)) === !0 && p(b, m ? m.concat(Z) : [Z]);
|
|
4126
4126
|
}), d.pop();
|
|
4127
4127
|
}
|
|
4128
4128
|
}
|
|
4129
|
-
if (!
|
|
4129
|
+
if (!C.isObject(t))
|
|
4130
4130
|
throw new TypeError("data must be an object");
|
|
4131
4131
|
return p(t), e;
|
|
4132
4132
|
}
|
|
@@ -4167,7 +4167,7 @@ function To(t, e, n) {
|
|
|
4167
4167
|
return t;
|
|
4168
4168
|
const r = n && n.encode || BA, i = n && n.serialize;
|
|
4169
4169
|
let s;
|
|
4170
|
-
if (i ? s = i(e, n) : s =
|
|
4170
|
+
if (i ? s = i(e, n) : s = C.isURLSearchParams(e) ? e.toString() : new Si(e, n).toString(r), s) {
|
|
4171
4171
|
const o = t.indexOf("#");
|
|
4172
4172
|
o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + s;
|
|
4173
4173
|
}
|
|
@@ -4222,7 +4222,7 @@ class VA {
|
|
|
4222
4222
|
* @returns {void}
|
|
4223
4223
|
*/
|
|
4224
4224
|
forEach(e) {
|
|
4225
|
-
|
|
4225
|
+
C.forEach(this.handlers, function(r) {
|
|
4226
4226
|
r !== null && e(r);
|
|
4227
4227
|
});
|
|
4228
4228
|
}
|
|
@@ -4253,12 +4253,12 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
|
4253
4253
|
function nc(t, e) {
|
|
4254
4254
|
return Ar(t, new rt.classes.URLSearchParams(), Object.assign({
|
|
4255
4255
|
visitor: function(n, r, i, s) {
|
|
4256
|
-
return rt.isNode &&
|
|
4256
|
+
return rt.isNode && C.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
4257
4257
|
}
|
|
4258
4258
|
}, e));
|
|
4259
4259
|
}
|
|
4260
4260
|
function rc(t) {
|
|
4261
|
-
return
|
|
4261
|
+
return C.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
4262
4262
|
}
|
|
4263
4263
|
function ic(t) {
|
|
4264
4264
|
const e = {}, n = Object.keys(t);
|
|
@@ -4275,20 +4275,20 @@ function Po(t) {
|
|
|
4275
4275
|
if (o === "__proto__")
|
|
4276
4276
|
return !0;
|
|
4277
4277
|
const a = Number.isFinite(+o), l = s >= n.length;
|
|
4278
|
-
return o = !o &&
|
|
4278
|
+
return o = !o && C.isArray(i) ? i.length : o, l ? (C.hasOwnProp(i, o) ? i[o] = [i[o], r] : i[o] = r, !a) : ((!i[o] || !C.isObject(i[o])) && (i[o] = []), e(n, r, i[o], s) && C.isArray(i[o]) && (i[o] = ic(i[o])), !a);
|
|
4279
4279
|
}
|
|
4280
|
-
if (
|
|
4280
|
+
if (C.isFormData(t) && C.isFunction(t.entries)) {
|
|
4281
4281
|
const n = {};
|
|
4282
|
-
return
|
|
4282
|
+
return C.forEachEntry(t, (r, i) => {
|
|
4283
4283
|
e(rc(r), i, n, 0);
|
|
4284
4284
|
}), n;
|
|
4285
4285
|
}
|
|
4286
4286
|
return null;
|
|
4287
4287
|
}
|
|
4288
4288
|
function sc(t, e, n) {
|
|
4289
|
-
if (
|
|
4289
|
+
if (C.isString(t))
|
|
4290
4290
|
try {
|
|
4291
|
-
return (e || JSON.parse)(t),
|
|
4291
|
+
return (e || JSON.parse)(t), C.trim(t);
|
|
4292
4292
|
} catch (r) {
|
|
4293
4293
|
if (r.name !== "SyntaxError")
|
|
4294
4294
|
throw r;
|
|
@@ -4299,20 +4299,20 @@ const Oi = {
|
|
|
4299
4299
|
transitional: Go,
|
|
4300
4300
|
adapter: ["xhr", "http", "fetch"],
|
|
4301
4301
|
transformRequest: [function(e, n) {
|
|
4302
|
-
const r = n.getContentType() || "", i = r.indexOf("application/json") > -1, s =
|
|
4303
|
-
if (s &&
|
|
4302
|
+
const r = n.getContentType() || "", i = r.indexOf("application/json") > -1, s = C.isObject(e);
|
|
4303
|
+
if (s && C.isHTMLForm(e) && (e = new FormData(e)), C.isFormData(e))
|
|
4304
4304
|
return i ? JSON.stringify(Po(e)) : e;
|
|
4305
|
-
if (
|
|
4305
|
+
if (C.isArrayBuffer(e) || C.isBuffer(e) || C.isStream(e) || C.isFile(e) || C.isBlob(e) || C.isReadableStream(e))
|
|
4306
4306
|
return e;
|
|
4307
|
-
if (
|
|
4307
|
+
if (C.isArrayBufferView(e))
|
|
4308
4308
|
return e.buffer;
|
|
4309
|
-
if (
|
|
4309
|
+
if (C.isURLSearchParams(e))
|
|
4310
4310
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
4311
4311
|
let a;
|
|
4312
4312
|
if (s) {
|
|
4313
4313
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
4314
4314
|
return nc(e, this.formSerializer).toString();
|
|
4315
|
-
if ((a =
|
|
4315
|
+
if ((a = C.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
|
|
4316
4316
|
const l = this.env && this.env.FormData;
|
|
4317
4317
|
return Ar(
|
|
4318
4318
|
a ? { "files[]": e } : e,
|
|
@@ -4325,9 +4325,9 @@ const Oi = {
|
|
|
4325
4325
|
}],
|
|
4326
4326
|
transformResponse: [function(e) {
|
|
4327
4327
|
const n = this.transitional || Oi.transitional, r = n && n.forcedJSONParsing, i = this.responseType === "json";
|
|
4328
|
-
if (
|
|
4328
|
+
if (C.isResponse(e) || C.isReadableStream(e))
|
|
4329
4329
|
return e;
|
|
4330
|
-
if (e &&
|
|
4330
|
+
if (e && C.isString(e) && (r && !this.responseType || i)) {
|
|
4331
4331
|
const o = !(n && n.silentJSONParsing) && i;
|
|
4332
4332
|
try {
|
|
4333
4333
|
return JSON.parse(e);
|
|
@@ -4361,10 +4361,10 @@ const Oi = {
|
|
|
4361
4361
|
}
|
|
4362
4362
|
}
|
|
4363
4363
|
};
|
|
4364
|
-
|
|
4364
|
+
C.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
4365
4365
|
Oi.headers[t] = {};
|
|
4366
4366
|
});
|
|
4367
|
-
const Li = Oi, oc =
|
|
4367
|
+
const Li = Oi, oc = C.toObjectSet([
|
|
4368
4368
|
"age",
|
|
4369
4369
|
"authorization",
|
|
4370
4370
|
"content-length",
|
|
@@ -4394,7 +4394,7 @@ function nn(t) {
|
|
|
4394
4394
|
return t && String(t).trim().toLowerCase();
|
|
4395
4395
|
}
|
|
4396
4396
|
function jn(t) {
|
|
4397
|
-
return t === !1 || t == null ? t :
|
|
4397
|
+
return t === !1 || t == null ? t : C.isArray(t) ? t.map(jn) : String(t);
|
|
4398
4398
|
}
|
|
4399
4399
|
function lc(t) {
|
|
4400
4400
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -4405,12 +4405,12 @@ function lc(t) {
|
|
|
4405
4405
|
}
|
|
4406
4406
|
const uc = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
4407
4407
|
function Mr(t, e, n, r, i) {
|
|
4408
|
-
if (
|
|
4408
|
+
if (C.isFunction(r))
|
|
4409
4409
|
return r.call(this, e, n);
|
|
4410
|
-
if (i && (e = n), !!
|
|
4411
|
-
if (
|
|
4410
|
+
if (i && (e = n), !!C.isString(e)) {
|
|
4411
|
+
if (C.isString(r))
|
|
4412
4412
|
return e.indexOf(r) !== -1;
|
|
4413
|
-
if (
|
|
4413
|
+
if (C.isRegExp(r))
|
|
4414
4414
|
return r.test(e);
|
|
4415
4415
|
}
|
|
4416
4416
|
}
|
|
@@ -4418,7 +4418,7 @@ function Ac(t) {
|
|
|
4418
4418
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
|
|
4419
4419
|
}
|
|
4420
4420
|
function cc(t, e) {
|
|
4421
|
-
const n =
|
|
4421
|
+
const n = C.toCamelCase(" " + e);
|
|
4422
4422
|
["get", "set", "has"].forEach((r) => {
|
|
4423
4423
|
Object.defineProperty(t, r + n, {
|
|
4424
4424
|
value: function(i, s, o) {
|
|
@@ -4438,15 +4438,15 @@ class cr {
|
|
|
4438
4438
|
const u = nn(l);
|
|
4439
4439
|
if (!u)
|
|
4440
4440
|
throw new Error("header name must be a non-empty string");
|
|
4441
|
-
const d =
|
|
4441
|
+
const d = C.findKey(i, u);
|
|
4442
4442
|
(!d || i[d] === void 0 || A === !0 || A === void 0 && i[d] !== !1) && (i[d || l] = jn(a));
|
|
4443
4443
|
}
|
|
4444
|
-
const o = (a, l) =>
|
|
4445
|
-
if (
|
|
4444
|
+
const o = (a, l) => C.forEach(a, (A, u) => s(A, u, l));
|
|
4445
|
+
if (C.isPlainObject(e) || e instanceof this.constructor)
|
|
4446
4446
|
o(e, n);
|
|
4447
|
-
else if (
|
|
4447
|
+
else if (C.isString(e) && (e = e.trim()) && !uc(e))
|
|
4448
4448
|
o(ac(e), n);
|
|
4449
|
-
else if (
|
|
4449
|
+
else if (C.isHeaders(e))
|
|
4450
4450
|
for (const [a, l] of e.entries())
|
|
4451
4451
|
s(l, a, r);
|
|
4452
4452
|
else
|
|
@@ -4455,16 +4455,16 @@ class cr {
|
|
|
4455
4455
|
}
|
|
4456
4456
|
get(e, n) {
|
|
4457
4457
|
if (e = nn(e), e) {
|
|
4458
|
-
const r =
|
|
4458
|
+
const r = C.findKey(this, e);
|
|
4459
4459
|
if (r) {
|
|
4460
4460
|
const i = this[r];
|
|
4461
4461
|
if (!n)
|
|
4462
4462
|
return i;
|
|
4463
4463
|
if (n === !0)
|
|
4464
4464
|
return lc(i);
|
|
4465
|
-
if (
|
|
4465
|
+
if (C.isFunction(n))
|
|
4466
4466
|
return n.call(this, i, r);
|
|
4467
|
-
if (
|
|
4467
|
+
if (C.isRegExp(n))
|
|
4468
4468
|
return n.exec(i);
|
|
4469
4469
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
4470
4470
|
}
|
|
@@ -4472,7 +4472,7 @@ class cr {
|
|
|
4472
4472
|
}
|
|
4473
4473
|
has(e, n) {
|
|
4474
4474
|
if (e = nn(e), e) {
|
|
4475
|
-
const r =
|
|
4475
|
+
const r = C.findKey(this, e);
|
|
4476
4476
|
return !!(r && this[r] !== void 0 && (!n || Mr(this, this[r], r, n)));
|
|
4477
4477
|
}
|
|
4478
4478
|
return !1;
|
|
@@ -4482,11 +4482,11 @@ class cr {
|
|
|
4482
4482
|
let i = !1;
|
|
4483
4483
|
function s(o) {
|
|
4484
4484
|
if (o = nn(o), o) {
|
|
4485
|
-
const a =
|
|
4485
|
+
const a = C.findKey(r, o);
|
|
4486
4486
|
a && (!n || Mr(r, r[a], a, n)) && (delete r[a], i = !0);
|
|
4487
4487
|
}
|
|
4488
4488
|
}
|
|
4489
|
-
return
|
|
4489
|
+
return C.isArray(e) ? e.forEach(s) : s(e), i;
|
|
4490
4490
|
}
|
|
4491
4491
|
clear(e) {
|
|
4492
4492
|
const n = Object.keys(this);
|
|
@@ -4499,8 +4499,8 @@ class cr {
|
|
|
4499
4499
|
}
|
|
4500
4500
|
normalize(e) {
|
|
4501
4501
|
const n = this, r = {};
|
|
4502
|
-
return
|
|
4503
|
-
const o =
|
|
4502
|
+
return C.forEach(this, (i, s) => {
|
|
4503
|
+
const o = C.findKey(r, s);
|
|
4504
4504
|
if (o) {
|
|
4505
4505
|
n[o] = jn(i), delete n[s];
|
|
4506
4506
|
return;
|
|
@@ -4514,8 +4514,8 @@ class cr {
|
|
|
4514
4514
|
}
|
|
4515
4515
|
toJSON(e) {
|
|
4516
4516
|
const n = /* @__PURE__ */ Object.create(null);
|
|
4517
|
-
return
|
|
4518
|
-
r != null && r !== !1 && (n[i] = e &&
|
|
4517
|
+
return C.forEach(this, (r, i) => {
|
|
4518
|
+
r != null && r !== !1 && (n[i] = e && C.isArray(r) ? r.join(", ") : r);
|
|
4519
4519
|
}), n;
|
|
4520
4520
|
}
|
|
4521
4521
|
[Symbol.iterator]() {
|
|
@@ -4543,11 +4543,11 @@ class cr {
|
|
|
4543
4543
|
const a = nn(o);
|
|
4544
4544
|
r[a] || (cc(i, o), r[a] = !0);
|
|
4545
4545
|
}
|
|
4546
|
-
return
|
|
4546
|
+
return C.isArray(e) ? e.forEach(s) : s(e), this;
|
|
4547
4547
|
}
|
|
4548
4548
|
}
|
|
4549
4549
|
cr.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
4550
|
-
|
|
4550
|
+
C.reduceDescriptors(cr.prototype, ({ value: t }, e) => {
|
|
4551
4551
|
let n = e[0].toUpperCase() + e.slice(1);
|
|
4552
4552
|
return {
|
|
4553
4553
|
get: () => t,
|
|
@@ -4556,12 +4556,12 @@ b.reduceDescriptors(cr.prototype, ({ value: t }, e) => {
|
|
|
4556
4556
|
}
|
|
4557
4557
|
};
|
|
4558
4558
|
});
|
|
4559
|
-
|
|
4559
|
+
C.freezeMethods(cr);
|
|
4560
4560
|
const it = cr;
|
|
4561
4561
|
function Wr(t, e) {
|
|
4562
4562
|
const n = this || Li, r = e || n, i = it.from(r.headers);
|
|
4563
4563
|
let s = r.data;
|
|
4564
|
-
return
|
|
4564
|
+
return C.forEach(t, function(a) {
|
|
4565
4565
|
s = a.call(n, s, i.normalize(), e ? e.status : void 0);
|
|
4566
4566
|
}), i.normalize(), s;
|
|
4567
4567
|
}
|
|
@@ -4571,7 +4571,7 @@ function Ho(t) {
|
|
|
4571
4571
|
function Vt(t, e, n) {
|
|
4572
4572
|
ie.call(this, t ?? "canceled", ie.ERR_CANCELED, e, n), this.name = "CanceledError";
|
|
4573
4573
|
}
|
|
4574
|
-
|
|
4574
|
+
C.inherits(Vt, ie, {
|
|
4575
4575
|
__CANCEL__: !0
|
|
4576
4576
|
});
|
|
4577
4577
|
function Bo(t, e, n) {
|
|
@@ -4653,7 +4653,7 @@ const Xn = (t, e, n = 3) => {
|
|
|
4653
4653
|
};
|
|
4654
4654
|
}
|
|
4655
4655
|
return r = i(window.location.href), function(o) {
|
|
4656
|
-
const a =
|
|
4656
|
+
const a = C.isString(o) ? i(o) : o;
|
|
4657
4657
|
return a.protocol === r.protocol && a.host === r.host;
|
|
4658
4658
|
};
|
|
4659
4659
|
}()
|
|
@@ -4669,7 +4669,7 @@ const Xn = (t, e, n = 3) => {
|
|
|
4669
4669
|
{
|
|
4670
4670
|
write(t, e, n, r, i, s) {
|
|
4671
4671
|
const o = [t + "=" + encodeURIComponent(e)];
|
|
4672
|
-
|
|
4672
|
+
C.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), C.isString(r) && o.push("path=" + r), C.isString(i) && o.push("domain=" + i), s === !0 && o.push("secure"), document.cookie = o.join("; ");
|
|
4673
4673
|
},
|
|
4674
4674
|
read(t) {
|
|
4675
4675
|
const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
|
|
@@ -4705,22 +4705,22 @@ function Kt(t, e) {
|
|
|
4705
4705
|
e = e || {};
|
|
4706
4706
|
const n = {};
|
|
4707
4707
|
function r(A, u, d) {
|
|
4708
|
-
return
|
|
4708
|
+
return C.isPlainObject(A) && C.isPlainObject(u) ? C.merge.call({ caseless: d }, A, u) : C.isPlainObject(u) ? C.merge({}, u) : C.isArray(u) ? u.slice() : u;
|
|
4709
4709
|
}
|
|
4710
4710
|
function i(A, u, d) {
|
|
4711
|
-
if (
|
|
4712
|
-
if (!
|
|
4711
|
+
if (C.isUndefined(u)) {
|
|
4712
|
+
if (!C.isUndefined(A))
|
|
4713
4713
|
return r(void 0, A, d);
|
|
4714
4714
|
} else
|
|
4715
4715
|
return r(A, u, d);
|
|
4716
4716
|
}
|
|
4717
4717
|
function s(A, u) {
|
|
4718
|
-
if (!
|
|
4718
|
+
if (!C.isUndefined(u))
|
|
4719
4719
|
return r(void 0, u);
|
|
4720
4720
|
}
|
|
4721
4721
|
function o(A, u) {
|
|
4722
|
-
if (
|
|
4723
|
-
if (!
|
|
4722
|
+
if (C.isUndefined(u)) {
|
|
4723
|
+
if (!C.isUndefined(A))
|
|
4724
4724
|
return r(void 0, A);
|
|
4725
4725
|
} else
|
|
4726
4726
|
return r(void 0, u);
|
|
@@ -4762,9 +4762,9 @@ function Kt(t, e) {
|
|
|
4762
4762
|
validateStatus: a,
|
|
4763
4763
|
headers: (A, u) => i(Es(A), Es(u), !0)
|
|
4764
4764
|
};
|
|
4765
|
-
return
|
|
4765
|
+
return C.forEach(Object.keys(Object.assign({}, t, e)), function(u) {
|
|
4766
4766
|
const d = l[u] || i, f = d(t[u], e[u], u);
|
|
4767
|
-
|
|
4767
|
+
C.isUndefined(f) && d !== a || (n[u] = f);
|
|
4768
4768
|
}), n;
|
|
4769
4769
|
}
|
|
4770
4770
|
const Xo = (t) => {
|
|
@@ -4775,7 +4775,7 @@ const Xo = (t) => {
|
|
|
4775
4775
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
|
4776
4776
|
);
|
|
4777
4777
|
let l;
|
|
4778
|
-
if (
|
|
4778
|
+
if (C.isFormData(n)) {
|
|
4779
4779
|
if (rt.hasStandardBrowserEnv || rt.hasStandardBrowserWebWorkerEnv)
|
|
4780
4780
|
o.setContentType(void 0);
|
|
4781
4781
|
else if ((l = o.getContentType()) !== !1) {
|
|
@@ -4783,7 +4783,7 @@ const Xo = (t) => {
|
|
|
4783
4783
|
o.setContentType([A || "multipart/form-data", ...u].join("; "));
|
|
4784
4784
|
}
|
|
4785
4785
|
}
|
|
4786
|
-
if (rt.hasStandardBrowserEnv && (r &&
|
|
4786
|
+
if (rt.hasStandardBrowserEnv && (r && C.isFunction(r) && (r = r(e)), r || r !== !1 && hc(e.url))) {
|
|
4787
4787
|
const A = i && s && mc.read(s);
|
|
4788
4788
|
A && o.set(i, A);
|
|
4789
4789
|
}
|
|
@@ -4812,10 +4812,10 @@ const Xo = (t) => {
|
|
|
4812
4812
|
config: t,
|
|
4813
4813
|
request: u
|
|
4814
4814
|
};
|
|
4815
|
-
Bo(function(
|
|
4816
|
-
n(
|
|
4817
|
-
}, function(
|
|
4818
|
-
r(
|
|
4815
|
+
Bo(function(b) {
|
|
4816
|
+
n(b), A();
|
|
4817
|
+
}, function(b) {
|
|
4818
|
+
r(b), A();
|
|
4819
4819
|
}, m), u = null;
|
|
4820
4820
|
}
|
|
4821
4821
|
"onloadend" in u ? u.onloadend = d : u.onreadystatechange = function() {
|
|
@@ -4833,9 +4833,9 @@ const Xo = (t) => {
|
|
|
4833
4833
|
i,
|
|
4834
4834
|
u
|
|
4835
4835
|
)), u = null;
|
|
4836
|
-
}, s === void 0 && o.setContentType(null), "setRequestHeader" in u &&
|
|
4836
|
+
}, s === void 0 && o.setContentType(null), "setRequestHeader" in u && C.forEach(o.toJSON(), function(g, m) {
|
|
4837
4837
|
u.setRequestHeader(m, g);
|
|
4838
|
-
}),
|
|
4838
|
+
}), C.isUndefined(i.withCredentials) || (u.withCredentials = !!i.withCredentials), a && a !== "json" && (u.responseType = i.responseType), typeof i.onDownloadProgress == "function" && u.addEventListener("progress", Xn(i.onDownloadProgress, !0)), typeof i.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", Xn(i.onUploadProgress)), (i.cancelToken || i.signal) && (l = (p) => {
|
|
4839
4839
|
u && (r(!p || p.type ? new Vt(null, t, u) : p), u.abort(), u = null);
|
|
4840
4840
|
}, i.cancelToken && i.cancelToken.subscribe(l), i.signal && (i.signal.aborted ? l() : i.signal.addEventListener("abort", l)));
|
|
4841
4841
|
const f = dc(i.url);
|
|
@@ -4918,7 +4918,7 @@ const Xo = (t) => {
|
|
|
4918
4918
|
return t && !e;
|
|
4919
4919
|
})(), ks = 64 * 1024, ei = Uo && !!(() => {
|
|
4920
4920
|
try {
|
|
4921
|
-
return
|
|
4921
|
+
return C.isReadableStream(new Response("").body);
|
|
4922
4922
|
} catch {
|
|
4923
4923
|
}
|
|
4924
4924
|
})(), Un = {
|
|
@@ -4926,7 +4926,7 @@ const Xo = (t) => {
|
|
|
4926
4926
|
};
|
|
4927
4927
|
dr && ((t) => {
|
|
4928
4928
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
4929
|
-
!Un[e] && (Un[e] =
|
|
4929
|
+
!Un[e] && (Un[e] = C.isFunction(t[e]) ? (n) => n[e]() : (n, r) => {
|
|
4930
4930
|
throw new ie(`Response type '${e}' is not supported`, ie.ERR_NOT_SUPPORT, r);
|
|
4931
4931
|
});
|
|
4932
4932
|
});
|
|
@@ -4934,16 +4934,16 @@ dr && ((t) => {
|
|
|
4934
4934
|
const Ic = async (t) => {
|
|
4935
4935
|
if (t == null)
|
|
4936
4936
|
return 0;
|
|
4937
|
-
if (
|
|
4937
|
+
if (C.isBlob(t))
|
|
4938
4938
|
return t.size;
|
|
4939
|
-
if (
|
|
4939
|
+
if (C.isSpecCompliantForm(t))
|
|
4940
4940
|
return (await new Request(t).arrayBuffer()).byteLength;
|
|
4941
|
-
if (
|
|
4941
|
+
if (C.isArrayBufferView(t))
|
|
4942
4942
|
return t.byteLength;
|
|
4943
|
-
if (
|
|
4943
|
+
if (C.isURLSearchParams(t) && (t = t + ""), C.isString(t))
|
|
4944
4944
|
return (await $r(t)).byteLength;
|
|
4945
4945
|
}, Sc = async (t, e) => {
|
|
4946
|
-
const n =
|
|
4946
|
+
const n = C.toFiniteNumber(t.getContentLength());
|
|
4947
4947
|
return n ?? Ic(e);
|
|
4948
4948
|
}, Ec = dr && (async (t) => {
|
|
4949
4949
|
let {
|
|
@@ -4962,7 +4962,7 @@ const Ic = async (t) => {
|
|
|
4962
4962
|
} = Xo(t);
|
|
4963
4963
|
A = A ? (A + "").toLowerCase() : "text";
|
|
4964
4964
|
let [p, g] = i || s || o ? Cc([i, s], o) : [], m, v;
|
|
4965
|
-
const
|
|
4965
|
+
const b = () => {
|
|
4966
4966
|
!m && setTimeout(() => {
|
|
4967
4967
|
p && p.unsubscribe();
|
|
4968
4968
|
}), m = !0;
|
|
@@ -4975,12 +4975,12 @@ const Ic = async (t) => {
|
|
|
4975
4975
|
body: r,
|
|
4976
4976
|
duplex: "half"
|
|
4977
4977
|
}), x;
|
|
4978
|
-
|
|
4978
|
+
C.isFormData(r) && (x = T.headers.get("content-type")) && u.setContentType(x), T.body && (r = Os(T.body, ks, Ls(
|
|
4979
4979
|
Z,
|
|
4980
4980
|
Xn(l)
|
|
4981
4981
|
), null, $r));
|
|
4982
4982
|
}
|
|
4983
|
-
|
|
4983
|
+
C.isString(d) || (d = d ? "cors" : "omit"), v = new Request(e, {
|
|
4984
4984
|
...f,
|
|
4985
4985
|
signal: p,
|
|
4986
4986
|
method: n.toUpperCase(),
|
|
@@ -4989,48 +4989,48 @@ const Ic = async (t) => {
|
|
|
4989
4989
|
duplex: "half",
|
|
4990
4990
|
withCredentials: d
|
|
4991
4991
|
});
|
|
4992
|
-
let
|
|
4992
|
+
let k = await fetch(v);
|
|
4993
4993
|
const S = ei && (A === "stream" || A === "response");
|
|
4994
4994
|
if (ei && (a || S)) {
|
|
4995
4995
|
const T = {};
|
|
4996
|
-
["status", "statusText", "headers"].forEach((
|
|
4997
|
-
T[
|
|
4996
|
+
["status", "statusText", "headers"].forEach((K) => {
|
|
4997
|
+
T[K] = k[K];
|
|
4998
4998
|
});
|
|
4999
|
-
const x =
|
|
5000
|
-
|
|
5001
|
-
Os(
|
|
4999
|
+
const x = C.toFiniteNumber(k.headers.get("content-length"));
|
|
5000
|
+
k = new Response(
|
|
5001
|
+
Os(k.body, ks, a && Ls(
|
|
5002
5002
|
x,
|
|
5003
5003
|
Xn(a, !0)
|
|
5004
|
-
), S &&
|
|
5004
|
+
), S && b, $r),
|
|
5005
5005
|
T
|
|
5006
5006
|
);
|
|
5007
5007
|
}
|
|
5008
5008
|
A = A || "text";
|
|
5009
|
-
let
|
|
5010
|
-
return !S &&
|
|
5009
|
+
let q = await Un[C.findKey(Un, A) || "text"](k, t);
|
|
5010
|
+
return !S && b(), g && g(), await new Promise((T, x) => {
|
|
5011
5011
|
Bo(T, x, {
|
|
5012
|
-
data:
|
|
5013
|
-
headers: it.from(
|
|
5014
|
-
status:
|
|
5015
|
-
statusText:
|
|
5012
|
+
data: q,
|
|
5013
|
+
headers: it.from(k.headers),
|
|
5014
|
+
status: k.status,
|
|
5015
|
+
statusText: k.statusText,
|
|
5016
5016
|
config: t,
|
|
5017
5017
|
request: v
|
|
5018
5018
|
});
|
|
5019
5019
|
});
|
|
5020
|
-
} catch (
|
|
5021
|
-
throw
|
|
5020
|
+
} catch (k) {
|
|
5021
|
+
throw b(), k && k.name === "TypeError" && /fetch/i.test(k.message) ? Object.assign(
|
|
5022
5022
|
new ie("Network Error", ie.ERR_NETWORK, t, v),
|
|
5023
5023
|
{
|
|
5024
|
-
cause:
|
|
5024
|
+
cause: k.cause || k
|
|
5025
5025
|
}
|
|
5026
|
-
) : ie.from(
|
|
5026
|
+
) : ie.from(k, k && k.code, t, v);
|
|
5027
5027
|
}
|
|
5028
5028
|
}), ti = {
|
|
5029
5029
|
http: GA,
|
|
5030
5030
|
xhr: qc,
|
|
5031
5031
|
fetch: Ec
|
|
5032
5032
|
};
|
|
5033
|
-
|
|
5033
|
+
C.forEach(ti, (t, e) => {
|
|
5034
5034
|
if (t) {
|
|
5035
5035
|
try {
|
|
5036
5036
|
Object.defineProperty(t, "name", { value: e });
|
|
@@ -5039,9 +5039,9 @@ b.forEach(ti, (t, e) => {
|
|
|
5039
5039
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
5040
5040
|
}
|
|
5041
5041
|
});
|
|
5042
|
-
const Ks = (t) => `- ${t}`, Oc = (t) =>
|
|
5042
|
+
const Ks = (t) => `- ${t}`, Oc = (t) => C.isFunction(t) || t === null || t === !1, Qo = {
|
|
5043
5043
|
getAdapter: (t) => {
|
|
5044
|
-
t =
|
|
5044
|
+
t = C.isArray(t) ? t : [t];
|
|
5045
5045
|
const { length: e } = t;
|
|
5046
5046
|
let n, r;
|
|
5047
5047
|
const i = {};
|
|
@@ -5177,17 +5177,17 @@ class Qn {
|
|
|
5177
5177
|
silentJSONParsing: gt.transitional(gt.boolean),
|
|
5178
5178
|
forcedJSONParsing: gt.transitional(gt.boolean),
|
|
5179
5179
|
clarifyTimeoutError: gt.transitional(gt.boolean)
|
|
5180
|
-
}, !1), i != null && (
|
|
5180
|
+
}, !1), i != null && (C.isFunction(i) ? n.paramsSerializer = {
|
|
5181
5181
|
serialize: i
|
|
5182
5182
|
} : ni.assertOptions(i, {
|
|
5183
5183
|
encode: gt.function,
|
|
5184
5184
|
serialize: gt.function
|
|
5185
5185
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
5186
|
-
let o = s &&
|
|
5186
|
+
let o = s && C.merge(
|
|
5187
5187
|
s.common,
|
|
5188
5188
|
s[n.method]
|
|
5189
5189
|
);
|
|
5190
|
-
s &&
|
|
5190
|
+
s && C.forEach(
|
|
5191
5191
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
5192
5192
|
(g) => {
|
|
5193
5193
|
delete s[g];
|
|
@@ -5235,7 +5235,7 @@ class Qn {
|
|
|
5235
5235
|
return To(n, e.params, e.paramsSerializer);
|
|
5236
5236
|
}
|
|
5237
5237
|
}
|
|
5238
|
-
|
|
5238
|
+
C.forEach(["delete", "get", "head", "options"], function(e) {
|
|
5239
5239
|
Qn.prototype[e] = function(n, r) {
|
|
5240
5240
|
return this.request(Kt(r || {}, {
|
|
5241
5241
|
method: e,
|
|
@@ -5244,7 +5244,7 @@ b.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
5244
5244
|
}));
|
|
5245
5245
|
};
|
|
5246
5246
|
});
|
|
5247
|
-
|
|
5247
|
+
C.forEach(["post", "put", "patch"], function(e) {
|
|
5248
5248
|
function n(r) {
|
|
5249
5249
|
return function(s, o, a) {
|
|
5250
5250
|
return this.request(Kt(a || {}, {
|
|
@@ -5335,7 +5335,7 @@ function Kc(t) {
|
|
|
5335
5335
|
};
|
|
5336
5336
|
}
|
|
5337
5337
|
function Mc(t) {
|
|
5338
|
-
return
|
|
5338
|
+
return C.isObject(t) && t.isAxiosError === !0;
|
|
5339
5339
|
}
|
|
5340
5340
|
const ri = {
|
|
5341
5341
|
Continue: 100,
|
|
@@ -5408,7 +5408,7 @@ Object.entries(ri).forEach(([t, e]) => {
|
|
|
5408
5408
|
const Wc = ri;
|
|
5409
5409
|
function _o(t) {
|
|
5410
5410
|
const e = new zn(t), n = Lo(zn.prototype.request, e);
|
|
5411
|
-
return
|
|
5411
|
+
return C.extend(n, zn.prototype, e, { allOwnKeys: !0 }), C.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(i) {
|
|
5412
5412
|
return _o(Kt(t, i));
|
|
5413
5413
|
}, n;
|
|
5414
5414
|
}
|
|
@@ -5428,7 +5428,7 @@ Ee.spread = Kc;
|
|
|
5428
5428
|
Ee.isAxiosError = Mc;
|
|
5429
5429
|
Ee.mergeConfig = Kt;
|
|
5430
5430
|
Ee.AxiosHeaders = it;
|
|
5431
|
-
Ee.formToJSON = (t) => Po(
|
|
5431
|
+
Ee.formToJSON = (t) => Po(C.isHTMLForm(t) ? new FormData(t) : t);
|
|
5432
5432
|
Ee.getAdapter = Qo.getAdapter;
|
|
5433
5433
|
Ee.HttpStatusCode = Wc;
|
|
5434
5434
|
Ee.default = Ee;
|
|
@@ -5505,7 +5505,7 @@ let ia;
|
|
|
5505
5505
|
typeof window < "u" && (ia = ra("token"));
|
|
5506
5506
|
const ve = jc.create({
|
|
5507
5507
|
headers: {
|
|
5508
|
-
Authorization:
|
|
5508
|
+
Authorization: ia
|
|
5509
5509
|
}
|
|
5510
5510
|
});
|
|
5511
5511
|
async function Nc(t, e, n) {
|
|
@@ -5623,15 +5623,15 @@ function fr(t) {
|
|
|
5623
5623
|
let { children: a, position: l, preventExitTransition: A, done: u, nodeRef: d, isIn: f } = o;
|
|
5624
5624
|
const p = r ? `${e}--${l}` : e, g = r ? `${n}--${l}` : n, m = Et(0);
|
|
5625
5625
|
return el(() => {
|
|
5626
|
-
const v = d.current,
|
|
5627
|
-
|
|
5626
|
+
const v = d.current, b = p.split(" "), Z = (k) => {
|
|
5627
|
+
k.target === d.current && (v.dispatchEvent(new Event("d")), v.removeEventListener("animationend", Z), v.removeEventListener("animationcancel", Z), m.current === 0 && k.type !== "animationcancel" && v.classList.remove(...b));
|
|
5628
5628
|
};
|
|
5629
|
-
v.classList.add(...
|
|
5629
|
+
v.classList.add(...b), v.addEventListener("animationend", Z), v.addEventListener("animationcancel", Z);
|
|
5630
5630
|
}, []), Ie(() => {
|
|
5631
|
-
const v = d.current,
|
|
5632
|
-
v.removeEventListener("animationend",
|
|
5631
|
+
const v = d.current, b = () => {
|
|
5632
|
+
v.removeEventListener("animationend", b), i ? Qc(v, u, s) : u();
|
|
5633
5633
|
};
|
|
5634
|
-
f || (A ?
|
|
5634
|
+
f || (A ? b() : (m.current = 1, v.className += ` ${g}`, v.addEventListener("animationend", b)));
|
|
5635
5635
|
}, [f]), de.createElement(de.Fragment, null, a);
|
|
5636
5636
|
};
|
|
5637
5637
|
}
|
|
@@ -5685,17 +5685,17 @@ function Fc(t) {
|
|
|
5685
5685
|
f(p, g, m);
|
|
5686
5686
|
}
|
|
5687
5687
|
function d(p, g) {
|
|
5688
|
-
let { delay: m, staleId: v, ...
|
|
5688
|
+
let { delay: m, staleId: v, ...b } = g;
|
|
5689
5689
|
if (!zr(p) || function(j) {
|
|
5690
5690
|
return !i.current || a.props.enableMultiContainer && j.containerId !== a.props.containerId || s.has(j.toastId) && j.updateId == null;
|
|
5691
|
-
}(
|
|
5691
|
+
}(b))
|
|
5692
5692
|
return;
|
|
5693
|
-
const { toastId: Z, updateId:
|
|
5693
|
+
const { toastId: Z, updateId: k, data: S } = b, { props: q } = a, T = () => A(Z), x = k == null;
|
|
5694
5694
|
x && a.count++;
|
|
5695
|
-
const
|
|
5695
|
+
const K = { ...q, style: q.toastStyle, key: a.toastKey++, ...Object.fromEntries(Object.entries(b).filter((j) => {
|
|
5696
5696
|
let [B, E] = j;
|
|
5697
5697
|
return E != null;
|
|
5698
|
-
})), toastId: Z, updateId:
|
|
5698
|
+
})), toastId: Z, updateId: k, data: S, closeToast: T, isIn: !1, className: Rn(b.className || q.toastClassName), bodyClassName: Rn(b.bodyClassName || q.bodyClassName), progressClassName: Rn(b.progressClassName || q.progressClassName), autoClose: !b.isLoading && (Y = b.autoClose, W = q.autoClose, Y === !1 || ln(Y) && Y > 0 ? Y : W), deleteToast() {
|
|
5699
5699
|
const j = Rs(s.get(Z), "removed");
|
|
5700
5700
|
s.delete(Z), Qe.emit(4, j);
|
|
5701
5701
|
const B = a.queue.length;
|
|
@@ -5713,21 +5713,21 @@ function Fc(t) {
|
|
|
5713
5713
|
e();
|
|
5714
5714
|
} };
|
|
5715
5715
|
var Y, W;
|
|
5716
|
-
|
|
5716
|
+
K.iconOut = function(j) {
|
|
5717
5717
|
let { theme: B, type: E, isLoading: L, icon: G } = j, y = null;
|
|
5718
|
-
const
|
|
5719
|
-
return G === !1 || (De(G) ? y = G(
|
|
5720
|
-
}(
|
|
5718
|
+
const M = { theme: B, type: E };
|
|
5719
|
+
return G === !1 || (De(G) ? y = G(M) : Ht(G) ? y = Vr(G, M) : Mt(G) || ln(G) ? y = G : L ? y = Rr.spinner() : ((U) => U in Rr)(E) && (y = Rr[E](M))), y;
|
|
5720
|
+
}(K), De(b.onOpen) && (K.onOpen = b.onOpen), De(b.onClose) && (K.onClose = b.onClose), K.closeButton = q.closeButton, b.closeButton === !1 || zr(b.closeButton) ? K.closeButton = b.closeButton : b.closeButton === !0 && (K.closeButton = !zr(q.closeButton) || q.closeButton);
|
|
5721
5721
|
let z = p;
|
|
5722
|
-
Ht(p) && !Mt(p.type) ? z = Vr(p, { closeToast: T, toastProps:
|
|
5723
|
-
f(z,
|
|
5724
|
-
}, m) : f(z,
|
|
5722
|
+
Ht(p) && !Mt(p.type) ? z = Vr(p, { closeToast: T, toastProps: K, data: S }) : De(p) && (z = p({ closeToast: T, toastProps: K, data: S })), q.limit && q.limit > 0 && a.count > q.limit && x ? a.queue.push({ toastContent: z, toastProps: K, staleId: v }) : ln(m) ? setTimeout(() => {
|
|
5723
|
+
f(z, K, v);
|
|
5724
|
+
}, m) : f(z, K, v);
|
|
5725
5725
|
}
|
|
5726
5726
|
function f(p, g, m) {
|
|
5727
5727
|
const { toastId: v } = g;
|
|
5728
5728
|
m && s.delete(m);
|
|
5729
|
-
const
|
|
5730
|
-
s.set(v,
|
|
5729
|
+
const b = { content: p, props: g };
|
|
5730
|
+
s.set(v, b), r((Z) => [...Z, v].filter((k) => k !== m)), Qe.emit(4, Rs(b, b.props.updateId == null ? "added" : "updated"));
|
|
5731
5731
|
}
|
|
5732
5732
|
return Ie(() => (a.containerId = t.containerId, Qe.cancelEmit(3).on(0, d).on(1, (p) => i.current && A(p)).on(5, l).emit(2, a), () => {
|
|
5733
5733
|
s.clear(), Qe.emit(3, a);
|
|
@@ -5736,8 +5736,8 @@ function Fc(t) {
|
|
|
5736
5736
|
}), { getToastToRender: function(p) {
|
|
5737
5737
|
const g = /* @__PURE__ */ new Map(), m = Array.from(s.values());
|
|
5738
5738
|
return t.newestOnTop && m.reverse(), m.forEach((v) => {
|
|
5739
|
-
const { position:
|
|
5740
|
-
g.has(
|
|
5739
|
+
const { position: b } = v.props;
|
|
5740
|
+
g.has(b) || g.set(b, []), g.get(b).push(v);
|
|
5741
5741
|
}), Array.from(g, (v) => p(v[0], v[1]));
|
|
5742
5742
|
}, containerRef: i, isToastActive: o };
|
|
5743
5743
|
}
|
|
@@ -5751,15 +5751,15 @@ function _c(t) {
|
|
|
5751
5751
|
const [e, n] = X(!1), [r, i] = X(!1), s = Et(null), o = Et({ start: 0, x: 0, y: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, boundingRect: null, didMove: !1 }).current, a = Et(t), { autoClose: l, pauseOnHover: A, closeToast: u, onClick: d, closeOnClick: f } = t;
|
|
5752
5752
|
function p(S) {
|
|
5753
5753
|
if (t.draggable) {
|
|
5754
|
-
S.nativeEvent.type === "touchstart" && S.nativeEvent.preventDefault(), o.didMove = !1, document.addEventListener("mousemove",
|
|
5755
|
-
const
|
|
5756
|
-
o.canCloseOnClick = !0, o.canDrag = !0, o.boundingRect =
|
|
5754
|
+
S.nativeEvent.type === "touchstart" && S.nativeEvent.preventDefault(), o.didMove = !1, document.addEventListener("mousemove", b), document.addEventListener("mouseup", Z), document.addEventListener("touchmove", b), document.addEventListener("touchend", Z);
|
|
5755
|
+
const q = s.current;
|
|
5756
|
+
o.canCloseOnClick = !0, o.canDrag = !0, o.boundingRect = q.getBoundingClientRect(), q.style.transition = "", o.x = Ys(S.nativeEvent), o.y = Ns(S.nativeEvent), t.draggableDirection === "x" ? (o.start = o.x, o.removalDistance = q.offsetWidth * (t.draggablePercent / 100)) : (o.start = o.y, o.removalDistance = q.offsetHeight * (t.draggablePercent === 80 ? 1.5 * t.draggablePercent : t.draggablePercent / 100));
|
|
5757
5757
|
}
|
|
5758
5758
|
}
|
|
5759
5759
|
function g(S) {
|
|
5760
5760
|
if (o.boundingRect) {
|
|
5761
|
-
const { top:
|
|
5762
|
-
S.nativeEvent.type !== "touchend" && t.pauseOnHover && o.x >= x && o.x <=
|
|
5761
|
+
const { top: q, bottom: T, left: x, right: K } = o.boundingRect;
|
|
5762
|
+
S.nativeEvent.type !== "touchend" && t.pauseOnHover && o.x >= x && o.x <= K && o.y >= q && o.y <= T ? v() : m();
|
|
5763
5763
|
}
|
|
5764
5764
|
}
|
|
5765
5765
|
function m() {
|
|
@@ -5768,12 +5768,12 @@ function _c(t) {
|
|
|
5768
5768
|
function v() {
|
|
5769
5769
|
n(!1);
|
|
5770
5770
|
}
|
|
5771
|
-
function
|
|
5772
|
-
const
|
|
5773
|
-
o.canDrag &&
|
|
5771
|
+
function b(S) {
|
|
5772
|
+
const q = s.current;
|
|
5773
|
+
o.canDrag && q && (o.didMove = !0, e && v(), o.x = Ys(S), o.y = Ns(S), o.delta = t.draggableDirection === "x" ? o.x - o.start : o.y - o.start, o.start !== o.x && (o.canCloseOnClick = !1), q.style.transform = `translate${t.draggableDirection}(${o.delta}px)`, q.style.opacity = "" + (1 - Math.abs(o.delta / o.removalDistance)));
|
|
5774
5774
|
}
|
|
5775
5775
|
function Z() {
|
|
5776
|
-
document.removeEventListener("mousemove",
|
|
5776
|
+
document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", Z), document.removeEventListener("touchmove", b), document.removeEventListener("touchend", Z);
|
|
5777
5777
|
const S = s.current;
|
|
5778
5778
|
if (o.canDrag && o.didMove && S) {
|
|
5779
5779
|
if (o.canDrag = !1, Math.abs(o.delta) > o.removalDistance)
|
|
@@ -5789,10 +5789,10 @@ function _c(t) {
|
|
|
5789
5789
|
}), []), Ie(() => (t.pauseOnFocusLoss && (document.hasFocus() || v(), window.addEventListener("focus", m), window.addEventListener("blur", v)), () => {
|
|
5790
5790
|
t.pauseOnFocusLoss && (window.removeEventListener("focus", m), window.removeEventListener("blur", v));
|
|
5791
5791
|
}), [t.pauseOnFocusLoss]);
|
|
5792
|
-
const
|
|
5793
|
-
return l && A && (
|
|
5792
|
+
const k = { onMouseDown: p, onTouchStart: p, onMouseUp: g, onTouchEnd: g };
|
|
5793
|
+
return l && A && (k.onMouseEnter = v, k.onMouseLeave = m), f && (k.onClick = (S) => {
|
|
5794
5794
|
d && d(S), o.canCloseOnClick && u();
|
|
5795
|
-
}), { playToast: m, pauseToast: v, isRunning: e, preventExitTransition: r, toastRef: s, eventHandlers:
|
|
5795
|
+
}), { playToast: m, pauseToast: v, isRunning: e, preventExitTransition: r, toastRef: s, eventHandlers: k };
|
|
5796
5796
|
}
|
|
5797
5797
|
function oa(t) {
|
|
5798
5798
|
let { closeToast: e, theme: n, ariaLabel: r = "close" } = t;
|
|
@@ -5810,9 +5810,9 @@ function $c(t) {
|
|
|
5810
5810
|
} });
|
|
5811
5811
|
}
|
|
5812
5812
|
const ed = (t) => {
|
|
5813
|
-
const { isRunning: e, preventExitTransition: n, toastRef: r, eventHandlers: i } = _c(t), { closeButton: s, children: o, autoClose: a, onClick: l, type: A, hideProgressBar: u, closeToast: d, transition: f, position: p, className: g, style: m, bodyClassName: v, bodyStyle:
|
|
5814
|
-
let
|
|
5815
|
-
return s === !1 || (
|
|
5813
|
+
const { isRunning: e, preventExitTransition: n, toastRef: r, eventHandlers: i } = _c(t), { closeButton: s, children: o, autoClose: a, onClick: l, type: A, hideProgressBar: u, closeToast: d, transition: f, position: p, className: g, style: m, bodyClassName: v, bodyStyle: b, progressClassName: Z, progressStyle: k, updateId: S, role: q, progress: T, rtl: x, toastId: K, deleteToast: Y, isIn: W, isLoading: z, iconOut: j, closeOnClick: B, theme: E } = t, L = yt("Toastify__toast", `Toastify__toast-theme--${E}`, `Toastify__toast--${A}`, { "Toastify__toast--rtl": x }, { "Toastify__toast--close-on-click": B }), G = De(g) ? g({ rtl: x, position: p, type: A, defaultClassName: L }) : yt(L, g), y = !!T || !a, M = { closeToast: d, type: A, theme: E };
|
|
5814
|
+
let U = null;
|
|
5815
|
+
return s === !1 || (U = De(s) ? s(M) : Ht(s) ? Vr(s, M) : oa(M)), de.createElement(f, { isIn: W, done: Y, position: p, preventExitTransition: n, nodeRef: r }, de.createElement("div", { id: K, onClick: l, className: G, ...i, style: m, ref: r }, de.createElement("div", { ...W && { role: q }, className: De(v) ? v({ type: A }) : yt("Toastify__toast-body", v), style: b }, j != null && de.createElement("div", { className: yt("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !z }) }, j), de.createElement("div", null, o)), U, de.createElement($c, { ...S && !y ? { key: `pb-${S}` } : {}, rtl: x, theme: E, delay: a, isRunning: e, isIn: W, closeToast: d, hide: u, type: A, style: k, className: Z, controlledProgress: y, progress: T || 0 })));
|
|
5816
5816
|
}, pr = function(t, e) {
|
|
5817
5817
|
return e === void 0 && (e = !1), { enter: `Toastify--animate Toastify__${t}-enter`, exit: `Toastify--animate Toastify__${t}-exit`, appendPosition: e };
|
|
5818
5818
|
}, td = fr(pr("bounce", !0));
|
|
@@ -6136,10 +6136,10 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6136
6136
|
return (g = f.onMount) == null ? void 0 : g.call(f, p);
|
|
6137
6137
|
}, ...d) => {
|
|
6138
6138
|
const f = d[0] || ((x) => {
|
|
6139
|
-
let
|
|
6140
|
-
return
|
|
6139
|
+
let K = t.get(x);
|
|
6140
|
+
return K || (K = { d: /* @__PURE__ */ new Map(), p: /* @__PURE__ */ new Set(), n: 0 }, t.set(x, K), A == null || A(x, T)), K;
|
|
6141
6141
|
}), p = d[1] || (() => {
|
|
6142
|
-
const x = [],
|
|
6142
|
+
const x = [], K = (Y) => {
|
|
6143
6143
|
try {
|
|
6144
6144
|
Y();
|
|
6145
6145
|
} catch (W) {
|
|
@@ -6147,30 +6147,30 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6147
6147
|
}
|
|
6148
6148
|
};
|
|
6149
6149
|
do {
|
|
6150
|
-
o.f &&
|
|
6150
|
+
o.f && K(o.f);
|
|
6151
6151
|
const Y = /* @__PURE__ */ new Set(), W = Y.add.bind(Y);
|
|
6152
6152
|
r.forEach((z) => {
|
|
6153
6153
|
var j;
|
|
6154
6154
|
return (j = e.get(z)) == null ? void 0 : j.l.forEach(W);
|
|
6155
|
-
}), r.clear(), s.forEach(W), s.clear(), i.forEach(W), i.clear(), Y.forEach(
|
|
6155
|
+
}), r.clear(), s.forEach(W), s.clear(), i.forEach(W), i.clear(), Y.forEach(K), r.size && g();
|
|
6156
6156
|
} while (r.size || s.size || i.size);
|
|
6157
6157
|
if (x.length)
|
|
6158
6158
|
throw new AggregateError(x);
|
|
6159
6159
|
}), g = d[2] || (() => {
|
|
6160
|
-
const x = [],
|
|
6160
|
+
const x = [], K = /* @__PURE__ */ new WeakSet(), Y = /* @__PURE__ */ new WeakSet(), W = Array.from(r);
|
|
6161
6161
|
for (; W.length; ) {
|
|
6162
6162
|
const z = W[W.length - 1], j = f(z);
|
|
6163
6163
|
if (Y.has(z)) {
|
|
6164
6164
|
W.pop();
|
|
6165
6165
|
continue;
|
|
6166
6166
|
}
|
|
6167
|
-
if (
|
|
6167
|
+
if (K.has(z)) {
|
|
6168
6168
|
n.get(z) === j.n && x.push([z, j]), Y.add(z), W.pop();
|
|
6169
6169
|
continue;
|
|
6170
6170
|
}
|
|
6171
|
-
|
|
6171
|
+
K.add(z);
|
|
6172
6172
|
for (const B of Hs(z, j, e))
|
|
6173
|
-
|
|
6173
|
+
K.has(B) || W.push(B);
|
|
6174
6174
|
}
|
|
6175
6175
|
for (let z = x.length - 1; z >= 0; --z) {
|
|
6176
6176
|
const [j, B] = x[z];
|
|
@@ -6183,13 +6183,13 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6183
6183
|
E && (m(j), Z(j)), n.delete(j);
|
|
6184
6184
|
}
|
|
6185
6185
|
}), m = d[3] || ((x) => {
|
|
6186
|
-
var
|
|
6186
|
+
var K;
|
|
6187
6187
|
const Y = f(x);
|
|
6188
6188
|
if (Gs(Y) && (e.has(x) && n.get(x) !== Y.n || Array.from(Y.d).every(
|
|
6189
|
-
([y,
|
|
6189
|
+
([y, M]) => (
|
|
6190
6190
|
// Recursively, read the atom state of the dependency, and
|
|
6191
6191
|
// check if the atom epoch number is unchanged
|
|
6192
|
-
m(y).n ===
|
|
6192
|
+
m(y).n === M
|
|
6193
6193
|
)
|
|
6194
6194
|
)))
|
|
6195
6195
|
return Y;
|
|
@@ -6198,7 +6198,7 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6198
6198
|
const z = () => {
|
|
6199
6199
|
e.has(x) && (Z(x), g(), p());
|
|
6200
6200
|
}, j = (y) => {
|
|
6201
|
-
var
|
|
6201
|
+
var M;
|
|
6202
6202
|
if (Js(x, y)) {
|
|
6203
6203
|
const w = f(y);
|
|
6204
6204
|
if (!Gs(w))
|
|
@@ -6208,11 +6208,11 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6208
6208
|
throw new Error("no atom init");
|
|
6209
6209
|
return On(w);
|
|
6210
6210
|
}
|
|
6211
|
-
const
|
|
6211
|
+
const U = m(y);
|
|
6212
6212
|
try {
|
|
6213
|
-
return On(
|
|
6213
|
+
return On(U);
|
|
6214
6214
|
} finally {
|
|
6215
|
-
Y.d.set(y,
|
|
6215
|
+
Y.d.set(y, U.n), Ps(Y.v) && da(x, Y.v, U), (M = e.get(y)) == null || M.t.add(x), W || z();
|
|
6216
6216
|
}
|
|
6217
6217
|
};
|
|
6218
6218
|
let B, E;
|
|
@@ -6224,7 +6224,7 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6224
6224
|
return !E && Ts(x) && (E = (...y) => {
|
|
6225
6225
|
if (!W)
|
|
6226
6226
|
try {
|
|
6227
|
-
return
|
|
6227
|
+
return b(x, ...y);
|
|
6228
6228
|
} finally {
|
|
6229
6229
|
g(), p();
|
|
6230
6230
|
}
|
|
@@ -6240,18 +6240,18 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6240
6240
|
} catch (y) {
|
|
6241
6241
|
return delete Y.v, Y.e = y, ++Y.n, Y;
|
|
6242
6242
|
} finally {
|
|
6243
|
-
W = !1, G !== Y.n && n.get(x) === G && (n.set(x, Y.n), r.add(x), (
|
|
6243
|
+
W = !1, G !== Y.n && n.get(x) === G && (n.set(x, Y.n), r.add(x), (K = o.c) == null || K.call(o, x));
|
|
6244
6244
|
}
|
|
6245
6245
|
}), v = d[4] || ((x) => {
|
|
6246
|
-
const
|
|
6247
|
-
for (;
|
|
6248
|
-
const Y =
|
|
6246
|
+
const K = [x];
|
|
6247
|
+
for (; K.length; ) {
|
|
6248
|
+
const Y = K.pop(), W = f(Y);
|
|
6249
6249
|
for (const z of Hs(Y, W, e)) {
|
|
6250
6250
|
const j = f(z);
|
|
6251
|
-
n.set(z, j.n),
|
|
6251
|
+
n.set(z, j.n), K.push(z);
|
|
6252
6252
|
}
|
|
6253
6253
|
}
|
|
6254
|
-
}),
|
|
6254
|
+
}), b = d[5] || ((x, ...K) => {
|
|
6255
6255
|
let Y = !0;
|
|
6256
6256
|
const W = (j) => On(m(j)), z = (j, ...B) => {
|
|
6257
6257
|
var E;
|
|
@@ -6264,24 +6264,24 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6264
6264
|
Nr(j, y, f), Z(j), G !== L.n && (r.add(j), (E = o.c) == null || E.call(o, j), v(j));
|
|
6265
6265
|
return;
|
|
6266
6266
|
} else
|
|
6267
|
-
return
|
|
6267
|
+
return b(j, ...B);
|
|
6268
6268
|
} finally {
|
|
6269
6269
|
Y || (g(), p());
|
|
6270
6270
|
}
|
|
6271
6271
|
};
|
|
6272
6272
|
try {
|
|
6273
|
-
return l(x, W, z, ...
|
|
6273
|
+
return l(x, W, z, ...K);
|
|
6274
6274
|
} finally {
|
|
6275
6275
|
Y = !1;
|
|
6276
6276
|
}
|
|
6277
6277
|
}), Z = d[6] || ((x) => {
|
|
6278
|
-
var
|
|
6278
|
+
var K;
|
|
6279
6279
|
const Y = f(x), W = e.get(x);
|
|
6280
6280
|
if (W && !Ps(Y.v)) {
|
|
6281
6281
|
for (const [z, j] of Y.d)
|
|
6282
6282
|
if (!W.d.has(z)) {
|
|
6283
6283
|
const B = f(z);
|
|
6284
|
-
|
|
6284
|
+
k(z).t.add(x), W.d.add(z), j !== B.n && (r.add(z), (K = o.c) == null || K.call(o, z), v(z));
|
|
6285
6285
|
}
|
|
6286
6286
|
for (const z of W.d || [])
|
|
6287
6287
|
if (!Y.d.has(z)) {
|
|
@@ -6290,24 +6290,24 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6290
6290
|
j == null || j.t.delete(x);
|
|
6291
6291
|
}
|
|
6292
6292
|
}
|
|
6293
|
-
}),
|
|
6294
|
-
var
|
|
6293
|
+
}), k = d[7] || ((x) => {
|
|
6294
|
+
var K;
|
|
6295
6295
|
const Y = f(x);
|
|
6296
6296
|
let W = e.get(x);
|
|
6297
6297
|
if (!W) {
|
|
6298
6298
|
m(x);
|
|
6299
6299
|
for (const z of Y.d.keys())
|
|
6300
|
-
|
|
6300
|
+
k(z).t.add(x);
|
|
6301
6301
|
if (W = {
|
|
6302
6302
|
l: /* @__PURE__ */ new Set(),
|
|
6303
6303
|
d: new Set(Y.d.keys()),
|
|
6304
6304
|
t: /* @__PURE__ */ new Set()
|
|
6305
|
-
}, e.set(x, W), (
|
|
6305
|
+
}, e.set(x, W), (K = o.m) == null || K.call(o, x), Ts(x)) {
|
|
6306
6306
|
const z = () => {
|
|
6307
6307
|
let j = !0;
|
|
6308
6308
|
const B = (...E) => {
|
|
6309
6309
|
try {
|
|
6310
|
-
return
|
|
6310
|
+
return b(x, ...E);
|
|
6311
6311
|
} finally {
|
|
6312
6312
|
j || (g(), p());
|
|
6313
6313
|
}
|
|
@@ -6331,14 +6331,14 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6331
6331
|
}
|
|
6332
6332
|
return W;
|
|
6333
6333
|
}), S = d[8] || ((x) => {
|
|
6334
|
-
var
|
|
6334
|
+
var K;
|
|
6335
6335
|
const Y = f(x);
|
|
6336
6336
|
let W = e.get(x);
|
|
6337
6337
|
if (W && !W.l.size && !Array.from(W.t).some((z) => {
|
|
6338
6338
|
var j;
|
|
6339
6339
|
return (j = e.get(z)) == null ? void 0 : j.d.has(x);
|
|
6340
6340
|
})) {
|
|
6341
|
-
W.u && s.add(W.u), W = void 0, e.delete(x), (
|
|
6341
|
+
W.u && s.add(W.u), W = void 0, e.delete(x), (K = o.u) == null || K.call(o, x);
|
|
6342
6342
|
for (const z of Y.d.keys()) {
|
|
6343
6343
|
const j = S(z);
|
|
6344
6344
|
j == null || j.t.delete(x);
|
|
@@ -6346,7 +6346,7 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6346
6346
|
return;
|
|
6347
6347
|
}
|
|
6348
6348
|
return W;
|
|
6349
|
-
}),
|
|
6349
|
+
}), q = [
|
|
6350
6350
|
// store state
|
|
6351
6351
|
t,
|
|
6352
6352
|
e,
|
|
@@ -6366,27 +6366,27 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6366
6366
|
g,
|
|
6367
6367
|
m,
|
|
6368
6368
|
v,
|
|
6369
|
-
|
|
6369
|
+
b,
|
|
6370
6370
|
Z,
|
|
6371
|
-
|
|
6371
|
+
k,
|
|
6372
6372
|
S
|
|
6373
6373
|
], T = {
|
|
6374
6374
|
get: (x) => On(m(x)),
|
|
6375
|
-
set: (x, ...
|
|
6375
|
+
set: (x, ...K) => {
|
|
6376
6376
|
try {
|
|
6377
|
-
return
|
|
6377
|
+
return b(x, ...K);
|
|
6378
6378
|
} finally {
|
|
6379
6379
|
g(), p();
|
|
6380
6380
|
}
|
|
6381
6381
|
},
|
|
6382
|
-
sub: (x,
|
|
6383
|
-
const W =
|
|
6384
|
-
return W.add(
|
|
6385
|
-
W.delete(
|
|
6382
|
+
sub: (x, K) => {
|
|
6383
|
+
const W = k(x).l;
|
|
6384
|
+
return W.add(K), p(), () => {
|
|
6385
|
+
W.delete(K), S(x), p();
|
|
6386
6386
|
};
|
|
6387
6387
|
}
|
|
6388
6388
|
};
|
|
6389
|
-
return Object.defineProperty(T, cd, { value:
|
|
6389
|
+
return Object.defineProperty(T, cd, { value: q }), T;
|
|
6390
6390
|
}, fd = dd;
|
|
6391
6391
|
const Bs = ca;
|
|
6392
6392
|
let pd = 0;
|
|
@@ -6503,27 +6503,7 @@ function Te(t, e) {
|
|
|
6503
6503
|
Cd(t, e)
|
|
6504
6504
|
];
|
|
6505
6505
|
}
|
|
6506
|
-
const pa = vn(""), ha = vn(!1), Yi = vn([]), ma = vn([
|
|
6507
|
-
"web",
|
|
6508
|
-
"adcolony",
|
|
6509
|
-
"applovin",
|
|
6510
|
-
"chartboost",
|
|
6511
|
-
"crossinstall",
|
|
6512
|
-
"fb",
|
|
6513
|
-
"google",
|
|
6514
|
-
"google360",
|
|
6515
|
-
"ironsource",
|
|
6516
|
-
"lifestreet",
|
|
6517
|
-
"liftoff",
|
|
6518
|
-
"mobvista",
|
|
6519
|
-
"nucleo",
|
|
6520
|
-
"tapjoy",
|
|
6521
|
-
"toutiao",
|
|
6522
|
-
"unity",
|
|
6523
|
-
"vungle",
|
|
6524
|
-
"moloco",
|
|
6525
|
-
"cdn"
|
|
6526
|
-
]), qn = vn(!1), wd = ({
|
|
6506
|
+
const pa = vn(""), ha = vn(!1), Yi = vn([]), ma = vn([]), qn = vn(!1), wd = ({
|
|
6527
6507
|
versionId: t,
|
|
6528
6508
|
playableId: e,
|
|
6529
6509
|
typeOfProduct: n,
|
|
@@ -6547,15 +6527,15 @@ const pa = vn(""), ha = vn(!1), Yi = vn([]), ma = vn([
|
|
|
6547
6527
|
!1,
|
|
6548
6528
|
{ urlType: A }
|
|
6549
6529
|
).then(async (v) => {
|
|
6550
|
-
var S,
|
|
6551
|
-
let
|
|
6530
|
+
var S, q, T, x;
|
|
6531
|
+
let b = "";
|
|
6552
6532
|
if (e && (n === "Playable" || n === "Ready")) {
|
|
6553
|
-
const
|
|
6554
|
-
Y && (
|
|
6533
|
+
const K = await oi(e, r), Y = (q = (S = K == null ? void 0 : K.data) == null ? void 0 : S.globalProps) == null ? void 0 : q.defaultLandscape, W = (x = (T = K == null ? void 0 : K.data) == null ? void 0 : T.globalProps) == null ? void 0 : x.defaultPhoneIndex;
|
|
6534
|
+
Y && (b += "&landscape=true"), W !== void 0 && (b += `&phoneIndex=${W}`);
|
|
6555
6535
|
}
|
|
6556
6536
|
oi(e, r), d(!1);
|
|
6557
6537
|
let Z;
|
|
6558
|
-
n === "Flex" ? Z = `${i}/preview?versionId=${t}` : n === "Import" ? Z = `${i}/preview?versionId=${t}` : n === "Ready" ? Z = `${i}/preview?versionId=${t}&ready=true` : n === "Fusion" ? Z = `${i}/preview?versionId=${t}` : Z = `${i}/preview?versionId=${t}`, Z +=
|
|
6538
|
+
n === "Flex" ? Z = `${i}/preview?versionId=${t}` : n === "Import" ? Z = `${i}/preview?versionId=${t}` : n === "Ready" ? Z = `${i}/preview?versionId=${t}&ready=true` : n === "Fusion" ? Z = `${i}/preview?versionId=${t}` : Z = `${i}/preview?versionId=${t}`, Z += b, Xt(Z) ? zt(ae.t("common:link_copied")) : s(Z), d(!1);
|
|
6559
6539
|
}).catch((v) => {
|
|
6560
6540
|
d(!1);
|
|
6561
6541
|
});
|
|
@@ -7570,7 +7550,11 @@ const Wd = ({ typeOfProduct: t }) => /* @__PURE__ */ c.jsx(
|
|
|
7570
7550
|
}
|
|
7571
7551
|
)
|
|
7572
7552
|
}
|
|
7573
|
-
), Gr = ({
|
|
7553
|
+
), Gr = ({
|
|
7554
|
+
title: t,
|
|
7555
|
+
titleId: e,
|
|
7556
|
+
...n
|
|
7557
|
+
}) => /* @__PURE__ */ c.jsxs(
|
|
7574
7558
|
"svg",
|
|
7575
7559
|
{
|
|
7576
7560
|
viewBox: "0 0 25 24",
|
|
@@ -8275,20 +8259,20 @@ const Yd = ({
|
|
|
8275
8259
|
game: g,
|
|
8276
8260
|
setIsConfirmActive: m,
|
|
8277
8261
|
creditDownload: v,
|
|
8278
|
-
getDownloadCount:
|
|
8262
|
+
getDownloadCount: b,
|
|
8279
8263
|
disabled: Z,
|
|
8280
|
-
user:
|
|
8264
|
+
user: k,
|
|
8281
8265
|
setSafariCopyLink: S,
|
|
8282
|
-
isTest:
|
|
8266
|
+
isTest: q,
|
|
8283
8267
|
urlType: T,
|
|
8284
8268
|
setCdnModal: x,
|
|
8285
|
-
generateCDN:
|
|
8269
|
+
generateCDN: K,
|
|
8286
8270
|
cdnUrl: Y
|
|
8287
8271
|
}) => {
|
|
8288
|
-
const [W, z] = X(!1), [j, B] = X(""), [E, L] = X(!1), [G, y] = X(!1), [
|
|
8272
|
+
const [W, z] = X(!1), [j, B] = X(""), [E, L] = X(!1), [G, y] = X(!1), [M, U] = X(!1), [w, I] = X("download"), [V, H] = X(!1), [J, P] = X(!1), [F, _] = X(!1), [ne, se] = X(!1), [$, ge] = X(!1), [R, we] = X(!1), [We, je] = X(!1), [Be, D] = Te(Yi), [Q, oe] = Te(qn), qe = l === "Playable" ? Q : !0, be = {
|
|
8289
8273
|
cdn: "Generate Link",
|
|
8290
8274
|
adikteev: "Copy CDN"
|
|
8291
|
-
},
|
|
8275
|
+
}, ze = () => {
|
|
8292
8276
|
n(t);
|
|
8293
8277
|
}, $e = async (ue, Ce, Oe) => {
|
|
8294
8278
|
const Yt = {
|
|
@@ -8297,7 +8281,7 @@ const Yd = ({
|
|
|
8297
8281
|
responsiveType: "responsive"
|
|
8298
8282
|
};
|
|
8299
8283
|
if (ut ? Ce === "copy" ? (P(!0), Ce = "download", Yt.molocoGenerateHtml = !0) : H(!0) : At && (Yt.responsiveType = Oe), console.log("getVersion", ue, Ce, Yt), ue === "cdn") {
|
|
8300
|
-
x(!0), await
|
|
8284
|
+
x(!0), await K(!0);
|
|
8301
8285
|
return;
|
|
8302
8286
|
}
|
|
8303
8287
|
return ue === "adikteev" && (Ce = "copy"), z(!0), new Promise((yr, vr) => {
|
|
@@ -8306,7 +8290,7 @@ const Yd = ({
|
|
|
8306
8290
|
ue,
|
|
8307
8291
|
qe ? p : null,
|
|
8308
8292
|
Ce,
|
|
8309
|
-
|
|
8293
|
+
q,
|
|
8310
8294
|
Yt
|
|
8311
8295
|
).then((wt) => {
|
|
8312
8296
|
z(!1), yr(wt), P(!1), H(!1);
|
|
@@ -8319,8 +8303,8 @@ const Yd = ({
|
|
|
8319
8303
|
const Ce = {
|
|
8320
8304
|
molocoGenerateHtml: !1
|
|
8321
8305
|
};
|
|
8322
|
-
ue && (Ce.molocoGenerateHtml = !0), pn(A, i, qe ? p : null, "download",
|
|
8323
|
-
ue ? P(!1) : H(!1),
|
|
8306
|
+
ue && (Ce.molocoGenerateHtml = !0), pn(A, i, qe ? p : null, "download", q, Ce).then((Oe) => {
|
|
8307
|
+
ue ? P(!1) : H(!1), U(!1);
|
|
8324
8308
|
}).catch((Oe) => {
|
|
8325
8309
|
d(Oe.message, Oe);
|
|
8326
8310
|
});
|
|
@@ -8350,7 +8334,7 @@ const Yd = ({
|
|
|
8350
8334
|
cursor: "pointer"
|
|
8351
8335
|
},
|
|
8352
8336
|
className: "border-hover-" + l,
|
|
8353
|
-
onClick:
|
|
8337
|
+
onClick: ze,
|
|
8354
8338
|
children: [
|
|
8355
8339
|
/* @__PURE__ */ c.jsxs(
|
|
8356
8340
|
"div",
|
|
@@ -8429,7 +8413,7 @@ const Yd = ({
|
|
|
8429
8413
|
/* @__PURE__ */ c.jsx(
|
|
8430
8414
|
"img",
|
|
8431
8415
|
{
|
|
8432
|
-
onClick:
|
|
8416
|
+
onClick: ze,
|
|
8433
8417
|
style: {
|
|
8434
8418
|
width: "30rem",
|
|
8435
8419
|
// Equivalent to 120/4 = 30rem
|
|
@@ -8458,8 +8442,12 @@ const Yd = ({
|
|
|
8458
8442
|
className: `${ut ? "w-1/2" : "w-2/3"} border-hover-` + l,
|
|
8459
8443
|
downloading: W,
|
|
8460
8444
|
onClickDonwload: async (ue) => {
|
|
8461
|
-
if (ue.stopPropagation(),
|
|
8462
|
-
|
|
8445
|
+
if (ue.stopPropagation(), console.log("user in onclickdownload", k), l === "Flex" && k.flex === !1) {
|
|
8446
|
+
d("|ACCESS|");
|
|
8447
|
+
return;
|
|
8448
|
+
}
|
|
8449
|
+
if (ut && k.customer === "playableFactoryInternal") {
|
|
8450
|
+
U(!0);
|
|
8463
8451
|
return;
|
|
8464
8452
|
} else if (At)
|
|
8465
8453
|
se(!0);
|
|
@@ -8486,7 +8474,7 @@ const Yd = ({
|
|
|
8486
8474
|
}
|
|
8487
8475
|
}
|
|
8488
8476
|
),
|
|
8489
|
-
|
|
8477
|
+
k.customer !== "playableFactoryInternal" ? ae.t("common:txt") : ae.t("common:download")
|
|
8490
8478
|
] }),
|
|
8491
8479
|
V && /* @__PURE__ */ c.jsx(cn, {})
|
|
8492
8480
|
] }) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -8525,7 +8513,7 @@ const Yd = ({
|
|
|
8525
8513
|
children: /* @__PURE__ */ c.jsx(Io, { className: "h-6 w-6 stroke-dark-full" })
|
|
8526
8514
|
}
|
|
8527
8515
|
),
|
|
8528
|
-
ut &&
|
|
8516
|
+
ut && k.customer !== "playableFactoryInternal" && /* @__PURE__ */ c.jsxs(
|
|
8529
8517
|
Tr,
|
|
8530
8518
|
{
|
|
8531
8519
|
className: "w-1/2 border-hover-" + l,
|
|
@@ -8577,7 +8565,7 @@ const Yd = ({
|
|
|
8577
8565
|
onClose: () => {
|
|
8578
8566
|
L(!1), m(!1);
|
|
8579
8567
|
},
|
|
8580
|
-
getDownloadCount:
|
|
8568
|
+
getDownloadCount: b
|
|
8581
8569
|
}
|
|
8582
8570
|
),
|
|
8583
8571
|
G && /* @__PURE__ */ c.jsx(
|
|
@@ -8599,11 +8587,11 @@ const Yd = ({
|
|
|
8599
8587
|
urlType: T
|
|
8600
8588
|
}
|
|
8601
8589
|
),
|
|
8602
|
-
|
|
8590
|
+
M && k.customer === "playableFactoryInternal" && /* @__PURE__ */ c.jsx(
|
|
8603
8591
|
zd,
|
|
8604
8592
|
{
|
|
8605
8593
|
onClose: () => {
|
|
8606
|
-
|
|
8594
|
+
U(!1);
|
|
8607
8595
|
},
|
|
8608
8596
|
handleDownload: Ct,
|
|
8609
8597
|
handleDownloadMolocoTest: Rt,
|
|
@@ -8619,11 +8607,11 @@ const Yd = ({
|
|
|
8619
8607
|
se(!1);
|
|
8620
8608
|
},
|
|
8621
8609
|
handleDownload: async (ue) => {
|
|
8622
|
-
ue === "portrait" ? ge(!0) : ue === "landscape" ? we(!0) :
|
|
8610
|
+
ue === "portrait" ? ge(!0) : ue === "landscape" ? we(!0) : je(!0), await $e(i, "download", ue), ue === "portrait" ? ge(!1) : ue === "landscape" ? we(!1) : je(!1);
|
|
8623
8611
|
},
|
|
8624
8612
|
downloadingPortrait: $,
|
|
8625
8613
|
downloadingLandscape: R,
|
|
8626
|
-
downloadingResponsive:
|
|
8614
|
+
downloadingResponsive: We
|
|
8627
8615
|
}
|
|
8628
8616
|
)
|
|
8629
8617
|
] });
|
|
@@ -9031,44 +9019,44 @@ const Yd = ({
|
|
|
9031
9019
|
isTest: g,
|
|
9032
9020
|
urlType: m,
|
|
9033
9021
|
allNetworksSelected: v,
|
|
9034
|
-
cdnModal:
|
|
9022
|
+
cdnModal: b,
|
|
9035
9023
|
setCdnModal: Z,
|
|
9036
|
-
cdnUrl:
|
|
9024
|
+
cdnUrl: k,
|
|
9037
9025
|
setCdnUrl: S,
|
|
9038
|
-
customer:
|
|
9026
|
+
customer: q
|
|
9039
9027
|
}) => {
|
|
9040
|
-
const [T, x] = X([]), [
|
|
9041
|
-
|
|
9028
|
+
const [T, x] = X([]), [K, Y] = X([]), [W, z] = X(!1), [j, B] = X(""), [E, L] = X(!1), [G, y] = X(!1), [M, U] = X("download"), [w, I] = X(!1), [V, H] = X(!1), [J, P] = X(!1), [F, _] = Te(pa), [ne, se] = Te(ha), [$] = Te(Yi), [ge, R] = Te(qn), we = i === "Playable" ? ge : !0, We = async (Q = !1) => {
|
|
9029
|
+
Q && k || J || (P(!0), pn(r, "cdn", we ? A : null, null, !1, {}).then((oe) => {
|
|
9042
9030
|
S(oe.url), P(!1);
|
|
9043
9031
|
}).catch((oe) => {
|
|
9044
9032
|
a(oe.message, oe), P(!1);
|
|
9045
9033
|
}));
|
|
9046
|
-
},
|
|
9047
|
-
if (
|
|
9034
|
+
}, je = async (Q) => {
|
|
9035
|
+
if (Q === "adikteev")
|
|
9048
9036
|
return;
|
|
9049
9037
|
const oe = [...T];
|
|
9050
|
-
if (T.includes(
|
|
9051
|
-
const qe = oe.findIndex((be) => be ===
|
|
9038
|
+
if (T.includes(Q)) {
|
|
9039
|
+
const qe = oe.findIndex((be) => be === Q);
|
|
9052
9040
|
oe.splice(qe, 1), x(oe);
|
|
9053
9041
|
} else
|
|
9054
|
-
oe.push(
|
|
9042
|
+
oe.push(Q), x([...T, Q]);
|
|
9055
9043
|
$.filter((qe) => [...oe].includes(qe.id)).map((qe) => qe.name);
|
|
9056
|
-
}, Be = async () => new Promise(async (
|
|
9044
|
+
}, Be = async () => new Promise(async (Q, oe) => {
|
|
9057
9045
|
const qe = $.filter((be) => [...T].includes(be.id)).map((be) => be.name);
|
|
9058
9046
|
L(!0), od(r, A, qe, { urlType: m }).then((be) => {
|
|
9059
|
-
L(!1),
|
|
9047
|
+
L(!1), Q(be);
|
|
9060
9048
|
}).catch((be) => {
|
|
9061
9049
|
console.log("get multi download err"), L(!1), a(be.message, be), oe(be);
|
|
9062
9050
|
});
|
|
9063
9051
|
}), D = async () => {
|
|
9064
|
-
A.iosUrl, A.googleUrl, e && e.willSpendCredit ? (y(!0),
|
|
9052
|
+
A.iosUrl, A.googleUrl, e && e.willSpendCredit ? (y(!0), U("download"), I(!0)) : (I(!1), await Be());
|
|
9065
9053
|
};
|
|
9066
9054
|
return Ie(() => {
|
|
9067
|
-
const
|
|
9055
|
+
const Q = $.filter((oe) => {
|
|
9068
9056
|
var qe;
|
|
9069
|
-
return e && ((qe = e == null ? void 0 : e.networks) == null ? void 0 : qe.length) > 0 ? typeof oe == "string" ? e == null ? void 0 : e.networks.includes(oe) : e == null ? void 0 : e.networks.includes(oe.name) : i === "Import" ? t == null ? void 0 : t.networks.filter((be) => be.status === "paid").some((be) => be.name === oe.name) :
|
|
9057
|
+
return e && ((qe = e == null ? void 0 : e.networks) == null ? void 0 : qe.length) > 0 ? typeof oe == "string" ? e == null ? void 0 : e.networks.includes(oe) : e == null ? void 0 : e.networks.includes(oe.name) : i === "Import" ? t == null ? void 0 : t.networks.filter((be) => be.status === "paid").some((be) => be.name === oe.name) : t == null ? void 0 : t.networks.includes(oe.name);
|
|
9070
9058
|
}).filter((oe) => oe.name === "voodoo" ? o.customer === "customer:20" : !0).map((oe) => oe.id);
|
|
9071
|
-
x(v ?
|
|
9059
|
+
x(v ? Q : []);
|
|
9072
9060
|
}, [v]), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
9073
9061
|
/* @__PURE__ */ c.jsx(
|
|
9074
9062
|
"div",
|
|
@@ -9090,35 +9078,28 @@ const Yd = ({
|
|
|
9090
9078
|
overflowY: "auto",
|
|
9091
9079
|
padding: "0.75rem"
|
|
9092
9080
|
},
|
|
9093
|
-
children: n && $.filter((
|
|
9081
|
+
children: n && $.filter((Q) => {
|
|
9094
9082
|
var oe;
|
|
9095
|
-
|
|
9096
|
-
return typeof U == "string" ? e == null ? void 0 : e.networks.includes(U) : e == null ? void 0 : e.networks.includes(U.name);
|
|
9097
|
-
if (i === "Import")
|
|
9098
|
-
return t == null ? void 0 : t.networks.filter((qe) => qe.status === "paid").some((qe) => qe.name === U.name);
|
|
9099
|
-
if (!U)
|
|
9100
|
-
t == null || t.networks.includes(U);
|
|
9101
|
-
else
|
|
9102
|
-
return U;
|
|
9083
|
+
return e && ((oe = e == null ? void 0 : e.networks) == null ? void 0 : oe.length) > 0 ? typeof Q == "string" ? e == null ? void 0 : e.networks.includes(Q) : e == null ? void 0 : e.networks.includes(Q.name) : i === "Import" ? t == null ? void 0 : t.networks.filter((qe) => qe.status === "paid").some((qe) => qe.name === Q.name) : q != null && q.networks ? q.networks.includes(Q.name) : Q;
|
|
9103
9084
|
}).filter(
|
|
9104
|
-
(
|
|
9105
|
-
).map((
|
|
9106
|
-
let oe =
|
|
9107
|
-
if (
|
|
9085
|
+
(Q) => Q.name === "voodoo" ? o.customer === "customer:20" : !0
|
|
9086
|
+
).map((Q) => {
|
|
9087
|
+
let oe = Q.imageSrc;
|
|
9088
|
+
if (Q.name === "web") {
|
|
9108
9089
|
let qe = "web_" + i.toLowerCase() + ".png";
|
|
9109
9090
|
oe = oe.replace("web.png", qe);
|
|
9110
9091
|
}
|
|
9111
9092
|
return /* @__PURE__ */ c.jsx(
|
|
9112
9093
|
Nd,
|
|
9113
9094
|
{
|
|
9114
|
-
id:
|
|
9115
|
-
name:
|
|
9095
|
+
id: Q.id,
|
|
9096
|
+
name: Q.name,
|
|
9116
9097
|
imageUrl: oe,
|
|
9117
|
-
selected: T.includes(
|
|
9118
|
-
handleCardClick:
|
|
9119
|
-
networkVersionSize:
|
|
9098
|
+
selected: T.includes(Q.id),
|
|
9099
|
+
handleCardClick: je,
|
|
9100
|
+
networkVersionSize: K,
|
|
9120
9101
|
fileSizeLoading: W,
|
|
9121
|
-
showCheckBox:
|
|
9102
|
+
showCheckBox: Q.id !== "adikteev",
|
|
9122
9103
|
typeOfProduct: i,
|
|
9123
9104
|
versionId: r,
|
|
9124
9105
|
api: s,
|
|
@@ -9135,10 +9116,10 @@ const Yd = ({
|
|
|
9135
9116
|
isTest: g,
|
|
9136
9117
|
urlType: m,
|
|
9137
9118
|
setCdnModal: Z,
|
|
9138
|
-
generateCDN:
|
|
9139
|
-
cdnUrl:
|
|
9119
|
+
generateCDN: We,
|
|
9120
|
+
cdnUrl: k
|
|
9140
9121
|
},
|
|
9141
|
-
|
|
9122
|
+
Q.id
|
|
9142
9123
|
);
|
|
9143
9124
|
})
|
|
9144
9125
|
}
|
|
@@ -9169,7 +9150,7 @@ const Yd = ({
|
|
|
9169
9150
|
)
|
|
9170
9151
|
}
|
|
9171
9152
|
),
|
|
9172
|
-
|
|
9153
|
+
b && /* @__PURE__ */ c.jsx(
|
|
9173
9154
|
Td,
|
|
9174
9155
|
{
|
|
9175
9156
|
onClose: () => {
|
|
@@ -9178,12 +9159,16 @@ const Yd = ({
|
|
|
9178
9159
|
versionId: r,
|
|
9179
9160
|
urls: A,
|
|
9180
9161
|
handleDownloadError: a,
|
|
9181
|
-
cdnUrl:
|
|
9162
|
+
cdnUrl: k,
|
|
9182
9163
|
setCdnUrl: S,
|
|
9183
9164
|
generateCDN: async () => {
|
|
9184
9165
|
if (!J) {
|
|
9166
|
+
if (!e.willSpendCredit) {
|
|
9167
|
+
We();
|
|
9168
|
+
return;
|
|
9169
|
+
}
|
|
9185
9170
|
if (o.customer === "playableFactoryInternal") {
|
|
9186
|
-
|
|
9171
|
+
We();
|
|
9187
9172
|
return;
|
|
9188
9173
|
}
|
|
9189
9174
|
H(!0);
|
|
@@ -9206,11 +9191,11 @@ const Yd = ({
|
|
|
9206
9191
|
{
|
|
9207
9192
|
width: "100%",
|
|
9208
9193
|
height: "100%",
|
|
9209
|
-
creditConfirmType:
|
|
9194
|
+
creditConfirmType: M,
|
|
9210
9195
|
handleCopyLink: async () => {
|
|
9211
9196
|
},
|
|
9212
9197
|
download: async () => {
|
|
9213
|
-
I(!1), H(!1),
|
|
9198
|
+
I(!1), H(!1), We();
|
|
9214
9199
|
},
|
|
9215
9200
|
onClose: () => {
|
|
9216
9201
|
I(!1), H(!1), P(!1);
|
|
@@ -9221,7 +9206,7 @@ const Yd = ({
|
|
|
9221
9206
|
w && /* @__PURE__ */ c.jsx(
|
|
9222
9207
|
ui,
|
|
9223
9208
|
{
|
|
9224
|
-
creditConfirmType:
|
|
9209
|
+
creditConfirmType: M,
|
|
9225
9210
|
handleCopyLink: async () => {
|
|
9226
9211
|
},
|
|
9227
9212
|
download: async () => {
|
|
@@ -9304,17 +9289,17 @@ const _d = ({
|
|
|
9304
9289
|
androidLink: g,
|
|
9305
9290
|
setIosLink: m,
|
|
9306
9291
|
setAndroidLink: v,
|
|
9307
|
-
urlType:
|
|
9292
|
+
urlType: b,
|
|
9308
9293
|
setUrlType: Z
|
|
9309
9294
|
}) => {
|
|
9310
|
-
const [
|
|
9295
|
+
const [k, S] = X(null), [q, T] = X(null), [x, K] = X(null), [Y, W] = X(!1), [z, j] = X(!0), [B, E] = X(window.innerWidth), [L, G] = X(!1), [y, M] = X(!1), [U, w] = X("");
|
|
9311
9296
|
Te(pa), Te(ha);
|
|
9312
9297
|
const [I, V] = Te(ma), [H, J] = Te(qn);
|
|
9313
9298
|
Ie(() => {
|
|
9314
|
-
!
|
|
9299
|
+
!U && r !== "Fusion" && ud(e).then((D) => {
|
|
9315
9300
|
D != null && D.exist && w(D.uploadPath);
|
|
9316
9301
|
});
|
|
9317
|
-
}, [
|
|
9302
|
+
}, [U]), console.log("download modal version: 6.0.75");
|
|
9318
9303
|
const [P, F] = X(!1);
|
|
9319
9304
|
Ie(() => {
|
|
9320
9305
|
}, [P]), Ie(() => {
|
|
@@ -9329,30 +9314,30 @@ const _d = ({
|
|
|
9329
9314
|
W(!0);
|
|
9330
9315
|
const D = await oi(t, s);
|
|
9331
9316
|
return D != null && D.networks || (D.networks = Us), S(D), D;
|
|
9332
|
-
}, ne = (D,
|
|
9317
|
+
}, ne = (D, Q) => {
|
|
9333
9318
|
clearTimeout(Qs), Qs = setTimeout(() => {
|
|
9334
|
-
r === "Playable" && !H || Ri(e, { iosUrl: D, googleUrl:
|
|
9319
|
+
r === "Playable" && !H || Ri(e, { iosUrl: D, googleUrl: Q }, { urlType: b });
|
|
9335
9320
|
}, 1e3);
|
|
9336
9321
|
}, se = (D) => {
|
|
9337
9322
|
m(D), ne(D, g);
|
|
9338
9323
|
}, $ = (D) => {
|
|
9339
9324
|
v(D), ne(p, D);
|
|
9340
|
-
}, ge = async (D,
|
|
9325
|
+
}, ge = async (D, Q) => {
|
|
9341
9326
|
var oe, qe;
|
|
9342
9327
|
try {
|
|
9343
9328
|
let be;
|
|
9344
9329
|
if (r === "Playable" || r === "Ready") {
|
|
9345
|
-
const
|
|
9346
|
-
if (
|
|
9347
|
-
m(
|
|
9330
|
+
const ze = await Vd(e, s);
|
|
9331
|
+
if (ze) {
|
|
9332
|
+
m(ze.iosLink), v(ze.androidLink), W(!1);
|
|
9348
9333
|
return;
|
|
9349
9334
|
}
|
|
9350
9335
|
if (D && (D.iosUrl || D.googleUrl)) {
|
|
9351
9336
|
m(D.iosUrl), v(D.googleUrl), W(!1);
|
|
9352
9337
|
return;
|
|
9353
9338
|
}
|
|
9354
|
-
if (
|
|
9355
|
-
const $e = `${A}/${
|
|
9339
|
+
if (Q && Q.html) {
|
|
9340
|
+
const $e = `${A}/${Q.html}?t=${Date.now()}`;
|
|
9356
9341
|
let Ct = await fetch($e).then((At) => At.text());
|
|
9357
9342
|
const Rt = ((oe = Ct.match(
|
|
9358
9343
|
/var\s+iosLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
@@ -9365,9 +9350,9 @@ const _d = ({
|
|
|
9365
9350
|
} else
|
|
9366
9351
|
v(""), m(""), W(!1);
|
|
9367
9352
|
} else if (r === "Flex") {
|
|
9368
|
-
const
|
|
9369
|
-
if (
|
|
9370
|
-
v(
|
|
9353
|
+
const ze = await Xd(e, s);
|
|
9354
|
+
if (ze.googleUrl || ze.iosUrl) {
|
|
9355
|
+
v(ze.googleUrl), m(ze.iosUrl), W(!1);
|
|
9371
9356
|
return;
|
|
9372
9357
|
}
|
|
9373
9358
|
D && (D.iosUrl || D.googleUrl) ? (m(D.iosUrl), v(D.googleUrl), W(!1)) : (v(""), m(""), W(!1));
|
|
@@ -9379,36 +9364,36 @@ const _d = ({
|
|
|
9379
9364
|
}, R = async () => {
|
|
9380
9365
|
W(!0);
|
|
9381
9366
|
let D;
|
|
9382
|
-
r === "Flex" ? D = await Hd({ _id: e }, s) : r === "Ready" && (D = await Qd({ _id: e }, s)), D && (["admin", "pm", "tester", "sales"].includes(o.role) ?
|
|
9367
|
+
r === "Flex" ? D = await Hd({ _id: e }, s) : r === "Ready" && (D = await Qd({ _id: e }, s)), D && (["admin", "pm", "tester", "sales"].includes(o.role) ? K({
|
|
9383
9368
|
...D,
|
|
9384
9369
|
networks: I
|
|
9385
|
-
}) : (console.log("result", D), r === "Ready" && !D.canDownload ?
|
|
9370
|
+
}) : (console.log("result", D), r === "Ready" && !D.canDownload ? K({
|
|
9386
9371
|
...D,
|
|
9387
9372
|
networks: Us
|
|
9388
|
-
}) : (console.log("result", D),
|
|
9373
|
+
}) : (console.log("result", D), K({
|
|
9389
9374
|
...D,
|
|
9390
9375
|
networks: D.networks
|
|
9391
9376
|
})))), W(!1);
|
|
9392
|
-
}, we = async () => await Bd(n, s), [
|
|
9377
|
+
}, we = async () => await Bd(n, s), [We, je] = X(null), Be = async (D) => await Fd(D, s);
|
|
9393
9378
|
return Ie(() => {
|
|
9394
|
-
i || (S(null), T(null),
|
|
9395
|
-
Be(D.customer).then((
|
|
9396
|
-
|
|
9397
|
-
}), _().then((
|
|
9398
|
-
ge(null,
|
|
9379
|
+
i || (S(null), T(null), K(null), d(null), je(null)), i && (r === "Playable" ? we().then((D) => {
|
|
9380
|
+
Be(D.customer).then((Q) => {
|
|
9381
|
+
je(Q);
|
|
9382
|
+
}), _().then((Q) => {
|
|
9383
|
+
ge(null, Q);
|
|
9399
9384
|
}), j(!1);
|
|
9400
9385
|
}) : r === "Ready" ? R().then((D) => {
|
|
9401
|
-
_().then((
|
|
9402
|
-
ge(null,
|
|
9386
|
+
_().then((Q) => {
|
|
9387
|
+
ge(null, Q), j(!1);
|
|
9403
9388
|
});
|
|
9404
9389
|
}) : r === "Flex" ? R().then((D) => {
|
|
9405
|
-
j(!1), we().then((
|
|
9406
|
-
i && (ge(
|
|
9390
|
+
j(!1), we().then((Q) => {
|
|
9391
|
+
i && (ge(Q, null), j(!1), T(Q));
|
|
9407
9392
|
});
|
|
9408
9393
|
}) : r === "Import" ? Ud(e, s).then((D) => {
|
|
9409
9394
|
S(D), m(D.iosUrl || ""), v(D.googleUrl || ""), W(!1), j(!1);
|
|
9410
9395
|
}) : r === "Fusion" && (j(!1), we().then((D) => {
|
|
9411
|
-
i && (ge(D, null), j(!1), D.networks = I.filter((
|
|
9396
|
+
i && (ge(D, null), j(!1), D.networks = I.filter((Q) => Q !== "cdn"), T(D));
|
|
9412
9397
|
})));
|
|
9413
9398
|
}, [n, t, e, i]), /* @__PURE__ */ c.jsxs(
|
|
9414
9399
|
"div",
|
|
@@ -9439,7 +9424,7 @@ const _d = ({
|
|
|
9439
9424
|
user: o,
|
|
9440
9425
|
isTest: L,
|
|
9441
9426
|
setIsTest: G,
|
|
9442
|
-
urlType:
|
|
9427
|
+
urlType: b,
|
|
9443
9428
|
setUrlType: Z,
|
|
9444
9429
|
allNetworksSelected: P,
|
|
9445
9430
|
setAllNetworksSelected: F
|
|
@@ -9457,10 +9442,10 @@ const _d = ({
|
|
|
9457
9442
|
},
|
|
9458
9443
|
children: /* @__PURE__ */ c.jsx(cn, { isNetworksLoading: !0 })
|
|
9459
9444
|
}
|
|
9460
|
-
) : (
|
|
9445
|
+
) : (k || x || r === "Fusion") && (r === "Flex" ? q : !0) && !Y && p !== "Loading..." && g !== "Loading..." && /* @__PURE__ */ c.jsx(
|
|
9461
9446
|
Pd,
|
|
9462
9447
|
{
|
|
9463
|
-
playable:
|
|
9448
|
+
playable: k,
|
|
9464
9449
|
creditDownload: x,
|
|
9465
9450
|
visible: i,
|
|
9466
9451
|
versionId: e,
|
|
@@ -9470,18 +9455,18 @@ const _d = ({
|
|
|
9470
9455
|
handleDownloadError: l,
|
|
9471
9456
|
fetchFileUrl: A,
|
|
9472
9457
|
urls: { iosUrl: p, googleUrl: g },
|
|
9473
|
-
game:
|
|
9458
|
+
game: q,
|
|
9474
9459
|
getDownloadCount: R,
|
|
9475
9460
|
disabled: z,
|
|
9476
9461
|
setSafariCopyLink: f,
|
|
9477
9462
|
isTest: L,
|
|
9478
|
-
urlType:
|
|
9463
|
+
urlType: b,
|
|
9479
9464
|
allNetworksSelected: P,
|
|
9480
9465
|
cdnModal: y,
|
|
9481
|
-
setCdnModal:
|
|
9482
|
-
cdnUrl:
|
|
9466
|
+
setCdnModal: M,
|
|
9467
|
+
cdnUrl: U,
|
|
9483
9468
|
setCdnUrl: w,
|
|
9484
|
-
customer:
|
|
9469
|
+
customer: We ?? void 0
|
|
9485
9470
|
}
|
|
9486
9471
|
)
|
|
9487
9472
|
]
|
|
@@ -9640,8 +9625,8 @@ var pi = { exports: {} };
|
|
|
9640
9625
|
}
|
|
9641
9626
|
var m = /(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent), v = m != null && m[1] != "Chrome" && /\biPod\b|\biPad\b/g.exec(navigator.userAgent) == null;
|
|
9642
9627
|
if (v) {
|
|
9643
|
-
var
|
|
9644
|
-
if (
|
|
9628
|
+
var b = A.indexOf(g);
|
|
9629
|
+
if (b > -1 && (b += d ? -1 : 1), u = A[b], typeof u > "u") {
|
|
9645
9630
|
l.preventDefault(), u = d ? p : f, u.focus();
|
|
9646
9631
|
return;
|
|
9647
9632
|
}
|
|
@@ -9954,14 +9939,14 @@ Nf.default.subscribe(Gf);
|
|
|
9954
9939
|
}, i = function() {
|
|
9955
9940
|
function E(L, G) {
|
|
9956
9941
|
for (var y = 0; y < G.length; y++) {
|
|
9957
|
-
var
|
|
9958
|
-
|
|
9942
|
+
var M = G[y];
|
|
9943
|
+
M.enumerable = M.enumerable || !1, M.configurable = !0, "value" in M && (M.writable = !0), Object.defineProperty(L, M.key, M);
|
|
9959
9944
|
}
|
|
9960
9945
|
}
|
|
9961
9946
|
return function(L, G, y) {
|
|
9962
9947
|
return G && E(L.prototype, G), y && E(L, y), L;
|
|
9963
9948
|
};
|
|
9964
|
-
}(), s = de, o = ir, a =
|
|
9949
|
+
}(), s = de, o = ir, a = q(o), l = at, A = S(l), u = Af, d = q(u), f = lt, p = S(f), g = Ut, m = S(g), v = st, b = q(v), Z = Qt, k = q(Z);
|
|
9965
9950
|
function S(E) {
|
|
9966
9951
|
if (E && E.__esModule)
|
|
9967
9952
|
return E;
|
|
@@ -9971,7 +9956,7 @@ Nf.default.subscribe(Gf);
|
|
|
9971
9956
|
Object.prototype.hasOwnProperty.call(E, G) && (L[G] = E[G]);
|
|
9972
9957
|
return L.default = E, L;
|
|
9973
9958
|
}
|
|
9974
|
-
function
|
|
9959
|
+
function q(E) {
|
|
9975
9960
|
return E && E.__esModule ? E : { default: E };
|
|
9976
9961
|
}
|
|
9977
9962
|
function T(E, L) {
|
|
@@ -9983,7 +9968,7 @@ Nf.default.subscribe(Gf);
|
|
|
9983
9968
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
9984
9969
|
return L && (typeof L == "object" || typeof L == "function") ? L : E;
|
|
9985
9970
|
}
|
|
9986
|
-
function
|
|
9971
|
+
function K(E, L) {
|
|
9987
9972
|
if (typeof L != "function" && L !== null)
|
|
9988
9973
|
throw new TypeError("Super expression must either be null or a function, not " + typeof L);
|
|
9989
9974
|
E.prototype = Object.create(L && L.prototype, { constructor: { value: E, enumerable: !1, writable: !0, configurable: !0 } }), L && (Object.setPrototypeOf ? Object.setPrototypeOf(E, L) : E.__proto__ = L);
|
|
@@ -9996,17 +9981,17 @@ Nf.default.subscribe(Gf);
|
|
|
9996
9981
|
}, z = function(L) {
|
|
9997
9982
|
return L.code === "Escape" || L.keyCode === 27;
|
|
9998
9983
|
}, j = 0, B = function(E) {
|
|
9999
|
-
|
|
9984
|
+
K(L, E);
|
|
10000
9985
|
function L(G) {
|
|
10001
9986
|
T(this, L);
|
|
10002
9987
|
var y = x(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, G));
|
|
10003
|
-
return y.setOverlayRef = function(
|
|
10004
|
-
y.overlay =
|
|
10005
|
-
}, y.setContentRef = function(
|
|
10006
|
-
y.content =
|
|
9988
|
+
return y.setOverlayRef = function(M) {
|
|
9989
|
+
y.overlay = M, y.props.overlayRef && y.props.overlayRef(M);
|
|
9990
|
+
}, y.setContentRef = function(M) {
|
|
9991
|
+
y.content = M, y.props.contentRef && y.props.contentRef(M);
|
|
10007
9992
|
}, y.afterClose = function() {
|
|
10008
|
-
var
|
|
10009
|
-
V && m.remove(J.body, V), I && m.remove(J.getElementsByTagName("html")[0], I), w && j > 0 && (j -= 1, j === 0 && p.show(
|
|
9993
|
+
var M = y.props, U = M.appElement, w = M.ariaHideApp, I = M.htmlOpenClassName, V = M.bodyOpenClassName, H = M.parentSelector, J = H && H().ownerDocument || document;
|
|
9994
|
+
V && m.remove(J.body, V), I && m.remove(J.getElementsByTagName("html")[0], I), w && j > 0 && (j -= 1, j === 0 && p.show(U)), y.props.shouldFocusAfterRender && (y.props.shouldReturnFocusAfterClose ? (A.returnFocus(y.props.preventScroll), A.teardownScopedFocus()) : A.popWithoutFocus()), y.props.onAfterClose && y.props.onAfterClose(), k.default.deregister(y);
|
|
10010
9995
|
}, y.open = function() {
|
|
10011
9996
|
y.beforeOpen(), y.state.afterOpen && y.state.beforeClose ? (clearTimeout(y.closeTimer), y.setState({ beforeClose: !1 })) : (y.props.shouldFocusAfterRender && (A.setupScopedFocus(y.node), A.markForFocusLater()), y.setState({ isOpen: !0 }, function() {
|
|
10012
9997
|
y.openAnimationFrame = requestAnimationFrame(function() {
|
|
@@ -10021,8 +10006,8 @@ Nf.default.subscribe(Gf);
|
|
|
10021
10006
|
}, y.focusContent = function() {
|
|
10022
10007
|
return y.content && !y.contentHasFocus() && y.content.focus({ preventScroll: !0 });
|
|
10023
10008
|
}, y.closeWithTimeout = function() {
|
|
10024
|
-
var
|
|
10025
|
-
y.setState({ beforeClose: !0, closesAt:
|
|
10009
|
+
var M = Date.now() + y.props.closeTimeoutMS;
|
|
10010
|
+
y.setState({ beforeClose: !0, closesAt: M }, function() {
|
|
10026
10011
|
y.closeTimer = setTimeout(y.closeWithoutTimeout, y.state.closesAt - Date.now());
|
|
10027
10012
|
});
|
|
10028
10013
|
}, y.closeWithoutTimeout = function() {
|
|
@@ -10032,36 +10017,36 @@ Nf.default.subscribe(Gf);
|
|
|
10032
10017
|
afterOpen: !1,
|
|
10033
10018
|
closesAt: null
|
|
10034
10019
|
}, y.afterClose);
|
|
10035
|
-
}, y.handleKeyDown = function(
|
|
10036
|
-
W(
|
|
10037
|
-
}, y.handleOverlayOnClick = function(
|
|
10038
|
-
y.shouldClose === null && (y.shouldClose = !0), y.shouldClose && y.props.shouldCloseOnOverlayClick && (y.ownerHandlesClose() ? y.requestClose(
|
|
10020
|
+
}, y.handleKeyDown = function(M) {
|
|
10021
|
+
W(M) && (0, d.default)(y.content, M), y.props.shouldCloseOnEsc && z(M) && (M.stopPropagation(), y.requestClose(M));
|
|
10022
|
+
}, y.handleOverlayOnClick = function(M) {
|
|
10023
|
+
y.shouldClose === null && (y.shouldClose = !0), y.shouldClose && y.props.shouldCloseOnOverlayClick && (y.ownerHandlesClose() ? y.requestClose(M) : y.focusContent()), y.shouldClose = null;
|
|
10039
10024
|
}, y.handleContentOnMouseUp = function() {
|
|
10040
10025
|
y.shouldClose = !1;
|
|
10041
|
-
}, y.handleOverlayOnMouseDown = function(
|
|
10042
|
-
!y.props.shouldCloseOnOverlayClick &&
|
|
10026
|
+
}, y.handleOverlayOnMouseDown = function(M) {
|
|
10027
|
+
!y.props.shouldCloseOnOverlayClick && M.target == y.overlay && M.preventDefault();
|
|
10043
10028
|
}, y.handleContentOnClick = function() {
|
|
10044
10029
|
y.shouldClose = !1;
|
|
10045
10030
|
}, y.handleContentOnMouseDown = function() {
|
|
10046
10031
|
y.shouldClose = !1;
|
|
10047
|
-
}, y.requestClose = function(
|
|
10048
|
-
return y.ownerHandlesClose() && y.props.onRequestClose(
|
|
10032
|
+
}, y.requestClose = function(M) {
|
|
10033
|
+
return y.ownerHandlesClose() && y.props.onRequestClose(M);
|
|
10049
10034
|
}, y.ownerHandlesClose = function() {
|
|
10050
10035
|
return y.props.onRequestClose;
|
|
10051
10036
|
}, y.shouldBeClosed = function() {
|
|
10052
10037
|
return !y.state.isOpen && !y.state.beforeClose;
|
|
10053
10038
|
}, y.contentHasFocus = function() {
|
|
10054
10039
|
return document.activeElement === y.content || y.content.contains(document.activeElement);
|
|
10055
|
-
}, y.buildClassName = function(
|
|
10056
|
-
var w = (typeof
|
|
10057
|
-
base: Y[
|
|
10058
|
-
afterOpen: Y[
|
|
10059
|
-
beforeClose: Y[
|
|
10040
|
+
}, y.buildClassName = function(M, U) {
|
|
10041
|
+
var w = (typeof U > "u" ? "undefined" : r(U)) === "object" ? U : {
|
|
10042
|
+
base: Y[M],
|
|
10043
|
+
afterOpen: Y[M] + "--after-open",
|
|
10044
|
+
beforeClose: Y[M] + "--before-close"
|
|
10060
10045
|
}, I = w.base;
|
|
10061
|
-
return y.state.afterOpen && (I = I + " " + w.afterOpen), y.state.beforeClose && (I = I + " " + w.beforeClose), typeof
|
|
10062
|
-
}, y.attributesFromObject = function(
|
|
10063
|
-
return Object.keys(
|
|
10064
|
-
return w[
|
|
10046
|
+
return y.state.afterOpen && (I = I + " " + w.afterOpen), y.state.beforeClose && (I = I + " " + w.beforeClose), typeof U == "string" && U ? I + " " + U : I;
|
|
10047
|
+
}, y.attributesFromObject = function(M, U) {
|
|
10048
|
+
return Object.keys(U).reduce(function(w, I) {
|
|
10049
|
+
return w[M + "-" + I] = U[I], w;
|
|
10065
10050
|
}, {});
|
|
10066
10051
|
}, y.state = {
|
|
10067
10052
|
afterOpen: !1,
|
|
@@ -10075,8 +10060,8 @@ Nf.default.subscribe(Gf);
|
|
|
10075
10060
|
}
|
|
10076
10061
|
}, {
|
|
10077
10062
|
key: "componentDidUpdate",
|
|
10078
|
-
value: function(y,
|
|
10079
|
-
process.env.NODE_ENV !== "production" && (y.bodyOpenClassName !== this.props.bodyOpenClassName && console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'), y.htmlOpenClassName !== this.props.htmlOpenClassName && console.warn('React-Modal: "htmlOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.')), this.props.isOpen && !y.isOpen ? this.open() : !this.props.isOpen && y.isOpen && this.close(), this.props.shouldFocusAfterRender && this.state.isOpen && !
|
|
10063
|
+
value: function(y, M) {
|
|
10064
|
+
process.env.NODE_ENV !== "production" && (y.bodyOpenClassName !== this.props.bodyOpenClassName && console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'), y.htmlOpenClassName !== this.props.htmlOpenClassName && console.warn('React-Modal: "htmlOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.')), this.props.isOpen && !y.isOpen ? this.open() : !this.props.isOpen && y.isOpen && this.close(), this.props.shouldFocusAfterRender && this.state.isOpen && !M.isOpen && this.focusContent();
|
|
10080
10065
|
}
|
|
10081
10066
|
}, {
|
|
10082
10067
|
key: "componentWillUnmount",
|
|
@@ -10086,14 +10071,14 @@ Nf.default.subscribe(Gf);
|
|
|
10086
10071
|
}, {
|
|
10087
10072
|
key: "beforeOpen",
|
|
10088
10073
|
value: function() {
|
|
10089
|
-
var y = this.props,
|
|
10090
|
-
I && m.add(H.body, I), w && m.add(H.getElementsByTagName("html")[0], w),
|
|
10074
|
+
var y = this.props, M = y.appElement, U = y.ariaHideApp, w = y.htmlOpenClassName, I = y.bodyOpenClassName, V = y.parentSelector, H = V && V().ownerDocument || document;
|
|
10075
|
+
I && m.add(H.body, I), w && m.add(H.getElementsByTagName("html")[0], w), U && (j += 1, p.hide(M)), k.default.register(this);
|
|
10091
10076
|
}
|
|
10092
10077
|
// Don't steal focus from inner elements
|
|
10093
10078
|
}, {
|
|
10094
10079
|
key: "render",
|
|
10095
10080
|
value: function() {
|
|
10096
|
-
var y = this.props,
|
|
10081
|
+
var y = this.props, M = y.id, U = y.className, w = y.overlayClassName, I = y.defaultStyles, V = y.children, H = U ? {} : I.content, J = w ? {} : I.overlay;
|
|
10097
10082
|
if (this.shouldBeClosed())
|
|
10098
10083
|
return null;
|
|
10099
10084
|
var P = {
|
|
@@ -10103,10 +10088,10 @@ Nf.default.subscribe(Gf);
|
|
|
10103
10088
|
onClick: this.handleOverlayOnClick,
|
|
10104
10089
|
onMouseDown: this.handleOverlayOnMouseDown
|
|
10105
10090
|
}, F = n({
|
|
10106
|
-
id:
|
|
10091
|
+
id: M,
|
|
10107
10092
|
ref: this.setContentRef,
|
|
10108
10093
|
style: n({}, H, this.props.style.content),
|
|
10109
|
-
className: this.buildClassName("content",
|
|
10094
|
+
className: this.buildClassName("content", U),
|
|
10110
10095
|
tabIndex: "-1",
|
|
10111
10096
|
onKeyDown: this.handleKeyDown,
|
|
10112
10097
|
onMouseDown: this.handleContentOnMouseDown,
|
|
@@ -10143,7 +10128,7 @@ Nf.default.subscribe(Gf);
|
|
|
10143
10128
|
bodyOpenClassName: a.default.string,
|
|
10144
10129
|
htmlOpenClassName: a.default.string,
|
|
10145
10130
|
ariaHideApp: a.default.bool,
|
|
10146
|
-
appElement: a.default.oneOfType([a.default.instanceOf(
|
|
10131
|
+
appElement: a.default.oneOfType([a.default.instanceOf(b.default), a.default.instanceOf(v.SafeHTMLCollection), a.default.instanceOf(v.SafeNodeList), a.default.arrayOf(a.default.instanceOf(b.default))]),
|
|
10147
10132
|
onAfterOpen: a.default.func,
|
|
10148
10133
|
onAfterClose: a.default.func,
|
|
10149
10134
|
onRequestClose: a.default.func,
|
|
@@ -12825,21 +12810,21 @@ const uo = 5, rh = ({
|
|
|
12825
12810
|
}) => {
|
|
12826
12811
|
const [d, f] = X(!1), [p, g] = X(!1);
|
|
12827
12812
|
Ie(() => {
|
|
12828
|
-
const
|
|
12813
|
+
const b = Gn(l, {
|
|
12829
12814
|
path: "/socket.io"
|
|
12830
12815
|
});
|
|
12831
|
-
return
|
|
12816
|
+
return b.on("connect", () => {
|
|
12832
12817
|
console.log("Connected to the socket server");
|
|
12833
|
-
}),
|
|
12818
|
+
}), b.on("video-compressing", async (Z) => {
|
|
12834
12819
|
if (console.log(Z), Z.userId === a._id && Z.isSuccess) {
|
|
12835
12820
|
console.log("Video compress successfull");
|
|
12836
|
-
const
|
|
12837
|
-
o(
|
|
12821
|
+
const k = await nh({ _id: i }, u);
|
|
12822
|
+
o(k.size), t(!1);
|
|
12838
12823
|
}
|
|
12839
|
-
}),
|
|
12824
|
+
}), b.on("error", (Z) => {
|
|
12840
12825
|
console.error("Socket error:", Z);
|
|
12841
12826
|
}), () => {
|
|
12842
|
-
|
|
12827
|
+
b.disconnect();
|
|
12843
12828
|
};
|
|
12844
12829
|
}, [i]);
|
|
12845
12830
|
const m = () => {
|
|
@@ -12847,14 +12832,14 @@ const uo = 5, rh = ({
|
|
|
12847
12832
|
}, v = async () => {
|
|
12848
12833
|
try {
|
|
12849
12834
|
f(!0);
|
|
12850
|
-
const
|
|
12835
|
+
const b = await th(
|
|
12851
12836
|
i,
|
|
12852
12837
|
s,
|
|
12853
12838
|
`${A}/videos/compressByDiff`
|
|
12854
12839
|
);
|
|
12855
|
-
console.log("Compression result:",
|
|
12856
|
-
} catch (
|
|
12857
|
-
console.error("Error compressing video:",
|
|
12840
|
+
console.log("Compression result:", b), n(!1);
|
|
12841
|
+
} catch (b) {
|
|
12842
|
+
console.error("Error compressing video:", b), n(!1), e();
|
|
12858
12843
|
}
|
|
12859
12844
|
};
|
|
12860
12845
|
return /* @__PURE__ */ c.jsxs(
|
|
@@ -13093,7 +13078,7 @@ const uh = ({
|
|
|
13093
13078
|
copyLinkUrl: p,
|
|
13094
13079
|
fusionData: g
|
|
13095
13080
|
}) => {
|
|
13096
|
-
const [m, v] = X(window.innerWidth), [
|
|
13081
|
+
const [m, v] = X(window.innerWidth), [b, Z] = X(!1), [k, S] = X(u), [q, T] = X(!1), [x, K] = X(!0), [Y, W] = X(null), [z, j] = X(""), [B, E] = X("Loading..."), [L, G] = X("Loading..."), [y, M] = X("game"), [U, w] = Te(Yi), [I, V] = Te(ma);
|
|
13097
13082
|
ad(o, a, j, f, g);
|
|
13098
13083
|
const H = async () => {
|
|
13099
13084
|
let J = await sh(a, o);
|
|
@@ -13104,11 +13089,11 @@ const uh = ({
|
|
|
13104
13089
|
J = J.map((P) => (P.name = P.id, P)), w(J), V(
|
|
13105
13090
|
J.map((P) => P.id).filter((P) => P !== "default")
|
|
13106
13091
|
), ld(J), pn(n, "preview", null, null, !1).then((P) => {
|
|
13107
|
-
Z(!0), S(f + "/" + P.url), (o === "Flex" || o === "Ready" || o === "Playable" || o === "Fusion") && (P.size >= 5 ? T(!0) : T(!1), W(P.size)),
|
|
13092
|
+
Z(!0), S(f + "/" + P.url), (o === "Flex" || o === "Ready" || o === "Playable" || o === "Fusion") && (P.size >= 5 ? T(!0) : T(!1), W(P.size)), K(!1);
|
|
13108
13093
|
});
|
|
13109
13094
|
};
|
|
13110
13095
|
return Ie(() => {
|
|
13111
|
-
t ?
|
|
13096
|
+
t ? b || (H(), Z(!0)) : (Z(!1), S(""));
|
|
13112
13097
|
}, [t]), Ie(() => {
|
|
13113
13098
|
const J = () => {
|
|
13114
13099
|
v(window.innerWidth);
|
|
@@ -13122,7 +13107,7 @@ const uh = ({
|
|
|
13122
13107
|
isOpen: t,
|
|
13123
13108
|
ariaHideApp: !1,
|
|
13124
13109
|
onRequestClose: () => {
|
|
13125
|
-
e(), o === "Flex" &&
|
|
13110
|
+
e(), o === "Flex" && K(!0);
|
|
13126
13111
|
},
|
|
13127
13112
|
style: {
|
|
13128
13113
|
content: {
|
|
@@ -13181,12 +13166,12 @@ const uh = ({
|
|
|
13181
13166
|
J.stopPropagation();
|
|
13182
13167
|
},
|
|
13183
13168
|
children: [
|
|
13184
|
-
|
|
13169
|
+
q && t && /* @__PURE__ */ c.jsx(
|
|
13185
13170
|
rh,
|
|
13186
13171
|
{
|
|
13187
13172
|
setIsExceedingFileSizeAccepted: T,
|
|
13188
13173
|
closeModal: e,
|
|
13189
|
-
setLoading:
|
|
13174
|
+
setLoading: K,
|
|
13190
13175
|
typeOfProduct: o,
|
|
13191
13176
|
versionId: n,
|
|
13192
13177
|
fileSize: Y,
|
|
@@ -13197,13 +13182,13 @@ const uh = ({
|
|
|
13197
13182
|
api: a
|
|
13198
13183
|
}
|
|
13199
13184
|
),
|
|
13200
|
-
!
|
|
13185
|
+
!q && /* @__PURE__ */ c.jsxs(
|
|
13201
13186
|
mi,
|
|
13202
13187
|
{
|
|
13203
13188
|
isOpen: t,
|
|
13204
13189
|
ariaHideApp: !1,
|
|
13205
13190
|
onRequestClose: () => {
|
|
13206
|
-
e(), o === "Flex" &&
|
|
13191
|
+
e(), o === "Flex" && K(!0);
|
|
13207
13192
|
},
|
|
13208
13193
|
style: {
|
|
13209
13194
|
content: {
|
|
@@ -13248,7 +13233,7 @@ const uh = ({
|
|
|
13248
13233
|
"button",
|
|
13249
13234
|
{
|
|
13250
13235
|
onClick: () => {
|
|
13251
|
-
e(), o === "Flex" &&
|
|
13236
|
+
e(), o === "Flex" && K(!0);
|
|
13252
13237
|
},
|
|
13253
13238
|
style: {
|
|
13254
13239
|
color: "#718096",
|
|
@@ -13262,14 +13247,14 @@ const uh = ({
|
|
|
13262
13247
|
}
|
|
13263
13248
|
),
|
|
13264
13249
|
/* @__PURE__ */ c.jsxs(Al, { children: [
|
|
13265
|
-
|
|
13250
|
+
b ? /* @__PURE__ */ c.jsx(
|
|
13266
13251
|
xd,
|
|
13267
13252
|
{
|
|
13268
13253
|
versionName: i,
|
|
13269
13254
|
versionId: n,
|
|
13270
13255
|
playableId: s || "",
|
|
13271
13256
|
typeOfProduct: o,
|
|
13272
|
-
iframeUrl:
|
|
13257
|
+
iframeUrl: k,
|
|
13273
13258
|
api: a,
|
|
13274
13259
|
fetchFileUrl: f,
|
|
13275
13260
|
copyLinkUrl: p,
|
|
@@ -13325,7 +13310,7 @@ const uh = ({
|
|
|
13325
13310
|
setIosLink: E,
|
|
13326
13311
|
setAndroidLink: G,
|
|
13327
13312
|
urlType: y,
|
|
13328
|
-
setUrlType:
|
|
13313
|
+
setUrlType: M
|
|
13329
13314
|
}
|
|
13330
13315
|
)
|
|
13331
13316
|
] }),
|