gearboxdownloadmodal 6.0.37 → 6.0.38
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 +1017 -1017
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +16 -16
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/Card.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Ae, { useState as P, useEffect as ye, forwardRef as ki, useReducer as ji, useRef as ot, isValidElement as ht, cloneElement as Yn, useLayoutEffect as zi } from "react";
|
|
2
2
|
import Yi from "react-dom";
|
|
3
3
|
function Ji(e) {
|
|
4
4
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -39,7 +39,7 @@ function Di() {
|
|
|
39
39
|
if (Wr)
|
|
40
40
|
return It;
|
|
41
41
|
Wr = 1;
|
|
42
|
-
var e =
|
|
42
|
+
var e = Ae, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
43
43
|
function a(A, m, c) {
|
|
44
44
|
var l, d = {}, q = null, g = null;
|
|
45
45
|
c !== void 0 && (q = "" + c), m.key !== void 0 && (q = "" + m.key), m.ref !== void 0 && (g = m.ref);
|
|
@@ -65,15 +65,15 @@ var xt = {};
|
|
|
65
65
|
var Mr;
|
|
66
66
|
function Ri() {
|
|
67
67
|
return Mr || (Mr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
68
|
-
var e =
|
|
68
|
+
var e = Ae, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), A = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), p = Symbol.iterator, f = "@@iterator";
|
|
69
69
|
function v(u) {
|
|
70
70
|
if (u === null || typeof u != "object")
|
|
71
71
|
return null;
|
|
72
|
-
var w = p && u[p] || u[
|
|
72
|
+
var w = p && u[p] || u[f];
|
|
73
73
|
return typeof w == "function" ? w : null;
|
|
74
74
|
}
|
|
75
75
|
var K = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
76
|
-
function
|
|
76
|
+
function E(u) {
|
|
77
77
|
{
|
|
78
78
|
for (var w = arguments.length, S = new Array(w > 1 ? w - 1 : 0), Q = 1; Q < w; Q++)
|
|
79
79
|
S[Q - 1] = arguments[Q];
|
|
@@ -82,37 +82,37 @@ function Ri() {
|
|
|
82
82
|
}
|
|
83
83
|
function z(u, w, S) {
|
|
84
84
|
{
|
|
85
|
-
var Q = K.ReactDebugCurrentFrame,
|
|
86
|
-
|
|
87
|
-
var
|
|
85
|
+
var Q = K.ReactDebugCurrentFrame, ae = Q.getStackAddendum();
|
|
86
|
+
ae !== "" && (w += "%s", S = S.concat([ae]));
|
|
87
|
+
var de = S.map(function(re) {
|
|
88
88
|
return String(re);
|
|
89
89
|
});
|
|
90
|
-
|
|
90
|
+
de.unshift("Warning: " + w), Function.prototype.apply.call(console[u], console, de);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
var
|
|
94
|
-
|
|
95
|
-
function
|
|
96
|
-
return !!(typeof u == "string" || typeof u == "function" || u === r || u === i ||
|
|
93
|
+
var O = !1, y = !1, U = !1, _ = !1, te = !1, ue;
|
|
94
|
+
ue = Symbol.for("react.module.reference");
|
|
95
|
+
function $(u) {
|
|
96
|
+
return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || te || u === o || u === c || u === l || _ || u === g || O || y || U || typeof u == "object" && u !== null && (u.$$typeof === q || u.$$typeof === d || u.$$typeof === a || u.$$typeof === A || u.$$typeof === m || // 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.
|
|
100
|
-
u.$$typeof ===
|
|
100
|
+
u.$$typeof === ue || u.getModuleId !== void 0));
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function me(u, w, S) {
|
|
103
103
|
var Q = u.displayName;
|
|
104
104
|
if (Q)
|
|
105
105
|
return Q;
|
|
106
|
-
var
|
|
107
|
-
return
|
|
106
|
+
var ae = w.displayName || w.name || "";
|
|
107
|
+
return ae !== "" ? S + "(" + ae + ")" : S;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function F(u) {
|
|
110
110
|
return u.displayName || "Context";
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function ne(u) {
|
|
113
113
|
if (u == null)
|
|
114
114
|
return null;
|
|
115
|
-
if (typeof u.tag == "number" &&
|
|
115
|
+
if (typeof u.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function")
|
|
116
116
|
return u.displayName || u.name || null;
|
|
117
117
|
if (typeof u == "string")
|
|
118
118
|
return u;
|
|
@@ -134,19 +134,19 @@ function Ri() {
|
|
|
134
134
|
switch (u.$$typeof) {
|
|
135
135
|
case A:
|
|
136
136
|
var w = u;
|
|
137
|
-
return
|
|
137
|
+
return F(w) + ".Consumer";
|
|
138
138
|
case a:
|
|
139
139
|
var S = u;
|
|
140
|
-
return
|
|
140
|
+
return F(S._context) + ".Provider";
|
|
141
141
|
case m:
|
|
142
|
-
return
|
|
142
|
+
return me(u, u.render, "ForwardRef");
|
|
143
143
|
case d:
|
|
144
144
|
var Q = u.displayName || null;
|
|
145
|
-
return Q !== null ? Q :
|
|
145
|
+
return Q !== null ? Q : ne(u.type) || "Memo";
|
|
146
146
|
case q: {
|
|
147
|
-
var
|
|
147
|
+
var ae = u, de = ae._payload, re = ae._init;
|
|
148
148
|
try {
|
|
149
|
-
return
|
|
149
|
+
return ne(re(de));
|
|
150
150
|
} catch {
|
|
151
151
|
return null;
|
|
152
152
|
}
|
|
@@ -154,18 +154,18 @@ function Ri() {
|
|
|
154
154
|
}
|
|
155
155
|
return null;
|
|
156
156
|
}
|
|
157
|
-
var
|
|
158
|
-
function
|
|
157
|
+
var W = Object.assign, L = 0, k, h, M, T, Z, I, J;
|
|
158
|
+
function Y() {
|
|
159
159
|
}
|
|
160
|
-
|
|
161
|
-
function
|
|
160
|
+
Y.__reactDisabledLog = !0;
|
|
161
|
+
function j() {
|
|
162
162
|
{
|
|
163
|
-
if (
|
|
164
|
-
|
|
163
|
+
if (L === 0) {
|
|
164
|
+
k = console.log, h = console.info, M = console.warn, T = console.error, Z = console.group, I = console.groupCollapsed, J = console.groupEnd;
|
|
165
165
|
var u = {
|
|
166
166
|
configurable: !0,
|
|
167
167
|
enumerable: !0,
|
|
168
|
-
value:
|
|
168
|
+
value: Y,
|
|
169
169
|
writable: !0
|
|
170
170
|
};
|
|
171
171
|
Object.defineProperties(console, {
|
|
@@ -178,77 +178,77 @@ function Ri() {
|
|
|
178
178
|
groupEnd: u
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
-
|
|
181
|
+
L++;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
function X() {
|
|
185
185
|
{
|
|
186
|
-
if (
|
|
186
|
+
if (L--, L === 0) {
|
|
187
187
|
var u = {
|
|
188
188
|
configurable: !0,
|
|
189
189
|
enumerable: !0,
|
|
190
190
|
writable: !0
|
|
191
191
|
};
|
|
192
192
|
Object.defineProperties(console, {
|
|
193
|
-
log:
|
|
194
|
-
value:
|
|
193
|
+
log: W({}, u, {
|
|
194
|
+
value: k
|
|
195
195
|
}),
|
|
196
|
-
info:
|
|
197
|
-
value:
|
|
196
|
+
info: W({}, u, {
|
|
197
|
+
value: h
|
|
198
198
|
}),
|
|
199
|
-
warn:
|
|
200
|
-
value:
|
|
199
|
+
warn: W({}, u, {
|
|
200
|
+
value: M
|
|
201
201
|
}),
|
|
202
|
-
error:
|
|
203
|
-
value:
|
|
202
|
+
error: W({}, u, {
|
|
203
|
+
value: T
|
|
204
204
|
}),
|
|
205
|
-
group:
|
|
205
|
+
group: W({}, u, {
|
|
206
206
|
value: Z
|
|
207
207
|
}),
|
|
208
|
-
groupCollapsed:
|
|
209
|
-
value:
|
|
208
|
+
groupCollapsed: W({}, u, {
|
|
209
|
+
value: I
|
|
210
210
|
}),
|
|
211
|
-
groupEnd:
|
|
211
|
+
groupEnd: W({}, u, {
|
|
212
212
|
value: J
|
|
213
213
|
})
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
|
|
216
|
+
L < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
var
|
|
220
|
-
function
|
|
219
|
+
var R = K.ReactCurrentDispatcher, G;
|
|
220
|
+
function H(u, w, S) {
|
|
221
221
|
{
|
|
222
|
-
if (
|
|
222
|
+
if (G === void 0)
|
|
223
223
|
try {
|
|
224
224
|
throw Error();
|
|
225
|
-
} catch (
|
|
226
|
-
var Q =
|
|
227
|
-
|
|
225
|
+
} catch (ae) {
|
|
226
|
+
var Q = ae.stack.trim().match(/\n( *(at )?)/);
|
|
227
|
+
G = Q && Q[1] || "";
|
|
228
228
|
}
|
|
229
229
|
return `
|
|
230
|
-
` +
|
|
230
|
+
` + G + u;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
var
|
|
233
|
+
var V = !1, b;
|
|
234
234
|
{
|
|
235
|
-
var
|
|
236
|
-
|
|
235
|
+
var N = typeof WeakMap == "function" ? WeakMap : Map;
|
|
236
|
+
b = new N();
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
if (!u ||
|
|
238
|
+
function x(u, w) {
|
|
239
|
+
if (!u || V)
|
|
240
240
|
return "";
|
|
241
241
|
{
|
|
242
|
-
var S =
|
|
242
|
+
var S = b.get(u);
|
|
243
243
|
if (S !== void 0)
|
|
244
244
|
return S;
|
|
245
245
|
}
|
|
246
246
|
var Q;
|
|
247
|
-
|
|
248
|
-
var
|
|
247
|
+
V = !0;
|
|
248
|
+
var ae = Error.prepareStackTrace;
|
|
249
249
|
Error.prepareStackTrace = void 0;
|
|
250
|
-
var
|
|
251
|
-
|
|
250
|
+
var de;
|
|
251
|
+
de = R.current, R.current = null, j();
|
|
252
252
|
try {
|
|
253
253
|
if (w) {
|
|
254
254
|
var re = function() {
|
|
@@ -285,76 +285,76 @@ function Ri() {
|
|
|
285
285
|
if (Qe && Q && typeof Qe.stack == "string") {
|
|
286
286
|
for (var ee = Qe.stack.split(`
|
|
287
287
|
`), Ie = Q.stack.split(`
|
|
288
|
-
`),
|
|
289
|
-
|
|
290
|
-
for (;
|
|
291
|
-
if (ee[
|
|
292
|
-
if (
|
|
288
|
+
`), fe = ee.length - 1, he = Ie.length - 1; fe >= 1 && he >= 0 && ee[fe] !== Ie[he]; )
|
|
289
|
+
he--;
|
|
290
|
+
for (; fe >= 1 && he >= 0; fe--, he--)
|
|
291
|
+
if (ee[fe] !== Ie[he]) {
|
|
292
|
+
if (fe !== 1 || he !== 1)
|
|
293
293
|
do
|
|
294
|
-
if (
|
|
294
|
+
if (fe--, he--, he < 0 || ee[fe] !== Ie[he]) {
|
|
295
295
|
var We = `
|
|
296
|
-
` + ee[
|
|
297
|
-
return u.displayName && We.includes("<anonymous>") && (We = We.replace("<anonymous>", u.displayName)), typeof u == "function" &&
|
|
296
|
+
` + ee[fe].replace(" at new ", " at ");
|
|
297
|
+
return u.displayName && We.includes("<anonymous>") && (We = We.replace("<anonymous>", u.displayName)), typeof u == "function" && b.set(u, We), We;
|
|
298
298
|
}
|
|
299
|
-
while (
|
|
299
|
+
while (fe >= 1 && he >= 0);
|
|
300
300
|
break;
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
} finally {
|
|
304
|
-
|
|
304
|
+
V = !1, R.current = de, X(), Error.prepareStackTrace = ae;
|
|
305
305
|
}
|
|
306
|
-
var
|
|
307
|
-
return typeof u == "function" &&
|
|
306
|
+
var pt = u ? u.displayName || u.name : "", Kr = pt ? H(pt) : "";
|
|
307
|
+
return typeof u == "function" && b.set(u, Kr), Kr;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
310
|
-
return
|
|
309
|
+
function D(u, w, S) {
|
|
310
|
+
return x(u, !1);
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function ce(u) {
|
|
313
313
|
var w = u.prototype;
|
|
314
314
|
return !!(w && w.isReactComponent);
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function ie(u, w, S) {
|
|
317
317
|
if (u == null)
|
|
318
318
|
return "";
|
|
319
319
|
if (typeof u == "function")
|
|
320
|
-
return
|
|
320
|
+
return x(u, ce(u));
|
|
321
321
|
if (typeof u == "string")
|
|
322
|
-
return
|
|
322
|
+
return H(u);
|
|
323
323
|
switch (u) {
|
|
324
324
|
case c:
|
|
325
|
-
return
|
|
325
|
+
return H("Suspense");
|
|
326
326
|
case l:
|
|
327
|
-
return
|
|
327
|
+
return H("SuspenseList");
|
|
328
328
|
}
|
|
329
329
|
if (typeof u == "object")
|
|
330
330
|
switch (u.$$typeof) {
|
|
331
331
|
case m:
|
|
332
|
-
return
|
|
332
|
+
return D(u.render);
|
|
333
333
|
case d:
|
|
334
|
-
return
|
|
334
|
+
return ie(u.type, w, S);
|
|
335
335
|
case q: {
|
|
336
|
-
var Q = u,
|
|
336
|
+
var Q = u, ae = Q._payload, de = Q._init;
|
|
337
337
|
try {
|
|
338
|
-
return
|
|
338
|
+
return ie(de(ae), w, S);
|
|
339
339
|
} catch {
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
return "";
|
|
344
344
|
}
|
|
345
|
-
var Xe = Object.prototype.hasOwnProperty,
|
|
346
|
-
function
|
|
345
|
+
var Xe = Object.prototype.hasOwnProperty, ct = {}, Ne = K.ReactDebugCurrentFrame;
|
|
346
|
+
function mt(u) {
|
|
347
347
|
if (u) {
|
|
348
|
-
var w = u._owner, S =
|
|
349
|
-
|
|
348
|
+
var w = u._owner, S = ie(u.type, u._source, w ? w.type : null);
|
|
349
|
+
Ne.setExtraStackFrame(S);
|
|
350
350
|
} else
|
|
351
|
-
|
|
351
|
+
Ne.setExtraStackFrame(null);
|
|
352
352
|
}
|
|
353
|
-
function pi(u, w, S, Q,
|
|
353
|
+
function pi(u, w, S, Q, ae) {
|
|
354
354
|
{
|
|
355
|
-
var
|
|
355
|
+
var de = Function.call.bind(Xe);
|
|
356
356
|
for (var re in u)
|
|
357
|
-
if (
|
|
357
|
+
if (de(u, re)) {
|
|
358
358
|
var ee = void 0;
|
|
359
359
|
try {
|
|
360
360
|
if (typeof u[re] != "function") {
|
|
@@ -362,10 +362,10 @@ function Ri() {
|
|
|
362
362
|
throw Ie.name = "Invariant Violation", Ie;
|
|
363
363
|
}
|
|
364
364
|
ee = u[re](w, re, Q, S, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
365
|
-
} catch (
|
|
366
|
-
ee =
|
|
365
|
+
} catch (fe) {
|
|
366
|
+
ee = fe;
|
|
367
367
|
}
|
|
368
|
-
ee && !(ee instanceof Error) && (
|
|
368
|
+
ee && !(ee instanceof Error) && (mt(ae), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Q || "React class", S, re, typeof ee), mt(null)), ee instanceof Error && !(ee.message in ct) && (ct[ee.message] = !0, mt(ae), E("Failed %s type: %s", S, ee.message), mt(null));
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
}
|
|
@@ -391,7 +391,7 @@ function Ri() {
|
|
|
391
391
|
}
|
|
392
392
|
function qr(u) {
|
|
393
393
|
if (gi(u))
|
|
394
|
-
return
|
|
394
|
+
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", hi(u)), gr(u);
|
|
395
395
|
}
|
|
396
396
|
var Zt = K.ReactCurrentOwner, qi = {
|
|
397
397
|
key: !0,
|
|
@@ -418,14 +418,14 @@ function Ri() {
|
|
|
418
418
|
}
|
|
419
419
|
function bi(u, w) {
|
|
420
420
|
if (typeof u.ref == "string" && Zt.current && w && Zt.current.stateNode !== w) {
|
|
421
|
-
var S =
|
|
422
|
-
qn[S] || (
|
|
421
|
+
var S = ne(Zt.current.type);
|
|
422
|
+
qn[S] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', ne(Zt.current.type), u.ref), qn[S] = !0);
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
function Ci(u, w) {
|
|
426
426
|
{
|
|
427
427
|
var S = function() {
|
|
428
|
-
yr || (yr = !0,
|
|
428
|
+
yr || (yr = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", w));
|
|
429
429
|
};
|
|
430
430
|
S.isReactWarning = !0, Object.defineProperty(u, "key", {
|
|
431
431
|
get: S,
|
|
@@ -436,7 +436,7 @@ function Ri() {
|
|
|
436
436
|
function Zi(u, w) {
|
|
437
437
|
{
|
|
438
438
|
var S = function() {
|
|
439
|
-
vr || (vr = !0,
|
|
439
|
+
vr || (vr = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", w));
|
|
440
440
|
};
|
|
441
441
|
S.isReactWarning = !0, Object.defineProperty(u, "ref", {
|
|
442
442
|
get: S,
|
|
@@ -444,7 +444,7 @@ function Ri() {
|
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
var Ii = function(u, w, S, Q,
|
|
447
|
+
var Ii = function(u, w, S, Q, ae, de, re) {
|
|
448
448
|
var ee = {
|
|
449
449
|
// This tag allows us to uniquely identify this as a React Element
|
|
450
450
|
$$typeof: t,
|
|
@@ -454,7 +454,7 @@ function Ri() {
|
|
|
454
454
|
ref: S,
|
|
455
455
|
props: re,
|
|
456
456
|
// Record the component responsible for creating this element.
|
|
457
|
-
_owner:
|
|
457
|
+
_owner: de
|
|
458
458
|
};
|
|
459
459
|
return ee._store = {}, Object.defineProperty(ee._store, "validated", {
|
|
460
460
|
configurable: !1,
|
|
@@ -470,31 +470,31 @@ function Ri() {
|
|
|
470
470
|
configurable: !1,
|
|
471
471
|
enumerable: !1,
|
|
472
472
|
writable: !1,
|
|
473
|
-
value:
|
|
473
|
+
value: ae
|
|
474
474
|
}), Object.freeze && (Object.freeze(ee.props), Object.freeze(ee)), ee;
|
|
475
475
|
};
|
|
476
|
-
function xi(u, w, S, Q,
|
|
476
|
+
function xi(u, w, S, Q, ae) {
|
|
477
477
|
{
|
|
478
|
-
var
|
|
479
|
-
S !== void 0 && (qr(S), ee = "" + S), vi(w) && (qr(w.key), ee = "" + w.key), yi(w) && (Ie = w.ref, bi(w,
|
|
480
|
-
for (
|
|
481
|
-
Xe.call(w,
|
|
478
|
+
var de, re = {}, ee = null, Ie = null;
|
|
479
|
+
S !== void 0 && (qr(S), ee = "" + S), vi(w) && (qr(w.key), ee = "" + w.key), yi(w) && (Ie = w.ref, bi(w, ae));
|
|
480
|
+
for (de in w)
|
|
481
|
+
Xe.call(w, de) && !qi.hasOwnProperty(de) && (re[de] = w[de]);
|
|
482
482
|
if (u && u.defaultProps) {
|
|
483
|
-
var
|
|
484
|
-
for (
|
|
485
|
-
re[
|
|
483
|
+
var fe = u.defaultProps;
|
|
484
|
+
for (de in fe)
|
|
485
|
+
re[de] === void 0 && (re[de] = fe[de]);
|
|
486
486
|
}
|
|
487
487
|
if (ee || Ie) {
|
|
488
|
-
var
|
|
489
|
-
ee && Ci(re,
|
|
488
|
+
var he = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
|
|
489
|
+
ee && Ci(re, he), Ie && Zi(re, he);
|
|
490
490
|
}
|
|
491
|
-
return Ii(u, ee, Ie,
|
|
491
|
+
return Ii(u, ee, Ie, ae, Q, Zt.current, re);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
var yn = K.ReactCurrentOwner, br = K.ReactDebugCurrentFrame;
|
|
495
|
-
function
|
|
495
|
+
function dt(u) {
|
|
496
496
|
if (u) {
|
|
497
|
-
var w = u._owner, S =
|
|
497
|
+
var w = u._owner, S = ie(u.type, u._source, w ? w.type : null);
|
|
498
498
|
br.setExtraStackFrame(S);
|
|
499
499
|
} else
|
|
500
500
|
br.setExtraStackFrame(null);
|
|
@@ -507,7 +507,7 @@ function Ri() {
|
|
|
507
507
|
function Cr() {
|
|
508
508
|
{
|
|
509
509
|
if (yn.current) {
|
|
510
|
-
var u =
|
|
510
|
+
var u = ne(yn.current.type);
|
|
511
511
|
if (u)
|
|
512
512
|
return `
|
|
513
513
|
|
|
@@ -550,7 +550,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
550
550
|
return;
|
|
551
551
|
Zr[S] = !0;
|
|
552
552
|
var Q = "";
|
|
553
|
-
u && u._owner && u._owner !== yn.current && (Q = " It was passed a child from " +
|
|
553
|
+
u && u._owner && u._owner !== yn.current && (Q = " It was passed a child from " + ne(u._owner.type) + "."), dt(u), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', S, Q), dt(null);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
function xr(u, w) {
|
|
@@ -565,9 +565,9 @@ Check the top-level render call using <` + S + ">.");
|
|
|
565
565
|
else if (bn(u))
|
|
566
566
|
u._store && (u._store.validated = !0);
|
|
567
567
|
else if (u) {
|
|
568
|
-
var
|
|
569
|
-
if (typeof
|
|
570
|
-
for (var
|
|
568
|
+
var ae = v(u);
|
|
569
|
+
if (typeof ae == "function" && ae !== u.entries)
|
|
570
|
+
for (var de = ae.call(u), re; !(re = de.next()).done; )
|
|
571
571
|
bn(re.value) && Ir(re.value, w);
|
|
572
572
|
}
|
|
573
573
|
}
|
|
@@ -587,14 +587,14 @@ Check the top-level render call using <` + S + ">.");
|
|
|
587
587
|
else
|
|
588
588
|
return;
|
|
589
589
|
if (S) {
|
|
590
|
-
var Q =
|
|
590
|
+
var Q = ne(w);
|
|
591
591
|
pi(S, u.props, "prop", Q, u);
|
|
592
592
|
} else if (w.PropTypes !== void 0 && !vn) {
|
|
593
593
|
vn = !0;
|
|
594
|
-
var
|
|
595
|
-
|
|
594
|
+
var ae = ne(w);
|
|
595
|
+
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ae || "Unknown");
|
|
596
596
|
}
|
|
597
|
-
typeof w.getDefaultProps == "function" && !w.getDefaultProps.isReactClassApproved &&
|
|
597
|
+
typeof w.getDefaultProps == "function" && !w.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
function Mi(u) {
|
|
@@ -602,41 +602,41 @@ Check the top-level render call using <` + S + ">.");
|
|
|
602
602
|
for (var w = Object.keys(u.props), S = 0; S < w.length; S++) {
|
|
603
603
|
var Q = w[S];
|
|
604
604
|
if (Q !== "children" && Q !== "key") {
|
|
605
|
-
|
|
605
|
+
dt(u), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Q), dt(null);
|
|
606
606
|
break;
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
|
-
u.ref !== null && (
|
|
609
|
+
u.ref !== null && (dt(u), E("Invalid attribute `ref` supplied to `React.Fragment`."), dt(null));
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
function wr(u, w, S, Q,
|
|
612
|
+
function wr(u, w, S, Q, ae, de) {
|
|
613
613
|
{
|
|
614
|
-
var re =
|
|
614
|
+
var re = $(u);
|
|
615
615
|
if (!re) {
|
|
616
616
|
var ee = "";
|
|
617
617
|
(u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (ee += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
618
|
-
var Ie = wi(
|
|
618
|
+
var Ie = wi(ae);
|
|
619
619
|
Ie ? ee += Ie : ee += Cr();
|
|
620
|
-
var
|
|
621
|
-
u === null ?
|
|
620
|
+
var fe;
|
|
621
|
+
u === null ? fe = "null" : gn(u) ? fe = "array" : u !== void 0 && u.$$typeof === t ? (fe = "<" + (ne(u.type) || "Unknown") + " />", ee = " Did you accidentally export a JSX literal instead of a component?") : fe = typeof u, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", fe, ee);
|
|
622
622
|
}
|
|
623
|
-
var
|
|
624
|
-
if (
|
|
625
|
-
return
|
|
623
|
+
var he = xi(u, w, S, ae, de);
|
|
624
|
+
if (he == null)
|
|
625
|
+
return he;
|
|
626
626
|
if (re) {
|
|
627
627
|
var We = w.children;
|
|
628
628
|
if (We !== void 0)
|
|
629
629
|
if (Q)
|
|
630
630
|
if (gn(We)) {
|
|
631
|
-
for (var
|
|
632
|
-
xr(We[
|
|
631
|
+
for (var pt = 0; pt < We.length; pt++)
|
|
632
|
+
xr(We[pt], u);
|
|
633
633
|
Object.freeze && Object.freeze(We);
|
|
634
634
|
} else
|
|
635
|
-
|
|
635
|
+
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
636
636
|
else
|
|
637
637
|
xr(We, u);
|
|
638
638
|
}
|
|
639
|
-
return u === r ? Mi(
|
|
639
|
+
return u === r ? Mi(he) : Wi(he), he;
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
642
|
function Si(u, w, S) {
|
|
@@ -1365,9 +1365,9 @@ Re.createBytes = function(e, t) {
|
|
|
1365
1365
|
a[A][l] = p >= 0 ? g.get(p) : 0;
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
|
-
for (var
|
|
1369
|
-
|
|
1370
|
-
for (var v = new Array(
|
|
1368
|
+
for (var f = 0, l = 0; l < t.length; l++)
|
|
1369
|
+
f += t[l].totalCount;
|
|
1370
|
+
for (var v = new Array(f), K = 0, l = 0; l < r; l++)
|
|
1371
1371
|
for (var A = 0; A < t.length; A++)
|
|
1372
1372
|
l < i[A].length && (v[K++] = i[A][l]);
|
|
1373
1373
|
for (var l = 0; l < o; l++)
|
|
@@ -1375,7 +1375,7 @@ Re.createBytes = function(e, t) {
|
|
|
1375
1375
|
l < a[A].length && (v[K++] = a[A][l]);
|
|
1376
1376
|
return v;
|
|
1377
1377
|
};
|
|
1378
|
-
var $i = Re, Nn = { exports: {} }, Gt = { exports: {} },
|
|
1378
|
+
var $i = Re, Nn = { exports: {} }, Gt = { exports: {} }, se = {};
|
|
1379
1379
|
/** @license React v16.13.1
|
|
1380
1380
|
* react-is.production.min.js
|
|
1381
1381
|
*
|
|
@@ -1387,13 +1387,13 @@ var $i = Re, Nn = { exports: {} }, Gt = { exports: {} }, Ae = {};
|
|
|
1387
1387
|
var Lr;
|
|
1388
1388
|
function ea() {
|
|
1389
1389
|
if (Lr)
|
|
1390
|
-
return
|
|
1390
|
+
return se;
|
|
1391
1391
|
Lr = 1;
|
|
1392
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, A = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, q = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116,
|
|
1392
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, A = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, q = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, K = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
|
|
1393
1393
|
function z(y) {
|
|
1394
1394
|
if (typeof y == "object" && y !== null) {
|
|
1395
|
-
var
|
|
1396
|
-
switch (
|
|
1395
|
+
var U = y.$$typeof;
|
|
1396
|
+
switch (U) {
|
|
1397
1397
|
case t:
|
|
1398
1398
|
switch (y = y.type, y) {
|
|
1399
1399
|
case m:
|
|
@@ -1412,46 +1412,46 @@ function ea() {
|
|
|
1412
1412
|
case a:
|
|
1413
1413
|
return y;
|
|
1414
1414
|
default:
|
|
1415
|
-
return
|
|
1415
|
+
return U;
|
|
1416
1416
|
}
|
|
1417
1417
|
}
|
|
1418
1418
|
case n:
|
|
1419
|
-
return
|
|
1419
|
+
return U;
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
1422
|
}
|
|
1423
|
-
function
|
|
1423
|
+
function O(y) {
|
|
1424
1424
|
return z(y) === c;
|
|
1425
1425
|
}
|
|
1426
|
-
return
|
|
1427
|
-
return
|
|
1428
|
-
},
|
|
1426
|
+
return se.AsyncMode = m, se.ConcurrentMode = c, se.ContextConsumer = A, se.ContextProvider = a, se.Element = t, se.ForwardRef = l, se.Fragment = r, se.Lazy = p, se.Memo = g, se.Portal = n, se.Profiler = i, se.StrictMode = o, se.Suspense = d, se.isAsyncMode = function(y) {
|
|
1427
|
+
return O(y) || z(y) === m;
|
|
1428
|
+
}, se.isConcurrentMode = O, se.isContextConsumer = function(y) {
|
|
1429
1429
|
return z(y) === A;
|
|
1430
|
-
},
|
|
1430
|
+
}, se.isContextProvider = function(y) {
|
|
1431
1431
|
return z(y) === a;
|
|
1432
|
-
},
|
|
1432
|
+
}, se.isElement = function(y) {
|
|
1433
1433
|
return typeof y == "object" && y !== null && y.$$typeof === t;
|
|
1434
|
-
},
|
|
1434
|
+
}, se.isForwardRef = function(y) {
|
|
1435
1435
|
return z(y) === l;
|
|
1436
|
-
},
|
|
1436
|
+
}, se.isFragment = function(y) {
|
|
1437
1437
|
return z(y) === r;
|
|
1438
|
-
},
|
|
1438
|
+
}, se.isLazy = function(y) {
|
|
1439
1439
|
return z(y) === p;
|
|
1440
|
-
},
|
|
1440
|
+
}, se.isMemo = function(y) {
|
|
1441
1441
|
return z(y) === g;
|
|
1442
|
-
},
|
|
1442
|
+
}, se.isPortal = function(y) {
|
|
1443
1443
|
return z(y) === n;
|
|
1444
|
-
},
|
|
1444
|
+
}, se.isProfiler = function(y) {
|
|
1445
1445
|
return z(y) === i;
|
|
1446
|
-
},
|
|
1446
|
+
}, se.isStrictMode = function(y) {
|
|
1447
1447
|
return z(y) === o;
|
|
1448
|
-
},
|
|
1448
|
+
}, se.isSuspense = function(y) {
|
|
1449
1449
|
return z(y) === d;
|
|
1450
|
-
},
|
|
1451
|
-
return typeof y == "string" || typeof y == "function" || y === r || y === c || y === i || y === o || y === d || y === q || typeof y == "object" && y !== null && (y.$$typeof === p || y.$$typeof === g || y.$$typeof === a || y.$$typeof === A || y.$$typeof === l || y.$$typeof === v || y.$$typeof === K || y.$$typeof ===
|
|
1452
|
-
},
|
|
1450
|
+
}, se.isValidElementType = function(y) {
|
|
1451
|
+
return typeof y == "string" || typeof y == "function" || y === r || y === c || y === i || y === o || y === d || y === q || typeof y == "object" && y !== null && (y.$$typeof === p || y.$$typeof === g || y.$$typeof === a || y.$$typeof === A || y.$$typeof === l || y.$$typeof === v || y.$$typeof === K || y.$$typeof === E || y.$$typeof === f);
|
|
1452
|
+
}, se.typeOf = z, se;
|
|
1453
1453
|
}
|
|
1454
|
-
var
|
|
1454
|
+
var le = {};
|
|
1455
1455
|
/** @license React v16.13.1
|
|
1456
1456
|
* react-is.development.js
|
|
1457
1457
|
*
|
|
@@ -1463,85 +1463,85 @@ var se = {};
|
|
|
1463
1463
|
var Or;
|
|
1464
1464
|
function ta() {
|
|
1465
1465
|
return Or || (Or = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1466
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, A = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, q = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116,
|
|
1467
|
-
function z(
|
|
1468
|
-
return typeof
|
|
1469
|
-
|
|
1470
|
-
}
|
|
1471
|
-
function
|
|
1472
|
-
if (typeof
|
|
1473
|
-
var
|
|
1474
|
-
switch (
|
|
1466
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, A = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, q = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, K = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
|
|
1467
|
+
function z(x) {
|
|
1468
|
+
return typeof x == "string" || typeof x == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1469
|
+
x === r || x === c || x === i || x === o || x === d || x === q || typeof x == "object" && x !== null && (x.$$typeof === p || x.$$typeof === g || x.$$typeof === a || x.$$typeof === A || x.$$typeof === l || x.$$typeof === v || x.$$typeof === K || x.$$typeof === E || x.$$typeof === f);
|
|
1470
|
+
}
|
|
1471
|
+
function O(x) {
|
|
1472
|
+
if (typeof x == "object" && x !== null) {
|
|
1473
|
+
var D = x.$$typeof;
|
|
1474
|
+
switch (D) {
|
|
1475
1475
|
case t:
|
|
1476
|
-
var
|
|
1477
|
-
switch (
|
|
1476
|
+
var ce = x.type;
|
|
1477
|
+
switch (ce) {
|
|
1478
1478
|
case m:
|
|
1479
1479
|
case c:
|
|
1480
1480
|
case r:
|
|
1481
1481
|
case i:
|
|
1482
1482
|
case o:
|
|
1483
1483
|
case d:
|
|
1484
|
-
return
|
|
1484
|
+
return ce;
|
|
1485
1485
|
default:
|
|
1486
|
-
var
|
|
1487
|
-
switch (
|
|
1486
|
+
var ie = ce && ce.$$typeof;
|
|
1487
|
+
switch (ie) {
|
|
1488
1488
|
case A:
|
|
1489
1489
|
case l:
|
|
1490
1490
|
case p:
|
|
1491
1491
|
case g:
|
|
1492
1492
|
case a:
|
|
1493
|
-
return
|
|
1493
|
+
return ie;
|
|
1494
1494
|
default:
|
|
1495
|
-
return
|
|
1495
|
+
return D;
|
|
1496
1496
|
}
|
|
1497
1497
|
}
|
|
1498
1498
|
case n:
|
|
1499
|
-
return
|
|
1499
|
+
return D;
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
1503
|
-
var y = m,
|
|
1504
|
-
function
|
|
1505
|
-
return
|
|
1503
|
+
var y = m, U = c, _ = A, te = a, ue = t, $ = l, me = r, F = p, ne = g, W = n, L = i, k = o, h = d, M = !1;
|
|
1504
|
+
function T(x) {
|
|
1505
|
+
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.")), Z(x) || O(x) === m;
|
|
1506
1506
|
}
|
|
1507
|
-
function Z(
|
|
1508
|
-
return
|
|
1507
|
+
function Z(x) {
|
|
1508
|
+
return O(x) === c;
|
|
1509
1509
|
}
|
|
1510
|
-
function x
|
|
1511
|
-
return
|
|
1510
|
+
function I(x) {
|
|
1511
|
+
return O(x) === A;
|
|
1512
1512
|
}
|
|
1513
|
-
function J(
|
|
1514
|
-
return
|
|
1513
|
+
function J(x) {
|
|
1514
|
+
return O(x) === a;
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1517
|
-
return typeof
|
|
1516
|
+
function Y(x) {
|
|
1517
|
+
return typeof x == "object" && x !== null && x.$$typeof === t;
|
|
1518
1518
|
}
|
|
1519
|
-
function
|
|
1520
|
-
return
|
|
1519
|
+
function j(x) {
|
|
1520
|
+
return O(x) === l;
|
|
1521
1521
|
}
|
|
1522
|
-
function X(
|
|
1523
|
-
return
|
|
1522
|
+
function X(x) {
|
|
1523
|
+
return O(x) === r;
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1526
|
-
return
|
|
1525
|
+
function R(x) {
|
|
1526
|
+
return O(x) === p;
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1529
|
-
return
|
|
1528
|
+
function G(x) {
|
|
1529
|
+
return O(x) === g;
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1532
|
-
return
|
|
1531
|
+
function H(x) {
|
|
1532
|
+
return O(x) === n;
|
|
1533
1533
|
}
|
|
1534
|
-
function
|
|
1535
|
-
return
|
|
1534
|
+
function V(x) {
|
|
1535
|
+
return O(x) === i;
|
|
1536
1536
|
}
|
|
1537
|
-
function
|
|
1538
|
-
return
|
|
1537
|
+
function b(x) {
|
|
1538
|
+
return O(x) === o;
|
|
1539
1539
|
}
|
|
1540
|
-
function
|
|
1541
|
-
return
|
|
1540
|
+
function N(x) {
|
|
1541
|
+
return O(x) === d;
|
|
1542
1542
|
}
|
|
1543
|
-
|
|
1544
|
-
}()),
|
|
1543
|
+
le.AsyncMode = y, le.ConcurrentMode = U, le.ContextConsumer = _, le.ContextProvider = te, le.Element = ue, le.ForwardRef = $, le.Fragment = me, le.Lazy = F, le.Memo = ne, le.Portal = W, le.Profiler = L, le.StrictMode = k, le.Suspense = h, le.isAsyncMode = T, le.isConcurrentMode = Z, le.isContextConsumer = I, le.isContextProvider = J, le.isElement = Y, le.isForwardRef = j, le.isFragment = X, le.isLazy = R, le.isMemo = G, le.isPortal = H, le.isProfiler = V, le.isStrictMode = b, le.isSuspense = N, le.isValidElementType = z, le.typeOf = O;
|
|
1544
|
+
}()), le;
|
|
1545
1545
|
}
|
|
1546
1546
|
var Er;
|
|
1547
1547
|
function Co() {
|
|
@@ -1682,9 +1682,9 @@ function oa() {
|
|
|
1682
1682
|
return wn = function(A, m) {
|
|
1683
1683
|
var c = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
|
|
1684
1684
|
function d(Z) {
|
|
1685
|
-
var
|
|
1686
|
-
if (typeof
|
|
1687
|
-
return
|
|
1685
|
+
var I = Z && (c && Z[c] || Z[l]);
|
|
1686
|
+
if (typeof I == "function")
|
|
1687
|
+
return I;
|
|
1688
1688
|
}
|
|
1689
1689
|
var q = "<<anonymous>>", g = {
|
|
1690
1690
|
array: K("array"),
|
|
@@ -1695,223 +1695,223 @@ function oa() {
|
|
|
1695
1695
|
object: K("object"),
|
|
1696
1696
|
string: K("string"),
|
|
1697
1697
|
symbol: K("symbol"),
|
|
1698
|
-
any:
|
|
1698
|
+
any: E(),
|
|
1699
1699
|
arrayOf: z,
|
|
1700
|
-
element:
|
|
1700
|
+
element: O(),
|
|
1701
1701
|
elementType: y(),
|
|
1702
|
-
instanceOf:
|
|
1703
|
-
node:
|
|
1704
|
-
objectOf:
|
|
1705
|
-
oneOf:
|
|
1706
|
-
oneOfType:
|
|
1707
|
-
shape:
|
|
1708
|
-
exact:
|
|
1702
|
+
instanceOf: U,
|
|
1703
|
+
node: $(),
|
|
1704
|
+
objectOf: te,
|
|
1705
|
+
oneOf: _,
|
|
1706
|
+
oneOfType: ue,
|
|
1707
|
+
shape: F,
|
|
1708
|
+
exact: ne
|
|
1709
1709
|
};
|
|
1710
|
-
function p(Z,
|
|
1711
|
-
return Z ===
|
|
1710
|
+
function p(Z, I) {
|
|
1711
|
+
return Z === I ? Z !== 0 || 1 / Z === 1 / I : Z !== Z && I !== I;
|
|
1712
1712
|
}
|
|
1713
|
-
function
|
|
1714
|
-
this.message = Z, this.data =
|
|
1713
|
+
function f(Z, I) {
|
|
1714
|
+
this.message = Z, this.data = I && typeof I == "object" ? I : {}, this.stack = "";
|
|
1715
1715
|
}
|
|
1716
|
-
|
|
1716
|
+
f.prototype = Error.prototype;
|
|
1717
1717
|
function v(Z) {
|
|
1718
1718
|
if (process.env.NODE_ENV !== "production")
|
|
1719
|
-
var
|
|
1720
|
-
function
|
|
1721
|
-
if (
|
|
1719
|
+
var I = {}, J = 0;
|
|
1720
|
+
function Y(X, R, G, H, V, b, N) {
|
|
1721
|
+
if (H = H || q, b = b || G, N !== n) {
|
|
1722
1722
|
if (m) {
|
|
1723
|
-
var
|
|
1723
|
+
var x = new Error(
|
|
1724
1724
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1725
1725
|
);
|
|
1726
|
-
throw
|
|
1726
|
+
throw x.name = "Invariant Violation", x;
|
|
1727
1727
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1728
|
-
var
|
|
1729
|
-
!
|
|
1728
|
+
var D = H + ":" + G;
|
|
1729
|
+
!I[D] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1730
1730
|
J < 3 && (i(
|
|
1731
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1732
|
-
),
|
|
1731
|
+
"You are manually calling a React.PropTypes validation function for the `" + b + "` prop on `" + H + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
1732
|
+
), I[D] = !0, J++);
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
1735
|
-
return G
|
|
1735
|
+
return R[G] == null ? X ? R[G] === null ? new f("The " + V + " `" + b + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new f("The " + V + " `" + b + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : Z(R, G, H, V, b);
|
|
1736
1736
|
}
|
|
1737
|
-
var
|
|
1738
|
-
return
|
|
1737
|
+
var j = Y.bind(null, !1);
|
|
1738
|
+
return j.isRequired = Y.bind(null, !0), j;
|
|
1739
1739
|
}
|
|
1740
1740
|
function K(Z) {
|
|
1741
|
-
function
|
|
1742
|
-
var
|
|
1743
|
-
if (
|
|
1744
|
-
var
|
|
1745
|
-
return new
|
|
1746
|
-
"Invalid " + X + " `" +
|
|
1741
|
+
function I(J, Y, j, X, R, G) {
|
|
1742
|
+
var H = J[Y], V = k(H);
|
|
1743
|
+
if (V !== Z) {
|
|
1744
|
+
var b = h(H);
|
|
1745
|
+
return new f(
|
|
1746
|
+
"Invalid " + X + " `" + R + "` of type " + ("`" + b + "` supplied to `" + j + "`, expected ") + ("`" + Z + "`."),
|
|
1747
1747
|
{ expectedType: Z }
|
|
1748
1748
|
);
|
|
1749
1749
|
}
|
|
1750
1750
|
return null;
|
|
1751
1751
|
}
|
|
1752
|
-
return v(
|
|
1752
|
+
return v(I);
|
|
1753
1753
|
}
|
|
1754
|
-
function
|
|
1754
|
+
function E() {
|
|
1755
1755
|
return v(a);
|
|
1756
1756
|
}
|
|
1757
1757
|
function z(Z) {
|
|
1758
|
-
function
|
|
1758
|
+
function I(J, Y, j, X, R) {
|
|
1759
1759
|
if (typeof Z != "function")
|
|
1760
|
-
return new
|
|
1761
|
-
var
|
|
1762
|
-
if (!Array.isArray(
|
|
1763
|
-
var
|
|
1764
|
-
return new
|
|
1760
|
+
return new f("Property `" + R + "` of component `" + j + "` has invalid PropType notation inside arrayOf.");
|
|
1761
|
+
var G = J[Y];
|
|
1762
|
+
if (!Array.isArray(G)) {
|
|
1763
|
+
var H = k(G);
|
|
1764
|
+
return new f("Invalid " + X + " `" + R + "` of type " + ("`" + H + "` supplied to `" + j + "`, expected an array."));
|
|
1765
1765
|
}
|
|
1766
|
-
for (var
|
|
1767
|
-
var
|
|
1768
|
-
if (
|
|
1769
|
-
return
|
|
1766
|
+
for (var V = 0; V < G.length; V++) {
|
|
1767
|
+
var b = Z(G, V, j, X, R + "[" + V + "]", n);
|
|
1768
|
+
if (b instanceof Error)
|
|
1769
|
+
return b;
|
|
1770
1770
|
}
|
|
1771
1771
|
return null;
|
|
1772
1772
|
}
|
|
1773
|
-
return v(
|
|
1774
|
-
}
|
|
1775
|
-
function
|
|
1776
|
-
function Z(
|
|
1777
|
-
var
|
|
1778
|
-
if (!A(
|
|
1779
|
-
var
|
|
1780
|
-
return new
|
|
1773
|
+
return v(I);
|
|
1774
|
+
}
|
|
1775
|
+
function O() {
|
|
1776
|
+
function Z(I, J, Y, j, X) {
|
|
1777
|
+
var R = I[J];
|
|
1778
|
+
if (!A(R)) {
|
|
1779
|
+
var G = k(R);
|
|
1780
|
+
return new f("Invalid " + j + " `" + X + "` of type " + ("`" + G + "` supplied to `" + Y + "`, expected a single ReactElement."));
|
|
1781
1781
|
}
|
|
1782
1782
|
return null;
|
|
1783
1783
|
}
|
|
1784
1784
|
return v(Z);
|
|
1785
1785
|
}
|
|
1786
1786
|
function y() {
|
|
1787
|
-
function Z(
|
|
1788
|
-
var
|
|
1789
|
-
if (!e.isValidElementType(
|
|
1790
|
-
var
|
|
1791
|
-
return new
|
|
1787
|
+
function Z(I, J, Y, j, X) {
|
|
1788
|
+
var R = I[J];
|
|
1789
|
+
if (!e.isValidElementType(R)) {
|
|
1790
|
+
var G = k(R);
|
|
1791
|
+
return new f("Invalid " + j + " `" + X + "` of type " + ("`" + G + "` supplied to `" + Y + "`, expected a single ReactElement type."));
|
|
1792
1792
|
}
|
|
1793
1793
|
return null;
|
|
1794
1794
|
}
|
|
1795
1795
|
return v(Z);
|
|
1796
1796
|
}
|
|
1797
|
-
function
|
|
1798
|
-
function
|
|
1799
|
-
if (!(J[
|
|
1800
|
-
var
|
|
1801
|
-
return new
|
|
1797
|
+
function U(Z) {
|
|
1798
|
+
function I(J, Y, j, X, R) {
|
|
1799
|
+
if (!(J[Y] instanceof Z)) {
|
|
1800
|
+
var G = Z.name || q, H = T(J[Y]);
|
|
1801
|
+
return new f("Invalid " + X + " `" + R + "` of type " + ("`" + H + "` supplied to `" + j + "`, expected ") + ("instance of `" + G + "`."));
|
|
1802
1802
|
}
|
|
1803
1803
|
return null;
|
|
1804
1804
|
}
|
|
1805
|
-
return v(
|
|
1805
|
+
return v(I);
|
|
1806
1806
|
}
|
|
1807
|
-
function
|
|
1807
|
+
function _(Z) {
|
|
1808
1808
|
if (!Array.isArray(Z))
|
|
1809
1809
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1810
1810
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1811
1811
|
) : i("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
1812
|
-
function
|
|
1813
|
-
for (var
|
|
1814
|
-
if (p(
|
|
1812
|
+
function I(J, Y, j, X, R) {
|
|
1813
|
+
for (var G = J[Y], H = 0; H < Z.length; H++)
|
|
1814
|
+
if (p(G, Z[H]))
|
|
1815
1815
|
return null;
|
|
1816
|
-
var
|
|
1817
|
-
var
|
|
1818
|
-
return
|
|
1816
|
+
var V = JSON.stringify(Z, function(N, x) {
|
|
1817
|
+
var D = h(x);
|
|
1818
|
+
return D === "symbol" ? String(x) : x;
|
|
1819
1819
|
});
|
|
1820
|
-
return new
|
|
1820
|
+
return new f("Invalid " + X + " `" + R + "` of value `" + String(G) + "` " + ("supplied to `" + j + "`, expected one of " + V + "."));
|
|
1821
1821
|
}
|
|
1822
|
-
return v(
|
|
1822
|
+
return v(I);
|
|
1823
1823
|
}
|
|
1824
|
-
function
|
|
1825
|
-
function
|
|
1824
|
+
function te(Z) {
|
|
1825
|
+
function I(J, Y, j, X, R) {
|
|
1826
1826
|
if (typeof Z != "function")
|
|
1827
|
-
return new
|
|
1828
|
-
var
|
|
1829
|
-
if (
|
|
1830
|
-
return new
|
|
1831
|
-
for (var
|
|
1832
|
-
if (r(
|
|
1833
|
-
var
|
|
1834
|
-
if (
|
|
1835
|
-
return
|
|
1827
|
+
return new f("Property `" + R + "` of component `" + j + "` has invalid PropType notation inside objectOf.");
|
|
1828
|
+
var G = J[Y], H = k(G);
|
|
1829
|
+
if (H !== "object")
|
|
1830
|
+
return new f("Invalid " + X + " `" + R + "` of type " + ("`" + H + "` supplied to `" + j + "`, expected an object."));
|
|
1831
|
+
for (var V in G)
|
|
1832
|
+
if (r(G, V)) {
|
|
1833
|
+
var b = Z(G, V, j, X, R + "." + V, n);
|
|
1834
|
+
if (b instanceof Error)
|
|
1835
|
+
return b;
|
|
1836
1836
|
}
|
|
1837
1837
|
return null;
|
|
1838
1838
|
}
|
|
1839
|
-
return v(
|
|
1839
|
+
return v(I);
|
|
1840
1840
|
}
|
|
1841
|
-
function
|
|
1841
|
+
function ue(Z) {
|
|
1842
1842
|
if (!Array.isArray(Z))
|
|
1843
1843
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), a;
|
|
1844
|
-
for (var
|
|
1845
|
-
var J = Z[
|
|
1844
|
+
for (var I = 0; I < Z.length; I++) {
|
|
1845
|
+
var J = Z[I];
|
|
1846
1846
|
if (typeof J != "function")
|
|
1847
1847
|
return i(
|
|
1848
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
1848
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + M(J) + " at index " + I + "."
|
|
1849
1849
|
), a;
|
|
1850
1850
|
}
|
|
1851
|
-
function j
|
|
1852
|
-
for (var
|
|
1853
|
-
var
|
|
1854
|
-
if (
|
|
1851
|
+
function Y(j, X, R, G, H) {
|
|
1852
|
+
for (var V = [], b = 0; b < Z.length; b++) {
|
|
1853
|
+
var N = Z[b], x = N(j, X, R, G, H, n);
|
|
1854
|
+
if (x == null)
|
|
1855
1855
|
return null;
|
|
1856
|
-
|
|
1856
|
+
x.data && r(x.data, "expectedType") && V.push(x.data.expectedType);
|
|
1857
1857
|
}
|
|
1858
|
-
var
|
|
1859
|
-
return new
|
|
1858
|
+
var D = V.length > 0 ? ", expected one of type [" + V.join(", ") + "]" : "";
|
|
1859
|
+
return new f("Invalid " + G + " `" + H + "` supplied to " + ("`" + R + "`" + D + "."));
|
|
1860
1860
|
}
|
|
1861
|
-
return v(
|
|
1861
|
+
return v(Y);
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1864
|
-
function Z(
|
|
1865
|
-
return
|
|
1863
|
+
function $() {
|
|
1864
|
+
function Z(I, J, Y, j, X) {
|
|
1865
|
+
return W(I[J]) ? null : new f("Invalid " + j + " `" + X + "` supplied to " + ("`" + Y + "`, expected a ReactNode."));
|
|
1866
1866
|
}
|
|
1867
1867
|
return v(Z);
|
|
1868
1868
|
}
|
|
1869
|
-
function
|
|
1870
|
-
return new
|
|
1871
|
-
(Z || "React class") + ": " +
|
|
1869
|
+
function me(Z, I, J, Y, j) {
|
|
1870
|
+
return new f(
|
|
1871
|
+
(Z || "React class") + ": " + I + " type `" + J + "." + Y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + j + "`."
|
|
1872
1872
|
);
|
|
1873
1873
|
}
|
|
1874
|
-
function
|
|
1875
|
-
function
|
|
1876
|
-
var
|
|
1877
|
-
if (
|
|
1878
|
-
return new
|
|
1879
|
-
for (var
|
|
1880
|
-
var
|
|
1881
|
-
if (typeof
|
|
1882
|
-
return
|
|
1883
|
-
var
|
|
1884
|
-
if (
|
|
1885
|
-
return
|
|
1874
|
+
function F(Z) {
|
|
1875
|
+
function I(J, Y, j, X, R) {
|
|
1876
|
+
var G = J[Y], H = k(G);
|
|
1877
|
+
if (H !== "object")
|
|
1878
|
+
return new f("Invalid " + X + " `" + R + "` of type `" + H + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
1879
|
+
for (var V in Z) {
|
|
1880
|
+
var b = Z[V];
|
|
1881
|
+
if (typeof b != "function")
|
|
1882
|
+
return me(j, X, R, V, h(b));
|
|
1883
|
+
var N = b(G, V, j, X, R + "." + V, n);
|
|
1884
|
+
if (N)
|
|
1885
|
+
return N;
|
|
1886
1886
|
}
|
|
1887
1887
|
return null;
|
|
1888
1888
|
}
|
|
1889
|
-
return v(
|
|
1890
|
-
}
|
|
1891
|
-
function
|
|
1892
|
-
function
|
|
1893
|
-
var
|
|
1894
|
-
if (
|
|
1895
|
-
return new
|
|
1896
|
-
var
|
|
1897
|
-
for (var
|
|
1898
|
-
var
|
|
1899
|
-
if (r(Z,
|
|
1900
|
-
return
|
|
1901
|
-
if (!
|
|
1902
|
-
return new
|
|
1903
|
-
"Invalid " + X + " `" +
|
|
1889
|
+
return v(I);
|
|
1890
|
+
}
|
|
1891
|
+
function ne(Z) {
|
|
1892
|
+
function I(J, Y, j, X, R) {
|
|
1893
|
+
var G = J[Y], H = k(G);
|
|
1894
|
+
if (H !== "object")
|
|
1895
|
+
return new f("Invalid " + X + " `" + R + "` of type `" + H + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
1896
|
+
var V = t({}, J[Y], Z);
|
|
1897
|
+
for (var b in V) {
|
|
1898
|
+
var N = Z[b];
|
|
1899
|
+
if (r(Z, b) && typeof N != "function")
|
|
1900
|
+
return me(j, X, R, b, h(N));
|
|
1901
|
+
if (!N)
|
|
1902
|
+
return new f(
|
|
1903
|
+
"Invalid " + X + " `" + R + "` key `" + b + "` supplied to `" + j + "`.\nBad object: " + JSON.stringify(J[Y], null, " ") + `
|
|
1904
1904
|
Valid keys: ` + JSON.stringify(Object.keys(Z), null, " ")
|
|
1905
1905
|
);
|
|
1906
|
-
var
|
|
1907
|
-
if (
|
|
1908
|
-
return
|
|
1906
|
+
var x = N(G, b, j, X, R + "." + b, n);
|
|
1907
|
+
if (x)
|
|
1908
|
+
return x;
|
|
1909
1909
|
}
|
|
1910
1910
|
return null;
|
|
1911
1911
|
}
|
|
1912
|
-
return v(
|
|
1912
|
+
return v(I);
|
|
1913
1913
|
}
|
|
1914
|
-
function
|
|
1914
|
+
function W(Z) {
|
|
1915
1915
|
switch (typeof Z) {
|
|
1916
1916
|
case "number":
|
|
1917
1917
|
case "string":
|
|
@@ -1921,20 +1921,20 @@ Valid keys: ` + JSON.stringify(Object.keys(Z), null, " ")
|
|
|
1921
1921
|
return !Z;
|
|
1922
1922
|
case "object":
|
|
1923
1923
|
if (Array.isArray(Z))
|
|
1924
|
-
return Z.every(
|
|
1924
|
+
return Z.every(W);
|
|
1925
1925
|
if (Z === null || A(Z))
|
|
1926
1926
|
return !0;
|
|
1927
|
-
var
|
|
1928
|
-
if (
|
|
1929
|
-
var J =
|
|
1930
|
-
if (
|
|
1931
|
-
for (; !(
|
|
1932
|
-
if (!
|
|
1927
|
+
var I = d(Z);
|
|
1928
|
+
if (I) {
|
|
1929
|
+
var J = I.call(Z), Y;
|
|
1930
|
+
if (I !== Z.entries) {
|
|
1931
|
+
for (; !(Y = J.next()).done; )
|
|
1932
|
+
if (!W(Y.value))
|
|
1933
1933
|
return !1;
|
|
1934
1934
|
} else
|
|
1935
|
-
for (; !(
|
|
1936
|
-
var
|
|
1937
|
-
if (
|
|
1935
|
+
for (; !(Y = J.next()).done; ) {
|
|
1936
|
+
var j = Y.value;
|
|
1937
|
+
if (j && !W(j[1]))
|
|
1938
1938
|
return !1;
|
|
1939
1939
|
}
|
|
1940
1940
|
} else
|
|
@@ -1944,40 +1944,40 @@ Valid keys: ` + JSON.stringify(Object.keys(Z), null, " ")
|
|
|
1944
1944
|
return !1;
|
|
1945
1945
|
}
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1948
|
-
return Z === "symbol" ? !0 :
|
|
1947
|
+
function L(Z, I) {
|
|
1948
|
+
return Z === "symbol" ? !0 : I ? I["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && I instanceof Symbol : !1;
|
|
1949
1949
|
}
|
|
1950
|
-
function
|
|
1951
|
-
var
|
|
1952
|
-
return Array.isArray(Z) ? "array" : Z instanceof RegExp ? "object" :
|
|
1950
|
+
function k(Z) {
|
|
1951
|
+
var I = typeof Z;
|
|
1952
|
+
return Array.isArray(Z) ? "array" : Z instanceof RegExp ? "object" : L(I, Z) ? "symbol" : I;
|
|
1953
1953
|
}
|
|
1954
|
-
function
|
|
1954
|
+
function h(Z) {
|
|
1955
1955
|
if (typeof Z > "u" || Z === null)
|
|
1956
1956
|
return "" + Z;
|
|
1957
|
-
var
|
|
1958
|
-
if (
|
|
1957
|
+
var I = k(Z);
|
|
1958
|
+
if (I === "object") {
|
|
1959
1959
|
if (Z instanceof Date)
|
|
1960
1960
|
return "date";
|
|
1961
1961
|
if (Z instanceof RegExp)
|
|
1962
1962
|
return "regexp";
|
|
1963
1963
|
}
|
|
1964
|
-
return
|
|
1964
|
+
return I;
|
|
1965
1965
|
}
|
|
1966
|
-
function
|
|
1967
|
-
var
|
|
1968
|
-
switch (
|
|
1966
|
+
function M(Z) {
|
|
1967
|
+
var I = h(Z);
|
|
1968
|
+
switch (I) {
|
|
1969
1969
|
case "array":
|
|
1970
1970
|
case "object":
|
|
1971
|
-
return "an " +
|
|
1971
|
+
return "an " + I;
|
|
1972
1972
|
case "boolean":
|
|
1973
1973
|
case "date":
|
|
1974
1974
|
case "regexp":
|
|
1975
|
-
return "a " +
|
|
1975
|
+
return "a " + I;
|
|
1976
1976
|
default:
|
|
1977
|
-
return
|
|
1977
|
+
return I;
|
|
1978
1978
|
}
|
|
1979
1979
|
}
|
|
1980
|
-
function
|
|
1980
|
+
function T(Z) {
|
|
1981
1981
|
return !Z.constructor || !Z.constructor.name ? q : Z.constructor.name;
|
|
1982
1982
|
}
|
|
1983
1983
|
return g.checkPropTypes = o, g.resetWarningCache = o.resetWarningCache, g.PropTypes = g, g;
|
|
@@ -2048,7 +2048,7 @@ var sa = Object.assign || function(e) {
|
|
|
2048
2048
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2049
2049
|
}
|
|
2050
2050
|
return e;
|
|
2051
|
-
}, la = An, Se = xo(la), Io =
|
|
2051
|
+
}, la = An, Se = xo(la), Io = Ae, Tt = xo(Io);
|
|
2052
2052
|
function xo(e) {
|
|
2053
2053
|
return e && e.__esModule ? e : { default: e };
|
|
2054
2054
|
}
|
|
@@ -2099,8 +2099,8 @@ var da = Object.assign || function(e) {
|
|
|
2099
2099
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2100
2100
|
}
|
|
2101
2101
|
return e;
|
|
2102
|
-
}, pa = $i, fa =
|
|
2103
|
-
function
|
|
2102
|
+
}, pa = $i, fa = jt(pa), ha = ho, ga = jt(ha), qa = An, Pe = jt(qa), wo = Ae, ya = jt(wo), va = rr, ba = jt(va);
|
|
2103
|
+
function jt(e) {
|
|
2104
2104
|
return e && e.__esModule ? e : { default: e };
|
|
2105
2105
|
}
|
|
2106
2106
|
function Ca(e, t) {
|
|
@@ -2120,7 +2120,7 @@ var Za = {
|
|
|
2120
2120
|
fgColor: "#000000",
|
|
2121
2121
|
level: "L",
|
|
2122
2122
|
size: 256
|
|
2123
|
-
},
|
|
2123
|
+
}, zt = (0, wo.forwardRef)(function(e, t) {
|
|
2124
2124
|
var n = e.bgColor, r = e.fgColor, o = e.level, i = e.size, a = e.value, A = Ca(e, ["bgColor", "fgColor", "level", "size", "value"]), m = new fa.default(-1, ga.default[o]);
|
|
2125
2125
|
m.addData(a), m.make();
|
|
2126
2126
|
var c = m.modules;
|
|
@@ -2142,11 +2142,11 @@ var Za = {
|
|
|
2142
2142
|
viewBoxSize: c.length
|
|
2143
2143
|
}));
|
|
2144
2144
|
});
|
|
2145
|
-
an.QRCode =
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
var xa = an.default =
|
|
2145
|
+
an.QRCode = zt;
|
|
2146
|
+
zt.displayName = "QRCode";
|
|
2147
|
+
zt.propTypes = Za;
|
|
2148
|
+
zt.defaultProps = Ia;
|
|
2149
|
+
var xa = an.default = zt;
|
|
2150
2150
|
const Ko = ({
|
|
2151
2151
|
title: e,
|
|
2152
2152
|
titleId: t,
|
|
@@ -2213,7 +2213,7 @@ const Ma = un("string"), Ee = un("function"), So = un("number"), cn = (e) => e !
|
|
|
2213
2213
|
return e && (typeof FormData == "function" && e instanceof FormData || Ee(e.append) && ((t = ln(e)) === "formdata" || // detect form-data instance
|
|
2214
2214
|
t === "object" && Ee(e.toString) && e.toString() === "[object FormData]"));
|
|
2215
2215
|
}, Ya = He("URLSearchParams"), Ja = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
2216
|
-
function
|
|
2216
|
+
function Yt(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
2217
2217
|
if (e === null || typeof e > "u")
|
|
2218
2218
|
return;
|
|
2219
2219
|
let r, o;
|
|
@@ -2243,10 +2243,10 @@ function Dn() {
|
|
|
2243
2243
|
Bt(t[i]) && Bt(r) ? t[i] = Dn(t[i], r) : Bt(r) ? t[i] = Dn({}, r) : qt(r) ? t[i] = r.slice() : t[i] = r;
|
|
2244
2244
|
};
|
|
2245
2245
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
2246
|
-
arguments[r] &&
|
|
2246
|
+
arguments[r] && Yt(arguments[r], n);
|
|
2247
2247
|
return t;
|
|
2248
2248
|
}
|
|
2249
|
-
const Na = (e, t, n, { allOwnKeys: r } = {}) => (
|
|
2249
|
+
const Na = (e, t, n, { allOwnKeys: r } = {}) => (Yt(t, (o, i) => {
|
|
2250
2250
|
n && Ee(o) ? e[i] = Wo(o, n) : e[i] = o;
|
|
2251
2251
|
}, { allOwnKeys: r }), e), Da = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ra = (e, t, n, r) => {
|
|
2252
2252
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
@@ -2299,7 +2299,7 @@ const Na = (e, t, n, { allOwnKeys: r } = {}) => (zt(t, (o, i) => {
|
|
|
2299
2299
|
}
|
|
2300
2300
|
), Dr = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Ua = He("RegExp"), ko = (e, t) => {
|
|
2301
2301
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
2302
|
-
|
|
2302
|
+
Yt(n, (o, i) => {
|
|
2303
2303
|
let a;
|
|
2304
2304
|
(a = t(o, i, e)) !== !1 && (r[i] = a || o);
|
|
2305
2305
|
}), Object.defineProperties(e, r);
|
|
@@ -2348,7 +2348,7 @@ const rA = (e) => {
|
|
|
2348
2348
|
if (!("toJSON" in r)) {
|
|
2349
2349
|
t[o] = r;
|
|
2350
2350
|
const i = qt(r) ? [] : {};
|
|
2351
|
-
return
|
|
2351
|
+
return Yt(r, (a, A) => {
|
|
2352
2352
|
const m = n(a, o + 1);
|
|
2353
2353
|
!Lt(m) && (i[A] = m);
|
|
2354
2354
|
}), t[o] = void 0, i;
|
|
@@ -2378,7 +2378,7 @@ const rA = (e) => {
|
|
|
2378
2378
|
isURLSearchParams: Ya,
|
|
2379
2379
|
isTypedArray: Xa,
|
|
2380
2380
|
isFileList: ka,
|
|
2381
|
-
forEach:
|
|
2381
|
+
forEach: Yt,
|
|
2382
2382
|
merge: Dn,
|
|
2383
2383
|
extend: Na,
|
|
2384
2384
|
trim: Ja,
|
|
@@ -2486,8 +2486,8 @@ function mn(e, t, n) {
|
|
|
2486
2486
|
metaTokens: !0,
|
|
2487
2487
|
dots: !1,
|
|
2488
2488
|
indexes: !1
|
|
2489
|
-
}, !1, function(
|
|
2490
|
-
return !C.isUndefined(v[
|
|
2489
|
+
}, !1, function(f, v) {
|
|
2490
|
+
return !C.isUndefined(v[f]);
|
|
2491
2491
|
});
|
|
2492
2492
|
const r = n.metaTokens, o = n.visitor || l, i = n.dots, a = n.indexes, m = (n.Blob || typeof Blob < "u" && Blob) && C.isSpecCompliantForm(t);
|
|
2493
2493
|
if (!C.isFunction(o))
|
|
@@ -2501,39 +2501,39 @@ function mn(e, t, n) {
|
|
|
2501
2501
|
throw new oe("Blob is not supported. Use a Buffer instead.");
|
|
2502
2502
|
return C.isArrayBuffer(p) || C.isTypedArray(p) ? m && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
2503
2503
|
}
|
|
2504
|
-
function l(p,
|
|
2504
|
+
function l(p, f, v) {
|
|
2505
2505
|
let K = p;
|
|
2506
2506
|
if (p && !v && typeof p == "object") {
|
|
2507
|
-
if (C.endsWith(
|
|
2508
|
-
|
|
2509
|
-
else if (C.isArray(p) && AA(p) || (C.isFileList(p) || C.endsWith(
|
|
2510
|
-
return
|
|
2507
|
+
if (C.endsWith(f, "{}"))
|
|
2508
|
+
f = r ? f : f.slice(0, -2), p = JSON.stringify(p);
|
|
2509
|
+
else if (C.isArray(p) && AA(p) || (C.isFileList(p) || C.endsWith(f, "[]")) && (K = C.toArray(p)))
|
|
2510
|
+
return f = Jo(f), K.forEach(function(z, O) {
|
|
2511
2511
|
!(C.isUndefined(z) || z === null) && t.append(
|
|
2512
2512
|
// eslint-disable-next-line no-nested-ternary
|
|
2513
|
-
a === !0 ? Gr([
|
|
2513
|
+
a === !0 ? Gr([f], O, i) : a === null ? f : f + "[]",
|
|
2514
2514
|
c(z)
|
|
2515
2515
|
);
|
|
2516
2516
|
}), !1;
|
|
2517
2517
|
}
|
|
2518
|
-
return Rn(p) ? !0 : (t.append(Gr(v,
|
|
2518
|
+
return Rn(p) ? !0 : (t.append(Gr(v, f, i), c(p)), !1);
|
|
2519
2519
|
}
|
|
2520
2520
|
const d = [], q = Object.assign(sA, {
|
|
2521
2521
|
defaultVisitor: l,
|
|
2522
2522
|
convertValue: c,
|
|
2523
2523
|
isVisitable: Rn
|
|
2524
2524
|
});
|
|
2525
|
-
function g(p,
|
|
2525
|
+
function g(p, f) {
|
|
2526
2526
|
if (!C.isUndefined(p)) {
|
|
2527
2527
|
if (d.indexOf(p) !== -1)
|
|
2528
|
-
throw Error("Circular reference detected in " +
|
|
2529
|
-
d.push(p), C.forEach(p, function(K,
|
|
2528
|
+
throw Error("Circular reference detected in " + f.join("."));
|
|
2529
|
+
d.push(p), C.forEach(p, function(K, E) {
|
|
2530
2530
|
(!(C.isUndefined(K) || K === null) && o.call(
|
|
2531
2531
|
t,
|
|
2532
2532
|
K,
|
|
2533
|
-
C.isString(
|
|
2534
|
-
|
|
2533
|
+
C.isString(E) ? E.trim() : E,
|
|
2534
|
+
f,
|
|
2535
2535
|
q
|
|
2536
|
-
)) === !0 && g(K,
|
|
2536
|
+
)) === !0 && g(K, f ? f.concat(E) : [E]);
|
|
2537
2537
|
}), d.pop();
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
@@ -2962,10 +2962,10 @@ function Sn(e, t) {
|
|
|
2962
2962
|
function To(e) {
|
|
2963
2963
|
return !!(e && e.__CANCEL__);
|
|
2964
2964
|
}
|
|
2965
|
-
function
|
|
2965
|
+
function Jt(e, t, n) {
|
|
2966
2966
|
oe.call(this, e ?? "canceled", oe.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
2967
2967
|
}
|
|
2968
|
-
C.inherits(
|
|
2968
|
+
C.inherits(Jt, oe, {
|
|
2969
2969
|
__CANCEL__: !0
|
|
2970
2970
|
});
|
|
2971
2971
|
function wA(e, t, n) {
|
|
@@ -3100,8 +3100,8 @@ const EA = typeof XMLHttpRequest < "u", kA = EA && function(e) {
|
|
|
3100
3100
|
C.isFormData(o) && (Ge.isStandardBrowserEnv || Ge.isStandardBrowserWebWorkerEnv ? i.setContentType(!1) : i.getContentType(/^\s*multipart\/form-data/) ? C.isString(c = i.getContentType()) && i.setContentType(c.replace(/^\s*(multipart\/form-data);+/, "$1")) : i.setContentType("multipart/form-data"));
|
|
3101
3101
|
let l = new XMLHttpRequest();
|
|
3102
3102
|
if (e.auth) {
|
|
3103
|
-
const p = e.auth.username || "",
|
|
3104
|
-
i.set("Authorization", "Basic " + btoa(p + ":" +
|
|
3103
|
+
const p = e.auth.username || "", f = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
3104
|
+
i.set("Authorization", "Basic " + btoa(p + ":" + f));
|
|
3105
3105
|
}
|
|
3106
3106
|
const d = Ho(e.baseURL, e.url);
|
|
3107
3107
|
l.open(e.method.toUpperCase(), Do(d, e.params, e.paramsSerializer), !0), l.timeout = e.timeout;
|
|
@@ -3118,10 +3118,10 @@ const EA = typeof XMLHttpRequest < "u", kA = EA && function(e) {
|
|
|
3118
3118
|
config: e,
|
|
3119
3119
|
request: l
|
|
3120
3120
|
};
|
|
3121
|
-
wA(function(
|
|
3122
|
-
n(
|
|
3123
|
-
}, function(
|
|
3124
|
-
r(
|
|
3121
|
+
wA(function(E) {
|
|
3122
|
+
n(E), m();
|
|
3123
|
+
}, function(E) {
|
|
3124
|
+
r(E), m();
|
|
3125
3125
|
}, v), l = null;
|
|
3126
3126
|
}
|
|
3127
3127
|
if ("onloadend" in l ? l.onloadend = q : l.onreadystatechange = function() {
|
|
@@ -3131,10 +3131,10 @@ const EA = typeof XMLHttpRequest < "u", kA = EA && function(e) {
|
|
|
3131
3131
|
}, l.onerror = function() {
|
|
3132
3132
|
r(new oe("Network Error", oe.ERR_NETWORK, e, l)), l = null;
|
|
3133
3133
|
}, l.ontimeout = function() {
|
|
3134
|
-
let
|
|
3134
|
+
let f = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
3135
3135
|
const v = e.transitional || Ro;
|
|
3136
|
-
e.timeoutErrorMessage && (
|
|
3137
|
-
|
|
3136
|
+
e.timeoutErrorMessage && (f = e.timeoutErrorMessage), r(new oe(
|
|
3137
|
+
f,
|
|
3138
3138
|
v.clarifyTimeoutError ? oe.ETIMEDOUT : oe.ECONNABORTED,
|
|
3139
3139
|
e,
|
|
3140
3140
|
l
|
|
@@ -3143,10 +3143,10 @@ const EA = typeof XMLHttpRequest < "u", kA = EA && function(e) {
|
|
|
3143
3143
|
const p = (e.withCredentials || SA(d)) && e.xsrfCookieName && KA.read(e.xsrfCookieName);
|
|
3144
3144
|
p && i.set(e.xsrfHeaderName, p);
|
|
3145
3145
|
}
|
|
3146
|
-
o === void 0 && i.setContentType(null), "setRequestHeader" in l && C.forEach(i.toJSON(), function(
|
|
3147
|
-
l.setRequestHeader(v,
|
|
3146
|
+
o === void 0 && i.setContentType(null), "setRequestHeader" in l && C.forEach(i.toJSON(), function(f, v) {
|
|
3147
|
+
l.setRequestHeader(v, f);
|
|
3148
3148
|
}), C.isUndefined(e.withCredentials) || (l.withCredentials = !!e.withCredentials), a && a !== "json" && (l.responseType = e.responseType), typeof e.onDownloadProgress == "function" && l.addEventListener("progress", Qr(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", Qr(e.onUploadProgress)), (e.cancelToken || e.signal) && (A = (p) => {
|
|
3149
|
-
l && (r(!p || p.type ? new
|
|
3149
|
+
l && (r(!p || p.type ? new Jt(null, e, l) : p), l.abort(), l = null);
|
|
3150
3150
|
}, e.cancelToken && e.cancelToken.subscribe(A), e.signal && (e.signal.aborted ? A() : e.signal.addEventListener("abort", A)));
|
|
3151
3151
|
const g = LA(d);
|
|
3152
3152
|
if (g && Ge.protocols.indexOf(g) === -1) {
|
|
@@ -3201,7 +3201,7 @@ const Pr = (e) => `- ${e}`, jA = (e) => C.isFunction(e) || e === null || e === !
|
|
|
3201
3201
|
};
|
|
3202
3202
|
function Ln(e) {
|
|
3203
3203
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
3204
|
-
throw new
|
|
3204
|
+
throw new Jt(null, e);
|
|
3205
3205
|
}
|
|
3206
3206
|
function Vr(e) {
|
|
3207
3207
|
return Ln(e), e.headers = Be.from(e.headers), e.data = Sn.call(
|
|
@@ -3222,7 +3222,7 @@ function Vr(e) {
|
|
|
3222
3222
|
});
|
|
3223
3223
|
}
|
|
3224
3224
|
const Br = (e) => e instanceof Be ? e.toJSON() : e;
|
|
3225
|
-
function
|
|
3225
|
+
function gt(e, t) {
|
|
3226
3226
|
t = t || {};
|
|
3227
3227
|
const n = {};
|
|
3228
3228
|
function r(c, l, d) {
|
|
@@ -3349,7 +3349,7 @@ class en {
|
|
|
3349
3349
|
* @returns {Promise} The Promise to be fulfilled
|
|
3350
3350
|
*/
|
|
3351
3351
|
request(t, n) {
|
|
3352
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n =
|
|
3352
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = gt(this.defaults, n);
|
|
3353
3353
|
const { transitional: r, paramsSerializer: o, headers: i } = n;
|
|
3354
3354
|
r !== void 0 && Tn.assertOptions(r, {
|
|
3355
3355
|
silentJSONParsing: Fe.transitional(Fe.boolean),
|
|
@@ -3373,12 +3373,12 @@ class en {
|
|
|
3373
3373
|
), n.headers = Be.concat(a, i);
|
|
3374
3374
|
const A = [];
|
|
3375
3375
|
let m = !0;
|
|
3376
|
-
this.interceptors.request.forEach(function(
|
|
3377
|
-
typeof
|
|
3376
|
+
this.interceptors.request.forEach(function(f) {
|
|
3377
|
+
typeof f.runWhen == "function" && f.runWhen(n) === !1 || (m = m && f.synchronous, A.unshift(f.fulfilled, f.rejected));
|
|
3378
3378
|
});
|
|
3379
3379
|
const c = [];
|
|
3380
|
-
this.interceptors.response.forEach(function(
|
|
3381
|
-
c.push(
|
|
3380
|
+
this.interceptors.response.forEach(function(f) {
|
|
3381
|
+
c.push(f.fulfilled, f.rejected);
|
|
3382
3382
|
});
|
|
3383
3383
|
let l, d = 0, q;
|
|
3384
3384
|
if (!m) {
|
|
@@ -3390,11 +3390,11 @@ class en {
|
|
|
3390
3390
|
q = A.length;
|
|
3391
3391
|
let g = n;
|
|
3392
3392
|
for (d = 0; d < q; ) {
|
|
3393
|
-
const p = A[d++],
|
|
3393
|
+
const p = A[d++], f = A[d++];
|
|
3394
3394
|
try {
|
|
3395
3395
|
g = p(g);
|
|
3396
3396
|
} catch (v) {
|
|
3397
|
-
|
|
3397
|
+
f.call(this, v);
|
|
3398
3398
|
break;
|
|
3399
3399
|
}
|
|
3400
3400
|
}
|
|
@@ -3408,14 +3408,14 @@ class en {
|
|
|
3408
3408
|
return l;
|
|
3409
3409
|
}
|
|
3410
3410
|
getUri(t) {
|
|
3411
|
-
t =
|
|
3411
|
+
t = gt(this.defaults, t);
|
|
3412
3412
|
const n = Ho(t.baseURL, t.url);
|
|
3413
3413
|
return Do(n, t.params, t.paramsSerializer);
|
|
3414
3414
|
}
|
|
3415
3415
|
}
|
|
3416
3416
|
C.forEach(["delete", "get", "head", "options"], function(t) {
|
|
3417
3417
|
en.prototype[t] = function(n, r) {
|
|
3418
|
-
return this.request(
|
|
3418
|
+
return this.request(gt(r || {}, {
|
|
3419
3419
|
method: t,
|
|
3420
3420
|
url: n,
|
|
3421
3421
|
data: (r || {}).data
|
|
@@ -3425,7 +3425,7 @@ C.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
3425
3425
|
C.forEach(["post", "put", "patch"], function(t) {
|
|
3426
3426
|
function n(r) {
|
|
3427
3427
|
return function(i, a, A) {
|
|
3428
|
-
return this.request(
|
|
3428
|
+
return this.request(gt(A || {}, {
|
|
3429
3429
|
method: t,
|
|
3430
3430
|
headers: r ? {
|
|
3431
3431
|
"Content-Type": "multipart/form-data"
|
|
@@ -3463,7 +3463,7 @@ class lr {
|
|
|
3463
3463
|
r.unsubscribe(i);
|
|
3464
3464
|
}, a;
|
|
3465
3465
|
}, t(function(i, a, A) {
|
|
3466
|
-
r.reason || (r.reason = new
|
|
3466
|
+
r.reason || (r.reason = new Jt(i, a, A), n(r.reason));
|
|
3467
3467
|
});
|
|
3468
3468
|
}
|
|
3469
3469
|
/**
|
|
@@ -3587,30 +3587,30 @@ const DA = Hn;
|
|
|
3587
3587
|
function Po(e) {
|
|
3588
3588
|
const t = new Ft(e), n = Wo(Ft.prototype.request, t);
|
|
3589
3589
|
return C.extend(n, Ft.prototype, t, { allOwnKeys: !0 }), C.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
3590
|
-
return Po(
|
|
3590
|
+
return Po(gt(e, o));
|
|
3591
3591
|
}, n;
|
|
3592
3592
|
}
|
|
3593
|
-
const
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3593
|
+
const ge = Po(Ar);
|
|
3594
|
+
ge.Axios = Ft;
|
|
3595
|
+
ge.CanceledError = Jt;
|
|
3596
|
+
ge.CancelToken = YA;
|
|
3597
|
+
ge.isCancel = To;
|
|
3598
|
+
ge.VERSION = Qo;
|
|
3599
|
+
ge.toFormData = mn;
|
|
3600
|
+
ge.AxiosError = oe;
|
|
3601
|
+
ge.Cancel = ge.CanceledError;
|
|
3602
|
+
ge.all = function(t) {
|
|
3603
3603
|
return Promise.all(t);
|
|
3604
3604
|
};
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
const RA =
|
|
3605
|
+
ge.spread = JA;
|
|
3606
|
+
ge.isAxiosError = NA;
|
|
3607
|
+
ge.mergeConfig = gt;
|
|
3608
|
+
ge.AxiosHeaders = Be;
|
|
3609
|
+
ge.formToJSON = (e) => Go(C.isHTMLForm(e) ? new FormData(e) : e);
|
|
3610
|
+
ge.getAdapter = Xo.getAdapter;
|
|
3611
|
+
ge.HttpStatusCode = DA;
|
|
3612
|
+
ge.default = ge;
|
|
3613
|
+
const RA = ge;
|
|
3614
3614
|
/*! typescript-cookie v1.0.6 | MIT */
|
|
3615
3615
|
const Vo = (e) => encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape), Bo = (e) => encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent), ur = decodeURIComponent, cr = (e) => (e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent));
|
|
3616
3616
|
function GA(e) {
|
|
@@ -3743,7 +3743,7 @@ async function _r(e, t, n) {
|
|
|
3743
3743
|
_id: e
|
|
3744
3744
|
})).data;
|
|
3745
3745
|
}
|
|
3746
|
-
function
|
|
3746
|
+
function Nt(e) {
|
|
3747
3747
|
const t = document.createElement("input");
|
|
3748
3748
|
t.value = e, document.body.appendChild(t), t.select();
|
|
3749
3749
|
try {
|
|
@@ -3770,7 +3770,7 @@ function _e() {
|
|
|
3770
3770
|
(e = arguments[n++]) && (t = ei(e)) && (r && (r += " "), r += t);
|
|
3771
3771
|
return r;
|
|
3772
3772
|
}
|
|
3773
|
-
const Wt = (e) => typeof e == "number" && !isNaN(e), st = (e) => typeof e == "string", xe = (e) => typeof e == "function", _t = (e) => st(e) || xe(e) ? e : null, On = (e) =>
|
|
3773
|
+
const Wt = (e) => typeof e == "number" && !isNaN(e), st = (e) => typeof e == "string", xe = (e) => typeof e == "function", _t = (e) => st(e) || xe(e) ? e : null, On = (e) => ht(e) || st(e) || xe(e) || Wt(e);
|
|
3774
3774
|
function es(e, t, n) {
|
|
3775
3775
|
n === void 0 && (n = 300);
|
|
3776
3776
|
const { scrollHeight: r, style: o } = e;
|
|
@@ -3784,18 +3784,18 @@ function pn(e) {
|
|
|
3784
3784
|
let { enter: t, exit: n, appendPosition: r = !1, collapse: o = !0, collapseDuration: i = 300 } = e;
|
|
3785
3785
|
return function(a) {
|
|
3786
3786
|
let { children: A, position: m, preventExitTransition: c, done: l, nodeRef: d, isIn: q } = a;
|
|
3787
|
-
const g = r ? `${t}--${m}` : t, p = r ? `${n}--${m}` : n,
|
|
3787
|
+
const g = r ? `${t}--${m}` : t, p = r ? `${n}--${m}` : n, f = ot(0);
|
|
3788
3788
|
return zi(() => {
|
|
3789
|
-
const v = d.current, K = g.split(" "),
|
|
3790
|
-
z.target === d.current && (v.dispatchEvent(new Event("d")), v.removeEventListener("animationend",
|
|
3789
|
+
const v = d.current, K = g.split(" "), E = (z) => {
|
|
3790
|
+
z.target === d.current && (v.dispatchEvent(new Event("d")), v.removeEventListener("animationend", E), v.removeEventListener("animationcancel", E), f.current === 0 && z.type !== "animationcancel" && v.classList.remove(...K));
|
|
3791
3791
|
};
|
|
3792
|
-
v.classList.add(...K), v.addEventListener("animationend",
|
|
3792
|
+
v.classList.add(...K), v.addEventListener("animationend", E), v.addEventListener("animationcancel", E);
|
|
3793
3793
|
}, []), ye(() => {
|
|
3794
3794
|
const v = d.current, K = () => {
|
|
3795
3795
|
v.removeEventListener("animationend", K), o ? es(v, l, i) : l();
|
|
3796
3796
|
};
|
|
3797
|
-
q || (c ? K() : (
|
|
3798
|
-
}, [q]),
|
|
3797
|
+
q || (c ? K() : (f.current = 1, v.className += ` ${p}`, v.addEventListener("animationend", K)));
|
|
3798
|
+
}, [q]), Ae.createElement(Ae.Fragment, null, A);
|
|
3799
3799
|
};
|
|
3800
3800
|
}
|
|
3801
3801
|
function $r(e, t) {
|
|
@@ -3821,84 +3821,84 @@ const Le = { list: /* @__PURE__ */ new Map(), emitQueue: /* @__PURE__ */ new Map
|
|
|
3821
3821
|
});
|
|
3822
3822
|
} }, Ht = (e) => {
|
|
3823
3823
|
let { theme: t, type: n, ...r } = e;
|
|
3824
|
-
return
|
|
3824
|
+
return Ae.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: t === "colored" ? "currentColor" : `var(--toastify-icon-color-${n})`, ...r });
|
|
3825
3825
|
}, En = { info: function(e) {
|
|
3826
|
-
return
|
|
3826
|
+
return Ae.createElement(Ht, { ...e }, Ae.createElement("path", { d: "M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z" }));
|
|
3827
3827
|
}, warning: function(e) {
|
|
3828
|
-
return
|
|
3828
|
+
return Ae.createElement(Ht, { ...e }, Ae.createElement("path", { d: "M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z" }));
|
|
3829
3829
|
}, success: function(e) {
|
|
3830
|
-
return
|
|
3830
|
+
return Ae.createElement(Ht, { ...e }, Ae.createElement("path", { d: "M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z" }));
|
|
3831
3831
|
}, error: function(e) {
|
|
3832
|
-
return
|
|
3832
|
+
return Ae.createElement(Ht, { ...e }, Ae.createElement("path", { d: "M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z" }));
|
|
3833
3833
|
}, spinner: function() {
|
|
3834
|
-
return
|
|
3834
|
+
return Ae.createElement("div", { className: "Toastify__spinner" });
|
|
3835
3835
|
} };
|
|
3836
3836
|
function ts(e) {
|
|
3837
3837
|
const [, t] = ji((g) => g + 1, 0), [n, r] = P([]), o = ot(null), i = ot(/* @__PURE__ */ new Map()).current, a = (g) => n.indexOf(g) !== -1, A = ot({ toastKey: 1, displayedToast: 0, count: 0, queue: [], props: e, containerId: null, isToastActive: a, getToast: (g) => i.get(g) }).current;
|
|
3838
3838
|
function m(g) {
|
|
3839
3839
|
let { containerId: p } = g;
|
|
3840
|
-
const { limit:
|
|
3841
|
-
!
|
|
3840
|
+
const { limit: f } = A.props;
|
|
3841
|
+
!f || p && A.containerId !== p || (A.count -= A.queue.length, A.queue = []);
|
|
3842
3842
|
}
|
|
3843
3843
|
function c(g) {
|
|
3844
|
-
r((p) => g == null ? [] : p.filter((
|
|
3844
|
+
r((p) => g == null ? [] : p.filter((f) => f !== g));
|
|
3845
3845
|
}
|
|
3846
3846
|
function l() {
|
|
3847
|
-
const { toastContent: g, toastProps: p, staleId:
|
|
3848
|
-
q(g, p,
|
|
3847
|
+
const { toastContent: g, toastProps: p, staleId: f } = A.queue.shift();
|
|
3848
|
+
q(g, p, f);
|
|
3849
3849
|
}
|
|
3850
3850
|
function d(g, p) {
|
|
3851
|
-
let { delay:
|
|
3852
|
-
if (!On(g) || function(
|
|
3853
|
-
return !o.current || A.props.enableMultiContainer &&
|
|
3851
|
+
let { delay: f, staleId: v, ...K } = p;
|
|
3852
|
+
if (!On(g) || function(F) {
|
|
3853
|
+
return !o.current || A.props.enableMultiContainer && F.containerId !== A.props.containerId || i.has(F.toastId) && F.updateId == null;
|
|
3854
3854
|
}(K))
|
|
3855
3855
|
return;
|
|
3856
|
-
const { toastId:
|
|
3857
|
-
|
|
3858
|
-
const
|
|
3859
|
-
let [
|
|
3860
|
-
return
|
|
3861
|
-
})), toastId:
|
|
3862
|
-
const
|
|
3863
|
-
i.delete(
|
|
3864
|
-
const
|
|
3865
|
-
if (A.count =
|
|
3866
|
-
const
|
|
3867
|
-
if (
|
|
3856
|
+
const { toastId: E, updateId: z, data: O } = K, { props: y } = A, U = () => c(E), _ = z == null;
|
|
3857
|
+
_ && A.count++;
|
|
3858
|
+
const te = { ...y, style: y.toastStyle, key: A.toastKey++, ...Object.fromEntries(Object.entries(K).filter((F) => {
|
|
3859
|
+
let [ne, W] = F;
|
|
3860
|
+
return W != null;
|
|
3861
|
+
})), toastId: E, updateId: z, data: O, closeToast: U, isIn: !1, className: _t(K.className || y.toastClassName), bodyClassName: _t(K.bodyClassName || y.bodyClassName), progressClassName: _t(K.progressClassName || y.progressClassName), autoClose: !K.isLoading && (ue = K.autoClose, $ = y.autoClose, ue === !1 || Wt(ue) && ue > 0 ? ue : $), deleteToast() {
|
|
3862
|
+
const F = $r(i.get(E), "removed");
|
|
3863
|
+
i.delete(E), Le.emit(4, F);
|
|
3864
|
+
const ne = A.queue.length;
|
|
3865
|
+
if (A.count = E == null ? A.count - A.displayedToast : A.count - 1, A.count < 0 && (A.count = 0), ne > 0) {
|
|
3866
|
+
const W = E == null ? A.props.limit : 1;
|
|
3867
|
+
if (ne === 1 || W === 1)
|
|
3868
3868
|
A.displayedToast++, l();
|
|
3869
3869
|
else {
|
|
3870
|
-
const
|
|
3871
|
-
A.displayedToast =
|
|
3872
|
-
for (let
|
|
3870
|
+
const L = W > ne ? ne : W;
|
|
3871
|
+
A.displayedToast = L;
|
|
3872
|
+
for (let k = 0; k < L; k++)
|
|
3873
3873
|
l();
|
|
3874
3874
|
}
|
|
3875
3875
|
} else
|
|
3876
3876
|
t();
|
|
3877
3877
|
} };
|
|
3878
|
-
var
|
|
3879
|
-
|
|
3880
|
-
let { theme:
|
|
3881
|
-
const
|
|
3882
|
-
return
|
|
3883
|
-
}(
|
|
3884
|
-
let
|
|
3885
|
-
|
|
3886
|
-
q(
|
|
3887
|
-
},
|
|
3888
|
-
}
|
|
3889
|
-
function q(g, p,
|
|
3878
|
+
var ue, $;
|
|
3879
|
+
te.iconOut = function(F) {
|
|
3880
|
+
let { theme: ne, type: W, isLoading: L, icon: k } = F, h = null;
|
|
3881
|
+
const M = { theme: ne, type: W };
|
|
3882
|
+
return k === !1 || (xe(k) ? h = k(M) : ht(k) ? h = Yn(k, M) : st(k) || Wt(k) ? h = k : L ? h = En.spinner() : ((T) => T in En)(W) && (h = En[W](M))), h;
|
|
3883
|
+
}(te), xe(K.onOpen) && (te.onOpen = K.onOpen), xe(K.onClose) && (te.onClose = K.onClose), te.closeButton = y.closeButton, K.closeButton === !1 || On(K.closeButton) ? te.closeButton = K.closeButton : K.closeButton === !0 && (te.closeButton = !On(y.closeButton) || y.closeButton);
|
|
3884
|
+
let me = g;
|
|
3885
|
+
ht(g) && !st(g.type) ? me = Yn(g, { closeToast: U, toastProps: te, data: O }) : xe(g) && (me = g({ closeToast: U, toastProps: te, data: O })), y.limit && y.limit > 0 && A.count > y.limit && _ ? A.queue.push({ toastContent: me, toastProps: te, staleId: v }) : Wt(f) ? setTimeout(() => {
|
|
3886
|
+
q(me, te, v);
|
|
3887
|
+
}, f) : q(me, te, v);
|
|
3888
|
+
}
|
|
3889
|
+
function q(g, p, f) {
|
|
3890
3890
|
const { toastId: v } = p;
|
|
3891
|
-
|
|
3891
|
+
f && i.delete(f);
|
|
3892
3892
|
const K = { content: g, props: p };
|
|
3893
|
-
i.set(v, K), r((
|
|
3893
|
+
i.set(v, K), r((E) => [...E, v].filter((z) => z !== f)), Le.emit(4, $r(K, K.props.updateId == null ? "added" : "updated"));
|
|
3894
3894
|
}
|
|
3895
3895
|
return ye(() => (A.containerId = e.containerId, Le.cancelEmit(3).on(0, d).on(1, (g) => o.current && c(g)).on(5, m).emit(2, A), () => {
|
|
3896
3896
|
i.clear(), Le.emit(3, A);
|
|
3897
3897
|
}), []), ye(() => {
|
|
3898
3898
|
A.props = e, A.isToastActive = a, A.displayedToast = n.length;
|
|
3899
3899
|
}), { getToastToRender: function(g) {
|
|
3900
|
-
const p = /* @__PURE__ */ new Map(),
|
|
3901
|
-
return e.newestOnTop &&
|
|
3900
|
+
const p = /* @__PURE__ */ new Map(), f = Array.from(i.values());
|
|
3901
|
+
return e.newestOnTop && f.reverse(), f.forEach((v) => {
|
|
3902
3902
|
const { position: K } = v.props;
|
|
3903
3903
|
p.has(K) || p.set(K, []), p.get(K).push(v);
|
|
3904
3904
|
}), Array.from(p, (v) => g(v[0], v[1]));
|
|
@@ -3912,70 +3912,70 @@ function to(e) {
|
|
|
3912
3912
|
}
|
|
3913
3913
|
function ns(e) {
|
|
3914
3914
|
const [t, n] = P(!1), [r, o] = P(!1), i = ot(null), a = ot({ start: 0, x: 0, y: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, boundingRect: null, didMove: !1 }).current, A = ot(e), { autoClose: m, pauseOnHover: c, closeToast: l, onClick: d, closeOnClick: q } = e;
|
|
3915
|
-
function g(
|
|
3915
|
+
function g(O) {
|
|
3916
3916
|
if (e.draggable) {
|
|
3917
|
-
|
|
3917
|
+
O.nativeEvent.type === "touchstart" && O.nativeEvent.preventDefault(), a.didMove = !1, document.addEventListener("mousemove", K), document.addEventListener("mouseup", E), document.addEventListener("touchmove", K), document.addEventListener("touchend", E);
|
|
3918
3918
|
const y = i.current;
|
|
3919
|
-
a.canCloseOnClick = !0, a.canDrag = !0, a.boundingRect = y.getBoundingClientRect(), y.style.transition = "", a.x = eo(
|
|
3919
|
+
a.canCloseOnClick = !0, a.canDrag = !0, a.boundingRect = y.getBoundingClientRect(), y.style.transition = "", a.x = eo(O.nativeEvent), a.y = to(O.nativeEvent), e.draggableDirection === "x" ? (a.start = a.x, a.removalDistance = y.offsetWidth * (e.draggablePercent / 100)) : (a.start = a.y, a.removalDistance = y.offsetHeight * (e.draggablePercent === 80 ? 1.5 * e.draggablePercent : e.draggablePercent / 100));
|
|
3920
3920
|
}
|
|
3921
3921
|
}
|
|
3922
|
-
function p(
|
|
3922
|
+
function p(O) {
|
|
3923
3923
|
if (a.boundingRect) {
|
|
3924
|
-
const { top: y, bottom:
|
|
3925
|
-
|
|
3924
|
+
const { top: y, bottom: U, left: _, right: te } = a.boundingRect;
|
|
3925
|
+
O.nativeEvent.type !== "touchend" && e.pauseOnHover && a.x >= _ && a.x <= te && a.y >= y && a.y <= U ? v() : f();
|
|
3926
3926
|
}
|
|
3927
3927
|
}
|
|
3928
|
-
function
|
|
3928
|
+
function f() {
|
|
3929
3929
|
n(!0);
|
|
3930
3930
|
}
|
|
3931
3931
|
function v() {
|
|
3932
3932
|
n(!1);
|
|
3933
3933
|
}
|
|
3934
|
-
function K(
|
|
3934
|
+
function K(O) {
|
|
3935
3935
|
const y = i.current;
|
|
3936
|
-
a.canDrag && y && (a.didMove = !0, t && v(), a.x = eo(
|
|
3936
|
+
a.canDrag && y && (a.didMove = !0, t && v(), a.x = eo(O), a.y = to(O), a.delta = e.draggableDirection === "x" ? a.x - a.start : a.y - a.start, a.start !== a.x && (a.canCloseOnClick = !1), y.style.transform = `translate${e.draggableDirection}(${a.delta}px)`, y.style.opacity = "" + (1 - Math.abs(a.delta / a.removalDistance)));
|
|
3937
3937
|
}
|
|
3938
|
-
function
|
|
3939
|
-
document.removeEventListener("mousemove", K), document.removeEventListener("mouseup",
|
|
3940
|
-
const
|
|
3941
|
-
if (a.canDrag && a.didMove &&
|
|
3938
|
+
function E() {
|
|
3939
|
+
document.removeEventListener("mousemove", K), document.removeEventListener("mouseup", E), document.removeEventListener("touchmove", K), document.removeEventListener("touchend", E);
|
|
3940
|
+
const O = i.current;
|
|
3941
|
+
if (a.canDrag && a.didMove && O) {
|
|
3942
3942
|
if (a.canDrag = !1, Math.abs(a.delta) > a.removalDistance)
|
|
3943
3943
|
return o(!0), void e.closeToast();
|
|
3944
|
-
|
|
3944
|
+
O.style.transition = "transform 0.2s, opacity 0.2s", O.style.transform = `translate${e.draggableDirection}(0)`, O.style.opacity = "1";
|
|
3945
3945
|
}
|
|
3946
3946
|
}
|
|
3947
3947
|
ye(() => {
|
|
3948
3948
|
A.current = e;
|
|
3949
|
-
}), ye(() => (i.current && i.current.addEventListener("d",
|
|
3950
|
-
const
|
|
3951
|
-
xe(
|
|
3952
|
-
}), []), ye(() => (e.pauseOnFocusLoss && (document.hasFocus() || v(), window.addEventListener("focus",
|
|
3953
|
-
e.pauseOnFocusLoss && (window.removeEventListener("focus",
|
|
3949
|
+
}), ye(() => (i.current && i.current.addEventListener("d", f, { once: !0 }), xe(e.onOpen) && e.onOpen(ht(e.children) && e.children.props), () => {
|
|
3950
|
+
const O = A.current;
|
|
3951
|
+
xe(O.onClose) && O.onClose(ht(O.children) && O.children.props);
|
|
3952
|
+
}), []), ye(() => (e.pauseOnFocusLoss && (document.hasFocus() || v(), window.addEventListener("focus", f), window.addEventListener("blur", v)), () => {
|
|
3953
|
+
e.pauseOnFocusLoss && (window.removeEventListener("focus", f), window.removeEventListener("blur", v));
|
|
3954
3954
|
}), [e.pauseOnFocusLoss]);
|
|
3955
3955
|
const z = { onMouseDown: g, onTouchStart: g, onMouseUp: p, onTouchEnd: p };
|
|
3956
|
-
return m && c && (z.onMouseEnter = v, z.onMouseLeave =
|
|
3957
|
-
d && d(
|
|
3958
|
-
}), { playToast:
|
|
3956
|
+
return m && c && (z.onMouseEnter = v, z.onMouseLeave = f), q && (z.onClick = (O) => {
|
|
3957
|
+
d && d(O), a.canCloseOnClick && l();
|
|
3958
|
+
}), { playToast: f, pauseToast: v, isRunning: t, preventExitTransition: r, toastRef: i, eventHandlers: z };
|
|
3959
3959
|
}
|
|
3960
3960
|
function ti(e) {
|
|
3961
3961
|
let { closeToast: t, theme: n, ariaLabel: r = "close" } = e;
|
|
3962
|
-
return
|
|
3962
|
+
return Ae.createElement("button", { className: `Toastify__close-button Toastify__close-button--${n}`, type: "button", onClick: (o) => {
|
|
3963
3963
|
o.stopPropagation(), t(o);
|
|
3964
|
-
}, "aria-label": r },
|
|
3964
|
+
}, "aria-label": r }, Ae.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, Ae.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
|
|
3965
3965
|
}
|
|
3966
3966
|
function rs(e) {
|
|
3967
3967
|
let { delay: t, isRunning: n, closeToast: r, type: o = "default", hide: i, className: a, style: A, controlledProgress: m, progress: c, rtl: l, isIn: d, theme: q } = e;
|
|
3968
3968
|
const g = i || m && c === 0, p = { ...A, animationDuration: `${t}ms`, animationPlayState: n ? "running" : "paused", opacity: g ? 0 : 1 };
|
|
3969
3969
|
m && (p.transform = `scaleX(${c})`);
|
|
3970
|
-
const
|
|
3971
|
-
return
|
|
3970
|
+
const f = _e("Toastify__progress-bar", m ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${q}`, `Toastify__progress-bar--${o}`, { "Toastify__progress-bar--rtl": l }), v = xe(a) ? a({ rtl: l, type: o, defaultClassName: f }) : _e(f, a);
|
|
3971
|
+
return Ae.createElement("div", { role: "progressbar", "aria-hidden": g ? "true" : "false", "aria-label": "notification timer", className: v, style: p, [m && c >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: m && c < 1 ? null : () => {
|
|
3972
3972
|
d && r();
|
|
3973
3973
|
} });
|
|
3974
3974
|
}
|
|
3975
3975
|
const os = (e) => {
|
|
3976
|
-
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o } = ns(e), { closeButton: i, children: a, autoClose: A, onClick: m, type: c, hideProgressBar: l, closeToast: d, transition: q, position: g, className: p, style:
|
|
3977
|
-
let
|
|
3978
|
-
return i === !1 || (
|
|
3976
|
+
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o } = ns(e), { closeButton: i, children: a, autoClose: A, onClick: m, type: c, hideProgressBar: l, closeToast: d, transition: q, position: g, className: p, style: f, bodyClassName: v, bodyStyle: K, progressClassName: E, progressStyle: z, updateId: O, role: y, progress: U, rtl: _, toastId: te, deleteToast: ue, isIn: $, isLoading: me, iconOut: F, closeOnClick: ne, theme: W } = e, L = _e("Toastify__toast", `Toastify__toast-theme--${W}`, `Toastify__toast--${c}`, { "Toastify__toast--rtl": _ }, { "Toastify__toast--close-on-click": ne }), k = xe(p) ? p({ rtl: _, position: g, type: c, defaultClassName: L }) : _e(L, p), h = !!U || !A, M = { closeToast: d, type: c, theme: W };
|
|
3977
|
+
let T = null;
|
|
3978
|
+
return i === !1 || (T = xe(i) ? i(M) : ht(i) ? Yn(i, M) : ti(M)), Ae.createElement(q, { isIn: $, done: ue, position: g, preventExitTransition: n, nodeRef: r }, Ae.createElement("div", { id: te, onClick: m, className: k, ...o, style: f, ref: r }, Ae.createElement("div", { ...$ && { role: y }, className: xe(v) ? v({ type: c }) : _e("Toastify__toast-body", v), style: K }, F != null && Ae.createElement("div", { className: _e("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !me }) }, F), Ae.createElement("div", null, a)), T, Ae.createElement(rs, { ...O && !h ? { key: `pb-${O}` } : {}, rtl: _, theme: W, delay: A, isRunning: t, isIn: $, closeToast: d, hide: l, type: c, style: z, className: E, controlledProgress: h, progress: U || 0 })));
|
|
3979
3979
|
}, fn = function(e, t) {
|
|
3980
3980
|
return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
|
|
3981
3981
|
}, is = pn(fn("bounce", !0));
|
|
@@ -3990,11 +3990,11 @@ const Qn = ki((e, t) => {
|
|
|
3990
3990
|
}
|
|
3991
3991
|
return ye(() => {
|
|
3992
3992
|
t && (t.current = r.current);
|
|
3993
|
-
}, []),
|
|
3993
|
+
}, []), Ae.createElement("div", { ref: r, className: "Toastify", id: m }, n((l, d) => {
|
|
3994
3994
|
const q = d.length ? { ...a } : { ...a, pointerEvents: "none" };
|
|
3995
|
-
return
|
|
3996
|
-
let { content:
|
|
3997
|
-
return
|
|
3995
|
+
return Ae.createElement("div", { className: c(l), style: q, key: `container-${l}` }, d.map((g, p) => {
|
|
3996
|
+
let { content: f, props: v } = g;
|
|
3997
|
+
return Ae.createElement(os, { ...v, isIn: o(v.toastId), style: { ...v.style, "--nth": p + 1, "--len": d.length }, key: `toast-${v.key}` }, f);
|
|
3998
3998
|
}));
|
|
3999
3999
|
}));
|
|
4000
4000
|
});
|
|
@@ -4015,29 +4015,29 @@ function tn(e, t) {
|
|
|
4015
4015
|
function Xt(e) {
|
|
4016
4016
|
return (t, n) => Mt(t, tn(e, n));
|
|
4017
4017
|
}
|
|
4018
|
-
function
|
|
4018
|
+
function pe(e, t) {
|
|
4019
4019
|
return Mt(e, tn("default", t));
|
|
4020
4020
|
}
|
|
4021
|
-
|
|
4021
|
+
pe.loading = (e, t) => Mt(e, tn("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t })), pe.promise = function(e, t, n) {
|
|
4022
4022
|
let r, { pending: o, error: i, success: a } = t;
|
|
4023
|
-
o && (r = st(o) ?
|
|
4023
|
+
o && (r = st(o) ? pe.loading(o, n) : pe.loading(o.render, { ...n, ...o }));
|
|
4024
4024
|
const A = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, m = (l, d, q) => {
|
|
4025
4025
|
if (d == null)
|
|
4026
|
-
return void
|
|
4026
|
+
return void pe.dismiss(r);
|
|
4027
4027
|
const g = { type: l, ...A, ...n, data: q }, p = st(d) ? { render: d } : d;
|
|
4028
|
-
return r ?
|
|
4028
|
+
return r ? pe.update(r, { ...g, ...p }) : pe(p.render, { ...g, ...p }), q;
|
|
4029
4029
|
}, c = xe(e) ? e() : e;
|
|
4030
4030
|
return c.then((l) => m("success", a, l)).catch((l) => m("error", i, l)), c;
|
|
4031
|
-
},
|
|
4031
|
+
}, pe.success = Xt("success"), pe.info = Xt("info"), pe.error = Xt("error"), pe.warning = Xt("warning"), pe.warn = pe.warning, pe.dark = (e, t) => Mt(e, tn("default", { theme: "dark", ...t })), pe.dismiss = (e) => {
|
|
4032
4032
|
nt.size > 0 ? Le.emit(1, e) : Kt = Kt.filter((t) => e != null && t.options.toastId !== e);
|
|
4033
|
-
},
|
|
4033
|
+
}, pe.clearWaitingQueue = function(e) {
|
|
4034
4034
|
return e === void 0 && (e = {}), Le.emit(5, e);
|
|
4035
|
-
},
|
|
4035
|
+
}, pe.isActive = (e) => {
|
|
4036
4036
|
let t = !1;
|
|
4037
4037
|
return nt.forEach((n) => {
|
|
4038
4038
|
n.isToastActive && n.isToastActive(e) && (t = !0);
|
|
4039
4039
|
}), t;
|
|
4040
|
-
},
|
|
4040
|
+
}, pe.update = function(e, t) {
|
|
4041
4041
|
t === void 0 && (t = {}), setTimeout(() => {
|
|
4042
4042
|
const n = function(r, o) {
|
|
4043
4043
|
let { containerId: i } = o;
|
|
@@ -4051,11 +4051,11 @@ de.loading = (e, t) => Mt(e, tn("default", { isLoading: !0, autoClose: !1, close
|
|
|
4051
4051
|
delete i.render, Mt(a, i);
|
|
4052
4052
|
}
|
|
4053
4053
|
}, 0);
|
|
4054
|
-
},
|
|
4055
|
-
|
|
4056
|
-
},
|
|
4054
|
+
}, pe.done = (e) => {
|
|
4055
|
+
pe.update(e, { progress: 1 });
|
|
4056
|
+
}, pe.onChange = (e) => (Le.on(4, e), () => {
|
|
4057
4057
|
Le.off(4, e);
|
|
4058
|
-
}),
|
|
4058
|
+
}), pe.POSITION = { TOP_LEFT: "top-left", TOP_RIGHT: "top-right", TOP_CENTER: "top-center", BOTTOM_LEFT: "bottom-left", BOTTOM_RIGHT: "bottom-right", BOTTOM_CENTER: "bottom-center" }, pe.TYPE = { INFO: "info", SUCCESS: "success", WARNING: "warning", ERROR: "error", DEFAULT: "default" }, Le.on(2, (e) => {
|
|
4059
4059
|
kn = e.containerId || e, nt.set(kn, e), Kt.forEach((t) => {
|
|
4060
4060
|
Le.emit(0, t.content, t.options);
|
|
4061
4061
|
}), Kt = [];
|
|
@@ -4063,7 +4063,7 @@ de.loading = (e, t) => Mt(e, tn("default", { isLoading: !0, autoClose: !1, close
|
|
|
4063
4063
|
nt.delete(e.containerId || e), nt.size === 0 && Le.off(0).off(1).off(5);
|
|
4064
4064
|
});
|
|
4065
4065
|
function yt(e) {
|
|
4066
|
-
|
|
4066
|
+
pe.success(e, {
|
|
4067
4067
|
position: "top-center",
|
|
4068
4068
|
autoClose: 650,
|
|
4069
4069
|
hideProgressBar: !0,
|
|
@@ -4102,9 +4102,9 @@ const pr = async (e, t, n) => {
|
|
|
4102
4102
|
});
|
|
4103
4103
|
}, ss = (e, t) => {
|
|
4104
4104
|
let n = dr + "/" + e;
|
|
4105
|
-
|
|
4105
|
+
Nt(n) ? yt("Link Copied") : t(n);
|
|
4106
4106
|
};
|
|
4107
|
-
async function
|
|
4107
|
+
async function Ot(e, t, n, r = "download", o = !1, i = null) {
|
|
4108
4108
|
return new Promise(async (a, A) => {
|
|
4109
4109
|
let m = async (c) => {
|
|
4110
4110
|
r === "download" ? await $t(c) : r === "copy" && ss(c, ri);
|
|
@@ -4213,7 +4213,7 @@ const ms = ({
|
|
|
4213
4213
|
urlType: c
|
|
4214
4214
|
}) => {
|
|
4215
4215
|
const [l, d] = P(!1), q = async () => {
|
|
4216
|
-
d(!0),
|
|
4216
|
+
d(!0), Ot(
|
|
4217
4217
|
e,
|
|
4218
4218
|
"default",
|
|
4219
4219
|
{
|
|
@@ -4224,17 +4224,17 @@ const ms = ({
|
|
|
4224
4224
|
!1,
|
|
4225
4225
|
{ urlType: c }
|
|
4226
4226
|
).then(async (g) => {
|
|
4227
|
-
var K,
|
|
4227
|
+
var K, E, z, O;
|
|
4228
4228
|
let p = "";
|
|
4229
4229
|
if (t && (n === "Playable" || n === "Ready")) {
|
|
4230
4230
|
const y = await Pn(t, r);
|
|
4231
4231
|
console.log(y);
|
|
4232
|
-
const
|
|
4233
|
-
console.log(
|
|
4232
|
+
const U = (E = (K = y == null ? void 0 : y.data) == null ? void 0 : K.globalProps) == null ? void 0 : E.defaultLandscape, _ = (O = (z = y == null ? void 0 : y.data) == null ? void 0 : z.globalProps) == null ? void 0 : O.defaultPhoneIndex;
|
|
4233
|
+
console.log(U, _), U && (p += "&landscape=true"), _ !== void 0 && (p += `&phoneIndex=${_}`);
|
|
4234
4234
|
}
|
|
4235
4235
|
Pn(t, r), d(!1);
|
|
4236
|
-
let
|
|
4237
|
-
n === "Flex" ?
|
|
4236
|
+
let f;
|
|
4237
|
+
n === "Flex" ? f = `${o}/preview?versionId=${e}` : n === "Import" ? f = `${o}/preview?versionId=${e}_` : n === "Ready" ? f = `${o}/preview?versionId=${e}_&ready=true` : f = `${o}/preview?versionId=${e}_`, f += p, Nt(f) ? yt("Link copied") : i(f), d(!1);
|
|
4238
4238
|
}).catch((g) => {
|
|
4239
4239
|
d(!1);
|
|
4240
4240
|
});
|
|
@@ -4391,18 +4391,18 @@ const ms = ({
|
|
|
4391
4391
|
const [q, g] = P(window.innerWidth);
|
|
4392
4392
|
console.log("iosLink", c), ye(() => {
|
|
4393
4393
|
console.log("re add event listener");
|
|
4394
|
-
function
|
|
4394
|
+
function f(v) {
|
|
4395
4395
|
console.log(v), v.data === "cta" && (console.log("Received 'cta' message from iframe"), c && window.open(c, "_blank"));
|
|
4396
4396
|
}
|
|
4397
|
-
return window.addEventListener("message",
|
|
4398
|
-
window.removeEventListener("message",
|
|
4397
|
+
return window.addEventListener("message", f, !1), () => {
|
|
4398
|
+
window.removeEventListener("message", f);
|
|
4399
4399
|
};
|
|
4400
4400
|
}, [c, l]), ye(() => {
|
|
4401
|
-
const
|
|
4401
|
+
const f = () => {
|
|
4402
4402
|
g(window.innerWidth);
|
|
4403
4403
|
};
|
|
4404
|
-
return window.addEventListener("resize",
|
|
4405
|
-
window.removeEventListener("resize",
|
|
4404
|
+
return window.addEventListener("resize", f), () => {
|
|
4405
|
+
window.removeEventListener("resize", f);
|
|
4406
4406
|
};
|
|
4407
4407
|
}, []);
|
|
4408
4408
|
const p = (e == null ? void 0 : e.length) > 25 ? e.slice(0, 25) + "..." : e;
|
|
@@ -5143,7 +5143,7 @@ const hs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", view
|
|
|
5143
5143
|
urlType: q,
|
|
5144
5144
|
setUrlType: g,
|
|
5145
5145
|
allNetworksSelected: p,
|
|
5146
|
-
setAllNetworksSelected:
|
|
5146
|
+
setAllNetworksSelected: f
|
|
5147
5147
|
}) => /* @__PURE__ */ s.jsxs(
|
|
5148
5148
|
"div",
|
|
5149
5149
|
{
|
|
@@ -5187,7 +5187,7 @@ const hs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", view
|
|
|
5187
5187
|
{
|
|
5188
5188
|
typeOfProduct: e,
|
|
5189
5189
|
allNetworksSelected: p,
|
|
5190
|
-
setAllNetworksSelected:
|
|
5190
|
+
setAllNetworksSelected: f
|
|
5191
5191
|
}
|
|
5192
5192
|
)
|
|
5193
5193
|
]
|
|
@@ -5823,17 +5823,18 @@ const ws = ({
|
|
|
5823
5823
|
fetchFileUrl: q,
|
|
5824
5824
|
urls: g,
|
|
5825
5825
|
game: p,
|
|
5826
|
-
setIsConfirmActive:
|
|
5826
|
+
setIsConfirmActive: f,
|
|
5827
5827
|
creditDownload: v,
|
|
5828
5828
|
getDownloadCount: K,
|
|
5829
|
-
disabled:
|
|
5829
|
+
disabled: E,
|
|
5830
5830
|
user: z,
|
|
5831
|
-
setSafariCopyLink:
|
|
5831
|
+
setSafariCopyLink: O,
|
|
5832
5832
|
isTest: y,
|
|
5833
|
-
urlType:
|
|
5834
|
-
setCdnModal:
|
|
5833
|
+
urlType: U,
|
|
5834
|
+
setCdnModal: _,
|
|
5835
|
+
generateCDN: te
|
|
5835
5836
|
}) => {
|
|
5836
|
-
const [
|
|
5837
|
+
const [ue, $] = P(!1), [me, F] = P(""), [ne, W] = P(!1), [L, k] = P(!1), [h, M] = P(!1), [T, Z] = P("download"), [I, J] = P(!1), [Y, j] = P(!1), [X, R] = P(!1);
|
|
5837
5838
|
let G = {
|
|
5838
5839
|
aarki: "html,copy",
|
|
5839
5840
|
adcolony: "copy,html",
|
|
@@ -5878,40 +5879,40 @@ const ws = ({
|
|
|
5878
5879
|
jammp: "copy,html",
|
|
5879
5880
|
mraid: "copy,html"
|
|
5880
5881
|
};
|
|
5881
|
-
const
|
|
5882
|
+
const H = () => {
|
|
5882
5883
|
n(e);
|
|
5883
|
-
},
|
|
5884
|
-
const
|
|
5884
|
+
}, V = async (D, ce) => {
|
|
5885
|
+
const ie = {
|
|
5885
5886
|
molocoGenerateHtml: !1,
|
|
5886
|
-
urlType:
|
|
5887
|
+
urlType: U
|
|
5887
5888
|
};
|
|
5888
|
-
if (
|
|
5889
|
-
|
|
5889
|
+
if (x && (ce === "copy" ? (j(!0), ce = "download", ie.molocoGenerateHtml = !0) : J(!0)), console.log("getVersion", D, ce, ie), D === "cdn") {
|
|
5890
|
+
_(!0), await te(!0);
|
|
5890
5891
|
return;
|
|
5891
5892
|
}
|
|
5892
|
-
return
|
|
5893
|
-
|
|
5894
|
-
|
|
5893
|
+
return $(!0), new Promise((Xe, ct) => {
|
|
5894
|
+
Ot(c, D, g, ce, y, ie).then((Ne) => {
|
|
5895
|
+
$(!1), Xe(Ne), j(!1), J(!1);
|
|
5895
5896
|
}).catch((Ne) => {
|
|
5896
|
-
|
|
5897
|
+
$(!1), d(Ne.message, Ne), ct(Ne), j(!1), J(!1);
|
|
5897
5898
|
});
|
|
5898
5899
|
});
|
|
5899
|
-
},
|
|
5900
|
-
|
|
5901
|
-
const
|
|
5900
|
+
}, b = async (D = !1) => {
|
|
5901
|
+
D ? j(!0) : J(!0);
|
|
5902
|
+
const ce = {
|
|
5902
5903
|
molocoGenerateHtml: !1
|
|
5903
5904
|
};
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
}).catch((
|
|
5907
|
-
d(
|
|
5905
|
+
D && (ce.molocoGenerateHtml = !0), Ot(c, o, g, "download", y, ce).then((ie) => {
|
|
5906
|
+
D ? j(!1) : J(!1), M(!1);
|
|
5907
|
+
}).catch((ie) => {
|
|
5908
|
+
d(ie.message, ie);
|
|
5908
5909
|
});
|
|
5909
|
-
},
|
|
5910
|
-
|
|
5911
|
-
const
|
|
5912
|
-
let
|
|
5913
|
-
|
|
5914
|
-
},
|
|
5910
|
+
}, N = async () => {
|
|
5911
|
+
R(!0);
|
|
5912
|
+
const D = await xs(l, c, o, m);
|
|
5913
|
+
let ce = `${q}/${D == null ? void 0 : D.url}`;
|
|
5914
|
+
Nt(ce) ? (yt("Link Copied"), R(!1)) : O(ce);
|
|
5915
|
+
}, x = o === "moloco" || o === "molocoV2";
|
|
5915
5916
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
5916
5917
|
/* @__PURE__ */ s.jsxs(
|
|
5917
5918
|
"div",
|
|
@@ -5932,7 +5933,7 @@ const ws = ({
|
|
|
5932
5933
|
cursor: "pointer"
|
|
5933
5934
|
},
|
|
5934
5935
|
className: "border-hover-" + m,
|
|
5935
|
-
onClick:
|
|
5936
|
+
onClick: H,
|
|
5936
5937
|
children: [
|
|
5937
5938
|
/* @__PURE__ */ s.jsxs(
|
|
5938
5939
|
"div",
|
|
@@ -5952,7 +5953,7 @@ const ws = ({
|
|
|
5952
5953
|
top: "0",
|
|
5953
5954
|
padding: "8px"
|
|
5954
5955
|
},
|
|
5955
|
-
children: /* @__PURE__ */ s.jsx("div", { children: i && i.map((
|
|
5956
|
+
children: /* @__PURE__ */ s.jsx("div", { children: i && i.map((D) => D.network).includes(o) ? a ? /* @__PURE__ */ s.jsx(
|
|
5956
5957
|
"div",
|
|
5957
5958
|
{
|
|
5958
5959
|
style: {
|
|
@@ -5968,7 +5969,7 @@ const ws = ({
|
|
|
5968
5969
|
},
|
|
5969
5970
|
children: /* @__PURE__ */ s.jsx(Cs, { typeOfProduct: m })
|
|
5970
5971
|
}
|
|
5971
|
-
) : i.map((
|
|
5972
|
+
) : i.map((D) => /* @__PURE__ */ s.jsx(
|
|
5972
5973
|
"div",
|
|
5973
5974
|
{
|
|
5974
5975
|
style: {
|
|
@@ -5983,9 +5984,9 @@ const ws = ({
|
|
|
5983
5984
|
justifyContent: "center",
|
|
5984
5985
|
alignItems: "center"
|
|
5985
5986
|
},
|
|
5986
|
-
children:
|
|
5987
|
+
children: D.network === o ? D.size.toString().slice(0, 5) + "Mb" : ""
|
|
5987
5988
|
},
|
|
5988
|
-
|
|
5989
|
+
D.network
|
|
5989
5990
|
)) : null })
|
|
5990
5991
|
}
|
|
5991
5992
|
),
|
|
@@ -6011,7 +6012,7 @@ const ws = ({
|
|
|
6011
6012
|
/* @__PURE__ */ s.jsx(
|
|
6012
6013
|
"img",
|
|
6013
6014
|
{
|
|
6014
|
-
onClick:
|
|
6015
|
+
onClick: H,
|
|
6015
6016
|
style: {
|
|
6016
6017
|
width: "30rem",
|
|
6017
6018
|
// Equivalent to 120/4 = 30rem
|
|
@@ -6037,20 +6038,20 @@ const ws = ({
|
|
|
6037
6038
|
/* @__PURE__ */ s.jsx(
|
|
6038
6039
|
jn,
|
|
6039
6040
|
{
|
|
6040
|
-
className: `${
|
|
6041
|
-
downloading:
|
|
6042
|
-
onClickDonwload: async (
|
|
6043
|
-
if (
|
|
6044
|
-
|
|
6041
|
+
className: `${x ? "w-1/2" : "w-2/3"} border-hover-` + m,
|
|
6042
|
+
downloading: ue,
|
|
6043
|
+
onClickDonwload: async (D) => {
|
|
6044
|
+
if (D.stopPropagation(), x && z.customer === "playableFactoryInternal") {
|
|
6045
|
+
M(!0);
|
|
6045
6046
|
return;
|
|
6046
6047
|
} else {
|
|
6047
|
-
|
|
6048
|
-
const
|
|
6049
|
-
v && v.willSpendCredit ? (
|
|
6048
|
+
F("download");
|
|
6049
|
+
const ce = g.iosUrl, ie = g.googleUrl;
|
|
6050
|
+
v && v.willSpendCredit ? (f(!0), Z("download"), W(!0)) : ["Playable", "Flex"].includes(m) && (!ce || !ie) || m === "Ready" && U === "single" && !ce || m === "Ready" && U === "multi" && (!ce || !ie) ? (f(!0), k(!0)) : (k(!1), W(!1), await V(o, "download"));
|
|
6050
6051
|
}
|
|
6051
6052
|
},
|
|
6052
|
-
children:
|
|
6053
|
-
!
|
|
6053
|
+
children: x ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
6054
|
+
!I && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
6054
6055
|
/* @__PURE__ */ s.jsx(
|
|
6055
6056
|
zn,
|
|
6056
6057
|
{
|
|
@@ -6068,9 +6069,9 @@ const ws = ({
|
|
|
6068
6069
|
),
|
|
6069
6070
|
z.customer !== "playableFactoryInternal" ? "TXT" : "Download"
|
|
6070
6071
|
] }),
|
|
6071
|
-
|
|
6072
|
+
I && /* @__PURE__ */ s.jsx(St, {})
|
|
6072
6073
|
] }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
6073
|
-
!
|
|
6074
|
+
!ue && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
6074
6075
|
/* @__PURE__ */ s.jsx(
|
|
6075
6076
|
zn,
|
|
6076
6077
|
{
|
|
@@ -6086,9 +6087,9 @@ const ws = ({
|
|
|
6086
6087
|
}
|
|
6087
6088
|
}
|
|
6088
6089
|
),
|
|
6089
|
-
"Download"
|
|
6090
|
+
o === "cdn" ? "Generate Link" : "Download"
|
|
6090
6091
|
] }),
|
|
6091
|
-
|
|
6092
|
+
ue && /* @__PURE__ */ s.jsx(St, {})
|
|
6092
6093
|
] })
|
|
6093
6094
|
}
|
|
6094
6095
|
),
|
|
@@ -6096,27 +6097,27 @@ const ws = ({
|
|
|
6096
6097
|
jn,
|
|
6097
6098
|
{
|
|
6098
6099
|
className: "w-1/3 border-hover-" + m,
|
|
6099
|
-
onClickDonwload: async (
|
|
6100
|
-
|
|
6101
|
-
const
|
|
6102
|
-
v && (v != null && v.willSpendCredit) ? (
|
|
6100
|
+
onClickDonwload: async (D) => {
|
|
6101
|
+
D.stopPropagation(), F("copyLink");
|
|
6102
|
+
const ce = g.iosUrl, ie = g.googleUrl;
|
|
6103
|
+
v && (v != null && v.willSpendCredit) ? (Z("copy"), f(!0), W(!0)) : m !== "Import" && (!ce || !ie) ? (f(!0), k(!0)) : (W(!1), k(!1), await V(o, "copy"));
|
|
6103
6104
|
},
|
|
6104
|
-
disabled:
|
|
6105
|
+
disabled: E,
|
|
6105
6106
|
children: /* @__PURE__ */ s.jsx(Ko, { className: "h-6 w-6 stroke-dark-full" })
|
|
6106
6107
|
}
|
|
6107
6108
|
),
|
|
6108
|
-
|
|
6109
|
+
x && z.customer !== "playableFactoryInternal" && /* @__PURE__ */ s.jsxs(
|
|
6109
6110
|
jn,
|
|
6110
6111
|
{
|
|
6111
6112
|
className: "w-1/2 border-hover-" + m,
|
|
6112
|
-
onClickDonwload: async (
|
|
6113
|
-
|
|
6114
|
-
const
|
|
6115
|
-
v && (v != null && v.willSpendCredit) ? (
|
|
6113
|
+
onClickDonwload: async (D) => {
|
|
6114
|
+
D.stopPropagation(), F("copyLink");
|
|
6115
|
+
const ce = g.iosUrl, ie = g.googleUrl;
|
|
6116
|
+
v && (v != null && v.willSpendCredit) ? (Z("download"), f(!0), W(!0)) : m !== "Import" && (!ce || !ie) ? (f(!0), k(!0)) : (W(!1), k(!1), await b(!0));
|
|
6116
6117
|
},
|
|
6117
|
-
disabled:
|
|
6118
|
+
disabled: E,
|
|
6118
6119
|
children: [
|
|
6119
|
-
!
|
|
6120
|
+
!Y && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
6120
6121
|
/* @__PURE__ */ s.jsx(
|
|
6121
6122
|
zn,
|
|
6122
6123
|
{
|
|
@@ -6134,14 +6135,14 @@ const ws = ({
|
|
|
6134
6135
|
),
|
|
6135
6136
|
"HTML"
|
|
6136
6137
|
] }),
|
|
6137
|
-
|
|
6138
|
+
Y && /* @__PURE__ */ s.jsx(St, {})
|
|
6138
6139
|
]
|
|
6139
6140
|
}
|
|
6140
6141
|
)
|
|
6141
6142
|
]
|
|
6142
6143
|
}
|
|
6143
6144
|
),
|
|
6144
|
-
|
|
6145
|
+
x && /* @__PURE__ */ s.jsx(
|
|
6145
6146
|
"img",
|
|
6146
6147
|
{
|
|
6147
6148
|
style: {
|
|
@@ -6156,52 +6157,52 @@ const ws = ({
|
|
|
6156
6157
|
]
|
|
6157
6158
|
}
|
|
6158
6159
|
),
|
|
6159
|
-
|
|
6160
|
+
ne && /* @__PURE__ */ s.jsx(
|
|
6160
6161
|
Vn,
|
|
6161
6162
|
{
|
|
6162
|
-
creditConfirmType:
|
|
6163
|
+
creditConfirmType: T,
|
|
6163
6164
|
handleCopyLink: async () => {
|
|
6164
|
-
|
|
6165
|
+
k(!1), f(!1), await V(o, "copy");
|
|
6165
6166
|
},
|
|
6166
6167
|
download: async () => {
|
|
6167
|
-
|
|
6168
|
+
k(!1), f(!1), await V(o, "download");
|
|
6168
6169
|
},
|
|
6169
6170
|
onClose: () => {
|
|
6170
|
-
|
|
6171
|
+
W(!1), f(!1);
|
|
6171
6172
|
},
|
|
6172
6173
|
getDownloadCount: K
|
|
6173
6174
|
}
|
|
6174
6175
|
),
|
|
6175
|
-
|
|
6176
|
+
L && /* @__PURE__ */ s.jsx(
|
|
6176
6177
|
Zs,
|
|
6177
6178
|
{
|
|
6178
6179
|
onClose: () => {
|
|
6179
|
-
|
|
6180
|
+
k(!1), f(!1);
|
|
6180
6181
|
},
|
|
6181
6182
|
iosLink: g.iosUrl,
|
|
6182
6183
|
googleLink: g.googleUrl,
|
|
6183
|
-
buttonType:
|
|
6184
|
+
buttonType: me,
|
|
6184
6185
|
handleCopyLink: async () => {
|
|
6185
|
-
|
|
6186
|
+
k(!1), f(!1), await V(o, "copy");
|
|
6186
6187
|
},
|
|
6187
6188
|
download: async () => {
|
|
6188
|
-
|
|
6189
|
+
k(!1), f(!1), await V(o, "download");
|
|
6189
6190
|
},
|
|
6190
6191
|
typeOfProduct: m,
|
|
6191
|
-
urlType:
|
|
6192
|
+
urlType: U
|
|
6192
6193
|
}
|
|
6193
6194
|
),
|
|
6194
|
-
|
|
6195
|
+
h && z.customer === "playableFactoryInternal" && /* @__PURE__ */ s.jsx(
|
|
6195
6196
|
Is,
|
|
6196
6197
|
{
|
|
6197
6198
|
onClose: () => {
|
|
6198
|
-
|
|
6199
|
+
M(!1);
|
|
6199
6200
|
},
|
|
6200
|
-
handleDownload:
|
|
6201
|
-
handleDownloadMolocoTest:
|
|
6202
|
-
downloadingMoloco:
|
|
6203
|
-
donwloadintMolocoTest:
|
|
6204
|
-
downloadingMolocoHtml:
|
|
6201
|
+
handleDownload: b,
|
|
6202
|
+
handleDownloadMolocoTest: N,
|
|
6203
|
+
downloadingMoloco: I,
|
|
6204
|
+
donwloadintMolocoTest: X,
|
|
6205
|
+
downloadingMolocoHtml: Y
|
|
6205
6206
|
}
|
|
6206
6207
|
)
|
|
6207
6208
|
] });
|
|
@@ -6673,7 +6674,7 @@ const ws = ({
|
|
|
6673
6674
|
onClick: () => {
|
|
6674
6675
|
if (!t)
|
|
6675
6676
|
return;
|
|
6676
|
-
|
|
6677
|
+
Nt(t) && yt("Link copied");
|
|
6677
6678
|
},
|
|
6678
6679
|
style: {
|
|
6679
6680
|
cursor: "pointer",
|
|
@@ -6715,38 +6716,44 @@ const ws = ({
|
|
|
6715
6716
|
disabled: q,
|
|
6716
6717
|
setSafariCopyLink: g,
|
|
6717
6718
|
isTest: p,
|
|
6718
|
-
urlType:
|
|
6719
|
+
urlType: f,
|
|
6719
6720
|
allNetworksSelected: v,
|
|
6720
6721
|
setAllNetworksSelected: K,
|
|
6721
|
-
cdnModal:
|
|
6722
|
+
cdnModal: E,
|
|
6722
6723
|
setCdnModal: z,
|
|
6723
|
-
cdnUrl:
|
|
6724
|
+
cdnUrl: O,
|
|
6724
6725
|
setCdnUrl: y
|
|
6725
6726
|
}) => {
|
|
6726
|
-
const [
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6727
|
+
const [U, _] = P([]), [te, ue] = P([]), [$, me] = P(!1), [F, ne] = P(""), [W, L] = P(!1), [k, h] = P(!1), [M, T] = P("download"), [Z, I] = P(!1), [J, Y] = P(!1), [j, X] = P(!1), R = async (b = !1) => {
|
|
6728
|
+
b && O || j || (X(!0), Ot(r, "cdn", c, null, !1, {}).then((N) => {
|
|
6729
|
+
y(N.url), X(!1);
|
|
6730
|
+
}).catch((N) => {
|
|
6731
|
+
A(N.message, N), X(!1);
|
|
6732
|
+
}));
|
|
6733
|
+
}, G = async (b) => {
|
|
6734
|
+
const N = [...U];
|
|
6735
|
+
if (U.includes(b)) {
|
|
6736
|
+
const x = N.findIndex((D) => D === b);
|
|
6737
|
+
N.splice(x, 1), _(N);
|
|
6731
6738
|
} else
|
|
6732
|
-
|
|
6733
|
-
Qt.filter((
|
|
6734
|
-
},
|
|
6735
|
-
const
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
}).catch((
|
|
6739
|
-
console.log("get multi download err"),
|
|
6739
|
+
N.push(b), _([...U, b]);
|
|
6740
|
+
Qt.filter((x) => [...N].includes(x.id)).map((x) => x.name);
|
|
6741
|
+
}, H = async () => new Promise(async (b, N) => {
|
|
6742
|
+
const x = Qt.filter((D) => [...U].includes(D.id)).map((D) => D.name);
|
|
6743
|
+
L(!0), ls(r, c, x, { urlType: f }).then((D) => {
|
|
6744
|
+
L(!1), b(D);
|
|
6745
|
+
}).catch((D) => {
|
|
6746
|
+
console.log("get multi download err"), L(!1), A(D.message, D), N(D);
|
|
6740
6747
|
});
|
|
6741
|
-
}),
|
|
6742
|
-
c.iosUrl, c.googleUrl, t && t.willSpendCredit ? (
|
|
6748
|
+
}), V = async () => {
|
|
6749
|
+
c.iosUrl, c.googleUrl, t && t.willSpendCredit ? (h(!0), T("download"), I(!0)) : (I(!1), await H());
|
|
6743
6750
|
};
|
|
6744
6751
|
return ye(() => {
|
|
6745
|
-
const
|
|
6746
|
-
var
|
|
6747
|
-
return t && ((
|
|
6748
|
-
}).filter((
|
|
6749
|
-
|
|
6752
|
+
const b = Qt.filter((N) => {
|
|
6753
|
+
var x;
|
|
6754
|
+
return t && ((x = t == null ? void 0 : t.networks) == null ? void 0 : x.length) > 0 ? t == null ? void 0 : t.networks.includes(N.name) : o === "Import" ? e == null ? void 0 : e.networks.filter((D) => D.status === "paid").some((D) => D.name === N.name) : e == null ? void 0 : e.networks.includes(N.name);
|
|
6755
|
+
}).filter((N) => N.name === "voodoo" ? a.customer === "customer:20" : !0).map((N) => N.id);
|
|
6756
|
+
_(v ? b : []);
|
|
6750
6757
|
}, [v]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
6751
6758
|
/* @__PURE__ */ s.jsx(
|
|
6752
6759
|
"div",
|
|
@@ -6754,7 +6761,7 @@ const ws = ({
|
|
|
6754
6761
|
style: {
|
|
6755
6762
|
position: "relative",
|
|
6756
6763
|
flex: 1,
|
|
6757
|
-
overflowY:
|
|
6764
|
+
overflowY: k ? "hidden" : "auto",
|
|
6758
6765
|
padding: "1.5rem",
|
|
6759
6766
|
paddingTop: "0"
|
|
6760
6767
|
},
|
|
@@ -6768,27 +6775,27 @@ const ws = ({
|
|
|
6768
6775
|
overflowY: "auto",
|
|
6769
6776
|
padding: "0.75rem"
|
|
6770
6777
|
},
|
|
6771
|
-
children: n && Qt.filter((
|
|
6772
|
-
var
|
|
6773
|
-
return t && ((
|
|
6778
|
+
children: n && Qt.filter((b) => {
|
|
6779
|
+
var N;
|
|
6780
|
+
return t && ((N = t == null ? void 0 : t.networks) == null ? void 0 : N.length) > 0 ? t == null ? void 0 : t.networks.includes(b.name) : o === "Import" ? e == null ? void 0 : e.networks.filter((x) => x.status === "paid").some((x) => x.name === b.name) : e == null ? void 0 : e.networks.includes(b.name);
|
|
6774
6781
|
}).filter(
|
|
6775
|
-
(
|
|
6776
|
-
).map((
|
|
6777
|
-
let
|
|
6778
|
-
if (
|
|
6779
|
-
let
|
|
6780
|
-
|
|
6782
|
+
(b) => b.name === "voodoo" ? a.customer === "customer:20" : !0
|
|
6783
|
+
).map((b) => {
|
|
6784
|
+
let N = b.imageSrc;
|
|
6785
|
+
if (b.name === "web") {
|
|
6786
|
+
let x = "web_" + o.toLowerCase() + ".png";
|
|
6787
|
+
N = N.replace("web.png", x);
|
|
6781
6788
|
}
|
|
6782
6789
|
return /* @__PURE__ */ s.jsx(
|
|
6783
6790
|
ws,
|
|
6784
6791
|
{
|
|
6785
|
-
id:
|
|
6786
|
-
name:
|
|
6787
|
-
imageUrl:
|
|
6788
|
-
selected:
|
|
6792
|
+
id: b.id,
|
|
6793
|
+
name: b.name,
|
|
6794
|
+
imageUrl: N,
|
|
6795
|
+
selected: U.includes(b.id),
|
|
6789
6796
|
handleCardClick: G,
|
|
6790
|
-
networkVersionSize:
|
|
6791
|
-
fileSizeLoading:
|
|
6797
|
+
networkVersionSize: te,
|
|
6798
|
+
fileSizeLoading: $,
|
|
6792
6799
|
showCheckBox: !0,
|
|
6793
6800
|
typeOfProduct: o,
|
|
6794
6801
|
versionId: r,
|
|
@@ -6798,23 +6805,24 @@ const ws = ({
|
|
|
6798
6805
|
urls: c,
|
|
6799
6806
|
game: l,
|
|
6800
6807
|
creditDownload: t,
|
|
6801
|
-
setIsConfirmActive:
|
|
6808
|
+
setIsConfirmActive: h,
|
|
6802
6809
|
getDownloadCount: d,
|
|
6803
6810
|
disabled: q,
|
|
6804
6811
|
user: a,
|
|
6805
6812
|
setSafariCopyLink: g,
|
|
6806
6813
|
isTest: p,
|
|
6807
|
-
urlType:
|
|
6808
|
-
setCdnModal: z
|
|
6814
|
+
urlType: f,
|
|
6815
|
+
setCdnModal: z,
|
|
6816
|
+
generateCDN: R
|
|
6809
6817
|
},
|
|
6810
|
-
|
|
6818
|
+
b.id
|
|
6811
6819
|
);
|
|
6812
6820
|
})
|
|
6813
6821
|
}
|
|
6814
6822
|
)
|
|
6815
6823
|
}
|
|
6816
6824
|
),
|
|
6817
|
-
|
|
6825
|
+
U.length > 1 && (o === "Playable" || o === "Ready" || o === "Flex") && /* @__PURE__ */ s.jsx(
|
|
6818
6826
|
"div",
|
|
6819
6827
|
{
|
|
6820
6828
|
style: {
|
|
@@ -6830,15 +6838,15 @@ const ws = ({
|
|
|
6830
6838
|
children: /* @__PURE__ */ s.jsx(
|
|
6831
6839
|
Ws,
|
|
6832
6840
|
{
|
|
6833
|
-
onClickMultiDownload:
|
|
6834
|
-
networksVersionTotalSize:
|
|
6841
|
+
onClickMultiDownload: V,
|
|
6842
|
+
networksVersionTotalSize: F,
|
|
6835
6843
|
typeOfProduct: o,
|
|
6836
|
-
multiDownloading:
|
|
6844
|
+
multiDownloading: W
|
|
6837
6845
|
}
|
|
6838
6846
|
)
|
|
6839
6847
|
}
|
|
6840
6848
|
),
|
|
6841
|
-
|
|
6849
|
+
E && /* @__PURE__ */ s.jsx(
|
|
6842
6850
|
Ss,
|
|
6843
6851
|
{
|
|
6844
6852
|
onClose: () => {
|
|
@@ -6847,22 +6855,18 @@ const ws = ({
|
|
|
6847
6855
|
versionId: r,
|
|
6848
6856
|
urls: c,
|
|
6849
6857
|
handleDownloadError: A,
|
|
6850
|
-
cdnUrl:
|
|
6858
|
+
cdnUrl: O,
|
|
6851
6859
|
setCdnUrl: y,
|
|
6852
6860
|
generateCDN: async () => {
|
|
6853
|
-
if (!
|
|
6861
|
+
if (!j) {
|
|
6854
6862
|
if (X(!0), a.customer === "playableFactoryInternal") {
|
|
6855
|
-
|
|
6856
|
-
y(O.url), X(!1);
|
|
6857
|
-
}).catch((O) => {
|
|
6858
|
-
A(O.message, O), X(!1);
|
|
6859
|
-
});
|
|
6863
|
+
R();
|
|
6860
6864
|
return;
|
|
6861
6865
|
}
|
|
6862
|
-
|
|
6866
|
+
Y(!0);
|
|
6863
6867
|
}
|
|
6864
6868
|
},
|
|
6865
|
-
cdnUploading:
|
|
6869
|
+
cdnUploading: j
|
|
6866
6870
|
}
|
|
6867
6871
|
),
|
|
6868
6872
|
J && /* @__PURE__ */ s.jsx(
|
|
@@ -6870,18 +6874,14 @@ const ws = ({
|
|
|
6870
6874
|
{
|
|
6871
6875
|
width: "100%",
|
|
6872
6876
|
height: "100%",
|
|
6873
|
-
creditConfirmType:
|
|
6877
|
+
creditConfirmType: M,
|
|
6874
6878
|
handleCopyLink: async () => {
|
|
6875
6879
|
},
|
|
6876
6880
|
download: async () => {
|
|
6877
|
-
|
|
6878
|
-
y(O.url), X(!1);
|
|
6879
|
-
}).catch((O) => {
|
|
6880
|
-
A(O.message, O), X(!1);
|
|
6881
|
-
});
|
|
6881
|
+
I(!1), Y(!1), R();
|
|
6882
6882
|
},
|
|
6883
6883
|
onClose: () => {
|
|
6884
|
-
|
|
6884
|
+
I(!1), Y(!1), X(!1);
|
|
6885
6885
|
},
|
|
6886
6886
|
getDownloadCount: d
|
|
6887
6887
|
}
|
|
@@ -6889,14 +6889,14 @@ const ws = ({
|
|
|
6889
6889
|
Z && /* @__PURE__ */ s.jsx(
|
|
6890
6890
|
Vn,
|
|
6891
6891
|
{
|
|
6892
|
-
creditConfirmType:
|
|
6892
|
+
creditConfirmType: M,
|
|
6893
6893
|
handleCopyLink: async () => {
|
|
6894
6894
|
},
|
|
6895
6895
|
download: async () => {
|
|
6896
|
-
|
|
6896
|
+
I(!1), h(!1), await H();
|
|
6897
6897
|
},
|
|
6898
6898
|
onClose: () => {
|
|
6899
|
-
|
|
6899
|
+
I(!1), h(!1);
|
|
6900
6900
|
},
|
|
6901
6901
|
getDownloadCount: d
|
|
6902
6902
|
}
|
|
@@ -6974,111 +6974,111 @@ const Ns = ({
|
|
|
6974
6974
|
setSafariCopyLink: q,
|
|
6975
6975
|
iosLink: g,
|
|
6976
6976
|
androidLink: p,
|
|
6977
|
-
setIosLink:
|
|
6977
|
+
setIosLink: f,
|
|
6978
6978
|
setAndroidLink: v,
|
|
6979
6979
|
urlType: K,
|
|
6980
|
-
setUrlType:
|
|
6980
|
+
setUrlType: E
|
|
6981
6981
|
}) => {
|
|
6982
|
-
const [z,
|
|
6982
|
+
const [z, O] = P(null), [y, U] = P(null), [_, te] = P(null), [ue, $] = P(!1), [me, F] = P(!0), [ne, W] = P(window.innerWidth), [L, k] = P(!1), [h, M] = P(!1), [T, Z] = P("");
|
|
6983
6983
|
ye(() => {
|
|
6984
|
-
|
|
6985
|
-
|
|
6984
|
+
T || cs(t).then((b) => {
|
|
6985
|
+
b.exist && Z(b.uploadPath);
|
|
6986
6986
|
});
|
|
6987
|
-
}, [
|
|
6988
|
-
const [
|
|
6987
|
+
}, [T]), console.log("download modal version: 6.0.37");
|
|
6988
|
+
const [I, J] = P(!1);
|
|
6989
6989
|
ye(() => {
|
|
6990
|
-
}, [
|
|
6991
|
-
const
|
|
6992
|
-
|
|
6990
|
+
}, [I]), ye(() => {
|
|
6991
|
+
const b = () => {
|
|
6992
|
+
W(window.innerWidth);
|
|
6993
6993
|
};
|
|
6994
|
-
return window.addEventListener("resize",
|
|
6995
|
-
window.removeEventListener("resize",
|
|
6994
|
+
return window.addEventListener("resize", b), () => {
|
|
6995
|
+
window.removeEventListener("resize", b);
|
|
6996
6996
|
};
|
|
6997
6997
|
}, []);
|
|
6998
|
-
const
|
|
6999
|
-
|
|
7000
|
-
const
|
|
7001
|
-
return
|
|
7002
|
-
},
|
|
6998
|
+
const Y = async () => {
|
|
6999
|
+
$(!0);
|
|
7000
|
+
const b = await Pn(e, i);
|
|
7001
|
+
return b != null && b.networks || (b.networks = Js), O(b), b;
|
|
7002
|
+
}, j = (b, N) => {
|
|
7003
7003
|
clearTimeout(oo), oo = setTimeout(() => {
|
|
7004
|
-
console.log("Update URLS:"), pr(t, { iosUrl:
|
|
7004
|
+
console.log("Update URLS:"), pr(t, { iosUrl: b, googleUrl: N }, { urlType: K });
|
|
7005
7005
|
}, 1e3);
|
|
7006
|
-
}, X = (
|
|
7007
|
-
|
|
7008
|
-
},
|
|
7009
|
-
v(
|
|
7010
|
-
},
|
|
7011
|
-
var
|
|
7006
|
+
}, X = (b) => {
|
|
7007
|
+
f(b), j(b, p);
|
|
7008
|
+
}, R = (b) => {
|
|
7009
|
+
v(b), j(g, b);
|
|
7010
|
+
}, G = async (b, N) => {
|
|
7011
|
+
var x, D;
|
|
7012
7012
|
console.log("getIosAndAndroidLink");
|
|
7013
7013
|
try {
|
|
7014
|
-
let
|
|
7014
|
+
let ce;
|
|
7015
7015
|
if (r === "Playable" || r === "Ready") {
|
|
7016
|
-
const
|
|
7017
|
-
if (
|
|
7018
|
-
console.log("version",
|
|
7016
|
+
const ie = await ks(t, i);
|
|
7017
|
+
if (ie) {
|
|
7018
|
+
console.log("version", ie), f(ie.iosLink), v(ie.androidLink), $(!1);
|
|
7019
7019
|
return;
|
|
7020
7020
|
}
|
|
7021
|
-
if (
|
|
7022
|
-
|
|
7021
|
+
if (b && (b.iosUrl || b.googleUrl)) {
|
|
7022
|
+
f(b.iosUrl), v(b.googleUrl), $(!1);
|
|
7023
7023
|
return;
|
|
7024
7024
|
}
|
|
7025
|
-
if (
|
|
7026
|
-
let Xe = await fetch(c + "/" +
|
|
7027
|
-
(
|
|
7025
|
+
if (N && N.html) {
|
|
7026
|
+
let Xe = await fetch(c + "/" + N.html).then(
|
|
7027
|
+
(mt) => mt.text()
|
|
7028
7028
|
);
|
|
7029
|
-
const
|
|
7029
|
+
const ct = ((x = Xe.match(
|
|
7030
7030
|
/var\s+iosLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
7031
|
-
)) == null ? void 0 :
|
|
7032
|
-
|
|
7033
|
-
const
|
|
7031
|
+
)) == null ? void 0 : x.at(1)) || "";
|
|
7032
|
+
f(ct);
|
|
7033
|
+
const Ne = ((D = Xe.match(
|
|
7034
7034
|
/var\s+androidLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
7035
|
-
)) == null ? void 0 :
|
|
7036
|
-
v(
|
|
7035
|
+
)) == null ? void 0 : D.at(1)) || "";
|
|
7036
|
+
v(Ne), $(!1);
|
|
7037
7037
|
} else
|
|
7038
|
-
v(""),
|
|
7038
|
+
v(""), f(""), $(!1);
|
|
7039
7039
|
} else if (r === "Flex") {
|
|
7040
|
-
const
|
|
7041
|
-
if (
|
|
7042
|
-
v(
|
|
7040
|
+
const ie = await js(t, i);
|
|
7041
|
+
if (ie.googleUrl || ie.iosUrl) {
|
|
7042
|
+
v(ie.googleUrl), f(ie.iosUrl), $(!1);
|
|
7043
7043
|
return;
|
|
7044
7044
|
}
|
|
7045
|
-
|
|
7045
|
+
b && (b.iosUrl || b.googleUrl) ? (f(b.iosUrl), v(b.googleUrl), $(!1)) : (v(""), f(""), $(!1));
|
|
7046
7046
|
}
|
|
7047
|
-
} catch (
|
|
7048
|
-
m(
|
|
7049
|
-
}
|
|
7050
|
-
},
|
|
7051
|
-
|
|
7052
|
-
let
|
|
7053
|
-
r === "Flex" ?
|
|
7054
|
-
...
|
|
7047
|
+
} catch (ce) {
|
|
7048
|
+
m(ce.response.data.error.msg);
|
|
7049
|
+
}
|
|
7050
|
+
}, H = async () => {
|
|
7051
|
+
$(!0);
|
|
7052
|
+
let b;
|
|
7053
|
+
r === "Flex" ? b = await Os({ _id: t }, i) : r === "Ready" && (b = await Ys({ _id: t }, i)), b && (["admin", "pm", "tester", "sales"].includes(a.role) ? te({
|
|
7054
|
+
...b,
|
|
7055
7055
|
networks: ro
|
|
7056
|
-
}) : r === "Ready" && !
|
|
7057
|
-
...
|
|
7056
|
+
}) : r === "Ready" && !b.canDownload ? te({
|
|
7057
|
+
...b,
|
|
7058
7058
|
networks: ro
|
|
7059
|
-
}) :
|
|
7060
|
-
},
|
|
7059
|
+
}) : te(b)), $(!1);
|
|
7060
|
+
}, V = async () => await Es(n, i);
|
|
7061
7061
|
return ye(() => {
|
|
7062
|
-
o || (
|
|
7063
|
-
|
|
7064
|
-
}),
|
|
7065
|
-
|
|
7066
|
-
|
|
7062
|
+
o || (O(null), U(null), te(null), d(null)), o && (r === "Playable" ? (Y().then((b) => {
|
|
7063
|
+
G(null, b);
|
|
7064
|
+
}), F(!1)) : r === "Ready" ? H().then((b) => {
|
|
7065
|
+
Y().then((N) => {
|
|
7066
|
+
G(null, N), F(!1);
|
|
7067
7067
|
});
|
|
7068
|
-
}) : r === "Flex" ?
|
|
7069
|
-
|
|
7070
|
-
o && (
|
|
7068
|
+
}) : r === "Flex" ? H().then((b) => {
|
|
7069
|
+
F(!1), V().then((N) => {
|
|
7070
|
+
o && (G(N, null), F(!1), U(N));
|
|
7071
7071
|
});
|
|
7072
|
-
}) : r === "Import" && zs(t, i).then((
|
|
7073
|
-
console.log(
|
|
7072
|
+
}) : r === "Import" && zs(t, i).then((b) => {
|
|
7073
|
+
console.log(b), O(b), f(b.iosUrl || ""), v(b.googleUrl || ""), $(!1), F(!1);
|
|
7074
7074
|
}));
|
|
7075
7075
|
}, [n, e, t, o]), /* @__PURE__ */ s.jsxs(
|
|
7076
7076
|
"div",
|
|
7077
7077
|
{
|
|
7078
7078
|
style: {
|
|
7079
7079
|
display: "flex",
|
|
7080
|
-
height:
|
|
7081
|
-
width:
|
|
7080
|
+
height: ne > 1440 ? "700px" : "650px",
|
|
7081
|
+
width: ne > 1440 ? "675px" : "680px",
|
|
7082
7082
|
flexDirection: "column",
|
|
7083
7083
|
borderRadius: "rounded",
|
|
7084
7084
|
backgroundColor: "#F7F7F8",
|
|
@@ -7094,20 +7094,20 @@ const Ns = ({
|
|
|
7094
7094
|
fileSize: l,
|
|
7095
7095
|
urls: { iosUrl: g, googleUrl: p },
|
|
7096
7096
|
handleIosChange: X,
|
|
7097
|
-
handleGoogleChange:
|
|
7098
|
-
disabled:
|
|
7097
|
+
handleGoogleChange: R,
|
|
7098
|
+
disabled: me,
|
|
7099
7099
|
api: i,
|
|
7100
|
-
creditDownload:
|
|
7100
|
+
creditDownload: _,
|
|
7101
7101
|
user: a,
|
|
7102
|
-
isTest:
|
|
7103
|
-
setIsTest:
|
|
7102
|
+
isTest: L,
|
|
7103
|
+
setIsTest: k,
|
|
7104
7104
|
urlType: K,
|
|
7105
|
-
setUrlType:
|
|
7106
|
-
allNetworksSelected:
|
|
7105
|
+
setUrlType: E,
|
|
7106
|
+
allNetworksSelected: I,
|
|
7107
7107
|
setAllNetworksSelected: J
|
|
7108
7108
|
}
|
|
7109
7109
|
),
|
|
7110
|
-
|
|
7110
|
+
ue ? /* @__PURE__ */ s.jsx(
|
|
7111
7111
|
"div",
|
|
7112
7112
|
{
|
|
7113
7113
|
style: {
|
|
@@ -7119,11 +7119,11 @@ const Ns = ({
|
|
|
7119
7119
|
},
|
|
7120
7120
|
children: /* @__PURE__ */ s.jsx(St, { isNetworksLoading: !0 })
|
|
7121
7121
|
}
|
|
7122
|
-
) : (z ||
|
|
7122
|
+
) : (z || _) && (r === "Flex" ? y : !0) && !ue && g !== "Loading..." && p !== "Loading..." && /* @__PURE__ */ s.jsx(
|
|
7123
7123
|
Ls,
|
|
7124
7124
|
{
|
|
7125
7125
|
playable: z,
|
|
7126
|
-
creditDownload:
|
|
7126
|
+
creditDownload: _,
|
|
7127
7127
|
visible: o,
|
|
7128
7128
|
versionId: t,
|
|
7129
7129
|
typeOfProduct: r,
|
|
@@ -7133,16 +7133,16 @@ const Ns = ({
|
|
|
7133
7133
|
fetchFileUrl: c,
|
|
7134
7134
|
urls: { iosUrl: g, googleUrl: p },
|
|
7135
7135
|
game: y,
|
|
7136
|
-
getDownloadCount:
|
|
7137
|
-
disabled:
|
|
7136
|
+
getDownloadCount: H,
|
|
7137
|
+
disabled: me,
|
|
7138
7138
|
setSafariCopyLink: q,
|
|
7139
|
-
isTest:
|
|
7139
|
+
isTest: L,
|
|
7140
7140
|
urlType: K,
|
|
7141
|
-
allNetworksSelected:
|
|
7141
|
+
allNetworksSelected: I,
|
|
7142
7142
|
setAllNetworksSelected: J,
|
|
7143
|
-
cdnModal:
|
|
7144
|
-
setCdnModal:
|
|
7145
|
-
cdnUrl:
|
|
7143
|
+
cdnModal: h,
|
|
7144
|
+
setCdnModal: M,
|
|
7145
|
+
cdnUrl: T,
|
|
7146
7146
|
setCdnUrl: Z
|
|
7147
7147
|
}
|
|
7148
7148
|
)
|
|
@@ -7214,8 +7214,8 @@ Object.defineProperty(Ye, "__esModule", {
|
|
|
7214
7214
|
});
|
|
7215
7215
|
Ye.resetState = Ts;
|
|
7216
7216
|
Ye.log = Hs;
|
|
7217
|
-
Ye.handleBlur =
|
|
7218
|
-
Ye.handleFocus =
|
|
7217
|
+
Ye.handleBlur = Et;
|
|
7218
|
+
Ye.handleFocus = kt;
|
|
7219
7219
|
Ye.markForFocusLater = Xs;
|
|
7220
7220
|
Ye.returnFocus = Qs;
|
|
7221
7221
|
Ye.popWithoutFocus = Ps;
|
|
@@ -7225,7 +7225,7 @@ var Ds = ii, Rs = Gs(Ds);
|
|
|
7225
7225
|
function Gs(e) {
|
|
7226
7226
|
return e && e.__esModule ? e : { default: e };
|
|
7227
7227
|
}
|
|
7228
|
-
var ut = [],
|
|
7228
|
+
var ut = [], ft = null, _n = !1;
|
|
7229
7229
|
function Ts() {
|
|
7230
7230
|
ut = [];
|
|
7231
7231
|
}
|
|
@@ -7235,16 +7235,16 @@ function Hs() {
|
|
|
7235
7235
|
console.log(t.nodeName, t.className, t.id);
|
|
7236
7236
|
}), console.log("end focusManager ----------"));
|
|
7237
7237
|
}
|
|
7238
|
-
function
|
|
7238
|
+
function Et() {
|
|
7239
7239
|
_n = !0;
|
|
7240
7240
|
}
|
|
7241
|
-
function
|
|
7241
|
+
function kt() {
|
|
7242
7242
|
if (_n) {
|
|
7243
|
-
if (_n = !1, !
|
|
7243
|
+
if (_n = !1, !ft)
|
|
7244
7244
|
return;
|
|
7245
7245
|
setTimeout(function() {
|
|
7246
|
-
if (!
|
|
7247
|
-
var e = (0, Rs.default)(
|
|
7246
|
+
if (!ft.contains(document.activeElement)) {
|
|
7247
|
+
var e = (0, Rs.default)(ft)[0] || ft;
|
|
7248
7248
|
e.focus();
|
|
7249
7249
|
}
|
|
7250
7250
|
}, 0);
|
|
@@ -7266,10 +7266,10 @@ function Ps() {
|
|
|
7266
7266
|
ut.length > 0 && ut.pop();
|
|
7267
7267
|
}
|
|
7268
7268
|
function Vs(e) {
|
|
7269
|
-
|
|
7269
|
+
ft = e, window.addEventListener ? (window.addEventListener("blur", Et, !1), document.addEventListener("focus", kt, !0)) : (window.attachEvent("onBlur", Et), document.attachEvent("onFocus", kt));
|
|
7270
7270
|
}
|
|
7271
7271
|
function Bs() {
|
|
7272
|
-
|
|
7272
|
+
ft = null, window.addEventListener ? (window.removeEventListener("blur", Et), document.removeEventListener("focus", kt)) : (window.detachEvent("onBlur", Et), document.detachEvent("onFocus", kt));
|
|
7273
7273
|
}
|
|
7274
7274
|
var $n = { exports: {} };
|
|
7275
7275
|
(function(e, t) {
|
|
@@ -7300,7 +7300,7 @@ var $n = { exports: {} };
|
|
|
7300
7300
|
m.preventDefault(), l.focus();
|
|
7301
7301
|
return;
|
|
7302
7302
|
}
|
|
7303
|
-
var
|
|
7303
|
+
var f = /(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent), v = f != null && f[1] != "Chrome" && /\biPod\b|\biPad\b/g.exec(navigator.userAgent) == null;
|
|
7304
7304
|
if (v) {
|
|
7305
7305
|
var K = c.indexOf(p);
|
|
7306
7306
|
if (K > -1 && (K += d ? -1 : 1), l = c[K], typeof l > "u") {
|
|
@@ -7602,143 +7602,143 @@ xl.default.subscribe(Ml);
|
|
|
7602
7602
|
Object.defineProperty(t, "__esModule", {
|
|
7603
7603
|
value: !0
|
|
7604
7604
|
});
|
|
7605
|
-
var n = Object.assign || function(
|
|
7606
|
-
for (var
|
|
7607
|
-
var
|
|
7608
|
-
for (var
|
|
7609
|
-
Object.prototype.hasOwnProperty.call(
|
|
7610
|
-
}
|
|
7611
|
-
return
|
|
7612
|
-
}, r = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
7613
|
-
return typeof
|
|
7614
|
-
} : function(
|
|
7615
|
-
return
|
|
7605
|
+
var n = Object.assign || function(W) {
|
|
7606
|
+
for (var L = 1; L < arguments.length; L++) {
|
|
7607
|
+
var k = arguments[L];
|
|
7608
|
+
for (var h in k)
|
|
7609
|
+
Object.prototype.hasOwnProperty.call(k, h) && (W[h] = k[h]);
|
|
7610
|
+
}
|
|
7611
|
+
return W;
|
|
7612
|
+
}, r = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(W) {
|
|
7613
|
+
return typeof W;
|
|
7614
|
+
} : function(W) {
|
|
7615
|
+
return W && typeof Symbol == "function" && W.constructor === Symbol && W !== Symbol.prototype ? "symbol" : typeof W;
|
|
7616
7616
|
}, o = function() {
|
|
7617
|
-
function
|
|
7618
|
-
for (var
|
|
7619
|
-
var
|
|
7620
|
-
|
|
7617
|
+
function W(L, k) {
|
|
7618
|
+
for (var h = 0; h < k.length; h++) {
|
|
7619
|
+
var M = k[h];
|
|
7620
|
+
M.enumerable = M.enumerable || !1, M.configurable = !0, "value" in M && (M.writable = !0), Object.defineProperty(L, M.key, M);
|
|
7621
7621
|
}
|
|
7622
7622
|
}
|
|
7623
|
-
return function(
|
|
7624
|
-
return
|
|
7623
|
+
return function(L, k, h) {
|
|
7624
|
+
return k && W(L.prototype, k), h && W(L, h), L;
|
|
7625
7625
|
};
|
|
7626
|
-
}(), i =
|
|
7627
|
-
function
|
|
7628
|
-
if (
|
|
7629
|
-
return
|
|
7630
|
-
var
|
|
7631
|
-
if (
|
|
7632
|
-
for (var
|
|
7633
|
-
Object.prototype.hasOwnProperty.call(
|
|
7634
|
-
return
|
|
7635
|
-
}
|
|
7636
|
-
function y(
|
|
7637
|
-
return
|
|
7638
|
-
}
|
|
7639
|
-
function
|
|
7640
|
-
if (!(
|
|
7626
|
+
}(), i = Ae, a = An, A = y(a), m = Ye, c = O(m), l = Us, d = y(l), q = Je, g = O(q), p = vt, f = O(p), v = ze, K = y(v), E = bt, z = y(E);
|
|
7627
|
+
function O(W) {
|
|
7628
|
+
if (W && W.__esModule)
|
|
7629
|
+
return W;
|
|
7630
|
+
var L = {};
|
|
7631
|
+
if (W != null)
|
|
7632
|
+
for (var k in W)
|
|
7633
|
+
Object.prototype.hasOwnProperty.call(W, k) && (L[k] = W[k]);
|
|
7634
|
+
return L.default = W, L;
|
|
7635
|
+
}
|
|
7636
|
+
function y(W) {
|
|
7637
|
+
return W && W.__esModule ? W : { default: W };
|
|
7638
|
+
}
|
|
7639
|
+
function U(W, L) {
|
|
7640
|
+
if (!(W instanceof L))
|
|
7641
7641
|
throw new TypeError("Cannot call a class as a function");
|
|
7642
7642
|
}
|
|
7643
|
-
function
|
|
7644
|
-
if (!
|
|
7643
|
+
function _(W, L) {
|
|
7644
|
+
if (!W)
|
|
7645
7645
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7646
|
-
return
|
|
7646
|
+
return L && (typeof L == "object" || typeof L == "function") ? L : W;
|
|
7647
7647
|
}
|
|
7648
|
-
function
|
|
7649
|
-
if (typeof
|
|
7650
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
7651
|
-
|
|
7648
|
+
function te(W, L) {
|
|
7649
|
+
if (typeof L != "function" && L !== null)
|
|
7650
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof L);
|
|
7651
|
+
W.prototype = Object.create(L && L.prototype, { constructor: { value: W, enumerable: !1, writable: !0, configurable: !0 } }), L && (Object.setPrototypeOf ? Object.setPrototypeOf(W, L) : W.__proto__ = L);
|
|
7652
7652
|
}
|
|
7653
|
-
var
|
|
7653
|
+
var ue = {
|
|
7654
7654
|
overlay: "ReactModal__Overlay",
|
|
7655
7655
|
content: "ReactModal__Content"
|
|
7656
|
-
},
|
|
7657
|
-
return
|
|
7658
|
-
},
|
|
7659
|
-
return
|
|
7660
|
-
},
|
|
7661
|
-
|
|
7662
|
-
function
|
|
7663
|
-
|
|
7664
|
-
var
|
|
7665
|
-
return
|
|
7666
|
-
|
|
7667
|
-
},
|
|
7668
|
-
|
|
7669
|
-
},
|
|
7670
|
-
var
|
|
7671
|
-
J &&
|
|
7672
|
-
},
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
overlayEl:
|
|
7677
|
-
contentEl:
|
|
7656
|
+
}, $ = function(L) {
|
|
7657
|
+
return L.code === "Tab" || L.keyCode === 9;
|
|
7658
|
+
}, me = function(L) {
|
|
7659
|
+
return L.code === "Escape" || L.keyCode === 27;
|
|
7660
|
+
}, F = 0, ne = function(W) {
|
|
7661
|
+
te(L, W);
|
|
7662
|
+
function L(k) {
|
|
7663
|
+
U(this, L);
|
|
7664
|
+
var h = _(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, k));
|
|
7665
|
+
return h.setOverlayRef = function(M) {
|
|
7666
|
+
h.overlay = M, h.props.overlayRef && h.props.overlayRef(M);
|
|
7667
|
+
}, h.setContentRef = function(M) {
|
|
7668
|
+
h.content = M, h.props.contentRef && h.props.contentRef(M);
|
|
7669
|
+
}, h.afterClose = function() {
|
|
7670
|
+
var M = h.props, T = M.appElement, Z = M.ariaHideApp, I = M.htmlOpenClassName, J = M.bodyOpenClassName, Y = M.parentSelector, j = Y && Y().ownerDocument || document;
|
|
7671
|
+
J && f.remove(j.body, J), I && f.remove(j.getElementsByTagName("html")[0], I), Z && F > 0 && (F -= 1, F === 0 && g.show(T)), h.props.shouldFocusAfterRender && (h.props.shouldReturnFocusAfterClose ? (c.returnFocus(h.props.preventScroll), c.teardownScopedFocus()) : c.popWithoutFocus()), h.props.onAfterClose && h.props.onAfterClose(), z.default.deregister(h);
|
|
7672
|
+
}, h.open = function() {
|
|
7673
|
+
h.beforeOpen(), h.state.afterOpen && h.state.beforeClose ? (clearTimeout(h.closeTimer), h.setState({ beforeClose: !1 })) : (h.props.shouldFocusAfterRender && (c.setupScopedFocus(h.node), c.markForFocusLater()), h.setState({ isOpen: !0 }, function() {
|
|
7674
|
+
h.openAnimationFrame = requestAnimationFrame(function() {
|
|
7675
|
+
h.setState({ afterOpen: !0 }), h.props.isOpen && h.props.onAfterOpen && h.props.onAfterOpen({
|
|
7676
|
+
overlayEl: h.overlay,
|
|
7677
|
+
contentEl: h.content
|
|
7678
7678
|
});
|
|
7679
7679
|
});
|
|
7680
7680
|
}));
|
|
7681
|
-
},
|
|
7682
|
-
|
|
7683
|
-
},
|
|
7684
|
-
return
|
|
7685
|
-
},
|
|
7686
|
-
var
|
|
7687
|
-
|
|
7688
|
-
|
|
7681
|
+
}, h.close = function() {
|
|
7682
|
+
h.props.closeTimeoutMS > 0 ? h.closeWithTimeout() : h.closeWithoutTimeout();
|
|
7683
|
+
}, h.focusContent = function() {
|
|
7684
|
+
return h.content && !h.contentHasFocus() && h.content.focus({ preventScroll: !0 });
|
|
7685
|
+
}, h.closeWithTimeout = function() {
|
|
7686
|
+
var M = Date.now() + h.props.closeTimeoutMS;
|
|
7687
|
+
h.setState({ beforeClose: !0, closesAt: M }, function() {
|
|
7688
|
+
h.closeTimer = setTimeout(h.closeWithoutTimeout, h.state.closesAt - Date.now());
|
|
7689
7689
|
});
|
|
7690
|
-
},
|
|
7691
|
-
|
|
7690
|
+
}, h.closeWithoutTimeout = function() {
|
|
7691
|
+
h.setState({
|
|
7692
7692
|
beforeClose: !1,
|
|
7693
7693
|
isOpen: !1,
|
|
7694
7694
|
afterOpen: !1,
|
|
7695
7695
|
closesAt: null
|
|
7696
|
-
},
|
|
7697
|
-
},
|
|
7698
|
-
|
|
7699
|
-
},
|
|
7700
|
-
|
|
7701
|
-
},
|
|
7702
|
-
|
|
7703
|
-
},
|
|
7704
|
-
!
|
|
7705
|
-
},
|
|
7706
|
-
|
|
7707
|
-
},
|
|
7708
|
-
|
|
7709
|
-
},
|
|
7710
|
-
return
|
|
7711
|
-
},
|
|
7712
|
-
return
|
|
7713
|
-
},
|
|
7714
|
-
return !
|
|
7715
|
-
},
|
|
7716
|
-
return document.activeElement ===
|
|
7717
|
-
},
|
|
7718
|
-
var Z = (typeof
|
|
7719
|
-
base:
|
|
7720
|
-
afterOpen:
|
|
7721
|
-
beforeClose:
|
|
7722
|
-
},
|
|
7723
|
-
return
|
|
7724
|
-
},
|
|
7725
|
-
return Object.keys(
|
|
7726
|
-
return Z[
|
|
7696
|
+
}, h.afterClose);
|
|
7697
|
+
}, h.handleKeyDown = function(M) {
|
|
7698
|
+
$(M) && (0, d.default)(h.content, M), h.props.shouldCloseOnEsc && me(M) && (M.stopPropagation(), h.requestClose(M));
|
|
7699
|
+
}, h.handleOverlayOnClick = function(M) {
|
|
7700
|
+
h.shouldClose === null && (h.shouldClose = !0), h.shouldClose && h.props.shouldCloseOnOverlayClick && (h.ownerHandlesClose() ? h.requestClose(M) : h.focusContent()), h.shouldClose = null;
|
|
7701
|
+
}, h.handleContentOnMouseUp = function() {
|
|
7702
|
+
h.shouldClose = !1;
|
|
7703
|
+
}, h.handleOverlayOnMouseDown = function(M) {
|
|
7704
|
+
!h.props.shouldCloseOnOverlayClick && M.target == h.overlay && M.preventDefault();
|
|
7705
|
+
}, h.handleContentOnClick = function() {
|
|
7706
|
+
h.shouldClose = !1;
|
|
7707
|
+
}, h.handleContentOnMouseDown = function() {
|
|
7708
|
+
h.shouldClose = !1;
|
|
7709
|
+
}, h.requestClose = function(M) {
|
|
7710
|
+
return h.ownerHandlesClose() && h.props.onRequestClose(M);
|
|
7711
|
+
}, h.ownerHandlesClose = function() {
|
|
7712
|
+
return h.props.onRequestClose;
|
|
7713
|
+
}, h.shouldBeClosed = function() {
|
|
7714
|
+
return !h.state.isOpen && !h.state.beforeClose;
|
|
7715
|
+
}, h.contentHasFocus = function() {
|
|
7716
|
+
return document.activeElement === h.content || h.content.contains(document.activeElement);
|
|
7717
|
+
}, h.buildClassName = function(M, T) {
|
|
7718
|
+
var Z = (typeof T > "u" ? "undefined" : r(T)) === "object" ? T : {
|
|
7719
|
+
base: ue[M],
|
|
7720
|
+
afterOpen: ue[M] + "--after-open",
|
|
7721
|
+
beforeClose: ue[M] + "--before-close"
|
|
7722
|
+
}, I = Z.base;
|
|
7723
|
+
return h.state.afterOpen && (I = I + " " + Z.afterOpen), h.state.beforeClose && (I = I + " " + Z.beforeClose), typeof T == "string" && T ? I + " " + T : I;
|
|
7724
|
+
}, h.attributesFromObject = function(M, T) {
|
|
7725
|
+
return Object.keys(T).reduce(function(Z, I) {
|
|
7726
|
+
return Z[M + "-" + I] = T[I], Z;
|
|
7727
7727
|
}, {});
|
|
7728
|
-
},
|
|
7728
|
+
}, h.state = {
|
|
7729
7729
|
afterOpen: !1,
|
|
7730
7730
|
beforeClose: !1
|
|
7731
|
-
},
|
|
7731
|
+
}, h.shouldClose = null, h.moveFromContentToOverlay = null, h;
|
|
7732
7732
|
}
|
|
7733
|
-
return o(
|
|
7733
|
+
return o(L, [{
|
|
7734
7734
|
key: "componentDidMount",
|
|
7735
7735
|
value: function() {
|
|
7736
7736
|
this.props.isOpen && this.open();
|
|
7737
7737
|
}
|
|
7738
7738
|
}, {
|
|
7739
7739
|
key: "componentDidUpdate",
|
|
7740
|
-
value: function(
|
|
7741
|
-
process.env.NODE_ENV !== "production" && (
|
|
7740
|
+
value: function(h, M) {
|
|
7741
|
+
process.env.NODE_ENV !== "production" && (h.bodyOpenClassName !== this.props.bodyOpenClassName && console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'), h.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 && !h.isOpen ? this.open() : !this.props.isOpen && h.isOpen && this.close(), this.props.shouldFocusAfterRender && this.state.isOpen && !M.isOpen && this.focusContent();
|
|
7742
7742
|
}
|
|
7743
7743
|
}, {
|
|
7744
7744
|
key: "componentWillUnmount",
|
|
@@ -7748,27 +7748,27 @@ xl.default.subscribe(Ml);
|
|
|
7748
7748
|
}, {
|
|
7749
7749
|
key: "beforeOpen",
|
|
7750
7750
|
value: function() {
|
|
7751
|
-
var
|
|
7752
|
-
|
|
7751
|
+
var h = this.props, M = h.appElement, T = h.ariaHideApp, Z = h.htmlOpenClassName, I = h.bodyOpenClassName, J = h.parentSelector, Y = J && J().ownerDocument || document;
|
|
7752
|
+
I && f.add(Y.body, I), Z && f.add(Y.getElementsByTagName("html")[0], Z), T && (F += 1, g.hide(M)), z.default.register(this);
|
|
7753
7753
|
}
|
|
7754
7754
|
// Don't steal focus from inner elements
|
|
7755
7755
|
}, {
|
|
7756
7756
|
key: "render",
|
|
7757
7757
|
value: function() {
|
|
7758
|
-
var
|
|
7758
|
+
var h = this.props, M = h.id, T = h.className, Z = h.overlayClassName, I = h.defaultStyles, J = h.children, Y = T ? {} : I.content, j = Z ? {} : I.overlay;
|
|
7759
7759
|
if (this.shouldBeClosed())
|
|
7760
7760
|
return null;
|
|
7761
7761
|
var X = {
|
|
7762
7762
|
ref: this.setOverlayRef,
|
|
7763
7763
|
className: this.buildClassName("overlay", Z),
|
|
7764
|
-
style: n({},
|
|
7764
|
+
style: n({}, j, this.props.style.overlay),
|
|
7765
7765
|
onClick: this.handleOverlayOnClick,
|
|
7766
7766
|
onMouseDown: this.handleOverlayOnMouseDown
|
|
7767
|
-
},
|
|
7768
|
-
id:
|
|
7767
|
+
}, R = n({
|
|
7768
|
+
id: M,
|
|
7769
7769
|
ref: this.setContentRef,
|
|
7770
|
-
style: n({},
|
|
7771
|
-
className: this.buildClassName("content",
|
|
7770
|
+
style: n({}, Y, this.props.style.content),
|
|
7771
|
+
className: this.buildClassName("content", T),
|
|
7772
7772
|
tabIndex: "-1",
|
|
7773
7773
|
onKeyDown: this.handleKeyDown,
|
|
7774
7774
|
onMouseDown: this.handleContentOnMouseDown,
|
|
@@ -7778,18 +7778,18 @@ xl.default.subscribe(Ml);
|
|
|
7778
7778
|
"aria-label": this.props.contentLabel
|
|
7779
7779
|
}, this.attributesFromObject("aria", n({ modal: !0 }, this.props.aria)), this.attributesFromObject("data", this.props.data || {}), {
|
|
7780
7780
|
"data-testid": this.props.testId
|
|
7781
|
-
}),
|
|
7782
|
-
return this.props.overlayElement(X,
|
|
7781
|
+
}), G = this.props.contentElement(R, J);
|
|
7782
|
+
return this.props.overlayElement(X, G);
|
|
7783
7783
|
}
|
|
7784
|
-
}]),
|
|
7784
|
+
}]), L;
|
|
7785
7785
|
}(i.Component);
|
|
7786
|
-
|
|
7786
|
+
ne.defaultProps = {
|
|
7787
7787
|
style: {
|
|
7788
7788
|
overlay: {},
|
|
7789
7789
|
content: {}
|
|
7790
7790
|
},
|
|
7791
7791
|
defaultStyles: {}
|
|
7792
|
-
},
|
|
7792
|
+
}, ne.propTypes = {
|
|
7793
7793
|
isOpen: A.default.bool.isRequired,
|
|
7794
7794
|
defaultStyles: A.default.shape({
|
|
7795
7795
|
content: A.default.object,
|
|
@@ -7826,7 +7826,7 @@ xl.default.subscribe(Ml);
|
|
|
7826
7826
|
overlayElement: A.default.func,
|
|
7827
7827
|
contentElement: A.default.func,
|
|
7828
7828
|
testId: A.default.string
|
|
7829
|
-
}, t.default =
|
|
7829
|
+
}, t.default = ne, e.exports = t.default;
|
|
7830
7830
|
})(Un, Un.exports);
|
|
7831
7831
|
var Sl = Un.exports;
|
|
7832
7832
|
function ui() {
|
|
@@ -7914,7 +7914,7 @@ var Ao = Object.assign || function(e) {
|
|
|
7914
7914
|
return function(t, n, r) {
|
|
7915
7915
|
return n && e(t.prototype, n), r && e(t, r), t;
|
|
7916
7916
|
};
|
|
7917
|
-
}(), di =
|
|
7917
|
+
}(), di = Ae, rn = Dt(di), jl = Yi, on = Dt(jl), zl = An, B = Dt(zl), Yl = Sl, so = Dt(Yl), Jl = Je, Nl = Rl(Jl), $e = ze, lo = Dt($e), Dl = El;
|
|
7918
7918
|
function Rl(e) {
|
|
7919
7919
|
if (e && e.__esModule)
|
|
7920
7920
|
return e;
|
|
@@ -7924,7 +7924,7 @@ function Rl(e) {
|
|
|
7924
7924
|
Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
|
|
7925
7925
|
return t.default = e, t;
|
|
7926
7926
|
}
|
|
7927
|
-
function
|
|
7927
|
+
function Dt(e) {
|
|
7928
7928
|
return e && e.__esModule ? e : { default: e };
|
|
7929
7929
|
}
|
|
7930
7930
|
function Gl(e, t) {
|
|
@@ -8022,44 +8022,44 @@ var Ct = function(e) {
|
|
|
8022
8022
|
}]), t;
|
|
8023
8023
|
}(di.Component);
|
|
8024
8024
|
Ct.propTypes = {
|
|
8025
|
-
isOpen:
|
|
8026
|
-
style:
|
|
8027
|
-
content:
|
|
8028
|
-
overlay:
|
|
8025
|
+
isOpen: B.default.bool.isRequired,
|
|
8026
|
+
style: B.default.shape({
|
|
8027
|
+
content: B.default.object,
|
|
8028
|
+
overlay: B.default.object
|
|
8029
8029
|
}),
|
|
8030
|
-
portalClassName:
|
|
8031
|
-
bodyOpenClassName:
|
|
8032
|
-
htmlOpenClassName:
|
|
8033
|
-
className:
|
|
8034
|
-
base:
|
|
8035
|
-
afterOpen:
|
|
8036
|
-
beforeClose:
|
|
8030
|
+
portalClassName: B.default.string,
|
|
8031
|
+
bodyOpenClassName: B.default.string,
|
|
8032
|
+
htmlOpenClassName: B.default.string,
|
|
8033
|
+
className: B.default.oneOfType([B.default.string, B.default.shape({
|
|
8034
|
+
base: B.default.string.isRequired,
|
|
8035
|
+
afterOpen: B.default.string.isRequired,
|
|
8036
|
+
beforeClose: B.default.string.isRequired
|
|
8037
8037
|
})]),
|
|
8038
|
-
overlayClassName:
|
|
8039
|
-
base:
|
|
8040
|
-
afterOpen:
|
|
8041
|
-
beforeClose:
|
|
8038
|
+
overlayClassName: B.default.oneOfType([B.default.string, B.default.shape({
|
|
8039
|
+
base: B.default.string.isRequired,
|
|
8040
|
+
afterOpen: B.default.string.isRequired,
|
|
8041
|
+
beforeClose: B.default.string.isRequired
|
|
8042
8042
|
})]),
|
|
8043
|
-
appElement:
|
|
8044
|
-
onAfterOpen:
|
|
8045
|
-
onRequestClose:
|
|
8046
|
-
closeTimeoutMS:
|
|
8047
|
-
ariaHideApp:
|
|
8048
|
-
shouldFocusAfterRender:
|
|
8049
|
-
shouldCloseOnOverlayClick:
|
|
8050
|
-
shouldReturnFocusAfterClose:
|
|
8051
|
-
preventScroll:
|
|
8052
|
-
parentSelector:
|
|
8053
|
-
aria:
|
|
8054
|
-
data:
|
|
8055
|
-
role:
|
|
8056
|
-
contentLabel:
|
|
8057
|
-
shouldCloseOnEsc:
|
|
8058
|
-
overlayRef:
|
|
8059
|
-
contentRef:
|
|
8060
|
-
id:
|
|
8061
|
-
overlayElement:
|
|
8062
|
-
contentElement:
|
|
8043
|
+
appElement: B.default.oneOfType([B.default.instanceOf(lo.default), B.default.instanceOf($e.SafeHTMLCollection), B.default.instanceOf($e.SafeNodeList), B.default.arrayOf(B.default.instanceOf(lo.default))]),
|
|
8044
|
+
onAfterOpen: B.default.func,
|
|
8045
|
+
onRequestClose: B.default.func,
|
|
8046
|
+
closeTimeoutMS: B.default.number,
|
|
8047
|
+
ariaHideApp: B.default.bool,
|
|
8048
|
+
shouldFocusAfterRender: B.default.bool,
|
|
8049
|
+
shouldCloseOnOverlayClick: B.default.bool,
|
|
8050
|
+
shouldReturnFocusAfterClose: B.default.bool,
|
|
8051
|
+
preventScroll: B.default.bool,
|
|
8052
|
+
parentSelector: B.default.func,
|
|
8053
|
+
aria: B.default.object,
|
|
8054
|
+
data: B.default.object,
|
|
8055
|
+
role: B.default.string,
|
|
8056
|
+
contentLabel: B.default.string,
|
|
8057
|
+
shouldCloseOnEsc: B.default.bool,
|
|
8058
|
+
overlayRef: B.default.func,
|
|
8059
|
+
contentRef: B.default.func,
|
|
8060
|
+
id: B.default.string,
|
|
8061
|
+
overlayElement: B.default.func,
|
|
8062
|
+
contentElement: B.default.func
|
|
8063
8063
|
};
|
|
8064
8064
|
Ct.defaultProps = {
|
|
8065
8065
|
isOpen: !1,
|
|
@@ -8389,29 +8389,29 @@ const tr = /* @__PURE__ */ Ji(Ql), Pl = ({ width: e, height: t, fill: n }) => /*
|
|
|
8389
8389
|
fetchFileUrl: q,
|
|
8390
8390
|
copyLinkUrl: g
|
|
8391
8391
|
}) => {
|
|
8392
|
-
const [p,
|
|
8393
|
-
us(a, A,
|
|
8394
|
-
const
|
|
8395
|
-
|
|
8396
|
-
K(!0), z(q + "/" +
|
|
8392
|
+
const [p, f] = P(window.innerWidth), [v, K] = P(!1), [E, z] = P(l), [O, y] = P(!1), [U, _] = P(!0), [te, ue] = P(null), [$, me] = P(""), [F, ne] = P("Loading..."), [W, L] = P("Loading..."), [k, h] = P("game");
|
|
8393
|
+
us(a, A, me, q);
|
|
8394
|
+
const M = async () => {
|
|
8395
|
+
Ot(n, "preview", null, null, !1).then((T) => {
|
|
8396
|
+
K(!0), z(q + "/" + T.url), (a === "Flex" || a === "Ready" || a === "Playable") && (T.size >= 5 ? y(!0) : y(!1), ue(T.size)), _(!1);
|
|
8397
8397
|
});
|
|
8398
8398
|
};
|
|
8399
8399
|
return ye(() => {
|
|
8400
|
-
e ? v || (
|
|
8400
|
+
e ? v || (M(), K(!0)) : (K(!1), z(""));
|
|
8401
8401
|
}, [e]), ye(() => {
|
|
8402
|
-
const
|
|
8403
|
-
|
|
8402
|
+
const T = () => {
|
|
8403
|
+
f(window.innerWidth);
|
|
8404
8404
|
};
|
|
8405
|
-
return window.addEventListener("resize",
|
|
8406
|
-
window.removeEventListener("resize",
|
|
8405
|
+
return window.addEventListener("resize", T), () => {
|
|
8406
|
+
window.removeEventListener("resize", T);
|
|
8407
8407
|
};
|
|
8408
|
-
}, []),
|
|
8408
|
+
}, []), U && e ? /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(
|
|
8409
8409
|
tr,
|
|
8410
8410
|
{
|
|
8411
8411
|
isOpen: e,
|
|
8412
8412
|
ariaHideApp: !1,
|
|
8413
8413
|
onRequestClose: () => {
|
|
8414
|
-
t(), a === "Flex" &&
|
|
8414
|
+
t(), a === "Flex" && _(!0);
|
|
8415
8415
|
},
|
|
8416
8416
|
style: {
|
|
8417
8417
|
content: {
|
|
@@ -8460,32 +8460,32 @@ const tr = /* @__PURE__ */ Ji(Ql), Pl = ({ width: e, height: t, fill: n }) => /*
|
|
|
8460
8460
|
}
|
|
8461
8461
|
)
|
|
8462
8462
|
}
|
|
8463
|
-
) }) :
|
|
8463
|
+
) }) : U && a === "Flex" ? null : /* @__PURE__ */ s.jsxs(
|
|
8464
8464
|
"div",
|
|
8465
8465
|
{
|
|
8466
|
-
onMouseDown: (
|
|
8467
|
-
|
|
8466
|
+
onMouseDown: (T) => {
|
|
8467
|
+
T.stopPropagation();
|
|
8468
8468
|
},
|
|
8469
|
-
onMouseUp: (
|
|
8470
|
-
|
|
8469
|
+
onMouseUp: (T) => {
|
|
8470
|
+
T.stopPropagation();
|
|
8471
8471
|
},
|
|
8472
8472
|
children: [
|
|
8473
|
-
|
|
8473
|
+
O && e && /* @__PURE__ */ s.jsx(
|
|
8474
8474
|
Vl,
|
|
8475
8475
|
{
|
|
8476
8476
|
setIsExceedingFileSizeAccepted: y,
|
|
8477
8477
|
closeModal: t,
|
|
8478
|
-
setLoading:
|
|
8478
|
+
setLoading: _,
|
|
8479
8479
|
typeOfProduct: a
|
|
8480
8480
|
}
|
|
8481
8481
|
),
|
|
8482
|
-
!
|
|
8482
|
+
!O && /* @__PURE__ */ s.jsxs(
|
|
8483
8483
|
tr,
|
|
8484
8484
|
{
|
|
8485
8485
|
isOpen: e,
|
|
8486
8486
|
ariaHideApp: !1,
|
|
8487
8487
|
onRequestClose: () => {
|
|
8488
|
-
t(), a === "Flex" &&
|
|
8488
|
+
t(), a === "Flex" && _(!0);
|
|
8489
8489
|
},
|
|
8490
8490
|
style: {
|
|
8491
8491
|
content: {
|
|
@@ -8530,7 +8530,7 @@ const tr = /* @__PURE__ */ Ji(Ql), Pl = ({ width: e, height: t, fill: n }) => /*
|
|
|
8530
8530
|
"button",
|
|
8531
8531
|
{
|
|
8532
8532
|
onClick: () => {
|
|
8533
|
-
t(), a === "Flex" &&
|
|
8533
|
+
t(), a === "Flex" && _(!0);
|
|
8534
8534
|
},
|
|
8535
8535
|
style: {
|
|
8536
8536
|
color: "#718096",
|
|
@@ -8551,14 +8551,14 @@ const tr = /* @__PURE__ */ Ji(Ql), Pl = ({ width: e, height: t, fill: n }) => /*
|
|
|
8551
8551
|
versionId: n,
|
|
8552
8552
|
playableId: i || "",
|
|
8553
8553
|
typeOfProduct: a,
|
|
8554
|
-
iframeUrl:
|
|
8554
|
+
iframeUrl: E,
|
|
8555
8555
|
api: A,
|
|
8556
8556
|
fetchFileUrl: q,
|
|
8557
8557
|
copyLinkUrl: g,
|
|
8558
|
-
setSafariCopyLink:
|
|
8559
|
-
iosLink:
|
|
8560
|
-
androidLink:
|
|
8561
|
-
urlType:
|
|
8558
|
+
setSafariCopyLink: me,
|
|
8559
|
+
iosLink: F,
|
|
8560
|
+
androidLink: W,
|
|
8561
|
+
urlType: k
|
|
8562
8562
|
}
|
|
8563
8563
|
) : /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(
|
|
8564
8564
|
"div",
|
|
@@ -8599,26 +8599,26 @@ const tr = /* @__PURE__ */ Ji(Ql), Pl = ({ width: e, height: t, fill: n }) => /*
|
|
|
8599
8599
|
title: c,
|
|
8600
8600
|
handleDownloadError: d,
|
|
8601
8601
|
fetchFileUrl: q,
|
|
8602
|
-
fileSize:
|
|
8603
|
-
setFileSize:
|
|
8604
|
-
setSafariCopyLink:
|
|
8605
|
-
iosLink:
|
|
8606
|
-
androidLink:
|
|
8607
|
-
setIosLink:
|
|
8608
|
-
setAndroidLink:
|
|
8609
|
-
urlType:
|
|
8610
|
-
setUrlType:
|
|
8602
|
+
fileSize: te,
|
|
8603
|
+
setFileSize: ue,
|
|
8604
|
+
setSafariCopyLink: me,
|
|
8605
|
+
iosLink: F,
|
|
8606
|
+
androidLink: W,
|
|
8607
|
+
setIosLink: ne,
|
|
8608
|
+
setAndroidLink: L,
|
|
8609
|
+
urlType: k,
|
|
8610
|
+
setUrlType: h
|
|
8611
8611
|
}
|
|
8612
8612
|
)
|
|
8613
8613
|
] }),
|
|
8614
8614
|
/* @__PURE__ */ s.jsx(Qn, {}),
|
|
8615
|
-
|
|
8615
|
+
$ && /* @__PURE__ */ s.jsx(
|
|
8616
8616
|
Bl,
|
|
8617
8617
|
{
|
|
8618
8618
|
onClose: () => {
|
|
8619
|
-
|
|
8619
|
+
Nt($), me("");
|
|
8620
8620
|
},
|
|
8621
|
-
url:
|
|
8621
|
+
url: $
|
|
8622
8622
|
}
|
|
8623
8623
|
),
|
|
8624
8624
|
/* @__PURE__ */ s.jsx(
|