ymy-components 0.0.33 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/collections/ListItem.d.ts +4 -6
- package/dist/components/ToggleSwitch.d.ts +8 -0
- package/dist/index.cjs.js +89 -35
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +863 -777
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import re, { useState as
|
|
1
|
+
import * as Fn from "react";
|
|
2
|
+
import re, { useState as Rr, useRef as Me, useEffect as gt, useLayoutEffect as xa, forwardRef as ka, useCallback as Oa, useContext as Ln, useMemo as tr, useDebugValue as Si, createElement as Pa } from "react";
|
|
3
3
|
import { unstable_batchedUpdates as Na } from "react-dom";
|
|
4
4
|
var rr = { exports: {} }, xt = {};
|
|
5
5
|
/**
|
|
@@ -11,10 +11,10 @@ var rr = { exports: {} }, xt = {};
|
|
|
11
11
|
* This source code is licensed under the MIT license found in the
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
|
-
var
|
|
14
|
+
var xi;
|
|
15
15
|
function Ca() {
|
|
16
|
-
if (
|
|
17
|
-
|
|
16
|
+
if (xi) return xt;
|
|
17
|
+
xi = 1;
|
|
18
18
|
var e = re, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
19
19
|
function s(a, u, l) {
|
|
20
20
|
var f, d = {}, h = null, p = null;
|
|
@@ -25,7 +25,7 @@ function Ca() {
|
|
|
25
25
|
}
|
|
26
26
|
return xt.Fragment = r, xt.jsx = s, xt.jsxs = s, xt;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
28
|
+
var kt = {};
|
|
29
29
|
/**
|
|
30
30
|
* @license React
|
|
31
31
|
* react-jsx-runtime.development.js
|
|
@@ -35,9 +35,9 @@ var Ot = {};
|
|
|
35
35
|
* This source code is licensed under the MIT license found in the
|
|
36
36
|
* LICENSE file in the root directory of this source tree.
|
|
37
37
|
*/
|
|
38
|
-
var
|
|
38
|
+
var ki;
|
|
39
39
|
function Ra() {
|
|
40
|
-
return
|
|
40
|
+
return ki || (ki = 1, process.env.NODE_ENV !== "production" && function() {
|
|
41
41
|
var e = re, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), a = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), v = Symbol.iterator, E = "@@iterator";
|
|
42
42
|
function w(c) {
|
|
43
43
|
if (c === null || typeof c != "object")
|
|
@@ -57,22 +57,22 @@ function Ra() {
|
|
|
57
57
|
{
|
|
58
58
|
var N = y.ReactDebugCurrentFrame, j = N.getStackAddendum();
|
|
59
59
|
j !== "" && (g += "%s", x = x.concat([j]));
|
|
60
|
-
var
|
|
60
|
+
var M = x.map(function(I) {
|
|
61
61
|
return String(I);
|
|
62
62
|
});
|
|
63
|
-
|
|
63
|
+
M.unshift("Warning: " + g), Function.prototype.apply.call(console[c], console, M);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
var S = !1,
|
|
67
|
-
|
|
66
|
+
var S = !1, O = !1, P = !1, k = !1, D = !1, z;
|
|
67
|
+
z = Symbol.for("react.module.reference");
|
|
68
68
|
function fe(c) {
|
|
69
|
-
return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || D || c === i || c === l || c === f ||
|
|
69
|
+
return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || D || c === i || c === l || c === f || k || c === p || S || O || P || typeof c == "object" && c !== null && (c.$$typeof === h || c.$$typeof === d || c.$$typeof === s || c.$$typeof === a || c.$$typeof === u || // This needs to include all possible module reference object
|
|
70
70
|
// types supported by any Flight configuration anywhere since
|
|
71
71
|
// we don't know which Flight build this will end up being used
|
|
72
72
|
// with.
|
|
73
|
-
c.$$typeof ===
|
|
73
|
+
c.$$typeof === z || c.getModuleId !== void 0));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function G(c, g, x) {
|
|
76
76
|
var N = c.displayName;
|
|
77
77
|
if (N)
|
|
78
78
|
return N;
|
|
@@ -82,7 +82,7 @@ function Ra() {
|
|
|
82
82
|
function de(c) {
|
|
83
83
|
return c.displayName || "Context";
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function H(c) {
|
|
86
86
|
if (c == null)
|
|
87
87
|
return null;
|
|
88
88
|
if (typeof c.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
|
|
@@ -112,14 +112,14 @@ function Ra() {
|
|
|
112
112
|
var x = c;
|
|
113
113
|
return de(x._context) + ".Provider";
|
|
114
114
|
case u:
|
|
115
|
-
return
|
|
115
|
+
return G(c, c.render, "ForwardRef");
|
|
116
116
|
case d:
|
|
117
117
|
var N = c.displayName || null;
|
|
118
|
-
return N !== null ? N :
|
|
118
|
+
return N !== null ? N : H(c.type) || "Memo";
|
|
119
119
|
case h: {
|
|
120
|
-
var j = c,
|
|
120
|
+
var j = c, M = j._payload, I = j._init;
|
|
121
121
|
try {
|
|
122
|
-
return
|
|
122
|
+
return H(I(M));
|
|
123
123
|
} catch {
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
@@ -127,14 +127,14 @@ function Ra() {
|
|
|
127
127
|
}
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
130
|
-
var he = Object.assign, Fe = 0, Jt, et, _t, se, Ne, Ce,
|
|
130
|
+
var he = Object.assign, Fe = 0, Jt, et, _t, se, Ne, Ce, Q;
|
|
131
131
|
function tt() {
|
|
132
132
|
}
|
|
133
133
|
tt.__reactDisabledLog = !0;
|
|
134
134
|
function Et() {
|
|
135
135
|
{
|
|
136
136
|
if (Fe === 0) {
|
|
137
|
-
Jt = console.log, et = console.info, _t = console.warn, se = console.error, Ne = console.group, Ce = console.groupCollapsed,
|
|
137
|
+
Jt = console.log, et = console.info, _t = console.warn, se = console.error, Ne = console.group, Ce = console.groupCollapsed, Q = console.groupEnd;
|
|
138
138
|
var c = {
|
|
139
139
|
configurable: !0,
|
|
140
140
|
enumerable: !0,
|
|
@@ -182,7 +182,7 @@ function Ra() {
|
|
|
182
182
|
value: Ce
|
|
183
183
|
}),
|
|
184
184
|
groupEnd: he({}, c, {
|
|
185
|
-
value:
|
|
185
|
+
value: Q
|
|
186
186
|
})
|
|
187
187
|
});
|
|
188
188
|
}
|
|
@@ -220,8 +220,8 @@ function Ra() {
|
|
|
220
220
|
me = !0;
|
|
221
221
|
var j = Error.prepareStackTrace;
|
|
222
222
|
Error.prepareStackTrace = void 0;
|
|
223
|
-
var
|
|
224
|
-
|
|
223
|
+
var M;
|
|
224
|
+
M = xe.current, xe.current = null, Et();
|
|
225
225
|
try {
|
|
226
226
|
if (g) {
|
|
227
227
|
var I = function() {
|
|
@@ -257,14 +257,14 @@ function Ra() {
|
|
|
257
257
|
} catch (J) {
|
|
258
258
|
if (J && N && typeof J.stack == "string") {
|
|
259
259
|
for (var A = J.stack.split(`
|
|
260
|
-
`),
|
|
261
|
-
`), U = A.length - 1, B =
|
|
260
|
+
`), X = N.stack.split(`
|
|
261
|
+
`), U = A.length - 1, B = X.length - 1; U >= 1 && B >= 0 && A[U] !== X[B]; )
|
|
262
262
|
B--;
|
|
263
263
|
for (; U >= 1 && B >= 0; U--, B--)
|
|
264
|
-
if (A[U] !==
|
|
264
|
+
if (A[U] !== X[B]) {
|
|
265
265
|
if (U !== 1 || B !== 1)
|
|
266
266
|
do
|
|
267
|
-
if (U--, B--, B < 0 || A[U] !==
|
|
267
|
+
if (U--, B--, B < 0 || A[U] !== X[B]) {
|
|
268
268
|
var ae = `
|
|
269
269
|
` + A[U].replace(" at new ", " at ");
|
|
270
270
|
return c.displayName && ae.includes("<anonymous>") && (ae = ae.replace("<anonymous>", c.displayName)), typeof c == "function" && Ae.set(c, ae), ae;
|
|
@@ -274,7 +274,7 @@ function Ra() {
|
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
} finally {
|
|
277
|
-
me = !1, xe.current =
|
|
277
|
+
me = !1, xe.current = M, rt(), Error.prepareStackTrace = j;
|
|
278
278
|
}
|
|
279
279
|
var ot = c ? c.displayName || c.name : "", Le = ot ? pe(ot) : "";
|
|
280
280
|
return typeof c == "function" && Ae.set(c, Le), Le;
|
|
@@ -306,44 +306,44 @@ function Ra() {
|
|
|
306
306
|
case d:
|
|
307
307
|
return Zt(c.type, g, x);
|
|
308
308
|
case h: {
|
|
309
|
-
var N = c, j = N._payload,
|
|
309
|
+
var N = c, j = N._payload, M = N._init;
|
|
310
310
|
try {
|
|
311
|
-
return Zt(
|
|
311
|
+
return Zt(M(j), g, x);
|
|
312
312
|
} catch {
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
return "";
|
|
317
317
|
}
|
|
318
|
-
var St = Object.prototype.hasOwnProperty,
|
|
318
|
+
var St = Object.prototype.hasOwnProperty, ui = {}, li = y.ReactDebugCurrentFrame;
|
|
319
319
|
function er(c) {
|
|
320
320
|
if (c) {
|
|
321
321
|
var g = c._owner, x = Zt(c.type, c._source, g ? g.type : null);
|
|
322
|
-
|
|
322
|
+
li.setExtraStackFrame(x);
|
|
323
323
|
} else
|
|
324
|
-
|
|
324
|
+
li.setExtraStackFrame(null);
|
|
325
325
|
}
|
|
326
326
|
function ra(c, g, x, N, j) {
|
|
327
327
|
{
|
|
328
|
-
var
|
|
328
|
+
var M = Function.call.bind(St);
|
|
329
329
|
for (var I in c)
|
|
330
|
-
if (
|
|
330
|
+
if (M(c, I)) {
|
|
331
331
|
var A = void 0;
|
|
332
332
|
try {
|
|
333
333
|
if (typeof c[I] != "function") {
|
|
334
|
-
var
|
|
335
|
-
throw
|
|
334
|
+
var X = Error((N || "React class") + ": " + x + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
335
|
+
throw X.name = "Invariant Violation", X;
|
|
336
336
|
}
|
|
337
337
|
A = c[I](g, I, N, x, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
338
338
|
} catch (U) {
|
|
339
339
|
A = U;
|
|
340
340
|
}
|
|
341
|
-
A && !(A instanceof Error) && (er(j), b("%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).", N || "React class", x, I, typeof A), er(null)), A instanceof Error && !(A.message in
|
|
341
|
+
A && !(A instanceof Error) && (er(j), b("%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).", N || "React class", x, I, typeof A), er(null)), A instanceof Error && !(A.message in ui) && (ui[A.message] = !0, er(j), b("Failed %s type: %s", x, A.message), er(null));
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
var na = Array.isArray;
|
|
346
|
-
function
|
|
346
|
+
function Kr(c) {
|
|
347
347
|
return na(c);
|
|
348
348
|
}
|
|
349
349
|
function ia(c) {
|
|
@@ -354,24 +354,24 @@ function Ra() {
|
|
|
354
354
|
}
|
|
355
355
|
function oa(c) {
|
|
356
356
|
try {
|
|
357
|
-
return
|
|
357
|
+
return fi(c), !1;
|
|
358
358
|
} catch {
|
|
359
359
|
return !0;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function fi(c) {
|
|
363
363
|
return "" + c;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function di(c) {
|
|
366
366
|
if (oa(c))
|
|
367
|
-
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ia(c)),
|
|
367
|
+
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ia(c)), fi(c);
|
|
368
368
|
}
|
|
369
|
-
var
|
|
369
|
+
var hi = y.ReactCurrentOwner, sa = {
|
|
370
370
|
key: !0,
|
|
371
371
|
ref: !0,
|
|
372
372
|
__self: !0,
|
|
373
373
|
__source: !0
|
|
374
|
-
},
|
|
374
|
+
}, pi, mi;
|
|
375
375
|
function aa(c) {
|
|
376
376
|
if (St.call(c, "ref")) {
|
|
377
377
|
var g = Object.getOwnPropertyDescriptor(c, "ref").get;
|
|
@@ -389,12 +389,12 @@ function Ra() {
|
|
|
389
389
|
return c.key !== void 0;
|
|
390
390
|
}
|
|
391
391
|
function ua(c, g) {
|
|
392
|
-
typeof c.ref == "string" &&
|
|
392
|
+
typeof c.ref == "string" && hi.current;
|
|
393
393
|
}
|
|
394
394
|
function la(c, g) {
|
|
395
395
|
{
|
|
396
396
|
var x = function() {
|
|
397
|
-
|
|
397
|
+
pi || (pi = !0, b("%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)", g));
|
|
398
398
|
};
|
|
399
399
|
x.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
400
400
|
get: x,
|
|
@@ -405,7 +405,7 @@ function Ra() {
|
|
|
405
405
|
function fa(c, g) {
|
|
406
406
|
{
|
|
407
407
|
var x = function() {
|
|
408
|
-
|
|
408
|
+
mi || (mi = !0, b("%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)", g));
|
|
409
409
|
};
|
|
410
410
|
x.isReactWarning = !0, Object.defineProperty(c, "ref", {
|
|
411
411
|
get: x,
|
|
@@ -413,7 +413,7 @@ function Ra() {
|
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
var da = function(c, g, x, N, j,
|
|
416
|
+
var da = function(c, g, x, N, j, M, I) {
|
|
417
417
|
var A = {
|
|
418
418
|
// This tag allows us to uniquely identify this as a React Element
|
|
419
419
|
$$typeof: t,
|
|
@@ -423,7 +423,7 @@ function Ra() {
|
|
|
423
423
|
ref: x,
|
|
424
424
|
props: I,
|
|
425
425
|
// Record the component responsible for creating this element.
|
|
426
|
-
_owner:
|
|
426
|
+
_owner: M
|
|
427
427
|
};
|
|
428
428
|
return A._store = {}, Object.defineProperty(A._store, "validated", {
|
|
429
429
|
configurable: !1,
|
|
@@ -444,39 +444,39 @@ function Ra() {
|
|
|
444
444
|
};
|
|
445
445
|
function ha(c, g, x, N, j) {
|
|
446
446
|
{
|
|
447
|
-
var
|
|
448
|
-
x !== void 0 && (
|
|
449
|
-
for (
|
|
450
|
-
St.call(g,
|
|
447
|
+
var M, I = {}, A = null, X = null;
|
|
448
|
+
x !== void 0 && (di(x), A = "" + x), ca(g) && (di(g.key), A = "" + g.key), aa(g) && (X = g.ref, ua(g, j));
|
|
449
|
+
for (M in g)
|
|
450
|
+
St.call(g, M) && !sa.hasOwnProperty(M) && (I[M] = g[M]);
|
|
451
451
|
if (c && c.defaultProps) {
|
|
452
452
|
var U = c.defaultProps;
|
|
453
|
-
for (
|
|
454
|
-
I[
|
|
453
|
+
for (M in U)
|
|
454
|
+
I[M] === void 0 && (I[M] = U[M]);
|
|
455
455
|
}
|
|
456
|
-
if (A ||
|
|
456
|
+
if (A || X) {
|
|
457
457
|
var B = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
|
|
458
|
-
A && la(I, B),
|
|
458
|
+
A && la(I, B), X && fa(I, B);
|
|
459
459
|
}
|
|
460
|
-
return da(c, A,
|
|
460
|
+
return da(c, A, X, j, N, hi.current, I);
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
var
|
|
463
|
+
var Qr = y.ReactCurrentOwner, yi = y.ReactDebugCurrentFrame;
|
|
464
464
|
function it(c) {
|
|
465
465
|
if (c) {
|
|
466
466
|
var g = c._owner, x = Zt(c.type, c._source, g ? g.type : null);
|
|
467
|
-
|
|
467
|
+
yi.setExtraStackFrame(x);
|
|
468
468
|
} else
|
|
469
|
-
|
|
469
|
+
yi.setExtraStackFrame(null);
|
|
470
470
|
}
|
|
471
|
-
var
|
|
472
|
-
|
|
473
|
-
function
|
|
471
|
+
var Xr;
|
|
472
|
+
Xr = !1;
|
|
473
|
+
function Jr(c) {
|
|
474
474
|
return typeof c == "object" && c !== null && c.$$typeof === t;
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function gi() {
|
|
477
477
|
{
|
|
478
|
-
if (
|
|
479
|
-
var c =
|
|
478
|
+
if (Qr.current) {
|
|
479
|
+
var c = H(Qr.current.type);
|
|
480
480
|
if (c)
|
|
481
481
|
return `
|
|
482
482
|
|
|
@@ -488,10 +488,10 @@ Check the render method of \`` + c + "`.";
|
|
|
488
488
|
function pa(c) {
|
|
489
489
|
return "";
|
|
490
490
|
}
|
|
491
|
-
var
|
|
491
|
+
var vi = {};
|
|
492
492
|
function ma(c) {
|
|
493
493
|
{
|
|
494
|
-
var g =
|
|
494
|
+
var g = gi();
|
|
495
495
|
if (!g) {
|
|
496
496
|
var x = typeof c == "string" ? c : c.displayName || c.name;
|
|
497
497
|
x && (g = `
|
|
@@ -501,35 +501,35 @@ Check the top-level render call using <` + x + ">.");
|
|
|
501
501
|
return g;
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function bi(c, g) {
|
|
505
505
|
{
|
|
506
506
|
if (!c._store || c._store.validated || c.key != null)
|
|
507
507
|
return;
|
|
508
508
|
c._store.validated = !0;
|
|
509
509
|
var x = ma(g);
|
|
510
|
-
if (
|
|
510
|
+
if (vi[x])
|
|
511
511
|
return;
|
|
512
|
-
|
|
512
|
+
vi[x] = !0;
|
|
513
513
|
var N = "";
|
|
514
|
-
c && c._owner && c._owner !==
|
|
514
|
+
c && c._owner && c._owner !== Qr.current && (N = " It was passed a child from " + H(c._owner.type) + "."), it(c), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, N), it(null);
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function wi(c, g) {
|
|
518
518
|
{
|
|
519
519
|
if (typeof c != "object")
|
|
520
520
|
return;
|
|
521
|
-
if (
|
|
521
|
+
if (Kr(c))
|
|
522
522
|
for (var x = 0; x < c.length; x++) {
|
|
523
523
|
var N = c[x];
|
|
524
|
-
|
|
524
|
+
Jr(N) && bi(N, g);
|
|
525
525
|
}
|
|
526
|
-
else if (
|
|
526
|
+
else if (Jr(c))
|
|
527
527
|
c._store && (c._store.validated = !0);
|
|
528
528
|
else if (c) {
|
|
529
529
|
var j = w(c);
|
|
530
530
|
if (typeof j == "function" && j !== c.entries)
|
|
531
|
-
for (var
|
|
532
|
-
|
|
531
|
+
for (var M = j.call(c), I; !(I = M.next()).done; )
|
|
532
|
+
Jr(I.value) && bi(I.value, g);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
}
|
|
@@ -548,11 +548,11 @@ Check the top-level render call using <` + x + ">.");
|
|
|
548
548
|
else
|
|
549
549
|
return;
|
|
550
550
|
if (x) {
|
|
551
|
-
var N =
|
|
551
|
+
var N = H(g);
|
|
552
552
|
ra(x, c.props, "prop", N, c);
|
|
553
|
-
} else if (g.PropTypes !== void 0 && !
|
|
554
|
-
|
|
555
|
-
var j =
|
|
553
|
+
} else if (g.PropTypes !== void 0 && !Xr) {
|
|
554
|
+
Xr = !0;
|
|
555
|
+
var j = H(g);
|
|
556
556
|
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", j || "Unknown");
|
|
557
557
|
}
|
|
558
558
|
typeof g.getDefaultProps == "function" && !g.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -570,87 +570,87 @@ Check the top-level render call using <` + x + ">.");
|
|
|
570
570
|
c.ref !== null && (it(c), b("Invalid attribute `ref` supplied to `React.Fragment`."), it(null));
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
var
|
|
574
|
-
function
|
|
573
|
+
var _i = {};
|
|
574
|
+
function Ei(c, g, x, N, j, M) {
|
|
575
575
|
{
|
|
576
576
|
var I = fe(c);
|
|
577
577
|
if (!I) {
|
|
578
578
|
var A = "";
|
|
579
579
|
(c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (A += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
580
|
-
var
|
|
581
|
-
|
|
580
|
+
var X = pa();
|
|
581
|
+
X ? A += X : A += gi();
|
|
582
582
|
var U;
|
|
583
|
-
c === null ? U = "null" :
|
|
583
|
+
c === null ? U = "null" : Kr(c) ? U = "array" : c !== void 0 && c.$$typeof === t ? (U = "<" + (H(c.type) || "Unknown") + " />", A = " Did you accidentally export a JSX literal instead of a component?") : U = typeof c, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", U, A);
|
|
584
584
|
}
|
|
585
|
-
var B = ha(c, g, x, j,
|
|
585
|
+
var B = ha(c, g, x, j, M);
|
|
586
586
|
if (B == null)
|
|
587
587
|
return B;
|
|
588
588
|
if (I) {
|
|
589
589
|
var ae = g.children;
|
|
590
590
|
if (ae !== void 0)
|
|
591
591
|
if (N)
|
|
592
|
-
if (
|
|
592
|
+
if (Kr(ae)) {
|
|
593
593
|
for (var ot = 0; ot < ae.length; ot++)
|
|
594
|
-
|
|
594
|
+
wi(ae[ot], c);
|
|
595
595
|
Object.freeze && Object.freeze(ae);
|
|
596
596
|
} else
|
|
597
597
|
b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
598
598
|
else
|
|
599
|
-
|
|
599
|
+
wi(ae, c);
|
|
600
600
|
}
|
|
601
601
|
if (St.call(g, "key")) {
|
|
602
|
-
var Le =
|
|
602
|
+
var Le = H(c), J = Object.keys(g).filter(function(Sa) {
|
|
603
603
|
return Sa !== "key";
|
|
604
|
-
}),
|
|
605
|
-
if (!
|
|
604
|
+
}), Zr = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
605
|
+
if (!_i[Le + Zr]) {
|
|
606
606
|
var Ea = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
|
|
607
607
|
b(`A props object containing a "key" prop is being spread into JSX:
|
|
608
608
|
let props = %s;
|
|
609
609
|
<%s {...props} />
|
|
610
610
|
React keys must be passed directly to JSX without using spread:
|
|
611
611
|
let props = %s;
|
|
612
|
-
<%s key={someKey} {...props} />`,
|
|
612
|
+
<%s key={someKey} {...props} />`, Zr, Le, Ea, Le), _i[Le + Zr] = !0;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
return c === n ? ga(B) : ya(B), B;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
618
|
function va(c, g, x) {
|
|
619
|
-
return
|
|
619
|
+
return Ei(c, g, x, !0);
|
|
620
620
|
}
|
|
621
621
|
function ba(c, g, x) {
|
|
622
|
-
return
|
|
622
|
+
return Ei(c, g, x, !1);
|
|
623
623
|
}
|
|
624
624
|
var wa = ba, _a = va;
|
|
625
|
-
|
|
626
|
-
}()),
|
|
625
|
+
kt.Fragment = n, kt.jsx = wa, kt.jsxs = _a;
|
|
626
|
+
}()), kt;
|
|
627
627
|
}
|
|
628
628
|
var Oi;
|
|
629
629
|
function Aa() {
|
|
630
630
|
return Oi || (Oi = 1, process.env.NODE_ENV === "production" ? rr.exports = Ca() : rr.exports = Ra()), rr.exports;
|
|
631
631
|
}
|
|
632
|
-
var
|
|
633
|
-
C.write = (e) => Gt(e,
|
|
634
|
-
var
|
|
635
|
-
C.onStart = (e) => Gt(e,
|
|
636
|
-
var Bn = Kt();
|
|
637
|
-
C.onFrame = (e) => Gt(e, Bn);
|
|
632
|
+
var $ = Aa(), Un = Kt(), C = (e) => Gt(e, Un), Bn = Kt();
|
|
633
|
+
C.write = (e) => Gt(e, Bn);
|
|
634
|
+
var Ar = Kt();
|
|
635
|
+
C.onStart = (e) => Gt(e, Ar);
|
|
638
636
|
var qn = Kt();
|
|
639
|
-
C.
|
|
637
|
+
C.onFrame = (e) => Gt(e, qn);
|
|
638
|
+
var Wn = Kt();
|
|
639
|
+
C.onFinish = (e) => Gt(e, Wn);
|
|
640
640
|
var ct = [];
|
|
641
641
|
C.setTimeout = (e, t) => {
|
|
642
642
|
const r = C.now() + t, n = () => {
|
|
643
643
|
const o = ct.findIndex((s) => s.cancel == n);
|
|
644
644
|
~o && ct.splice(o, 1), Ve -= ~o ? 1 : 0;
|
|
645
645
|
}, i = { time: r, handler: e, cancel: n };
|
|
646
|
-
return ct.splice(
|
|
646
|
+
return ct.splice(ko(r), 0, i), Ve += 1, Oo(), i;
|
|
647
647
|
};
|
|
648
|
-
var
|
|
648
|
+
var ko = (e) => ~(~ct.findIndex((t) => t.time > e) || ~ct.length);
|
|
649
649
|
C.cancel = (e) => {
|
|
650
|
-
|
|
650
|
+
Ar.delete(e), qn.delete(e), Wn.delete(e), Un.delete(e), Bn.delete(e);
|
|
651
651
|
};
|
|
652
652
|
C.sync = (e) => {
|
|
653
|
-
|
|
653
|
+
pn = !0, C.batchedUpdates(e), pn = !1;
|
|
654
654
|
};
|
|
655
655
|
C.throttle = (e) => {
|
|
656
656
|
let t;
|
|
@@ -665,15 +665,15 @@ C.throttle = (e) => {
|
|
|
665
665
|
t = i, C.onStart(r);
|
|
666
666
|
}
|
|
667
667
|
return n.handler = e, n.cancel = () => {
|
|
668
|
-
|
|
668
|
+
Ar.delete(r), t = null;
|
|
669
669
|
}, n;
|
|
670
670
|
};
|
|
671
|
-
var
|
|
671
|
+
var Hn = typeof window < "u" ? window.requestAnimationFrame : (
|
|
672
672
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
673
673
|
() => {
|
|
674
674
|
}
|
|
675
675
|
);
|
|
676
|
-
C.use = (e) =>
|
|
676
|
+
C.use = (e) => Hn = e;
|
|
677
677
|
C.now = typeof performance < "u" ? () => performance.now() : Date.now;
|
|
678
678
|
C.batchedUpdates = (e) => e();
|
|
679
679
|
C.catch = console.error;
|
|
@@ -683,28 +683,28 @@ C.advance = () => {
|
|
|
683
683
|
"Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"
|
|
684
684
|
) : No();
|
|
685
685
|
};
|
|
686
|
-
var je = -1, Ve = 0,
|
|
686
|
+
var je = -1, Ve = 0, pn = !1;
|
|
687
687
|
function Gt(e, t) {
|
|
688
|
-
|
|
688
|
+
pn ? (t.delete(e), e(0)) : (t.add(e), Oo());
|
|
689
689
|
}
|
|
690
|
-
function
|
|
691
|
-
je < 0 && (je = 0, C.frameLoop !== "demand" &&
|
|
690
|
+
function Oo() {
|
|
691
|
+
je < 0 && (je = 0, C.frameLoop !== "demand" && Hn(Po));
|
|
692
692
|
}
|
|
693
693
|
function Ta() {
|
|
694
694
|
je = -1;
|
|
695
695
|
}
|
|
696
696
|
function Po() {
|
|
697
|
-
~je && (
|
|
697
|
+
~je && (Hn(Po), C.batchedUpdates(No));
|
|
698
698
|
}
|
|
699
699
|
function No() {
|
|
700
700
|
const e = je;
|
|
701
701
|
je = C.now();
|
|
702
|
-
const t =
|
|
702
|
+
const t = ko(je);
|
|
703
703
|
if (t && (Co(ct.splice(0, t), (r) => r.handler()), Ve -= t), !Ve) {
|
|
704
704
|
Ta();
|
|
705
705
|
return;
|
|
706
706
|
}
|
|
707
|
-
|
|
707
|
+
Ar.flush(), Un.flush(e ? Math.min(64, je - e) : 16.667), qn.flush(), Bn.flush(), Wn.flush();
|
|
708
708
|
}
|
|
709
709
|
function Kt() {
|
|
710
710
|
let e = /* @__PURE__ */ new Set(), t = e;
|
|
@@ -736,12 +736,12 @@ var Ia = Object.defineProperty, Da = (e, t) => {
|
|
|
736
736
|
Da(we, {
|
|
737
737
|
assign: () => Va,
|
|
738
738
|
colors: () => $e,
|
|
739
|
-
createStringInterpolator: () =>
|
|
739
|
+
createStringInterpolator: () => Gn,
|
|
740
740
|
skipAnimation: () => Ao,
|
|
741
741
|
to: () => Ro,
|
|
742
|
-
willAdvance: () =>
|
|
742
|
+
willAdvance: () => Kn
|
|
743
743
|
});
|
|
744
|
-
function
|
|
744
|
+
function mn() {
|
|
745
745
|
}
|
|
746
746
|
var ja = (e, t, r) => Object.defineProperty(e, t, { value: r, writable: !0, configurable: !0 }), _ = {
|
|
747
747
|
arr: Array.isArray,
|
|
@@ -751,7 +751,7 @@ var ja = (e, t, r) => Object.defineProperty(e, t, { value: r, writable: !0, conf
|
|
|
751
751
|
num: (e) => typeof e == "number",
|
|
752
752
|
und: (e) => e === void 0
|
|
753
753
|
};
|
|
754
|
-
function
|
|
754
|
+
function ke(e, t) {
|
|
755
755
|
if (_.arr(e)) {
|
|
756
756
|
if (!_.arr(t) || e.length !== t.length)
|
|
757
757
|
return !1;
|
|
@@ -779,22 +779,22 @@ function Tt(e, t) {
|
|
|
779
779
|
e.clear(), T(r, t);
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
|
-
var Ct = (e, ...t) => Tt(e, (r) => r(...t)),
|
|
783
|
-
e.to && (Ro = e.to), e.now && (C.now = e.now), e.colors !== void 0 && ($e = e.colors), e.skipAnimation != null && (Ao = e.skipAnimation), e.createStringInterpolator && (
|
|
784
|
-
}, It = /* @__PURE__ */ new Set(), ue = [],
|
|
782
|
+
var Ct = (e, ...t) => Tt(e, (r) => r(...t)), Yn = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), Gn, Ro, $e = null, Ao = !1, Kn = mn, Va = (e) => {
|
|
783
|
+
e.to && (Ro = e.to), e.now && (C.now = e.now), e.colors !== void 0 && ($e = e.colors), e.skipAnimation != null && (Ao = e.skipAnimation), e.createStringInterpolator && (Gn = e.createStringInterpolator), e.requestAnimationFrame && C.use(e.requestAnimationFrame), e.batchedUpdates && (C.batchedUpdates = e.batchedUpdates), e.willAdvance && (Kn = e.willAdvance), e.frameLoop && (C.frameLoop = e.frameLoop);
|
|
784
|
+
}, It = /* @__PURE__ */ new Set(), ue = [], en = [], gr = 0, Tr = {
|
|
785
785
|
get idle() {
|
|
786
786
|
return !It.size && !ue.length;
|
|
787
787
|
},
|
|
788
788
|
/** Advance the given animation on every frame until idle. */
|
|
789
789
|
start(e) {
|
|
790
|
-
gr > e.priority ? (It.add(e), C.onStart($a)) : (To(e), C(
|
|
790
|
+
gr > e.priority ? (It.add(e), C.onStart($a)) : (To(e), C(yn));
|
|
791
791
|
},
|
|
792
792
|
/** Advance all animations by the given time. */
|
|
793
|
-
advance:
|
|
793
|
+
advance: yn,
|
|
794
794
|
/** Call this when an animation's priority changes. */
|
|
795
795
|
sort(e) {
|
|
796
796
|
if (gr)
|
|
797
|
-
C.onFrame(() =>
|
|
797
|
+
C.onFrame(() => Tr.sort(e));
|
|
798
798
|
else {
|
|
799
799
|
const t = ue.indexOf(e);
|
|
800
800
|
~t && (ue.splice(t, 1), Io(e));
|
|
@@ -810,7 +810,7 @@ var Ct = (e, ...t) => Tt(e, (r) => r(...t)), Hn = () => typeof window > "u" || !
|
|
|
810
810
|
}
|
|
811
811
|
};
|
|
812
812
|
function $a() {
|
|
813
|
-
It.forEach(To), It.clear(), C(
|
|
813
|
+
It.forEach(To), It.clear(), C(yn);
|
|
814
814
|
}
|
|
815
815
|
function To(e) {
|
|
816
816
|
ue.includes(e) || Io(e);
|
|
@@ -822,13 +822,13 @@ function Io(e) {
|
|
|
822
822
|
e
|
|
823
823
|
);
|
|
824
824
|
}
|
|
825
|
-
function
|
|
826
|
-
const t =
|
|
825
|
+
function yn(e) {
|
|
826
|
+
const t = en;
|
|
827
827
|
for (let r = 0; r < ue.length; r++) {
|
|
828
828
|
const n = ue[r];
|
|
829
|
-
gr = n.priority, n.idle || (
|
|
829
|
+
gr = n.priority, n.idle || (Kn(n), n.advance(e), n.idle || t.push(n));
|
|
830
830
|
}
|
|
831
|
-
return gr = 0,
|
|
831
|
+
return gr = 0, en = ue, en.length = 0, ue = t, ue.length > 0;
|
|
832
832
|
}
|
|
833
833
|
function Ma(e, t) {
|
|
834
834
|
const r = e.findIndex(t);
|
|
@@ -986,11 +986,11 @@ var za = {
|
|
|
986
986
|
yellow: 4294902015,
|
|
987
987
|
yellowgreen: 2597139199
|
|
988
988
|
}, ve = "[-+]?\\d*\\.?\\d+", vr = ve + "%";
|
|
989
|
-
function
|
|
989
|
+
function Ir(...e) {
|
|
990
990
|
return "\\(\\s*(" + e.join(")\\s*,\\s*(") + ")\\s*\\)";
|
|
991
991
|
}
|
|
992
|
-
var Fa = new RegExp("rgb" +
|
|
993
|
-
"hsla" +
|
|
992
|
+
var Fa = new RegExp("rgb" + Ir(ve, ve, ve)), La = new RegExp("rgba" + Ir(ve, ve, ve, ve)), Ua = new RegExp("hsl" + Ir(ve, vr, vr)), Ba = new RegExp(
|
|
993
|
+
"hsla" + Ir(ve, vr, vr, ve)
|
|
994
994
|
), qa = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, Wa = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, Ha = /^#([0-9a-fA-F]{6})$/, Ya = /^#([0-9a-fA-F]{8})$/;
|
|
995
995
|
function Ga(e) {
|
|
996
996
|
let t;
|
|
@@ -1001,7 +1001,7 @@ function Ga(e) {
|
|
|
1001
1001
|
0 : (t = La.exec(e)) ? (st(t[1]) << 24 | // r
|
|
1002
1002
|
st(t[2]) << 16 | // g
|
|
1003
1003
|
st(t[3]) << 8 | // b
|
|
1004
|
-
|
|
1004
|
+
Ci(t[4])) >>> // a
|
|
1005
1005
|
0 : (t = qa.exec(e)) ? parseInt(
|
|
1006
1006
|
t[1] + t[1] + // r
|
|
1007
1007
|
t[2] + t[2] + // g
|
|
@@ -1016,39 +1016,39 @@ function Ga(e) {
|
|
|
1016
1016
|
t[4] + t[4],
|
|
1017
1017
|
// a
|
|
1018
1018
|
16
|
|
1019
|
-
) >>> 0 : (t = Ua.exec(e)) ? (
|
|
1020
|
-
|
|
1019
|
+
) >>> 0 : (t = Ua.exec(e)) ? (Pi(
|
|
1020
|
+
Ni(t[1]),
|
|
1021
1021
|
// h
|
|
1022
1022
|
nr(t[2]),
|
|
1023
1023
|
// s
|
|
1024
1024
|
nr(t[3])
|
|
1025
1025
|
// l
|
|
1026
1026
|
) | 255) >>> // a
|
|
1027
|
-
0 : (t = Ba.exec(e)) ? (
|
|
1028
|
-
|
|
1027
|
+
0 : (t = Ba.exec(e)) ? (Pi(
|
|
1028
|
+
Ni(t[1]),
|
|
1029
1029
|
// h
|
|
1030
1030
|
nr(t[2]),
|
|
1031
1031
|
// s
|
|
1032
1032
|
nr(t[3])
|
|
1033
1033
|
// l
|
|
1034
|
-
) |
|
|
1034
|
+
) | Ci(t[4])) >>> // a
|
|
1035
1035
|
0 : null;
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function tn(e, t, r) {
|
|
1038
1038
|
return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + (t - e) * 6 * r : r < 1 / 2 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e;
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1041
|
-
const n = r < 0.5 ? r * (1 + t) : r + t - r * t, i = 2 * r - n, o =
|
|
1040
|
+
function Pi(e, t, r) {
|
|
1041
|
+
const n = r < 0.5 ? r * (1 + t) : r + t - r * t, i = 2 * r - n, o = tn(i, n, e + 1 / 3), s = tn(i, n, e), a = tn(i, n, e - 1 / 3);
|
|
1042
1042
|
return Math.round(o * 255) << 24 | Math.round(s * 255) << 16 | Math.round(a * 255) << 8;
|
|
1043
1043
|
}
|
|
1044
1044
|
function st(e) {
|
|
1045
1045
|
const t = parseInt(e, 10);
|
|
1046
1046
|
return t < 0 ? 0 : t > 255 ? 255 : t;
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1048
|
+
function Ni(e) {
|
|
1049
1049
|
return (parseFloat(e) % 360 + 360) % 360 / 360;
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1051
|
+
function Ci(e) {
|
|
1052
1052
|
const t = parseFloat(e);
|
|
1053
1053
|
return t < 0 ? 0 : t > 1 ? 255 : Math.round(t * 255);
|
|
1054
1054
|
}
|
|
@@ -1056,7 +1056,7 @@ function nr(e) {
|
|
|
1056
1056
|
const t = parseFloat(e);
|
|
1057
1057
|
return t < 0 ? 0 : t > 100 ? 1 : t / 100;
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function Ri(e) {
|
|
1060
1060
|
let t = Ga(e);
|
|
1061
1061
|
if (t === null)
|
|
1062
1062
|
return e;
|
|
@@ -1074,7 +1074,7 @@ var $t = (e, t, r) => {
|
|
|
1074
1074
|
extrapolate: r
|
|
1075
1075
|
});
|
|
1076
1076
|
if (_.str(e.output[0]))
|
|
1077
|
-
return
|
|
1077
|
+
return Gn(e);
|
|
1078
1078
|
const n = e, i = n.output, o = n.range || [0, 1], s = n.extrapolateLeft || n.extrapolate || "extend", a = n.extrapolateRight || n.extrapolate || "extend", u = n.easing || ((l) => l);
|
|
1079
1079
|
return (l) => {
|
|
1080
1080
|
const f = Qa(l, o);
|
|
@@ -1112,7 +1112,7 @@ function Qa(e, t) {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
var Xa = {
|
|
1114
1114
|
linear: (e) => e
|
|
1115
|
-
}, Mt = Symbol.for("FluidValue.get"), lt = Symbol.for("FluidValue.observers"), ce = (e) => !!(e && e[Mt]), Z = (e) => e && e[Mt] ? e[Mt]() : e,
|
|
1115
|
+
}, Mt = Symbol.for("FluidValue.get"), lt = Symbol.for("FluidValue.observers"), ce = (e) => !!(e && e[Mt]), Z = (e) => e && e[Mt] ? e[Mt]() : e, Ai = (e) => e[lt] || null;
|
|
1116
1116
|
function Ja(e, t) {
|
|
1117
1117
|
e.eventObserved ? e.eventObserved(t) : e(t);
|
|
1118
1118
|
}
|
|
@@ -1147,9 +1147,9 @@ var jo = (e, t, r) => Object.defineProperty(e, t, {
|
|
|
1147
1147
|
value: r,
|
|
1148
1148
|
writable: !0,
|
|
1149
1149
|
configurable: !0
|
|
1150
|
-
}), lr = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ec = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,
|
|
1150
|
+
}), lr = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ec = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi, Ti = new RegExp(`(${lr.source})(%|[a-z]+)`, "i"), tc = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi, Dr = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/, Vo = (e) => {
|
|
1151
1151
|
const [t, r] = rc(e);
|
|
1152
|
-
if (!t ||
|
|
1152
|
+
if (!t || Yn())
|
|
1153
1153
|
return e;
|
|
1154
1154
|
const n = window.getComputedStyle(document.documentElement).getPropertyValue(t);
|
|
1155
1155
|
if (n)
|
|
@@ -1158,27 +1158,27 @@ var jo = (e, t, r) => Object.defineProperty(e, t, {
|
|
|
1158
1158
|
const i = window.getComputedStyle(document.documentElement).getPropertyValue(r);
|
|
1159
1159
|
return i || e;
|
|
1160
1160
|
} else {
|
|
1161
|
-
if (r &&
|
|
1161
|
+
if (r && Dr.test(r))
|
|
1162
1162
|
return Vo(r);
|
|
1163
1163
|
if (r)
|
|
1164
1164
|
return r;
|
|
1165
1165
|
}
|
|
1166
1166
|
return e;
|
|
1167
1167
|
}, rc = (e) => {
|
|
1168
|
-
const t =
|
|
1168
|
+
const t = Dr.exec(e);
|
|
1169
1169
|
if (!t)
|
|
1170
1170
|
return [,];
|
|
1171
1171
|
const [, r, n] = t;
|
|
1172
1172
|
return [r, n];
|
|
1173
|
-
},
|
|
1174
|
-
|
|
1173
|
+
}, rn, nc = (e, t, r, n, i) => `rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`, $o = (e) => {
|
|
1174
|
+
rn || (rn = $e ? (
|
|
1175
1175
|
// match color names, ignore partial matches
|
|
1176
1176
|
new RegExp(`(${Object.keys($e).join("|")})(?!\\w)`, "g")
|
|
1177
1177
|
) : (
|
|
1178
1178
|
// never match
|
|
1179
1179
|
/^\b$/
|
|
1180
1180
|
));
|
|
1181
|
-
const t = e.output.map((o) => Z(o).replace(
|
|
1181
|
+
const t = e.output.map((o) => Z(o).replace(Dr, Vo).replace(ec, Ri).replace(rn, Ri)), r = t.map((o) => o.match(lr).map(Number)), i = r[0].map(
|
|
1182
1182
|
(o, s) => r.map((a) => {
|
|
1183
1183
|
if (!(s in a))
|
|
1184
1184
|
throw Error('The arity of each "output" value must be equal');
|
|
@@ -1189,51 +1189,51 @@ var jo = (e, t, r) => Object.defineProperty(e, t, {
|
|
|
1189
1189
|
);
|
|
1190
1190
|
return (o) => {
|
|
1191
1191
|
var u;
|
|
1192
|
-
const s = !
|
|
1192
|
+
const s = !Ti.test(t[0]) && ((u = t.find((l) => Ti.test(l))) == null ? void 0 : u.replace(lr, ""));
|
|
1193
1193
|
let a = 0;
|
|
1194
1194
|
return t[0].replace(
|
|
1195
1195
|
lr,
|
|
1196
1196
|
() => `${i[a++](o)}${s || ""}`
|
|
1197
1197
|
).replace(tc, nc);
|
|
1198
1198
|
};
|
|
1199
|
-
},
|
|
1199
|
+
}, Qn = "react-spring: ", Mo = (e) => {
|
|
1200
1200
|
const t = e;
|
|
1201
1201
|
let r = !1;
|
|
1202
1202
|
if (typeof t != "function")
|
|
1203
|
-
throw new TypeError(`${
|
|
1203
|
+
throw new TypeError(`${Qn}once requires a function parameter`);
|
|
1204
1204
|
return (...n) => {
|
|
1205
1205
|
r || (t(...n), r = !0);
|
|
1206
1206
|
};
|
|
1207
1207
|
}, ic = Mo(console.warn);
|
|
1208
1208
|
function oc() {
|
|
1209
1209
|
ic(
|
|
1210
|
-
`${
|
|
1210
|
+
`${Qn}The "interpolate" function is deprecated in v9 (use "to" instead)`
|
|
1211
1211
|
);
|
|
1212
1212
|
}
|
|
1213
1213
|
var sc = Mo(console.warn);
|
|
1214
1214
|
function ac() {
|
|
1215
1215
|
sc(
|
|
1216
|
-
`${
|
|
1216
|
+
`${Qn}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`
|
|
1217
1217
|
);
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1219
|
+
function jr(e) {
|
|
1220
1220
|
return _.str(e) && (e[0] == "#" || /\d/.test(e) || // Do not identify a CSS variable as an AnimatedString if its SSR
|
|
1221
|
-
!
|
|
1221
|
+
!Yn() && Dr.test(e) || e in ($e || {}));
|
|
1222
1222
|
}
|
|
1223
|
-
var
|
|
1223
|
+
var Xn = Yn() ? gt : xa, cc = () => {
|
|
1224
1224
|
const e = Me(!1);
|
|
1225
|
-
return
|
|
1225
|
+
return Xn(() => (e.current = !0, () => {
|
|
1226
1226
|
e.current = !1;
|
|
1227
1227
|
}), []), e;
|
|
1228
1228
|
};
|
|
1229
1229
|
function zo() {
|
|
1230
|
-
const e =
|
|
1230
|
+
const e = Rr()[1], t = cc();
|
|
1231
1231
|
return () => {
|
|
1232
1232
|
t.current && e(Math.random());
|
|
1233
1233
|
};
|
|
1234
1234
|
}
|
|
1235
1235
|
function uc(e, t) {
|
|
1236
|
-
const [r] =
|
|
1236
|
+
const [r] = Rr(
|
|
1237
1237
|
() => ({
|
|
1238
1238
|
inputs: t,
|
|
1239
1239
|
result: e()
|
|
@@ -1256,15 +1256,15 @@ function lc(e, t) {
|
|
|
1256
1256
|
return !0;
|
|
1257
1257
|
}
|
|
1258
1258
|
var Fo = (e) => gt(e, fc), fc = [];
|
|
1259
|
-
function
|
|
1259
|
+
function Ii(e) {
|
|
1260
1260
|
const t = Me();
|
|
1261
1261
|
return gt(() => {
|
|
1262
1262
|
t.current = e;
|
|
1263
1263
|
}), t.current;
|
|
1264
1264
|
}
|
|
1265
|
-
var Lt = Symbol.for("Animated:node"), dc = (e) => !!e && e[Lt] === e, _e = (e) => e && e[Lt],
|
|
1265
|
+
var Lt = Symbol.for("Animated:node"), dc = (e) => !!e && e[Lt] === e, _e = (e) => e && e[Lt], Jn = (e, t) => ja(e, Lt, t), Vr = (e) => e && e[Lt] && e[Lt].getPayload(), Lo = class {
|
|
1266
1266
|
constructor() {
|
|
1267
|
-
|
|
1267
|
+
Jn(this, this);
|
|
1268
1268
|
}
|
|
1269
1269
|
/** Get every `AnimatedValue` used by this node. */
|
|
1270
1270
|
getPayload() {
|
|
@@ -1321,7 +1321,7 @@ var Lt = Symbol.for("Animated:node"), dc = (e) => !!e && e[Lt] === e, _e = (e) =
|
|
|
1321
1321
|
output: [this.getValue(), e]
|
|
1322
1322
|
})), this._value = 0, super.reset();
|
|
1323
1323
|
}
|
|
1324
|
-
}, br = { dependencies: null },
|
|
1324
|
+
}, br = { dependencies: null }, $r = class extends Lo {
|
|
1325
1325
|
constructor(e) {
|
|
1326
1326
|
super(), this.source = e, this.setValue(e);
|
|
1327
1327
|
}
|
|
@@ -1348,10 +1348,10 @@ var Lt = Symbol.for("Animated:node"), dc = (e) => !!e && e[Lt] === e, _e = (e) =
|
|
|
1348
1348
|
/** Add to a payload set. */
|
|
1349
1349
|
_addToPayload(e) {
|
|
1350
1350
|
br.dependencies && ce(e) && br.dependencies.add(e);
|
|
1351
|
-
const t =
|
|
1351
|
+
const t = Vr(e);
|
|
1352
1352
|
t && T(t, (r) => this.add(r));
|
|
1353
1353
|
}
|
|
1354
|
-
}, Uo = class extends
|
|
1354
|
+
}, Uo = class extends $r {
|
|
1355
1355
|
constructor(e) {
|
|
1356
1356
|
super(e);
|
|
1357
1357
|
}
|
|
@@ -1368,21 +1368,21 @@ var Lt = Symbol.for("Animated:node"), dc = (e) => !!e && e[Lt] === e, _e = (e) =
|
|
|
1368
1368
|
}
|
|
1369
1369
|
};
|
|
1370
1370
|
function hc(e) {
|
|
1371
|
-
return (
|
|
1371
|
+
return (jr(e) ? Ut : Qt).create(e);
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function gn(e) {
|
|
1374
1374
|
const t = _e(e);
|
|
1375
|
-
return t ? t.constructor : _.arr(e) ? Uo :
|
|
1375
|
+
return t ? t.constructor : _.arr(e) ? Uo : jr(e) ? Ut : Qt;
|
|
1376
1376
|
}
|
|
1377
|
-
var
|
|
1377
|
+
var Di = (e, t) => {
|
|
1378
1378
|
const r = (
|
|
1379
1379
|
// Function components must use "forwardRef" to avoid being
|
|
1380
1380
|
// re-rendered on every animation frame.
|
|
1381
1381
|
!_.fun(e) || e.prototype && e.prototype.isReactComponent
|
|
1382
1382
|
);
|
|
1383
|
-
return
|
|
1383
|
+
return ka((n, i) => {
|
|
1384
1384
|
const o = Me(null), s = r && // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1385
|
-
|
|
1385
|
+
Oa(
|
|
1386
1386
|
(v) => {
|
|
1387
1387
|
o.current = yc(i, v);
|
|
1388
1388
|
},
|
|
@@ -1393,7 +1393,7 @@ var Ii = (e, t) => {
|
|
|
1393
1393
|
return;
|
|
1394
1394
|
(v ? t.applyAnimatedValues(v, a.getValue(!0)) : !1) === !1 && l();
|
|
1395
1395
|
}, d = new pc(f, u), h = Me();
|
|
1396
|
-
|
|
1396
|
+
Xn(() => (h.current = d, T(u, (v) => vt(v, d)), () => {
|
|
1397
1397
|
h.current && (T(
|
|
1398
1398
|
h.current.deps,
|
|
1399
1399
|
(v) => Ft(v, h.current)
|
|
@@ -1403,7 +1403,7 @@ var Ii = (e, t) => {
|
|
|
1403
1403
|
T(v.deps, (E) => Ft(E, v));
|
|
1404
1404
|
});
|
|
1405
1405
|
const p = t.getComponentProps(a.getValue());
|
|
1406
|
-
return /* @__PURE__ */
|
|
1406
|
+
return /* @__PURE__ */ Fn.createElement(e, { ...p, ref: s });
|
|
1407
1407
|
});
|
|
1408
1408
|
}, pc = class {
|
|
1409
1409
|
constructor(e, t) {
|
|
@@ -1418,14 +1418,14 @@ function mc(e, t) {
|
|
|
1418
1418
|
return br.dependencies = r, e.style && (e = {
|
|
1419
1419
|
...e,
|
|
1420
1420
|
style: t.createAnimatedStyle(e.style)
|
|
1421
|
-
}), e = new
|
|
1421
|
+
}), e = new $r(e), br.dependencies = null, [e, r];
|
|
1422
1422
|
}
|
|
1423
1423
|
function yc(e, t) {
|
|
1424
1424
|
return e && (_.fun(e) ? e(t) : e.current = t), t;
|
|
1425
1425
|
}
|
|
1426
|
-
var
|
|
1426
|
+
var ji = Symbol.for("AnimatedComponent"), gc = (e, {
|
|
1427
1427
|
applyAnimatedValues: t = () => !1,
|
|
1428
|
-
createAnimatedStyle: r = (i) => new
|
|
1428
|
+
createAnimatedStyle: r = (i) => new $r(i),
|
|
1429
1429
|
getComponentProps: n = (i) => i
|
|
1430
1430
|
} = {}) => {
|
|
1431
1431
|
const i = {
|
|
@@ -1433,19 +1433,19 @@ var Di = Symbol.for("AnimatedComponent"), gc = (e, {
|
|
|
1433
1433
|
createAnimatedStyle: r,
|
|
1434
1434
|
getComponentProps: n
|
|
1435
1435
|
}, o = (s) => {
|
|
1436
|
-
const a =
|
|
1437
|
-
return _.str(s) ? s = o[s] || (o[s] =
|
|
1436
|
+
const a = Vi(s) || "Anonymous";
|
|
1437
|
+
return _.str(s) ? s = o[s] || (o[s] = Di(s, i)) : s = s[ji] || (s[ji] = Di(s, i)), s.displayName = `Animated(${a})`, s;
|
|
1438
1438
|
};
|
|
1439
1439
|
return Se(e, (s, a) => {
|
|
1440
|
-
_.arr(e) && (a =
|
|
1440
|
+
_.arr(e) && (a = Vi(s)), o[a] = o(s);
|
|
1441
1441
|
}), {
|
|
1442
1442
|
animated: o
|
|
1443
1443
|
};
|
|
1444
|
-
},
|
|
1444
|
+
}, Vi = (e) => _.str(e) ? e : e && _.str(e.displayName) ? e.displayName : _.fun(e) && e.name || null;
|
|
1445
1445
|
function Be(e, ...t) {
|
|
1446
1446
|
return _.fun(e) ? e(...t) : e;
|
|
1447
1447
|
}
|
|
1448
|
-
var Dt = (e, t) => e === !0 || !!(t && e && (_.fun(e) ? e(t) : ne(e).includes(t))), Bo = (e, t) => _.obj(e) ? t && e[t] : e, qo = (e, t) => e.default === !0 ? e[t] : e.default ? e.default[t] : void 0, vc = (e) => e,
|
|
1448
|
+
var Dt = (e, t) => e === !0 || !!(t && e && (_.fun(e) ? e(t) : ne(e).includes(t))), Bo = (e, t) => _.obj(e) ? t && e[t] : e, qo = (e, t) => e.default === !0 ? e[t] : e.default ? e.default[t] : void 0, vc = (e) => e, Zn = (e, t = vc) => {
|
|
1449
1449
|
let r = bc;
|
|
1450
1450
|
e.default && e.default !== !0 && (e = e.default, r = Object.keys(e));
|
|
1451
1451
|
const n = {};
|
|
@@ -1515,7 +1515,7 @@ function Wo(e) {
|
|
|
1515
1515
|
return { ...e };
|
|
1516
1516
|
}
|
|
1517
1517
|
function Bt(e) {
|
|
1518
|
-
return e = Z(e), _.arr(e) ? e.map(Bt) :
|
|
1518
|
+
return e = Z(e), _.arr(e) ? e.map(Bt) : jr(e) ? we.createStringInterpolator({
|
|
1519
1519
|
range: [0, 1],
|
|
1520
1520
|
output: [e, e]
|
|
1521
1521
|
})(1) : e;
|
|
@@ -1525,7 +1525,7 @@ function Ec(e) {
|
|
|
1525
1525
|
return !0;
|
|
1526
1526
|
return !1;
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function vn(e) {
|
|
1529
1529
|
return _.fun(e) || _.arr(e) && _.obj(e[0]);
|
|
1530
1530
|
}
|
|
1531
1531
|
function Sc(e, t) {
|
|
@@ -1536,28 +1536,28 @@ function xc(e, t) {
|
|
|
1536
1536
|
var r;
|
|
1537
1537
|
t && e.ref !== t && ((r = e.ref) == null || r.delete(e), t.add(e), e.ref = t);
|
|
1538
1538
|
}
|
|
1539
|
-
var
|
|
1539
|
+
var kc = {
|
|
1540
1540
|
default: { tension: 170, friction: 26 }
|
|
1541
|
-
},
|
|
1542
|
-
...
|
|
1541
|
+
}, bn = {
|
|
1542
|
+
...kc.default,
|
|
1543
1543
|
mass: 1,
|
|
1544
1544
|
damping: 1,
|
|
1545
1545
|
easing: Xa.linear,
|
|
1546
1546
|
clamp: !1
|
|
1547
|
-
},
|
|
1547
|
+
}, Oc = class {
|
|
1548
1548
|
constructor() {
|
|
1549
|
-
this.velocity = 0, Object.assign(this,
|
|
1549
|
+
this.velocity = 0, Object.assign(this, bn);
|
|
1550
1550
|
}
|
|
1551
1551
|
};
|
|
1552
1552
|
function Pc(e, t, r) {
|
|
1553
|
-
r && (r = { ...r },
|
|
1554
|
-
for (const s in
|
|
1555
|
-
e[s] == null && (e[s] =
|
|
1553
|
+
r && (r = { ...r }, $i(r, t), t = { ...r, ...t }), $i(e, t), Object.assign(e, t);
|
|
1554
|
+
for (const s in bn)
|
|
1555
|
+
e[s] == null && (e[s] = bn[s]);
|
|
1556
1556
|
let { frequency: n, damping: i } = e;
|
|
1557
1557
|
const { mass: o } = e;
|
|
1558
1558
|
return _.und(n) || (n < 0.01 && (n = 0.01), i < 0 && (i = 0), e.tension = Math.pow(2 * Math.PI / n, 2) * o, e.friction = 4 * Math.PI * i * o / n), e;
|
|
1559
1559
|
}
|
|
1560
|
-
function
|
|
1560
|
+
function $i(e, t) {
|
|
1561
1561
|
if (!_.und(t.decay))
|
|
1562
1562
|
e.duration = void 0;
|
|
1563
1563
|
else {
|
|
@@ -1565,9 +1565,9 @@ function Vi(e, t) {
|
|
|
1565
1565
|
(r || !_.und(t.frequency) || !_.und(t.damping) || !_.und(t.mass)) && (e.duration = void 0, e.decay = void 0), r && (e.frequency = void 0);
|
|
1566
1566
|
}
|
|
1567
1567
|
}
|
|
1568
|
-
var
|
|
1568
|
+
var Mi = [], Nc = class {
|
|
1569
1569
|
constructor() {
|
|
1570
|
-
this.changed = !1, this.values =
|
|
1570
|
+
this.changed = !1, this.values = Mi, this.toValues = null, this.fromValues = Mi, this.config = new Oc(), this.immediate = !1;
|
|
1571
1571
|
}
|
|
1572
1572
|
};
|
|
1573
1573
|
function Ho(e, { key: t, props: r, defaultProps: n, state: i, actions: o }) {
|
|
@@ -1596,7 +1596,7 @@ function Ho(e, { key: t, props: r, defaultProps: n, state: i, actions: o }) {
|
|
|
1596
1596
|
}
|
|
1597
1597
|
});
|
|
1598
1598
|
}
|
|
1599
|
-
var
|
|
1599
|
+
var ei = (e, t) => t.length == 1 ? t[0] : t.some((r) => r.cancelled) ? ut(e.get()) : t.every((r) => r.noop) ? Yo(e.get()) : ge(
|
|
1600
1600
|
e.get(),
|
|
1601
1601
|
t.every((r) => r.finished)
|
|
1602
1602
|
), Yo = (e) => ({
|
|
@@ -1617,7 +1617,7 @@ function Go(e, t, r, n) {
|
|
|
1617
1617
|
const { callId: i, parentId: o, onRest: s } = t, { asyncTo: a, promise: u } = r;
|
|
1618
1618
|
return !o && e === a && !t.reset ? u : r.promise = (async () => {
|
|
1619
1619
|
r.asyncId = i, r.asyncTo = e;
|
|
1620
|
-
const l =
|
|
1620
|
+
const l = Zn(
|
|
1621
1621
|
t,
|
|
1622
1622
|
(w, y) => (
|
|
1623
1623
|
// The `onRest` prop is only called when the `runAsync` promise is resolved.
|
|
@@ -1636,19 +1636,19 @@ function Go(e, t, r, n) {
|
|
|
1636
1636
|
if (y)
|
|
1637
1637
|
throw w.result = y, d(w), w;
|
|
1638
1638
|
}, v = (w, y) => {
|
|
1639
|
-
const b = new
|
|
1639
|
+
const b = new zi(), m = new Fi();
|
|
1640
1640
|
return (async () => {
|
|
1641
1641
|
if (we.skipAnimation)
|
|
1642
1642
|
throw qt(r), m.result = ge(n, !1), d(m), m;
|
|
1643
1643
|
p(b);
|
|
1644
1644
|
const S = _.obj(w) ? { ...w } : { ...y, to: w };
|
|
1645
|
-
S.parentId = i, Se(l, (P,
|
|
1646
|
-
_.und(S[
|
|
1645
|
+
S.parentId = i, Se(l, (P, k) => {
|
|
1646
|
+
_.und(S[k]) && (S[k] = P);
|
|
1647
1647
|
});
|
|
1648
|
-
const
|
|
1648
|
+
const O = await n.start(S);
|
|
1649
1649
|
return p(b), r.paused && await new Promise((P) => {
|
|
1650
1650
|
r.resumeQueue.add(P);
|
|
1651
|
-
}),
|
|
1651
|
+
}), O;
|
|
1652
1652
|
})();
|
|
1653
1653
|
};
|
|
1654
1654
|
let E;
|
|
@@ -1661,9 +1661,9 @@ function Go(e, t, r, n) {
|
|
|
1661
1661
|
await v(b);
|
|
1662
1662
|
})(e) : w = Promise.resolve(e(v, n.stop.bind(n))), await Promise.all([w.then(f), h]), E = ge(n.get(), !0, !1);
|
|
1663
1663
|
} catch (w) {
|
|
1664
|
-
if (w instanceof
|
|
1664
|
+
if (w instanceof zi)
|
|
1665
1665
|
E = w.result;
|
|
1666
|
-
else if (w instanceof
|
|
1666
|
+
else if (w instanceof Fi)
|
|
1667
1667
|
E = w.result;
|
|
1668
1668
|
else
|
|
1669
1669
|
throw w;
|
|
@@ -1678,17 +1678,17 @@ function Go(e, t, r, n) {
|
|
|
1678
1678
|
function qt(e, t) {
|
|
1679
1679
|
Tt(e.timeouts, (r) => r.cancel()), e.pauseQueue.clear(), e.resumeQueue.clear(), e.asyncId = e.asyncTo = e.promise = void 0, t && (e.cancelId = t);
|
|
1680
1680
|
}
|
|
1681
|
-
var
|
|
1681
|
+
var zi = class extends Error {
|
|
1682
1682
|
constructor() {
|
|
1683
1683
|
super(
|
|
1684
1684
|
"An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."
|
|
1685
1685
|
);
|
|
1686
1686
|
}
|
|
1687
|
-
},
|
|
1687
|
+
}, Fi = class extends Error {
|
|
1688
1688
|
constructor() {
|
|
1689
1689
|
super("SkipAnimationSignal");
|
|
1690
1690
|
}
|
|
1691
|
-
},
|
|
1691
|
+
}, wn = (e) => e instanceof ti, Cc = 1, ti = class extends Do {
|
|
1692
1692
|
constructor() {
|
|
1693
1693
|
super(...arguments), this.id = Cc++, this._priority = 0;
|
|
1694
1694
|
}
|
|
@@ -1737,13 +1737,13 @@ var Mi = class extends Error {
|
|
|
1737
1737
|
}
|
|
1738
1738
|
/** Tell our children about our new priority */
|
|
1739
1739
|
_onPriorityChange(e) {
|
|
1740
|
-
this.idle ||
|
|
1740
|
+
this.idle || Tr.sort(this), zt(this, {
|
|
1741
1741
|
type: "priority",
|
|
1742
1742
|
parent: this,
|
|
1743
1743
|
priority: e
|
|
1744
1744
|
});
|
|
1745
1745
|
}
|
|
1746
|
-
}, Ke = Symbol.for("SpringPhase"), Ko = 1, Qo = 2, Xo = 4,
|
|
1746
|
+
}, Ke = Symbol.for("SpringPhase"), Ko = 1, Qo = 2, Xo = 4, nn = (e) => (e[Ke] & Ko) > 0, Te = (e) => (e[Ke] & Qo) > 0, Ot = (e) => (e[Ke] & Xo) > 0, Li = (e, t) => t ? e[Ke] |= Qo | Ko : e[Ke] &= -3, Ui = (e, t) => t ? e[Ke] |= Xo : e[Ke] &= -5, Rc = class extends ti {
|
|
1747
1747
|
constructor(e, t) {
|
|
1748
1748
|
if (super(), this.animation = new Nc(), this.defaultProps = {}, this._state = {
|
|
1749
1749
|
paused: !1,
|
|
@@ -1758,7 +1758,7 @@ var Mi = class extends Error {
|
|
|
1758
1758
|
}
|
|
1759
1759
|
/** Equals true when not advancing on each frame. */
|
|
1760
1760
|
get idle() {
|
|
1761
|
-
return !(Te(this) || this._state.asyncTo) ||
|
|
1761
|
+
return !(Te(this) || this._state.asyncTo) || Ot(this);
|
|
1762
1762
|
}
|
|
1763
1763
|
get goal() {
|
|
1764
1764
|
return Z(this.animation.to);
|
|
@@ -1771,7 +1771,7 @@ var Mi = class extends Error {
|
|
|
1771
1771
|
* When true, this value has been animated at least once.
|
|
1772
1772
|
*/
|
|
1773
1773
|
get hasAnimated() {
|
|
1774
|
-
return
|
|
1774
|
+
return nn(this);
|
|
1775
1775
|
}
|
|
1776
1776
|
/**
|
|
1777
1777
|
* When true, this value has an unfinished animation,
|
|
@@ -1784,7 +1784,7 @@ var Mi = class extends Error {
|
|
|
1784
1784
|
* When true, all current and future animations are paused.
|
|
1785
1785
|
*/
|
|
1786
1786
|
get isPaused() {
|
|
1787
|
-
return
|
|
1787
|
+
return Ot(this);
|
|
1788
1788
|
}
|
|
1789
1789
|
/**
|
|
1790
1790
|
*
|
|
@@ -1798,7 +1798,7 @@ var Mi = class extends Error {
|
|
|
1798
1798
|
let t = !0, r = !1;
|
|
1799
1799
|
const n = this.animation;
|
|
1800
1800
|
let { toValues: i } = n;
|
|
1801
|
-
const { config: o } = n, s =
|
|
1801
|
+
const { config: o } = n, s = Vr(n.to);
|
|
1802
1802
|
!s && ce(n.to) && (i = ne(Z(n.to))), n.values.forEach((l, f) => {
|
|
1803
1803
|
if (l.done)
|
|
1804
1804
|
return;
|
|
@@ -1822,13 +1822,13 @@ var Mi = class extends Error {
|
|
|
1822
1822
|
p = E + w / (1 - m) * (1 - S), h = Math.abs(l.lastPosition - p) <= b, y = w * S;
|
|
1823
1823
|
} else {
|
|
1824
1824
|
y = l.lastVelocity == null ? w : l.lastVelocity;
|
|
1825
|
-
const m = o.restVelocity || b / 10, S = o.clamp ? 0 : o.bounce,
|
|
1826
|
-
let
|
|
1827
|
-
const
|
|
1828
|
-
for (let
|
|
1829
|
-
|
|
1830
|
-
const de = -o.tension * 1e-6 * (p - d),
|
|
1831
|
-
y = y + he *
|
|
1825
|
+
const m = o.restVelocity || b / 10, S = o.clamp ? 0 : o.bounce, O = !_.und(S), P = E == d ? l.v0 > 0 : E < d;
|
|
1826
|
+
let k, D = !1;
|
|
1827
|
+
const z = 1, fe = Math.ceil(e / z);
|
|
1828
|
+
for (let G = 0; G < fe && (k = Math.abs(y) > m, !(!k && (h = Math.abs(d - p) <= b, h))); ++G) {
|
|
1829
|
+
O && (D = p == d || p > d == P, D && (y = -y * S, p = d));
|
|
1830
|
+
const de = -o.tension * 1e-6 * (p - d), H = -o.friction * 1e-3 * y, he = (de + H) / o.mass;
|
|
1831
|
+
y = y + he * z, p = p + y * z;
|
|
1832
1832
|
}
|
|
1833
1833
|
}
|
|
1834
1834
|
else {
|
|
@@ -1880,7 +1880,7 @@ var Mi = class extends Error {
|
|
|
1880
1880
|
let r;
|
|
1881
1881
|
return _.und(e) ? (r = this.queue || [], this.queue = []) : r = [_.obj(e) ? e : { ...t, to: e }], Promise.all(
|
|
1882
1882
|
r.map((n) => this._update(n))
|
|
1883
|
-
).then((n) =>
|
|
1883
|
+
).then((n) => ei(this, n));
|
|
1884
1884
|
}
|
|
1885
1885
|
/**
|
|
1886
1886
|
* Stop the current animation, and cancel any delayed updates.
|
|
@@ -1908,20 +1908,20 @@ var Mi = class extends Error {
|
|
|
1908
1908
|
_prepareNode(e) {
|
|
1909
1909
|
const t = this.key || "";
|
|
1910
1910
|
let { to: r, from: n } = e;
|
|
1911
|
-
r = _.obj(r) ? r[t] : r, (r == null ||
|
|
1911
|
+
r = _.obj(r) ? r[t] : r, (r == null || vn(r)) && (r = void 0), n = _.obj(n) ? n[t] : n, n == null && (n = void 0);
|
|
1912
1912
|
const i = { to: r, from: n };
|
|
1913
|
-
return
|
|
1913
|
+
return nn(this) || (e.reverse && ([r, n] = [n, r]), n = Z(n), _.und(n) ? _e(this) || this._set(r) : this._set(n)), i;
|
|
1914
1914
|
}
|
|
1915
1915
|
/** Every update is processed by this method before merging. */
|
|
1916
1916
|
_update({ ...e }, t) {
|
|
1917
1917
|
const { key: r, defaultProps: n } = this;
|
|
1918
1918
|
e.default && Object.assign(
|
|
1919
1919
|
n,
|
|
1920
|
-
|
|
1920
|
+
Zn(
|
|
1921
1921
|
e,
|
|
1922
1922
|
(s, a) => /^on/.test(a) ? Bo(s, r) : s
|
|
1923
1923
|
)
|
|
1924
|
-
),
|
|
1924
|
+
), qi(this, e, "onProps"), Nt(this, "onProps", e, this);
|
|
1925
1925
|
const i = this._prepareNode(e);
|
|
1926
1926
|
if (Object.isFrozen(this))
|
|
1927
1927
|
throw Error(
|
|
@@ -1935,7 +1935,7 @@ var Mi = class extends Error {
|
|
|
1935
1935
|
state: o,
|
|
1936
1936
|
actions: {
|
|
1937
1937
|
pause: () => {
|
|
1938
|
-
|
|
1938
|
+
Ot(this) || (Ui(this, !0), Ct(o.pauseQueue), Nt(
|
|
1939
1939
|
this,
|
|
1940
1940
|
"onPause",
|
|
1941
1941
|
ge(this, Pt(this, this.animation.to)),
|
|
@@ -1943,7 +1943,7 @@ var Mi = class extends Error {
|
|
|
1943
1943
|
));
|
|
1944
1944
|
},
|
|
1945
1945
|
resume: () => {
|
|
1946
|
-
|
|
1946
|
+
Ot(this) && (Ui(this, !1), Te(this) && this._resume(), Ct(o.resumeQueue), Nt(
|
|
1947
1947
|
this,
|
|
1948
1948
|
"onResume",
|
|
1949
1949
|
ge(this, Pt(this, this.animation.to)),
|
|
@@ -1974,11 +1974,11 @@ var Mi = class extends Error {
|
|
|
1974
1974
|
const { key: o, defaultProps: s, animation: a } = this, { to: u, from: l } = a;
|
|
1975
1975
|
let { to: f = u, from: d = l } = e;
|
|
1976
1976
|
i && !n && (!t.default || _.und(f)) && (f = d), t.reverse && ([f, d] = [d, f]);
|
|
1977
|
-
const h = !
|
|
1977
|
+
const h = !ke(d, l);
|
|
1978
1978
|
h && (a.from = d), d = Z(d);
|
|
1979
|
-
const p = !
|
|
1979
|
+
const p = !ke(f, u);
|
|
1980
1980
|
p && this._focus(f);
|
|
1981
|
-
const v =
|
|
1981
|
+
const v = vn(t.to), { config: E } = a, { decay: w, velocity: y } = E;
|
|
1982
1982
|
(n || i) && (E.velocity = 0), t.config && !v && Pc(
|
|
1983
1983
|
E,
|
|
1984
1984
|
Be(t.config, o),
|
|
@@ -1993,43 +1993,43 @@ var Mi = class extends Error {
|
|
|
1993
1993
|
// except for declarative updates. When `reset` is defined, there
|
|
1994
1994
|
// must exist a value to animate from.
|
|
1995
1995
|
_.und(t.reset) ? i && !t.default : !_.und(d) && Dt(t.reset, o)
|
|
1996
|
-
), S = m ? d : this.get(),
|
|
1996
|
+
), S = m ? d : this.get(), O = Bt(f), P = _.num(O) || _.arr(O) || jr(O), k = !v && (!P || Dt(s.immediate || t.immediate, o));
|
|
1997
1997
|
if (p) {
|
|
1998
|
-
const
|
|
1999
|
-
if (
|
|
2000
|
-
if (
|
|
2001
|
-
b = this._set(
|
|
1998
|
+
const G = gn(f);
|
|
1999
|
+
if (G !== b.constructor)
|
|
2000
|
+
if (k)
|
|
2001
|
+
b = this._set(O);
|
|
2002
2002
|
else
|
|
2003
2003
|
throw Error(
|
|
2004
|
-
`Cannot animate between ${b.constructor.name} and ${
|
|
2004
|
+
`Cannot animate between ${b.constructor.name} and ${G.name}, as the "to" prop suggests`
|
|
2005
2005
|
);
|
|
2006
2006
|
}
|
|
2007
2007
|
const D = b.constructor;
|
|
2008
|
-
let
|
|
2009
|
-
if (!
|
|
2010
|
-
const
|
|
2011
|
-
(p ||
|
|
2008
|
+
let z = ce(f), fe = !1;
|
|
2009
|
+
if (!z) {
|
|
2010
|
+
const G = m || !nn(this) && h;
|
|
2011
|
+
(p || G) && (fe = ke(Bt(S), O), z = !fe), (!ke(a.immediate, k) && !k || !ke(E.decay, w) || !ke(E.velocity, y)) && (z = !0);
|
|
2012
2012
|
}
|
|
2013
|
-
if (fe && Te(this) && (a.changed && !m ?
|
|
2014
|
-
const { onRest:
|
|
2015
|
-
T(Tc, (
|
|
2013
|
+
if (fe && Te(this) && (a.changed && !m ? z = !0 : z || this._stop(u)), !v && ((z || ce(u)) && (a.values = b.getPayload(), a.toValues = ce(f) ? null : D == Ut ? [1] : ne(O)), a.immediate != k && (a.immediate = k, !k && !m && this._set(u)), z)) {
|
|
2014
|
+
const { onRest: G } = a;
|
|
2015
|
+
T(Tc, (H) => qi(this, t, H));
|
|
2016
2016
|
const de = ge(this, Pt(this, u));
|
|
2017
2017
|
Ct(this._pendingCalls, de), this._pendingCalls.add(r), a.changed && C.batchedUpdates(() => {
|
|
2018
|
-
var
|
|
2019
|
-
a.changed = !m,
|
|
2018
|
+
var H;
|
|
2019
|
+
a.changed = !m, G == null || G(de, this), m ? Be(s.onRest, de) : (H = a.onStart) == null || H.call(a, de, this);
|
|
2020
2020
|
});
|
|
2021
2021
|
}
|
|
2022
|
-
m && this._set(S), v ? r(Go(t.to, t, this._state, this)) :
|
|
2022
|
+
m && this._set(S), v ? r(Go(t.to, t, this._state, this)) : z ? this._start() : Te(this) && !p ? this._pendingCalls.add(r) : r(Yo(S));
|
|
2023
2023
|
}
|
|
2024
2024
|
/** Update the `animation.to` value, which might be a `FluidValue` */
|
|
2025
2025
|
_focus(e) {
|
|
2026
2026
|
const t = this.animation;
|
|
2027
|
-
e !== t.to && (
|
|
2027
|
+
e !== t.to && (Ai(this) && this._detach(), t.to = e, Ai(this) && this._attach());
|
|
2028
2028
|
}
|
|
2029
2029
|
_attach() {
|
|
2030
2030
|
let e = 0;
|
|
2031
2031
|
const { to: t } = this.animation;
|
|
2032
|
-
ce(t) && (vt(t, this),
|
|
2032
|
+
ce(t) && (vt(t, this), wn(t) && (e = t.priority + 1)), this.priority = e;
|
|
2033
2033
|
}
|
|
2034
2034
|
_detach() {
|
|
2035
2035
|
const { to: e } = this.animation;
|
|
@@ -2043,9 +2043,9 @@ var Mi = class extends Error {
|
|
|
2043
2043
|
const r = Z(e);
|
|
2044
2044
|
if (!_.und(r)) {
|
|
2045
2045
|
const n = _e(this);
|
|
2046
|
-
if (!n || !
|
|
2047
|
-
const i =
|
|
2048
|
-
!n || n.constructor != i ?
|
|
2046
|
+
if (!n || !ke(r, n.getValue())) {
|
|
2047
|
+
const i = gn(r);
|
|
2048
|
+
!n || n.constructor != i ? Jn(this, i.create(r)) : n.setValue(r), n && C.batchedUpdates(() => {
|
|
2049
2049
|
this._onChange(r, t);
|
|
2050
2050
|
});
|
|
2051
2051
|
}
|
|
@@ -2069,10 +2069,10 @@ var Mi = class extends Error {
|
|
|
2069
2069
|
// is added to the frameloop.
|
|
2070
2070
|
_start() {
|
|
2071
2071
|
const e = this.animation;
|
|
2072
|
-
_e(this).reset(Z(e.to)), e.immediate || (e.fromValues = e.values.map((t) => t.lastPosition)), Te(this) || (
|
|
2072
|
+
_e(this).reset(Z(e.to)), e.immediate || (e.fromValues = e.values.map((t) => t.lastPosition)), Te(this) || (Li(this, !0), Ot(this) || this._resume());
|
|
2073
2073
|
}
|
|
2074
2074
|
_resume() {
|
|
2075
|
-
we.skipAnimation ? this.finish() :
|
|
2075
|
+
we.skipAnimation ? this.finish() : Tr.start(this);
|
|
2076
2076
|
}
|
|
2077
2077
|
/**
|
|
2078
2078
|
* Exit the frameloop and notify `onRest` listeners.
|
|
@@ -2081,7 +2081,7 @@ var Mi = class extends Error {
|
|
|
2081
2081
|
*/
|
|
2082
2082
|
_stop(e, t) {
|
|
2083
2083
|
if (Te(this)) {
|
|
2084
|
-
|
|
2084
|
+
Li(this, !1);
|
|
2085
2085
|
const r = this.animation;
|
|
2086
2086
|
T(r.values, (i) => {
|
|
2087
2087
|
i.done = !0;
|
|
@@ -2096,7 +2096,7 @@ var Mi = class extends Error {
|
|
|
2096
2096
|
};
|
|
2097
2097
|
function Pt(e, t) {
|
|
2098
2098
|
const r = Bt(t), n = Bt(e.get());
|
|
2099
|
-
return
|
|
2099
|
+
return ke(n, r);
|
|
2100
2100
|
}
|
|
2101
2101
|
function Jo(e, t = e.loop, r = e.to) {
|
|
2102
2102
|
const n = Be(t);
|
|
@@ -2112,7 +2112,7 @@ function Jo(e, t = e.loop, r = e.to) {
|
|
|
2112
2112
|
// For the "reverse" prop to loop as expected, the "to" prop
|
|
2113
2113
|
// must be undefined. The "reverse" prop is ignored when the
|
|
2114
2114
|
// "to" prop is an array or function.
|
|
2115
|
-
to: !o ||
|
|
2115
|
+
to: !o || vn(r) ? r : void 0,
|
|
2116
2116
|
// Ignore the "from" prop except on reset.
|
|
2117
2117
|
from: s ? e.from : void 0,
|
|
2118
2118
|
reset: s,
|
|
@@ -2124,13 +2124,13 @@ function Jo(e, t = e.loop, r = e.to) {
|
|
|
2124
2124
|
}
|
|
2125
2125
|
function Wt(e) {
|
|
2126
2126
|
const { to: t, from: r } = e = Wo(e), n = /* @__PURE__ */ new Set();
|
|
2127
|
-
return _.obj(t) &&
|
|
2127
|
+
return _.obj(t) && Bi(t, n), _.obj(r) && Bi(r, n), e.keys = n.size ? Array.from(n) : null, e;
|
|
2128
2128
|
}
|
|
2129
2129
|
function Ac(e) {
|
|
2130
2130
|
const t = Wt(e);
|
|
2131
|
-
return _.und(t.default) && (t.default =
|
|
2131
|
+
return _.und(t.default) && (t.default = Zn(t)), t;
|
|
2132
2132
|
}
|
|
2133
|
-
function
|
|
2133
|
+
function Bi(e, t) {
|
|
2134
2134
|
Se(e, (r, n) => r != null && t.add(n));
|
|
2135
2135
|
}
|
|
2136
2136
|
var Tc = [
|
|
@@ -2140,7 +2140,7 @@ var Tc = [
|
|
|
2140
2140
|
"onPause",
|
|
2141
2141
|
"onResume"
|
|
2142
2142
|
];
|
|
2143
|
-
function
|
|
2143
|
+
function qi(e, t, r) {
|
|
2144
2144
|
e.animation[r] = t[r] !== qo(t, r) ? Bo(t[r], e.key) : void 0;
|
|
2145
2145
|
}
|
|
2146
2146
|
function Nt(e, t, ...r) {
|
|
@@ -2198,7 +2198,7 @@ var Ic = ["onStart", "onChange", "onRest"], Dc = 1, jc = class {
|
|
|
2198
2198
|
*/
|
|
2199
2199
|
start(e) {
|
|
2200
2200
|
let { queue: t } = this;
|
|
2201
|
-
return e ? t = ne(e).map(Wt) : this.queue = [], this._flush ? this._flush(this, t) : (ns(this, t),
|
|
2201
|
+
return e ? t = ne(e).map(Wt) : this.queue = [], this._flush ? this._flush(this, t) : (ns(this, t), _n(this, t));
|
|
2202
2202
|
}
|
|
2203
2203
|
/** @internal */
|
|
2204
2204
|
stop(e, t) {
|
|
@@ -2257,9 +2257,9 @@ var Ic = ["onStart", "onChange", "onRest"], Dc = 1, jc = class {
|
|
|
2257
2257
|
C.onFrame(this._onFrame);
|
|
2258
2258
|
}
|
|
2259
2259
|
};
|
|
2260
|
-
function
|
|
2260
|
+
function _n(e, t) {
|
|
2261
2261
|
return Promise.all(t.map((r) => Zo(e, r))).then(
|
|
2262
|
-
(r) =>
|
|
2262
|
+
(r) => ei(e, r)
|
|
2263
2263
|
);
|
|
2264
2264
|
}
|
|
2265
2265
|
async function Zo(e, t, r) {
|
|
@@ -2290,8 +2290,8 @@ async function Zo(e, t, r) {
|
|
|
2290
2290
|
props: t,
|
|
2291
2291
|
state: d,
|
|
2292
2292
|
actions: {
|
|
2293
|
-
pause:
|
|
2294
|
-
resume:
|
|
2293
|
+
pause: mn,
|
|
2294
|
+
resume: mn,
|
|
2295
2295
|
start(E, w) {
|
|
2296
2296
|
p ? (qt(d, e._lastAsyncId), w(ut(e))) : (E.onRest = a, w(
|
|
2297
2297
|
Go(
|
|
@@ -2307,7 +2307,7 @@ async function Zo(e, t, r) {
|
|
|
2307
2307
|
), d.paused && await new Promise((E) => {
|
|
2308
2308
|
d.resumeQueue.add(E);
|
|
2309
2309
|
});
|
|
2310
|
-
const v =
|
|
2310
|
+
const v = ei(e, await Promise.all(h));
|
|
2311
2311
|
if (s && v.finished && !(r && v.noop)) {
|
|
2312
2312
|
const E = Jo(t, s, i);
|
|
2313
2313
|
if (E)
|
|
@@ -2315,7 +2315,7 @@ async function Zo(e, t, r) {
|
|
|
2315
2315
|
}
|
|
2316
2316
|
return u && C.batchedUpdates(() => u(v, e, e.item)), v;
|
|
2317
2317
|
}
|
|
2318
|
-
function
|
|
2318
|
+
function Wi(e, t) {
|
|
2319
2319
|
const r = { ...e.springs };
|
|
2320
2320
|
return t && T(ne(t), (n) => {
|
|
2321
2321
|
_.und(n.keys) && (n = Wt(n)), _.obj(n.to) || (n = { ...n, to: void 0 }), rs(r, n, (i) => ts(i));
|
|
@@ -2340,19 +2340,19 @@ function ns(e, t) {
|
|
|
2340
2340
|
rs(e.springs, r, (n) => ts(n, e));
|
|
2341
2341
|
});
|
|
2342
2342
|
}
|
|
2343
|
-
var
|
|
2343
|
+
var Mr = ({
|
|
2344
2344
|
children: e,
|
|
2345
2345
|
...t
|
|
2346
2346
|
}) => {
|
|
2347
|
-
const r =
|
|
2347
|
+
const r = Ln(wr), n = t.pause || !!r.pause, i = t.immediate || !!r.immediate;
|
|
2348
2348
|
t = uc(() => ({ pause: n, immediate: i }), [n, i]);
|
|
2349
2349
|
const { Provider: o } = wr;
|
|
2350
|
-
return /* @__PURE__ */
|
|
2351
|
-
}, wr = Vc(
|
|
2352
|
-
|
|
2353
|
-
|
|
2350
|
+
return /* @__PURE__ */ Fn.createElement(o, { value: t }, e);
|
|
2351
|
+
}, wr = Vc(Mr, {});
|
|
2352
|
+
Mr.Provider = wr.Provider;
|
|
2353
|
+
Mr.Consumer = wr.Consumer;
|
|
2354
2354
|
function Vc(e, t) {
|
|
2355
|
-
return Object.assign(e,
|
|
2355
|
+
return Object.assign(e, Fn.createContext(t)), e.Provider._context = e, e.Consumer._context = e, e;
|
|
2356
2356
|
}
|
|
2357
2357
|
var $c = () => {
|
|
2358
2358
|
const e = [], t = function(n) {
|
|
@@ -2412,16 +2412,16 @@ function Mc(e, t, r) {
|
|
|
2412
2412
|
ctrls: [],
|
|
2413
2413
|
queue: [],
|
|
2414
2414
|
flush(y, b) {
|
|
2415
|
-
const m =
|
|
2416
|
-
return o.current > 0 && !a.queue.length && !Object.keys(m).some((
|
|
2415
|
+
const m = Wi(y, b);
|
|
2416
|
+
return o.current > 0 && !a.queue.length && !Object.keys(m).some((O) => !y.springs[O]) ? _n(y, b) : new Promise((O) => {
|
|
2417
2417
|
es(y, m), a.queue.push(() => {
|
|
2418
|
-
|
|
2418
|
+
O(_n(y, b));
|
|
2419
2419
|
}), s();
|
|
2420
2420
|
});
|
|
2421
2421
|
}
|
|
2422
2422
|
}),
|
|
2423
2423
|
[]
|
|
2424
|
-
), u = Me([...a.ctrls]), l = [], f =
|
|
2424
|
+
), u = Me([...a.ctrls]), l = [], f = Ii(e) || 0;
|
|
2425
2425
|
tr(() => {
|
|
2426
2426
|
T(u.current.slice(e, f), (y) => {
|
|
2427
2427
|
Sc(y, i), y.stop(!0);
|
|
@@ -2431,12 +2431,12 @@ function Mc(e, t, r) {
|
|
|
2431
2431
|
}, r);
|
|
2432
2432
|
function d(y, b) {
|
|
2433
2433
|
for (let m = y; m < b; m++) {
|
|
2434
|
-
const S = u.current[m] || (u.current[m] = new jc(null, a.flush)),
|
|
2435
|
-
|
|
2434
|
+
const S = u.current[m] || (u.current[m] = new jc(null, a.flush)), O = n ? n(m, S) : t[m];
|
|
2435
|
+
O && (l[m] = Ac(O));
|
|
2436
2436
|
}
|
|
2437
2437
|
}
|
|
2438
|
-
const h = u.current.map((y, b) =>
|
|
2439
|
-
|
|
2438
|
+
const h = u.current.map((y, b) => Wi(y, l[b])), p = Ln(Mr), v = Ii(p), E = p !== v && Ec(p);
|
|
2439
|
+
Xn(() => {
|
|
2440
2440
|
o.current++, a.ctrls = u.current;
|
|
2441
2441
|
const { queue: y } = a;
|
|
2442
2442
|
y.length && (a.queue = [], T(y, (b) => b())), T(u.current, (b, m) => {
|
|
@@ -2458,42 +2458,42 @@ function is(e, t) {
|
|
|
2458
2458
|
);
|
|
2459
2459
|
return r || arguments.length == 2 ? [n, i] : n;
|
|
2460
2460
|
}
|
|
2461
|
-
var zc = class extends
|
|
2461
|
+
var zc = class extends ti {
|
|
2462
2462
|
constructor(e, t) {
|
|
2463
2463
|
super(), this.source = e, this.idle = !0, this._active = /* @__PURE__ */ new Set(), this.calc = $t(...t);
|
|
2464
|
-
const r = this._get(), n =
|
|
2465
|
-
|
|
2464
|
+
const r = this._get(), n = gn(r);
|
|
2465
|
+
Jn(this, n.create(r));
|
|
2466
2466
|
}
|
|
2467
2467
|
advance(e) {
|
|
2468
2468
|
const t = this._get(), r = this.get();
|
|
2469
|
-
|
|
2469
|
+
ke(t, r) || (_e(this).setValue(t), this._onChange(t, this.idle)), !this.idle && Hi(this._active) && on(this);
|
|
2470
2470
|
}
|
|
2471
2471
|
_get() {
|
|
2472
2472
|
const e = _.arr(this.source) ? this.source.map(Z) : ne(Z(this.source));
|
|
2473
2473
|
return this.calc(...e);
|
|
2474
2474
|
}
|
|
2475
2475
|
_start() {
|
|
2476
|
-
this.idle && !
|
|
2476
|
+
this.idle && !Hi(this._active) && (this.idle = !1, T(Vr(this), (e) => {
|
|
2477
2477
|
e.done = !1;
|
|
2478
|
-
}), we.skipAnimation ? (C.batchedUpdates(() => this.advance()),
|
|
2478
|
+
}), we.skipAnimation ? (C.batchedUpdates(() => this.advance()), on(this)) : Tr.start(this));
|
|
2479
2479
|
}
|
|
2480
2480
|
// Observe our sources only when we're observed.
|
|
2481
2481
|
_attach() {
|
|
2482
2482
|
let e = 1;
|
|
2483
2483
|
T(ne(this.source), (t) => {
|
|
2484
|
-
ce(t) && vt(t, this),
|
|
2484
|
+
ce(t) && vt(t, this), wn(t) && (t.idle || this._active.add(t), e = Math.max(e, t.priority + 1));
|
|
2485
2485
|
}), this.priority = e, this._start();
|
|
2486
2486
|
}
|
|
2487
2487
|
// Stop observing our sources once we have no observers.
|
|
2488
2488
|
_detach() {
|
|
2489
2489
|
T(ne(this.source), (e) => {
|
|
2490
2490
|
ce(e) && Ft(e, this);
|
|
2491
|
-
}), this._active.clear(),
|
|
2491
|
+
}), this._active.clear(), on(this);
|
|
2492
2492
|
}
|
|
2493
2493
|
/** @internal */
|
|
2494
2494
|
eventObserved(e) {
|
|
2495
2495
|
e.type == "change" ? e.idle ? this.advance() : (this._active.add(e.parent), this._start()) : e.type == "idle" ? this._active.delete(e.parent) : e.type == "priority" && (this.priority = ne(this.source).reduce(
|
|
2496
|
-
(t, r) => Math.max(t, (
|
|
2496
|
+
(t, r) => Math.max(t, (wn(r) ? r.priority : 0) + 1),
|
|
2497
2497
|
0
|
|
2498
2498
|
));
|
|
2499
2499
|
}
|
|
@@ -2501,11 +2501,11 @@ var zc = class extends ei {
|
|
|
2501
2501
|
function Fc(e) {
|
|
2502
2502
|
return e.idle !== !1;
|
|
2503
2503
|
}
|
|
2504
|
-
function
|
|
2504
|
+
function Hi(e) {
|
|
2505
2505
|
return !e.size || Array.from(e).every(Fc);
|
|
2506
2506
|
}
|
|
2507
|
-
function
|
|
2508
|
-
e.idle || (e.idle = !0, T(
|
|
2507
|
+
function on(e) {
|
|
2508
|
+
e.idle || (e.idle = !0, T(Vr(e), (t) => {
|
|
2509
2509
|
t.done = !0;
|
|
2510
2510
|
}), zt(e, {
|
|
2511
2511
|
type: "idle",
|
|
@@ -2520,7 +2520,7 @@ var os = /^--/;
|
|
|
2520
2520
|
function Lc(e, t) {
|
|
2521
2521
|
return t == null || typeof t == "boolean" || t === "" ? "" : typeof t == "number" && t !== 0 && !os.test(e) && !(jt.hasOwnProperty(e) && jt[e]) ? t + "px" : ("" + t).trim();
|
|
2522
2522
|
}
|
|
2523
|
-
var
|
|
2523
|
+
var Yi = {};
|
|
2524
2524
|
function Uc(e, t) {
|
|
2525
2525
|
if (!e.nodeType || !e.setAttribute)
|
|
2526
2526
|
return !1;
|
|
@@ -2533,7 +2533,7 @@ function Uc(e, t) {
|
|
|
2533
2533
|
viewBox: u,
|
|
2534
2534
|
...l
|
|
2535
2535
|
} = t, f = Object.values(l), d = Object.keys(l).map(
|
|
2536
|
-
(h) => r || e.hasAttribute(h) ? h :
|
|
2536
|
+
(h) => r || e.hasAttribute(h) ? h : Yi[h] || (Yi[h] = h.replace(
|
|
2537
2537
|
/([A-Z])/g,
|
|
2538
2538
|
// Attributes are written in dash case
|
|
2539
2539
|
(p) => "-" + p.toLowerCase()
|
|
@@ -2594,11 +2594,11 @@ var jt = {
|
|
|
2594
2594
|
strokeWidth: !0
|
|
2595
2595
|
}, Bc = (e, t) => e + t.charAt(0).toUpperCase() + t.substring(1), qc = ["Webkit", "Ms", "Moz", "O"];
|
|
2596
2596
|
jt = Object.keys(jt).reduce((e, t) => (qc.forEach((r) => e[Bc(r, t)] = e[t]), e), jt);
|
|
2597
|
-
var Wc = /^(matrix|translate|scale|rotate|skew)/, Hc = /^(translate)/, Yc = /^(rotate|skew)/,
|
|
2597
|
+
var Wc = /^(matrix|translate|scale|rotate|skew)/, Hc = /^(translate)/, Yc = /^(rotate|skew)/, sn = (e, t) => _.num(e) && e !== 0 ? e + t : e, fr = (e, t) => _.arr(e) ? e.every((r) => fr(r, t)) : _.num(e) ? e === t : parseFloat(e) === t, Gc = class extends $r {
|
|
2598
2598
|
constructor({ x: e, y: t, z: r, ...n }) {
|
|
2599
2599
|
const i = [], o = [];
|
|
2600
2600
|
(e || t || r) && (i.push([e || 0, t || 0, r || 0]), o.push((s) => [
|
|
2601
|
-
`translate3d(${s.map((a) =>
|
|
2601
|
+
`translate3d(${s.map((a) => sn(a, "px")).join(",")})`,
|
|
2602
2602
|
// prettier-ignore
|
|
2603
2603
|
fr(s, 0)
|
|
2604
2604
|
])), Se(n, (s, a) => {
|
|
@@ -2610,10 +2610,10 @@ var Wc = /^(matrix|translate|scale|rotate|skew)/, Hc = /^(translate)/, Yc = /^(r
|
|
|
2610
2610
|
const u = Hc.test(a) ? "px" : Yc.test(a) ? "deg" : "";
|
|
2611
2611
|
i.push(ne(s)), o.push(
|
|
2612
2612
|
a === "rotate3d" ? ([l, f, d, h]) => [
|
|
2613
|
-
`rotate3d(${l},${f},${d},${
|
|
2613
|
+
`rotate3d(${l},${f},${d},${sn(h, u)})`,
|
|
2614
2614
|
fr(h, 0)
|
|
2615
2615
|
] : (l) => [
|
|
2616
|
-
`${a}(${l.map((f) =>
|
|
2616
|
+
`${a}(${l.map((f) => sn(f, u)).join(",")})`,
|
|
2617
2617
|
fr(l, a.startsWith("scale") ? 1 : 0)
|
|
2618
2618
|
]
|
|
2619
2619
|
);
|
|
@@ -2814,14 +2814,14 @@ function Jc({
|
|
|
2814
2814
|
fadeIn: i,
|
|
2815
2815
|
characterPreference: o = "simplified"
|
|
2816
2816
|
}) {
|
|
2817
|
-
const s = n ?? "div", [a, u] =
|
|
2817
|
+
const s = n ?? "div", [a, u] = Rr(!1), [l, f] = is(() => ({
|
|
2818
2818
|
opacity: i ? 0 : 1,
|
|
2819
2819
|
transform: i ? "scale(0)" : "scale(1)",
|
|
2820
2820
|
config: { duration: 200 }
|
|
2821
2821
|
}));
|
|
2822
2822
|
gt(() => {
|
|
2823
2823
|
if (!e) return;
|
|
2824
|
-
const P = Math.floor(Math.random() * 11501) + 3500,
|
|
2824
|
+
const P = Math.floor(Math.random() * 11501) + 3500, k = setTimeout(() => {
|
|
2825
2825
|
f.start({
|
|
2826
2826
|
opacity: 0,
|
|
2827
2827
|
transform: "translateY(15px)",
|
|
@@ -2830,7 +2830,7 @@ function Jc({
|
|
|
2830
2830
|
}
|
|
2831
2831
|
});
|
|
2832
2832
|
}, P);
|
|
2833
|
-
return () => clearTimeout(
|
|
2833
|
+
return () => clearTimeout(k);
|
|
2834
2834
|
}, [a, e, f]);
|
|
2835
2835
|
const d = o === "traditional" ? t.traditional : t.simplified, h = e && a ? d : t.english, {
|
|
2836
2836
|
fontSize: p,
|
|
@@ -2840,7 +2840,7 @@ function Jc({
|
|
|
2840
2840
|
letterSpacing: y,
|
|
2841
2841
|
lineHeight: b,
|
|
2842
2842
|
...m
|
|
2843
|
-
} = r || {},
|
|
2843
|
+
} = r || {}, O = {
|
|
2844
2844
|
...m,
|
|
2845
2845
|
...{
|
|
2846
2846
|
fontSize: p,
|
|
@@ -2853,7 +2853,7 @@ function Jc({
|
|
|
2853
2853
|
display: "inline-block",
|
|
2854
2854
|
alignContent: "center"
|
|
2855
2855
|
};
|
|
2856
|
-
return /* @__PURE__ */
|
|
2856
|
+
return /* @__PURE__ */ $.jsx(ss.div, { style: l, children: /* @__PURE__ */ $.jsx(s, { style: O, children: h }) });
|
|
2857
2857
|
}
|
|
2858
2858
|
var te = function() {
|
|
2859
2859
|
return te = Object.assign || function(t) {
|
|
@@ -2880,14 +2880,14 @@ var eu = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
2880
2880
|
return eu.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
2881
2881
|
}
|
|
2882
2882
|
/* Z+1 */
|
|
2883
|
-
),
|
|
2883
|
+
), F = "-ms-", Vt = "-moz-", V = "-webkit-", as = "comm", zr = "rule", ri = "decl", ru = "@import", cs = "@keyframes", nu = "@layer", us = Math.abs, ni = String.fromCharCode, En = Object.assign;
|
|
2884
2884
|
function iu(e, t) {
|
|
2885
|
-
return
|
|
2885
|
+
return Y(e, 0) ^ 45 ? (((t << 2 ^ Y(e, 0)) << 2 ^ Y(e, 1)) << 2 ^ Y(e, 2)) << 2 ^ Y(e, 3) : 0;
|
|
2886
2886
|
}
|
|
2887
2887
|
function ls(e) {
|
|
2888
2888
|
return e.trim();
|
|
2889
2889
|
}
|
|
2890
|
-
function
|
|
2890
|
+
function Oe(e, t) {
|
|
2891
2891
|
return (e = t.exec(e)) ? e[0] : e;
|
|
2892
2892
|
}
|
|
2893
2893
|
function R(e, t, r) {
|
|
@@ -2896,7 +2896,7 @@ function R(e, t, r) {
|
|
|
2896
2896
|
function dr(e, t, r) {
|
|
2897
2897
|
return e.indexOf(t, r);
|
|
2898
2898
|
}
|
|
2899
|
-
function
|
|
2899
|
+
function Y(e, t) {
|
|
2900
2900
|
return e.charCodeAt(t) | 0;
|
|
2901
2901
|
}
|
|
2902
2902
|
function ft(e, t, r) {
|
|
@@ -2914,17 +2914,17 @@ function Rt(e, t) {
|
|
|
2914
2914
|
function ou(e, t) {
|
|
2915
2915
|
return e.map(t).join("");
|
|
2916
2916
|
}
|
|
2917
|
-
function
|
|
2917
|
+
function Gi(e, t) {
|
|
2918
2918
|
return e.filter(function(r) {
|
|
2919
|
-
return !
|
|
2919
|
+
return !Oe(r, t);
|
|
2920
2920
|
});
|
|
2921
2921
|
}
|
|
2922
|
-
var
|
|
2923
|
-
function
|
|
2924
|
-
return { value: e, root: t, parent: r, type: n, props: i, children: o, line:
|
|
2922
|
+
var Fr = 1, dt = 1, ds = 0, le = 0, q = 0, bt = "";
|
|
2923
|
+
function Lr(e, t, r, n, i, o, s, a) {
|
|
2924
|
+
return { value: e, root: t, parent: r, type: n, props: i, children: o, line: Fr, column: dt, length: s, return: "", siblings: a };
|
|
2925
2925
|
}
|
|
2926
2926
|
function Ie(e, t) {
|
|
2927
|
-
return
|
|
2927
|
+
return En(Lr("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
2928
2928
|
}
|
|
2929
2929
|
function at(e) {
|
|
2930
2930
|
for (; e.root; )
|
|
@@ -2935,21 +2935,21 @@ function su() {
|
|
|
2935
2935
|
return q;
|
|
2936
2936
|
}
|
|
2937
2937
|
function au() {
|
|
2938
|
-
return q = le > 0 ?
|
|
2938
|
+
return q = le > 0 ? Y(bt, --le) : 0, dt--, q === 10 && (dt = 1, Fr--), q;
|
|
2939
2939
|
}
|
|
2940
2940
|
function be() {
|
|
2941
|
-
return q = le < ds ?
|
|
2941
|
+
return q = le < ds ? Y(bt, le++) : 0, dt++, q === 10 && (dt = 1, Fr++), q;
|
|
2942
2942
|
}
|
|
2943
2943
|
function He() {
|
|
2944
|
-
return
|
|
2944
|
+
return Y(bt, le);
|
|
2945
2945
|
}
|
|
2946
2946
|
function hr() {
|
|
2947
2947
|
return le;
|
|
2948
2948
|
}
|
|
2949
|
-
function
|
|
2949
|
+
function Ur(e, t) {
|
|
2950
2950
|
return ft(bt, e, t);
|
|
2951
2951
|
}
|
|
2952
|
-
function
|
|
2952
|
+
function Sn(e) {
|
|
2953
2953
|
switch (e) {
|
|
2954
2954
|
// \0 \t \n \r \s whitespace token
|
|
2955
2955
|
case 0:
|
|
@@ -2988,25 +2988,25 @@ function En(e) {
|
|
|
2988
2988
|
return 0;
|
|
2989
2989
|
}
|
|
2990
2990
|
function cu(e) {
|
|
2991
|
-
return
|
|
2991
|
+
return Fr = dt = 1, ds = Ee(bt = e), le = 0, [];
|
|
2992
2992
|
}
|
|
2993
2993
|
function uu(e) {
|
|
2994
2994
|
return bt = "", e;
|
|
2995
2995
|
}
|
|
2996
|
-
function
|
|
2997
|
-
return ls(
|
|
2996
|
+
function an(e) {
|
|
2997
|
+
return ls(Ur(le - 1, xn(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
2998
2998
|
}
|
|
2999
2999
|
function lu(e) {
|
|
3000
3000
|
for (; (q = He()) && q < 33; )
|
|
3001
3001
|
be();
|
|
3002
|
-
return
|
|
3002
|
+
return Sn(e) > 2 || Sn(q) > 3 ? "" : " ";
|
|
3003
3003
|
}
|
|
3004
3004
|
function fu(e, t) {
|
|
3005
3005
|
for (; --t && be() && !(q < 48 || q > 102 || q > 57 && q < 65 || q > 70 && q < 97); )
|
|
3006
3006
|
;
|
|
3007
|
-
return
|
|
3007
|
+
return Ur(e, hr() + (t < 6 && He() == 32 && be() == 32));
|
|
3008
3008
|
}
|
|
3009
|
-
function
|
|
3009
|
+
function xn(e) {
|
|
3010
3010
|
for (; be(); )
|
|
3011
3011
|
switch (q) {
|
|
3012
3012
|
// ] ) " '
|
|
@@ -3015,11 +3015,11 @@ function Sn(e) {
|
|
|
3015
3015
|
// " '
|
|
3016
3016
|
case 34:
|
|
3017
3017
|
case 39:
|
|
3018
|
-
e !== 34 && e !== 39 &&
|
|
3018
|
+
e !== 34 && e !== 39 && xn(q);
|
|
3019
3019
|
break;
|
|
3020
3020
|
// (
|
|
3021
3021
|
case 40:
|
|
3022
|
-
e === 41 &&
|
|
3022
|
+
e === 41 && xn(e);
|
|
3023
3023
|
break;
|
|
3024
3024
|
// \
|
|
3025
3025
|
case 92:
|
|
@@ -3032,41 +3032,41 @@ function du(e, t) {
|
|
|
3032
3032
|
for (; be() && e + q !== 57; )
|
|
3033
3033
|
if (e + q === 84 && He() === 47)
|
|
3034
3034
|
break;
|
|
3035
|
-
return "/*" +
|
|
3035
|
+
return "/*" + Ur(t, le - 1) + "*" + ni(e === 47 ? e : be());
|
|
3036
3036
|
}
|
|
3037
3037
|
function hu(e) {
|
|
3038
|
-
for (; !
|
|
3038
|
+
for (; !Sn(He()); )
|
|
3039
3039
|
be();
|
|
3040
|
-
return
|
|
3040
|
+
return Ur(e, le);
|
|
3041
3041
|
}
|
|
3042
3042
|
function pu(e) {
|
|
3043
3043
|
return uu(pr("", null, null, null, [""], e = cu(e), 0, [0], e));
|
|
3044
3044
|
}
|
|
3045
3045
|
function pr(e, t, r, n, i, o, s, a, u) {
|
|
3046
|
-
for (var l = 0, f = 0, d = s, h = 0, p = 0, v = 0, E = 1, w = 1, y = 1, b = 0, m = "", S = i,
|
|
3046
|
+
for (var l = 0, f = 0, d = s, h = 0, p = 0, v = 0, E = 1, w = 1, y = 1, b = 0, m = "", S = i, O = o, P = n, k = m; w; )
|
|
3047
3047
|
switch (v = b, b = be()) {
|
|
3048
3048
|
// (
|
|
3049
3049
|
case 40:
|
|
3050
|
-
if (v != 108 &&
|
|
3051
|
-
dr(
|
|
3050
|
+
if (v != 108 && Y(k, d - 1) == 58) {
|
|
3051
|
+
dr(k += R(an(b), "&", "&\f"), "&\f", us(l ? a[l - 1] : 0)) != -1 && (y = -1);
|
|
3052
3052
|
break;
|
|
3053
3053
|
}
|
|
3054
3054
|
// " ' [
|
|
3055
3055
|
case 34:
|
|
3056
3056
|
case 39:
|
|
3057
3057
|
case 91:
|
|
3058
|
-
|
|
3058
|
+
k += an(b);
|
|
3059
3059
|
break;
|
|
3060
3060
|
// \t \n \r \s
|
|
3061
3061
|
case 9:
|
|
3062
3062
|
case 10:
|
|
3063
3063
|
case 13:
|
|
3064
3064
|
case 32:
|
|
3065
|
-
|
|
3065
|
+
k += lu(v);
|
|
3066
3066
|
break;
|
|
3067
3067
|
// \
|
|
3068
3068
|
case 92:
|
|
3069
|
-
|
|
3069
|
+
k += fu(hr() - 1, 7);
|
|
3070
3070
|
continue;
|
|
3071
3071
|
// /
|
|
3072
3072
|
case 47:
|
|
@@ -3076,12 +3076,12 @@ function pr(e, t, r, n, i, o, s, a, u) {
|
|
|
3076
3076
|
Rt(mu(du(be(), hr()), t, r, u), u);
|
|
3077
3077
|
break;
|
|
3078
3078
|
default:
|
|
3079
|
-
|
|
3079
|
+
k += "/";
|
|
3080
3080
|
}
|
|
3081
3081
|
break;
|
|
3082
3082
|
// {
|
|
3083
3083
|
case 123 * E:
|
|
3084
|
-
a[l++] = Ee(
|
|
3084
|
+
a[l++] = Ee(k) * y;
|
|
3085
3085
|
// } ; \0
|
|
3086
3086
|
case 125 * E:
|
|
3087
3087
|
case 59:
|
|
@@ -3093,34 +3093,34 @@ function pr(e, t, r, n, i, o, s, a, u) {
|
|
|
3093
3093
|
w = 0;
|
|
3094
3094
|
// ;
|
|
3095
3095
|
case 59 + f:
|
|
3096
|
-
y == -1 && (
|
|
3096
|
+
y == -1 && (k = R(k, /\f/g, "")), p > 0 && Ee(k) - d && Rt(p > 32 ? Qi(k + ";", n, r, d - 1, u) : Qi(R(k, " ", "") + ";", n, r, d - 2, u), u);
|
|
3097
3097
|
break;
|
|
3098
3098
|
// @ ;
|
|
3099
3099
|
case 59:
|
|
3100
|
-
|
|
3100
|
+
k += ";";
|
|
3101
3101
|
// { rule/at-rule
|
|
3102
3102
|
default:
|
|
3103
|
-
if (Rt(P =
|
|
3103
|
+
if (Rt(P = Ki(k, t, r, l, f, i, a, m, S = [], O = [], d, o), o), b === 123)
|
|
3104
3104
|
if (f === 0)
|
|
3105
|
-
pr(
|
|
3105
|
+
pr(k, t, P, P, S, o, d, a, O);
|
|
3106
3106
|
else
|
|
3107
|
-
switch (h === 99 &&
|
|
3107
|
+
switch (h === 99 && Y(k, 3) === 110 ? 100 : h) {
|
|
3108
3108
|
// d l m s
|
|
3109
3109
|
case 100:
|
|
3110
3110
|
case 108:
|
|
3111
3111
|
case 109:
|
|
3112
3112
|
case 115:
|
|
3113
|
-
pr(e, P, P, n && Rt(
|
|
3113
|
+
pr(e, P, P, n && Rt(Ki(e, P, P, 0, 0, i, a, m, i, S = [], d, O), O), i, O, d, a, n ? S : O);
|
|
3114
3114
|
break;
|
|
3115
3115
|
default:
|
|
3116
|
-
pr(
|
|
3116
|
+
pr(k, P, P, P, [""], O, 0, a, O);
|
|
3117
3117
|
}
|
|
3118
3118
|
}
|
|
3119
|
-
l = f = p = 0, E = y = 1, m =
|
|
3119
|
+
l = f = p = 0, E = y = 1, m = k = "", d = s;
|
|
3120
3120
|
break;
|
|
3121
3121
|
// :
|
|
3122
3122
|
case 58:
|
|
3123
|
-
d = 1 + Ee(
|
|
3123
|
+
d = 1 + Ee(k), p = v;
|
|
3124
3124
|
default:
|
|
3125
3125
|
if (E < 1) {
|
|
3126
3126
|
if (b == 123)
|
|
@@ -3128,37 +3128,37 @@ function pr(e, t, r, n, i, o, s, a, u) {
|
|
|
3128
3128
|
else if (b == 125 && E++ == 0 && au() == 125)
|
|
3129
3129
|
continue;
|
|
3130
3130
|
}
|
|
3131
|
-
switch (
|
|
3131
|
+
switch (k += ni(b), b * E) {
|
|
3132
3132
|
// &
|
|
3133
3133
|
case 38:
|
|
3134
|
-
y = f > 0 ? 1 : (
|
|
3134
|
+
y = f > 0 ? 1 : (k += "\f", -1);
|
|
3135
3135
|
break;
|
|
3136
3136
|
// ,
|
|
3137
3137
|
case 44:
|
|
3138
|
-
a[l++] = (Ee(
|
|
3138
|
+
a[l++] = (Ee(k) - 1) * y, y = 1;
|
|
3139
3139
|
break;
|
|
3140
3140
|
// @
|
|
3141
3141
|
case 64:
|
|
3142
|
-
He() === 45 && (
|
|
3142
|
+
He() === 45 && (k += an(be())), h = He(), f = d = Ee(m = k += hu(hr())), b++;
|
|
3143
3143
|
break;
|
|
3144
3144
|
// -
|
|
3145
3145
|
case 45:
|
|
3146
|
-
v === 45 && Ee(
|
|
3146
|
+
v === 45 && Ee(k) == 2 && (E = 0);
|
|
3147
3147
|
}
|
|
3148
3148
|
}
|
|
3149
3149
|
return o;
|
|
3150
3150
|
}
|
|
3151
|
-
function
|
|
3151
|
+
function Ki(e, t, r, n, i, o, s, a, u, l, f, d) {
|
|
3152
3152
|
for (var h = i - 1, p = i === 0 ? o : [""], v = fs(p), E = 0, w = 0, y = 0; E < n; ++E)
|
|
3153
3153
|
for (var b = 0, m = ft(e, h + 1, h = us(w = s[E])), S = e; b < v; ++b)
|
|
3154
3154
|
(S = ls(w > 0 ? p[b] + " " + m : R(m, /&\f/g, p[b]))) && (u[y++] = S);
|
|
3155
|
-
return
|
|
3155
|
+
return Lr(e, t, r, i === 0 ? zr : a, u, l, f, d);
|
|
3156
3156
|
}
|
|
3157
3157
|
function mu(e, t, r, n) {
|
|
3158
|
-
return
|
|
3158
|
+
return Lr(e, t, r, as, ni(su()), ft(e, 2, -2), 0, n);
|
|
3159
3159
|
}
|
|
3160
|
-
function
|
|
3161
|
-
return
|
|
3160
|
+
function Qi(e, t, r, n, i) {
|
|
3161
|
+
return Lr(e, t, r, ri, ft(e, 0, n), ft(e, n + 1, -1), n, i);
|
|
3162
3162
|
}
|
|
3163
3163
|
function hs(e, t, r) {
|
|
3164
3164
|
switch (iu(e, t)) {
|
|
@@ -3204,46 +3204,46 @@ function hs(e, t, r) {
|
|
|
3204
3204
|
case 4810:
|
|
3205
3205
|
case 6968:
|
|
3206
3206
|
case 2756:
|
|
3207
|
-
return V + e + Vt + e +
|
|
3207
|
+
return V + e + Vt + e + F + e + e;
|
|
3208
3208
|
// writing-mode
|
|
3209
3209
|
case 5936:
|
|
3210
|
-
switch (
|
|
3210
|
+
switch (Y(e, t + 11)) {
|
|
3211
3211
|
// vertical-l(r)
|
|
3212
3212
|
case 114:
|
|
3213
|
-
return V + e +
|
|
3213
|
+
return V + e + F + R(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
3214
3214
|
// vertical-r(l)
|
|
3215
3215
|
case 108:
|
|
3216
|
-
return V + e +
|
|
3216
|
+
return V + e + F + R(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
3217
3217
|
// horizontal(-)tb
|
|
3218
3218
|
case 45:
|
|
3219
|
-
return V + e +
|
|
3219
|
+
return V + e + F + R(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
3220
3220
|
}
|
|
3221
3221
|
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
3222
3222
|
case 6828:
|
|
3223
3223
|
case 4268:
|
|
3224
3224
|
case 2903:
|
|
3225
|
-
return V + e +
|
|
3225
|
+
return V + e + F + e + e;
|
|
3226
3226
|
// order
|
|
3227
3227
|
case 6165:
|
|
3228
|
-
return V + e +
|
|
3228
|
+
return V + e + F + "flex-" + e + e;
|
|
3229
3229
|
// align-items
|
|
3230
3230
|
case 5187:
|
|
3231
|
-
return V + e + R(e, /(\w+).+(:[^]+)/, V + "box-$1$2" +
|
|
3231
|
+
return V + e + R(e, /(\w+).+(:[^]+)/, V + "box-$1$2" + F + "flex-$1$2") + e;
|
|
3232
3232
|
// align-self
|
|
3233
3233
|
case 5443:
|
|
3234
|
-
return V + e +
|
|
3234
|
+
return V + e + F + "flex-item-" + R(e, /flex-|-self/g, "") + (Oe(e, /flex-|baseline/) ? "" : F + "grid-row-" + R(e, /flex-|-self/g, "")) + e;
|
|
3235
3235
|
// align-content
|
|
3236
3236
|
case 4675:
|
|
3237
|
-
return V + e +
|
|
3237
|
+
return V + e + F + "flex-line-pack" + R(e, /align-content|flex-|-self/g, "") + e;
|
|
3238
3238
|
// flex-shrink
|
|
3239
3239
|
case 5548:
|
|
3240
|
-
return V + e +
|
|
3240
|
+
return V + e + F + R(e, "shrink", "negative") + e;
|
|
3241
3241
|
// flex-basis
|
|
3242
3242
|
case 5292:
|
|
3243
|
-
return V + e +
|
|
3243
|
+
return V + e + F + R(e, "basis", "preferred-size") + e;
|
|
3244
3244
|
// flex-grow
|
|
3245
3245
|
case 6060:
|
|
3246
|
-
return V + "box-" + R(e, "-grow", "") + V + e +
|
|
3246
|
+
return V + "box-" + R(e, "-grow", "") + V + e + F + R(e, "grow", "positive") + e;
|
|
3247
3247
|
// transition
|
|
3248
3248
|
case 4554:
|
|
3249
3249
|
return V + R(e, /([^-])(transform)/g, "$1" + V + "$2") + e;
|
|
@@ -3256,27 +3256,27 @@ function hs(e, t, r) {
|
|
|
3256
3256
|
return R(e, /(image-set\([^]*)/, V + "$1$`$1");
|
|
3257
3257
|
// justify-content
|
|
3258
3258
|
case 4968:
|
|
3259
|
-
return R(R(e, /(.+:)(flex-)?(.*)/, V + "box-pack:$3" +
|
|
3259
|
+
return R(R(e, /(.+:)(flex-)?(.*)/, V + "box-pack:$3" + F + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + V + e + e;
|
|
3260
3260
|
// justify-self
|
|
3261
3261
|
case 4200:
|
|
3262
|
-
if (!
|
|
3262
|
+
if (!Oe(e, /flex-|baseline/)) return F + "grid-column-align" + ft(e, t) + e;
|
|
3263
3263
|
break;
|
|
3264
3264
|
// grid-template-(columns|rows)
|
|
3265
3265
|
case 2592:
|
|
3266
3266
|
case 3360:
|
|
3267
|
-
return
|
|
3267
|
+
return F + R(e, "template-", "") + e;
|
|
3268
3268
|
// grid-(row|column)-start
|
|
3269
3269
|
case 4384:
|
|
3270
3270
|
case 3616:
|
|
3271
3271
|
return r && r.some(function(n, i) {
|
|
3272
|
-
return t = i,
|
|
3273
|
-
}) ? ~dr(e + (r = r[t].value), "span", 0) ? e :
|
|
3272
|
+
return t = i, Oe(n.props, /grid-\w+-end/);
|
|
3273
|
+
}) ? ~dr(e + (r = r[t].value), "span", 0) ? e : F + R(e, "-start", "") + e + F + "grid-row-span:" + (~dr(r, "span", 0) ? Oe(r, /\d+/) : +Oe(r, /\d+/) - +Oe(e, /\d+/)) + ";" : F + R(e, "-start", "") + e;
|
|
3274
3274
|
// grid-(row|column)-end
|
|
3275
3275
|
case 4896:
|
|
3276
3276
|
case 4128:
|
|
3277
3277
|
return r && r.some(function(n) {
|
|
3278
|
-
return
|
|
3279
|
-
}) ? e :
|
|
3278
|
+
return Oe(n.props, /grid-\w+-start/);
|
|
3279
|
+
}) ? e : F + R(R(e, "-end", "-span"), "span ", "") + e;
|
|
3280
3280
|
// (margin|padding)-inline-(start|end)
|
|
3281
3281
|
case 4095:
|
|
3282
3282
|
case 3583:
|
|
@@ -3297,14 +3297,14 @@ function hs(e, t, r) {
|
|
|
3297
3297
|
case 5021:
|
|
3298
3298
|
case 4765:
|
|
3299
3299
|
if (Ee(e) - 1 - t > 6)
|
|
3300
|
-
switch (
|
|
3300
|
+
switch (Y(e, t + 1)) {
|
|
3301
3301
|
// (m)ax-content, (m)in-content
|
|
3302
3302
|
case 109:
|
|
3303
|
-
if (
|
|
3303
|
+
if (Y(e, t + 4) !== 45)
|
|
3304
3304
|
break;
|
|
3305
3305
|
// (f)ill-available, (f)it-content
|
|
3306
3306
|
case 102:
|
|
3307
|
-
return R(e, /(.+:)(.+)-([^]+)/, "$1" + V + "$2-$3$1" + Vt + (
|
|
3307
|
+
return R(e, /(.+:)(.+)-([^]+)/, "$1" + V + "$2-$3$1" + Vt + (Y(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
3308
3308
|
// (s)tretch
|
|
3309
3309
|
case 115:
|
|
3310
3310
|
return ~dr(e, "stretch", 0) ? hs(R(e, "stretch", "fill-available"), t, r) + e : e;
|
|
@@ -3314,22 +3314,22 @@ function hs(e, t, r) {
|
|
|
3314
3314
|
case 5152:
|
|
3315
3315
|
case 5920:
|
|
3316
3316
|
return R(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, i, o, s, a, u, l) {
|
|
3317
|
-
return
|
|
3317
|
+
return F + i + ":" + o + l + (s ? F + i + "-span:" + (a ? u : +u - +o) + l : "") + e;
|
|
3318
3318
|
});
|
|
3319
3319
|
// position: sticky
|
|
3320
3320
|
case 4949:
|
|
3321
|
-
if (
|
|
3321
|
+
if (Y(e, t + 6) === 121)
|
|
3322
3322
|
return R(e, ":", ":" + V) + e;
|
|
3323
3323
|
break;
|
|
3324
3324
|
// display: (flex|inline-flex|grid|inline-grid)
|
|
3325
3325
|
case 6444:
|
|
3326
|
-
switch (
|
|
3326
|
+
switch (Y(e, Y(e, 14) === 45 ? 18 : 11)) {
|
|
3327
3327
|
// (inline-)?fle(x)
|
|
3328
3328
|
case 120:
|
|
3329
|
-
return R(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + V + (
|
|
3329
|
+
return R(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + V + (Y(e, 14) === 45 ? "inline-" : "") + "box$3$1" + V + "$2$3$1" + F + "$2box$3") + e;
|
|
3330
3330
|
// (inline-)?gri(d)
|
|
3331
3331
|
case 100:
|
|
3332
|
-
return R(e, ":", ":" +
|
|
3332
|
+
return R(e, ":", ":" + F) + e;
|
|
3333
3333
|
}
|
|
3334
3334
|
break;
|
|
3335
3335
|
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
@@ -3352,13 +3352,13 @@ function yu(e, t, r, n) {
|
|
|
3352
3352
|
case nu:
|
|
3353
3353
|
if (e.children.length) break;
|
|
3354
3354
|
case ru:
|
|
3355
|
-
case
|
|
3355
|
+
case ri:
|
|
3356
3356
|
return e.return = e.return || e.value;
|
|
3357
3357
|
case as:
|
|
3358
3358
|
return "";
|
|
3359
3359
|
case cs:
|
|
3360
3360
|
return e.return = e.value + "{" + _r(e.children, n) + "}";
|
|
3361
|
-
case
|
|
3361
|
+
case zr:
|
|
3362
3362
|
if (!Ee(e.value = e.props.join(","))) return "";
|
|
3363
3363
|
}
|
|
3364
3364
|
return Ee(r = _r(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
@@ -3379,23 +3379,23 @@ function vu(e) {
|
|
|
3379
3379
|
function bu(e, t, r, n) {
|
|
3380
3380
|
if (e.length > -1 && !e.return)
|
|
3381
3381
|
switch (e.type) {
|
|
3382
|
-
case
|
|
3382
|
+
case ri:
|
|
3383
3383
|
e.return = hs(e.value, e.length, r);
|
|
3384
3384
|
return;
|
|
3385
3385
|
case cs:
|
|
3386
3386
|
return _r([Ie(e, { value: R(e.value, "@", "@" + V) })], n);
|
|
3387
|
-
case
|
|
3387
|
+
case zr:
|
|
3388
3388
|
if (e.length)
|
|
3389
3389
|
return ou(r = e.props, function(i) {
|
|
3390
|
-
switch (
|
|
3390
|
+
switch (Oe(i, n = /(::plac\w+|:read-\w+)/)) {
|
|
3391
3391
|
// :read-(only|write)
|
|
3392
3392
|
case ":read-only":
|
|
3393
3393
|
case ":read-write":
|
|
3394
|
-
at(Ie(e, { props: [R(i, /:(read-\w+)/, ":" + Vt + "$1")] })), at(Ie(e, { props: [i] })),
|
|
3394
|
+
at(Ie(e, { props: [R(i, /:(read-\w+)/, ":" + Vt + "$1")] })), at(Ie(e, { props: [i] })), En(e, { props: Gi(r, n) });
|
|
3395
3395
|
break;
|
|
3396
3396
|
// :placeholder
|
|
3397
3397
|
case "::placeholder":
|
|
3398
|
-
at(Ie(e, { props: [R(i, /:(plac\w+)/, ":" + V + "input-$1")] })), at(Ie(e, { props: [R(i, /:(plac\w+)/, ":" + Vt + "$1")] })), at(Ie(e, { props: [R(i, /:(plac\w+)/,
|
|
3398
|
+
at(Ie(e, { props: [R(i, /:(plac\w+)/, ":" + V + "input-$1")] })), at(Ie(e, { props: [R(i, /:(plac\w+)/, ":" + Vt + "$1")] })), at(Ie(e, { props: [R(i, /:(plac\w+)/, F + "input-$1")] })), at(Ie(e, { props: [i] })), En(e, { props: Gi(r, n) });
|
|
3399
3399
|
break;
|
|
3400
3400
|
}
|
|
3401
3401
|
return "";
|
|
@@ -3450,8 +3450,8 @@ var wu = {
|
|
|
3450
3450
|
strokeMiterlimit: 1,
|
|
3451
3451
|
strokeOpacity: 1,
|
|
3452
3452
|
strokeWidth: 1
|
|
3453
|
-
}, Xe = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", ps = "active", ms = "data-styled-version",
|
|
3454
|
-
`, Er = typeof window < "u" && "HTMLElement" in window, _u = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"),
|
|
3453
|
+
}, Xe = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", ps = "active", ms = "data-styled-version", Br = "6.1.16", ii = `/*!sc*/
|
|
3454
|
+
`, Er = typeof window < "u" && "HTMLElement" in window, _u = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Xi = /invalid hook call/i, ir = /* @__PURE__ */ new Set(), Eu = function(e, t) {
|
|
3455
3455
|
if (process.env.NODE_ENV !== "production") {
|
|
3456
3456
|
var r = t ? ' with the id of "'.concat(t, '"') : "", n = "The component ".concat(e).concat(r, ` has been created dynamically.
|
|
3457
3457
|
`) + `You may see this warning because you've called styled inside another component.
|
|
@@ -3460,31 +3460,31 @@ To resolve this only create new StyledComponents outside of any render method an
|
|
|
3460
3460
|
var o = !0;
|
|
3461
3461
|
console.error = function(s) {
|
|
3462
3462
|
for (var a = [], u = 1; u < arguments.length; u++) a[u - 1] = arguments[u];
|
|
3463
|
-
|
|
3463
|
+
Xi.test(s) ? (o = !1, ir.delete(n)) : i.apply(void 0, Qe([s], a, !1));
|
|
3464
3464
|
}, Me(), o && !ir.has(n) && (console.warn(n), ir.add(n));
|
|
3465
3465
|
} catch (s) {
|
|
3466
|
-
|
|
3466
|
+
Xi.test(s.message) && ir.delete(n);
|
|
3467
3467
|
} finally {
|
|
3468
3468
|
console.error = i;
|
|
3469
3469
|
}
|
|
3470
3470
|
}
|
|
3471
|
-
},
|
|
3471
|
+
}, qr = Object.freeze([]), ht = Object.freeze({});
|
|
3472
3472
|
function Su(e, t, r) {
|
|
3473
3473
|
return r === void 0 && (r = ht), e.theme !== r.theme && e.theme || t || r.theme;
|
|
3474
3474
|
}
|
|
3475
|
-
var
|
|
3476
|
-
function
|
|
3477
|
-
return e.replace(xu, "-").replace(
|
|
3475
|
+
var kn = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), xu = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, ku = /(^-|-$)/g;
|
|
3476
|
+
function Ji(e) {
|
|
3477
|
+
return e.replace(xu, "-").replace(ku, "");
|
|
3478
3478
|
}
|
|
3479
|
-
var
|
|
3479
|
+
var Ou = /(a)(d)/gi, or = 52, Zi = function(e) {
|
|
3480
3480
|
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
3481
3481
|
};
|
|
3482
3482
|
function On(e) {
|
|
3483
3483
|
var t, r = "";
|
|
3484
|
-
for (t = Math.abs(e); t > or; t = t / or | 0) r =
|
|
3485
|
-
return (
|
|
3484
|
+
for (t = Math.abs(e); t > or; t = t / or | 0) r = Zi(t % or) + r;
|
|
3485
|
+
return (Zi(t % or) + r).replace(Ou, "$1-$2");
|
|
3486
3486
|
}
|
|
3487
|
-
var
|
|
3487
|
+
var cn, ys = 5381, qe = function(e, t) {
|
|
3488
3488
|
for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
|
|
3489
3489
|
return e;
|
|
3490
3490
|
}, gs = function(e) {
|
|
@@ -3496,24 +3496,24 @@ function vs(e) {
|
|
|
3496
3496
|
function bs(e) {
|
|
3497
3497
|
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
3498
3498
|
}
|
|
3499
|
-
function
|
|
3499
|
+
function un(e) {
|
|
3500
3500
|
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
3501
3501
|
}
|
|
3502
|
-
var ws = typeof Symbol == "function" && Symbol.for, _s = ws ? Symbol.for("react.memo") : 60115, Pu = ws ? Symbol.for("react.forward_ref") : 60112, Nu = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Cu = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Es = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Ru = ((
|
|
3503
|
-
function
|
|
3502
|
+
var ws = typeof Symbol == "function" && Symbol.for, _s = ws ? Symbol.for("react.memo") : 60115, Pu = ws ? Symbol.for("react.forward_ref") : 60112, Nu = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Cu = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Es = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Ru = ((cn = {})[Pu] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, cn[_s] = Es, cn);
|
|
3503
|
+
function eo(e) {
|
|
3504
3504
|
return ("type" in (t = e) && t.type.$$typeof) === _s ? Es : "$$typeof" in e ? Ru[e.$$typeof] : Nu;
|
|
3505
3505
|
var t;
|
|
3506
3506
|
}
|
|
3507
|
-
var Au = Object.defineProperty, Tu = Object.getOwnPropertyNames,
|
|
3507
|
+
var Au = Object.defineProperty, Tu = Object.getOwnPropertyNames, to = Object.getOwnPropertySymbols, Iu = Object.getOwnPropertyDescriptor, Du = Object.getPrototypeOf, ro = Object.prototype;
|
|
3508
3508
|
function Ss(e, t, r) {
|
|
3509
3509
|
if (typeof t != "string") {
|
|
3510
|
-
if (
|
|
3510
|
+
if (ro) {
|
|
3511
3511
|
var n = Du(t);
|
|
3512
|
-
n && n !==
|
|
3512
|
+
n && n !== ro && Ss(e, n, r);
|
|
3513
3513
|
}
|
|
3514
3514
|
var i = Tu(t);
|
|
3515
|
-
|
|
3516
|
-
for (var o =
|
|
3515
|
+
to && (i = i.concat(to(t)));
|
|
3516
|
+
for (var o = eo(e), s = eo(t), a = 0; a < i.length; ++a) {
|
|
3517
3517
|
var u = i[a];
|
|
3518
3518
|
if (!(u in Cu || r && r[u] || s && u in s || o && u in o)) {
|
|
3519
3519
|
var l = Iu(t, u);
|
|
@@ -3529,13 +3529,13 @@ function Ss(e, t, r) {
|
|
|
3529
3529
|
function pt(e) {
|
|
3530
3530
|
return typeof e == "function";
|
|
3531
3531
|
}
|
|
3532
|
-
function
|
|
3532
|
+
function oi(e) {
|
|
3533
3533
|
return typeof e == "object" && "styledComponentId" in e;
|
|
3534
3534
|
}
|
|
3535
3535
|
function We(e, t) {
|
|
3536
3536
|
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
3537
3537
|
}
|
|
3538
|
-
function
|
|
3538
|
+
function Pn(e, t) {
|
|
3539
3539
|
if (e.length === 0) return "";
|
|
3540
3540
|
for (var r = e[0], n = 1; n < e.length; n++) r += e[n];
|
|
3541
3541
|
return r;
|
|
@@ -3543,13 +3543,13 @@ function kn(e, t) {
|
|
|
3543
3543
|
function mt(e) {
|
|
3544
3544
|
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
3545
3545
|
}
|
|
3546
|
-
function
|
|
3546
|
+
function Nn(e, t, r) {
|
|
3547
3547
|
if (r === void 0 && (r = !1), !r && !mt(e) && !Array.isArray(e)) return t;
|
|
3548
|
-
if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] =
|
|
3549
|
-
else if (mt(t)) for (var n in t) e[n] =
|
|
3548
|
+
if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = Nn(e[n], t[n]);
|
|
3549
|
+
else if (mt(t)) for (var n in t) e[n] = Nn(e[n], t[n]);
|
|
3550
3550
|
return e;
|
|
3551
3551
|
}
|
|
3552
|
-
function
|
|
3552
|
+
function si(e, t) {
|
|
3553
3553
|
Object.defineProperty(e, "toString", { value: t });
|
|
3554
3554
|
}
|
|
3555
3555
|
var ju = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
@@ -3628,7 +3628,7 @@ var $u = function() {
|
|
|
3628
3628
|
}, e.prototype.getGroup = function(t) {
|
|
3629
3629
|
var r = "";
|
|
3630
3630
|
if (t >= this.length || this.groupSizes[t] === 0) return r;
|
|
3631
|
-
for (var n = this.groupSizes[t], i = this.indexOfGroup(t), o = i + n, s = i; s < o; s++) r += "".concat(this.tag.getRule(s)).concat(
|
|
3631
|
+
for (var n = this.groupSizes[t], i = this.indexOfGroup(t), o = i + n, s = i; s < o; s++) r += "".concat(this.tag.getRule(s)).concat(ii);
|
|
3632
3632
|
return r;
|
|
3633
3633
|
}, e;
|
|
3634
3634
|
}(), Mu = 1 << 30, mr = /* @__PURE__ */ new Map(), Sr = /* @__PURE__ */ new Map(), yr = 1, sr = function(e) {
|
|
@@ -3639,10 +3639,10 @@ var $u = function() {
|
|
|
3639
3639
|
return mr.set(e, t), Sr.set(t, e), t;
|
|
3640
3640
|
}, zu = function(e, t) {
|
|
3641
3641
|
yr = t + 1, mr.set(e, t), Sr.set(t, e);
|
|
3642
|
-
}, Fu = "style[".concat(Xe, "][").concat(ms, '="').concat(
|
|
3642
|
+
}, Fu = "style[".concat(Xe, "][").concat(ms, '="').concat(Br, '"]'), Lu = new RegExp("^".concat(Xe, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Uu = function(e, t, r) {
|
|
3643
3643
|
for (var n, i = r.split(","), o = 0, s = i.length; o < s; o++) (n = i[o]) && e.registerName(t, n);
|
|
3644
3644
|
}, Bu = function(e, t) {
|
|
3645
|
-
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(
|
|
3645
|
+
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(ii), i = [], o = 0, s = n.length; o < s; o++) {
|
|
3646
3646
|
var a = n[o].trim();
|
|
3647
3647
|
if (a) {
|
|
3648
3648
|
var u = a.match(Lu);
|
|
@@ -3652,7 +3652,7 @@ var $u = function() {
|
|
|
3652
3652
|
} else i.push(a);
|
|
3653
3653
|
}
|
|
3654
3654
|
}
|
|
3655
|
-
},
|
|
3655
|
+
}, no = function(e) {
|
|
3656
3656
|
for (var t = document.querySelectorAll(Fu), r = 0, n = t.length; r < n; r++) {
|
|
3657
3657
|
var i = t[r];
|
|
3658
3658
|
i && i.getAttribute(Xe) !== ps && (Bu(e, i), i.parentNode && i.parentNode.removeChild(i));
|
|
@@ -3666,7 +3666,7 @@ var xs = function(e) {
|
|
|
3666
3666
|
var u = Array.from(a.querySelectorAll("style[".concat(Xe, "]")));
|
|
3667
3667
|
return u[u.length - 1];
|
|
3668
3668
|
}(r), o = i !== void 0 ? i.nextSibling : null;
|
|
3669
|
-
n.setAttribute(Xe, ps), n.setAttribute(ms,
|
|
3669
|
+
n.setAttribute(Xe, ps), n.setAttribute(ms, Br);
|
|
3670
3670
|
var s = qu();
|
|
3671
3671
|
return s && n.setAttribute("nonce", s), r.insertBefore(n, o), n;
|
|
3672
3672
|
}, Wu = function() {
|
|
@@ -3718,11 +3718,11 @@ var xs = function(e) {
|
|
|
3718
3718
|
}, e.prototype.getRule = function(t) {
|
|
3719
3719
|
return t < this.length ? this.rules[t] : "";
|
|
3720
3720
|
}, e;
|
|
3721
|
-
}(),
|
|
3721
|
+
}(), io = Er, Gu = { isServer: !Er, useCSSOMInjection: !_u }, ks = function() {
|
|
3722
3722
|
function e(t, r, n) {
|
|
3723
3723
|
t === void 0 && (t = ht), r === void 0 && (r = {});
|
|
3724
3724
|
var i = this;
|
|
3725
|
-
this.options = te(te({}, Gu), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && Er &&
|
|
3725
|
+
this.options = te(te({}, Gu), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && Er && io && (io = !1, no(this)), si(this, function() {
|
|
3726
3726
|
return function(o) {
|
|
3727
3727
|
for (var s = o.getTag(), a = s.length, u = "", l = function(d) {
|
|
3728
3728
|
var h = function(y) {
|
|
@@ -3734,7 +3734,7 @@ var xs = function(e) {
|
|
|
3734
3734
|
var E = "".concat(Xe, ".g").concat(d, '[id="').concat(h, '"]'), w = "";
|
|
3735
3735
|
p !== void 0 && p.forEach(function(y) {
|
|
3736
3736
|
y.length > 0 && (w += "".concat(y, ","));
|
|
3737
|
-
}), u += "".concat(v).concat(E, '{content:"').concat(w, '"}').concat(
|
|
3737
|
+
}), u += "".concat(v).concat(E, '{content:"').concat(w, '"}').concat(ii);
|
|
3738
3738
|
}, f = 0; f < a; f++) l(f);
|
|
3739
3739
|
return u;
|
|
3740
3740
|
}(i);
|
|
@@ -3743,7 +3743,7 @@ var xs = function(e) {
|
|
|
3743
3743
|
return e.registerId = function(t) {
|
|
3744
3744
|
return sr(t);
|
|
3745
3745
|
}, e.prototype.rehydrate = function() {
|
|
3746
|
-
!this.server && Er &&
|
|
3746
|
+
!this.server && Er && no(this);
|
|
3747
3747
|
}, e.prototype.reconstructWithOptions = function(t, r) {
|
|
3748
3748
|
return r === void 0 && (r = !0), new e(te(te({}, this.options), t), this.gs, r && this.names || void 0);
|
|
3749
3749
|
}, e.prototype.allocateGSInstance = function(t) {
|
|
@@ -3772,24 +3772,24 @@ var xs = function(e) {
|
|
|
3772
3772
|
this.tag = void 0;
|
|
3773
3773
|
}, e;
|
|
3774
3774
|
}(), Ku = /&/g, Qu = /^\s*\/\/.*$/gm;
|
|
3775
|
-
function
|
|
3775
|
+
function Os(e, t) {
|
|
3776
3776
|
return e.map(function(r) {
|
|
3777
3777
|
return r.type === "rule" && (r.value = "".concat(t, " ").concat(r.value), r.value = r.value.replaceAll(",", ",".concat(t, " ")), r.props = r.props.map(function(n) {
|
|
3778
3778
|
return "".concat(t, " ").concat(n);
|
|
3779
|
-
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children =
|
|
3779
|
+
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = Os(r.children, t)), r;
|
|
3780
3780
|
});
|
|
3781
3781
|
}
|
|
3782
3782
|
function Xu(e) {
|
|
3783
|
-
var t, r, n, i = ht, o = i.options, s = o === void 0 ? ht : o, a = i.plugins, u = a === void 0 ?
|
|
3783
|
+
var t, r, n, i = ht, o = i.options, s = o === void 0 ? ht : o, a = i.plugins, u = a === void 0 ? qr : a, l = function(h, p, v) {
|
|
3784
3784
|
return v.startsWith(r) && v.endsWith(r) && v.replaceAll(r, "").length > 0 ? ".".concat(t) : h;
|
|
3785
3785
|
}, f = u.slice();
|
|
3786
3786
|
f.push(function(h) {
|
|
3787
|
-
h.type ===
|
|
3787
|
+
h.type === zr && h.value.includes("&") && (h.props[0] = h.props[0].replace(Ku, r).replace(n, l));
|
|
3788
3788
|
}), s.prefix && f.push(bu), f.push(yu);
|
|
3789
3789
|
var d = function(h, p, v, E) {
|
|
3790
3790
|
p === void 0 && (p = ""), v === void 0 && (v = ""), E === void 0 && (E = "&"), t = E, r = p, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
3791
3791
|
var w = h.replace(Qu, ""), y = pu(v || p ? "".concat(v, " ").concat(p, " { ").concat(w, " }") : w);
|
|
3792
|
-
s.namespace && (y =
|
|
3792
|
+
s.namespace && (y = Os(y, s.namespace));
|
|
3793
3793
|
var b = [];
|
|
3794
3794
|
return _r(y, gu(f.concat(vu(function(m) {
|
|
3795
3795
|
return b.push(m);
|
|
@@ -3799,30 +3799,30 @@ function Xu(e) {
|
|
|
3799
3799
|
return p.name || wt(15), qe(h, p.name);
|
|
3800
3800
|
}, ys).toString() : "", d;
|
|
3801
3801
|
}
|
|
3802
|
-
var Ju = new
|
|
3802
|
+
var Ju = new ks(), Cn = Xu(), Ps = re.createContext({ shouldForwardProp: void 0, styleSheet: Ju, stylis: Cn });
|
|
3803
3803
|
Ps.Consumer;
|
|
3804
3804
|
re.createContext(void 0);
|
|
3805
|
-
function
|
|
3806
|
-
return
|
|
3805
|
+
function oo() {
|
|
3806
|
+
return Ln(Ps);
|
|
3807
3807
|
}
|
|
3808
|
-
var
|
|
3808
|
+
var Rn = function() {
|
|
3809
3809
|
function e(t, r) {
|
|
3810
3810
|
var n = this;
|
|
3811
3811
|
this.inject = function(i, o) {
|
|
3812
|
-
o === void 0 && (o =
|
|
3812
|
+
o === void 0 && (o = Cn);
|
|
3813
3813
|
var s = n.name + o.hash;
|
|
3814
3814
|
i.hasNameForId(n.id, s) || i.insertRules(n.id, s, o(n.rules, s, "@keyframes"));
|
|
3815
|
-
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r,
|
|
3815
|
+
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, si(this, function() {
|
|
3816
3816
|
throw wt(12, String(n.name));
|
|
3817
3817
|
});
|
|
3818
3818
|
}
|
|
3819
3819
|
return e.prototype.getName = function(t) {
|
|
3820
|
-
return t === void 0 && (t =
|
|
3820
|
+
return t === void 0 && (t = Cn), this.name + t.hash;
|
|
3821
3821
|
}, e;
|
|
3822
3822
|
}(), Zu = function(e) {
|
|
3823
3823
|
return e >= "A" && e <= "Z";
|
|
3824
3824
|
};
|
|
3825
|
-
function
|
|
3825
|
+
function so(e) {
|
|
3826
3826
|
for (var t = "", r = 0; r < e.length; r++) {
|
|
3827
3827
|
var n = e[r];
|
|
3828
3828
|
if (r === 1 && n === "-" && e[0] === "-") return e;
|
|
@@ -3836,39 +3836,39 @@ var Ns = function(e) {
|
|
|
3836
3836
|
var t, r, n = [];
|
|
3837
3837
|
for (var i in e) {
|
|
3838
3838
|
var o = e[i];
|
|
3839
|
-
e.hasOwnProperty(i) && !Ns(o) && (Array.isArray(o) && o.isCss || pt(o) ? n.push("".concat(
|
|
3839
|
+
e.hasOwnProperty(i) && !Ns(o) && (Array.isArray(o) && o.isCss || pt(o) ? n.push("".concat(so(i), ":"), o, ";") : mt(o) ? n.push.apply(n, Qe(Qe(["".concat(i, " {")], Cs(o), !1), ["}"], !1)) : n.push("".concat(so(i), ": ").concat((t = i, (r = o) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in wu || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
|
|
3840
3840
|
}
|
|
3841
3841
|
return n;
|
|
3842
3842
|
};
|
|
3843
3843
|
function Ye(e, t, r, n) {
|
|
3844
3844
|
if (Ns(e)) return [];
|
|
3845
|
-
if (
|
|
3845
|
+
if (oi(e)) return [".".concat(e.styledComponentId)];
|
|
3846
3846
|
if (pt(e)) {
|
|
3847
3847
|
if (!pt(o = e) || o.prototype && o.prototype.isReactComponent || !t) return [e];
|
|
3848
3848
|
var i = e(t);
|
|
3849
|
-
return process.env.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof
|
|
3849
|
+
return process.env.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof Rn || mt(i) || i === null || console.error("".concat(bs(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Ye(i, t, r, n);
|
|
3850
3850
|
}
|
|
3851
3851
|
var o;
|
|
3852
|
-
return e instanceof
|
|
3852
|
+
return e instanceof Rn ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : mt(e) ? Cs(e) : Array.isArray(e) ? Array.prototype.concat.apply(qr, e.map(function(s) {
|
|
3853
3853
|
return Ye(s, t, r, n);
|
|
3854
3854
|
})) : [e.toString()];
|
|
3855
3855
|
}
|
|
3856
3856
|
function el(e) {
|
|
3857
3857
|
for (var t = 0; t < e.length; t += 1) {
|
|
3858
3858
|
var r = e[t];
|
|
3859
|
-
if (pt(r) && !
|
|
3859
|
+
if (pt(r) && !oi(r)) return !1;
|
|
3860
3860
|
}
|
|
3861
3861
|
return !0;
|
|
3862
3862
|
}
|
|
3863
|
-
var tl = gs(
|
|
3863
|
+
var tl = gs(Br), rl = function() {
|
|
3864
3864
|
function e(t, r, n) {
|
|
3865
|
-
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && el(t), this.componentId = r, this.baseHash = qe(tl, r), this.baseStyle = n,
|
|
3865
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && el(t), this.componentId = r, this.baseHash = qe(tl, r), this.baseStyle = n, ks.registerId(r);
|
|
3866
3866
|
}
|
|
3867
3867
|
return e.prototype.generateAndInjectStyles = function(t, r, n) {
|
|
3868
3868
|
var i = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
|
|
3869
3869
|
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) i = We(i, this.staticRulesId);
|
|
3870
3870
|
else {
|
|
3871
|
-
var o =
|
|
3871
|
+
var o = Pn(Ye(this.rules, t, r, n)), s = On(qe(this.baseHash, o) >>> 0);
|
|
3872
3872
|
if (!r.hasNameForId(this.componentId, s)) {
|
|
3873
3873
|
var a = n(o, ".".concat(s), void 0, this.componentId);
|
|
3874
3874
|
r.insertRules(this.componentId, s, a);
|
|
@@ -3880,7 +3880,7 @@ var tl = gs(Ur), rl = function() {
|
|
|
3880
3880
|
var d = this.rules[f];
|
|
3881
3881
|
if (typeof d == "string") l += d, process.env.NODE_ENV !== "production" && (u = qe(u, d));
|
|
3882
3882
|
else if (d) {
|
|
3883
|
-
var h =
|
|
3883
|
+
var h = Pn(Ye(d, t, r, n));
|
|
3884
3884
|
u = qe(u, h + f), l += h;
|
|
3885
3885
|
}
|
|
3886
3886
|
}
|
|
@@ -3893,63 +3893,63 @@ var tl = gs(Ur), rl = function() {
|
|
|
3893
3893
|
}, e;
|
|
3894
3894
|
}(), Rs = re.createContext(void 0);
|
|
3895
3895
|
Rs.Consumer;
|
|
3896
|
-
var
|
|
3896
|
+
var ln = {}, ao = /* @__PURE__ */ new Set();
|
|
3897
3897
|
function nl(e, t, r) {
|
|
3898
|
-
var n =
|
|
3899
|
-
var P = typeof S != "string" ? "sc" :
|
|
3900
|
-
|
|
3901
|
-
var
|
|
3902
|
-
return
|
|
3898
|
+
var n = oi(e), i = e, o = !un(e), s = t.attrs, a = s === void 0 ? qr : s, u = t.componentId, l = u === void 0 ? function(S, O) {
|
|
3899
|
+
var P = typeof S != "string" ? "sc" : Ji(S);
|
|
3900
|
+
ln[P] = (ln[P] || 0) + 1;
|
|
3901
|
+
var k = "".concat(P, "-").concat(vs(Br + P + ln[P]));
|
|
3902
|
+
return O ? "".concat(O, "-").concat(k) : k;
|
|
3903
3903
|
}(t.displayName, t.parentComponentId) : u, f = t.displayName, d = f === void 0 ? function(S) {
|
|
3904
|
-
return
|
|
3905
|
-
}(e) : f, h = t.displayName && t.componentId ? "".concat(
|
|
3904
|
+
return un(S) ? "styled.".concat(S) : "Styled(".concat(bs(S), ")");
|
|
3905
|
+
}(e) : f, h = t.displayName && t.componentId ? "".concat(Ji(t.displayName), "-").concat(t.componentId) : t.componentId || l, p = n && i.attrs ? i.attrs.concat(a).filter(Boolean) : a, v = t.shouldForwardProp;
|
|
3906
3906
|
if (n && i.shouldForwardProp) {
|
|
3907
3907
|
var E = i.shouldForwardProp;
|
|
3908
3908
|
if (t.shouldForwardProp) {
|
|
3909
3909
|
var w = t.shouldForwardProp;
|
|
3910
|
-
v = function(S,
|
|
3911
|
-
return E(S,
|
|
3910
|
+
v = function(S, O) {
|
|
3911
|
+
return E(S, O) && w(S, O);
|
|
3912
3912
|
};
|
|
3913
3913
|
} else v = E;
|
|
3914
3914
|
}
|
|
3915
3915
|
var y = new rl(r, h, n ? i.componentStyle : void 0);
|
|
3916
|
-
function b(S,
|
|
3917
|
-
return function(P,
|
|
3918
|
-
var
|
|
3919
|
-
process.env.NODE_ENV !== "production" &&
|
|
3920
|
-
var _t = Su(
|
|
3916
|
+
function b(S, O) {
|
|
3917
|
+
return function(P, k, D) {
|
|
3918
|
+
var z = P.attrs, fe = P.componentStyle, G = P.defaultProps, de = P.foldedComponentIds, H = P.styledComponentId, he = P.target, Fe = re.useContext(Rs), Jt = oo(), et = P.shouldForwardProp || Jt.shouldForwardProp;
|
|
3919
|
+
process.env.NODE_ENV !== "production" && Si(H);
|
|
3920
|
+
var _t = Su(k, Fe, G) || ht, se = function(rt, xe, Re) {
|
|
3921
3921
|
for (var pe, me = te(te({}, xe), { className: void 0, theme: Re }), Ae = 0; Ae < rt.length; Ae += 1) {
|
|
3922
3922
|
var nt = pt(pe = rt[Ae]) ? pe(me) : pe;
|
|
3923
3923
|
for (var ye in nt) me[ye] = ye === "className" ? We(me[ye], nt[ye]) : ye === "style" ? te(te({}, me[ye]), nt[ye]) : nt[ye];
|
|
3924
3924
|
}
|
|
3925
3925
|
return xe.className && (me.className = We(me.className, xe.className)), me;
|
|
3926
|
-
}(
|
|
3927
|
-
for (var
|
|
3926
|
+
}(z, k, _t), Ne = se.as || he, Ce = {};
|
|
3927
|
+
for (var Q in se) se[Q] === void 0 || Q[0] === "$" || Q === "as" || Q === "theme" && se.theme === _t || (Q === "forwardedAs" ? Ce.as = se.forwardedAs : et && !et(Q, Ne) || (Ce[Q] = se[Q], et || process.env.NODE_ENV !== "development" || tu(Q) || ao.has(Q) || !kn.has(Ne) || (ao.add(Q), console.warn('styled-components: it looks like an unknown prop "'.concat(Q, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
3928
3928
|
var tt = function(rt, xe) {
|
|
3929
|
-
var Re =
|
|
3930
|
-
return process.env.NODE_ENV !== "production" &&
|
|
3929
|
+
var Re = oo(), pe = rt.generateAndInjectStyles(xe, Re.styleSheet, Re.stylis);
|
|
3930
|
+
return process.env.NODE_ENV !== "production" && Si(pe), pe;
|
|
3931
3931
|
}(fe, se);
|
|
3932
3932
|
process.env.NODE_ENV !== "production" && P.warnTooManyClasses && P.warnTooManyClasses(tt);
|
|
3933
|
-
var Et = We(de,
|
|
3934
|
-
return tt && (Et += " " + tt), se.className && (Et += " " + se.className), Ce[
|
|
3935
|
-
}(m, S,
|
|
3933
|
+
var Et = We(de, H);
|
|
3934
|
+
return tt && (Et += " " + tt), se.className && (Et += " " + se.className), Ce[un(Ne) && !kn.has(Ne) ? "class" : "className"] = Et, D && (Ce.ref = D), Pa(Ne, Ce);
|
|
3935
|
+
}(m, S, O);
|
|
3936
3936
|
}
|
|
3937
3937
|
b.displayName = d;
|
|
3938
3938
|
var m = re.forwardRef(b);
|
|
3939
3939
|
return m.attrs = p, m.componentStyle = y, m.displayName = d, m.shouldForwardProp = v, m.foldedComponentIds = n ? We(i.foldedComponentIds, i.styledComponentId) : "", m.styledComponentId = h, m.target = n ? i.target : e, Object.defineProperty(m, "defaultProps", { get: function() {
|
|
3940
3940
|
return this._foldedDefaultProps;
|
|
3941
3941
|
}, set: function(S) {
|
|
3942
|
-
this._foldedDefaultProps = n ? function(
|
|
3943
|
-
for (var P = [],
|
|
3944
|
-
for (var D = 0,
|
|
3945
|
-
return
|
|
3942
|
+
this._foldedDefaultProps = n ? function(O) {
|
|
3943
|
+
for (var P = [], k = 1; k < arguments.length; k++) P[k - 1] = arguments[k];
|
|
3944
|
+
for (var D = 0, z = P; D < z.length; D++) Nn(O, z[D], !0);
|
|
3945
|
+
return O;
|
|
3946
3946
|
}({}, i.defaultProps, S) : S;
|
|
3947
|
-
} }), process.env.NODE_ENV !== "production" && (Eu(d, h), m.warnTooManyClasses = /* @__PURE__ */ function(S,
|
|
3948
|
-
var P = {},
|
|
3947
|
+
} }), process.env.NODE_ENV !== "production" && (Eu(d, h), m.warnTooManyClasses = /* @__PURE__ */ function(S, O) {
|
|
3948
|
+
var P = {}, k = !1;
|
|
3949
3949
|
return function(D) {
|
|
3950
|
-
if (!
|
|
3951
|
-
var
|
|
3952
|
-
console.warn("Over ".concat(200, " classes were generated for component ").concat(S).concat(
|
|
3950
|
+
if (!k && (P[D] = !0, Object.keys(P).length >= 200)) {
|
|
3951
|
+
var z = O ? ' with the id of "'.concat(O, '"') : "";
|
|
3952
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(S).concat(z, `.
|
|
3953
3953
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
3954
3954
|
Example:
|
|
3955
3955
|
const Component = styled.div.attrs(props => ({
|
|
@@ -3958,49 +3958,49 @@ Example:
|
|
|
3958
3958
|
},
|
|
3959
3959
|
}))\`width: 100%;\`
|
|
3960
3960
|
|
|
3961
|
-
<Component />`),
|
|
3961
|
+
<Component />`), k = !0, P = {};
|
|
3962
3962
|
}
|
|
3963
3963
|
};
|
|
3964
|
-
}(d, h)),
|
|
3964
|
+
}(d, h)), si(m, function() {
|
|
3965
3965
|
return ".".concat(m.styledComponentId);
|
|
3966
3966
|
}), o && Ss(m, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), m;
|
|
3967
3967
|
}
|
|
3968
|
-
function
|
|
3968
|
+
function co(e, t) {
|
|
3969
3969
|
for (var r = [e[0]], n = 0, i = t.length; n < i; n += 1) r.push(t[n], e[n + 1]);
|
|
3970
3970
|
return r;
|
|
3971
3971
|
}
|
|
3972
|
-
var
|
|
3972
|
+
var uo = function(e) {
|
|
3973
3973
|
return Object.assign(e, { isCss: !0 });
|
|
3974
3974
|
};
|
|
3975
3975
|
function As(e) {
|
|
3976
3976
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
3977
|
-
if (pt(e) || mt(e)) return
|
|
3977
|
+
if (pt(e) || mt(e)) return uo(Ye(co(qr, Qe([e], t, !0))));
|
|
3978
3978
|
var n = e;
|
|
3979
|
-
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? Ye(n) :
|
|
3979
|
+
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? Ye(n) : uo(Ye(co(n, t)));
|
|
3980
3980
|
}
|
|
3981
|
-
function
|
|
3981
|
+
function An(e, t, r) {
|
|
3982
3982
|
if (r === void 0 && (r = ht), !t) throw wt(1, t);
|
|
3983
3983
|
var n = function(i) {
|
|
3984
3984
|
for (var o = [], s = 1; s < arguments.length; s++) o[s - 1] = arguments[s];
|
|
3985
3985
|
return e(t, r, As.apply(void 0, Qe([i], o, !1)));
|
|
3986
3986
|
};
|
|
3987
3987
|
return n.attrs = function(i) {
|
|
3988
|
-
return
|
|
3988
|
+
return An(e, t, te(te({}, r), { attrs: Array.prototype.concat(r.attrs, i).filter(Boolean) }));
|
|
3989
3989
|
}, n.withConfig = function(i) {
|
|
3990
|
-
return
|
|
3990
|
+
return An(e, t, te(te({}, r), i));
|
|
3991
3991
|
}, n;
|
|
3992
3992
|
}
|
|
3993
3993
|
var Ts = function(e) {
|
|
3994
|
-
return
|
|
3995
|
-
},
|
|
3996
|
-
|
|
3997
|
-
|
|
3994
|
+
return An(nl, e);
|
|
3995
|
+
}, W = Ts;
|
|
3996
|
+
kn.forEach(function(e) {
|
|
3997
|
+
W[e] = Ts(e);
|
|
3998
3998
|
});
|
|
3999
3999
|
function il(e) {
|
|
4000
4000
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
4001
4001
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
|
|
4002
|
-
var n =
|
|
4003
|
-
return new
|
|
4002
|
+
var n = Pn(As.apply(void 0, Qe([e], t, !1))), i = vs(n);
|
|
4003
|
+
return new Rn(i, n);
|
|
4004
4004
|
}
|
|
4005
4005
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
4006
4006
|
Perhaps you're looking to import 'styled-components/native'?
|
|
@@ -4019,7 +4019,7 @@ const ol = il`
|
|
|
4019
4019
|
100% {
|
|
4020
4020
|
transform: scale(1);
|
|
4021
4021
|
}
|
|
4022
|
-
`, sl =
|
|
4022
|
+
`, sl = W.div`
|
|
4023
4023
|
display: inline-block;
|
|
4024
4024
|
position: relative;
|
|
4025
4025
|
overflow: hidden;
|
|
@@ -4030,7 +4030,7 @@ const ol = il`
|
|
|
4030
4030
|
&:active {
|
|
4031
4031
|
animation: ${ol} 0.2s;
|
|
4032
4032
|
}
|
|
4033
|
-
`, al =
|
|
4033
|
+
`, al = W.button`
|
|
4034
4034
|
display: flex;
|
|
4035
4035
|
align-items: center;
|
|
4036
4036
|
position: relative;
|
|
@@ -4049,7 +4049,7 @@ const ol = il`
|
|
|
4049
4049
|
background-color: #ffb652;
|
|
4050
4050
|
color: black;
|
|
4051
4051
|
}
|
|
4052
|
-
`, cl =
|
|
4052
|
+
`, cl = W.div`
|
|
4053
4053
|
display: flex;
|
|
4054
4054
|
margin-right: 1.25rem;
|
|
4055
4055
|
|
|
@@ -4063,7 +4063,7 @@ var Is = {
|
|
|
4063
4063
|
className: void 0,
|
|
4064
4064
|
style: void 0,
|
|
4065
4065
|
attr: void 0
|
|
4066
|
-
},
|
|
4066
|
+
}, lo = re.createContext && /* @__PURE__ */ re.createContext(Is), ul = ["attr", "size", "title"];
|
|
4067
4067
|
function ll(e, t) {
|
|
4068
4068
|
if (e == null) return {};
|
|
4069
4069
|
var r = fl(e, t), n, i;
|
|
@@ -4094,7 +4094,7 @@ function xr() {
|
|
|
4094
4094
|
return e;
|
|
4095
4095
|
}, xr.apply(this, arguments);
|
|
4096
4096
|
}
|
|
4097
|
-
function
|
|
4097
|
+
function fo(e, t) {
|
|
4098
4098
|
var r = Object.keys(e);
|
|
4099
4099
|
if (Object.getOwnPropertySymbols) {
|
|
4100
4100
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -4104,12 +4104,12 @@ function lo(e, t) {
|
|
|
4104
4104
|
}
|
|
4105
4105
|
return r;
|
|
4106
4106
|
}
|
|
4107
|
-
function
|
|
4107
|
+
function kr(e) {
|
|
4108
4108
|
for (var t = 1; t < arguments.length; t++) {
|
|
4109
4109
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
4110
|
-
t % 2 ?
|
|
4110
|
+
t % 2 ? fo(Object(r), !0).forEach(function(n) {
|
|
4111
4111
|
dl(e, n, r[n]);
|
|
4112
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
4112
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : fo(Object(r)).forEach(function(n) {
|
|
4113
4113
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
4114
4114
|
});
|
|
4115
4115
|
}
|
|
@@ -4133,13 +4133,13 @@ function pl(e, t) {
|
|
|
4133
4133
|
return (t === "string" ? String : Number)(e);
|
|
4134
4134
|
}
|
|
4135
4135
|
function Ds(e) {
|
|
4136
|
-
return e && e.map((t, r) => /* @__PURE__ */ re.createElement(t.tag,
|
|
4136
|
+
return e && e.map((t, r) => /* @__PURE__ */ re.createElement(t.tag, kr({
|
|
4137
4137
|
key: r
|
|
4138
4138
|
}, t.attr), Ds(t.child)));
|
|
4139
4139
|
}
|
|
4140
4140
|
function ze(e) {
|
|
4141
4141
|
return (t) => /* @__PURE__ */ re.createElement(ml, xr({
|
|
4142
|
-
attr:
|
|
4142
|
+
attr: kr({}, e.attr)
|
|
4143
4143
|
}, t), Ds(e.child));
|
|
4144
4144
|
}
|
|
4145
4145
|
function ml(e) {
|
|
@@ -4155,7 +4155,7 @@ function ml(e) {
|
|
|
4155
4155
|
strokeWidth: "0"
|
|
4156
4156
|
}, r.attr, n, s, {
|
|
4157
4157
|
className: u,
|
|
4158
|
-
style:
|
|
4158
|
+
style: kr(kr({
|
|
4159
4159
|
color: e.color || r.color
|
|
4160
4160
|
}, r.style), e.style),
|
|
4161
4161
|
height: a,
|
|
@@ -4163,7 +4163,7 @@ function ml(e) {
|
|
|
4163
4163
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4164
4164
|
}), o && /* @__PURE__ */ re.createElement("title", null, o), e.children);
|
|
4165
4165
|
};
|
|
4166
|
-
return
|
|
4166
|
+
return lo !== void 0 ? /* @__PURE__ */ re.createElement(lo.Consumer, null, (r) => t(r)) : t(Is);
|
|
4167
4167
|
}
|
|
4168
4168
|
function yl(e) {
|
|
4169
4169
|
return ze({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z" }, child: [] }] })(e);
|
|
@@ -4171,7 +4171,7 @@ function yl(e) {
|
|
|
4171
4171
|
function gl(e) {
|
|
4172
4172
|
return ze({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "line", attr: { x1: "22", y1: "2", x2: "11", y2: "13" }, child: [] }, { tag: "polygon", attr: { points: "22 2 15 22 11 13 2 9 22 2" }, child: [] }] })(e);
|
|
4173
4173
|
}
|
|
4174
|
-
const
|
|
4174
|
+
const jf = ({
|
|
4175
4175
|
iconComponent: e,
|
|
4176
4176
|
buttonText: t,
|
|
4177
4177
|
buttonType: r = "primary",
|
|
@@ -4179,13 +4179,13 @@ const Rf = ({
|
|
|
4179
4179
|
characterPreference: i
|
|
4180
4180
|
}) => {
|
|
4181
4181
|
let o;
|
|
4182
|
-
e === "plus" ? o = /* @__PURE__ */
|
|
4182
|
+
e === "plus" ? o = /* @__PURE__ */ $.jsx(yl, {}) : e === "send" && (o = /* @__PURE__ */ $.jsx(gl, {}));
|
|
4183
4183
|
const s = () => {
|
|
4184
4184
|
n && n();
|
|
4185
4185
|
};
|
|
4186
|
-
return /* @__PURE__ */
|
|
4187
|
-
/* @__PURE__ */
|
|
4188
|
-
/* @__PURE__ */
|
|
4186
|
+
return /* @__PURE__ */ $.jsx(sl, { onClick: s, children: /* @__PURE__ */ $.jsxs(al, { className: r, children: [
|
|
4187
|
+
/* @__PURE__ */ $.jsx(cl, { children: o }),
|
|
4188
|
+
/* @__PURE__ */ $.jsx(
|
|
4189
4189
|
Jc,
|
|
4190
4190
|
{
|
|
4191
4191
|
textStyles: { lineHeight: "0.8rem", minWidth: "3rem" },
|
|
@@ -4195,7 +4195,7 @@ const Rf = ({
|
|
|
4195
4195
|
}
|
|
4196
4196
|
)
|
|
4197
4197
|
] }) });
|
|
4198
|
-
}, vl =
|
|
4198
|
+
}, vl = W(ss.div)`
|
|
4199
4199
|
width: 2.5rem;
|
|
4200
4200
|
height: 2.5rem;
|
|
4201
4201
|
border-radius: 50%;
|
|
@@ -4204,7 +4204,7 @@ const Rf = ({
|
|
|
4204
4204
|
align-items: center;
|
|
4205
4205
|
justify-content: center;
|
|
4206
4206
|
cursor: pointer;
|
|
4207
|
-
`, bl =
|
|
4207
|
+
`, bl = W.span`
|
|
4208
4208
|
display: flex;
|
|
4209
4209
|
color: black;
|
|
4210
4210
|
font-size: 1.125rem;
|
|
@@ -4215,7 +4215,7 @@ function wl(e) {
|
|
|
4215
4215
|
function _l(e) {
|
|
4216
4216
|
return ze({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M0 .5A.5.5 0 0 1 .5 0h3a.5.5 0 0 1 0 1H1v2.5a.5.5 0 0 1-1 0zm12 0a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-1 0V1h-2.5a.5.5 0 0 1-.5-.5M.5 12a.5.5 0 0 1 .5.5V15h2.5a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5m15 0a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1 0-1H15v-2.5a.5.5 0 0 1 .5-.5M4 4h1v1H4z" }, child: [] }, { tag: "path", attr: { d: "M7 2H2v5h5zM3 3h3v3H3zm2 8H4v1h1z" }, child: [] }, { tag: "path", attr: { d: "M7 9H2v5h5zm-4 1h3v3H3zm8-6h1v1h-1z" }, child: [] }, { tag: "path", attr: { d: "M9 2h5v5H9zm1 1v3h3V3zM8 8v2h1v1H8v1h2v-2h1v2h1v-1h2v-1h-3V8zm2 2H9V9h1zm4 2h-1v1h-2v1h3zm-4 2v-1H8v1z" }, child: [] }, { tag: "path", attr: { d: "M12 9h2V8h-2z" }, child: [] }] })(e);
|
|
4217
4217
|
}
|
|
4218
|
-
const
|
|
4218
|
+
const Vf = ({ iconComponent: e, onClick: t }) => {
|
|
4219
4219
|
const r = is({
|
|
4220
4220
|
from: { opacity: 0, transform: "scale(0.5)" },
|
|
4221
4221
|
to: { opacity: 1, transform: "scale(1)" }
|
|
@@ -4223,18 +4223,18 @@ const Af = ({ iconComponent: e, onClick: t }) => {
|
|
|
4223
4223
|
t && t();
|
|
4224
4224
|
};
|
|
4225
4225
|
let i;
|
|
4226
|
-
return e === "person" ? i = /* @__PURE__ */
|
|
4226
|
+
return e === "person" ? i = /* @__PURE__ */ $.jsx(wl, {}) : e === "qr" && (i = /* @__PURE__ */ $.jsx(_l, {})), /* @__PURE__ */ $.jsx(vl, { style: r, onClick: n, children: /* @__PURE__ */ $.jsx(bl, { children: i }) });
|
|
4227
4227
|
};
|
|
4228
4228
|
function El(e) {
|
|
4229
4229
|
return ze({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "48", d: "M328 112 184 256l144 144" }, child: [] }] })(e);
|
|
4230
4230
|
}
|
|
4231
|
-
const
|
|
4231
|
+
const $f = ({ size: e, onClick: t }) => {
|
|
4232
4232
|
const r = () => {
|
|
4233
4233
|
t && t();
|
|
4234
4234
|
};
|
|
4235
|
-
return /* @__PURE__ */
|
|
4235
|
+
return /* @__PURE__ */ $.jsx(El, { size: e ?? "1.5rem", onClick: r });
|
|
4236
4236
|
};
|
|
4237
|
-
|
|
4237
|
+
W.div`
|
|
4238
4238
|
position: absolute;
|
|
4239
4239
|
left: 0;
|
|
4240
4240
|
right: 0;
|
|
@@ -4242,7 +4242,7 @@ X.div`
|
|
|
4242
4242
|
flex-direction: column;
|
|
4243
4243
|
z-index: 1;
|
|
4244
4244
|
`;
|
|
4245
|
-
|
|
4245
|
+
W.div`
|
|
4246
4246
|
display: flex;
|
|
4247
4247
|
flex-direction: column;
|
|
4248
4248
|
padding: 1.5rem var(--app-standard-padding);
|
|
@@ -4250,17 +4250,17 @@ X.div`
|
|
|
4250
4250
|
gap: 2rem;
|
|
4251
4251
|
justify-self: center;
|
|
4252
4252
|
`;
|
|
4253
|
-
|
|
4253
|
+
W.div`
|
|
4254
4254
|
display: flex;
|
|
4255
4255
|
flex-direction: column;
|
|
4256
4256
|
gap: 1.5rem;
|
|
4257
4257
|
`;
|
|
4258
|
-
const
|
|
4258
|
+
const Mf = W.ul`
|
|
4259
4259
|
display: flex;
|
|
4260
4260
|
flex-direction: column;
|
|
4261
4261
|
justify-content: center;
|
|
4262
4262
|
padding-inline-start: unset;
|
|
4263
|
-
`, Sl =
|
|
4263
|
+
`, Sl = W.li`
|
|
4264
4264
|
position: relative;
|
|
4265
4265
|
list-style: none;
|
|
4266
4266
|
|
|
@@ -4272,63 +4272,148 @@ const If = X.ul`
|
|
|
4272
4272
|
height: 1px;
|
|
4273
4273
|
background-color: rgba(0, 0, 0, 0.5);
|
|
4274
4274
|
}
|
|
4275
|
-
`, xl =
|
|
4275
|
+
`, xl = W.div`
|
|
4276
4276
|
display: flex;
|
|
4277
4277
|
flex-direction: row;
|
|
4278
4278
|
justify-content: space-between;
|
|
4279
4279
|
align-items: center;
|
|
4280
|
-
`,
|
|
4280
|
+
`, kl = W.div`
|
|
4281
4281
|
display: flex;
|
|
4282
4282
|
flex-direction: row;
|
|
4283
4283
|
gap: 2rem;
|
|
4284
4284
|
align-items: center;
|
|
4285
|
-
`,
|
|
4285
|
+
`, ho = W.div`
|
|
4286
4286
|
display: flex;
|
|
4287
4287
|
flex-direction: column;
|
|
4288
4288
|
justify-content: center;
|
|
4289
|
-
`,
|
|
4289
|
+
`, Ol = W.p`
|
|
4290
4290
|
font-size: 1rem;
|
|
4291
4291
|
`;
|
|
4292
4292
|
function Pl(e) {
|
|
4293
4293
|
return ze({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "m12.87 15.07-2.54-2.51.03-.03A17.52 17.52 0 0 0 14.07 6H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7 1.62-4.33L19.12 17h-3.24z" }, child: [] }] })(e);
|
|
4294
4294
|
}
|
|
4295
|
-
function
|
|
4295
|
+
function Nl(e) {
|
|
4296
4296
|
return ze({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" }, child: [] }] })(e);
|
|
4297
4297
|
}
|
|
4298
|
-
function
|
|
4298
|
+
function Cl(e) {
|
|
4299
4299
|
return ze({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79zM1 10.5h3v2H1zM11 .55h2V3.5h-2zm8.04 2.495 1.408 1.407-1.79 1.79-1.407-1.408zm-1.8 15.115 1.79 1.8 1.41-1.41-1.8-1.79zM20 10.5h3v2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm-1 4h2v2.95h-2zm-7.45-.96 1.41 1.41 1.79-1.8-1.41-1.41z" }, child: [] }] })(e);
|
|
4300
4300
|
}
|
|
4301
|
-
const
|
|
4301
|
+
const Rl = W.input`
|
|
4302
|
+
opacity: 0;
|
|
4303
|
+
width: 0;
|
|
4304
|
+
height: 0;
|
|
4305
|
+
position: absolute;
|
|
4306
|
+
`, Tn = W.span`
|
|
4307
|
+
position: absolute;
|
|
4308
|
+
top: 50%;
|
|
4309
|
+
left: ${({ $checked: e }) => e ? "20px" : "0px"};
|
|
4310
|
+
transform: translate(-50%, -50%) translateX(50%);
|
|
4311
|
+
width: 38px;
|
|
4312
|
+
height: 38px;
|
|
4313
|
+
border-radius: 50%;
|
|
4314
|
+
background-color: transparent;
|
|
4315
|
+
transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
|
|
4316
|
+
left 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
4317
|
+
pointer-events: none;
|
|
4318
|
+
`, Al = W.label`
|
|
4319
|
+
position: relative;
|
|
4320
|
+
display: inline-flex;
|
|
4321
|
+
align-items: center;
|
|
4322
|
+
cursor: pointer;
|
|
4323
|
+
-webkit-tap-highlight-color: transparent;
|
|
4324
|
+
|
|
4325
|
+
@media (hover: hover) {
|
|
4326
|
+
&:hover ${Tn} {
|
|
4327
|
+
background-color: ${({ $checked: e }) => e ? "rgba(72, 159, 181, 0.08)" : "rgba(0, 0, 0, 0.04)"};
|
|
4328
|
+
}
|
|
4329
|
+
}
|
|
4330
|
+
|
|
4331
|
+
&:focus-within ${Tn} {
|
|
4332
|
+
background-color: ${({ $checked: e }) => e ? "rgba(72, 159, 181, 0.12)" : "rgba(0, 0, 0, 0.06)"};
|
|
4333
|
+
}
|
|
4334
|
+
`, Tl = W.span`
|
|
4335
|
+
width: 34px;
|
|
4336
|
+
height: 14px;
|
|
4337
|
+
background-color: ${({ $checked: e }) => e ? "rgba(72, 159, 181, 0.5)" : "rgba(0, 0, 0, 0.38)"};
|
|
4338
|
+
border-radius: 7px;
|
|
4339
|
+
transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
4340
|
+
`, Il = W.span`
|
|
4341
|
+
position: absolute;
|
|
4342
|
+
top: 50%;
|
|
4343
|
+
left: ${({ $checked: e }) => e ? "20px" : "0px"};
|
|
4344
|
+
transform: translateY(-50%);
|
|
4345
|
+
width: 20px;
|
|
4346
|
+
height: 20px;
|
|
4347
|
+
background-color: ${({ $checked: e }) => e ? "#489fb5" : "#fafafa"};
|
|
4348
|
+
border-radius: 50%;
|
|
4349
|
+
box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
|
|
4350
|
+
0px 1px 1px 0px rgba(0, 0, 0, 0.14),
|
|
4351
|
+
0px 1px 3px 0px rgba(0, 0, 0, 0.12);
|
|
4352
|
+
transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1),
|
|
4353
|
+
background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
4354
|
+
pointer-events: none;
|
|
4355
|
+
`, Dl = ({
|
|
4356
|
+
checked: e,
|
|
4357
|
+
defaultChecked: t = !1,
|
|
4358
|
+
onChange: r,
|
|
4359
|
+
disabled: n = !1
|
|
4360
|
+
}) => {
|
|
4361
|
+
const [i, o] = Rr(t), s = e !== void 0, a = s ? e : i, u = (l) => {
|
|
4362
|
+
if (n) return;
|
|
4363
|
+
l.target.blur();
|
|
4364
|
+
const f = !a;
|
|
4365
|
+
s || o(f), r == null || r(f);
|
|
4366
|
+
};
|
|
4367
|
+
return /* @__PURE__ */ $.jsxs(Al, { $checked: a, onClick: (l) => l.stopPropagation(), children: [
|
|
4368
|
+
/* @__PURE__ */ $.jsx(
|
|
4369
|
+
Rl,
|
|
4370
|
+
{
|
|
4371
|
+
type: "checkbox",
|
|
4372
|
+
checked: a,
|
|
4373
|
+
onChange: u,
|
|
4374
|
+
disabled: n
|
|
4375
|
+
}
|
|
4376
|
+
),
|
|
4377
|
+
/* @__PURE__ */ $.jsx(Tl, { $checked: a }),
|
|
4378
|
+
/* @__PURE__ */ $.jsx(Tn, { $checked: a }),
|
|
4379
|
+
/* @__PURE__ */ $.jsx(Il, { $checked: a })
|
|
4380
|
+
] });
|
|
4381
|
+
}, jl = {
|
|
4302
4382
|
translate: Pl,
|
|
4303
|
-
sunny:
|
|
4304
|
-
character: () => /* @__PURE__ */
|
|
4305
|
-
},
|
|
4306
|
-
chevron: ho,
|
|
4307
|
-
switch: ho
|
|
4308
|
-
}, Df = ({
|
|
4383
|
+
sunny: Cl,
|
|
4384
|
+
character: () => /* @__PURE__ */ $.jsx("p", { style: { fontSize: "1rem", fontWeight: 500 }, children: "字" })
|
|
4385
|
+
}, zf = ({
|
|
4309
4386
|
icon: e,
|
|
4310
4387
|
text: t,
|
|
4311
|
-
actionIcon: r,
|
|
4388
|
+
actionIcon: r = "chevron",
|
|
4312
4389
|
onClick: n,
|
|
4313
|
-
styles: i
|
|
4390
|
+
styles: i,
|
|
4391
|
+
switchChecked: o,
|
|
4392
|
+
onSwitchChange: s
|
|
4314
4393
|
}) => {
|
|
4315
|
-
const
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4394
|
+
const a = jl[e], u = () => r === "switch" ? /* @__PURE__ */ $.jsx(
|
|
4395
|
+
Dl,
|
|
4396
|
+
{
|
|
4397
|
+
checked: o,
|
|
4398
|
+
onChange: s
|
|
4399
|
+
}
|
|
4400
|
+
) : /* @__PURE__ */ $.jsx(Nl, {});
|
|
4401
|
+
return /* @__PURE__ */ $.jsx(Sl, { onClick: n, style: i, children: /* @__PURE__ */ $.jsxs(xl, { children: [
|
|
4402
|
+
/* @__PURE__ */ $.jsxs(kl, { children: [
|
|
4403
|
+
/* @__PURE__ */ $.jsx(ho, { children: /* @__PURE__ */ $.jsx(a, { size: "1rem" }) }),
|
|
4404
|
+
/* @__PURE__ */ $.jsx(Ol, { children: t })
|
|
4320
4405
|
] }),
|
|
4321
|
-
/* @__PURE__ */
|
|
4406
|
+
/* @__PURE__ */ $.jsx(ho, { children: u() })
|
|
4322
4407
|
] }) });
|
|
4323
4408
|
};
|
|
4324
|
-
function
|
|
4409
|
+
function K(e) {
|
|
4325
4410
|
return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
4326
4411
|
}
|
|
4327
|
-
var
|
|
4328
|
-
INIT: `@@redux/INIT${/* @__PURE__ */
|
|
4329
|
-
REPLACE: `@@redux/REPLACE${/* @__PURE__ */
|
|
4330
|
-
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${
|
|
4331
|
-
}, Ge =
|
|
4412
|
+
var Vl = typeof Symbol == "function" && Symbol.observable || "@@observable", po = Vl, fn = () => Math.random().toString(36).substring(7).split("").join("."), $l = {
|
|
4413
|
+
INIT: `@@redux/INIT${/* @__PURE__ */ fn()}`,
|
|
4414
|
+
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ fn()}`,
|
|
4415
|
+
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${fn()}`
|
|
4416
|
+
}, Ge = $l;
|
|
4332
4417
|
function Xt(e) {
|
|
4333
4418
|
if (typeof e != "object" || e === null)
|
|
4334
4419
|
return !1;
|
|
@@ -4337,7 +4422,7 @@ function Xt(e) {
|
|
|
4337
4422
|
t = Object.getPrototypeOf(t);
|
|
4338
4423
|
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
|
|
4339
4424
|
}
|
|
4340
|
-
function
|
|
4425
|
+
function Ml(e) {
|
|
4341
4426
|
if (e === void 0)
|
|
4342
4427
|
return "undefined";
|
|
4343
4428
|
if (e === null)
|
|
@@ -4353,11 +4438,11 @@ function Il(e) {
|
|
|
4353
4438
|
}
|
|
4354
4439
|
if (Array.isArray(e))
|
|
4355
4440
|
return "array";
|
|
4356
|
-
if (
|
|
4441
|
+
if (Ll(e))
|
|
4357
4442
|
return "date";
|
|
4358
|
-
if (
|
|
4443
|
+
if (Fl(e))
|
|
4359
4444
|
return "error";
|
|
4360
|
-
const r =
|
|
4445
|
+
const r = zl(e);
|
|
4361
4446
|
switch (r) {
|
|
4362
4447
|
case "Symbol":
|
|
4363
4448
|
case "Promise":
|
|
@@ -4369,27 +4454,27 @@ function Il(e) {
|
|
|
4369
4454
|
}
|
|
4370
4455
|
return Object.prototype.toString.call(e).slice(8, -1).toLowerCase().replace(/\s/g, "");
|
|
4371
4456
|
}
|
|
4372
|
-
function
|
|
4457
|
+
function zl(e) {
|
|
4373
4458
|
return typeof e.constructor == "function" ? e.constructor.name : null;
|
|
4374
4459
|
}
|
|
4375
|
-
function
|
|
4460
|
+
function Fl(e) {
|
|
4376
4461
|
return e instanceof Error || typeof e.message == "string" && e.constructor && typeof e.constructor.stackTraceLimit == "number";
|
|
4377
4462
|
}
|
|
4378
|
-
function
|
|
4463
|
+
function Ll(e) {
|
|
4379
4464
|
return e instanceof Date ? !0 : typeof e.toDateString == "function" && typeof e.getDate == "function" && typeof e.setDate == "function";
|
|
4380
4465
|
}
|
|
4381
4466
|
function De(e) {
|
|
4382
4467
|
let t = typeof e;
|
|
4383
|
-
return process.env.NODE_ENV !== "production" && (t =
|
|
4468
|
+
return process.env.NODE_ENV !== "production" && (t = Ml(e)), t;
|
|
4384
4469
|
}
|
|
4385
4470
|
function js(e, t, r) {
|
|
4386
4471
|
if (typeof e != "function")
|
|
4387
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4472
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(2) : `Expected the root reducer to be a function. Instead, received: '${De(e)}'`);
|
|
4388
4473
|
if (typeof t == "function" && typeof r == "function" || typeof r == "function" && typeof arguments[3] == "function")
|
|
4389
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4474
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(0) : "It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");
|
|
4390
4475
|
if (typeof t == "function" && typeof r > "u" && (r = t, t = void 0), typeof r < "u") {
|
|
4391
4476
|
if (typeof r != "function")
|
|
4392
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4477
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(1) : `Expected the enhancer to be a function. Instead, received: '${De(r)}'`);
|
|
4393
4478
|
return r(js)(e, t);
|
|
4394
4479
|
}
|
|
4395
4480
|
let n = e, i = t, o = /* @__PURE__ */ new Map(), s = o, a = 0, u = !1;
|
|
@@ -4400,34 +4485,34 @@ function js(e, t, r) {
|
|
|
4400
4485
|
}
|
|
4401
4486
|
function f() {
|
|
4402
4487
|
if (u)
|
|
4403
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4488
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(3) : "You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
|
|
4404
4489
|
return i;
|
|
4405
4490
|
}
|
|
4406
4491
|
function d(w) {
|
|
4407
4492
|
if (typeof w != "function")
|
|
4408
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4493
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(4) : `Expected the listener to be a function. Instead, received: '${De(w)}'`);
|
|
4409
4494
|
if (u)
|
|
4410
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4495
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
4411
4496
|
let y = !0;
|
|
4412
4497
|
l();
|
|
4413
4498
|
const b = a++;
|
|
4414
4499
|
return s.set(b, w), function() {
|
|
4415
4500
|
if (y) {
|
|
4416
4501
|
if (u)
|
|
4417
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4502
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
4418
4503
|
y = !1, l(), s.delete(b), o = null;
|
|
4419
4504
|
}
|
|
4420
4505
|
};
|
|
4421
4506
|
}
|
|
4422
4507
|
function h(w) {
|
|
4423
4508
|
if (!Xt(w))
|
|
4424
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4509
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(7) : `Actions must be plain objects. Instead, the actual type was: '${De(w)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);
|
|
4425
4510
|
if (typeof w.type > "u")
|
|
4426
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4511
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
|
|
4427
4512
|
if (typeof w.type != "string")
|
|
4428
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4513
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(17) : `Action "type" property must be a string. Instead, the actual type was: '${De(w.type)}'. Value was: '${w.type}' (stringified)`);
|
|
4429
4514
|
if (u)
|
|
4430
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4515
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(9) : "Reducers may not dispatch actions.");
|
|
4431
4516
|
try {
|
|
4432
4517
|
u = !0, i = n(i, w);
|
|
4433
4518
|
} finally {
|
|
@@ -4439,7 +4524,7 @@ function js(e, t, r) {
|
|
|
4439
4524
|
}
|
|
4440
4525
|
function p(w) {
|
|
4441
4526
|
if (typeof w != "function")
|
|
4442
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4527
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(10) : `Expected the nextReducer to be a function. Instead, received: '${De(w)}`);
|
|
4443
4528
|
n = w, h({
|
|
4444
4529
|
type: Ge.REPLACE
|
|
4445
4530
|
});
|
|
@@ -4457,7 +4542,7 @@ function js(e, t, r) {
|
|
|
4457
4542
|
*/
|
|
4458
4543
|
subscribe(y) {
|
|
4459
4544
|
if (typeof y != "object" || y === null)
|
|
4460
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4545
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(11) : `Expected the observer to be an object. Instead, received: '${De(y)}'`);
|
|
4461
4546
|
function b() {
|
|
4462
4547
|
const S = y;
|
|
4463
4548
|
S.next && S.next(f());
|
|
@@ -4488,7 +4573,7 @@ function mo(e) {
|
|
|
4488
4573
|
} catch {
|
|
4489
4574
|
}
|
|
4490
4575
|
}
|
|
4491
|
-
function
|
|
4576
|
+
function Ul(e, t, r, n) {
|
|
4492
4577
|
const i = Object.keys(t), o = r && r.type === Ge.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
|
|
4493
4578
|
if (i.length === 0)
|
|
4494
4579
|
return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";
|
|
@@ -4500,17 +4585,17 @@ function $l(e, t, r, n) {
|
|
|
4500
4585
|
}), !(r && r.type === Ge.REPLACE) && s.length > 0)
|
|
4501
4586
|
return `Unexpected ${s.length > 1 ? "keys" : "key"} "${s.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`;
|
|
4502
4587
|
}
|
|
4503
|
-
function
|
|
4588
|
+
function Bl(e) {
|
|
4504
4589
|
Object.keys(e).forEach((t) => {
|
|
4505
4590
|
const r = e[t];
|
|
4506
4591
|
if (typeof r(void 0, {
|
|
4507
4592
|
type: Ge.INIT
|
|
4508
4593
|
}) > "u")
|
|
4509
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4594
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(12) : `The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);
|
|
4510
4595
|
if (typeof r(void 0, {
|
|
4511
4596
|
type: Ge.PROBE_UNKNOWN_ACTION()
|
|
4512
4597
|
}) > "u")
|
|
4513
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4598
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(13) : `The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Ge.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`);
|
|
4514
4599
|
});
|
|
4515
4600
|
}
|
|
4516
4601
|
function Vs(e) {
|
|
@@ -4524,7 +4609,7 @@ function Vs(e) {
|
|
|
4524
4609
|
process.env.NODE_ENV !== "production" && (i = {});
|
|
4525
4610
|
let o;
|
|
4526
4611
|
try {
|
|
4527
|
-
|
|
4612
|
+
Bl(r);
|
|
4528
4613
|
} catch (s) {
|
|
4529
4614
|
o = s;
|
|
4530
4615
|
}
|
|
@@ -4532,7 +4617,7 @@ function Vs(e) {
|
|
|
4532
4617
|
if (o)
|
|
4533
4618
|
throw o;
|
|
4534
4619
|
if (process.env.NODE_ENV !== "production") {
|
|
4535
|
-
const d =
|
|
4620
|
+
const d = Ul(a, r, u, i);
|
|
4536
4621
|
d && mo(d);
|
|
4537
4622
|
}
|
|
4538
4623
|
let l = !1;
|
|
@@ -4541,27 +4626,27 @@ function Vs(e) {
|
|
|
4541
4626
|
const h = n[d], p = r[h], v = a[h], E = p(v, u);
|
|
4542
4627
|
if (typeof E > "u") {
|
|
4543
4628
|
const w = u && u.type;
|
|
4544
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4629
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(14) : `When called with an action of type ${w ? `"${String(w)}"` : "(unknown type)"}, the slice reducer for key "${h}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`);
|
|
4545
4630
|
}
|
|
4546
4631
|
f[h] = E, l = l || E !== v;
|
|
4547
4632
|
}
|
|
4548
4633
|
return l = l || n.length !== Object.keys(a).length, l ? f : a;
|
|
4549
4634
|
};
|
|
4550
4635
|
}
|
|
4551
|
-
function
|
|
4636
|
+
function Or(...e) {
|
|
4552
4637
|
return e.length === 0 ? (t) => t : e.length === 1 ? e[0] : e.reduce((t, r) => (...n) => t(r(...n)));
|
|
4553
4638
|
}
|
|
4554
|
-
function
|
|
4639
|
+
function ql(...e) {
|
|
4555
4640
|
return (t) => (r, n) => {
|
|
4556
4641
|
const i = t(r, n);
|
|
4557
4642
|
let o = () => {
|
|
4558
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4643
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(15) : "Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");
|
|
4559
4644
|
};
|
|
4560
4645
|
const s = {
|
|
4561
4646
|
getState: i.getState,
|
|
4562
4647
|
dispatch: (u, ...l) => o(u, ...l)
|
|
4563
4648
|
}, a = e.map((u) => u(s));
|
|
4564
|
-
return o =
|
|
4649
|
+
return o = Or(...a)(i.dispatch), {
|
|
4565
4650
|
...i,
|
|
4566
4651
|
dispatch: o
|
|
4567
4652
|
};
|
|
@@ -4570,7 +4655,7 @@ function zl(...e) {
|
|
|
4570
4655
|
function $s(e) {
|
|
4571
4656
|
return Xt(e) && "type" in e && typeof e.type == "string";
|
|
4572
4657
|
}
|
|
4573
|
-
var Ms = Symbol.for("immer-nothing"), yo = Symbol.for("immer-draftable"), ie = Symbol.for("immer-state"),
|
|
4658
|
+
var Ms = Symbol.for("immer-nothing"), yo = Symbol.for("immer-draftable"), ie = Symbol.for("immer-state"), Wl = process.env.NODE_ENV !== "production" ? [
|
|
4574
4659
|
// All error codes, starting by 0:
|
|
4575
4660
|
function(e) {
|
|
4576
4661
|
return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
|
|
@@ -4603,7 +4688,7 @@ var Ms = Symbol.for("immer-nothing"), yo = Symbol.for("immer-draftable"), ie = S
|
|
|
4603
4688
|
] : [];
|
|
4604
4689
|
function ee(e, ...t) {
|
|
4605
4690
|
if (process.env.NODE_ENV !== "production") {
|
|
4606
|
-
const r =
|
|
4691
|
+
const r = Wl[e], n = typeof r == "function" ? r.apply(null, t) : r;
|
|
4607
4692
|
throw new Error(`[Immer] ${n}`);
|
|
4608
4693
|
}
|
|
4609
4694
|
throw new Error(
|
|
@@ -4616,9 +4701,9 @@ function Je(e) {
|
|
|
4616
4701
|
}
|
|
4617
4702
|
function Pe(e) {
|
|
4618
4703
|
var t;
|
|
4619
|
-
return e ? zs(e) || Array.isArray(e) || !!e[yo] || !!((t = e.constructor) != null && t[yo]) ||
|
|
4704
|
+
return e ? zs(e) || Array.isArray(e) || !!e[yo] || !!((t = e.constructor) != null && t[yo]) || Hr(e) || Yr(e) : !1;
|
|
4620
4705
|
}
|
|
4621
|
-
var
|
|
4706
|
+
var Hl = Object.prototype.constructor.toString();
|
|
4622
4707
|
function zs(e) {
|
|
4623
4708
|
if (!e || typeof e != "object")
|
|
4624
4709
|
return !1;
|
|
@@ -4626,40 +4711,40 @@ function zs(e) {
|
|
|
4626
4711
|
if (t === null)
|
|
4627
4712
|
return !0;
|
|
4628
4713
|
const r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
4629
|
-
return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) ===
|
|
4714
|
+
return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === Hl;
|
|
4630
4715
|
}
|
|
4631
4716
|
function Pr(e, t) {
|
|
4632
|
-
|
|
4717
|
+
Wr(e) === 0 ? Reflect.ownKeys(e).forEach((r) => {
|
|
4633
4718
|
t(r, e[r], e);
|
|
4634
4719
|
}) : e.forEach((r, n) => t(n, r, e));
|
|
4635
4720
|
}
|
|
4636
|
-
function
|
|
4721
|
+
function Wr(e) {
|
|
4637
4722
|
const t = e[ie];
|
|
4638
|
-
return t ? t.type_ : Array.isArray(e) ? 1 :
|
|
4723
|
+
return t ? t.type_ : Array.isArray(e) ? 1 : Hr(e) ? 2 : Yr(e) ? 3 : 0;
|
|
4639
4724
|
}
|
|
4640
|
-
function
|
|
4641
|
-
return
|
|
4725
|
+
function In(e, t) {
|
|
4726
|
+
return Wr(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
|
|
4642
4727
|
}
|
|
4643
4728
|
function Fs(e, t, r) {
|
|
4644
|
-
const n =
|
|
4729
|
+
const n = Wr(e);
|
|
4645
4730
|
n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
|
|
4646
4731
|
}
|
|
4647
|
-
function
|
|
4732
|
+
function Yl(e, t) {
|
|
4648
4733
|
return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
|
|
4649
4734
|
}
|
|
4650
|
-
function
|
|
4735
|
+
function Hr(e) {
|
|
4651
4736
|
return e instanceof Map;
|
|
4652
4737
|
}
|
|
4653
|
-
function
|
|
4738
|
+
function Yr(e) {
|
|
4654
4739
|
return e instanceof Set;
|
|
4655
4740
|
}
|
|
4656
4741
|
function Ue(e) {
|
|
4657
4742
|
return e.copy_ || e.base_;
|
|
4658
4743
|
}
|
|
4659
|
-
function
|
|
4660
|
-
if (Wr(e))
|
|
4661
|
-
return new Map(e);
|
|
4744
|
+
function Dn(e, t) {
|
|
4662
4745
|
if (Hr(e))
|
|
4746
|
+
return new Map(e);
|
|
4747
|
+
if (Yr(e))
|
|
4663
4748
|
return new Set(e);
|
|
4664
4749
|
if (Array.isArray(e))
|
|
4665
4750
|
return Array.prototype.slice.call(e);
|
|
@@ -4687,25 +4772,25 @@ function Tn(e, t) {
|
|
|
4687
4772
|
return Object.assign(i, e);
|
|
4688
4773
|
}
|
|
4689
4774
|
}
|
|
4690
|
-
function
|
|
4691
|
-
return
|
|
4775
|
+
function ai(e, t = !1) {
|
|
4776
|
+
return Gr(e) || Je(e) || !Pe(e) || (Wr(e) > 1 && (e.set = e.add = e.clear = e.delete = Gl), Object.freeze(e), t && Object.entries(e).forEach(([r, n]) => ai(n, !0))), e;
|
|
4692
4777
|
}
|
|
4693
|
-
function
|
|
4778
|
+
function Gl() {
|
|
4694
4779
|
ee(2);
|
|
4695
4780
|
}
|
|
4696
|
-
function
|
|
4781
|
+
function Gr(e) {
|
|
4697
4782
|
return Object.isFrozen(e);
|
|
4698
4783
|
}
|
|
4699
|
-
var
|
|
4784
|
+
var Kl = {};
|
|
4700
4785
|
function Ze(e) {
|
|
4701
|
-
const t =
|
|
4786
|
+
const t = Kl[e];
|
|
4702
4787
|
return t || ee(0, e), t;
|
|
4703
4788
|
}
|
|
4704
4789
|
var Ht;
|
|
4705
4790
|
function Ls() {
|
|
4706
4791
|
return Ht;
|
|
4707
4792
|
}
|
|
4708
|
-
function
|
|
4793
|
+
function Ql(e, t) {
|
|
4709
4794
|
return {
|
|
4710
4795
|
drafts_: [],
|
|
4711
4796
|
parent_: e,
|
|
@@ -4719,31 +4804,31 @@ function Wl(e, t) {
|
|
|
4719
4804
|
function go(e, t) {
|
|
4720
4805
|
t && (Ze("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
4721
4806
|
}
|
|
4722
|
-
function
|
|
4723
|
-
|
|
4807
|
+
function jn(e) {
|
|
4808
|
+
Vn(e), e.drafts_.forEach(Xl), e.drafts_ = null;
|
|
4724
4809
|
}
|
|
4725
|
-
function
|
|
4810
|
+
function Vn(e) {
|
|
4726
4811
|
e === Ht && (Ht = e.parent_);
|
|
4727
4812
|
}
|
|
4728
4813
|
function vo(e) {
|
|
4729
|
-
return Ht =
|
|
4814
|
+
return Ht = Ql(Ht, e);
|
|
4730
4815
|
}
|
|
4731
|
-
function
|
|
4816
|
+
function Xl(e) {
|
|
4732
4817
|
const t = e[ie];
|
|
4733
4818
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
4734
4819
|
}
|
|
4735
4820
|
function bo(e, t) {
|
|
4736
4821
|
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
4737
4822
|
const r = t.drafts_[0];
|
|
4738
|
-
return e !== void 0 && e !== r ? (r[ie].modified_ && (
|
|
4823
|
+
return e !== void 0 && e !== r ? (r[ie].modified_ && (jn(t), ee(4)), Pe(e) && (e = Nr(t, e), t.parent_ || Cr(t, e)), t.patches_ && Ze("Patches").generateReplacementPatches_(
|
|
4739
4824
|
r[ie].base_,
|
|
4740
4825
|
e,
|
|
4741
4826
|
t.patches_,
|
|
4742
4827
|
t.inversePatches_
|
|
4743
|
-
)) : e = Nr(t, r, []),
|
|
4828
|
+
)) : e = Nr(t, r, []), jn(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== Ms ? e : void 0;
|
|
4744
4829
|
}
|
|
4745
4830
|
function Nr(e, t, r) {
|
|
4746
|
-
if (
|
|
4831
|
+
if (Gr(t))
|
|
4747
4832
|
return t;
|
|
4748
4833
|
const n = t[ie];
|
|
4749
4834
|
if (!n)
|
|
@@ -4774,22 +4859,22 @@ function Nr(e, t, r) {
|
|
|
4774
4859
|
function wo(e, t, r, n, i, o, s) {
|
|
4775
4860
|
if (process.env.NODE_ENV !== "production" && i === r && ee(5), Je(i)) {
|
|
4776
4861
|
const a = o && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
4777
|
-
!
|
|
4862
|
+
!In(t.assigned_, n) ? o.concat(n) : void 0, u = Nr(e, i, a);
|
|
4778
4863
|
if (Fs(r, n, u), Je(u))
|
|
4779
4864
|
e.canAutoFreeze_ = !1;
|
|
4780
4865
|
else
|
|
4781
4866
|
return;
|
|
4782
4867
|
} else s && r.add(i);
|
|
4783
|
-
if (Pe(i) && !
|
|
4868
|
+
if (Pe(i) && !Gr(i)) {
|
|
4784
4869
|
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
|
|
4785
4870
|
return;
|
|
4786
4871
|
Nr(e, i), (!t || !t.scope_.parent_) && typeof n != "symbol" && Object.prototype.propertyIsEnumerable.call(r, n) && Cr(e, i);
|
|
4787
4872
|
}
|
|
4788
4873
|
}
|
|
4789
4874
|
function Cr(e, t, r = !1) {
|
|
4790
|
-
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ &&
|
|
4875
|
+
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && ai(t, r);
|
|
4791
4876
|
}
|
|
4792
|
-
function
|
|
4877
|
+
function Jl(e, t) {
|
|
4793
4878
|
const r = Array.isArray(e), n = {
|
|
4794
4879
|
type_: r ? 1 : 0,
|
|
4795
4880
|
// Track which produce call this is associated with.
|
|
@@ -4813,20 +4898,20 @@ function Yl(e, t) {
|
|
|
4813
4898
|
revoke_: null,
|
|
4814
4899
|
isManual_: !1
|
|
4815
4900
|
};
|
|
4816
|
-
let i = n, o =
|
|
4901
|
+
let i = n, o = ci;
|
|
4817
4902
|
r && (i = [n], o = Yt);
|
|
4818
4903
|
const { revoke: s, proxy: a } = Proxy.revocable(i, o);
|
|
4819
4904
|
return n.draft_ = a, n.revoke_ = s, a;
|
|
4820
4905
|
}
|
|
4821
|
-
var
|
|
4906
|
+
var ci = {
|
|
4822
4907
|
get(e, t) {
|
|
4823
4908
|
if (t === ie)
|
|
4824
4909
|
return e;
|
|
4825
4910
|
const r = Ue(e);
|
|
4826
|
-
if (!
|
|
4827
|
-
return
|
|
4911
|
+
if (!In(r, t))
|
|
4912
|
+
return Zl(e, r, t);
|
|
4828
4913
|
const n = r[t];
|
|
4829
|
-
return e.finalized_ || !Pe(n) ? n : n ===
|
|
4914
|
+
return e.finalized_ || !Pe(n) ? n : n === dn(e.base_, t) ? (hn(e), e.copy_[t] = Mn(n, e)) : n;
|
|
4830
4915
|
},
|
|
4831
4916
|
has(e, t) {
|
|
4832
4917
|
return t in Ue(e);
|
|
@@ -4839,19 +4924,19 @@ var ai = {
|
|
|
4839
4924
|
if (n != null && n.set)
|
|
4840
4925
|
return n.set.call(e.draft_, r), !0;
|
|
4841
4926
|
if (!e.modified_) {
|
|
4842
|
-
const i =
|
|
4927
|
+
const i = dn(Ue(e), t), o = i == null ? void 0 : i[ie];
|
|
4843
4928
|
if (o && o.base_ === r)
|
|
4844
4929
|
return e.copy_[t] = r, e.assigned_[t] = !1, !0;
|
|
4845
|
-
if (
|
|
4930
|
+
if (Yl(r, i) && (r !== void 0 || In(e.base_, t)))
|
|
4846
4931
|
return !0;
|
|
4847
|
-
|
|
4932
|
+
hn(e), $n(e);
|
|
4848
4933
|
}
|
|
4849
4934
|
return e.copy_[t] === r && // special case: handle new props with value 'undefined'
|
|
4850
4935
|
(r !== void 0 || t in e.copy_) || // special case: NaN
|
|
4851
4936
|
Number.isNaN(r) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = r, e.assigned_[t] = !0), !0;
|
|
4852
4937
|
},
|
|
4853
4938
|
deleteProperty(e, t) {
|
|
4854
|
-
return
|
|
4939
|
+
return dn(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, hn(e), $n(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
|
|
4855
4940
|
},
|
|
4856
4941
|
// Note: We never coerce `desc.value` into an Immer draft, because we can't make
|
|
4857
4942
|
// the same guarantee in ES5 mode.
|
|
@@ -4874,7 +4959,7 @@ var ai = {
|
|
|
4874
4959
|
ee(12);
|
|
4875
4960
|
}
|
|
4876
4961
|
}, Yt = {};
|
|
4877
|
-
Pr(
|
|
4962
|
+
Pr(ci, (e, t) => {
|
|
4878
4963
|
Yt[e] = function() {
|
|
4879
4964
|
return arguments[0] = arguments[0][0], t.apply(this, arguments);
|
|
4880
4965
|
};
|
|
@@ -4883,13 +4968,13 @@ Yt.deleteProperty = function(e, t) {
|
|
|
4883
4968
|
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && ee(13), Yt.set.call(this, e, t, void 0);
|
|
4884
4969
|
};
|
|
4885
4970
|
Yt.set = function(e, t, r) {
|
|
4886
|
-
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && ee(14),
|
|
4971
|
+
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && ee(14), ci.set.call(this, e[0], t, r, e[0]);
|
|
4887
4972
|
};
|
|
4888
|
-
function
|
|
4973
|
+
function dn(e, t) {
|
|
4889
4974
|
const r = e[ie];
|
|
4890
4975
|
return (r ? Ue(r) : e)[t];
|
|
4891
4976
|
}
|
|
4892
|
-
function
|
|
4977
|
+
function Zl(e, t, r) {
|
|
4893
4978
|
var i;
|
|
4894
4979
|
const n = Us(t, r);
|
|
4895
4980
|
return n ? "value" in n ? n.value : (
|
|
@@ -4909,16 +4994,16 @@ function Us(e, t) {
|
|
|
4909
4994
|
r = yt(r);
|
|
4910
4995
|
}
|
|
4911
4996
|
}
|
|
4912
|
-
function
|
|
4913
|
-
e.modified_ || (e.modified_ = !0, e.parent_ &&
|
|
4997
|
+
function $n(e) {
|
|
4998
|
+
e.modified_ || (e.modified_ = !0, e.parent_ && $n(e.parent_));
|
|
4914
4999
|
}
|
|
4915
|
-
function
|
|
4916
|
-
e.copy_ || (e.copy_ =
|
|
5000
|
+
function hn(e) {
|
|
5001
|
+
e.copy_ || (e.copy_ = Dn(
|
|
4917
5002
|
e.base_,
|
|
4918
5003
|
e.scope_.immer_.useStrictShallowCopy_
|
|
4919
5004
|
));
|
|
4920
5005
|
}
|
|
4921
|
-
var
|
|
5006
|
+
var ef = class {
|
|
4922
5007
|
constructor(e) {
|
|
4923
5008
|
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (t, r, n) => {
|
|
4924
5009
|
if (typeof t == "function" && typeof r != "function") {
|
|
@@ -4932,16 +5017,16 @@ var Kl = class {
|
|
|
4932
5017
|
typeof r != "function" && ee(6), n !== void 0 && typeof n != "function" && ee(7);
|
|
4933
5018
|
let i;
|
|
4934
5019
|
if (Pe(t)) {
|
|
4935
|
-
const o = vo(this), s =
|
|
5020
|
+
const o = vo(this), s = Mn(t, void 0);
|
|
4936
5021
|
let a = !0;
|
|
4937
5022
|
try {
|
|
4938
5023
|
i = r(s), a = !1;
|
|
4939
5024
|
} finally {
|
|
4940
|
-
a ?
|
|
5025
|
+
a ? jn(o) : Vn(o);
|
|
4941
5026
|
}
|
|
4942
5027
|
return go(o, n), bo(i, o);
|
|
4943
5028
|
} else if (!t || typeof t != "object") {
|
|
4944
|
-
if (i = r(t), i === void 0 && (i = t), i === Ms && (i = void 0), this.autoFreeze_ &&
|
|
5029
|
+
if (i = r(t), i === void 0 && (i = t), i === Ms && (i = void 0), this.autoFreeze_ && ai(i, !0), n) {
|
|
4945
5030
|
const o = [], s = [];
|
|
4946
5031
|
Ze("Patches").generateReplacementPatches_(t, i, o, s), n(o, s);
|
|
4947
5032
|
}
|
|
@@ -4958,9 +5043,9 @@ var Kl = class {
|
|
|
4958
5043
|
}, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
|
|
4959
5044
|
}
|
|
4960
5045
|
createDraft(e) {
|
|
4961
|
-
Pe(e) || ee(8), Je(e) && (e =
|
|
4962
|
-
const t = vo(this), r =
|
|
4963
|
-
return r[ie].isManual_ = !0,
|
|
5046
|
+
Pe(e) || ee(8), Je(e) && (e = tf(e));
|
|
5047
|
+
const t = vo(this), r = Mn(e, void 0);
|
|
5048
|
+
return r[ie].isManual_ = !0, Vn(t), r;
|
|
4964
5049
|
}
|
|
4965
5050
|
finishDraft(e, t) {
|
|
4966
5051
|
const r = e && e[ie];
|
|
@@ -5001,29 +5086,29 @@ var Kl = class {
|
|
|
5001
5086
|
);
|
|
5002
5087
|
}
|
|
5003
5088
|
};
|
|
5004
|
-
function
|
|
5005
|
-
const r =
|
|
5089
|
+
function Mn(e, t) {
|
|
5090
|
+
const r = Hr(e) ? Ze("MapSet").proxyMap_(e, t) : Yr(e) ? Ze("MapSet").proxySet_(e, t) : Jl(e, t);
|
|
5006
5091
|
return (t ? t.scope_ : Ls()).drafts_.push(r), r;
|
|
5007
5092
|
}
|
|
5008
|
-
function
|
|
5093
|
+
function tf(e) {
|
|
5009
5094
|
return Je(e) || ee(10, e), Bs(e);
|
|
5010
5095
|
}
|
|
5011
5096
|
function Bs(e) {
|
|
5012
|
-
if (!Pe(e) ||
|
|
5097
|
+
if (!Pe(e) || Gr(e))
|
|
5013
5098
|
return e;
|
|
5014
5099
|
const t = e[ie];
|
|
5015
5100
|
let r;
|
|
5016
5101
|
if (t) {
|
|
5017
5102
|
if (!t.modified_)
|
|
5018
5103
|
return t.base_;
|
|
5019
|
-
t.finalized_ = !0, r =
|
|
5104
|
+
t.finalized_ = !0, r = Dn(e, t.scope_.immer_.useStrictShallowCopy_);
|
|
5020
5105
|
} else
|
|
5021
|
-
r =
|
|
5106
|
+
r = Dn(e, !0);
|
|
5022
5107
|
return Pr(r, (n, i) => {
|
|
5023
5108
|
Fs(r, n, Bs(i));
|
|
5024
5109
|
}), t && (t.finalized_ = !1), r;
|
|
5025
5110
|
}
|
|
5026
|
-
var oe = new
|
|
5111
|
+
var oe = new ef(), qs = oe.produce;
|
|
5027
5112
|
oe.produceWithPatches.bind(
|
|
5028
5113
|
oe
|
|
5029
5114
|
);
|
|
@@ -5035,16 +5120,16 @@ oe.finishDraft.bind(oe);
|
|
|
5035
5120
|
function Ws(e) {
|
|
5036
5121
|
return ({ dispatch: r, getState: n }) => (i) => (o) => typeof o == "function" ? o(r, n, e) : i(o);
|
|
5037
5122
|
}
|
|
5038
|
-
var
|
|
5123
|
+
var rf = Ws(), nf = Ws, of = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
|
|
5039
5124
|
if (arguments.length !== 0)
|
|
5040
|
-
return typeof arguments[0] == "object" ?
|
|
5041
|
-
},
|
|
5125
|
+
return typeof arguments[0] == "object" ? Or : Or.apply(null, arguments);
|
|
5126
|
+
}, sf = (e) => e && typeof e.match == "function";
|
|
5042
5127
|
function _o(e, t) {
|
|
5043
5128
|
function r(...n) {
|
|
5044
5129
|
if (t) {
|
|
5045
5130
|
let i = t(...n);
|
|
5046
5131
|
if (!i)
|
|
5047
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5132
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(0) : "prepareAction did not return an object");
|
|
5048
5133
|
return {
|
|
5049
5134
|
type: e,
|
|
5050
5135
|
payload: i.payload,
|
|
@@ -5063,22 +5148,22 @@ function _o(e, t) {
|
|
|
5063
5148
|
}
|
|
5064
5149
|
return r.toString = () => `${e}`, r.type = e, r.match = (n) => $s(n) && n.type === e, r;
|
|
5065
5150
|
}
|
|
5066
|
-
function
|
|
5151
|
+
function af(e) {
|
|
5067
5152
|
return typeof e == "function" && "type" in e && // hasMatchFunction only wants Matchers but I don't see the point in rewriting it
|
|
5068
|
-
|
|
5153
|
+
sf(e);
|
|
5069
5154
|
}
|
|
5070
|
-
function
|
|
5155
|
+
function cf(e) {
|
|
5071
5156
|
const t = e ? `${e}`.split("/") : [], r = t[t.length - 1] || "actionCreator";
|
|
5072
5157
|
return `Detected an action creator with type "${e || "unknown"}" being dispatched.
|
|
5073
5158
|
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`;
|
|
5074
5159
|
}
|
|
5075
|
-
function
|
|
5160
|
+
function uf(e = {}) {
|
|
5076
5161
|
if (process.env.NODE_ENV === "production")
|
|
5077
5162
|
return () => (r) => (n) => r(n);
|
|
5078
5163
|
const {
|
|
5079
|
-
isActionCreator: t =
|
|
5164
|
+
isActionCreator: t = af
|
|
5080
5165
|
} = e;
|
|
5081
|
-
return () => (r) => (n) => (t(n) && console.warn(
|
|
5166
|
+
return () => (r) => (n) => (t(n) && console.warn(cf(n.type)), r(n));
|
|
5082
5167
|
}
|
|
5083
5168
|
function Hs(e, t) {
|
|
5084
5169
|
let r = 0;
|
|
@@ -5120,10 +5205,10 @@ function Eo(e) {
|
|
|
5120
5205
|
function So(e, t, r) {
|
|
5121
5206
|
return e.has(t) ? e.get(t) : e.set(t, r(t)).get(t);
|
|
5122
5207
|
}
|
|
5123
|
-
function
|
|
5208
|
+
function lf(e) {
|
|
5124
5209
|
return typeof e != "object" || e == null || Object.isFrozen(e);
|
|
5125
5210
|
}
|
|
5126
|
-
function
|
|
5211
|
+
function ff(e, t, r) {
|
|
5127
5212
|
const n = Gs(e, t, r);
|
|
5128
5213
|
return {
|
|
5129
5214
|
detectMutations() {
|
|
@@ -5173,7 +5258,7 @@ function Ks(e, t = [], r, n, i = !1, o = "") {
|
|
|
5173
5258
|
wasMutated: !1
|
|
5174
5259
|
};
|
|
5175
5260
|
}
|
|
5176
|
-
function
|
|
5261
|
+
function df(e = {}) {
|
|
5177
5262
|
if (process.env.NODE_ENV === "production")
|
|
5178
5263
|
return () => (t) => (r) => t(r);
|
|
5179
5264
|
{
|
|
@@ -5191,11 +5276,11 @@ function af(e = {}) {
|
|
|
5191
5276
|
return a == null ? h : a.call(this, d, h);
|
|
5192
5277
|
};
|
|
5193
5278
|
}, {
|
|
5194
|
-
isImmutable: n =
|
|
5279
|
+
isImmutable: n = lf,
|
|
5195
5280
|
ignoredPaths: i,
|
|
5196
5281
|
warnAfter: o = 32
|
|
5197
5282
|
} = e;
|
|
5198
|
-
const s =
|
|
5283
|
+
const s = ff.bind(null, n, i);
|
|
5199
5284
|
return ({
|
|
5200
5285
|
getState: a
|
|
5201
5286
|
}) => {
|
|
@@ -5204,12 +5289,12 @@ function af(e = {}) {
|
|
|
5204
5289
|
const p = Hs(o, "ImmutableStateInvariantMiddleware");
|
|
5205
5290
|
p.measureTime(() => {
|
|
5206
5291
|
if (u = a(), f = l.detectMutations(), l = s(u), f.wasMutated)
|
|
5207
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5292
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(19) : `A state mutation was detected between dispatches, in the path '${f.path || ""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
|
|
5208
5293
|
});
|
|
5209
5294
|
const v = d(h);
|
|
5210
5295
|
return p.measureTime(() => {
|
|
5211
5296
|
if (u = a(), f = l.detectMutations(), l = s(u), f.wasMutated)
|
|
5212
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5297
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(20) : `A state mutation was detected inside a dispatch, in the path: ${f.path || ""}. Take a look at the reducer(s) handling the action ${t(h)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
|
|
5213
5298
|
}), p.warnIfExceeded(), v;
|
|
5214
5299
|
};
|
|
5215
5300
|
};
|
|
@@ -5219,7 +5304,7 @@ function Qs(e) {
|
|
|
5219
5304
|
const t = typeof e;
|
|
5220
5305
|
return e == null || t === "string" || t === "boolean" || t === "number" || Array.isArray(e) || Xt(e);
|
|
5221
5306
|
}
|
|
5222
|
-
function
|
|
5307
|
+
function zn(e, t = "", r = Qs, n, i = [], o) {
|
|
5223
5308
|
let s;
|
|
5224
5309
|
if (!r(e))
|
|
5225
5310
|
return {
|
|
@@ -5236,7 +5321,7 @@ function $n(e, t = "", r = Qs, n, i = [], o) {
|
|
|
5236
5321
|
keyPath: d,
|
|
5237
5322
|
value: f
|
|
5238
5323
|
};
|
|
5239
|
-
if (typeof f == "object" && (s =
|
|
5324
|
+
if (typeof f == "object" && (s = zn(f, d, r, n, i, o), s))
|
|
5240
5325
|
return s;
|
|
5241
5326
|
}
|
|
5242
5327
|
}
|
|
@@ -5249,7 +5334,7 @@ function Xs(e) {
|
|
|
5249
5334
|
return !1;
|
|
5250
5335
|
return !0;
|
|
5251
5336
|
}
|
|
5252
|
-
function
|
|
5337
|
+
function hf(e = {}) {
|
|
5253
5338
|
if (process.env.NODE_ENV === "production")
|
|
5254
5339
|
return () => (t) => (r) => t(r);
|
|
5255
5340
|
{
|
|
@@ -5269,7 +5354,7 @@ function cf(e = {}) {
|
|
|
5269
5354
|
return h(p);
|
|
5270
5355
|
const v = h(p), E = Hs(s, "SerializableStateInvariantMiddleware");
|
|
5271
5356
|
return !u && !(n.length && n.indexOf(p.type) !== -1) && E.measureTime(() => {
|
|
5272
|
-
const w =
|
|
5357
|
+
const w = zn(p, "", t, r, i, f);
|
|
5273
5358
|
if (w) {
|
|
5274
5359
|
const {
|
|
5275
5360
|
keyPath: y,
|
|
@@ -5281,7 +5366,7 @@ Take a look at the logic that dispatched this action: `, p, `
|
|
|
5281
5366
|
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`);
|
|
5282
5367
|
}
|
|
5283
5368
|
}), a || (E.measureTime(() => {
|
|
5284
|
-
const w = d.getState(), y =
|
|
5369
|
+
const w = d.getState(), y = zn(w, "", t, r, o, f);
|
|
5285
5370
|
if (y) {
|
|
5286
5371
|
const {
|
|
5287
5372
|
keyPath: b,
|
|
@@ -5298,7 +5383,7 @@ Take a look at the reducer(s) handling this action type: ${p.type}.
|
|
|
5298
5383
|
function cr(e) {
|
|
5299
5384
|
return typeof e == "boolean";
|
|
5300
5385
|
}
|
|
5301
|
-
var
|
|
5386
|
+
var pf = () => function(t) {
|
|
5302
5387
|
const {
|
|
5303
5388
|
thunk: r = !0,
|
|
5304
5389
|
immutableCheck: n = !0,
|
|
@@ -5306,24 +5391,24 @@ var uf = () => function(t) {
|
|
|
5306
5391
|
actionCreatorCheck: o = !0
|
|
5307
5392
|
} = t ?? {};
|
|
5308
5393
|
let s = new Ys();
|
|
5309
|
-
if (r && (cr(r) ? s.push(
|
|
5394
|
+
if (r && (cr(r) ? s.push(rf) : s.push(nf(r.extraArgument))), process.env.NODE_ENV !== "production") {
|
|
5310
5395
|
if (n) {
|
|
5311
5396
|
let a = {};
|
|
5312
|
-
cr(n) || (a = n), s.unshift(
|
|
5397
|
+
cr(n) || (a = n), s.unshift(df(a));
|
|
5313
5398
|
}
|
|
5314
5399
|
if (i) {
|
|
5315
5400
|
let a = {};
|
|
5316
|
-
cr(i) || (a = i), s.push(
|
|
5401
|
+
cr(i) || (a = i), s.push(hf(a));
|
|
5317
5402
|
}
|
|
5318
5403
|
if (o) {
|
|
5319
5404
|
let a = {};
|
|
5320
|
-
cr(o) || (a = o), s.unshift(
|
|
5405
|
+
cr(o) || (a = o), s.unshift(uf(a));
|
|
5321
5406
|
}
|
|
5322
5407
|
}
|
|
5323
5408
|
return s;
|
|
5324
|
-
},
|
|
5409
|
+
}, mf = "RTK_autoBatch", xo = (e) => (t) => {
|
|
5325
5410
|
setTimeout(t, e);
|
|
5326
|
-
},
|
|
5411
|
+
}, yf = (e = {
|
|
5327
5412
|
type: "raf"
|
|
5328
5413
|
}) => (t) => (...r) => {
|
|
5329
5414
|
const n = t(...r);
|
|
@@ -5348,21 +5433,21 @@ var uf = () => function(t) {
|
|
|
5348
5433
|
dispatch(f) {
|
|
5349
5434
|
var d;
|
|
5350
5435
|
try {
|
|
5351
|
-
return i = !((d = f == null ? void 0 : f.meta) != null && d[
|
|
5436
|
+
return i = !((d = f == null ? void 0 : f.meta) != null && d[mf]), o = !i, o && (s || (s = !0, u(l))), n.dispatch(f);
|
|
5352
5437
|
} finally {
|
|
5353
5438
|
i = !0;
|
|
5354
5439
|
}
|
|
5355
5440
|
}
|
|
5356
5441
|
});
|
|
5357
|
-
},
|
|
5442
|
+
}, gf = (e) => function(r) {
|
|
5358
5443
|
const {
|
|
5359
5444
|
autoBatch: n = !0
|
|
5360
5445
|
} = r ?? {};
|
|
5361
5446
|
let i = new Ys(e);
|
|
5362
|
-
return n && i.push(
|
|
5447
|
+
return n && i.push(yf(typeof n == "object" ? n : void 0)), i;
|
|
5363
5448
|
};
|
|
5364
|
-
function
|
|
5365
|
-
const t =
|
|
5449
|
+
function vf(e) {
|
|
5450
|
+
const t = pf(), {
|
|
5366
5451
|
reducer: r = void 0,
|
|
5367
5452
|
middleware: n,
|
|
5368
5453
|
devTools: i = !0,
|
|
@@ -5375,31 +5460,31 @@ function hf(e) {
|
|
|
5375
5460
|
else if (Xt(r))
|
|
5376
5461
|
a = Vs(r);
|
|
5377
5462
|
else
|
|
5378
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5463
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(1) : "`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");
|
|
5379
5464
|
if (process.env.NODE_ENV !== "production" && n && typeof n != "function")
|
|
5380
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5465
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(2) : "`middleware` field must be a callback");
|
|
5381
5466
|
let u;
|
|
5382
5467
|
if (typeof n == "function") {
|
|
5383
5468
|
if (u = n(t), process.env.NODE_ENV !== "production" && !Array.isArray(u))
|
|
5384
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5469
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(3) : "when using a middleware builder function, an array of middleware must be returned");
|
|
5385
5470
|
} else
|
|
5386
5471
|
u = t();
|
|
5387
5472
|
if (process.env.NODE_ENV !== "production" && u.some((v) => typeof v != "function"))
|
|
5388
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5389
|
-
let l =
|
|
5390
|
-
i && (l =
|
|
5473
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(4) : "each middleware provided to configureStore must be a function");
|
|
5474
|
+
let l = Or;
|
|
5475
|
+
i && (l = of({
|
|
5391
5476
|
// Enable capture of stack traces for dispatched Redux actions
|
|
5392
5477
|
trace: process.env.NODE_ENV !== "production",
|
|
5393
5478
|
...typeof i == "object" && i
|
|
5394
5479
|
}));
|
|
5395
|
-
const f =
|
|
5480
|
+
const f = ql(...u), d = gf(f);
|
|
5396
5481
|
if (process.env.NODE_ENV !== "production" && s && typeof s != "function")
|
|
5397
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5482
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(5) : "`enhancers` field must be a callback");
|
|
5398
5483
|
let h = typeof s == "function" ? s(d) : d();
|
|
5399
5484
|
if (process.env.NODE_ENV !== "production" && !Array.isArray(h))
|
|
5400
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5485
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(6) : "`enhancers` callback must return an array");
|
|
5401
5486
|
if (process.env.NODE_ENV !== "production" && h.some((v) => typeof v != "function"))
|
|
5402
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5487
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(7) : "each enhancer provided to configureStore must be a function");
|
|
5403
5488
|
process.env.NODE_ENV !== "production" && u.length && !h.includes(f) && console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");
|
|
5404
5489
|
const p = l(...h);
|
|
5405
5490
|
return js(a, o, p);
|
|
@@ -5411,20 +5496,20 @@ function Js(e) {
|
|
|
5411
5496
|
addCase(o, s) {
|
|
5412
5497
|
if (process.env.NODE_ENV !== "production") {
|
|
5413
5498
|
if (r.length > 0)
|
|
5414
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5499
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(26) : "`builder.addCase` should only be called before calling `builder.addMatcher`");
|
|
5415
5500
|
if (n)
|
|
5416
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5501
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(27) : "`builder.addCase` should only be called before calling `builder.addDefaultCase`");
|
|
5417
5502
|
}
|
|
5418
5503
|
const a = typeof o == "string" ? o : o.type;
|
|
5419
5504
|
if (!a)
|
|
5420
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5505
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(28) : "`builder.addCase` cannot be called with an empty action type");
|
|
5421
5506
|
if (a in t)
|
|
5422
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5507
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(29) : `\`builder.addCase\` cannot be called with two reducers for the same action type '${a}'`);
|
|
5423
5508
|
return t[a] = s, i;
|
|
5424
5509
|
},
|
|
5425
5510
|
addMatcher(o, s) {
|
|
5426
5511
|
if (process.env.NODE_ENV !== "production" && n)
|
|
5427
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5512
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(30) : "`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
|
|
5428
5513
|
return r.push({
|
|
5429
5514
|
matcher: o,
|
|
5430
5515
|
reducer: s
|
|
@@ -5432,20 +5517,20 @@ function Js(e) {
|
|
|
5432
5517
|
},
|
|
5433
5518
|
addDefaultCase(o) {
|
|
5434
5519
|
if (process.env.NODE_ENV !== "production" && n)
|
|
5435
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5520
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(31) : "`builder.addDefaultCase` can only be called once");
|
|
5436
5521
|
return n = o, i;
|
|
5437
5522
|
}
|
|
5438
5523
|
};
|
|
5439
5524
|
return e(i), [t, r, n];
|
|
5440
5525
|
}
|
|
5441
|
-
function
|
|
5526
|
+
function bf(e) {
|
|
5442
5527
|
return typeof e == "function";
|
|
5443
5528
|
}
|
|
5444
|
-
function
|
|
5529
|
+
function wf(e, t) {
|
|
5445
5530
|
if (process.env.NODE_ENV !== "production" && typeof t == "object")
|
|
5446
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5531
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(8) : "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
|
|
5447
5532
|
let [r, n, i] = Js(t), o;
|
|
5448
|
-
if (
|
|
5533
|
+
if (bf(e))
|
|
5449
5534
|
o = () => Eo(e());
|
|
5450
5535
|
else {
|
|
5451
5536
|
const a = Eo(e);
|
|
@@ -5480,36 +5565,36 @@ function mf(e, t) {
|
|
|
5480
5565
|
}
|
|
5481
5566
|
return s.getInitialState = o, s;
|
|
5482
5567
|
}
|
|
5483
|
-
var
|
|
5484
|
-
function
|
|
5568
|
+
var _f = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
|
|
5569
|
+
function Ef(e, t) {
|
|
5485
5570
|
return `${e}/${t}`;
|
|
5486
5571
|
}
|
|
5487
|
-
function
|
|
5572
|
+
function Sf({
|
|
5488
5573
|
creators: e
|
|
5489
5574
|
} = {}) {
|
|
5490
5575
|
var r;
|
|
5491
|
-
const t = (r = e == null ? void 0 : e.asyncThunk) == null ? void 0 : r[
|
|
5576
|
+
const t = (r = e == null ? void 0 : e.asyncThunk) == null ? void 0 : r[_f];
|
|
5492
5577
|
return function(i) {
|
|
5493
5578
|
const {
|
|
5494
5579
|
name: o,
|
|
5495
5580
|
reducerPath: s = o
|
|
5496
5581
|
} = i;
|
|
5497
5582
|
if (!o)
|
|
5498
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5583
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(11) : "`name` is a required option for createSlice");
|
|
5499
5584
|
typeof process < "u" && process.env.NODE_ENV === "development" && i.initialState === void 0 && console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
|
|
5500
|
-
const a = (typeof i.reducers == "function" ? i.reducers(
|
|
5585
|
+
const a = (typeof i.reducers == "function" ? i.reducers(Of()) : i.reducers) || {}, u = Object.keys(a), l = {
|
|
5501
5586
|
sliceCaseReducersByName: {},
|
|
5502
5587
|
sliceCaseReducersByType: {},
|
|
5503
5588
|
actionCreators: {},
|
|
5504
5589
|
sliceMatchers: []
|
|
5505
5590
|
}, f = {
|
|
5506
5591
|
addCase(m, S) {
|
|
5507
|
-
const
|
|
5508
|
-
if (!
|
|
5509
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5510
|
-
if (
|
|
5511
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5512
|
-
return l.sliceCaseReducersByType[
|
|
5592
|
+
const O = typeof m == "string" ? m : m.type;
|
|
5593
|
+
if (!O)
|
|
5594
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(12) : "`context.addCase` cannot be called with an empty action type");
|
|
5595
|
+
if (O in l.sliceCaseReducersByType)
|
|
5596
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + O);
|
|
5597
|
+
return l.sliceCaseReducersByType[O] = S, f;
|
|
5513
5598
|
},
|
|
5514
5599
|
addMatcher(m, S) {
|
|
5515
5600
|
return l.sliceMatchers.push({
|
|
@@ -5525,28 +5610,28 @@ function vf({
|
|
|
5525
5610
|
}
|
|
5526
5611
|
};
|
|
5527
5612
|
u.forEach((m) => {
|
|
5528
|
-
const S = a[m],
|
|
5613
|
+
const S = a[m], O = {
|
|
5529
5614
|
reducerName: m,
|
|
5530
|
-
type:
|
|
5615
|
+
type: Ef(o, m),
|
|
5531
5616
|
createNotation: typeof i.reducers == "function"
|
|
5532
5617
|
};
|
|
5533
|
-
|
|
5618
|
+
Nf(S) ? Rf(O, S, f, t) : Pf(O, S, f);
|
|
5534
5619
|
});
|
|
5535
5620
|
function d() {
|
|
5536
5621
|
if (process.env.NODE_ENV !== "production" && typeof i.extraReducers == "object")
|
|
5537
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5538
|
-
const [m = {}, S = [],
|
|
5622
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
|
|
5623
|
+
const [m = {}, S = [], O = void 0] = typeof i.extraReducers == "function" ? Js(i.extraReducers) : [i.extraReducers], P = {
|
|
5539
5624
|
...m,
|
|
5540
5625
|
...l.sliceCaseReducersByType
|
|
5541
5626
|
};
|
|
5542
|
-
return
|
|
5627
|
+
return wf(i.initialState, (k) => {
|
|
5543
5628
|
for (let D in P)
|
|
5544
|
-
|
|
5629
|
+
k.addCase(D, P[D]);
|
|
5545
5630
|
for (let D of l.sliceMatchers)
|
|
5546
|
-
|
|
5631
|
+
k.addMatcher(D.matcher, D.reducer);
|
|
5547
5632
|
for (let D of S)
|
|
5548
|
-
|
|
5549
|
-
|
|
5633
|
+
k.addMatcher(D.matcher, D.reducer);
|
|
5634
|
+
O && k.addDefaultCase(O);
|
|
5550
5635
|
});
|
|
5551
5636
|
}
|
|
5552
5637
|
const h = (m) => m, p = /* @__PURE__ */ new Map();
|
|
@@ -5558,32 +5643,32 @@ function vf({
|
|
|
5558
5643
|
return v || (v = d()), v.getInitialState();
|
|
5559
5644
|
}
|
|
5560
5645
|
function y(m, S = !1) {
|
|
5561
|
-
function k
|
|
5562
|
-
let D =
|
|
5646
|
+
function O(k) {
|
|
5647
|
+
let D = k[m];
|
|
5563
5648
|
if (typeof D > "u") {
|
|
5564
5649
|
if (S)
|
|
5565
5650
|
D = w();
|
|
5566
5651
|
else if (process.env.NODE_ENV !== "production")
|
|
5567
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5652
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(15) : "selectSlice returned undefined for an uninjected slice reducer");
|
|
5568
5653
|
}
|
|
5569
5654
|
return D;
|
|
5570
5655
|
}
|
|
5571
|
-
function P(
|
|
5656
|
+
function P(k = h) {
|
|
5572
5657
|
const D = So(p, S, () => /* @__PURE__ */ new WeakMap());
|
|
5573
|
-
return So(D,
|
|
5574
|
-
const
|
|
5575
|
-
for (const [fe,
|
|
5576
|
-
|
|
5577
|
-
return
|
|
5658
|
+
return So(D, k, () => {
|
|
5659
|
+
const z = {};
|
|
5660
|
+
for (const [fe, G] of Object.entries(i.selectors ?? {}))
|
|
5661
|
+
z[fe] = xf(G, k, w, S);
|
|
5662
|
+
return z;
|
|
5578
5663
|
});
|
|
5579
5664
|
}
|
|
5580
5665
|
return {
|
|
5581
5666
|
reducerPath: m,
|
|
5582
5667
|
getSelectors: P,
|
|
5583
5668
|
get selectors() {
|
|
5584
|
-
return P(
|
|
5669
|
+
return P(O);
|
|
5585
5670
|
},
|
|
5586
|
-
selectSlice:
|
|
5671
|
+
selectSlice: O
|
|
5587
5672
|
};
|
|
5588
5673
|
}
|
|
5589
5674
|
const b = {
|
|
@@ -5595,13 +5680,13 @@ function vf({
|
|
|
5595
5680
|
...y(s),
|
|
5596
5681
|
injectInto(m, {
|
|
5597
5682
|
reducerPath: S,
|
|
5598
|
-
...
|
|
5683
|
+
...O
|
|
5599
5684
|
} = {}) {
|
|
5600
5685
|
const P = S ?? s;
|
|
5601
5686
|
return m.inject({
|
|
5602
5687
|
reducerPath: P,
|
|
5603
5688
|
reducer: E
|
|
5604
|
-
},
|
|
5689
|
+
}, O), {
|
|
5605
5690
|
...b,
|
|
5606
5691
|
...y(P, !0)
|
|
5607
5692
|
};
|
|
@@ -5610,21 +5695,21 @@ function vf({
|
|
|
5610
5695
|
return b;
|
|
5611
5696
|
};
|
|
5612
5697
|
}
|
|
5613
|
-
function
|
|
5698
|
+
function xf(e, t, r, n) {
|
|
5614
5699
|
function i(o, ...s) {
|
|
5615
5700
|
let a = t(o);
|
|
5616
5701
|
if (typeof a > "u") {
|
|
5617
5702
|
if (n)
|
|
5618
5703
|
a = r();
|
|
5619
5704
|
else if (process.env.NODE_ENV !== "production")
|
|
5620
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5705
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(16) : "selectState returned undefined for an uninjected slice reducer");
|
|
5621
5706
|
}
|
|
5622
5707
|
return e(a, ...s);
|
|
5623
5708
|
}
|
|
5624
5709
|
return i.unwrapped = e, i;
|
|
5625
5710
|
}
|
|
5626
|
-
var
|
|
5627
|
-
function
|
|
5711
|
+
var kf = /* @__PURE__ */ Sf();
|
|
5712
|
+
function Of() {
|
|
5628
5713
|
function e(t, r) {
|
|
5629
5714
|
return {
|
|
5630
5715
|
_reducerDefinitionType: "asyncThunk",
|
|
@@ -5655,32 +5740,32 @@ function _f() {
|
|
|
5655
5740
|
asyncThunk: e
|
|
5656
5741
|
};
|
|
5657
5742
|
}
|
|
5658
|
-
function
|
|
5743
|
+
function Pf({
|
|
5659
5744
|
type: e,
|
|
5660
5745
|
reducerName: t,
|
|
5661
5746
|
createNotation: r
|
|
5662
5747
|
}, n, i) {
|
|
5663
5748
|
let o, s;
|
|
5664
5749
|
if ("reducer" in n) {
|
|
5665
|
-
if (r && !
|
|
5666
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5750
|
+
if (r && !Cf(n))
|
|
5751
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(17) : "Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");
|
|
5667
5752
|
o = n.reducer, s = n.prepare;
|
|
5668
5753
|
} else
|
|
5669
5754
|
o = n;
|
|
5670
5755
|
i.addCase(e, o).exposeCaseReducer(t, o).exposeAction(t, s ? _o(e, s) : _o(e));
|
|
5671
5756
|
}
|
|
5672
|
-
function
|
|
5757
|
+
function Nf(e) {
|
|
5673
5758
|
return e._reducerDefinitionType === "asyncThunk";
|
|
5674
5759
|
}
|
|
5675
|
-
function
|
|
5760
|
+
function Cf(e) {
|
|
5676
5761
|
return e._reducerDefinitionType === "reducerWithPrepare";
|
|
5677
5762
|
}
|
|
5678
|
-
function
|
|
5763
|
+
function Rf({
|
|
5679
5764
|
type: e,
|
|
5680
5765
|
reducerName: t
|
|
5681
5766
|
}, r, n, i) {
|
|
5682
5767
|
if (!i)
|
|
5683
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5768
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(18) : "Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");
|
|
5684
5769
|
const {
|
|
5685
5770
|
payloadCreator: o,
|
|
5686
5771
|
fulfilled: s,
|
|
@@ -5698,28 +5783,29 @@ function Of({
|
|
|
5698
5783
|
}
|
|
5699
5784
|
function ur() {
|
|
5700
5785
|
}
|
|
5701
|
-
function
|
|
5786
|
+
function L(e) {
|
|
5702
5787
|
return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
5703
5788
|
}
|
|
5704
|
-
const
|
|
5789
|
+
const Af = {
|
|
5705
5790
|
cardPosition: "transit-to-home"
|
|
5706
|
-
}, Zs =
|
|
5791
|
+
}, Zs = kf({
|
|
5707
5792
|
name: "navigation",
|
|
5708
|
-
initialState:
|
|
5793
|
+
initialState: Af,
|
|
5709
5794
|
reducers: {
|
|
5710
5795
|
setCardState: (e, t) => (e.cardPosition = t.payload.state, e)
|
|
5711
5796
|
}
|
|
5712
|
-
}), { setCardState:
|
|
5797
|
+
}), { setCardState: Ff } = Zs.actions, Tf = Vs({
|
|
5713
5798
|
navigation: Zs.reducer
|
|
5714
|
-
}),
|
|
5715
|
-
reducer:
|
|
5799
|
+
}), Lf = vf({
|
|
5800
|
+
reducer: Tf
|
|
5716
5801
|
});
|
|
5717
5802
|
export {
|
|
5718
5803
|
Jc as AnimatedText,
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5804
|
+
$f as BackButton,
|
|
5805
|
+
jf as BannerButton,
|
|
5806
|
+
Vf as CircleIconButton,
|
|
5807
|
+
zf as ListItem,
|
|
5808
|
+
Dl as ToggleSwitch,
|
|
5809
|
+
Mf as UnorderedListItemContainer,
|
|
5810
|
+
Lf as ymyStore
|
|
5725
5811
|
};
|