ymy-components 0.0.28 → 0.0.30
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/buttons/CircleIconButton.styles.d.ts +2 -2
- package/dist/index.cjs.js +19 -18
- package/dist/index.es.js +850 -862
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import te, { useState as
|
|
1
|
+
import * as Mn from "react";
|
|
2
|
+
import te, { useState as zn, useRef as Me, useEffect as gt, useLayoutEffect as Ea, forwardRef as Sa, useCallback as xa, useContext as Fn, useMemo as tr, useDebugValue as Ei, createElement as Oa } from "react";
|
|
3
3
|
import { unstable_batchedUpdates as ka } from "react-dom";
|
|
4
4
|
var rr = { exports: {} }, xt = {};
|
|
5
5
|
/**
|
|
@@ -38,24 +38,24 @@ var Ot = {};
|
|
|
38
38
|
var xi;
|
|
39
39
|
function Na() {
|
|
40
40
|
return xi || (xi = 1, process.env.NODE_ENV !== "production" && function() {
|
|
41
|
-
var e = te, 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,
|
|
41
|
+
var e = te, 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, S = "@@iterator";
|
|
42
42
|
function w(c) {
|
|
43
43
|
if (c === null || typeof c != "object")
|
|
44
44
|
return null;
|
|
45
|
-
var g = v && c[v] || c[
|
|
45
|
+
var g = v && c[v] || c[S];
|
|
46
46
|
return typeof g == "function" ? g : null;
|
|
47
47
|
}
|
|
48
|
-
var
|
|
48
|
+
var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
49
49
|
function b(c) {
|
|
50
50
|
{
|
|
51
51
|
for (var g = arguments.length, x = new Array(g > 1 ? g - 1 : 0), N = 1; N < g; N++)
|
|
52
52
|
x[N - 1] = arguments[N];
|
|
53
|
-
|
|
53
|
+
m("error", c, x);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function m(c, g, x) {
|
|
57
57
|
{
|
|
58
|
-
var N =
|
|
58
|
+
var N = y.ReactDebugCurrentFrame, j = N.getStackAddendum();
|
|
59
59
|
j !== "" && (g += "%s", x = x.concat([j]));
|
|
60
60
|
var $ = x.map(function(D) {
|
|
61
61
|
return String(D);
|
|
@@ -63,10 +63,10 @@ function Na() {
|
|
|
63
63
|
$.unshift("Warning: " + g), Function.prototype.apply.call(console[c], console, $);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
var
|
|
66
|
+
var E = !1, k = !1, P = !1, O = !1, I = !1, M;
|
|
67
67
|
M = Symbol.for("react.module.reference");
|
|
68
68
|
function fe(c) {
|
|
69
|
-
return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || I || c === i || c === l || c === f || O || c === p ||
|
|
69
|
+
return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || I || c === i || c === l || c === f || O || c === p || E || k || 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.
|
|
@@ -127,14 +127,14 @@ function Na() {
|
|
|
127
127
|
}
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
130
|
-
var he = Object.assign, ze = 0, Jt, et, _t, se,
|
|
130
|
+
var he = Object.assign, ze = 0, Jt, et, _t, se, Ne, Ce, K;
|
|
131
131
|
function tt() {
|
|
132
132
|
}
|
|
133
133
|
tt.__reactDisabledLog = !0;
|
|
134
134
|
function Et() {
|
|
135
135
|
{
|
|
136
136
|
if (ze === 0) {
|
|
137
|
-
Jt = console.log, et = console.info, _t = console.warn, se = console.error,
|
|
137
|
+
Jt = console.log, et = console.info, _t = console.warn, se = console.error, Ne = console.group, Ce = console.groupCollapsed, K = console.groupEnd;
|
|
138
138
|
var c = {
|
|
139
139
|
configurable: !0,
|
|
140
140
|
enumerable: !0,
|
|
@@ -176,10 +176,10 @@ function Na() {
|
|
|
176
176
|
value: se
|
|
177
177
|
}),
|
|
178
178
|
group: he({}, c, {
|
|
179
|
-
value:
|
|
179
|
+
value: Ne
|
|
180
180
|
}),
|
|
181
181
|
groupCollapsed: he({}, c, {
|
|
182
|
-
value:
|
|
182
|
+
value: Ce
|
|
183
183
|
}),
|
|
184
184
|
groupEnd: he({}, c, {
|
|
185
185
|
value: K
|
|
@@ -189,30 +189,30 @@ function Na() {
|
|
|
189
189
|
ze < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
var
|
|
192
|
+
var xe = y.ReactCurrentDispatcher, Re;
|
|
193
193
|
function pe(c, g, x) {
|
|
194
194
|
{
|
|
195
|
-
if (
|
|
195
|
+
if (Re === void 0)
|
|
196
196
|
try {
|
|
197
197
|
throw Error();
|
|
198
198
|
} catch (j) {
|
|
199
199
|
var N = j.stack.trim().match(/\n( *(at )?)/);
|
|
200
|
-
|
|
200
|
+
Re = N && N[1] || "";
|
|
201
201
|
}
|
|
202
202
|
return `
|
|
203
|
-
` +
|
|
203
|
+
` + Re + c;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
var me = !1,
|
|
206
|
+
var me = !1, Ae;
|
|
207
207
|
{
|
|
208
208
|
var nt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
209
|
-
|
|
209
|
+
Ae = new nt();
|
|
210
210
|
}
|
|
211
211
|
function ye(c, g) {
|
|
212
212
|
if (!c || me)
|
|
213
213
|
return "";
|
|
214
214
|
{
|
|
215
|
-
var x =
|
|
215
|
+
var x = Ae.get(c);
|
|
216
216
|
if (x !== void 0)
|
|
217
217
|
return x;
|
|
218
218
|
}
|
|
@@ -221,7 +221,7 @@ function Na() {
|
|
|
221
221
|
var j = Error.prepareStackTrace;
|
|
222
222
|
Error.prepareStackTrace = void 0;
|
|
223
223
|
var $;
|
|
224
|
-
$ =
|
|
224
|
+
$ = xe.current, xe.current = null, Et();
|
|
225
225
|
try {
|
|
226
226
|
if (g) {
|
|
227
227
|
var D = function() {
|
|
@@ -258,31 +258,31 @@ function Na() {
|
|
|
258
258
|
if (X && N && typeof X.stack == "string") {
|
|
259
259
|
for (var A = X.stack.split(`
|
|
260
260
|
`), Q = N.stack.split(`
|
|
261
|
-
`),
|
|
261
|
+
`), L = A.length - 1, U = Q.length - 1; L >= 1 && U >= 0 && A[L] !== Q[U]; )
|
|
262
262
|
U--;
|
|
263
|
-
for (;
|
|
264
|
-
if (A[
|
|
265
|
-
if (
|
|
263
|
+
for (; L >= 1 && U >= 0; L--, U--)
|
|
264
|
+
if (A[L] !== Q[U]) {
|
|
265
|
+
if (L !== 1 || U !== 1)
|
|
266
266
|
do
|
|
267
|
-
if (
|
|
267
|
+
if (L--, U--, U < 0 || A[L] !== Q[U]) {
|
|
268
268
|
var ae = `
|
|
269
|
-
` + A[
|
|
270
|
-
return c.displayName && ae.includes("<anonymous>") && (ae = ae.replace("<anonymous>", c.displayName)), typeof c == "function" &&
|
|
269
|
+
` + A[L].replace(" at new ", " at ");
|
|
270
|
+
return c.displayName && ae.includes("<anonymous>") && (ae = ae.replace("<anonymous>", c.displayName)), typeof c == "function" && Ae.set(c, ae), ae;
|
|
271
271
|
}
|
|
272
|
-
while (
|
|
272
|
+
while (L >= 1 && U >= 0);
|
|
273
273
|
break;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
} finally {
|
|
277
|
-
me = !1,
|
|
277
|
+
me = !1, xe.current = $, rt(), Error.prepareStackTrace = j;
|
|
278
278
|
}
|
|
279
279
|
var ot = c ? c.displayName || c.name : "", Fe = ot ? pe(ot) : "";
|
|
280
|
-
return typeof c == "function" &&
|
|
280
|
+
return typeof c == "function" && Ae.set(c, Fe), Fe;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function Js(c, g, x) {
|
|
283
283
|
return ye(c, !1);
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function Zs(c) {
|
|
286
286
|
var g = c.prototype;
|
|
287
287
|
return !!(g && g.isReactComponent);
|
|
288
288
|
}
|
|
@@ -290,7 +290,7 @@ function Na() {
|
|
|
290
290
|
if (c == null)
|
|
291
291
|
return "";
|
|
292
292
|
if (typeof c == "function")
|
|
293
|
-
return ye(c,
|
|
293
|
+
return ye(c, Zs(c));
|
|
294
294
|
if (typeof c == "string")
|
|
295
295
|
return pe(c);
|
|
296
296
|
switch (c) {
|
|
@@ -302,7 +302,7 @@ function Na() {
|
|
|
302
302
|
if (typeof c == "object")
|
|
303
303
|
switch (c.$$typeof) {
|
|
304
304
|
case u:
|
|
305
|
-
return
|
|
305
|
+
return Js(c.render);
|
|
306
306
|
case d:
|
|
307
307
|
return Zt(c.type, g, x);
|
|
308
308
|
case h: {
|
|
@@ -315,7 +315,7 @@ function Na() {
|
|
|
315
315
|
}
|
|
316
316
|
return "";
|
|
317
317
|
}
|
|
318
|
-
var St = Object.prototype.hasOwnProperty, ci = {}, ui =
|
|
318
|
+
var St = Object.prototype.hasOwnProperty, ci = {}, ui = 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);
|
|
@@ -323,7 +323,7 @@ function Na() {
|
|
|
323
323
|
} else
|
|
324
324
|
ui.setExtraStackFrame(null);
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function ea(c, g, x, N, j) {
|
|
327
327
|
{
|
|
328
328
|
var $ = Function.call.bind(St);
|
|
329
329
|
for (var D in c)
|
|
@@ -335,24 +335,24 @@ function Na() {
|
|
|
335
335
|
throw Q.name = "Invariant Violation", Q;
|
|
336
336
|
}
|
|
337
337
|
A = c[D](g, D, N, x, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
338
|
-
} catch (
|
|
339
|
-
A =
|
|
338
|
+
} catch (L) {
|
|
339
|
+
A = L;
|
|
340
340
|
}
|
|
341
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, D, typeof A), er(null)), A instanceof Error && !(A.message in ci) && (ci[A.message] = !0, er(j), b("Failed %s type: %s", x, A.message), er(null));
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
var
|
|
346
|
-
function
|
|
347
|
-
return
|
|
345
|
+
var ta = Array.isArray;
|
|
346
|
+
function Gr(c) {
|
|
347
|
+
return ta(c);
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function ra(c) {
|
|
350
350
|
{
|
|
351
351
|
var g = typeof Symbol == "function" && Symbol.toStringTag, x = g && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
352
352
|
return x;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function na(c) {
|
|
356
356
|
try {
|
|
357
357
|
return li(c), !1;
|
|
358
358
|
} catch {
|
|
@@ -363,16 +363,16 @@ function Na() {
|
|
|
363
363
|
return "" + c;
|
|
364
364
|
}
|
|
365
365
|
function fi(c) {
|
|
366
|
-
if (
|
|
367
|
-
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
366
|
+
if (na(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.", ra(c)), li(c);
|
|
368
368
|
}
|
|
369
|
-
var di =
|
|
369
|
+
var di = y.ReactCurrentOwner, ia = {
|
|
370
370
|
key: !0,
|
|
371
371
|
ref: !0,
|
|
372
372
|
__self: !0,
|
|
373
373
|
__source: !0
|
|
374
374
|
}, hi, pi;
|
|
375
|
-
function
|
|
375
|
+
function oa(c) {
|
|
376
376
|
if (St.call(c, "ref")) {
|
|
377
377
|
var g = Object.getOwnPropertyDescriptor(c, "ref").get;
|
|
378
378
|
if (g && g.isReactWarning)
|
|
@@ -380,7 +380,7 @@ function Na() {
|
|
|
380
380
|
}
|
|
381
381
|
return c.ref !== void 0;
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function sa(c) {
|
|
384
384
|
if (St.call(c, "key")) {
|
|
385
385
|
var g = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
386
386
|
if (g && g.isReactWarning)
|
|
@@ -388,10 +388,10 @@ function Na() {
|
|
|
388
388
|
}
|
|
389
389
|
return c.key !== void 0;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function aa(c, g) {
|
|
392
392
|
typeof c.ref == "string" && di.current;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function ca(c, g) {
|
|
395
395
|
{
|
|
396
396
|
var x = function() {
|
|
397
397
|
hi || (hi = !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));
|
|
@@ -402,7 +402,7 @@ function Na() {
|
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function ua(c, g) {
|
|
406
406
|
{
|
|
407
407
|
var x = function() {
|
|
408
408
|
pi || (pi = !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));
|
|
@@ -413,7 +413,7 @@ function Na() {
|
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
var
|
|
416
|
+
var la = function(c, g, x, N, j, $, D) {
|
|
417
417
|
var A = {
|
|
418
418
|
// This tag allows us to uniquely identify this as a React Element
|
|
419
419
|
$$typeof: t,
|
|
@@ -442,25 +442,25 @@ function Na() {
|
|
|
442
442
|
value: j
|
|
443
443
|
}), Object.freeze && (Object.freeze(A.props), Object.freeze(A)), A;
|
|
444
444
|
};
|
|
445
|
-
function
|
|
445
|
+
function fa(c, g, x, N, j) {
|
|
446
446
|
{
|
|
447
447
|
var $, D = {}, A = null, Q = null;
|
|
448
|
-
x !== void 0 && (fi(x), A = "" + x),
|
|
448
|
+
x !== void 0 && (fi(x), A = "" + x), sa(g) && (fi(g.key), A = "" + g.key), oa(g) && (Q = g.ref, aa(g, j));
|
|
449
449
|
for ($ in g)
|
|
450
|
-
St.call(g, $) && !
|
|
450
|
+
St.call(g, $) && !ia.hasOwnProperty($) && (D[$] = g[$]);
|
|
451
451
|
if (c && c.defaultProps) {
|
|
452
|
-
var
|
|
453
|
-
for ($ in
|
|
454
|
-
D[$] === void 0 && (D[$] =
|
|
452
|
+
var L = c.defaultProps;
|
|
453
|
+
for ($ in L)
|
|
454
|
+
D[$] === void 0 && (D[$] = L[$]);
|
|
455
455
|
}
|
|
456
456
|
if (A || Q) {
|
|
457
457
|
var U = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
|
|
458
|
-
A &&
|
|
458
|
+
A && ca(D, U), Q && ua(D, U);
|
|
459
459
|
}
|
|
460
|
-
return
|
|
460
|
+
return la(c, A, Q, j, N, di.current, D);
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
var
|
|
463
|
+
var Kr = y.ReactCurrentOwner, mi = 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);
|
|
@@ -468,15 +468,15 @@ function Na() {
|
|
|
468
468
|
} else
|
|
469
469
|
mi.setExtraStackFrame(null);
|
|
470
470
|
}
|
|
471
|
-
var
|
|
472
|
-
|
|
473
|
-
function
|
|
471
|
+
var Qr;
|
|
472
|
+
Qr = !1;
|
|
473
|
+
function Xr(c) {
|
|
474
474
|
return typeof c == "object" && c !== null && c.$$typeof === t;
|
|
475
475
|
}
|
|
476
476
|
function yi() {
|
|
477
477
|
{
|
|
478
|
-
if (
|
|
479
|
-
var c = W(
|
|
478
|
+
if (Kr.current) {
|
|
479
|
+
var c = W(Kr.current.type);
|
|
480
480
|
if (c)
|
|
481
481
|
return `
|
|
482
482
|
|
|
@@ -485,11 +485,11 @@ Check the render method of \`` + c + "`.";
|
|
|
485
485
|
return "";
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function da(c) {
|
|
489
489
|
return "";
|
|
490
490
|
}
|
|
491
491
|
var gi = {};
|
|
492
|
-
function
|
|
492
|
+
function ha(c) {
|
|
493
493
|
{
|
|
494
494
|
var g = yi();
|
|
495
495
|
if (!g) {
|
|
@@ -506,34 +506,34 @@ Check the top-level render call using <` + x + ">.");
|
|
|
506
506
|
if (!c._store || c._store.validated || c.key != null)
|
|
507
507
|
return;
|
|
508
508
|
c._store.validated = !0;
|
|
509
|
-
var x =
|
|
509
|
+
var x = ha(g);
|
|
510
510
|
if (gi[x])
|
|
511
511
|
return;
|
|
512
512
|
gi[x] = !0;
|
|
513
513
|
var N = "";
|
|
514
|
-
c && c._owner && c._owner !==
|
|
514
|
+
c && c._owner && c._owner !== Kr.current && (N = " It was passed a child from " + W(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
517
|
function bi(c, g) {
|
|
518
518
|
{
|
|
519
519
|
if (typeof c != "object")
|
|
520
520
|
return;
|
|
521
|
-
if (
|
|
521
|
+
if (Gr(c))
|
|
522
522
|
for (var x = 0; x < c.length; x++) {
|
|
523
523
|
var N = c[x];
|
|
524
|
-
|
|
524
|
+
Xr(N) && vi(N, g);
|
|
525
525
|
}
|
|
526
|
-
else if (
|
|
526
|
+
else if (Xr(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
531
|
for (var $ = j.call(c), D; !(D = $.next()).done; )
|
|
532
|
-
|
|
532
|
+
Xr(D.value) && vi(D.value, g);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function pa(c) {
|
|
537
537
|
{
|
|
538
538
|
var g = c.type;
|
|
539
539
|
if (g == null || typeof g == "string")
|
|
@@ -549,16 +549,16 @@ Check the top-level render call using <` + x + ">.");
|
|
|
549
549
|
return;
|
|
550
550
|
if (x) {
|
|
551
551
|
var N = W(g);
|
|
552
|
-
|
|
553
|
-
} else if (g.PropTypes !== void 0 && !
|
|
554
|
-
|
|
552
|
+
ea(x, c.props, "prop", N, c);
|
|
553
|
+
} else if (g.PropTypes !== void 0 && !Qr) {
|
|
554
|
+
Qr = !0;
|
|
555
555
|
var j = W(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.");
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function ma(c) {
|
|
562
562
|
{
|
|
563
563
|
for (var g = Object.keys(c.props), x = 0; x < g.length; x++) {
|
|
564
564
|
var N = g[x];
|
|
@@ -577,19 +577,19 @@ Check the top-level render call using <` + x + ">.");
|
|
|
577
577
|
if (!D) {
|
|
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 Q =
|
|
580
|
+
var Q = da();
|
|
581
581
|
Q ? A += Q : A += yi();
|
|
582
|
-
var
|
|
583
|
-
c === null ?
|
|
582
|
+
var L;
|
|
583
|
+
c === null ? L = "null" : Gr(c) ? L = "array" : c !== void 0 && c.$$typeof === t ? (L = "<" + (W(c.type) || "Unknown") + " />", A = " Did you accidentally export a JSX literal instead of a component?") : L = 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", L, A);
|
|
584
584
|
}
|
|
585
|
-
var U =
|
|
585
|
+
var U = fa(c, g, x, j, $);
|
|
586
586
|
if (U == null)
|
|
587
587
|
return U;
|
|
588
588
|
if (D) {
|
|
589
589
|
var ae = g.children;
|
|
590
590
|
if (ae !== void 0)
|
|
591
591
|
if (N)
|
|
592
|
-
if (
|
|
592
|
+
if (Gr(ae)) {
|
|
593
593
|
for (var ot = 0; ot < ae.length; ot++)
|
|
594
594
|
bi(ae[ot], c);
|
|
595
595
|
Object.freeze && Object.freeze(ae);
|
|
@@ -599,58 +599,58 @@ Check the top-level render call using <` + x + ">.");
|
|
|
599
599
|
bi(ae, c);
|
|
600
600
|
}
|
|
601
601
|
if (St.call(g, "key")) {
|
|
602
|
-
var Fe = W(c), X = Object.keys(g).filter(function(
|
|
603
|
-
return
|
|
604
|
-
}),
|
|
605
|
-
if (!wi[Fe +
|
|
606
|
-
var
|
|
602
|
+
var Fe = W(c), X = Object.keys(g).filter(function(_a) {
|
|
603
|
+
return _a !== "key";
|
|
604
|
+
}), Jr = X.length > 0 ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
605
|
+
if (!wi[Fe + Jr]) {
|
|
606
|
+
var wa = X.length > 0 ? "{" + X.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} />`, Jr, Fe, wa, Fe), wi[Fe + Jr] = !0;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
return c === n ?
|
|
615
|
+
return c === n ? ma(U) : pa(U), U;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function ya(c, g, x) {
|
|
619
619
|
return _i(c, g, x, !0);
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function ga(c, g, x) {
|
|
622
622
|
return _i(c, g, x, !1);
|
|
623
623
|
}
|
|
624
|
-
var
|
|
625
|
-
Ot.Fragment = n, Ot.jsx =
|
|
624
|
+
var va = ga, ba = ya;
|
|
625
|
+
Ot.Fragment = n, Ot.jsx = va, Ot.jsxs = ba;
|
|
626
626
|
}()), Ot;
|
|
627
627
|
}
|
|
628
628
|
var Oi;
|
|
629
629
|
function Ca() {
|
|
630
630
|
return Oi || (Oi = 1, process.env.NODE_ENV === "production" ? rr.exports = Pa() : rr.exports = Na()), rr.exports;
|
|
631
631
|
}
|
|
632
|
-
var
|
|
633
|
-
C.write = (e) => Gt(e,
|
|
634
|
-
var
|
|
635
|
-
C.onStart = (e) => Gt(e,
|
|
636
|
-
var
|
|
637
|
-
C.onFrame = (e) => Gt(e,
|
|
632
|
+
var q = Ca(), Ln = Kt(), C = (e) => Gt(e, Ln), Un = Kt();
|
|
633
|
+
C.write = (e) => Gt(e, Un);
|
|
634
|
+
var Rr = Kt();
|
|
635
|
+
C.onStart = (e) => Gt(e, Rr);
|
|
636
|
+
var Bn = Kt();
|
|
637
|
+
C.onFrame = (e) => Gt(e, Bn);
|
|
638
638
|
var qn = Kt();
|
|
639
639
|
C.onFinish = (e) => Gt(e, qn);
|
|
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
|
-
~o && ct.splice(o, 1),
|
|
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(So(r), 0, i), Ve += 1, xo(), i;
|
|
647
647
|
};
|
|
648
|
-
var
|
|
648
|
+
var So = (e) => ~(~ct.findIndex((t) => t.time > e) || ~ct.length);
|
|
649
649
|
C.cancel = (e) => {
|
|
650
|
-
|
|
650
|
+
Rr.delete(e), Bn.delete(e), qn.delete(e), Ln.delete(e), Un.delete(e);
|
|
651
651
|
};
|
|
652
652
|
C.sync = (e) => {
|
|
653
|
-
|
|
653
|
+
hn = !0, C.batchedUpdates(e), hn = !1;
|
|
654
654
|
};
|
|
655
655
|
C.throttle = (e) => {
|
|
656
656
|
let t;
|
|
@@ -665,7 +665,7 @@ C.throttle = (e) => {
|
|
|
665
665
|
t = i, C.onStart(r);
|
|
666
666
|
}
|
|
667
667
|
return n.handler = e, n.cancel = () => {
|
|
668
|
-
|
|
668
|
+
Rr.delete(r), t = null;
|
|
669
669
|
}, n;
|
|
670
670
|
};
|
|
671
671
|
var Wn = typeof window < "u" ? window.requestAnimationFrame : (
|
|
@@ -681,46 +681,46 @@ C.frameLoop = "always";
|
|
|
681
681
|
C.advance = () => {
|
|
682
682
|
C.frameLoop !== "demand" ? console.warn(
|
|
683
683
|
"Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"
|
|
684
|
-
) :
|
|
684
|
+
) : ko();
|
|
685
685
|
};
|
|
686
|
-
var
|
|
686
|
+
var je = -1, Ve = 0, hn = !1;
|
|
687
687
|
function Gt(e, t) {
|
|
688
|
-
|
|
688
|
+
hn ? (t.delete(e), e(0)) : (t.add(e), xo());
|
|
689
689
|
}
|
|
690
|
-
function
|
|
691
|
-
|
|
690
|
+
function xo() {
|
|
691
|
+
je < 0 && (je = 0, C.frameLoop !== "demand" && Wn(Oo));
|
|
692
692
|
}
|
|
693
693
|
function Ra() {
|
|
694
|
-
|
|
694
|
+
je = -1;
|
|
695
695
|
}
|
|
696
|
-
function
|
|
697
|
-
~
|
|
696
|
+
function Oo() {
|
|
697
|
+
~je && (Wn(Oo), C.batchedUpdates(ko));
|
|
698
698
|
}
|
|
699
|
-
function
|
|
700
|
-
const e =
|
|
701
|
-
|
|
702
|
-
const t =
|
|
703
|
-
if (t && (
|
|
699
|
+
function ko() {
|
|
700
|
+
const e = je;
|
|
701
|
+
je = C.now();
|
|
702
|
+
const t = So(je);
|
|
703
|
+
if (t && (Po(ct.splice(0, t), (r) => r.handler()), Ve -= t), !Ve) {
|
|
704
704
|
Ra();
|
|
705
705
|
return;
|
|
706
706
|
}
|
|
707
|
-
|
|
707
|
+
Rr.flush(), Ln.flush(e ? Math.min(64, je - e) : 16.667), Bn.flush(), Un.flush(), qn.flush();
|
|
708
708
|
}
|
|
709
709
|
function Kt() {
|
|
710
710
|
let e = /* @__PURE__ */ new Set(), t = e;
|
|
711
711
|
return {
|
|
712
712
|
add(r) {
|
|
713
|
-
|
|
713
|
+
Ve += t == e && !e.has(r) ? 1 : 0, e.add(r);
|
|
714
714
|
},
|
|
715
715
|
delete(r) {
|
|
716
|
-
return
|
|
716
|
+
return Ve -= t == e && e.has(r) ? 1 : 0, e.delete(r);
|
|
717
717
|
},
|
|
718
718
|
flush(r) {
|
|
719
|
-
t.size && (e = /* @__PURE__ */ new Set(),
|
|
719
|
+
t.size && (e = /* @__PURE__ */ new Set(), Ve -= t.size, Po(t, (n) => n(r) && e.add(n)), Ve += e.size, t = e);
|
|
720
720
|
}
|
|
721
721
|
};
|
|
722
722
|
}
|
|
723
|
-
function
|
|
723
|
+
function Po(e, t) {
|
|
724
724
|
e.forEach((r) => {
|
|
725
725
|
try {
|
|
726
726
|
t(r);
|
|
@@ -735,13 +735,13 @@ var Aa = Object.defineProperty, Ta = (e, t) => {
|
|
|
735
735
|
}, we = {};
|
|
736
736
|
Ta(we, {
|
|
737
737
|
assign: () => Ia,
|
|
738
|
-
colors: () =>
|
|
738
|
+
colors: () => $e,
|
|
739
739
|
createStringInterpolator: () => Yn,
|
|
740
|
-
skipAnimation: () =>
|
|
741
|
-
to: () =>
|
|
740
|
+
skipAnimation: () => Co,
|
|
741
|
+
to: () => No,
|
|
742
742
|
willAdvance: () => Gn
|
|
743
743
|
});
|
|
744
|
-
function
|
|
744
|
+
function pn() {
|
|
745
745
|
}
|
|
746
746
|
var Da = (e, t, r) => Object.defineProperty(e, t, { value: r, writable: !0, configurable: !0 }), _ = {
|
|
747
747
|
arr: Array.isArray,
|
|
@@ -751,7 +751,7 @@ var Da = (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 Oe(e, t) {
|
|
755
755
|
if (_.arr(e)) {
|
|
756
756
|
if (!_.arr(t) || e.length !== t.length)
|
|
757
757
|
return !1;
|
|
@@ -763,7 +763,7 @@ function ke(e, t) {
|
|
|
763
763
|
return e === t;
|
|
764
764
|
}
|
|
765
765
|
var T = (e, t) => e.forEach(t);
|
|
766
|
-
function
|
|
766
|
+
function Se(e, t, r) {
|
|
767
767
|
if (_.arr(e)) {
|
|
768
768
|
for (let n = 0; n < e.length; n++)
|
|
769
769
|
t.call(r, e[n], `${n}`);
|
|
@@ -779,25 +779,25 @@ 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)), Hn = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), Yn,
|
|
783
|
-
e.to && (
|
|
784
|
-
}, Dt = /* @__PURE__ */ new Set(), ue = [],
|
|
782
|
+
var Ct = (e, ...t) => Tt(e, (r) => r(...t)), Hn = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), Yn, No, $e = null, Co = !1, Gn = pn, Ia = (e) => {
|
|
783
|
+
e.to && (No = e.to), e.now && (C.now = e.now), e.colors !== void 0 && ($e = e.colors), e.skipAnimation != null && (Co = e.skipAnimation), e.createStringInterpolator && (Yn = e.createStringInterpolator), e.requestAnimationFrame && C.use(e.requestAnimationFrame), e.batchedUpdates && (C.batchedUpdates = e.batchedUpdates), e.willAdvance && (Gn = e.willAdvance), e.frameLoop && (C.frameLoop = e.frameLoop);
|
|
784
|
+
}, Dt = /* @__PURE__ */ new Set(), ue = [], Zr = [], gr = 0, Ar = {
|
|
785
785
|
get idle() {
|
|
786
786
|
return !Dt.size && !ue.length;
|
|
787
787
|
},
|
|
788
788
|
/** Advance the given animation on every frame until idle. */
|
|
789
789
|
start(e) {
|
|
790
|
-
|
|
790
|
+
gr > e.priority ? (Dt.add(e), C.onStart(ja)) : (Ro(e), C(mn));
|
|
791
791
|
},
|
|
792
792
|
/** Advance all animations by the given time. */
|
|
793
|
-
advance:
|
|
793
|
+
advance: mn,
|
|
794
794
|
/** Call this when an animation's priority changes. */
|
|
795
795
|
sort(e) {
|
|
796
|
-
if (
|
|
797
|
-
C.onFrame(() =>
|
|
796
|
+
if (gr)
|
|
797
|
+
C.onFrame(() => Ar.sort(e));
|
|
798
798
|
else {
|
|
799
799
|
const t = ue.indexOf(e);
|
|
800
|
-
~t && (ue.splice(t, 1),
|
|
800
|
+
~t && (ue.splice(t, 1), Ao(e));
|
|
801
801
|
}
|
|
802
802
|
},
|
|
803
803
|
/**
|
|
@@ -810,25 +810,25 @@ var Ct = (e, ...t) => Tt(e, (r) => r(...t)), Hn = () => typeof window > "u" || !
|
|
|
810
810
|
}
|
|
811
811
|
};
|
|
812
812
|
function ja() {
|
|
813
|
-
Dt.forEach(
|
|
813
|
+
Dt.forEach(Ro), Dt.clear(), C(mn);
|
|
814
814
|
}
|
|
815
|
-
function
|
|
816
|
-
ue.includes(e) ||
|
|
815
|
+
function Ro(e) {
|
|
816
|
+
ue.includes(e) || Ao(e);
|
|
817
817
|
}
|
|
818
|
-
function
|
|
818
|
+
function Ao(e) {
|
|
819
819
|
ue.splice(
|
|
820
820
|
Va(ue, (t) => t.priority > e.priority),
|
|
821
821
|
0,
|
|
822
822
|
e
|
|
823
823
|
);
|
|
824
824
|
}
|
|
825
|
-
function
|
|
826
|
-
const t =
|
|
825
|
+
function mn(e) {
|
|
826
|
+
const t = Zr;
|
|
827
827
|
for (let r = 0; r < ue.length; r++) {
|
|
828
828
|
const n = ue[r];
|
|
829
|
-
|
|
829
|
+
gr = n.priority, n.idle || (Gn(n), n.advance(e), n.idle || t.push(n));
|
|
830
830
|
}
|
|
831
|
-
return
|
|
831
|
+
return gr = 0, Zr = ue, Zr.length = 0, ue = t, ue.length > 0;
|
|
832
832
|
}
|
|
833
833
|
function Va(e, t) {
|
|
834
834
|
const r = e.findIndex(t);
|
|
@@ -985,16 +985,16 @@ var $a = {
|
|
|
985
985
|
whitesmoke: 4126537215,
|
|
986
986
|
yellow: 4294902015,
|
|
987
987
|
yellowgreen: 2597139199
|
|
988
|
-
}, ve = "[-+]?\\d*\\.?\\d+",
|
|
989
|
-
function
|
|
988
|
+
}, ve = "[-+]?\\d*\\.?\\d+", vr = ve + "%";
|
|
989
|
+
function Tr(...e) {
|
|
990
990
|
return "\\(\\s*(" + e.join(")\\s*,\\s*(") + ")\\s*\\)";
|
|
991
991
|
}
|
|
992
|
-
var Ma = new RegExp("rgb" +
|
|
993
|
-
"hsla" +
|
|
994
|
-
),
|
|
992
|
+
var Ma = new RegExp("rgb" + Tr(ve, ve, ve)), za = new RegExp("rgba" + Tr(ve, ve, ve, ve)), Fa = new RegExp("hsl" + Tr(ve, vr, vr)), La = new RegExp(
|
|
993
|
+
"hsla" + Tr(ve, vr, vr, ve)
|
|
994
|
+
), Ua = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, Ba = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, qa = /^#([0-9a-fA-F]{6})$/, Wa = /^#([0-9a-fA-F]{8})$/;
|
|
995
995
|
function Ha(e) {
|
|
996
996
|
let t;
|
|
997
|
-
return typeof e == "number" ? e >>> 0 === e && e >= 0 && e <= 4294967295 ? e : null : (t = qa.exec(e)) ? parseInt(t[1] + "ff", 16) >>> 0 :
|
|
997
|
+
return typeof e == "number" ? e >>> 0 === e && e >= 0 && e <= 4294967295 ? e : null : (t = qa.exec(e)) ? parseInt(t[1] + "ff", 16) >>> 0 : $e && $e[e] !== void 0 ? $e[e] : (t = Ma.exec(e)) ? (st(t[1]) << 24 | // r
|
|
998
998
|
st(t[2]) << 16 | // g
|
|
999
999
|
st(t[3]) << 8 | // b
|
|
1000
1000
|
255) >>> // a
|
|
@@ -1002,14 +1002,14 @@ function Ha(e) {
|
|
|
1002
1002
|
st(t[2]) << 16 | // g
|
|
1003
1003
|
st(t[3]) << 8 | // b
|
|
1004
1004
|
Ni(t[4])) >>> // a
|
|
1005
|
-
0 : (t =
|
|
1005
|
+
0 : (t = Ua.exec(e)) ? parseInt(
|
|
1006
1006
|
t[1] + t[1] + // r
|
|
1007
1007
|
t[2] + t[2] + // g
|
|
1008
1008
|
t[3] + t[3] + // b
|
|
1009
1009
|
"ff",
|
|
1010
1010
|
// a
|
|
1011
1011
|
16
|
|
1012
|
-
) >>> 0 : (t = Wa.exec(e)) ? parseInt(t[1], 16) >>> 0 : (t =
|
|
1012
|
+
) >>> 0 : (t = Wa.exec(e)) ? parseInt(t[1], 16) >>> 0 : (t = Ba.exec(e)) ? parseInt(
|
|
1013
1013
|
t[1] + t[1] + // r
|
|
1014
1014
|
t[2] + t[2] + // g
|
|
1015
1015
|
t[3] + t[3] + // b
|
|
@@ -1034,11 +1034,11 @@ function Ha(e) {
|
|
|
1034
1034
|
) | Ni(t[4])) >>> // a
|
|
1035
1035
|
0 : null;
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function en(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
1040
|
function ki(e, t, r) {
|
|
1041
|
-
const n = r < 0.5 ? r * (1 + t) : r + t - r * t, i = 2 * r - n, o =
|
|
1041
|
+
const n = r < 0.5 ? r * (1 + t) : r + t - r * t, i = 2 * r - n, o = en(i, n, e + 1 / 3), s = en(i, n, e), a = en(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) {
|
|
@@ -1122,17 +1122,17 @@ function zt(e, t) {
|
|
|
1122
1122
|
Qa(n, t);
|
|
1123
1123
|
});
|
|
1124
1124
|
}
|
|
1125
|
-
var
|
|
1125
|
+
var To = class {
|
|
1126
1126
|
constructor(e) {
|
|
1127
1127
|
if (!e && !(e = this.get))
|
|
1128
1128
|
throw Error("Unknown getter");
|
|
1129
1129
|
Xa(this, e);
|
|
1130
1130
|
}
|
|
1131
|
-
}, Xa = (e, t) =>
|
|
1131
|
+
}, Xa = (e, t) => Do(e, Mt, t);
|
|
1132
1132
|
function vt(e, t) {
|
|
1133
1133
|
if (e[Mt]) {
|
|
1134
1134
|
let r = e[lt];
|
|
1135
|
-
r ||
|
|
1135
|
+
r || Do(e, lt, r = /* @__PURE__ */ new Set()), r.has(t) || (r.add(t), e.observerAdded && e.observerAdded(r.size, t));
|
|
1136
1136
|
}
|
|
1137
1137
|
return t;
|
|
1138
1138
|
}
|
|
@@ -1143,11 +1143,11 @@ function Ft(e, t) {
|
|
|
1143
1143
|
n ? r.delete(t) : e[lt] = null, e.observerRemoved && e.observerRemoved(n, t);
|
|
1144
1144
|
}
|
|
1145
1145
|
}
|
|
1146
|
-
var
|
|
1146
|
+
var Do = (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, Ja = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi, Ai = new RegExp(`(${lr.source})(%|[a-z]+)`, "i"), Za = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,
|
|
1150
|
+
}), lr = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, Ja = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi, Ai = new RegExp(`(${lr.source})(%|[a-z]+)`, "i"), Za = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi, Dr = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/, Io = (e) => {
|
|
1151
1151
|
const [t, r] = ec(e);
|
|
1152
1152
|
if (!t || Hn())
|
|
1153
1153
|
return e;
|
|
@@ -1158,27 +1158,27 @@ var Io = (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 &&
|
|
1162
|
-
return
|
|
1161
|
+
if (r && Dr.test(r))
|
|
1162
|
+
return Io(r);
|
|
1163
1163
|
if (r)
|
|
1164
1164
|
return r;
|
|
1165
1165
|
}
|
|
1166
1166
|
return e;
|
|
1167
1167
|
}, ec = (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
|
+
}, tn, tc = (e, t, r, n, i) => `rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`, jo = (e) => {
|
|
1174
|
+
tn || (tn = $e ? (
|
|
1175
1175
|
// match color names, ignore partial matches
|
|
1176
|
-
new RegExp(`(${Object.keys(
|
|
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) => J(o).replace(
|
|
1181
|
+
const t = e.output.map((o) => J(o).replace(Dr, Io).replace(Ja, Ci).replace(tn, Ci)), 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');
|
|
@@ -1196,7 +1196,7 @@ var Io = (e, t, r) => Object.defineProperty(e, t, {
|
|
|
1196
1196
|
() => `${i[a++](o)}${s || ""}`
|
|
1197
1197
|
).replace(Za, tc);
|
|
1198
1198
|
};
|
|
1199
|
-
}, Kn = "react-spring: ",
|
|
1199
|
+
}, Kn = "react-spring: ", Vo = (e) => {
|
|
1200
1200
|
const t = e;
|
|
1201
1201
|
let r = !1;
|
|
1202
1202
|
if (typeof t != "function")
|
|
@@ -1204,41 +1204,41 @@ var Io = (e, t, r) => Object.defineProperty(e, t, {
|
|
|
1204
1204
|
return (...n) => {
|
|
1205
1205
|
r || (t(...n), r = !0);
|
|
1206
1206
|
};
|
|
1207
|
-
}, rc =
|
|
1207
|
+
}, rc = Vo(console.warn);
|
|
1208
1208
|
function nc() {
|
|
1209
1209
|
rc(
|
|
1210
1210
|
`${Kn}The "interpolate" function is deprecated in v9 (use "to" instead)`
|
|
1211
1211
|
);
|
|
1212
1212
|
}
|
|
1213
|
-
var ic =
|
|
1213
|
+
var ic = Vo(console.warn);
|
|
1214
1214
|
function oc() {
|
|
1215
1215
|
ic(
|
|
1216
1216
|
`${Kn}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 Ir(e) {
|
|
1220
1220
|
return _.str(e) && (e[0] == "#" || /\d/.test(e) || // Do not identify a CSS variable as an AnimatedString if its SSR
|
|
1221
|
-
!Hn() &&
|
|
1221
|
+
!Hn() && Dr.test(e) || e in ($e || {}));
|
|
1222
1222
|
}
|
|
1223
|
-
var Qn = Hn() ? gt :
|
|
1224
|
-
const e =
|
|
1223
|
+
var Qn = Hn() ? gt : Ea, sc = () => {
|
|
1224
|
+
const e = Me(!1);
|
|
1225
1225
|
return Qn(() => (e.current = !0, () => {
|
|
1226
1226
|
e.current = !1;
|
|
1227
1227
|
}), []), e;
|
|
1228
1228
|
};
|
|
1229
|
-
function
|
|
1230
|
-
const e =
|
|
1229
|
+
function $o() {
|
|
1230
|
+
const e = zn()[1], t = sc();
|
|
1231
1231
|
return () => {
|
|
1232
1232
|
t.current && e(Math.random());
|
|
1233
1233
|
};
|
|
1234
1234
|
}
|
|
1235
1235
|
function ac(e, t) {
|
|
1236
|
-
const [r] =
|
|
1236
|
+
const [r] = zn(
|
|
1237
1237
|
() => ({
|
|
1238
1238
|
inputs: t,
|
|
1239
1239
|
result: e()
|
|
1240
1240
|
})
|
|
1241
|
-
), n =
|
|
1241
|
+
), n = Me(), i = n.current;
|
|
1242
1242
|
let o = i;
|
|
1243
1243
|
return o ? t && o.inputs && cc(t, o.inputs) || (o = {
|
|
1244
1244
|
inputs: t,
|
|
@@ -1255,14 +1255,14 @@ function cc(e, t) {
|
|
|
1255
1255
|
return !1;
|
|
1256
1256
|
return !0;
|
|
1257
1257
|
}
|
|
1258
|
-
var
|
|
1258
|
+
var Mo = (e) => gt(e, uc), uc = [];
|
|
1259
1259
|
function Ti(e) {
|
|
1260
|
-
const t =
|
|
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"), lc = (e) => !!e && e[Lt] === e, _e = (e) => e && e[Lt], Xn = (e, t) => Da(e, Lt, t),
|
|
1265
|
+
var Lt = Symbol.for("Animated:node"), lc = (e) => !!e && e[Lt] === e, _e = (e) => e && e[Lt], Xn = (e, t) => Da(e, Lt, t), jr = (e) => e && e[Lt] && e[Lt].getPayload(), zo = class {
|
|
1266
1266
|
constructor() {
|
|
1267
1267
|
Xn(this, this);
|
|
1268
1268
|
}
|
|
@@ -1270,7 +1270,7 @@ var Lt = Symbol.for("Animated:node"), lc = (e) => !!e && e[Lt] === e, _e = (e) =
|
|
|
1270
1270
|
getPayload() {
|
|
1271
1271
|
return this.payload || [];
|
|
1272
1272
|
}
|
|
1273
|
-
}, Qt = class extends
|
|
1273
|
+
}, Qt = class extends zo {
|
|
1274
1274
|
constructor(e) {
|
|
1275
1275
|
super(), this._value = e, this.done = !0, this.durationProgress = 0, _.num(this._value) && (this.lastPosition = this._value);
|
|
1276
1276
|
}
|
|
@@ -1291,7 +1291,7 @@ var Lt = Symbol.for("Animated:node"), lc = (e) => !!e && e[Lt] === e, _e = (e) =
|
|
|
1291
1291
|
const { done: e } = this;
|
|
1292
1292
|
this.done = !1, _.num(this._value) && (this.elapsedTime = 0, this.durationProgress = 0, this.lastPosition = this._value, e && (this.lastVelocity = null), this.v0 = null);
|
|
1293
1293
|
}
|
|
1294
|
-
},
|
|
1294
|
+
}, Ut = class extends Qt {
|
|
1295
1295
|
constructor(e) {
|
|
1296
1296
|
super(0), this._string = null, this._toString = $t({
|
|
1297
1297
|
output: [e, e]
|
|
@@ -1299,7 +1299,7 @@ var Lt = Symbol.for("Animated:node"), lc = (e) => !!e && e[Lt] === e, _e = (e) =
|
|
|
1299
1299
|
}
|
|
1300
1300
|
/** @internal */
|
|
1301
1301
|
static create(e) {
|
|
1302
|
-
return new
|
|
1302
|
+
return new Ut(e);
|
|
1303
1303
|
}
|
|
1304
1304
|
getValue() {
|
|
1305
1305
|
const e = this._string;
|
|
@@ -1321,13 +1321,13 @@ var Lt = Symbol.for("Animated:node"), lc = (e) => !!e && e[Lt] === e, _e = (e) =
|
|
|
1321
1321
|
output: [this.getValue(), e]
|
|
1322
1322
|
})), this._value = 0, super.reset();
|
|
1323
1323
|
}
|
|
1324
|
-
},
|
|
1324
|
+
}, br = { dependencies: null }, Vr = class extends zo {
|
|
1325
1325
|
constructor(e) {
|
|
1326
1326
|
super(), this.source = e, this.setValue(e);
|
|
1327
1327
|
}
|
|
1328
1328
|
getValue(e) {
|
|
1329
1329
|
const t = {};
|
|
1330
|
-
return
|
|
1330
|
+
return Se(this.source, (r, n) => {
|
|
1331
1331
|
lc(r) ? t[n] = r.getValue(e) : ce(r) ? t[n] = J(r) : e || (t[n] = r);
|
|
1332
1332
|
}), t;
|
|
1333
1333
|
}
|
|
@@ -1342,22 +1342,22 @@ var Lt = Symbol.for("Animated:node"), lc = (e) => !!e && e[Lt] === e, _e = (e) =
|
|
|
1342
1342
|
_makePayload(e) {
|
|
1343
1343
|
if (e) {
|
|
1344
1344
|
const t = /* @__PURE__ */ new Set();
|
|
1345
|
-
return
|
|
1345
|
+
return Se(e, this._addToPayload, t), Array.from(t);
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
1348
|
/** Add to a payload set. */
|
|
1349
1349
|
_addToPayload(e) {
|
|
1350
|
-
|
|
1351
|
-
const t =
|
|
1350
|
+
br.dependencies && ce(e) && br.dependencies.add(e);
|
|
1351
|
+
const t = jr(e);
|
|
1352
1352
|
t && T(t, (r) => this.add(r));
|
|
1353
1353
|
}
|
|
1354
|
-
},
|
|
1354
|
+
}, Fo = class extends Vr {
|
|
1355
1355
|
constructor(e) {
|
|
1356
1356
|
super(e);
|
|
1357
1357
|
}
|
|
1358
1358
|
/** @internal */
|
|
1359
1359
|
static create(e) {
|
|
1360
|
-
return new
|
|
1360
|
+
return new Fo(e);
|
|
1361
1361
|
}
|
|
1362
1362
|
getValue() {
|
|
1363
1363
|
return this.source.map((e) => e.getValue());
|
|
@@ -1368,11 +1368,11 @@ var Lt = Symbol.for("Animated:node"), lc = (e) => !!e && e[Lt] === e, _e = (e) =
|
|
|
1368
1368
|
}
|
|
1369
1369
|
};
|
|
1370
1370
|
function fc(e) {
|
|
1371
|
-
return (
|
|
1371
|
+
return (Ir(e) ? Ut : Qt).create(e);
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function yn(e) {
|
|
1374
1374
|
const t = _e(e);
|
|
1375
|
-
return t ? t.constructor : _.arr(e) ?
|
|
1375
|
+
return t ? t.constructor : _.arr(e) ? Fo : Ir(e) ? Ut : Qt;
|
|
1376
1376
|
}
|
|
1377
1377
|
var Di = (e, t) => {
|
|
1378
1378
|
const r = (
|
|
@@ -1381,29 +1381,29 @@ var Di = (e, t) => {
|
|
|
1381
1381
|
!_.fun(e) || e.prototype && e.prototype.isReactComponent
|
|
1382
1382
|
);
|
|
1383
1383
|
return Sa((n, i) => {
|
|
1384
|
-
const o =
|
|
1384
|
+
const o = Me(null), s = r && // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1385
1385
|
xa(
|
|
1386
1386
|
(v) => {
|
|
1387
1387
|
o.current = pc(i, v);
|
|
1388
1388
|
},
|
|
1389
1389
|
[i]
|
|
1390
|
-
), [a, u] = hc(n, t), l =
|
|
1390
|
+
), [a, u] = hc(n, t), l = $o(), f = () => {
|
|
1391
1391
|
const v = o.current;
|
|
1392
1392
|
if (r && !v)
|
|
1393
1393
|
return;
|
|
1394
1394
|
(v ? t.applyAnimatedValues(v, a.getValue(!0)) : !1) === !1 && l();
|
|
1395
|
-
}, d = new dc(f, u), h =
|
|
1395
|
+
}, d = new dc(f, u), h = Me();
|
|
1396
1396
|
Qn(() => (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)
|
|
1400
1400
|
), C.cancel(h.current.update));
|
|
1401
|
-
})), gt(f, []),
|
|
1401
|
+
})), gt(f, []), Mo(() => () => {
|
|
1402
1402
|
const v = h.current;
|
|
1403
|
-
T(v.deps, (
|
|
1403
|
+
T(v.deps, (S) => Ft(S, v));
|
|
1404
1404
|
});
|
|
1405
1405
|
const p = t.getComponentProps(a.getValue());
|
|
1406
|
-
return /* @__PURE__ */
|
|
1406
|
+
return /* @__PURE__ */ Mn.createElement(e, { ...p, ref: s });
|
|
1407
1407
|
});
|
|
1408
1408
|
}, dc = class {
|
|
1409
1409
|
constructor(e, t) {
|
|
@@ -1415,17 +1415,17 @@ var Di = (e, t) => {
|
|
|
1415
1415
|
};
|
|
1416
1416
|
function hc(e, t) {
|
|
1417
1417
|
const r = /* @__PURE__ */ new Set();
|
|
1418
|
-
return
|
|
1418
|
+
return br.dependencies = r, e.style && (e = {
|
|
1419
1419
|
...e,
|
|
1420
1420
|
style: t.createAnimatedStyle(e.style)
|
|
1421
|
-
}), e = new
|
|
1421
|
+
}), e = new Vr(e), br.dependencies = null, [e, r];
|
|
1422
1422
|
}
|
|
1423
1423
|
function pc(e, t) {
|
|
1424
1424
|
return e && (_.fun(e) ? e(t) : e.current = t), t;
|
|
1425
1425
|
}
|
|
1426
1426
|
var Ii = Symbol.for("AnimatedComponent"), mc = (e, {
|
|
1427
1427
|
applyAnimatedValues: t = () => !1,
|
|
1428
|
-
createAnimatedStyle: r = (i) => new
|
|
1428
|
+
createAnimatedStyle: r = (i) => new Vr(i),
|
|
1429
1429
|
getComponentProps: n = (i) => i
|
|
1430
1430
|
} = {}) => {
|
|
1431
1431
|
const i = {
|
|
@@ -1436,16 +1436,16 @@ var Ii = Symbol.for("AnimatedComponent"), mc = (e, {
|
|
|
1436
1436
|
const a = ji(s) || "Anonymous";
|
|
1437
1437
|
return _.str(s) ? s = o[s] || (o[s] = Di(s, i)) : s = s[Ii] || (s[Ii] = Di(s, i)), s.displayName = `Animated(${a})`, s;
|
|
1438
1438
|
};
|
|
1439
|
-
return
|
|
1439
|
+
return Se(e, (s, a) => {
|
|
1440
1440
|
_.arr(e) && (a = ji(s)), o[a] = o(s);
|
|
1441
1441
|
}), {
|
|
1442
1442
|
animated: o
|
|
1443
1443
|
};
|
|
1444
1444
|
}, ji = (e) => _.str(e) ? e : e && _.str(e.displayName) ? e.displayName : _.fun(e) && e.name || null;
|
|
1445
|
-
function
|
|
1445
|
+
function Ue(e, ...t) {
|
|
1446
1446
|
return _.fun(e) ? e(...t) : e;
|
|
1447
1447
|
}
|
|
1448
|
-
var It = (e, t) => e === !0 || !!(t && e && (_.fun(e) ? e(t) : ne(e).includes(t))),
|
|
1448
|
+
var It = (e, t) => e === !0 || !!(t && e && (_.fun(e) ? e(t) : ne(e).includes(t))), Lo = (e, t) => _.obj(e) ? t && e[t] : e, Uo = (e, t) => e.default === !0 ? e[t] : e.default ? e.default[t] : void 0, yc = (e) => e, Jn = (e, t = yc) => {
|
|
1449
1449
|
let r = gc;
|
|
1450
1450
|
e.default && e.default !== !0 && (e = e.default, r = Object.keys(e));
|
|
1451
1451
|
const n = {};
|
|
@@ -1501,21 +1501,21 @@ var It = (e, t) => e === !0 || !!(t && e && (_.fun(e) ? e(t) : ne(e).includes(t)
|
|
|
1501
1501
|
function bc(e) {
|
|
1502
1502
|
const t = {};
|
|
1503
1503
|
let r = 0;
|
|
1504
|
-
if (
|
|
1504
|
+
if (Se(e, (n, i) => {
|
|
1505
1505
|
vc[i] || (t[i] = n, r++);
|
|
1506
1506
|
}), r)
|
|
1507
1507
|
return t;
|
|
1508
1508
|
}
|
|
1509
|
-
function
|
|
1509
|
+
function Bo(e) {
|
|
1510
1510
|
const t = bc(e);
|
|
1511
1511
|
if (t) {
|
|
1512
1512
|
const r = { to: t };
|
|
1513
|
-
return
|
|
1513
|
+
return Se(e, (n, i) => i in t || (r[i] = n)), r;
|
|
1514
1514
|
}
|
|
1515
1515
|
return { ...e };
|
|
1516
1516
|
}
|
|
1517
|
-
function
|
|
1518
|
-
return e = J(e), _.arr(e) ? e.map(
|
|
1517
|
+
function Bt(e) {
|
|
1518
|
+
return e = J(e), _.arr(e) ? e.map(Bt) : Ir(e) ? we.createStringInterpolator({
|
|
1519
1519
|
range: [0, 1],
|
|
1520
1520
|
output: [e, e]
|
|
1521
1521
|
})(1) : e;
|
|
@@ -1525,7 +1525,7 @@ function wc(e) {
|
|
|
1525
1525
|
return !0;
|
|
1526
1526
|
return !1;
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function gn(e) {
|
|
1529
1529
|
return _.fun(e) || _.arr(e) && _.obj(e[0]);
|
|
1530
1530
|
}
|
|
1531
1531
|
function _c(e, t) {
|
|
@@ -1538,7 +1538,7 @@ function Ec(e, t) {
|
|
|
1538
1538
|
}
|
|
1539
1539
|
var Sc = {
|
|
1540
1540
|
default: { tension: 170, friction: 26 }
|
|
1541
|
-
},
|
|
1541
|
+
}, vn = {
|
|
1542
1542
|
...Sc.default,
|
|
1543
1543
|
mass: 1,
|
|
1544
1544
|
damping: 1,
|
|
@@ -1546,13 +1546,13 @@ var Sc = {
|
|
|
1546
1546
|
clamp: !1
|
|
1547
1547
|
}, xc = class {
|
|
1548
1548
|
constructor() {
|
|
1549
|
-
this.velocity = 0, Object.assign(this,
|
|
1549
|
+
this.velocity = 0, Object.assign(this, vn);
|
|
1550
1550
|
}
|
|
1551
1551
|
};
|
|
1552
1552
|
function Oc(e, t, r) {
|
|
1553
1553
|
r && (r = { ...r }, Vi(r, t), t = { ...r, ...t }), Vi(e, t), Object.assign(e, t);
|
|
1554
|
-
for (const s in
|
|
1555
|
-
e[s] == null && (e[s] =
|
|
1554
|
+
for (const s in vn)
|
|
1555
|
+
e[s] == null && (e[s] = vn[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;
|
|
@@ -1570,7 +1570,7 @@ var $i = [], kc = class {
|
|
|
1570
1570
|
this.changed = !1, this.values = $i, this.toValues = null, this.fromValues = $i, this.config = new xc(), this.immediate = !1;
|
|
1571
1571
|
}
|
|
1572
1572
|
};
|
|
1573
|
-
function
|
|
1573
|
+
function qo(e, { key: t, props: r, defaultProps: n, state: i, actions: o }) {
|
|
1574
1574
|
return new Promise((s, a) => {
|
|
1575
1575
|
let u, l, f = It(r.cancel ?? (n == null ? void 0 : n.cancel), t);
|
|
1576
1576
|
if (f)
|
|
@@ -1578,7 +1578,7 @@ function Wo(e, { key: t, props: r, defaultProps: n, state: i, actions: o }) {
|
|
|
1578
1578
|
else {
|
|
1579
1579
|
_.und(r.pause) || (i.paused = It(r.pause, t));
|
|
1580
1580
|
let v = n == null ? void 0 : n.pause;
|
|
1581
|
-
v !== !0 && (v = i.paused || It(v, t)), u =
|
|
1581
|
+
v !== !0 && (v = i.paused || It(v, t)), u = Ue(r.delay || 0, t), v ? (i.resumeQueue.add(h), o.pause()) : (o.resume(), h());
|
|
1582
1582
|
}
|
|
1583
1583
|
function d() {
|
|
1584
1584
|
i.resumeQueue.add(h), i.timeouts.delete(l), l.cancel(), u = l.time - C.now();
|
|
@@ -1596,10 +1596,10 @@ function Wo(e, { key: t, props: r, defaultProps: n, state: i, actions: o }) {
|
|
|
1596
1596
|
}
|
|
1597
1597
|
});
|
|
1598
1598
|
}
|
|
1599
|
-
var Zn = (e, t) => t.length == 1 ? t[0] : t.some((r) => r.cancelled) ? ut(e.get()) : t.every((r) => r.noop) ?
|
|
1599
|
+
var Zn = (e, t) => t.length == 1 ? t[0] : t.some((r) => r.cancelled) ? ut(e.get()) : t.every((r) => r.noop) ? Wo(e.get()) : ge(
|
|
1600
1600
|
e.get(),
|
|
1601
1601
|
t.every((r) => r.finished)
|
|
1602
|
-
),
|
|
1602
|
+
), Wo = (e) => ({
|
|
1603
1603
|
value: e,
|
|
1604
1604
|
noop: !0,
|
|
1605
1605
|
finished: !0,
|
|
@@ -1613,66 +1613,66 @@ var Zn = (e, t) => t.length == 1 ? t[0] : t.some((r) => r.cancelled) ? ut(e.get(
|
|
|
1613
1613
|
cancelled: !0,
|
|
1614
1614
|
finished: !1
|
|
1615
1615
|
});
|
|
1616
|
-
function
|
|
1616
|
+
function Ho(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
1620
|
const l = Jn(
|
|
1621
1621
|
t,
|
|
1622
|
-
(w,
|
|
1622
|
+
(w, y) => (
|
|
1623
1623
|
// The `onRest` prop is only called when the `runAsync` promise is resolved.
|
|
1624
|
-
|
|
1624
|
+
y === "onRest" ? void 0 : w
|
|
1625
1625
|
)
|
|
1626
1626
|
);
|
|
1627
1627
|
let f, d;
|
|
1628
1628
|
const h = new Promise(
|
|
1629
|
-
(w,
|
|
1629
|
+
(w, y) => (f = w, d = y)
|
|
1630
1630
|
), p = (w) => {
|
|
1631
|
-
const
|
|
1631
|
+
const y = (
|
|
1632
1632
|
// The `cancel` prop or `stop` method was used.
|
|
1633
1633
|
i <= (r.cancelId || 0) && ut(n) || // The async `to` prop was replaced.
|
|
1634
1634
|
i !== r.asyncId && ge(n, !1)
|
|
1635
1635
|
);
|
|
1636
|
-
if (
|
|
1637
|
-
throw w.result =
|
|
1638
|
-
}, v = (w,
|
|
1639
|
-
const b = new Mi(),
|
|
1636
|
+
if (y)
|
|
1637
|
+
throw w.result = y, d(w), w;
|
|
1638
|
+
}, v = (w, y) => {
|
|
1639
|
+
const b = new Mi(), m = new zi();
|
|
1640
1640
|
return (async () => {
|
|
1641
1641
|
if (we.skipAnimation)
|
|
1642
|
-
throw qt(r),
|
|
1642
|
+
throw qt(r), m.result = ge(n, !1), d(m), m;
|
|
1643
1643
|
p(b);
|
|
1644
|
-
const
|
|
1645
|
-
|
|
1646
|
-
_.und(
|
|
1644
|
+
const E = _.obj(w) ? { ...w } : { ...y, to: w };
|
|
1645
|
+
E.parentId = i, Se(l, (P, O) => {
|
|
1646
|
+
_.und(E[O]) && (E[O] = P);
|
|
1647
1647
|
});
|
|
1648
|
-
const k = await n.start(
|
|
1648
|
+
const k = await n.start(E);
|
|
1649
1649
|
return p(b), r.paused && await new Promise((P) => {
|
|
1650
1650
|
r.resumeQueue.add(P);
|
|
1651
1651
|
}), k;
|
|
1652
1652
|
})();
|
|
1653
1653
|
};
|
|
1654
|
-
let
|
|
1654
|
+
let S;
|
|
1655
1655
|
if (we.skipAnimation)
|
|
1656
1656
|
return qt(r), ge(n, !1);
|
|
1657
1657
|
try {
|
|
1658
1658
|
let w;
|
|
1659
|
-
_.arr(e) ? w = (async (
|
|
1660
|
-
for (const b of
|
|
1659
|
+
_.arr(e) ? w = (async (y) => {
|
|
1660
|
+
for (const b of y)
|
|
1661
1661
|
await v(b);
|
|
1662
|
-
})(e) : w = Promise.resolve(e(v, n.stop.bind(n))), await Promise.all([w.then(f), h]),
|
|
1662
|
+
})(e) : w = Promise.resolve(e(v, n.stop.bind(n))), await Promise.all([w.then(f), h]), S = ge(n.get(), !0, !1);
|
|
1663
1663
|
} catch (w) {
|
|
1664
1664
|
if (w instanceof Mi)
|
|
1665
|
-
|
|
1665
|
+
S = w.result;
|
|
1666
1666
|
else if (w instanceof zi)
|
|
1667
|
-
|
|
1667
|
+
S = w.result;
|
|
1668
1668
|
else
|
|
1669
1669
|
throw w;
|
|
1670
1670
|
} finally {
|
|
1671
1671
|
i == r.asyncId && (r.asyncId = o, r.asyncTo = o ? a : void 0, r.promise = o ? u : void 0);
|
|
1672
1672
|
}
|
|
1673
1673
|
return _.fun(s) && C.batchedUpdates(() => {
|
|
1674
|
-
s(
|
|
1675
|
-
}),
|
|
1674
|
+
s(S, n, n.item);
|
|
1675
|
+
}), S;
|
|
1676
1676
|
})();
|
|
1677
1677
|
}
|
|
1678
1678
|
function qt(e, t) {
|
|
@@ -1688,7 +1688,7 @@ var Mi = class extends Error {
|
|
|
1688
1688
|
constructor() {
|
|
1689
1689
|
super("SkipAnimationSignal");
|
|
1690
1690
|
}
|
|
1691
|
-
},
|
|
1691
|
+
}, bn = (e) => e instanceof ei, Pc = 1, ei = class extends To {
|
|
1692
1692
|
constructor() {
|
|
1693
1693
|
super(...arguments), this.id = Pc++, 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 || Ar.sort(this), zt(this, {
|
|
1741
1741
|
type: "priority",
|
|
1742
1742
|
parent: this,
|
|
1743
1743
|
priority: e
|
|
1744
1744
|
});
|
|
1745
1745
|
}
|
|
1746
|
-
}, Ge = Symbol.for("SpringPhase"),
|
|
1746
|
+
}, Ge = Symbol.for("SpringPhase"), Yo = 1, Go = 2, Ko = 4, rn = (e) => (e[Ge] & Yo) > 0, Te = (e) => (e[Ge] & Go) > 0, kt = (e) => (e[Ge] & Ko) > 0, Fi = (e, t) => t ? e[Ge] |= Go | Yo : e[Ge] &= -3, Li = (e, t) => t ? e[Ge] |= Ko : e[Ge] &= -5, Nc = class extends ei {
|
|
1747
1747
|
constructor(e, t) {
|
|
1748
1748
|
if (super(), this.animation = new kc(), 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 !(
|
|
1761
|
+
return !(Te(this) || this._state.asyncTo) || kt(this);
|
|
1762
1762
|
}
|
|
1763
1763
|
get goal() {
|
|
1764
1764
|
return J(this.animation.to);
|
|
@@ -1771,14 +1771,14 @@ 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 rn(this);
|
|
1775
1775
|
}
|
|
1776
1776
|
/**
|
|
1777
1777
|
* When true, this value has an unfinished animation,
|
|
1778
1778
|
* which is either active or paused.
|
|
1779
1779
|
*/
|
|
1780
1780
|
get isAnimating() {
|
|
1781
|
-
return
|
|
1781
|
+
return Te(this);
|
|
1782
1782
|
}
|
|
1783
1783
|
/**
|
|
1784
1784
|
* When true, all current and future animations are paused.
|
|
@@ -1798,13 +1798,13 @@ 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 = jr(n.to);
|
|
1802
1802
|
!s && ce(n.to) && (i = ne(J(n.to))), n.values.forEach((l, f) => {
|
|
1803
1803
|
if (l.done)
|
|
1804
1804
|
return;
|
|
1805
1805
|
const d = (
|
|
1806
1806
|
// Animated strings always go from 0 to 1.
|
|
1807
|
-
l.constructor ==
|
|
1807
|
+
l.constructor == Ut ? 1 : s ? s[f].lastPosition : i[f]
|
|
1808
1808
|
);
|
|
1809
1809
|
let h = n.immediate, p = d;
|
|
1810
1810
|
if (!h) {
|
|
@@ -1813,29 +1813,29 @@ var Mi = class extends Error {
|
|
|
1813
1813
|
return;
|
|
1814
1814
|
}
|
|
1815
1815
|
let v = l.elapsedTime += e;
|
|
1816
|
-
const
|
|
1817
|
-
let
|
|
1818
|
-
const b = o.precision || (
|
|
1816
|
+
const S = n.fromValues[f], w = l.v0 != null ? l.v0 : l.v0 = _.arr(o.velocity) ? o.velocity[f] : o.velocity;
|
|
1817
|
+
let y;
|
|
1818
|
+
const b = o.precision || (S == d ? 5e-3 : Math.min(1, Math.abs(d - S) * 1e-3));
|
|
1819
1819
|
if (_.und(o.duration))
|
|
1820
1820
|
if (o.decay) {
|
|
1821
|
-
const
|
|
1822
|
-
p =
|
|
1821
|
+
const m = o.decay === !0 ? 0.998 : o.decay, E = Math.exp(-(1 - m) * v);
|
|
1822
|
+
p = S + w / (1 - m) * (1 - E), h = Math.abs(l.lastPosition - p) <= b, y = w * E;
|
|
1823
1823
|
} else {
|
|
1824
|
-
|
|
1825
|
-
const
|
|
1824
|
+
y = l.lastVelocity == null ? w : l.lastVelocity;
|
|
1825
|
+
const m = o.restVelocity || b / 10, E = o.clamp ? 0 : o.bounce, k = !_.und(E), P = S == d ? l.v0 > 0 : S < d;
|
|
1826
1826
|
let O, I = !1;
|
|
1827
1827
|
const M = 1, fe = Math.ceil(e / M);
|
|
1828
|
-
for (let Y = 0; Y < fe && (O = Math.abs(
|
|
1829
|
-
k && (I = p == d || p > d == P, I && (
|
|
1830
|
-
const de = -o.tension * 1e-6 * (p - d), W = -o.friction * 1e-3 *
|
|
1831
|
-
|
|
1828
|
+
for (let Y = 0; Y < fe && (O = Math.abs(y) > m, !(!O && (h = Math.abs(d - p) <= b, h))); ++Y) {
|
|
1829
|
+
k && (I = p == d || p > d == P, I && (y = -y * E, p = d));
|
|
1830
|
+
const de = -o.tension * 1e-6 * (p - d), W = -o.friction * 1e-3 * y, he = (de + W) / o.mass;
|
|
1831
|
+
y = y + he * M, p = p + y * M;
|
|
1832
1832
|
}
|
|
1833
1833
|
}
|
|
1834
1834
|
else {
|
|
1835
|
-
let
|
|
1836
|
-
o.duration > 0 && (this._memoizedDuration !== o.duration && (this._memoizedDuration = o.duration, l.durationProgress > 0 && (l.elapsedTime = o.duration * l.durationProgress, v = l.elapsedTime += e)),
|
|
1835
|
+
let m = 1;
|
|
1836
|
+
o.duration > 0 && (this._memoizedDuration !== o.duration && (this._memoizedDuration = o.duration, l.durationProgress > 0 && (l.elapsedTime = o.duration * l.durationProgress, v = l.elapsedTime += e)), m = (o.progress || 0) + v / this._memoizedDuration, m = m > 1 ? 1 : m < 0 ? 0 : m, l.durationProgress = m), p = S + o.easing(m) * (d - S), y = (p - l.lastPosition) / e, h = m == 1;
|
|
1837
1837
|
}
|
|
1838
|
-
l.lastVelocity =
|
|
1838
|
+
l.lastVelocity = y, Number.isNaN(p) && (console.warn("Got NaN while animating:", this), h = !0);
|
|
1839
1839
|
}
|
|
1840
1840
|
s && !s[f].done && (h = !1), h ? l.done = !0 : t = !1, l.setValue(p, o.round) && (r = !0);
|
|
1841
1841
|
});
|
|
@@ -1864,7 +1864,7 @@ var Mi = class extends Error {
|
|
|
1864
1864
|
}
|
|
1865
1865
|
/** Skip to the end of the current animation. */
|
|
1866
1866
|
finish() {
|
|
1867
|
-
if (
|
|
1867
|
+
if (Te(this)) {
|
|
1868
1868
|
const { to: e, config: t } = this.animation;
|
|
1869
1869
|
C.batchedUpdates(() => {
|
|
1870
1870
|
this._onStart(), t.decay || this._set(e, !1), this._stop();
|
|
@@ -1908,9 +1908,9 @@ 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 || gn(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 rn(this) || (e.reverse && ([r, n] = [n, r]), n = J(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) {
|
|
@@ -1919,16 +1919,16 @@ var Mi = class extends Error {
|
|
|
1919
1919
|
n,
|
|
1920
1920
|
Jn(
|
|
1921
1921
|
e,
|
|
1922
|
-
(s, a) => /^on/.test(a) ?
|
|
1922
|
+
(s, a) => /^on/.test(a) ? Lo(s, r) : s
|
|
1923
1923
|
)
|
|
1924
|
-
),
|
|
1924
|
+
), Bi(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(
|
|
1928
1928
|
"Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?"
|
|
1929
1929
|
);
|
|
1930
1930
|
const o = this._state;
|
|
1931
|
-
return
|
|
1931
|
+
return qo(++this._lastCallId, {
|
|
1932
1932
|
key: r,
|
|
1933
1933
|
props: e,
|
|
1934
1934
|
defaultProps: n,
|
|
@@ -1943,7 +1943,7 @@ var Mi = class extends Error {
|
|
|
1943
1943
|
));
|
|
1944
1944
|
},
|
|
1945
1945
|
resume: () => {
|
|
1946
|
-
kt(this) && (Li(this, !1),
|
|
1946
|
+
kt(this) && (Li(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)),
|
|
@@ -1954,7 +1954,7 @@ var Mi = class extends Error {
|
|
|
1954
1954
|
}
|
|
1955
1955
|
}).then((s) => {
|
|
1956
1956
|
if (e.loop && s.finished && !(t && s.noop)) {
|
|
1957
|
-
const a =
|
|
1957
|
+
const a = Qo(e);
|
|
1958
1958
|
if (a)
|
|
1959
1959
|
return this._update(a, !0);
|
|
1960
1960
|
}
|
|
@@ -1974,28 +1974,28 @@ 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 = !Oe(d, l);
|
|
1978
1978
|
h && (a.from = d), d = J(d);
|
|
1979
|
-
const p = !
|
|
1979
|
+
const p = !Oe(f, u);
|
|
1980
1980
|
p && this._focus(f);
|
|
1981
|
-
const v =
|
|
1982
|
-
(n || i) && (
|
|
1983
|
-
|
|
1984
|
-
|
|
1981
|
+
const v = gn(t.to), { config: S } = a, { decay: w, velocity: y } = S;
|
|
1982
|
+
(n || i) && (S.velocity = 0), t.config && !v && Oc(
|
|
1983
|
+
S,
|
|
1984
|
+
Ue(t.config, o),
|
|
1985
1985
|
// Avoid calling the same "config" prop twice.
|
|
1986
|
-
t.config !== s.config ?
|
|
1986
|
+
t.config !== s.config ? Ue(s.config, o) : void 0
|
|
1987
1987
|
);
|
|
1988
1988
|
let b = _e(this);
|
|
1989
1989
|
if (!b || _.und(f))
|
|
1990
1990
|
return r(ge(this, !0));
|
|
1991
|
-
const
|
|
1991
|
+
const m = (
|
|
1992
1992
|
// When `reset` is undefined, the `from` prop implies `reset: true`,
|
|
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) && It(t.reset, o)
|
|
1996
|
-
),
|
|
1996
|
+
), E = m ? d : this.get(), k = Bt(f), P = _.num(k) || _.arr(k) || Ir(k), O = !v && (!P || It(s.immediate || t.immediate, o));
|
|
1997
1997
|
if (p) {
|
|
1998
|
-
const Y =
|
|
1998
|
+
const Y = yn(f);
|
|
1999
1999
|
if (Y !== b.constructor)
|
|
2000
2000
|
if (O)
|
|
2001
2001
|
b = this._set(k);
|
|
@@ -2007,19 +2007,19 @@ var Mi = class extends Error {
|
|
|
2007
2007
|
const I = b.constructor;
|
|
2008
2008
|
let M = ce(f), fe = !1;
|
|
2009
2009
|
if (!M) {
|
|
2010
|
-
const Y =
|
|
2011
|
-
(p || Y) && (fe =
|
|
2010
|
+
const Y = m || !rn(this) && h;
|
|
2011
|
+
(p || Y) && (fe = Oe(Bt(E), k), M = !fe), (!Oe(a.immediate, O) && !O || !Oe(S.decay, w) || !Oe(S.velocity, y)) && (M = !0);
|
|
2012
2012
|
}
|
|
2013
|
-
if (fe &&
|
|
2013
|
+
if (fe && Te(this) && (a.changed && !m ? M = !0 : M || this._stop(u)), !v && ((M || ce(u)) && (a.values = b.getPayload(), a.toValues = ce(f) ? null : I == Ut ? [1] : ne(k)), a.immediate != O && (a.immediate = O, !O && !m && this._set(u)), M)) {
|
|
2014
2014
|
const { onRest: Y } = a;
|
|
2015
|
-
T(Rc, (W) =>
|
|
2015
|
+
T(Rc, (W) => Bi(this, t, W));
|
|
2016
2016
|
const de = ge(this, Pt(this, u));
|
|
2017
2017
|
Ct(this._pendingCalls, de), this._pendingCalls.add(r), a.changed && C.batchedUpdates(() => {
|
|
2018
2018
|
var W;
|
|
2019
|
-
a.changed = !
|
|
2019
|
+
a.changed = !m, Y == null || Y(de, this), m ? Ue(s.onRest, de) : (W = a.onStart) == null || W.call(a, de, this);
|
|
2020
2020
|
});
|
|
2021
2021
|
}
|
|
2022
|
-
|
|
2022
|
+
m && this._set(E), v ? r(Ho(t.to, t, this._state, this)) : M ? this._start() : Te(this) && !p ? this._pendingCalls.add(r) : r(Wo(E));
|
|
2023
2023
|
}
|
|
2024
2024
|
/** Update the `animation.to` value, which might be a `FluidValue` */
|
|
2025
2025
|
_focus(e) {
|
|
@@ -2029,7 +2029,7 @@ var Mi = class extends Error {
|
|
|
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), bn(t) && (e = t.priority + 1)), this.priority = e;
|
|
2033
2033
|
}
|
|
2034
2034
|
_detach() {
|
|
2035
2035
|
const { to: e } = this.animation;
|
|
@@ -2043,8 +2043,8 @@ var Mi = class extends Error {
|
|
|
2043
2043
|
const r = J(e);
|
|
2044
2044
|
if (!_.und(r)) {
|
|
2045
2045
|
const n = _e(this);
|
|
2046
|
-
if (!n || !
|
|
2047
|
-
const i =
|
|
2046
|
+
if (!n || !Oe(r, n.getValue())) {
|
|
2047
|
+
const i = yn(r);
|
|
2048
2048
|
!n || n.constructor != i ? Xn(this, i.create(r)) : n.setValue(r), n && C.batchedUpdates(() => {
|
|
2049
2049
|
this._onChange(r, t);
|
|
2050
2050
|
});
|
|
@@ -2062,17 +2062,17 @@ var Mi = class extends Error {
|
|
|
2062
2062
|
));
|
|
2063
2063
|
}
|
|
2064
2064
|
_onChange(e, t) {
|
|
2065
|
-
t || (this._onStart(),
|
|
2065
|
+
t || (this._onStart(), Ue(this.animation.onChange, e, this)), Ue(this.defaultProps.onChange, e, this), super._onChange(e, t);
|
|
2066
2066
|
}
|
|
2067
2067
|
// This method resets the animation state (even if already animating) to
|
|
2068
2068
|
// ensure the latest from/to range is used, and it also ensures this spring
|
|
2069
2069
|
// is added to the frameloop.
|
|
2070
2070
|
_start() {
|
|
2071
2071
|
const e = this.animation;
|
|
2072
|
-
_e(this).reset(J(e.to)), e.immediate || (e.fromValues = e.values.map((t) => t.lastPosition)),
|
|
2072
|
+
_e(this).reset(J(e.to)), e.immediate || (e.fromValues = e.values.map((t) => t.lastPosition)), Te(this) || (Fi(this, !0), kt(this) || this._resume());
|
|
2073
2073
|
}
|
|
2074
2074
|
_resume() {
|
|
2075
|
-
we.skipAnimation ? this.finish() :
|
|
2075
|
+
we.skipAnimation ? this.finish() : Ar.start(this);
|
|
2076
2076
|
}
|
|
2077
2077
|
/**
|
|
2078
2078
|
* Exit the frameloop and notify `onRest` listeners.
|
|
@@ -2080,7 +2080,7 @@ var Mi = class extends Error {
|
|
|
2080
2080
|
* Always wrap `_stop` calls with `batchedUpdates`.
|
|
2081
2081
|
*/
|
|
2082
2082
|
_stop(e, t) {
|
|
2083
|
-
if (
|
|
2083
|
+
if (Te(this)) {
|
|
2084
2084
|
Fi(this, !1);
|
|
2085
2085
|
const r = this.animation;
|
|
2086
2086
|
T(r.values, (i) => {
|
|
@@ -2095,13 +2095,13 @@ var Mi = class extends Error {
|
|
|
2095
2095
|
}
|
|
2096
2096
|
};
|
|
2097
2097
|
function Pt(e, t) {
|
|
2098
|
-
const r =
|
|
2099
|
-
return
|
|
2098
|
+
const r = Bt(t), n = Bt(e.get());
|
|
2099
|
+
return Oe(n, r);
|
|
2100
2100
|
}
|
|
2101
|
-
function
|
|
2102
|
-
const n =
|
|
2101
|
+
function Qo(e, t = e.loop, r = e.to) {
|
|
2102
|
+
const n = Ue(t);
|
|
2103
2103
|
if (n) {
|
|
2104
|
-
const i = n !== !0 &&
|
|
2104
|
+
const i = n !== !0 && Bo(n), o = (i || e).reverse, s = !i || i.reset;
|
|
2105
2105
|
return Wt({
|
|
2106
2106
|
...e,
|
|
2107
2107
|
loop: t,
|
|
@@ -2112,7 +2112,7 @@ function Xo(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 || gn(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,
|
|
@@ -2123,15 +2123,15 @@ function Xo(e, t = e.loop, r = e.to) {
|
|
|
2123
2123
|
}
|
|
2124
2124
|
}
|
|
2125
2125
|
function Wt(e) {
|
|
2126
|
-
const { to: t, from: r } = e =
|
|
2127
|
-
return _.obj(t) &&
|
|
2126
|
+
const { to: t, from: r } = e = Bo(e), n = /* @__PURE__ */ new Set();
|
|
2127
|
+
return _.obj(t) && Ui(t, n), _.obj(r) && Ui(r, n), e.keys = n.size ? Array.from(n) : null, e;
|
|
2128
2128
|
}
|
|
2129
2129
|
function Cc(e) {
|
|
2130
2130
|
const t = Wt(e);
|
|
2131
2131
|
return _.und(t.default) && (t.default = Jn(t)), t;
|
|
2132
2132
|
}
|
|
2133
|
-
function
|
|
2134
|
-
|
|
2133
|
+
function Ui(e, t) {
|
|
2134
|
+
Se(e, (r, n) => r != null && t.add(n));
|
|
2135
2135
|
}
|
|
2136
2136
|
var Rc = [
|
|
2137
2137
|
"onStart",
|
|
@@ -2140,8 +2140,8 @@ var Rc = [
|
|
|
2140
2140
|
"onPause",
|
|
2141
2141
|
"onResume"
|
|
2142
2142
|
];
|
|
2143
|
-
function
|
|
2144
|
-
e.animation[r] = t[r] !== Uo(t, r) ?
|
|
2143
|
+
function Bi(e, t, r) {
|
|
2144
|
+
e.animation[r] = t[r] !== Uo(t, r) ? Lo(t[r], e.key) : void 0;
|
|
2145
2145
|
}
|
|
2146
2146
|
function Nt(e, t, ...r) {
|
|
2147
2147
|
var n, i, o, s;
|
|
@@ -2198,7 +2198,7 @@ var Ac = ["onStart", "onChange", "onRest"], Tc = 1, Dc = 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) : (
|
|
2201
|
+
return e ? t = ne(e).map(Wt) : this.queue = [], this._flush ? this._flush(this, t) : (ts(this, t), wn(this, t));
|
|
2202
2202
|
}
|
|
2203
2203
|
/** @internal */
|
|
2204
2204
|
stop(e, t) {
|
|
@@ -2231,7 +2231,7 @@ var Ac = ["onStart", "onChange", "onRest"], Tc = 1, Dc = class {
|
|
|
2231
2231
|
}
|
|
2232
2232
|
/** Call a function once per spring value */
|
|
2233
2233
|
each(e) {
|
|
2234
|
-
|
|
2234
|
+
Se(this.springs, e);
|
|
2235
2235
|
}
|
|
2236
2236
|
/** @internal Called at the end of every animation frame */
|
|
2237
2237
|
_onFrame() {
|
|
@@ -2257,46 +2257,46 @@ var Ac = ["onStart", "onChange", "onRest"], Tc = 1, Dc = class {
|
|
|
2257
2257
|
C.onFrame(this._onFrame);
|
|
2258
2258
|
}
|
|
2259
2259
|
};
|
|
2260
|
-
function
|
|
2261
|
-
return Promise.all(t.map((r) =>
|
|
2260
|
+
function wn(e, t) {
|
|
2261
|
+
return Promise.all(t.map((r) => Xo(e, r))).then(
|
|
2262
2262
|
(r) => Zn(e, r)
|
|
2263
2263
|
);
|
|
2264
2264
|
}
|
|
2265
|
-
async function
|
|
2265
|
+
async function Xo(e, t, r) {
|
|
2266
2266
|
const { keys: n, to: i, from: o, loop: s, onRest: a, onResolve: u } = t, l = _.obj(t.default) && t.default;
|
|
2267
2267
|
s && (t.loop = !1), i === !1 && (t.to = null), o === !1 && (t.from = null);
|
|
2268
2268
|
const f = _.arr(i) || _.fun(i) ? i : void 0;
|
|
2269
|
-
f ? (t.to = void 0, t.onRest = void 0, l && (l.onRest = void 0)) : T(Ac, (
|
|
2270
|
-
const w = t[
|
|
2269
|
+
f ? (t.to = void 0, t.onRest = void 0, l && (l.onRest = void 0)) : T(Ac, (S) => {
|
|
2270
|
+
const w = t[S];
|
|
2271
2271
|
if (_.fun(w)) {
|
|
2272
|
-
const
|
|
2273
|
-
t[
|
|
2274
|
-
const
|
|
2275
|
-
|
|
2272
|
+
const y = e._events[S];
|
|
2273
|
+
t[S] = ({ finished: b, cancelled: m }) => {
|
|
2274
|
+
const E = y.get(w);
|
|
2275
|
+
E ? (b || (E.finished = !1), m && (E.cancelled = !0)) : y.set(w, {
|
|
2276
2276
|
value: null,
|
|
2277
2277
|
finished: b || !1,
|
|
2278
|
-
cancelled:
|
|
2278
|
+
cancelled: m || !1
|
|
2279
2279
|
});
|
|
2280
|
-
}, l && (l[
|
|
2280
|
+
}, l && (l[S] = t[S]);
|
|
2281
2281
|
}
|
|
2282
2282
|
});
|
|
2283
2283
|
const d = e._state;
|
|
2284
2284
|
t.pause === !d.paused ? (d.paused = t.pause, Ct(t.pause ? d.pauseQueue : d.resumeQueue)) : d.paused && (t.pause = !0);
|
|
2285
2285
|
const h = (n || Object.keys(e.springs)).map(
|
|
2286
|
-
(
|
|
2286
|
+
(S) => e.springs[S].start(t)
|
|
2287
2287
|
), p = t.cancel === !0 || Uo(t, "cancel") === !0;
|
|
2288
2288
|
(f || p && d.asyncId) && h.push(
|
|
2289
|
-
|
|
2289
|
+
qo(++e._lastAsyncId, {
|
|
2290
2290
|
props: t,
|
|
2291
2291
|
state: d,
|
|
2292
2292
|
actions: {
|
|
2293
|
-
pause:
|
|
2294
|
-
resume:
|
|
2295
|
-
start(
|
|
2296
|
-
p ? (qt(d, e._lastAsyncId), w(ut(e))) : (
|
|
2297
|
-
|
|
2293
|
+
pause: pn,
|
|
2294
|
+
resume: pn,
|
|
2295
|
+
start(S, w) {
|
|
2296
|
+
p ? (qt(d, e._lastAsyncId), w(ut(e))) : (S.onRest = a, w(
|
|
2297
|
+
Ho(
|
|
2298
2298
|
f,
|
|
2299
|
-
|
|
2299
|
+
S,
|
|
2300
2300
|
d,
|
|
2301
2301
|
e
|
|
2302
2302
|
)
|
|
@@ -2304,55 +2304,55 @@ async function Jo(e, t, r) {
|
|
|
2304
2304
|
}
|
|
2305
2305
|
}
|
|
2306
2306
|
})
|
|
2307
|
-
), d.paused && await new Promise((
|
|
2308
|
-
d.resumeQueue.add(
|
|
2307
|
+
), d.paused && await new Promise((S) => {
|
|
2308
|
+
d.resumeQueue.add(S);
|
|
2309
2309
|
});
|
|
2310
2310
|
const v = Zn(e, await Promise.all(h));
|
|
2311
2311
|
if (s && v.finished && !(r && v.noop)) {
|
|
2312
|
-
const
|
|
2313
|
-
if (
|
|
2314
|
-
return
|
|
2312
|
+
const S = Qo(t, s, i);
|
|
2313
|
+
if (S)
|
|
2314
|
+
return ts(e, [S]), Xo(e, S, !0);
|
|
2315
2315
|
}
|
|
2316
2316
|
return u && C.batchedUpdates(() => u(v, e, e.item)), v;
|
|
2317
2317
|
}
|
|
2318
2318
|
function qi(e, t) {
|
|
2319
2319
|
const r = { ...e.springs };
|
|
2320
2320
|
return t && T(ne(t), (n) => {
|
|
2321
|
-
_.und(n.keys) && (n = Wt(n)), _.obj(n.to) || (n = { ...n, to: void 0 }),
|
|
2322
|
-
}),
|
|
2321
|
+
_.und(n.keys) && (n = Wt(n)), _.obj(n.to) || (n = { ...n, to: void 0 }), es(r, n, (i) => Zo(i));
|
|
2322
|
+
}), Jo(e, r), r;
|
|
2323
2323
|
}
|
|
2324
|
-
function
|
|
2325
|
-
|
|
2324
|
+
function Jo(e, t) {
|
|
2325
|
+
Se(t, (r, n) => {
|
|
2326
2326
|
e.springs[n] || (e.springs[n] = r, vt(r, e));
|
|
2327
2327
|
});
|
|
2328
2328
|
}
|
|
2329
|
-
function
|
|
2329
|
+
function Zo(e, t) {
|
|
2330
2330
|
const r = new Nc();
|
|
2331
2331
|
return r.key = e, t && vt(r, t), r;
|
|
2332
2332
|
}
|
|
2333
|
-
function
|
|
2333
|
+
function es(e, t, r) {
|
|
2334
2334
|
t.keys && T(t.keys, (n) => {
|
|
2335
2335
|
(e[n] || (e[n] = r(n)))._prepareNode(t);
|
|
2336
2336
|
});
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2338
|
+
function ts(e, t) {
|
|
2339
2339
|
T(t, (r) => {
|
|
2340
|
-
|
|
2340
|
+
es(e.springs, r, (n) => Zo(n, e));
|
|
2341
2341
|
});
|
|
2342
2342
|
}
|
|
2343
|
-
var
|
|
2343
|
+
var $r = ({
|
|
2344
2344
|
children: e,
|
|
2345
2345
|
...t
|
|
2346
2346
|
}) => {
|
|
2347
|
-
const r = Fn(
|
|
2347
|
+
const r = Fn(wr), n = t.pause || !!r.pause, i = t.immediate || !!r.immediate;
|
|
2348
2348
|
t = ac(() => ({ pause: n, immediate: i }), [n, i]);
|
|
2349
|
-
const { Provider: o } =
|
|
2350
|
-
return /* @__PURE__ */
|
|
2351
|
-
},
|
|
2352
|
-
|
|
2353
|
-
|
|
2349
|
+
const { Provider: o } = wr;
|
|
2350
|
+
return /* @__PURE__ */ Mn.createElement(o, { value: t }, e);
|
|
2351
|
+
}, wr = Ic($r, {});
|
|
2352
|
+
$r.Provider = wr.Provider;
|
|
2353
|
+
$r.Consumer = wr.Consumer;
|
|
2354
2354
|
function Ic(e, t) {
|
|
2355
|
-
return Object.assign(e,
|
|
2355
|
+
return Object.assign(e, Mn.createContext(t)), e.Provider._context = e, e.Consumer._context = e, e;
|
|
2356
2356
|
}
|
|
2357
2357
|
var jc = () => {
|
|
2358
2358
|
const e = [], t = function(n) {
|
|
@@ -2407,50 +2407,50 @@ function Vc(e, t, r) {
|
|
|
2407
2407
|
const i = tr(
|
|
2408
2408
|
() => n || arguments.length == 3 ? jc() : void 0,
|
|
2409
2409
|
[]
|
|
2410
|
-
), o =
|
|
2410
|
+
), o = Me(0), s = $o(), a = tr(
|
|
2411
2411
|
() => ({
|
|
2412
2412
|
ctrls: [],
|
|
2413
2413
|
queue: [],
|
|
2414
|
-
flush(
|
|
2415
|
-
const
|
|
2416
|
-
return o.current > 0 && !a.queue.length && !Object.keys(
|
|
2417
|
-
|
|
2418
|
-
k(
|
|
2414
|
+
flush(y, b) {
|
|
2415
|
+
const m = qi(y, b);
|
|
2416
|
+
return o.current > 0 && !a.queue.length && !Object.keys(m).some((k) => !y.springs[k]) ? wn(y, b) : new Promise((k) => {
|
|
2417
|
+
Jo(y, m), a.queue.push(() => {
|
|
2418
|
+
k(wn(y, b));
|
|
2419
2419
|
}), s();
|
|
2420
2420
|
});
|
|
2421
2421
|
}
|
|
2422
2422
|
}),
|
|
2423
2423
|
[]
|
|
2424
|
-
), u =
|
|
2424
|
+
), u = Me([...a.ctrls]), l = [], f = Ti(e) || 0;
|
|
2425
2425
|
tr(() => {
|
|
2426
|
-
T(u.current.slice(e, f), (
|
|
2427
|
-
_c(
|
|
2426
|
+
T(u.current.slice(e, f), (y) => {
|
|
2427
|
+
_c(y, i), y.stop(!0);
|
|
2428
2428
|
}), u.current.length = e, d(f, e);
|
|
2429
2429
|
}, [e]), tr(() => {
|
|
2430
2430
|
d(0, Math.min(f, e));
|
|
2431
2431
|
}, r);
|
|
2432
|
-
function d(
|
|
2433
|
-
for (let
|
|
2434
|
-
const
|
|
2435
|
-
k && (l[
|
|
2432
|
+
function d(y, b) {
|
|
2433
|
+
for (let m = y; m < b; m++) {
|
|
2434
|
+
const E = u.current[m] || (u.current[m] = new Dc(null, a.flush)), k = n ? n(m, E) : t[m];
|
|
2435
|
+
k && (l[m] = Cc(k));
|
|
2436
2436
|
}
|
|
2437
2437
|
}
|
|
2438
|
-
const h = u.current.map((
|
|
2438
|
+
const h = u.current.map((y, b) => qi(y, l[b])), p = Fn($r), v = Ti(p), S = p !== v && wc(p);
|
|
2439
2439
|
Qn(() => {
|
|
2440
2440
|
o.current++, a.ctrls = u.current;
|
|
2441
|
-
const { queue:
|
|
2442
|
-
|
|
2443
|
-
i == null || i.add(b),
|
|
2444
|
-
const
|
|
2445
|
-
|
|
2441
|
+
const { queue: y } = a;
|
|
2442
|
+
y.length && (a.queue = [], T(y, (b) => b())), T(u.current, (b, m) => {
|
|
2443
|
+
i == null || i.add(b), S && b.start({ default: p });
|
|
2444
|
+
const E = l[m];
|
|
2445
|
+
E && (Ec(b, E.ref), b.ref ? b.queue.push(E) : b.start(E));
|
|
2446
2446
|
});
|
|
2447
|
-
}),
|
|
2448
|
-
T(a.ctrls, (
|
|
2447
|
+
}), Mo(() => () => {
|
|
2448
|
+
T(a.ctrls, (y) => y.stop(!0));
|
|
2449
2449
|
});
|
|
2450
|
-
const w = h.map((
|
|
2450
|
+
const w = h.map((y) => ({ ...y }));
|
|
2451
2451
|
return i ? [w, i] : w;
|
|
2452
2452
|
}
|
|
2453
|
-
function
|
|
2453
|
+
function rs(e, t) {
|
|
2454
2454
|
const r = _.fun(e), [[n], i] = Vc(
|
|
2455
2455
|
1,
|
|
2456
2456
|
r ? e : [e],
|
|
@@ -2461,39 +2461,39 @@ function ns(e, t) {
|
|
|
2461
2461
|
var $c = class extends ei {
|
|
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 =
|
|
2464
|
+
const r = this._get(), n = yn(r);
|
|
2465
2465
|
Xn(this, n.create(r));
|
|
2466
2466
|
}
|
|
2467
2467
|
advance(e) {
|
|
2468
2468
|
const t = this._get(), r = this.get();
|
|
2469
|
-
|
|
2469
|
+
Oe(t, r) || (_e(this).setValue(t), this._onChange(t, this.idle)), !this.idle && Wi(this._active) && nn(this);
|
|
2470
2470
|
}
|
|
2471
2471
|
_get() {
|
|
2472
2472
|
const e = _.arr(this.source) ? this.source.map(J) : ne(J(this.source));
|
|
2473
2473
|
return this.calc(...e);
|
|
2474
2474
|
}
|
|
2475
2475
|
_start() {
|
|
2476
|
-
this.idle && !Wi(this._active) && (this.idle = !1, T(
|
|
2476
|
+
this.idle && !Wi(this._active) && (this.idle = !1, T(jr(this), (e) => {
|
|
2477
2477
|
e.done = !1;
|
|
2478
|
-
}), we.skipAnimation ? (C.batchedUpdates(() => this.advance()),
|
|
2478
|
+
}), we.skipAnimation ? (C.batchedUpdates(() => this.advance()), nn(this)) : Ar.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), bn(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(), nn(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, (bn(r) ? r.priority : 0) + 1),
|
|
2497
2497
|
0
|
|
2498
2498
|
));
|
|
2499
2499
|
}
|
|
@@ -2504,8 +2504,8 @@ function Mc(e) {
|
|
|
2504
2504
|
function Wi(e) {
|
|
2505
2505
|
return !e.size || Array.from(e).every(Mc);
|
|
2506
2506
|
}
|
|
2507
|
-
function
|
|
2508
|
-
e.idle || (e.idle = !0, T(
|
|
2507
|
+
function nn(e) {
|
|
2508
|
+
e.idle || (e.idle = !0, T(jr(e), (t) => {
|
|
2509
2509
|
t.done = !0;
|
|
2510
2510
|
}), zt(e, {
|
|
2511
2511
|
type: "idle",
|
|
@@ -2513,12 +2513,12 @@ function on(e) {
|
|
|
2513
2513
|
}));
|
|
2514
2514
|
}
|
|
2515
2515
|
we.assign({
|
|
2516
|
-
createStringInterpolator:
|
|
2516
|
+
createStringInterpolator: jo,
|
|
2517
2517
|
to: (e, t) => new $c(e, t)
|
|
2518
2518
|
});
|
|
2519
|
-
var
|
|
2519
|
+
var ns = /^--/;
|
|
2520
2520
|
function zc(e, t) {
|
|
2521
|
-
return t == null || typeof t == "boolean" || t === "" ? "" : typeof t == "number" && t !== 0 && !
|
|
2521
|
+
return t == null || typeof t == "boolean" || t === "" ? "" : typeof t == "number" && t !== 0 && !ns.test(e) && !(jt.hasOwnProperty(e) && jt[e]) ? t + "px" : ("" + t).trim();
|
|
2522
2522
|
}
|
|
2523
2523
|
var Hi = {};
|
|
2524
2524
|
function Fc(e, t) {
|
|
@@ -2543,7 +2543,7 @@ function Fc(e, t) {
|
|
|
2543
2543
|
for (const h in i)
|
|
2544
2544
|
if (i.hasOwnProperty(h)) {
|
|
2545
2545
|
const p = zc(h, i[h]);
|
|
2546
|
-
|
|
2546
|
+
ns.test(h) ? e.style.setProperty(h, p) : e.style[h] = p;
|
|
2547
2547
|
}
|
|
2548
2548
|
d.forEach((h, p) => {
|
|
2549
2549
|
e.setAttribute(h, f[p]);
|
|
@@ -2592,35 +2592,35 @@ var jt = {
|
|
|
2592
2592
|
strokeMiterlimit: !0,
|
|
2593
2593
|
strokeOpacity: !0,
|
|
2594
2594
|
strokeWidth: !0
|
|
2595
|
-
}, Lc = (e, t) => e + t.charAt(0).toUpperCase() + t.substring(1),
|
|
2596
|
-
jt = Object.keys(jt).reduce((e, t) => (
|
|
2597
|
-
var
|
|
2595
|
+
}, Lc = (e, t) => e + t.charAt(0).toUpperCase() + t.substring(1), Uc = ["Webkit", "Ms", "Moz", "O"];
|
|
2596
|
+
jt = Object.keys(jt).reduce((e, t) => (Uc.forEach((r) => e[Lc(r, t)] = e[t]), e), jt);
|
|
2597
|
+
var Bc = /^(matrix|translate|scale|rotate|skew)/, qc = /^(translate)/, Wc = /^(rotate|skew)/, on = (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, Hc = class extends Vr {
|
|
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) => on(a, "px")).join(",")})`,
|
|
2602
2602
|
// prettier-ignore
|
|
2603
2603
|
fr(s, 0)
|
|
2604
|
-
])),
|
|
2604
|
+
])), Se(n, (s, a) => {
|
|
2605
2605
|
if (a === "transform")
|
|
2606
2606
|
i.push([s || ""]), o.push((u) => [u, u === ""]);
|
|
2607
|
-
else if (
|
|
2607
|
+
else if (Bc.test(a)) {
|
|
2608
2608
|
if (delete n[a], _.und(s))
|
|
2609
2609
|
return;
|
|
2610
2610
|
const u = qc.test(a) ? "px" : Wc.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},${on(h, u)})`,
|
|
2614
2614
|
fr(h, 0)
|
|
2615
2615
|
] : (l) => [
|
|
2616
|
-
`${a}(${l.map((f) =>
|
|
2616
|
+
`${a}(${l.map((f) => on(f, u)).join(",")})`,
|
|
2617
2617
|
fr(l, a.startsWith("scale") ? 1 : 0)
|
|
2618
2618
|
]
|
|
2619
2619
|
);
|
|
2620
2620
|
}
|
|
2621
2621
|
}), i.length && (n.transform = new Yc(i, o)), super(n);
|
|
2622
2622
|
}
|
|
2623
|
-
}, Yc = class extends
|
|
2623
|
+
}, Yc = class extends To {
|
|
2624
2624
|
constructor(e, t) {
|
|
2625
2625
|
super(), this.inputs = e, this.transforms = t, this._value = null;
|
|
2626
2626
|
}
|
|
@@ -2797,7 +2797,7 @@ var Uc = /^(matrix|translate|scale|rotate|skew)/, qc = /^(translate)/, Wc = /^(r
|
|
|
2797
2797
|
];
|
|
2798
2798
|
we.assign({
|
|
2799
2799
|
batchedUpdates: ka,
|
|
2800
|
-
createStringInterpolator:
|
|
2800
|
+
createStringInterpolator: jo,
|
|
2801
2801
|
colors: $a
|
|
2802
2802
|
});
|
|
2803
2803
|
var Kc = mc(Gc, {
|
|
@@ -2805,7 +2805,7 @@ var Kc = mc(Gc, {
|
|
|
2805
2805
|
createAnimatedStyle: (e) => new Hc(e),
|
|
2806
2806
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2807
2807
|
getComponentProps: ({ scrollTop: e, scrollLeft: t, ...r }) => r
|
|
2808
|
-
}),
|
|
2808
|
+
}), is = Kc.animated;
|
|
2809
2809
|
function Qc({
|
|
2810
2810
|
animate: e,
|
|
2811
2811
|
content: t,
|
|
@@ -2813,66 +2813,46 @@ function Qc({
|
|
|
2813
2813
|
htmlElement: n,
|
|
2814
2814
|
fadeIn: i
|
|
2815
2815
|
}) {
|
|
2816
|
-
const o = n ?? "div", s
|
|
2816
|
+
const o = n ?? "div", [s, a] = zn(!1), [u, l] = rs(() => ({
|
|
2817
2817
|
opacity: i ? 0 : 1,
|
|
2818
2818
|
transform: i ? "scale(0)" : "scale(1)",
|
|
2819
|
-
height: `${u}px`,
|
|
2820
2819
|
config: { duration: 200 }
|
|
2821
2820
|
}));
|
|
2822
|
-
|
|
2823
|
-
if (s.current && a.current) {
|
|
2824
|
-
const w = s.current.getBoundingClientRect().height, m = a.current.getBoundingClientRect().height;
|
|
2825
|
-
l(Math.max(w, m));
|
|
2826
|
-
}
|
|
2827
|
-
}, []), gt(() => {
|
|
2821
|
+
gt(() => {
|
|
2828
2822
|
if (!e) return;
|
|
2829
|
-
const
|
|
2830
|
-
|
|
2823
|
+
const E = Math.floor(Math.random() * 11501) + 3500, k = setTimeout(() => {
|
|
2824
|
+
l.start({
|
|
2831
2825
|
opacity: 0,
|
|
2832
2826
|
transform: "translateY(15px)",
|
|
2833
2827
|
onRest: () => {
|
|
2834
|
-
|
|
2828
|
+
a((P) => !P), l.start({ opacity: 1, transform: "translateY(0px)" });
|
|
2835
2829
|
}
|
|
2836
2830
|
});
|
|
2837
|
-
},
|
|
2838
|
-
return () => clearTimeout(
|
|
2839
|
-
}, [
|
|
2840
|
-
const
|
|
2841
|
-
|
|
2831
|
+
}, E);
|
|
2832
|
+
return () => clearTimeout(k);
|
|
2833
|
+
}, [s, e, l]);
|
|
2834
|
+
const f = e && s ? t.simplified : t.english, {
|
|
2835
|
+
fontSize: d,
|
|
2836
|
+
fontFamily: h,
|
|
2837
|
+
fontWeight: p,
|
|
2838
|
+
fontStyle: v,
|
|
2839
|
+
letterSpacing: S,
|
|
2840
|
+
lineHeight: w,
|
|
2841
|
+
...y
|
|
2842
|
+
} = r || {}, m = {
|
|
2843
|
+
...y,
|
|
2844
|
+
...{
|
|
2845
|
+
fontSize: d,
|
|
2846
|
+
fontFamily: h,
|
|
2847
|
+
fontWeight: p,
|
|
2848
|
+
fontStyle: v,
|
|
2849
|
+
letterSpacing: S,
|
|
2850
|
+
lineHeight: w
|
|
2851
|
+
},
|
|
2842
2852
|
display: "inline-block",
|
|
2843
2853
|
alignContent: "center"
|
|
2844
2854
|
};
|
|
2845
|
-
return /* @__PURE__ */
|
|
2846
|
-
/* @__PURE__ */ L.jsx(
|
|
2847
|
-
"div",
|
|
2848
|
-
{
|
|
2849
|
-
ref: s,
|
|
2850
|
-
style: {
|
|
2851
|
-
position: "absolute",
|
|
2852
|
-
visibility: "hidden",
|
|
2853
|
-
pointerEvents: "none",
|
|
2854
|
-
whiteSpace: "nowrap",
|
|
2855
|
-
font: "inherit"
|
|
2856
|
-
},
|
|
2857
|
-
children: t.english
|
|
2858
|
-
}
|
|
2859
|
-
),
|
|
2860
|
-
/* @__PURE__ */ L.jsx(
|
|
2861
|
-
"div",
|
|
2862
|
-
{
|
|
2863
|
-
ref: a,
|
|
2864
|
-
style: {
|
|
2865
|
-
position: "absolute",
|
|
2866
|
-
visibility: "hidden",
|
|
2867
|
-
pointerEvents: "none",
|
|
2868
|
-
whiteSpace: "nowrap",
|
|
2869
|
-
font: "inherit"
|
|
2870
|
-
},
|
|
2871
|
-
children: t.simplified
|
|
2872
|
-
}
|
|
2873
|
-
),
|
|
2874
|
-
/* @__PURE__ */ L.jsx(os.div, { style: h, children: /* @__PURE__ */ L.jsx(o, { style: E, children: v }) })
|
|
2875
|
-
] });
|
|
2855
|
+
return /* @__PURE__ */ q.jsx(is.div, { style: u, children: /* @__PURE__ */ q.jsx(o, { style: m, children: f }) });
|
|
2876
2856
|
}
|
|
2877
2857
|
var ee = function() {
|
|
2878
2858
|
return ee = Object.assign || function(t) {
|
|
@@ -2899,14 +2879,14 @@ var Jc = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
2899
2879
|
return Jc.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
2900
2880
|
}
|
|
2901
2881
|
/* Z+1 */
|
|
2902
|
-
), z = "-ms-", Vt = "-moz-", V = "-webkit-",
|
|
2882
|
+
), z = "-ms-", Vt = "-moz-", V = "-webkit-", os = "comm", Mr = "rule", ti = "decl", eu = "@import", ss = "@keyframes", tu = "@layer", as = Math.abs, ri = String.fromCharCode, _n = Object.assign;
|
|
2903
2883
|
function ru(e, t) {
|
|
2904
2884
|
return H(e, 0) ^ 45 ? (((t << 2 ^ H(e, 0)) << 2 ^ H(e, 1)) << 2 ^ H(e, 2)) << 2 ^ H(e, 3) : 0;
|
|
2905
2885
|
}
|
|
2906
|
-
function
|
|
2886
|
+
function cs(e) {
|
|
2907
2887
|
return e.trim();
|
|
2908
2888
|
}
|
|
2909
|
-
function
|
|
2889
|
+
function ke(e, t) {
|
|
2910
2890
|
return (e = t.exec(e)) ? e[0] : e;
|
|
2911
2891
|
}
|
|
2912
2892
|
function R(e, t, r) {
|
|
@@ -2924,7 +2904,7 @@ function ft(e, t, r) {
|
|
|
2924
2904
|
function Ee(e) {
|
|
2925
2905
|
return e.length;
|
|
2926
2906
|
}
|
|
2927
|
-
function
|
|
2907
|
+
function us(e) {
|
|
2928
2908
|
return e.length;
|
|
2929
2909
|
}
|
|
2930
2910
|
function Rt(e, t) {
|
|
@@ -2935,29 +2915,29 @@ function nu(e, t) {
|
|
|
2935
2915
|
}
|
|
2936
2916
|
function Yi(e, t) {
|
|
2937
2917
|
return e.filter(function(r) {
|
|
2938
|
-
return !
|
|
2918
|
+
return !ke(r, t);
|
|
2939
2919
|
});
|
|
2940
2920
|
}
|
|
2941
|
-
var
|
|
2942
|
-
function
|
|
2943
|
-
return { value: e, root: t, parent: r, type: n, props: i, children: o, line:
|
|
2921
|
+
var zr = 1, dt = 1, ls = 0, le = 0, B = 0, bt = "";
|
|
2922
|
+
function Fr(e, t, r, n, i, o, s, a) {
|
|
2923
|
+
return { value: e, root: t, parent: r, type: n, props: i, children: o, line: zr, column: dt, length: s, return: "", siblings: a };
|
|
2944
2924
|
}
|
|
2945
|
-
function
|
|
2946
|
-
return
|
|
2925
|
+
function De(e, t) {
|
|
2926
|
+
return _n(Fr("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
2947
2927
|
}
|
|
2948
2928
|
function at(e) {
|
|
2949
2929
|
for (; e.root; )
|
|
2950
|
-
e =
|
|
2930
|
+
e = De(e.root, { children: [e] });
|
|
2951
2931
|
Rt(e, e.siblings);
|
|
2952
2932
|
}
|
|
2953
2933
|
function iu() {
|
|
2954
|
-
return
|
|
2934
|
+
return B;
|
|
2955
2935
|
}
|
|
2956
2936
|
function ou() {
|
|
2957
|
-
return
|
|
2937
|
+
return B = le > 0 ? H(bt, --le) : 0, dt--, B === 10 && (dt = 1, zr--), B;
|
|
2958
2938
|
}
|
|
2959
2939
|
function be() {
|
|
2960
|
-
return
|
|
2940
|
+
return B = le < ls ? H(bt, le++) : 0, dt++, B === 10 && (dt = 1, zr++), B;
|
|
2961
2941
|
}
|
|
2962
2942
|
function We() {
|
|
2963
2943
|
return H(bt, le);
|
|
@@ -2965,10 +2945,10 @@ function We() {
|
|
|
2965
2945
|
function hr() {
|
|
2966
2946
|
return le;
|
|
2967
2947
|
}
|
|
2968
|
-
function
|
|
2948
|
+
function Lr(e, t) {
|
|
2969
2949
|
return ft(bt, e, t);
|
|
2970
2950
|
}
|
|
2971
|
-
function
|
|
2951
|
+
function En(e) {
|
|
2972
2952
|
switch (e) {
|
|
2973
2953
|
// \0 \t \n \r \s whitespace token
|
|
2974
2954
|
case 0:
|
|
@@ -3007,38 +2987,38 @@ function Sn(e) {
|
|
|
3007
2987
|
return 0;
|
|
3008
2988
|
}
|
|
3009
2989
|
function su(e) {
|
|
3010
|
-
return
|
|
2990
|
+
return zr = dt = 1, ls = Ee(bt = e), le = 0, [];
|
|
3011
2991
|
}
|
|
3012
2992
|
function au(e) {
|
|
3013
2993
|
return bt = "", e;
|
|
3014
2994
|
}
|
|
3015
|
-
function
|
|
3016
|
-
return
|
|
2995
|
+
function sn(e) {
|
|
2996
|
+
return cs(Lr(le - 1, Sn(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
3017
2997
|
}
|
|
3018
2998
|
function cu(e) {
|
|
3019
|
-
for (; (
|
|
2999
|
+
for (; (B = We()) && B < 33; )
|
|
3020
3000
|
be();
|
|
3021
|
-
return
|
|
3001
|
+
return En(e) > 2 || En(B) > 3 ? "" : " ";
|
|
3022
3002
|
}
|
|
3023
3003
|
function uu(e, t) {
|
|
3024
|
-
for (; --t && be() && !(
|
|
3004
|
+
for (; --t && be() && !(B < 48 || B > 102 || B > 57 && B < 65 || B > 70 && B < 97); )
|
|
3025
3005
|
;
|
|
3026
|
-
return
|
|
3006
|
+
return Lr(e, hr() + (t < 6 && We() == 32 && be() == 32));
|
|
3027
3007
|
}
|
|
3028
|
-
function
|
|
3008
|
+
function Sn(e) {
|
|
3029
3009
|
for (; be(); )
|
|
3030
|
-
switch (
|
|
3010
|
+
switch (B) {
|
|
3031
3011
|
// ] ) " '
|
|
3032
3012
|
case e:
|
|
3033
3013
|
return le;
|
|
3034
3014
|
// " '
|
|
3035
3015
|
case 34:
|
|
3036
3016
|
case 39:
|
|
3037
|
-
e !== 34 && e !== 39 &&
|
|
3017
|
+
e !== 34 && e !== 39 && Sn(B);
|
|
3038
3018
|
break;
|
|
3039
3019
|
// (
|
|
3040
3020
|
case 40:
|
|
3041
|
-
e === 41 &&
|
|
3021
|
+
e === 41 && Sn(e);
|
|
3042
3022
|
break;
|
|
3043
3023
|
// \
|
|
3044
3024
|
case 92:
|
|
@@ -3048,33 +3028,33 @@ function xn(e) {
|
|
|
3048
3028
|
return le;
|
|
3049
3029
|
}
|
|
3050
3030
|
function lu(e, t) {
|
|
3051
|
-
for (; be() && e +
|
|
3052
|
-
if (e +
|
|
3031
|
+
for (; be() && e + B !== 57; )
|
|
3032
|
+
if (e + B === 84 && We() === 47)
|
|
3053
3033
|
break;
|
|
3054
|
-
return "/*" +
|
|
3034
|
+
return "/*" + Lr(t, le - 1) + "*" + ri(e === 47 ? e : be());
|
|
3055
3035
|
}
|
|
3056
3036
|
function fu(e) {
|
|
3057
|
-
for (; !
|
|
3037
|
+
for (; !En(We()); )
|
|
3058
3038
|
be();
|
|
3059
|
-
return
|
|
3039
|
+
return Lr(e, le);
|
|
3060
3040
|
}
|
|
3061
3041
|
function du(e) {
|
|
3062
3042
|
return au(pr("", null, null, null, [""], e = su(e), 0, [0], e));
|
|
3063
3043
|
}
|
|
3064
3044
|
function pr(e, t, r, n, i, o, s, a, u) {
|
|
3065
|
-
for (var l = 0, f = 0, d = s, h = 0, p = 0, v = 0,
|
|
3045
|
+
for (var l = 0, f = 0, d = s, h = 0, p = 0, v = 0, S = 1, w = 1, y = 1, b = 0, m = "", E = i, k = o, P = n, O = m; w; )
|
|
3066
3046
|
switch (v = b, b = be()) {
|
|
3067
3047
|
// (
|
|
3068
3048
|
case 40:
|
|
3069
3049
|
if (v != 108 && H(O, d - 1) == 58) {
|
|
3070
|
-
dr(O += R(
|
|
3050
|
+
dr(O += R(sn(b), "&", "&\f"), "&\f", as(l ? a[l - 1] : 0)) != -1 && (y = -1);
|
|
3071
3051
|
break;
|
|
3072
3052
|
}
|
|
3073
3053
|
// " ' [
|
|
3074
3054
|
case 34:
|
|
3075
3055
|
case 39:
|
|
3076
3056
|
case 91:
|
|
3077
|
-
O +=
|
|
3057
|
+
O += sn(b);
|
|
3078
3058
|
break;
|
|
3079
3059
|
// \t \n \r \s
|
|
3080
3060
|
case 9:
|
|
@@ -3099,10 +3079,10 @@ function pr(e, t, r, n, i, o, s, a, u) {
|
|
|
3099
3079
|
}
|
|
3100
3080
|
break;
|
|
3101
3081
|
// {
|
|
3102
|
-
case 123 *
|
|
3103
|
-
a[l++] = Ee(O) *
|
|
3082
|
+
case 123 * S:
|
|
3083
|
+
a[l++] = Ee(O) * y;
|
|
3104
3084
|
// } ; \0
|
|
3105
|
-
case 125 *
|
|
3085
|
+
case 125 * S:
|
|
3106
3086
|
case 59:
|
|
3107
3087
|
case 0:
|
|
3108
3088
|
switch (b) {
|
|
@@ -3112,16 +3092,16 @@ function pr(e, t, r, n, i, o, s, a, u) {
|
|
|
3112
3092
|
w = 0;
|
|
3113
3093
|
// ;
|
|
3114
3094
|
case 59 + f:
|
|
3115
|
-
|
|
3095
|
+
y == -1 && (O = R(O, /\f/g, "")), p > 0 && Ee(O) - d && Rt(p > 32 ? Ki(O + ";", n, r, d - 1, u) : Ki(R(O, " ", "") + ";", n, r, d - 2, u), u);
|
|
3116
3096
|
break;
|
|
3117
3097
|
// @ ;
|
|
3118
3098
|
case 59:
|
|
3119
3099
|
O += ";";
|
|
3120
3100
|
// { rule/at-rule
|
|
3121
3101
|
default:
|
|
3122
|
-
if (Rt(P = Gi(O, t, r, l, f, i, a,
|
|
3102
|
+
if (Rt(P = Gi(O, t, r, l, f, i, a, m, E = [], k = [], d, o), o), b === 123)
|
|
3123
3103
|
if (f === 0)
|
|
3124
|
-
pr(O, t, P, P,
|
|
3104
|
+
pr(O, t, P, P, E, o, d, a, k);
|
|
3125
3105
|
else
|
|
3126
3106
|
switch (h === 99 && H(O, 3) === 110 ? 100 : h) {
|
|
3127
3107
|
// d l m s
|
|
@@ -3129,57 +3109,57 @@ function pr(e, t, r, n, i, o, s, a, u) {
|
|
|
3129
3109
|
case 108:
|
|
3130
3110
|
case 109:
|
|
3131
3111
|
case 115:
|
|
3132
|
-
pr(e, P, P, n && Rt(Gi(e, P, P, 0, 0, i, a,
|
|
3112
|
+
pr(e, P, P, n && Rt(Gi(e, P, P, 0, 0, i, a, m, i, E = [], d, k), k), i, k, d, a, n ? E : k);
|
|
3133
3113
|
break;
|
|
3134
3114
|
default:
|
|
3135
3115
|
pr(O, P, P, P, [""], k, 0, a, k);
|
|
3136
3116
|
}
|
|
3137
3117
|
}
|
|
3138
|
-
l = f = p = 0,
|
|
3118
|
+
l = f = p = 0, S = y = 1, m = O = "", d = s;
|
|
3139
3119
|
break;
|
|
3140
3120
|
// :
|
|
3141
3121
|
case 58:
|
|
3142
3122
|
d = 1 + Ee(O), p = v;
|
|
3143
3123
|
default:
|
|
3144
|
-
if (
|
|
3124
|
+
if (S < 1) {
|
|
3145
3125
|
if (b == 123)
|
|
3146
|
-
--
|
|
3147
|
-
else if (b == 125 &&
|
|
3126
|
+
--S;
|
|
3127
|
+
else if (b == 125 && S++ == 0 && ou() == 125)
|
|
3148
3128
|
continue;
|
|
3149
3129
|
}
|
|
3150
|
-
switch (O += ri(b), b *
|
|
3130
|
+
switch (O += ri(b), b * S) {
|
|
3151
3131
|
// &
|
|
3152
3132
|
case 38:
|
|
3153
|
-
|
|
3133
|
+
y = f > 0 ? 1 : (O += "\f", -1);
|
|
3154
3134
|
break;
|
|
3155
3135
|
// ,
|
|
3156
3136
|
case 44:
|
|
3157
|
-
a[l++] = (Ee(O) - 1) *
|
|
3137
|
+
a[l++] = (Ee(O) - 1) * y, y = 1;
|
|
3158
3138
|
break;
|
|
3159
3139
|
// @
|
|
3160
3140
|
case 64:
|
|
3161
|
-
We() === 45 && (O +=
|
|
3141
|
+
We() === 45 && (O += sn(be())), h = We(), f = d = Ee(m = O += fu(hr())), b++;
|
|
3162
3142
|
break;
|
|
3163
3143
|
// -
|
|
3164
3144
|
case 45:
|
|
3165
|
-
v === 45 && Ee(O) == 2 && (
|
|
3145
|
+
v === 45 && Ee(O) == 2 && (S = 0);
|
|
3166
3146
|
}
|
|
3167
3147
|
}
|
|
3168
3148
|
return o;
|
|
3169
3149
|
}
|
|
3170
3150
|
function Gi(e, t, r, n, i, o, s, a, u, l, f, d) {
|
|
3171
|
-
for (var h = i - 1, p = i === 0 ? o : [""], v =
|
|
3172
|
-
for (var b = 0,
|
|
3173
|
-
(
|
|
3174
|
-
return
|
|
3151
|
+
for (var h = i - 1, p = i === 0 ? o : [""], v = us(p), S = 0, w = 0, y = 0; S < n; ++S)
|
|
3152
|
+
for (var b = 0, m = ft(e, h + 1, h = as(w = s[S])), E = e; b < v; ++b)
|
|
3153
|
+
(E = cs(w > 0 ? p[b] + " " + m : R(m, /&\f/g, p[b]))) && (u[y++] = E);
|
|
3154
|
+
return Fr(e, t, r, i === 0 ? Mr : a, u, l, f, d);
|
|
3175
3155
|
}
|
|
3176
3156
|
function hu(e, t, r, n) {
|
|
3177
|
-
return
|
|
3157
|
+
return Fr(e, t, r, os, ri(iu()), ft(e, 2, -2), 0, n);
|
|
3178
3158
|
}
|
|
3179
3159
|
function Ki(e, t, r, n, i) {
|
|
3180
|
-
return
|
|
3160
|
+
return Fr(e, t, r, ti, ft(e, 0, n), ft(e, n + 1, -1), n, i);
|
|
3181
3161
|
}
|
|
3182
|
-
function
|
|
3162
|
+
function fs(e, t, r) {
|
|
3183
3163
|
switch (ru(e, t)) {
|
|
3184
3164
|
// color-adjust
|
|
3185
3165
|
case 5103:
|
|
@@ -3250,7 +3230,7 @@ function ds(e, t, r) {
|
|
|
3250
3230
|
return V + e + R(e, /(\w+).+(:[^]+)/, V + "box-$1$2" + z + "flex-$1$2") + e;
|
|
3251
3231
|
// align-self
|
|
3252
3232
|
case 5443:
|
|
3253
|
-
return V + e + z + "flex-item-" + R(e, /flex-|-self/g, "") + (
|
|
3233
|
+
return V + e + z + "flex-item-" + R(e, /flex-|-self/g, "") + (ke(e, /flex-|baseline/) ? "" : z + "grid-row-" + R(e, /flex-|-self/g, "")) + e;
|
|
3254
3234
|
// align-content
|
|
3255
3235
|
case 4675:
|
|
3256
3236
|
return V + e + z + "flex-line-pack" + R(e, /align-content|flex-|-self/g, "") + e;
|
|
@@ -3278,7 +3258,7 @@ function ds(e, t, r) {
|
|
|
3278
3258
|
return R(R(e, /(.+:)(flex-)?(.*)/, V + "box-pack:$3" + z + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + V + e + e;
|
|
3279
3259
|
// justify-self
|
|
3280
3260
|
case 4200:
|
|
3281
|
-
if (!
|
|
3261
|
+
if (!ke(e, /flex-|baseline/)) return z + "grid-column-align" + ft(e, t) + e;
|
|
3282
3262
|
break;
|
|
3283
3263
|
// grid-template-(columns|rows)
|
|
3284
3264
|
case 2592:
|
|
@@ -3288,13 +3268,13 @@ function ds(e, t, r) {
|
|
|
3288
3268
|
case 4384:
|
|
3289
3269
|
case 3616:
|
|
3290
3270
|
return r && r.some(function(n, i) {
|
|
3291
|
-
return t = i,
|
|
3292
|
-
}) ? ~dr(e + (r = r[t].value), "span", 0) ? e : z + R(e, "-start", "") + e + z + "grid-row-span:" + (~dr(r, "span", 0) ?
|
|
3271
|
+
return t = i, ke(n.props, /grid-\w+-end/);
|
|
3272
|
+
}) ? ~dr(e + (r = r[t].value), "span", 0) ? e : z + R(e, "-start", "") + e + z + "grid-row-span:" + (~dr(r, "span", 0) ? ke(r, /\d+/) : +ke(r, /\d+/) - +ke(e, /\d+/)) + ";" : z + R(e, "-start", "") + e;
|
|
3293
3273
|
// grid-(row|column)-end
|
|
3294
3274
|
case 4896:
|
|
3295
3275
|
case 4128:
|
|
3296
3276
|
return r && r.some(function(n) {
|
|
3297
|
-
return
|
|
3277
|
+
return ke(n.props, /grid-\w+-start/);
|
|
3298
3278
|
}) ? e : z + R(R(e, "-end", "-span"), "span ", "") + e;
|
|
3299
3279
|
// (margin|padding)-inline-(start|end)
|
|
3300
3280
|
case 4095:
|
|
@@ -3326,7 +3306,7 @@ function ds(e, t, r) {
|
|
|
3326
3306
|
return R(e, /(.+:)(.+)-([^]+)/, "$1" + V + "$2-$3$1" + Vt + (H(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
3327
3307
|
// (s)tretch
|
|
3328
3308
|
case 115:
|
|
3329
|
-
return ~dr(e, "stretch", 0) ?
|
|
3309
|
+
return ~dr(e, "stretch", 0) ? fs(R(e, "stretch", "fill-available"), t, r) + e : e;
|
|
3330
3310
|
}
|
|
3331
3311
|
break;
|
|
3332
3312
|
// grid-(column|row)
|
|
@@ -3361,7 +3341,7 @@ function ds(e, t, r) {
|
|
|
3361
3341
|
}
|
|
3362
3342
|
return e;
|
|
3363
3343
|
}
|
|
3364
|
-
function
|
|
3344
|
+
function _r(e, t) {
|
|
3365
3345
|
for (var r = "", n = 0; n < e.length; n++)
|
|
3366
3346
|
r += t(e[n], n, e, t) || "";
|
|
3367
3347
|
return r;
|
|
@@ -3373,17 +3353,17 @@ function pu(e, t, r, n) {
|
|
|
3373
3353
|
case eu:
|
|
3374
3354
|
case ti:
|
|
3375
3355
|
return e.return = e.return || e.value;
|
|
3376
|
-
case
|
|
3356
|
+
case os:
|
|
3377
3357
|
return "";
|
|
3378
|
-
case
|
|
3379
|
-
return e.return = e.value + "{" +
|
|
3380
|
-
case
|
|
3358
|
+
case ss:
|
|
3359
|
+
return e.return = e.value + "{" + _r(e.children, n) + "}";
|
|
3360
|
+
case Mr:
|
|
3381
3361
|
if (!Ee(e.value = e.props.join(","))) return "";
|
|
3382
3362
|
}
|
|
3383
|
-
return Ee(r =
|
|
3363
|
+
return Ee(r = _r(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
3384
3364
|
}
|
|
3385
3365
|
function mu(e) {
|
|
3386
|
-
var t =
|
|
3366
|
+
var t = us(e);
|
|
3387
3367
|
return function(r, n, i, o) {
|
|
3388
3368
|
for (var s = "", a = 0; a < t; a++)
|
|
3389
3369
|
s += e[a](r, n, i, o) || "";
|
|
@@ -3399,22 +3379,22 @@ function gu(e, t, r, n) {
|
|
|
3399
3379
|
if (e.length > -1 && !e.return)
|
|
3400
3380
|
switch (e.type) {
|
|
3401
3381
|
case ti:
|
|
3402
|
-
e.return =
|
|
3382
|
+
e.return = fs(e.value, e.length, r);
|
|
3403
3383
|
return;
|
|
3404
|
-
case
|
|
3405
|
-
return
|
|
3406
|
-
case
|
|
3384
|
+
case ss:
|
|
3385
|
+
return _r([De(e, { value: R(e.value, "@", "@" + V) })], n);
|
|
3386
|
+
case Mr:
|
|
3407
3387
|
if (e.length)
|
|
3408
3388
|
return nu(r = e.props, function(i) {
|
|
3409
|
-
switch (
|
|
3389
|
+
switch (ke(i, n = /(::plac\w+|:read-\w+)/)) {
|
|
3410
3390
|
// :read-(only|write)
|
|
3411
3391
|
case ":read-only":
|
|
3412
3392
|
case ":read-write":
|
|
3413
|
-
at(
|
|
3393
|
+
at(De(e, { props: [R(i, /:(read-\w+)/, ":" + Vt + "$1")] })), at(De(e, { props: [i] })), _n(e, { props: Yi(r, n) });
|
|
3414
3394
|
break;
|
|
3415
3395
|
// :placeholder
|
|
3416
3396
|
case "::placeholder":
|
|
3417
|
-
at(
|
|
3397
|
+
at(De(e, { props: [R(i, /:(plac\w+)/, ":" + V + "input-$1")] })), at(De(e, { props: [R(i, /:(plac\w+)/, ":" + Vt + "$1")] })), at(De(e, { props: [R(i, /:(plac\w+)/, z + "input-$1")] })), at(De(e, { props: [i] })), _n(e, { props: Yi(r, n) });
|
|
3418
3398
|
break;
|
|
3419
3399
|
}
|
|
3420
3400
|
return "";
|
|
@@ -3469,8 +3449,8 @@ var vu = {
|
|
|
3469
3449
|
strokeMiterlimit: 1,
|
|
3470
3450
|
strokeOpacity: 1,
|
|
3471
3451
|
strokeWidth: 1
|
|
3472
|
-
}, Qe = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled",
|
|
3473
|
-
`,
|
|
3452
|
+
}, Qe = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", ds = "active", hs = "data-styled-version", Ur = "6.1.16", ni = `/*!sc*/
|
|
3453
|
+
`, Er = typeof window < "u" && "HTMLElement" in window, bu = !!(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"), Qi = /invalid hook call/i, ir = /* @__PURE__ */ new Set(), wu = function(e, t) {
|
|
3474
3454
|
if (process.env.NODE_ENV !== "production") {
|
|
3475
3455
|
var r = t ? ' with the id of "'.concat(t, '"') : "", n = "The component ".concat(e).concat(r, ` has been created dynamically.
|
|
3476
3456
|
`) + `You may see this warning because you've called styled inside another component.
|
|
@@ -3480,55 +3460,55 @@ To resolve this only create new StyledComponents outside of any render method an
|
|
|
3480
3460
|
console.error = function(s) {
|
|
3481
3461
|
for (var a = [], u = 1; u < arguments.length; u++) a[u - 1] = arguments[u];
|
|
3482
3462
|
Qi.test(s) ? (o = !1, ir.delete(n)) : i.apply(void 0, Ke([s], a, !1));
|
|
3483
|
-
},
|
|
3463
|
+
}, Me(), o && !ir.has(n) && (console.warn(n), ir.add(n));
|
|
3484
3464
|
} catch (s) {
|
|
3485
3465
|
Qi.test(s.message) && ir.delete(n);
|
|
3486
3466
|
} finally {
|
|
3487
3467
|
console.error = i;
|
|
3488
3468
|
}
|
|
3489
3469
|
}
|
|
3490
|
-
},
|
|
3470
|
+
}, Br = Object.freeze([]), ht = Object.freeze({});
|
|
3491
3471
|
function _u(e, t, r) {
|
|
3492
3472
|
return r === void 0 && (r = ht), e.theme !== r.theme && e.theme || t || r.theme;
|
|
3493
3473
|
}
|
|
3494
|
-
var
|
|
3474
|
+
var xn = /* @__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"]), Eu = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Su = /(^-|-$)/g;
|
|
3495
3475
|
function Xi(e) {
|
|
3496
3476
|
return e.replace(Eu, "-").replace(Su, "");
|
|
3497
3477
|
}
|
|
3498
3478
|
var xu = /(a)(d)/gi, or = 52, Ji = function(e) {
|
|
3499
3479
|
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
3500
3480
|
};
|
|
3501
|
-
function
|
|
3481
|
+
function On(e) {
|
|
3502
3482
|
var t, r = "";
|
|
3503
3483
|
for (t = Math.abs(e); t > or; t = t / or | 0) r = Ji(t % or) + r;
|
|
3504
3484
|
return (Ji(t % or) + r).replace(xu, "$1-$2");
|
|
3505
3485
|
}
|
|
3506
|
-
var
|
|
3486
|
+
var an, ps = 5381, Be = function(e, t) {
|
|
3507
3487
|
for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
|
|
3508
3488
|
return e;
|
|
3509
|
-
},
|
|
3510
|
-
return
|
|
3489
|
+
}, ms = function(e) {
|
|
3490
|
+
return Be(ps, e);
|
|
3511
3491
|
};
|
|
3512
|
-
function
|
|
3513
|
-
return
|
|
3492
|
+
function ys(e) {
|
|
3493
|
+
return On(ms(e) >>> 0);
|
|
3514
3494
|
}
|
|
3515
|
-
function
|
|
3495
|
+
function gs(e) {
|
|
3516
3496
|
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
3517
3497
|
}
|
|
3518
|
-
function
|
|
3498
|
+
function cn(e) {
|
|
3519
3499
|
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
3520
3500
|
}
|
|
3521
|
-
var
|
|
3501
|
+
var vs = typeof Symbol == "function" && Symbol.for, bs = vs ? Symbol.for("react.memo") : 60115, Ou = vs ? Symbol.for("react.forward_ref") : 60112, ku = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Pu = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, ws = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Nu = ((an = {})[Ou] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, an[bs] = ws, an);
|
|
3522
3502
|
function Zi(e) {
|
|
3523
|
-
return ("type" in (t = e) && t.type.$$typeof) ===
|
|
3503
|
+
return ("type" in (t = e) && t.type.$$typeof) === bs ? ws : "$$typeof" in e ? Nu[e.$$typeof] : ku;
|
|
3524
3504
|
var t;
|
|
3525
3505
|
}
|
|
3526
3506
|
var Cu = Object.defineProperty, Ru = Object.getOwnPropertyNames, eo = Object.getOwnPropertySymbols, Au = Object.getOwnPropertyDescriptor, Tu = Object.getPrototypeOf, to = Object.prototype;
|
|
3527
|
-
function
|
|
3507
|
+
function _s(e, t, r) {
|
|
3528
3508
|
if (typeof t != "string") {
|
|
3529
3509
|
if (to) {
|
|
3530
3510
|
var n = Tu(t);
|
|
3531
|
-
n && n !== to &&
|
|
3511
|
+
n && n !== to && _s(e, n, r);
|
|
3532
3512
|
}
|
|
3533
3513
|
var i = Ru(t);
|
|
3534
3514
|
eo && (i = i.concat(eo(t)));
|
|
@@ -3554,7 +3534,7 @@ function ii(e) {
|
|
|
3554
3534
|
function qe(e, t) {
|
|
3555
3535
|
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
3556
3536
|
}
|
|
3557
|
-
function
|
|
3537
|
+
function kn(e, t) {
|
|
3558
3538
|
if (e.length === 0) return "";
|
|
3559
3539
|
for (var r = e[0], n = 1; n < e.length; n++) r += e[n];
|
|
3560
3540
|
return r;
|
|
@@ -3562,10 +3542,10 @@ function Pn(e, t) {
|
|
|
3562
3542
|
function mt(e) {
|
|
3563
3543
|
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
3564
3544
|
}
|
|
3565
|
-
function
|
|
3545
|
+
function Pn(e, t, r) {
|
|
3566
3546
|
if (r === void 0 && (r = !1), !r && !mt(e) && !Array.isArray(e)) return t;
|
|
3567
|
-
if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] =
|
|
3568
|
-
else if (mt(t)) for (var n in t) e[n] =
|
|
3547
|
+
if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = Pn(e[n], t[n]);
|
|
3548
|
+
else if (mt(t)) for (var n in t) e[n] = Pn(e[n], t[n]);
|
|
3569
3549
|
return e;
|
|
3570
3550
|
}
|
|
3571
3551
|
function oi(e, t) {
|
|
@@ -3650,15 +3630,15 @@ var ju = function() {
|
|
|
3650
3630
|
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(ni);
|
|
3651
3631
|
return r;
|
|
3652
3632
|
}, e;
|
|
3653
|
-
}(), Vu = 1 << 30, mr = /* @__PURE__ */ new Map(),
|
|
3633
|
+
}(), Vu = 1 << 30, mr = /* @__PURE__ */ new Map(), Sr = /* @__PURE__ */ new Map(), yr = 1, sr = function(e) {
|
|
3654
3634
|
if (mr.has(e)) return mr.get(e);
|
|
3655
|
-
for (;
|
|
3635
|
+
for (; Sr.has(yr); ) yr++;
|
|
3656
3636
|
var t = yr++;
|
|
3657
3637
|
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > Vu)) throw wt(16, "".concat(t));
|
|
3658
|
-
return mr.set(e, t),
|
|
3638
|
+
return mr.set(e, t), Sr.set(t, e), t;
|
|
3659
3639
|
}, $u = function(e, t) {
|
|
3660
|
-
yr = t + 1, mr.set(e, t),
|
|
3661
|
-
}, Mu = "style[".concat(Qe, "][").concat(
|
|
3640
|
+
yr = t + 1, mr.set(e, t), Sr.set(t, e);
|
|
3641
|
+
}, Mu = "style[".concat(Qe, "][").concat(hs, '="').concat(Ur, '"]'), zu = new RegExp("^".concat(Qe, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Fu = function(e, t, r) {
|
|
3662
3642
|
for (var n, i = r.split(","), o = 0, s = i.length; o < s; o++) (n = i[o]) && e.registerName(t, n);
|
|
3663
3643
|
}, Lu = function(e, t) {
|
|
3664
3644
|
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(ni), i = [], o = 0, s = n.length; o < s; o++) {
|
|
@@ -3674,23 +3654,23 @@ var ju = function() {
|
|
|
3674
3654
|
}, ro = function(e) {
|
|
3675
3655
|
for (var t = document.querySelectorAll(Mu), r = 0, n = t.length; r < n; r++) {
|
|
3676
3656
|
var i = t[r];
|
|
3677
|
-
i && i.getAttribute(Qe) !==
|
|
3657
|
+
i && i.getAttribute(Qe) !== ds && (Lu(e, i), i.parentNode && i.parentNode.removeChild(i));
|
|
3678
3658
|
}
|
|
3679
3659
|
};
|
|
3680
|
-
function
|
|
3660
|
+
function Uu() {
|
|
3681
3661
|
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
3682
3662
|
}
|
|
3683
|
-
var
|
|
3663
|
+
var Es = function(e) {
|
|
3684
3664
|
var t = document.head, r = e || t, n = document.createElement("style"), i = function(a) {
|
|
3685
3665
|
var u = Array.from(a.querySelectorAll("style[".concat(Qe, "]")));
|
|
3686
3666
|
return u[u.length - 1];
|
|
3687
3667
|
}(r), o = i !== void 0 ? i.nextSibling : null;
|
|
3688
|
-
n.setAttribute(Qe,
|
|
3689
|
-
var s =
|
|
3668
|
+
n.setAttribute(Qe, ds), n.setAttribute(hs, Ur);
|
|
3669
|
+
var s = Uu();
|
|
3690
3670
|
return s && n.setAttribute("nonce", s), r.insertBefore(n, o), n;
|
|
3691
|
-
},
|
|
3671
|
+
}, Bu = function() {
|
|
3692
3672
|
function e(t) {
|
|
3693
|
-
this.element =
|
|
3673
|
+
this.element = Es(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) {
|
|
3694
3674
|
if (r.sheet) return r.sheet;
|
|
3695
3675
|
for (var n = document.styleSheets, i = 0, o = n.length; i < o; i++) {
|
|
3696
3676
|
var s = n[i];
|
|
@@ -3713,7 +3693,7 @@ var Ss = function(e) {
|
|
|
3713
3693
|
}, e;
|
|
3714
3694
|
}(), qu = function() {
|
|
3715
3695
|
function e(t) {
|
|
3716
|
-
this.element =
|
|
3696
|
+
this.element = Es(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
3717
3697
|
}
|
|
3718
3698
|
return e.prototype.insertRule = function(t, r) {
|
|
3719
3699
|
if (t <= this.length && t >= 0) {
|
|
@@ -3737,23 +3717,23 @@ var Ss = function(e) {
|
|
|
3737
3717
|
}, e.prototype.getRule = function(t) {
|
|
3738
3718
|
return t < this.length ? this.rules[t] : "";
|
|
3739
3719
|
}, e;
|
|
3740
|
-
}(), no =
|
|
3720
|
+
}(), no = Er, Hu = { isServer: !Er, useCSSOMInjection: !bu }, Ss = function() {
|
|
3741
3721
|
function e(t, r, n) {
|
|
3742
3722
|
t === void 0 && (t = ht), r === void 0 && (r = {});
|
|
3743
3723
|
var i = this;
|
|
3744
|
-
this.options = ee(ee({}, Hu), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server &&
|
|
3724
|
+
this.options = ee(ee({}, Hu), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && Er && no && (no = !1, ro(this)), oi(this, function() {
|
|
3745
3725
|
return function(o) {
|
|
3746
3726
|
for (var s = o.getTag(), a = s.length, u = "", l = function(d) {
|
|
3747
|
-
var h = function(
|
|
3748
|
-
return
|
|
3727
|
+
var h = function(y) {
|
|
3728
|
+
return Sr.get(y);
|
|
3749
3729
|
}(d);
|
|
3750
3730
|
if (h === void 0) return "continue";
|
|
3751
3731
|
var p = o.names.get(h), v = s.getGroup(d);
|
|
3752
3732
|
if (p === void 0 || !p.size || v.length === 0) return "continue";
|
|
3753
|
-
var
|
|
3754
|
-
p !== void 0 && p.forEach(function(
|
|
3755
|
-
|
|
3756
|
-
}), u += "".concat(v).concat(
|
|
3733
|
+
var S = "".concat(Qe, ".g").concat(d, '[id="').concat(h, '"]'), w = "";
|
|
3734
|
+
p !== void 0 && p.forEach(function(y) {
|
|
3735
|
+
y.length > 0 && (w += "".concat(y, ","));
|
|
3736
|
+
}), u += "".concat(v).concat(S, '{content:"').concat(w, '"}').concat(ni);
|
|
3757
3737
|
}, f = 0; f < a; f++) l(f);
|
|
3758
3738
|
return u;
|
|
3759
3739
|
}(i);
|
|
@@ -3762,7 +3742,7 @@ var Ss = function(e) {
|
|
|
3762
3742
|
return e.registerId = function(t) {
|
|
3763
3743
|
return sr(t);
|
|
3764
3744
|
}, e.prototype.rehydrate = function() {
|
|
3765
|
-
!this.server &&
|
|
3745
|
+
!this.server && Er && ro(this);
|
|
3766
3746
|
}, e.prototype.reconstructWithOptions = function(t, r) {
|
|
3767
3747
|
return r === void 0 && (r = !0), new e(ee(ee({}, this.options), t), this.gs, r && this.names || void 0);
|
|
3768
3748
|
}, e.prototype.allocateGSInstance = function(t) {
|
|
@@ -3770,7 +3750,7 @@ var Ss = function(e) {
|
|
|
3770
3750
|
}, e.prototype.getTag = function() {
|
|
3771
3751
|
return this.tag || (this.tag = (t = function(r) {
|
|
3772
3752
|
var n = r.useCSSOMInjection, i = r.target;
|
|
3773
|
-
return r.isServer ? new Wu(i) : n ? new
|
|
3753
|
+
return r.isServer ? new Wu(i) : n ? new Bu(i) : new qu(i);
|
|
3774
3754
|
}(this.options), new ju(t)));
|
|
3775
3755
|
var t;
|
|
3776
3756
|
}, e.prototype.hasNameForId = function(t, r) {
|
|
@@ -3791,44 +3771,44 @@ var Ss = function(e) {
|
|
|
3791
3771
|
this.tag = void 0;
|
|
3792
3772
|
}, e;
|
|
3793
3773
|
}(), Yu = /&/g, Gu = /^\s*\/\/.*$/gm;
|
|
3794
|
-
function
|
|
3774
|
+
function xs(e, t) {
|
|
3795
3775
|
return e.map(function(r) {
|
|
3796
3776
|
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) {
|
|
3797
3777
|
return "".concat(t, " ").concat(n);
|
|
3798
|
-
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children =
|
|
3778
|
+
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = xs(r.children, t)), r;
|
|
3799
3779
|
});
|
|
3800
3780
|
}
|
|
3801
3781
|
function Ku(e) {
|
|
3802
|
-
var t, r, n, i = ht, o = i.options, s = o === void 0 ? ht : o, a = i.plugins, u = a === void 0 ?
|
|
3782
|
+
var t, r, n, i = ht, o = i.options, s = o === void 0 ? ht : o, a = i.plugins, u = a === void 0 ? Br : a, l = function(h, p, v) {
|
|
3803
3783
|
return v.startsWith(r) && v.endsWith(r) && v.replaceAll(r, "").length > 0 ? ".".concat(t) : h;
|
|
3804
3784
|
}, f = u.slice();
|
|
3805
3785
|
f.push(function(h) {
|
|
3806
|
-
h.type ===
|
|
3786
|
+
h.type === Mr && h.value.includes("&") && (h.props[0] = h.props[0].replace(Yu, r).replace(n, l));
|
|
3807
3787
|
}), s.prefix && f.push(gu), f.push(pu);
|
|
3808
|
-
var d = function(h, p, v,
|
|
3809
|
-
p === void 0 && (p = ""), v === void 0 && (v = ""),
|
|
3810
|
-
var w = h.replace(Gu, ""),
|
|
3811
|
-
s.namespace && (
|
|
3788
|
+
var d = function(h, p, v, S) {
|
|
3789
|
+
p === void 0 && (p = ""), v === void 0 && (v = ""), S === void 0 && (S = "&"), t = S, r = p, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
3790
|
+
var w = h.replace(Gu, ""), y = du(v || p ? "".concat(v, " ").concat(p, " { ").concat(w, " }") : w);
|
|
3791
|
+
s.namespace && (y = xs(y, s.namespace));
|
|
3812
3792
|
var b = [];
|
|
3813
|
-
return
|
|
3814
|
-
return b.push(
|
|
3793
|
+
return _r(y, mu(f.concat(yu(function(m) {
|
|
3794
|
+
return b.push(m);
|
|
3815
3795
|
})))), b;
|
|
3816
3796
|
};
|
|
3817
3797
|
return d.hash = u.length ? u.reduce(function(h, p) {
|
|
3818
|
-
return p.name || wt(15),
|
|
3819
|
-
},
|
|
3798
|
+
return p.name || wt(15), Be(h, p.name);
|
|
3799
|
+
}, ps).toString() : "", d;
|
|
3820
3800
|
}
|
|
3821
|
-
var Qu = new
|
|
3822
|
-
|
|
3801
|
+
var Qu = new Ss(), Nn = Ku(), Os = te.createContext({ shouldForwardProp: void 0, styleSheet: Qu, stylis: Nn });
|
|
3802
|
+
Os.Consumer;
|
|
3823
3803
|
te.createContext(void 0);
|
|
3824
3804
|
function io() {
|
|
3825
|
-
return Fn(
|
|
3805
|
+
return Fn(Os);
|
|
3826
3806
|
}
|
|
3827
|
-
var
|
|
3807
|
+
var Cn = function() {
|
|
3828
3808
|
function e(t, r) {
|
|
3829
3809
|
var n = this;
|
|
3830
3810
|
this.inject = function(i, o) {
|
|
3831
|
-
o === void 0 && (o =
|
|
3811
|
+
o === void 0 && (o = Nn);
|
|
3832
3812
|
var s = n.name + o.hash;
|
|
3833
3813
|
i.hasNameForId(n.id, s) || i.insertRules(n.id, s, o(n.rules, s, "@keyframes"));
|
|
3834
3814
|
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, oi(this, function() {
|
|
@@ -3836,7 +3816,7 @@ var Rn = function() {
|
|
|
3836
3816
|
});
|
|
3837
3817
|
}
|
|
3838
3818
|
return e.prototype.getName = function(t) {
|
|
3839
|
-
return t === void 0 && (t =
|
|
3819
|
+
return t === void 0 && (t = Nn), this.name + t.hash;
|
|
3840
3820
|
}, e;
|
|
3841
3821
|
}(), Xu = function(e) {
|
|
3842
3822
|
return e >= "A" && e <= "Z";
|
|
@@ -3849,26 +3829,26 @@ function oo(e) {
|
|
|
3849
3829
|
}
|
|
3850
3830
|
return t.startsWith("ms-") ? "-" + t : t;
|
|
3851
3831
|
}
|
|
3852
|
-
var
|
|
3832
|
+
var ks = function(e) {
|
|
3853
3833
|
return e == null || e === !1 || e === "";
|
|
3854
|
-
},
|
|
3834
|
+
}, Ps = function(e) {
|
|
3855
3835
|
var t, r, n = [];
|
|
3856
3836
|
for (var i in e) {
|
|
3857
3837
|
var o = e[i];
|
|
3858
|
-
e.hasOwnProperty(i) && !
|
|
3838
|
+
e.hasOwnProperty(i) && !ks(o) && (Array.isArray(o) && o.isCss || pt(o) ? n.push("".concat(oo(i), ":"), o, ";") : mt(o) ? n.push.apply(n, Ke(Ke(["".concat(i, " {")], Ps(o), !1), ["}"], !1)) : n.push("".concat(oo(i), ": ").concat((t = i, (r = o) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in vu || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
|
|
3859
3839
|
}
|
|
3860
3840
|
return n;
|
|
3861
3841
|
};
|
|
3862
3842
|
function He(e, t, r, n) {
|
|
3863
|
-
if (
|
|
3843
|
+
if (ks(e)) return [];
|
|
3864
3844
|
if (ii(e)) return [".".concat(e.styledComponentId)];
|
|
3865
3845
|
if (pt(e)) {
|
|
3866
3846
|
if (!pt(o = e) || o.prototype && o.prototype.isReactComponent || !t) return [e];
|
|
3867
3847
|
var i = e(t);
|
|
3868
|
-
return process.env.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof
|
|
3848
|
+
return process.env.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof Cn || mt(i) || i === null || console.error("".concat(gs(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.")), He(i, t, r, n);
|
|
3869
3849
|
}
|
|
3870
3850
|
var o;
|
|
3871
|
-
return e instanceof
|
|
3851
|
+
return e instanceof Cn ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : mt(e) ? Ps(e) : Array.isArray(e) ? Array.prototype.concat.apply(Br, e.map(function(s) {
|
|
3872
3852
|
return He(s, t, r, n);
|
|
3873
3853
|
})) : [e.toString()];
|
|
3874
3854
|
}
|
|
@@ -3879,15 +3859,15 @@ function Ju(e) {
|
|
|
3879
3859
|
}
|
|
3880
3860
|
return !0;
|
|
3881
3861
|
}
|
|
3882
|
-
var Zu =
|
|
3862
|
+
var Zu = ms(Ur), el = function() {
|
|
3883
3863
|
function e(t, r, n) {
|
|
3884
|
-
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && Ju(t), this.componentId = r, this.baseHash =
|
|
3864
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && Ju(t), this.componentId = r, this.baseHash = Be(Zu, r), this.baseStyle = n, Ss.registerId(r);
|
|
3885
3865
|
}
|
|
3886
3866
|
return e.prototype.generateAndInjectStyles = function(t, r, n) {
|
|
3887
3867
|
var i = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
|
|
3888
3868
|
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) i = qe(i, this.staticRulesId);
|
|
3889
3869
|
else {
|
|
3890
|
-
var o =
|
|
3870
|
+
var o = kn(He(this.rules, t, r, n)), s = On(Be(this.baseHash, o) >>> 0);
|
|
3891
3871
|
if (!r.hasNameForId(this.componentId, s)) {
|
|
3892
3872
|
var a = n(o, ".".concat(s), void 0, this.componentId);
|
|
3893
3873
|
r.insertRules(this.componentId, s, a);
|
|
@@ -3895,80 +3875,80 @@ var Zu = ys(Ur), el = function() {
|
|
|
3895
3875
|
i = qe(i, s), this.staticRulesId = s;
|
|
3896
3876
|
}
|
|
3897
3877
|
else {
|
|
3898
|
-
for (var u =
|
|
3878
|
+
for (var u = Be(this.baseHash, n.hash), l = "", f = 0; f < this.rules.length; f++) {
|
|
3899
3879
|
var d = this.rules[f];
|
|
3900
|
-
if (typeof d == "string") l += d, process.env.NODE_ENV !== "production" && (u =
|
|
3880
|
+
if (typeof d == "string") l += d, process.env.NODE_ENV !== "production" && (u = Be(u, d));
|
|
3901
3881
|
else if (d) {
|
|
3902
|
-
var h =
|
|
3903
|
-
u =
|
|
3882
|
+
var h = kn(He(d, t, r, n));
|
|
3883
|
+
u = Be(u, h + f), l += h;
|
|
3904
3884
|
}
|
|
3905
3885
|
}
|
|
3906
3886
|
if (l) {
|
|
3907
|
-
var p =
|
|
3887
|
+
var p = On(u >>> 0);
|
|
3908
3888
|
r.hasNameForId(this.componentId, p) || r.insertRules(this.componentId, p, n(l, ".".concat(p), void 0, this.componentId)), i = qe(i, p);
|
|
3909
3889
|
}
|
|
3910
3890
|
}
|
|
3911
3891
|
return i;
|
|
3912
3892
|
}, e;
|
|
3913
|
-
}(),
|
|
3914
|
-
|
|
3915
|
-
var
|
|
3893
|
+
}(), Ns = te.createContext(void 0);
|
|
3894
|
+
Ns.Consumer;
|
|
3895
|
+
var un = {}, so = /* @__PURE__ */ new Set();
|
|
3916
3896
|
function tl(e, t, r) {
|
|
3917
|
-
var n = ii(e), i = e, o = !
|
|
3918
|
-
var P = typeof
|
|
3919
|
-
|
|
3920
|
-
var O = "".concat(P, "-").concat(
|
|
3897
|
+
var n = ii(e), i = e, o = !cn(e), s = t.attrs, a = s === void 0 ? Br : s, u = t.componentId, l = u === void 0 ? function(E, k) {
|
|
3898
|
+
var P = typeof E != "string" ? "sc" : Xi(E);
|
|
3899
|
+
un[P] = (un[P] || 0) + 1;
|
|
3900
|
+
var O = "".concat(P, "-").concat(ys(Ur + P + un[P]));
|
|
3921
3901
|
return k ? "".concat(k, "-").concat(O) : O;
|
|
3922
|
-
}(t.displayName, t.parentComponentId) : u, f = t.displayName, d = f === void 0 ? function(
|
|
3923
|
-
return
|
|
3902
|
+
}(t.displayName, t.parentComponentId) : u, f = t.displayName, d = f === void 0 ? function(E) {
|
|
3903
|
+
return cn(E) ? "styled.".concat(E) : "Styled(".concat(gs(E), ")");
|
|
3924
3904
|
}(e) : f, h = t.displayName && t.componentId ? "".concat(Xi(t.displayName), "-").concat(t.componentId) : t.componentId || l, p = n && i.attrs ? i.attrs.concat(a).filter(Boolean) : a, v = t.shouldForwardProp;
|
|
3925
3905
|
if (n && i.shouldForwardProp) {
|
|
3926
|
-
var
|
|
3906
|
+
var S = i.shouldForwardProp;
|
|
3927
3907
|
if (t.shouldForwardProp) {
|
|
3928
3908
|
var w = t.shouldForwardProp;
|
|
3929
|
-
v = function(
|
|
3930
|
-
return E
|
|
3909
|
+
v = function(E, k) {
|
|
3910
|
+
return S(E, k) && w(E, k);
|
|
3931
3911
|
};
|
|
3932
|
-
} else v =
|
|
3912
|
+
} else v = S;
|
|
3933
3913
|
}
|
|
3934
|
-
var
|
|
3935
|
-
function b(
|
|
3914
|
+
var y = new el(r, h, n ? i.componentStyle : void 0);
|
|
3915
|
+
function b(E, k) {
|
|
3936
3916
|
return function(P, O, I) {
|
|
3937
|
-
var M = P.attrs, fe = P.componentStyle, Y = P.defaultProps, de = P.foldedComponentIds, W = P.styledComponentId, he = P.target, ze = te.useContext(
|
|
3917
|
+
var M = P.attrs, fe = P.componentStyle, Y = P.defaultProps, de = P.foldedComponentIds, W = P.styledComponentId, he = P.target, ze = te.useContext(Ns), Jt = io(), et = P.shouldForwardProp || Jt.shouldForwardProp;
|
|
3938
3918
|
process.env.NODE_ENV !== "production" && Ei(W);
|
|
3939
|
-
var _t = _u(O, ze, Y) || ht, se = function(rt,
|
|
3940
|
-
for (var pe, me = ee(ee({},
|
|
3941
|
-
var nt = pt(pe = rt[
|
|
3919
|
+
var _t = _u(O, ze, Y) || ht, se = function(rt, xe, Re) {
|
|
3920
|
+
for (var pe, me = ee(ee({}, xe), { className: void 0, theme: Re }), Ae = 0; Ae < rt.length; Ae += 1) {
|
|
3921
|
+
var nt = pt(pe = rt[Ae]) ? pe(me) : pe;
|
|
3942
3922
|
for (var ye in nt) me[ye] = ye === "className" ? qe(me[ye], nt[ye]) : ye === "style" ? ee(ee({}, me[ye]), nt[ye]) : nt[ye];
|
|
3943
3923
|
}
|
|
3944
|
-
return
|
|
3945
|
-
}(M, O, _t),
|
|
3946
|
-
for (var K in se) se[K] === void 0 || K[0] === "$" || K === "as" || K === "theme" && se.theme === _t || (K === "forwardedAs" ?
|
|
3947
|
-
var tt = function(rt,
|
|
3948
|
-
var
|
|
3924
|
+
return xe.className && (me.className = qe(me.className, xe.className)), me;
|
|
3925
|
+
}(M, O, _t), Ne = se.as || he, Ce = {};
|
|
3926
|
+
for (var K in se) se[K] === void 0 || K[0] === "$" || K === "as" || K === "theme" && se.theme === _t || (K === "forwardedAs" ? Ce.as = se.forwardedAs : et && !et(K, Ne) || (Ce[K] = se[K], et || process.env.NODE_ENV !== "development" || Zc(K) || so.has(K) || !xn.has(Ne) || (so.add(K), console.warn('styled-components: it looks like an unknown prop "'.concat(K, '" 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.)')))));
|
|
3927
|
+
var tt = function(rt, xe) {
|
|
3928
|
+
var Re = io(), pe = rt.generateAndInjectStyles(xe, Re.styleSheet, Re.stylis);
|
|
3949
3929
|
return process.env.NODE_ENV !== "production" && Ei(pe), pe;
|
|
3950
3930
|
}(fe, se);
|
|
3951
3931
|
process.env.NODE_ENV !== "production" && P.warnTooManyClasses && P.warnTooManyClasses(tt);
|
|
3952
3932
|
var Et = qe(de, W);
|
|
3953
|
-
return tt && (Et += " " + tt), se.className && (Et += " " + se.className),
|
|
3954
|
-
}(
|
|
3933
|
+
return tt && (Et += " " + tt), se.className && (Et += " " + se.className), Ce[cn(Ne) && !xn.has(Ne) ? "class" : "className"] = Et, I && (Ce.ref = I), Oa(Ne, Ce);
|
|
3934
|
+
}(m, E, k);
|
|
3955
3935
|
}
|
|
3956
3936
|
b.displayName = d;
|
|
3957
|
-
var
|
|
3958
|
-
return
|
|
3937
|
+
var m = te.forwardRef(b);
|
|
3938
|
+
return m.attrs = p, m.componentStyle = y, m.displayName = d, m.shouldForwardProp = v, m.foldedComponentIds = n ? qe(i.foldedComponentIds, i.styledComponentId) : "", m.styledComponentId = h, m.target = n ? i.target : e, Object.defineProperty(m, "defaultProps", { get: function() {
|
|
3959
3939
|
return this._foldedDefaultProps;
|
|
3960
|
-
}, set: function(
|
|
3940
|
+
}, set: function(E) {
|
|
3961
3941
|
this._foldedDefaultProps = n ? function(k) {
|
|
3962
3942
|
for (var P = [], O = 1; O < arguments.length; O++) P[O - 1] = arguments[O];
|
|
3963
|
-
for (var I = 0, M = P; I < M.length; I++)
|
|
3943
|
+
for (var I = 0, M = P; I < M.length; I++) Pn(k, M[I], !0);
|
|
3964
3944
|
return k;
|
|
3965
|
-
}({}, i.defaultProps,
|
|
3966
|
-
} }), process.env.NODE_ENV !== "production" && (wu(d, h),
|
|
3945
|
+
}({}, i.defaultProps, E) : E;
|
|
3946
|
+
} }), process.env.NODE_ENV !== "production" && (wu(d, h), m.warnTooManyClasses = /* @__PURE__ */ function(E, k) {
|
|
3967
3947
|
var P = {}, O = !1;
|
|
3968
3948
|
return function(I) {
|
|
3969
3949
|
if (!O && (P[I] = !0, Object.keys(P).length >= 200)) {
|
|
3970
3950
|
var M = k ? ' with the id of "'.concat(k, '"') : "";
|
|
3971
|
-
console.warn("Over ".concat(200, " classes were generated for component ").concat(
|
|
3951
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(E).concat(M, `.
|
|
3972
3952
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
3973
3953
|
Example:
|
|
3974
3954
|
const Component = styled.div.attrs(props => ({
|
|
@@ -3980,9 +3960,9 @@ Example:
|
|
|
3980
3960
|
<Component />`), O = !0, P = {};
|
|
3981
3961
|
}
|
|
3982
3962
|
};
|
|
3983
|
-
}(d, h)), oi(
|
|
3984
|
-
return ".".concat(
|
|
3985
|
-
}), o &&
|
|
3963
|
+
}(d, h)), oi(m, function() {
|
|
3964
|
+
return ".".concat(m.styledComponentId);
|
|
3965
|
+
}), o && _s(m, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), m;
|
|
3986
3966
|
}
|
|
3987
3967
|
function ao(e, t) {
|
|
3988
3968
|
for (var r = [e[0]], n = 0, i = t.length; n < i; n += 1) r.push(t[n], e[n + 1]);
|
|
@@ -3991,35 +3971,35 @@ function ao(e, t) {
|
|
|
3991
3971
|
var co = function(e) {
|
|
3992
3972
|
return Object.assign(e, { isCss: !0 });
|
|
3993
3973
|
};
|
|
3994
|
-
function
|
|
3974
|
+
function Cs(e) {
|
|
3995
3975
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
3996
|
-
if (pt(e) || mt(e)) return co(He(ao(
|
|
3976
|
+
if (pt(e) || mt(e)) return co(He(ao(Br, Ke([e], t, !0))));
|
|
3997
3977
|
var n = e;
|
|
3998
3978
|
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? He(n) : co(He(ao(n, t)));
|
|
3999
3979
|
}
|
|
4000
|
-
function
|
|
3980
|
+
function Rn(e, t, r) {
|
|
4001
3981
|
if (r === void 0 && (r = ht), !t) throw wt(1, t);
|
|
4002
3982
|
var n = function(i) {
|
|
4003
3983
|
for (var o = [], s = 1; s < arguments.length; s++) o[s - 1] = arguments[s];
|
|
4004
|
-
return e(t, r,
|
|
3984
|
+
return e(t, r, Cs.apply(void 0, Ke([i], o, !1)));
|
|
4005
3985
|
};
|
|
4006
3986
|
return n.attrs = function(i) {
|
|
4007
|
-
return
|
|
3987
|
+
return Rn(e, t, ee(ee({}, r), { attrs: Array.prototype.concat(r.attrs, i).filter(Boolean) }));
|
|
4008
3988
|
}, n.withConfig = function(i) {
|
|
4009
|
-
return
|
|
3989
|
+
return Rn(e, t, ee(ee({}, r), i));
|
|
4010
3990
|
}, n;
|
|
4011
3991
|
}
|
|
4012
|
-
var
|
|
4013
|
-
return
|
|
4014
|
-
}, re =
|
|
4015
|
-
|
|
4016
|
-
re[e] =
|
|
3992
|
+
var Rs = function(e) {
|
|
3993
|
+
return Rn(tl, e);
|
|
3994
|
+
}, re = Rs;
|
|
3995
|
+
xn.forEach(function(e) {
|
|
3996
|
+
re[e] = Rs(e);
|
|
4017
3997
|
});
|
|
4018
3998
|
function rl(e) {
|
|
4019
3999
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
4020
4000
|
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.");
|
|
4021
|
-
var n =
|
|
4022
|
-
return new
|
|
4001
|
+
var n = kn(Cs.apply(void 0, Ke([e], t, !1))), i = ys(n);
|
|
4002
|
+
return new Cn(i, n);
|
|
4023
4003
|
}
|
|
4024
4004
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
4025
4005
|
Perhaps you're looking to import 'styled-components/native'?
|
|
@@ -4069,19 +4049,20 @@ const nl = rl`
|
|
|
4069
4049
|
color: black;
|
|
4070
4050
|
}
|
|
4071
4051
|
`, sl = re.div`
|
|
4052
|
+
display: flex;
|
|
4072
4053
|
margin-right: 1.25rem;
|
|
4073
4054
|
|
|
4074
4055
|
@media (min-width: 640px) {
|
|
4075
4056
|
margin-right: 0.25rem;
|
|
4076
4057
|
}
|
|
4077
4058
|
`;
|
|
4078
|
-
var
|
|
4059
|
+
var As = {
|
|
4079
4060
|
color: void 0,
|
|
4080
4061
|
size: void 0,
|
|
4081
4062
|
className: void 0,
|
|
4082
4063
|
style: void 0,
|
|
4083
4064
|
attr: void 0
|
|
4084
|
-
}, uo = te.createContext && /* @__PURE__ */ te.createContext(
|
|
4065
|
+
}, uo = te.createContext && /* @__PURE__ */ te.createContext(As), al = ["attr", "size", "title"];
|
|
4085
4066
|
function cl(e, t) {
|
|
4086
4067
|
if (e == null) return {};
|
|
4087
4068
|
var r = ul(e, t), n, i;
|
|
@@ -4102,15 +4083,15 @@ function ul(e, t) {
|
|
|
4102
4083
|
}
|
|
4103
4084
|
return r;
|
|
4104
4085
|
}
|
|
4105
|
-
function
|
|
4106
|
-
return
|
|
4086
|
+
function xr() {
|
|
4087
|
+
return xr = Object.assign ? Object.assign.bind() : function(e) {
|
|
4107
4088
|
for (var t = 1; t < arguments.length; t++) {
|
|
4108
4089
|
var r = arguments[t];
|
|
4109
4090
|
for (var n in r)
|
|
4110
4091
|
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
4111
4092
|
}
|
|
4112
4093
|
return e;
|
|
4113
|
-
},
|
|
4094
|
+
}, xr.apply(this, arguments);
|
|
4114
4095
|
}
|
|
4115
4096
|
function lo(e, t) {
|
|
4116
4097
|
var r = Object.keys(e);
|
|
@@ -4122,7 +4103,7 @@ function lo(e, t) {
|
|
|
4122
4103
|
}
|
|
4123
4104
|
return r;
|
|
4124
4105
|
}
|
|
4125
|
-
function
|
|
4106
|
+
function Or(e) {
|
|
4126
4107
|
for (var t = 1; t < arguments.length; t++) {
|
|
4127
4108
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
4128
4109
|
t % 2 ? lo(Object(r), !0).forEach(function(n) {
|
|
@@ -4150,15 +4131,15 @@ function dl(e, t) {
|
|
|
4150
4131
|
}
|
|
4151
4132
|
return (t === "string" ? String : Number)(e);
|
|
4152
4133
|
}
|
|
4153
|
-
function
|
|
4154
|
-
return e && e.map((t, r) => /* @__PURE__ */ te.createElement(t.tag,
|
|
4134
|
+
function Ts(e) {
|
|
4135
|
+
return e && e.map((t, r) => /* @__PURE__ */ te.createElement(t.tag, Or({
|
|
4155
4136
|
key: r
|
|
4156
|
-
}, t.attr),
|
|
4137
|
+
}, t.attr), Ts(t.child)));
|
|
4157
4138
|
}
|
|
4158
4139
|
function Ze(e) {
|
|
4159
|
-
return (t) => /* @__PURE__ */ te.createElement(hl,
|
|
4160
|
-
attr:
|
|
4161
|
-
}, t),
|
|
4140
|
+
return (t) => /* @__PURE__ */ te.createElement(hl, xr({
|
|
4141
|
+
attr: Or({}, e.attr)
|
|
4142
|
+
}, t), Ts(e.child));
|
|
4162
4143
|
}
|
|
4163
4144
|
function hl(e) {
|
|
4164
4145
|
var t = (r) => {
|
|
@@ -4167,13 +4148,13 @@ function hl(e) {
|
|
|
4167
4148
|
size: i,
|
|
4168
4149
|
title: o
|
|
4169
4150
|
} = e, s = cl(e, al), a = i || r.size || "1em", u;
|
|
4170
|
-
return r.className && (u = r.className), e.className && (u = (u ? u + " " : "") + e.className), /* @__PURE__ */ te.createElement("svg",
|
|
4151
|
+
return r.className && (u = r.className), e.className && (u = (u ? u + " " : "") + e.className), /* @__PURE__ */ te.createElement("svg", xr({
|
|
4171
4152
|
stroke: "currentColor",
|
|
4172
4153
|
fill: "currentColor",
|
|
4173
4154
|
strokeWidth: "0"
|
|
4174
4155
|
}, r.attr, n, s, {
|
|
4175
4156
|
className: u,
|
|
4176
|
-
style:
|
|
4157
|
+
style: Or(Or({
|
|
4177
4158
|
color: e.color || r.color
|
|
4178
4159
|
}, r.style), e.style),
|
|
4179
4160
|
height: a,
|
|
@@ -4181,7 +4162,7 @@ function hl(e) {
|
|
|
4181
4162
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4182
4163
|
}), o && /* @__PURE__ */ te.createElement("title", null, o), e.children);
|
|
4183
4164
|
};
|
|
4184
|
-
return uo !== void 0 ? /* @__PURE__ */ te.createElement(uo.Consumer, null, (r) => t(r)) : t(
|
|
4165
|
+
return uo !== void 0 ? /* @__PURE__ */ te.createElement(uo.Consumer, null, (r) => t(r)) : t(As);
|
|
4185
4166
|
}
|
|
4186
4167
|
function pl(e) {
|
|
4187
4168
|
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);
|
|
@@ -4196,15 +4177,22 @@ const Pf = ({
|
|
|
4196
4177
|
onClick: n
|
|
4197
4178
|
}) => {
|
|
4198
4179
|
let i;
|
|
4199
|
-
e === "plus" ? i = /* @__PURE__ */
|
|
4180
|
+
e === "plus" ? i = /* @__PURE__ */ q.jsx(pl, {}) : e === "send" && (i = /* @__PURE__ */ q.jsx(ml, {}));
|
|
4200
4181
|
const o = () => {
|
|
4201
4182
|
n && n();
|
|
4202
4183
|
};
|
|
4203
|
-
return /* @__PURE__ */
|
|
4204
|
-
/* @__PURE__ */
|
|
4205
|
-
/* @__PURE__ */
|
|
4184
|
+
return /* @__PURE__ */ q.jsx(il, { onClick: o, children: /* @__PURE__ */ q.jsxs(ol, { className: r, children: [
|
|
4185
|
+
/* @__PURE__ */ q.jsx(sl, { children: i }),
|
|
4186
|
+
/* @__PURE__ */ q.jsx(
|
|
4187
|
+
Qc,
|
|
4188
|
+
{
|
|
4189
|
+
textStyles: { lineHeight: "0.8rem", minWidth: "3rem" },
|
|
4190
|
+
content: t,
|
|
4191
|
+
animate: !0
|
|
4192
|
+
}
|
|
4193
|
+
)
|
|
4206
4194
|
] }) });
|
|
4207
|
-
}, yl = re(
|
|
4195
|
+
}, yl = re(is.div)`
|
|
4208
4196
|
width: 2.5rem;
|
|
4209
4197
|
height: 2.5rem;
|
|
4210
4198
|
border-radius: 50%;
|
|
@@ -4225,14 +4213,14 @@ function bl(e) {
|
|
|
4225
4213
|
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);
|
|
4226
4214
|
}
|
|
4227
4215
|
const Nf = ({ iconComponent: e, onClick: t }) => {
|
|
4228
|
-
const r =
|
|
4216
|
+
const r = rs({
|
|
4229
4217
|
from: { opacity: 0, transform: "scale(0.5)" },
|
|
4230
4218
|
to: { opacity: 1, transform: "scale(1)" }
|
|
4231
4219
|
}), n = () => {
|
|
4232
4220
|
t && t();
|
|
4233
4221
|
};
|
|
4234
4222
|
let i;
|
|
4235
|
-
return e === "person" ? i = /* @__PURE__ */
|
|
4223
|
+
return e === "person" ? i = /* @__PURE__ */ q.jsx(vl, {}) : e === "qr" && (i = /* @__PURE__ */ q.jsx(bl, {})), /* @__PURE__ */ q.jsx(yl, { style: r, onClick: n, children: /* @__PURE__ */ q.jsx(gl, { children: i }) });
|
|
4236
4224
|
};
|
|
4237
4225
|
function wl(e) {
|
|
4238
4226
|
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);
|
|
@@ -4241,7 +4229,7 @@ const Cf = ({ size: e, onClick: t }) => {
|
|
|
4241
4229
|
const r = () => {
|
|
4242
4230
|
t && t();
|
|
4243
4231
|
};
|
|
4244
|
-
return /* @__PURE__ */
|
|
4232
|
+
return /* @__PURE__ */ q.jsx(wl, { size: e ?? "1.5rem", onClick: r });
|
|
4245
4233
|
};
|
|
4246
4234
|
re.div`
|
|
4247
4235
|
position: absolute;
|
|
@@ -4301,24 +4289,24 @@ function kl(e) {
|
|
|
4301
4289
|
const Pl = {
|
|
4302
4290
|
translate: Ol,
|
|
4303
4291
|
sunny: kl,
|
|
4304
|
-
character: () => /* @__PURE__ */
|
|
4292
|
+
character: () => /* @__PURE__ */ q.jsx("p", { style: { fontSize: "1rem", fontWeight: 500 }, children: "字" })
|
|
4305
4293
|
}, Af = ({ icon: e, text: t, onClick: r, styles: n }) => {
|
|
4306
4294
|
const i = Pl[e];
|
|
4307
|
-
return /* @__PURE__ */
|
|
4308
|
-
/* @__PURE__ */
|
|
4309
|
-
/* @__PURE__ */
|
|
4295
|
+
return /* @__PURE__ */ q.jsx(_l, { onClick: r, style: n, children: /* @__PURE__ */ q.jsxs(El, { children: [
|
|
4296
|
+
/* @__PURE__ */ q.jsxs(Sl, { children: [
|
|
4297
|
+
/* @__PURE__ */ q.jsx(i, { size: "1.2rem" }),
|
|
4310
4298
|
" "
|
|
4311
4299
|
] }),
|
|
4312
|
-
/* @__PURE__ */
|
|
4300
|
+
/* @__PURE__ */ q.jsx(xl, { children: t })
|
|
4313
4301
|
] }) });
|
|
4314
4302
|
};
|
|
4315
4303
|
function G(e) {
|
|
4316
4304
|
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. `;
|
|
4317
4305
|
}
|
|
4318
|
-
var Nl = typeof Symbol == "function" && Symbol.observable || "@@observable", fo = Nl,
|
|
4319
|
-
INIT: `@@redux/INIT${/* @__PURE__ */
|
|
4320
|
-
REPLACE: `@@redux/REPLACE${/* @__PURE__ */
|
|
4321
|
-
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${
|
|
4306
|
+
var Nl = typeof Symbol == "function" && Symbol.observable || "@@observable", fo = Nl, ln = () => Math.random().toString(36).substring(7).split("").join("."), Cl = {
|
|
4307
|
+
INIT: `@@redux/INIT${/* @__PURE__ */ ln()}`,
|
|
4308
|
+
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ ln()}`,
|
|
4309
|
+
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${ln()}`
|
|
4322
4310
|
}, Ye = Cl;
|
|
4323
4311
|
function Xt(e) {
|
|
4324
4312
|
if (typeof e != "object" || e === null)
|
|
@@ -4369,24 +4357,24 @@ function Tl(e) {
|
|
|
4369
4357
|
function Dl(e) {
|
|
4370
4358
|
return e instanceof Date ? !0 : typeof e.toDateString == "function" && typeof e.getDate == "function" && typeof e.setDate == "function";
|
|
4371
4359
|
}
|
|
4372
|
-
function
|
|
4360
|
+
function Ie(e) {
|
|
4373
4361
|
let t = typeof e;
|
|
4374
4362
|
return process.env.NODE_ENV !== "production" && (t = Rl(e)), t;
|
|
4375
4363
|
}
|
|
4376
|
-
function
|
|
4364
|
+
function Ds(e, t, r) {
|
|
4377
4365
|
if (typeof e != "function")
|
|
4378
|
-
throw new Error(process.env.NODE_ENV === "production" ? G(2) : `Expected the root reducer to be a function. Instead, received: '${
|
|
4366
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(2) : `Expected the root reducer to be a function. Instead, received: '${Ie(e)}'`);
|
|
4379
4367
|
if (typeof t == "function" && typeof r == "function" || typeof r == "function" && typeof arguments[3] == "function")
|
|
4380
4368
|
throw new Error(process.env.NODE_ENV === "production" ? G(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.");
|
|
4381
4369
|
if (typeof t == "function" && typeof r > "u" && (r = t, t = void 0), typeof r < "u") {
|
|
4382
4370
|
if (typeof r != "function")
|
|
4383
|
-
throw new Error(process.env.NODE_ENV === "production" ? G(1) : `Expected the enhancer to be a function. Instead, received: '${
|
|
4384
|
-
return r(
|
|
4371
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(1) : `Expected the enhancer to be a function. Instead, received: '${Ie(r)}'`);
|
|
4372
|
+
return r(Ds)(e, t);
|
|
4385
4373
|
}
|
|
4386
4374
|
let n = e, i = t, o = /* @__PURE__ */ new Map(), s = o, a = 0, u = !1;
|
|
4387
4375
|
function l() {
|
|
4388
|
-
s === o && (s = /* @__PURE__ */ new Map(), o.forEach((w,
|
|
4389
|
-
s.set(
|
|
4376
|
+
s === o && (s = /* @__PURE__ */ new Map(), o.forEach((w, y) => {
|
|
4377
|
+
s.set(y, w);
|
|
4390
4378
|
}));
|
|
4391
4379
|
}
|
|
4392
4380
|
function f() {
|
|
@@ -4396,27 +4384,27 @@ function Is(e, t, r) {
|
|
|
4396
4384
|
}
|
|
4397
4385
|
function d(w) {
|
|
4398
4386
|
if (typeof w != "function")
|
|
4399
|
-
throw new Error(process.env.NODE_ENV === "production" ? G(4) : `Expected the listener to be a function. Instead, received: '${
|
|
4387
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(4) : `Expected the listener to be a function. Instead, received: '${Ie(w)}'`);
|
|
4400
4388
|
if (u)
|
|
4401
4389
|
throw new Error(process.env.NODE_ENV === "production" ? G(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.");
|
|
4402
|
-
let
|
|
4390
|
+
let y = !0;
|
|
4403
4391
|
l();
|
|
4404
4392
|
const b = a++;
|
|
4405
4393
|
return s.set(b, w), function() {
|
|
4406
|
-
if (
|
|
4394
|
+
if (y) {
|
|
4407
4395
|
if (u)
|
|
4408
4396
|
throw new Error(process.env.NODE_ENV === "production" ? G(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.");
|
|
4409
|
-
|
|
4397
|
+
y = !1, l(), s.delete(b), o = null;
|
|
4410
4398
|
}
|
|
4411
4399
|
};
|
|
4412
4400
|
}
|
|
4413
4401
|
function h(w) {
|
|
4414
4402
|
if (!Xt(w))
|
|
4415
|
-
throw new Error(process.env.NODE_ENV === "production" ? G(7) : `Actions must be plain objects. Instead, the actual type was: '${
|
|
4403
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(7) : `Actions must be plain objects. Instead, the actual type was: '${Ie(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.`);
|
|
4416
4404
|
if (typeof w.type > "u")
|
|
4417
4405
|
throw new Error(process.env.NODE_ENV === "production" ? G(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
|
|
4418
4406
|
if (typeof w.type != "string")
|
|
4419
|
-
throw new Error(process.env.NODE_ENV === "production" ? G(17) : `Action "type" property must be a string. Instead, the actual type was: '${
|
|
4407
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(17) : `Action "type" property must be a string. Instead, the actual type was: '${Ie(w.type)}'. Value was: '${w.type}' (stringified)`);
|
|
4420
4408
|
if (u)
|
|
4421
4409
|
throw new Error(process.env.NODE_ENV === "production" ? G(9) : "Reducers may not dispatch actions.");
|
|
4422
4410
|
try {
|
|
@@ -4430,7 +4418,7 @@ function Is(e, t, r) {
|
|
|
4430
4418
|
}
|
|
4431
4419
|
function p(w) {
|
|
4432
4420
|
if (typeof w != "function")
|
|
4433
|
-
throw new Error(process.env.NODE_ENV === "production" ? G(10) : `Expected the nextReducer to be a function. Instead, received: '${
|
|
4421
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(10) : `Expected the nextReducer to be a function. Instead, received: '${Ie(w)}`);
|
|
4434
4422
|
n = w, h({
|
|
4435
4423
|
type: Ye.REPLACE
|
|
4436
4424
|
});
|
|
@@ -4446,12 +4434,12 @@ function Is(e, t, r) {
|
|
|
4446
4434
|
* be used to unsubscribe the observable from the store, and prevent further
|
|
4447
4435
|
* emission of values from the observable.
|
|
4448
4436
|
*/
|
|
4449
|
-
subscribe(
|
|
4450
|
-
if (typeof
|
|
4451
|
-
throw new Error(process.env.NODE_ENV === "production" ? G(11) : `Expected the observer to be an object. Instead, received: '${
|
|
4437
|
+
subscribe(y) {
|
|
4438
|
+
if (typeof y != "object" || y === null)
|
|
4439
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(11) : `Expected the observer to be an object. Instead, received: '${Ie(y)}'`);
|
|
4452
4440
|
function b() {
|
|
4453
|
-
const
|
|
4454
|
-
|
|
4441
|
+
const E = y;
|
|
4442
|
+
E.next && E.next(f());
|
|
4455
4443
|
}
|
|
4456
4444
|
return b(), {
|
|
4457
4445
|
unsubscribe: w(b)
|
|
@@ -4484,7 +4472,7 @@ function Il(e, t, r, n) {
|
|
|
4484
4472
|
if (i.length === 0)
|
|
4485
4473
|
return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";
|
|
4486
4474
|
if (!Xt(e))
|
|
4487
|
-
return `The ${o} has unexpected type of "${
|
|
4475
|
+
return `The ${o} has unexpected type of "${Ie(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;
|
|
4488
4476
|
const s = Object.keys(e).filter((a) => !t.hasOwnProperty(a) && !n[a]);
|
|
4489
4477
|
if (s.forEach((a) => {
|
|
4490
4478
|
n[a] = !0;
|
|
@@ -4504,7 +4492,7 @@ function jl(e) {
|
|
|
4504
4492
|
throw new Error(process.env.NODE_ENV === "production" ? G(13) : `The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Ye.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.`);
|
|
4505
4493
|
});
|
|
4506
4494
|
}
|
|
4507
|
-
function
|
|
4495
|
+
function Is(e) {
|
|
4508
4496
|
const t = Object.keys(e), r = {};
|
|
4509
4497
|
for (let s = 0; s < t.length; s++) {
|
|
4510
4498
|
const a = t[s];
|
|
@@ -4529,17 +4517,17 @@ function js(e) {
|
|
|
4529
4517
|
let l = !1;
|
|
4530
4518
|
const f = {};
|
|
4531
4519
|
for (let d = 0; d < n.length; d++) {
|
|
4532
|
-
const h = n[d], p = r[h], v = a[h],
|
|
4533
|
-
if (typeof
|
|
4520
|
+
const h = n[d], p = r[h], v = a[h], S = p(v, u);
|
|
4521
|
+
if (typeof S > "u") {
|
|
4534
4522
|
const w = u && u.type;
|
|
4535
4523
|
throw new Error(process.env.NODE_ENV === "production" ? G(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.`);
|
|
4536
4524
|
}
|
|
4537
|
-
f[h] =
|
|
4525
|
+
f[h] = S, l = l || S !== v;
|
|
4538
4526
|
}
|
|
4539
4527
|
return l = l || n.length !== Object.keys(a).length, l ? f : a;
|
|
4540
4528
|
};
|
|
4541
4529
|
}
|
|
4542
|
-
function
|
|
4530
|
+
function kr(...e) {
|
|
4543
4531
|
return e.length === 0 ? (t) => t : e.length === 1 ? e[0] : e.reduce((t, r) => (...n) => t(r(...n)));
|
|
4544
4532
|
}
|
|
4545
4533
|
function Vl(...e) {
|
|
@@ -4552,16 +4540,16 @@ function Vl(...e) {
|
|
|
4552
4540
|
getState: i.getState,
|
|
4553
4541
|
dispatch: (u, ...l) => o(u, ...l)
|
|
4554
4542
|
}, a = e.map((u) => u(s));
|
|
4555
|
-
return o =
|
|
4543
|
+
return o = kr(...a)(i.dispatch), {
|
|
4556
4544
|
...i,
|
|
4557
4545
|
dispatch: o
|
|
4558
4546
|
};
|
|
4559
4547
|
};
|
|
4560
4548
|
}
|
|
4561
|
-
function
|
|
4549
|
+
function js(e) {
|
|
4562
4550
|
return Xt(e) && "type" in e && typeof e.type == "string";
|
|
4563
4551
|
}
|
|
4564
|
-
var
|
|
4552
|
+
var Vs = Symbol.for("immer-nothing"), po = Symbol.for("immer-draftable"), ie = Symbol.for("immer-state"), $l = process.env.NODE_ENV !== "production" ? [
|
|
4565
4553
|
// All error codes, starting by 0:
|
|
4566
4554
|
function(e) {
|
|
4567
4555
|
return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
|
|
@@ -4605,12 +4593,12 @@ var yt = Object.getPrototypeOf;
|
|
|
4605
4593
|
function Xe(e) {
|
|
4606
4594
|
return !!e && !!e[ie];
|
|
4607
4595
|
}
|
|
4608
|
-
function
|
|
4596
|
+
function Pe(e) {
|
|
4609
4597
|
var t;
|
|
4610
|
-
return e ?
|
|
4598
|
+
return e ? $s(e) || Array.isArray(e) || !!e[po] || !!((t = e.constructor) != null && t[po]) || Wr(e) || Hr(e) : !1;
|
|
4611
4599
|
}
|
|
4612
4600
|
var Ml = Object.prototype.constructor.toString();
|
|
4613
|
-
function
|
|
4601
|
+
function $s(e) {
|
|
4614
4602
|
if (!e || typeof e != "object")
|
|
4615
4603
|
return !1;
|
|
4616
4604
|
const t = yt(e);
|
|
@@ -4619,42 +4607,42 @@ function Ms(e) {
|
|
|
4619
4607
|
const r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
4620
4608
|
return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === Ml;
|
|
4621
4609
|
}
|
|
4622
|
-
function
|
|
4623
|
-
|
|
4610
|
+
function Pr(e, t) {
|
|
4611
|
+
qr(e) === 0 ? Reflect.ownKeys(e).forEach((r) => {
|
|
4624
4612
|
t(r, e[r], e);
|
|
4625
4613
|
}) : e.forEach((r, n) => t(n, r, e));
|
|
4626
4614
|
}
|
|
4627
|
-
function
|
|
4615
|
+
function qr(e) {
|
|
4628
4616
|
const t = e[ie];
|
|
4629
|
-
return t ? t.type_ : Array.isArray(e) ? 1 :
|
|
4617
|
+
return t ? t.type_ : Array.isArray(e) ? 1 : Wr(e) ? 2 : Hr(e) ? 3 : 0;
|
|
4630
4618
|
}
|
|
4631
|
-
function
|
|
4632
|
-
return
|
|
4619
|
+
function An(e, t) {
|
|
4620
|
+
return qr(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
|
|
4633
4621
|
}
|
|
4634
|
-
function
|
|
4635
|
-
const n =
|
|
4622
|
+
function Ms(e, t, r) {
|
|
4623
|
+
const n = qr(e);
|
|
4636
4624
|
n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
|
|
4637
4625
|
}
|
|
4638
4626
|
function zl(e, t) {
|
|
4639
4627
|
return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
|
|
4640
4628
|
}
|
|
4641
|
-
function
|
|
4629
|
+
function Wr(e) {
|
|
4642
4630
|
return e instanceof Map;
|
|
4643
4631
|
}
|
|
4644
|
-
function
|
|
4632
|
+
function Hr(e) {
|
|
4645
4633
|
return e instanceof Set;
|
|
4646
4634
|
}
|
|
4647
4635
|
function Le(e) {
|
|
4648
4636
|
return e.copy_ || e.base_;
|
|
4649
4637
|
}
|
|
4650
|
-
function
|
|
4651
|
-
if (
|
|
4638
|
+
function Tn(e, t) {
|
|
4639
|
+
if (Wr(e))
|
|
4652
4640
|
return new Map(e);
|
|
4653
|
-
if (
|
|
4641
|
+
if (Hr(e))
|
|
4654
4642
|
return new Set(e);
|
|
4655
4643
|
if (Array.isArray(e))
|
|
4656
4644
|
return Array.prototype.slice.call(e);
|
|
4657
|
-
const r =
|
|
4645
|
+
const r = $s(e);
|
|
4658
4646
|
if (t === !0 || t === "class_only" && !r) {
|
|
4659
4647
|
const n = Object.getOwnPropertyDescriptors(e);
|
|
4660
4648
|
delete n[ie];
|
|
@@ -4679,12 +4667,12 @@ function Dn(e, t) {
|
|
|
4679
4667
|
}
|
|
4680
4668
|
}
|
|
4681
4669
|
function si(e, t = !1) {
|
|
4682
|
-
return
|
|
4670
|
+
return Yr(e) || Xe(e) || !Pe(e) || (qr(e) > 1 && (e.set = e.add = e.clear = e.delete = Fl), Object.freeze(e), t && Object.entries(e).forEach(([r, n]) => si(n, !0))), e;
|
|
4683
4671
|
}
|
|
4684
4672
|
function Fl() {
|
|
4685
4673
|
Z(2);
|
|
4686
4674
|
}
|
|
4687
|
-
function
|
|
4675
|
+
function Yr(e) {
|
|
4688
4676
|
return Object.isFrozen(e);
|
|
4689
4677
|
}
|
|
4690
4678
|
var Ll = {};
|
|
@@ -4693,10 +4681,10 @@ function Je(e) {
|
|
|
4693
4681
|
return t || Z(0, e), t;
|
|
4694
4682
|
}
|
|
4695
4683
|
var Ht;
|
|
4696
|
-
function
|
|
4684
|
+
function zs() {
|
|
4697
4685
|
return Ht;
|
|
4698
4686
|
}
|
|
4699
|
-
function
|
|
4687
|
+
function Ul(e, t) {
|
|
4700
4688
|
return {
|
|
4701
4689
|
drafts_: [],
|
|
4702
4690
|
parent_: e,
|
|
@@ -4710,50 +4698,50 @@ function Bl(e, t) {
|
|
|
4710
4698
|
function mo(e, t) {
|
|
4711
4699
|
t && (Je("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
4712
4700
|
}
|
|
4713
|
-
function
|
|
4714
|
-
|
|
4701
|
+
function Dn(e) {
|
|
4702
|
+
In(e), e.drafts_.forEach(Bl), e.drafts_ = null;
|
|
4715
4703
|
}
|
|
4716
|
-
function
|
|
4704
|
+
function In(e) {
|
|
4717
4705
|
e === Ht && (Ht = e.parent_);
|
|
4718
4706
|
}
|
|
4719
4707
|
function yo(e) {
|
|
4720
|
-
return Ht =
|
|
4708
|
+
return Ht = Ul(Ht, e);
|
|
4721
4709
|
}
|
|
4722
|
-
function
|
|
4710
|
+
function Bl(e) {
|
|
4723
4711
|
const t = e[ie];
|
|
4724
4712
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
4725
4713
|
}
|
|
4726
4714
|
function go(e, t) {
|
|
4727
4715
|
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
4728
4716
|
const r = t.drafts_[0];
|
|
4729
|
-
return e !== void 0 && e !== r ? (r[ie].modified_ && (
|
|
4717
|
+
return e !== void 0 && e !== r ? (r[ie].modified_ && (Dn(t), Z(4)), Pe(e) && (e = Nr(t, e), t.parent_ || Cr(t, e)), t.patches_ && Je("Patches").generateReplacementPatches_(
|
|
4730
4718
|
r[ie].base_,
|
|
4731
4719
|
e,
|
|
4732
4720
|
t.patches_,
|
|
4733
4721
|
t.inversePatches_
|
|
4734
|
-
)) : e =
|
|
4722
|
+
)) : e = Nr(t, r, []), Dn(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== Vs ? e : void 0;
|
|
4735
4723
|
}
|
|
4736
|
-
function
|
|
4737
|
-
if (
|
|
4724
|
+
function Nr(e, t, r) {
|
|
4725
|
+
if (Yr(t))
|
|
4738
4726
|
return t;
|
|
4739
4727
|
const n = t[ie];
|
|
4740
4728
|
if (!n)
|
|
4741
|
-
return
|
|
4729
|
+
return Pr(
|
|
4742
4730
|
t,
|
|
4743
4731
|
(i, o) => vo(e, n, t, i, o, r)
|
|
4744
4732
|
), t;
|
|
4745
4733
|
if (n.scope_ !== e)
|
|
4746
4734
|
return t;
|
|
4747
4735
|
if (!n.modified_)
|
|
4748
|
-
return
|
|
4736
|
+
return Cr(e, n.base_, !0), n.base_;
|
|
4749
4737
|
if (!n.finalized_) {
|
|
4750
4738
|
n.finalized_ = !0, n.scope_.unfinalizedDrafts_--;
|
|
4751
4739
|
const i = n.copy_;
|
|
4752
4740
|
let o = i, s = !1;
|
|
4753
|
-
n.type_ === 3 && (o = new Set(i), i.clear(), s = !0),
|
|
4741
|
+
n.type_ === 3 && (o = new Set(i), i.clear(), s = !0), Pr(
|
|
4754
4742
|
o,
|
|
4755
4743
|
(a, u) => vo(e, n, i, a, u, r, s)
|
|
4756
|
-
),
|
|
4744
|
+
), Cr(e, i, !1), r && e.patches_ && Je("Patches").generatePatches_(
|
|
4757
4745
|
n,
|
|
4758
4746
|
r,
|
|
4759
4747
|
e.patches_,
|
|
@@ -4765,26 +4753,26 @@ function Cr(e, t, r) {
|
|
|
4765
4753
|
function vo(e, t, r, n, i, o, s) {
|
|
4766
4754
|
if (process.env.NODE_ENV !== "production" && i === r && Z(5), Xe(i)) {
|
|
4767
4755
|
const a = o && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
4768
|
-
!
|
|
4769
|
-
if (
|
|
4756
|
+
!An(t.assigned_, n) ? o.concat(n) : void 0, u = Nr(e, i, a);
|
|
4757
|
+
if (Ms(r, n, u), Xe(u))
|
|
4770
4758
|
e.canAutoFreeze_ = !1;
|
|
4771
4759
|
else
|
|
4772
4760
|
return;
|
|
4773
4761
|
} else s && r.add(i);
|
|
4774
|
-
if (
|
|
4762
|
+
if (Pe(i) && !Yr(i)) {
|
|
4775
4763
|
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
|
|
4776
4764
|
return;
|
|
4777
|
-
|
|
4765
|
+
Nr(e, i), (!t || !t.scope_.parent_) && typeof n != "symbol" && Object.prototype.propertyIsEnumerable.call(r, n) && Cr(e, i);
|
|
4778
4766
|
}
|
|
4779
4767
|
}
|
|
4780
|
-
function
|
|
4768
|
+
function Cr(e, t, r = !1) {
|
|
4781
4769
|
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && si(t, r);
|
|
4782
4770
|
}
|
|
4783
4771
|
function ql(e, t) {
|
|
4784
4772
|
const r = Array.isArray(e), n = {
|
|
4785
4773
|
type_: r ? 1 : 0,
|
|
4786
4774
|
// Track which produce call this is associated with.
|
|
4787
|
-
scope_: t ? t.scope_ :
|
|
4775
|
+
scope_: t ? t.scope_ : zs(),
|
|
4788
4776
|
// True for both shallow and deep changes.
|
|
4789
4777
|
modified_: !1,
|
|
4790
4778
|
// Used during finalization.
|
|
@@ -4814,10 +4802,10 @@ var ai = {
|
|
|
4814
4802
|
if (t === ie)
|
|
4815
4803
|
return e;
|
|
4816
4804
|
const r = Le(e);
|
|
4817
|
-
if (!
|
|
4805
|
+
if (!An(r, t))
|
|
4818
4806
|
return Wl(e, r, t);
|
|
4819
4807
|
const n = r[t];
|
|
4820
|
-
return e.finalized_ || !
|
|
4808
|
+
return e.finalized_ || !Pe(n) ? n : n === fn(e.base_, t) ? (dn(e), e.copy_[t] = Vn(n, e)) : n;
|
|
4821
4809
|
},
|
|
4822
4810
|
has(e, t) {
|
|
4823
4811
|
return t in Le(e);
|
|
@@ -4826,23 +4814,23 @@ var ai = {
|
|
|
4826
4814
|
return Reflect.ownKeys(Le(e));
|
|
4827
4815
|
},
|
|
4828
4816
|
set(e, t, r) {
|
|
4829
|
-
const n =
|
|
4817
|
+
const n = Fs(Le(e), t);
|
|
4830
4818
|
if (n != null && n.set)
|
|
4831
4819
|
return n.set.call(e.draft_, r), !0;
|
|
4832
4820
|
if (!e.modified_) {
|
|
4833
|
-
const i =
|
|
4821
|
+
const i = fn(Le(e), t), o = i == null ? void 0 : i[ie];
|
|
4834
4822
|
if (o && o.base_ === r)
|
|
4835
4823
|
return e.copy_[t] = r, e.assigned_[t] = !1, !0;
|
|
4836
|
-
if (zl(r, i) && (r !== void 0 ||
|
|
4824
|
+
if (zl(r, i) && (r !== void 0 || An(e.base_, t)))
|
|
4837
4825
|
return !0;
|
|
4838
|
-
|
|
4826
|
+
dn(e), jn(e);
|
|
4839
4827
|
}
|
|
4840
4828
|
return e.copy_[t] === r && // special case: handle new props with value 'undefined'
|
|
4841
4829
|
(r !== void 0 || t in e.copy_) || // special case: NaN
|
|
4842
4830
|
Number.isNaN(r) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = r, e.assigned_[t] = !0), !0;
|
|
4843
4831
|
},
|
|
4844
4832
|
deleteProperty(e, t) {
|
|
4845
|
-
return
|
|
4833
|
+
return fn(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, dn(e), jn(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
|
|
4846
4834
|
},
|
|
4847
4835
|
// Note: We never coerce `desc.value` into an Immer draft, because we can't make
|
|
4848
4836
|
// the same guarantee in ES5 mode.
|
|
@@ -4865,7 +4853,7 @@ var ai = {
|
|
|
4865
4853
|
Z(12);
|
|
4866
4854
|
}
|
|
4867
4855
|
}, Yt = {};
|
|
4868
|
-
|
|
4856
|
+
Pr(ai, (e, t) => {
|
|
4869
4857
|
Yt[e] = function() {
|
|
4870
4858
|
return arguments[0] = arguments[0][0], t.apply(this, arguments);
|
|
4871
4859
|
};
|
|
@@ -4876,20 +4864,20 @@ Yt.deleteProperty = function(e, t) {
|
|
|
4876
4864
|
Yt.set = function(e, t, r) {
|
|
4877
4865
|
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && Z(14), ai.set.call(this, e[0], t, r, e[0]);
|
|
4878
4866
|
};
|
|
4879
|
-
function
|
|
4867
|
+
function fn(e, t) {
|
|
4880
4868
|
const r = e[ie];
|
|
4881
4869
|
return (r ? Le(r) : e)[t];
|
|
4882
4870
|
}
|
|
4883
4871
|
function Wl(e, t, r) {
|
|
4884
4872
|
var i;
|
|
4885
|
-
const n =
|
|
4873
|
+
const n = Fs(t, r);
|
|
4886
4874
|
return n ? "value" in n ? n.value : (
|
|
4887
4875
|
// This is a very special case, if the prop is a getter defined by the
|
|
4888
4876
|
// prototype, we should invoke it with the draft as context!
|
|
4889
4877
|
(i = n.get) == null ? void 0 : i.call(e.draft_)
|
|
4890
4878
|
) : void 0;
|
|
4891
4879
|
}
|
|
4892
|
-
function
|
|
4880
|
+
function Fs(e, t) {
|
|
4893
4881
|
if (!(t in e))
|
|
4894
4882
|
return;
|
|
4895
4883
|
let r = yt(e);
|
|
@@ -4900,11 +4888,11 @@ function Ls(e, t) {
|
|
|
4900
4888
|
r = yt(r);
|
|
4901
4889
|
}
|
|
4902
4890
|
}
|
|
4903
|
-
function
|
|
4904
|
-
e.modified_ || (e.modified_ = !0, e.parent_ &&
|
|
4891
|
+
function jn(e) {
|
|
4892
|
+
e.modified_ || (e.modified_ = !0, e.parent_ && jn(e.parent_));
|
|
4905
4893
|
}
|
|
4906
|
-
function
|
|
4907
|
-
e.copy_ || (e.copy_ =
|
|
4894
|
+
function dn(e) {
|
|
4895
|
+
e.copy_ || (e.copy_ = Tn(
|
|
4908
4896
|
e.base_,
|
|
4909
4897
|
e.scope_.immer_.useStrictShallowCopy_
|
|
4910
4898
|
));
|
|
@@ -4922,17 +4910,17 @@ var Hl = class {
|
|
|
4922
4910
|
}
|
|
4923
4911
|
typeof r != "function" && Z(6), n !== void 0 && typeof n != "function" && Z(7);
|
|
4924
4912
|
let i;
|
|
4925
|
-
if (
|
|
4926
|
-
const o = yo(this), s =
|
|
4913
|
+
if (Pe(t)) {
|
|
4914
|
+
const o = yo(this), s = Vn(t, void 0);
|
|
4927
4915
|
let a = !0;
|
|
4928
4916
|
try {
|
|
4929
4917
|
i = r(s), a = !1;
|
|
4930
4918
|
} finally {
|
|
4931
|
-
a ?
|
|
4919
|
+
a ? Dn(o) : In(o);
|
|
4932
4920
|
}
|
|
4933
4921
|
return mo(o, n), go(i, o);
|
|
4934
4922
|
} else if (!t || typeof t != "object") {
|
|
4935
|
-
if (i = r(t), i === void 0 && (i = t), i ===
|
|
4923
|
+
if (i = r(t), i === void 0 && (i = t), i === Vs && (i = void 0), this.autoFreeze_ && si(i, !0), n) {
|
|
4936
4924
|
const o = [], s = [];
|
|
4937
4925
|
Je("Patches").generateReplacementPatches_(t, i, o, s), n(o, s);
|
|
4938
4926
|
}
|
|
@@ -4949,9 +4937,9 @@ var Hl = class {
|
|
|
4949
4937
|
}, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
|
|
4950
4938
|
}
|
|
4951
4939
|
createDraft(e) {
|
|
4952
|
-
|
|
4953
|
-
const t = yo(this), r =
|
|
4954
|
-
return r[ie].isManual_ = !0,
|
|
4940
|
+
Pe(e) || Z(8), Xe(e) && (e = Yl(e));
|
|
4941
|
+
const t = yo(this), r = Vn(e, void 0);
|
|
4942
|
+
return r[ie].isManual_ = !0, In(t), r;
|
|
4955
4943
|
}
|
|
4956
4944
|
finishDraft(e, t) {
|
|
4957
4945
|
const r = e && e[ie];
|
|
@@ -4992,26 +4980,26 @@ var Hl = class {
|
|
|
4992
4980
|
);
|
|
4993
4981
|
}
|
|
4994
4982
|
};
|
|
4995
|
-
function
|
|
4996
|
-
const r =
|
|
4997
|
-
return (t ? t.scope_ :
|
|
4983
|
+
function Vn(e, t) {
|
|
4984
|
+
const r = Wr(e) ? Je("MapSet").proxyMap_(e, t) : Hr(e) ? Je("MapSet").proxySet_(e, t) : ql(e, t);
|
|
4985
|
+
return (t ? t.scope_ : zs()).drafts_.push(r), r;
|
|
4998
4986
|
}
|
|
4999
4987
|
function Yl(e) {
|
|
5000
|
-
return Xe(e) || Z(10, e),
|
|
4988
|
+
return Xe(e) || Z(10, e), Ls(e);
|
|
5001
4989
|
}
|
|
5002
|
-
function
|
|
5003
|
-
if (!
|
|
4990
|
+
function Ls(e) {
|
|
4991
|
+
if (!Pe(e) || Yr(e))
|
|
5004
4992
|
return e;
|
|
5005
4993
|
const t = e[ie];
|
|
5006
4994
|
let r;
|
|
5007
4995
|
if (t) {
|
|
5008
4996
|
if (!t.modified_)
|
|
5009
4997
|
return t.base_;
|
|
5010
|
-
t.finalized_ = !0, r =
|
|
4998
|
+
t.finalized_ = !0, r = Tn(e, t.scope_.immer_.useStrictShallowCopy_);
|
|
5011
4999
|
} else
|
|
5012
|
-
r =
|
|
5013
|
-
return
|
|
5014
|
-
|
|
5000
|
+
r = Tn(e, !0);
|
|
5001
|
+
return Pr(r, (n, i) => {
|
|
5002
|
+
Ms(r, n, Ls(i));
|
|
5015
5003
|
}), t && (t.finalized_ = !1), r;
|
|
5016
5004
|
}
|
|
5017
5005
|
var oe = new Hl(), Us = oe.produce;
|
|
@@ -5023,12 +5011,12 @@ oe.setUseStrictShallowCopy.bind(oe);
|
|
|
5023
5011
|
oe.applyPatches.bind(oe);
|
|
5024
5012
|
oe.createDraft.bind(oe);
|
|
5025
5013
|
oe.finishDraft.bind(oe);
|
|
5026
|
-
function
|
|
5014
|
+
function Bs(e) {
|
|
5027
5015
|
return ({ dispatch: r, getState: n }) => (i) => (o) => typeof o == "function" ? o(r, n, e) : i(o);
|
|
5028
5016
|
}
|
|
5029
|
-
var Gl =
|
|
5017
|
+
var Gl = Bs(), Kl = Bs, Ql = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
|
|
5030
5018
|
if (arguments.length !== 0)
|
|
5031
|
-
return typeof arguments[0] == "object" ?
|
|
5019
|
+
return typeof arguments[0] == "object" ? kr : kr.apply(null, arguments);
|
|
5032
5020
|
}, Xl = (e) => e && typeof e.match == "function";
|
|
5033
5021
|
function bo(e, t) {
|
|
5034
5022
|
function r(...n) {
|
|
@@ -5052,7 +5040,7 @@ function bo(e, t) {
|
|
|
5052
5040
|
payload: n[0]
|
|
5053
5041
|
};
|
|
5054
5042
|
}
|
|
5055
|
-
return r.toString = () => `${e}`, r.type = e, r.match = (n) =>
|
|
5043
|
+
return r.toString = () => `${e}`, r.type = e, r.match = (n) => js(n) && n.type === e, r;
|
|
5056
5044
|
}
|
|
5057
5045
|
function Jl(e) {
|
|
5058
5046
|
return typeof e == "function" && "type" in e && // hasMatchFunction only wants Matchers but I don't see the point in rewriting it
|
|
@@ -5071,7 +5059,7 @@ function ef(e = {}) {
|
|
|
5071
5059
|
} = e;
|
|
5072
5060
|
return () => (r) => (n) => (t(n) && console.warn(Zl(n.type)), r(n));
|
|
5073
5061
|
}
|
|
5074
|
-
function
|
|
5062
|
+
function qs(e, t) {
|
|
5075
5063
|
let r = 0;
|
|
5076
5064
|
return {
|
|
5077
5065
|
measureTime(n) {
|
|
@@ -5090,7 +5078,7 @@ It is disabled in production builds, so you don't need to worry about that.`);
|
|
|
5090
5078
|
}
|
|
5091
5079
|
};
|
|
5092
5080
|
}
|
|
5093
|
-
var
|
|
5081
|
+
var Ws = class At extends Array {
|
|
5094
5082
|
constructor(...t) {
|
|
5095
5083
|
super(...t), Object.setPrototypeOf(this, At.prototype);
|
|
5096
5084
|
}
|
|
@@ -5105,7 +5093,7 @@ var Hs = class At extends Array {
|
|
|
5105
5093
|
}
|
|
5106
5094
|
};
|
|
5107
5095
|
function wo(e) {
|
|
5108
|
-
return
|
|
5096
|
+
return Pe(e) ? Us(e, () => {
|
|
5109
5097
|
}) : e;
|
|
5110
5098
|
}
|
|
5111
5099
|
function _o(e, t, r) {
|
|
@@ -5115,14 +5103,14 @@ function tf(e) {
|
|
|
5115
5103
|
return typeof e != "object" || e == null || Object.isFrozen(e);
|
|
5116
5104
|
}
|
|
5117
5105
|
function rf(e, t, r) {
|
|
5118
|
-
const n =
|
|
5106
|
+
const n = Hs(e, t, r);
|
|
5119
5107
|
return {
|
|
5120
5108
|
detectMutations() {
|
|
5121
|
-
return
|
|
5109
|
+
return Ys(e, t, n, r);
|
|
5122
5110
|
}
|
|
5123
5111
|
};
|
|
5124
5112
|
}
|
|
5125
|
-
function
|
|
5113
|
+
function Hs(e, t = [], r, n = "", i = /* @__PURE__ */ new Set()) {
|
|
5126
5114
|
const o = {
|
|
5127
5115
|
value: r
|
|
5128
5116
|
};
|
|
@@ -5130,12 +5118,12 @@ function Ys(e, t = [], r, n = "", i = /* @__PURE__ */ new Set()) {
|
|
|
5130
5118
|
i.add(r), o.children = {};
|
|
5131
5119
|
for (const s in r) {
|
|
5132
5120
|
const a = n ? n + "." + s : s;
|
|
5133
|
-
t.length && t.indexOf(a) !== -1 || (o.children[s] =
|
|
5121
|
+
t.length && t.indexOf(a) !== -1 || (o.children[s] = Hs(e, t, r[s], a));
|
|
5134
5122
|
}
|
|
5135
5123
|
}
|
|
5136
5124
|
return o;
|
|
5137
5125
|
}
|
|
5138
|
-
function
|
|
5126
|
+
function Ys(e, t = [], r, n, i = !1, o = "") {
|
|
5139
5127
|
const s = r ? r.value : void 0, a = s === n;
|
|
5140
5128
|
if (i && !a && !Number.isNaN(n))
|
|
5141
5129
|
return {
|
|
@@ -5156,7 +5144,7 @@ function Gs(e, t = [], r, n, i = !1, o = "") {
|
|
|
5156
5144
|
const d = o ? o + "." + f : f;
|
|
5157
5145
|
if (l && t.some((v) => v instanceof RegExp ? v.test(d) : d === v))
|
|
5158
5146
|
continue;
|
|
5159
|
-
const h =
|
|
5147
|
+
const h = Ys(e, t, r.children[f], n[f], a, d);
|
|
5160
5148
|
if (h.wasMutated)
|
|
5161
5149
|
return h;
|
|
5162
5150
|
}
|
|
@@ -5192,7 +5180,7 @@ function nf(e = {}) {
|
|
|
5192
5180
|
}) => {
|
|
5193
5181
|
let u = a(), l = s(u), f;
|
|
5194
5182
|
return (d) => (h) => {
|
|
5195
|
-
const p =
|
|
5183
|
+
const p = qs(o, "ImmutableStateInvariantMiddleware");
|
|
5196
5184
|
p.measureTime(() => {
|
|
5197
5185
|
if (u = a(), f = l.detectMutations(), l = s(u), f.wasMutated)
|
|
5198
5186
|
throw new Error(process.env.NODE_ENV === "production" ? F(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)`);
|
|
@@ -5206,11 +5194,11 @@ function nf(e = {}) {
|
|
|
5206
5194
|
};
|
|
5207
5195
|
}
|
|
5208
5196
|
}
|
|
5209
|
-
function
|
|
5197
|
+
function Gs(e) {
|
|
5210
5198
|
const t = typeof e;
|
|
5211
5199
|
return e == null || t === "string" || t === "boolean" || t === "number" || Array.isArray(e) || Xt(e);
|
|
5212
5200
|
}
|
|
5213
|
-
function
|
|
5201
|
+
function $n(e, t = "", r = Gs, n, i = [], o) {
|
|
5214
5202
|
let s;
|
|
5215
5203
|
if (!r(e))
|
|
5216
5204
|
return {
|
|
@@ -5227,16 +5215,16 @@ function Mn(e, t = "", r = Ks, n, i = [], o) {
|
|
|
5227
5215
|
keyPath: d,
|
|
5228
5216
|
value: f
|
|
5229
5217
|
};
|
|
5230
|
-
if (typeof f == "object" && (s =
|
|
5218
|
+
if (typeof f == "object" && (s = $n(f, d, r, n, i, o), s))
|
|
5231
5219
|
return s;
|
|
5232
5220
|
}
|
|
5233
5221
|
}
|
|
5234
|
-
return o &&
|
|
5222
|
+
return o && Ks(e) && o.add(e), !1;
|
|
5235
5223
|
}
|
|
5236
|
-
function
|
|
5224
|
+
function Ks(e) {
|
|
5237
5225
|
if (!Object.isFrozen(e)) return !1;
|
|
5238
5226
|
for (const t of Object.values(e))
|
|
5239
|
-
if (!(typeof t != "object" || t === null) && !
|
|
5227
|
+
if (!(typeof t != "object" || t === null) && !Ks(t))
|
|
5240
5228
|
return !1;
|
|
5241
5229
|
return !0;
|
|
5242
5230
|
}
|
|
@@ -5245,7 +5233,7 @@ function of(e = {}) {
|
|
|
5245
5233
|
return () => (t) => (r) => t(r);
|
|
5246
5234
|
{
|
|
5247
5235
|
const {
|
|
5248
|
-
isSerializable: t =
|
|
5236
|
+
isSerializable: t = Gs,
|
|
5249
5237
|
getEntries: r,
|
|
5250
5238
|
ignoredActions: n = [],
|
|
5251
5239
|
ignoredActionPaths: i = ["meta.arg", "meta.baseQueryMeta"],
|
|
@@ -5256,33 +5244,33 @@ function of(e = {}) {
|
|
|
5256
5244
|
disableCache: l = !1
|
|
5257
5245
|
} = e, f = !l && WeakSet ? /* @__PURE__ */ new WeakSet() : void 0;
|
|
5258
5246
|
return (d) => (h) => (p) => {
|
|
5259
|
-
if (!
|
|
5247
|
+
if (!js(p))
|
|
5260
5248
|
return h(p);
|
|
5261
|
-
const v = h(p),
|
|
5262
|
-
return !u && !(n.length && n.indexOf(p.type) !== -1) &&
|
|
5263
|
-
const w =
|
|
5249
|
+
const v = h(p), S = qs(s, "SerializableStateInvariantMiddleware");
|
|
5250
|
+
return !u && !(n.length && n.indexOf(p.type) !== -1) && S.measureTime(() => {
|
|
5251
|
+
const w = $n(p, "", t, r, i, f);
|
|
5264
5252
|
if (w) {
|
|
5265
5253
|
const {
|
|
5266
|
-
keyPath:
|
|
5254
|
+
keyPath: y,
|
|
5267
5255
|
value: b
|
|
5268
5256
|
} = w;
|
|
5269
|
-
console.error(`A non-serializable value was detected in an action, in the path: \`${
|
|
5257
|
+
console.error(`A non-serializable value was detected in an action, in the path: \`${y}\`. Value:`, b, `
|
|
5270
5258
|
Take a look at the logic that dispatched this action: `, p, `
|
|
5271
5259
|
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`, `
|
|
5272
5260
|
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`);
|
|
5273
5261
|
}
|
|
5274
|
-
}), a || (
|
|
5275
|
-
const w = d.getState(),
|
|
5276
|
-
if (
|
|
5262
|
+
}), a || (S.measureTime(() => {
|
|
5263
|
+
const w = d.getState(), y = $n(w, "", t, r, o, f);
|
|
5264
|
+
if (y) {
|
|
5277
5265
|
const {
|
|
5278
5266
|
keyPath: b,
|
|
5279
|
-
value:
|
|
5280
|
-
} =
|
|
5281
|
-
console.error(`A non-serializable value was detected in the state, in the path: \`${b}\`. Value:`,
|
|
5267
|
+
value: m
|
|
5268
|
+
} = y;
|
|
5269
|
+
console.error(`A non-serializable value was detected in the state, in the path: \`${b}\`. Value:`, m, `
|
|
5282
5270
|
Take a look at the reducer(s) handling this action type: ${p.type}.
|
|
5283
5271
|
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`);
|
|
5284
5272
|
}
|
|
5285
|
-
}),
|
|
5273
|
+
}), S.warnIfExceeded()), v;
|
|
5286
5274
|
};
|
|
5287
5275
|
}
|
|
5288
5276
|
}
|
|
@@ -5296,7 +5284,7 @@ var sf = () => function(t) {
|
|
|
5296
5284
|
serializableCheck: i = !0,
|
|
5297
5285
|
actionCreatorCheck: o = !0
|
|
5298
5286
|
} = t ?? {};
|
|
5299
|
-
let s = new
|
|
5287
|
+
let s = new Ws();
|
|
5300
5288
|
if (r && (cr(r) ? s.push(Gl) : s.push(Kl(r.extraArgument))), process.env.NODE_ENV !== "production") {
|
|
5301
5289
|
if (n) {
|
|
5302
5290
|
let a = {};
|
|
@@ -5349,7 +5337,7 @@ var sf = () => function(t) {
|
|
|
5349
5337
|
const {
|
|
5350
5338
|
autoBatch: n = !0
|
|
5351
5339
|
} = r ?? {};
|
|
5352
|
-
let i = new
|
|
5340
|
+
let i = new Ws(e);
|
|
5353
5341
|
return n && i.push(cf(typeof n == "object" ? n : void 0)), i;
|
|
5354
5342
|
};
|
|
5355
5343
|
function lf(e) {
|
|
@@ -5364,7 +5352,7 @@ function lf(e) {
|
|
|
5364
5352
|
if (typeof r == "function")
|
|
5365
5353
|
a = r;
|
|
5366
5354
|
else if (Xt(r))
|
|
5367
|
-
a =
|
|
5355
|
+
a = Is(r);
|
|
5368
5356
|
else
|
|
5369
5357
|
throw new Error(process.env.NODE_ENV === "production" ? F(1) : "`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");
|
|
5370
5358
|
if (process.env.NODE_ENV !== "production" && n && typeof n != "function")
|
|
@@ -5377,7 +5365,7 @@ function lf(e) {
|
|
|
5377
5365
|
u = t();
|
|
5378
5366
|
if (process.env.NODE_ENV !== "production" && u.some((v) => typeof v != "function"))
|
|
5379
5367
|
throw new Error(process.env.NODE_ENV === "production" ? F(4) : "each middleware provided to configureStore must be a function");
|
|
5380
|
-
let l =
|
|
5368
|
+
let l = kr;
|
|
5381
5369
|
i && (l = Ql({
|
|
5382
5370
|
// Enable capture of stack traces for dispatched Redux actions
|
|
5383
5371
|
trace: process.env.NODE_ENV !== "production",
|
|
@@ -5393,9 +5381,9 @@ function lf(e) {
|
|
|
5393
5381
|
throw new Error(process.env.NODE_ENV === "production" ? F(7) : "each enhancer provided to configureStore must be a function");
|
|
5394
5382
|
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`");
|
|
5395
5383
|
const p = l(...h);
|
|
5396
|
-
return
|
|
5384
|
+
return Ds(a, o, p);
|
|
5397
5385
|
}
|
|
5398
|
-
function
|
|
5386
|
+
function Qs(e) {
|
|
5399
5387
|
const t = {}, r = [];
|
|
5400
5388
|
let n;
|
|
5401
5389
|
const i = {
|
|
@@ -5435,7 +5423,7 @@ function ff(e) {
|
|
|
5435
5423
|
function df(e, t) {
|
|
5436
5424
|
if (process.env.NODE_ENV !== "production" && typeof t == "object")
|
|
5437
5425
|
throw new Error(process.env.NODE_ENV === "production" ? F(8) : "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
|
|
5438
|
-
let [r, n, i] =
|
|
5426
|
+
let [r, n, i] = Qs(t), o;
|
|
5439
5427
|
if (ff(e))
|
|
5440
5428
|
o = () => wo(e());
|
|
5441
5429
|
else {
|
|
@@ -5454,7 +5442,7 @@ function df(e, t) {
|
|
|
5454
5442
|
const p = d(f, u);
|
|
5455
5443
|
return p === void 0 ? f : p;
|
|
5456
5444
|
} else {
|
|
5457
|
-
if (
|
|
5445
|
+
if (Pe(f))
|
|
5458
5446
|
return Us(f, (h) => d(h, u));
|
|
5459
5447
|
{
|
|
5460
5448
|
const h = d(f, u);
|
|
@@ -5494,40 +5482,40 @@ function mf({
|
|
|
5494
5482
|
actionCreators: {},
|
|
5495
5483
|
sliceMatchers: []
|
|
5496
5484
|
}, f = {
|
|
5497
|
-
addCase(
|
|
5498
|
-
const k = typeof
|
|
5485
|
+
addCase(m, E) {
|
|
5486
|
+
const k = typeof m == "string" ? m : m.type;
|
|
5499
5487
|
if (!k)
|
|
5500
5488
|
throw new Error(process.env.NODE_ENV === "production" ? F(12) : "`context.addCase` cannot be called with an empty action type");
|
|
5501
5489
|
if (k in l.sliceCaseReducersByType)
|
|
5502
5490
|
throw new Error(process.env.NODE_ENV === "production" ? F(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + k);
|
|
5503
|
-
return l.sliceCaseReducersByType[k] =
|
|
5491
|
+
return l.sliceCaseReducersByType[k] = E, f;
|
|
5504
5492
|
},
|
|
5505
|
-
addMatcher(
|
|
5493
|
+
addMatcher(m, E) {
|
|
5506
5494
|
return l.sliceMatchers.push({
|
|
5507
|
-
matcher:
|
|
5508
|
-
reducer:
|
|
5495
|
+
matcher: m,
|
|
5496
|
+
reducer: E
|
|
5509
5497
|
}), f;
|
|
5510
5498
|
},
|
|
5511
|
-
exposeAction(
|
|
5512
|
-
return l.actionCreators[
|
|
5499
|
+
exposeAction(m, E) {
|
|
5500
|
+
return l.actionCreators[m] = E, f;
|
|
5513
5501
|
},
|
|
5514
|
-
exposeCaseReducer(
|
|
5515
|
-
return l.sliceCaseReducersByName[
|
|
5502
|
+
exposeCaseReducer(m, E) {
|
|
5503
|
+
return l.sliceCaseReducersByName[m] = E, f;
|
|
5516
5504
|
}
|
|
5517
5505
|
};
|
|
5518
|
-
u.forEach((
|
|
5519
|
-
const
|
|
5520
|
-
reducerName:
|
|
5521
|
-
type: pf(o,
|
|
5506
|
+
u.forEach((m) => {
|
|
5507
|
+
const E = a[m], k = {
|
|
5508
|
+
reducerName: m,
|
|
5509
|
+
type: pf(o, m),
|
|
5522
5510
|
createNotation: typeof i.reducers == "function"
|
|
5523
5511
|
};
|
|
5524
|
-
wf(
|
|
5512
|
+
wf(E) ? Ef(k, E, f, t) : bf(k, E, f);
|
|
5525
5513
|
});
|
|
5526
5514
|
function d() {
|
|
5527
5515
|
if (process.env.NODE_ENV !== "production" && typeof i.extraReducers == "object")
|
|
5528
5516
|
throw new Error(process.env.NODE_ENV === "production" ? F(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
|
|
5529
|
-
const [
|
|
5530
|
-
...
|
|
5517
|
+
const [m = {}, E = [], k = void 0] = typeof i.extraReducers == "function" ? Qs(i.extraReducers) : [i.extraReducers], P = {
|
|
5518
|
+
...m,
|
|
5531
5519
|
...l.sliceCaseReducersByType
|
|
5532
5520
|
};
|
|
5533
5521
|
return df(i.initialState, (O) => {
|
|
@@ -5535,24 +5523,24 @@ function mf({
|
|
|
5535
5523
|
O.addCase(I, P[I]);
|
|
5536
5524
|
for (let I of l.sliceMatchers)
|
|
5537
5525
|
O.addMatcher(I.matcher, I.reducer);
|
|
5538
|
-
for (let I of
|
|
5526
|
+
for (let I of E)
|
|
5539
5527
|
O.addMatcher(I.matcher, I.reducer);
|
|
5540
5528
|
k && O.addDefaultCase(k);
|
|
5541
5529
|
});
|
|
5542
5530
|
}
|
|
5543
|
-
const h = (
|
|
5531
|
+
const h = (m) => m, p = /* @__PURE__ */ new Map();
|
|
5544
5532
|
let v;
|
|
5545
|
-
function
|
|
5546
|
-
return v || (v = d()), v(
|
|
5533
|
+
function S(m, E) {
|
|
5534
|
+
return v || (v = d()), v(m, E);
|
|
5547
5535
|
}
|
|
5548
5536
|
function w() {
|
|
5549
5537
|
return v || (v = d()), v.getInitialState();
|
|
5550
5538
|
}
|
|
5551
|
-
function m
|
|
5539
|
+
function y(m, E = !1) {
|
|
5552
5540
|
function k(O) {
|
|
5553
|
-
let I = O[
|
|
5541
|
+
let I = O[m];
|
|
5554
5542
|
if (typeof I > "u") {
|
|
5555
|
-
if (
|
|
5543
|
+
if (E)
|
|
5556
5544
|
I = w();
|
|
5557
5545
|
else if (process.env.NODE_ENV !== "production")
|
|
5558
5546
|
throw new Error(process.env.NODE_ENV === "production" ? F(15) : "selectSlice returned undefined for an uninjected slice reducer");
|
|
@@ -5560,16 +5548,16 @@ function mf({
|
|
|
5560
5548
|
return I;
|
|
5561
5549
|
}
|
|
5562
5550
|
function P(O = h) {
|
|
5563
|
-
const I = _o(p,
|
|
5551
|
+
const I = _o(p, E, () => /* @__PURE__ */ new WeakMap());
|
|
5564
5552
|
return _o(I, O, () => {
|
|
5565
5553
|
const M = {};
|
|
5566
5554
|
for (const [fe, Y] of Object.entries(i.selectors ?? {}))
|
|
5567
|
-
M[fe] = yf(Y, O, w,
|
|
5555
|
+
M[fe] = yf(Y, O, w, E);
|
|
5568
5556
|
return M;
|
|
5569
5557
|
});
|
|
5570
5558
|
}
|
|
5571
5559
|
return {
|
|
5572
|
-
reducerPath:
|
|
5560
|
+
reducerPath: m,
|
|
5573
5561
|
getSelectors: P,
|
|
5574
5562
|
get selectors() {
|
|
5575
5563
|
return P(k);
|
|
@@ -5579,22 +5567,22 @@ function mf({
|
|
|
5579
5567
|
}
|
|
5580
5568
|
const b = {
|
|
5581
5569
|
name: o,
|
|
5582
|
-
reducer:
|
|
5570
|
+
reducer: S,
|
|
5583
5571
|
actions: l.actionCreators,
|
|
5584
5572
|
caseReducers: l.sliceCaseReducersByName,
|
|
5585
5573
|
getInitialState: w,
|
|
5586
|
-
...
|
|
5587
|
-
injectInto(
|
|
5588
|
-
reducerPath:
|
|
5574
|
+
...y(s),
|
|
5575
|
+
injectInto(m, {
|
|
5576
|
+
reducerPath: E,
|
|
5589
5577
|
...k
|
|
5590
5578
|
} = {}) {
|
|
5591
|
-
const P =
|
|
5592
|
-
return
|
|
5579
|
+
const P = E ?? s;
|
|
5580
|
+
return m.inject({
|
|
5593
5581
|
reducerPath: P,
|
|
5594
|
-
reducer:
|
|
5582
|
+
reducer: S
|
|
5595
5583
|
}, k), {
|
|
5596
5584
|
...b,
|
|
5597
|
-
...
|
|
5585
|
+
...y(P, !0)
|
|
5598
5586
|
};
|
|
5599
5587
|
}
|
|
5600
5588
|
};
|
|
@@ -5694,14 +5682,14 @@ function F(e) {
|
|
|
5694
5682
|
}
|
|
5695
5683
|
const Sf = {
|
|
5696
5684
|
cardPosition: "transit-to-home"
|
|
5697
|
-
},
|
|
5685
|
+
}, Xs = gf({
|
|
5698
5686
|
name: "navigation",
|
|
5699
5687
|
initialState: Sf,
|
|
5700
5688
|
reducers: {
|
|
5701
5689
|
setCardState: (e, t) => (e.cardPosition = t.payload.state, e)
|
|
5702
5690
|
}
|
|
5703
|
-
}), { setCardState: Tf } =
|
|
5704
|
-
navigation:
|
|
5691
|
+
}), { setCardState: Tf } = Xs.actions, xf = Is({
|
|
5692
|
+
navigation: Xs.reducer
|
|
5705
5693
|
}), Df = lf({
|
|
5706
5694
|
reducer: xf
|
|
5707
5695
|
});
|