arpeggi-framer-components 0.0.33 → 0.0.35
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +265 -260
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +14 -14
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -2,7 +2,7 @@ var Qa = Object.defineProperty;
|
|
2
2
|
var eo = (e, t, i) => t in e ? Qa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
3
3
|
var Yt = (e, t, i) => eo(e, typeof t != "symbol" ? t + "" : t, i);
|
4
4
|
import * as to from "react";
|
5
|
-
import ce, { useState as gn, useLayoutEffect as zr, useEffect as Et, useMemo as
|
5
|
+
import ce, { useState as gn, useLayoutEffect as zr, useEffect as Et, useMemo as Qe, useRef as Se, useReducer as no, useCallback as Ce, forwardRef as io, useImperativeHandle as ro, Fragment as ao, createContext as Mr, useContext as ui, useDebugValue as $r } from "react";
|
6
6
|
var Kt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
7
7
|
function Nr(e) {
|
8
8
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
@@ -15,16 +15,16 @@ function oo() {
|
|
15
15
|
return l.Date.now();
|
16
16
|
};
|
17
17
|
function w(v, O, B) {
|
18
|
-
var A, H, G,
|
18
|
+
var A, H, G, ie, re, X, q = 0, le = !1, me = !1, ye = !0;
|
19
19
|
if (typeof v != "function")
|
20
20
|
throw new TypeError(e);
|
21
21
|
O = T(O) || 0, m(B) && (le = !!B.leading, me = "maxWait" in B, G = me ? x(T(B.maxWait) || 0, O) : G, ye = "trailing" in B ? !!B.trailing : ye);
|
22
22
|
function se(F) {
|
23
23
|
var U = A, K = H;
|
24
|
-
return A = H = void 0, q = F,
|
24
|
+
return A = H = void 0, q = F, ie = v.apply(K, U), ie;
|
25
25
|
}
|
26
26
|
function ve(F) {
|
27
|
-
return q = F,
|
27
|
+
return q = F, re = setTimeout(L, O), le ? se(F) : ie;
|
28
28
|
}
|
29
29
|
function S(F) {
|
30
30
|
var U = F - X, K = F - q, $ = O - U;
|
@@ -38,26 +38,26 @@ function oo() {
|
|
38
38
|
var F = g();
|
39
39
|
if (_(F))
|
40
40
|
return N(F);
|
41
|
-
|
41
|
+
re = setTimeout(L, S(F));
|
42
42
|
}
|
43
43
|
function N(F) {
|
44
|
-
return
|
44
|
+
return re = void 0, ye && A ? se(F) : (A = H = void 0, ie);
|
45
45
|
}
|
46
46
|
function M() {
|
47
|
-
|
47
|
+
re !== void 0 && clearTimeout(re), q = 0, A = X = H = re = void 0;
|
48
48
|
}
|
49
49
|
function Y() {
|
50
|
-
return
|
50
|
+
return re === void 0 ? ie : N(g());
|
51
51
|
}
|
52
52
|
function z() {
|
53
53
|
var F = g(), U = _(F);
|
54
54
|
if (A = arguments, H = this, X = F, U) {
|
55
|
-
if (
|
55
|
+
if (re === void 0)
|
56
56
|
return ve(X);
|
57
57
|
if (me)
|
58
|
-
return
|
58
|
+
return re = setTimeout(L, O), se(X);
|
59
59
|
}
|
60
|
-
return
|
60
|
+
return re === void 0 && (re = setTimeout(L, O)), ie;
|
61
61
|
}
|
62
62
|
return z.cancel = M, z.flush = Y, z;
|
63
63
|
}
|
@@ -176,14 +176,14 @@ function po() {
|
|
176
176
|
// with.
|
177
177
|
d.$$typeof === H || d.getModuleId !== void 0));
|
178
178
|
}
|
179
|
-
function
|
179
|
+
function ie(d, R, D) {
|
180
180
|
var J = d.displayName;
|
181
181
|
if (J)
|
182
182
|
return J;
|
183
183
|
var ue = R.displayName || R.name || "";
|
184
184
|
return ue !== "" ? D + "(" + ue + ")" : D;
|
185
185
|
}
|
186
|
-
function
|
186
|
+
function re(d) {
|
187
187
|
return d.displayName || "Context";
|
188
188
|
}
|
189
189
|
function X(d) {
|
@@ -211,12 +211,12 @@ function po() {
|
|
211
211
|
switch (d.$$typeof) {
|
212
212
|
case s:
|
213
213
|
var R = d;
|
214
|
-
return
|
214
|
+
return re(R) + ".Consumer";
|
215
215
|
case o:
|
216
216
|
var D = d;
|
217
|
-
return
|
217
|
+
return re(D._context) + ".Provider";
|
218
218
|
case c:
|
219
|
-
return
|
219
|
+
return ie(d, d.render, "ForwardRef");
|
220
220
|
case u:
|
221
221
|
var J = d.displayName || null;
|
222
222
|
return J !== null ? J : X(d.type) || "Memo";
|
@@ -338,39 +338,39 @@ function po() {
|
|
338
338
|
}), typeof Reflect == "object" && Reflect.construct) {
|
339
339
|
try {
|
340
340
|
Reflect.construct(oe, []);
|
341
|
-
} catch (
|
342
|
-
J =
|
341
|
+
} catch (Ze) {
|
342
|
+
J = Ze;
|
343
343
|
}
|
344
344
|
Reflect.construct(d, [], oe);
|
345
345
|
} else {
|
346
346
|
try {
|
347
347
|
oe.call();
|
348
|
-
} catch (
|
349
|
-
J =
|
348
|
+
} catch (Ze) {
|
349
|
+
J = Ze;
|
350
350
|
}
|
351
351
|
d.call(oe.prototype);
|
352
352
|
}
|
353
353
|
} else {
|
354
354
|
try {
|
355
355
|
throw Error();
|
356
|
-
} catch (
|
357
|
-
J =
|
356
|
+
} catch (Ze) {
|
357
|
+
J = Ze;
|
358
358
|
}
|
359
359
|
d();
|
360
360
|
}
|
361
|
-
} catch (
|
362
|
-
if (
|
363
|
-
for (var
|
361
|
+
} catch (Ze) {
|
362
|
+
if (Ze && J && typeof Ze.stack == "string") {
|
363
|
+
for (var ae = Ze.stack.split(`
|
364
364
|
`), Pe = J.stack.split(`
|
365
|
-
`), _e =
|
365
|
+
`), _e = ae.length - 1, Ae = Pe.length - 1; _e >= 1 && Ae >= 0 && ae[_e] !== Pe[Ae]; )
|
366
366
|
Ae--;
|
367
367
|
for (; _e >= 1 && Ae >= 0; _e--, Ae--)
|
368
|
-
if (
|
368
|
+
if (ae[_e] !== Pe[Ae]) {
|
369
369
|
if (_e !== 1 || Ae !== 1)
|
370
370
|
do
|
371
|
-
if (_e--, Ae--, Ae < 0 ||
|
371
|
+
if (_e--, Ae--, Ae < 0 || ae[_e] !== Pe[Ae]) {
|
372
372
|
var ze = `
|
373
|
-
` +
|
373
|
+
` + ae[_e].replace(" at new ", " at ");
|
374
374
|
return d.displayName && ze.includes("<anonymous>") && (ze = ze.replace("<anonymous>", d.displayName)), typeof d == "function" && $.set(d, ze), ze;
|
375
375
|
}
|
376
376
|
while (_e >= 1 && Ae >= 0);
|
@@ -432,25 +432,25 @@ function po() {
|
|
432
432
|
var we = Function.call.bind(xe);
|
433
433
|
for (var oe in d)
|
434
434
|
if (we(d, oe)) {
|
435
|
-
var
|
435
|
+
var ae = void 0;
|
436
436
|
try {
|
437
437
|
if (typeof d[oe] != "function") {
|
438
438
|
var Pe = Error((J || "React class") + ": " + D + " type `" + oe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[oe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
439
439
|
throw Pe.name = "Invariant Violation", Pe;
|
440
440
|
}
|
441
|
-
|
441
|
+
ae = d[oe](R, oe, J, D, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
442
442
|
} catch (_e) {
|
443
|
-
|
443
|
+
ae = _e;
|
444
444
|
}
|
445
|
-
|
445
|
+
ae && !(ae instanceof Error) && (te(ue), 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).", J || "React class", D, oe, typeof ae), te(null)), ae instanceof Error && !(ae.message in Te) && (Te[ae.message] = !0, te(ue), k("Failed %s type: %s", D, ae.message), te(null));
|
446
446
|
}
|
447
447
|
}
|
448
448
|
}
|
449
|
-
var
|
449
|
+
var Ke = Array.isArray;
|
450
450
|
function Ne(d) {
|
451
|
-
return
|
451
|
+
return Ke(d);
|
452
452
|
}
|
453
|
-
function
|
453
|
+
function Je(d) {
|
454
454
|
{
|
455
455
|
var R = typeof Symbol == "function" && Symbol.toStringTag, D = R && d[Symbol.toStringTag] || d.constructor.name || "Object";
|
456
456
|
return D;
|
@@ -468,15 +468,15 @@ function po() {
|
|
468
468
|
}
|
469
469
|
function pe(d) {
|
470
470
|
if (E(d))
|
471
|
-
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
471
|
+
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(d)), j(d);
|
472
472
|
}
|
473
473
|
var ge = m.ReactCurrentOwner, ke = {
|
474
474
|
key: !0,
|
475
475
|
ref: !0,
|
476
476
|
__self: !0,
|
477
477
|
__source: !0
|
478
|
-
},
|
479
|
-
|
478
|
+
}, nt, Xe, ot;
|
479
|
+
ot = {};
|
480
480
|
function _t(d) {
|
481
481
|
if (xe.call(d, "ref")) {
|
482
482
|
var R = Object.getOwnPropertyDescriptor(d, "ref").get;
|
@@ -496,13 +496,13 @@ function po() {
|
|
496
496
|
function gt(d, R) {
|
497
497
|
if (typeof d.ref == "string" && ge.current && R && ge.current.stateNode !== R) {
|
498
498
|
var D = X(ge.current.type);
|
499
|
-
|
499
|
+
ot[D] || (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', X(ge.current.type), d.ref), ot[D] = !0);
|
500
500
|
}
|
501
501
|
}
|
502
502
|
function At(d, R) {
|
503
503
|
{
|
504
504
|
var D = function() {
|
505
|
-
|
505
|
+
nt || (nt = !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));
|
506
506
|
};
|
507
507
|
D.isReactWarning = !0, Object.defineProperty(d, "key", {
|
508
508
|
get: D,
|
@@ -513,7 +513,7 @@ function po() {
|
|
513
513
|
function jt(d, R) {
|
514
514
|
{
|
515
515
|
var D = function() {
|
516
|
-
|
516
|
+
Xe || (Xe = !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));
|
517
517
|
};
|
518
518
|
D.isReactWarning = !0, Object.defineProperty(d, "ref", {
|
519
519
|
get: D,
|
@@ -522,7 +522,7 @@ function po() {
|
|
522
522
|
}
|
523
523
|
}
|
524
524
|
var Dt = function(d, R, D, J, ue, we, oe) {
|
525
|
-
var
|
525
|
+
var ae = {
|
526
526
|
// This tag allows us to uniquely identify this as a React Element
|
527
527
|
$$typeof: t,
|
528
528
|
// Built-in properties that belong on the element
|
@@ -533,27 +533,27 @@ function po() {
|
|
533
533
|
// Record the component responsible for creating this element.
|
534
534
|
_owner: we
|
535
535
|
};
|
536
|
-
return
|
536
|
+
return ae._store = {}, Object.defineProperty(ae._store, "validated", {
|
537
537
|
configurable: !1,
|
538
538
|
enumerable: !1,
|
539
539
|
writable: !0,
|
540
540
|
value: !1
|
541
|
-
}), Object.defineProperty(
|
541
|
+
}), Object.defineProperty(ae, "_self", {
|
542
542
|
configurable: !1,
|
543
543
|
enumerable: !1,
|
544
544
|
writable: !1,
|
545
545
|
value: J
|
546
|
-
}), Object.defineProperty(
|
546
|
+
}), Object.defineProperty(ae, "_source", {
|
547
547
|
configurable: !1,
|
548
548
|
enumerable: !1,
|
549
549
|
writable: !1,
|
550
550
|
value: ue
|
551
|
-
}), Object.freeze && (Object.freeze(
|
551
|
+
}), Object.freeze && (Object.freeze(ae.props), Object.freeze(ae)), ae;
|
552
552
|
};
|
553
553
|
function Ft(d, R, D, J, ue) {
|
554
554
|
{
|
555
|
-
var we, oe = {},
|
556
|
-
D !== void 0 && (pe(D),
|
555
|
+
var we, oe = {}, ae = null, Pe = null;
|
556
|
+
D !== void 0 && (pe(D), ae = "" + D), Ct(R) && (pe(R.key), ae = "" + R.key), _t(R) && (Pe = R.ref, gt(R, ue));
|
557
557
|
for (we in R)
|
558
558
|
xe.call(R, we) && !ke.hasOwnProperty(we) && (oe[we] = R[we]);
|
559
559
|
if (d && d.defaultProps) {
|
@@ -561,11 +561,11 @@ function po() {
|
|
561
561
|
for (we in _e)
|
562
562
|
oe[we] === void 0 && (oe[we] = _e[we]);
|
563
563
|
}
|
564
|
-
if (
|
564
|
+
if (ae || Pe) {
|
565
565
|
var Ae = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
566
|
-
|
566
|
+
ae && At(oe, Ae), Pe && jt(oe, Ae);
|
567
567
|
}
|
568
|
-
return Dt(d,
|
568
|
+
return Dt(d, ae, Pe, ue, J, ge.current, oe);
|
569
569
|
}
|
570
570
|
}
|
571
571
|
var Pt = m.ReactCurrentOwner, Ri = m.ReactDebugCurrentFrame;
|
@@ -682,12 +682,12 @@ Check the top-level render call using <` + D + ">.");
|
|
682
682
|
{
|
683
683
|
var oe = G(d);
|
684
684
|
if (!oe) {
|
685
|
-
var
|
686
|
-
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (
|
685
|
+
var ae = "";
|
686
|
+
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (ae += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
687
687
|
var Pe = Va();
|
688
|
-
Pe ?
|
688
|
+
Pe ? ae += Pe : ae += Ti();
|
689
689
|
var _e;
|
690
|
-
d === null ? _e = "null" : Ne(d) ? _e = "array" : d !== void 0 && d.$$typeof === t ? (_e = "<" + (X(d.type) || "Unknown") + " />",
|
690
|
+
d === null ? _e = "null" : Ne(d) ? _e = "array" : d !== void 0 && d.$$typeof === t ? (_e = "<" + (X(d.type) || "Unknown") + " />", ae = " 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, ae);
|
691
691
|
}
|
692
692
|
var Ae = Ft(d, R, D, ue, we);
|
693
693
|
if (Ae == null)
|
@@ -722,16 +722,16 @@ var Pi;
|
|
722
722
|
function uo() {
|
723
723
|
return Pi || (Pi = 1, process.env.NODE_ENV === "production" ? Jt.exports = lo() : Jt.exports = po()), Jt.exports;
|
724
724
|
}
|
725
|
-
var
|
725
|
+
var ne = uo(), he = "colors", Ie = "sizes", I = "space", fo = { gap: I, gridGap: I, columnGap: I, gridColumnGap: I, rowGap: I, gridRowGap: I, inset: I, insetBlock: I, insetBlockEnd: I, insetBlockStart: I, insetInline: I, insetInlineEnd: I, insetInlineStart: I, margin: I, marginTop: I, marginRight: I, marginBottom: I, marginLeft: I, marginBlock: I, marginBlockEnd: I, marginBlockStart: I, marginInline: I, marginInlineEnd: I, marginInlineStart: I, padding: I, paddingTop: I, paddingRight: I, paddingBottom: I, paddingLeft: I, paddingBlock: I, paddingBlockEnd: I, paddingBlockStart: I, paddingInline: I, paddingInlineEnd: I, paddingInlineStart: I, top: I, right: I, bottom: I, left: I, scrollMargin: I, scrollMarginTop: I, scrollMarginRight: I, scrollMarginBottom: I, scrollMarginLeft: I, scrollMarginX: I, scrollMarginY: I, scrollMarginBlock: I, scrollMarginBlockEnd: I, scrollMarginBlockStart: I, scrollMarginInline: I, scrollMarginInlineEnd: I, scrollMarginInlineStart: I, scrollPadding: I, scrollPaddingTop: I, scrollPaddingRight: I, scrollPaddingBottom: I, scrollPaddingLeft: I, scrollPaddingX: I, scrollPaddingY: I, scrollPaddingBlock: I, scrollPaddingBlockEnd: I, scrollPaddingBlockStart: I, scrollPaddingInline: I, scrollPaddingInlineEnd: I, scrollPaddingInlineStart: I, fontSize: "fontSizes", background: he, backgroundColor: he, backgroundImage: he, borderImage: he, border: he, borderBlock: he, borderBlockEnd: he, borderBlockStart: he, borderBottom: he, borderBottomColor: he, borderColor: he, borderInline: he, borderInlineEnd: he, borderInlineStart: he, borderLeft: he, borderLeftColor: he, borderRight: he, borderRightColor: he, borderTop: he, borderTopColor: he, caretColor: he, color: he, columnRuleColor: he, fill: he, outline: he, outlineColor: he, stroke: he, textDecorationColor: he, 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" }, mo = (e, t) => typeof t == "function" ? { "()": Function.prototype.toString.call(t) } : t, Tt = () => {
|
726
726
|
const e = /* @__PURE__ */ Object.create(null);
|
727
727
|
return (t, i, ...n) => {
|
728
728
|
const r = ((a) => JSON.stringify(a, mo))(t);
|
729
729
|
return r in e ? e[r] : e[r] = i(t, ...n);
|
730
730
|
};
|
731
|
-
},
|
731
|
+
}, ut = Symbol.for("sxs.internal"), di = (e, t) => Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)), Ii = (e) => {
|
732
732
|
for (const t in e) return !0;
|
733
733
|
return !1;
|
734
|
-
}, { hasOwnProperty: xo } = Object.prototype, Kn = (e) => e.includes("-") ? e : e.replace(/[A-Z]/g, (t) => "-" + t.toLowerCase()), vo = /\s+(?![^()]*\))/, bt = (e) => (t) => e(...typeof t == "string" ? String(t).split(vo) : [t]), Bi = { 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: bt((e, t) => ({ marginBlockStart: e, marginBlockEnd: t || e })), marginInline: bt((e, t) => ({ marginInlineStart: e, marginInlineEnd: t || e })), maxSize: bt((e, t) => ({ maxBlockSize: e, maxInlineSize: t || e })), minSize: bt((e, t) => ({ minBlockSize: e, minInlineSize: t || e })), paddingBlock: bt((e, t) => ({ paddingBlockStart: e, paddingBlockEnd: t || e })), paddingInline: bt((e, t) => ({ paddingInlineStart: e, paddingInlineEnd: t || e })) }, _n = /([\d.]+)([^]*)/, go = (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, ho = (e, t) => e in yo && typeof t == "string" ? t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/, (i, n, r, a) => n + (r === "stretch" ? `-moz-available${a};${Kn(e)}:${n}-webkit-fill-available` : `-moz-fit-content${a};${Kn(e)}:${n}fit-content`) + a) : String(t), yo = { blockSize: 1, height: 1, inlineSize: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, width: 1 },
|
734
|
+
}, { hasOwnProperty: xo } = Object.prototype, Kn = (e) => e.includes("-") ? e : e.replace(/[A-Z]/g, (t) => "-" + t.toLowerCase()), vo = /\s+(?![^()]*\))/, bt = (e) => (t) => e(...typeof t == "string" ? String(t).split(vo) : [t]), Bi = { 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: bt((e, t) => ({ marginBlockStart: e, marginBlockEnd: t || e })), marginInline: bt((e, t) => ({ marginInlineStart: e, marginInlineEnd: t || e })), maxSize: bt((e, t) => ({ maxBlockSize: e, maxInlineSize: t || e })), minSize: bt((e, t) => ({ minBlockSize: e, minInlineSize: t || e })), paddingBlock: bt((e, t) => ({ paddingBlockStart: e, paddingBlockEnd: t || e })), paddingInline: bt((e, t) => ({ paddingInlineStart: e, paddingInlineEnd: t || e })) }, _n = /([\d.]+)([^]*)/, go = (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, ho = (e, t) => e in yo && typeof t == "string" ? t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/, (i, n, r, a) => n + (r === "stretch" ? `-moz-available${a};${Kn(e)}:${n}-webkit-fill-available` : `-moz-fit-content${a};${Kn(e)}:${n}fit-content`) + a) : String(t), yo = { blockSize: 1, height: 1, inlineSize: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, width: 1 }, tt = (e) => e ? e + "-" : "", qr = (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 === "$" ? tt(t) + (s.includes("$") ? "" : tt(i)) + s.replace(/\$/g, "-") : s) + ")" + (r || o == "--" ? "*" + (r || "") + (a || "1") + ")" : "")), bo = /\s*,\s*(?![^()]*\))/, wo = Object.prototype.toString, wt = (e, t, i, n, r) => {
|
735
735
|
let a, o, s;
|
736
736
|
const c = (p, l, u) => {
|
737
737
|
let f, x;
|
@@ -753,13 +753,13 @@ var ae = uo(), he = "colors", Ie = "sizes", I = "space", fo = { gap: I, gridGap:
|
|
753
753
|
continue;
|
754
754
|
}
|
755
755
|
}
|
756
|
-
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, (O, B, A, H, G,
|
757
|
-
const
|
758
|
-
return "(" + (A[0] === "=" ? "" : A[0] === ">" ===
|
756
|
+
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, (O, B, A, H, G, ie) => {
|
757
|
+
const re = _n.test(B), X = 0.0625 * (re ? -1 : 1), [q, le] = re ? [H, B] : [B, H];
|
758
|
+
return "(" + (A[0] === "=" ? "" : A[0] === ">" === re ? "max-" : "min-") + q + ":" + (A[0] !== "=" && A.length === 1 ? le.replace(_n, (me, ye, se) => Number(ye) + X * (A === ">" ? 1 : -1) + se) : le) + (G ? ") and (" + (G[0] === ">" ? "min-" : "max-") + q + ":" + (G.length === 1 ? ie.replace(_n, (me, ye, se) => Number(ye) + X * (G === ">" ? -1 : 1) + se) : ie) : "") + ")";
|
759
759
|
})), v) {
|
760
760
|
const O = k ? u.concat(f) : [...u], B = k ? [...l] : go(l, f.split(bo));
|
761
761
|
a !== void 0 && r(Li(...a)), a = void 0, c(x, B, O);
|
762
|
-
} else a === void 0 && (a = [[], l, u]), f = k || f.charCodeAt(0) !== 36 ? f : `--${
|
762
|
+
} else a === void 0 && (a = [[], l, u]), f = k || f.charCodeAt(0) !== 36 ? f : `--${tt(n.prefix)}${f.slice(1).replace(/\$/g, "-")}`, x = v ? x : typeof x == "number" ? x && T in Eo ? String(x) + "px" : String(x) : qr(ho(T, x ?? ""), n.prefix, n.themeMap[T]), a[0].push(`${k ? `${f} ` : `${Kn(f)}:`}${x}`);
|
763
763
|
}
|
764
764
|
}
|
765
765
|
var w, m;
|
@@ -767,7 +767,7 @@ var ae = uo(), he = "colors", Ie = "sizes", I = "space", fo = { gap: I, gridGap:
|
|
767
767
|
h(p), a !== void 0 && r(Li(...a)), a = void 0;
|
768
768
|
};
|
769
769
|
c(e, t, i);
|
770
|
-
}, Li = (e, t, i) => `${i.map((n) => `${n}{`).join("")}${t.length ? `${t.join(",")}{` : ""}${e.join(";")}${t.length ? "}" : ""}${Array(i.length ? i.length + 1 : 0).join("}")}`, Eo = { 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 }, zi = (e) => String.fromCharCode(e + (e > 25 ? 39 : 97)),
|
770
|
+
}, Li = (e, t, i) => `${i.map((n) => `${n}{`).join("")}${t.length ? `${t.join(",")}{` : ""}${e.join(";")}${t.length ? "}" : ""}${Array(i.length ? i.length + 1 : 0).join("}")}`, Eo = { 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 }, zi = (e) => String.fromCharCode(e + (e > 25 ? 39 : 97)), dt = (e) => ((t) => {
|
771
771
|
let i, n = "";
|
772
772
|
for (i = Math.abs(t); i > 52; i = i / 52 | 0) n = zi(i % 52) + n;
|
773
773
|
return zi(i % 52) + n;
|
@@ -851,13 +851,13 @@ var ae = uo(), he = "colors", Ie = "sizes", I = "space", fo = { gap: I, gridGap:
|
|
851
851
|
};
|
852
852
|
}, Lt = Symbol(), ko = Tt(), Mi = (e, t) => ko(e, () => (...i) => {
|
853
853
|
let n = { type: null, composers: /* @__PURE__ */ new Set() };
|
854
|
-
for (const r of i) if (r != null) if (r[
|
855
|
-
n.type == null && (n.type = r[
|
856
|
-
for (const a of r[
|
854
|
+
for (const r of i) if (r != null) if (r[ut]) {
|
855
|
+
n.type == null && (n.type = r[ut].type);
|
856
|
+
for (const a of r[ut].composers) n.composers.add(a);
|
857
857
|
} else r.constructor !== Object || r.$$typeof ? n.type == null && (n.type = r) : n.composers.add(Oo(r, e));
|
858
858
|
return n.type == null && (n.type = "span"), n.composers.size || n.composers.add(["PJLV", {}, [], [], {}, []]), _o(e, n, t);
|
859
859
|
}), Oo = ({ variants: e, compoundVariants: t, defaultVariants: i, ...n }, r) => {
|
860
|
-
const a = `${
|
860
|
+
const a = `${tt(r.prefix)}c-${dt(n)}`, o = [], s = [], c = /* @__PURE__ */ Object.create(null), p = [];
|
861
861
|
for (const f in i) c[f] = String(i[f]);
|
862
862
|
if (typeof e == "object" && e) for (const f in e) {
|
863
863
|
l = c, u = f, xo.call(l, u) || (c[f] = "undefined");
|
@@ -902,22 +902,22 @@ var ae = uo(), he = "colors", Ie = "sizes", I = "space", fo = { gap: I, gridGap:
|
|
902
902
|
}));
|
903
903
|
const v = $i(C, h, e.media), O = $i(T, h, e.media, !0);
|
904
904
|
for (const B of v) if (B !== void 0) for (const [A, H, G] of B) {
|
905
|
-
const
|
906
|
-
g.add(
|
907
|
-
const
|
908
|
-
|
905
|
+
const ie = `${m}-${dt(H)}-${A}`;
|
906
|
+
g.add(ie);
|
907
|
+
const re = (G ? i.rules.resonevar : i.rules.onevar).cache, X = G ? c.resonevar : c.onevar;
|
908
|
+
re.has(ie) || (re.add(ie), wt(H, [`.${ie}`], [], e, (q) => {
|
909
909
|
X.apply(q);
|
910
910
|
}));
|
911
911
|
}
|
912
912
|
for (const B of O) if (B !== void 0) for (const [A, H] of B) {
|
913
|
-
const G = `${m}-${
|
914
|
-
g.add(G), i.rules.allvar.cache.has(G) || (i.rules.allvar.cache.add(G), wt(H, [`.${G}`], [], e, (
|
915
|
-
c.allvar.apply(
|
913
|
+
const G = `${m}-${dt(H)}-${A}`;
|
914
|
+
g.add(G), i.rules.allvar.cache.has(G) || (i.rules.allvar.cache.add(G), wt(H, [`.${G}`], [], e, (ie) => {
|
915
|
+
c.allvar.apply(ie);
|
916
916
|
}));
|
917
917
|
}
|
918
918
|
}
|
919
919
|
if (typeof f == "object" && f) {
|
920
|
-
const m = `${n}-i${
|
920
|
+
const m = `${n}-i${dt(f)}-css`;
|
921
921
|
g.add(m), i.rules.inline.cache.has(m) || (i.rules.inline.cache.add(m), wt(f, [`.${m}`], [], e, (k) => {
|
922
922
|
c.inline.apply(k);
|
923
923
|
}));
|
@@ -926,7 +926,7 @@ var ae = uo(), he = "colors", Ie = "sizes", I = "space", fo = { gap: I, gridGap:
|
|
926
926
|
const w = x.className = [...g].join(" ");
|
927
927
|
return { type: t.type, className: w, selector: p, props: x, toString: () => w, deferredInjector: s };
|
928
928
|
};
|
929
|
-
return di(l, { className: n, selector: p, [
|
929
|
+
return di(l, { className: n, selector: p, [ut]: t, toString: () => (i.rules.styled.cache.has(n) || l(), n) });
|
930
930
|
}, Co = (e) => {
|
931
931
|
let t = "";
|
932
932
|
const i = [], n = {}, r = [];
|
@@ -971,7 +971,7 @@ var ae = uo(), he = "colors", Ie = "sizes", I = "space", fo = { gap: I, gridGap:
|
|
971
971
|
const n = () => {
|
972
972
|
for (let r of i) {
|
973
973
|
r = typeof r == "object" && r || {};
|
974
|
-
let a =
|
974
|
+
let a = dt(r);
|
975
975
|
if (!t.rules.global.cache.has(a)) {
|
976
976
|
if (t.rules.global.cache.add(a), "@import" in r) {
|
977
977
|
let o = [].indexOf.call(t.sheet.cssRules, t.rules.themed.group) - 1;
|
@@ -987,7 +987,7 @@ var ae = uo(), he = "colors", Ie = "sizes", I = "space", fo = { gap: I, gridGap:
|
|
987
987
|
};
|
988
988
|
return di(n, { toString: n });
|
989
989
|
}), Fo = Tt(), Po = (e, t) => Fo(e, () => (i) => {
|
990
|
-
const n = `${
|
990
|
+
const n = `${tt(e.prefix)}k-${dt(i)}`, r = () => {
|
991
991
|
if (!t.rules.global.cache.has(n)) {
|
992
992
|
t.rules.global.cache.add(n);
|
993
993
|
const a = [];
|
@@ -1008,18 +1008,18 @@ var ae = uo(), he = "colors", Ie = "sizes", I = "space", fo = { gap: I, gridGap:
|
|
1008
1008
|
return "var(" + this.variable + ")";
|
1009
1009
|
}
|
1010
1010
|
get variable() {
|
1011
|
-
return "--" +
|
1011
|
+
return "--" + tt(this.prefix) + tt(this.scale) + this.token;
|
1012
1012
|
}
|
1013
1013
|
toString() {
|
1014
1014
|
return this.computedValue;
|
1015
1015
|
}
|
1016
1016
|
}, Bo = Tt(), Lo = (e, t) => Bo(e, () => (i, n) => {
|
1017
1017
|
n = typeof i == "object" && i || Object(n);
|
1018
|
-
const r = `.${i = (i = typeof i == "string" ? i : "") || `${
|
1018
|
+
const r = `.${i = (i = typeof i == "string" ? i : "") || `${tt(e.prefix)}t-${dt(n)}`}`, a = {}, o = [];
|
1019
1019
|
for (const c in n) {
|
1020
1020
|
a[c] = {};
|
1021
1021
|
for (const p in n[c]) {
|
1022
|
-
const l = `--${
|
1022
|
+
const l = `--${tt(e.prefix)}${c}-${p}`, u = qr(String(n[c][p]), e.prefix, c);
|
1023
1023
|
a[c][p] = new Io(p, u, c, e.prefix), o.push(`${l}:${u}`);
|
1024
1024
|
}
|
1025
1025
|
}
|
@@ -1049,15 +1049,15 @@ var ae = uo(), he = "colors", Ie = "sizes", I = "space", fo = { gap: I, gridGap:
|
|
1049
1049
|
return t.styled = (({ config: i, sheet: n }) => Mo(i, () => {
|
1050
1050
|
const r = Mi(i, n);
|
1051
1051
|
return (...a) => {
|
1052
|
-
const o = r(...a), s = o[
|
1052
|
+
const o = r(...a), s = o[ut].type, c = ce.forwardRef((p, l) => {
|
1053
1053
|
const u = p && p.as || s, { props: f, deferredInjector: x } = o(p);
|
1054
1054
|
return delete f.as, f.ref = l, x ? ce.createElement(ce.Fragment, null, ce.createElement(u, f), ce.createElement(x, null)) : ce.createElement(u, f);
|
1055
1055
|
});
|
1056
|
-
return c.className = o.className, c.displayName = `Styled.${s.displayName || s.name || s}`, c.selector = o.selector, c.toString = () => o.selector, c[
|
1056
|
+
return c.className = o.className, c.displayName = `Styled.${s.displayName || s.name || s}`, c.selector = o.selector, c.toString = () => o.selector, c[ut] = o[ut], c;
|
1057
1057
|
};
|
1058
1058
|
}))(t), t;
|
1059
1059
|
}, Wr = () => Ni || (Ni = $o()), No = (...e) => Wr().keyframes(...e), qe = (...e) => Wr().styled(...e);
|
1060
|
-
const
|
1060
|
+
const et = qe("div", {
|
1061
1061
|
variants: {
|
1062
1062
|
width: {
|
1063
1063
|
full: { width: "100%" },
|
@@ -1399,14 +1399,14 @@ const xt = qe("div", {
|
|
1399
1399
|
}
|
1400
1400
|
}
|
1401
1401
|
});
|
1402
|
-
var zt = {}, Xt = {},
|
1402
|
+
var zt = {}, Xt = {}, st = {}, qi;
|
1403
1403
|
function Ur() {
|
1404
|
-
if (qi) return
|
1405
|
-
qi = 1, Object.defineProperty(
|
1404
|
+
if (qi) return st;
|
1405
|
+
qi = 1, Object.defineProperty(st, "__esModule", { value: !0 }), st.fromHex = st.toHex = void 0;
|
1406
1406
|
const e = (n) => new Number(n).toString(16).toLowerCase(), t = (n) => `0x${e(n).length === 1 ? "0" + e(n) : e(n)}`;
|
1407
|
-
|
1407
|
+
st.toHex = t;
|
1408
1408
|
const i = (n) => new Number(n);
|
1409
|
-
return
|
1409
|
+
return st.fromHex = i, st;
|
1410
1410
|
}
|
1411
1411
|
var Cn = {}, Wi;
|
1412
1412
|
function qo() {
|
@@ -2554,7 +2554,7 @@ function Go() {
|
|
2554
2554
|
}
|
2555
2555
|
}
|
2556
2556
|
}
|
2557
|
-
var v = c, O = p, B = s, A = o, H = t, G = l,
|
2557
|
+
var v = c, O = p, B = s, A = o, H = t, G = l, ie = n, re = h, X = x, q = i, le = a, me = r, ye = u, se = !1;
|
2558
2558
|
function ve(b) {
|
2559
2559
|
return se || (se = !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(b) || T(b) === c;
|
2560
2560
|
}
|
@@ -2594,7 +2594,7 @@ function Go() {
|
|
2594
2594
|
function be(b) {
|
2595
2595
|
return T(b) === u;
|
2596
2596
|
}
|
2597
|
-
fe.AsyncMode = v, fe.ConcurrentMode = O, fe.ContextConsumer = B, fe.ContextProvider = A, fe.Element = H, fe.ForwardRef = G, fe.Fragment =
|
2597
|
+
fe.AsyncMode = v, fe.ConcurrentMode = O, fe.ContextConsumer = B, fe.ContextProvider = A, fe.Element = H, fe.ForwardRef = G, fe.Fragment = ie, fe.Lazy = re, fe.Memo = X, fe.Portal = q, fe.Profiler = le, fe.StrictMode = me, fe.Suspense = ye, fe.isAsyncMode = ve, fe.isConcurrentMode = S, fe.isContextConsumer = _, fe.isContextProvider = L, fe.isElement = N, fe.isForwardRef = M, fe.isFragment = Y, fe.isLazy = z, fe.isMemo = F, fe.isPortal = U, fe.isProfiler = K, fe.isStrictMode = $, fe.isSuspense = be, fe.isValidElementType = C, fe.typeOf = T;
|
2598
2598
|
}()), fe;
|
2599
2599
|
}
|
2600
2600
|
var Yi;
|
@@ -2754,7 +2754,7 @@ function Jo() {
|
|
2754
2754
|
objectOf: A,
|
2755
2755
|
oneOf: B,
|
2756
2756
|
oneOfType: H,
|
2757
|
-
shape:
|
2757
|
+
shape: re,
|
2758
2758
|
exact: X
|
2759
2759
|
};
|
2760
2760
|
function h(S, _) {
|
@@ -2916,12 +2916,12 @@ function Jo() {
|
|
2916
2916
|
}
|
2917
2917
|
return w(S);
|
2918
2918
|
}
|
2919
|
-
function
|
2919
|
+
function ie(S, _, L, N, M) {
|
2920
2920
|
return new g(
|
2921
2921
|
(S || "React class") + ": " + _ + " type `" + L + "." + N + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + M + "`."
|
2922
2922
|
);
|
2923
2923
|
}
|
2924
|
-
function
|
2924
|
+
function re(S) {
|
2925
2925
|
function _(L, N, M, Y, z) {
|
2926
2926
|
var F = L[N], U = me(F);
|
2927
2927
|
if (U !== "object")
|
@@ -2929,7 +2929,7 @@ function Jo() {
|
|
2929
2929
|
for (var K in S) {
|
2930
2930
|
var $ = S[K];
|
2931
2931
|
if (typeof $ != "function")
|
2932
|
-
return
|
2932
|
+
return ie(M, Y, z, K, ye($));
|
2933
2933
|
var be = $(F, K, M, Y, z + "." + K, i);
|
2934
2934
|
if (be)
|
2935
2935
|
return be;
|
@@ -2947,7 +2947,7 @@ function Jo() {
|
|
2947
2947
|
for (var $ in K) {
|
2948
2948
|
var be = S[$];
|
2949
2949
|
if (n(S, $) && typeof be != "function")
|
2950
|
-
return
|
2950
|
+
return ie(M, Y, z, $, ye(be));
|
2951
2951
|
if (!be)
|
2952
2952
|
return new g(
|
2953
2953
|
"Invalid " + Y + " `" + z + "` key `" + $ + "` supplied to `" + M + "`.\nBad object: " + JSON.stringify(L[N], null, " ") + `
|
@@ -4595,17 +4595,17 @@ function Xr(e, t) {
|
|
4595
4595
|
return [i, i ? null : Ts(t)];
|
4596
4596
|
}
|
4597
4597
|
function Zr(e, t, i) {
|
4598
|
-
if (
|
4599
|
-
if (
|
4598
|
+
if (lt(e.size))
|
4599
|
+
if (lt(t) && lt(i)) {
|
4600
4600
|
if (e.size > i) return [!1, lr(i)];
|
4601
4601
|
if (e.size < t) return [!1, pr(t)];
|
4602
4602
|
} else {
|
4603
|
-
if (
|
4604
|
-
if (
|
4603
|
+
if (lt(t) && e.size < t) return [!1, pr(t)];
|
4604
|
+
if (lt(i) && e.size > i) return [!1, lr(i)];
|
4605
4605
|
}
|
4606
4606
|
return [!0, null];
|
4607
4607
|
}
|
4608
|
-
function
|
4608
|
+
function lt(e) {
|
4609
4609
|
return e != null;
|
4610
4610
|
}
|
4611
4611
|
function Os(e) {
|
@@ -4651,7 +4651,7 @@ function js() {
|
|
4651
4651
|
return "showOpenFilePicker" in window;
|
4652
4652
|
}
|
4653
4653
|
function Ds(e) {
|
4654
|
-
if (
|
4654
|
+
if (lt(e)) {
|
4655
4655
|
var t = Object.entries(e).filter(function(i) {
|
4656
4656
|
var n = Nt(i, 2), r = n[0], a = n[1], o = !0;
|
4657
4657
|
return Qr(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(ea)) && (console.warn('Skipped "'.concat(r, '" because an invalid file extension was provided.')), o = !1), o;
|
@@ -4668,7 +4668,7 @@ function Ds(e) {
|
|
4668
4668
|
return e;
|
4669
4669
|
}
|
4670
4670
|
function Fs(e) {
|
4671
|
-
if (
|
4671
|
+
if (lt(e))
|
4672
4672
|
return Object.entries(e).reduce(function(t, i) {
|
4673
4673
|
var n = Nt(i, 2), r = n[0], a = n[1];
|
4674
4674
|
return [].concat(or(t), [r], or(a));
|
@@ -4992,13 +4992,13 @@ var ei = {
|
|
4992
4992
|
fileRejections: []
|
4993
4993
|
};
|
4994
4994
|
function ia() {
|
4995
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = Oe(Oe({}, na), e), i = t.accept, n = t.disabled, r = t.getFilesFromEvent, a = t.maxSize, o = t.minSize, s = t.multiple, c = t.maxFiles, p = t.onDragEnter, l = t.onDragLeave, u = t.onDragOver, f = t.onDrop, x = t.onDropAccepted, h = t.onDropRejected, g = t.onFileDialogCancel, w = t.onFileDialogOpen, m = t.useFsAccessApi, k = t.autoFocus, C = t.preventDropOnDocument, T = t.noClick, v = t.noKeyboard, O = t.noDrag, B = t.noDragEventsBubbling, A = t.onError, H = t.validator, G =
|
4995
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = Oe(Oe({}, na), e), i = t.accept, n = t.disabled, r = t.getFilesFromEvent, a = t.maxSize, o = t.minSize, s = t.multiple, c = t.maxFiles, p = t.onDragEnter, l = t.onDragLeave, u = t.onDragOver, f = t.onDrop, x = t.onDropAccepted, h = t.onDropRejected, g = t.onFileDialogCancel, w = t.onFileDialogOpen, m = t.useFsAccessApi, k = t.autoFocus, C = t.preventDropOnDocument, T = t.noClick, v = t.noKeyboard, O = t.noDrag, B = t.noDragEventsBubbling, A = t.onError, H = t.validator, G = Qe(function() {
|
4996
4996
|
return Fs(i);
|
4997
|
-
}, [i]),
|
4997
|
+
}, [i]), ie = Qe(function() {
|
4998
4998
|
return Ds(i);
|
4999
|
-
}, [i]),
|
4999
|
+
}, [i]), re = Qe(function() {
|
5000
5000
|
return typeof w == "function" ? w : fr;
|
5001
|
-
}, [w]), X =
|
5001
|
+
}, [w]), X = Qe(function() {
|
5002
5002
|
return typeof g == "function" ? g : fr;
|
5003
5003
|
}, [g]), q = Se(null), le = Se(null), me = no(Ys, ei), ye = Ln(me, 2), se = ye[0], ve = ye[1], S = se.isFocused, _ = se.isFileDialogActive, L = Se(typeof window < "u" && window.isSecureContext && m && js()), N = function() {
|
5004
5004
|
!L.current && _ && setTimeout(function() {
|
@@ -5073,8 +5073,8 @@ function ia() {
|
|
5073
5073
|
}, [q, l, B]), $ = Ce(function(E, j) {
|
5074
5074
|
var pe = [], ge = [];
|
5075
5075
|
E.forEach(function(ke) {
|
5076
|
-
var
|
5077
|
-
if (
|
5076
|
+
var nt = Xr(ke, G), Xe = Ln(nt, 2), ot = Xe[0], _t = Xe[1], Ct = Zr(ke, o, a), gt = Ln(Ct, 2), At = gt[0], jt = gt[1], Dt = H ? H(ke) : null;
|
5077
|
+
if (ot && At && !Dt)
|
5078
5078
|
pe.push(ke);
|
5079
5079
|
else {
|
5080
5080
|
var Ft = [_t, jt];
|
@@ -5108,10 +5108,10 @@ function ia() {
|
|
5108
5108
|
if (L.current) {
|
5109
5109
|
ve({
|
5110
5110
|
type: "openDialog"
|
5111
|
-
}),
|
5111
|
+
}), re();
|
5112
5112
|
var E = {
|
5113
5113
|
multiple: s,
|
5114
|
-
types:
|
5114
|
+
types: ie
|
5115
5115
|
};
|
5116
5116
|
window.showOpenFilePicker(E).then(function(j) {
|
5117
5117
|
return r(j);
|
@@ -5128,8 +5128,8 @@ function ia() {
|
|
5128
5128
|
}
|
5129
5129
|
le.current && (ve({
|
5130
5130
|
type: "openDialog"
|
5131
|
-
}),
|
5132
|
-
}, [ve,
|
5131
|
+
}), re(), le.current.value = null, le.current.click());
|
5132
|
+
}, [ve, re, X, m, $, z, ie, s]), P = Ce(function(E) {
|
5133
5133
|
!q.current || !q.current.isEqualNode(E.target) || (E.key === " " || E.key === "Enter" || E.keyCode === 32 || E.keyCode === 13) && (E.preventDefault(), b());
|
5134
5134
|
}, [q, b]), Z = Ce(function() {
|
5135
5135
|
ve({
|
@@ -5149,14 +5149,14 @@ function ia() {
|
|
5149
5149
|
return O ? null : Te(j);
|
5150
5150
|
}, Re = function(j) {
|
5151
5151
|
B && j.stopPropagation();
|
5152
|
-
},
|
5152
|
+
}, Ke = Qe(function() {
|
5153
5153
|
return function() {
|
5154
|
-
var E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, j = E.refKey, pe = j === void 0 ? "ref" : j, ge = E.role, ke = E.onKeyDown,
|
5154
|
+
var E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, j = E.refKey, pe = j === void 0 ? "ref" : j, ge = E.role, ke = E.onKeyDown, nt = E.onFocus, Xe = E.onBlur, ot = E.onClick, _t = E.onDragEnter, Ct = E.onDragOver, gt = E.onDragLeave, At = E.onDrop, jt = mn(E, zs);
|
5155
5155
|
return Oe(Oe(Qn({
|
5156
5156
|
onKeyDown: Q(Ue(ke, P)),
|
5157
|
-
onFocus: Q(Ue(
|
5158
|
-
onBlur: Q(Ue(
|
5159
|
-
onClick: Te(Ue(
|
5157
|
+
onFocus: Q(Ue(nt, Z)),
|
5158
|
+
onBlur: Q(Ue(Xe, W)),
|
5159
|
+
onClick: Te(Ue(ot, xe)),
|
5160
5160
|
onDragEnter: te(Ue(_t, F)),
|
5161
5161
|
onDragOver: te(Ue(Ct, U)),
|
5162
5162
|
onDragLeave: te(Ue(gt, K)),
|
@@ -5168,9 +5168,9 @@ function ia() {
|
|
5168
5168
|
};
|
5169
5169
|
}, [q, P, Z, W, xe, F, U, K, be, v, O, n]), Ne = Ce(function(E) {
|
5170
5170
|
E.stopPropagation();
|
5171
|
-
}, []),
|
5171
|
+
}, []), Je = Qe(function() {
|
5172
5172
|
return function() {
|
5173
|
-
var E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, j = E.refKey, pe = j === void 0 ? "ref" : j, ge = E.onChange, ke = E.onClick,
|
5173
|
+
var E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, j = E.refKey, pe = j === void 0 ? "ref" : j, ge = E.onChange, ke = E.onClick, nt = mn(E, Ms), Xe = Qn({
|
5174
5174
|
accept: G,
|
5175
5175
|
multiple: s,
|
5176
5176
|
type: "file",
|
@@ -5190,13 +5190,13 @@ function ia() {
|
|
5190
5190
|
onClick: Te(Ue(ke, Ne)),
|
5191
5191
|
tabIndex: -1
|
5192
5192
|
}, pe, le);
|
5193
|
-
return Oe(Oe({},
|
5193
|
+
return Oe(Oe({}, Xe), nt);
|
5194
5194
|
};
|
5195
5195
|
}, [le, i, s, be, n]);
|
5196
5196
|
return Oe(Oe({}, se), {}, {
|
5197
5197
|
isFocused: S && !n,
|
5198
|
-
getRootProps:
|
5199
|
-
getInputProps:
|
5198
|
+
getRootProps: Ke,
|
5199
|
+
getInputProps: Je,
|
5200
5200
|
rootRef: q,
|
5201
5201
|
inputRef: le,
|
5202
5202
|
open: Te(b)
|
@@ -5376,7 +5376,7 @@ const oc = (e) => ({
|
|
5376
5376
|
}), error: o, ...e };
|
5377
5377
|
}, aa = ce.createContext(
|
5378
5378
|
{}
|
5379
|
-
), lu = () => ce.useContext(aa), cc = qe(
|
5379
|
+
), lu = () => ce.useContext(aa), cc = qe(et, {
|
5380
5380
|
position: "relative",
|
5381
5381
|
display: "flex",
|
5382
5382
|
flexDirection: "column",
|
@@ -5397,11 +5397,11 @@ const oc = (e) => ({
|
|
5397
5397
|
onError: l,
|
5398
5398
|
...u
|
5399
5399
|
} = t;
|
5400
|
-
return /* @__PURE__ */
|
5401
|
-
/* @__PURE__ */
|
5400
|
+
return /* @__PURE__ */ ne.jsx(aa.Provider, { value: i, children: /* @__PURE__ */ ne.jsxs(cc, { ...u, ...i.dropzone.getRootProps(), children: [
|
5401
|
+
/* @__PURE__ */ ne.jsx("input", { ...i.dropzone.getInputProps() }),
|
5402
5402
|
e
|
5403
5403
|
] }) });
|
5404
|
-
}, pc = qe(
|
5404
|
+
}, pc = qe(et, {
|
5405
5405
|
width: "100%",
|
5406
5406
|
height: "100%",
|
5407
5407
|
display: "flex",
|
@@ -5411,23 +5411,23 @@ const oc = (e) => ({
|
|
5411
5411
|
flexDirection: "column",
|
5412
5412
|
alignItems: "stretch",
|
5413
5413
|
justifyContent: "center"
|
5414
|
-
}), uc = qe(
|
5414
|
+
}), uc = qe(et, {
|
5415
5415
|
paddingTop: "32px",
|
5416
5416
|
display: "flex",
|
5417
5417
|
justifyContent: "center"
|
5418
|
-
}), dc = qe(
|
5418
|
+
}), dc = qe(et, {
|
5419
5419
|
flex: 1,
|
5420
5420
|
gap: "16px",
|
5421
5421
|
display: "flex",
|
5422
5422
|
alignItems: "center",
|
5423
5423
|
justifyContent: "center",
|
5424
5424
|
padding: "16px"
|
5425
|
-
}), fc = qe(
|
5425
|
+
}), fc = qe(et, {
|
5426
5426
|
flexWrap: "wrap",
|
5427
5427
|
borderTop: "1px solid #ffffff10",
|
5428
5428
|
display: "flex",
|
5429
5429
|
alignItems: "stretch"
|
5430
|
-
}), mc = qe(
|
5430
|
+
}), mc = qe(et, {
|
5431
5431
|
height: "252px",
|
5432
5432
|
width: "222px",
|
5433
5433
|
borderRadius: "8px",
|
@@ -5494,7 +5494,7 @@ function la(e, t) {
|
|
5494
5494
|
return r;
|
5495
5495
|
return null;
|
5496
5496
|
}
|
5497
|
-
const
|
5497
|
+
const pt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, pa = (e) => !qt(e) && e !== pt;
|
5498
5498
|
function ti() {
|
5499
5499
|
const { caseless: e } = pa(this) && this || {}, t = {}, i = (n, r) => {
|
5500
5500
|
const a = e && la(t, r) || r;
|
@@ -5611,14 +5611,14 @@ const Jc = (e) => {
|
|
5611
5611
|
return n;
|
5612
5612
|
};
|
5613
5613
|
return i(e, 0);
|
5614
|
-
}, Xc = We("AsyncFunction"), Zc = (e) => e && (bn(e) || Le(e)) && Le(e.then) && Le(e.catch), fa = ((e, t) => e ? setImmediate : t ? ((i, n) => (
|
5615
|
-
r ===
|
5614
|
+
}, Xc = We("AsyncFunction"), Zc = (e) => e && (bn(e) || Le(e)) && Le(e.then) && Le(e.catch), fa = ((e, t) => e ? setImmediate : t ? ((i, n) => (pt.addEventListener("message", ({ source: r, data: a }) => {
|
5615
|
+
r === pt && a === i && n.length && n.shift()();
|
5616
5616
|
}, !1), (r) => {
|
5617
|
-
n.push(r),
|
5617
|
+
n.push(r), pt.postMessage(i, "*");
|
5618
5618
|
}))(`axios@${Math.random()}`, []) : (i) => setTimeout(i))(
|
5619
5619
|
typeof setImmediate == "function",
|
5620
|
-
Le(
|
5621
|
-
), Qc = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
5620
|
+
Le(pt.postMessage)
|
5621
|
+
), Qc = typeof queueMicrotask < "u" ? queueMicrotask.bind(pt) : typeof process < "u" && process.nextTick || fa, y = {
|
5622
5622
|
isArray: kt,
|
5623
5623
|
isArrayBuffer: sa,
|
5624
5624
|
isBuffer: vc,
|
@@ -5667,7 +5667,7 @@ const Jc = (e) => {
|
|
5667
5667
|
noop: Hc,
|
5668
5668
|
toFiniteNumber: Gc,
|
5669
5669
|
findKey: la,
|
5670
|
-
global:
|
5670
|
+
global: pt,
|
5671
5671
|
isContextDefined: pa,
|
5672
5672
|
ALPHABET: da,
|
5673
5673
|
generateString: Yc,
|
@@ -6362,7 +6362,7 @@ function Sa(e, t) {
|
|
6362
6362
|
return e && !Ol(t) ? _l(e, t) : t;
|
6363
6363
|
}
|
6364
6364
|
const Sr = (e) => e instanceof Be ? { ...e } : e;
|
6365
|
-
function
|
6365
|
+
function mt(e, t) {
|
6366
6366
|
t = t || {};
|
6367
6367
|
const i = {};
|
6368
6368
|
function n(p, l, u, f) {
|
@@ -6427,7 +6427,7 @@ function ft(e, t) {
|
|
6427
6427
|
}), i;
|
6428
6428
|
}
|
6429
6429
|
const Ra = (e) => {
|
6430
|
-
const t =
|
6430
|
+
const t = mt({}, e);
|
6431
6431
|
let { data: i, withXSRFToken: n, xsrfHeaderName: r, xsrfCookieName: a, headers: o, auth: s } = t;
|
6432
6432
|
t.headers = o = Be.from(o), t.url = ha(Sa(t.baseURL, t.url), e.params, e.paramsSerializer), s && o.set(
|
6433
6433
|
"Authorization",
|
@@ -6828,7 +6828,7 @@ const pn = {
|
|
6828
6828
|
assertOptions: Nl,
|
6829
6829
|
validators: Sn
|
6830
6830
|
}, Ve = pn.validators;
|
6831
|
-
class
|
6831
|
+
class ft {
|
6832
6832
|
constructor(t) {
|
6833
6833
|
this.defaults = t, this.interceptors = {
|
6834
6834
|
request: new yr(),
|
@@ -6861,7 +6861,7 @@ class dt {
|
|
6861
6861
|
}
|
6862
6862
|
}
|
6863
6863
|
_request(t, i) {
|
6864
|
-
typeof t == "string" ? (i = i || {}, i.url = t) : i = t || {}, i =
|
6864
|
+
typeof t == "string" ? (i = i || {}, i.url = t) : i = t || {}, i = mt(this.defaults, i);
|
6865
6865
|
const { transitional: n, paramsSerializer: r, headers: a } = i;
|
6866
6866
|
n !== void 0 && pn.assertOptions(n, {
|
6867
6867
|
silentJSONParsing: Ve.transitional(Ve.boolean),
|
@@ -6923,14 +6923,14 @@ class dt {
|
|
6923
6923
|
return l;
|
6924
6924
|
}
|
6925
6925
|
getUri(t) {
|
6926
|
-
t =
|
6926
|
+
t = mt(this.defaults, t);
|
6927
6927
|
const i = Sa(t.baseURL, t.url);
|
6928
6928
|
return ha(i, t.params, t.paramsSerializer);
|
6929
6929
|
}
|
6930
6930
|
}
|
6931
6931
|
y.forEach(["delete", "get", "head", "options"], function(t) {
|
6932
|
-
|
6933
|
-
return this.request(
|
6932
|
+
ft.prototype[t] = function(i, n) {
|
6933
|
+
return this.request(mt(n || {}, {
|
6934
6934
|
method: t,
|
6935
6935
|
url: i,
|
6936
6936
|
data: (n || {}).data
|
@@ -6940,7 +6940,7 @@ y.forEach(["delete", "get", "head", "options"], function(t) {
|
|
6940
6940
|
y.forEach(["post", "put", "patch"], function(t) {
|
6941
6941
|
function i(n) {
|
6942
6942
|
return function(a, o, s) {
|
6943
|
-
return this.request(
|
6943
|
+
return this.request(mt(s || {}, {
|
6944
6944
|
method: t,
|
6945
6945
|
headers: n ? {
|
6946
6946
|
"Content-Type": "multipart/form-data"
|
@@ -6950,7 +6950,7 @@ y.forEach(["post", "put", "patch"], function(t) {
|
|
6950
6950
|
}));
|
6951
6951
|
};
|
6952
6952
|
}
|
6953
|
-
|
6953
|
+
ft.prototype[t] = i(), ft.prototype[t + "Form"] = i(!0);
|
6954
6954
|
});
|
6955
6955
|
class hi {
|
6956
6956
|
constructor(t) {
|
@@ -7102,13 +7102,13 @@ Object.entries(oi).forEach(([e, t]) => {
|
|
7102
7102
|
oi[t] = e;
|
7103
7103
|
});
|
7104
7104
|
function Ca(e) {
|
7105
|
-
const t = new
|
7106
|
-
return y.extend(i,
|
7107
|
-
return Ca(
|
7105
|
+
const t = new ft(e), i = oa(ft.prototype.request, t);
|
7106
|
+
return y.extend(i, ft.prototype, t, { allOwnKeys: !0 }), y.extend(i, t, null, { allOwnKeys: !0 }), i.create = function(r) {
|
7107
|
+
return Ca(mt(e, r));
|
7108
7108
|
}, i;
|
7109
7109
|
}
|
7110
7110
|
const De = Ca(Ht);
|
7111
|
-
De.Axios =
|
7111
|
+
De.Axios = ft;
|
7112
7112
|
De.CanceledError = Ot;
|
7113
7113
|
De.CancelToken = hi;
|
7114
7114
|
De.isCancel = wa;
|
@@ -7121,7 +7121,7 @@ De.all = function(t) {
|
|
7121
7121
|
};
|
7122
7122
|
De.spread = ql;
|
7123
7123
|
De.isAxiosError = Wl;
|
7124
|
-
De.mergeConfig =
|
7124
|
+
De.mergeConfig = mt;
|
7125
7125
|
De.AxiosHeaders = Be;
|
7126
7126
|
De.formToJSON = (e) => ba(y.isHTMLForm(e) ? new FormData(e) : e);
|
7127
7127
|
De.getAdapter = Oa.getAdapter;
|
@@ -7229,12 +7229,12 @@ function Vl() {
|
|
7229
7229
|
x(H) && G({
|
7230
7230
|
inst: H
|
7231
7231
|
});
|
7232
|
-
var
|
7232
|
+
var ie = function() {
|
7233
7233
|
x(H) && G({
|
7234
7234
|
inst: H
|
7235
7235
|
});
|
7236
7236
|
};
|
7237
|
-
return C(
|
7237
|
+
return C(ie);
|
7238
7238
|
}, [C]), p(O), O;
|
7239
7239
|
}
|
7240
7240
|
function x(C) {
|
@@ -7258,10 +7258,10 @@ function Hl() {
|
|
7258
7258
|
return jr || (jr = 1, process.env.NODE_ENV === "production" ? nn.exports = Ul() : nn.exports = Vl()), nn.exports;
|
7259
7259
|
}
|
7260
7260
|
var Aa = Hl();
|
7261
|
-
const
|
7261
|
+
const it = () => {
|
7262
7262
|
}, je = (
|
7263
7263
|
/*#__NOINLINE__*/
|
7264
|
-
|
7264
|
+
it()
|
7265
7265
|
), Un = Object, V = (e) => e === je, Me = (e) => typeof e == "function", $e = (e, t) => ({
|
7266
7266
|
...e,
|
7267
7267
|
...t
|
@@ -7287,8 +7287,8 @@ const Wt = (e) => {
|
|
7287
7287
|
} else
|
7288
7288
|
r = n ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
|
7289
7289
|
return r;
|
7290
|
-
},
|
7291
|
-
const i =
|
7290
|
+
}, Ge = /* @__PURE__ */ new WeakMap(), Vn = {}, an = {}, yi = "undefined", Rn = typeof window != yi, si = typeof document != yi, Kl = () => Rn && typeof window.requestAnimationFrame != yi, bi = (e, t) => {
|
7291
|
+
const i = Ge.get(e);
|
7292
7292
|
return [
|
7293
7293
|
// Getter
|
7294
7294
|
() => !V(t) && e.get(t) || Vn,
|
@@ -7310,8 +7310,8 @@ const Jl = () => ci, [li, pi] = Rn && window.addEventListener ? [
|
|
7310
7310
|
window.addEventListener.bind(window),
|
7311
7311
|
window.removeEventListener.bind(window)
|
7312
7312
|
] : [
|
7313
|
-
|
7314
|
-
|
7313
|
+
it,
|
7314
|
+
it
|
7315
7315
|
], Xl = () => {
|
7316
7316
|
const e = si && document.visibilityState;
|
7317
7317
|
return V(e) || e !== "hidden";
|
@@ -7332,7 +7332,7 @@ const Jl = () => ci, [li, pi] = Rn && window.addEventListener ? [
|
|
7332
7332
|
}, tp = {
|
7333
7333
|
initFocus: Zl,
|
7334
7334
|
initReconnect: Ql
|
7335
|
-
}, Ut = !ce.useId,
|
7335
|
+
}, Ut = !ce.useId, xt = !Rn || "Deno" in window, ja = (e) => Kl() ? window.requestAnimationFrame(e) : setTimeout(e, 1), rt = xt ? Et : zr, Hn = typeof navigator < "u" && navigator.connection, Dr = !xt && Hn && ([
|
7336
7336
|
"slow-2g",
|
7337
7337
|
"2g"
|
7338
7338
|
].includes(Hn.effectiveType) || Hn.saveData), Gt = (e) => {
|
@@ -7350,7 +7350,7 @@ const Jl = () => ci, [li, pi] = Rn && window.addEventListener ? [
|
|
7350
7350
|
};
|
7351
7351
|
let np = 0;
|
7352
7352
|
const Rt = () => ++np, Da = 0, Fa = 1, Pa = 2, ip = 3;
|
7353
|
-
var
|
7353
|
+
var Ye = {
|
7354
7354
|
__proto__: null,
|
7355
7355
|
ERROR_REVALIDATE_EVENT: ip,
|
7356
7356
|
FOCUS_EVENT: Da,
|
@@ -7379,7 +7379,7 @@ async function wi(...e) {
|
|
7379
7379
|
async function u(f) {
|
7380
7380
|
const [x] = Gt(f);
|
7381
7381
|
if (!x) return;
|
7382
|
-
const [h, g] = bi(t, x), [w, m, k, C] =
|
7382
|
+
const [h, g] = bi(t, x), [w, m, k, C] = Ge.get(t), T = () => {
|
7383
7383
|
const X = w[x];
|
7384
7384
|
return (Me(a.revalidate) ? a.revalidate(h().data, f) : a.revalidate !== !1) && (delete k[x], delete C[x], X && X[0]) ? X[0](Pa).then(() => h().data) : h().data;
|
7385
7385
|
};
|
@@ -7391,13 +7391,13 @@ async function wi(...e) {
|
|
7391
7391
|
B,
|
7392
7392
|
0
|
7393
7393
|
];
|
7394
|
-
const A = !V(c), H = h(), G = H.data,
|
7395
|
-
if (A && (c = Me(c) ? c(
|
7394
|
+
const A = !V(c), H = h(), G = H.data, ie = H._c, re = V(ie) ? G : ie;
|
7395
|
+
if (A && (c = Me(c) ? c(re, G) : c, g({
|
7396
7396
|
data: c,
|
7397
|
-
_c:
|
7397
|
+
_c: re
|
7398
7398
|
})), Me(v))
|
7399
7399
|
try {
|
7400
|
-
v = v(
|
7400
|
+
v = v(re);
|
7401
7401
|
} catch (X) {
|
7402
7402
|
O = X;
|
7403
7403
|
}
|
@@ -7408,12 +7408,12 @@ async function wi(...e) {
|
|
7408
7408
|
if (O) throw O;
|
7409
7409
|
return v;
|
7410
7410
|
} else O && A && p(O) && (o = !0, g({
|
7411
|
-
data:
|
7411
|
+
data: re,
|
7412
7412
|
_c: je
|
7413
7413
|
}));
|
7414
7414
|
if (o && !O)
|
7415
7415
|
if (Me(o)) {
|
7416
|
-
const X = o(v,
|
7416
|
+
const X = o(v, re);
|
7417
7417
|
g({
|
7418
7418
|
data: X,
|
7419
7419
|
error: je,
|
@@ -7440,9 +7440,9 @@ const Fr = (e, t) => {
|
|
7440
7440
|
for (const i in e)
|
7441
7441
|
e[i][0] && e[i][0](t);
|
7442
7442
|
}, rp = (e, t) => {
|
7443
|
-
if (!
|
7443
|
+
if (!Ge.has(e)) {
|
7444
7444
|
const i = $e(tp, t), n = {}, r = wi.bind(je, e);
|
7445
|
-
let a =
|
7445
|
+
let a = it;
|
7446
7446
|
const o = {}, s = (l, u) => {
|
7447
7447
|
const f = o[l] || [];
|
7448
7448
|
return o[l] = f, f.push(u), () => f.splice(f.indexOf(u), 1);
|
@@ -7453,7 +7453,7 @@ const Fr = (e, t) => {
|
|
7453
7453
|
for (const h of x)
|
7454
7454
|
h(u, f);
|
7455
7455
|
}, p = () => {
|
7456
|
-
if (!
|
7456
|
+
if (!Ge.has(e) && (Ge.set(e, [
|
7457
7457
|
n,
|
7458
7458
|
{},
|
7459
7459
|
{},
|
@@ -7461,10 +7461,10 @@ const Fr = (e, t) => {
|
|
7461
7461
|
r,
|
7462
7462
|
c,
|
7463
7463
|
s
|
7464
|
-
]), !
|
7464
|
+
]), !xt)) {
|
7465
7465
|
const l = i.initFocus(setTimeout.bind(je, Fr.bind(je, n, Da))), u = i.initReconnect(setTimeout.bind(je, Fr.bind(je, n, Fa)));
|
7466
7466
|
a = () => {
|
7467
|
-
l && l(), u && u(),
|
7467
|
+
l && l(), u && u(), Ge.delete(e);
|
7468
7468
|
};
|
7469
7469
|
}
|
7470
7470
|
};
|
@@ -7477,7 +7477,7 @@ const Fr = (e, t) => {
|
|
7477
7477
|
}
|
7478
7478
|
return [
|
7479
7479
|
e,
|
7480
|
-
|
7480
|
+
Ge.get(e)[4]
|
7481
7481
|
];
|
7482
7482
|
}, ap = (e, t, i, n, r) => {
|
7483
7483
|
const a = i.errorRetryCount, o = r.retryCount, s = ~~((Math.random() + 0.5) * (1 << (o < 8 ? o : 8))) * i.errorRetryInterval;
|
@@ -7485,11 +7485,11 @@ const Fr = (e, t) => {
|
|
7485
7485
|
}, op = (e, t) => Wt(e) == Wt(t), [Ia, sp] = rp(/* @__PURE__ */ new Map()), cp = $e(
|
7486
7486
|
{
|
7487
7487
|
// events
|
7488
|
-
onLoadingSlow:
|
7489
|
-
onSuccess:
|
7490
|
-
onError:
|
7488
|
+
onLoadingSlow: it,
|
7489
|
+
onSuccess: it,
|
7490
|
+
onError: it,
|
7491
7491
|
onErrorRetry: ap,
|
7492
|
-
onDiscarded:
|
7492
|
+
onDiscarded: it,
|
7493
7493
|
// switches
|
7494
7494
|
revalidateOnFocus: !0,
|
7495
7495
|
revalidateOnReconnect: !0,
|
@@ -7527,7 +7527,7 @@ const Fr = (e, t) => {
|
|
7527
7527
|
null,
|
7528
7528
|
(e[1] === null ? e[2] : e[1]) || {}
|
7529
7529
|
], za = () => $e(cp, ui(pp)), mp = (e) => (t, i, n) => e(t, i && ((...a) => {
|
7530
|
-
const [o] = Gt(t), [, , , s] =
|
7530
|
+
const [o] = Gt(t), [, , , s] = Ge.get(Ia);
|
7531
7531
|
if (o.startsWith(up))
|
7532
7532
|
return i(...a);
|
7533
7533
|
const c = s[o];
|
@@ -7566,7 +7566,7 @@ const Pr = ce.use || ((e) => {
|
|
7566
7566
|
}), Gn = {
|
7567
7567
|
dedupe: !0
|
7568
7568
|
}, gp = (e, t, i) => {
|
7569
|
-
const { cache: n, compare: r, suspense: a, fallbackData: o, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: l, refreshWhenOffline: u, keepPreviousData: f } = i, [x, h, g, w] =
|
7569
|
+
const { cache: n, compare: r, suspense: a, fallbackData: o, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: l, refreshWhenOffline: u, keepPreviousData: f } = i, [x, h, g, w] = Ge.get(n), [m, k] = Gt(e), C = Se(!1), T = Se(!1), v = Se(m), O = Se(t), B = Se(i), A = () => B.current, H = () => A().isVisible() && A().isOnline(), [G, ie, re, X] = bi(n, m), q = Se({}).current, le = V(o) ? i.fallback[m] : o, me = (b, P) => {
|
7570
7570
|
for (const Z in q) {
|
7571
7571
|
const W = Z;
|
7572
7572
|
if (W === "data") {
|
@@ -7576,7 +7576,7 @@ const Pr = ce.use || ((e) => {
|
|
7576
7576
|
return !1;
|
7577
7577
|
}
|
7578
7578
|
return !0;
|
7579
|
-
}, ye =
|
7579
|
+
}, ye = Qe(() => {
|
7580
7580
|
const b = !m || !t ? !1 : V(s) ? A().isPaused() || a ? !1 : V(c) ? !0 : c : s, P = (te) => {
|
7581
7581
|
const Re = $e(te);
|
7582
7582
|
return delete Re._k, b ? {
|
@@ -7597,7 +7597,7 @@ const Pr = ce.use || ((e) => {
|
|
7597
7597
|
n,
|
7598
7598
|
m
|
7599
7599
|
]), se = Aa.useSyncExternalStore(Ce(
|
7600
|
-
(b) =>
|
7600
|
+
(b) => re(m, (P, Z) => {
|
7601
7601
|
me(Z, P) || b();
|
7602
7602
|
}),
|
7603
7603
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
@@ -7614,17 +7614,17 @@ const Pr = ce.use || ((e) => {
|
|
7614
7614
|
const Te = b || {}, Q = !g[m] || !Te.dedupe, te = () => Ut ? !T.current && m === v.current && C.current : m === v.current, Re = {
|
7615
7615
|
isValidating: !1,
|
7616
7616
|
isLoading: !1
|
7617
|
-
},
|
7618
|
-
|
7617
|
+
}, Ke = () => {
|
7618
|
+
ie(Re);
|
7619
7619
|
}, Ne = () => {
|
7620
7620
|
const E = g[m];
|
7621
7621
|
E && E[1] === W && delete g[m];
|
7622
|
-
},
|
7622
|
+
}, Je = {
|
7623
7623
|
isValidating: !0
|
7624
7624
|
};
|
7625
|
-
V(G().data) && (
|
7625
|
+
V(G().data) && (Je.isLoading = !0);
|
7626
7626
|
try {
|
7627
|
-
if (Q && (
|
7627
|
+
if (Q && (ie(Je), i.loadingTimeout && V(G().data) && setTimeout(() => {
|
7628
7628
|
xe && te() && A().onLoadingSlow(m, i);
|
7629
7629
|
}, i.loadingTimeout), g[m] = [
|
7630
7630
|
P(k),
|
@@ -7637,7 +7637,7 @@ const Pr = ce.use || ((e) => {
|
|
7637
7637
|
(W <= E[0] || // case 2
|
7638
7638
|
W <= E[1] || // case 3
|
7639
7639
|
E[1] === 0))
|
7640
|
-
return
|
7640
|
+
return Ke(), Q && te() && A().onDiscarded(m), !1;
|
7641
7641
|
const j = G().data;
|
7642
7642
|
Re.data = r(j, Z) ? j : Z, Q && te() && A().onSuccess(Z, m, i);
|
7643
7643
|
} catch (E) {
|
@@ -7645,13 +7645,13 @@ const Pr = ce.use || ((e) => {
|
|
7645
7645
|
const j = A(), { shouldRetryOnError: pe } = j;
|
7646
7646
|
j.isPaused() || (Re.error = E, Q && te() && (j.onError(E, m, j), (pe === !0 || Me(pe) && pe(E)) && (!A().revalidateOnFocus || !A().revalidateOnReconnect || H()) && j.onErrorRetry(E, m, j, (ge) => {
|
7647
7647
|
const ke = x[m];
|
7648
|
-
ke && ke[0] && ke[0](
|
7648
|
+
ke && ke[0] && ke[0](Ye.ERROR_REVALIDATE_EVENT, ge);
|
7649
7649
|
}, {
|
7650
7650
|
retryCount: (Te.retryCount || 0) + 1,
|
7651
7651
|
dedupe: !0
|
7652
7652
|
})));
|
7653
7653
|
}
|
7654
|
-
return xe = !1,
|
7654
|
+
return xe = !1, Ke(), !0;
|
7655
7655
|
},
|
7656
7656
|
// `setState` is immutable, and `eventsCallback`, `fnArg`, and
|
7657
7657
|
// `keyValidating` are depending on `key`, so we can exclude them from
|
@@ -7674,33 +7674,33 @@ const Pr = ce.use || ((e) => {
|
|
7674
7674
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
7675
7675
|
[]
|
7676
7676
|
);
|
7677
|
-
if (
|
7677
|
+
if (rt(() => {
|
7678
7678
|
O.current = t, B.current = i, V(_) || (M.current = _);
|
7679
|
-
}),
|
7679
|
+
}), rt(() => {
|
7680
7680
|
if (!m) return;
|
7681
7681
|
const b = $.bind(je, Gn);
|
7682
7682
|
let P = 0;
|
7683
7683
|
const W = $a(m, x, (xe, Te = {}) => {
|
7684
|
-
if (xe ==
|
7684
|
+
if (xe == Ye.FOCUS_EVENT) {
|
7685
7685
|
const Q = Date.now();
|
7686
7686
|
A().revalidateOnFocus && Q > P && H() && (P = Q + A().focusThrottleInterval, b());
|
7687
|
-
} else if (xe ==
|
7687
|
+
} else if (xe == Ye.RECONNECT_EVENT)
|
7688
7688
|
A().revalidateOnReconnect && H() && b();
|
7689
7689
|
else {
|
7690
|
-
if (xe ==
|
7690
|
+
if (xe == Ye.MUTATE_EVENT)
|
7691
7691
|
return $();
|
7692
|
-
if (xe ==
|
7692
|
+
if (xe == Ye.ERROR_REVALIDATE_EVENT)
|
7693
7693
|
return $(Te);
|
7694
7694
|
}
|
7695
7695
|
});
|
7696
|
-
return T.current = !1, v.current = m, C.current = !0,
|
7696
|
+
return T.current = !1, v.current = m, C.current = !0, ie({
|
7697
7697
|
_k: k
|
7698
|
-
}), z && (V(L) ||
|
7698
|
+
}), z && (V(L) || xt ? b() : ja(b)), () => {
|
7699
7699
|
T.current = !0, W();
|
7700
7700
|
};
|
7701
7701
|
}, [
|
7702
7702
|
m
|
7703
|
-
]),
|
7703
|
+
]), rt(() => {
|
7704
7704
|
let b;
|
7705
7705
|
function P() {
|
7706
7706
|
const W = Me(p) ? p(G().data) : p;
|
@@ -7718,7 +7718,7 @@ const Pr = ce.use || ((e) => {
|
|
7718
7718
|
u,
|
7719
7719
|
m
|
7720
7720
|
]), $r(Y), a && V(L) && m) {
|
7721
|
-
if (!Ut &&
|
7721
|
+
if (!Ut && xt)
|
7722
7722
|
throw new Error("Fallback data is required when using suspense in SSR.");
|
7723
7723
|
O.current = t, B.current = i, T.current = !1;
|
7724
7724
|
const b = w[m];
|
@@ -7760,7 +7760,7 @@ const Pr = ce.use || ((e) => {
|
|
7760
7760
|
}), Yn = {
|
7761
7761
|
dedupe: !0
|
7762
7762
|
}, yp = (e, t, i) => {
|
7763
|
-
const { cache: n, compare: r, suspense: a, fallbackData: o, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: l, refreshWhenOffline: u, keepPreviousData: f } = i, [x, h, g, w] =
|
7763
|
+
const { cache: n, compare: r, suspense: a, fallbackData: o, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: l, refreshWhenOffline: u, keepPreviousData: f } = i, [x, h, g, w] = Ge.get(n), [m, k] = Gt(e), C = Se(!1), T = Se(!1), v = Se(m), O = Se(t), B = Se(i), A = () => B.current, H = () => A().isVisible() && A().isOnline(), [G, ie, re, X] = bi(n, m), q = Se({}).current, le = V(o) ? i.fallback[m] : o, me = (b, P) => {
|
7764
7764
|
for (const Z in q) {
|
7765
7765
|
const W = Z;
|
7766
7766
|
if (W === "data") {
|
@@ -7770,7 +7770,7 @@ const Pr = ce.use || ((e) => {
|
|
7770
7770
|
return !1;
|
7771
7771
|
}
|
7772
7772
|
return !0;
|
7773
|
-
}, ye =
|
7773
|
+
}, ye = Qe(() => {
|
7774
7774
|
const b = !m || !t ? !1 : V(s) ? A().isPaused() || a ? !1 : V(c) ? !0 : c : s, P = (te) => {
|
7775
7775
|
const Re = $e(te);
|
7776
7776
|
return delete Re._k, b ? {
|
@@ -7791,7 +7791,7 @@ const Pr = ce.use || ((e) => {
|
|
7791
7791
|
n,
|
7792
7792
|
m
|
7793
7793
|
]), se = Aa.useSyncExternalStore(Ce(
|
7794
|
-
(b) =>
|
7794
|
+
(b) => re(m, (P, Z) => {
|
7795
7795
|
me(Z, P) || b();
|
7796
7796
|
}),
|
7797
7797
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
@@ -7808,17 +7808,17 @@ const Pr = ce.use || ((e) => {
|
|
7808
7808
|
const Te = b || {}, Q = !g[m] || !Te.dedupe, te = () => Ut ? !T.current && m === v.current && C.current : m === v.current, Re = {
|
7809
7809
|
isValidating: !1,
|
7810
7810
|
isLoading: !1
|
7811
|
-
},
|
7812
|
-
|
7811
|
+
}, Ke = () => {
|
7812
|
+
ie(Re);
|
7813
7813
|
}, Ne = () => {
|
7814
7814
|
const E = g[m];
|
7815
7815
|
E && E[1] === W && delete g[m];
|
7816
|
-
},
|
7816
|
+
}, Je = {
|
7817
7817
|
isValidating: !0
|
7818
7818
|
};
|
7819
|
-
V(G().data) && (
|
7819
|
+
V(G().data) && (Je.isLoading = !0);
|
7820
7820
|
try {
|
7821
|
-
if (Q && (
|
7821
|
+
if (Q && (ie(Je), i.loadingTimeout && V(G().data) && setTimeout(() => {
|
7822
7822
|
xe && te() && A().onLoadingSlow(m, i);
|
7823
7823
|
}, i.loadingTimeout), g[m] = [
|
7824
7824
|
P(k),
|
@@ -7831,7 +7831,7 @@ const Pr = ce.use || ((e) => {
|
|
7831
7831
|
(W <= E[0] || // case 2
|
7832
7832
|
W <= E[1] || // case 3
|
7833
7833
|
E[1] === 0))
|
7834
|
-
return
|
7834
|
+
return Ke(), Q && te() && A().onDiscarded(m), !1;
|
7835
7835
|
const j = G().data;
|
7836
7836
|
Re.data = r(j, Z) ? j : Z, Q && te() && A().onSuccess(Z, m, i);
|
7837
7837
|
} catch (E) {
|
@@ -7839,13 +7839,13 @@ const Pr = ce.use || ((e) => {
|
|
7839
7839
|
const j = A(), { shouldRetryOnError: pe } = j;
|
7840
7840
|
j.isPaused() || (Re.error = E, Q && te() && (j.onError(E, m, j), (pe === !0 || Me(pe) && pe(E)) && (!A().revalidateOnFocus || !A().revalidateOnReconnect || H()) && j.onErrorRetry(E, m, j, (ge) => {
|
7841
7841
|
const ke = x[m];
|
7842
|
-
ke && ke[0] && ke[0](
|
7842
|
+
ke && ke[0] && ke[0](Ye.ERROR_REVALIDATE_EVENT, ge);
|
7843
7843
|
}, {
|
7844
7844
|
retryCount: (Te.retryCount || 0) + 1,
|
7845
7845
|
dedupe: !0
|
7846
7846
|
})));
|
7847
7847
|
}
|
7848
|
-
return xe = !1,
|
7848
|
+
return xe = !1, Ke(), !0;
|
7849
7849
|
},
|
7850
7850
|
// `setState` is immutable, and `eventsCallback`, `fnArg`, and
|
7851
7851
|
// `keyValidating` are depending on `key`, so we can exclude them from
|
@@ -7868,33 +7868,33 @@ const Pr = ce.use || ((e) => {
|
|
7868
7868
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
7869
7869
|
[]
|
7870
7870
|
);
|
7871
|
-
if (
|
7871
|
+
if (rt(() => {
|
7872
7872
|
O.current = t, B.current = i, V(_) || (M.current = _);
|
7873
|
-
}),
|
7873
|
+
}), rt(() => {
|
7874
7874
|
if (!m) return;
|
7875
7875
|
const b = $.bind(je, Yn);
|
7876
7876
|
let P = 0;
|
7877
7877
|
const W = $a(m, x, (xe, Te = {}) => {
|
7878
|
-
if (xe ==
|
7878
|
+
if (xe == Ye.FOCUS_EVENT) {
|
7879
7879
|
const Q = Date.now();
|
7880
7880
|
A().revalidateOnFocus && Q > P && H() && (P = Q + A().focusThrottleInterval, b());
|
7881
|
-
} else if (xe ==
|
7881
|
+
} else if (xe == Ye.RECONNECT_EVENT)
|
7882
7882
|
A().revalidateOnReconnect && H() && b();
|
7883
7883
|
else {
|
7884
|
-
if (xe ==
|
7884
|
+
if (xe == Ye.MUTATE_EVENT)
|
7885
7885
|
return $();
|
7886
|
-
if (xe ==
|
7886
|
+
if (xe == Ye.ERROR_REVALIDATE_EVENT)
|
7887
7887
|
return $(Te);
|
7888
7888
|
}
|
7889
7889
|
});
|
7890
|
-
return T.current = !1, v.current = m, C.current = !0,
|
7890
|
+
return T.current = !1, v.current = m, C.current = !0, ie({
|
7891
7891
|
_k: k
|
7892
|
-
}), z && (V(L) ||
|
7892
|
+
}), z && (V(L) || xt ? b() : ja(b)), () => {
|
7893
7893
|
T.current = !0, W();
|
7894
7894
|
};
|
7895
7895
|
}, [
|
7896
7896
|
m
|
7897
|
-
]),
|
7897
|
+
]), rt(() => {
|
7898
7898
|
let b;
|
7899
7899
|
function P() {
|
7900
7900
|
const W = Me(p) ? p(G().data) : p;
|
@@ -7912,7 +7912,7 @@ const Pr = ce.use || ((e) => {
|
|
7912
7912
|
u,
|
7913
7913
|
m
|
7914
7914
|
]), $r(Y), a && V(L) && m) {
|
7915
|
-
if (!Ut &&
|
7915
|
+
if (!Ut && xt)
|
7916
7916
|
throw new Error("Fallback data is required when using suspense in SSR.");
|
7917
7917
|
O.current = t, B.current = i, T.current = !1;
|
7918
7918
|
const b = w[m];
|
@@ -7957,7 +7957,7 @@ const Pr = ce.use || ((e) => {
|
|
7957
7957
|
}
|
7958
7958
|
s && !i.current && t({});
|
7959
7959
|
}, []);
|
7960
|
-
return
|
7960
|
+
return rt(() => (i.current = !1, () => {
|
7961
7961
|
i.current = !0;
|
7962
7962
|
})), [
|
7963
7963
|
n,
|
@@ -8016,7 +8016,7 @@ const Pr = ce.use || ((e) => {
|
|
8016
8016
|
isMutating: !1
|
8017
8017
|
});
|
8018
8018
|
}, []);
|
8019
|
-
return
|
8019
|
+
return rt(() => {
|
8020
8020
|
r.current = e, a.current = t, o.current = i;
|
8021
8021
|
}), {
|
8022
8022
|
trigger: f,
|
@@ -8031,7 +8031,7 @@ const Pr = ce.use || ((e) => {
|
|
8031
8031
|
return p.isMutating = !0, u.isMutating;
|
8032
8032
|
}
|
8033
8033
|
};
|
8034
|
-
}, Sp = vp(bp, Ep), Rp = (e) => /* @__PURE__ */
|
8034
|
+
}, Sp = vp(bp, Ep), Rp = (e) => /* @__PURE__ */ ne.jsxs(
|
8035
8035
|
"svg",
|
8036
8036
|
{
|
8037
8037
|
width: "16",
|
@@ -8042,14 +8042,14 @@ const Pr = ce.use || ((e) => {
|
|
8042
8042
|
stroke: "currentColor",
|
8043
8043
|
...e,
|
8044
8044
|
children: [
|
8045
|
-
/* @__PURE__ */
|
8045
|
+
/* @__PURE__ */ ne.jsx(
|
8046
8046
|
"path",
|
8047
8047
|
{
|
8048
8048
|
opacity: "0.15",
|
8049
8049
|
d: "M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8Z"
|
8050
8050
|
}
|
8051
8051
|
),
|
8052
|
-
/* @__PURE__ */
|
8052
|
+
/* @__PURE__ */ ne.jsx(
|
8053
8053
|
"path",
|
8054
8054
|
{
|
8055
8055
|
d: "M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",
|
@@ -8070,7 +8070,7 @@ const Pr = ce.use || ((e) => {
|
|
8070
8070
|
lg: { width: "32px", height: "32px", strokeWidth: "2px" }
|
8071
8071
|
}
|
8072
8072
|
}
|
8073
|
-
}), Op = (e) => /* @__PURE__ */
|
8073
|
+
}), Op = (e) => /* @__PURE__ */ ne.jsx(
|
8074
8074
|
"svg",
|
8075
8075
|
{
|
8076
8076
|
width: "15",
|
@@ -8079,7 +8079,7 @@ const Pr = ce.use || ((e) => {
|
|
8079
8079
|
fill: "none",
|
8080
8080
|
xmlns: "http://www.w3.org/2000/svg",
|
8081
8081
|
...e,
|
8082
|
-
children: /* @__PURE__ */
|
8082
|
+
children: /* @__PURE__ */ ne.jsx(
|
8083
8083
|
"path",
|
8084
8084
|
{
|
8085
8085
|
d: "M6.04995 2.74998C6.04995 2.44623 5.80371 2.19998 5.49995 2.19998C5.19619 2.19998 4.94995 2.44623 4.94995 2.74998V12.25C4.94995 12.5537 5.19619 12.8 5.49995 12.8C5.80371 12.8 6.04995 12.5537 6.04995 12.25V2.74998ZM10.05 2.74998C10.05 2.44623 9.80371 2.19998 9.49995 2.19998C9.19619 2.19998 8.94995 2.44623 8.94995 2.74998V12.25C8.94995 12.5537 9.19619 12.8 9.49995 12.8C9.80371 12.8 10.05 12.5537 10.05 12.25V2.74998Z",
|
@@ -8089,7 +8089,7 @@ const Pr = ce.use || ((e) => {
|
|
8089
8089
|
}
|
8090
8090
|
)
|
8091
8091
|
}
|
8092
|
-
), _p = ({ ...e }) => /* @__PURE__ */
|
8092
|
+
), _p = ({ ...e }) => /* @__PURE__ */ ne.jsx(
|
8093
8093
|
"svg",
|
8094
8094
|
{
|
8095
8095
|
width: "15",
|
@@ -8098,7 +8098,7 @@ const Pr = ce.use || ((e) => {
|
|
8098
8098
|
xmlns: "http://www.w3.orkllg/2000/svg",
|
8099
8099
|
fill: "currentColor",
|
8100
8100
|
...e,
|
8101
|
-
children: /* @__PURE__ */
|
8101
|
+
children: /* @__PURE__ */ ne.jsx(
|
8102
8102
|
"path",
|
8103
8103
|
{
|
8104
8104
|
fillRule: "evenodd",
|
@@ -8115,7 +8115,7 @@ const Pr = ce.use || ((e) => {
|
|
8115
8115
|
const n = new URLSearchParams(t).get("Expires");
|
8116
8116
|
return n ? new Date(n) < /* @__PURE__ */ new Date() : !1;
|
8117
8117
|
}, Lr = (e) => e && e.split("?")[0], Ap = (e, t) => Lr(e) === Lr(t), jp = () => {
|
8118
|
-
const [e, t] = gn("paused"), n =
|
8118
|
+
const [e, t] = gn("paused"), n = Qe(() => {
|
8119
8119
|
if (typeof window > "u") return null;
|
8120
8120
|
const p = new Audio();
|
8121
8121
|
return p.addEventListener("play", () => t("playing")), p;
|
@@ -8158,7 +8158,7 @@ const Pr = ce.use || ((e) => {
|
|
8158
8158
|
} };
|
8159
8159
|
}, uu = () => ui(Ei), Fp = ({ children: e }) => {
|
8160
8160
|
const t = jp();
|
8161
|
-
return /* @__PURE__ */
|
8161
|
+
return /* @__PURE__ */ ne.jsx(Ei.Provider, { value: t, children: e });
|
8162
8162
|
}, Pp = (e, t, i) => {
|
8163
8163
|
const n = Dp(e), r = Se(!1), a = () => {
|
8164
8164
|
r.current || (r.current = !0), n.isPlaying ? (n.pause(), i == null || i()) : (n.play(), t == null || t());
|
@@ -8166,23 +8166,23 @@ const Pr = ce.use || ((e) => {
|
|
8166
8166
|
return Et(() => () => {
|
8167
8167
|
n.isPlaying && n.pause();
|
8168
8168
|
}, []), { player: n, playPause: a };
|
8169
|
-
},
|
8169
|
+
}, He = ({ limit: e, isTrue: t, children: i }) => {
|
8170
8170
|
const n = [];
|
8171
8171
|
return t !== !0 ? null : (to.Children.map(i, (r) => {
|
8172
8172
|
const { isTrue: a } = (r == null ? void 0 : r.props) || {};
|
8173
8173
|
a === !0 && (!e || n.length < e) && n.push(r);
|
8174
|
-
}), /* @__PURE__ */
|
8174
|
+
}), /* @__PURE__ */ ne.jsx(ne.Fragment, { children: n }));
|
8175
8175
|
};
|
8176
|
-
|
8176
|
+
He.defaultProps = {
|
8177
8177
|
limit: 1,
|
8178
8178
|
isTrue: !0
|
8179
8179
|
};
|
8180
|
-
|
8180
|
+
He.If = ({ children: e, isTrue: t }) => e;
|
8181
8181
|
const Na = ({ children: e }) => e;
|
8182
8182
|
Na.defaultProps = {
|
8183
8183
|
isTrue: !0
|
8184
8184
|
};
|
8185
|
-
|
8185
|
+
He.Else = Na;
|
8186
8186
|
const Ip = (e) => {
|
8187
8187
|
const t = (r) => typeof r == "object" && !(r instanceof Date) && !(r instanceof File) && r !== null, i = (r, a, o) => {
|
8188
8188
|
for (const s in a) {
|
@@ -8197,7 +8197,7 @@ const Ip = (e) => {
|
|
8197
8197
|
return n;
|
8198
8198
|
}, Bp = qe("div", {
|
8199
8199
|
"--progress": "-100%",
|
8200
|
-
height: "
|
8200
|
+
height: "4px",
|
8201
8201
|
width: "100%",
|
8202
8202
|
background: "rgba(255, 255, 255, 0.1)",
|
8203
8203
|
borderRadius: "12px",
|
@@ -8207,10 +8207,9 @@ const Ip = (e) => {
|
|
8207
8207
|
height: "100%",
|
8208
8208
|
width: "100%",
|
8209
8209
|
background: "#ffffff",
|
8210
|
-
transition: "transform 0.2s ease-in-out",
|
8211
8210
|
transform: "translateX(var(--progress))",
|
8212
8211
|
borderRadius: "12px"
|
8213
|
-
}),
|
8212
|
+
}), at = {
|
8214
8213
|
Root: Bp,
|
8215
8214
|
Bar: Lp
|
8216
8215
|
};
|
@@ -8221,7 +8220,7 @@ function on(e, t, i) {
|
|
8221
8220
|
function un(e, t, i) {
|
8222
8221
|
e = Math.floor(e), t[i + 0] = e & 255, t[i + 1] = e >> 8 & 255;
|
8223
8222
|
}
|
8224
|
-
function
|
8223
|
+
function ct(e, t, i) {
|
8225
8224
|
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;
|
8226
8225
|
}
|
8227
8226
|
function zp(e) {
|
@@ -8237,7 +8236,7 @@ function Mp(e, t, i, n) {
|
|
8237
8236
|
if (c = e.getChannelData(a), n === 16)
|
8238
8237
|
p = c[r] * 32768, p = Math.max(-32768, Math.min(p, 32767)), un(p, t, i), i += 2;
|
8239
8238
|
else if (n === 32)
|
8240
|
-
p = zp(c[r]),
|
8239
|
+
p = zp(c[r]), ct(p, t, i), i += 4;
|
8241
8240
|
else {
|
8242
8241
|
console.log("Invalid bit depth for PCM encoding.");
|
8243
8242
|
return;
|
@@ -8250,7 +8249,7 @@ async function $p(e, t) {
|
|
8250
8249
|
}
|
8251
8250
|
async function Np(e, t = !1) {
|
8252
8251
|
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), x = 16, h = p, g = 4 + (8 + x) + (8 + h);
|
8253
|
-
return on("RIFF", f, 0),
|
8252
|
+
return on("RIFF", f, 0), ct(g, f, 4), on("WAVE", f, 8), on("fmt ", f, 12), ct(x, f, 16), un(t ? 3 : 1, f, 20), un(n, f, 22), ct(r, f, 24), ct(s, f, 28), un(c, f, 32), ct(a, f, 34), on("data", f, 36), ct(h, f, 40), Mp(e, f, 44, a), new Blob([f], { type: "audio/wave" });
|
8254
8253
|
}
|
8255
8254
|
async function qp(e, t = !1, i) {
|
8256
8255
|
const n = await $p(e, i);
|
@@ -8395,9 +8394,10 @@ const sn = new Up(), qa = "Recording.wav", Vp = 1500, du = (e) => {
|
|
8395
8394
|
};
|
8396
8395
|
}, Ua = ce.createContext({}), Si = () => ce.useContext(Ua), fu = ({ children: e }) => {
|
8397
8396
|
const t = Jp();
|
8398
|
-
return /* @__PURE__ */
|
8397
|
+
return /* @__PURE__ */ ne.jsx(Fp, { children: /* @__PURE__ */ ne.jsx(Ua.Provider, { value: t, children: e }) });
|
8399
8398
|
}, Xp = qe("button", {
|
8400
8399
|
background: "#ffffff",
|
8400
|
+
flexShrink: 0,
|
8401
8401
|
borderRadius: "12px",
|
8402
8402
|
width: "64px",
|
8403
8403
|
height: "64px",
|
@@ -8431,8 +8431,7 @@ const sn = new Up(), qa = "Recording.wav", Vp = 1500, du = (e) => {
|
|
8431
8431
|
return ce.useEffect(() => {
|
8432
8432
|
if (!r.isPlaying)
|
8433
8433
|
return () => {
|
8434
|
-
|
8435
|
-
(l = o.current) == null || l.style.setProperty("--progress", "0%"), cancelAnimationFrame(s.current);
|
8434
|
+
cancelAnimationFrame(s.current);
|
8436
8435
|
};
|
8437
8436
|
const p = () => {
|
8438
8437
|
var u;
|
@@ -8440,16 +8439,22 @@ const sn = new Up(), qa = "Recording.wav", Vp = 1500, du = (e) => {
|
|
8440
8439
|
(u = o.current) == null || u.style.setProperty("--progress", `${-100 + l * 100}%`), s.current = requestAnimationFrame(p);
|
8441
8440
|
};
|
8442
8441
|
return s.current = requestAnimationFrame(p), () => {
|
8443
|
-
|
8444
|
-
cancelAnimationFrame(s.current), (l = o.current) == null || l.style.setProperty("--progress", "0%");
|
8442
|
+
cancelAnimationFrame(s.current);
|
8445
8443
|
};
|
8446
|
-
}, [r.isPlaying, r.audioRef]), /* @__PURE__ */
|
8447
|
-
/* @__PURE__ */
|
8448
|
-
/* @__PURE__ */
|
8449
|
-
/* @__PURE__ */
|
8450
|
-
/* @__PURE__ */
|
8444
|
+
}, [r.isPlaying, r.audioRef]), /* @__PURE__ */ ne.jsxs(et, { row: !0, align: "center", flex: "1", gap: "16", ...e, children: [
|
8445
|
+
/* @__PURE__ */ ne.jsx(Xp, { onClick: a, disabled: r.isLoading || !n, children: /* @__PURE__ */ ne.jsxs(He, { children: [
|
8446
|
+
/* @__PURE__ */ ne.jsx(He.If, { isTrue: r.isLoading || (t == null ? void 0 : t.jobStatus) === "running" || i, children: /* @__PURE__ */ ne.jsx(kp, {}) }),
|
8447
|
+
/* @__PURE__ */ ne.jsx(He.If, { isTrue: r.isPlaying, children: /* @__PURE__ */ ne.jsx(Op, {}) }),
|
8448
|
+
/* @__PURE__ */ ne.jsx(He.Else, { children: /* @__PURE__ */ ne.jsx(_p, {}) })
|
8451
8449
|
] }) }),
|
8452
|
-
/* @__PURE__ */
|
8450
|
+
/* @__PURE__ */ ne.jsxs(et, { flex: "1", column: !0, gap: "8", children: [
|
8451
|
+
/* @__PURE__ */ ne.jsxs(et, { className: "framer-text framer-styles-preset-1yppp8i", children: [
|
8452
|
+
/* @__PURE__ */ ne.jsx(He.If, { isTrue: (t == null ? void 0 : t.jobStatus) === "running", children: "Converting audio" }),
|
8453
|
+
/* @__PURE__ */ ne.jsx(He.If, { isTrue: i, children: "Uploading audio" }),
|
8454
|
+
/* @__PURE__ */ ne.jsx(He.Else, { children: "Converted audio" })
|
8455
|
+
] }),
|
8456
|
+
/* @__PURE__ */ ne.jsx(at.Root, { ref: o, children: /* @__PURE__ */ ne.jsx(at.Bar, {}) })
|
8457
|
+
] })
|
8453
8458
|
] });
|
8454
8459
|
}, Zp = 30, Qp = (e) => {
|
8455
8460
|
const t = ce.useRef(), i = ce.useRef(null);
|
@@ -8464,13 +8469,13 @@ const sn = new Up(), qa = "Recording.wav", Vp = 1500, du = (e) => {
|
|
8464
8469
|
}, []), i;
|
8465
8470
|
}, eu = () => {
|
8466
8471
|
const e = Qp(0.1);
|
8467
|
-
return /* @__PURE__ */
|
8468
|
-
}, tu = () => /* @__PURE__ */
|
8472
|
+
return /* @__PURE__ */ ne.jsx(at.Root, { ref: e, children: /* @__PURE__ */ ne.jsx(at.Bar, {}) });
|
8473
|
+
}, tu = () => /* @__PURE__ */ ne.jsx(at.Root, { children: /* @__PURE__ */ ne.jsx(at.Bar, {}) }), nu = () => /* @__PURE__ */ ne.jsx(at.Root, { style: { "--progress": "0%" }, children: /* @__PURE__ */ ne.jsx(at.Bar, {}) }), xu = () => {
|
8469
8474
|
const { data: e } = Si();
|
8470
|
-
return e ? e.jobStatus === "success" ? /* @__PURE__ */
|
8475
|
+
return e ? e.jobStatus === "success" ? /* @__PURE__ */ ne.jsx(nu, {}) : /* @__PURE__ */ ne.jsx(eu, {}, e == null ? void 0 : e.id) : /* @__PURE__ */ ne.jsx(tu, {});
|
8471
8476
|
}, iu = 1, ru = 100 * 1024 * 1024, au = 1, vu = ({ children: e }) => {
|
8472
8477
|
const { setFile: t } = Si(), i = (n) => t(n[0]);
|
8473
|
-
return /* @__PURE__ */
|
8478
|
+
return /* @__PURE__ */ ne.jsx(
|
8474
8479
|
lc,
|
8475
8480
|
{
|
8476
8481
|
files: [],
|