gearboxdownloadmodal 4.0.36 → 4.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 +1284 -1265
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +22 -22
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/Modal.d.ts +2 -0
- package/dist/src/components/Preview.d.ts +2 -0
- package/dist/src/components/Qrcode.d.ts +2 -0
- package/dist/src/services/getPlayableVersionMarketLink.d.ts +1 -0
- package/dist/src/services/updatePlayableVersion.d.ts +4 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import re, { useState as V, useEffect as be, forwardRef as Io, useReducer as wo, useRef as _e, isValidElement as ut, cloneElement as xr, useLayoutEffect as Ko } from "react";
|
|
2
2
|
import Wo from "react-dom";
|
|
3
3
|
function xo(e) {
|
|
4
4
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -39,7 +39,7 @@ function Mo() {
|
|
|
39
39
|
if (qn)
|
|
40
40
|
return qt;
|
|
41
41
|
qn = 1;
|
|
42
|
-
var e =
|
|
42
|
+
var e = re, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
43
43
|
function A(a, c, s) {
|
|
44
44
|
var u, d = {}, h = null, q = null;
|
|
45
45
|
s !== void 0 && (h = "" + s), c.key !== void 0 && (h = "" + c.key), c.ref !== void 0 && (q = c.ref);
|
|
@@ -65,48 +65,48 @@ var gt = {};
|
|
|
65
65
|
var gn;
|
|
66
66
|
function So() {
|
|
67
67
|
return gn || (gn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
68
|
-
var e =
|
|
68
|
+
var e = re, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), A = Symbol.for("react.provider"), a = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), s = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), q = Symbol.for("react.offscreen"), p = Symbol.iterator, y = "@@iterator";
|
|
69
69
|
function C(l) {
|
|
70
70
|
if (l === null || typeof l != "object")
|
|
71
71
|
return null;
|
|
72
|
-
var Z =
|
|
72
|
+
var Z = p && l[p] || l[y];
|
|
73
73
|
return typeof Z == "function" ? Z : null;
|
|
74
74
|
}
|
|
75
75
|
var I = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
76
76
|
function k(l) {
|
|
77
77
|
{
|
|
78
|
-
for (var Z = arguments.length, S = new Array(Z > 1 ? Z - 1 : 0),
|
|
79
|
-
S[
|
|
80
|
-
|
|
78
|
+
for (var Z = arguments.length, S = new Array(Z > 1 ? Z - 1 : 0), H = 1; H < Z; H++)
|
|
79
|
+
S[H - 1] = arguments[H];
|
|
80
|
+
N("error", l, S);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function N(l, Z, S) {
|
|
84
84
|
{
|
|
85
|
-
var
|
|
86
|
-
|
|
87
|
-
var le = S.map(function(
|
|
88
|
-
return String(
|
|
85
|
+
var H = I.ReactDebugCurrentFrame, te = H.getStackAddendum();
|
|
86
|
+
te !== "" && (Z += "%s", S = S.concat([te]));
|
|
87
|
+
var le = S.map(function(F) {
|
|
88
|
+
return String(F);
|
|
89
89
|
});
|
|
90
90
|
le.unshift("Warning: " + Z), Function.prototype.apply.call(console[l], console, le);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
var
|
|
94
|
-
|
|
95
|
-
function
|
|
96
|
-
return !!(typeof l == "string" || typeof l == "function" || l === n || l === o ||
|
|
93
|
+
var E = !1, b = !1, U = !1, se = !1, $ = !1, ne;
|
|
94
|
+
ne = Symbol.for("react.module.reference");
|
|
95
|
+
function ce(l) {
|
|
96
|
+
return !!(typeof l == "string" || typeof l == "function" || l === n || l === o || $ || l === i || l === s || l === u || se || l === q || E || b || U || typeof l == "object" && l !== null && (l.$$typeof === h || l.$$typeof === d || l.$$typeof === A || l.$$typeof === a || l.$$typeof === c || // 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
|
-
l.$$typeof ===
|
|
100
|
+
l.$$typeof === ne || l.getModuleId !== void 0));
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
var
|
|
104
|
-
if (
|
|
105
|
-
return
|
|
106
|
-
var
|
|
107
|
-
return
|
|
102
|
+
function ae(l, Z, S) {
|
|
103
|
+
var H = l.displayName;
|
|
104
|
+
if (H)
|
|
105
|
+
return H;
|
|
106
|
+
var te = Z.displayName || Z.name || "";
|
|
107
|
+
return te !== "" ? S + "(" + te + ")" : S;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function ee(l) {
|
|
110
110
|
return l.displayName || "Context";
|
|
111
111
|
}
|
|
112
112
|
function P(l) {
|
|
@@ -134,19 +134,19 @@ function So() {
|
|
|
134
134
|
switch (l.$$typeof) {
|
|
135
135
|
case a:
|
|
136
136
|
var Z = l;
|
|
137
|
-
return
|
|
137
|
+
return ee(Z) + ".Consumer";
|
|
138
138
|
case A:
|
|
139
139
|
var S = l;
|
|
140
|
-
return
|
|
140
|
+
return ee(S._context) + ".Provider";
|
|
141
141
|
case c:
|
|
142
|
-
return
|
|
142
|
+
return ae(l, l.render, "ForwardRef");
|
|
143
143
|
case d:
|
|
144
|
-
var
|
|
145
|
-
return
|
|
144
|
+
var H = l.displayName || null;
|
|
145
|
+
return H !== null ? H : P(l.type) || "Memo";
|
|
146
146
|
case h: {
|
|
147
|
-
var
|
|
147
|
+
var te = l, le = te._payload, F = te._init;
|
|
148
148
|
try {
|
|
149
|
-
return P(
|
|
149
|
+
return P(F(le));
|
|
150
150
|
} catch {
|
|
151
151
|
return null;
|
|
152
152
|
}
|
|
@@ -154,18 +154,18 @@ function So() {
|
|
|
154
154
|
}
|
|
155
155
|
return null;
|
|
156
156
|
}
|
|
157
|
-
var
|
|
158
|
-
function G() {
|
|
159
|
-
}
|
|
160
|
-
G.__reactDisabledLog = !0;
|
|
157
|
+
var x = Object.assign, w = 0, L, f, W, J, g, K, O;
|
|
161
158
|
function D() {
|
|
159
|
+
}
|
|
160
|
+
D.__reactDisabledLog = !0;
|
|
161
|
+
function G() {
|
|
162
162
|
{
|
|
163
|
-
if (
|
|
164
|
-
|
|
163
|
+
if (w === 0) {
|
|
164
|
+
L = console.log, f = console.info, W = console.warn, J = console.error, g = console.group, K = console.groupCollapsed, O = console.groupEnd;
|
|
165
165
|
var l = {
|
|
166
166
|
configurable: !0,
|
|
167
167
|
enumerable: !0,
|
|
168
|
-
value:
|
|
168
|
+
value: D,
|
|
169
169
|
writable: !0
|
|
170
170
|
};
|
|
171
171
|
Object.defineProperties(console, {
|
|
@@ -178,138 +178,138 @@ function So() {
|
|
|
178
178
|
groupEnd: l
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
-
|
|
181
|
+
w++;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function R() {
|
|
185
185
|
{
|
|
186
|
-
if (
|
|
186
|
+
if (w--, w === 0) {
|
|
187
187
|
var l = {
|
|
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: x({}, l, {
|
|
194
|
+
value: L
|
|
195
195
|
}),
|
|
196
|
-
info:
|
|
197
|
-
value:
|
|
196
|
+
info: x({}, l, {
|
|
197
|
+
value: f
|
|
198
198
|
}),
|
|
199
|
-
warn:
|
|
199
|
+
warn: x({}, l, {
|
|
200
200
|
value: W
|
|
201
201
|
}),
|
|
202
|
-
error:
|
|
202
|
+
error: x({}, l, {
|
|
203
203
|
value: J
|
|
204
204
|
}),
|
|
205
|
-
group:
|
|
205
|
+
group: x({}, l, {
|
|
206
206
|
value: g
|
|
207
207
|
}),
|
|
208
|
-
groupCollapsed:
|
|
209
|
-
value:
|
|
208
|
+
groupCollapsed: x({}, l, {
|
|
209
|
+
value: K
|
|
210
210
|
}),
|
|
211
|
-
groupEnd:
|
|
212
|
-
value:
|
|
211
|
+
groupEnd: x({}, l, {
|
|
212
|
+
value: O
|
|
213
213
|
})
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
|
|
216
|
+
w < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
var
|
|
220
|
-
function
|
|
219
|
+
var j = I.ReactCurrentDispatcher, Y;
|
|
220
|
+
function z(l, Z, S) {
|
|
221
221
|
{
|
|
222
222
|
if (Y === void 0)
|
|
223
223
|
try {
|
|
224
224
|
throw Error();
|
|
225
|
-
} catch (
|
|
226
|
-
var
|
|
227
|
-
Y =
|
|
225
|
+
} catch (te) {
|
|
226
|
+
var H = te.stack.trim().match(/\n( *(at )?)/);
|
|
227
|
+
Y = H && H[1] || "";
|
|
228
228
|
}
|
|
229
229
|
return `
|
|
230
230
|
` + Y + l;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
var
|
|
233
|
+
var Q = !1, T;
|
|
234
234
|
{
|
|
235
|
-
var
|
|
236
|
-
|
|
235
|
+
var me = typeof WeakMap == "function" ? WeakMap : Map;
|
|
236
|
+
T = new me();
|
|
237
237
|
}
|
|
238
238
|
function M(l, Z) {
|
|
239
|
-
if (!l ||
|
|
239
|
+
if (!l || Q)
|
|
240
240
|
return "";
|
|
241
241
|
{
|
|
242
|
-
var S =
|
|
242
|
+
var S = T.get(l);
|
|
243
243
|
if (S !== void 0)
|
|
244
244
|
return S;
|
|
245
245
|
}
|
|
246
|
-
var
|
|
247
|
-
|
|
248
|
-
var
|
|
246
|
+
var H;
|
|
247
|
+
Q = !0;
|
|
248
|
+
var te = Error.prepareStackTrace;
|
|
249
249
|
Error.prepareStackTrace = void 0;
|
|
250
250
|
var le;
|
|
251
|
-
le =
|
|
251
|
+
le = j.current, j.current = null, G();
|
|
252
252
|
try {
|
|
253
253
|
if (Z) {
|
|
254
|
-
var
|
|
254
|
+
var F = function() {
|
|
255
255
|
throw Error();
|
|
256
256
|
};
|
|
257
|
-
if (Object.defineProperty(
|
|
257
|
+
if (Object.defineProperty(F.prototype, "props", {
|
|
258
258
|
set: function() {
|
|
259
259
|
throw Error();
|
|
260
260
|
}
|
|
261
261
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
262
262
|
try {
|
|
263
|
-
Reflect.construct(
|
|
263
|
+
Reflect.construct(F, []);
|
|
264
264
|
} catch (De) {
|
|
265
|
-
|
|
265
|
+
H = De;
|
|
266
266
|
}
|
|
267
|
-
Reflect.construct(l, [],
|
|
267
|
+
Reflect.construct(l, [], F);
|
|
268
268
|
} else {
|
|
269
269
|
try {
|
|
270
|
-
|
|
270
|
+
F.call();
|
|
271
271
|
} catch (De) {
|
|
272
|
-
|
|
272
|
+
H = De;
|
|
273
273
|
}
|
|
274
|
-
l.call(
|
|
274
|
+
l.call(F.prototype);
|
|
275
275
|
}
|
|
276
276
|
} else {
|
|
277
277
|
try {
|
|
278
278
|
throw Error();
|
|
279
279
|
} catch (De) {
|
|
280
|
-
|
|
280
|
+
H = De;
|
|
281
281
|
}
|
|
282
282
|
l();
|
|
283
283
|
}
|
|
284
284
|
} catch (De) {
|
|
285
|
-
if (De &&
|
|
286
|
-
for (var
|
|
287
|
-
`),
|
|
288
|
-
`), de =
|
|
285
|
+
if (De && H && typeof De.stack == "string") {
|
|
286
|
+
for (var B = De.stack.split(`
|
|
287
|
+
`), ye = H.stack.split(`
|
|
288
|
+
`), de = B.length - 1, pe = ye.length - 1; de >= 1 && pe >= 0 && B[de] !== ye[pe]; )
|
|
289
289
|
pe--;
|
|
290
290
|
for (; de >= 1 && pe >= 0; de--, pe--)
|
|
291
|
-
if (
|
|
291
|
+
if (B[de] !== ye[pe]) {
|
|
292
292
|
if (de !== 1 || pe !== 1)
|
|
293
293
|
do
|
|
294
|
-
if (de--, pe--, pe < 0 ||
|
|
294
|
+
if (de--, pe--, pe < 0 || B[de] !== ye[pe]) {
|
|
295
295
|
var Ke = `
|
|
296
|
-
` +
|
|
297
|
-
return l.displayName && Ke.includes("<anonymous>") && (Ke = Ke.replace("<anonymous>", l.displayName)), typeof l == "function" &&
|
|
296
|
+
` + B[de].replace(" at new ", " at ");
|
|
297
|
+
return l.displayName && Ke.includes("<anonymous>") && (Ke = Ke.replace("<anonymous>", l.displayName)), typeof l == "function" && T.set(l, Ke), Ke;
|
|
298
298
|
}
|
|
299
299
|
while (de >= 1 && pe >= 0);
|
|
300
300
|
break;
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
} finally {
|
|
304
|
-
|
|
304
|
+
Q = !1, j.current = le, R(), Error.prepareStackTrace = te;
|
|
305
305
|
}
|
|
306
|
-
var st = l ? l.displayName || l.name : "", hn = st ?
|
|
307
|
-
return typeof l == "function" &&
|
|
306
|
+
var st = l ? l.displayName || l.name : "", hn = st ? z(st) : "";
|
|
307
|
+
return typeof l == "function" && T.set(l, hn), hn;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function we(l, Z, S) {
|
|
310
310
|
return M(l, !1);
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function At(l) {
|
|
313
313
|
var Z = l.prototype;
|
|
314
314
|
return !!(Z && Z.isReactComponent);
|
|
315
315
|
}
|
|
@@ -317,25 +317,25 @@ function So() {
|
|
|
317
317
|
if (l == null)
|
|
318
318
|
return "";
|
|
319
319
|
if (typeof l == "function")
|
|
320
|
-
return M(l,
|
|
320
|
+
return M(l, At(l));
|
|
321
321
|
if (typeof l == "string")
|
|
322
|
-
return
|
|
322
|
+
return z(l);
|
|
323
323
|
switch (l) {
|
|
324
324
|
case s:
|
|
325
|
-
return
|
|
325
|
+
return z("Suspense");
|
|
326
326
|
case u:
|
|
327
|
-
return
|
|
327
|
+
return z("SuspenseList");
|
|
328
328
|
}
|
|
329
329
|
if (typeof l == "object")
|
|
330
330
|
switch (l.$$typeof) {
|
|
331
331
|
case c:
|
|
332
|
-
return
|
|
332
|
+
return we(l.render);
|
|
333
333
|
case d:
|
|
334
334
|
return Ve(l.type, Z, S);
|
|
335
335
|
case h: {
|
|
336
|
-
var
|
|
336
|
+
var H = l, te = H._payload, le = H._init;
|
|
337
337
|
try {
|
|
338
|
-
return Ve(le(
|
|
338
|
+
return Ve(le(te), Z, S);
|
|
339
339
|
} catch {
|
|
340
340
|
}
|
|
341
341
|
}
|
|
@@ -350,22 +350,22 @@ function So() {
|
|
|
350
350
|
} else
|
|
351
351
|
on.setExtraStackFrame(null);
|
|
352
352
|
}
|
|
353
|
-
function no(l, Z, S,
|
|
353
|
+
function no(l, Z, S, H, te) {
|
|
354
354
|
{
|
|
355
355
|
var le = Function.call.bind(Lt);
|
|
356
|
-
for (var
|
|
357
|
-
if (le(l,
|
|
358
|
-
var
|
|
356
|
+
for (var F in l)
|
|
357
|
+
if (le(l, F)) {
|
|
358
|
+
var B = void 0;
|
|
359
359
|
try {
|
|
360
|
-
if (typeof l[
|
|
361
|
-
var
|
|
362
|
-
throw
|
|
360
|
+
if (typeof l[F] != "function") {
|
|
361
|
+
var ye = Error((H || "React class") + ": " + S + " type `" + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof l[F] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
362
|
+
throw ye.name = "Invariant Violation", ye;
|
|
363
363
|
}
|
|
364
|
-
|
|
364
|
+
B = l[F](Z, F, H, S, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
365
365
|
} catch (de) {
|
|
366
|
-
|
|
366
|
+
B = de;
|
|
367
367
|
}
|
|
368
|
-
|
|
368
|
+
B && !(B instanceof Error) && (Et(te), k("%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).", H || "React class", S, F, typeof B), Et(null)), B instanceof Error && !(B.message in nn) && (nn[B.message] = !0, Et(te), k("Failed %s type: %s", S, B.message), Et(null));
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
}
|
|
@@ -444,51 +444,51 @@ function So() {
|
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
var po = function(l, Z, S,
|
|
448
|
-
var
|
|
447
|
+
var po = function(l, Z, S, H, te, le, F) {
|
|
448
|
+
var B = {
|
|
449
449
|
// This tag allows us to uniquely identify this as a React Element
|
|
450
450
|
$$typeof: t,
|
|
451
451
|
// Built-in properties that belong on the element
|
|
452
452
|
type: l,
|
|
453
453
|
key: Z,
|
|
454
454
|
ref: S,
|
|
455
|
-
props:
|
|
455
|
+
props: F,
|
|
456
456
|
// Record the component responsible for creating this element.
|
|
457
457
|
_owner: le
|
|
458
458
|
};
|
|
459
|
-
return
|
|
459
|
+
return B._store = {}, Object.defineProperty(B._store, "validated", {
|
|
460
460
|
configurable: !1,
|
|
461
461
|
enumerable: !1,
|
|
462
462
|
writable: !0,
|
|
463
463
|
value: !1
|
|
464
|
-
}), Object.defineProperty(
|
|
464
|
+
}), Object.defineProperty(B, "_self", {
|
|
465
465
|
configurable: !1,
|
|
466
466
|
enumerable: !1,
|
|
467
467
|
writable: !1,
|
|
468
|
-
value:
|
|
469
|
-
}), Object.defineProperty(
|
|
468
|
+
value: H
|
|
469
|
+
}), Object.defineProperty(B, "_source", {
|
|
470
470
|
configurable: !1,
|
|
471
471
|
enumerable: !1,
|
|
472
472
|
writable: !1,
|
|
473
|
-
value:
|
|
474
|
-
}), Object.freeze && (Object.freeze(
|
|
473
|
+
value: te
|
|
474
|
+
}), Object.freeze && (Object.freeze(B.props), Object.freeze(B)), B;
|
|
475
475
|
};
|
|
476
|
-
function fo(l, Z, S,
|
|
476
|
+
function fo(l, Z, S, H, te) {
|
|
477
477
|
{
|
|
478
|
-
var le,
|
|
479
|
-
S !== void 0 && (an(S),
|
|
478
|
+
var le, F = {}, B = null, ye = null;
|
|
479
|
+
S !== void 0 && (an(S), B = "" + S), lo(Z) && (an(Z.key), B = "" + Z.key), so(Z) && (ye = Z.ref, uo(Z, te));
|
|
480
480
|
for (le in Z)
|
|
481
|
-
Lt.call(Z, le) && !ao.hasOwnProperty(le) && (
|
|
481
|
+
Lt.call(Z, le) && !ao.hasOwnProperty(le) && (F[le] = Z[le]);
|
|
482
482
|
if (l && l.defaultProps) {
|
|
483
483
|
var de = l.defaultProps;
|
|
484
484
|
for (le in de)
|
|
485
|
-
|
|
485
|
+
F[le] === void 0 && (F[le] = de[le]);
|
|
486
486
|
}
|
|
487
|
-
if (
|
|
487
|
+
if (B || ye) {
|
|
488
488
|
var pe = typeof l == "function" ? l.displayName || l.name || "Unknown" : l;
|
|
489
|
-
|
|
489
|
+
B && co(F, pe), ye && mo(F, pe);
|
|
490
490
|
}
|
|
491
|
-
return po(l,
|
|
491
|
+
return po(l, B, ye, te, H, ht.current, F);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
var cr = I.ReactCurrentOwner, un = I.ReactDebugCurrentFrame;
|
|
@@ -549,8 +549,8 @@ Check the top-level render call using <` + S + ">.");
|
|
|
549
549
|
if (mn[S])
|
|
550
550
|
return;
|
|
551
551
|
mn[S] = !0;
|
|
552
|
-
var
|
|
553
|
-
l && l._owner && l._owner !== cr.current && (
|
|
552
|
+
var H = "";
|
|
553
|
+
l && l._owner && l._owner !== cr.current && (H = " It was passed a child from " + P(l._owner.type) + "."), at(l), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', S, H), at(null);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
function pn(l, Z) {
|
|
@@ -559,16 +559,16 @@ Check the top-level render call using <` + S + ">.");
|
|
|
559
559
|
return;
|
|
560
560
|
if (lr(l))
|
|
561
561
|
for (var S = 0; S < l.length; S++) {
|
|
562
|
-
var
|
|
563
|
-
dr(
|
|
562
|
+
var H = l[S];
|
|
563
|
+
dr(H) && dn(H, Z);
|
|
564
564
|
}
|
|
565
565
|
else if (dr(l))
|
|
566
566
|
l._store && (l._store.validated = !0);
|
|
567
567
|
else if (l) {
|
|
568
|
-
var
|
|
569
|
-
if (typeof
|
|
570
|
-
for (var le =
|
|
571
|
-
dr(
|
|
568
|
+
var te = C(l);
|
|
569
|
+
if (typeof te == "function" && te !== l.entries)
|
|
570
|
+
for (var le = te.call(l), F; !(F = le.next()).done; )
|
|
571
|
+
dr(F.value) && dn(F.value, Z);
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
}
|
|
@@ -587,12 +587,12 @@ Check the top-level render call using <` + S + ">.");
|
|
|
587
587
|
else
|
|
588
588
|
return;
|
|
589
589
|
if (S) {
|
|
590
|
-
var
|
|
591
|
-
no(S, l.props, "prop",
|
|
590
|
+
var H = P(Z);
|
|
591
|
+
no(S, l.props, "prop", H, l);
|
|
592
592
|
} else if (Z.PropTypes !== void 0 && !mr) {
|
|
593
593
|
mr = !0;
|
|
594
|
-
var
|
|
595
|
-
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
594
|
+
var te = P(Z);
|
|
595
|
+
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", te || "Unknown");
|
|
596
596
|
}
|
|
597
597
|
typeof Z.getDefaultProps == "function" && !Z.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
598
598
|
}
|
|
@@ -600,33 +600,33 @@ Check the top-level render call using <` + S + ">.");
|
|
|
600
600
|
function yo(l) {
|
|
601
601
|
{
|
|
602
602
|
for (var Z = Object.keys(l.props), S = 0; S < Z.length; S++) {
|
|
603
|
-
var
|
|
604
|
-
if (
|
|
605
|
-
at(l), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
603
|
+
var H = Z[S];
|
|
604
|
+
if (H !== "children" && H !== "key") {
|
|
605
|
+
at(l), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", H), at(null);
|
|
606
606
|
break;
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
l.ref !== null && (at(l), k("Invalid attribute `ref` supplied to `React.Fragment`."), at(null));
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
function fn(l, Z, S,
|
|
612
|
+
function fn(l, Z, S, H, te, le) {
|
|
613
613
|
{
|
|
614
|
-
var
|
|
615
|
-
if (!
|
|
616
|
-
var
|
|
617
|
-
(l === void 0 || typeof l == "object" && l !== null && Object.keys(l).length === 0) && (
|
|
618
|
-
var
|
|
619
|
-
|
|
614
|
+
var F = ce(l);
|
|
615
|
+
if (!F) {
|
|
616
|
+
var B = "";
|
|
617
|
+
(l === void 0 || typeof l == "object" && l !== null && Object.keys(l).length === 0) && (B += " 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 ye = ho(te);
|
|
619
|
+
ye ? B += ye : B += cn();
|
|
620
620
|
var de;
|
|
621
|
-
l === null ? de = "null" : lr(l) ? de = "array" : l !== void 0 && l.$$typeof === t ? (de = "<" + (P(l.type) || "Unknown") + " />",
|
|
621
|
+
l === null ? de = "null" : lr(l) ? de = "array" : l !== void 0 && l.$$typeof === t ? (de = "<" + (P(l.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : de = typeof l, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", de, B);
|
|
622
622
|
}
|
|
623
|
-
var pe = fo(l, Z, S,
|
|
623
|
+
var pe = fo(l, Z, S, te, le);
|
|
624
624
|
if (pe == null)
|
|
625
625
|
return pe;
|
|
626
|
-
if (
|
|
626
|
+
if (F) {
|
|
627
627
|
var Ke = Z.children;
|
|
628
628
|
if (Ke !== void 0)
|
|
629
|
-
if (
|
|
629
|
+
if (H)
|
|
630
630
|
if (lr(Ke)) {
|
|
631
631
|
for (var st = 0; st < Ke.length; st++)
|
|
632
632
|
pn(Ke[st], l);
|
|
@@ -652,7 +652,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
652
652
|
process.env.NODE_ENV === "production" ? Or.exports = Mo() : Or.exports = So();
|
|
653
653
|
var m = Or.exports;
|
|
654
654
|
const Lo = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMyAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMTg5OF8zMTIyNykiPgogICAgPHBhdGggZD0iTTIwLjM0MTYgMTIuMjI2NkwxMi43OTQ5IDE5Ljc3MzIiIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlV2lkdGg9IjEuOCIKICAgICAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogICAgPHBhdGggZD0iTTIwLjM0MTYgMTkuNzczMkwxMi43OTQ5IDEyLjIyNjYiIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlV2lkdGg9IjEuOCIKICAgICAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogICAgPHBhdGgKICAgICAgZD0iTTE2LjU2ODQgMjhDOS45NDAzNiAyOCA0LjU2ODM2IDIyLjYyOCA0LjU2ODM2IDE2QzQuNTY4MzYgOS4zNzIgOS45NDAzNiA0IDE2LjU2ODQgNEMyMy4xOTY0IDQgMjguNTY4NCA5LjM3MiAyOC41Njg0IDE2QzI4LjU2ODQgMjIuNjI4IDIzLjE5NjQgMjggMTYuNTY4NCAyOFoiCiAgICAgIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlV2lkdGg9IjEuOCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogIDwvZz4KICA8ZGVmcz4KICAgIDxjbGlwUGF0aCBpZD0iY2xpcDBfMTg5OF8zMTIyNyI+CiAgICAgIDxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAuNTY4MzU5KSIgLz4KICAgIDwvY2xpcFBhdGg+CiAgPC9kZWZzPgo8L3N2Zz4=", Eo = ({ children: e }) => {
|
|
655
|
-
const [t, r] =
|
|
655
|
+
const [t, r] = V(window.innerWidth);
|
|
656
656
|
return be(() => {
|
|
657
657
|
const n = () => {
|
|
658
658
|
r(window.innerWidth);
|
|
@@ -990,29 +990,29 @@ ii.prototype = {
|
|
|
990
990
|
this.buffer.length <= t && this.buffer.push(0), e && (this.buffer[t] |= 128 >>> this.length % 8), this.length++;
|
|
991
991
|
}
|
|
992
992
|
};
|
|
993
|
-
var No = ii,
|
|
993
|
+
var No = ii, Le = {
|
|
994
994
|
glog: function(e) {
|
|
995
995
|
if (e < 1)
|
|
996
996
|
throw new Error("glog(" + e + ")");
|
|
997
|
-
return
|
|
997
|
+
return Le.LOG_TABLE[e];
|
|
998
998
|
},
|
|
999
999
|
gexp: function(e) {
|
|
1000
1000
|
for (; e < 0; )
|
|
1001
1001
|
e += 255;
|
|
1002
1002
|
for (; e >= 256; )
|
|
1003
1003
|
e -= 255;
|
|
1004
|
-
return
|
|
1004
|
+
return Le.EXP_TABLE[e];
|
|
1005
1005
|
},
|
|
1006
1006
|
EXP_TABLE: new Array(256),
|
|
1007
1007
|
LOG_TABLE: new Array(256)
|
|
1008
1008
|
};
|
|
1009
1009
|
for (var qe = 0; qe < 8; qe++)
|
|
1010
|
-
|
|
1010
|
+
Le.EXP_TABLE[qe] = 1 << qe;
|
|
1011
1011
|
for (var qe = 8; qe < 256; qe++)
|
|
1012
|
-
|
|
1012
|
+
Le.EXP_TABLE[qe] = Le.EXP_TABLE[qe - 4] ^ Le.EXP_TABLE[qe - 5] ^ Le.EXP_TABLE[qe - 6] ^ Le.EXP_TABLE[qe - 8];
|
|
1013
1013
|
for (var qe = 0; qe < 255; qe++)
|
|
1014
|
-
|
|
1015
|
-
var oi =
|
|
1014
|
+
Le.LOG_TABLE[Le.EXP_TABLE[qe]] = qe;
|
|
1015
|
+
var oi = Le, Be = oi;
|
|
1016
1016
|
function Dt(e, t) {
|
|
1017
1017
|
if (e.length == null)
|
|
1018
1018
|
throw new Error(e.length + "/" + t);
|
|
@@ -1032,20 +1032,20 @@ Dt.prototype = {
|
|
|
1032
1032
|
multiply: function(e) {
|
|
1033
1033
|
for (var t = new Array(this.getLength() + e.getLength() - 1), r = 0; r < this.getLength(); r++)
|
|
1034
1034
|
for (var n = 0; n < e.getLength(); n++)
|
|
1035
|
-
t[r + n] ^=
|
|
1035
|
+
t[r + n] ^= Be.gexp(Be.glog(this.get(r)) + Be.glog(e.get(n)));
|
|
1036
1036
|
return new Dt(t, 0);
|
|
1037
1037
|
},
|
|
1038
1038
|
mod: function(e) {
|
|
1039
1039
|
if (this.getLength() - e.getLength() < 0)
|
|
1040
1040
|
return this;
|
|
1041
|
-
for (var t =
|
|
1041
|
+
for (var t = Be.glog(this.get(0)) - Be.glog(e.get(0)), r = new Array(this.getLength()), n = 0; n < this.getLength(); n++)
|
|
1042
1042
|
r[n] = this.get(n);
|
|
1043
1043
|
for (var n = 0; n < e.getLength(); n++)
|
|
1044
|
-
r[n] ^=
|
|
1044
|
+
r[n] ^= Be.gexp(Be.glog(e.get(n)) + t);
|
|
1045
1045
|
return new Dt(r, 0).mod(e);
|
|
1046
1046
|
}
|
|
1047
1047
|
};
|
|
1048
|
-
var Ai = Dt,
|
|
1048
|
+
var Ai = Dt, We = ti, yn = Ai, Do = oi, Te = {
|
|
1049
1049
|
PATTERN000: 0,
|
|
1050
1050
|
PATTERN001: 1,
|
|
1051
1051
|
PATTERN010: 2,
|
|
@@ -1120,21 +1120,21 @@ var Ai = Dt, we = ti, yn = Ai, Do = oi, He = {
|
|
|
1120
1120
|
},
|
|
1121
1121
|
getMask: function(e, t, r) {
|
|
1122
1122
|
switch (e) {
|
|
1123
|
-
case
|
|
1123
|
+
case Te.PATTERN000:
|
|
1124
1124
|
return (t + r) % 2 == 0;
|
|
1125
|
-
case
|
|
1125
|
+
case Te.PATTERN001:
|
|
1126
1126
|
return t % 2 == 0;
|
|
1127
|
-
case
|
|
1127
|
+
case Te.PATTERN010:
|
|
1128
1128
|
return r % 3 == 0;
|
|
1129
|
-
case
|
|
1129
|
+
case Te.PATTERN011:
|
|
1130
1130
|
return (t + r) % 3 == 0;
|
|
1131
|
-
case
|
|
1131
|
+
case Te.PATTERN100:
|
|
1132
1132
|
return (Math.floor(t / 2) + Math.floor(r / 3)) % 2 == 0;
|
|
1133
|
-
case
|
|
1133
|
+
case Te.PATTERN101:
|
|
1134
1134
|
return t * r % 2 + t * r % 3 == 0;
|
|
1135
|
-
case
|
|
1135
|
+
case Te.PATTERN110:
|
|
1136
1136
|
return (t * r % 2 + t * r % 3) % 2 == 0;
|
|
1137
|
-
case
|
|
1137
|
+
case Te.PATTERN111:
|
|
1138
1138
|
return (t * r % 3 + (t + r) % 2) % 2 == 0;
|
|
1139
1139
|
default:
|
|
1140
1140
|
throw new Error("bad maskPattern:" + e);
|
|
@@ -1148,39 +1148,39 @@ var Ai = Dt, we = ti, yn = Ai, Do = oi, He = {
|
|
|
1148
1148
|
getLengthInBits: function(e, t) {
|
|
1149
1149
|
if (1 <= t && t < 10)
|
|
1150
1150
|
switch (e) {
|
|
1151
|
-
case
|
|
1151
|
+
case We.MODE_NUMBER:
|
|
1152
1152
|
return 10;
|
|
1153
|
-
case
|
|
1153
|
+
case We.MODE_ALPHA_NUM:
|
|
1154
1154
|
return 9;
|
|
1155
|
-
case
|
|
1155
|
+
case We.MODE_8BIT_BYTE:
|
|
1156
1156
|
return 8;
|
|
1157
|
-
case
|
|
1157
|
+
case We.MODE_KANJI:
|
|
1158
1158
|
return 8;
|
|
1159
1159
|
default:
|
|
1160
1160
|
throw new Error("mode:" + e);
|
|
1161
1161
|
}
|
|
1162
1162
|
else if (t < 27)
|
|
1163
1163
|
switch (e) {
|
|
1164
|
-
case
|
|
1164
|
+
case We.MODE_NUMBER:
|
|
1165
1165
|
return 12;
|
|
1166
|
-
case
|
|
1166
|
+
case We.MODE_ALPHA_NUM:
|
|
1167
1167
|
return 11;
|
|
1168
|
-
case
|
|
1168
|
+
case We.MODE_8BIT_BYTE:
|
|
1169
1169
|
return 16;
|
|
1170
|
-
case
|
|
1170
|
+
case We.MODE_KANJI:
|
|
1171
1171
|
return 10;
|
|
1172
1172
|
default:
|
|
1173
1173
|
throw new Error("mode:" + e);
|
|
1174
1174
|
}
|
|
1175
1175
|
else if (t < 41)
|
|
1176
1176
|
switch (e) {
|
|
1177
|
-
case
|
|
1177
|
+
case We.MODE_NUMBER:
|
|
1178
1178
|
return 14;
|
|
1179
|
-
case
|
|
1179
|
+
case We.MODE_ALPHA_NUM:
|
|
1180
1180
|
return 13;
|
|
1181
|
-
case
|
|
1181
|
+
case We.MODE_8BIT_BYTE:
|
|
1182
1182
|
return 16;
|
|
1183
|
-
case
|
|
1183
|
+
case We.MODE_KANJI:
|
|
1184
1184
|
return 12;
|
|
1185
1185
|
default:
|
|
1186
1186
|
throw new Error("mode:" + e);
|
|
@@ -1214,24 +1214,24 @@ var Ai = Dt, we = ti, yn = Ai, Do = oi, He = {
|
|
|
1214
1214
|
var d = Math.abs(100 * u / t / t - 50) / 5;
|
|
1215
1215
|
return r += d * 10, r;
|
|
1216
1216
|
}
|
|
1217
|
-
}, Go = he, Ro = jo, ai = Jo, si = No,
|
|
1217
|
+
}, Go = he, Ro = jo, ai = Jo, si = No, Pe = Go, To = Ai;
|
|
1218
1218
|
function Je(e, t) {
|
|
1219
1219
|
this.typeNumber = e, this.errorCorrectLevel = t, this.modules = null, this.moduleCount = 0, this.dataCache = null, this.dataList = [];
|
|
1220
1220
|
}
|
|
1221
|
-
var
|
|
1222
|
-
|
|
1221
|
+
var Ze = Je.prototype;
|
|
1222
|
+
Ze.addData = function(e) {
|
|
1223
1223
|
var t = new Ro(e);
|
|
1224
1224
|
this.dataList.push(t), this.dataCache = null;
|
|
1225
1225
|
};
|
|
1226
|
-
|
|
1226
|
+
Ze.isDark = function(e, t) {
|
|
1227
1227
|
if (e < 0 || this.moduleCount <= e || t < 0 || this.moduleCount <= t)
|
|
1228
1228
|
throw new Error(e + "," + t);
|
|
1229
1229
|
return this.modules[e][t];
|
|
1230
1230
|
};
|
|
1231
|
-
|
|
1231
|
+
Ze.getModuleCount = function() {
|
|
1232
1232
|
return this.moduleCount;
|
|
1233
1233
|
};
|
|
1234
|
-
|
|
1234
|
+
Ze.make = function() {
|
|
1235
1235
|
if (this.typeNumber < 1) {
|
|
1236
1236
|
var e = 1;
|
|
1237
1237
|
for (e = 1; e < 40; e++) {
|
|
@@ -1239,7 +1239,7 @@ Ie.make = function() {
|
|
|
1239
1239
|
n += t[i].dataCount;
|
|
1240
1240
|
for (var i = 0; i < this.dataList.length; i++) {
|
|
1241
1241
|
var o = this.dataList[i];
|
|
1242
|
-
r.put(o.mode, 4), r.put(o.getLength(),
|
|
1242
|
+
r.put(o.mode, 4), r.put(o.getLength(), Pe.getLengthInBits(o.mode, e)), o.write(r);
|
|
1243
1243
|
}
|
|
1244
1244
|
if (r.getLengthInBits() <= n * 8)
|
|
1245
1245
|
break;
|
|
@@ -1248,7 +1248,7 @@ Ie.make = function() {
|
|
|
1248
1248
|
}
|
|
1249
1249
|
this.makeImpl(!1, this.getBestMaskPattern());
|
|
1250
1250
|
};
|
|
1251
|
-
|
|
1251
|
+
Ze.makeImpl = function(e, t) {
|
|
1252
1252
|
this.moduleCount = this.typeNumber * 4 + 17, this.modules = new Array(this.moduleCount);
|
|
1253
1253
|
for (var r = 0; r < this.moduleCount; r++) {
|
|
1254
1254
|
this.modules[r] = new Array(this.moduleCount);
|
|
@@ -1257,21 +1257,21 @@ Ie.makeImpl = function(e, t) {
|
|
|
1257
1257
|
}
|
|
1258
1258
|
this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern(this.moduleCount - 7, 0), this.setupPositionProbePattern(0, this.moduleCount - 7), this.setupPositionAdjustPattern(), this.setupTimingPattern(), this.setupTypeInfo(e, t), this.typeNumber >= 7 && this.setupTypeNumber(e), this.dataCache == null && (this.dataCache = Je.createData(this.typeNumber, this.errorCorrectLevel, this.dataList)), this.mapData(this.dataCache, t);
|
|
1259
1259
|
};
|
|
1260
|
-
|
|
1260
|
+
Ze.setupPositionProbePattern = function(e, t) {
|
|
1261
1261
|
for (var r = -1; r <= 7; r++)
|
|
1262
1262
|
if (!(e + r <= -1 || this.moduleCount <= e + r))
|
|
1263
1263
|
for (var n = -1; n <= 7; n++)
|
|
1264
1264
|
t + n <= -1 || this.moduleCount <= t + n || (0 <= r && r <= 6 && (n == 0 || n == 6) || 0 <= n && n <= 6 && (r == 0 || r == 6) || 2 <= r && r <= 4 && 2 <= n && n <= 4 ? this.modules[e + r][t + n] = !0 : this.modules[e + r][t + n] = !1);
|
|
1265
1265
|
};
|
|
1266
|
-
|
|
1266
|
+
Ze.getBestMaskPattern = function() {
|
|
1267
1267
|
for (var e = 0, t = 0, r = 0; r < 8; r++) {
|
|
1268
1268
|
this.makeImpl(!0, r);
|
|
1269
|
-
var n =
|
|
1269
|
+
var n = Pe.getLostPoint(this);
|
|
1270
1270
|
(r == 0 || e > n) && (e = n, t = r);
|
|
1271
1271
|
}
|
|
1272
1272
|
return t;
|
|
1273
1273
|
};
|
|
1274
|
-
|
|
1274
|
+
Ze.createMovieClip = function(e, t, r) {
|
|
1275
1275
|
var n = e.createEmptyMovieClip(t, r), i = 1;
|
|
1276
1276
|
this.make();
|
|
1277
1277
|
for (var o = 0; o < this.modules.length; o++)
|
|
@@ -1281,14 +1281,14 @@ Ie.createMovieClip = function(e, t, r) {
|
|
|
1281
1281
|
}
|
|
1282
1282
|
return n;
|
|
1283
1283
|
};
|
|
1284
|
-
|
|
1284
|
+
Ze.setupTimingPattern = function() {
|
|
1285
1285
|
for (var e = 8; e < this.moduleCount - 8; e++)
|
|
1286
1286
|
this.modules[e][6] == null && (this.modules[e][6] = e % 2 == 0);
|
|
1287
1287
|
for (var t = 8; t < this.moduleCount - 8; t++)
|
|
1288
1288
|
this.modules[6][t] == null && (this.modules[6][t] = t % 2 == 0);
|
|
1289
1289
|
};
|
|
1290
|
-
|
|
1291
|
-
for (var e =
|
|
1290
|
+
Ze.setupPositionAdjustPattern = function() {
|
|
1291
|
+
for (var e = Pe.getPatternPosition(this.typeNumber), t = 0; t < e.length; t++)
|
|
1292
1292
|
for (var r = 0; r < e.length; r++) {
|
|
1293
1293
|
var n = e[t], i = e[r];
|
|
1294
1294
|
if (this.modules[n][i] == null)
|
|
@@ -1297,8 +1297,8 @@ Ie.setupPositionAdjustPattern = function() {
|
|
|
1297
1297
|
o == -2 || o == 2 || A == -2 || A == 2 || o == 0 && A == 0 ? this.modules[n + o][i + A] = !0 : this.modules[n + o][i + A] = !1;
|
|
1298
1298
|
}
|
|
1299
1299
|
};
|
|
1300
|
-
|
|
1301
|
-
for (var t =
|
|
1300
|
+
Ze.setupTypeNumber = function(e) {
|
|
1301
|
+
for (var t = Pe.getBCHTypeNumber(this.typeNumber), r = 0; r < 18; r++) {
|
|
1302
1302
|
var n = !e && (t >> r & 1) == 1;
|
|
1303
1303
|
this.modules[Math.floor(r / 3)][r % 3 + this.moduleCount - 8 - 3] = n;
|
|
1304
1304
|
}
|
|
@@ -1307,8 +1307,8 @@ Ie.setupTypeNumber = function(e) {
|
|
|
1307
1307
|
this.modules[r % 3 + this.moduleCount - 8 - 3][Math.floor(r / 3)] = n;
|
|
1308
1308
|
}
|
|
1309
1309
|
};
|
|
1310
|
-
|
|
1311
|
-
for (var r = this.errorCorrectLevel << 3 | t, n =
|
|
1310
|
+
Ze.setupTypeInfo = function(e, t) {
|
|
1311
|
+
for (var r = this.errorCorrectLevel << 3 | t, n = Pe.getBCHTypeInfo(r), i = 0; i < 15; i++) {
|
|
1312
1312
|
var o = !e && (n >> i & 1) == 1;
|
|
1313
1313
|
i < 6 ? this.modules[i][8] = o : i < 8 ? this.modules[i + 1][8] = o : this.modules[this.moduleCount - 15 + i][8] = o;
|
|
1314
1314
|
}
|
|
@@ -1318,14 +1318,14 @@ Ie.setupTypeInfo = function(e, t) {
|
|
|
1318
1318
|
}
|
|
1319
1319
|
this.modules[this.moduleCount - 8][8] = !e;
|
|
1320
1320
|
};
|
|
1321
|
-
|
|
1321
|
+
Ze.mapData = function(e, t) {
|
|
1322
1322
|
for (var r = -1, n = this.moduleCount - 1, i = 7, o = 0, A = this.moduleCount - 1; A > 0; A -= 2)
|
|
1323
1323
|
for (A == 6 && A--; ; ) {
|
|
1324
1324
|
for (var a = 0; a < 2; a++)
|
|
1325
1325
|
if (this.modules[n][A - a] == null) {
|
|
1326
1326
|
var c = !1;
|
|
1327
1327
|
o < e.length && (c = (e[o] >>> i & 1) == 1);
|
|
1328
|
-
var s =
|
|
1328
|
+
var s = Pe.getMask(t, n, A - a);
|
|
1329
1329
|
s && (c = !c), this.modules[n][A - a] = c, i--, i == -1 && (o++, i = 7);
|
|
1330
1330
|
}
|
|
1331
1331
|
if (n += r, n < 0 || this.moduleCount <= n) {
|
|
@@ -1339,7 +1339,7 @@ Je.PAD1 = 17;
|
|
|
1339
1339
|
Je.createData = function(e, t, r) {
|
|
1340
1340
|
for (var n = ai.getRSBlocks(e, t), i = new si(), o = 0; o < r.length; o++) {
|
|
1341
1341
|
var A = r[o];
|
|
1342
|
-
i.put(A.mode, 4), i.put(A.getLength(),
|
|
1342
|
+
i.put(A.mode, 4), i.put(A.getLength(), Pe.getLengthInBits(A.mode, e)), A.write(i);
|
|
1343
1343
|
}
|
|
1344
1344
|
for (var a = 0, o = 0; o < n.length; o++)
|
|
1345
1345
|
a += n[o].dataCount;
|
|
@@ -1358,11 +1358,11 @@ Je.createBytes = function(e, t) {
|
|
|
1358
1358
|
for (var u = 0; u < o[a].length; u++)
|
|
1359
1359
|
o[a][u] = 255 & e.buffer[u + r];
|
|
1360
1360
|
r += c;
|
|
1361
|
-
var d =
|
|
1361
|
+
var d = Pe.getErrorCorrectPolynomial(s), h = new To(o[a], d.getLength() - 1), q = h.mod(d);
|
|
1362
1362
|
A[a] = new Array(d.getLength() - 1);
|
|
1363
1363
|
for (var u = 0; u < A[a].length; u++) {
|
|
1364
|
-
var
|
|
1365
|
-
A[a][u] =
|
|
1364
|
+
var p = u + q.getLength() - A[a].length;
|
|
1365
|
+
A[a][u] = p >= 0 ? q.get(p) : 0;
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
1368
|
for (var y = 0, u = 0; u < t.length; u++)
|
|
@@ -1375,7 +1375,7 @@ Je.createBytes = function(e, t) {
|
|
|
1375
1375
|
u < A[a].length && (C[I++] = A[a][u]);
|
|
1376
1376
|
return C;
|
|
1377
1377
|
};
|
|
1378
|
-
var Ho = Je, Mr = { exports: {} }, kt = { exports: {} },
|
|
1378
|
+
var Ho = Je, Mr = { exports: {} }, kt = { exports: {} }, ie = {};
|
|
1379
1379
|
/** @license React v16.13.1
|
|
1380
1380
|
* react-is.production.min.js
|
|
1381
1381
|
*
|
|
@@ -1387,13 +1387,13 @@ var Ho = Je, Mr = { exports: {} }, kt = { exports: {} }, ne = {};
|
|
|
1387
1387
|
var vn;
|
|
1388
1388
|
function Xo() {
|
|
1389
1389
|
if (vn)
|
|
1390
|
-
return
|
|
1390
|
+
return ie;
|
|
1391
1391
|
vn = 1;
|
|
1392
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, A = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, s = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, q = e ? Symbol.for("react.memo") : 60115,
|
|
1393
|
-
function
|
|
1392
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, A = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, s = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, q = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, I = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
|
|
1393
|
+
function N(b) {
|
|
1394
1394
|
if (typeof b == "object" && b !== null) {
|
|
1395
|
-
var
|
|
1396
|
-
switch (
|
|
1395
|
+
var U = b.$$typeof;
|
|
1396
|
+
switch (U) {
|
|
1397
1397
|
case t:
|
|
1398
1398
|
switch (b = b.type, b) {
|
|
1399
1399
|
case c:
|
|
@@ -1407,51 +1407,51 @@ function Xo() {
|
|
|
1407
1407
|
switch (b = b && b.$$typeof, b) {
|
|
1408
1408
|
case a:
|
|
1409
1409
|
case u:
|
|
1410
|
-
case
|
|
1410
|
+
case p:
|
|
1411
1411
|
case q:
|
|
1412
1412
|
case A:
|
|
1413
1413
|
return b;
|
|
1414
1414
|
default:
|
|
1415
|
-
return
|
|
1415
|
+
return U;
|
|
1416
1416
|
}
|
|
1417
1417
|
}
|
|
1418
1418
|
case r:
|
|
1419
|
-
return
|
|
1419
|
+
return U;
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
1422
|
}
|
|
1423
|
-
function
|
|
1424
|
-
return
|
|
1423
|
+
function E(b) {
|
|
1424
|
+
return N(b) === s;
|
|
1425
1425
|
}
|
|
1426
|
-
return
|
|
1427
|
-
return
|
|
1428
|
-
},
|
|
1429
|
-
return
|
|
1430
|
-
},
|
|
1431
|
-
return
|
|
1432
|
-
},
|
|
1426
|
+
return ie.AsyncMode = c, ie.ConcurrentMode = s, ie.ContextConsumer = a, ie.ContextProvider = A, ie.Element = t, ie.ForwardRef = u, ie.Fragment = n, ie.Lazy = p, ie.Memo = q, ie.Portal = r, ie.Profiler = o, ie.StrictMode = i, ie.Suspense = d, ie.isAsyncMode = function(b) {
|
|
1427
|
+
return E(b) || N(b) === c;
|
|
1428
|
+
}, ie.isConcurrentMode = E, ie.isContextConsumer = function(b) {
|
|
1429
|
+
return N(b) === a;
|
|
1430
|
+
}, ie.isContextProvider = function(b) {
|
|
1431
|
+
return N(b) === A;
|
|
1432
|
+
}, ie.isElement = function(b) {
|
|
1433
1433
|
return typeof b == "object" && b !== null && b.$$typeof === t;
|
|
1434
|
-
},
|
|
1435
|
-
return
|
|
1436
|
-
},
|
|
1437
|
-
return
|
|
1438
|
-
},
|
|
1439
|
-
return
|
|
1440
|
-
},
|
|
1441
|
-
return
|
|
1442
|
-
},
|
|
1443
|
-
return
|
|
1444
|
-
},
|
|
1445
|
-
return
|
|
1446
|
-
},
|
|
1447
|
-
return
|
|
1448
|
-
},
|
|
1449
|
-
return
|
|
1450
|
-
},
|
|
1451
|
-
return typeof b == "string" || typeof b == "function" || b === n || b === s || b === o || b === i || b === d || b === h || typeof b == "object" && b !== null && (b.$$typeof ===
|
|
1452
|
-
},
|
|
1453
|
-
}
|
|
1454
|
-
var
|
|
1434
|
+
}, ie.isForwardRef = function(b) {
|
|
1435
|
+
return N(b) === u;
|
|
1436
|
+
}, ie.isFragment = function(b) {
|
|
1437
|
+
return N(b) === n;
|
|
1438
|
+
}, ie.isLazy = function(b) {
|
|
1439
|
+
return N(b) === p;
|
|
1440
|
+
}, ie.isMemo = function(b) {
|
|
1441
|
+
return N(b) === q;
|
|
1442
|
+
}, ie.isPortal = function(b) {
|
|
1443
|
+
return N(b) === r;
|
|
1444
|
+
}, ie.isProfiler = function(b) {
|
|
1445
|
+
return N(b) === o;
|
|
1446
|
+
}, ie.isStrictMode = function(b) {
|
|
1447
|
+
return N(b) === i;
|
|
1448
|
+
}, ie.isSuspense = function(b) {
|
|
1449
|
+
return N(b) === d;
|
|
1450
|
+
}, ie.isValidElementType = function(b) {
|
|
1451
|
+
return typeof b == "string" || typeof b == "function" || b === n || b === s || b === o || b === i || b === d || b === h || typeof b == "object" && b !== null && (b.$$typeof === p || b.$$typeof === q || b.$$typeof === A || b.$$typeof === a || b.$$typeof === u || b.$$typeof === C || b.$$typeof === I || b.$$typeof === k || b.$$typeof === y);
|
|
1452
|
+
}, ie.typeOf = N, ie;
|
|
1453
|
+
}
|
|
1454
|
+
var oe = {};
|
|
1455
1455
|
/** @license React v16.13.1
|
|
1456
1456
|
* react-is.development.js
|
|
1457
1457
|
*
|
|
@@ -1463,85 +1463,85 @@ var ie = {};
|
|
|
1463
1463
|
var bn;
|
|
1464
1464
|
function Qo() {
|
|
1465
1465
|
return bn || (bn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1466
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, A = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, s = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, q = e ? Symbol.for("react.memo") : 60115,
|
|
1467
|
-
function
|
|
1466
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, A = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, s = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, q = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, I = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
|
|
1467
|
+
function N(M) {
|
|
1468
1468
|
return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1469
|
-
M === n || M === s || M === o || M === i || M === d || M === h || typeof M == "object" && M !== null && (M.$$typeof ===
|
|
1469
|
+
M === n || M === s || M === o || M === i || M === d || M === h || typeof M == "object" && M !== null && (M.$$typeof === p || M.$$typeof === q || M.$$typeof === A || M.$$typeof === a || M.$$typeof === u || M.$$typeof === C || M.$$typeof === I || M.$$typeof === k || M.$$typeof === y);
|
|
1470
1470
|
}
|
|
1471
|
-
function
|
|
1471
|
+
function E(M) {
|
|
1472
1472
|
if (typeof M == "object" && M !== null) {
|
|
1473
|
-
var
|
|
1474
|
-
switch (
|
|
1473
|
+
var we = M.$$typeof;
|
|
1474
|
+
switch (we) {
|
|
1475
1475
|
case t:
|
|
1476
|
-
var
|
|
1477
|
-
switch (
|
|
1476
|
+
var At = M.type;
|
|
1477
|
+
switch (At) {
|
|
1478
1478
|
case c:
|
|
1479
1479
|
case s:
|
|
1480
1480
|
case n:
|
|
1481
1481
|
case o:
|
|
1482
1482
|
case i:
|
|
1483
1483
|
case d:
|
|
1484
|
-
return
|
|
1484
|
+
return At;
|
|
1485
1485
|
default:
|
|
1486
|
-
var Ve =
|
|
1486
|
+
var Ve = At && At.$$typeof;
|
|
1487
1487
|
switch (Ve) {
|
|
1488
1488
|
case a:
|
|
1489
1489
|
case u:
|
|
1490
|
-
case
|
|
1490
|
+
case p:
|
|
1491
1491
|
case q:
|
|
1492
1492
|
case A:
|
|
1493
1493
|
return Ve;
|
|
1494
1494
|
default:
|
|
1495
|
-
return
|
|
1495
|
+
return we;
|
|
1496
1496
|
}
|
|
1497
1497
|
}
|
|
1498
1498
|
case r:
|
|
1499
|
-
return
|
|
1499
|
+
return we;
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
1503
|
-
var b = c,
|
|
1503
|
+
var b = c, U = s, se = a, $ = A, ne = t, ce = u, ae = n, ee = p, P = q, x = r, w = o, L = i, f = d, W = !1;
|
|
1504
1504
|
function J(M) {
|
|
1505
|
-
return W || (W = !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.")), g(M) ||
|
|
1505
|
+
return W || (W = !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.")), g(M) || E(M) === c;
|
|
1506
1506
|
}
|
|
1507
1507
|
function g(M) {
|
|
1508
|
-
return
|
|
1508
|
+
return E(M) === s;
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1511
|
-
return
|
|
1510
|
+
function K(M) {
|
|
1511
|
+
return E(M) === a;
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1514
|
-
return
|
|
1513
|
+
function O(M) {
|
|
1514
|
+
return E(M) === A;
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1516
|
+
function D(M) {
|
|
1517
1517
|
return typeof M == "object" && M !== null && M.$$typeof === t;
|
|
1518
1518
|
}
|
|
1519
|
-
function
|
|
1520
|
-
return
|
|
1519
|
+
function G(M) {
|
|
1520
|
+
return E(M) === u;
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1523
|
-
return
|
|
1522
|
+
function R(M) {
|
|
1523
|
+
return E(M) === n;
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1526
|
-
return
|
|
1525
|
+
function j(M) {
|
|
1526
|
+
return E(M) === p;
|
|
1527
1527
|
}
|
|
1528
1528
|
function Y(M) {
|
|
1529
|
-
return
|
|
1529
|
+
return E(M) === q;
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1532
|
-
return
|
|
1531
|
+
function z(M) {
|
|
1532
|
+
return E(M) === r;
|
|
1533
1533
|
}
|
|
1534
|
-
function
|
|
1535
|
-
return
|
|
1534
|
+
function Q(M) {
|
|
1535
|
+
return E(M) === o;
|
|
1536
1536
|
}
|
|
1537
|
-
function
|
|
1538
|
-
return
|
|
1537
|
+
function T(M) {
|
|
1538
|
+
return E(M) === i;
|
|
1539
1539
|
}
|
|
1540
|
-
function
|
|
1541
|
-
return
|
|
1540
|
+
function me(M) {
|
|
1541
|
+
return E(M) === d;
|
|
1542
1542
|
}
|
|
1543
|
-
|
|
1544
|
-
}()),
|
|
1543
|
+
oe.AsyncMode = b, oe.ConcurrentMode = U, oe.ContextConsumer = se, oe.ContextProvider = $, oe.Element = ne, oe.ForwardRef = ce, oe.Fragment = ae, oe.Lazy = ee, oe.Memo = P, oe.Portal = x, oe.Profiler = w, oe.StrictMode = L, oe.Suspense = f, oe.isAsyncMode = J, oe.isConcurrentMode = g, oe.isContextConsumer = K, oe.isContextProvider = O, oe.isElement = D, oe.isForwardRef = G, oe.isFragment = R, oe.isLazy = j, oe.isMemo = Y, oe.isPortal = z, oe.isProfiler = Q, oe.isStrictMode = T, oe.isSuspense = me, oe.isValidElementType = N, oe.typeOf = E;
|
|
1544
|
+
}()), oe;
|
|
1545
1545
|
}
|
|
1546
1546
|
var Cn;
|
|
1547
1547
|
function li() {
|
|
@@ -1607,15 +1607,15 @@ function Tr() {
|
|
|
1607
1607
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
1608
1608
|
return fr = e, fr;
|
|
1609
1609
|
}
|
|
1610
|
-
var hr,
|
|
1610
|
+
var hr, wn;
|
|
1611
1611
|
function ui() {
|
|
1612
|
-
return
|
|
1612
|
+
return wn || (wn = 1, hr = Function.call.bind(Object.prototype.hasOwnProperty)), hr;
|
|
1613
1613
|
}
|
|
1614
|
-
var qr,
|
|
1615
|
-
function
|
|
1616
|
-
if (
|
|
1614
|
+
var qr, Kn;
|
|
1615
|
+
function Vo() {
|
|
1616
|
+
if (Kn)
|
|
1617
1617
|
return qr;
|
|
1618
|
-
|
|
1618
|
+
Kn = 1;
|
|
1619
1619
|
var e = function() {
|
|
1620
1620
|
};
|
|
1621
1621
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1642,8 +1642,8 @@ function Bo() {
|
|
|
1642
1642
|
throw h.name = "Invariant Violation", h;
|
|
1643
1643
|
}
|
|
1644
1644
|
d = o[u](A, u, c, a, null, t);
|
|
1645
|
-
} catch (
|
|
1646
|
-
d =
|
|
1645
|
+
} catch (p) {
|
|
1646
|
+
d = p;
|
|
1647
1647
|
}
|
|
1648
1648
|
if (d && !(d instanceof Error) && e(
|
|
1649
1649
|
(c || "React class") + ": type specification of " + a + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
@@ -1662,11 +1662,11 @@ function Bo() {
|
|
|
1662
1662
|
}, qr = i, qr;
|
|
1663
1663
|
}
|
|
1664
1664
|
var gr, Wn;
|
|
1665
|
-
function
|
|
1665
|
+
function Bo() {
|
|
1666
1666
|
if (Wn)
|
|
1667
1667
|
return gr;
|
|
1668
1668
|
Wn = 1;
|
|
1669
|
-
var e = li(), t = Po(), r = Tr(), n = ui(), i =
|
|
1669
|
+
var e = li(), t = Po(), r = Tr(), n = ui(), i = Vo(), o = function() {
|
|
1670
1670
|
};
|
|
1671
1671
|
process.env.NODE_ENV !== "production" && (o = function(a) {
|
|
1672
1672
|
var c = "Warning: " + a;
|
|
@@ -1682,9 +1682,9 @@ function Vo() {
|
|
|
1682
1682
|
return gr = function(a, c) {
|
|
1683
1683
|
var s = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
1684
1684
|
function d(g) {
|
|
1685
|
-
var
|
|
1686
|
-
if (typeof
|
|
1687
|
-
return
|
|
1685
|
+
var K = g && (s && g[s] || g[u]);
|
|
1686
|
+
if (typeof K == "function")
|
|
1687
|
+
return K;
|
|
1688
1688
|
}
|
|
1689
1689
|
var h = "<<anonymous>>", q = {
|
|
1690
1690
|
array: I("array"),
|
|
@@ -1696,222 +1696,222 @@ function Vo() {
|
|
|
1696
1696
|
string: I("string"),
|
|
1697
1697
|
symbol: I("symbol"),
|
|
1698
1698
|
any: k(),
|
|
1699
|
-
arrayOf:
|
|
1700
|
-
element:
|
|
1699
|
+
arrayOf: N,
|
|
1700
|
+
element: E(),
|
|
1701
1701
|
elementType: b(),
|
|
1702
|
-
instanceOf:
|
|
1703
|
-
node:
|
|
1704
|
-
objectOf:
|
|
1702
|
+
instanceOf: U,
|
|
1703
|
+
node: ce(),
|
|
1704
|
+
objectOf: $,
|
|
1705
1705
|
oneOf: se,
|
|
1706
|
-
oneOfType:
|
|
1707
|
-
shape:
|
|
1706
|
+
oneOfType: ne,
|
|
1707
|
+
shape: ee,
|
|
1708
1708
|
exact: P
|
|
1709
1709
|
};
|
|
1710
|
-
function
|
|
1711
|
-
return g ===
|
|
1710
|
+
function p(g, K) {
|
|
1711
|
+
return g === K ? g !== 0 || 1 / g === 1 / K : g !== g && K !== K;
|
|
1712
1712
|
}
|
|
1713
|
-
function y(g,
|
|
1714
|
-
this.message = g, this.data =
|
|
1713
|
+
function y(g, K) {
|
|
1714
|
+
this.message = g, this.data = K && typeof K == "object" ? K : {}, this.stack = "";
|
|
1715
1715
|
}
|
|
1716
1716
|
y.prototype = Error.prototype;
|
|
1717
1717
|
function C(g) {
|
|
1718
1718
|
if (process.env.NODE_ENV !== "production")
|
|
1719
|
-
var
|
|
1720
|
-
function
|
|
1721
|
-
if (
|
|
1719
|
+
var K = {}, O = 0;
|
|
1720
|
+
function D(R, j, Y, z, Q, T, me) {
|
|
1721
|
+
if (z = z || h, T = T || Y, me !== r) {
|
|
1722
1722
|
if (c) {
|
|
1723
1723
|
var M = 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
1726
|
throw M.name = "Invariant Violation", M;
|
|
1727
1727
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1728
|
-
var
|
|
1729
|
-
!
|
|
1730
|
-
|
|
1731
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1732
|
-
),
|
|
1728
|
+
var we = z + ":" + Y;
|
|
1729
|
+
!K[we] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1730
|
+
O < 3 && (o(
|
|
1731
|
+
"You are manually calling a React.PropTypes validation function for the `" + T + "` prop on `" + z + "`. 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
|
+
), K[we] = !0, O++);
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
1735
|
-
return
|
|
1735
|
+
return j[Y] == null ? R ? j[Y] === null ? new y("The " + Q + " `" + T + "` is marked as required " + ("in `" + z + "`, but its value is `null`.")) : new y("The " + Q + " `" + T + "` is marked as required in " + ("`" + z + "`, but its value is `undefined`.")) : null : g(j, Y, z, Q, T);
|
|
1736
1736
|
}
|
|
1737
|
-
var
|
|
1738
|
-
return
|
|
1737
|
+
var G = D.bind(null, !1);
|
|
1738
|
+
return G.isRequired = D.bind(null, !0), G;
|
|
1739
1739
|
}
|
|
1740
1740
|
function I(g) {
|
|
1741
|
-
function
|
|
1742
|
-
var
|
|
1743
|
-
if (
|
|
1744
|
-
var
|
|
1741
|
+
function K(O, D, G, R, j, Y) {
|
|
1742
|
+
var z = O[D], Q = L(z);
|
|
1743
|
+
if (Q !== g) {
|
|
1744
|
+
var T = f(z);
|
|
1745
1745
|
return new y(
|
|
1746
|
-
"Invalid " +
|
|
1746
|
+
"Invalid " + R + " `" + j + "` of type " + ("`" + T + "` supplied to `" + G + "`, expected ") + ("`" + g + "`."),
|
|
1747
1747
|
{ expectedType: g }
|
|
1748
1748
|
);
|
|
1749
1749
|
}
|
|
1750
1750
|
return null;
|
|
1751
1751
|
}
|
|
1752
|
-
return C(
|
|
1752
|
+
return C(K);
|
|
1753
1753
|
}
|
|
1754
1754
|
function k() {
|
|
1755
1755
|
return C(A);
|
|
1756
1756
|
}
|
|
1757
|
-
function
|
|
1758
|
-
function
|
|
1757
|
+
function N(g) {
|
|
1758
|
+
function K(O, D, G, R, j) {
|
|
1759
1759
|
if (typeof g != "function")
|
|
1760
|
-
return new y("Property `" +
|
|
1761
|
-
var Y =
|
|
1760
|
+
return new y("Property `" + j + "` of component `" + G + "` has invalid PropType notation inside arrayOf.");
|
|
1761
|
+
var Y = O[D];
|
|
1762
1762
|
if (!Array.isArray(Y)) {
|
|
1763
|
-
var
|
|
1764
|
-
return new y("Invalid " +
|
|
1763
|
+
var z = L(Y);
|
|
1764
|
+
return new y("Invalid " + R + " `" + j + "` of type " + ("`" + z + "` supplied to `" + G + "`, expected an array."));
|
|
1765
1765
|
}
|
|
1766
|
-
for (var
|
|
1767
|
-
var
|
|
1768
|
-
if (
|
|
1769
|
-
return
|
|
1766
|
+
for (var Q = 0; Q < Y.length; Q++) {
|
|
1767
|
+
var T = g(Y, Q, G, R, j + "[" + Q + "]", r);
|
|
1768
|
+
if (T instanceof Error)
|
|
1769
|
+
return T;
|
|
1770
1770
|
}
|
|
1771
1771
|
return null;
|
|
1772
1772
|
}
|
|
1773
|
-
return C(
|
|
1774
|
-
}
|
|
1775
|
-
function
|
|
1776
|
-
function g(
|
|
1777
|
-
var
|
|
1778
|
-
if (!a(
|
|
1779
|
-
var Y =
|
|
1780
|
-
return new y("Invalid " +
|
|
1773
|
+
return C(K);
|
|
1774
|
+
}
|
|
1775
|
+
function E() {
|
|
1776
|
+
function g(K, O, D, G, R) {
|
|
1777
|
+
var j = K[O];
|
|
1778
|
+
if (!a(j)) {
|
|
1779
|
+
var Y = L(j);
|
|
1780
|
+
return new y("Invalid " + G + " `" + R + "` of type " + ("`" + Y + "` supplied to `" + D + "`, expected a single ReactElement."));
|
|
1781
1781
|
}
|
|
1782
1782
|
return null;
|
|
1783
1783
|
}
|
|
1784
1784
|
return C(g);
|
|
1785
1785
|
}
|
|
1786
1786
|
function b() {
|
|
1787
|
-
function g(
|
|
1788
|
-
var
|
|
1789
|
-
if (!e.isValidElementType(
|
|
1790
|
-
var Y =
|
|
1791
|
-
return new y("Invalid " +
|
|
1787
|
+
function g(K, O, D, G, R) {
|
|
1788
|
+
var j = K[O];
|
|
1789
|
+
if (!e.isValidElementType(j)) {
|
|
1790
|
+
var Y = L(j);
|
|
1791
|
+
return new y("Invalid " + G + " `" + R + "` of type " + ("`" + Y + "` supplied to `" + D + "`, expected a single ReactElement type."));
|
|
1792
1792
|
}
|
|
1793
1793
|
return null;
|
|
1794
1794
|
}
|
|
1795
1795
|
return C(g);
|
|
1796
1796
|
}
|
|
1797
|
-
function
|
|
1798
|
-
function
|
|
1799
|
-
if (!(
|
|
1800
|
-
var Y = g.name || h,
|
|
1801
|
-
return new y("Invalid " +
|
|
1797
|
+
function U(g) {
|
|
1798
|
+
function K(O, D, G, R, j) {
|
|
1799
|
+
if (!(O[D] instanceof g)) {
|
|
1800
|
+
var Y = g.name || h, z = J(O[D]);
|
|
1801
|
+
return new y("Invalid " + R + " `" + j + "` of type " + ("`" + z + "` supplied to `" + G + "`, expected ") + ("instance of `" + Y + "`."));
|
|
1802
1802
|
}
|
|
1803
1803
|
return null;
|
|
1804
1804
|
}
|
|
1805
|
-
return C(
|
|
1805
|
+
return C(K);
|
|
1806
1806
|
}
|
|
1807
1807
|
function se(g) {
|
|
1808
1808
|
if (!Array.isArray(g))
|
|
1809
1809
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
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
|
) : o("Invalid argument supplied to oneOf, expected an array.")), A;
|
|
1812
|
-
function
|
|
1813
|
-
for (var Y =
|
|
1814
|
-
if (
|
|
1812
|
+
function K(O, D, G, R, j) {
|
|
1813
|
+
for (var Y = O[D], z = 0; z < g.length; z++)
|
|
1814
|
+
if (p(Y, g[z]))
|
|
1815
1815
|
return null;
|
|
1816
|
-
var
|
|
1817
|
-
var
|
|
1818
|
-
return
|
|
1816
|
+
var Q = JSON.stringify(g, function(me, M) {
|
|
1817
|
+
var we = f(M);
|
|
1818
|
+
return we === "symbol" ? String(M) : M;
|
|
1819
1819
|
});
|
|
1820
|
-
return new y("Invalid " +
|
|
1820
|
+
return new y("Invalid " + R + " `" + j + "` of value `" + String(Y) + "` " + ("supplied to `" + G + "`, expected one of " + Q + "."));
|
|
1821
1821
|
}
|
|
1822
|
-
return C(
|
|
1822
|
+
return C(K);
|
|
1823
1823
|
}
|
|
1824
|
-
function
|
|
1825
|
-
function
|
|
1824
|
+
function $(g) {
|
|
1825
|
+
function K(O, D, G, R, j) {
|
|
1826
1826
|
if (typeof g != "function")
|
|
1827
|
-
return new y("Property `" +
|
|
1828
|
-
var Y =
|
|
1829
|
-
if (
|
|
1830
|
-
return new y("Invalid " +
|
|
1831
|
-
for (var
|
|
1832
|
-
if (n(Y,
|
|
1833
|
-
var
|
|
1834
|
-
if (
|
|
1835
|
-
return
|
|
1827
|
+
return new y("Property `" + j + "` of component `" + G + "` has invalid PropType notation inside objectOf.");
|
|
1828
|
+
var Y = O[D], z = L(Y);
|
|
1829
|
+
if (z !== "object")
|
|
1830
|
+
return new y("Invalid " + R + " `" + j + "` of type " + ("`" + z + "` supplied to `" + G + "`, expected an object."));
|
|
1831
|
+
for (var Q in Y)
|
|
1832
|
+
if (n(Y, Q)) {
|
|
1833
|
+
var T = g(Y, Q, G, R, j + "." + Q, r);
|
|
1834
|
+
if (T instanceof Error)
|
|
1835
|
+
return T;
|
|
1836
1836
|
}
|
|
1837
1837
|
return null;
|
|
1838
1838
|
}
|
|
1839
|
-
return C(
|
|
1839
|
+
return C(K);
|
|
1840
1840
|
}
|
|
1841
|
-
function
|
|
1841
|
+
function ne(g) {
|
|
1842
1842
|
if (!Array.isArray(g))
|
|
1843
1843
|
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), A;
|
|
1844
|
-
for (var
|
|
1845
|
-
var
|
|
1846
|
-
if (typeof
|
|
1844
|
+
for (var K = 0; K < g.length; K++) {
|
|
1845
|
+
var O = g[K];
|
|
1846
|
+
if (typeof O != "function")
|
|
1847
1847
|
return o(
|
|
1848
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + W(
|
|
1848
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + W(O) + " at index " + K + "."
|
|
1849
1849
|
), A;
|
|
1850
1850
|
}
|
|
1851
|
-
function G
|
|
1852
|
-
for (var
|
|
1853
|
-
var
|
|
1851
|
+
function D(G, R, j, Y, z) {
|
|
1852
|
+
for (var Q = [], T = 0; T < g.length; T++) {
|
|
1853
|
+
var me = g[T], M = me(G, R, j, Y, z, r);
|
|
1854
1854
|
if (M == null)
|
|
1855
1855
|
return null;
|
|
1856
|
-
M.data && n(M.data, "expectedType") &&
|
|
1856
|
+
M.data && n(M.data, "expectedType") && Q.push(M.data.expectedType);
|
|
1857
1857
|
}
|
|
1858
|
-
var
|
|
1859
|
-
return new y("Invalid " + Y + " `" +
|
|
1858
|
+
var we = Q.length > 0 ? ", expected one of type [" + Q.join(", ") + "]" : "";
|
|
1859
|
+
return new y("Invalid " + Y + " `" + z + "` supplied to " + ("`" + j + "`" + we + "."));
|
|
1860
1860
|
}
|
|
1861
|
-
return C(
|
|
1861
|
+
return C(D);
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1864
|
-
function g(
|
|
1865
|
-
return
|
|
1863
|
+
function ce() {
|
|
1864
|
+
function g(K, O, D, G, R) {
|
|
1865
|
+
return x(K[O]) ? null : new y("Invalid " + G + " `" + R + "` supplied to " + ("`" + D + "`, expected a ReactNode."));
|
|
1866
1866
|
}
|
|
1867
1867
|
return C(g);
|
|
1868
1868
|
}
|
|
1869
|
-
function
|
|
1869
|
+
function ae(g, K, O, D, G) {
|
|
1870
1870
|
return new y(
|
|
1871
|
-
(g || "React class") + ": " +
|
|
1871
|
+
(g || "React class") + ": " + K + " type `" + O + "." + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + G + "`."
|
|
1872
1872
|
);
|
|
1873
1873
|
}
|
|
1874
|
-
function
|
|
1875
|
-
function
|
|
1876
|
-
var Y =
|
|
1877
|
-
if (
|
|
1878
|
-
return new y("Invalid " +
|
|
1879
|
-
for (var
|
|
1880
|
-
var
|
|
1881
|
-
if (typeof
|
|
1882
|
-
return
|
|
1883
|
-
var
|
|
1884
|
-
if (
|
|
1885
|
-
return
|
|
1874
|
+
function ee(g) {
|
|
1875
|
+
function K(O, D, G, R, j) {
|
|
1876
|
+
var Y = O[D], z = L(Y);
|
|
1877
|
+
if (z !== "object")
|
|
1878
|
+
return new y("Invalid " + R + " `" + j + "` of type `" + z + "` " + ("supplied to `" + G + "`, expected `object`."));
|
|
1879
|
+
for (var Q in g) {
|
|
1880
|
+
var T = g[Q];
|
|
1881
|
+
if (typeof T != "function")
|
|
1882
|
+
return ae(G, R, j, Q, f(T));
|
|
1883
|
+
var me = T(Y, Q, G, R, j + "." + Q, r);
|
|
1884
|
+
if (me)
|
|
1885
|
+
return me;
|
|
1886
1886
|
}
|
|
1887
1887
|
return null;
|
|
1888
1888
|
}
|
|
1889
|
-
return C(
|
|
1889
|
+
return C(K);
|
|
1890
1890
|
}
|
|
1891
1891
|
function P(g) {
|
|
1892
|
-
function
|
|
1893
|
-
var Y =
|
|
1894
|
-
if (
|
|
1895
|
-
return new y("Invalid " +
|
|
1896
|
-
var
|
|
1897
|
-
for (var
|
|
1898
|
-
var
|
|
1899
|
-
if (n(g,
|
|
1900
|
-
return
|
|
1901
|
-
if (!
|
|
1892
|
+
function K(O, D, G, R, j) {
|
|
1893
|
+
var Y = O[D], z = L(Y);
|
|
1894
|
+
if (z !== "object")
|
|
1895
|
+
return new y("Invalid " + R + " `" + j + "` of type `" + z + "` " + ("supplied to `" + G + "`, expected `object`."));
|
|
1896
|
+
var Q = t({}, O[D], g);
|
|
1897
|
+
for (var T in Q) {
|
|
1898
|
+
var me = g[T];
|
|
1899
|
+
if (n(g, T) && typeof me != "function")
|
|
1900
|
+
return ae(G, R, j, T, f(me));
|
|
1901
|
+
if (!me)
|
|
1902
1902
|
return new y(
|
|
1903
|
-
"Invalid " +
|
|
1903
|
+
"Invalid " + R + " `" + j + "` key `" + T + "` supplied to `" + G + "`.\nBad object: " + JSON.stringify(O[D], null, " ") + `
|
|
1904
1904
|
Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
1905
1905
|
);
|
|
1906
|
-
var M =
|
|
1906
|
+
var M = me(Y, T, G, R, j + "." + T, r);
|
|
1907
1907
|
if (M)
|
|
1908
1908
|
return M;
|
|
1909
1909
|
}
|
|
1910
1910
|
return null;
|
|
1911
1911
|
}
|
|
1912
|
-
return C(
|
|
1912
|
+
return C(K);
|
|
1913
1913
|
}
|
|
1914
|
-
function
|
|
1914
|
+
function x(g) {
|
|
1915
1915
|
switch (typeof g) {
|
|
1916
1916
|
case "number":
|
|
1917
1917
|
case "string":
|
|
@@ -1921,20 +1921,20 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
1921
1921
|
return !g;
|
|
1922
1922
|
case "object":
|
|
1923
1923
|
if (Array.isArray(g))
|
|
1924
|
-
return g.every(
|
|
1924
|
+
return g.every(x);
|
|
1925
1925
|
if (g === null || a(g))
|
|
1926
1926
|
return !0;
|
|
1927
|
-
var
|
|
1928
|
-
if (
|
|
1929
|
-
var
|
|
1930
|
-
if (
|
|
1931
|
-
for (; !(
|
|
1932
|
-
if (!
|
|
1927
|
+
var K = d(g);
|
|
1928
|
+
if (K) {
|
|
1929
|
+
var O = K.call(g), D;
|
|
1930
|
+
if (K !== g.entries) {
|
|
1931
|
+
for (; !(D = O.next()).done; )
|
|
1932
|
+
if (!x(D.value))
|
|
1933
1933
|
return !1;
|
|
1934
1934
|
} else
|
|
1935
|
-
for (; !(
|
|
1936
|
-
var
|
|
1937
|
-
if (
|
|
1935
|
+
for (; !(D = O.next()).done; ) {
|
|
1936
|
+
var G = D.value;
|
|
1937
|
+
if (G && !x(G[1]))
|
|
1938
1938
|
return !1;
|
|
1939
1939
|
}
|
|
1940
1940
|
} else
|
|
@@ -1944,37 +1944,37 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
1944
1944
|
return !1;
|
|
1945
1945
|
}
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1948
|
-
return g === "symbol" ? !0 :
|
|
1947
|
+
function w(g, K) {
|
|
1948
|
+
return g === "symbol" ? !0 : K ? K["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && K instanceof Symbol : !1;
|
|
1949
1949
|
}
|
|
1950
|
-
function
|
|
1951
|
-
var
|
|
1952
|
-
return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" : K
|
|
1950
|
+
function L(g) {
|
|
1951
|
+
var K = typeof g;
|
|
1952
|
+
return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" : w(K, g) ? "symbol" : K;
|
|
1953
1953
|
}
|
|
1954
|
-
function
|
|
1954
|
+
function f(g) {
|
|
1955
1955
|
if (typeof g > "u" || g === null)
|
|
1956
1956
|
return "" + g;
|
|
1957
|
-
var
|
|
1958
|
-
if (
|
|
1957
|
+
var K = L(g);
|
|
1958
|
+
if (K === "object") {
|
|
1959
1959
|
if (g instanceof Date)
|
|
1960
1960
|
return "date";
|
|
1961
1961
|
if (g instanceof RegExp)
|
|
1962
1962
|
return "regexp";
|
|
1963
1963
|
}
|
|
1964
|
-
return
|
|
1964
|
+
return K;
|
|
1965
1965
|
}
|
|
1966
1966
|
function W(g) {
|
|
1967
|
-
var
|
|
1968
|
-
switch (
|
|
1967
|
+
var K = f(g);
|
|
1968
|
+
switch (K) {
|
|
1969
1969
|
case "array":
|
|
1970
1970
|
case "object":
|
|
1971
|
-
return "an " +
|
|
1971
|
+
return "an " + K;
|
|
1972
1972
|
case "boolean":
|
|
1973
1973
|
case "date":
|
|
1974
1974
|
case "regexp":
|
|
1975
|
-
return "a " +
|
|
1975
|
+
return "a " + K;
|
|
1976
1976
|
default:
|
|
1977
|
-
return
|
|
1977
|
+
return K;
|
|
1978
1978
|
}
|
|
1979
1979
|
}
|
|
1980
1980
|
function J(g) {
|
|
@@ -2034,7 +2034,7 @@ function Uo() {
|
|
|
2034
2034
|
}
|
|
2035
2035
|
if (process.env.NODE_ENV !== "production") {
|
|
2036
2036
|
var Fo = li(), _o = !0;
|
|
2037
|
-
Mr.exports =
|
|
2037
|
+
Mr.exports = Bo()(Fo.isElement, _o);
|
|
2038
2038
|
} else
|
|
2039
2039
|
Mr.exports = Uo()();
|
|
2040
2040
|
var $t = Mr.exports, Hr = {};
|
|
@@ -2048,7 +2048,7 @@ var $o = Object.assign || function(e) {
|
|
|
2048
2048
|
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
2049
2049
|
}
|
|
2050
2050
|
return e;
|
|
2051
|
-
}, eA = $t,
|
|
2051
|
+
}, eA = $t, xe = mi(eA), ci = re, zt = mi(ci);
|
|
2052
2052
|
function mi(e) {
|
|
2053
2053
|
return e && e.__esModule ? e : { default: e };
|
|
2054
2054
|
}
|
|
@@ -2059,14 +2059,14 @@ function tA(e, t) {
|
|
|
2059
2059
|
return r;
|
|
2060
2060
|
}
|
|
2061
2061
|
var rA = {
|
|
2062
|
-
bgColor:
|
|
2063
|
-
bgD:
|
|
2064
|
-
fgColor:
|
|
2065
|
-
fgD:
|
|
2066
|
-
size:
|
|
2067
|
-
title:
|
|
2068
|
-
viewBoxSize:
|
|
2069
|
-
xmlns:
|
|
2062
|
+
bgColor: xe.default.oneOfType([xe.default.object, xe.default.string]).isRequired,
|
|
2063
|
+
bgD: xe.default.string.isRequired,
|
|
2064
|
+
fgColor: xe.default.oneOfType([xe.default.object, xe.default.string]).isRequired,
|
|
2065
|
+
fgD: xe.default.string.isRequired,
|
|
2066
|
+
size: xe.default.number.isRequired,
|
|
2067
|
+
title: xe.default.string,
|
|
2068
|
+
viewBoxSize: xe.default.number.isRequired,
|
|
2069
|
+
xmlns: xe.default.string
|
|
2070
2070
|
}, nA = {
|
|
2071
2071
|
title: void 0,
|
|
2072
2072
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -2099,7 +2099,7 @@ var iA = Object.assign || function(e) {
|
|
|
2099
2099
|
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
2100
2100
|
}
|
|
2101
2101
|
return e;
|
|
2102
|
-
}, oA = Ho, AA = Wt(oA), aA = ni, sA = Wt(aA), lA = $t, Ge = Wt(lA), di =
|
|
2102
|
+
}, oA = Ho, AA = Wt(oA), aA = ni, sA = Wt(aA), lA = $t, Ge = Wt(lA), di = re, uA = Wt(di), cA = Hr, mA = Wt(cA);
|
|
2103
2103
|
function Wt(e) {
|
|
2104
2104
|
return e && e.__esModule ? e : { default: e };
|
|
2105
2105
|
}
|
|
@@ -2196,22 +2196,22 @@ const { toString: qA } = Object.prototype, { getPrototypeOf: Xr } = Object, tr =
|
|
|
2196
2196
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
2197
2197
|
})(/* @__PURE__ */ Object.create(null)), Ne = (e) => (e = e.toLowerCase(), (t) => tr(t) === e), rr = (e) => (t) => typeof t === e, { isArray: mt } = Array, Zt = rr("undefined");
|
|
2198
2198
|
function gA(e) {
|
|
2199
|
-
return e !== null && !Zt(e) && e.constructor !== null && !Zt(e.constructor) &&
|
|
2199
|
+
return e !== null && !Zt(e) && e.constructor !== null && !Zt(e.constructor) && Me(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
2200
2200
|
}
|
|
2201
2201
|
const hi = Ne("ArrayBuffer");
|
|
2202
2202
|
function yA(e) {
|
|
2203
2203
|
let t;
|
|
2204
2204
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && hi(e.buffer), t;
|
|
2205
2205
|
}
|
|
2206
|
-
const vA = rr("string"),
|
|
2206
|
+
const vA = rr("string"), Me = rr("function"), qi = rr("number"), nr = (e) => e !== null && typeof e == "object", bA = (e) => e === !0 || e === !1, Gt = (e) => {
|
|
2207
2207
|
if (tr(e) !== "object")
|
|
2208
2208
|
return !1;
|
|
2209
2209
|
const t = Xr(e);
|
|
2210
2210
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
2211
|
-
}, CA = Ne("Date"), ZA = Ne("File"), IA = Ne("Blob"),
|
|
2211
|
+
}, CA = Ne("Date"), ZA = Ne("File"), IA = Ne("Blob"), wA = Ne("FileList"), KA = (e) => nr(e) && Me(e.pipe), WA = (e) => {
|
|
2212
2212
|
let t;
|
|
2213
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
2214
|
-
t === "object" &&
|
|
2213
|
+
return e && (typeof FormData == "function" && e instanceof FormData || Me(e.append) && ((t = tr(e)) === "formdata" || // detect form-data instance
|
|
2214
|
+
t === "object" && Me(e.toString) && e.toString() === "[object FormData]"));
|
|
2215
2215
|
}, xA = Ne("URLSearchParams"), OA = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
2216
2216
|
function Ot(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
2217
2217
|
if (e === null || typeof e > "u")
|
|
@@ -2247,7 +2247,7 @@ function Sr() {
|
|
|
2247
2247
|
return t;
|
|
2248
2248
|
}
|
|
2249
2249
|
const MA = (e, t, r, { allOwnKeys: n } = {}) => (Ot(t, (i, o) => {
|
|
2250
|
-
r &&
|
|
2250
|
+
r && Me(i) ? e[o] = fi(i, r) : e[o] = i;
|
|
2251
2251
|
}, { allOwnKeys: n }), e), SA = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), LA = (e, t, r, n) => {
|
|
2252
2252
|
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
2253
2253
|
value: t.prototype
|
|
@@ -2305,10 +2305,10 @@ const MA = (e, t, r, { allOwnKeys: n } = {}) => (Ot(t, (i, o) => {
|
|
|
2305
2305
|
}), Object.defineProperties(e, n);
|
|
2306
2306
|
}, RA = (e) => {
|
|
2307
2307
|
bi(e, (t, r) => {
|
|
2308
|
-
if (
|
|
2308
|
+
if (Me(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
2309
2309
|
return !1;
|
|
2310
2310
|
const n = e[r];
|
|
2311
|
-
if (
|
|
2311
|
+
if (Me(n)) {
|
|
2312
2312
|
if (t.enumerable = !1, "writable" in t) {
|
|
2313
2313
|
t.writable = !1;
|
|
2314
2314
|
return;
|
|
@@ -2338,9 +2338,9 @@ const MA = (e, t, r, { allOwnKeys: n } = {}) => (Ot(t, (i, o) => {
|
|
|
2338
2338
|
return r;
|
|
2339
2339
|
};
|
|
2340
2340
|
function PA(e) {
|
|
2341
|
-
return !!(e &&
|
|
2341
|
+
return !!(e && Me(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
2342
2342
|
}
|
|
2343
|
-
const
|
|
2343
|
+
const VA = (e) => {
|
|
2344
2344
|
const t = new Array(10), r = (n, i) => {
|
|
2345
2345
|
if (nr(n)) {
|
|
2346
2346
|
if (t.indexOf(n) >= 0)
|
|
@@ -2357,7 +2357,7 @@ const BA = (e) => {
|
|
|
2357
2357
|
return n;
|
|
2358
2358
|
};
|
|
2359
2359
|
return r(e, 0);
|
|
2360
|
-
},
|
|
2360
|
+
}, BA = Ne("AsyncFunction"), UA = (e) => e && (nr(e) || Me(e)) && Me(e.then) && Me(e.catch), v = {
|
|
2361
2361
|
isArray: mt,
|
|
2362
2362
|
isArrayBuffer: hi,
|
|
2363
2363
|
isBuffer: gA,
|
|
@@ -2373,11 +2373,11 @@ const BA = (e) => {
|
|
|
2373
2373
|
isFile: ZA,
|
|
2374
2374
|
isBlob: IA,
|
|
2375
2375
|
isRegExp: GA,
|
|
2376
|
-
isFunction:
|
|
2377
|
-
isStream:
|
|
2376
|
+
isFunction: Me,
|
|
2377
|
+
isStream: KA,
|
|
2378
2378
|
isURLSearchParams: xA,
|
|
2379
2379
|
isTypedArray: zA,
|
|
2380
|
-
isFileList:
|
|
2380
|
+
isFileList: wA,
|
|
2381
2381
|
forEach: Ot,
|
|
2382
2382
|
merge: Sr,
|
|
2383
2383
|
extend: MA,
|
|
@@ -2407,14 +2407,14 @@ const BA = (e) => {
|
|
|
2407
2407
|
ALPHABET: Ci,
|
|
2408
2408
|
generateString: QA,
|
|
2409
2409
|
isSpecCompliantForm: PA,
|
|
2410
|
-
toJSONObject:
|
|
2411
|
-
isAsyncFn:
|
|
2410
|
+
toJSONObject: VA,
|
|
2411
|
+
isAsyncFn: BA,
|
|
2412
2412
|
isThenable: UA
|
|
2413
2413
|
};
|
|
2414
|
-
function
|
|
2414
|
+
function _(e, t, r, n, i) {
|
|
2415
2415
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), n && (this.request = n), i && (this.response = i);
|
|
2416
2416
|
}
|
|
2417
|
-
v.inherits(
|
|
2417
|
+
v.inherits(_, Error, {
|
|
2418
2418
|
toJSON: function() {
|
|
2419
2419
|
return {
|
|
2420
2420
|
// Standard
|
|
@@ -2435,7 +2435,7 @@ v.inherits(F, Error, {
|
|
|
2435
2435
|
};
|
|
2436
2436
|
}
|
|
2437
2437
|
});
|
|
2438
|
-
const Zi =
|
|
2438
|
+
const Zi = _.prototype, Ii = {};
|
|
2439
2439
|
[
|
|
2440
2440
|
"ERR_BAD_OPTION_VALUE",
|
|
2441
2441
|
"ERR_BAD_OPTION",
|
|
@@ -2453,24 +2453,24 @@ const Zi = F.prototype, Ii = {};
|
|
|
2453
2453
|
].forEach((e) => {
|
|
2454
2454
|
Ii[e] = { value: e };
|
|
2455
2455
|
});
|
|
2456
|
-
Object.defineProperties(
|
|
2456
|
+
Object.defineProperties(_, Ii);
|
|
2457
2457
|
Object.defineProperty(Zi, "isAxiosError", { value: !0 });
|
|
2458
|
-
|
|
2458
|
+
_.from = (e, t, r, n, i, o) => {
|
|
2459
2459
|
const A = Object.create(Zi);
|
|
2460
2460
|
return v.toFlatObject(e, A, function(c) {
|
|
2461
2461
|
return c !== Error.prototype;
|
|
2462
|
-
}, (a) => a !== "isAxiosError"),
|
|
2462
|
+
}, (a) => a !== "isAxiosError"), _.call(A, e.message, t, r, n, i), A.cause = e, A.name = e.name, o && Object.assign(A, o), A;
|
|
2463
2463
|
};
|
|
2464
2464
|
const FA = null;
|
|
2465
2465
|
function Lr(e) {
|
|
2466
2466
|
return v.isPlainObject(e) || v.isArray(e);
|
|
2467
2467
|
}
|
|
2468
|
-
function
|
|
2468
|
+
function wi(e) {
|
|
2469
2469
|
return v.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
2470
2470
|
}
|
|
2471
2471
|
function Sn(e, t, r) {
|
|
2472
2472
|
return e ? e.concat(t).map(function(i, o) {
|
|
2473
|
-
return i =
|
|
2473
|
+
return i = wi(i), !r && o ? "[" + i + "]" : i;
|
|
2474
2474
|
}).join(r ? "." : "") : t;
|
|
2475
2475
|
}
|
|
2476
2476
|
function _A(e) {
|
|
@@ -2492,41 +2492,41 @@ function ir(e, t, r) {
|
|
|
2492
2492
|
const n = r.metaTokens, i = r.visitor || u, o = r.dots, A = r.indexes, c = (r.Blob || typeof Blob < "u" && Blob) && v.isSpecCompliantForm(t);
|
|
2493
2493
|
if (!v.isFunction(i))
|
|
2494
2494
|
throw new TypeError("visitor must be a function");
|
|
2495
|
-
function s(
|
|
2496
|
-
if (
|
|
2495
|
+
function s(p) {
|
|
2496
|
+
if (p === null)
|
|
2497
2497
|
return "";
|
|
2498
|
-
if (v.isDate(
|
|
2499
|
-
return
|
|
2500
|
-
if (!c && v.isBlob(
|
|
2501
|
-
throw new
|
|
2502
|
-
return v.isArrayBuffer(
|
|
2503
|
-
}
|
|
2504
|
-
function u(
|
|
2505
|
-
let I =
|
|
2506
|
-
if (
|
|
2498
|
+
if (v.isDate(p))
|
|
2499
|
+
return p.toISOString();
|
|
2500
|
+
if (!c && v.isBlob(p))
|
|
2501
|
+
throw new _("Blob is not supported. Use a Buffer instead.");
|
|
2502
|
+
return v.isArrayBuffer(p) || v.isTypedArray(p) ? c && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
2503
|
+
}
|
|
2504
|
+
function u(p, y, C) {
|
|
2505
|
+
let I = p;
|
|
2506
|
+
if (p && !C && typeof p == "object") {
|
|
2507
2507
|
if (v.endsWith(y, "{}"))
|
|
2508
|
-
y = n ? y : y.slice(0, -2),
|
|
2509
|
-
else if (v.isArray(
|
|
2510
|
-
return y =
|
|
2511
|
-
!(v.isUndefined(
|
|
2508
|
+
y = n ? y : y.slice(0, -2), p = JSON.stringify(p);
|
|
2509
|
+
else if (v.isArray(p) && _A(p) || (v.isFileList(p) || v.endsWith(y, "[]")) && (I = v.toArray(p)))
|
|
2510
|
+
return y = wi(y), I.forEach(function(N, E) {
|
|
2511
|
+
!(v.isUndefined(N) || N === null) && t.append(
|
|
2512
2512
|
// eslint-disable-next-line no-nested-ternary
|
|
2513
|
-
A === !0 ? Sn([y],
|
|
2514
|
-
s(
|
|
2513
|
+
A === !0 ? Sn([y], E, o) : A === null ? y : y + "[]",
|
|
2514
|
+
s(N)
|
|
2515
2515
|
);
|
|
2516
2516
|
}), !1;
|
|
2517
2517
|
}
|
|
2518
|
-
return Lr(
|
|
2518
|
+
return Lr(p) ? !0 : (t.append(Sn(C, y, o), s(p)), !1);
|
|
2519
2519
|
}
|
|
2520
2520
|
const d = [], h = Object.assign($A, {
|
|
2521
2521
|
defaultVisitor: u,
|
|
2522
2522
|
convertValue: s,
|
|
2523
2523
|
isVisitable: Lr
|
|
2524
2524
|
});
|
|
2525
|
-
function q(
|
|
2526
|
-
if (!v.isUndefined(
|
|
2527
|
-
if (d.indexOf(
|
|
2525
|
+
function q(p, y) {
|
|
2526
|
+
if (!v.isUndefined(p)) {
|
|
2527
|
+
if (d.indexOf(p) !== -1)
|
|
2528
2528
|
throw Error("Circular reference detected in " + y.join("."));
|
|
2529
|
-
d.push(
|
|
2529
|
+
d.push(p), v.forEach(p, function(I, k) {
|
|
2530
2530
|
(!(v.isUndefined(I) || I === null) && i.call(
|
|
2531
2531
|
t,
|
|
2532
2532
|
I,
|
|
@@ -2558,11 +2558,11 @@ function Ln(e) {
|
|
|
2558
2558
|
function Qr(e, t) {
|
|
2559
2559
|
this._pairs = [], e && ir(e, this, t);
|
|
2560
2560
|
}
|
|
2561
|
-
const
|
|
2562
|
-
|
|
2561
|
+
const Ki = Qr.prototype;
|
|
2562
|
+
Ki.append = function(t, r) {
|
|
2563
2563
|
this._pairs.push([t, r]);
|
|
2564
2564
|
};
|
|
2565
|
-
|
|
2565
|
+
Ki.toString = function(t) {
|
|
2566
2566
|
const r = t ? function(n) {
|
|
2567
2567
|
return t.call(this, n, Ln);
|
|
2568
2568
|
} : Ln;
|
|
@@ -2646,7 +2646,7 @@ const En = ta, xi = {
|
|
|
2646
2646
|
let e;
|
|
2647
2647
|
return typeof navigator < "u" && ((e = navigator.product) === "ReactNative" || e === "NativeScript" || e === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
2648
2648
|
})(), Aa = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
2649
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
2649
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), Ee = {
|
|
2650
2650
|
isBrowser: !0,
|
|
2651
2651
|
classes: {
|
|
2652
2652
|
URLSearchParams: ra,
|
|
@@ -2658,9 +2658,9 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
|
2658
2658
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
2659
2659
|
};
|
|
2660
2660
|
function aa(e, t) {
|
|
2661
|
-
return ir(e, new
|
|
2661
|
+
return ir(e, new Ee.classes.URLSearchParams(), Object.assign({
|
|
2662
2662
|
visitor: function(r, n, i, o) {
|
|
2663
|
-
return
|
|
2663
|
+
return Ee.isNode && v.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
2664
2664
|
}
|
|
2665
2665
|
}, t));
|
|
2666
2666
|
}
|
|
@@ -2702,7 +2702,7 @@ function ua(e, t, r) {
|
|
|
2702
2702
|
}
|
|
2703
2703
|
const Pr = {
|
|
2704
2704
|
transitional: xi,
|
|
2705
|
-
adapter:
|
|
2705
|
+
adapter: Ee.isNode ? "http" : "xhr",
|
|
2706
2706
|
transformRequest: [function(t, r) {
|
|
2707
2707
|
const n = r.getContentType() || "", i = n.indexOf("application/json") > -1, o = v.isObject(t);
|
|
2708
2708
|
if (o && v.isHTMLForm(t) && (t = new FormData(t)), v.isFormData(t))
|
|
@@ -2736,7 +2736,7 @@ const Pr = {
|
|
|
2736
2736
|
return JSON.parse(t);
|
|
2737
2737
|
} catch (a) {
|
|
2738
2738
|
if (A)
|
|
2739
|
-
throw a.name === "SyntaxError" ?
|
|
2739
|
+
throw a.name === "SyntaxError" ? _.from(a, _.ERR_BAD_RESPONSE, this, null, this.response) : a;
|
|
2740
2740
|
}
|
|
2741
2741
|
}
|
|
2742
2742
|
return t;
|
|
@@ -2751,8 +2751,8 @@ const Pr = {
|
|
|
2751
2751
|
maxContentLength: -1,
|
|
2752
2752
|
maxBodyLength: -1,
|
|
2753
2753
|
env: {
|
|
2754
|
-
FormData:
|
|
2755
|
-
Blob:
|
|
2754
|
+
FormData: Ee.classes.FormData,
|
|
2755
|
+
Blob: Ee.classes.Blob
|
|
2756
2756
|
},
|
|
2757
2757
|
validateStatus: function(t) {
|
|
2758
2758
|
return t >= 200 && t < 300;
|
|
@@ -2767,7 +2767,7 @@ const Pr = {
|
|
|
2767
2767
|
v.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
2768
2768
|
Pr.headers[e] = {};
|
|
2769
2769
|
});
|
|
2770
|
-
const
|
|
2770
|
+
const Vr = Pr, ca = v.toObjectSet([
|
|
2771
2771
|
"age",
|
|
2772
2772
|
"authorization",
|
|
2773
2773
|
"content-length",
|
|
@@ -2953,7 +2953,7 @@ v.reduceDescriptors(or.prototype, ({ value: e }, t) => {
|
|
|
2953
2953
|
v.freezeMethods(or);
|
|
2954
2954
|
const Re = or;
|
|
2955
2955
|
function Cr(e, t) {
|
|
2956
|
-
const r = this ||
|
|
2956
|
+
const r = this || Vr, n = t || r, i = Re.from(n.headers);
|
|
2957
2957
|
let o = n.data;
|
|
2958
2958
|
return v.forEach(e, function(a) {
|
|
2959
2959
|
o = a.call(r, o, i.normalize(), t ? t.status : void 0);
|
|
@@ -2963,22 +2963,22 @@ function Mi(e) {
|
|
|
2963
2963
|
return !!(e && e.__CANCEL__);
|
|
2964
2964
|
}
|
|
2965
2965
|
function Mt(e, t, r) {
|
|
2966
|
-
|
|
2966
|
+
_.call(this, e ?? "canceled", _.ERR_CANCELED, t, r), this.name = "CanceledError";
|
|
2967
2967
|
}
|
|
2968
|
-
v.inherits(Mt,
|
|
2968
|
+
v.inherits(Mt, _, {
|
|
2969
2969
|
__CANCEL__: !0
|
|
2970
2970
|
});
|
|
2971
2971
|
function qa(e, t, r) {
|
|
2972
2972
|
const n = r.config.validateStatus;
|
|
2973
|
-
!r.status || !n || n(r.status) ? e(r) : t(new
|
|
2973
|
+
!r.status || !n || n(r.status) ? e(r) : t(new _(
|
|
2974
2974
|
"Request failed with status code " + r.status,
|
|
2975
|
-
[
|
|
2975
|
+
[_.ERR_BAD_REQUEST, _.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
|
|
2976
2976
|
r.config,
|
|
2977
2977
|
r.request,
|
|
2978
2978
|
r
|
|
2979
2979
|
));
|
|
2980
2980
|
}
|
|
2981
|
-
const ga =
|
|
2981
|
+
const ga = Ee.isStandardBrowserEnv ? (
|
|
2982
2982
|
// Standard browser envs support document.cookie
|
|
2983
2983
|
function() {
|
|
2984
2984
|
return {
|
|
@@ -3018,7 +3018,7 @@ function va(e, t) {
|
|
|
3018
3018
|
function Si(e, t) {
|
|
3019
3019
|
return e && !ya(t) ? va(e, t) : t;
|
|
3020
3020
|
}
|
|
3021
|
-
const ba =
|
|
3021
|
+
const ba = Ee.isStandardBrowserEnv ? (
|
|
3022
3022
|
// Standard browser envs have full support of the APIs needed to test
|
|
3023
3023
|
// whether the request URL is of the same origin as current location.
|
|
3024
3024
|
function() {
|
|
@@ -3088,7 +3088,7 @@ function kn(e, t) {
|
|
|
3088
3088
|
u[t ? "download" : "upload"] = !0, e(u);
|
|
3089
3089
|
};
|
|
3090
3090
|
}
|
|
3091
|
-
const Ia = typeof XMLHttpRequest < "u",
|
|
3091
|
+
const Ia = typeof XMLHttpRequest < "u", wa = Ia && function(e) {
|
|
3092
3092
|
return new Promise(function(r, n) {
|
|
3093
3093
|
let i = e.data;
|
|
3094
3094
|
const o = Re.from(e.headers).normalize(), A = e.responseType;
|
|
@@ -3096,11 +3096,11 @@ const Ia = typeof XMLHttpRequest < "u", Ka = Ia && function(e) {
|
|
|
3096
3096
|
function c() {
|
|
3097
3097
|
e.cancelToken && e.cancelToken.unsubscribe(a), e.signal && e.signal.removeEventListener("abort", a);
|
|
3098
3098
|
}
|
|
3099
|
-
v.isFormData(i) && (
|
|
3099
|
+
v.isFormData(i) && (Ee.isStandardBrowserEnv || Ee.isStandardBrowserWebWorkerEnv ? o.setContentType(!1) : o.setContentType("multipart/form-data;", !1));
|
|
3100
3100
|
let s = new XMLHttpRequest();
|
|
3101
3101
|
if (e.auth) {
|
|
3102
|
-
const q = e.auth.username || "",
|
|
3103
|
-
o.set("Authorization", "Basic " + btoa(q + ":" +
|
|
3102
|
+
const q = e.auth.username || "", p = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
3103
|
+
o.set("Authorization", "Basic " + btoa(q + ":" + p));
|
|
3104
3104
|
}
|
|
3105
3105
|
const u = Si(e.baseURL, e.url);
|
|
3106
3106
|
s.open(e.method.toUpperCase(), Wi(u, e.params, e.paramsSerializer), !0), s.timeout = e.timeout;
|
|
@@ -3126,37 +3126,37 @@ const Ia = typeof XMLHttpRequest < "u", Ka = Ia && function(e) {
|
|
|
3126
3126
|
if ("onloadend" in s ? s.onloadend = d : s.onreadystatechange = function() {
|
|
3127
3127
|
!s || s.readyState !== 4 || s.status === 0 && !(s.responseURL && s.responseURL.indexOf("file:") === 0) || setTimeout(d);
|
|
3128
3128
|
}, s.onabort = function() {
|
|
3129
|
-
s && (n(new
|
|
3129
|
+
s && (n(new _("Request aborted", _.ECONNABORTED, e, s)), s = null);
|
|
3130
3130
|
}, s.onerror = function() {
|
|
3131
|
-
n(new
|
|
3131
|
+
n(new _("Network Error", _.ERR_NETWORK, e, s)), s = null;
|
|
3132
3132
|
}, s.ontimeout = function() {
|
|
3133
|
-
let
|
|
3133
|
+
let p = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
3134
3134
|
const y = e.transitional || xi;
|
|
3135
|
-
e.timeoutErrorMessage && (
|
|
3136
|
-
|
|
3137
|
-
y.clarifyTimeoutError ?
|
|
3135
|
+
e.timeoutErrorMessage && (p = e.timeoutErrorMessage), n(new _(
|
|
3136
|
+
p,
|
|
3137
|
+
y.clarifyTimeoutError ? _.ETIMEDOUT : _.ECONNABORTED,
|
|
3138
3138
|
e,
|
|
3139
3139
|
s
|
|
3140
3140
|
)), s = null;
|
|
3141
|
-
},
|
|
3141
|
+
}, Ee.isStandardBrowserEnv) {
|
|
3142
3142
|
const q = (e.withCredentials || ba(u)) && e.xsrfCookieName && ga.read(e.xsrfCookieName);
|
|
3143
3143
|
q && o.set(e.xsrfHeaderName, q);
|
|
3144
3144
|
}
|
|
3145
|
-
i === void 0 && o.setContentType(null), "setRequestHeader" in s && v.forEach(o.toJSON(), function(
|
|
3146
|
-
s.setRequestHeader(y,
|
|
3145
|
+
i === void 0 && o.setContentType(null), "setRequestHeader" in s && v.forEach(o.toJSON(), function(p, y) {
|
|
3146
|
+
s.setRequestHeader(y, p);
|
|
3147
3147
|
}), v.isUndefined(e.withCredentials) || (s.withCredentials = !!e.withCredentials), A && A !== "json" && (s.responseType = e.responseType), typeof e.onDownloadProgress == "function" && s.addEventListener("progress", kn(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && s.upload && s.upload.addEventListener("progress", kn(e.onUploadProgress)), (e.cancelToken || e.signal) && (a = (q) => {
|
|
3148
3148
|
s && (n(!q || q.type ? new Mt(null, e, s) : q), s.abort(), s = null);
|
|
3149
3149
|
}, e.cancelToken && e.cancelToken.subscribe(a), e.signal && (e.signal.aborted ? a() : e.signal.addEventListener("abort", a)));
|
|
3150
3150
|
const h = Ca(u);
|
|
3151
|
-
if (h &&
|
|
3152
|
-
n(new
|
|
3151
|
+
if (h && Ee.protocols.indexOf(h) === -1) {
|
|
3152
|
+
n(new _("Unsupported protocol " + h + ":", _.ERR_BAD_REQUEST, e));
|
|
3153
3153
|
return;
|
|
3154
3154
|
}
|
|
3155
3155
|
s.send(i || null);
|
|
3156
3156
|
});
|
|
3157
3157
|
}, Tt = {
|
|
3158
3158
|
http: FA,
|
|
3159
|
-
xhr:
|
|
3159
|
+
xhr: wa
|
|
3160
3160
|
};
|
|
3161
3161
|
v.forEach(Tt, (e, t) => {
|
|
3162
3162
|
if (e) {
|
|
@@ -3175,7 +3175,7 @@ const Li = {
|
|
|
3175
3175
|
for (let i = 0; i < t && (r = e[i], !(n = v.isString(r) ? Tt[r.toLowerCase()] : r)); i++)
|
|
3176
3176
|
;
|
|
3177
3177
|
if (!n)
|
|
3178
|
-
throw n === !1 ? new
|
|
3178
|
+
throw n === !1 ? new _(
|
|
3179
3179
|
`Adapter ${r} is not supported by the environment`,
|
|
3180
3180
|
"ERR_NOT_SUPPORT"
|
|
3181
3181
|
) : new Error(
|
|
@@ -3195,7 +3195,7 @@ function zn(e) {
|
|
|
3195
3195
|
return Zr(e), e.headers = Re.from(e.headers), e.data = Cr.call(
|
|
3196
3196
|
e,
|
|
3197
3197
|
e.transformRequest
|
|
3198
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Li.getAdapter(e.adapter ||
|
|
3198
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Li.getAdapter(e.adapter || Vr.adapter)(e).then(function(n) {
|
|
3199
3199
|
return Zr(e), n.data = Cr.call(
|
|
3200
3200
|
e,
|
|
3201
3201
|
e.transformResponse,
|
|
@@ -3275,22 +3275,22 @@ function ct(e, t) {
|
|
|
3275
3275
|
v.isUndefined(h) && d !== a || (r[u] = h);
|
|
3276
3276
|
}), r;
|
|
3277
3277
|
}
|
|
3278
|
-
const Ei = "1.5.0",
|
|
3278
|
+
const Ei = "1.5.0", Br = {};
|
|
3279
3279
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
3280
|
-
|
|
3280
|
+
Br[e] = function(n) {
|
|
3281
3281
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
3282
3282
|
};
|
|
3283
3283
|
});
|
|
3284
3284
|
const Jn = {};
|
|
3285
|
-
|
|
3285
|
+
Br.transitional = function(t, r, n) {
|
|
3286
3286
|
function i(o, A) {
|
|
3287
3287
|
return "[Axios v" + Ei + "] Transitional option '" + o + "'" + A + (n ? ". " + n : "");
|
|
3288
3288
|
}
|
|
3289
3289
|
return (o, A, a) => {
|
|
3290
3290
|
if (t === !1)
|
|
3291
|
-
throw new
|
|
3291
|
+
throw new _(
|
|
3292
3292
|
i(A, " has been removed" + (r ? " in " + r : "")),
|
|
3293
|
-
|
|
3293
|
+
_.ERR_DEPRECATED
|
|
3294
3294
|
);
|
|
3295
3295
|
return r && !Jn[A] && (Jn[A] = !0, console.warn(
|
|
3296
3296
|
i(
|
|
@@ -3300,9 +3300,9 @@ Vr.transitional = function(t, r, n) {
|
|
|
3300
3300
|
)), t ? t(o, A, a) : !0;
|
|
3301
3301
|
};
|
|
3302
3302
|
};
|
|
3303
|
-
function
|
|
3303
|
+
function Ka(e, t, r) {
|
|
3304
3304
|
if (typeof e != "object")
|
|
3305
|
-
throw new
|
|
3305
|
+
throw new _("options must be an object", _.ERR_BAD_OPTION_VALUE);
|
|
3306
3306
|
const n = Object.keys(e);
|
|
3307
3307
|
let i = n.length;
|
|
3308
3308
|
for (; i-- > 0; ) {
|
|
@@ -3310,17 +3310,17 @@ function wa(e, t, r) {
|
|
|
3310
3310
|
if (A) {
|
|
3311
3311
|
const a = e[o], c = a === void 0 || A(a, o, e);
|
|
3312
3312
|
if (c !== !0)
|
|
3313
|
-
throw new
|
|
3313
|
+
throw new _("option " + o + " must be " + c, _.ERR_BAD_OPTION_VALUE);
|
|
3314
3314
|
continue;
|
|
3315
3315
|
}
|
|
3316
3316
|
if (r !== !0)
|
|
3317
|
-
throw new
|
|
3317
|
+
throw new _("Unknown option " + o, _.ERR_BAD_OPTION);
|
|
3318
3318
|
}
|
|
3319
3319
|
}
|
|
3320
3320
|
const Er = {
|
|
3321
|
-
assertOptions:
|
|
3322
|
-
validators:
|
|
3323
|
-
},
|
|
3321
|
+
assertOptions: Ka,
|
|
3322
|
+
validators: Br
|
|
3323
|
+
}, He = Er.validators;
|
|
3324
3324
|
class Qt {
|
|
3325
3325
|
constructor(t) {
|
|
3326
3326
|
this.defaults = t, this.interceptors = {
|
|
@@ -3340,14 +3340,14 @@ class Qt {
|
|
|
3340
3340
|
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = ct(this.defaults, r);
|
|
3341
3341
|
const { transitional: n, paramsSerializer: i, headers: o } = r;
|
|
3342
3342
|
n !== void 0 && Er.assertOptions(n, {
|
|
3343
|
-
silentJSONParsing:
|
|
3344
|
-
forcedJSONParsing:
|
|
3345
|
-
clarifyTimeoutError:
|
|
3343
|
+
silentJSONParsing: He.transitional(He.boolean),
|
|
3344
|
+
forcedJSONParsing: He.transitional(He.boolean),
|
|
3345
|
+
clarifyTimeoutError: He.transitional(He.boolean)
|
|
3346
3346
|
}, !1), i != null && (v.isFunction(i) ? r.paramsSerializer = {
|
|
3347
3347
|
serialize: i
|
|
3348
3348
|
} : Er.assertOptions(i, {
|
|
3349
|
-
encode:
|
|
3350
|
-
serialize:
|
|
3349
|
+
encode: He.function,
|
|
3350
|
+
serialize: He.function
|
|
3351
3351
|
}, !0)), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
3352
3352
|
let A = o && v.merge(
|
|
3353
3353
|
o.common,
|
|
@@ -3355,8 +3355,8 @@ class Qt {
|
|
|
3355
3355
|
);
|
|
3356
3356
|
o && v.forEach(
|
|
3357
3357
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
3358
|
-
(
|
|
3359
|
-
delete o[
|
|
3358
|
+
(p) => {
|
|
3359
|
+
delete o[p];
|
|
3360
3360
|
}
|
|
3361
3361
|
), r.headers = Re.concat(A, o);
|
|
3362
3362
|
const a = [];
|
|
@@ -3370,17 +3370,17 @@ class Qt {
|
|
|
3370
3370
|
});
|
|
3371
3371
|
let u, d = 0, h;
|
|
3372
3372
|
if (!c) {
|
|
3373
|
-
const
|
|
3374
|
-
for (
|
|
3375
|
-
u = u.then(
|
|
3373
|
+
const p = [zn.bind(this), void 0];
|
|
3374
|
+
for (p.unshift.apply(p, a), p.push.apply(p, s), h = p.length, u = Promise.resolve(r); d < h; )
|
|
3375
|
+
u = u.then(p[d++], p[d++]);
|
|
3376
3376
|
return u;
|
|
3377
3377
|
}
|
|
3378
3378
|
h = a.length;
|
|
3379
3379
|
let q = r;
|
|
3380
3380
|
for (d = 0; d < h; ) {
|
|
3381
|
-
const
|
|
3381
|
+
const p = a[d++], y = a[d++];
|
|
3382
3382
|
try {
|
|
3383
|
-
q =
|
|
3383
|
+
q = p(q);
|
|
3384
3384
|
} catch (C) {
|
|
3385
3385
|
y.call(this, C);
|
|
3386
3386
|
break;
|
|
@@ -3388,8 +3388,8 @@ class Qt {
|
|
|
3388
3388
|
}
|
|
3389
3389
|
try {
|
|
3390
3390
|
u = zn.call(this, q);
|
|
3391
|
-
} catch (
|
|
3392
|
-
return Promise.reject(
|
|
3391
|
+
} catch (p) {
|
|
3392
|
+
return Promise.reject(p);
|
|
3393
3393
|
}
|
|
3394
3394
|
for (d = 0, h = s.length; d < h; )
|
|
3395
3395
|
u = u.then(s[d++], s[d++]);
|
|
@@ -3578,14 +3578,14 @@ function Yi(e) {
|
|
|
3578
3578
|
return Yi(ct(e, i));
|
|
3579
3579
|
}, r;
|
|
3580
3580
|
}
|
|
3581
|
-
const fe = Yi(
|
|
3581
|
+
const fe = Yi(Vr);
|
|
3582
3582
|
fe.Axios = Ht;
|
|
3583
3583
|
fe.CanceledError = Mt;
|
|
3584
3584
|
fe.CancelToken = Wa;
|
|
3585
3585
|
fe.isCancel = Mi;
|
|
3586
3586
|
fe.VERSION = Ei;
|
|
3587
3587
|
fe.toFormData = ir;
|
|
3588
|
-
fe.AxiosError =
|
|
3588
|
+
fe.AxiosError = _;
|
|
3589
3589
|
fe.Cancel = fe.CanceledError;
|
|
3590
3590
|
fe.all = function(t) {
|
|
3591
3591
|
return Promise.all(t);
|
|
@@ -3669,13 +3669,13 @@ function kr(e, t) {
|
|
|
3669
3669
|
kr({ read: Nn.decodeValue, write: Nn.encodeValue }, $r);
|
|
3670
3670
|
let Di;
|
|
3671
3671
|
typeof window < "u" && (Di = Ni("token"));
|
|
3672
|
-
const
|
|
3672
|
+
const Ie = Sa.create({
|
|
3673
3673
|
headers: {
|
|
3674
3674
|
Authorization: Di
|
|
3675
3675
|
}
|
|
3676
3676
|
});
|
|
3677
3677
|
async function It(e, t, r, n, i, o, A, a) {
|
|
3678
|
-
return (await
|
|
3678
|
+
return (await Ie.post(e + "/createPlayableVersionLink", {
|
|
3679
3679
|
_id: t,
|
|
3680
3680
|
nano: r,
|
|
3681
3681
|
network: n,
|
|
@@ -3698,12 +3698,12 @@ function Gi(e) {
|
|
|
3698
3698
|
e[t] && (n && (n += " "), n += t);
|
|
3699
3699
|
return n;
|
|
3700
3700
|
}
|
|
3701
|
-
function
|
|
3701
|
+
function Xe() {
|
|
3702
3702
|
for (var e, t, r = 0, n = ""; r < arguments.length; )
|
|
3703
3703
|
(e = arguments[r++]) && (t = Gi(e)) && (n && (n += " "), n += t);
|
|
3704
3704
|
return n;
|
|
3705
3705
|
}
|
|
3706
|
-
const bt = (e) => typeof e == "number" && !isNaN(e),
|
|
3706
|
+
const bt = (e) => typeof e == "number" && !isNaN(e), nt = (e) => typeof e == "string", ve = (e) => typeof e == "function", Xt = (e) => nt(e) || ve(e) ? e : null, Ir = (e) => ut(e) || nt(e) || ve(e) || bt(e);
|
|
3707
3707
|
function ka(e, t, r) {
|
|
3708
3708
|
r === void 0 && (r = 300);
|
|
3709
3709
|
const { scrollHeight: n, style: i } = e;
|
|
@@ -3717,24 +3717,24 @@ function Ar(e) {
|
|
|
3717
3717
|
let { enter: t, exit: r, appendPosition: n = !1, collapse: i = !0, collapseDuration: o = 300 } = e;
|
|
3718
3718
|
return function(A) {
|
|
3719
3719
|
let { children: a, position: c, preventExitTransition: s, done: u, nodeRef: d, isIn: h } = A;
|
|
3720
|
-
const q = n ? `${t}--${c}` : t,
|
|
3721
|
-
return
|
|
3722
|
-
const C = d.current, I = q.split(" "), k = (
|
|
3723
|
-
|
|
3720
|
+
const q = n ? `${t}--${c}` : t, p = n ? `${r}--${c}` : r, y = _e(0);
|
|
3721
|
+
return Ko(() => {
|
|
3722
|
+
const C = d.current, I = q.split(" "), k = (N) => {
|
|
3723
|
+
N.target === d.current && (C.dispatchEvent(new Event("d")), C.removeEventListener("animationend", k), C.removeEventListener("animationcancel", k), y.current === 0 && N.type !== "animationcancel" && C.classList.remove(...I));
|
|
3724
3724
|
};
|
|
3725
3725
|
C.classList.add(...I), C.addEventListener("animationend", k), C.addEventListener("animationcancel", k);
|
|
3726
3726
|
}, []), be(() => {
|
|
3727
3727
|
const C = d.current, I = () => {
|
|
3728
3728
|
C.removeEventListener("animationend", I), i ? ka(C, u, o) : u();
|
|
3729
3729
|
};
|
|
3730
|
-
h || (s ? I() : (y.current = 1, C.className += ` ${
|
|
3731
|
-
}, [h]),
|
|
3730
|
+
h || (s ? I() : (y.current = 1, C.className += ` ${p}`, C.addEventListener("animationend", I)));
|
|
3731
|
+
}, [h]), re.createElement(re.Fragment, null, a);
|
|
3732
3732
|
};
|
|
3733
3733
|
}
|
|
3734
3734
|
function Dn(e, t) {
|
|
3735
3735
|
return e != null ? { content: e.content, containerId: e.props.containerId, id: e.props.toastId, theme: e.props.theme, type: e.props.type, data: e.props.data || {}, isLoading: e.props.isLoading, icon: e.props.icon, status: t } : {};
|
|
3736
3736
|
}
|
|
3737
|
-
const
|
|
3737
|
+
const Oe = { list: /* @__PURE__ */ new Map(), emitQueue: /* @__PURE__ */ new Map(), on(e, t) {
|
|
3738
3738
|
return this.list.has(e) || this.list.set(e, []), this.list.get(e).push(t), this;
|
|
3739
3739
|
}, off(e, t) {
|
|
3740
3740
|
if (t) {
|
|
@@ -3754,87 +3754,87 @@ const xe = { list: /* @__PURE__ */ new Map(), emitQueue: /* @__PURE__ */ new Map
|
|
|
3754
3754
|
});
|
|
3755
3755
|
} }, jt = (e) => {
|
|
3756
3756
|
let { theme: t, type: r, ...n } = e;
|
|
3757
|
-
return
|
|
3758
|
-
},
|
|
3759
|
-
return
|
|
3757
|
+
return re.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: t === "colored" ? "currentColor" : `var(--toastify-icon-color-${r})`, ...n });
|
|
3758
|
+
}, wr = { info: function(e) {
|
|
3759
|
+
return re.createElement(jt, { ...e }, re.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" }));
|
|
3760
3760
|
}, warning: function(e) {
|
|
3761
|
-
return
|
|
3761
|
+
return re.createElement(jt, { ...e }, re.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" }));
|
|
3762
3762
|
}, success: function(e) {
|
|
3763
|
-
return
|
|
3763
|
+
return re.createElement(jt, { ...e }, re.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" }));
|
|
3764
3764
|
}, error: function(e) {
|
|
3765
|
-
return
|
|
3765
|
+
return re.createElement(jt, { ...e }, re.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" }));
|
|
3766
3766
|
}, spinner: function() {
|
|
3767
|
-
return
|
|
3767
|
+
return re.createElement("div", { className: "Toastify__spinner" });
|
|
3768
3768
|
} };
|
|
3769
3769
|
function za(e) {
|
|
3770
|
-
const [, t] =
|
|
3770
|
+
const [, t] = wo((q) => q + 1, 0), [r, n] = V([]), i = _e(null), o = _e(/* @__PURE__ */ new Map()).current, A = (q) => r.indexOf(q) !== -1, a = _e({ toastKey: 1, displayedToast: 0, count: 0, queue: [], props: e, containerId: null, isToastActive: A, getToast: (q) => o.get(q) }).current;
|
|
3771
3771
|
function c(q) {
|
|
3772
|
-
let { containerId:
|
|
3772
|
+
let { containerId: p } = q;
|
|
3773
3773
|
const { limit: y } = a.props;
|
|
3774
|
-
!y ||
|
|
3774
|
+
!y || p && a.containerId !== p || (a.count -= a.queue.length, a.queue = []);
|
|
3775
3775
|
}
|
|
3776
3776
|
function s(q) {
|
|
3777
|
-
n((
|
|
3777
|
+
n((p) => q == null ? [] : p.filter((y) => y !== q));
|
|
3778
3778
|
}
|
|
3779
3779
|
function u() {
|
|
3780
|
-
const { toastContent: q, toastProps:
|
|
3781
|
-
h(q,
|
|
3780
|
+
const { toastContent: q, toastProps: p, staleId: y } = a.queue.shift();
|
|
3781
|
+
h(q, p, y);
|
|
3782
3782
|
}
|
|
3783
|
-
function d(q,
|
|
3784
|
-
let { delay: y, staleId: C, ...I } =
|
|
3785
|
-
if (!Ir(q) || function(
|
|
3786
|
-
return !i.current || a.props.enableMultiContainer &&
|
|
3783
|
+
function d(q, p) {
|
|
3784
|
+
let { delay: y, staleId: C, ...I } = p;
|
|
3785
|
+
if (!Ir(q) || function(ee) {
|
|
3786
|
+
return !i.current || a.props.enableMultiContainer && ee.containerId !== a.props.containerId || o.has(ee.toastId) && ee.updateId == null;
|
|
3787
3787
|
}(I))
|
|
3788
3788
|
return;
|
|
3789
|
-
const { toastId: k, updateId:
|
|
3789
|
+
const { toastId: k, updateId: N, data: E } = I, { props: b } = a, U = () => s(k), se = N == null;
|
|
3790
3790
|
se && a.count++;
|
|
3791
|
-
const
|
|
3792
|
-
let [P,
|
|
3793
|
-
return
|
|
3794
|
-
})), toastId: k, updateId:
|
|
3795
|
-
const
|
|
3796
|
-
o.delete(k),
|
|
3791
|
+
const $ = { ...b, style: b.toastStyle, key: a.toastKey++, ...Object.fromEntries(Object.entries(I).filter((ee) => {
|
|
3792
|
+
let [P, x] = ee;
|
|
3793
|
+
return x != null;
|
|
3794
|
+
})), toastId: k, updateId: N, data: E, closeToast: U, isIn: !1, className: Xt(I.className || b.toastClassName), bodyClassName: Xt(I.bodyClassName || b.bodyClassName), progressClassName: Xt(I.progressClassName || b.progressClassName), autoClose: !I.isLoading && (ne = I.autoClose, ce = b.autoClose, ne === !1 || bt(ne) && ne > 0 ? ne : ce), deleteToast() {
|
|
3795
|
+
const ee = Dn(o.get(k), "removed");
|
|
3796
|
+
o.delete(k), Oe.emit(4, ee);
|
|
3797
3797
|
const P = a.queue.length;
|
|
3798
3798
|
if (a.count = k == null ? a.count - a.displayedToast : a.count - 1, a.count < 0 && (a.count = 0), P > 0) {
|
|
3799
|
-
const
|
|
3800
|
-
if (P === 1 ||
|
|
3799
|
+
const x = k == null ? a.props.limit : 1;
|
|
3800
|
+
if (P === 1 || x === 1)
|
|
3801
3801
|
a.displayedToast++, u();
|
|
3802
3802
|
else {
|
|
3803
|
-
const
|
|
3804
|
-
a.displayedToast =
|
|
3805
|
-
for (let
|
|
3803
|
+
const w = x > P ? P : x;
|
|
3804
|
+
a.displayedToast = w;
|
|
3805
|
+
for (let L = 0; L < w; L++)
|
|
3806
3806
|
u();
|
|
3807
3807
|
}
|
|
3808
3808
|
} else
|
|
3809
3809
|
t();
|
|
3810
3810
|
} };
|
|
3811
|
-
var
|
|
3812
|
-
|
|
3813
|
-
let { theme: P, type:
|
|
3814
|
-
const W = { theme: P, type:
|
|
3815
|
-
return
|
|
3816
|
-
}(
|
|
3817
|
-
let
|
|
3818
|
-
ut(q) && !
|
|
3819
|
-
h(
|
|
3820
|
-
}, y) : h(
|
|
3821
|
-
}
|
|
3822
|
-
function h(q,
|
|
3823
|
-
const { toastId: C } =
|
|
3811
|
+
var ne, ce;
|
|
3812
|
+
$.iconOut = function(ee) {
|
|
3813
|
+
let { theme: P, type: x, isLoading: w, icon: L } = ee, f = null;
|
|
3814
|
+
const W = { theme: P, type: x };
|
|
3815
|
+
return L === !1 || (ve(L) ? f = L(W) : ut(L) ? f = xr(L, W) : nt(L) || bt(L) ? f = L : w ? f = wr.spinner() : ((J) => J in wr)(x) && (f = wr[x](W))), f;
|
|
3816
|
+
}($), ve(I.onOpen) && ($.onOpen = I.onOpen), ve(I.onClose) && ($.onClose = I.onClose), $.closeButton = b.closeButton, I.closeButton === !1 || Ir(I.closeButton) ? $.closeButton = I.closeButton : I.closeButton === !0 && ($.closeButton = !Ir(b.closeButton) || b.closeButton);
|
|
3817
|
+
let ae = q;
|
|
3818
|
+
ut(q) && !nt(q.type) ? ae = xr(q, { closeToast: U, toastProps: $, data: E }) : ve(q) && (ae = q({ closeToast: U, toastProps: $, data: E })), b.limit && b.limit > 0 && a.count > b.limit && se ? a.queue.push({ toastContent: ae, toastProps: $, staleId: C }) : bt(y) ? setTimeout(() => {
|
|
3819
|
+
h(ae, $, C);
|
|
3820
|
+
}, y) : h(ae, $, C);
|
|
3821
|
+
}
|
|
3822
|
+
function h(q, p, y) {
|
|
3823
|
+
const { toastId: C } = p;
|
|
3824
3824
|
y && o.delete(y);
|
|
3825
|
-
const I = { content: q, props:
|
|
3826
|
-
o.set(C, I), n((k) => [...k, C].filter((
|
|
3825
|
+
const I = { content: q, props: p };
|
|
3826
|
+
o.set(C, I), n((k) => [...k, C].filter((N) => N !== y)), Oe.emit(4, Dn(I, I.props.updateId == null ? "added" : "updated"));
|
|
3827
3827
|
}
|
|
3828
|
-
return be(() => (a.containerId = e.containerId,
|
|
3829
|
-
o.clear(),
|
|
3828
|
+
return be(() => (a.containerId = e.containerId, Oe.cancelEmit(3).on(0, d).on(1, (q) => i.current && s(q)).on(5, c).emit(2, a), () => {
|
|
3829
|
+
o.clear(), Oe.emit(3, a);
|
|
3830
3830
|
}), []), be(() => {
|
|
3831
3831
|
a.props = e, a.isToastActive = A, a.displayedToast = r.length;
|
|
3832
3832
|
}), { getToastToRender: function(q) {
|
|
3833
|
-
const
|
|
3833
|
+
const p = /* @__PURE__ */ new Map(), y = Array.from(o.values());
|
|
3834
3834
|
return e.newestOnTop && y.reverse(), y.forEach((C) => {
|
|
3835
3835
|
const { position: I } = C.props;
|
|
3836
|
-
|
|
3837
|
-
}), Array.from(
|
|
3836
|
+
p.has(I) || p.set(I, []), p.get(I).push(C);
|
|
3837
|
+
}), Array.from(p, (C) => q(C[0], C[1]));
|
|
3838
3838
|
}, containerRef: i, isToastActive: A };
|
|
3839
3839
|
}
|
|
3840
3840
|
function Gn(e) {
|
|
@@ -3844,18 +3844,18 @@ function Rn(e) {
|
|
|
3844
3844
|
return e.targetTouches && e.targetTouches.length >= 1 ? e.targetTouches[0].clientY : e.clientY;
|
|
3845
3845
|
}
|
|
3846
3846
|
function ja(e) {
|
|
3847
|
-
const [t, r] =
|
|
3848
|
-
function q(
|
|
3847
|
+
const [t, r] = V(!1), [n, i] = V(!1), o = _e(null), A = _e({ start: 0, x: 0, y: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, boundingRect: null, didMove: !1 }).current, a = _e(e), { autoClose: c, pauseOnHover: s, closeToast: u, onClick: d, closeOnClick: h } = e;
|
|
3848
|
+
function q(E) {
|
|
3849
3849
|
if (e.draggable) {
|
|
3850
|
-
|
|
3850
|
+
E.nativeEvent.type === "touchstart" && E.nativeEvent.preventDefault(), A.didMove = !1, document.addEventListener("mousemove", I), document.addEventListener("mouseup", k), document.addEventListener("touchmove", I), document.addEventListener("touchend", k);
|
|
3851
3851
|
const b = o.current;
|
|
3852
|
-
A.canCloseOnClick = !0, A.canDrag = !0, A.boundingRect = b.getBoundingClientRect(), b.style.transition = "", A.x = Gn(
|
|
3852
|
+
A.canCloseOnClick = !0, A.canDrag = !0, A.boundingRect = b.getBoundingClientRect(), b.style.transition = "", A.x = Gn(E.nativeEvent), A.y = Rn(E.nativeEvent), e.draggableDirection === "x" ? (A.start = A.x, A.removalDistance = b.offsetWidth * (e.draggablePercent / 100)) : (A.start = A.y, A.removalDistance = b.offsetHeight * (e.draggablePercent === 80 ? 1.5 * e.draggablePercent : e.draggablePercent / 100));
|
|
3853
3853
|
}
|
|
3854
3854
|
}
|
|
3855
|
-
function
|
|
3855
|
+
function p(E) {
|
|
3856
3856
|
if (A.boundingRect) {
|
|
3857
|
-
const { top: b, bottom:
|
|
3858
|
-
|
|
3857
|
+
const { top: b, bottom: U, left: se, right: $ } = A.boundingRect;
|
|
3858
|
+
E.nativeEvent.type !== "touchend" && e.pauseOnHover && A.x >= se && A.x <= $ && A.y >= b && A.y <= U ? C() : y();
|
|
3859
3859
|
}
|
|
3860
3860
|
}
|
|
3861
3861
|
function y() {
|
|
@@ -3864,51 +3864,51 @@ function ja(e) {
|
|
|
3864
3864
|
function C() {
|
|
3865
3865
|
r(!1);
|
|
3866
3866
|
}
|
|
3867
|
-
function I(
|
|
3867
|
+
function I(E) {
|
|
3868
3868
|
const b = o.current;
|
|
3869
|
-
A.canDrag && b && (A.didMove = !0, t && C(), A.x = Gn(
|
|
3869
|
+
A.canDrag && b && (A.didMove = !0, t && C(), A.x = Gn(E), A.y = Rn(E), A.delta = e.draggableDirection === "x" ? A.x - A.start : A.y - A.start, A.start !== A.x && (A.canCloseOnClick = !1), b.style.transform = `translate${e.draggableDirection}(${A.delta}px)`, b.style.opacity = "" + (1 - Math.abs(A.delta / A.removalDistance)));
|
|
3870
3870
|
}
|
|
3871
3871
|
function k() {
|
|
3872
3872
|
document.removeEventListener("mousemove", I), document.removeEventListener("mouseup", k), document.removeEventListener("touchmove", I), document.removeEventListener("touchend", k);
|
|
3873
|
-
const
|
|
3874
|
-
if (A.canDrag && A.didMove &&
|
|
3873
|
+
const E = o.current;
|
|
3874
|
+
if (A.canDrag && A.didMove && E) {
|
|
3875
3875
|
if (A.canDrag = !1, Math.abs(A.delta) > A.removalDistance)
|
|
3876
3876
|
return i(!0), void e.closeToast();
|
|
3877
|
-
|
|
3877
|
+
E.style.transition = "transform 0.2s, opacity 0.2s", E.style.transform = `translate${e.draggableDirection}(0)`, E.style.opacity = "1";
|
|
3878
3878
|
}
|
|
3879
3879
|
}
|
|
3880
3880
|
be(() => {
|
|
3881
3881
|
a.current = e;
|
|
3882
|
-
}), be(() => (o.current && o.current.addEventListener("d", y, { once: !0 }),
|
|
3883
|
-
const
|
|
3884
|
-
|
|
3882
|
+
}), be(() => (o.current && o.current.addEventListener("d", y, { once: !0 }), ve(e.onOpen) && e.onOpen(ut(e.children) && e.children.props), () => {
|
|
3883
|
+
const E = a.current;
|
|
3884
|
+
ve(E.onClose) && E.onClose(ut(E.children) && E.children.props);
|
|
3885
3885
|
}), []), be(() => (e.pauseOnFocusLoss && (document.hasFocus() || C(), window.addEventListener("focus", y), window.addEventListener("blur", C)), () => {
|
|
3886
3886
|
e.pauseOnFocusLoss && (window.removeEventListener("focus", y), window.removeEventListener("blur", C));
|
|
3887
3887
|
}), [e.pauseOnFocusLoss]);
|
|
3888
|
-
const
|
|
3889
|
-
return c && s && (
|
|
3890
|
-
d && d(
|
|
3891
|
-
}), { playToast: y, pauseToast: C, isRunning: t, preventExitTransition: n, toastRef: o, eventHandlers:
|
|
3888
|
+
const N = { onMouseDown: q, onTouchStart: q, onMouseUp: p, onTouchEnd: p };
|
|
3889
|
+
return c && s && (N.onMouseEnter = C, N.onMouseLeave = y), h && (N.onClick = (E) => {
|
|
3890
|
+
d && d(E), A.canCloseOnClick && u();
|
|
3891
|
+
}), { playToast: y, pauseToast: C, isRunning: t, preventExitTransition: n, toastRef: o, eventHandlers: N };
|
|
3892
3892
|
}
|
|
3893
3893
|
function Ri(e) {
|
|
3894
3894
|
let { closeToast: t, theme: r, ariaLabel: n = "close" } = e;
|
|
3895
|
-
return
|
|
3895
|
+
return re.createElement("button", { className: `Toastify__close-button Toastify__close-button--${r}`, type: "button", onClick: (i) => {
|
|
3896
3896
|
i.stopPropagation(), t(i);
|
|
3897
|
-
}, "aria-label": n },
|
|
3897
|
+
}, "aria-label": n }, re.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, re.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" })));
|
|
3898
3898
|
}
|
|
3899
3899
|
function Ja(e) {
|
|
3900
3900
|
let { delay: t, isRunning: r, closeToast: n, type: i = "default", hide: o, className: A, style: a, controlledProgress: c, progress: s, rtl: u, isIn: d, theme: h } = e;
|
|
3901
|
-
const q = o || c && s === 0,
|
|
3902
|
-
c && (
|
|
3903
|
-
const y =
|
|
3904
|
-
return
|
|
3901
|
+
const q = o || c && s === 0, p = { ...a, animationDuration: `${t}ms`, animationPlayState: r ? "running" : "paused", opacity: q ? 0 : 1 };
|
|
3902
|
+
c && (p.transform = `scaleX(${s})`);
|
|
3903
|
+
const y = Xe("Toastify__progress-bar", c ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${h}`, `Toastify__progress-bar--${i}`, { "Toastify__progress-bar--rtl": u }), C = ve(A) ? A({ rtl: u, type: i, defaultClassName: y }) : Xe(y, A);
|
|
3904
|
+
return re.createElement("div", { role: "progressbar", "aria-hidden": q ? "true" : "false", "aria-label": "notification timer", className: C, style: p, [c && s >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: c && s < 1 ? null : () => {
|
|
3905
3905
|
d && n();
|
|
3906
3906
|
} });
|
|
3907
3907
|
}
|
|
3908
3908
|
const Na = (e) => {
|
|
3909
|
-
const { isRunning: t, preventExitTransition: r, toastRef: n, eventHandlers: i } = ja(e), { closeButton: o, children: A, autoClose: a, onClick: c, type: s, hideProgressBar: u, closeToast: d, transition: h, position: q, className:
|
|
3909
|
+
const { isRunning: t, preventExitTransition: r, toastRef: n, eventHandlers: i } = ja(e), { closeButton: o, children: A, autoClose: a, onClick: c, type: s, hideProgressBar: u, closeToast: d, transition: h, position: q, className: p, style: y, bodyClassName: C, bodyStyle: I, progressClassName: k, progressStyle: N, updateId: E, role: b, progress: U, rtl: se, toastId: $, deleteToast: ne, isIn: ce, isLoading: ae, iconOut: ee, closeOnClick: P, theme: x } = e, w = Xe("Toastify__toast", `Toastify__toast-theme--${x}`, `Toastify__toast--${s}`, { "Toastify__toast--rtl": se }, { "Toastify__toast--close-on-click": P }), L = ve(p) ? p({ rtl: se, position: q, type: s, defaultClassName: w }) : Xe(w, p), f = !!U || !a, W = { closeToast: d, type: s, theme: x };
|
|
3910
3910
|
let J = null;
|
|
3911
|
-
return o === !1 || (J =
|
|
3911
|
+
return o === !1 || (J = ve(o) ? o(W) : ut(o) ? xr(o, W) : Ri(W)), re.createElement(h, { isIn: ce, done: ne, position: q, preventExitTransition: r, nodeRef: n }, re.createElement("div", { id: $, onClick: c, className: L, ...i, style: y, ref: n }, re.createElement("div", { ...ce && { role: b }, className: ve(C) ? C({ type: s }) : Xe("Toastify__toast-body", C), style: I }, ee != null && re.createElement("div", { className: Xe("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !ae }) }, ee), re.createElement("div", null, A)), J, re.createElement(Ja, { ...E && !f ? { key: `pb-${E}` } : {}, rtl: se, theme: x, delay: a, isRunning: t, isIn: ce, closeToast: d, hide: u, type: s, style: N, className: k, controlledProgress: f, progress: U || 0 })));
|
|
3912
3912
|
}, ar = function(e, t) {
|
|
3913
3913
|
return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
|
|
3914
3914
|
}, Da = Ar(ar("bounce", !0));
|
|
@@ -3918,29 +3918,29 @@ Ar(ar("flip"));
|
|
|
3918
3918
|
const zr = Io((e, t) => {
|
|
3919
3919
|
const { getToastToRender: r, containerRef: n, isToastActive: i } = za(e), { className: o, style: A, rtl: a, containerId: c } = e;
|
|
3920
3920
|
function s(u) {
|
|
3921
|
-
const d =
|
|
3922
|
-
return
|
|
3921
|
+
const d = Xe("Toastify__toast-container", `Toastify__toast-container--${u}`, { "Toastify__toast-container--rtl": a });
|
|
3922
|
+
return ve(o) ? o({ position: u, rtl: a, defaultClassName: d }) : Xe(d, Xt(o));
|
|
3923
3923
|
}
|
|
3924
3924
|
return be(() => {
|
|
3925
3925
|
t && (t.current = n.current);
|
|
3926
|
-
}, []),
|
|
3926
|
+
}, []), re.createElement("div", { ref: n, className: "Toastify", id: c }, r((u, d) => {
|
|
3927
3927
|
const h = d.length ? { ...A } : { ...A, pointerEvents: "none" };
|
|
3928
|
-
return
|
|
3928
|
+
return re.createElement("div", { className: s(u), style: h, key: `container-${u}` }, d.map((q, p) => {
|
|
3929
3929
|
let { content: y, props: C } = q;
|
|
3930
|
-
return
|
|
3930
|
+
return re.createElement(Na, { ...C, isIn: i(C.toastId), style: { ...C.style, "--nth": p + 1, "--len": d.length }, key: `toast-${C.key}` }, y);
|
|
3931
3931
|
}));
|
|
3932
3932
|
}));
|
|
3933
3933
|
});
|
|
3934
3934
|
zr.displayName = "ToastContainer", zr.defaultProps = { position: "top-right", transition: Da, autoClose: 5e3, closeButton: Ri, pauseOnHover: !0, pauseOnFocusLoss: !0, closeOnClick: !0, draggable: !0, draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light" };
|
|
3935
|
-
let
|
|
3935
|
+
let Kr, Ue = /* @__PURE__ */ new Map(), vt = [], Ga = 1;
|
|
3936
3936
|
function Ti() {
|
|
3937
3937
|
return "" + Ga++;
|
|
3938
3938
|
}
|
|
3939
3939
|
function Ra(e) {
|
|
3940
|
-
return e && (
|
|
3940
|
+
return e && (nt(e.toastId) || bt(e.toastId)) ? e.toastId : Ti();
|
|
3941
3941
|
}
|
|
3942
3942
|
function Ct(e, t) {
|
|
3943
|
-
return
|
|
3943
|
+
return Ue.size > 0 ? Oe.emit(0, e, t) : vt.push({ content: e, options: t }), t.toastId;
|
|
3944
3944
|
}
|
|
3945
3945
|
function Pt(e, t) {
|
|
3946
3946
|
return { ...t, type: t && t.type || e, toastId: Ra(t) };
|
|
@@ -3953,28 +3953,28 @@ function ue(e, t) {
|
|
|
3953
3953
|
}
|
|
3954
3954
|
ue.loading = (e, t) => Ct(e, Pt("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t })), ue.promise = function(e, t, r) {
|
|
3955
3955
|
let n, { pending: i, error: o, success: A } = t;
|
|
3956
|
-
i && (n =
|
|
3956
|
+
i && (n = nt(i) ? ue.loading(i, r) : ue.loading(i.render, { ...r, ...i }));
|
|
3957
3957
|
const a = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, c = (u, d, h) => {
|
|
3958
3958
|
if (d == null)
|
|
3959
3959
|
return void ue.dismiss(n);
|
|
3960
|
-
const q = { type: u, ...a, ...r, data: h },
|
|
3961
|
-
return n ? ue.update(n, { ...q, ...
|
|
3962
|
-
}, s =
|
|
3960
|
+
const q = { type: u, ...a, ...r, data: h }, p = nt(d) ? { render: d } : d;
|
|
3961
|
+
return n ? ue.update(n, { ...q, ...p }) : ue(p.render, { ...q, ...p }), h;
|
|
3962
|
+
}, s = ve(e) ? e() : e;
|
|
3963
3963
|
return s.then((u) => c("success", A, u)).catch((u) => c("error", o, u)), s;
|
|
3964
3964
|
}, ue.success = Jt("success"), ue.info = Jt("info"), ue.error = Jt("error"), ue.warning = Jt("warning"), ue.warn = ue.warning, ue.dark = (e, t) => Ct(e, Pt("default", { theme: "dark", ...t })), ue.dismiss = (e) => {
|
|
3965
|
-
|
|
3965
|
+
Ue.size > 0 ? Oe.emit(1, e) : vt = vt.filter((t) => e != null && t.options.toastId !== e);
|
|
3966
3966
|
}, ue.clearWaitingQueue = function(e) {
|
|
3967
|
-
return e === void 0 && (e = {}),
|
|
3967
|
+
return e === void 0 && (e = {}), Oe.emit(5, e);
|
|
3968
3968
|
}, ue.isActive = (e) => {
|
|
3969
3969
|
let t = !1;
|
|
3970
|
-
return
|
|
3970
|
+
return Ue.forEach((r) => {
|
|
3971
3971
|
r.isToastActive && r.isToastActive(e) && (t = !0);
|
|
3972
3972
|
}), t;
|
|
3973
3973
|
}, ue.update = function(e, t) {
|
|
3974
3974
|
t === void 0 && (t = {}), setTimeout(() => {
|
|
3975
3975
|
const r = function(n, i) {
|
|
3976
3976
|
let { containerId: o } = i;
|
|
3977
|
-
const A =
|
|
3977
|
+
const A = Ue.get(o || Kr);
|
|
3978
3978
|
return A && A.getToast(n);
|
|
3979
3979
|
}(e, t);
|
|
3980
3980
|
if (r) {
|
|
@@ -3986,14 +3986,14 @@ ue.loading = (e, t) => Ct(e, Pt("default", { isLoading: !0, autoClose: !1, close
|
|
|
3986
3986
|
}, 0);
|
|
3987
3987
|
}, ue.done = (e) => {
|
|
3988
3988
|
ue.update(e, { progress: 1 });
|
|
3989
|
-
}, ue.onChange = (e) => (
|
|
3990
|
-
|
|
3991
|
-
}), ue.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" }, ue.TYPE = { INFO: "info", SUCCESS: "success", WARNING: "warning", ERROR: "error", DEFAULT: "default" },
|
|
3992
|
-
|
|
3993
|
-
|
|
3989
|
+
}, ue.onChange = (e) => (Oe.on(4, e), () => {
|
|
3990
|
+
Oe.off(4, e);
|
|
3991
|
+
}), ue.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" }, ue.TYPE = { INFO: "info", SUCCESS: "success", WARNING: "warning", ERROR: "error", DEFAULT: "default" }, Oe.on(2, (e) => {
|
|
3992
|
+
Kr = e.containerId || e, Ue.set(Kr, e), vt.forEach((t) => {
|
|
3993
|
+
Oe.emit(0, t.content, t.options);
|
|
3994
3994
|
}), vt = [];
|
|
3995
3995
|
}).on(3, (e) => {
|
|
3996
|
-
|
|
3996
|
+
Ue.delete(e.containerId || e), Ue.size === 0 && Oe.off(0).off(1).off(5);
|
|
3997
3997
|
});
|
|
3998
3998
|
function Tn(e) {
|
|
3999
3999
|
ue.error(e, {
|
|
@@ -4007,7 +4007,7 @@ function Tn(e) {
|
|
|
4007
4007
|
theme: "light"
|
|
4008
4008
|
});
|
|
4009
4009
|
}
|
|
4010
|
-
function
|
|
4010
|
+
function $e(e) {
|
|
4011
4011
|
ue.success(e, {
|
|
4012
4012
|
position: "top-center",
|
|
4013
4013
|
autoClose: 650,
|
|
@@ -4023,15 +4023,17 @@ const Ta = ({
|
|
|
4023
4023
|
versionId: e,
|
|
4024
4024
|
typeOfProduct: t,
|
|
4025
4025
|
api: r,
|
|
4026
|
-
fetchFileUrl: n
|
|
4026
|
+
fetchFileUrl: n,
|
|
4027
|
+
copyLinkFlexUrl: i,
|
|
4028
|
+
copyLinkPlayableUrl: o
|
|
4027
4029
|
}) => {
|
|
4028
|
-
const
|
|
4030
|
+
const A = async () => {
|
|
4029
4031
|
if (t === "Flex")
|
|
4030
4032
|
navigator.clipboard.writeText(
|
|
4031
|
-
|
|
4032
|
-
),
|
|
4033
|
+
`${i}/preview?versionId=${e}`
|
|
4034
|
+
), $e("Link copied");
|
|
4033
4035
|
else {
|
|
4034
|
-
const
|
|
4036
|
+
const a = await It(
|
|
4035
4037
|
r,
|
|
4036
4038
|
e,
|
|
4037
4039
|
"test",
|
|
@@ -4041,8 +4043,8 @@ const Ta = ({
|
|
|
4041
4043
|
"var type = e"
|
|
4042
4044
|
);
|
|
4043
4045
|
return navigator.clipboard.writeText(
|
|
4044
|
-
|
|
4045
|
-
),
|
|
4046
|
+
`${o}/test?version=${e}`
|
|
4047
|
+
), $e("Link coppied"), a == null ? void 0 : a.url;
|
|
4046
4048
|
}
|
|
4047
4049
|
};
|
|
4048
4050
|
return /* @__PURE__ */ m.jsxs(
|
|
@@ -4133,7 +4135,7 @@ const Ta = ({
|
|
|
4133
4135
|
color: "white",
|
|
4134
4136
|
background: "rgba(0, 163, 255, 0)"
|
|
4135
4137
|
},
|
|
4136
|
-
onClick:
|
|
4138
|
+
onClick: A,
|
|
4137
4139
|
children: "Copy Link"
|
|
4138
4140
|
}
|
|
4139
4141
|
)
|
|
@@ -4150,18 +4152,20 @@ const Ta = ({
|
|
|
4150
4152
|
typeOfProduct: r,
|
|
4151
4153
|
api: n,
|
|
4152
4154
|
iframeUrl: i,
|
|
4153
|
-
fetchFileUrl: o
|
|
4155
|
+
fetchFileUrl: o,
|
|
4156
|
+
copyLinkFlexUrl: A,
|
|
4157
|
+
copyLinkPlayableUrl: a
|
|
4154
4158
|
}) => {
|
|
4155
|
-
const [
|
|
4159
|
+
const [c, s] = V(window.innerWidth);
|
|
4156
4160
|
be(() => {
|
|
4157
|
-
const
|
|
4158
|
-
|
|
4161
|
+
const d = () => {
|
|
4162
|
+
s(window.innerWidth);
|
|
4159
4163
|
};
|
|
4160
|
-
return window.addEventListener("resize",
|
|
4161
|
-
window.removeEventListener("resize",
|
|
4164
|
+
return window.addEventListener("resize", d), () => {
|
|
4165
|
+
window.removeEventListener("resize", d);
|
|
4162
4166
|
};
|
|
4163
4167
|
}, []);
|
|
4164
|
-
const
|
|
4168
|
+
const u = (e == null ? void 0 : e.length) > 25 ? e.slice(0, 25) + "..." : e;
|
|
4165
4169
|
return /* @__PURE__ */ m.jsxs(
|
|
4166
4170
|
"div",
|
|
4167
4171
|
{
|
|
@@ -4171,20 +4175,22 @@ const Ta = ({
|
|
|
4171
4175
|
flexDirection: "column",
|
|
4172
4176
|
justifyContent: "space-between",
|
|
4173
4177
|
padding: "5px",
|
|
4174
|
-
height:
|
|
4178
|
+
height: c > 1440 ? "680px" : "620px",
|
|
4175
4179
|
borderRadius: "0px 0px 0px 16px",
|
|
4176
4180
|
marginTop: "20px"
|
|
4177
4181
|
},
|
|
4178
4182
|
children: [
|
|
4179
4183
|
/* @__PURE__ */ m.jsx(Yo, { iframeUrl: i }),
|
|
4180
|
-
/* @__PURE__ */ m.jsx(ko, { name:
|
|
4184
|
+
/* @__PURE__ */ m.jsx(ko, { name: u }),
|
|
4181
4185
|
/* @__PURE__ */ m.jsx(
|
|
4182
4186
|
Ta,
|
|
4183
4187
|
{
|
|
4184
4188
|
versionId: t,
|
|
4185
4189
|
typeOfProduct: r,
|
|
4186
4190
|
api: n,
|
|
4187
|
-
fetchFileUrl: o
|
|
4191
|
+
fetchFileUrl: o,
|
|
4192
|
+
copyLinkFlexUrl: A,
|
|
4193
|
+
copyLinkPlayableUrl: a
|
|
4188
4194
|
}
|
|
4189
4195
|
)
|
|
4190
4196
|
]
|
|
@@ -4214,7 +4220,7 @@ const Xa = ({ typeOfProduct: e }) => /* @__PURE__ */ m.jsxs(
|
|
|
4214
4220
|
}
|
|
4215
4221
|
);
|
|
4216
4222
|
async function Qa(e, t) {
|
|
4217
|
-
return (await
|
|
4223
|
+
return (await Ie.post(t + "/buyRequest", {
|
|
4218
4224
|
requestType: e
|
|
4219
4225
|
})).data;
|
|
4220
4226
|
}
|
|
@@ -4224,7 +4230,7 @@ const Pa = () => /* @__PURE__ */ m.jsxs("svg", { width: "24", height: "24", view
|
|
|
4224
4230
|
/* @__PURE__ */ m.jsx("path", { d: "M13.5068 17.977L19.4828 12L13.5068 6.02299", stroke: "#7101FF", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
4225
4231
|
] }),
|
|
4226
4232
|
/* @__PURE__ */ m.jsx("defs", { children: /* @__PURE__ */ m.jsx("clipPath", { id: "clip0_518_12094", children: /* @__PURE__ */ m.jsx("rect", { width: "24", height: "24", fill: "white", transform: "translate(0 24) rotate(-90)" }) }) })
|
|
4227
|
-
] }),
|
|
4233
|
+
] }), Va = ({ downloadFlex: e, api: t }) => /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
4228
4234
|
/* @__PURE__ */ m.jsx("div", { style: { marginTop: "0.5rem", paddingLeft: "1.5rem", paddingRight: "1.5rem", fontWeight: 100 }, children: "If you continue to export, you will spend 1 credit." }),
|
|
4229
4235
|
/* @__PURE__ */ m.jsxs("div", { style: { display: "flex", alignItems: "center", width: "100%", paddingLeft: "1.5rem", paddingRight: "1.5rem", paddingTop: "0.25rem", fontSize: "12px", fontWeight: 100 }, children: [
|
|
4230
4236
|
"You have",
|
|
@@ -4237,7 +4243,7 @@ const Pa = () => /* @__PURE__ */ m.jsxs("svg", { width: "24", height: "24", view
|
|
|
4237
4243
|
{
|
|
4238
4244
|
style: { marginLeft: "0.5rem", display: "flex", alignItems: "center", fontSize: "12px", fontWeight: "bold", textDecoration: "underline", color: "#yourColorHere" },
|
|
4239
4245
|
onClick: () => Qa("Flex Credit", t).then(
|
|
4240
|
-
(r) =>
|
|
4246
|
+
(r) => $e("You will be contacted regarding your request.")
|
|
4241
4247
|
),
|
|
4242
4248
|
children: [
|
|
4243
4249
|
"Get more",
|
|
@@ -4246,7 +4252,7 @@ const Pa = () => /* @__PURE__ */ m.jsxs("svg", { width: "24", height: "24", view
|
|
|
4246
4252
|
}
|
|
4247
4253
|
)
|
|
4248
4254
|
] })
|
|
4249
|
-
] }),
|
|
4255
|
+
] }), Ba = ({
|
|
4250
4256
|
typeOfProduct: e,
|
|
4251
4257
|
fileSize: t,
|
|
4252
4258
|
urls: r,
|
|
@@ -4338,7 +4344,7 @@ const Pa = () => /* @__PURE__ */ m.jsxs("svg", { width: "24", height: "24", view
|
|
|
4338
4344
|
// pl-2
|
|
4339
4345
|
color: "#000000",
|
|
4340
4346
|
// placeholder:text-black
|
|
4341
|
-
borderColor: e === "
|
|
4347
|
+
borderColor: e === "Flex" ? Ae.Flex : Ae.Playable
|
|
4342
4348
|
},
|
|
4343
4349
|
type: "text",
|
|
4344
4350
|
value: r.iosUrl,
|
|
@@ -4407,7 +4413,7 @@ const Pa = () => /* @__PURE__ */ m.jsxs("svg", { width: "24", height: "24", view
|
|
|
4407
4413
|
// pl-2
|
|
4408
4414
|
color: "#000000",
|
|
4409
4415
|
// placeholder:text-black
|
|
4410
|
-
borderColor: e === "
|
|
4416
|
+
borderColor: e === "Flex" ? Ae.Flex : Ae.Playable
|
|
4411
4417
|
},
|
|
4412
4418
|
type: "text",
|
|
4413
4419
|
value: r.googleUrl,
|
|
@@ -4419,7 +4425,7 @@ const Pa = () => /* @__PURE__ */ m.jsxs("svg", { width: "24", height: "24", view
|
|
|
4419
4425
|
]
|
|
4420
4426
|
}
|
|
4421
4427
|
),
|
|
4422
|
-
(a == null ? void 0 : a.willSpendCredit) && /* @__PURE__ */ m.jsx(
|
|
4428
|
+
(a == null ? void 0 : a.willSpendCredit) && /* @__PURE__ */ m.jsx(Va, { downloadFlex: a, api: A })
|
|
4423
4429
|
]
|
|
4424
4430
|
}
|
|
4425
4431
|
)
|
|
@@ -4463,7 +4469,7 @@ const Pa = () => /* @__PURE__ */ m.jsxs("svg", { width: "24", height: "24", view
|
|
|
4463
4469
|
children: [
|
|
4464
4470
|
/* @__PURE__ */ m.jsx(Ua, { typeOfProduct: e, title: n }),
|
|
4465
4471
|
/* @__PURE__ */ m.jsx(
|
|
4466
|
-
|
|
4472
|
+
Ba,
|
|
4467
4473
|
{
|
|
4468
4474
|
typeOfProduct: e,
|
|
4469
4475
|
fileSize: t,
|
|
@@ -4541,7 +4547,7 @@ const Hi = ({ fill: e, stroke: t, className: r, style: n }) => /* @__PURE__ */ m
|
|
|
4541
4547
|
children: e
|
|
4542
4548
|
}
|
|
4543
4549
|
), _a = ({ checked: e, typeOfProduct: t, id: r }) => {
|
|
4544
|
-
const [n, i] =
|
|
4550
|
+
const [n, i] = V(e);
|
|
4545
4551
|
be(() => {
|
|
4546
4552
|
i(e);
|
|
4547
4553
|
}, [e]);
|
|
@@ -4751,8 +4757,8 @@ const Xi = ({ typeOfProduct: e }) => /* @__PURE__ */ m.jsx(
|
|
|
4751
4757
|
]
|
|
4752
4758
|
}
|
|
4753
4759
|
);
|
|
4754
|
-
async function
|
|
4755
|
-
return e.network == "fb" && (e.zip = 1), (await
|
|
4760
|
+
async function Vt(e, t) {
|
|
4761
|
+
return e.network == "fb" && (e.zip = 1), (await Ie.post(t + "/createFlexVersionLink", e || {})).data;
|
|
4756
4762
|
}
|
|
4757
4763
|
const es = ({
|
|
4758
4764
|
onClose: e,
|
|
@@ -4876,7 +4882,7 @@ const es = ({
|
|
|
4876
4882
|
);
|
|
4877
4883
|
};
|
|
4878
4884
|
async function Xn(e, t) {
|
|
4879
|
-
return (await
|
|
4885
|
+
return (await Ie.post(t + "/putGame", e || {})).data;
|
|
4880
4886
|
}
|
|
4881
4887
|
const ts = ({
|
|
4882
4888
|
onClose: e,
|
|
@@ -4981,7 +4987,14 @@ const ts = ({
|
|
|
4981
4987
|
)
|
|
4982
4988
|
]
|
|
4983
4989
|
}
|
|
4984
|
-
)
|
|
4990
|
+
);
|
|
4991
|
+
async function Qn(e, t, r) {
|
|
4992
|
+
return (await Ie.post(r + "/updatePlayableVersion", {
|
|
4993
|
+
...t,
|
|
4994
|
+
_id: e
|
|
4995
|
+
})).data;
|
|
4996
|
+
}
|
|
4997
|
+
const Pn = [
|
|
4985
4998
|
"adcolony",
|
|
4986
4999
|
"ironsource",
|
|
4987
5000
|
"applovin",
|
|
@@ -5007,28 +5020,29 @@ const ts = ({
|
|
|
5007
5020
|
handleDownloadError: d,
|
|
5008
5021
|
fetchFileUrl: h,
|
|
5009
5022
|
setInstantGameModal: q,
|
|
5010
|
-
urls:
|
|
5023
|
+
urls: p,
|
|
5011
5024
|
game: y,
|
|
5012
5025
|
setIsConfirmActive: C,
|
|
5013
5026
|
downloadFlex: I,
|
|
5014
5027
|
flexDownloadCount: k,
|
|
5015
|
-
disabled:
|
|
5028
|
+
disabled: N
|
|
5016
5029
|
}) => {
|
|
5017
|
-
const [
|
|
5030
|
+
const [E, b] = V(!1), [U, se] = V(en(5)), [$, ne] = V(""), [ce, ae] = V(!1), [ee, P] = V(!1), [x, w] = V("download"), L = () => {
|
|
5018
5031
|
r(e);
|
|
5019
|
-
},
|
|
5032
|
+
}, f = async (J, g, K, O, D, G) => {
|
|
5020
5033
|
try {
|
|
5021
|
-
if (b(!0),
|
|
5022
|
-
|
|
5034
|
+
if (b(!0), c === "Flex") {
|
|
5035
|
+
y.iosUrl = p.iosUrl, y.googleUrl = p.googleUrl, await Xn(y, u);
|
|
5036
|
+
const R = await Vt(
|
|
5023
5037
|
{
|
|
5024
5038
|
_id: J,
|
|
5025
5039
|
network: g
|
|
5026
5040
|
},
|
|
5027
5041
|
u
|
|
5028
5042
|
);
|
|
5029
|
-
let
|
|
5030
|
-
if (!
|
|
5031
|
-
b(!1), d(
|
|
5043
|
+
let j = R.url;
|
|
5044
|
+
if (!j) {
|
|
5045
|
+
b(!1), d(R.message, R);
|
|
5032
5046
|
return;
|
|
5033
5047
|
}
|
|
5034
5048
|
let Y;
|
|
@@ -5049,33 +5063,34 @@ const ts = ({
|
|
|
5049
5063
|
"voodoo_notion",
|
|
5050
5064
|
"snapchat",
|
|
5051
5065
|
"inmobi"
|
|
5052
|
-
].includes(g) || (g === "fb" || g === "luna") &&
|
|
5053
|
-
Y = document.createElement("iframe"), Y.setAttribute("src", "/files/" +
|
|
5054
|
-
else if (
|
|
5055
|
-
let
|
|
5056
|
-
(
|
|
5066
|
+
].includes(g) || (g === "fb" || g === "luna") && G)
|
|
5067
|
+
Y = document.createElement("iframe"), Y.setAttribute("src", "/files/" + j), Y.style.display = "none", document.body.appendChild(Y), Y.click();
|
|
5068
|
+
else if (O) {
|
|
5069
|
+
let z = await fetch(h + "/" + j).then(
|
|
5070
|
+
(Q) => Q.text()
|
|
5057
5071
|
);
|
|
5058
5072
|
Y = document.createElement("a"), Y.setAttribute(
|
|
5059
5073
|
"href",
|
|
5060
|
-
"data:html/plain;charset=utf-8," + encodeURIComponent(
|
|
5074
|
+
"data:html/plain;charset=utf-8," + encodeURIComponent(z)
|
|
5061
5075
|
), Y.setAttribute(
|
|
5062
5076
|
"download",
|
|
5063
|
-
|
|
5077
|
+
j.split("/").reduce((Q, T) => T, "")
|
|
5064
5078
|
), Y.style.display = "none", document.body.appendChild(Y), Y.click();
|
|
5065
5079
|
}
|
|
5066
|
-
return b(!1),
|
|
5080
|
+
return b(!1), j;
|
|
5067
5081
|
} else {
|
|
5068
|
-
|
|
5082
|
+
await Qn(J, { iosLink: p.iosUrl, androidLink: p.googleUrl }, u);
|
|
5083
|
+
const R = Pn.includes(g) ? 1 : 0;
|
|
5069
5084
|
It(
|
|
5070
5085
|
u,
|
|
5071
5086
|
J,
|
|
5072
|
-
|
|
5087
|
+
U,
|
|
5073
5088
|
g,
|
|
5074
|
-
|
|
5075
|
-
|
|
5089
|
+
G,
|
|
5090
|
+
R,
|
|
5076
5091
|
{}
|
|
5077
|
-
).then(async (
|
|
5078
|
-
let { url: Y } =
|
|
5092
|
+
).then(async (j) => {
|
|
5093
|
+
let { url: Y } = j, z;
|
|
5079
5094
|
if ([
|
|
5080
5095
|
"google",
|
|
5081
5096
|
"toutiao",
|
|
@@ -5093,30 +5108,31 @@ const ts = ({
|
|
|
5093
5108
|
"voodoo_notion",
|
|
5094
5109
|
"snapchat",
|
|
5095
5110
|
"inmobi"
|
|
5096
|
-
].includes(g) || (g === "fb" || g === "luna") &&
|
|
5097
|
-
|
|
5098
|
-
else if (
|
|
5099
|
-
let
|
|
5100
|
-
(
|
|
5111
|
+
].includes(g) || (g === "fb" || g === "luna") && G)
|
|
5112
|
+
z = document.createElement("iframe"), z.setAttribute("src", "/files/" + Y), z.style.display = "none", document.body.appendChild(z), z.click();
|
|
5113
|
+
else if (O) {
|
|
5114
|
+
let Q = await fetch(h + "/" + Y).then(
|
|
5115
|
+
(T) => T.text()
|
|
5101
5116
|
);
|
|
5102
|
-
|
|
5117
|
+
z = document.createElement("a"), z.setAttribute(
|
|
5103
5118
|
"href",
|
|
5104
|
-
"data:html/plain;charset=utf-8," + encodeURIComponent(
|
|
5105
|
-
),
|
|
5119
|
+
"data:html/plain;charset=utf-8," + encodeURIComponent(Q)
|
|
5120
|
+
), z.setAttribute(
|
|
5106
5121
|
"download",
|
|
5107
|
-
Y.split("/").reduce((
|
|
5108
|
-
),
|
|
5122
|
+
Y.split("/").reduce((T, me) => me, "")
|
|
5123
|
+
), z.style.display = "none", document.body.appendChild(z), z.click();
|
|
5109
5124
|
}
|
|
5110
|
-
return b(!1),
|
|
5111
|
-
}).catch((
|
|
5112
|
-
d(
|
|
5125
|
+
return b(!1), $e("Download successfully"), Y;
|
|
5126
|
+
}).catch((j) => {
|
|
5127
|
+
d(j.response.data.error.msg);
|
|
5113
5128
|
});
|
|
5114
5129
|
}
|
|
5115
|
-
} catch (
|
|
5116
|
-
b(!1), d(
|
|
5130
|
+
} catch (R) {
|
|
5131
|
+
b(!1), d(R.response.data.error.msg);
|
|
5117
5132
|
}
|
|
5118
5133
|
}, W = async () => {
|
|
5119
|
-
if (
|
|
5134
|
+
if (c === "Playable") {
|
|
5135
|
+
await Qn(s, { iosLink: p.iosUrl, androidLink: p.googleUrl }, u);
|
|
5120
5136
|
const g = await It(
|
|
5121
5137
|
u,
|
|
5122
5138
|
s,
|
|
@@ -5126,13 +5142,14 @@ const ts = ({
|
|
|
5126
5142
|
1,
|
|
5127
5143
|
`var type = ${i}`
|
|
5128
5144
|
);
|
|
5129
|
-
return navigator.clipboard.writeText(`${h}/${g == null ? void 0 : g.url}`),
|
|
5145
|
+
return navigator.clipboard.writeText(`${h}/${g == null ? void 0 : g.url}`), $e("Link Coppied"), g == null ? void 0 : g.url;
|
|
5130
5146
|
}
|
|
5131
|
-
|
|
5147
|
+
y.iosUrl = p.iosUrl, y.googleUrl = p.googleUrl, await Xn(y, u);
|
|
5148
|
+
const J = await Vt(
|
|
5132
5149
|
{ _id: s, network: i },
|
|
5133
5150
|
u
|
|
5134
5151
|
);
|
|
5135
|
-
return navigator.clipboard.writeText(`${h}/${J == null ? void 0 : J.url}`),
|
|
5152
|
+
return navigator.clipboard.writeText(`${h}/${J == null ? void 0 : J.url}`), $e("Link Coppied"), J == null ? void 0 : J.url;
|
|
5136
5153
|
};
|
|
5137
5154
|
return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
5138
5155
|
/* @__PURE__ */ m.jsxs(
|
|
@@ -5172,7 +5189,7 @@ const ts = ({
|
|
|
5172
5189
|
padding: "8px"
|
|
5173
5190
|
},
|
|
5174
5191
|
children: [
|
|
5175
|
-
|
|
5192
|
+
Pn.includes(i) && /* @__PURE__ */ m.jsx(
|
|
5176
5193
|
Hi,
|
|
5177
5194
|
{
|
|
5178
5195
|
fill: c === "Flex" ? Ae.Flex : Ae.Playable,
|
|
@@ -5226,7 +5243,7 @@ const ts = ({
|
|
|
5226
5243
|
/* @__PURE__ */ m.jsx(
|
|
5227
5244
|
"div",
|
|
5228
5245
|
{
|
|
5229
|
-
onClick:
|
|
5246
|
+
onClick: L,
|
|
5230
5247
|
style: {
|
|
5231
5248
|
position: "absolute",
|
|
5232
5249
|
top: "0",
|
|
@@ -5246,7 +5263,7 @@ const ts = ({
|
|
|
5246
5263
|
/* @__PURE__ */ m.jsx(
|
|
5247
5264
|
"img",
|
|
5248
5265
|
{
|
|
5249
|
-
onClick:
|
|
5266
|
+
onClick: L,
|
|
5250
5267
|
style: {
|
|
5251
5268
|
width: "30rem",
|
|
5252
5269
|
// Equivalent to 120/4 = 30rem
|
|
@@ -5273,19 +5290,19 @@ const ts = ({
|
|
|
5273
5290
|
Hn,
|
|
5274
5291
|
{
|
|
5275
5292
|
className: "w-2/3",
|
|
5276
|
-
downloading:
|
|
5293
|
+
downloading: E,
|
|
5277
5294
|
onClickDonwload: async () => {
|
|
5278
5295
|
if (i === "instantGame") {
|
|
5279
5296
|
q(!0);
|
|
5280
5297
|
return;
|
|
5281
5298
|
} else {
|
|
5282
|
-
|
|
5283
|
-
const J =
|
|
5284
|
-
I && I.willSpendCredit ? (C(!0),
|
|
5299
|
+
ne("download");
|
|
5300
|
+
const J = p.iosUrl, g = p.googleUrl;
|
|
5301
|
+
I && I.willSpendCredit ? (C(!0), w("download"), ae(!0)) : !J || !g ? (C(!0), P(!0)) : (P(!1), ae(!1), await f(s, i, void 0, !0, null, !0));
|
|
5285
5302
|
}
|
|
5286
5303
|
},
|
|
5287
5304
|
children: [
|
|
5288
|
-
!
|
|
5305
|
+
!E && /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
5289
5306
|
/* @__PURE__ */ m.jsx(
|
|
5290
5307
|
$a,
|
|
5291
5308
|
{
|
|
@@ -5303,7 +5320,7 @@ const ts = ({
|
|
|
5303
5320
|
),
|
|
5304
5321
|
"Download"
|
|
5305
5322
|
] }),
|
|
5306
|
-
|
|
5323
|
+
E && /* @__PURE__ */ m.jsx(Pi, {})
|
|
5307
5324
|
]
|
|
5308
5325
|
}
|
|
5309
5326
|
),
|
|
@@ -5312,11 +5329,11 @@ const ts = ({
|
|
|
5312
5329
|
{
|
|
5313
5330
|
className: "w-1/3",
|
|
5314
5331
|
onClickDonwload: async () => {
|
|
5315
|
-
|
|
5316
|
-
const J =
|
|
5317
|
-
I && (I != null && I.willSpendCredit) ? (
|
|
5332
|
+
ne("copyLink");
|
|
5333
|
+
const J = p.iosUrl, g = p.googleUrl;
|
|
5334
|
+
I && (I != null && I.willSpendCredit) ? (w("copy"), C(!0), ae(!0)) : !J || !g ? (C(!0), P(!0)) : (ae(!1), P(!1), await W());
|
|
5318
5335
|
},
|
|
5319
|
-
disabled:
|
|
5336
|
+
disabled: N,
|
|
5320
5337
|
children: /* @__PURE__ */ m.jsx(pi, { className: "h-6 w-6 stroke-dark-full" })
|
|
5321
5338
|
}
|
|
5322
5339
|
)
|
|
@@ -5326,36 +5343,36 @@ const ts = ({
|
|
|
5326
5343
|
]
|
|
5327
5344
|
}
|
|
5328
5345
|
),
|
|
5329
|
-
|
|
5346
|
+
ce && /* @__PURE__ */ m.jsx(
|
|
5330
5347
|
ts,
|
|
5331
5348
|
{
|
|
5332
|
-
creditConfirmType:
|
|
5349
|
+
creditConfirmType: x,
|
|
5333
5350
|
handleCopyLink: async () => {
|
|
5334
5351
|
P(!1), C(!1), await W();
|
|
5335
5352
|
},
|
|
5336
5353
|
download: async () => {
|
|
5337
|
-
P(!1), C(!1), await
|
|
5354
|
+
P(!1), C(!1), await f(s, i, void 0, !0, null, !0);
|
|
5338
5355
|
},
|
|
5339
5356
|
onClose: () => {
|
|
5340
|
-
|
|
5357
|
+
ae(!1), C(!1);
|
|
5341
5358
|
},
|
|
5342
5359
|
flexDownloadCount: k
|
|
5343
5360
|
}
|
|
5344
5361
|
),
|
|
5345
|
-
|
|
5362
|
+
ee && /* @__PURE__ */ m.jsx(
|
|
5346
5363
|
es,
|
|
5347
5364
|
{
|
|
5348
5365
|
onClose: () => {
|
|
5349
5366
|
P(!1), C(!1);
|
|
5350
5367
|
},
|
|
5351
|
-
iosLink:
|
|
5352
|
-
googleLink:
|
|
5353
|
-
buttonType:
|
|
5368
|
+
iosLink: p.iosUrl,
|
|
5369
|
+
googleLink: p.googleUrl,
|
|
5370
|
+
buttonType: $,
|
|
5354
5371
|
handleCopyLink: async () => {
|
|
5355
5372
|
P(!1), C(!1), await W();
|
|
5356
5373
|
},
|
|
5357
5374
|
download: async () => {
|
|
5358
|
-
P(!1), C(!1), await
|
|
5375
|
+
P(!1), C(!1), await f(s, i, void 0, !0, null, !0);
|
|
5359
5376
|
}
|
|
5360
5377
|
}
|
|
5361
5378
|
)
|
|
@@ -5658,13 +5675,13 @@ const ts = ({
|
|
|
5658
5675
|
}
|
|
5659
5676
|
);
|
|
5660
5677
|
async function As(e, t, r) {
|
|
5661
|
-
return (await
|
|
5678
|
+
return (await Ie.post(r + "/getPlayableVersionSize", {
|
|
5662
5679
|
_id: e,
|
|
5663
5680
|
networks: t
|
|
5664
5681
|
})).data;
|
|
5665
5682
|
}
|
|
5666
5683
|
async function as(e, t, r) {
|
|
5667
|
-
return (await
|
|
5684
|
+
return (await Ie.post(r + "/createPlayableVersionLinkMulti", {
|
|
5668
5685
|
_id: e,
|
|
5669
5686
|
networks: t
|
|
5670
5687
|
})).data;
|
|
@@ -5674,11 +5691,11 @@ const ss = ({
|
|
|
5674
5691
|
instantGames: t,
|
|
5675
5692
|
onSuccess: r
|
|
5676
5693
|
}) => {
|
|
5677
|
-
const [n, i] =
|
|
5678
|
-
let q,
|
|
5694
|
+
const [n, i] = V(""), [o, A] = V(""), [a, c] = V(""), [s, u] = V(null), d = async (h) => {
|
|
5695
|
+
let q, p = await fetch(s == null ? void 0 : s.url).then((y) => y.text());
|
|
5679
5696
|
q = document.createElement("a"), q.setAttribute(
|
|
5680
5697
|
"href",
|
|
5681
|
-
"data:html/plain;charset=utf-8," + encodeURIComponent(
|
|
5698
|
+
"data:html/plain;charset=utf-8," + encodeURIComponent(p)
|
|
5682
5699
|
), q.setAttribute(
|
|
5683
5700
|
"download",
|
|
5684
5701
|
h.split("/").reduce((y, C) => C, "")
|
|
@@ -6011,33 +6028,33 @@ const ss = ({
|
|
|
6011
6028
|
flexDownloadCount: h,
|
|
6012
6029
|
disabled: q
|
|
6013
6030
|
}) => {
|
|
6014
|
-
const [
|
|
6015
|
-
|
|
6016
|
-
const
|
|
6031
|
+
const [p, y] = V([]), [C, I] = V([]), [k, N] = V(!1), [E, b] = V(""), [U, se] = V(!1), [$, ne] = V(!1), [ce, ae] = V(!1), ee = async (w) => {
|
|
6032
|
+
N(!0);
|
|
6033
|
+
const L = await As(
|
|
6017
6034
|
n,
|
|
6018
|
-
|
|
6035
|
+
w,
|
|
6019
6036
|
o
|
|
6020
6037
|
);
|
|
6021
|
-
I(
|
|
6022
|
-
}, P = async (
|
|
6023
|
-
const
|
|
6024
|
-
if (
|
|
6025
|
-
const W =
|
|
6026
|
-
|
|
6038
|
+
I(L.details), b(L.size), N(!1);
|
|
6039
|
+
}, P = async (w) => {
|
|
6040
|
+
const L = [...p];
|
|
6041
|
+
if (p.includes(w)) {
|
|
6042
|
+
const W = L.findIndex((J) => J === w);
|
|
6043
|
+
L.splice(W, 1), y(L);
|
|
6027
6044
|
} else
|
|
6028
|
-
i === "Playable" ? (
|
|
6029
|
-
let
|
|
6030
|
-
await
|
|
6031
|
-
},
|
|
6045
|
+
i === "Playable" ? (L.push(w), y([...p, w])) : (L.splice(0), L.push(w), y([w]));
|
|
6046
|
+
let f = Wr.filter((W) => [...L].includes(W.id)).map((W) => W.name);
|
|
6047
|
+
await ee(f);
|
|
6048
|
+
}, x = async () => {
|
|
6032
6049
|
try {
|
|
6033
|
-
const
|
|
6050
|
+
const w = Wr.filter((g) => [...p].includes(g.id)).map((g) => g.name);
|
|
6034
6051
|
se(!0);
|
|
6035
|
-
const
|
|
6052
|
+
const L = await as(n, w, o), { url: f } = L;
|
|
6036
6053
|
let W;
|
|
6037
|
-
const J = s + "/" +
|
|
6038
|
-
W = document.createElement("iframe"), W.setAttribute("src", J), W.style.display = "none", document.body.appendChild(W), W.click(), se(!1),
|
|
6039
|
-
} catch (
|
|
6040
|
-
se(!1), c(
|
|
6054
|
+
const J = s + "/" + f;
|
|
6055
|
+
W = document.createElement("iframe"), W.setAttribute("src", J), W.style.display = "none", document.body.appendChild(W), W.click(), se(!1), $e("Multi downloaded completed successfully");
|
|
6056
|
+
} catch (w) {
|
|
6057
|
+
se(!1), c(w.response.data.error.msg), console.error(w);
|
|
6041
6058
|
}
|
|
6042
6059
|
};
|
|
6043
6060
|
return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
@@ -6047,7 +6064,7 @@ const ss = ({
|
|
|
6047
6064
|
style: {
|
|
6048
6065
|
position: "relative",
|
|
6049
6066
|
flex: 1,
|
|
6050
|
-
overflowY:
|
|
6067
|
+
overflowY: ce ? "hidden" : "auto",
|
|
6051
6068
|
padding: "1.5rem",
|
|
6052
6069
|
paddingTop: "0"
|
|
6053
6070
|
},
|
|
@@ -6062,18 +6079,18 @@ const ss = ({
|
|
|
6062
6079
|
overflowY: "auto",
|
|
6063
6080
|
padding: "0.75rem"
|
|
6064
6081
|
},
|
|
6065
|
-
children: r && Wr.filter((
|
|
6066
|
-
var
|
|
6067
|
-
return t && ((
|
|
6082
|
+
children: r && Wr.filter((w) => {
|
|
6083
|
+
var L;
|
|
6084
|
+
return t && ((L = t == null ? void 0 : t.networks) == null ? void 0 : L.length) > 0 ? t == null ? void 0 : t.networks.includes(w.name) : e == null ? void 0 : e.networks.includes(w.name);
|
|
6068
6085
|
}).filter(
|
|
6069
|
-
(
|
|
6070
|
-
).map((
|
|
6086
|
+
(w) => w.name === "voodoo" ? A.customer === "customer:20" : !0
|
|
6087
|
+
).map((w) => /* @__PURE__ */ m.jsx(
|
|
6071
6088
|
rs,
|
|
6072
6089
|
{
|
|
6073
|
-
id:
|
|
6074
|
-
name:
|
|
6075
|
-
imageUrl:
|
|
6076
|
-
selected:
|
|
6090
|
+
id: w.id,
|
|
6091
|
+
name: w.name,
|
|
6092
|
+
imageUrl: w.imageSrc,
|
|
6093
|
+
selected: p.includes(w.id),
|
|
6077
6094
|
handleCardClick: P,
|
|
6078
6095
|
networkVersionSize: C,
|
|
6079
6096
|
fileSizeLoading: k,
|
|
@@ -6083,15 +6100,15 @@ const ss = ({
|
|
|
6083
6100
|
api: o,
|
|
6084
6101
|
handleDownloadError: c,
|
|
6085
6102
|
fetchFileUrl: s,
|
|
6086
|
-
setInstantGameModal:
|
|
6103
|
+
setInstantGameModal: ne,
|
|
6087
6104
|
urls: u,
|
|
6088
6105
|
game: d,
|
|
6089
6106
|
downloadFlex: t,
|
|
6090
|
-
setIsConfirmActive:
|
|
6107
|
+
setIsConfirmActive: ae,
|
|
6091
6108
|
flexDownloadCount: h,
|
|
6092
6109
|
disabled: q
|
|
6093
6110
|
},
|
|
6094
|
-
|
|
6111
|
+
w.id
|
|
6095
6112
|
))
|
|
6096
6113
|
}
|
|
6097
6114
|
),
|
|
@@ -6099,15 +6116,15 @@ const ss = ({
|
|
|
6099
6116
|
]
|
|
6100
6117
|
}
|
|
6101
6118
|
),
|
|
6102
|
-
|
|
6119
|
+
$ && /* @__PURE__ */ m.jsx(
|
|
6103
6120
|
ss,
|
|
6104
6121
|
{
|
|
6105
|
-
onClose: () =>
|
|
6122
|
+
onClose: () => ne(!1),
|
|
6106
6123
|
instantGames: a,
|
|
6107
6124
|
onSuccess: () => console.log("success")
|
|
6108
6125
|
}
|
|
6109
6126
|
),
|
|
6110
|
-
|
|
6127
|
+
p.length > 1 && i === "Playable" && /* @__PURE__ */ m.jsx(
|
|
6111
6128
|
"div",
|
|
6112
6129
|
{
|
|
6113
6130
|
style: {
|
|
@@ -6123,10 +6140,10 @@ const ss = ({
|
|
|
6123
6140
|
children: /* @__PURE__ */ m.jsx(
|
|
6124
6141
|
os,
|
|
6125
6142
|
{
|
|
6126
|
-
onClickMultiDownload:
|
|
6127
|
-
networksVersionTotalSize:
|
|
6143
|
+
onClickMultiDownload: x,
|
|
6144
|
+
networksVersionTotalSize: E,
|
|
6128
6145
|
typeOfProduct: i,
|
|
6129
|
-
multiDownloading:
|
|
6146
|
+
multiDownloading: U
|
|
6130
6147
|
}
|
|
6131
6148
|
)
|
|
6132
6149
|
}
|
|
@@ -6134,26 +6151,31 @@ const ss = ({
|
|
|
6134
6151
|
] });
|
|
6135
6152
|
};
|
|
6136
6153
|
async function us(e, t) {
|
|
6137
|
-
return (await
|
|
6154
|
+
return (await Ie.post(t + "/findPlayable", { _id: e })).data;
|
|
6138
6155
|
}
|
|
6139
6156
|
async function cs(e, t) {
|
|
6140
|
-
return (await
|
|
6157
|
+
return (await Ie.post(t + "/getFlexDownloadCount", e)).data;
|
|
6141
6158
|
}
|
|
6142
6159
|
async function ms(e, t) {
|
|
6143
|
-
return (await
|
|
6160
|
+
return (await Ie.post(t + "/getFileSize", e)).data;
|
|
6144
6161
|
}
|
|
6145
|
-
async function
|
|
6162
|
+
async function ds(e, t) {
|
|
6146
6163
|
try {
|
|
6147
|
-
return (await
|
|
6164
|
+
return (await Ie.post(t + "/findGame", { _id: e })).data;
|
|
6148
6165
|
} catch {
|
|
6149
6166
|
}
|
|
6150
6167
|
}
|
|
6151
|
-
async function
|
|
6152
|
-
return (await
|
|
6168
|
+
async function ps(e, t) {
|
|
6169
|
+
return (await Ie.post(t + "/listInstantGameBuilds", {
|
|
6170
|
+
_id: e
|
|
6171
|
+
})).data;
|
|
6172
|
+
}
|
|
6173
|
+
async function fs(e, t) {
|
|
6174
|
+
return (await Ie.post(t + "/getPlayableVersionMarketLink", {
|
|
6153
6175
|
_id: e
|
|
6154
6176
|
})).data;
|
|
6155
6177
|
}
|
|
6156
|
-
const
|
|
6178
|
+
const hs = [
|
|
6157
6179
|
"adcolony",
|
|
6158
6180
|
"ironsource",
|
|
6159
6181
|
"applovin",
|
|
@@ -6164,7 +6186,7 @@ const ps = [
|
|
|
6164
6186
|
"vungle",
|
|
6165
6187
|
"moloco",
|
|
6166
6188
|
"inmobi"
|
|
6167
|
-
],
|
|
6189
|
+
], qs = [
|
|
6168
6190
|
"adcolony",
|
|
6169
6191
|
"applovin",
|
|
6170
6192
|
"chartboost",
|
|
@@ -6180,7 +6202,7 @@ const ps = [
|
|
|
6180
6202
|
"toutiao",
|
|
6181
6203
|
"unity",
|
|
6182
6204
|
"vungle"
|
|
6183
|
-
],
|
|
6205
|
+
], gs = ({
|
|
6184
6206
|
playableId: e,
|
|
6185
6207
|
versionId: t,
|
|
6186
6208
|
gameId: r,
|
|
@@ -6192,119 +6214,112 @@ const ps = [
|
|
|
6192
6214
|
handleDownloadError: c,
|
|
6193
6215
|
fetchFileUrl: s
|
|
6194
6216
|
}) => {
|
|
6195
|
-
const [u, d] =
|
|
6196
|
-
|
|
6197
|
-
const [
|
|
6198
|
-
|
|
6199
|
-
const
|
|
6217
|
+
const [u, d] = V(null), [h, q] = V(null), [p, y] = V(null), [C, I] = V(null), [k, N] = V(!1);
|
|
6218
|
+
V({});
|
|
6219
|
+
const [E, b] = V(null), [U, se] = V("Loading..."), [$, ne] = V("Loading..."), [ce, ae] = V(!0), [ee, P] = V(window.innerWidth);
|
|
6220
|
+
be(() => {
|
|
6221
|
+
const O = () => {
|
|
6200
6222
|
P(window.innerWidth);
|
|
6201
6223
|
};
|
|
6202
|
-
return window.addEventListener("resize",
|
|
6203
|
-
window.removeEventListener("resize",
|
|
6224
|
+
return window.addEventListener("resize", O), () => {
|
|
6225
|
+
window.removeEventListener("resize", O);
|
|
6204
6226
|
};
|
|
6205
6227
|
}, []);
|
|
6206
|
-
const
|
|
6207
|
-
|
|
6208
|
-
const
|
|
6209
|
-
|
|
6210
|
-
},
|
|
6211
|
-
se(
|
|
6212
|
-
},
|
|
6213
|
-
|
|
6214
|
-
},
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6228
|
+
const x = async () => {
|
|
6229
|
+
N(!0);
|
|
6230
|
+
const O = await us(e, o);
|
|
6231
|
+
O != null && O.networks || (O.networks = hs), d(O), N(!1);
|
|
6232
|
+
}, w = (O) => {
|
|
6233
|
+
se(O);
|
|
6234
|
+
}, L = (O) => {
|
|
6235
|
+
ne(O);
|
|
6236
|
+
}, f = async (O) => {
|
|
6237
|
+
var D, G, R, j;
|
|
6238
|
+
try {
|
|
6239
|
+
let Y;
|
|
6240
|
+
if (n === "Playable") {
|
|
6241
|
+
const z = await fs(t, o);
|
|
6242
|
+
if (z) {
|
|
6243
|
+
se(z.iosLink), ne(z.androidLink);
|
|
6244
|
+
return;
|
|
6245
|
+
}
|
|
6246
|
+
Y = await It(
|
|
6247
|
+
o,
|
|
6248
|
+
t,
|
|
6249
|
+
en(5),
|
|
6250
|
+
"default",
|
|
6251
|
+
!1,
|
|
6252
|
+
0,
|
|
6253
|
+
{}
|
|
6254
|
+
);
|
|
6255
|
+
let Q = await fetch(s + "/" + Y.url).then(
|
|
6256
|
+
(M) => M.text()
|
|
6257
|
+
);
|
|
6258
|
+
const T = ((D = Q.match(
|
|
6259
|
+
/var\s+iosLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
6260
|
+
)) == null ? void 0 : D.at(1)) || "";
|
|
6261
|
+
se(T);
|
|
6262
|
+
const me = ((G = Q.match(
|
|
6263
|
+
/var\s+androidLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
6264
|
+
)) == null ? void 0 : G.at(1)) || "";
|
|
6265
|
+
ne(me);
|
|
6266
|
+
} else if (n === "Flex")
|
|
6267
|
+
if (O)
|
|
6268
|
+
se(O.iosUrl), ne(O.googleUrl);
|
|
6269
|
+
else {
|
|
6270
|
+
Y = await Vt(
|
|
6271
|
+
{
|
|
6272
|
+
_id: t
|
|
6273
|
+
},
|
|
6274
|
+
o
|
|
6233
6275
|
);
|
|
6234
|
-
let
|
|
6235
|
-
(
|
|
6276
|
+
let z = await fetch(s + "/" + Y.url).then(
|
|
6277
|
+
(me) => me.text()
|
|
6236
6278
|
);
|
|
6237
|
-
const
|
|
6279
|
+
const Q = ((R = z.match(
|
|
6238
6280
|
/var\s+iosLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
6239
|
-
)) == null ? void 0 :
|
|
6240
|
-
se(
|
|
6241
|
-
const
|
|
6281
|
+
)) == null ? void 0 : R.at(1)) || "";
|
|
6282
|
+
se(Q);
|
|
6283
|
+
const T = ((j = z.match(
|
|
6242
6284
|
/var\s+androidLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
6243
|
-
)) == null ? void 0 :
|
|
6244
|
-
|
|
6245
|
-
}
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
H = await Bt(
|
|
6250
|
-
{
|
|
6251
|
-
_id: t
|
|
6252
|
-
},
|
|
6253
|
-
o
|
|
6254
|
-
);
|
|
6255
|
-
let R = await fetch(s + "/" + H.url).then(
|
|
6256
|
-
(ge) => ge.text()
|
|
6257
|
-
);
|
|
6258
|
-
const ce = ((Y = R.match(
|
|
6259
|
-
/var\s+iosLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
6260
|
-
)) == null ? void 0 : Y.at(1)) || "";
|
|
6261
|
-
se(ce);
|
|
6262
|
-
const M = ((N = R.match(
|
|
6263
|
-
/var\s+androidLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
6264
|
-
)) == null ? void 0 : N.at(1)) || "";
|
|
6265
|
-
re(M);
|
|
6266
|
-
}
|
|
6267
|
-
G(!0);
|
|
6268
|
-
} catch (H) {
|
|
6269
|
-
c(H.response.data.error.msg), D(H);
|
|
6270
|
-
}
|
|
6271
|
-
});
|
|
6285
|
+
)) == null ? void 0 : j.at(1)) || "";
|
|
6286
|
+
ne(T);
|
|
6287
|
+
}
|
|
6288
|
+
} catch (Y) {
|
|
6289
|
+
c(Y.response.data.error.msg);
|
|
6290
|
+
}
|
|
6272
6291
|
}, W = async () => {
|
|
6273
|
-
|
|
6274
|
-
const
|
|
6292
|
+
N(!0);
|
|
6293
|
+
const O = await cs(
|
|
6275
6294
|
{ _id: t },
|
|
6276
6295
|
o
|
|
6277
6296
|
);
|
|
6278
6297
|
["admin", "pm", "tester"].includes(A.role) ? y({
|
|
6279
|
-
...
|
|
6280
|
-
networks:
|
|
6281
|
-
}) : y(
|
|
6282
|
-
}
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6287
|
-
|
|
6298
|
+
...O,
|
|
6299
|
+
networks: qs
|
|
6300
|
+
}) : y(O), N(!1);
|
|
6301
|
+
};
|
|
6302
|
+
console.log(ce);
|
|
6303
|
+
const J = async () => {
|
|
6304
|
+
const O = await ms({ _id: t }, o);
|
|
6305
|
+
I(O.size);
|
|
6306
|
+
}, g = async () => await ds(r, o), K = async () => {
|
|
6307
|
+
const O = await ps(t, o);
|
|
6308
|
+
b(O);
|
|
6288
6309
|
};
|
|
6289
6310
|
return be(() => {
|
|
6290
|
-
i || (d(null), q(null), y(null), I(null)), i && n === "Playable" ? (
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
}), J(),
|
|
6295
|
-
|
|
6296
|
-
})), i && w();
|
|
6297
|
-
}, [r, e, t, i]), be(() => {
|
|
6298
|
-
g().then((x) => {
|
|
6299
|
-
q(x);
|
|
6300
|
-
});
|
|
6301
|
-
}, [r]), /* @__PURE__ */ m.jsxs(
|
|
6311
|
+
i || (d(null), q(null), y(null), I(null)), i && n === "Playable" ? (x(), f(null), ae(!1), K()) : i && n === "Flex" && (W().then((O) => {
|
|
6312
|
+
ae(!1), g().then((D) => {
|
|
6313
|
+
i && (f(D), ae(!1), q(D));
|
|
6314
|
+
});
|
|
6315
|
+
}), J()), i && K();
|
|
6316
|
+
}, [r, e, t, i]), /* @__PURE__ */ m.jsxs(
|
|
6302
6317
|
"div",
|
|
6303
6318
|
{
|
|
6304
6319
|
style: {
|
|
6305
6320
|
display: "flex",
|
|
6306
|
-
height:
|
|
6307
|
-
width:
|
|
6321
|
+
height: ee > 1440 ? "700px" : "650px",
|
|
6322
|
+
width: ee > 1440 ? "675px" : "680px",
|
|
6308
6323
|
flexDirection: "column",
|
|
6309
6324
|
borderRadius: "rounded",
|
|
6310
6325
|
backgroundColor: "#F7F7F8",
|
|
@@ -6312,18 +6327,18 @@ const ps = [
|
|
|
6312
6327
|
paddingTop: "0px"
|
|
6313
6328
|
},
|
|
6314
6329
|
children: [
|
|
6315
|
-
|
|
6330
|
+
/* @__PURE__ */ m.jsx(
|
|
6316
6331
|
Fa,
|
|
6317
6332
|
{
|
|
6318
6333
|
title: a,
|
|
6319
6334
|
typeOfProduct: n,
|
|
6320
6335
|
fileSize: C,
|
|
6321
|
-
urls: { iosUrl:
|
|
6322
|
-
handleIosChange:
|
|
6323
|
-
handleGoogleChange:
|
|
6324
|
-
disabled:
|
|
6336
|
+
urls: { iosUrl: U, googleUrl: $ },
|
|
6337
|
+
handleIosChange: w,
|
|
6338
|
+
handleGoogleChange: L,
|
|
6339
|
+
disabled: ce,
|
|
6325
6340
|
api: o,
|
|
6326
|
-
downloadFlex:
|
|
6341
|
+
downloadFlex: p
|
|
6327
6342
|
}
|
|
6328
6343
|
),
|
|
6329
6344
|
k && /* @__PURE__ */ m.jsx(
|
|
@@ -6340,30 +6355,30 @@ const ps = [
|
|
|
6340
6355
|
children: /* @__PURE__ */ m.jsx(Xi, { typeOfProduct: n })
|
|
6341
6356
|
}
|
|
6342
6357
|
),
|
|
6343
|
-
(u ||
|
|
6358
|
+
(u || p) && h && !k && U !== "Loading..." && $ !== "Loading..." && /* @__PURE__ */ m.jsx(
|
|
6344
6359
|
ls,
|
|
6345
6360
|
{
|
|
6346
6361
|
playable: u,
|
|
6347
|
-
downloadFlex:
|
|
6362
|
+
downloadFlex: p,
|
|
6348
6363
|
visible: i,
|
|
6349
6364
|
versionId: t,
|
|
6350
6365
|
typeOfProduct: n,
|
|
6351
6366
|
api: o,
|
|
6352
6367
|
user: A,
|
|
6353
|
-
instantGames:
|
|
6368
|
+
instantGames: E,
|
|
6354
6369
|
handleDownloadError: c,
|
|
6355
6370
|
fetchFileUrl: s,
|
|
6356
|
-
urls: { iosUrl:
|
|
6371
|
+
urls: { iosUrl: U, googleUrl: $ },
|
|
6357
6372
|
game: h,
|
|
6358
6373
|
flexDownloadCount: W,
|
|
6359
|
-
disabled:
|
|
6374
|
+
disabled: ce
|
|
6360
6375
|
}
|
|
6361
6376
|
)
|
|
6362
6377
|
]
|
|
6363
6378
|
}
|
|
6364
6379
|
);
|
|
6365
6380
|
};
|
|
6366
|
-
var jr = { exports: {} },
|
|
6381
|
+
var jr = { exports: {} }, it = {}, Jr = { exports: {} }, ke = {}, Nr = { exports: {} };
|
|
6367
6382
|
(function(e, t) {
|
|
6368
6383
|
Object.defineProperty(t, "__esModule", {
|
|
6369
6384
|
value: !0
|
|
@@ -6389,8 +6404,8 @@ var jr = { exports: {} }, ot = {}, Jr = { exports: {} }, ke = {}, Nr = { exports
|
|
|
6389
6404
|
if (h && !d.innerHTML)
|
|
6390
6405
|
return !0;
|
|
6391
6406
|
try {
|
|
6392
|
-
var q = window.getComputedStyle(d),
|
|
6393
|
-
return h ?
|
|
6407
|
+
var q = window.getComputedStyle(d), p = q.getPropertyValue("display");
|
|
6408
|
+
return h ? p !== n && o(d, q) : p === r;
|
|
6394
6409
|
} catch {
|
|
6395
6410
|
return console.warn("Failed to inspect element style"), !1;
|
|
6396
6411
|
}
|
|
@@ -6404,8 +6419,8 @@ var jr = { exports: {} }, ot = {}, Jr = { exports: {} }, ke = {}, Nr = { exports
|
|
|
6404
6419
|
return !0;
|
|
6405
6420
|
}
|
|
6406
6421
|
function c(d, h) {
|
|
6407
|
-
var q = d.nodeName.toLowerCase(),
|
|
6408
|
-
return
|
|
6422
|
+
var q = d.nodeName.toLowerCase(), p = i.test(q) && !d.disabled || q === "a" && d.href || h;
|
|
6423
|
+
return p && a(d);
|
|
6409
6424
|
}
|
|
6410
6425
|
function s(d) {
|
|
6411
6426
|
var h = d.getAttribute("tabindex");
|
|
@@ -6414,82 +6429,82 @@ var jr = { exports: {} }, ot = {}, Jr = { exports: {} }, ke = {}, Nr = { exports
|
|
|
6414
6429
|
return (q || h >= 0) && c(d, !q);
|
|
6415
6430
|
}
|
|
6416
6431
|
function u(d) {
|
|
6417
|
-
var h = [].slice.call(d.querySelectorAll("*"), 0).reduce(function(q,
|
|
6418
|
-
return q.concat(
|
|
6432
|
+
var h = [].slice.call(d.querySelectorAll("*"), 0).reduce(function(q, p) {
|
|
6433
|
+
return q.concat(p.shadowRoot ? u(p.shadowRoot) : [p]);
|
|
6419
6434
|
}, []);
|
|
6420
6435
|
return h.filter(s);
|
|
6421
6436
|
}
|
|
6422
6437
|
e.exports = t.default;
|
|
6423
6438
|
})(Nr, Nr.exports);
|
|
6424
|
-
var
|
|
6439
|
+
var Vi = Nr.exports;
|
|
6425
6440
|
Object.defineProperty(ke, "__esModule", {
|
|
6426
6441
|
value: !0
|
|
6427
6442
|
});
|
|
6428
|
-
ke.resetState =
|
|
6429
|
-
ke.log =
|
|
6430
|
-
ke.handleBlur =
|
|
6431
|
-
ke.handleFocus =
|
|
6432
|
-
ke.markForFocusLater =
|
|
6433
|
-
ke.returnFocus =
|
|
6434
|
-
ke.popWithoutFocus =
|
|
6435
|
-
ke.setupScopedFocus =
|
|
6436
|
-
ke.teardownScopedFocus =
|
|
6437
|
-
var
|
|
6438
|
-
function
|
|
6443
|
+
ke.resetState = Cs;
|
|
6444
|
+
ke.log = Zs;
|
|
6445
|
+
ke.handleBlur = wt;
|
|
6446
|
+
ke.handleFocus = Kt;
|
|
6447
|
+
ke.markForFocusLater = Is;
|
|
6448
|
+
ke.returnFocus = ws;
|
|
6449
|
+
ke.popWithoutFocus = Ks;
|
|
6450
|
+
ke.setupScopedFocus = Ws;
|
|
6451
|
+
ke.teardownScopedFocus = xs;
|
|
6452
|
+
var ys = Vi, vs = bs(ys);
|
|
6453
|
+
function bs(e) {
|
|
6439
6454
|
return e && e.__esModule ? e : { default: e };
|
|
6440
6455
|
}
|
|
6441
|
-
var
|
|
6442
|
-
function
|
|
6443
|
-
|
|
6456
|
+
var ot = [], lt = null, Dr = !1;
|
|
6457
|
+
function Cs() {
|
|
6458
|
+
ot = [];
|
|
6444
6459
|
}
|
|
6445
|
-
function
|
|
6446
|
-
process.env.NODE_ENV !== "production" && (console.log("focusManager ----------"),
|
|
6460
|
+
function Zs() {
|
|
6461
|
+
process.env.NODE_ENV !== "production" && (console.log("focusManager ----------"), ot.forEach(function(e) {
|
|
6447
6462
|
var t = e || {};
|
|
6448
6463
|
console.log(t.nodeName, t.className, t.id);
|
|
6449
6464
|
}), console.log("end focusManager ----------"));
|
|
6450
6465
|
}
|
|
6451
|
-
function
|
|
6466
|
+
function wt() {
|
|
6452
6467
|
Dr = !0;
|
|
6453
6468
|
}
|
|
6454
|
-
function
|
|
6469
|
+
function Kt() {
|
|
6455
6470
|
if (Dr) {
|
|
6456
6471
|
if (Dr = !1, !lt)
|
|
6457
6472
|
return;
|
|
6458
6473
|
setTimeout(function() {
|
|
6459
6474
|
if (!lt.contains(document.activeElement)) {
|
|
6460
|
-
var e = (0,
|
|
6475
|
+
var e = (0, vs.default)(lt)[0] || lt;
|
|
6461
6476
|
e.focus();
|
|
6462
6477
|
}
|
|
6463
6478
|
}, 0);
|
|
6464
6479
|
}
|
|
6465
6480
|
}
|
|
6466
|
-
function
|
|
6467
|
-
|
|
6481
|
+
function Is() {
|
|
6482
|
+
ot.push(document.activeElement);
|
|
6468
6483
|
}
|
|
6469
|
-
function
|
|
6484
|
+
function ws() {
|
|
6470
6485
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, t = null;
|
|
6471
6486
|
try {
|
|
6472
|
-
|
|
6487
|
+
ot.length !== 0 && (t = ot.pop(), t.focus({ preventScroll: e }));
|
|
6473
6488
|
return;
|
|
6474
6489
|
} catch {
|
|
6475
6490
|
console.warn(["You tried to return focus to", t, "but it is not in the DOM anymore"].join(" "));
|
|
6476
6491
|
}
|
|
6477
6492
|
}
|
|
6478
|
-
function
|
|
6479
|
-
|
|
6493
|
+
function Ks() {
|
|
6494
|
+
ot.length > 0 && ot.pop();
|
|
6480
6495
|
}
|
|
6481
|
-
function
|
|
6482
|
-
lt = e, window.addEventListener ? (window.addEventListener("blur",
|
|
6496
|
+
function Ws(e) {
|
|
6497
|
+
lt = e, window.addEventListener ? (window.addEventListener("blur", wt, !1), document.addEventListener("focus", Kt, !0)) : (window.attachEvent("onBlur", wt), document.attachEvent("onFocus", Kt));
|
|
6483
6498
|
}
|
|
6484
|
-
function
|
|
6485
|
-
lt = null, window.addEventListener ? (window.removeEventListener("blur",
|
|
6499
|
+
function xs() {
|
|
6500
|
+
lt = null, window.addEventListener ? (window.removeEventListener("blur", wt), document.removeEventListener("focus", Kt)) : (window.detachEvent("onBlur", wt), document.detachEvent("onFocus", Kt));
|
|
6486
6501
|
}
|
|
6487
6502
|
var Gr = { exports: {} };
|
|
6488
6503
|
(function(e, t) {
|
|
6489
6504
|
Object.defineProperty(t, "__esModule", {
|
|
6490
6505
|
value: !0
|
|
6491
6506
|
}), t.default = A;
|
|
6492
|
-
var r =
|
|
6507
|
+
var r = Vi, n = i(r);
|
|
6493
6508
|
function i(a) {
|
|
6494
6509
|
return a && a.__esModule ? a : { default: a };
|
|
6495
6510
|
}
|
|
@@ -6503,19 +6518,19 @@ var Gr = { exports: {} };
|
|
|
6503
6518
|
c.preventDefault();
|
|
6504
6519
|
return;
|
|
6505
6520
|
}
|
|
6506
|
-
var u = void 0, d = c.shiftKey, h = s[0], q = s[s.length - 1],
|
|
6507
|
-
if (a ===
|
|
6521
|
+
var u = void 0, d = c.shiftKey, h = s[0], q = s[s.length - 1], p = o();
|
|
6522
|
+
if (a === p) {
|
|
6508
6523
|
if (!d)
|
|
6509
6524
|
return;
|
|
6510
6525
|
u = q;
|
|
6511
6526
|
}
|
|
6512
|
-
if (q ===
|
|
6527
|
+
if (q === p && !d && (u = h), h === p && d && (u = q), u) {
|
|
6513
6528
|
c.preventDefault(), u.focus();
|
|
6514
6529
|
return;
|
|
6515
6530
|
}
|
|
6516
6531
|
var y = /(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent), C = y != null && y[1] != "Chrome" && /\biPod\b|\biPad\b/g.exec(navigator.userAgent) == null;
|
|
6517
6532
|
if (C) {
|
|
6518
|
-
var I = s.indexOf(
|
|
6533
|
+
var I = s.indexOf(p);
|
|
6519
6534
|
if (I > -1 && (I += d ? -1 : 1), u = s[I], typeof u > "u") {
|
|
6520
6535
|
c.preventDefault(), u = d ? q : h, u.focus();
|
|
6521
6536
|
return;
|
|
@@ -6525,10 +6540,10 @@ var Gr = { exports: {} };
|
|
|
6525
6540
|
}
|
|
6526
6541
|
e.exports = t.default;
|
|
6527
6542
|
})(Gr, Gr.exports);
|
|
6528
|
-
var
|
|
6543
|
+
var Os = Gr.exports, ze = {}, Ms = process.env.NODE_ENV !== "production", Bi = function() {
|
|
6529
6544
|
};
|
|
6530
|
-
if (
|
|
6531
|
-
var
|
|
6545
|
+
if (Ms) {
|
|
6546
|
+
var Ss = function(t, r) {
|
|
6532
6547
|
var n = arguments.length;
|
|
6533
6548
|
r = new Array(n > 1 ? n - 1 : 0);
|
|
6534
6549
|
for (var i = 1; i < n; i++)
|
|
@@ -6542,7 +6557,7 @@ if (xs) {
|
|
|
6542
6557
|
} catch {
|
|
6543
6558
|
}
|
|
6544
6559
|
};
|
|
6545
|
-
|
|
6560
|
+
Bi = function(e, t, r) {
|
|
6546
6561
|
var n = arguments.length;
|
|
6547
6562
|
r = new Array(n > 2 ? n - 2 : 0);
|
|
6548
6563
|
for (var i = 2; i < n; i++)
|
|
@@ -6551,10 +6566,10 @@ if (xs) {
|
|
|
6551
6566
|
throw new Error(
|
|
6552
6567
|
"`warning(condition, format, ...args)` requires a warning message argument"
|
|
6553
6568
|
);
|
|
6554
|
-
e ||
|
|
6569
|
+
e || Ss.apply(null, [t].concat(r));
|
|
6555
6570
|
};
|
|
6556
6571
|
}
|
|
6557
|
-
var
|
|
6572
|
+
var Ls = Bi, Ye = {}, Ui = { exports: {} };
|
|
6558
6573
|
/*!
|
|
6559
6574
|
Copyright (c) 2015 Jed Watson.
|
|
6560
6575
|
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
@@ -6571,46 +6586,46 @@ var Ms = Vi, Ee = {}, Ui = { exports: {} };
|
|
|
6571
6586
|
e.exports ? e.exports = r : window.ExecutionEnvironment = r;
|
|
6572
6587
|
})();
|
|
6573
6588
|
})(Ui);
|
|
6574
|
-
var
|
|
6575
|
-
Object.defineProperty(
|
|
6589
|
+
var Es = Ui.exports;
|
|
6590
|
+
Object.defineProperty(Ye, "__esModule", {
|
|
6576
6591
|
value: !0
|
|
6577
6592
|
});
|
|
6578
|
-
|
|
6579
|
-
var
|
|
6580
|
-
function
|
|
6593
|
+
Ye.canUseDOM = Ye.SafeNodeList = Ye.SafeHTMLCollection = void 0;
|
|
6594
|
+
var Ys = Es, ks = zs(Ys);
|
|
6595
|
+
function zs(e) {
|
|
6581
6596
|
return e && e.__esModule ? e : { default: e };
|
|
6582
6597
|
}
|
|
6583
|
-
var sr =
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6598
|
+
var sr = ks.default, js = sr.canUseDOM ? window.HTMLElement : {};
|
|
6599
|
+
Ye.SafeHTMLCollection = sr.canUseDOM ? window.HTMLCollection : {};
|
|
6600
|
+
Ye.SafeNodeList = sr.canUseDOM ? window.NodeList : {};
|
|
6601
|
+
Ye.canUseDOM = sr.canUseDOM;
|
|
6602
|
+
Ye.default = js;
|
|
6588
6603
|
Object.defineProperty(ze, "__esModule", {
|
|
6589
6604
|
value: !0
|
|
6590
6605
|
});
|
|
6591
|
-
ze.resetState =
|
|
6592
|
-
ze.log =
|
|
6606
|
+
ze.resetState = Rs;
|
|
6607
|
+
ze.log = Ts;
|
|
6593
6608
|
ze.assertNodeList = Fi;
|
|
6594
|
-
ze.setElement =
|
|
6609
|
+
ze.setElement = Hs;
|
|
6595
6610
|
ze.validateElement = tn;
|
|
6596
|
-
ze.hide =
|
|
6597
|
-
ze.show =
|
|
6598
|
-
ze.documentNotReadyOrSSRTesting =
|
|
6599
|
-
var
|
|
6600
|
-
function
|
|
6611
|
+
ze.hide = Xs;
|
|
6612
|
+
ze.show = Qs;
|
|
6613
|
+
ze.documentNotReadyOrSSRTesting = Ps;
|
|
6614
|
+
var Js = Ls, Ns = Gs(Js), Ds = Ye;
|
|
6615
|
+
function Gs(e) {
|
|
6601
6616
|
return e && e.__esModule ? e : { default: e };
|
|
6602
6617
|
}
|
|
6603
|
-
var
|
|
6604
|
-
function
|
|
6605
|
-
|
|
6618
|
+
var Ce = null;
|
|
6619
|
+
function Rs() {
|
|
6620
|
+
Ce && (Ce.removeAttribute ? Ce.removeAttribute("aria-hidden") : Ce.length != null ? Ce.forEach(function(e) {
|
|
6606
6621
|
return e.removeAttribute("aria-hidden");
|
|
6607
|
-
}) : document.querySelectorAll(
|
|
6622
|
+
}) : document.querySelectorAll(Ce).forEach(function(e) {
|
|
6608
6623
|
return e.removeAttribute("aria-hidden");
|
|
6609
|
-
})),
|
|
6624
|
+
})), Ce = null;
|
|
6610
6625
|
}
|
|
6611
|
-
function
|
|
6626
|
+
function Ts() {
|
|
6612
6627
|
if (process.env.NODE_ENV !== "production") {
|
|
6613
|
-
var e =
|
|
6628
|
+
var e = Ce || {};
|
|
6614
6629
|
console.log("ariaAppHider ----------"), console.log(e.nodeName, e.className, e.id), console.log("end ariaAppHider ----------");
|
|
6615
6630
|
}
|
|
6616
6631
|
}
|
|
@@ -6618,19 +6633,19 @@ function Fi(e, t) {
|
|
|
6618
6633
|
if (!e || !e.length)
|
|
6619
6634
|
throw new Error("react-modal: No elements were found for selector " + t + ".");
|
|
6620
6635
|
}
|
|
6621
|
-
function
|
|
6636
|
+
function Hs(e) {
|
|
6622
6637
|
var t = e;
|
|
6623
|
-
if (typeof t == "string" &&
|
|
6638
|
+
if (typeof t == "string" && Ds.canUseDOM) {
|
|
6624
6639
|
var r = document.querySelectorAll(t);
|
|
6625
6640
|
Fi(r, t), t = r;
|
|
6626
6641
|
}
|
|
6627
|
-
return
|
|
6642
|
+
return Ce = t || Ce, Ce;
|
|
6628
6643
|
}
|
|
6629
6644
|
function tn(e) {
|
|
6630
|
-
var t = e ||
|
|
6631
|
-
return t ? Array.isArray(t) || t instanceof HTMLCollection || t instanceof NodeList ? t : [t] : ((0,
|
|
6645
|
+
var t = e || Ce;
|
|
6646
|
+
return t ? Array.isArray(t) || t instanceof HTMLCollection || t instanceof NodeList ? t : [t] : ((0, Ns.default)(!1, ["react-modal: App element is not defined.", "Please use `Modal.setAppElement(el)` or set `appElement={el}`.", "This is needed so screen readers don't see main content", "when modal is opened. It is not recommended, but you can opt-out", "by setting `ariaHideApp={false}`."].join(" ")), []);
|
|
6632
6647
|
}
|
|
6633
|
-
function
|
|
6648
|
+
function Xs(e) {
|
|
6634
6649
|
var t = !0, r = !1, n = void 0;
|
|
6635
6650
|
try {
|
|
6636
6651
|
for (var i = tn(e)[Symbol.iterator](), o; !(t = (o = i.next()).done); t = !0) {
|
|
@@ -6648,7 +6663,7 @@ function Ts(e) {
|
|
|
6648
6663
|
}
|
|
6649
6664
|
}
|
|
6650
6665
|
}
|
|
6651
|
-
function
|
|
6666
|
+
function Qs(e) {
|
|
6652
6667
|
var t = !0, r = !1, n = void 0;
|
|
6653
6668
|
try {
|
|
6654
6669
|
for (var i = tn(e)[Symbol.iterator](), o; !(t = (o = i.next()).done); t = !0) {
|
|
@@ -6666,81 +6681,81 @@ function Hs(e) {
|
|
|
6666
6681
|
}
|
|
6667
6682
|
}
|
|
6668
6683
|
}
|
|
6669
|
-
function
|
|
6670
|
-
|
|
6684
|
+
function Ps() {
|
|
6685
|
+
Ce = null;
|
|
6671
6686
|
}
|
|
6672
6687
|
var dt = {};
|
|
6673
6688
|
Object.defineProperty(dt, "__esModule", {
|
|
6674
6689
|
value: !0
|
|
6675
6690
|
});
|
|
6676
|
-
dt.resetState =
|
|
6677
|
-
dt.log =
|
|
6678
|
-
var
|
|
6679
|
-
function
|
|
6691
|
+
dt.resetState = Vs;
|
|
6692
|
+
dt.log = Bs;
|
|
6693
|
+
var et = {}, tt = {};
|
|
6694
|
+
function Vn(e, t) {
|
|
6680
6695
|
e.classList.remove(t);
|
|
6681
6696
|
}
|
|
6682
|
-
function
|
|
6697
|
+
function Vs() {
|
|
6683
6698
|
var e = document.getElementsByTagName("html")[0];
|
|
6684
|
-
for (var t in
|
|
6685
|
-
|
|
6699
|
+
for (var t in et)
|
|
6700
|
+
Vn(e, et[t]);
|
|
6686
6701
|
var r = document.body;
|
|
6687
|
-
for (var n in
|
|
6688
|
-
|
|
6689
|
-
|
|
6702
|
+
for (var n in tt)
|
|
6703
|
+
Vn(r, tt[n]);
|
|
6704
|
+
et = {}, tt = {};
|
|
6690
6705
|
}
|
|
6691
|
-
function
|
|
6706
|
+
function Bs() {
|
|
6692
6707
|
if (process.env.NODE_ENV !== "production") {
|
|
6693
6708
|
var e = document.getElementsByTagName("html")[0].className, t = `Show tracked classes:
|
|
6694
6709
|
|
|
6695
6710
|
`;
|
|
6696
6711
|
t += "<html /> (" + e + `):
|
|
6697
6712
|
`;
|
|
6698
|
-
for (var r in
|
|
6699
|
-
t += " " + r + " " +
|
|
6713
|
+
for (var r in et)
|
|
6714
|
+
t += " " + r + " " + et[r] + `
|
|
6700
6715
|
`;
|
|
6701
6716
|
e = document.body.className, t += `
|
|
6702
6717
|
|
|
6703
6718
|
doc.body (` + e + `):
|
|
6704
6719
|
`;
|
|
6705
|
-
for (var n in
|
|
6706
|
-
t += " " + n + " " +
|
|
6720
|
+
for (var n in tt)
|
|
6721
|
+
t += " " + n + " " + tt[n] + `
|
|
6707
6722
|
`;
|
|
6708
6723
|
t += `
|
|
6709
6724
|
`, console.log(t);
|
|
6710
6725
|
}
|
|
6711
6726
|
}
|
|
6712
|
-
var
|
|
6727
|
+
var Us = function(t, r) {
|
|
6713
6728
|
return t[r] || (t[r] = 0), t[r] += 1, r;
|
|
6714
|
-
},
|
|
6729
|
+
}, Fs = function(t, r) {
|
|
6715
6730
|
return t[r] && (t[r] -= 1), r;
|
|
6716
|
-
},
|
|
6731
|
+
}, _s = function(t, r, n) {
|
|
6717
6732
|
n.forEach(function(i) {
|
|
6718
|
-
|
|
6733
|
+
Us(r, i), t.add(i);
|
|
6719
6734
|
});
|
|
6720
|
-
},
|
|
6735
|
+
}, $s = function(t, r, n) {
|
|
6721
6736
|
n.forEach(function(i) {
|
|
6722
|
-
|
|
6737
|
+
Fs(r, i), r[i] === 0 && t.remove(i);
|
|
6723
6738
|
});
|
|
6724
6739
|
};
|
|
6725
6740
|
dt.add = function(t, r) {
|
|
6726
|
-
return
|
|
6741
|
+
return _s(t.classList, t.nodeName.toLowerCase() == "html" ? et : tt, r.split(" "));
|
|
6727
6742
|
};
|
|
6728
6743
|
dt.remove = function(t, r) {
|
|
6729
|
-
return
|
|
6744
|
+
return $s(t.classList, t.nodeName.toLowerCase() == "html" ? et : tt, r.split(" "));
|
|
6730
6745
|
};
|
|
6731
6746
|
var pt = {};
|
|
6732
6747
|
Object.defineProperty(pt, "__esModule", {
|
|
6733
6748
|
value: !0
|
|
6734
6749
|
});
|
|
6735
|
-
pt.log =
|
|
6736
|
-
pt.resetState =
|
|
6737
|
-
function
|
|
6750
|
+
pt.log = tl;
|
|
6751
|
+
pt.resetState = rl;
|
|
6752
|
+
function el(e, t) {
|
|
6738
6753
|
if (!(e instanceof t))
|
|
6739
6754
|
throw new TypeError("Cannot call a class as a function");
|
|
6740
6755
|
}
|
|
6741
6756
|
var _i = function e() {
|
|
6742
6757
|
var t = this;
|
|
6743
|
-
|
|
6758
|
+
el(this, e), this.register = function(r) {
|
|
6744
6759
|
if (t.openInstances.indexOf(r) !== -1) {
|
|
6745
6760
|
process.env.NODE_ENV !== "production" && console.warn("React-Modal: Cannot register modal instance that's already open");
|
|
6746
6761
|
return;
|
|
@@ -6764,194 +6779,194 @@ var _i = function e() {
|
|
|
6764
6779
|
);
|
|
6765
6780
|
});
|
|
6766
6781
|
}, this.openInstances = [], this.subscribers = [];
|
|
6767
|
-
},
|
|
6768
|
-
function
|
|
6769
|
-
console.log("portalOpenInstances ----------"), console.log(
|
|
6782
|
+
}, Bt = new _i();
|
|
6783
|
+
function tl() {
|
|
6784
|
+
console.log("portalOpenInstances ----------"), console.log(Bt.openInstances.length), Bt.openInstances.forEach(function(e) {
|
|
6770
6785
|
return console.log(e);
|
|
6771
6786
|
}), console.log("end portalOpenInstances ----------");
|
|
6772
6787
|
}
|
|
6773
|
-
function
|
|
6774
|
-
|
|
6788
|
+
function rl() {
|
|
6789
|
+
Bt = new _i();
|
|
6775
6790
|
}
|
|
6776
|
-
pt.default =
|
|
6791
|
+
pt.default = Bt;
|
|
6777
6792
|
var rn = {};
|
|
6778
6793
|
Object.defineProperty(rn, "__esModule", {
|
|
6779
6794
|
value: !0
|
|
6780
6795
|
});
|
|
6781
|
-
rn.resetState =
|
|
6782
|
-
rn.log =
|
|
6783
|
-
var
|
|
6784
|
-
function
|
|
6796
|
+
rn.resetState = Al;
|
|
6797
|
+
rn.log = al;
|
|
6798
|
+
var nl = pt, il = ol(nl);
|
|
6799
|
+
function ol(e) {
|
|
6785
6800
|
return e && e.__esModule ? e : { default: e };
|
|
6786
6801
|
}
|
|
6787
|
-
var
|
|
6788
|
-
function
|
|
6789
|
-
for (var e = [
|
|
6802
|
+
var ge = void 0, Se = void 0, rt = [];
|
|
6803
|
+
function Al() {
|
|
6804
|
+
for (var e = [ge, Se], t = 0; t < e.length; t++) {
|
|
6790
6805
|
var r = e[t];
|
|
6791
6806
|
r && r.parentNode && r.parentNode.removeChild(r);
|
|
6792
6807
|
}
|
|
6793
|
-
|
|
6808
|
+
ge = Se = null, rt = [];
|
|
6794
6809
|
}
|
|
6795
|
-
function
|
|
6796
|
-
console.log("bodyTrap ----------"), console.log(
|
|
6797
|
-
for (var e = [
|
|
6810
|
+
function al() {
|
|
6811
|
+
console.log("bodyTrap ----------"), console.log(rt.length);
|
|
6812
|
+
for (var e = [ge, Se], t = 0; t < e.length; t++) {
|
|
6798
6813
|
var r = e[t], n = r || {};
|
|
6799
6814
|
console.log(n.nodeName, n.className, n.id);
|
|
6800
6815
|
}
|
|
6801
6816
|
console.log("edn bodyTrap ----------");
|
|
6802
6817
|
}
|
|
6803
|
-
function
|
|
6804
|
-
if (
|
|
6818
|
+
function Bn() {
|
|
6819
|
+
if (rt.length === 0) {
|
|
6805
6820
|
process.env.NODE_ENV !== "production" && console.warn("React-Modal: Open instances > 0 expected");
|
|
6806
6821
|
return;
|
|
6807
6822
|
}
|
|
6808
|
-
|
|
6823
|
+
rt[rt.length - 1].focusContent();
|
|
6809
6824
|
}
|
|
6810
|
-
function
|
|
6811
|
-
!
|
|
6825
|
+
function sl(e, t) {
|
|
6826
|
+
!ge && !Se && (ge = document.createElement("div"), ge.setAttribute("data-react-modal-body-trap", ""), ge.style.position = "absolute", ge.style.opacity = "0", ge.setAttribute("tabindex", "0"), ge.addEventListener("focus", Bn), Se = ge.cloneNode(), Se.addEventListener("focus", Bn)), rt = t, rt.length > 0 ? (document.body.firstChild !== ge && document.body.insertBefore(ge, document.body.firstChild), document.body.lastChild !== Se && document.body.appendChild(Se)) : (ge.parentElement && ge.parentElement.removeChild(ge), Se.parentElement && Se.parentElement.removeChild(Se));
|
|
6812
6827
|
}
|
|
6813
|
-
|
|
6828
|
+
il.default.subscribe(sl);
|
|
6814
6829
|
(function(e, t) {
|
|
6815
6830
|
Object.defineProperty(t, "__esModule", {
|
|
6816
6831
|
value: !0
|
|
6817
6832
|
});
|
|
6818
|
-
var r = Object.assign || function(
|
|
6819
|
-
for (var
|
|
6820
|
-
var
|
|
6821
|
-
for (var
|
|
6822
|
-
Object.prototype.hasOwnProperty.call(
|
|
6823
|
-
}
|
|
6824
|
-
return
|
|
6825
|
-
}, n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
6826
|
-
return typeof
|
|
6827
|
-
} : function(
|
|
6828
|
-
return
|
|
6833
|
+
var r = Object.assign || function(x) {
|
|
6834
|
+
for (var w = 1; w < arguments.length; w++) {
|
|
6835
|
+
var L = arguments[w];
|
|
6836
|
+
for (var f in L)
|
|
6837
|
+
Object.prototype.hasOwnProperty.call(L, f) && (x[f] = L[f]);
|
|
6838
|
+
}
|
|
6839
|
+
return x;
|
|
6840
|
+
}, n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(x) {
|
|
6841
|
+
return typeof x;
|
|
6842
|
+
} : function(x) {
|
|
6843
|
+
return x && typeof Symbol == "function" && x.constructor === Symbol && x !== Symbol.prototype ? "symbol" : typeof x;
|
|
6829
6844
|
}, i = function() {
|
|
6830
|
-
function
|
|
6831
|
-
for (var
|
|
6832
|
-
var W =
|
|
6833
|
-
W.enumerable = W.enumerable || !1, W.configurable = !0, "value" in W && (W.writable = !0), Object.defineProperty(
|
|
6845
|
+
function x(w, L) {
|
|
6846
|
+
for (var f = 0; f < L.length; f++) {
|
|
6847
|
+
var W = L[f];
|
|
6848
|
+
W.enumerable = W.enumerable || !1, W.configurable = !0, "value" in W && (W.writable = !0), Object.defineProperty(w, W.key, W);
|
|
6834
6849
|
}
|
|
6835
6850
|
}
|
|
6836
|
-
return function(
|
|
6837
|
-
return
|
|
6851
|
+
return function(w, L, f) {
|
|
6852
|
+
return L && x(w.prototype, L), f && x(w, f), w;
|
|
6838
6853
|
};
|
|
6839
|
-
}(), o =
|
|
6840
|
-
function
|
|
6841
|
-
if (
|
|
6842
|
-
return
|
|
6843
|
-
var
|
|
6844
|
-
if (
|
|
6845
|
-
for (var
|
|
6846
|
-
Object.prototype.hasOwnProperty.call(
|
|
6847
|
-
return
|
|
6848
|
-
}
|
|
6849
|
-
function b(
|
|
6850
|
-
return
|
|
6851
|
-
}
|
|
6852
|
-
function
|
|
6853
|
-
if (!(
|
|
6854
|
+
}(), o = re, A = $t, a = b(A), c = ke, s = E(c), u = Os, d = b(u), h = ze, q = E(h), p = dt, y = E(p), C = Ye, I = b(C), k = pt, N = b(k);
|
|
6855
|
+
function E(x) {
|
|
6856
|
+
if (x && x.__esModule)
|
|
6857
|
+
return x;
|
|
6858
|
+
var w = {};
|
|
6859
|
+
if (x != null)
|
|
6860
|
+
for (var L in x)
|
|
6861
|
+
Object.prototype.hasOwnProperty.call(x, L) && (w[L] = x[L]);
|
|
6862
|
+
return w.default = x, w;
|
|
6863
|
+
}
|
|
6864
|
+
function b(x) {
|
|
6865
|
+
return x && x.__esModule ? x : { default: x };
|
|
6866
|
+
}
|
|
6867
|
+
function U(x, w) {
|
|
6868
|
+
if (!(x instanceof w))
|
|
6854
6869
|
throw new TypeError("Cannot call a class as a function");
|
|
6855
6870
|
}
|
|
6856
|
-
function se(
|
|
6857
|
-
if (!
|
|
6871
|
+
function se(x, w) {
|
|
6872
|
+
if (!x)
|
|
6858
6873
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6859
|
-
return
|
|
6874
|
+
return w && (typeof w == "object" || typeof w == "function") ? w : x;
|
|
6860
6875
|
}
|
|
6861
|
-
function
|
|
6862
|
-
if (typeof
|
|
6863
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
6864
|
-
|
|
6876
|
+
function $(x, w) {
|
|
6877
|
+
if (typeof w != "function" && w !== null)
|
|
6878
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof w);
|
|
6879
|
+
x.prototype = Object.create(w && w.prototype, { constructor: { value: x, enumerable: !1, writable: !0, configurable: !0 } }), w && (Object.setPrototypeOf ? Object.setPrototypeOf(x, w) : x.__proto__ = w);
|
|
6865
6880
|
}
|
|
6866
|
-
var
|
|
6881
|
+
var ne = {
|
|
6867
6882
|
overlay: "ReactModal__Overlay",
|
|
6868
6883
|
content: "ReactModal__Content"
|
|
6869
|
-
},
|
|
6870
|
-
return
|
|
6871
|
-
},
|
|
6872
|
-
return
|
|
6873
|
-
},
|
|
6874
|
-
|
|
6875
|
-
function
|
|
6876
|
-
|
|
6877
|
-
var
|
|
6878
|
-
return
|
|
6879
|
-
|
|
6880
|
-
},
|
|
6881
|
-
|
|
6882
|
-
},
|
|
6883
|
-
var W =
|
|
6884
|
-
|
|
6885
|
-
},
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
overlayEl:
|
|
6890
|
-
contentEl:
|
|
6884
|
+
}, ce = function(w) {
|
|
6885
|
+
return w.code === "Tab" || w.keyCode === 9;
|
|
6886
|
+
}, ae = function(w) {
|
|
6887
|
+
return w.code === "Escape" || w.keyCode === 27;
|
|
6888
|
+
}, ee = 0, P = function(x) {
|
|
6889
|
+
$(w, x);
|
|
6890
|
+
function w(L) {
|
|
6891
|
+
U(this, w);
|
|
6892
|
+
var f = se(this, (w.__proto__ || Object.getPrototypeOf(w)).call(this, L));
|
|
6893
|
+
return f.setOverlayRef = function(W) {
|
|
6894
|
+
f.overlay = W, f.props.overlayRef && f.props.overlayRef(W);
|
|
6895
|
+
}, f.setContentRef = function(W) {
|
|
6896
|
+
f.content = W, f.props.contentRef && f.props.contentRef(W);
|
|
6897
|
+
}, f.afterClose = function() {
|
|
6898
|
+
var W = f.props, J = W.appElement, g = W.ariaHideApp, K = W.htmlOpenClassName, O = W.bodyOpenClassName, D = W.parentSelector, G = D && D().ownerDocument || document;
|
|
6899
|
+
O && y.remove(G.body, O), K && y.remove(G.getElementsByTagName("html")[0], K), g && ee > 0 && (ee -= 1, ee === 0 && q.show(J)), f.props.shouldFocusAfterRender && (f.props.shouldReturnFocusAfterClose ? (s.returnFocus(f.props.preventScroll), s.teardownScopedFocus()) : s.popWithoutFocus()), f.props.onAfterClose && f.props.onAfterClose(), N.default.deregister(f);
|
|
6900
|
+
}, f.open = function() {
|
|
6901
|
+
f.beforeOpen(), f.state.afterOpen && f.state.beforeClose ? (clearTimeout(f.closeTimer), f.setState({ beforeClose: !1 })) : (f.props.shouldFocusAfterRender && (s.setupScopedFocus(f.node), s.markForFocusLater()), f.setState({ isOpen: !0 }, function() {
|
|
6902
|
+
f.openAnimationFrame = requestAnimationFrame(function() {
|
|
6903
|
+
f.setState({ afterOpen: !0 }), f.props.isOpen && f.props.onAfterOpen && f.props.onAfterOpen({
|
|
6904
|
+
overlayEl: f.overlay,
|
|
6905
|
+
contentEl: f.content
|
|
6891
6906
|
});
|
|
6892
6907
|
});
|
|
6893
6908
|
}));
|
|
6894
|
-
},
|
|
6895
|
-
|
|
6896
|
-
},
|
|
6897
|
-
return
|
|
6898
|
-
},
|
|
6899
|
-
var W = Date.now() +
|
|
6900
|
-
|
|
6901
|
-
|
|
6909
|
+
}, f.close = function() {
|
|
6910
|
+
f.props.closeTimeoutMS > 0 ? f.closeWithTimeout() : f.closeWithoutTimeout();
|
|
6911
|
+
}, f.focusContent = function() {
|
|
6912
|
+
return f.content && !f.contentHasFocus() && f.content.focus({ preventScroll: !0 });
|
|
6913
|
+
}, f.closeWithTimeout = function() {
|
|
6914
|
+
var W = Date.now() + f.props.closeTimeoutMS;
|
|
6915
|
+
f.setState({ beforeClose: !0, closesAt: W }, function() {
|
|
6916
|
+
f.closeTimer = setTimeout(f.closeWithoutTimeout, f.state.closesAt - Date.now());
|
|
6902
6917
|
});
|
|
6903
|
-
},
|
|
6904
|
-
|
|
6918
|
+
}, f.closeWithoutTimeout = function() {
|
|
6919
|
+
f.setState({
|
|
6905
6920
|
beforeClose: !1,
|
|
6906
6921
|
isOpen: !1,
|
|
6907
6922
|
afterOpen: !1,
|
|
6908
6923
|
closesAt: null
|
|
6909
|
-
},
|
|
6910
|
-
},
|
|
6911
|
-
|
|
6912
|
-
},
|
|
6913
|
-
|
|
6914
|
-
},
|
|
6915
|
-
|
|
6916
|
-
},
|
|
6917
|
-
!
|
|
6918
|
-
},
|
|
6919
|
-
|
|
6920
|
-
},
|
|
6921
|
-
|
|
6922
|
-
},
|
|
6923
|
-
return
|
|
6924
|
-
},
|
|
6925
|
-
return
|
|
6926
|
-
},
|
|
6927
|
-
return !
|
|
6928
|
-
},
|
|
6929
|
-
return document.activeElement ===
|
|
6930
|
-
},
|
|
6924
|
+
}, f.afterClose);
|
|
6925
|
+
}, f.handleKeyDown = function(W) {
|
|
6926
|
+
ce(W) && (0, d.default)(f.content, W), f.props.shouldCloseOnEsc && ae(W) && (W.stopPropagation(), f.requestClose(W));
|
|
6927
|
+
}, f.handleOverlayOnClick = function(W) {
|
|
6928
|
+
f.shouldClose === null && (f.shouldClose = !0), f.shouldClose && f.props.shouldCloseOnOverlayClick && (f.ownerHandlesClose() ? f.requestClose(W) : f.focusContent()), f.shouldClose = null;
|
|
6929
|
+
}, f.handleContentOnMouseUp = function() {
|
|
6930
|
+
f.shouldClose = !1;
|
|
6931
|
+
}, f.handleOverlayOnMouseDown = function(W) {
|
|
6932
|
+
!f.props.shouldCloseOnOverlayClick && W.target == f.overlay && W.preventDefault();
|
|
6933
|
+
}, f.handleContentOnClick = function() {
|
|
6934
|
+
f.shouldClose = !1;
|
|
6935
|
+
}, f.handleContentOnMouseDown = function() {
|
|
6936
|
+
f.shouldClose = !1;
|
|
6937
|
+
}, f.requestClose = function(W) {
|
|
6938
|
+
return f.ownerHandlesClose() && f.props.onRequestClose(W);
|
|
6939
|
+
}, f.ownerHandlesClose = function() {
|
|
6940
|
+
return f.props.onRequestClose;
|
|
6941
|
+
}, f.shouldBeClosed = function() {
|
|
6942
|
+
return !f.state.isOpen && !f.state.beforeClose;
|
|
6943
|
+
}, f.contentHasFocus = function() {
|
|
6944
|
+
return document.activeElement === f.content || f.content.contains(document.activeElement);
|
|
6945
|
+
}, f.buildClassName = function(W, J) {
|
|
6931
6946
|
var g = (typeof J > "u" ? "undefined" : n(J)) === "object" ? J : {
|
|
6932
|
-
base:
|
|
6933
|
-
afterOpen:
|
|
6934
|
-
beforeClose:
|
|
6935
|
-
},
|
|
6936
|
-
return
|
|
6937
|
-
},
|
|
6938
|
-
return Object.keys(J).reduce(function(g,
|
|
6939
|
-
return g[W + "-" +
|
|
6947
|
+
base: ne[W],
|
|
6948
|
+
afterOpen: ne[W] + "--after-open",
|
|
6949
|
+
beforeClose: ne[W] + "--before-close"
|
|
6950
|
+
}, K = g.base;
|
|
6951
|
+
return f.state.afterOpen && (K = K + " " + g.afterOpen), f.state.beforeClose && (K = K + " " + g.beforeClose), typeof J == "string" && J ? K + " " + J : K;
|
|
6952
|
+
}, f.attributesFromObject = function(W, J) {
|
|
6953
|
+
return Object.keys(J).reduce(function(g, K) {
|
|
6954
|
+
return g[W + "-" + K] = J[K], g;
|
|
6940
6955
|
}, {});
|
|
6941
|
-
},
|
|
6956
|
+
}, f.state = {
|
|
6942
6957
|
afterOpen: !1,
|
|
6943
6958
|
beforeClose: !1
|
|
6944
|
-
},
|
|
6959
|
+
}, f.shouldClose = null, f.moveFromContentToOverlay = null, f;
|
|
6945
6960
|
}
|
|
6946
|
-
return i(
|
|
6961
|
+
return i(w, [{
|
|
6947
6962
|
key: "componentDidMount",
|
|
6948
6963
|
value: function() {
|
|
6949
6964
|
this.props.isOpen && this.open();
|
|
6950
6965
|
}
|
|
6951
6966
|
}, {
|
|
6952
6967
|
key: "componentDidUpdate",
|
|
6953
|
-
value: function(
|
|
6954
|
-
process.env.NODE_ENV !== "production" && (
|
|
6968
|
+
value: function(f, W) {
|
|
6969
|
+
process.env.NODE_ENV !== "production" && (f.bodyOpenClassName !== this.props.bodyOpenClassName && console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'), f.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 && !f.isOpen ? this.open() : !this.props.isOpen && f.isOpen && this.close(), this.props.shouldFocusAfterRender && this.state.isOpen && !W.isOpen && this.focusContent();
|
|
6955
6970
|
}
|
|
6956
6971
|
}, {
|
|
6957
6972
|
key: "componentWillUnmount",
|
|
@@ -6961,26 +6976,26 @@ rl.default.subscribe(Al);
|
|
|
6961
6976
|
}, {
|
|
6962
6977
|
key: "beforeOpen",
|
|
6963
6978
|
value: function() {
|
|
6964
|
-
var
|
|
6965
|
-
|
|
6979
|
+
var f = this.props, W = f.appElement, J = f.ariaHideApp, g = f.htmlOpenClassName, K = f.bodyOpenClassName, O = f.parentSelector, D = O && O().ownerDocument || document;
|
|
6980
|
+
K && y.add(D.body, K), g && y.add(D.getElementsByTagName("html")[0], g), J && (ee += 1, q.hide(W)), N.default.register(this);
|
|
6966
6981
|
}
|
|
6967
6982
|
// Don't steal focus from inner elements
|
|
6968
6983
|
}, {
|
|
6969
6984
|
key: "render",
|
|
6970
6985
|
value: function() {
|
|
6971
|
-
var
|
|
6986
|
+
var f = this.props, W = f.id, J = f.className, g = f.overlayClassName, K = f.defaultStyles, O = f.children, D = J ? {} : K.content, G = g ? {} : K.overlay;
|
|
6972
6987
|
if (this.shouldBeClosed())
|
|
6973
6988
|
return null;
|
|
6974
|
-
var
|
|
6989
|
+
var R = {
|
|
6975
6990
|
ref: this.setOverlayRef,
|
|
6976
6991
|
className: this.buildClassName("overlay", g),
|
|
6977
|
-
style: r({},
|
|
6992
|
+
style: r({}, G, this.props.style.overlay),
|
|
6978
6993
|
onClick: this.handleOverlayOnClick,
|
|
6979
6994
|
onMouseDown: this.handleOverlayOnMouseDown
|
|
6980
|
-
},
|
|
6995
|
+
}, j = r({
|
|
6981
6996
|
id: W,
|
|
6982
6997
|
ref: this.setContentRef,
|
|
6983
|
-
style: r({},
|
|
6998
|
+
style: r({}, D, this.props.style.content),
|
|
6984
6999
|
className: this.buildClassName("content", J),
|
|
6985
7000
|
tabIndex: "-1",
|
|
6986
7001
|
onKeyDown: this.handleKeyDown,
|
|
@@ -6991,10 +7006,10 @@ rl.default.subscribe(Al);
|
|
|
6991
7006
|
"aria-label": this.props.contentLabel
|
|
6992
7007
|
}, this.attributesFromObject("aria", r({ modal: !0 }, this.props.aria)), this.attributesFromObject("data", this.props.data || {}), {
|
|
6993
7008
|
"data-testid": this.props.testId
|
|
6994
|
-
}), Y = this.props.contentElement(
|
|
6995
|
-
return this.props.overlayElement(
|
|
7009
|
+
}), Y = this.props.contentElement(j, O);
|
|
7010
|
+
return this.props.overlayElement(R, Y);
|
|
6996
7011
|
}
|
|
6997
|
-
}]),
|
|
7012
|
+
}]), w;
|
|
6998
7013
|
}(o.Component);
|
|
6999
7014
|
P.defaultProps = {
|
|
7000
7015
|
style: {
|
|
@@ -7041,7 +7056,7 @@ rl.default.subscribe(Al);
|
|
|
7041
7056
|
testId: a.default.string
|
|
7042
7057
|
}, t.default = P, e.exports = t.default;
|
|
7043
7058
|
})(Jr, Jr.exports);
|
|
7044
|
-
var
|
|
7059
|
+
var ll = Jr.exports;
|
|
7045
7060
|
function $i() {
|
|
7046
7061
|
var e = this.constructor.getDerivedStateFromProps(this.props, this.state);
|
|
7047
7062
|
e != null && this.setState(e);
|
|
@@ -7067,7 +7082,7 @@ function to(e, t) {
|
|
|
7067
7082
|
$i.__suppressDeprecationWarning = !0;
|
|
7068
7083
|
eo.__suppressDeprecationWarning = !0;
|
|
7069
7084
|
to.__suppressDeprecationWarning = !0;
|
|
7070
|
-
function
|
|
7085
|
+
function ul(e) {
|
|
7071
7086
|
var t = e.prototype;
|
|
7072
7087
|
if (!t || !t.isReactComponent)
|
|
7073
7088
|
throw new Error("Can only polyfill class components");
|
|
@@ -7102,14 +7117,14 @@ https://fb.me/react-async-component-lifecycle-hooks`
|
|
|
7102
7117
|
}
|
|
7103
7118
|
return e;
|
|
7104
7119
|
}
|
|
7105
|
-
const
|
|
7120
|
+
const cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7106
7121
|
__proto__: null,
|
|
7107
|
-
polyfill:
|
|
7108
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
7109
|
-
Object.defineProperty(
|
|
7122
|
+
polyfill: ul
|
|
7123
|
+
}, Symbol.toStringTag, { value: "Module" })), ml = /* @__PURE__ */ Oo(cl);
|
|
7124
|
+
Object.defineProperty(it, "__esModule", {
|
|
7110
7125
|
value: !0
|
|
7111
7126
|
});
|
|
7112
|
-
|
|
7127
|
+
it.bodyOpenClassName = it.portalClassName = void 0;
|
|
7113
7128
|
var Un = Object.assign || function(e) {
|
|
7114
7129
|
for (var t = 1; t < arguments.length; t++) {
|
|
7115
7130
|
var r = arguments[t];
|
|
@@ -7117,7 +7132,7 @@ var Un = Object.assign || function(e) {
|
|
|
7117
7132
|
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
7118
7133
|
}
|
|
7119
7134
|
return e;
|
|
7120
|
-
},
|
|
7135
|
+
}, dl = function() {
|
|
7121
7136
|
function e(t, r) {
|
|
7122
7137
|
for (var n = 0; n < r.length; n++) {
|
|
7123
7138
|
var i = r[n];
|
|
@@ -7127,8 +7142,8 @@ var Un = Object.assign || function(e) {
|
|
|
7127
7142
|
return function(t, r, n) {
|
|
7128
7143
|
return r && e(t.prototype, r), n && e(t, n), t;
|
|
7129
7144
|
};
|
|
7130
|
-
}(), ro =
|
|
7131
|
-
function
|
|
7145
|
+
}(), ro = re, Ut = St(ro), pl = Wo, Ft = St(pl), fl = $t, X = St(fl), hl = ll, Fn = St(hl), ql = ze, gl = vl(ql), Qe = Ye, _n = St(Qe), yl = ml;
|
|
7146
|
+
function vl(e) {
|
|
7132
7147
|
if (e && e.__esModule)
|
|
7133
7148
|
return e;
|
|
7134
7149
|
var t = {};
|
|
@@ -7140,7 +7155,7 @@ function gl(e) {
|
|
|
7140
7155
|
function St(e) {
|
|
7141
7156
|
return e && e.__esModule ? e : { default: e };
|
|
7142
7157
|
}
|
|
7143
|
-
function
|
|
7158
|
+
function bl(e, t) {
|
|
7144
7159
|
if (!(e instanceof t))
|
|
7145
7160
|
throw new TypeError("Cannot call a class as a function");
|
|
7146
7161
|
}
|
|
@@ -7149,28 +7164,28 @@ function $n(e, t) {
|
|
|
7149
7164
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7150
7165
|
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
7151
7166
|
}
|
|
7152
|
-
function
|
|
7167
|
+
function Cl(e, t) {
|
|
7153
7168
|
if (typeof t != "function" && t !== null)
|
|
7154
7169
|
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
7155
7170
|
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
7156
7171
|
}
|
|
7157
|
-
var
|
|
7172
|
+
var Zl = it.portalClassName = "ReactModalPortal", Il = it.bodyOpenClassName = "ReactModal__Body--open", Fe = Qe.canUseDOM && Ft.default.createPortal !== void 0, Rr = function(t) {
|
|
7158
7173
|
return document.createElement(t);
|
|
7159
7174
|
}, ei = function() {
|
|
7160
|
-
return
|
|
7175
|
+
return Fe ? Ft.default.createPortal : Ft.default.unstable_renderSubtreeIntoContainer;
|
|
7161
7176
|
};
|
|
7162
7177
|
function Nt(e) {
|
|
7163
7178
|
return e();
|
|
7164
7179
|
}
|
|
7165
7180
|
var ft = function(e) {
|
|
7166
|
-
|
|
7181
|
+
Cl(t, e);
|
|
7167
7182
|
function t() {
|
|
7168
7183
|
var r, n, i, o;
|
|
7169
|
-
|
|
7184
|
+
bl(this, t);
|
|
7170
7185
|
for (var A = arguments.length, a = Array(A), c = 0; c < A; c++)
|
|
7171
7186
|
a[c] = arguments[c];
|
|
7172
7187
|
return o = (n = (i = $n(this, (r = t.__proto__ || Object.getPrototypeOf(t)).call.apply(r, [this].concat(a))), i), i.removePortal = function() {
|
|
7173
|
-
!
|
|
7188
|
+
!Fe && Ft.default.unmountComponentAtNode(i.node);
|
|
7174
7189
|
var s = Nt(i.props.parentSelector);
|
|
7175
7190
|
s && s.contains(i.node) ? s.removeChild(i.node) : console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.');
|
|
7176
7191
|
}, i.portalRef = function(s) {
|
|
@@ -7180,13 +7195,13 @@ var ft = function(e) {
|
|
|
7180
7195
|
i.portalRef(d);
|
|
7181
7196
|
}, n), $n(i, o);
|
|
7182
7197
|
}
|
|
7183
|
-
return
|
|
7198
|
+
return dl(t, [{
|
|
7184
7199
|
key: "componentDidMount",
|
|
7185
7200
|
value: function() {
|
|
7186
|
-
if (
|
|
7187
|
-
|
|
7201
|
+
if (Qe.canUseDOM) {
|
|
7202
|
+
Fe || (this.node = Rr("div")), this.node.className = this.props.portalClassName;
|
|
7188
7203
|
var n = Nt(this.props.parentSelector);
|
|
7189
|
-
n.appendChild(this.node), !
|
|
7204
|
+
n.appendChild(this.node), !Fe && this.renderPortal(this.props);
|
|
7190
7205
|
}
|
|
7191
7206
|
}
|
|
7192
7207
|
}, {
|
|
@@ -7198,17 +7213,17 @@ var ft = function(e) {
|
|
|
7198
7213
|
}, {
|
|
7199
7214
|
key: "componentDidUpdate",
|
|
7200
7215
|
value: function(n, i, o) {
|
|
7201
|
-
if (
|
|
7216
|
+
if (Qe.canUseDOM) {
|
|
7202
7217
|
var A = this.props, a = A.isOpen, c = A.portalClassName;
|
|
7203
7218
|
n.portalClassName !== c && (this.node.className = c);
|
|
7204
7219
|
var s = o.prevParent, u = o.nextParent;
|
|
7205
|
-
u !== s && (s.removeChild(this.node), u.appendChild(this.node)), !(!n.isOpen && !a) && !
|
|
7220
|
+
u !== s && (s.removeChild(this.node), u.appendChild(this.node)), !(!n.isOpen && !a) && !Fe && this.renderPortal(this.props);
|
|
7206
7221
|
}
|
|
7207
7222
|
}
|
|
7208
7223
|
}, {
|
|
7209
7224
|
key: "componentWillUnmount",
|
|
7210
7225
|
value: function() {
|
|
7211
|
-
if (!(!
|
|
7226
|
+
if (!(!Qe.canUseDOM || !this.node || !this.portal)) {
|
|
7212
7227
|
var n = this.portal.state, i = Date.now(), o = n.isOpen && this.props.closeTimeoutMS && (n.closesAt || i + this.props.closeTimeoutMS);
|
|
7213
7228
|
o ? (n.beforeClose || this.portal.closeWithTimeout(), setTimeout(this.removePortal, o - i)) : this.removePortal();
|
|
7214
7229
|
}
|
|
@@ -7216,9 +7231,9 @@ var ft = function(e) {
|
|
|
7216
7231
|
}, {
|
|
7217
7232
|
key: "render",
|
|
7218
7233
|
value: function() {
|
|
7219
|
-
if (!
|
|
7234
|
+
if (!Qe.canUseDOM || !Fe)
|
|
7220
7235
|
return null;
|
|
7221
|
-
!this.node &&
|
|
7236
|
+
!this.node && Fe && (this.node = Rr("div"));
|
|
7222
7237
|
var n = ei();
|
|
7223
7238
|
return n(Ut.default.createElement(Fn.default, Un({
|
|
7224
7239
|
ref: this.portalRef,
|
|
@@ -7228,56 +7243,56 @@ var ft = function(e) {
|
|
|
7228
7243
|
}], [{
|
|
7229
7244
|
key: "setAppElement",
|
|
7230
7245
|
value: function(n) {
|
|
7231
|
-
|
|
7246
|
+
gl.setElement(n);
|
|
7232
7247
|
}
|
|
7233
7248
|
/* eslint-disable react/no-unused-prop-types */
|
|
7234
7249
|
/* eslint-enable react/no-unused-prop-types */
|
|
7235
7250
|
}]), t;
|
|
7236
7251
|
}(ro.Component);
|
|
7237
7252
|
ft.propTypes = {
|
|
7238
|
-
isOpen:
|
|
7239
|
-
style:
|
|
7240
|
-
content:
|
|
7241
|
-
overlay:
|
|
7253
|
+
isOpen: X.default.bool.isRequired,
|
|
7254
|
+
style: X.default.shape({
|
|
7255
|
+
content: X.default.object,
|
|
7256
|
+
overlay: X.default.object
|
|
7242
7257
|
}),
|
|
7243
|
-
portalClassName:
|
|
7244
|
-
bodyOpenClassName:
|
|
7245
|
-
htmlOpenClassName:
|
|
7246
|
-
className:
|
|
7247
|
-
base:
|
|
7248
|
-
afterOpen:
|
|
7249
|
-
beforeClose:
|
|
7258
|
+
portalClassName: X.default.string,
|
|
7259
|
+
bodyOpenClassName: X.default.string,
|
|
7260
|
+
htmlOpenClassName: X.default.string,
|
|
7261
|
+
className: X.default.oneOfType([X.default.string, X.default.shape({
|
|
7262
|
+
base: X.default.string.isRequired,
|
|
7263
|
+
afterOpen: X.default.string.isRequired,
|
|
7264
|
+
beforeClose: X.default.string.isRequired
|
|
7250
7265
|
})]),
|
|
7251
|
-
overlayClassName:
|
|
7252
|
-
base:
|
|
7253
|
-
afterOpen:
|
|
7254
|
-
beforeClose:
|
|
7266
|
+
overlayClassName: X.default.oneOfType([X.default.string, X.default.shape({
|
|
7267
|
+
base: X.default.string.isRequired,
|
|
7268
|
+
afterOpen: X.default.string.isRequired,
|
|
7269
|
+
beforeClose: X.default.string.isRequired
|
|
7255
7270
|
})]),
|
|
7256
|
-
appElement:
|
|
7257
|
-
onAfterOpen:
|
|
7258
|
-
onRequestClose:
|
|
7259
|
-
closeTimeoutMS:
|
|
7260
|
-
ariaHideApp:
|
|
7261
|
-
shouldFocusAfterRender:
|
|
7262
|
-
shouldCloseOnOverlayClick:
|
|
7263
|
-
shouldReturnFocusAfterClose:
|
|
7264
|
-
preventScroll:
|
|
7265
|
-
parentSelector:
|
|
7266
|
-
aria:
|
|
7267
|
-
data:
|
|
7268
|
-
role:
|
|
7269
|
-
contentLabel:
|
|
7270
|
-
shouldCloseOnEsc:
|
|
7271
|
-
overlayRef:
|
|
7272
|
-
contentRef:
|
|
7273
|
-
id:
|
|
7274
|
-
overlayElement:
|
|
7275
|
-
contentElement:
|
|
7271
|
+
appElement: X.default.oneOfType([X.default.instanceOf(_n.default), X.default.instanceOf(Qe.SafeHTMLCollection), X.default.instanceOf(Qe.SafeNodeList), X.default.arrayOf(X.default.instanceOf(_n.default))]),
|
|
7272
|
+
onAfterOpen: X.default.func,
|
|
7273
|
+
onRequestClose: X.default.func,
|
|
7274
|
+
closeTimeoutMS: X.default.number,
|
|
7275
|
+
ariaHideApp: X.default.bool,
|
|
7276
|
+
shouldFocusAfterRender: X.default.bool,
|
|
7277
|
+
shouldCloseOnOverlayClick: X.default.bool,
|
|
7278
|
+
shouldReturnFocusAfterClose: X.default.bool,
|
|
7279
|
+
preventScroll: X.default.bool,
|
|
7280
|
+
parentSelector: X.default.func,
|
|
7281
|
+
aria: X.default.object,
|
|
7282
|
+
data: X.default.object,
|
|
7283
|
+
role: X.default.string,
|
|
7284
|
+
contentLabel: X.default.string,
|
|
7285
|
+
shouldCloseOnEsc: X.default.bool,
|
|
7286
|
+
overlayRef: X.default.func,
|
|
7287
|
+
contentRef: X.default.func,
|
|
7288
|
+
id: X.default.string,
|
|
7289
|
+
overlayElement: X.default.func,
|
|
7290
|
+
contentElement: X.default.func
|
|
7276
7291
|
};
|
|
7277
7292
|
ft.defaultProps = {
|
|
7278
7293
|
isOpen: !1,
|
|
7279
|
-
portalClassName:
|
|
7280
|
-
bodyOpenClassName:
|
|
7294
|
+
portalClassName: Zl,
|
|
7295
|
+
bodyOpenClassName: Il,
|
|
7281
7296
|
role: "dialog",
|
|
7282
7297
|
ariaHideApp: !0,
|
|
7283
7298
|
closeTimeoutMS: 0,
|
|
@@ -7328,23 +7343,23 @@ ft.defaultStyles = {
|
|
|
7328
7343
|
padding: "20px"
|
|
7329
7344
|
}
|
|
7330
7345
|
};
|
|
7331
|
-
(0,
|
|
7346
|
+
(0, yl.polyfill)(ft);
|
|
7332
7347
|
process.env.NODE_ENV !== "production" && (ft.setCreateHTMLElement = function(e) {
|
|
7333
7348
|
return Rr = e;
|
|
7334
7349
|
});
|
|
7335
|
-
|
|
7350
|
+
it.default = ft;
|
|
7336
7351
|
(function(e, t) {
|
|
7337
7352
|
Object.defineProperty(t, "__esModule", {
|
|
7338
7353
|
value: !0
|
|
7339
7354
|
});
|
|
7340
|
-
var r =
|
|
7355
|
+
var r = it, n = i(r);
|
|
7341
7356
|
function i(o) {
|
|
7342
7357
|
return o && o.__esModule ? o : { default: o };
|
|
7343
7358
|
}
|
|
7344
7359
|
t.default = n.default, e.exports = t.default;
|
|
7345
7360
|
})(jr, jr.exports);
|
|
7346
|
-
var
|
|
7347
|
-
const
|
|
7361
|
+
var wl = jr.exports;
|
|
7362
|
+
const Kl = /* @__PURE__ */ xo(wl), Ol = ({
|
|
7348
7363
|
visible: e,
|
|
7349
7364
|
closeModal: t,
|
|
7350
7365
|
versionId: r,
|
|
@@ -7357,14 +7372,16 @@ const Il = /* @__PURE__ */ xo(Zl), Wl = ({
|
|
|
7357
7372
|
title: s,
|
|
7358
7373
|
iframeUrl: u,
|
|
7359
7374
|
handleDownloadError: d,
|
|
7360
|
-
fetchFileUrl: h
|
|
7375
|
+
fetchFileUrl: h,
|
|
7376
|
+
copyLinkFlexUrl: q,
|
|
7377
|
+
copyLinkPlayableUrl: p
|
|
7361
7378
|
}) => {
|
|
7362
|
-
const [
|
|
7363
|
-
A === "Flex" ? await
|
|
7379
|
+
const [y, C] = V(window.innerWidth), [I, k] = V(!1), [N, E] = V(u), b = async () => {
|
|
7380
|
+
A === "Flex" ? await Vt(
|
|
7364
7381
|
{ _id: r, network: "default" },
|
|
7365
7382
|
a
|
|
7366
|
-
).then((
|
|
7367
|
-
|
|
7383
|
+
).then((U) => {
|
|
7384
|
+
k(!0), E(h + "/" + U.url);
|
|
7368
7385
|
}) : await It(
|
|
7369
7386
|
a,
|
|
7370
7387
|
r,
|
|
@@ -7373,21 +7390,21 @@ const Il = /* @__PURE__ */ xo(Zl), Wl = ({
|
|
|
7373
7390
|
!1,
|
|
7374
7391
|
0,
|
|
7375
7392
|
{}
|
|
7376
|
-
).then((
|
|
7377
|
-
|
|
7393
|
+
).then((U) => {
|
|
7394
|
+
k(!0), E(h + "/" + U.url);
|
|
7378
7395
|
});
|
|
7379
7396
|
};
|
|
7380
7397
|
return be(() => {
|
|
7381
|
-
e ?
|
|
7398
|
+
e ? I || (b(), k(!0)) : k(!1);
|
|
7382
7399
|
}, [e]), be(() => {
|
|
7383
|
-
const
|
|
7384
|
-
|
|
7400
|
+
const U = () => {
|
|
7401
|
+
C(window.innerWidth);
|
|
7385
7402
|
};
|
|
7386
|
-
return window.addEventListener("resize",
|
|
7387
|
-
window.removeEventListener("resize",
|
|
7403
|
+
return window.addEventListener("resize", U), () => {
|
|
7404
|
+
window.removeEventListener("resize", U);
|
|
7388
7405
|
};
|
|
7389
7406
|
}, []), /* @__PURE__ */ m.jsxs(
|
|
7390
|
-
|
|
7407
|
+
Kl,
|
|
7391
7408
|
{
|
|
7392
7409
|
isOpen: e,
|
|
7393
7410
|
ariaHideApp: !1,
|
|
@@ -7401,8 +7418,8 @@ const Il = /* @__PURE__ */ xo(Zl), Wl = ({
|
|
|
7401
7418
|
borderRadius: "0.75rem",
|
|
7402
7419
|
backgroundColor: "white",
|
|
7403
7420
|
zIndex: 50,
|
|
7404
|
-
height:
|
|
7405
|
-
width:
|
|
7421
|
+
height: y > 1440 ? "700px" : "650px",
|
|
7422
|
+
width: y > 1440 ? "965px" : "975px",
|
|
7406
7423
|
overflow: "hidden",
|
|
7407
7424
|
paddingTop: "0px"
|
|
7408
7425
|
},
|
|
@@ -7447,15 +7464,17 @@ const Il = /* @__PURE__ */ xo(Zl), Wl = ({
|
|
|
7447
7464
|
}
|
|
7448
7465
|
),
|
|
7449
7466
|
/* @__PURE__ */ m.jsxs(Eo, { children: [
|
|
7450
|
-
|
|
7467
|
+
I ? /* @__PURE__ */ m.jsx(
|
|
7451
7468
|
Ha,
|
|
7452
7469
|
{
|
|
7453
7470
|
versionName: i,
|
|
7454
7471
|
versionId: r,
|
|
7455
7472
|
typeOfProduct: A,
|
|
7456
|
-
iframeUrl:
|
|
7473
|
+
iframeUrl: N,
|
|
7457
7474
|
api: a,
|
|
7458
|
-
fetchFileUrl: h
|
|
7475
|
+
fetchFileUrl: h,
|
|
7476
|
+
copyLinkFlexUrl: q,
|
|
7477
|
+
copyLinkPlayableUrl: p
|
|
7459
7478
|
}
|
|
7460
7479
|
) : /* @__PURE__ */ m.jsx(m.Fragment, { children: /* @__PURE__ */ m.jsx(
|
|
7461
7480
|
"div",
|
|
@@ -7467,7 +7486,7 @@ const Il = /* @__PURE__ */ xo(Zl), Wl = ({
|
|
|
7467
7486
|
justifyContent: "center",
|
|
7468
7487
|
alignItems: "center",
|
|
7469
7488
|
padding: "5px",
|
|
7470
|
-
height:
|
|
7489
|
+
height: y > 1440 ? "650px" : "625px",
|
|
7471
7490
|
borderRadius: "0px 0px 0px 16px",
|
|
7472
7491
|
marginTop: "20px"
|
|
7473
7492
|
// 'rounded-l-xl' typically means large rounded corners on the left side
|
|
@@ -7484,7 +7503,7 @@ const Il = /* @__PURE__ */ xo(Zl), Wl = ({
|
|
|
7484
7503
|
}
|
|
7485
7504
|
) }),
|
|
7486
7505
|
/* @__PURE__ */ m.jsx(
|
|
7487
|
-
|
|
7506
|
+
gs,
|
|
7488
7507
|
{
|
|
7489
7508
|
visible: e,
|
|
7490
7509
|
versionId: r,
|
|
@@ -7505,6 +7524,6 @@ const Il = /* @__PURE__ */ xo(Zl), Wl = ({
|
|
|
7505
7524
|
);
|
|
7506
7525
|
};
|
|
7507
7526
|
export {
|
|
7508
|
-
|
|
7527
|
+
Ol as DownloadModal
|
|
7509
7528
|
};
|
|
7510
7529
|
//# sourceMappingURL=index.es.js.map
|