arpeggi-framer-components 0.0.24 → 0.0.26
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +631 -623
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +22 -22
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -2,7 +2,7 @@ var Ka = Object.defineProperty;
|
|
2
2
|
var Ja = (e, t, i) => t in e ? Ka(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
3
3
|
var Gt = (e, t, i) => Ja(e, typeof t != "symbol" ? t + "" : t, i);
|
4
4
|
import * as Xa from "react";
|
5
|
-
import
|
5
|
+
import le, { useMemo as Ze, useRef as be, useReducer as Za, useEffect as Mt, useCallback as Ce, forwardRef as Qa, useImperativeHandle as eo, Fragment as to, useState as si, createContext as Ir, useLayoutEffect as no, useContext as ci, useDebugValue as Br } from "react";
|
6
6
|
function zr(e) {
|
7
7
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
8
8
|
}
|
@@ -16,11 +16,11 @@ var Yt = { exports: {} }, Ft = {};
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
18
18
|
*/
|
19
|
-
var
|
19
|
+
var _i;
|
20
20
|
function io() {
|
21
|
-
if (
|
22
|
-
|
23
|
-
var e =
|
21
|
+
if (_i) return Ft;
|
22
|
+
_i = 1;
|
23
|
+
var e = le, t = Symbol.for("react.element"), i = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
24
24
|
function o(s, c, p) {
|
25
25
|
var l, u = {}, f = null, m = null;
|
26
26
|
p !== void 0 && (f = "" + p), c.key !== void 0 && (f = "" + c.key), c.ref !== void 0 && (m = c.ref);
|
@@ -43,7 +43,7 @@ var Pt = {};
|
|
43
43
|
var Ci;
|
44
44
|
function ro() {
|
45
45
|
return Ci || (Ci = 1, process.env.NODE_ENV !== "production" && function() {
|
46
|
-
var e =
|
46
|
+
var e = le, t = Symbol.for("react.element"), i = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), v = Symbol.iterator, g = "@@iterator";
|
47
47
|
function w(d) {
|
48
48
|
if (d === null || typeof d != "object")
|
49
49
|
return null;
|
@@ -53,16 +53,16 @@ function ro() {
|
|
53
53
|
var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
54
54
|
function k(d) {
|
55
55
|
{
|
56
|
-
for (var R = arguments.length,
|
57
|
-
|
58
|
-
_("error", d,
|
56
|
+
for (var R = arguments.length, A = new Array(R > 1 ? R - 1 : 0), Y = 1; Y < R; Y++)
|
57
|
+
A[Y - 1] = arguments[Y];
|
58
|
+
_("error", d, A);
|
59
59
|
}
|
60
60
|
}
|
61
|
-
function _(d, R,
|
61
|
+
function _(d, R, A) {
|
62
62
|
{
|
63
63
|
var Y = x.ReactDebugCurrentFrame, oe = Y.getStackAddendum();
|
64
|
-
oe !== "" && (R += "%s",
|
65
|
-
var ge =
|
64
|
+
oe !== "" && (R += "%s", A = A.concat([oe]));
|
65
|
+
var ge = A.map(function(ie) {
|
66
66
|
return String(ie);
|
67
67
|
});
|
68
68
|
ge.unshift("Warning: " + R), Function.prototype.apply.call(console[d], console, ge);
|
@@ -77,12 +77,12 @@ function ro() {
|
|
77
77
|
// with.
|
78
78
|
d.$$typeof === G || d.getModuleId !== void 0));
|
79
79
|
}
|
80
|
-
function re(d, R,
|
80
|
+
function re(d, R, A) {
|
81
81
|
var Y = d.displayName;
|
82
82
|
if (Y)
|
83
83
|
return Y;
|
84
84
|
var oe = R.displayName || R.name || "";
|
85
|
-
return oe !== "" ?
|
85
|
+
return oe !== "" ? A + "(" + oe + ")" : A;
|
86
86
|
}
|
87
87
|
function xe(d) {
|
88
88
|
return d.displayName || "Context";
|
@@ -114,8 +114,8 @@ function ro() {
|
|
114
114
|
var R = d;
|
115
115
|
return xe(R) + ".Consumer";
|
116
116
|
case o:
|
117
|
-
var
|
118
|
-
return xe(
|
117
|
+
var A = d;
|
118
|
+
return xe(A._context) + ".Provider";
|
119
119
|
case c:
|
120
120
|
return re(d, d.render, "ForwardRef");
|
121
121
|
case u:
|
@@ -132,14 +132,14 @@ function ro() {
|
|
132
132
|
}
|
133
133
|
return null;
|
134
134
|
}
|
135
|
-
var
|
135
|
+
var U = Object.assign, pe = 0, Se, Re, ue, we, S, O, I;
|
136
136
|
function q() {
|
137
137
|
}
|
138
138
|
q.__reactDisabledLog = !0;
|
139
139
|
function B() {
|
140
140
|
{
|
141
|
-
if (
|
142
|
-
Se = console.log, Re = console.info,
|
141
|
+
if (pe === 0) {
|
142
|
+
Se = console.log, Re = console.info, ue = console.warn, we = console.error, S = console.group, O = console.groupCollapsed, I = console.groupEnd;
|
143
143
|
var d = {
|
144
144
|
configurable: !0,
|
145
145
|
enumerable: !0,
|
@@ -156,56 +156,56 @@ function ro() {
|
|
156
156
|
groupEnd: d
|
157
157
|
});
|
158
158
|
}
|
159
|
-
|
159
|
+
pe++;
|
160
160
|
}
|
161
161
|
}
|
162
162
|
function H() {
|
163
163
|
{
|
164
|
-
if (
|
164
|
+
if (pe--, pe === 0) {
|
165
165
|
var d = {
|
166
166
|
configurable: !0,
|
167
167
|
enumerable: !0,
|
168
168
|
writable: !0
|
169
169
|
};
|
170
170
|
Object.defineProperties(console, {
|
171
|
-
log:
|
171
|
+
log: U({}, d, {
|
172
172
|
value: Se
|
173
173
|
}),
|
174
|
-
info:
|
174
|
+
info: U({}, d, {
|
175
175
|
value: Re
|
176
176
|
}),
|
177
|
-
warn:
|
178
|
-
value:
|
177
|
+
warn: U({}, d, {
|
178
|
+
value: ue
|
179
179
|
}),
|
180
|
-
error:
|
180
|
+
error: U({}, d, {
|
181
181
|
value: we
|
182
182
|
}),
|
183
|
-
group:
|
183
|
+
group: U({}, d, {
|
184
184
|
value: S
|
185
185
|
}),
|
186
|
-
groupCollapsed:
|
186
|
+
groupCollapsed: U({}, d, {
|
187
187
|
value: O
|
188
188
|
}),
|
189
|
-
groupEnd:
|
189
|
+
groupEnd: U({}, d, {
|
190
190
|
value: I
|
191
191
|
})
|
192
192
|
});
|
193
193
|
}
|
194
|
-
|
194
|
+
pe < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
195
195
|
}
|
196
196
|
}
|
197
|
-
var z = x.ReactCurrentDispatcher,
|
198
|
-
function K(d, R,
|
197
|
+
var z = x.ReactCurrentDispatcher, W;
|
198
|
+
function K(d, R, A) {
|
199
199
|
{
|
200
|
-
if (
|
200
|
+
if (W === void 0)
|
201
201
|
try {
|
202
202
|
throw Error();
|
203
203
|
} catch (oe) {
|
204
204
|
var Y = oe.stack.trim().match(/\n( *(at )?)/);
|
205
|
-
|
205
|
+
W = Y && Y[1] || "";
|
206
206
|
}
|
207
207
|
return `
|
208
|
-
` +
|
208
|
+
` + W + d;
|
209
209
|
}
|
210
210
|
}
|
211
211
|
var ee = !1, L;
|
@@ -217,9 +217,9 @@ function ro() {
|
|
217
217
|
if (!d || ee)
|
218
218
|
return "";
|
219
219
|
{
|
220
|
-
var
|
221
|
-
if (
|
222
|
-
return
|
220
|
+
var A = L.get(d);
|
221
|
+
if (A !== void 0)
|
222
|
+
return A;
|
223
223
|
}
|
224
224
|
var Y;
|
225
225
|
ee = !0;
|
@@ -263,35 +263,35 @@ function ro() {
|
|
263
263
|
if (Xe && Y && typeof Xe.stack == "string") {
|
264
264
|
for (var ne = Xe.stack.split(`
|
265
265
|
`), Pe = Y.stack.split(`
|
266
|
-
`), _e = ne.length - 1,
|
267
|
-
|
268
|
-
for (; _e >= 1 &&
|
269
|
-
if (ne[_e] !== Pe[
|
270
|
-
if (_e !== 1 ||
|
266
|
+
`), _e = ne.length - 1, Ae = Pe.length - 1; _e >= 1 && Ae >= 0 && ne[_e] !== Pe[Ae]; )
|
267
|
+
Ae--;
|
268
|
+
for (; _e >= 1 && Ae >= 0; _e--, Ae--)
|
269
|
+
if (ne[_e] !== Pe[Ae]) {
|
270
|
+
if (_e !== 1 || Ae !== 1)
|
271
271
|
do
|
272
|
-
if (_e--,
|
272
|
+
if (_e--, Ae--, Ae < 0 || ne[_e] !== Pe[Ae]) {
|
273
273
|
var Le = `
|
274
274
|
` + ne[_e].replace(" at new ", " at ");
|
275
275
|
return d.displayName && Le.includes("<anonymous>") && (Le = Le.replace("<anonymous>", d.displayName)), typeof d == "function" && L.set(d, Le), Le;
|
276
276
|
}
|
277
|
-
while (_e >= 1 &&
|
277
|
+
while (_e >= 1 && Ae >= 0);
|
278
278
|
break;
|
279
279
|
}
|
280
280
|
}
|
281
281
|
} finally {
|
282
282
|
ee = !1, z.current = ge, H(), Error.prepareStackTrace = oe;
|
283
283
|
}
|
284
|
-
var gt = d ? d.displayName || d.name : "",
|
285
|
-
return typeof d == "function" && L.set(d,
|
284
|
+
var gt = d ? d.displayName || d.name : "", Oi = gt ? K(gt) : "";
|
285
|
+
return typeof d == "function" && L.set(d, Oi), Oi;
|
286
286
|
}
|
287
|
-
function F(d, R,
|
287
|
+
function F(d, R, A) {
|
288
288
|
return y(d, !1);
|
289
289
|
}
|
290
290
|
function J(d) {
|
291
291
|
var R = d.prototype;
|
292
292
|
return !!(R && R.isReactComponent);
|
293
293
|
}
|
294
|
-
function M(d, R,
|
294
|
+
function M(d, R, A) {
|
295
295
|
if (d == null)
|
296
296
|
return "";
|
297
297
|
if (typeof d == "function")
|
@@ -309,41 +309,41 @@ function ro() {
|
|
309
309
|
case c:
|
310
310
|
return F(d.render);
|
311
311
|
case u:
|
312
|
-
return M(d.type, R,
|
312
|
+
return M(d.type, R, A);
|
313
313
|
case f: {
|
314
314
|
var Y = d, oe = Y._payload, ge = Y._init;
|
315
315
|
try {
|
316
|
-
return M(ge(oe), R,
|
316
|
+
return M(ge(oe), R, A);
|
317
317
|
} catch {
|
318
318
|
}
|
319
319
|
}
|
320
320
|
}
|
321
321
|
return "";
|
322
322
|
}
|
323
|
-
var
|
323
|
+
var de = Object.prototype.hasOwnProperty, Te = {}, X = x.ReactDebugCurrentFrame;
|
324
324
|
function Q(d) {
|
325
325
|
if (d) {
|
326
|
-
var R = d._owner,
|
327
|
-
X.setExtraStackFrame(
|
326
|
+
var R = d._owner, A = M(d.type, d._source, R ? R.type : null);
|
327
|
+
X.setExtraStackFrame(A);
|
328
328
|
} else
|
329
329
|
X.setExtraStackFrame(null);
|
330
330
|
}
|
331
|
-
function Ee(d, R,
|
331
|
+
function Ee(d, R, A, Y, oe) {
|
332
332
|
{
|
333
|
-
var ge = Function.call.bind(
|
333
|
+
var ge = Function.call.bind(de);
|
334
334
|
for (var ie in d)
|
335
335
|
if (ge(d, ie)) {
|
336
336
|
var ne = void 0;
|
337
337
|
try {
|
338
338
|
if (typeof d[ie] != "function") {
|
339
|
-
var Pe = Error((Y || "React class") + ": " +
|
339
|
+
var Pe = Error((Y || "React class") + ": " + A + " type `" + ie + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[ie] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
340
340
|
throw Pe.name = "Invariant Violation", Pe;
|
341
341
|
}
|
342
|
-
ne = d[ie](R, ie, Y,
|
342
|
+
ne = d[ie](R, ie, Y, A, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
343
343
|
} catch (_e) {
|
344
344
|
ne = _e;
|
345
345
|
}
|
346
|
-
ne && !(ne instanceof Error) && (Q(oe), 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).", Y || "React class",
|
346
|
+
ne && !(ne instanceof Error) && (Q(oe), 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).", Y || "React class", A, ie, typeof ne), Q(null)), ne instanceof Error && !(ne.message in Te) && (Te[ne.message] = !0, Q(oe), k("Failed %s type: %s", A, ne.message), Q(null));
|
347
347
|
}
|
348
348
|
}
|
349
349
|
}
|
@@ -353,23 +353,23 @@ function ro() {
|
|
353
353
|
}
|
354
354
|
function Ke(d) {
|
355
355
|
{
|
356
|
-
var R = typeof Symbol == "function" && Symbol.toStringTag,
|
357
|
-
return
|
356
|
+
var R = typeof Symbol == "function" && Symbol.toStringTag, A = R && d[Symbol.toStringTag] || d.constructor.name || "Object";
|
357
|
+
return A;
|
358
358
|
}
|
359
359
|
}
|
360
360
|
function E(d) {
|
361
361
|
try {
|
362
|
-
return
|
362
|
+
return C(d), !1;
|
363
363
|
} catch {
|
364
364
|
return !0;
|
365
365
|
}
|
366
366
|
}
|
367
|
-
function
|
367
|
+
function C(d) {
|
368
368
|
return "" + d;
|
369
369
|
}
|
370
370
|
function ae(d) {
|
371
371
|
if (E(d))
|
372
|
-
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(d)),
|
372
|
+
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(d)), C(d);
|
373
373
|
}
|
374
374
|
var fe = x.ReactCurrentOwner, ke = {
|
375
375
|
key: !0,
|
@@ -379,7 +379,7 @@ function ro() {
|
|
379
379
|
}, et, Je, it;
|
380
380
|
it = {};
|
381
381
|
function kt(d) {
|
382
|
-
if (
|
382
|
+
if (de.call(d, "ref")) {
|
383
383
|
var R = Object.getOwnPropertyDescriptor(d, "ref").get;
|
384
384
|
if (R && R.isReactWarning)
|
385
385
|
return !1;
|
@@ -387,7 +387,7 @@ function ro() {
|
|
387
387
|
return d.ref !== void 0;
|
388
388
|
}
|
389
389
|
function Ot(d) {
|
390
|
-
if (
|
390
|
+
if (de.call(d, "key")) {
|
391
391
|
var R = Object.getOwnPropertyDescriptor(d, "key").get;
|
392
392
|
if (R && R.isReactWarning)
|
393
393
|
return !1;
|
@@ -396,40 +396,40 @@ function ro() {
|
|
396
396
|
}
|
397
397
|
function xt(d, R) {
|
398
398
|
if (typeof d.ref == "string" && fe.current && R && fe.current.stateNode !== R) {
|
399
|
-
var
|
400
|
-
it[
|
399
|
+
var A = te(fe.current.type);
|
400
|
+
it[A] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', te(fe.current.type), d.ref), it[A] = !0);
|
401
401
|
}
|
402
402
|
}
|
403
403
|
function _t(d, R) {
|
404
404
|
{
|
405
|
-
var
|
405
|
+
var A = function() {
|
406
406
|
et || (et = !0, k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", R));
|
407
407
|
};
|
408
|
-
|
409
|
-
get:
|
408
|
+
A.isReactWarning = !0, Object.defineProperty(d, "key", {
|
409
|
+
get: A,
|
410
410
|
configurable: !0
|
411
411
|
});
|
412
412
|
}
|
413
413
|
}
|
414
|
-
function
|
414
|
+
function Ct(d, R) {
|
415
415
|
{
|
416
|
-
var
|
416
|
+
var A = function() {
|
417
417
|
Je || (Je = !0, k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", R));
|
418
418
|
};
|
419
|
-
|
420
|
-
get:
|
419
|
+
A.isReactWarning = !0, Object.defineProperty(d, "ref", {
|
420
|
+
get: A,
|
421
421
|
configurable: !0
|
422
422
|
});
|
423
423
|
}
|
424
424
|
}
|
425
|
-
var
|
425
|
+
var At = function(d, R, A, Y, oe, ge, ie) {
|
426
426
|
var ne = {
|
427
427
|
// This tag allows us to uniquely identify this as a React Element
|
428
428
|
$$typeof: t,
|
429
429
|
// Built-in properties that belong on the element
|
430
430
|
type: d,
|
431
431
|
key: R,
|
432
|
-
ref:
|
432
|
+
ref: A,
|
433
433
|
props: ie,
|
434
434
|
// Record the component responsible for creating this element.
|
435
435
|
_owner: ge
|
@@ -451,38 +451,38 @@ function ro() {
|
|
451
451
|
value: oe
|
452
452
|
}), Object.freeze && (Object.freeze(ne.props), Object.freeze(ne)), ne;
|
453
453
|
};
|
454
|
-
function Dt(d, R,
|
454
|
+
function Dt(d, R, A, Y, oe) {
|
455
455
|
{
|
456
456
|
var ge, ie = {}, ne = null, Pe = null;
|
457
|
-
|
457
|
+
A !== void 0 && (ae(A), ne = "" + A), Ot(R) && (ae(R.key), ne = "" + R.key), kt(R) && (Pe = R.ref, xt(R, oe));
|
458
458
|
for (ge in R)
|
459
|
-
|
459
|
+
de.call(R, ge) && !ke.hasOwnProperty(ge) && (ie[ge] = R[ge]);
|
460
460
|
if (d && d.defaultProps) {
|
461
461
|
var _e = d.defaultProps;
|
462
462
|
for (ge in _e)
|
463
463
|
ie[ge] === void 0 && (ie[ge] = _e[ge]);
|
464
464
|
}
|
465
465
|
if (ne || Pe) {
|
466
|
-
var
|
467
|
-
ne && _t(ie,
|
466
|
+
var Ae = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
467
|
+
ne && _t(ie, Ae), Pe && Ct(ie, Ae);
|
468
468
|
}
|
469
|
-
return
|
469
|
+
return At(d, ne, Pe, oe, Y, fe.current, ie);
|
470
470
|
}
|
471
471
|
}
|
472
|
-
var jt = x.ReactCurrentOwner,
|
472
|
+
var jt = x.ReactCurrentOwner, wi = x.ReactDebugCurrentFrame;
|
473
473
|
function vt(d) {
|
474
474
|
if (d) {
|
475
|
-
var R = d._owner,
|
476
|
-
|
475
|
+
var R = d._owner, A = M(d.type, d._source, R ? R.type : null);
|
476
|
+
wi.setExtraStackFrame(A);
|
477
477
|
} else
|
478
|
-
|
478
|
+
wi.setExtraStackFrame(null);
|
479
479
|
}
|
480
480
|
var En;
|
481
481
|
En = !1;
|
482
482
|
function Sn(d) {
|
483
483
|
return typeof d == "object" && d !== null && d.$$typeof === t;
|
484
484
|
}
|
485
|
-
function
|
485
|
+
function Ei() {
|
486
486
|
{
|
487
487
|
if (jt.current) {
|
488
488
|
var d = te(jt.current.type);
|
@@ -497,40 +497,40 @@ Check the render method of \`` + d + "`.";
|
|
497
497
|
function Na(d) {
|
498
498
|
return "";
|
499
499
|
}
|
500
|
-
var
|
500
|
+
var Si = {};
|
501
501
|
function qa(d) {
|
502
502
|
{
|
503
|
-
var R =
|
503
|
+
var R = Ei();
|
504
504
|
if (!R) {
|
505
|
-
var
|
506
|
-
|
505
|
+
var A = typeof d == "string" ? d : d.displayName || d.name;
|
506
|
+
A && (R = `
|
507
507
|
|
508
|
-
Check the top-level render call using <` +
|
508
|
+
Check the top-level render call using <` + A + ">.");
|
509
509
|
}
|
510
510
|
return R;
|
511
511
|
}
|
512
512
|
}
|
513
|
-
function
|
513
|
+
function Ri(d, R) {
|
514
514
|
{
|
515
515
|
if (!d._store || d._store.validated || d.key != null)
|
516
516
|
return;
|
517
517
|
d._store.validated = !0;
|
518
|
-
var
|
519
|
-
if (
|
518
|
+
var A = qa(R);
|
519
|
+
if (Si[A])
|
520
520
|
return;
|
521
|
-
|
521
|
+
Si[A] = !0;
|
522
522
|
var Y = "";
|
523
|
-
d && d._owner && d._owner !== jt.current && (Y = " It was passed a child from " + te(d._owner.type) + "."), vt(d), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',
|
523
|
+
d && d._owner && d._owner !== jt.current && (Y = " It was passed a child from " + te(d._owner.type) + "."), vt(d), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', A, Y), vt(null);
|
524
524
|
}
|
525
525
|
}
|
526
|
-
function
|
526
|
+
function Ti(d, R) {
|
527
527
|
{
|
528
528
|
if (typeof d != "object")
|
529
529
|
return;
|
530
530
|
if (Ne(d))
|
531
|
-
for (var
|
532
|
-
var Y = d[
|
533
|
-
Sn(Y) &&
|
531
|
+
for (var A = 0; A < d.length; A++) {
|
532
|
+
var Y = d[A];
|
533
|
+
Sn(Y) && Ri(Y, R);
|
534
534
|
}
|
535
535
|
else if (Sn(d))
|
536
536
|
d._store && (d._store.validated = !0);
|
@@ -538,27 +538,27 @@ Check the top-level render call using <` + C + ">.");
|
|
538
538
|
var oe = w(d);
|
539
539
|
if (typeof oe == "function" && oe !== d.entries)
|
540
540
|
for (var ge = oe.call(d), ie; !(ie = ge.next()).done; )
|
541
|
-
Sn(ie.value) &&
|
541
|
+
Sn(ie.value) && Ri(ie.value, R);
|
542
542
|
}
|
543
543
|
}
|
544
544
|
}
|
545
|
-
function
|
545
|
+
function Wa(d) {
|
546
546
|
{
|
547
547
|
var R = d.type;
|
548
548
|
if (R == null || typeof R == "string")
|
549
549
|
return;
|
550
|
-
var
|
550
|
+
var A;
|
551
551
|
if (typeof R == "function")
|
552
|
-
|
552
|
+
A = R.propTypes;
|
553
553
|
else if (typeof R == "object" && (R.$$typeof === c || // Note: Memo only checks outer props here.
|
554
554
|
// Inner props are checked in the reconciler.
|
555
555
|
R.$$typeof === u))
|
556
|
-
|
556
|
+
A = R.propTypes;
|
557
557
|
else
|
558
558
|
return;
|
559
|
-
if (
|
559
|
+
if (A) {
|
560
560
|
var Y = te(R);
|
561
|
-
Ee(
|
561
|
+
Ee(A, d.props, "prop", Y, d);
|
562
562
|
} else if (R.PropTypes !== void 0 && !En) {
|
563
563
|
En = !0;
|
564
564
|
var oe = te(R);
|
@@ -567,10 +567,10 @@ Check the top-level render call using <` + C + ">.");
|
|
567
567
|
typeof R.getDefaultProps == "function" && !R.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
568
568
|
}
|
569
569
|
}
|
570
|
-
function
|
570
|
+
function Ua(d) {
|
571
571
|
{
|
572
|
-
for (var R = Object.keys(d.props),
|
573
|
-
var Y = R[
|
572
|
+
for (var R = Object.keys(d.props), A = 0; A < R.length; A++) {
|
573
|
+
var Y = R[A];
|
574
574
|
if (Y !== "children" && Y !== "key") {
|
575
575
|
vt(d), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Y), vt(null);
|
576
576
|
break;
|
@@ -579,49 +579,49 @@ Check the top-level render call using <` + C + ">.");
|
|
579
579
|
d.ref !== null && (vt(d), k("Invalid attribute `ref` supplied to `React.Fragment`."), vt(null));
|
580
580
|
}
|
581
581
|
}
|
582
|
-
function
|
582
|
+
function ki(d, R, A, Y, oe, ge) {
|
583
583
|
{
|
584
584
|
var ie = V(d);
|
585
585
|
if (!ie) {
|
586
586
|
var ne = "";
|
587
587
|
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (ne += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
588
588
|
var Pe = Na();
|
589
|
-
Pe ? ne += Pe : ne +=
|
589
|
+
Pe ? ne += Pe : ne += Ei();
|
590
590
|
var _e;
|
591
591
|
d === null ? _e = "null" : Ne(d) ? _e = "array" : d !== void 0 && d.$$typeof === t ? (_e = "<" + (te(d.type) || "Unknown") + " />", ne = " Did you accidentally export a JSX literal instead of a component?") : _e = typeof d, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _e, ne);
|
592
592
|
}
|
593
|
-
var
|
594
|
-
if (
|
595
|
-
return
|
593
|
+
var Ae = Dt(d, R, A, oe, ge);
|
594
|
+
if (Ae == null)
|
595
|
+
return Ae;
|
596
596
|
if (ie) {
|
597
597
|
var Le = R.children;
|
598
598
|
if (Le !== void 0)
|
599
599
|
if (Y)
|
600
600
|
if (Ne(Le)) {
|
601
601
|
for (var gt = 0; gt < Le.length; gt++)
|
602
|
-
|
602
|
+
Ti(Le[gt], d);
|
603
603
|
Object.freeze && Object.freeze(Le);
|
604
604
|
} else
|
605
605
|
k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
606
606
|
else
|
607
|
-
|
607
|
+
Ti(Le, d);
|
608
608
|
}
|
609
|
-
return d === n ?
|
609
|
+
return d === n ? Ua(Ae) : Wa(Ae), Ae;
|
610
610
|
}
|
611
611
|
}
|
612
|
-
function Va(d, R,
|
613
|
-
return
|
612
|
+
function Va(d, R, A) {
|
613
|
+
return ki(d, R, A, !0);
|
614
614
|
}
|
615
|
-
function Ha(d, R,
|
616
|
-
return
|
615
|
+
function Ha(d, R, A) {
|
616
|
+
return ki(d, R, A, !1);
|
617
617
|
}
|
618
618
|
var Ga = Ha, Ya = Va;
|
619
619
|
Pt.Fragment = n, Pt.jsx = Ga, Pt.jsxs = Ya;
|
620
620
|
}()), Pt;
|
621
621
|
}
|
622
|
-
var
|
622
|
+
var Ai;
|
623
623
|
function ao() {
|
624
|
-
return
|
624
|
+
return Ai || (Ai = 1, process.env.NODE_ENV === "production" ? Yt.exports = io() : Yt.exports = ro()), Yt.exports;
|
625
625
|
}
|
626
626
|
var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap: P, columnGap: P, gridColumnGap: P, rowGap: P, gridRowGap: P, inset: P, insetBlock: P, insetBlockEnd: P, insetBlockStart: P, insetInline: P, insetInlineEnd: P, insetInlineStart: P, margin: P, marginTop: P, marginRight: P, marginBottom: P, marginLeft: P, marginBlock: P, marginBlockEnd: P, marginBlockStart: P, marginInline: P, marginInlineEnd: P, marginInlineStart: P, padding: P, paddingTop: P, paddingRight: P, paddingBottom: P, paddingLeft: P, paddingBlock: P, paddingBlockEnd: P, paddingBlockStart: P, paddingInline: P, paddingInlineEnd: P, paddingInlineStart: P, top: P, right: P, bottom: P, left: P, scrollMargin: P, scrollMarginTop: P, scrollMarginRight: P, scrollMarginBottom: P, scrollMarginLeft: P, scrollMarginX: P, scrollMarginY: P, scrollMarginBlock: P, scrollMarginBlockEnd: P, scrollMarginBlockStart: P, scrollMarginInline: P, scrollMarginInlineEnd: P, scrollMarginInlineStart: P, scrollPadding: P, scrollPaddingTop: P, scrollPaddingRight: P, scrollPaddingBottom: P, scrollPaddingLeft: P, scrollPaddingX: P, scrollPaddingY: P, scrollPaddingBlock: P, scrollPaddingBlockEnd: P, scrollPaddingBlockStart: P, scrollPaddingInline: P, scrollPaddingInlineEnd: P, scrollPaddingInlineStart: P, fontSize: "fontSizes", background: me, backgroundColor: me, backgroundImage: me, borderImage: me, border: me, borderBlock: me, borderBlockEnd: me, borderBlockStart: me, borderBottom: me, borderBottomColor: me, borderColor: me, borderInline: me, borderInlineEnd: me, borderInlineStart: me, borderLeft: me, borderLeftColor: me, borderRight: me, borderRightColor: me, borderTop: me, borderTopColor: me, caretColor: me, color: me, columnRuleColor: me, fill: me, outline: me, outlineColor: me, stroke: me, textDecorationColor: me, fontFamily: "fonts", fontWeight: "fontWeights", lineHeight: "lineHeights", letterSpacing: "letterSpacings", blockSize: Ie, minBlockSize: Ie, maxBlockSize: Ie, inlineSize: Ie, minInlineSize: Ie, maxInlineSize: Ie, width: Ie, minWidth: Ie, maxWidth: Ie, height: Ie, minHeight: Ie, maxHeight: Ie, flexBasis: Ie, gridTemplateColumns: Ie, gridTemplateRows: Ie, borderWidth: "borderWidths", borderTopWidth: "borderWidths", borderRightWidth: "borderWidths", borderBottomWidth: "borderWidths", borderLeftWidth: "borderWidths", borderStyle: "borderStyles", borderTopStyle: "borderStyles", borderRightStyle: "borderStyles", borderBottomStyle: "borderStyles", borderLeftStyle: "borderStyles", borderRadius: "radii", borderTopLeftRadius: "radii", borderTopRightRadius: "radii", borderBottomRightRadius: "radii", borderBottomLeftRadius: "radii", boxShadow: "shadows", textShadow: "shadows", transition: "transitions", zIndex: "zIndices" }, so = (e, t) => typeof t == "function" ? { "()": Function.prototype.toString.call(t) } : t, Et = () => {
|
627
627
|
const e = /* @__PURE__ */ Object.create(null);
|
@@ -629,10 +629,10 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
629
629
|
const r = ((a) => JSON.stringify(a, so))(t);
|
630
630
|
return r in e ? e[r] : e[r] = i(t, ...n);
|
631
631
|
};
|
632
|
-
}, lt = Symbol.for("sxs.internal"),
|
632
|
+
}, lt = Symbol.for("sxs.internal"), li = (e, t) => Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)), Di = (e) => {
|
633
633
|
for (const t in e) return !0;
|
634
634
|
return !1;
|
635
|
-
}, { hasOwnProperty: co } = Object.prototype, Vn = (e) => e.includes("-") ? e : e.replace(/[A-Z]/g, (t) => "-" + t.toLowerCase()), lo = /\s+(?![^()]*\))/, ht = (e) => (t) => e(...typeof t == "string" ? String(t).split(lo) : [t]),
|
635
|
+
}, { hasOwnProperty: co } = Object.prototype, Vn = (e) => e.includes("-") ? e : e.replace(/[A-Z]/g, (t) => "-" + t.toLowerCase()), lo = /\s+(?![^()]*\))/, ht = (e) => (t) => e(...typeof t == "string" ? String(t).split(lo) : [t]), ji = { appearance: (e) => ({ WebkitAppearance: e, appearance: e }), backfaceVisibility: (e) => ({ WebkitBackfaceVisibility: e, backfaceVisibility: e }), backdropFilter: (e) => ({ WebkitBackdropFilter: e, backdropFilter: e }), backgroundClip: (e) => ({ WebkitBackgroundClip: e, backgroundClip: e }), boxDecorationBreak: (e) => ({ WebkitBoxDecorationBreak: e, boxDecorationBreak: e }), clipPath: (e) => ({ WebkitClipPath: e, clipPath: e }), content: (e) => ({ content: e.includes('"') || e.includes("'") || /^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e) ? e : `"${e}"` }), hyphens: (e) => ({ WebkitHyphens: e, hyphens: e }), maskImage: (e) => ({ WebkitMaskImage: e, maskImage: e }), maskSize: (e) => ({ WebkitMaskSize: e, maskSize: e }), tabSize: (e) => ({ MozTabSize: e, tabSize: e }), textSizeAdjust: (e) => ({ WebkitTextSizeAdjust: e, textSizeAdjust: e }), userSelect: (e) => ({ WebkitUserSelect: e, userSelect: e }), marginBlock: ht((e, t) => ({ marginBlockStart: e, marginBlockEnd: t || e })), marginInline: ht((e, t) => ({ marginInlineStart: e, marginInlineEnd: t || e })), maxSize: ht((e, t) => ({ maxBlockSize: e, maxInlineSize: t || e })), minSize: ht((e, t) => ({ minBlockSize: e, minInlineSize: t || e })), paddingBlock: ht((e, t) => ({ paddingBlockStart: e, paddingBlockEnd: t || e })), paddingInline: ht((e, t) => ({ paddingInlineStart: e, paddingInlineEnd: t || e })) }, Rn = /([\d.]+)([^]*)/, po = (e, t) => e.length ? e.reduce((i, n) => (i.push(...t.map((r) => r.includes("&") ? r.replace(/&/g, /[ +>|~]/.test(n) && /&.*&/.test(r) ? `:is(${n})` : n) : n + " " + r)), i), []) : t, uo = (e, t) => e in fo && typeof t == "string" ? t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/, (i, n, r, a) => n + (r === "stretch" ? `-moz-available${a};${Vn(e)}:${n}-webkit-fill-available` : `-moz-fit-content${a};${Vn(e)}:${n}fit-content`) + a) : String(t), fo = { blockSize: 1, height: 1, inlineSize: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, width: 1 }, Qe = (e) => e ? e + "-" : "", Lr = (e, t, i) => e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g, (n, r, a, o, s) => o == "$" == !!a ? n : (r || o == "--" ? "calc(" : "") + "var(--" + (o === "$" ? Qe(t) + (s.includes("$") ? "" : Qe(i)) + s.replace(/\$/g, "-") : s) + ")" + (r || o == "--" ? "*" + (r || "") + (a || "1") + ")" : "")), mo = /\s*,\s*(?![^()]*\))/, xo = Object.prototype.toString, yt = (e, t, i, n, r) => {
|
636
636
|
let a, o, s;
|
637
637
|
const c = (p, l, u) => {
|
638
638
|
let f, m;
|
@@ -647,31 +647,31 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
647
647
|
o = D, v(D(m)), o = null;
|
648
648
|
continue;
|
649
649
|
}
|
650
|
-
} else if (T in
|
651
|
-
const D =
|
650
|
+
} else if (T in ji) {
|
651
|
+
const D = ji[T];
|
652
652
|
if (D !== s) {
|
653
653
|
s = D, v(D(m)), s = null;
|
654
654
|
continue;
|
655
655
|
}
|
656
656
|
}
|
657
657
|
if (k && (w = f.slice(1) in n.media ? "@media " + n.media[f.slice(1)] : f, f = w.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g, (D, N, j, G, V, re) => {
|
658
|
-
const xe = Rn.test(N), te = 0.0625 * (xe ? -1 : 1), [
|
659
|
-
return "(" + (j[0] === "=" ? "" : j[0] === ">" === xe ? "max-" : "min-") +
|
658
|
+
const xe = Rn.test(N), te = 0.0625 * (xe ? -1 : 1), [U, pe] = xe ? [G, N] : [N, G];
|
659
|
+
return "(" + (j[0] === "=" ? "" : j[0] === ">" === xe ? "max-" : "min-") + U + ":" + (j[0] !== "=" && j.length === 1 ? pe.replace(Rn, (Se, Re, ue) => Number(Re) + te * (j === ">" ? 1 : -1) + ue) : pe) + (V ? ") and (" + (V[0] === ">" ? "min-" : "max-") + U + ":" + (V.length === 1 ? re.replace(Rn, (Se, Re, ue) => Number(Re) + te * (V === ">" ? -1 : 1) + ue) : re) : "") + ")";
|
660
660
|
})), b) {
|
661
661
|
const D = k ? u.concat(f) : [...u], N = k ? [...l] : po(l, f.split(mo));
|
662
|
-
a !== void 0 && r(
|
662
|
+
a !== void 0 && r(Fi(...a)), a = void 0, c(m, N, D);
|
663
663
|
} else a === void 0 && (a = [[], l, u]), f = k || f.charCodeAt(0) !== 36 ? f : `--${Qe(n.prefix)}${f.slice(1).replace(/\$/g, "-")}`, m = b ? m : typeof m == "number" ? m && T in vo ? String(m) + "px" : String(m) : Lr(uo(T, m ?? ""), n.prefix, n.themeMap[T]), a[0].push(`${k ? `${f} ` : `${Vn(f)}:`}${m}`);
|
664
664
|
}
|
665
665
|
}
|
666
666
|
var w, x;
|
667
667
|
};
|
668
|
-
v(p), a !== void 0 && r(
|
668
|
+
v(p), a !== void 0 && r(Fi(...a)), a = void 0;
|
669
669
|
};
|
670
670
|
c(e, t, i);
|
671
|
-
},
|
671
|
+
}, Fi = (e, t, i) => `${i.map((n) => `${n}{`).join("")}${t.length ? `${t.join(",")}{` : ""}${e.join(";")}${t.length ? "}" : ""}${Array(i.length ? i.length + 1 : 0).join("}")}`, vo = { animationDelay: 1, animationDuration: 1, backgroundSize: 1, blockSize: 1, border: 1, borderBlock: 1, borderBlockEnd: 1, borderBlockEndWidth: 1, borderBlockStart: 1, borderBlockStartWidth: 1, borderBlockWidth: 1, borderBottom: 1, borderBottomLeftRadius: 1, borderBottomRightRadius: 1, borderBottomWidth: 1, borderEndEndRadius: 1, borderEndStartRadius: 1, borderInlineEnd: 1, borderInlineEndWidth: 1, borderInlineStart: 1, borderInlineStartWidth: 1, borderInlineWidth: 1, borderLeft: 1, borderLeftWidth: 1, borderRadius: 1, borderRight: 1, borderRightWidth: 1, borderSpacing: 1, borderStartEndRadius: 1, borderStartStartRadius: 1, borderTop: 1, borderTopLeftRadius: 1, borderTopRightRadius: 1, borderTopWidth: 1, borderWidth: 1, bottom: 1, columnGap: 1, columnRule: 1, columnRuleWidth: 1, columnWidth: 1, containIntrinsicSize: 1, flexBasis: 1, fontSize: 1, gap: 1, gridAutoColumns: 1, gridAutoRows: 1, gridTemplateColumns: 1, gridTemplateRows: 1, height: 1, inlineSize: 1, inset: 1, insetBlock: 1, insetBlockEnd: 1, insetBlockStart: 1, insetInline: 1, insetInlineEnd: 1, insetInlineStart: 1, left: 1, letterSpacing: 1, margin: 1, marginBlock: 1, marginBlockEnd: 1, marginBlockStart: 1, marginBottom: 1, marginInline: 1, marginInlineEnd: 1, marginInlineStart: 1, marginLeft: 1, marginRight: 1, marginTop: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, offsetDistance: 1, offsetRotate: 1, outline: 1, outlineOffset: 1, outlineWidth: 1, overflowClipMargin: 1, padding: 1, paddingBlock: 1, paddingBlockEnd: 1, paddingBlockStart: 1, paddingBottom: 1, paddingInline: 1, paddingInlineEnd: 1, paddingInlineStart: 1, paddingLeft: 1, paddingRight: 1, paddingTop: 1, perspective: 1, right: 1, rowGap: 1, scrollMargin: 1, scrollMarginBlock: 1, scrollMarginBlockEnd: 1, scrollMarginBlockStart: 1, scrollMarginBottom: 1, scrollMarginInline: 1, scrollMarginInlineEnd: 1, scrollMarginInlineStart: 1, scrollMarginLeft: 1, scrollMarginRight: 1, scrollMarginTop: 1, scrollPadding: 1, scrollPaddingBlock: 1, scrollPaddingBlockEnd: 1, scrollPaddingBlockStart: 1, scrollPaddingBottom: 1, scrollPaddingInline: 1, scrollPaddingInlineEnd: 1, scrollPaddingInlineStart: 1, scrollPaddingLeft: 1, scrollPaddingRight: 1, scrollPaddingTop: 1, shapeMargin: 1, textDecoration: 1, textDecorationThickness: 1, textIndent: 1, textUnderlineOffset: 1, top: 1, transitionDelay: 1, transitionDuration: 1, verticalAlign: 1, width: 1, wordSpacing: 1 }, Pi = (e) => String.fromCharCode(e + (e > 25 ? 39 : 97)), pt = (e) => ((t) => {
|
672
672
|
let i, n = "";
|
673
|
-
for (i = Math.abs(t); i > 52; i = i / 52 | 0) n =
|
674
|
-
return
|
673
|
+
for (i = Math.abs(t); i > 52; i = i / 52 | 0) n = Pi(i % 52) + n;
|
674
|
+
return Pi(i % 52) + n;
|
675
675
|
})(((t, i) => {
|
676
676
|
let n = i.length;
|
677
677
|
for (; n; ) t = 33 * t ^ i.charCodeAt(--n);
|
@@ -750,7 +750,7 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
750
750
|
} catch {
|
751
751
|
}
|
752
752
|
};
|
753
|
-
}, It = Symbol(), bo = Et(),
|
753
|
+
}, It = Symbol(), bo = Et(), Ii = (e, t) => bo(e, () => (...i) => {
|
754
754
|
let n = { type: null, composers: /* @__PURE__ */ new Set() };
|
755
755
|
for (const r of i) if (r != null) if (r[lt]) {
|
756
756
|
n.type == null && (n.type = r[lt].type);
|
@@ -766,7 +766,7 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
766
766
|
for (const v in m) {
|
767
767
|
const g = { [f]: String(v) };
|
768
768
|
String(v) === "undefined" && p.push(f);
|
769
|
-
const w = m[v], x = [g, w, !
|
769
|
+
const w = m[v], x = [g, w, !Di(w)];
|
770
770
|
o.push(x);
|
771
771
|
}
|
772
772
|
}
|
@@ -775,7 +775,7 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
775
775
|
let { css: m, ...v } = f;
|
776
776
|
m = typeof m == "object" && m || {};
|
777
777
|
for (const w in v) v[w] = String(v[w]);
|
778
|
-
const g = [v, m, !
|
778
|
+
const g = [v, m, !Di(m)];
|
779
779
|
s.push(g);
|
780
780
|
}
|
781
781
|
return [a, n, o, s, c, p];
|
@@ -801,13 +801,13 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
801
801
|
i.rules.styled.cache.has(x) || (i.rules.styled.cache.add(x), yt(k, [`.${x}`], [], e, (N) => {
|
802
802
|
c.styled.apply(N);
|
803
803
|
}));
|
804
|
-
const b =
|
804
|
+
const b = Bi(_, v, e.media), D = Bi(T, v, e.media, !0);
|
805
805
|
for (const N of b) if (N !== void 0) for (const [j, G, V] of N) {
|
806
806
|
const re = `${x}-${pt(G)}-${j}`;
|
807
807
|
g.add(re);
|
808
808
|
const xe = (V ? i.rules.resonevar : i.rules.onevar).cache, te = V ? c.resonevar : c.onevar;
|
809
|
-
xe.has(re) || (xe.add(re), yt(G, [`.${re}`], [], e, (
|
810
|
-
te.apply(
|
809
|
+
xe.has(re) || (xe.add(re), yt(G, [`.${re}`], [], e, (U) => {
|
810
|
+
te.apply(U);
|
811
811
|
}));
|
812
812
|
}
|
813
813
|
for (const N of D) if (N !== void 0) for (const [j, G] of N) {
|
@@ -827,7 +827,7 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
827
827
|
const w = m.className = [...g].join(" ");
|
828
828
|
return { type: t.type, className: w, selector: p, props: m, toString: () => w, deferredInjector: s };
|
829
829
|
};
|
830
|
-
return
|
830
|
+
return li(l, { className: n, selector: p, [lt]: t, toString: () => (i.rules.styled.cache.has(n) || l(), n) });
|
831
831
|
}, So = (e) => {
|
832
832
|
let t = "";
|
833
833
|
const i = [], n = {}, r = [];
|
@@ -839,7 +839,7 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
839
839
|
}
|
840
840
|
}
|
841
841
|
return [t, i, n, new Set(r)];
|
842
|
-
},
|
842
|
+
}, Bi = (e, t, i, n) => {
|
843
843
|
const r = [];
|
844
844
|
e: for (let [a, o, s] of e) {
|
845
845
|
if (s) continue;
|
@@ -886,7 +886,7 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
886
886
|
}
|
887
887
|
return "";
|
888
888
|
};
|
889
|
-
return
|
889
|
+
return li(n, { toString: n });
|
890
890
|
}), Oo = Et(), _o = (e, t) => Oo(e, () => (i) => {
|
891
891
|
const n = `${Qe(e.prefix)}k-${pt(i)}`, r = () => {
|
892
892
|
if (!t.rules.global.cache.has(n)) {
|
@@ -898,10 +898,10 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
898
898
|
}
|
899
899
|
return n;
|
900
900
|
};
|
901
|
-
return
|
901
|
+
return li(r, { get name() {
|
902
902
|
return r();
|
903
903
|
}, toString: r });
|
904
|
-
}),
|
904
|
+
}), Co = class {
|
905
905
|
constructor(e, t, i, n) {
|
906
906
|
this.token = e == null ? "" : String(e), this.value = t == null ? "" : String(t), this.scale = i == null ? "" : String(i), this.prefix = n == null ? "" : String(n);
|
907
907
|
}
|
@@ -914,14 +914,14 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
914
914
|
toString() {
|
915
915
|
return this.computedValue;
|
916
916
|
}
|
917
|
-
},
|
917
|
+
}, Ao = Et(), Do = (e, t) => Ao(e, () => (i, n) => {
|
918
918
|
n = typeof i == "object" && i || Object(n);
|
919
919
|
const r = `.${i = (i = typeof i == "string" ? i : "") || `${Qe(e.prefix)}t-${pt(n)}`}`, a = {}, o = [];
|
920
920
|
for (const c in n) {
|
921
921
|
a[c] = {};
|
922
922
|
for (const p in n[c]) {
|
923
923
|
const l = `--${Qe(e.prefix)}${c}-${p}`, u = Lr(String(n[c][p]), e.prefix, c);
|
924
|
-
a[c][p] = new
|
924
|
+
a[c][p] = new Co(p, u, c, e.prefix), o.push(`${l}:${u}`);
|
925
925
|
}
|
926
926
|
}
|
927
927
|
const s = () => {
|
@@ -935,12 +935,12 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
935
935
|
return { ...a, get className() {
|
936
936
|
return s();
|
937
937
|
}, selector: r, toString: s };
|
938
|
-
}), jo = Et(),
|
938
|
+
}), jo = Et(), zi, Fo = Et(), Po = (e) => {
|
939
939
|
const t = ((i) => {
|
940
940
|
let n = !1;
|
941
941
|
const r = jo(i, (a) => {
|
942
942
|
n = !0;
|
943
|
-
const o = "prefix" in (a = typeof a == "object" && a || {}) ? String(a.prefix) : "", s = typeof a.media == "object" && a.media || {}, c = typeof a.root == "object" ? a.root || null : globalThis.document || null, p = typeof a.theme == "object" && a.theme || {}, l = { prefix: o, media: s, theme: p, themeMap: typeof a.themeMap == "object" && a.themeMap || { ...oo }, utils: typeof a.utils == "object" && a.utils || {} }, u = ho(c), f = { css:
|
943
|
+
const o = "prefix" in (a = typeof a == "object" && a || {}) ? String(a.prefix) : "", s = typeof a.media == "object" && a.media || {}, c = typeof a.root == "object" ? a.root || null : globalThis.document || null, p = typeof a.theme == "object" && a.theme || {}, l = { prefix: o, media: s, theme: p, themeMap: typeof a.themeMap == "object" && a.themeMap || { ...oo }, utils: typeof a.utils == "object" && a.utils || {} }, u = ho(c), f = { css: Ii(l, u), globalCss: ko(l, u), keyframes: _o(l, u), createTheme: Do(l, u), reset() {
|
944
944
|
u.reset(), f.theme.toString();
|
945
945
|
}, theme: {}, sheet: u, config: l, prefix: o, getCssText: u.toString, toString: u.toString };
|
946
946
|
return String(f.theme = f.createTheme(p)), f;
|
@@ -948,16 +948,16 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
948
948
|
return n || r.reset(), r;
|
949
949
|
})(e);
|
950
950
|
return t.styled = (({ config: i, sheet: n }) => Fo(i, () => {
|
951
|
-
const r =
|
951
|
+
const r = Ii(i, n);
|
952
952
|
return (...a) => {
|
953
|
-
const o = r(...a), s = o[lt].type, c =
|
953
|
+
const o = r(...a), s = o[lt].type, c = le.forwardRef((p, l) => {
|
954
954
|
const u = p && p.as || s, { props: f, deferredInjector: m } = o(p);
|
955
|
-
return delete f.as, f.ref = l, m ?
|
955
|
+
return delete f.as, f.ref = l, m ? le.createElement(le.Fragment, null, le.createElement(u, f), le.createElement(m, null)) : le.createElement(u, f);
|
956
956
|
});
|
957
957
|
return c.className = o.className, c.displayName = `Styled.${s.displayName || s.name || s}`, c.selector = o.selector, c.toString = () => o.selector, c[lt] = o[lt], c;
|
958
958
|
};
|
959
959
|
}))(t), t;
|
960
|
-
}, Mr = () =>
|
960
|
+
}, Mr = () => zi || (zi = Po()), Io = (...e) => Mr().keyframes(...e), qe = (...e) => Mr().styled(...e);
|
961
961
|
const St = qe("div", {
|
962
962
|
variants: {
|
963
963
|
width: {
|
@@ -1300,18 +1300,18 @@ const St = qe("div", {
|
|
1300
1300
|
}
|
1301
1301
|
}
|
1302
1302
|
});
|
1303
|
-
var Bt = {}, Kt = {}, rt = {},
|
1303
|
+
var Bt = {}, Kt = {}, rt = {}, Li;
|
1304
1304
|
function $r() {
|
1305
|
-
if (
|
1306
|
-
|
1305
|
+
if (Li) return rt;
|
1306
|
+
Li = 1, Object.defineProperty(rt, "__esModule", { value: !0 }), rt.fromHex = rt.toHex = void 0;
|
1307
1307
|
const e = (n) => new Number(n).toString(16).toLowerCase(), t = (n) => `0x${e(n).length === 1 ? "0" + e(n) : e(n)}`;
|
1308
1308
|
rt.toHex = t;
|
1309
1309
|
const i = (n) => new Number(n);
|
1310
1310
|
return rt.fromHex = i, rt;
|
1311
1311
|
}
|
1312
|
-
var Tn = {},
|
1312
|
+
var Tn = {}, Mi;
|
1313
1313
|
function Bo() {
|
1314
|
-
return
|
1314
|
+
return Mi || (Mi = 1, function(e) {
|
1315
1315
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.createComplexNode = e.createNode = e.merge = void 0;
|
1316
1316
|
const t = (c) => ({
|
1317
1317
|
typename: c.typename,
|
@@ -1358,10 +1358,10 @@ function Bo() {
|
|
1358
1358
|
e.createComplexNode = s;
|
1359
1359
|
}(Tn)), Tn;
|
1360
1360
|
}
|
1361
|
-
var
|
1361
|
+
var $i;
|
1362
1362
|
function zo() {
|
1363
|
-
if (
|
1364
|
-
|
1363
|
+
if ($i) return Kt;
|
1364
|
+
$i = 1, Object.defineProperty(Kt, "__esModule", { value: !0 });
|
1365
1365
|
const e = $r(), t = Bo();
|
1366
1366
|
let i = {
|
1367
1367
|
noOffset: null,
|
@@ -2293,9 +2293,9 @@ function zo() {
|
|
2293
2293
|
extension: "svg"
|
2294
2294
|
}), Kt.default = () => i, Kt;
|
2295
2295
|
}
|
2296
|
-
var
|
2296
|
+
var Ni;
|
2297
2297
|
function Lo() {
|
2298
|
-
return
|
2298
|
+
return Ni || (Ni = 1, function(e) {
|
2299
2299
|
var t = Bt && Bt.__importDefault || function(l) {
|
2300
2300
|
return l && l.__esModule ? l : { default: l };
|
2301
2301
|
};
|
@@ -2340,10 +2340,10 @@ var Mo = Lo(), Jt = { exports: {} }, Xt = { exports: {} }, se = {};
|
|
2340
2340
|
* This source code is licensed under the MIT license found in the
|
2341
2341
|
* LICENSE file in the root directory of this source tree.
|
2342
2342
|
*/
|
2343
|
-
var
|
2343
|
+
var qi;
|
2344
2344
|
function $o() {
|
2345
|
-
if (
|
2346
|
-
|
2345
|
+
if (qi) return se;
|
2346
|
+
qi = 1;
|
2347
2347
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
|
2348
2348
|
function _(b) {
|
2349
2349
|
if (typeof b == "object" && b !== null) {
|
@@ -2455,9 +2455,9 @@ function No() {
|
|
2455
2455
|
}
|
2456
2456
|
}
|
2457
2457
|
}
|
2458
|
-
var b = c, D = p, N = s, j = o, G = t, V = l, re = n, xe = v, te = m,
|
2458
|
+
var b = c, D = p, N = s, j = o, G = t, V = l, re = n, xe = v, te = m, U = i, pe = a, Se = r, Re = u, ue = !1;
|
2459
2459
|
function we(y) {
|
2460
|
-
return
|
2460
|
+
return ue || (ue = !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.")), S(y) || T(y) === c;
|
2461
2461
|
}
|
2462
2462
|
function S(y) {
|
2463
2463
|
return T(y) === p;
|
@@ -2480,7 +2480,7 @@ function No() {
|
|
2480
2480
|
function z(y) {
|
2481
2481
|
return T(y) === v;
|
2482
2482
|
}
|
2483
|
-
function
|
2483
|
+
function W(y) {
|
2484
2484
|
return T(y) === m;
|
2485
2485
|
}
|
2486
2486
|
function K(y) {
|
@@ -2495,22 +2495,22 @@ function No() {
|
|
2495
2495
|
function ve(y) {
|
2496
2496
|
return T(y) === u;
|
2497
2497
|
}
|
2498
|
-
ce.AsyncMode = b, ce.ConcurrentMode = D, ce.ContextConsumer = N, ce.ContextProvider = j, ce.Element = G, ce.ForwardRef = V, ce.Fragment = re, ce.Lazy = xe, ce.Memo = te, ce.Portal =
|
2498
|
+
ce.AsyncMode = b, ce.ConcurrentMode = D, ce.ContextConsumer = N, ce.ContextProvider = j, ce.Element = G, ce.ForwardRef = V, ce.Fragment = re, ce.Lazy = xe, ce.Memo = te, ce.Portal = U, ce.Profiler = pe, ce.StrictMode = Se, ce.Suspense = Re, ce.isAsyncMode = we, ce.isConcurrentMode = S, ce.isContextConsumer = O, ce.isContextProvider = I, ce.isElement = q, ce.isForwardRef = B, ce.isFragment = H, ce.isLazy = z, ce.isMemo = W, ce.isPortal = K, ce.isProfiler = ee, ce.isStrictMode = L, ce.isSuspense = ve, ce.isValidElementType = _, ce.typeOf = T;
|
2499
2499
|
}()), ce;
|
2500
2500
|
}
|
2501
|
-
var
|
2501
|
+
var Ui;
|
2502
2502
|
function Nr() {
|
2503
|
-
return
|
2503
|
+
return Ui || (Ui = 1, process.env.NODE_ENV === "production" ? Xt.exports = $o() : Xt.exports = No()), Xt.exports;
|
2504
2504
|
}
|
2505
2505
|
/*
|
2506
2506
|
object-assign
|
2507
2507
|
(c) Sindre Sorhus
|
2508
2508
|
@license MIT
|
2509
2509
|
*/
|
2510
|
-
var kn,
|
2510
|
+
var kn, Vi;
|
2511
2511
|
function qo() {
|
2512
|
-
if (
|
2513
|
-
|
2512
|
+
if (Vi) return kn;
|
2513
|
+
Vi = 1;
|
2514
2514
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
2515
2515
|
function n(a) {
|
2516
2516
|
if (a == null)
|
@@ -2553,25 +2553,25 @@ function qo() {
|
|
2553
2553
|
return c;
|
2554
2554
|
}, kn;
|
2555
2555
|
}
|
2556
|
-
var On,
|
2557
|
-
function
|
2558
|
-
if (
|
2559
|
-
|
2556
|
+
var On, Hi;
|
2557
|
+
function pi() {
|
2558
|
+
if (Hi) return On;
|
2559
|
+
Hi = 1;
|
2560
2560
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
2561
2561
|
return On = e, On;
|
2562
2562
|
}
|
2563
|
-
var _n,
|
2563
|
+
var _n, Gi;
|
2564
2564
|
function qr() {
|
2565
|
-
return
|
2565
|
+
return Gi || (Gi = 1, _n = Function.call.bind(Object.prototype.hasOwnProperty)), _n;
|
2566
2566
|
}
|
2567
|
-
var
|
2568
|
-
function
|
2569
|
-
if (
|
2570
|
-
|
2567
|
+
var Cn, Yi;
|
2568
|
+
function Wo() {
|
2569
|
+
if (Yi) return Cn;
|
2570
|
+
Yi = 1;
|
2571
2571
|
var e = function() {
|
2572
2572
|
};
|
2573
2573
|
if (process.env.NODE_ENV !== "production") {
|
2574
|
-
var t = /* @__PURE__ */
|
2574
|
+
var t = /* @__PURE__ */ pi(), i = {}, n = /* @__PURE__ */ qr();
|
2575
2575
|
e = function(a) {
|
2576
2576
|
var o = "Warning: " + a;
|
2577
2577
|
typeof console < "u" && console.error(o);
|
@@ -2611,13 +2611,13 @@ function Uo() {
|
|
2611
2611
|
}
|
2612
2612
|
return r.resetWarningCache = function() {
|
2613
2613
|
process.env.NODE_ENV !== "production" && (i = {});
|
2614
|
-
},
|
2614
|
+
}, Cn = r, Cn;
|
2615
2615
|
}
|
2616
|
-
var
|
2617
|
-
function
|
2618
|
-
if (
|
2619
|
-
|
2620
|
-
var e = Nr(), t = qo(), i = /* @__PURE__ */
|
2616
|
+
var An, Ki;
|
2617
|
+
function Uo() {
|
2618
|
+
if (Ki) return An;
|
2619
|
+
Ki = 1;
|
2620
|
+
var e = Nr(), t = qo(), i = /* @__PURE__ */ pi(), n = /* @__PURE__ */ qr(), r = /* @__PURE__ */ Wo(), a = function() {
|
2621
2621
|
};
|
2622
2622
|
process.env.NODE_ENV !== "production" && (a = function(s) {
|
2623
2623
|
var c = "Warning: " + s;
|
@@ -2630,7 +2630,7 @@ function Wo() {
|
|
2630
2630
|
function o() {
|
2631
2631
|
return null;
|
2632
2632
|
}
|
2633
|
-
return
|
2633
|
+
return An = function(s, c) {
|
2634
2634
|
var p = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
|
2635
2635
|
function u(S) {
|
2636
2636
|
var O = S && (p && S[p] || S[l]);
|
@@ -2668,28 +2668,28 @@ function Wo() {
|
|
2668
2668
|
function w(S) {
|
2669
2669
|
if (process.env.NODE_ENV !== "production")
|
2670
2670
|
var O = {}, I = 0;
|
2671
|
-
function q(H, z,
|
2672
|
-
if (K = K || f, L = L ||
|
2671
|
+
function q(H, z, W, K, ee, L, ve) {
|
2672
|
+
if (K = K || f, L = L || W, ve !== i) {
|
2673
2673
|
if (c) {
|
2674
2674
|
var y = new Error(
|
2675
2675
|
"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"
|
2676
2676
|
);
|
2677
2677
|
throw y.name = "Invariant Violation", y;
|
2678
2678
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
2679
|
-
var F = K + ":" +
|
2679
|
+
var F = K + ":" + W;
|
2680
2680
|
!O[F] && // Avoid spamming the console because they are often not actionable except for lib authors
|
2681
2681
|
I < 3 && (a(
|
2682
2682
|
"You are manually calling a React.PropTypes validation function for the `" + L + "` prop on `" + K + "`. 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."
|
2683
2683
|
), O[F] = !0, I++);
|
2684
2684
|
}
|
2685
2685
|
}
|
2686
|
-
return z[
|
2686
|
+
return z[W] == null ? H ? z[W] === null ? new g("The " + ee + " `" + L + "` is marked as required " + ("in `" + K + "`, but its value is `null`.")) : new g("The " + ee + " `" + L + "` is marked as required in " + ("`" + K + "`, but its value is `undefined`.")) : null : S(z, W, K, ee, L);
|
2687
2687
|
}
|
2688
2688
|
var B = q.bind(null, !1);
|
2689
2689
|
return B.isRequired = q.bind(null, !0), B;
|
2690
2690
|
}
|
2691
2691
|
function x(S) {
|
2692
|
-
function O(I, q, B, H, z,
|
2692
|
+
function O(I, q, B, H, z, W) {
|
2693
2693
|
var K = I[q], ee = Se(K);
|
2694
2694
|
if (ee !== S) {
|
2695
2695
|
var L = Re(K);
|
@@ -2709,13 +2709,13 @@ function Wo() {
|
|
2709
2709
|
function O(I, q, B, H, z) {
|
2710
2710
|
if (typeof S != "function")
|
2711
2711
|
return new g("Property `" + z + "` of component `" + B + "` has invalid PropType notation inside arrayOf.");
|
2712
|
-
var
|
2713
|
-
if (!Array.isArray(
|
2714
|
-
var K = Se(
|
2712
|
+
var W = I[q];
|
2713
|
+
if (!Array.isArray(W)) {
|
2714
|
+
var K = Se(W);
|
2715
2715
|
return new g("Invalid " + H + " `" + z + "` of type " + ("`" + K + "` supplied to `" + B + "`, expected an array."));
|
2716
2716
|
}
|
2717
|
-
for (var ee = 0; ee <
|
2718
|
-
var L = S(
|
2717
|
+
for (var ee = 0; ee < W.length; ee++) {
|
2718
|
+
var L = S(W, ee, B, H, z + "[" + ee + "]", i);
|
2719
2719
|
if (L instanceof Error)
|
2720
2720
|
return L;
|
2721
2721
|
}
|
@@ -2727,8 +2727,8 @@ function Wo() {
|
|
2727
2727
|
function S(O, I, q, B, H) {
|
2728
2728
|
var z = O[I];
|
2729
2729
|
if (!s(z)) {
|
2730
|
-
var
|
2731
|
-
return new g("Invalid " + B + " `" + H + "` of type " + ("`" +
|
2730
|
+
var W = Se(z);
|
2731
|
+
return new g("Invalid " + B + " `" + H + "` of type " + ("`" + W + "` supplied to `" + q + "`, expected a single ReactElement."));
|
2732
2732
|
}
|
2733
2733
|
return null;
|
2734
2734
|
}
|
@@ -2738,8 +2738,8 @@ function Wo() {
|
|
2738
2738
|
function S(O, I, q, B, H) {
|
2739
2739
|
var z = O[I];
|
2740
2740
|
if (!e.isValidElementType(z)) {
|
2741
|
-
var
|
2742
|
-
return new g("Invalid " + B + " `" + H + "` of type " + ("`" +
|
2741
|
+
var W = Se(z);
|
2742
|
+
return new g("Invalid " + B + " `" + H + "` of type " + ("`" + W + "` supplied to `" + q + "`, expected a single ReactElement type."));
|
2743
2743
|
}
|
2744
2744
|
return null;
|
2745
2745
|
}
|
@@ -2748,8 +2748,8 @@ function Wo() {
|
|
2748
2748
|
function D(S) {
|
2749
2749
|
function O(I, q, B, H, z) {
|
2750
2750
|
if (!(I[q] instanceof S)) {
|
2751
|
-
var
|
2752
|
-
return new g("Invalid " + H + " `" + z + "` of type " + ("`" + K + "` supplied to `" + B + "`, expected ") + ("instance of `" +
|
2751
|
+
var W = S.name || f, K = we(I[q]);
|
2752
|
+
return new g("Invalid " + H + " `" + z + "` of type " + ("`" + K + "` supplied to `" + B + "`, expected ") + ("instance of `" + W + "`."));
|
2753
2753
|
}
|
2754
2754
|
return null;
|
2755
2755
|
}
|
@@ -2761,14 +2761,14 @@ function Wo() {
|
|
2761
2761
|
"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])."
|
2762
2762
|
) : a("Invalid argument supplied to oneOf, expected an array.")), o;
|
2763
2763
|
function O(I, q, B, H, z) {
|
2764
|
-
for (var
|
2765
|
-
if (v(
|
2764
|
+
for (var W = I[q], K = 0; K < S.length; K++)
|
2765
|
+
if (v(W, S[K]))
|
2766
2766
|
return null;
|
2767
2767
|
var ee = JSON.stringify(S, function(ve, y) {
|
2768
2768
|
var F = Re(y);
|
2769
2769
|
return F === "symbol" ? String(y) : y;
|
2770
2770
|
});
|
2771
|
-
return new g("Invalid " + H + " `" + z + "` of value `" + String(
|
2771
|
+
return new g("Invalid " + H + " `" + z + "` of value `" + String(W) + "` " + ("supplied to `" + B + "`, expected one of " + ee + "."));
|
2772
2772
|
}
|
2773
2773
|
return w(O);
|
2774
2774
|
}
|
@@ -2776,12 +2776,12 @@ function Wo() {
|
|
2776
2776
|
function O(I, q, B, H, z) {
|
2777
2777
|
if (typeof S != "function")
|
2778
2778
|
return new g("Property `" + z + "` of component `" + B + "` has invalid PropType notation inside objectOf.");
|
2779
|
-
var
|
2779
|
+
var W = I[q], K = Se(W);
|
2780
2780
|
if (K !== "object")
|
2781
2781
|
return new g("Invalid " + H + " `" + z + "` of type " + ("`" + K + "` supplied to `" + B + "`, expected an object."));
|
2782
|
-
for (var ee in
|
2783
|
-
if (n(
|
2784
|
-
var L = S(
|
2782
|
+
for (var ee in W)
|
2783
|
+
if (n(W, ee)) {
|
2784
|
+
var L = S(W, ee, B, H, z + "." + ee, i);
|
2785
2785
|
if (L instanceof Error)
|
2786
2786
|
return L;
|
2787
2787
|
}
|
@@ -2796,24 +2796,24 @@ function Wo() {
|
|
2796
2796
|
var I = S[O];
|
2797
2797
|
if (typeof I != "function")
|
2798
2798
|
return a(
|
2799
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
2799
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ue(I) + " at index " + O + "."
|
2800
2800
|
), o;
|
2801
2801
|
}
|
2802
|
-
function q(B, H, z,
|
2802
|
+
function q(B, H, z, W, K) {
|
2803
2803
|
for (var ee = [], L = 0; L < S.length; L++) {
|
2804
|
-
var ve = S[L], y = ve(B, H, z,
|
2804
|
+
var ve = S[L], y = ve(B, H, z, W, K, i);
|
2805
2805
|
if (y == null)
|
2806
2806
|
return null;
|
2807
2807
|
y.data && n(y.data, "expectedType") && ee.push(y.data.expectedType);
|
2808
2808
|
}
|
2809
2809
|
var F = ee.length > 0 ? ", expected one of type [" + ee.join(", ") + "]" : "";
|
2810
|
-
return new g("Invalid " +
|
2810
|
+
return new g("Invalid " + W + " `" + K + "` supplied to " + ("`" + z + "`" + F + "."));
|
2811
2811
|
}
|
2812
2812
|
return w(q);
|
2813
2813
|
}
|
2814
2814
|
function V() {
|
2815
2815
|
function S(O, I, q, B, H) {
|
2816
|
-
return
|
2816
|
+
return U(O[I]) ? null : new g("Invalid " + B + " `" + H + "` supplied to " + ("`" + q + "`, expected a ReactNode."));
|
2817
2817
|
}
|
2818
2818
|
return w(S);
|
2819
2819
|
}
|
@@ -2824,14 +2824,14 @@ function Wo() {
|
|
2824
2824
|
}
|
2825
2825
|
function xe(S) {
|
2826
2826
|
function O(I, q, B, H, z) {
|
2827
|
-
var
|
2827
|
+
var W = I[q], K = Se(W);
|
2828
2828
|
if (K !== "object")
|
2829
2829
|
return new g("Invalid " + H + " `" + z + "` of type `" + K + "` " + ("supplied to `" + B + "`, expected `object`."));
|
2830
2830
|
for (var ee in S) {
|
2831
2831
|
var L = S[ee];
|
2832
2832
|
if (typeof L != "function")
|
2833
2833
|
return re(B, H, z, ee, Re(L));
|
2834
|
-
var ve = L(
|
2834
|
+
var ve = L(W, ee, B, H, z + "." + ee, i);
|
2835
2835
|
if (ve)
|
2836
2836
|
return ve;
|
2837
2837
|
}
|
@@ -2841,7 +2841,7 @@ function Wo() {
|
|
2841
2841
|
}
|
2842
2842
|
function te(S) {
|
2843
2843
|
function O(I, q, B, H, z) {
|
2844
|
-
var
|
2844
|
+
var W = I[q], K = Se(W);
|
2845
2845
|
if (K !== "object")
|
2846
2846
|
return new g("Invalid " + H + " `" + z + "` of type `" + K + "` " + ("supplied to `" + B + "`, expected `object`."));
|
2847
2847
|
var ee = t({}, I[q], S);
|
@@ -2854,7 +2854,7 @@ function Wo() {
|
|
2854
2854
|
"Invalid " + H + " `" + z + "` key `" + L + "` supplied to `" + B + "`.\nBad object: " + JSON.stringify(I[q], null, " ") + `
|
2855
2855
|
Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
2856
2856
|
);
|
2857
|
-
var y = ve(
|
2857
|
+
var y = ve(W, L, B, H, z + "." + L, i);
|
2858
2858
|
if (y)
|
2859
2859
|
return y;
|
2860
2860
|
}
|
@@ -2862,7 +2862,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
2862
2862
|
}
|
2863
2863
|
return w(O);
|
2864
2864
|
}
|
2865
|
-
function
|
2865
|
+
function U(S) {
|
2866
2866
|
switch (typeof S) {
|
2867
2867
|
case "number":
|
2868
2868
|
case "string":
|
@@ -2872,7 +2872,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
2872
2872
|
return !S;
|
2873
2873
|
case "object":
|
2874
2874
|
if (Array.isArray(S))
|
2875
|
-
return S.every(
|
2875
|
+
return S.every(U);
|
2876
2876
|
if (S === null || s(S))
|
2877
2877
|
return !0;
|
2878
2878
|
var O = u(S);
|
@@ -2880,12 +2880,12 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
2880
2880
|
var I = O.call(S), q;
|
2881
2881
|
if (O !== S.entries) {
|
2882
2882
|
for (; !(q = I.next()).done; )
|
2883
|
-
if (!
|
2883
|
+
if (!U(q.value))
|
2884
2884
|
return !1;
|
2885
2885
|
} else
|
2886
2886
|
for (; !(q = I.next()).done; ) {
|
2887
2887
|
var B = q.value;
|
2888
|
-
if (B && !
|
2888
|
+
if (B && !U(B[1]))
|
2889
2889
|
return !1;
|
2890
2890
|
}
|
2891
2891
|
} else
|
@@ -2895,12 +2895,12 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
2895
2895
|
return !1;
|
2896
2896
|
}
|
2897
2897
|
}
|
2898
|
-
function
|
2898
|
+
function pe(S, O) {
|
2899
2899
|
return S === "symbol" ? !0 : O ? O["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && O instanceof Symbol : !1;
|
2900
2900
|
}
|
2901
2901
|
function Se(S) {
|
2902
2902
|
var O = typeof S;
|
2903
|
-
return Array.isArray(S) ? "array" : S instanceof RegExp ? "object" :
|
2903
|
+
return Array.isArray(S) ? "array" : S instanceof RegExp ? "object" : pe(O, S) ? "symbol" : O;
|
2904
2904
|
}
|
2905
2905
|
function Re(S) {
|
2906
2906
|
if (typeof S > "u" || S === null)
|
@@ -2914,7 +2914,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
2914
2914
|
}
|
2915
2915
|
return O;
|
2916
2916
|
}
|
2917
|
-
function
|
2917
|
+
function ue(S) {
|
2918
2918
|
var O = Re(S);
|
2919
2919
|
switch (O) {
|
2920
2920
|
case "array":
|
@@ -2932,13 +2932,13 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
2932
2932
|
return !S.constructor || !S.constructor.name ? f : S.constructor.name;
|
2933
2933
|
}
|
2934
2934
|
return m.checkPropTypes = r, m.resetWarningCache = r.resetWarningCache, m.PropTypes = m, m;
|
2935
|
-
},
|
2935
|
+
}, An;
|
2936
2936
|
}
|
2937
|
-
var Dn,
|
2937
|
+
var Dn, Ji;
|
2938
2938
|
function Vo() {
|
2939
|
-
if (
|
2940
|
-
|
2941
|
-
var e = /* @__PURE__ */
|
2939
|
+
if (Ji) return Dn;
|
2940
|
+
Ji = 1;
|
2941
|
+
var e = /* @__PURE__ */ pi();
|
2942
2942
|
function t() {
|
2943
2943
|
}
|
2944
2944
|
function i() {
|
@@ -2982,12 +2982,12 @@ function Vo() {
|
|
2982
2982
|
return a.PropTypes = a, a;
|
2983
2983
|
}, Dn;
|
2984
2984
|
}
|
2985
|
-
var
|
2985
|
+
var Xi;
|
2986
2986
|
function Ho() {
|
2987
|
-
if (
|
2988
|
-
if (
|
2987
|
+
if (Xi) return Jt.exports;
|
2988
|
+
if (Xi = 1, process.env.NODE_ENV !== "production") {
|
2989
2989
|
var e = Nr(), t = !0;
|
2990
|
-
Jt.exports = /* @__PURE__ */
|
2990
|
+
Jt.exports = /* @__PURE__ */ Uo()(e.isElement, t);
|
2991
2991
|
} else
|
2992
2992
|
Jt.exports = /* @__PURE__ */ Vo()();
|
2993
2993
|
return Jt.exports;
|
@@ -4226,7 +4226,7 @@ const Yo = /* @__PURE__ */ new Map([
|
|
4226
4226
|
]);
|
4227
4227
|
function bt(e, t, i) {
|
4228
4228
|
const n = Ko(e), { webkitRelativePath: r } = e, a = typeof t == "string" ? t : typeof r == "string" && r.length > 0 ? r : `./${e.name}`;
|
4229
|
-
return typeof n.path != "string" &&
|
4229
|
+
return typeof n.path != "string" && Zi(n, "path", a), Zi(n, "relativePath", a), n;
|
4230
4230
|
}
|
4231
4231
|
function Ko(e) {
|
4232
4232
|
const { name: t } = e;
|
@@ -4241,7 +4241,7 @@ function Ko(e) {
|
|
4241
4241
|
}
|
4242
4242
|
return e;
|
4243
4243
|
}
|
4244
|
-
function
|
4244
|
+
function Zi(e, t, i) {
|
4245
4245
|
Object.defineProperty(e, t, {
|
4246
4246
|
value: i,
|
4247
4247
|
writable: !1,
|
@@ -4285,12 +4285,12 @@ function ns(e, t) {
|
|
4285
4285
|
if (t !== "drop")
|
4286
4286
|
return i;
|
4287
4287
|
const n = yield Promise.all(i.map(is));
|
4288
|
-
return
|
4288
|
+
return Qi(Wr(n));
|
4289
4289
|
}
|
4290
|
-
return
|
4290
|
+
return Qi(Hn(e.files).map((i) => bt(i)));
|
4291
4291
|
});
|
4292
4292
|
}
|
4293
|
-
function
|
4293
|
+
function Qi(e) {
|
4294
4294
|
return e.filter((t) => Jo.indexOf(t.name) === -1);
|
4295
4295
|
}
|
4296
4296
|
function Hn(e) {
|
@@ -4305,17 +4305,17 @@ function Hn(e) {
|
|
4305
4305
|
}
|
4306
4306
|
function is(e) {
|
4307
4307
|
if (typeof e.webkitGetAsEntry != "function")
|
4308
|
-
return
|
4308
|
+
return er(e);
|
4309
4309
|
const t = e.webkitGetAsEntry();
|
4310
|
-
return t && t.isDirectory ?
|
4310
|
+
return t && t.isDirectory ? Ur(t) : er(e, t);
|
4311
4311
|
}
|
4312
|
-
function
|
4312
|
+
function Wr(e) {
|
4313
4313
|
return e.reduce((t, i) => [
|
4314
4314
|
...t,
|
4315
|
-
...Array.isArray(i) ?
|
4315
|
+
...Array.isArray(i) ? Wr(i) : [i]
|
4316
4316
|
], []);
|
4317
4317
|
}
|
4318
|
-
function
|
4318
|
+
function er(e, t) {
|
4319
4319
|
return mt(this, void 0, void 0, function* () {
|
4320
4320
|
var i;
|
4321
4321
|
if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
|
@@ -4335,10 +4335,10 @@ function tr(e, t) {
|
|
4335
4335
|
}
|
4336
4336
|
function rs(e) {
|
4337
4337
|
return mt(this, void 0, void 0, function* () {
|
4338
|
-
return e.isDirectory ?
|
4338
|
+
return e.isDirectory ? Ur(e) : as(e);
|
4339
4339
|
});
|
4340
4340
|
}
|
4341
|
-
function
|
4341
|
+
function Ur(e) {
|
4342
4342
|
const t = e.createReader();
|
4343
4343
|
return new Promise((i, n) => {
|
4344
4344
|
const r = [];
|
@@ -4373,9 +4373,9 @@ function as(e) {
|
|
4373
4373
|
});
|
4374
4374
|
});
|
4375
4375
|
}
|
4376
|
-
var Zt = {},
|
4376
|
+
var Zt = {}, tr;
|
4377
4377
|
function os() {
|
4378
|
-
return
|
4378
|
+
return tr || (tr = 1, Zt.__esModule = !0, Zt.default = function(e, t) {
|
4379
4379
|
if (e && t) {
|
4380
4380
|
var i = Array.isArray(t) ? t : t.split(",");
|
4381
4381
|
if (i.length === 0)
|
@@ -4391,7 +4391,7 @@ function os() {
|
|
4391
4391
|
}
|
4392
4392
|
var ss = os();
|
4393
4393
|
const jn = /* @__PURE__ */ zr(ss);
|
4394
|
-
function
|
4394
|
+
function nr(e) {
|
4395
4395
|
return ps(e) || ls(e) || Hr(e) || cs();
|
4396
4396
|
}
|
4397
4397
|
function cs() {
|
@@ -4404,7 +4404,7 @@ function ls(e) {
|
|
4404
4404
|
function ps(e) {
|
4405
4405
|
if (Array.isArray(e)) return Gn(e);
|
4406
4406
|
}
|
4407
|
-
function
|
4407
|
+
function ir(e, t) {
|
4408
4408
|
var i = Object.keys(e);
|
4409
4409
|
if (Object.getOwnPropertySymbols) {
|
4410
4410
|
var n = Object.getOwnPropertySymbols(e);
|
@@ -4414,12 +4414,12 @@ function rr(e, t) {
|
|
4414
4414
|
}
|
4415
4415
|
return i;
|
4416
4416
|
}
|
4417
|
-
function
|
4417
|
+
function rr(e) {
|
4418
4418
|
for (var t = 1; t < arguments.length; t++) {
|
4419
4419
|
var i = arguments[t] != null ? arguments[t] : {};
|
4420
|
-
t % 2 ?
|
4420
|
+
t % 2 ? ir(Object(i), !0).forEach(function(n) {
|
4421
4421
|
Vr(e, n, i[n]);
|
4422
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) :
|
4422
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : ir(Object(i)).forEach(function(n) {
|
4423
4423
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
4424
4424
|
});
|
4425
4425
|
}
|
@@ -4477,12 +4477,12 @@ var ms = typeof jn == "function" ? jn : jn.default, xs = "file-invalid-type", vs
|
|
4477
4477
|
code: xs,
|
4478
4478
|
message: "File type must be ".concat(n)
|
4479
4479
|
};
|
4480
|
-
},
|
4480
|
+
}, ar = function(t) {
|
4481
4481
|
return {
|
4482
4482
|
code: vs,
|
4483
4483
|
message: "File is larger than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
4484
4484
|
};
|
4485
|
-
},
|
4485
|
+
}, or = function(t) {
|
4486
4486
|
return {
|
4487
4487
|
code: gs,
|
4488
4488
|
message: "File is smaller than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
@@ -4498,11 +4498,11 @@ function Gr(e, t) {
|
|
4498
4498
|
function Yr(e, t, i) {
|
4499
4499
|
if (ot(e.size))
|
4500
4500
|
if (ot(t) && ot(i)) {
|
4501
|
-
if (e.size > i) return [!1,
|
4502
|
-
if (e.size < t) return [!1,
|
4501
|
+
if (e.size > i) return [!1, ar(i)];
|
4502
|
+
if (e.size < t) return [!1, or(t)];
|
4503
4503
|
} else {
|
4504
|
-
if (ot(t) && e.size < t) return [!1,
|
4505
|
-
if (ot(i) && e.size > i) return [!1,
|
4504
|
+
if (ot(t) && e.size < t) return [!1, or(t)];
|
4505
|
+
if (ot(i) && e.size > i) return [!1, ar(i)];
|
4506
4506
|
}
|
4507
4507
|
return [!0, null];
|
4508
4508
|
}
|
@@ -4524,7 +4524,7 @@ function Qt(e) {
|
|
4524
4524
|
return t === "Files" || t === "application/x-moz-file";
|
4525
4525
|
}) : !!e.target && !!e.target.files;
|
4526
4526
|
}
|
4527
|
-
function
|
4527
|
+
function sr(e) {
|
4528
4528
|
e.preventDefault();
|
4529
4529
|
}
|
4530
4530
|
function Es(e) {
|
@@ -4537,7 +4537,7 @@ function Rs() {
|
|
4537
4537
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
4538
4538
|
return Es(e) || Ss(e);
|
4539
4539
|
}
|
4540
|
-
function
|
4540
|
+
function Ue() {
|
4541
4541
|
for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
|
4542
4542
|
t[i] = arguments[i];
|
4543
4543
|
return function(n) {
|
@@ -4558,7 +4558,7 @@ function ks(e) {
|
|
4558
4558
|
return Kr(r) || (console.warn('Skipped "'.concat(r, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), o = !1), (!Array.isArray(a) || !a.every(Jr)) && (console.warn('Skipped "'.concat(r, '" because an invalid file extension was provided.')), o = !1), o;
|
4559
4559
|
}).reduce(function(i, n) {
|
4560
4560
|
var r = $t(n, 2), a = r[0], o = r[1];
|
4561
|
-
return
|
4561
|
+
return rr(rr({}, i), {}, Vr({}, a, o));
|
4562
4562
|
}, {});
|
4563
4563
|
return [{
|
4564
4564
|
// description is required due to https://crbug.com/1264708
|
@@ -4572,7 +4572,7 @@ function Os(e) {
|
|
4572
4572
|
if (ot(e))
|
4573
4573
|
return Object.entries(e).reduce(function(t, i) {
|
4574
4574
|
var n = $t(i, 2), r = n[0], a = n[1];
|
4575
|
-
return [].concat(
|
4575
|
+
return [].concat(nr(t), [r], nr(a));
|
4576
4576
|
}, []).filter(function(t) {
|
4577
4577
|
return Kr(t) || Jr(t);
|
4578
4578
|
}).join(",");
|
@@ -4580,7 +4580,7 @@ function Os(e) {
|
|
4580
4580
|
function _s(e) {
|
4581
4581
|
return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
|
4582
4582
|
}
|
4583
|
-
function
|
4583
|
+
function Cs(e) {
|
4584
4584
|
return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
|
4585
4585
|
}
|
4586
4586
|
function Kr(e) {
|
@@ -4589,7 +4589,7 @@ function Kr(e) {
|
|
4589
4589
|
function Jr(e) {
|
4590
4590
|
return /^.*\.[\w]+$/.test(e);
|
4591
4591
|
}
|
4592
|
-
var
|
4592
|
+
var As = ["children"], Ds = ["open"], js = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], Fs = ["refKey", "onChange", "onClick"];
|
4593
4593
|
function Ps(e) {
|
4594
4594
|
return zs(e) || Bs(e) || Xr(e) || Is();
|
4595
4595
|
}
|
@@ -4646,7 +4646,7 @@ function Ms(e, t) {
|
|
4646
4646
|
function $s(e) {
|
4647
4647
|
if (Array.isArray(e)) return e;
|
4648
4648
|
}
|
4649
|
-
function
|
4649
|
+
function cr(e, t) {
|
4650
4650
|
var i = Object.keys(e);
|
4651
4651
|
if (Object.getOwnPropertySymbols) {
|
4652
4652
|
var n = Object.getOwnPropertySymbols(e);
|
@@ -4659,9 +4659,9 @@ function lr(e, t) {
|
|
4659
4659
|
function Oe(e) {
|
4660
4660
|
for (var t = 1; t < arguments.length; t++) {
|
4661
4661
|
var i = arguments[t] != null ? arguments[t] : {};
|
4662
|
-
t % 2 ?
|
4662
|
+
t % 2 ? cr(Object(i), !0).forEach(function(n) {
|
4663
4663
|
Kn(e, n, i[n]);
|
4664
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) :
|
4664
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : cr(Object(i)).forEach(function(n) {
|
4665
4665
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
4666
4666
|
});
|
4667
4667
|
}
|
@@ -4687,17 +4687,17 @@ function Ns(e, t) {
|
|
4687
4687
|
r = n[a], !(t.indexOf(r) >= 0) && (i[r] = e[r]);
|
4688
4688
|
return i;
|
4689
4689
|
}
|
4690
|
-
var
|
4691
|
-
var i = e.children, n = dn(e,
|
4690
|
+
var ui = /* @__PURE__ */ Qa(function(e, t) {
|
4691
|
+
var i = e.children, n = dn(e, As), r = Qr(n), a = r.open, o = dn(r, Ds);
|
4692
4692
|
return eo(t, function() {
|
4693
4693
|
return {
|
4694
4694
|
open: a
|
4695
4695
|
};
|
4696
|
-
}, [a]), /* @__PURE__ */
|
4696
|
+
}, [a]), /* @__PURE__ */ le.createElement(to, null, i(Oe(Oe({}, o), {}, {
|
4697
4697
|
open: a
|
4698
4698
|
})));
|
4699
4699
|
});
|
4700
|
-
|
4700
|
+
ui.displayName = "Dropzone";
|
4701
4701
|
var Zr = {
|
4702
4702
|
disabled: !1,
|
4703
4703
|
getFilesFromEvent: Xo,
|
@@ -4714,8 +4714,8 @@ var Zr = {
|
|
4714
4714
|
useFsAccessApi: !1,
|
4715
4715
|
autoFocus: !1
|
4716
4716
|
};
|
4717
|
-
|
4718
|
-
|
4717
|
+
ui.defaultProps = Zr;
|
4718
|
+
ui.propTypes = {
|
4719
4719
|
/**
|
4720
4720
|
* Render function that exposes the dropzone state and prop getter fns
|
4721
4721
|
*
|
@@ -4898,14 +4898,14 @@ function Qr() {
|
|
4898
4898
|
}, [i]), re = Ze(function() {
|
4899
4899
|
return ks(i);
|
4900
4900
|
}, [i]), xe = Ze(function() {
|
4901
|
-
return typeof w == "function" ? w :
|
4901
|
+
return typeof w == "function" ? w : lr;
|
4902
4902
|
}, [w]), te = Ze(function() {
|
4903
|
-
return typeof g == "function" ? g :
|
4904
|
-
}, [g]),
|
4903
|
+
return typeof g == "function" ? g : lr;
|
4904
|
+
}, [g]), U = be(null), pe = be(null), Se = Za(qs, Jn), Re = Fn(Se, 2), ue = Re[0], we = Re[1], S = ue.isFocused, O = ue.isFileDialogActive, I = be(typeof window < "u" && window.isSecureContext && x && Ts()), q = function() {
|
4905
4905
|
!I.current && O && setTimeout(function() {
|
4906
|
-
if (
|
4907
|
-
var
|
4908
|
-
|
4906
|
+
if (pe.current) {
|
4907
|
+
var C = pe.current.files;
|
4908
|
+
C.length || (we({
|
4909
4909
|
type: "closeDialog"
|
4910
4910
|
}), te());
|
4911
4911
|
}
|
@@ -4915,25 +4915,25 @@ function Qr() {
|
|
4915
4915
|
return window.addEventListener("focus", q, !1), function() {
|
4916
4916
|
window.removeEventListener("focus", q, !1);
|
4917
4917
|
};
|
4918
|
-
}, [
|
4919
|
-
var B = be([]), H = function(
|
4920
|
-
|
4918
|
+
}, [pe, O, te, I]);
|
4919
|
+
var B = be([]), H = function(C) {
|
4920
|
+
U.current && U.current.contains(C.target) || (C.preventDefault(), B.current = []);
|
4921
4921
|
};
|
4922
4922
|
Mt(function() {
|
4923
|
-
return _ && (document.addEventListener("dragover",
|
4924
|
-
_ && (document.removeEventListener("dragover",
|
4923
|
+
return _ && (document.addEventListener("dragover", sr, !1), document.addEventListener("drop", H, !1)), function() {
|
4924
|
+
_ && (document.removeEventListener("dragover", sr), document.removeEventListener("drop", H));
|
4925
4925
|
};
|
4926
|
-
}, [
|
4927
|
-
return !n && k &&
|
4926
|
+
}, [U, _]), Mt(function() {
|
4927
|
+
return !n && k && U.current && U.current.focus(), function() {
|
4928
4928
|
};
|
4929
|
-
}, [
|
4930
|
-
var z =
|
4929
|
+
}, [U, k, n]);
|
4930
|
+
var z = Ce(function(E) {
|
4931
4931
|
j ? j(E) : console.error(E);
|
4932
|
-
}, [j]),
|
4933
|
-
E.preventDefault(), E.persist(), Ee(E), B.current = [].concat(Ps(B.current), [E.target]), Qt(E) && Promise.resolve(r(E)).then(function(
|
4932
|
+
}, [j]), W = Ce(function(E) {
|
4933
|
+
E.preventDefault(), E.persist(), Ee(E), B.current = [].concat(Ps(B.current), [E.target]), Qt(E) && Promise.resolve(r(E)).then(function(C) {
|
4934
4934
|
if (!(un(E) && !N)) {
|
4935
|
-
var ae =
|
4936
|
-
files:
|
4935
|
+
var ae = C.length, fe = ae > 0 && ws({
|
4936
|
+
files: C,
|
4937
4937
|
accept: V,
|
4938
4938
|
minSize: o,
|
4939
4939
|
maxSize: a,
|
@@ -4948,38 +4948,38 @@ function Qr() {
|
|
4948
4948
|
type: "setDraggedFiles"
|
4949
4949
|
}), p && p(E);
|
4950
4950
|
}
|
4951
|
-
}).catch(function(
|
4952
|
-
return z(
|
4951
|
+
}).catch(function(C) {
|
4952
|
+
return z(C);
|
4953
4953
|
});
|
4954
|
-
}, [r, p, z, N, V, o, a, s, c, G]), K =
|
4954
|
+
}, [r, p, z, N, V, o, a, s, c, G]), K = Ce(function(E) {
|
4955
4955
|
E.preventDefault(), E.persist(), Ee(E);
|
4956
|
-
var
|
4957
|
-
if (
|
4956
|
+
var C = Qt(E);
|
4957
|
+
if (C && E.dataTransfer)
|
4958
4958
|
try {
|
4959
4959
|
E.dataTransfer.dropEffect = "copy";
|
4960
4960
|
} catch {
|
4961
4961
|
}
|
4962
|
-
return
|
4963
|
-
}, [u, N]), ee =
|
4962
|
+
return C && u && u(E), !1;
|
4963
|
+
}, [u, N]), ee = Ce(function(E) {
|
4964
4964
|
E.preventDefault(), E.persist(), Ee(E);
|
4965
|
-
var
|
4966
|
-
return
|
4967
|
-
}), ae =
|
4968
|
-
ae !== -1 &&
|
4965
|
+
var C = B.current.filter(function(fe) {
|
4966
|
+
return U.current && U.current.contains(fe);
|
4967
|
+
}), ae = C.indexOf(E.target);
|
4968
|
+
ae !== -1 && C.splice(ae, 1), B.current = C, !(C.length > 0) && (we({
|
4969
4969
|
type: "setDraggedFiles",
|
4970
4970
|
isDragActive: !1,
|
4971
4971
|
isDragAccept: !1,
|
4972
4972
|
isDragReject: !1
|
4973
4973
|
}), Qt(E) && l && l(E));
|
4974
|
-
}, [
|
4974
|
+
}, [U, l, N]), L = Ce(function(E, C) {
|
4975
4975
|
var ae = [], fe = [];
|
4976
4976
|
E.forEach(function(ke) {
|
4977
|
-
var et = Gr(ke, V), Je = Fn(et, 2), it = Je[0], kt = Je[1], Ot = Yr(ke, o, a), xt = Fn(Ot, 2), _t = xt[0],
|
4978
|
-
if (it && _t && !
|
4977
|
+
var et = Gr(ke, V), Je = Fn(et, 2), it = Je[0], kt = Je[1], Ot = Yr(ke, o, a), xt = Fn(Ot, 2), _t = xt[0], Ct = xt[1], At = G ? G(ke) : null;
|
4978
|
+
if (it && _t && !At)
|
4979
4979
|
ae.push(ke);
|
4980
4980
|
else {
|
4981
|
-
var Dt = [kt,
|
4982
|
-
|
4981
|
+
var Dt = [kt, Ct];
|
4982
|
+
At && (Dt = Dt.concat(At)), fe.push({
|
4983
4983
|
file: ke,
|
4984
4984
|
errors: Dt.filter(function(jt) {
|
4985
4985
|
return jt;
|
@@ -4996,16 +4996,16 @@ function Qr() {
|
|
4996
4996
|
fileRejections: fe,
|
4997
4997
|
isDragReject: fe.length > 0,
|
4998
4998
|
type: "setFiles"
|
4999
|
-
}), f && f(ae, fe,
|
5000
|
-
}, [we, s, V, o, a, c, f, m, v, G]), ve =
|
5001
|
-
E.preventDefault(), E.persist(), Ee(E), B.current = [], Qt(E) && Promise.resolve(r(E)).then(function(
|
5002
|
-
un(E) && !N || L(
|
5003
|
-
}).catch(function(
|
5004
|
-
return z(
|
4999
|
+
}), f && f(ae, fe, C), fe.length > 0 && v && v(fe, C), ae.length > 0 && m && m(ae, C);
|
5000
|
+
}, [we, s, V, o, a, c, f, m, v, G]), ve = Ce(function(E) {
|
5001
|
+
E.preventDefault(), E.persist(), Ee(E), B.current = [], Qt(E) && Promise.resolve(r(E)).then(function(C) {
|
5002
|
+
un(E) && !N || L(C, E);
|
5003
|
+
}).catch(function(C) {
|
5004
|
+
return z(C);
|
5005
5005
|
}), we({
|
5006
5006
|
type: "reset"
|
5007
5007
|
});
|
5008
|
-
}, [r, L, z, N]), y =
|
5008
|
+
}, [r, L, z, N]), y = Ce(function() {
|
5009
5009
|
if (I.current) {
|
5010
5010
|
we({
|
5011
5011
|
type: "openDialog"
|
@@ -5014,64 +5014,64 @@ function Qr() {
|
|
5014
5014
|
multiple: s,
|
5015
5015
|
types: re
|
5016
5016
|
};
|
5017
|
-
window.showOpenFilePicker(E).then(function(
|
5018
|
-
return r(
|
5019
|
-
}).then(function(
|
5020
|
-
L(
|
5017
|
+
window.showOpenFilePicker(E).then(function(C) {
|
5018
|
+
return r(C);
|
5019
|
+
}).then(function(C) {
|
5020
|
+
L(C, null), we({
|
5021
5021
|
type: "closeDialog"
|
5022
5022
|
});
|
5023
|
-
}).catch(function(
|
5024
|
-
_s(
|
5023
|
+
}).catch(function(C) {
|
5024
|
+
_s(C) ? (te(C), we({
|
5025
5025
|
type: "closeDialog"
|
5026
|
-
})) :
|
5026
|
+
})) : Cs(C) ? (I.current = !1, pe.current ? (pe.current.value = null, pe.current.click()) : z(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : z(C);
|
5027
5027
|
});
|
5028
5028
|
return;
|
5029
5029
|
}
|
5030
|
-
|
5030
|
+
pe.current && (we({
|
5031
5031
|
type: "openDialog"
|
5032
|
-
}), xe(),
|
5033
|
-
}, [we, xe, te, x, L, z, re, s]), F =
|
5034
|
-
!
|
5035
|
-
}, [
|
5032
|
+
}), xe(), pe.current.value = null, pe.current.click());
|
5033
|
+
}, [we, xe, te, x, L, z, re, s]), F = Ce(function(E) {
|
5034
|
+
!U.current || !U.current.isEqualNode(E.target) || (E.key === " " || E.key === "Enter" || E.keyCode === 32 || E.keyCode === 13) && (E.preventDefault(), y());
|
5035
|
+
}, [U, y]), J = Ce(function() {
|
5036
5036
|
we({
|
5037
5037
|
type: "focus"
|
5038
5038
|
});
|
5039
|
-
}, []), M =
|
5039
|
+
}, []), M = Ce(function() {
|
5040
5040
|
we({
|
5041
5041
|
type: "blur"
|
5042
5042
|
});
|
5043
|
-
}, []),
|
5043
|
+
}, []), de = Ce(function() {
|
5044
5044
|
T || (Rs() ? setTimeout(y, 0) : y());
|
5045
|
-
}, [T, y]), Te = function(
|
5046
|
-
return n ? null :
|
5047
|
-
}, X = function(
|
5048
|
-
return b ? null : Te(
|
5049
|
-
}, Q = function(
|
5050
|
-
return D ? null : Te(
|
5051
|
-
}, Ee = function(
|
5052
|
-
N &&
|
5045
|
+
}, [T, y]), Te = function(C) {
|
5046
|
+
return n ? null : C;
|
5047
|
+
}, X = function(C) {
|
5048
|
+
return b ? null : Te(C);
|
5049
|
+
}, Q = function(C) {
|
5050
|
+
return D ? null : Te(C);
|
5051
|
+
}, Ee = function(C) {
|
5052
|
+
N && C.stopPropagation();
|
5053
5053
|
}, Ye = Ze(function() {
|
5054
5054
|
return function() {
|
5055
|
-
var E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
5055
|
+
var E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, C = E.refKey, ae = C === void 0 ? "ref" : C, fe = E.role, ke = E.onKeyDown, et = E.onFocus, Je = E.onBlur, it = E.onClick, kt = E.onDragEnter, Ot = E.onDragOver, xt = E.onDragLeave, _t = E.onDrop, Ct = dn(E, js);
|
5056
5056
|
return Oe(Oe(Kn({
|
5057
|
-
onKeyDown: X(
|
5058
|
-
onFocus: X(
|
5059
|
-
onBlur: X(
|
5060
|
-
onClick: Te(
|
5061
|
-
onDragEnter: Q(
|
5062
|
-
onDragOver: Q(
|
5063
|
-
onDragLeave: Q(
|
5064
|
-
onDrop: Q(
|
5057
|
+
onKeyDown: X(Ue(ke, F)),
|
5058
|
+
onFocus: X(Ue(et, J)),
|
5059
|
+
onBlur: X(Ue(Je, M)),
|
5060
|
+
onClick: Te(Ue(it, de)),
|
5061
|
+
onDragEnter: Q(Ue(kt, W)),
|
5062
|
+
onDragOver: Q(Ue(Ot, K)),
|
5063
|
+
onDragLeave: Q(Ue(xt, ee)),
|
5064
|
+
onDrop: Q(Ue(_t, ve)),
|
5065
5065
|
role: typeof fe == "string" && fe !== "" ? fe : "presentation"
|
5066
|
-
}, ae,
|
5066
|
+
}, ae, U), !n && !b ? {
|
5067
5067
|
tabIndex: 0
|
5068
|
-
} : {}),
|
5068
|
+
} : {}), Ct);
|
5069
5069
|
};
|
5070
|
-
}, [
|
5070
|
+
}, [U, F, J, M, de, W, K, ee, ve, b, D, n]), Ne = Ce(function(E) {
|
5071
5071
|
E.stopPropagation();
|
5072
5072
|
}, []), Ke = Ze(function() {
|
5073
5073
|
return function() {
|
5074
|
-
var E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
5074
|
+
var E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, C = E.refKey, ae = C === void 0 ? "ref" : C, fe = E.onChange, ke = E.onClick, et = dn(E, Fs), Je = Kn({
|
5075
5075
|
accept: V,
|
5076
5076
|
multiple: s,
|
5077
5077
|
type: "file",
|
@@ -5087,19 +5087,19 @@ function Qr() {
|
|
5087
5087
|
width: "1px",
|
5088
5088
|
whiteSpace: "nowrap"
|
5089
5089
|
},
|
5090
|
-
onChange: Te(
|
5091
|
-
onClick: Te(
|
5090
|
+
onChange: Te(Ue(fe, ve)),
|
5091
|
+
onClick: Te(Ue(ke, Ne)),
|
5092
5092
|
tabIndex: -1
|
5093
|
-
}, ae,
|
5093
|
+
}, ae, pe);
|
5094
5094
|
return Oe(Oe({}, Je), et);
|
5095
5095
|
};
|
5096
|
-
}, [
|
5097
|
-
return Oe(Oe({},
|
5096
|
+
}, [pe, i, s, ve, n]);
|
5097
|
+
return Oe(Oe({}, ue), {}, {
|
5098
5098
|
isFocused: S && !n,
|
5099
5099
|
getRootProps: Ye,
|
5100
5100
|
getInputProps: Ke,
|
5101
|
-
rootRef:
|
5102
|
-
inputRef:
|
5101
|
+
rootRef: U,
|
5102
|
+
inputRef: pe,
|
5103
5103
|
open: Te(y)
|
5104
5104
|
});
|
5105
5105
|
}
|
@@ -5139,20 +5139,20 @@ function qs(e, t) {
|
|
5139
5139
|
return e;
|
5140
5140
|
}
|
5141
5141
|
}
|
5142
|
-
function
|
5142
|
+
function lr() {
|
5143
5143
|
}
|
5144
|
-
const
|
5144
|
+
const Ws = {
|
5145
5145
|
WAV_MIME_TYPES: ["audio/wav", "audio/x-wav", "audio/wave", "audio/x-pn-wav"],
|
5146
5146
|
MP3_MIME_TYPES: ["audio/mpeg", "audio/mp3", "audio/x-mpeg", "audio/x-mp3", "audio/x-mpeg-3"],
|
5147
5147
|
FLAC_MIME_TYPES: ["audio/flac"]
|
5148
|
-
},
|
5148
|
+
}, Us = 10 * 1e3, pr = "[Audio.getDurationSeconds]", Vs = async (e, { throwError: t } = {}) => new Promise((i, n) => {
|
5149
5149
|
if (typeof window > "u")
|
5150
5150
|
return n(new Error("getDurationSeconds is only usable in the browser"));
|
5151
5151
|
const r = URL.createObjectURL(e), a = new Audio(), o = () => {
|
5152
5152
|
a.src = "", URL.revokeObjectURL(r);
|
5153
5153
|
}, s = setTimeout(() => {
|
5154
|
-
o(), console.error(
|
5155
|
-
},
|
5154
|
+
o(), console.error(pr, "Timeout", e.name, e.size, e.type), i(0);
|
5155
|
+
}, Us);
|
5156
5156
|
a.addEventListener(
|
5157
5157
|
"loadedmetadata",
|
5158
5158
|
() => {
|
@@ -5163,7 +5163,7 @@ const Us = {
|
|
5163
5163
|
), a.addEventListener(
|
5164
5164
|
"error",
|
5165
5165
|
(c) => {
|
5166
|
-
clearTimeout(s), o(), t ? (console.error(
|
5166
|
+
clearTimeout(s), o(), t ? (console.error(pr, "Error", e.name, e.size, e.type, c), n(e)) : i(0);
|
5167
5167
|
},
|
5168
5168
|
{ once: !0 }
|
5169
5169
|
), a.src = r;
|
@@ -5187,7 +5187,7 @@ const Us = {
|
|
5187
5187
|
throw new Error(`Failed to get audio duration for ${e.name}`);
|
5188
5188
|
}
|
5189
5189
|
}, Ks = (e) => {
|
5190
|
-
for (const [t, i] of Object.entries(
|
5190
|
+
for (const [t, i] of Object.entries(Ws)) {
|
5191
5191
|
const n = t.toLowerCase().split("_")[0];
|
5192
5192
|
if (i.includes(e)) return n;
|
5193
5193
|
}
|
@@ -5249,7 +5249,7 @@ const ec = (e) => ({
|
|
5249
5249
|
handleMinSizeError: n,
|
5250
5250
|
handleUnknownError: r,
|
5251
5251
|
handleInvalidTypeError: a
|
5252
|
-
} = ec(e), [o, s] =
|
5252
|
+
} = ec(e), [o, s] = si(null);
|
5253
5253
|
return { dropzone: Qr({
|
5254
5254
|
accept: {
|
5255
5255
|
"audio/wav": [".wav"],
|
@@ -5275,9 +5275,9 @@ const ec = (e) => ({
|
|
5275
5275
|
});
|
5276
5276
|
}
|
5277
5277
|
}), error: o, ...e };
|
5278
|
-
}, ta =
|
5278
|
+
}, ta = le.createContext(
|
5279
5279
|
{}
|
5280
|
-
),
|
5280
|
+
), eu = () => le.useContext(ta), nc = qe(St, {
|
5281
5281
|
position: "relative",
|
5282
5282
|
display: "flex",
|
5283
5283
|
flexDirection: "column",
|
@@ -5339,7 +5339,7 @@ const ec = (e) => ({
|
|
5339
5339
|
flexDirection: "column",
|
5340
5340
|
alignItems: "center",
|
5341
5341
|
justifyContent: "center"
|
5342
|
-
}),
|
5342
|
+
}), tu = {
|
5343
5343
|
Root: rc,
|
5344
5344
|
Header: ac,
|
5345
5345
|
Content: oc,
|
@@ -5351,14 +5351,14 @@ function na(e, t) {
|
|
5351
5351
|
return e.apply(t, arguments);
|
5352
5352
|
};
|
5353
5353
|
}
|
5354
|
-
const { toString: lc } = Object.prototype, { getPrototypeOf:
|
5354
|
+
const { toString: lc } = Object.prototype, { getPrototypeOf: di } = Object, xn = /* @__PURE__ */ ((e) => (t) => {
|
5355
5355
|
const i = lc.call(t);
|
5356
5356
|
return e[i] || (e[i] = i.slice(8, -1).toLowerCase());
|
5357
|
-
})(/* @__PURE__ */ Object.create(null)),
|
5357
|
+
})(/* @__PURE__ */ Object.create(null)), We = (e) => (e = e.toLowerCase(), (t) => xn(t) === e), vn = (e) => (t) => typeof t === e, { isArray: Rt } = Array, Nt = vn("undefined");
|
5358
5358
|
function pc(e) {
|
5359
5359
|
return e !== null && !Nt(e) && e.constructor !== null && !Nt(e.constructor) && ze(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
5360
5360
|
}
|
5361
|
-
const ia =
|
5361
|
+
const ia = We("ArrayBuffer");
|
5362
5362
|
function uc(e) {
|
5363
5363
|
let t;
|
5364
5364
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ia(e.buffer), t;
|
@@ -5366,14 +5366,14 @@ function uc(e) {
|
|
5366
5366
|
const dc = vn("string"), ze = vn("function"), ra = vn("number"), gn = (e) => e !== null && typeof e == "object", fc = (e) => e === !0 || e === !1, on = (e) => {
|
5367
5367
|
if (xn(e) !== "object")
|
5368
5368
|
return !1;
|
5369
|
-
const t =
|
5369
|
+
const t = di(e);
|
5370
5370
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
5371
|
-
}, mc =
|
5371
|
+
}, mc = We("Date"), xc = We("File"), vc = We("Blob"), gc = We("FileList"), hc = (e) => gn(e) && ze(e.pipe), yc = (e) => {
|
5372
5372
|
let t;
|
5373
5373
|
return e && (typeof FormData == "function" && e instanceof FormData || ze(e.append) && ((t = xn(e)) === "formdata" || // detect form-data instance
|
5374
5374
|
t === "object" && ze(e.toString) && e.toString() === "[object FormData]"));
|
5375
|
-
}, bc =
|
5376
|
-
function
|
5375
|
+
}, bc = We("URLSearchParams"), [wc, Ec, Sc, Rc] = ["ReadableStream", "Request", "Response", "Headers"].map(We), Tc = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
5376
|
+
function Ut(e, t, { allOwnKeys: i = !1 } = {}) {
|
5377
5377
|
if (e === null || typeof e > "u")
|
5378
5378
|
return;
|
5379
5379
|
let n, r;
|
@@ -5403,26 +5403,26 @@ function Xn() {
|
|
5403
5403
|
on(t[a]) && on(n) ? t[a] = Xn(t[a], n) : on(n) ? t[a] = Xn({}, n) : Rt(n) ? t[a] = n.slice() : t[a] = n;
|
5404
5404
|
};
|
5405
5405
|
for (let n = 0, r = arguments.length; n < r; n++)
|
5406
|
-
arguments[n] &&
|
5406
|
+
arguments[n] && Ut(arguments[n], i);
|
5407
5407
|
return t;
|
5408
5408
|
}
|
5409
|
-
const kc = (e, t, i, { allOwnKeys: n } = {}) => (
|
5409
|
+
const kc = (e, t, i, { allOwnKeys: n } = {}) => (Ut(t, (r, a) => {
|
5410
5410
|
i && ze(r) ? e[a] = na(r, i) : e[a] = r;
|
5411
5411
|
}, { allOwnKeys: n }), e), Oc = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), _c = (e, t, i, n) => {
|
5412
5412
|
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
5413
5413
|
value: t.prototype
|
5414
5414
|
}), i && Object.assign(e.prototype, i);
|
5415
|
-
},
|
5415
|
+
}, Cc = (e, t, i, n) => {
|
5416
5416
|
let r, a, o;
|
5417
5417
|
const s = {};
|
5418
5418
|
if (t = t || {}, e == null) return t;
|
5419
5419
|
do {
|
5420
5420
|
for (r = Object.getOwnPropertyNames(e), a = r.length; a-- > 0; )
|
5421
5421
|
o = r[a], (!n || n(o, e, t)) && !s[o] && (t[o] = e[o], s[o] = !0);
|
5422
|
-
e = i !== !1 &&
|
5422
|
+
e = i !== !1 && di(e);
|
5423
5423
|
} while (e && (!i || i(e, t)) && e !== Object.prototype);
|
5424
5424
|
return t;
|
5425
|
-
},
|
5425
|
+
}, Ac = (e, t, i) => {
|
5426
5426
|
e = String(e), (i === void 0 || i > e.length) && (i = e.length), i -= t.length;
|
5427
5427
|
const n = e.indexOf(t, i);
|
5428
5428
|
return n !== -1 && n === i;
|
@@ -5435,7 +5435,7 @@ const kc = (e, t, i, { allOwnKeys: n } = {}) => (Wt(t, (r, a) => {
|
|
5435
5435
|
for (; t-- > 0; )
|
5436
5436
|
i[t] = e[t];
|
5437
5437
|
return i;
|
5438
|
-
}, jc = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" &&
|
5438
|
+
}, jc = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && di(Uint8Array)), Fc = (e, t) => {
|
5439
5439
|
const n = (e && e[Symbol.iterator]).call(e);
|
5440
5440
|
let r;
|
5441
5441
|
for (; (r = n.next()) && !r.done; ) {
|
@@ -5448,14 +5448,14 @@ const kc = (e, t, i, { allOwnKeys: n } = {}) => (Wt(t, (r, a) => {
|
|
5448
5448
|
for (; (i = e.exec(t)) !== null; )
|
5449
5449
|
n.push(i);
|
5450
5450
|
return n;
|
5451
|
-
}, Ic =
|
5451
|
+
}, Ic = We("HTMLFormElement"), Bc = (e) => e.toLowerCase().replace(
|
5452
5452
|
/[-_\s]([a-z\d])(\w*)/g,
|
5453
5453
|
function(i, n, r) {
|
5454
5454
|
return n.toUpperCase() + r;
|
5455
5455
|
}
|
5456
|
-
),
|
5456
|
+
), ur = (({ hasOwnProperty: e }) => (t, i) => e.call(t, i))(Object.prototype), zc = We("RegExp"), sa = (e, t) => {
|
5457
5457
|
const i = Object.getOwnPropertyDescriptors(e), n = {};
|
5458
|
-
|
5458
|
+
Ut(i, (r, a) => {
|
5459
5459
|
let o;
|
5460
5460
|
(o = t(r, a, e)) !== !1 && (n[a] = o || r);
|
5461
5461
|
}), Object.defineProperties(e, n);
|
@@ -5482,10 +5482,10 @@ const kc = (e, t, i, { allOwnKeys: n } = {}) => (Wt(t, (r, a) => {
|
|
5482
5482
|
};
|
5483
5483
|
return Rt(e) ? n(e) : n(String(e).split(t)), i;
|
5484
5484
|
}, $c = () => {
|
5485
|
-
}, Nc = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Pn = "abcdefghijklmnopqrstuvwxyz",
|
5486
|
-
DIGIT:
|
5485
|
+
}, Nc = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Pn = "abcdefghijklmnopqrstuvwxyz", dr = "0123456789", ca = {
|
5486
|
+
DIGIT: dr,
|
5487
5487
|
ALPHA: Pn,
|
5488
|
-
ALPHA_DIGIT: Pn + Pn.toUpperCase() +
|
5488
|
+
ALPHA_DIGIT: Pn + Pn.toUpperCase() + dr
|
5489
5489
|
}, qc = (e = 16, t = ca.ALPHA_DIGIT) => {
|
5490
5490
|
let i = "";
|
5491
5491
|
const { length: n } = t;
|
@@ -5493,10 +5493,10 @@ const kc = (e, t, i, { allOwnKeys: n } = {}) => (Wt(t, (r, a) => {
|
|
5493
5493
|
i += t[Math.random() * n | 0];
|
5494
5494
|
return i;
|
5495
5495
|
};
|
5496
|
-
function
|
5496
|
+
function Wc(e) {
|
5497
5497
|
return !!(e && ze(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
5498
5498
|
}
|
5499
|
-
const
|
5499
|
+
const Uc = (e) => {
|
5500
5500
|
const t = new Array(10), i = (n, r) => {
|
5501
5501
|
if (gn(n)) {
|
5502
5502
|
if (t.indexOf(n) >= 0)
|
@@ -5504,7 +5504,7 @@ const Wc = (e) => {
|
|
5504
5504
|
if (!("toJSON" in n)) {
|
5505
5505
|
t[r] = n;
|
5506
5506
|
const a = Rt(n) ? [] : {};
|
5507
|
-
return
|
5507
|
+
return Ut(n, (o, s) => {
|
5508
5508
|
const c = i(o, r + 1);
|
5509
5509
|
!Nt(c) && (a[s] = c);
|
5510
5510
|
}), t[r] = void 0, a;
|
@@ -5513,7 +5513,7 @@ const Wc = (e) => {
|
|
5513
5513
|
return n;
|
5514
5514
|
};
|
5515
5515
|
return i(e, 0);
|
5516
|
-
}, Vc =
|
5516
|
+
}, Vc = We("AsyncFunction"), Hc = (e) => e && (gn(e) || ze(e)) && ze(e.then) && ze(e.catch), la = ((e, t) => e ? setImmediate : t ? ((i, n) => (st.addEventListener("message", ({ source: r, data: a }) => {
|
5517
5517
|
r === st && a === i && n.length && n.shift()();
|
5518
5518
|
}, !1), (r) => {
|
5519
5519
|
n.push(r), st.postMessage(i, "*");
|
@@ -5545,22 +5545,22 @@ const Wc = (e) => {
|
|
5545
5545
|
isURLSearchParams: bc,
|
5546
5546
|
isTypedArray: jc,
|
5547
5547
|
isFileList: gc,
|
5548
|
-
forEach:
|
5548
|
+
forEach: Ut,
|
5549
5549
|
merge: Xn,
|
5550
5550
|
extend: kc,
|
5551
5551
|
trim: Tc,
|
5552
5552
|
stripBOM: Oc,
|
5553
5553
|
inherits: _c,
|
5554
|
-
toFlatObject:
|
5554
|
+
toFlatObject: Cc,
|
5555
5555
|
kindOf: xn,
|
5556
|
-
kindOfTest:
|
5557
|
-
endsWith:
|
5556
|
+
kindOfTest: We,
|
5557
|
+
endsWith: Ac,
|
5558
5558
|
toArray: Dc,
|
5559
5559
|
forEachEntry: Fc,
|
5560
5560
|
matchAll: Pc,
|
5561
5561
|
isHTMLForm: Ic,
|
5562
|
-
hasOwnProperty:
|
5563
|
-
hasOwnProp:
|
5562
|
+
hasOwnProperty: ur,
|
5563
|
+
hasOwnProp: ur,
|
5564
5564
|
// an alias to avoid ESLint no-prototype-builtins detection
|
5565
5565
|
reduceDescriptors: sa,
|
5566
5566
|
freezeMethods: Lc,
|
@@ -5573,8 +5573,8 @@ const Wc = (e) => {
|
|
5573
5573
|
isContextDefined: oa,
|
5574
5574
|
ALPHABET: ca,
|
5575
5575
|
generateString: qc,
|
5576
|
-
isSpecCompliantForm:
|
5577
|
-
toJSONObject:
|
5576
|
+
isSpecCompliantForm: Wc,
|
5577
|
+
toJSONObject: Uc,
|
5578
5578
|
isAsyncFn: Vc,
|
5579
5579
|
isThenable: Hc,
|
5580
5580
|
setImmediate: la,
|
@@ -5637,7 +5637,7 @@ function Zn(e) {
|
|
5637
5637
|
function da(e) {
|
5638
5638
|
return h.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
5639
5639
|
}
|
5640
|
-
function
|
5640
|
+
function fr(e, t, i) {
|
5641
5641
|
return e ? e.concat(t).map(function(r, a) {
|
5642
5642
|
return r = da(r), !i && a ? "[" + r + "]" : r;
|
5643
5643
|
}).join(i ? "." : "") : t;
|
@@ -5678,12 +5678,12 @@ function hn(e, t, i) {
|
|
5678
5678
|
return g = da(g), x.forEach(function(_, T) {
|
5679
5679
|
!(h.isUndefined(_) || _ === null) && t.append(
|
5680
5680
|
// eslint-disable-next-line no-nested-ternary
|
5681
|
-
o === !0 ?
|
5681
|
+
o === !0 ? fr([g], T, a) : o === null ? g : g + "[]",
|
5682
5682
|
p(_)
|
5683
5683
|
);
|
5684
5684
|
}), !1;
|
5685
5685
|
}
|
5686
|
-
return Zn(v) ? !0 : (t.append(
|
5686
|
+
return Zn(v) ? !0 : (t.append(fr(w, g, a), p(v)), !1);
|
5687
5687
|
}
|
5688
5688
|
const u = [], f = Object.assign(Jc, {
|
5689
5689
|
defaultVisitor: l,
|
@@ -5709,7 +5709,7 @@ function hn(e, t, i) {
|
|
5709
5709
|
throw new TypeError("data must be an object");
|
5710
5710
|
return m(e), t;
|
5711
5711
|
}
|
5712
|
-
function
|
5712
|
+
function mr(e) {
|
5713
5713
|
const t = {
|
5714
5714
|
"!": "%21",
|
5715
5715
|
"'": "%27",
|
@@ -5723,17 +5723,17 @@ function xr(e) {
|
|
5723
5723
|
return t[n];
|
5724
5724
|
});
|
5725
5725
|
}
|
5726
|
-
function
|
5726
|
+
function fi(e, t) {
|
5727
5727
|
this._pairs = [], e && hn(e, this, t);
|
5728
5728
|
}
|
5729
|
-
const fa =
|
5729
|
+
const fa = fi.prototype;
|
5730
5730
|
fa.append = function(t, i) {
|
5731
5731
|
this._pairs.push([t, i]);
|
5732
5732
|
};
|
5733
5733
|
fa.toString = function(t) {
|
5734
5734
|
const i = t ? function(n) {
|
5735
|
-
return t.call(this, n,
|
5736
|
-
} :
|
5735
|
+
return t.call(this, n, mr);
|
5736
|
+
} : mr;
|
5737
5737
|
return this._pairs.map(function(r) {
|
5738
5738
|
return i(r[0]) + "=" + i(r[1]);
|
5739
5739
|
}, "").join("&");
|
@@ -5750,13 +5750,13 @@ function ma(e, t, i) {
|
|
5750
5750
|
});
|
5751
5751
|
const r = i && i.serialize;
|
5752
5752
|
let a;
|
5753
|
-
if (r ? a = r(t, i) : a = h.isURLSearchParams(t) ? t.toString() : new
|
5753
|
+
if (r ? a = r(t, i) : a = h.isURLSearchParams(t) ? t.toString() : new fi(t, i).toString(n), a) {
|
5754
5754
|
const o = e.indexOf("#");
|
5755
5755
|
o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + a;
|
5756
5756
|
}
|
5757
5757
|
return e;
|
5758
5758
|
}
|
5759
|
-
class
|
5759
|
+
class xr {
|
5760
5760
|
constructor() {
|
5761
5761
|
this.handlers = [];
|
5762
5762
|
}
|
@@ -5814,7 +5814,7 @@ const xa = {
|
|
5814
5814
|
silentJSONParsing: !0,
|
5815
5815
|
forcedJSONParsing: !0,
|
5816
5816
|
clarifyTimeoutError: !1
|
5817
|
-
}, Zc = typeof URLSearchParams < "u" ? URLSearchParams :
|
5817
|
+
}, Zc = typeof URLSearchParams < "u" ? URLSearchParams : fi, Qc = typeof FormData < "u" ? FormData : null, el = typeof Blob < "u" ? Blob : null, tl = {
|
5818
5818
|
isBrowser: !0,
|
5819
5819
|
classes: {
|
5820
5820
|
URLSearchParams: Zc,
|
@@ -5822,10 +5822,10 @@ const xa = {
|
|
5822
5822
|
Blob: el
|
5823
5823
|
},
|
5824
5824
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
5825
|
-
},
|
5826
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", rl =
|
5825
|
+
}, mi = typeof window < "u" && typeof document < "u", Qn = typeof navigator == "object" && navigator || void 0, nl = mi && (!Qn || ["ReactNative", "NativeScript", "NS"].indexOf(Qn.product) < 0), il = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
5826
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", rl = mi && window.location.href || "http://localhost", al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
5827
5827
|
__proto__: null,
|
5828
|
-
hasBrowserEnv:
|
5828
|
+
hasBrowserEnv: mi,
|
5829
5829
|
hasStandardBrowserEnv: nl,
|
5830
5830
|
hasStandardBrowserWebWorkerEnv: il,
|
5831
5831
|
navigator: Qn,
|
@@ -5972,7 +5972,7 @@ const pl = h.toObjectSet([
|
|
5972
5972
|
`).forEach(function(o) {
|
5973
5973
|
r = o.indexOf(":"), i = o.substring(0, r).trim().toLowerCase(), n = o.substring(r + 1).trim(), !(!i || t[i] && pl[i]) && (i === "set-cookie" ? t[i] ? t[i].push(n) : t[i] = [n] : t[i] = t[i] ? t[i] + ", " + n : n);
|
5974
5974
|
}), t;
|
5975
|
-
},
|
5975
|
+
}, vr = Symbol("internals");
|
5976
5976
|
function zt(e) {
|
5977
5977
|
return e && String(e).trim().toLowerCase();
|
5978
5978
|
}
|
@@ -6119,7 +6119,7 @@ class Be {
|
|
6119
6119
|
return i.forEach((r) => n.set(r)), n;
|
6120
6120
|
}
|
6121
6121
|
static accessor(t) {
|
6122
|
-
const n = (this[
|
6122
|
+
const n = (this[vr] = this[vr] = {
|
6123
6123
|
accessors: {}
|
6124
6124
|
}).accessors, r = this.prototype;
|
6125
6125
|
function a(o) {
|
@@ -6217,14 +6217,14 @@ const fn = (e, t, i = 3) => {
|
|
6217
6217
|
};
|
6218
6218
|
e(u);
|
6219
6219
|
}, i);
|
6220
|
-
},
|
6220
|
+
}, gr = (e, t) => {
|
6221
6221
|
const i = e != null;
|
6222
6222
|
return [(n) => t[0]({
|
6223
6223
|
lengthComputable: i,
|
6224
6224
|
total: e,
|
6225
6225
|
loaded: n
|
6226
6226
|
}), t[1]];
|
6227
|
-
},
|
6227
|
+
}, hr = (e) => (...t) => h.asap(() => e(...t)), yl = Fe.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (i) => (i = new URL(i, Fe.origin), e.protocol === i.protocol && e.host === i.host && (t || e.port === i.port)))(
|
6228
6228
|
new URL(Fe.origin),
|
6229
6229
|
Fe.navigator && /(msie|trident)/i.test(Fe.navigator.userAgent)
|
6230
6230
|
) : () => !0, bl = Fe.hasStandardBrowserEnv ? (
|
@@ -6263,7 +6263,7 @@ function El(e, t) {
|
|
6263
6263
|
function ya(e, t) {
|
6264
6264
|
return e && !wl(t) ? El(e, t) : t;
|
6265
6265
|
}
|
6266
|
-
const
|
6266
|
+
const yr = (e) => e instanceof Be ? { ...e } : e;
|
6267
6267
|
function dt(e, t) {
|
6268
6268
|
t = t || {};
|
6269
6269
|
const i = {};
|
@@ -6321,7 +6321,7 @@ function dt(e, t) {
|
|
6321
6321
|
socketPath: o,
|
6322
6322
|
responseEncoding: o,
|
6323
6323
|
validateStatus: s,
|
6324
|
-
headers: (p, l, u) => r(
|
6324
|
+
headers: (p, l, u) => r(yr(p), yr(l), u, !0)
|
6325
6325
|
};
|
6326
6326
|
return h.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
|
6327
6327
|
const u = c[l] || r, f = u(e[l], t[l], l);
|
@@ -6457,7 +6457,7 @@ const ba = (e) => {
|
|
6457
6457
|
} finally {
|
6458
6458
|
await t.cancel();
|
6459
6459
|
}
|
6460
|
-
},
|
6460
|
+
}, br = (e, t, i, n) => {
|
6461
6461
|
const r = Ol(e, t);
|
6462
6462
|
let a = 0, o, s = (c) => {
|
6463
6463
|
o || (o = !0, n && n(c));
|
@@ -6486,13 +6486,13 @@ const ba = (e) => {
|
|
6486
6486
|
}, {
|
6487
6487
|
highWaterMark: 2
|
6488
6488
|
});
|
6489
|
-
}, yn = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", wa = yn && typeof ReadableStream == "function",
|
6489
|
+
}, yn = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", wa = yn && typeof ReadableStream == "function", Cl = yn && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ea = (e, ...t) => {
|
6490
6490
|
try {
|
6491
6491
|
return !!e(...t);
|
6492
6492
|
} catch {
|
6493
6493
|
return !1;
|
6494
6494
|
}
|
6495
|
-
},
|
6495
|
+
}, Al = wa && Ea(() => {
|
6496
6496
|
let e = !1;
|
6497
6497
|
const t = new Request(Fe.origin, {
|
6498
6498
|
body: new ReadableStream(),
|
@@ -6502,7 +6502,7 @@ const ba = (e) => {
|
|
6502
6502
|
}
|
6503
6503
|
}).headers.has("Content-Type");
|
6504
6504
|
return e && !t;
|
6505
|
-
}),
|
6505
|
+
}), wr = 64 * 1024, ei = wa && Ea(() => h.isReadableStream(new Response("").body)), mn = {
|
6506
6506
|
stream: ei && ((e) => e.body)
|
6507
6507
|
};
|
6508
6508
|
yn && ((e) => {
|
@@ -6525,7 +6525,7 @@ const Dl = async (e) => {
|
|
6525
6525
|
if (h.isArrayBufferView(e) || h.isArrayBuffer(e))
|
6526
6526
|
return e.byteLength;
|
6527
6527
|
if (h.isURLSearchParams(e) && (e = e + ""), h.isString(e))
|
6528
|
-
return (await
|
6528
|
+
return (await Cl(e)).byteLength;
|
6529
6529
|
}, jl = async (e, t) => {
|
6530
6530
|
const i = h.toFiniteNumber(e.getContentLength());
|
6531
6531
|
return i ?? Dl(t);
|
@@ -6551,18 +6551,18 @@ const Dl = async (e) => {
|
|
6551
6551
|
});
|
6552
6552
|
let w;
|
6553
6553
|
try {
|
6554
|
-
if (c &&
|
6554
|
+
if (c && Al && i !== "get" && i !== "head" && (w = await jl(l, n)) !== 0) {
|
6555
6555
|
let b = new Request(t, {
|
6556
6556
|
method: "POST",
|
6557
6557
|
body: n,
|
6558
6558
|
duplex: "half"
|
6559
6559
|
}), D;
|
6560
6560
|
if (h.isFormData(n) && (D = b.headers.get("content-type")) && l.setContentType(D), b.body) {
|
6561
|
-
const [N, j] =
|
6561
|
+
const [N, j] = gr(
|
6562
6562
|
w,
|
6563
|
-
fn(
|
6563
|
+
fn(hr(c))
|
6564
6564
|
);
|
6565
|
-
n =
|
6565
|
+
n = br(b.body, wr, N, j);
|
6566
6566
|
}
|
6567
6567
|
}
|
6568
6568
|
h.isString(u) || (u = u ? "include" : "omit");
|
@@ -6583,12 +6583,12 @@ const Dl = async (e) => {
|
|
6583
6583
|
["status", "statusText", "headers"].forEach((G) => {
|
6584
6584
|
b[G] = k[G];
|
6585
6585
|
});
|
6586
|
-
const D = h.toFiniteNumber(k.headers.get("content-length")), [N, j] = s &&
|
6586
|
+
const D = h.toFiniteNumber(k.headers.get("content-length")), [N, j] = s && gr(
|
6587
6587
|
D,
|
6588
|
-
fn(
|
6588
|
+
fn(hr(s), !0)
|
6589
6589
|
) || [];
|
6590
6590
|
k = new Response(
|
6591
|
-
|
6591
|
+
br(k.body, wr, N, () => {
|
6592
6592
|
j && j(), g && g();
|
6593
6593
|
}),
|
6594
6594
|
b
|
@@ -6628,7 +6628,7 @@ h.forEach(ti, (e, t) => {
|
|
6628
6628
|
Object.defineProperty(e, "adapterName", { value: t });
|
6629
6629
|
}
|
6630
6630
|
});
|
6631
|
-
const
|
6631
|
+
const Er = (e) => `- ${e}`, Pl = (e) => h.isFunction(e) || e === null || e === !1, Sa = {
|
6632
6632
|
getAdapter: (e) => {
|
6633
6633
|
e = h.isArray(e) ? e : [e];
|
6634
6634
|
const { length: t } = e;
|
@@ -6648,8 +6648,8 @@ const Sr = (e) => `- ${e}`, Pl = (e) => h.isFunction(e) || e === null || e === !
|
|
6648
6648
|
([s, c]) => `adapter ${s} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
|
6649
6649
|
);
|
6650
6650
|
let o = t ? a.length > 1 ? `since :
|
6651
|
-
` + a.map(
|
6652
|
-
`) : " " +
|
6651
|
+
` + a.map(Er).join(`
|
6652
|
+
`) : " " + Er(a[0]) : "as no adapter specified";
|
6653
6653
|
throw new Z(
|
6654
6654
|
"There is no suitable adapter to dispatch the request " + o,
|
6655
6655
|
"ERR_NOT_SUPPORT"
|
@@ -6663,7 +6663,7 @@ function zn(e) {
|
|
6663
6663
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
6664
6664
|
throw new Tt(null, e);
|
6665
6665
|
}
|
6666
|
-
function
|
6666
|
+
function Sr(e) {
|
6667
6667
|
return zn(e), e.headers = Be.from(e.headers), e.data = Bn.call(
|
6668
6668
|
e,
|
6669
6669
|
e.transformRequest
|
@@ -6687,7 +6687,7 @@ const Ra = "1.7.9", bn = {};
|
|
6687
6687
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
6688
6688
|
};
|
6689
6689
|
});
|
6690
|
-
const
|
6690
|
+
const Rr = {};
|
6691
6691
|
bn.transitional = function(t, i, n) {
|
6692
6692
|
function r(a, o) {
|
6693
6693
|
return "[Axios v" + Ra + "] Transitional option '" + a + "'" + o + (n ? ". " + n : "");
|
@@ -6698,7 +6698,7 @@ bn.transitional = function(t, i, n) {
|
|
6698
6698
|
r(o, " has been removed" + (i ? " in " + i : "")),
|
6699
6699
|
Z.ERR_DEPRECATED
|
6700
6700
|
);
|
6701
|
-
return i && !
|
6701
|
+
return i && !Rr[o] && (Rr[o] = !0, console.warn(
|
6702
6702
|
r(
|
6703
6703
|
o,
|
6704
6704
|
" has been deprecated since v" + i + " and will be removed in the near future"
|
@@ -6733,8 +6733,8 @@ const cn = {
|
|
6733
6733
|
class ut {
|
6734
6734
|
constructor(t) {
|
6735
6735
|
this.defaults = t, this.interceptors = {
|
6736
|
-
request: new
|
6737
|
-
response: new
|
6736
|
+
request: new xr(),
|
6737
|
+
response: new xr()
|
6738
6738
|
};
|
6739
6739
|
}
|
6740
6740
|
/**
|
@@ -6799,7 +6799,7 @@ class ut {
|
|
6799
6799
|
});
|
6800
6800
|
let l, u = 0, f;
|
6801
6801
|
if (!c) {
|
6802
|
-
const v = [
|
6802
|
+
const v = [Sr.bind(this), void 0];
|
6803
6803
|
for (v.unshift.apply(v, s), v.push.apply(v, p), f = v.length, l = Promise.resolve(i); u < f; )
|
6804
6804
|
l = l.then(v[u++], v[u++]);
|
6805
6805
|
return l;
|
@@ -6816,7 +6816,7 @@ class ut {
|
|
6816
6816
|
}
|
6817
6817
|
}
|
6818
6818
|
try {
|
6819
|
-
l =
|
6819
|
+
l = Sr.call(this, m);
|
6820
6820
|
} catch (v) {
|
6821
6821
|
return Promise.reject(v);
|
6822
6822
|
}
|
@@ -6854,7 +6854,7 @@ h.forEach(["post", "put", "patch"], function(t) {
|
|
6854
6854
|
}
|
6855
6855
|
ut.prototype[t] = i(), ut.prototype[t + "Form"] = i(!0);
|
6856
6856
|
});
|
6857
|
-
class
|
6857
|
+
class xi {
|
6858
6858
|
constructor(t) {
|
6859
6859
|
if (typeof t != "function")
|
6860
6860
|
throw new TypeError("executor must be a function.");
|
@@ -6920,7 +6920,7 @@ class vi {
|
|
6920
6920
|
static source() {
|
6921
6921
|
let t;
|
6922
6922
|
return {
|
6923
|
-
token: new
|
6923
|
+
token: new xi(function(r) {
|
6924
6924
|
t = r;
|
6925
6925
|
}),
|
6926
6926
|
cancel: t
|
@@ -7012,7 +7012,7 @@ function Ta(e) {
|
|
7012
7012
|
const je = Ta(Vt);
|
7013
7013
|
je.Axios = ut;
|
7014
7014
|
je.CanceledError = Tt;
|
7015
|
-
je.CancelToken =
|
7015
|
+
je.CancelToken = xi;
|
7016
7016
|
je.isCancel = ga;
|
7017
7017
|
je.VERSION = Ra;
|
7018
7018
|
je.toFormData = hn;
|
@@ -7039,11 +7039,11 @@ var en = { exports: {} }, Ln = {};
|
|
7039
7039
|
* This source code is licensed under the MIT license found in the
|
7040
7040
|
* LICENSE file in the root directory of this source tree.
|
7041
7041
|
*/
|
7042
|
-
var
|
7042
|
+
var Tr;
|
7043
7043
|
function Ll() {
|
7044
|
-
if (
|
7045
|
-
|
7046
|
-
var e =
|
7044
|
+
if (Tr) return Ln;
|
7045
|
+
Tr = 1;
|
7046
|
+
var e = le;
|
7047
7047
|
function t(u, f) {
|
7048
7048
|
return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
|
7049
7049
|
}
|
@@ -7084,11 +7084,11 @@ var Mn = {};
|
|
7084
7084
|
* This source code is licensed under the MIT license found in the
|
7085
7085
|
* LICENSE file in the root directory of this source tree.
|
7086
7086
|
*/
|
7087
|
-
var
|
7087
|
+
var kr;
|
7088
7088
|
function Ml() {
|
7089
|
-
return
|
7089
|
+
return kr || (kr = 1, process.env.NODE_ENV !== "production" && function() {
|
7090
7090
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
7091
|
-
var e =
|
7091
|
+
var e = le, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
7092
7092
|
function i(_) {
|
7093
7093
|
{
|
7094
7094
|
for (var T = arguments.length, b = new Array(T > 1 ? T - 1 : 0), D = 1; D < T; D++)
|
@@ -7155,9 +7155,9 @@ function Ml() {
|
|
7155
7155
|
Mn.useSyncExternalStore = k, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
7156
7156
|
}()), Mn;
|
7157
7157
|
}
|
7158
|
-
var
|
7158
|
+
var Or;
|
7159
7159
|
function $l() {
|
7160
|
-
return
|
7160
|
+
return Or || (Or = 1, process.env.NODE_ENV === "production" ? en.exports = Ll() : en.exports = Ml()), en.exports;
|
7161
7161
|
}
|
7162
7162
|
var ka = $l();
|
7163
7163
|
const tt = () => {
|
@@ -7189,7 +7189,7 @@ const qt = (e) => {
|
|
7189
7189
|
} else
|
7190
7190
|
r = n ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
|
7191
7191
|
return r;
|
7192
|
-
}, He = /* @__PURE__ */ new WeakMap(), Nn = {}, nn = {},
|
7192
|
+
}, He = /* @__PURE__ */ new WeakMap(), Nn = {}, nn = {}, vi = "undefined", wn = typeof window != vi, ii = typeof document != vi, Wl = () => wn && typeof window.requestAnimationFrame != vi, gi = (e, t) => {
|
7193
7193
|
const i = He.get(e);
|
7194
7194
|
return [
|
7195
7195
|
// Getter
|
@@ -7208,7 +7208,7 @@ const qt = (e) => {
|
|
7208
7208
|
];
|
7209
7209
|
};
|
7210
7210
|
let ri = !0;
|
7211
|
-
const
|
7211
|
+
const Ul = () => ri, [ai, oi] = wn && window.addEventListener ? [
|
7212
7212
|
window.addEventListener.bind(window),
|
7213
7213
|
window.removeEventListener.bind(window)
|
7214
7214
|
] : [
|
@@ -7229,12 +7229,12 @@ const Wl = () => ri, [ai, oi] = wn && window.addEventListener ? [
|
|
7229
7229
|
oi("online", t), oi("offline", i);
|
7230
7230
|
};
|
7231
7231
|
}, Yl = {
|
7232
|
-
isOnline:
|
7232
|
+
isOnline: Ul,
|
7233
7233
|
isVisible: Vl
|
7234
7234
|
}, Kl = {
|
7235
7235
|
initFocus: Hl,
|
7236
7236
|
initReconnect: Gl
|
7237
|
-
},
|
7237
|
+
}, Wt = !le.useId, ft = !wn || "Deno" in window, Oa = (e) => Wl() ? window.requestAnimationFrame(e) : setTimeout(e, 1), nt = ft ? Mt : no, qn = typeof navigator < "u" && navigator.connection, _r = !ft && qn && ([
|
7238
7238
|
"slow-2g",
|
7239
7239
|
"2g"
|
7240
7240
|
].includes(qn.effectiveType) || qn.saveData), Ht = (e) => {
|
@@ -7251,15 +7251,15 @@ const Wl = () => ri, [ai, oi] = wn && window.addEventListener ? [
|
|
7251
7251
|
];
|
7252
7252
|
};
|
7253
7253
|
let Jl = 0;
|
7254
|
-
const wt = () => ++Jl, _a = 0,
|
7254
|
+
const wt = () => ++Jl, _a = 0, Ca = 1, Aa = 2, Xl = 3;
|
7255
7255
|
var Ge = {
|
7256
7256
|
__proto__: null,
|
7257
7257
|
ERROR_REVALIDATE_EVENT: Xl,
|
7258
7258
|
FOCUS_EVENT: _a,
|
7259
|
-
MUTATE_EVENT:
|
7260
|
-
RECONNECT_EVENT:
|
7259
|
+
MUTATE_EVENT: Aa,
|
7260
|
+
RECONNECT_EVENT: Ca
|
7261
7261
|
};
|
7262
|
-
async function
|
7262
|
+
async function hi(...e) {
|
7263
7263
|
const [t, i, n, r] = e, a = $e({
|
7264
7264
|
populateCache: !0,
|
7265
7265
|
throwOnError: !0
|
@@ -7281,9 +7281,9 @@ async function yi(...e) {
|
|
7281
7281
|
async function u(f) {
|
7282
7282
|
const [m] = Ht(f);
|
7283
7283
|
if (!m) return;
|
7284
|
-
const [v, g] =
|
7284
|
+
const [v, g] = gi(t, m), [w, x, k, _] = He.get(t), T = () => {
|
7285
7285
|
const te = w[m];
|
7286
|
-
return (Me(a.revalidate) ? a.revalidate(v().data, f) : a.revalidate !== !1) && (delete k[m], delete _[m], te && te[0]) ? te[0](
|
7286
|
+
return (Me(a.revalidate) ? a.revalidate(v().data, f) : a.revalidate !== !1) && (delete k[m], delete _[m], te && te[0]) ? te[0](Aa).then(() => v().data) : v().data;
|
7287
7287
|
};
|
7288
7288
|
if (e.length < 3)
|
7289
7289
|
return T();
|
@@ -7343,7 +7343,7 @@ const Cr = (e, t) => {
|
|
7343
7343
|
e[i][0] && e[i][0](t);
|
7344
7344
|
}, Zl = (e, t) => {
|
7345
7345
|
if (!He.has(e)) {
|
7346
|
-
const i = $e(Kl, t), n = {}, r =
|
7346
|
+
const i = $e(Kl, t), n = {}, r = hi.bind(De, e);
|
7347
7347
|
let a = tt;
|
7348
7348
|
const o = {}, s = (l, u) => {
|
7349
7349
|
const f = o[l] || [];
|
@@ -7364,7 +7364,7 @@ const Cr = (e, t) => {
|
|
7364
7364
|
c,
|
7365
7365
|
s
|
7366
7366
|
]), !ft)) {
|
7367
|
-
const l = i.initFocus(setTimeout.bind(De, Cr.bind(De, n, _a))), u = i.initReconnect(setTimeout.bind(De, Cr.bind(De, n,
|
7367
|
+
const l = i.initFocus(setTimeout.bind(De, Cr.bind(De, n, _a))), u = i.initReconnect(setTimeout.bind(De, Cr.bind(De, n, Ca)));
|
7368
7368
|
a = () => {
|
7369
7369
|
l && l(), u && u(), He.delete(e);
|
7370
7370
|
};
|
@@ -7398,10 +7398,10 @@ const Cr = (e, t) => {
|
|
7398
7398
|
revalidateIfStale: !0,
|
7399
7399
|
shouldRetryOnError: !0,
|
7400
7400
|
// timeouts
|
7401
|
-
errorRetryInterval:
|
7401
|
+
errorRetryInterval: _r ? 1e4 : 5e3,
|
7402
7402
|
focusThrottleInterval: 5 * 1e3,
|
7403
7403
|
dedupingInterval: 2 * 1e3,
|
7404
|
-
loadingTimeout:
|
7404
|
+
loadingTimeout: _r ? 5e3 : 3e3,
|
7405
7405
|
// providers
|
7406
7406
|
compare: ep,
|
7407
7407
|
isPaused: () => !1,
|
@@ -7419,7 +7419,7 @@ const Cr = (e, t) => {
|
|
7419
7419
|
}
|
7420
7420
|
return i;
|
7421
7421
|
}, rp = Ir({}), ap = "$inf$", ja = wn && window.__SWR_DEVTOOLS_USE__, op = ja ? window.__SWR_DEVTOOLS_USE__ : [], sp = () => {
|
7422
|
-
ja && (window.__SWR_DEVTOOLS_REACT__ =
|
7422
|
+
ja && (window.__SWR_DEVTOOLS_REACT__ = le);
|
7423
7423
|
}, Fa = (e) => Me(e[1]) ? [
|
7424
7424
|
e[0],
|
7425
7425
|
e[1],
|
@@ -7428,7 +7428,7 @@ const Cr = (e, t) => {
|
|
7428
7428
|
e[0],
|
7429
7429
|
null,
|
7430
7430
|
(e[1] === null ? e[2] : e[1]) || {}
|
7431
|
-
], Pa = () => $e(np,
|
7431
|
+
], Pa = () => $e(np, ci(rp)), cp = (e) => (t, i, n) => e(t, i && ((...a) => {
|
7432
7432
|
const [o] = Ht(t), [, , , s] = He.get(Da);
|
7433
7433
|
if (o.startsWith(ap))
|
7434
7434
|
return i(...a);
|
@@ -7455,7 +7455,7 @@ const Cr = (e, t) => {
|
|
7455
7455
|
});
|
7456
7456
|
};
|
7457
7457
|
sp();
|
7458
|
-
const
|
7458
|
+
const Ar = le.use || ((e) => {
|
7459
7459
|
if (e.status === "pending")
|
7460
7460
|
throw e;
|
7461
7461
|
if (e.status === "fulfilled")
|
@@ -7465,11 +7465,11 @@ const Dr = de.use || ((e) => {
|
|
7465
7465
|
}, (t) => {
|
7466
7466
|
e.status = "rejected", e.reason = t;
|
7467
7467
|
}), e);
|
7468
|
-
}),
|
7468
|
+
}), Wn = {
|
7469
7469
|
dedupe: !0
|
7470
7470
|
}, up = (e, t, i) => {
|
7471
|
-
const { cache: n, compare: r, suspense: a, fallbackData: o, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: l, refreshWhenOffline: u, keepPreviousData: f } = i, [m, v, g, w] = He.get(n), [x, k] = Ht(e), _ = be(!1), T = be(!1), b = be(x), D = be(t), N = be(i), j = () => N.current, G = () => j().isVisible() && j().isOnline(), [V, re, xe, te] =
|
7472
|
-
for (const J in
|
7471
|
+
const { cache: n, compare: r, suspense: a, fallbackData: o, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: l, refreshWhenOffline: u, keepPreviousData: f } = i, [m, v, g, w] = He.get(n), [x, k] = Ht(e), _ = be(!1), T = be(!1), b = be(x), D = be(t), N = be(i), j = () => N.current, G = () => j().isVisible() && j().isOnline(), [V, re, xe, te] = gi(n, x), U = be({}).current, pe = $(o) ? i.fallback[x] : o, Se = (y, F) => {
|
7472
|
+
for (const J in U) {
|
7473
7473
|
const M = J;
|
7474
7474
|
if (M === "data") {
|
7475
7475
|
if (!r(y[M], F[M]) && (!$(y[M]) || !r(H, F[M])))
|
@@ -7486,8 +7486,8 @@ const Dr = de.use || ((e) => {
|
|
7486
7486
|
isLoading: !0,
|
7487
7487
|
...Ee
|
7488
7488
|
} : Ee;
|
7489
|
-
}, J = V(), M = te(),
|
7490
|
-
let X =
|
7489
|
+
}, J = V(), M = te(), de = F(J), Te = J === M ? de : F(M);
|
7490
|
+
let X = de;
|
7491
7491
|
return [
|
7492
7492
|
() => {
|
7493
7493
|
const Q = F(V());
|
@@ -7498,7 +7498,7 @@ const Dr = de.use || ((e) => {
|
|
7498
7498
|
}, [
|
7499
7499
|
n,
|
7500
7500
|
x
|
7501
|
-
]),
|
7501
|
+
]), ue = ka.useSyncExternalStore(Ce(
|
7502
7502
|
(y) => xe(x, (F, J) => {
|
7503
7503
|
Se(J, F) || y();
|
7504
7504
|
}),
|
@@ -7507,13 +7507,13 @@ const Dr = de.use || ((e) => {
|
|
7507
7507
|
n,
|
7508
7508
|
x
|
7509
7509
|
]
|
7510
|
-
), Re[0], Re[1]), we = !_.current, S = m[x] && m[x].length > 0, O =
|
7510
|
+
), Re[0], Re[1]), we = !_.current, S = m[x] && m[x].length > 0, O = ue.data, I = $(O) ? pe : O, q = ue.error, B = be(I), H = f ? $(O) ? B.current : O : I, z = S && !$(q) ? !1 : we && !$(s) ? s : j().isPaused() ? !1 : a ? $(I) ? !1 : c : $(I) || c, W = !!(x && t && we && z), K = $(ue.isValidating) ? W : ue.isValidating, ee = $(ue.isLoading) ? W : ue.isLoading, L = Ce(
|
7511
7511
|
async (y) => {
|
7512
7512
|
const F = D.current;
|
7513
7513
|
if (!x || !F || T.current || j().isPaused())
|
7514
7514
|
return !1;
|
7515
|
-
let J, M,
|
7516
|
-
const Te = y || {}, X = !g[x] || !Te.dedupe, Q = () =>
|
7515
|
+
let J, M, de = !0;
|
7516
|
+
const Te = y || {}, X = !g[x] || !Te.dedupe, Q = () => Wt ? !T.current && x === b.current && _.current : x === b.current, Ee = {
|
7517
7517
|
isValidating: !1,
|
7518
7518
|
isLoading: !1
|
7519
7519
|
}, Ye = () => {
|
@@ -7527,7 +7527,7 @@ const Dr = de.use || ((e) => {
|
|
7527
7527
|
$(V().data) && (Ke.isLoading = !0);
|
7528
7528
|
try {
|
7529
7529
|
if (X && (re(Ke), i.loadingTimeout && $(V().data) && setTimeout(() => {
|
7530
|
-
|
7530
|
+
de && Q() && j().onLoadingSlow(x, i);
|
7531
7531
|
}, i.loadingTimeout), g[x] = [
|
7532
7532
|
F(k),
|
7533
7533
|
wt()
|
@@ -7540,12 +7540,12 @@ const Dr = de.use || ((e) => {
|
|
7540
7540
|
M <= E[1] || // case 3
|
7541
7541
|
E[1] === 0))
|
7542
7542
|
return Ye(), X && Q() && j().onDiscarded(x), !1;
|
7543
|
-
const
|
7544
|
-
Ee.data = r(
|
7543
|
+
const C = V().data;
|
7544
|
+
Ee.data = r(C, J) ? C : J, X && Q() && j().onSuccess(J, x, i);
|
7545
7545
|
} catch (E) {
|
7546
7546
|
Ne();
|
7547
|
-
const
|
7548
|
-
|
7547
|
+
const C = j(), { shouldRetryOnError: ae } = C;
|
7548
|
+
C.isPaused() || (Ee.error = E, X && Q() && (C.onError(E, x, C), (ae === !0 || Me(ae) && ae(E)) && (!j().revalidateOnFocus || !j().revalidateOnReconnect || G()) && C.onErrorRetry(E, x, C, (fe) => {
|
7549
7549
|
const ke = m[x];
|
7550
7550
|
ke && ke[0] && ke[0](Ge.ERROR_REVALIDATE_EVENT, fe);
|
7551
7551
|
}, {
|
@@ -7553,7 +7553,7 @@ const Dr = de.use || ((e) => {
|
|
7553
7553
|
dedupe: !0
|
7554
7554
|
})));
|
7555
7555
|
}
|
7556
|
-
return
|
7556
|
+
return de = !1, Ye(), !0;
|
7557
7557
|
},
|
7558
7558
|
// `setState` is immutable, and `eventsCallback`, `fnArg`, and
|
7559
7559
|
// `keyValidating` are depending on `key`, so we can exclude them from
|
@@ -7570,9 +7570,9 @@ const Dr = de.use || ((e) => {
|
|
7570
7570
|
x,
|
7571
7571
|
n
|
7572
7572
|
]
|
7573
|
-
), ve =
|
7573
|
+
), ve = Ce(
|
7574
7574
|
// Use callback to make sure `keyRef.current` returns latest result every time
|
7575
|
-
(...y) =>
|
7575
|
+
(...y) => hi(n, b.current, ...y),
|
7576
7576
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
7577
7577
|
[]
|
7578
7578
|
);
|
@@ -7580,18 +7580,18 @@ const Dr = de.use || ((e) => {
|
|
7580
7580
|
D.current = t, N.current = i, $(O) || (B.current = O);
|
7581
7581
|
}), nt(() => {
|
7582
7582
|
if (!x) return;
|
7583
|
-
const y = L.bind(De,
|
7583
|
+
const y = L.bind(De, Wn);
|
7584
7584
|
let F = 0;
|
7585
|
-
const M = Ba(x, m, (
|
7586
|
-
if (
|
7585
|
+
const M = Ba(x, m, (de, Te = {}) => {
|
7586
|
+
if (de == Ge.FOCUS_EVENT) {
|
7587
7587
|
const X = Date.now();
|
7588
7588
|
j().revalidateOnFocus && X > F && G() && (F = X + j().focusThrottleInterval, y());
|
7589
|
-
} else if (
|
7589
|
+
} else if (de == Ge.RECONNECT_EVENT)
|
7590
7590
|
j().revalidateOnReconnect && G() && y();
|
7591
7591
|
else {
|
7592
|
-
if (
|
7592
|
+
if (de == Ge.MUTATE_EVENT)
|
7593
7593
|
return L();
|
7594
|
-
if (
|
7594
|
+
if (de == Ge.ERROR_REVALIDATE_EVENT)
|
7595
7595
|
return L(Te);
|
7596
7596
|
}
|
7597
7597
|
});
|
@@ -7609,7 +7609,7 @@ const Dr = de.use || ((e) => {
|
|
7609
7609
|
M && y !== -1 && (y = setTimeout(J, M));
|
7610
7610
|
}
|
7611
7611
|
function J() {
|
7612
|
-
!V().error && (l || j().isVisible()) && (u || j().isOnline()) ? L(
|
7612
|
+
!V().error && (l || j().isVisible()) && (u || j().isOnline()) ? L(Wn).then(F) : F();
|
7613
7613
|
}
|
7614
7614
|
return F(), () => {
|
7615
7615
|
y && (clearTimeout(y), y = -1);
|
@@ -7620,36 +7620,36 @@ const Dr = de.use || ((e) => {
|
|
7620
7620
|
u,
|
7621
7621
|
x
|
7622
7622
|
]), Br(H), a && $(I) && x) {
|
7623
|
-
if (!
|
7623
|
+
if (!Wt && ft)
|
7624
7624
|
throw new Error("Fallback data is required when using suspense in SSR.");
|
7625
7625
|
D.current = t, N.current = i, T.current = !1;
|
7626
7626
|
const y = w[x];
|
7627
7627
|
if (!$(y)) {
|
7628
7628
|
const F = ve(y);
|
7629
|
-
|
7629
|
+
Ar(F);
|
7630
7630
|
}
|
7631
7631
|
if ($(q)) {
|
7632
|
-
const F = L(
|
7633
|
-
$(H) || (F.status = "fulfilled", F.value = !0),
|
7632
|
+
const F = L(Wn);
|
7633
|
+
$(H) || (F.status = "fulfilled", F.value = !0), Ar(F);
|
7634
7634
|
} else
|
7635
7635
|
throw q;
|
7636
7636
|
}
|
7637
7637
|
return {
|
7638
7638
|
mutate: ve,
|
7639
7639
|
get data() {
|
7640
|
-
return
|
7640
|
+
return U.data = !0, H;
|
7641
7641
|
},
|
7642
7642
|
get error() {
|
7643
|
-
return
|
7643
|
+
return U.error = !0, q;
|
7644
7644
|
},
|
7645
7645
|
get isValidating() {
|
7646
|
-
return
|
7646
|
+
return U.isValidating = !0, K;
|
7647
7647
|
},
|
7648
7648
|
get isLoading() {
|
7649
|
-
return
|
7649
|
+
return U.isLoading = !0, ee;
|
7650
7650
|
}
|
7651
7651
|
};
|
7652
|
-
}, dp = Ia(up),
|
7652
|
+
}, dp = Ia(up), Dr = le.use || ((e) => {
|
7653
7653
|
if (e.status === "pending")
|
7654
7654
|
throw e;
|
7655
7655
|
if (e.status === "fulfilled")
|
@@ -7659,11 +7659,11 @@ const Dr = de.use || ((e) => {
|
|
7659
7659
|
}, (t) => {
|
7660
7660
|
e.status = "rejected", e.reason = t;
|
7661
7661
|
}), e);
|
7662
|
-
}),
|
7662
|
+
}), Un = {
|
7663
7663
|
dedupe: !0
|
7664
7664
|
}, fp = (e, t, i) => {
|
7665
|
-
const { cache: n, compare: r, suspense: a, fallbackData: o, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: l, refreshWhenOffline: u, keepPreviousData: f } = i, [m, v, g, w] = He.get(n), [x, k] = Ht(e), _ = be(!1), T = be(!1), b = be(x), D = be(t), N = be(i), j = () => N.current, G = () => j().isVisible() && j().isOnline(), [V, re, xe, te] =
|
7666
|
-
for (const J in
|
7665
|
+
const { cache: n, compare: r, suspense: a, fallbackData: o, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: l, refreshWhenOffline: u, keepPreviousData: f } = i, [m, v, g, w] = He.get(n), [x, k] = Ht(e), _ = be(!1), T = be(!1), b = be(x), D = be(t), N = be(i), j = () => N.current, G = () => j().isVisible() && j().isOnline(), [V, re, xe, te] = gi(n, x), U = be({}).current, pe = $(o) ? i.fallback[x] : o, Se = (y, F) => {
|
7666
|
+
for (const J in U) {
|
7667
7667
|
const M = J;
|
7668
7668
|
if (M === "data") {
|
7669
7669
|
if (!r(y[M], F[M]) && (!$(y[M]) || !r(H, F[M])))
|
@@ -7680,8 +7680,8 @@ const Dr = de.use || ((e) => {
|
|
7680
7680
|
isLoading: !0,
|
7681
7681
|
...Ee
|
7682
7682
|
} : Ee;
|
7683
|
-
}, J = V(), M = te(),
|
7684
|
-
let X =
|
7683
|
+
}, J = V(), M = te(), de = F(J), Te = J === M ? de : F(M);
|
7684
|
+
let X = de;
|
7685
7685
|
return [
|
7686
7686
|
() => {
|
7687
7687
|
const Q = F(V());
|
@@ -7692,7 +7692,7 @@ const Dr = de.use || ((e) => {
|
|
7692
7692
|
}, [
|
7693
7693
|
n,
|
7694
7694
|
x
|
7695
|
-
]),
|
7695
|
+
]), ue = ka.useSyncExternalStore(Ce(
|
7696
7696
|
(y) => xe(x, (F, J) => {
|
7697
7697
|
Se(J, F) || y();
|
7698
7698
|
}),
|
@@ -7701,13 +7701,13 @@ const Dr = de.use || ((e) => {
|
|
7701
7701
|
n,
|
7702
7702
|
x
|
7703
7703
|
]
|
7704
|
-
), Re[0], Re[1]), we = !_.current, S = m[x] && m[x].length > 0, O =
|
7704
|
+
), Re[0], Re[1]), we = !_.current, S = m[x] && m[x].length > 0, O = ue.data, I = $(O) ? pe : O, q = ue.error, B = be(I), H = f ? $(O) ? B.current : O : I, z = S && !$(q) ? !1 : we && !$(s) ? s : j().isPaused() ? !1 : a ? $(I) ? !1 : c : $(I) || c, W = !!(x && t && we && z), K = $(ue.isValidating) ? W : ue.isValidating, ee = $(ue.isLoading) ? W : ue.isLoading, L = Ce(
|
7705
7705
|
async (y) => {
|
7706
7706
|
const F = D.current;
|
7707
7707
|
if (!x || !F || T.current || j().isPaused())
|
7708
7708
|
return !1;
|
7709
|
-
let J, M,
|
7710
|
-
const Te = y || {}, X = !g[x] || !Te.dedupe, Q = () =>
|
7709
|
+
let J, M, de = !0;
|
7710
|
+
const Te = y || {}, X = !g[x] || !Te.dedupe, Q = () => Wt ? !T.current && x === b.current && _.current : x === b.current, Ee = {
|
7711
7711
|
isValidating: !1,
|
7712
7712
|
isLoading: !1
|
7713
7713
|
}, Ye = () => {
|
@@ -7721,7 +7721,7 @@ const Dr = de.use || ((e) => {
|
|
7721
7721
|
$(V().data) && (Ke.isLoading = !0);
|
7722
7722
|
try {
|
7723
7723
|
if (X && (re(Ke), i.loadingTimeout && $(V().data) && setTimeout(() => {
|
7724
|
-
|
7724
|
+
de && Q() && j().onLoadingSlow(x, i);
|
7725
7725
|
}, i.loadingTimeout), g[x] = [
|
7726
7726
|
F(k),
|
7727
7727
|
wt()
|
@@ -7734,12 +7734,12 @@ const Dr = de.use || ((e) => {
|
|
7734
7734
|
M <= E[1] || // case 3
|
7735
7735
|
E[1] === 0))
|
7736
7736
|
return Ye(), X && Q() && j().onDiscarded(x), !1;
|
7737
|
-
const
|
7738
|
-
Ee.data = r(
|
7737
|
+
const C = V().data;
|
7738
|
+
Ee.data = r(C, J) ? C : J, X && Q() && j().onSuccess(J, x, i);
|
7739
7739
|
} catch (E) {
|
7740
7740
|
Ne();
|
7741
|
-
const
|
7742
|
-
|
7741
|
+
const C = j(), { shouldRetryOnError: ae } = C;
|
7742
|
+
C.isPaused() || (Ee.error = E, X && Q() && (C.onError(E, x, C), (ae === !0 || Me(ae) && ae(E)) && (!j().revalidateOnFocus || !j().revalidateOnReconnect || G()) && C.onErrorRetry(E, x, C, (fe) => {
|
7743
7743
|
const ke = m[x];
|
7744
7744
|
ke && ke[0] && ke[0](Ge.ERROR_REVALIDATE_EVENT, fe);
|
7745
7745
|
}, {
|
@@ -7747,7 +7747,7 @@ const Dr = de.use || ((e) => {
|
|
7747
7747
|
dedupe: !0
|
7748
7748
|
})));
|
7749
7749
|
}
|
7750
|
-
return
|
7750
|
+
return de = !1, Ye(), !0;
|
7751
7751
|
},
|
7752
7752
|
// `setState` is immutable, and `eventsCallback`, `fnArg`, and
|
7753
7753
|
// `keyValidating` are depending on `key`, so we can exclude them from
|
@@ -7764,9 +7764,9 @@ const Dr = de.use || ((e) => {
|
|
7764
7764
|
x,
|
7765
7765
|
n
|
7766
7766
|
]
|
7767
|
-
), ve =
|
7767
|
+
), ve = Ce(
|
7768
7768
|
// Use callback to make sure `keyRef.current` returns latest result every time
|
7769
|
-
(...y) =>
|
7769
|
+
(...y) => hi(n, b.current, ...y),
|
7770
7770
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
7771
7771
|
[]
|
7772
7772
|
);
|
@@ -7774,18 +7774,18 @@ const Dr = de.use || ((e) => {
|
|
7774
7774
|
D.current = t, N.current = i, $(O) || (B.current = O);
|
7775
7775
|
}), nt(() => {
|
7776
7776
|
if (!x) return;
|
7777
|
-
const y = L.bind(De,
|
7777
|
+
const y = L.bind(De, Un);
|
7778
7778
|
let F = 0;
|
7779
|
-
const M = Ba(x, m, (
|
7780
|
-
if (
|
7779
|
+
const M = Ba(x, m, (de, Te = {}) => {
|
7780
|
+
if (de == Ge.FOCUS_EVENT) {
|
7781
7781
|
const X = Date.now();
|
7782
7782
|
j().revalidateOnFocus && X > F && G() && (F = X + j().focusThrottleInterval, y());
|
7783
|
-
} else if (
|
7783
|
+
} else if (de == Ge.RECONNECT_EVENT)
|
7784
7784
|
j().revalidateOnReconnect && G() && y();
|
7785
7785
|
else {
|
7786
|
-
if (
|
7786
|
+
if (de == Ge.MUTATE_EVENT)
|
7787
7787
|
return L();
|
7788
|
-
if (
|
7788
|
+
if (de == Ge.ERROR_REVALIDATE_EVENT)
|
7789
7789
|
return L(Te);
|
7790
7790
|
}
|
7791
7791
|
});
|
@@ -7803,7 +7803,7 @@ const Dr = de.use || ((e) => {
|
|
7803
7803
|
M && y !== -1 && (y = setTimeout(J, M));
|
7804
7804
|
}
|
7805
7805
|
function J() {
|
7806
|
-
!V().error && (l || j().isVisible()) && (u || j().isOnline()) ? L(
|
7806
|
+
!V().error && (l || j().isVisible()) && (u || j().isOnline()) ? L(Un).then(F) : F();
|
7807
7807
|
}
|
7808
7808
|
return F(), () => {
|
7809
7809
|
y && (clearTimeout(y), y = -1);
|
@@ -7814,43 +7814,43 @@ const Dr = de.use || ((e) => {
|
|
7814
7814
|
u,
|
7815
7815
|
x
|
7816
7816
|
]), Br(H), a && $(I) && x) {
|
7817
|
-
if (!
|
7817
|
+
if (!Wt && ft)
|
7818
7818
|
throw new Error("Fallback data is required when using suspense in SSR.");
|
7819
7819
|
D.current = t, N.current = i, T.current = !1;
|
7820
7820
|
const y = w[x];
|
7821
7821
|
if (!$(y)) {
|
7822
7822
|
const F = ve(y);
|
7823
|
-
|
7823
|
+
Dr(F);
|
7824
7824
|
}
|
7825
7825
|
if ($(q)) {
|
7826
|
-
const F = L(
|
7827
|
-
$(H) || (F.status = "fulfilled", F.value = !0),
|
7826
|
+
const F = L(Un);
|
7827
|
+
$(H) || (F.status = "fulfilled", F.value = !0), Dr(F);
|
7828
7828
|
} else
|
7829
7829
|
throw q;
|
7830
7830
|
}
|
7831
7831
|
return {
|
7832
7832
|
mutate: ve,
|
7833
7833
|
get data() {
|
7834
|
-
return
|
7834
|
+
return U.data = !0, H;
|
7835
7835
|
},
|
7836
7836
|
get error() {
|
7837
|
-
return
|
7837
|
+
return U.error = !0, q;
|
7838
7838
|
},
|
7839
7839
|
get isValidating() {
|
7840
|
-
return
|
7840
|
+
return U.isValidating = !0, K;
|
7841
7841
|
},
|
7842
7842
|
get isLoading() {
|
7843
|
-
return
|
7843
|
+
return U.isLoading = !0, ee;
|
7844
7844
|
}
|
7845
7845
|
};
|
7846
|
-
}, mp = Ia(fp),
|
7846
|
+
}, mp = Ia(fp), jr = Wt ? (e) => {
|
7847
7847
|
e();
|
7848
|
-
} :
|
7849
|
-
const [, t] =
|
7848
|
+
} : le.startTransition, xp = (e) => {
|
7849
|
+
const [, t] = si({}), i = be(!1), n = be(e), r = be({
|
7850
7850
|
data: !1,
|
7851
7851
|
error: !1,
|
7852
7852
|
isValidating: !1
|
7853
|
-
}), a =
|
7853
|
+
}), a = Ce((o) => {
|
7854
7854
|
let s = !1;
|
7855
7855
|
const c = n.current;
|
7856
7856
|
for (const p in o) {
|
@@ -7871,7 +7871,7 @@ const Dr = de.use || ((e) => {
|
|
7871
7871
|
data: De,
|
7872
7872
|
error: De,
|
7873
7873
|
isMutating: !1
|
7874
|
-
}), u = c.current, f =
|
7874
|
+
}), u = c.current, f = Ce(
|
7875
7875
|
async (v, g) => {
|
7876
7876
|
const [w, x] = Ht(r.current);
|
7877
7877
|
if (!a.current)
|
@@ -7896,13 +7896,13 @@ const Dr = de.use || ((e) => {
|
|
7896
7896
|
throwOnError: !0
|
7897
7897
|
})
|
7898
7898
|
);
|
7899
|
-
return s.current <= _ && (
|
7899
|
+
return s.current <= _ && (jr(() => l({
|
7900
7900
|
data: T,
|
7901
7901
|
isMutating: !1,
|
7902
7902
|
error: void 0
|
7903
7903
|
})), k.onSuccess == null || k.onSuccess.call(k, T, w, k)), T;
|
7904
7904
|
} catch (T) {
|
7905
|
-
if (s.current <= _ && (
|
7905
|
+
if (s.current <= _ && (jr(() => l({
|
7906
7906
|
error: T,
|
7907
7907
|
isMutating: !1
|
7908
7908
|
})), k.onError == null || k.onError.call(k, T, w, k), k.throwOnError))
|
@@ -7911,7 +7911,7 @@ const Dr = de.use || ((e) => {
|
|
7911
7911
|
},
|
7912
7912
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
7913
7913
|
[]
|
7914
|
-
), m =
|
7914
|
+
), m = Ce(() => {
|
7915
7915
|
s.current = wt(), l({
|
7916
7916
|
data: De,
|
7917
7917
|
error: De,
|
@@ -8016,8 +8016,8 @@ const Dr = de.use || ((e) => {
|
|
8016
8016
|
if (!t) return !1;
|
8017
8017
|
const n = new URLSearchParams(t).get("Expires");
|
8018
8018
|
return n ? new Date(n) < /* @__PURE__ */ new Date() : !1;
|
8019
|
-
},
|
8020
|
-
const [e, t] =
|
8019
|
+
}, Fr = (e) => e && e.split("?")[0], Rp = (e, t) => Fr(e) === Fr(t), Tp = () => {
|
8020
|
+
const [e, t] = si("paused"), n = Ze(() => {
|
8021
8021
|
if (typeof window > "u") return null;
|
8022
8022
|
const p = new Audio();
|
8023
8023
|
return p.addEventListener("play", () => t("playing")), p;
|
@@ -8048,19 +8048,19 @@ const Dr = de.use || ((e) => {
|
|
8048
8048
|
r.current && ((l = r.current) == null || l.pause(), r.current.currentTime = 0), t("paused");
|
8049
8049
|
}
|
8050
8050
|
};
|
8051
|
-
},
|
8051
|
+
}, yi = Ir(
|
8052
8052
|
null
|
8053
8053
|
), kp = (e) => {
|
8054
8054
|
var o;
|
8055
|
-
const t =
|
8055
|
+
const t = ci(yi), i = Rp((o = t.audioRef.current) == null ? void 0 : o.src, e), n = t.state === "loading" && i, r = t.state === "playing" && i;
|
8056
8056
|
return { ...t, isMySrc: i, isLoading: n, isPlaying: r, play: async () => {
|
8057
8057
|
var c;
|
8058
8058
|
const s = (c = t.audioRef.current) == null ? void 0 : c.src;
|
8059
8059
|
(!i || Sp(s)) && await t.setAudio(e), t.play();
|
8060
8060
|
} };
|
8061
|
-
},
|
8061
|
+
}, nu = () => ci(yi), Op = ({ children: e }) => {
|
8062
8062
|
const t = Tp();
|
8063
|
-
return /* @__PURE__ */ ye.jsx(
|
8063
|
+
return /* @__PURE__ */ ye.jsx(yi.Provider, { value: t, children: e });
|
8064
8064
|
}, _p = (e, t, i) => {
|
8065
8065
|
const n = kp(e), r = be(!1), a = () => {
|
8066
8066
|
r.current || (r.current = !0), n.isPlaying ? (n.pause(), i == null || i()) : (n.play(), t == null || t());
|
@@ -8085,7 +8085,7 @@ za.defaultProps = {
|
|
8085
8085
|
isTrue: !0
|
8086
8086
|
};
|
8087
8087
|
ct.Else = za;
|
8088
|
-
const
|
8088
|
+
const Cp = (e) => {
|
8089
8089
|
const t = (r) => typeof r == "object" && !(r instanceof Date) && !(r instanceof File) && r !== null, i = (r, a, o) => {
|
8090
8090
|
for (const s in a) {
|
8091
8091
|
const c = a[s];
|
@@ -8097,7 +8097,7 @@ const Ap = (e) => {
|
|
8097
8097
|
a instanceof File ? n.append(r, a, a.name) : a !== void 0 && (t(a) ? i(r, a, n) : n.append(r, a === null ? "" : a));
|
8098
8098
|
}
|
8099
8099
|
return n;
|
8100
|
-
},
|
8100
|
+
}, Ap = qe("div", {
|
8101
8101
|
"--progress": "-100%",
|
8102
8102
|
height: "8px",
|
8103
8103
|
width: "100%",
|
@@ -8112,7 +8112,10 @@ const Ap = (e) => {
|
|
8112
8112
|
transition: "transform 0.2s ease-in-out",
|
8113
8113
|
transform: "translateX(var(--progress))",
|
8114
8114
|
borderRadius: "12px"
|
8115
|
-
}),
|
8115
|
+
}), Pr = {
|
8116
|
+
Root: Ap,
|
8117
|
+
Bar: Dp
|
8118
|
+
};
|
8116
8119
|
function rn(e, t, i) {
|
8117
8120
|
for (let n = 0; n < e.length; ++n)
|
8118
8121
|
t[i + n] = e.charCodeAt(n);
|
@@ -8123,11 +8126,11 @@ function ln(e, t, i) {
|
|
8123
8126
|
function at(e, t, i) {
|
8124
8127
|
e = Math.floor(e), t[i + 0] = e & 255, t[i + 1] = e >> 8 & 255, t[i + 2] = e >> 16 & 255, t[i + 3] = e >> 24 & 255;
|
8125
8128
|
}
|
8126
|
-
function
|
8129
|
+
function jp(e) {
|
8127
8130
|
const t = new ArrayBuffer(4);
|
8128
8131
|
return new Float32Array(t)[0] = e, new Uint32Array(t)[0] | 0;
|
8129
8132
|
}
|
8130
|
-
function
|
8133
|
+
function Fp(e, t, i, n) {
|
8131
8134
|
let r = 0, a = 0;
|
8132
8135
|
const o = e.length, s = e.numberOfChannels;
|
8133
8136
|
let c, p;
|
@@ -8136,27 +8139,27 @@ function Pp(e, t, i, n) {
|
|
8136
8139
|
if (c = e.getChannelData(a), n === 16)
|
8137
8140
|
p = c[r] * 32768, p = Math.max(-32768, Math.min(p, 32767)), ln(p, t, i), i += 2;
|
8138
8141
|
else if (n === 32)
|
8139
|
-
p =
|
8142
|
+
p = jp(c[r]), at(p, t, i), i += 4;
|
8140
8143
|
else {
|
8141
8144
|
console.log("Invalid bit depth for PCM encoding.");
|
8142
8145
|
return;
|
8143
8146
|
}
|
8144
8147
|
}
|
8145
|
-
async function
|
8148
|
+
async function Pp(e, t) {
|
8146
8149
|
let i = e instanceof Blob ? e : new Blob(e);
|
8147
8150
|
const n = URL.createObjectURL(i), a = await (await fetch(n)).arrayBuffer();
|
8148
8151
|
return await new AudioContext(t).decodeAudioData(a);
|
8149
8152
|
}
|
8150
|
-
async function
|
8153
|
+
async function Ip(e, t = !1) {
|
8151
8154
|
const i = e.length, n = e.numberOfChannels, r = e.sampleRate, a = t ? 32 : 16, o = a / 8, s = r * n * a / 8, c = n * a / 8, p = i * n * o, u = 44 + p, f = new Uint8Array(u), m = 16, v = p, g = 4 + (8 + m) + (8 + v);
|
8152
|
-
return rn("RIFF", f, 0), at(g, f, 4), rn("WAVE", f, 8), rn("fmt ", f, 12), at(m, f, 16), ln(t ? 3 : 1, f, 20), ln(n, f, 22), at(r, f, 24), at(s, f, 28), ln(c, f, 32), at(a, f, 34), rn("data", f, 36), at(v, f, 40),
|
8155
|
+
return rn("RIFF", f, 0), at(g, f, 4), rn("WAVE", f, 8), rn("fmt ", f, 12), at(m, f, 16), ln(t ? 3 : 1, f, 20), ln(n, f, 22), at(r, f, 24), at(s, f, 28), ln(c, f, 32), at(a, f, 34), rn("data", f, 36), at(v, f, 40), Fp(e, f, 44, a), new Blob([f], { type: "audio/wave" });
|
8153
8156
|
}
|
8154
|
-
async function
|
8155
|
-
const n = await
|
8156
|
-
return
|
8157
|
+
async function Bp(e, t = !1, i) {
|
8158
|
+
const n = await Pp(e, i);
|
8159
|
+
return Ip(n, t);
|
8157
8160
|
}
|
8158
|
-
const
|
8159
|
-
class
|
8161
|
+
const zp = 128;
|
8162
|
+
class Lp {
|
8160
8163
|
constructor() {
|
8161
8164
|
Gt(this, "mediaRecorder", null);
|
8162
8165
|
Gt(this, "stream", null);
|
@@ -8177,7 +8180,7 @@ class Mp {
|
|
8177
8180
|
if (((t = this.mediaRecorder) == null ? void 0 : t.state) === "recording") return !0;
|
8178
8181
|
try {
|
8179
8182
|
this.stream = await navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 }), this.mediaRecorder = new MediaRecorder(this.stream, {
|
8180
|
-
bitsPerSecond:
|
8183
|
+
bitsPerSecond: zp * 1e3
|
8181
8184
|
}), this.mediaRecorder.ondataavailable = (i) => this.__data = i.data;
|
8182
8185
|
} catch (i) {
|
8183
8186
|
return console.error(i), !1;
|
@@ -8205,12 +8208,12 @@ class Mp {
|
|
8205
8208
|
* @returns {Promise<Blob | null>} - Blob of the recorded audio
|
8206
8209
|
*/
|
8207
8210
|
async getWavBlob() {
|
8208
|
-
return this.__data ? await
|
8211
|
+
return this.__data ? await Bp(this.__data) : null;
|
8209
8212
|
}
|
8210
8213
|
}
|
8211
|
-
const an = new
|
8212
|
-
const [t, i] =
|
8213
|
-
return
|
8214
|
+
const an = new Lp(), La = "Recording.wav", Mp = 1500, iu = (e) => {
|
8215
|
+
const [t, i] = le.useState(!1), [n, r] = le.useState(!1), [a, o] = le.useState(!1);
|
8216
|
+
return le.useEffect(() => {
|
8214
8217
|
var p;
|
8215
8218
|
const c = async () => {
|
8216
8219
|
an.checkMicrophonePermission().then(i);
|
@@ -8239,13 +8242,13 @@ const an = new Mp(), La = "Recording.wav", $p = 1500, nu = (e) => {
|
|
8239
8242
|
const c = await an.startRecording();
|
8240
8243
|
r(c), setTimeout(() => {
|
8241
8244
|
o(!0);
|
8242
|
-
},
|
8245
|
+
}, Mp);
|
8243
8246
|
} };
|
8244
|
-
},
|
8245
|
-
baseURL:
|
8246
|
-
}),
|
8247
|
+
}, $p = "https://arpeggi.io/api/v2/", Ma = je.create({
|
8248
|
+
baseURL: $p
|
8249
|
+
}), Np = async (e, { arg: t }) => (await Ma.post(
|
8247
8250
|
"/ml-inference-jobs",
|
8248
|
-
|
8251
|
+
Cp({
|
8249
8252
|
soundFile: t.file,
|
8250
8253
|
type: "audio",
|
8251
8254
|
voiceModelId: t.voiceModelId,
|
@@ -8259,13 +8262,13 @@ const an = new Mp(), La = "Recording.wav", $p = 1500, nu = (e) => {
|
|
8259
8262
|
type: "audio"
|
8260
8263
|
}
|
8261
8264
|
}
|
8262
|
-
)).data,
|
8265
|
+
)).data, qp = async (e) => e === null ? null : (await Ma.get(e)).data, Wp = (e) => {
|
8263
8266
|
const t = e > 0;
|
8264
|
-
return dp(t ? `/ml-inference-jobs/${e}` : null,
|
8267
|
+
return dp(t ? `/ml-inference-jobs/${e}` : null, qp, {
|
8265
8268
|
refreshInterval: 1e3
|
8266
8269
|
});
|
8267
|
-
},
|
8268
|
-
const [e, t] =
|
8270
|
+
}, Up = () => {
|
8271
|
+
const [e, t] = le.useState(null), [i, n] = le.useState(0), [r, a] = le.useState(0), { data: o, isLoading: s } = Wp(i), { trigger: c, isMutating: p } = gp("/ml-inference-jobs", Np);
|
8269
8272
|
return {
|
8270
8273
|
file: e,
|
8271
8274
|
setFile: t,
|
@@ -8293,10 +8296,10 @@ const an = new Mp(), La = "Recording.wav", $p = 1500, nu = (e) => {
|
|
8293
8296
|
},
|
8294
8297
|
isMutating: p
|
8295
8298
|
};
|
8296
|
-
}, $a =
|
8297
|
-
const t =
|
8299
|
+
}, $a = le.createContext({}), bi = () => le.useContext($a), ru = ({ children: e }) => {
|
8300
|
+
const t = Up();
|
8298
8301
|
return /* @__PURE__ */ ye.jsx(Op, { children: /* @__PURE__ */ ye.jsx($a.Provider, { value: t, children: e }) });
|
8299
|
-
},
|
8302
|
+
}, Vp = qe("button", {
|
8300
8303
|
background: "#ffffff",
|
8301
8304
|
borderRadius: "12px",
|
8302
8305
|
width: "64px",
|
@@ -8325,57 +8328,62 @@ const an = new Mp(), La = "Recording.wav", $p = 1500, nu = (e) => {
|
|
8325
8328
|
transform: "none",
|
8326
8329
|
cursor: "not-allowed"
|
8327
8330
|
}
|
8328
|
-
}),
|
8331
|
+
}), au = () => {
|
8329
8332
|
var a;
|
8330
|
-
const { data: e, isMutating: t } =
|
8331
|
-
return /* @__PURE__ */ ye.jsx(
|
8333
|
+
const { data: e, isMutating: t } = bi(), i = (a = e == null ? void 0 : e.lossyOutputFile) == null ? void 0 : a.url, { player: n, playPause: r } = _p(i);
|
8334
|
+
return /* @__PURE__ */ ye.jsx(Vp, { onClick: r, disabled: n.isLoading || !i, children: /* @__PURE__ */ ye.jsxs(ct, { children: [
|
8332
8335
|
/* @__PURE__ */ ye.jsx(ct.If, { isTrue: n.isLoading || (e == null ? void 0 : e.jobStatus) === "running" || t, children: /* @__PURE__ */ ye.jsx(bp, {}) }),
|
8333
8336
|
/* @__PURE__ */ ye.jsx(ct.If, { isTrue: n.isPlaying, children: /* @__PURE__ */ ye.jsx(wp, {}) }),
|
8334
8337
|
/* @__PURE__ */ ye.jsx(ct.Else, { children: /* @__PURE__ */ ye.jsx(Ep, {}) })
|
8335
8338
|
] }) });
|
8336
|
-
},
|
8337
|
-
const
|
8338
|
-
return
|
8339
|
-
|
8340
|
-
|
8341
|
-
|
8342
|
-
|
8343
|
-
|
8344
|
-
);
|
8345
|
-
|
8346
|
-
|
8347
|
-
|
8348
|
-
|
8349
|
-
|
8350
|
-
|
8339
|
+
}, Hp = 30, Gp = (e) => {
|
8340
|
+
const t = le.useRef(), i = le.useRef(null);
|
8341
|
+
return le.useEffect(() => {
|
8342
|
+
let n = 0;
|
8343
|
+
return t.current = setInterval(() => {
|
8344
|
+
var a;
|
8345
|
+
n += e;
|
8346
|
+
let r = Math.round(Math.atan(n) / (Math.PI / 2) * 100 * 1e3) / 1e3;
|
8347
|
+
(a = i.current) == null || a.style.setProperty("--progress", `${-100 + r}%`);
|
8348
|
+
}, 50), () => clearInterval(t.current);
|
8349
|
+
}, []), i;
|
8350
|
+
}, Yp = () => {
|
8351
|
+
const e = Gp(0.3);
|
8352
|
+
return /* @__PURE__ */ ye.jsx(Pr.Root, { ref: e, children: /* @__PURE__ */ ye.jsx(Pr.Bar, {}) });
|
8353
|
+
}, ou = () => {
|
8354
|
+
const { data: e } = bi();
|
8355
|
+
return /* @__PURE__ */ ye.jsx(Yp, {}, e == null ? void 0 : e.id);
|
8356
|
+
}, Kp = 1, Jp = 100 * 1024 * 1024, Xp = 1, su = ({ children: e }) => {
|
8357
|
+
const { setFile: t } = bi(), i = (n) => t(n[0]);
|
8351
8358
|
return /* @__PURE__ */ ye.jsx(
|
8352
8359
|
ic,
|
8353
8360
|
{
|
8354
8361
|
files: [],
|
8355
8362
|
onFileAccepted: i,
|
8356
|
-
maxFileCount:
|
8357
|
-
maxSizeBytes:
|
8358
|
-
minSizeBytes:
|
8359
|
-
maxDurationS:
|
8363
|
+
maxFileCount: Kp,
|
8364
|
+
maxSizeBytes: Jp,
|
8365
|
+
minSizeBytes: Xp,
|
8366
|
+
maxDurationS: Hp,
|
8360
8367
|
children: e
|
8361
8368
|
}
|
8362
8369
|
);
|
8363
8370
|
};
|
8364
8371
|
export {
|
8365
8372
|
ic as AudioFilePickerRoot,
|
8366
|
-
|
8367
|
-
|
8368
|
-
|
8369
|
-
|
8370
|
-
|
8371
|
-
|
8373
|
+
tu as ConvertStep,
|
8374
|
+
su as FilePicker,
|
8375
|
+
ru as GuestConvertProvider,
|
8376
|
+
ou as InferenceProgress,
|
8377
|
+
Mp as MIN_RECORDING_LENGTH_MS,
|
8378
|
+
au as PlayButton,
|
8372
8379
|
Op as PlayerProvider,
|
8373
8380
|
La as RECORDED_AUDIO_NAME,
|
8374
|
-
|
8375
|
-
|
8381
|
+
eu as useAudioFilePickerContext,
|
8382
|
+
Gp as useFakeProgress,
|
8383
|
+
bi as useGuestConvertContext,
|
8376
8384
|
_p as usePlayback,
|
8377
8385
|
kp as usePlayer,
|
8378
|
-
|
8379
|
-
|
8386
|
+
nu as usePlayerControls,
|
8387
|
+
iu as useRecorder
|
8380
8388
|
};
|
8381
8389
|
//# sourceMappingURL=index.es.js.map
|