ymy-components 0.0.42 → 0.0.44
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/animations/AnimatedText.d.ts +3 -1
- package/dist/index.cjs.js +40 -40
- package/dist/index.es.js +898 -894
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Fn from "react";
|
|
2
|
-
import
|
|
2
|
+
import re, { useState as Gt, useRef as Pe, useEffect as gt, useLayoutEffect as Oa, forwardRef as Pa, useCallback as Na, useContext as Ln, useMemo as rr, useDebugValue as Si, createElement as Ca } from "react";
|
|
3
3
|
import { unstable_batchedUpdates as Ra } from "react-dom";
|
|
4
|
-
var nr = { exports: {} },
|
|
4
|
+
var nr = { exports: {} }, xt = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
7
7
|
* react-jsx-runtime.production.min.js
|
|
@@ -13,9 +13,9 @@ var nr = { exports: {} }, kt = {};
|
|
|
13
13
|
*/
|
|
14
14
|
var xi;
|
|
15
15
|
function Aa() {
|
|
16
|
-
if (xi) return
|
|
16
|
+
if (xi) return xt;
|
|
17
17
|
xi = 1;
|
|
18
|
-
var e =
|
|
18
|
+
var e = re, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
19
19
|
function s(a, u, l) {
|
|
20
20
|
var f, d = {}, h = null, p = null;
|
|
21
21
|
l !== void 0 && (h = "" + l), u.key !== void 0 && (h = "" + u.key), u.ref !== void 0 && (p = u.ref);
|
|
@@ -23,9 +23,9 @@ function Aa() {
|
|
|
23
23
|
if (a && a.defaultProps) for (f in u = a.defaultProps, u) d[f] === void 0 && (d[f] = u[f]);
|
|
24
24
|
return { $$typeof: t, type: a, key: h, ref: p, props: d, _owner: i.current };
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return xt.Fragment = r, xt.jsx = s, xt.jsxs = s, xt;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
28
|
+
var kt = {};
|
|
29
29
|
/**
|
|
30
30
|
* @license React
|
|
31
31
|
* react-jsx-runtime.development.js
|
|
@@ -38,51 +38,51 @@ var Ot = {};
|
|
|
38
38
|
var ki;
|
|
39
39
|
function Ta() {
|
|
40
40
|
return ki || (ki = 1, process.env.NODE_ENV !== "production" && function() {
|
|
41
|
-
var e =
|
|
41
|
+
var e = re, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), a = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), v = Symbol.iterator, E = "@@iterator";
|
|
42
42
|
function w(c) {
|
|
43
43
|
if (c === null || typeof c != "object")
|
|
44
44
|
return null;
|
|
45
|
-
var
|
|
46
|
-
return typeof
|
|
45
|
+
var g = v && c[v] || c[E];
|
|
46
|
+
return typeof g == "function" ? g : null;
|
|
47
47
|
}
|
|
48
48
|
var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
49
49
|
function b(c) {
|
|
50
50
|
{
|
|
51
|
-
for (var
|
|
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 m(c,
|
|
56
|
+
function m(c, g, x) {
|
|
57
57
|
{
|
|
58
58
|
var N = y.ReactDebugCurrentFrame, V = N.getStackAddendum();
|
|
59
|
-
V !== "" && (
|
|
59
|
+
V !== "" && (g += "%s", x = x.concat([V]));
|
|
60
60
|
var z = x.map(function(I) {
|
|
61
61
|
return String(I);
|
|
62
62
|
});
|
|
63
|
-
z.unshift("Warning: " +
|
|
63
|
+
z.unshift("Warning: " + g), Function.prototype.apply.call(console[c], console, z);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
var S = !1, O = !1, P = !1, k = !1,
|
|
66
|
+
var S = !1, O = !1, P = !1, k = !1, j = !1, M;
|
|
67
67
|
M = Symbol.for("react.module.reference");
|
|
68
|
-
function
|
|
69
|
-
return !!(typeof c == "string" || typeof c == "function" || c === n || c === o ||
|
|
68
|
+
function ne(c) {
|
|
69
|
+
return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || j || c === i || c === l || c === f || k || c === p || S || O || P || typeof c == "object" && c !== null && (c.$$typeof === h || c.$$typeof === d || c.$$typeof === s || c.$$typeof === a || c.$$typeof === u || // This needs to include all possible module reference object
|
|
70
70
|
// types supported by any Flight configuration anywhere since
|
|
71
71
|
// we don't know which Flight build this will end up being used
|
|
72
72
|
// with.
|
|
73
73
|
c.$$typeof === M || c.getModuleId !== void 0));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Y(c, g, x) {
|
|
76
76
|
var N = c.displayName;
|
|
77
77
|
if (N)
|
|
78
78
|
return N;
|
|
79
|
-
var V =
|
|
79
|
+
var V = g.displayName || g.name || "";
|
|
80
80
|
return V !== "" ? x + "(" + V + ")" : x;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function ie(c) {
|
|
83
83
|
return c.displayName || "Context";
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function q(c) {
|
|
86
86
|
if (c == null)
|
|
87
87
|
return null;
|
|
88
88
|
if (typeof c.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
|
|
@@ -106,20 +106,20 @@ function Ta() {
|
|
|
106
106
|
if (typeof c == "object")
|
|
107
107
|
switch (c.$$typeof) {
|
|
108
108
|
case a:
|
|
109
|
-
var
|
|
110
|
-
return
|
|
109
|
+
var g = c;
|
|
110
|
+
return ie(g) + ".Consumer";
|
|
111
111
|
case s:
|
|
112
112
|
var x = c;
|
|
113
|
-
return
|
|
113
|
+
return ie(x._context) + ".Provider";
|
|
114
114
|
case u:
|
|
115
|
-
return
|
|
115
|
+
return Y(c, c.render, "ForwardRef");
|
|
116
116
|
case d:
|
|
117
117
|
var N = c.displayName || null;
|
|
118
|
-
return N !== null ? N :
|
|
118
|
+
return N !== null ? N : q(c.type) || "Memo";
|
|
119
119
|
case h: {
|
|
120
120
|
var V = c, z = V._payload, I = V._init;
|
|
121
121
|
try {
|
|
122
|
-
return
|
|
122
|
+
return q(I(z));
|
|
123
123
|
} catch {
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
@@ -127,14 +127,14 @@ function Ta() {
|
|
|
127
127
|
}
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
130
|
-
var
|
|
130
|
+
var he = Object.assign, Fe = 0, Zt, et, _t, ce, Ce, Re, Q;
|
|
131
131
|
function tt() {
|
|
132
132
|
}
|
|
133
133
|
tt.__reactDisabledLog = !0;
|
|
134
|
-
function
|
|
134
|
+
function Et() {
|
|
135
135
|
{
|
|
136
136
|
if (Fe === 0) {
|
|
137
|
-
Zt = console.log, et = console.info,
|
|
137
|
+
Zt = console.log, et = console.info, _t = console.warn, ce = console.error, Ce = console.group, Re = console.groupCollapsed, Q = console.groupEnd;
|
|
138
138
|
var c = {
|
|
139
139
|
configurable: !0,
|
|
140
140
|
enumerable: !0,
|
|
@@ -163,34 +163,34 @@ function Ta() {
|
|
|
163
163
|
writable: !0
|
|
164
164
|
};
|
|
165
165
|
Object.defineProperties(console, {
|
|
166
|
-
log:
|
|
166
|
+
log: he({}, c, {
|
|
167
167
|
value: Zt
|
|
168
168
|
}),
|
|
169
|
-
info:
|
|
169
|
+
info: he({}, c, {
|
|
170
170
|
value: et
|
|
171
171
|
}),
|
|
172
|
-
warn:
|
|
173
|
-
value:
|
|
172
|
+
warn: he({}, c, {
|
|
173
|
+
value: _t
|
|
174
174
|
}),
|
|
175
|
-
error:
|
|
176
|
-
value:
|
|
175
|
+
error: he({}, c, {
|
|
176
|
+
value: ce
|
|
177
177
|
}),
|
|
178
|
-
group:
|
|
178
|
+
group: he({}, c, {
|
|
179
179
|
value: Ce
|
|
180
180
|
}),
|
|
181
|
-
groupCollapsed:
|
|
181
|
+
groupCollapsed: he({}, c, {
|
|
182
182
|
value: Re
|
|
183
183
|
}),
|
|
184
|
-
groupEnd:
|
|
185
|
-
value:
|
|
184
|
+
groupEnd: he({}, c, {
|
|
185
|
+
value: Q
|
|
186
186
|
})
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
189
|
Fe < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
var
|
|
193
|
-
function pe(c,
|
|
192
|
+
var xe = y.ReactCurrentDispatcher, Ae;
|
|
193
|
+
function pe(c, g, x) {
|
|
194
194
|
{
|
|
195
195
|
if (Ae === void 0)
|
|
196
196
|
try {
|
|
@@ -208,7 +208,7 @@ function Ta() {
|
|
|
208
208
|
var nt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
209
209
|
Te = new nt();
|
|
210
210
|
}
|
|
211
|
-
function ye(c,
|
|
211
|
+
function ye(c, g) {
|
|
212
212
|
if (!c || me)
|
|
213
213
|
return "";
|
|
214
214
|
{
|
|
@@ -221,9 +221,9 @@ function Ta() {
|
|
|
221
221
|
var V = Error.prepareStackTrace;
|
|
222
222
|
Error.prepareStackTrace = void 0;
|
|
223
223
|
var z;
|
|
224
|
-
z =
|
|
224
|
+
z = xe.current, xe.current = null, Et();
|
|
225
225
|
try {
|
|
226
|
-
if (
|
|
226
|
+
if (g) {
|
|
227
227
|
var I = function() {
|
|
228
228
|
throw Error();
|
|
229
229
|
};
|
|
@@ -234,63 +234,63 @@ function Ta() {
|
|
|
234
234
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
235
235
|
try {
|
|
236
236
|
Reflect.construct(I, []);
|
|
237
|
-
} catch (
|
|
238
|
-
N =
|
|
237
|
+
} catch (J) {
|
|
238
|
+
N = J;
|
|
239
239
|
}
|
|
240
240
|
Reflect.construct(c, [], I);
|
|
241
241
|
} else {
|
|
242
242
|
try {
|
|
243
243
|
I.call();
|
|
244
|
-
} catch (
|
|
245
|
-
N =
|
|
244
|
+
} catch (J) {
|
|
245
|
+
N = J;
|
|
246
246
|
}
|
|
247
247
|
c.call(I.prototype);
|
|
248
248
|
}
|
|
249
249
|
} else {
|
|
250
250
|
try {
|
|
251
251
|
throw Error();
|
|
252
|
-
} catch (
|
|
253
|
-
N =
|
|
252
|
+
} catch (J) {
|
|
253
|
+
N = J;
|
|
254
254
|
}
|
|
255
255
|
c();
|
|
256
256
|
}
|
|
257
|
-
} catch (
|
|
258
|
-
if (
|
|
259
|
-
for (var A =
|
|
260
|
-
`),
|
|
261
|
-
`),
|
|
262
|
-
|
|
263
|
-
for (;
|
|
264
|
-
if (A[
|
|
265
|
-
if (
|
|
257
|
+
} catch (J) {
|
|
258
|
+
if (J && N && typeof J.stack == "string") {
|
|
259
|
+
for (var A = J.stack.split(`
|
|
260
|
+
`), X = N.stack.split(`
|
|
261
|
+
`), B = A.length - 1, W = X.length - 1; B >= 1 && W >= 0 && A[B] !== X[W]; )
|
|
262
|
+
W--;
|
|
263
|
+
for (; B >= 1 && W >= 0; B--, W--)
|
|
264
|
+
if (A[B] !== X[W]) {
|
|
265
|
+
if (B !== 1 || W !== 1)
|
|
266
266
|
do
|
|
267
|
-
if (
|
|
268
|
-
var
|
|
269
|
-
` + A[
|
|
270
|
-
return c.displayName &&
|
|
267
|
+
if (B--, W--, W < 0 || A[B] !== X[W]) {
|
|
268
|
+
var ue = `
|
|
269
|
+
` + A[B].replace(" at new ", " at ");
|
|
270
|
+
return c.displayName && ue.includes("<anonymous>") && (ue = ue.replace("<anonymous>", c.displayName)), typeof c == "function" && Te.set(c, ue), ue;
|
|
271
271
|
}
|
|
272
|
-
while (
|
|
272
|
+
while (B >= 1 && W >= 0);
|
|
273
273
|
break;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
} finally {
|
|
277
|
-
me = !1,
|
|
277
|
+
me = !1, xe.current = z, rt(), Error.prepareStackTrace = V;
|
|
278
278
|
}
|
|
279
279
|
var ot = c ? c.displayName || c.name : "", Le = ot ? pe(ot) : "";
|
|
280
280
|
return typeof c == "function" && Te.set(c, Le), Le;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function ra(c, g, x) {
|
|
283
283
|
return ye(c, !1);
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
var
|
|
287
|
-
return !!(
|
|
285
|
+
function na(c) {
|
|
286
|
+
var g = c.prototype;
|
|
287
|
+
return !!(g && g.isReactComponent);
|
|
288
288
|
}
|
|
289
|
-
function er(c,
|
|
289
|
+
function er(c, g, x) {
|
|
290
290
|
if (c == null)
|
|
291
291
|
return "";
|
|
292
292
|
if (typeof c == "function")
|
|
293
|
-
return ye(c,
|
|
293
|
+
return ye(c, na(c));
|
|
294
294
|
if (typeof c == "string")
|
|
295
295
|
return pe(c);
|
|
296
296
|
switch (c) {
|
|
@@ -302,57 +302,57 @@ function Ta() {
|
|
|
302
302
|
if (typeof c == "object")
|
|
303
303
|
switch (c.$$typeof) {
|
|
304
304
|
case u:
|
|
305
|
-
return
|
|
305
|
+
return ra(c.render);
|
|
306
306
|
case d:
|
|
307
|
-
return er(c.type,
|
|
307
|
+
return er(c.type, g, x);
|
|
308
308
|
case h: {
|
|
309
309
|
var N = c, V = N._payload, z = N._init;
|
|
310
310
|
try {
|
|
311
|
-
return er(z(V),
|
|
311
|
+
return er(z(V), g, x);
|
|
312
312
|
} catch {
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
return "";
|
|
317
317
|
}
|
|
318
|
-
var
|
|
318
|
+
var St = Object.prototype.hasOwnProperty, ui = {}, li = y.ReactDebugCurrentFrame;
|
|
319
319
|
function tr(c) {
|
|
320
320
|
if (c) {
|
|
321
|
-
var
|
|
321
|
+
var g = c._owner, x = er(c.type, c._source, g ? g.type : null);
|
|
322
322
|
li.setExtraStackFrame(x);
|
|
323
323
|
} else
|
|
324
324
|
li.setExtraStackFrame(null);
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function ia(c, g, x, N, V) {
|
|
327
327
|
{
|
|
328
|
-
var z = Function.call.bind(
|
|
328
|
+
var z = Function.call.bind(St);
|
|
329
329
|
for (var I in c)
|
|
330
330
|
if (z(c, I)) {
|
|
331
331
|
var A = void 0;
|
|
332
332
|
try {
|
|
333
333
|
if (typeof c[I] != "function") {
|
|
334
|
-
var
|
|
335
|
-
throw
|
|
334
|
+
var X = Error((N || "React class") + ": " + x + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
335
|
+
throw X.name = "Invariant Violation", X;
|
|
336
336
|
}
|
|
337
|
-
A = c[I](
|
|
338
|
-
} catch (
|
|
339
|
-
A =
|
|
337
|
+
A = c[I](g, I, N, x, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
338
|
+
} catch (B) {
|
|
339
|
+
A = B;
|
|
340
340
|
}
|
|
341
341
|
A && !(A instanceof Error) && (tr(V), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", N || "React class", x, I, typeof A), tr(null)), A instanceof Error && !(A.message in ui) && (ui[A.message] = !0, tr(V), b("Failed %s type: %s", x, A.message), tr(null));
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
var
|
|
345
|
+
var oa = Array.isArray;
|
|
346
346
|
function Kr(c) {
|
|
347
|
-
return
|
|
347
|
+
return oa(c);
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function sa(c) {
|
|
350
350
|
{
|
|
351
|
-
var
|
|
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 aa(c) {
|
|
356
356
|
try {
|
|
357
357
|
return fi(c), !1;
|
|
358
358
|
} catch {
|
|
@@ -363,38 +363,38 @@ function Ta() {
|
|
|
363
363
|
return "" + c;
|
|
364
364
|
}
|
|
365
365
|
function di(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 (aa(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.", sa(c)), fi(c);
|
|
368
368
|
}
|
|
369
|
-
var hi = y.ReactCurrentOwner,
|
|
369
|
+
var hi = y.ReactCurrentOwner, ca = {
|
|
370
370
|
key: !0,
|
|
371
371
|
ref: !0,
|
|
372
372
|
__self: !0,
|
|
373
373
|
__source: !0
|
|
374
374
|
}, pi, mi;
|
|
375
|
-
function
|
|
376
|
-
if (
|
|
377
|
-
var
|
|
378
|
-
if (
|
|
375
|
+
function ua(c) {
|
|
376
|
+
if (St.call(c, "ref")) {
|
|
377
|
+
var g = Object.getOwnPropertyDescriptor(c, "ref").get;
|
|
378
|
+
if (g && g.isReactWarning)
|
|
379
379
|
return !1;
|
|
380
380
|
}
|
|
381
381
|
return c.ref !== void 0;
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
if (
|
|
385
|
-
var
|
|
386
|
-
if (
|
|
383
|
+
function la(c) {
|
|
384
|
+
if (St.call(c, "key")) {
|
|
385
|
+
var g = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
386
|
+
if (g && g.isReactWarning)
|
|
387
387
|
return !1;
|
|
388
388
|
}
|
|
389
389
|
return c.key !== void 0;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function fa(c, g) {
|
|
392
392
|
typeof c.ref == "string" && hi.current;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function da(c, g) {
|
|
395
395
|
{
|
|
396
396
|
var x = function() {
|
|
397
|
-
pi || (pi = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
397
|
+
pi || (pi = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", g));
|
|
398
398
|
};
|
|
399
399
|
x.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
400
400
|
get: x,
|
|
@@ -402,10 +402,10 @@ function Ta() {
|
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function ha(c, g) {
|
|
406
406
|
{
|
|
407
407
|
var x = function() {
|
|
408
|
-
mi || (mi = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
408
|
+
mi || (mi = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", g));
|
|
409
409
|
};
|
|
410
410
|
x.isReactWarning = !0, Object.defineProperty(c, "ref", {
|
|
411
411
|
get: x,
|
|
@@ -413,13 +413,13 @@ function Ta() {
|
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
var
|
|
416
|
+
var pa = function(c, g, x, N, V, z, I) {
|
|
417
417
|
var A = {
|
|
418
418
|
// This tag allows us to uniquely identify this as a React Element
|
|
419
419
|
$$typeof: t,
|
|
420
420
|
// Built-in properties that belong on the element
|
|
421
421
|
type: c,
|
|
422
|
-
key:
|
|
422
|
+
key: g,
|
|
423
423
|
ref: x,
|
|
424
424
|
props: I,
|
|
425
425
|
// Record the component responsible for creating this element.
|
|
@@ -442,28 +442,28 @@ function Ta() {
|
|
|
442
442
|
value: V
|
|
443
443
|
}), Object.freeze && (Object.freeze(A.props), Object.freeze(A)), A;
|
|
444
444
|
};
|
|
445
|
-
function
|
|
445
|
+
function ma(c, g, x, N, V) {
|
|
446
446
|
{
|
|
447
|
-
var z, I = {}, A = null,
|
|
448
|
-
x !== void 0 && (di(x), A = "" + x),
|
|
449
|
-
for (z in
|
|
450
|
-
|
|
447
|
+
var z, I = {}, A = null, X = null;
|
|
448
|
+
x !== void 0 && (di(x), A = "" + x), la(g) && (di(g.key), A = "" + g.key), ua(g) && (X = g.ref, fa(g, V));
|
|
449
|
+
for (z in g)
|
|
450
|
+
St.call(g, z) && !ca.hasOwnProperty(z) && (I[z] = g[z]);
|
|
451
451
|
if (c && c.defaultProps) {
|
|
452
|
-
var
|
|
453
|
-
for (z in
|
|
454
|
-
I[z] === void 0 && (I[z] =
|
|
452
|
+
var B = c.defaultProps;
|
|
453
|
+
for (z in B)
|
|
454
|
+
I[z] === void 0 && (I[z] = B[z]);
|
|
455
455
|
}
|
|
456
|
-
if (A ||
|
|
457
|
-
var
|
|
458
|
-
A &&
|
|
456
|
+
if (A || X) {
|
|
457
|
+
var W = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
|
|
458
|
+
A && da(I, W), X && ha(I, W);
|
|
459
459
|
}
|
|
460
|
-
return
|
|
460
|
+
return pa(c, A, X, V, N, hi.current, I);
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
var Qr = y.ReactCurrentOwner, yi = y.ReactDebugCurrentFrame;
|
|
464
464
|
function it(c) {
|
|
465
465
|
if (c) {
|
|
466
|
-
var
|
|
466
|
+
var g = c._owner, x = er(c.type, c._source, g ? g.type : null);
|
|
467
467
|
yi.setExtraStackFrame(x);
|
|
468
468
|
} else
|
|
469
469
|
yi.setExtraStackFrame(null);
|
|
@@ -476,7 +476,7 @@ function Ta() {
|
|
|
476
476
|
function gi() {
|
|
477
477
|
{
|
|
478
478
|
if (Qr.current) {
|
|
479
|
-
var c =
|
|
479
|
+
var c = q(Qr.current.type);
|
|
480
480
|
if (c)
|
|
481
481
|
return `
|
|
482
482
|
|
|
@@ -485,43 +485,43 @@ Check the render method of \`` + c + "`.";
|
|
|
485
485
|
return "";
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function ya(c) {
|
|
489
489
|
return "";
|
|
490
490
|
}
|
|
491
491
|
var vi = {};
|
|
492
|
-
function
|
|
492
|
+
function ga(c) {
|
|
493
493
|
{
|
|
494
|
-
var
|
|
495
|
-
if (!
|
|
494
|
+
var g = gi();
|
|
495
|
+
if (!g) {
|
|
496
496
|
var x = typeof c == "string" ? c : c.displayName || c.name;
|
|
497
|
-
x && (
|
|
497
|
+
x && (g = `
|
|
498
498
|
|
|
499
499
|
Check the top-level render call using <` + x + ">.");
|
|
500
500
|
}
|
|
501
|
-
return
|
|
501
|
+
return g;
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
function bi(c,
|
|
504
|
+
function bi(c, g) {
|
|
505
505
|
{
|
|
506
506
|
if (!c._store || c._store.validated || c.key != null)
|
|
507
507
|
return;
|
|
508
508
|
c._store.validated = !0;
|
|
509
|
-
var x =
|
|
509
|
+
var x = ga(g);
|
|
510
510
|
if (vi[x])
|
|
511
511
|
return;
|
|
512
512
|
vi[x] = !0;
|
|
513
513
|
var N = "";
|
|
514
|
-
c && c._owner && c._owner !== Qr.current && (N = " It was passed a child from " +
|
|
514
|
+
c && c._owner && c._owner !== Qr.current && (N = " It was passed a child from " + q(c._owner.type) + "."), it(c), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, N), it(null);
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
function wi(c,
|
|
517
|
+
function wi(c, g) {
|
|
518
518
|
{
|
|
519
519
|
if (typeof c != "object")
|
|
520
520
|
return;
|
|
521
521
|
if (Kr(c))
|
|
522
522
|
for (var x = 0; x < c.length; x++) {
|
|
523
523
|
var N = c[x];
|
|
524
|
-
Jr(N) && bi(N,
|
|
524
|
+
Jr(N) && bi(N, g);
|
|
525
525
|
}
|
|
526
526
|
else if (Jr(c))
|
|
527
527
|
c._store && (c._store.validated = !0);
|
|
@@ -529,39 +529,39 @@ Check the top-level render call using <` + x + ">.");
|
|
|
529
529
|
var V = w(c);
|
|
530
530
|
if (typeof V == "function" && V !== c.entries)
|
|
531
531
|
for (var z = V.call(c), I; !(I = z.next()).done; )
|
|
532
|
-
Jr(I.value) && bi(I.value,
|
|
532
|
+
Jr(I.value) && bi(I.value, g);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function va(c) {
|
|
537
537
|
{
|
|
538
|
-
var
|
|
539
|
-
if (
|
|
538
|
+
var g = c.type;
|
|
539
|
+
if (g == null || typeof g == "string")
|
|
540
540
|
return;
|
|
541
541
|
var x;
|
|
542
|
-
if (typeof
|
|
543
|
-
x =
|
|
544
|
-
else if (typeof
|
|
542
|
+
if (typeof g == "function")
|
|
543
|
+
x = g.propTypes;
|
|
544
|
+
else if (typeof g == "object" && (g.$$typeof === u || // Note: Memo only checks outer props here.
|
|
545
545
|
// Inner props are checked in the reconciler.
|
|
546
|
-
|
|
547
|
-
x =
|
|
546
|
+
g.$$typeof === d))
|
|
547
|
+
x = g.propTypes;
|
|
548
548
|
else
|
|
549
549
|
return;
|
|
550
550
|
if (x) {
|
|
551
|
-
var N =
|
|
552
|
-
|
|
553
|
-
} else if (
|
|
551
|
+
var N = q(g);
|
|
552
|
+
ia(x, c.props, "prop", N, c);
|
|
553
|
+
} else if (g.PropTypes !== void 0 && !Xr) {
|
|
554
554
|
Xr = !0;
|
|
555
|
-
var V =
|
|
555
|
+
var V = q(g);
|
|
556
556
|
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", V || "Unknown");
|
|
557
557
|
}
|
|
558
|
-
typeof
|
|
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 ba(c) {
|
|
562
562
|
{
|
|
563
|
-
for (var
|
|
564
|
-
var N =
|
|
563
|
+
for (var g = Object.keys(c.props), x = 0; x < g.length; x++) {
|
|
564
|
+
var N = g[x];
|
|
565
565
|
if (N !== "children" && N !== "key") {
|
|
566
566
|
it(c), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", N), it(null);
|
|
567
567
|
break;
|
|
@@ -571,83 +571,83 @@ Check the top-level render call using <` + x + ">.");
|
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
var _i = {};
|
|
574
|
-
function Ei(c,
|
|
574
|
+
function Ei(c, g, x, N, V, z) {
|
|
575
575
|
{
|
|
576
|
-
var I =
|
|
576
|
+
var I = ne(c);
|
|
577
577
|
if (!I) {
|
|
578
578
|
var A = "";
|
|
579
579
|
(c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (A += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
580
|
-
var
|
|
581
|
-
|
|
582
|
-
var
|
|
583
|
-
c === null ?
|
|
580
|
+
var X = ya();
|
|
581
|
+
X ? A += X : A += gi();
|
|
582
|
+
var B;
|
|
583
|
+
c === null ? B = "null" : Kr(c) ? B = "array" : c !== void 0 && c.$$typeof === t ? (B = "<" + (q(c.type) || "Unknown") + " />", A = " Did you accidentally export a JSX literal instead of a component?") : B = 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", B, A);
|
|
584
584
|
}
|
|
585
|
-
var
|
|
586
|
-
if (
|
|
587
|
-
return
|
|
585
|
+
var W = ma(c, g, x, V, z);
|
|
586
|
+
if (W == null)
|
|
587
|
+
return W;
|
|
588
588
|
if (I) {
|
|
589
|
-
var
|
|
590
|
-
if (
|
|
589
|
+
var ue = g.children;
|
|
590
|
+
if (ue !== void 0)
|
|
591
591
|
if (N)
|
|
592
|
-
if (Kr(
|
|
593
|
-
for (var ot = 0; ot <
|
|
594
|
-
wi(
|
|
595
|
-
Object.freeze && Object.freeze(
|
|
592
|
+
if (Kr(ue)) {
|
|
593
|
+
for (var ot = 0; ot < ue.length; ot++)
|
|
594
|
+
wi(ue[ot], c);
|
|
595
|
+
Object.freeze && Object.freeze(ue);
|
|
596
596
|
} else
|
|
597
597
|
b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
598
598
|
else
|
|
599
|
-
wi(
|
|
599
|
+
wi(ue, c);
|
|
600
600
|
}
|
|
601
|
-
if (
|
|
602
|
-
var Le =
|
|
603
|
-
return
|
|
604
|
-
}), Zr =
|
|
601
|
+
if (St.call(g, "key")) {
|
|
602
|
+
var Le = q(c), J = Object.keys(g).filter(function(ka) {
|
|
603
|
+
return ka !== "key";
|
|
604
|
+
}), Zr = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
605
605
|
if (!_i[Le + Zr]) {
|
|
606
|
-
var
|
|
606
|
+
var xa = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
|
|
607
607
|
b(`A props object containing a "key" prop is being spread into JSX:
|
|
608
608
|
let props = %s;
|
|
609
609
|
<%s {...props} />
|
|
610
610
|
React keys must be passed directly to JSX without using spread:
|
|
611
611
|
let props = %s;
|
|
612
|
-
<%s key={someKey} {...props} />`, Zr, Le,
|
|
612
|
+
<%s key={someKey} {...props} />`, Zr, Le, xa, Le), _i[Le + Zr] = !0;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
return c === n ?
|
|
615
|
+
return c === n ? ba(W) : va(W), W;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
function
|
|
619
|
-
return Ei(c,
|
|
618
|
+
function wa(c, g, x) {
|
|
619
|
+
return Ei(c, g, x, !0);
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
return Ei(c,
|
|
621
|
+
function _a(c, g, x) {
|
|
622
|
+
return Ei(c, g, x, !1);
|
|
623
623
|
}
|
|
624
|
-
var
|
|
625
|
-
|
|
626
|
-
}()),
|
|
624
|
+
var Ea = _a, Sa = wa;
|
|
625
|
+
kt.Fragment = n, kt.jsx = Ea, kt.jsxs = Sa;
|
|
626
|
+
}()), kt;
|
|
627
627
|
}
|
|
628
628
|
var Oi;
|
|
629
629
|
function Ia() {
|
|
630
630
|
return Oi || (Oi = 1, process.env.NODE_ENV === "production" ? nr.exports = Aa() : nr.exports = Ta()), nr.exports;
|
|
631
631
|
}
|
|
632
|
-
var
|
|
632
|
+
var D = Ia(), Bn = Qt(), C = (e) => Kt(e, Bn), Un = Qt();
|
|
633
633
|
C.write = (e) => Kt(e, Un);
|
|
634
634
|
var Ar = Qt();
|
|
635
635
|
C.onStart = (e) => Kt(e, Ar);
|
|
636
|
-
var Wn = Qt();
|
|
637
|
-
C.onFrame = (e) => Kt(e, Wn);
|
|
638
636
|
var qn = Qt();
|
|
639
|
-
C.
|
|
637
|
+
C.onFrame = (e) => Kt(e, qn);
|
|
638
|
+
var Wn = Qt();
|
|
639
|
+
C.onFinish = (e) => Kt(e, Wn);
|
|
640
640
|
var ct = [];
|
|
641
641
|
C.setTimeout = (e, t) => {
|
|
642
642
|
const r = C.now() + t, n = () => {
|
|
643
643
|
const o = ct.findIndex((s) => s.cancel == n);
|
|
644
644
|
~o && ct.splice(o, 1), $e -= ~o ? 1 : 0;
|
|
645
645
|
}, i = { time: r, handler: e, cancel: n };
|
|
646
|
-
return ct.splice(
|
|
646
|
+
return ct.splice(ko(r), 0, i), $e += 1, Oo(), i;
|
|
647
647
|
};
|
|
648
|
-
var
|
|
648
|
+
var ko = (e) => ~(~ct.findIndex((t) => t.time > e) || ~ct.length);
|
|
649
649
|
C.cancel = (e) => {
|
|
650
|
-
Ar.delete(e),
|
|
650
|
+
Ar.delete(e), qn.delete(e), Wn.delete(e), Bn.delete(e), Un.delete(e);
|
|
651
651
|
};
|
|
652
652
|
C.sync = (e) => {
|
|
653
653
|
pn = !0, C.batchedUpdates(e), pn = !1;
|
|
@@ -681,30 +681,30 @@ 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
|
+
) : No();
|
|
685
685
|
};
|
|
686
686
|
var Ve = -1, $e = 0, pn = !1;
|
|
687
687
|
function Kt(e, t) {
|
|
688
|
-
pn ? (t.delete(e), e(0)) : (t.add(e),
|
|
688
|
+
pn ? (t.delete(e), e(0)) : (t.add(e), Oo());
|
|
689
689
|
}
|
|
690
|
-
function
|
|
691
|
-
Ve < 0 && (Ve = 0, C.frameLoop !== "demand" && Hn(
|
|
690
|
+
function Oo() {
|
|
691
|
+
Ve < 0 && (Ve = 0, C.frameLoop !== "demand" && Hn(Po));
|
|
692
692
|
}
|
|
693
693
|
function Da() {
|
|
694
694
|
Ve = -1;
|
|
695
695
|
}
|
|
696
|
-
function
|
|
697
|
-
~Ve && (Hn(
|
|
696
|
+
function Po() {
|
|
697
|
+
~Ve && (Hn(Po), C.batchedUpdates(No));
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function No() {
|
|
700
700
|
const e = Ve;
|
|
701
701
|
Ve = C.now();
|
|
702
|
-
const t =
|
|
703
|
-
if (t && (
|
|
702
|
+
const t = ko(Ve);
|
|
703
|
+
if (t && (Co(ct.splice(0, t), (r) => r.handler()), $e -= t), !$e) {
|
|
704
704
|
Da();
|
|
705
705
|
return;
|
|
706
706
|
}
|
|
707
|
-
Ar.flush(), Bn.flush(e ? Math.min(64, Ve - e) : 16.667),
|
|
707
|
+
Ar.flush(), Bn.flush(e ? Math.min(64, Ve - e) : 16.667), qn.flush(), Un.flush(), Wn.flush();
|
|
708
708
|
}
|
|
709
709
|
function Qt() {
|
|
710
710
|
let e = /* @__PURE__ */ new Set(), t = e;
|
|
@@ -716,11 +716,11 @@ function Qt() {
|
|
|
716
716
|
return $e -= t == e && e.has(r) ? 1 : 0, e.delete(r);
|
|
717
717
|
},
|
|
718
718
|
flush(r) {
|
|
719
|
-
t.size && (e = /* @__PURE__ */ new Set(), $e -= t.size,
|
|
719
|
+
t.size && (e = /* @__PURE__ */ new Set(), $e -= t.size, Co(t, (n) => n(r) && e.add(n)), $e += e.size, t = e);
|
|
720
720
|
}
|
|
721
721
|
};
|
|
722
722
|
}
|
|
723
|
-
function
|
|
723
|
+
function Co(e, t) {
|
|
724
724
|
e.forEach((r) => {
|
|
725
725
|
try {
|
|
726
726
|
t(r);
|
|
@@ -737,8 +737,8 @@ Va(we, {
|
|
|
737
737
|
assign: () => Ma,
|
|
738
738
|
colors: () => Me,
|
|
739
739
|
createStringInterpolator: () => Gn,
|
|
740
|
-
skipAnimation: () =>
|
|
741
|
-
to: () =>
|
|
740
|
+
skipAnimation: () => Ao,
|
|
741
|
+
to: () => Ro,
|
|
742
742
|
willAdvance: () => Kn
|
|
743
743
|
});
|
|
744
744
|
function mn() {
|
|
@@ -751,7 +751,7 @@ var $a = (e, t, r) => Object.defineProperty(e, t, { value: r, writable: !0, conf
|
|
|
751
751
|
num: (e) => typeof e == "number",
|
|
752
752
|
und: (e) => e === void 0
|
|
753
753
|
};
|
|
754
|
-
function
|
|
754
|
+
function ke(e, t) {
|
|
755
755
|
if (_.arr(e)) {
|
|
756
756
|
if (!_.arr(t) || e.length !== t.length)
|
|
757
757
|
return !1;
|
|
@@ -763,7 +763,7 @@ function Oe(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}`);
|
|
@@ -772,22 +772,22 @@ function xe(e, t, r) {
|
|
|
772
772
|
for (const n in e)
|
|
773
773
|
e.hasOwnProperty(n) && t.call(r, e[n], n);
|
|
774
774
|
}
|
|
775
|
-
var
|
|
776
|
-
function
|
|
775
|
+
var oe = (e) => _.und(e) ? [] : _.arr(e) ? e : [e];
|
|
776
|
+
function Tt(e, t) {
|
|
777
777
|
if (e.size) {
|
|
778
778
|
const r = Array.from(e);
|
|
779
779
|
e.clear(), T(r, t);
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
|
-
var
|
|
783
|
-
e.to && (
|
|
784
|
-
},
|
|
782
|
+
var Ct = (e, ...t) => Tt(e, (r) => r(...t)), Yn = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), Gn, Ro, Me = null, Ao = !1, Kn = mn, Ma = (e) => {
|
|
783
|
+
e.to && (Ro = e.to), e.now && (C.now = e.now), e.colors !== void 0 && (Me = e.colors), e.skipAnimation != null && (Ao = e.skipAnimation), e.createStringInterpolator && (Gn = e.createStringInterpolator), e.requestAnimationFrame && C.use(e.requestAnimationFrame), e.batchedUpdates && (C.batchedUpdates = e.batchedUpdates), e.willAdvance && (Kn = e.willAdvance), e.frameLoop && (C.frameLoop = e.frameLoop);
|
|
784
|
+
}, It = /* @__PURE__ */ new Set(), fe = [], en = [], vr = 0, Tr = {
|
|
785
785
|
get idle() {
|
|
786
|
-
return !
|
|
786
|
+
return !It.size && !fe.length;
|
|
787
787
|
},
|
|
788
788
|
/** Advance the given animation on every frame until idle. */
|
|
789
789
|
start(e) {
|
|
790
|
-
vr > e.priority ? (
|
|
790
|
+
vr > e.priority ? (It.add(e), C.onStart(za)) : (To(e), C(yn));
|
|
791
791
|
},
|
|
792
792
|
/** Advance all animations by the given time. */
|
|
793
793
|
advance: yn,
|
|
@@ -796,8 +796,8 @@ var Rt = (e, ...t) => It(e, (r) => r(...t)), Yn = () => typeof window > "u" || !
|
|
|
796
796
|
if (vr)
|
|
797
797
|
C.onFrame(() => Tr.sort(e));
|
|
798
798
|
else {
|
|
799
|
-
const t =
|
|
800
|
-
~t && (
|
|
799
|
+
const t = fe.indexOf(e);
|
|
800
|
+
~t && (fe.splice(t, 1), Io(e));
|
|
801
801
|
}
|
|
802
802
|
},
|
|
803
803
|
/**
|
|
@@ -806,29 +806,29 @@ var Rt = (e, ...t) => It(e, (r) => r(...t)), Yn = () => typeof window > "u" || !
|
|
|
806
806
|
* ☠️ Never call this from within the frameloop.
|
|
807
807
|
*/
|
|
808
808
|
clear() {
|
|
809
|
-
|
|
809
|
+
fe = [], It.clear();
|
|
810
810
|
}
|
|
811
811
|
};
|
|
812
812
|
function za() {
|
|
813
|
-
|
|
813
|
+
It.forEach(To), It.clear(), C(yn);
|
|
814
814
|
}
|
|
815
|
-
function
|
|
816
|
-
|
|
815
|
+
function To(e) {
|
|
816
|
+
fe.includes(e) || Io(e);
|
|
817
817
|
}
|
|
818
|
-
function
|
|
819
|
-
|
|
820
|
-
Fa(
|
|
818
|
+
function Io(e) {
|
|
819
|
+
fe.splice(
|
|
820
|
+
Fa(fe, (t) => t.priority > e.priority),
|
|
821
821
|
0,
|
|
822
822
|
e
|
|
823
823
|
);
|
|
824
824
|
}
|
|
825
825
|
function yn(e) {
|
|
826
826
|
const t = en;
|
|
827
|
-
for (let r = 0; r <
|
|
828
|
-
const n =
|
|
827
|
+
for (let r = 0; r < fe.length; r++) {
|
|
828
|
+
const n = fe[r];
|
|
829
829
|
vr = n.priority, n.idle || (Kn(n), n.advance(e), n.idle || t.push(n));
|
|
830
830
|
}
|
|
831
|
-
return vr = 0, en =
|
|
831
|
+
return vr = 0, en = fe, en.length = 0, fe = t, fe.length > 0;
|
|
832
832
|
}
|
|
833
833
|
function Fa(e, t) {
|
|
834
834
|
const r = e.findIndex(t);
|
|
@@ -989,7 +989,7 @@ var La = {
|
|
|
989
989
|
function Ir(...e) {
|
|
990
990
|
return "\\(\\s*(" + e.join(")\\s*,\\s*(") + ")\\s*\\)";
|
|
991
991
|
}
|
|
992
|
-
var Ba = new RegExp("rgb" + Ir(ve, ve, ve)), Ua = new RegExp("rgba" + Ir(ve, ve, ve, ve)),
|
|
992
|
+
var Ba = new RegExp("rgb" + Ir(ve, ve, ve)), Ua = new RegExp("rgba" + Ir(ve, ve, ve, ve)), qa = new RegExp("hsl" + Ir(ve, br, br)), Wa = new RegExp(
|
|
993
993
|
"hsla" + Ir(ve, br, br, ve)
|
|
994
994
|
), Ha = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, Ya = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, Ga = /^#([0-9a-fA-F]{6})$/, Ka = /^#([0-9a-fA-F]{8})$/;
|
|
995
995
|
function Qa(e) {
|
|
@@ -1016,7 +1016,7 @@ function Qa(e) {
|
|
|
1016
1016
|
t[4] + t[4],
|
|
1017
1017
|
// a
|
|
1018
1018
|
16
|
|
1019
|
-
) >>> 0 : (t =
|
|
1019
|
+
) >>> 0 : (t = qa.exec(e)) ? (Pi(
|
|
1020
1020
|
Ni(t[1]),
|
|
1021
1021
|
// h
|
|
1022
1022
|
ir(t[2]),
|
|
@@ -1024,7 +1024,7 @@ function Qa(e) {
|
|
|
1024
1024
|
ir(t[3])
|
|
1025
1025
|
// l
|
|
1026
1026
|
) | 255) >>> // a
|
|
1027
|
-
0 : (t =
|
|
1027
|
+
0 : (t = Wa.exec(e)) ? (Pi(
|
|
1028
1028
|
Ni(t[1]),
|
|
1029
1029
|
// h
|
|
1030
1030
|
ir(t[2]),
|
|
@@ -1064,11 +1064,11 @@ function Ri(e) {
|
|
|
1064
1064
|
const r = (t & 4278190080) >>> 24, n = (t & 16711680) >>> 16, i = (t & 65280) >>> 8, o = (t & 255) / 255;
|
|
1065
1065
|
return `rgba(${r}, ${n}, ${i}, ${o})`;
|
|
1066
1066
|
}
|
|
1067
|
-
var
|
|
1067
|
+
var $t = (e, t, r) => {
|
|
1068
1068
|
if (_.fun(e))
|
|
1069
1069
|
return e;
|
|
1070
1070
|
if (_.arr(e))
|
|
1071
|
-
return
|
|
1071
|
+
return $t({
|
|
1072
1072
|
range: e,
|
|
1073
1073
|
output: t,
|
|
1074
1074
|
extrapolate: r
|
|
@@ -1112,42 +1112,42 @@ function Ja(e, t) {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
var Za = {
|
|
1114
1114
|
linear: (e) => e
|
|
1115
|
-
},
|
|
1115
|
+
}, Mt = Symbol.for("FluidValue.get"), lt = Symbol.for("FluidValue.observers"), le = (e) => !!(e && e[Mt]), Z = (e) => e && e[Mt] ? e[Mt]() : e, Ai = (e) => e[lt] || null;
|
|
1116
1116
|
function ec(e, t) {
|
|
1117
1117
|
e.eventObserved ? e.eventObserved(t) : e(t);
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1120
|
-
const r = e[
|
|
1119
|
+
function zt(e, t) {
|
|
1120
|
+
const r = e[lt];
|
|
1121
1121
|
r && r.forEach((n) => {
|
|
1122
1122
|
ec(n, t);
|
|
1123
1123
|
});
|
|
1124
1124
|
}
|
|
1125
|
-
var
|
|
1125
|
+
var Do = class {
|
|
1126
1126
|
constructor(e) {
|
|
1127
1127
|
if (!e && !(e = this.get))
|
|
1128
1128
|
throw Error("Unknown getter");
|
|
1129
1129
|
tc(this, e);
|
|
1130
1130
|
}
|
|
1131
|
-
}, tc = (e, t) =>
|
|
1132
|
-
function
|
|
1133
|
-
if (e[
|
|
1134
|
-
let r = e[
|
|
1135
|
-
r ||
|
|
1131
|
+
}, tc = (e, t) => jo(e, Mt, t);
|
|
1132
|
+
function vt(e, t) {
|
|
1133
|
+
if (e[Mt]) {
|
|
1134
|
+
let r = e[lt];
|
|
1135
|
+
r || jo(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
|
}
|
|
1139
|
-
function
|
|
1140
|
-
const r = e[
|
|
1139
|
+
function Ft(e, t) {
|
|
1140
|
+
const r = e[lt];
|
|
1141
1141
|
if (r && r.has(t)) {
|
|
1142
1142
|
const n = r.size - 1;
|
|
1143
|
-
n ? r.delete(t) : e[
|
|
1143
|
+
n ? r.delete(t) : e[lt] = null, e.observerRemoved && e.observerRemoved(n, t);
|
|
1144
1144
|
}
|
|
1145
1145
|
}
|
|
1146
|
-
var
|
|
1146
|
+
var jo = (e, t, r) => Object.defineProperty(e, t, {
|
|
1147
1147
|
value: r,
|
|
1148
1148
|
writable: !0,
|
|
1149
1149
|
configurable: !0
|
|
1150
|
-
}), fr = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, rc = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi, Ti = new RegExp(`(${fr.source})(%|[a-z]+)`, "i"), nc = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi, Dr = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,
|
|
1150
|
+
}), fr = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, rc = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi, Ti = new RegExp(`(${fr.source})(%|[a-z]+)`, "i"), nc = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi, Dr = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/, Vo = (e) => {
|
|
1151
1151
|
const [t, r] = ic(e);
|
|
1152
1152
|
if (!t || Yn())
|
|
1153
1153
|
return e;
|
|
@@ -1159,7 +1159,7 @@ var Vo = (e, t, r) => Object.defineProperty(e, t, {
|
|
|
1159
1159
|
return i || e;
|
|
1160
1160
|
} else {
|
|
1161
1161
|
if (r && Dr.test(r))
|
|
1162
|
-
return
|
|
1162
|
+
return Vo(r);
|
|
1163
1163
|
if (r)
|
|
1164
1164
|
return r;
|
|
1165
1165
|
}
|
|
@@ -1170,7 +1170,7 @@ var Vo = (e, t, r) => Object.defineProperty(e, t, {
|
|
|
1170
1170
|
return [,];
|
|
1171
1171
|
const [, r, n] = t;
|
|
1172
1172
|
return [r, n];
|
|
1173
|
-
}, rn, oc = (e, t, r, n, i) => `rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`,
|
|
1173
|
+
}, rn, oc = (e, t, r, n, i) => `rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`, $o = (e) => {
|
|
1174
1174
|
rn || (rn = Me ? (
|
|
1175
1175
|
// match color names, ignore partial matches
|
|
1176
1176
|
new RegExp(`(${Object.keys(Me).join("|")})(?!\\w)`, "g")
|
|
@@ -1178,14 +1178,14 @@ var Vo = (e, t, r) => Object.defineProperty(e, t, {
|
|
|
1178
1178
|
// never match
|
|
1179
1179
|
/^\b$/
|
|
1180
1180
|
));
|
|
1181
|
-
const t = e.output.map((o) =>
|
|
1181
|
+
const t = e.output.map((o) => Z(o).replace(Dr, Vo).replace(rc, Ri).replace(rn, Ri)), r = t.map((o) => o.match(fr).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');
|
|
1185
1185
|
return a[s];
|
|
1186
1186
|
})
|
|
1187
1187
|
).map(
|
|
1188
|
-
(o) =>
|
|
1188
|
+
(o) => $t({ ...e, output: o })
|
|
1189
1189
|
);
|
|
1190
1190
|
return (o) => {
|
|
1191
1191
|
var u;
|
|
@@ -1196,7 +1196,7 @@ var Vo = (e, t, r) => Object.defineProperty(e, t, {
|
|
|
1196
1196
|
() => `${i[a++](o)}${s || ""}`
|
|
1197
1197
|
).replace(nc, oc);
|
|
1198
1198
|
};
|
|
1199
|
-
}, Qn = "react-spring: ",
|
|
1199
|
+
}, Qn = "react-spring: ", Mo = (e) => {
|
|
1200
1200
|
const t = e;
|
|
1201
1201
|
let r = !1;
|
|
1202
1202
|
if (typeof t != "function")
|
|
@@ -1204,13 +1204,13 @@ var Vo = (e, t, r) => Object.defineProperty(e, t, {
|
|
|
1204
1204
|
return (...n) => {
|
|
1205
1205
|
r || (t(...n), r = !0);
|
|
1206
1206
|
};
|
|
1207
|
-
}, sc =
|
|
1207
|
+
}, sc = Mo(console.warn);
|
|
1208
1208
|
function ac() {
|
|
1209
1209
|
sc(
|
|
1210
1210
|
`${Qn}The "interpolate" function is deprecated in v9 (use "to" instead)`
|
|
1211
1211
|
);
|
|
1212
1212
|
}
|
|
1213
|
-
var cc =
|
|
1213
|
+
var cc = Mo(console.warn);
|
|
1214
1214
|
function uc() {
|
|
1215
1215
|
cc(
|
|
1216
1216
|
`${Qn}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`
|
|
@@ -1220,30 +1220,30 @@ function jr(e) {
|
|
|
1220
1220
|
return _.str(e) && (e[0] == "#" || /\d/.test(e) || // Do not identify a CSS variable as an AnimatedString if its SSR
|
|
1221
1221
|
!Yn() && Dr.test(e) || e in (Me || {}));
|
|
1222
1222
|
}
|
|
1223
|
-
var Xn = Yn() ?
|
|
1224
|
-
const e =
|
|
1223
|
+
var Xn = Yn() ? gt : Oa, lc = () => {
|
|
1224
|
+
const e = Pe(!1);
|
|
1225
1225
|
return Xn(() => (e.current = !0, () => {
|
|
1226
1226
|
e.current = !1;
|
|
1227
1227
|
}), []), e;
|
|
1228
1228
|
};
|
|
1229
|
-
function
|
|
1230
|
-
const e =
|
|
1229
|
+
function zo() {
|
|
1230
|
+
const e = Gt()[1], t = lc();
|
|
1231
1231
|
return () => {
|
|
1232
1232
|
t.current && e(Math.random());
|
|
1233
1233
|
};
|
|
1234
1234
|
}
|
|
1235
1235
|
function fc(e, t) {
|
|
1236
|
-
const [r] =
|
|
1236
|
+
const [r] = Gt(
|
|
1237
1237
|
() => ({
|
|
1238
1238
|
inputs: t,
|
|
1239
1239
|
result: e()
|
|
1240
1240
|
})
|
|
1241
|
-
), n =
|
|
1241
|
+
), n = Pe(), i = n.current;
|
|
1242
1242
|
let o = i;
|
|
1243
1243
|
return o ? t && o.inputs && dc(t, o.inputs) || (o = {
|
|
1244
1244
|
inputs: t,
|
|
1245
1245
|
result: e()
|
|
1246
|
-
}) : o = r,
|
|
1246
|
+
}) : o = r, gt(() => {
|
|
1247
1247
|
n.current = o, i == r && (r.inputs = r.result = void 0);
|
|
1248
1248
|
}, [o]), o.result;
|
|
1249
1249
|
}
|
|
@@ -1255,14 +1255,14 @@ function dc(e, t) {
|
|
|
1255
1255
|
return !1;
|
|
1256
1256
|
return !0;
|
|
1257
1257
|
}
|
|
1258
|
-
var
|
|
1258
|
+
var Fo = (e) => gt(e, hc), hc = [];
|
|
1259
1259
|
function Ii(e) {
|
|
1260
|
-
const t =
|
|
1261
|
-
return
|
|
1260
|
+
const t = Pe();
|
|
1261
|
+
return gt(() => {
|
|
1262
1262
|
t.current = e;
|
|
1263
1263
|
}), t.current;
|
|
1264
1264
|
}
|
|
1265
|
-
var
|
|
1265
|
+
var Lt = Symbol.for("Animated:node"), pc = (e) => !!e && e[Lt] === e, _e = (e) => e && e[Lt], Jn = (e, t) => $a(e, Lt, t), Vr = (e) => e && e[Lt] && e[Lt].getPayload(), Lo = class {
|
|
1266
1266
|
constructor() {
|
|
1267
1267
|
Jn(this, this);
|
|
1268
1268
|
}
|
|
@@ -1270,7 +1270,7 @@ var Bt = Symbol.for("Animated:node"), pc = (e) => !!e && e[Bt] === e, _e = (e) =
|
|
|
1270
1270
|
getPayload() {
|
|
1271
1271
|
return this.payload || [];
|
|
1272
1272
|
}
|
|
1273
|
-
}, Xt = class extends
|
|
1273
|
+
}, Xt = class extends Lo {
|
|
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,15 +1291,15 @@ var Bt = Symbol.for("Animated:node"), pc = (e) => !!e && e[Bt] === 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
|
+
}, Bt = class extends Xt {
|
|
1295
1295
|
constructor(e) {
|
|
1296
|
-
super(0), this._string = null, this._toString =
|
|
1296
|
+
super(0), this._string = null, this._toString = $t({
|
|
1297
1297
|
output: [e, e]
|
|
1298
1298
|
});
|
|
1299
1299
|
}
|
|
1300
1300
|
/** @internal */
|
|
1301
1301
|
static create(e) {
|
|
1302
|
-
return new
|
|
1302
|
+
return new Bt(e);
|
|
1303
1303
|
}
|
|
1304
1304
|
getValue() {
|
|
1305
1305
|
const e = this._string;
|
|
@@ -1317,18 +1317,18 @@ var Bt = Symbol.for("Animated:node"), pc = (e) => !!e && e[Bt] === e, _e = (e) =
|
|
|
1317
1317
|
return !0;
|
|
1318
1318
|
}
|
|
1319
1319
|
reset(e) {
|
|
1320
|
-
e && (this._toString =
|
|
1320
|
+
e && (this._toString = $t({
|
|
1321
1321
|
output: [this.getValue(), e]
|
|
1322
1322
|
})), this._value = 0, super.reset();
|
|
1323
1323
|
}
|
|
1324
|
-
}, wr = { dependencies: null }, $r = class extends
|
|
1324
|
+
}, wr = { dependencies: null }, $r = class extends Lo {
|
|
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
|
|
1331
|
-
pc(r) ? t[n] = r.getValue(e) :
|
|
1330
|
+
return Se(this.source, (r, n) => {
|
|
1331
|
+
pc(r) ? t[n] = r.getValue(e) : le(r) ? t[n] = Z(r) : e || (t[n] = r);
|
|
1332
1332
|
}), t;
|
|
1333
1333
|
}
|
|
1334
1334
|
/** Replace the raw object data */
|
|
@@ -1342,22 +1342,22 @@ var Bt = Symbol.for("Animated:node"), pc = (e) => !!e && e[Bt] === 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
|
-
wr.dependencies &&
|
|
1350
|
+
wr.dependencies && le(e) && wr.dependencies.add(e);
|
|
1351
1351
|
const t = Vr(e);
|
|
1352
1352
|
t && T(t, (r) => this.add(r));
|
|
1353
1353
|
}
|
|
1354
|
-
},
|
|
1354
|
+
}, Bo = class extends $r {
|
|
1355
1355
|
constructor(e) {
|
|
1356
1356
|
super(e);
|
|
1357
1357
|
}
|
|
1358
1358
|
/** @internal */
|
|
1359
1359
|
static create(e) {
|
|
1360
|
-
return new
|
|
1360
|
+
return new Bo(e);
|
|
1361
1361
|
}
|
|
1362
1362
|
getValue() {
|
|
1363
1363
|
return this.source.map((e) => e.getValue());
|
|
@@ -1368,11 +1368,11 @@ var Bt = Symbol.for("Animated:node"), pc = (e) => !!e && e[Bt] === e, _e = (e) =
|
|
|
1368
1368
|
}
|
|
1369
1369
|
};
|
|
1370
1370
|
function mc(e) {
|
|
1371
|
-
return (jr(e) ?
|
|
1371
|
+
return (jr(e) ? Bt : Xt).create(e);
|
|
1372
1372
|
}
|
|
1373
1373
|
function gn(e) {
|
|
1374
1374
|
const t = _e(e);
|
|
1375
|
-
return t ? t.constructor : _.arr(e) ?
|
|
1375
|
+
return t ? t.constructor : _.arr(e) ? Bo : jr(e) ? Bt : Xt;
|
|
1376
1376
|
}
|
|
1377
1377
|
var Di = (e, t) => {
|
|
1378
1378
|
const r = (
|
|
@@ -1381,26 +1381,26 @@ var Di = (e, t) => {
|
|
|
1381
1381
|
!_.fun(e) || e.prototype && e.prototype.isReactComponent
|
|
1382
1382
|
);
|
|
1383
1383
|
return Pa((n, i) => {
|
|
1384
|
-
const o =
|
|
1384
|
+
const o = Pe(null), s = r && // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1385
1385
|
Na(
|
|
1386
|
-
(
|
|
1387
|
-
o.current = vc(i,
|
|
1386
|
+
(v) => {
|
|
1387
|
+
o.current = vc(i, v);
|
|
1388
1388
|
},
|
|
1389
1389
|
[i]
|
|
1390
|
-
), [a, u] = gc(n, t), l =
|
|
1391
|
-
const
|
|
1392
|
-
if (r && !
|
|
1390
|
+
), [a, u] = gc(n, t), l = zo(), f = () => {
|
|
1391
|
+
const v = o.current;
|
|
1392
|
+
if (r && !v)
|
|
1393
1393
|
return;
|
|
1394
|
-
(
|
|
1395
|
-
}, d = new yc(f, u), h =
|
|
1396
|
-
Xn(() => (h.current = d, T(u, (
|
|
1394
|
+
(v ? t.applyAnimatedValues(v, a.getValue(!0)) : !1) === !1 && l();
|
|
1395
|
+
}, d = new yc(f, u), h = Pe();
|
|
1396
|
+
Xn(() => (h.current = d, T(u, (v) => vt(v, d)), () => {
|
|
1397
1397
|
h.current && (T(
|
|
1398
1398
|
h.current.deps,
|
|
1399
|
-
(
|
|
1399
|
+
(v) => Ft(v, h.current)
|
|
1400
1400
|
), C.cancel(h.current.update));
|
|
1401
|
-
})),
|
|
1402
|
-
const
|
|
1403
|
-
T(
|
|
1401
|
+
})), gt(f, []), Fo(() => () => {
|
|
1402
|
+
const v = h.current;
|
|
1403
|
+
T(v.deps, (E) => Ft(E, v));
|
|
1404
1404
|
});
|
|
1405
1405
|
const p = t.getComponentProps(a.getValue());
|
|
1406
1406
|
return /* @__PURE__ */ Fn.createElement(e, { ...p, ref: s });
|
|
@@ -1436,7 +1436,7 @@ var ji = Symbol.for("AnimatedComponent"), bc = (e, {
|
|
|
1436
1436
|
const a = Vi(s) || "Anonymous";
|
|
1437
1437
|
return _.str(s) ? s = o[s] || (o[s] = Di(s, i)) : s = s[ji] || (s[ji] = Di(s, i)), s.displayName = `Animated(${a})`, s;
|
|
1438
1438
|
};
|
|
1439
|
-
return
|
|
1439
|
+
return Se(e, (s, a) => {
|
|
1440
1440
|
_.arr(e) && (a = Vi(s)), o[a] = o(s);
|
|
1441
1441
|
}), {
|
|
1442
1442
|
animated: o
|
|
@@ -1445,7 +1445,7 @@ var ji = Symbol.for("AnimatedComponent"), bc = (e, {
|
|
|
1445
1445
|
function Ue(e, ...t) {
|
|
1446
1446
|
return _.fun(e) ? e(...t) : e;
|
|
1447
1447
|
}
|
|
1448
|
-
var
|
|
1448
|
+
var Dt = (e, t) => e === !0 || !!(t && e && (_.fun(e) ? e(t) : oe(e).includes(t))), Uo = (e, t) => _.obj(e) ? t && e[t] : e, qo = (e, t) => e.default === !0 ? e[t] : e.default ? e.default[t] : void 0, wc = (e) => e, Zn = (e, t = wc) => {
|
|
1449
1449
|
let r = _c;
|
|
1450
1450
|
e.default && e.default !== !0 && (e = e.default, r = Object.keys(e));
|
|
1451
1451
|
const n = {};
|
|
@@ -1501,21 +1501,21 @@ var jt = (e, t) => e === !0 || !!(t && e && (_.fun(e) ? e(t) : se(e).includes(t)
|
|
|
1501
1501
|
function Sc(e) {
|
|
1502
1502
|
const t = {};
|
|
1503
1503
|
let r = 0;
|
|
1504
|
-
if (
|
|
1504
|
+
if (Se(e, (n, i) => {
|
|
1505
1505
|
Ec[i] || (t[i] = n, r++);
|
|
1506
1506
|
}), r)
|
|
1507
1507
|
return t;
|
|
1508
1508
|
}
|
|
1509
|
-
function
|
|
1509
|
+
function Wo(e) {
|
|
1510
1510
|
const t = Sc(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 =
|
|
1517
|
+
function Ut(e) {
|
|
1518
|
+
return e = Z(e), _.arr(e) ? e.map(Ut) : jr(e) ? we.createStringInterpolator({
|
|
1519
1519
|
range: [0, 1],
|
|
1520
1520
|
output: [e, e]
|
|
1521
1521
|
})(1) : e;
|
|
@@ -1570,15 +1570,15 @@ var Mi = [], Rc = class {
|
|
|
1570
1570
|
this.changed = !1, this.values = Mi, this.toValues = null, this.fromValues = Mi, this.config = new Nc(), this.immediate = !1;
|
|
1571
1571
|
}
|
|
1572
1572
|
};
|
|
1573
|
-
function
|
|
1573
|
+
function Ho(e, { key: t, props: r, defaultProps: n, state: i, actions: o }) {
|
|
1574
1574
|
return new Promise((s, a) => {
|
|
1575
|
-
let u, l, f =
|
|
1575
|
+
let u, l, f = Dt(r.cancel ?? (n == null ? void 0 : n.cancel), t);
|
|
1576
1576
|
if (f)
|
|
1577
1577
|
p();
|
|
1578
1578
|
else {
|
|
1579
|
-
_.und(r.pause) || (i.paused =
|
|
1580
|
-
let
|
|
1581
|
-
|
|
1579
|
+
_.und(r.pause) || (i.paused = Dt(r.pause, t));
|
|
1580
|
+
let v = n == null ? void 0 : n.pause;
|
|
1581
|
+
v !== !0 && (v = i.paused || Dt(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();
|
|
@@ -1590,16 +1590,16 @@ function Yo(e, { key: t, props: r, defaultProps: n, state: i, actions: o }) {
|
|
|
1590
1590
|
i.delayed && (i.delayed = !1), i.pauseQueue.delete(d), i.timeouts.delete(l), e <= (i.cancelId || 0) && (f = !0);
|
|
1591
1591
|
try {
|
|
1592
1592
|
o.start({ ...r, callId: e, cancel: f }, s);
|
|
1593
|
-
} catch (
|
|
1594
|
-
a(
|
|
1593
|
+
} catch (v) {
|
|
1594
|
+
a(v);
|
|
1595
1595
|
}
|
|
1596
1596
|
}
|
|
1597
1597
|
});
|
|
1598
1598
|
}
|
|
1599
|
-
var ei = (e, t) => t.length == 1 ? t[0] : t.some((r) => r.cancelled) ? ut(e.get()) : t.every((r) => r.noop) ?
|
|
1599
|
+
var ei = (e, t) => t.length == 1 ? t[0] : t.some((r) => r.cancelled) ? ut(e.get()) : t.every((r) => r.noop) ? Yo(e.get()) : ge(
|
|
1600
1600
|
e.get(),
|
|
1601
1601
|
t.every((r) => r.finished)
|
|
1602
|
-
),
|
|
1602
|
+
), Yo = (e) => ({
|
|
1603
1603
|
value: e,
|
|
1604
1604
|
noop: !0,
|
|
1605
1605
|
finished: !0,
|
|
@@ -1613,7 +1613,7 @@ var ei = (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 Go(e, t, r, n) {
|
|
1617
1617
|
const { callId: i, parentId: o, onRest: s } = t, { asyncTo: a, promise: u } = r;
|
|
1618
1618
|
return !o && e === a && !t.reset ? u : r.promise = (async () => {
|
|
1619
1619
|
r.asyncId = i, r.asyncTo = e;
|
|
@@ -1635,14 +1635,14 @@ function Ko(e, t, r, n) {
|
|
|
1635
1635
|
);
|
|
1636
1636
|
if (y)
|
|
1637
1637
|
throw w.result = y, d(w), w;
|
|
1638
|
-
},
|
|
1638
|
+
}, v = (w, y) => {
|
|
1639
1639
|
const b = new zi(), m = new Fi();
|
|
1640
1640
|
return (async () => {
|
|
1641
1641
|
if (we.skipAnimation)
|
|
1642
1642
|
throw qt(r), m.result = ge(n, !1), d(m), m;
|
|
1643
1643
|
p(b);
|
|
1644
1644
|
const S = _.obj(w) ? { ...w } : { ...y, to: w };
|
|
1645
|
-
S.parentId = i,
|
|
1645
|
+
S.parentId = i, Se(l, (P, k) => {
|
|
1646
1646
|
_.und(S[k]) && (S[k] = P);
|
|
1647
1647
|
});
|
|
1648
1648
|
const O = await n.start(S);
|
|
@@ -1658,8 +1658,8 @@ function Ko(e, t, r, n) {
|
|
|
1658
1658
|
let w;
|
|
1659
1659
|
_.arr(e) ? w = (async (y) => {
|
|
1660
1660
|
for (const b of y)
|
|
1661
|
-
await
|
|
1662
|
-
})(e) : w = Promise.resolve(e(
|
|
1661
|
+
await v(b);
|
|
1662
|
+
})(e) : w = Promise.resolve(e(v, n.stop.bind(n))), await Promise.all([w.then(f), h]), E = ge(n.get(), !0, !1);
|
|
1663
1663
|
} catch (w) {
|
|
1664
1664
|
if (w instanceof zi)
|
|
1665
1665
|
E = w.result;
|
|
@@ -1676,7 +1676,7 @@ function Ko(e, t, r, n) {
|
|
|
1676
1676
|
})();
|
|
1677
1677
|
}
|
|
1678
1678
|
function qt(e, t) {
|
|
1679
|
-
|
|
1679
|
+
Tt(e.timeouts, (r) => r.cancel()), e.pauseQueue.clear(), e.resumeQueue.clear(), e.asyncId = e.asyncTo = e.promise = void 0, t && (e.cancelId = t);
|
|
1680
1680
|
}
|
|
1681
1681
|
var zi = class extends Error {
|
|
1682
1682
|
constructor() {
|
|
@@ -1688,7 +1688,7 @@ var zi = class extends Error {
|
|
|
1688
1688
|
constructor() {
|
|
1689
1689
|
super("SkipAnimationSignal");
|
|
1690
1690
|
}
|
|
1691
|
-
}, wn = (e) => e instanceof ti, Ac = 1, ti = class extends
|
|
1691
|
+
}, wn = (e) => e instanceof ti, Ac = 1, ti = class extends Do {
|
|
1692
1692
|
constructor() {
|
|
1693
1693
|
super(...arguments), this.id = Ac++, this._priority = 0;
|
|
1694
1694
|
}
|
|
@@ -1728,7 +1728,7 @@ var zi = class extends Error {
|
|
|
1728
1728
|
}
|
|
1729
1729
|
/** Tell our children about our new value */
|
|
1730
1730
|
_onChange(e, t = !1) {
|
|
1731
|
-
|
|
1731
|
+
zt(this, {
|
|
1732
1732
|
type: "change",
|
|
1733
1733
|
parent: this,
|
|
1734
1734
|
value: e,
|
|
@@ -1737,13 +1737,13 @@ var zi = class extends Error {
|
|
|
1737
1737
|
}
|
|
1738
1738
|
/** Tell our children about our new priority */
|
|
1739
1739
|
_onPriorityChange(e) {
|
|
1740
|
-
this.idle || Tr.sort(this),
|
|
1740
|
+
this.idle || Tr.sort(this), zt(this, {
|
|
1741
1741
|
type: "priority",
|
|
1742
1742
|
parent: this,
|
|
1743
1743
|
priority: e
|
|
1744
1744
|
});
|
|
1745
1745
|
}
|
|
1746
|
-
}, Ke = Symbol.for("SpringPhase"),
|
|
1746
|
+
}, Ke = Symbol.for("SpringPhase"), Ko = 1, Qo = 2, Xo = 4, nn = (e) => (e[Ke] & Ko) > 0, Ie = (e) => (e[Ke] & Qo) > 0, Ot = (e) => (e[Ke] & Xo) > 0, Li = (e, t) => t ? e[Ke] |= Qo | Ko : e[Ke] &= -3, Bi = (e, t) => t ? e[Ke] |= Xo : e[Ke] &= -5, Tc = class extends ti {
|
|
1747
1747
|
constructor(e, t) {
|
|
1748
1748
|
if (super(), this.animation = new Rc(), this.defaultProps = {}, this._state = {
|
|
1749
1749
|
paused: !1,
|
|
@@ -1758,10 +1758,10 @@ var zi = class extends Error {
|
|
|
1758
1758
|
}
|
|
1759
1759
|
/** Equals true when not advancing on each frame. */
|
|
1760
1760
|
get idle() {
|
|
1761
|
-
return !(Ie(this) || this._state.asyncTo) ||
|
|
1761
|
+
return !(Ie(this) || this._state.asyncTo) || Ot(this);
|
|
1762
1762
|
}
|
|
1763
1763
|
get goal() {
|
|
1764
|
-
return
|
|
1764
|
+
return Z(this.animation.to);
|
|
1765
1765
|
}
|
|
1766
1766
|
get velocity() {
|
|
1767
1767
|
const e = _e(this);
|
|
@@ -1784,7 +1784,7 @@ var zi = class extends Error {
|
|
|
1784
1784
|
* When true, all current and future animations are paused.
|
|
1785
1785
|
*/
|
|
1786
1786
|
get isPaused() {
|
|
1787
|
-
return
|
|
1787
|
+
return Ot(this);
|
|
1788
1788
|
}
|
|
1789
1789
|
/**
|
|
1790
1790
|
*
|
|
@@ -1799,12 +1799,12 @@ var zi = class extends Error {
|
|
|
1799
1799
|
const n = this.animation;
|
|
1800
1800
|
let { toValues: i } = n;
|
|
1801
1801
|
const { config: o } = n, s = Vr(n.to);
|
|
1802
|
-
!s &&
|
|
1802
|
+
!s && le(n.to) && (i = oe(Z(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 == Bt ? 1 : s ? s[f].lastPosition : i[f]
|
|
1808
1808
|
);
|
|
1809
1809
|
let h = n.immediate, p = d;
|
|
1810
1810
|
if (!h) {
|
|
@@ -1812,28 +1812,28 @@ var zi = class extends Error {
|
|
|
1812
1812
|
l.done = !0;
|
|
1813
1813
|
return;
|
|
1814
1814
|
}
|
|
1815
|
-
let
|
|
1815
|
+
let v = l.elapsedTime += e;
|
|
1816
1816
|
const E = n.fromValues[f], w = l.v0 != null ? l.v0 : l.v0 = _.arr(o.velocity) ? o.velocity[f] : o.velocity;
|
|
1817
1817
|
let y;
|
|
1818
1818
|
const b = o.precision || (E == d ? 5e-3 : Math.min(1, Math.abs(d - E) * 1e-3));
|
|
1819
1819
|
if (_.und(o.duration))
|
|
1820
1820
|
if (o.decay) {
|
|
1821
|
-
const m = o.decay === !0 ? 0.998 : o.decay, S = Math.exp(-(1 - m) *
|
|
1821
|
+
const m = o.decay === !0 ? 0.998 : o.decay, S = Math.exp(-(1 - m) * v);
|
|
1822
1822
|
p = E + w / (1 - m) * (1 - S), h = Math.abs(l.lastPosition - p) <= b, y = w * S;
|
|
1823
1823
|
} else {
|
|
1824
1824
|
y = l.lastVelocity == null ? w : l.lastVelocity;
|
|
1825
1825
|
const m = o.restVelocity || b / 10, S = o.clamp ? 0 : o.bounce, O = !_.und(S), P = E == d ? l.v0 > 0 : E < d;
|
|
1826
|
-
let k,
|
|
1827
|
-
const M = 1,
|
|
1828
|
-
for (let
|
|
1829
|
-
O && (
|
|
1830
|
-
const
|
|
1831
|
-
y = y +
|
|
1826
|
+
let k, j = !1;
|
|
1827
|
+
const M = 1, ne = Math.ceil(e / M);
|
|
1828
|
+
for (let Y = 0; Y < ne && (k = Math.abs(y) > m, !(!k && (h = Math.abs(d - p) <= b, h))); ++Y) {
|
|
1829
|
+
O && (j = p == d || p > d == P, j && (y = -y * S, p = d));
|
|
1830
|
+
const ie = -o.tension * 1e-6 * (p - d), q = -o.friction * 1e-3 * y, he = (ie + q) / o.mass;
|
|
1831
|
+
y = y + he * M, p = p + y * M;
|
|
1832
1832
|
}
|
|
1833
1833
|
}
|
|
1834
1834
|
else {
|
|
1835
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,
|
|
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 = E + o.easing(m) * (d - E), y = (p - l.lastPosition) / e, h = m == 1;
|
|
1837
1837
|
}
|
|
1838
1838
|
l.lastVelocity = y, Number.isNaN(p) && (console.warn("Got NaN while animating:", this), h = !0);
|
|
1839
1839
|
}
|
|
@@ -1841,7 +1841,7 @@ var zi = class extends Error {
|
|
|
1841
1841
|
});
|
|
1842
1842
|
const a = _e(this), u = a.getValue();
|
|
1843
1843
|
if (t) {
|
|
1844
|
-
const l =
|
|
1844
|
+
const l = Z(n.to);
|
|
1845
1845
|
(u !== l || r) && !o.decay ? (a.setValue(l), this._onChange(l)) : r && o.decay && this._onChange(u), this._stop();
|
|
1846
1846
|
} else r && this._onChange(u);
|
|
1847
1847
|
}
|
|
@@ -1910,7 +1910,7 @@ var zi = class extends Error {
|
|
|
1910
1910
|
let { to: r, from: n } = e;
|
|
1911
1911
|
r = _.obj(r) ? r[t] : r, (r == null || vn(r)) && (r = void 0), n = _.obj(n) ? n[t] : n, n == null && (n = void 0);
|
|
1912
1912
|
const i = { to: r, from: n };
|
|
1913
|
-
return nn(this) || (e.reverse && ([r, n] = [n, r]), n =
|
|
1913
|
+
return nn(this) || (e.reverse && ([r, n] = [n, r]), n = Z(n), _.und(n) ? _e(this) || this._set(r) : this._set(n)), i;
|
|
1914
1914
|
}
|
|
1915
1915
|
/** Every update is processed by this method before merging. */
|
|
1916
1916
|
_update({ ...e }, t) {
|
|
@@ -1919,34 +1919,34 @@ var zi = class extends Error {
|
|
|
1919
1919
|
n,
|
|
1920
1920
|
Zn(
|
|
1921
1921
|
e,
|
|
1922
|
-
(s, a) => /^on/.test(a) ?
|
|
1922
|
+
(s, a) => /^on/.test(a) ? Uo(s, r) : s
|
|
1923
1923
|
)
|
|
1924
|
-
),
|
|
1924
|
+
), qi(this, e, "onProps"), Nt(this, "onProps", e, this);
|
|
1925
1925
|
const i = this._prepareNode(e);
|
|
1926
1926
|
if (Object.isFrozen(this))
|
|
1927
1927
|
throw Error(
|
|
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 Ho(++this._lastCallId, {
|
|
1932
1932
|
key: r,
|
|
1933
1933
|
props: e,
|
|
1934
1934
|
defaultProps: n,
|
|
1935
1935
|
state: o,
|
|
1936
1936
|
actions: {
|
|
1937
1937
|
pause: () => {
|
|
1938
|
-
|
|
1938
|
+
Ot(this) || (Bi(this, !0), Ct(o.pauseQueue), Nt(
|
|
1939
1939
|
this,
|
|
1940
1940
|
"onPause",
|
|
1941
|
-
ge(this,
|
|
1941
|
+
ge(this, Pt(this, this.animation.to)),
|
|
1942
1942
|
this
|
|
1943
1943
|
));
|
|
1944
1944
|
},
|
|
1945
1945
|
resume: () => {
|
|
1946
|
-
|
|
1946
|
+
Ot(this) && (Bi(this, !1), Ie(this) && this._resume(), Ct(o.resumeQueue), Nt(
|
|
1947
1947
|
this,
|
|
1948
1948
|
"onResume",
|
|
1949
|
-
ge(this,
|
|
1949
|
+
ge(this, Pt(this, this.animation.to)),
|
|
1950
1950
|
this
|
|
1951
1951
|
));
|
|
1952
1952
|
},
|
|
@@ -1954,7 +1954,7 @@ var zi = 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 = Jo(e);
|
|
1958
1958
|
if (a)
|
|
1959
1959
|
return this._update(a, !0);
|
|
1960
1960
|
}
|
|
@@ -1974,12 +1974,12 @@ var zi = 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 = !
|
|
1978
|
-
h && (a.from = d), d =
|
|
1979
|
-
const p = !
|
|
1977
|
+
const h = !ke(d, l);
|
|
1978
|
+
h && (a.from = d), d = Z(d);
|
|
1979
|
+
const p = !ke(f, u);
|
|
1980
1980
|
p && this._focus(f);
|
|
1981
|
-
const
|
|
1982
|
-
(n || i) && (E.velocity = 0), t.config && !
|
|
1981
|
+
const v = vn(t.to), { config: E } = a, { decay: w, velocity: y } = E;
|
|
1982
|
+
(n || i) && (E.velocity = 0), t.config && !v && Cc(
|
|
1983
1983
|
E,
|
|
1984
1984
|
Ue(t.config, o),
|
|
1985
1985
|
// Avoid calling the same "config" prop twice.
|
|
@@ -1992,34 +1992,34 @@ var zi = class extends Error {
|
|
|
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
|
-
_.und(t.reset) ? i && !t.default : !_.und(d) &&
|
|
1996
|
-
), S = m ? d : this.get(), O =
|
|
1995
|
+
_.und(t.reset) ? i && !t.default : !_.und(d) && Dt(t.reset, o)
|
|
1996
|
+
), S = m ? d : this.get(), O = Ut(f), P = _.num(O) || _.arr(O) || jr(O), k = !v && (!P || Dt(s.immediate || t.immediate, o));
|
|
1997
1997
|
if (p) {
|
|
1998
|
-
const
|
|
1999
|
-
if (
|
|
1998
|
+
const Y = gn(f);
|
|
1999
|
+
if (Y !== b.constructor)
|
|
2000
2000
|
if (k)
|
|
2001
2001
|
b = this._set(O);
|
|
2002
2002
|
else
|
|
2003
2003
|
throw Error(
|
|
2004
|
-
`Cannot animate between ${b.constructor.name} and ${
|
|
2004
|
+
`Cannot animate between ${b.constructor.name} and ${Y.name}, as the "to" prop suggests`
|
|
2005
2005
|
);
|
|
2006
2006
|
}
|
|
2007
|
-
const
|
|
2008
|
-
let M =
|
|
2007
|
+
const j = b.constructor;
|
|
2008
|
+
let M = le(f), ne = !1;
|
|
2009
2009
|
if (!M) {
|
|
2010
|
-
const
|
|
2011
|
-
(p ||
|
|
2010
|
+
const Y = m || !nn(this) && h;
|
|
2011
|
+
(p || Y) && (ne = ke(Ut(S), O), M = !ne), (!ke(a.immediate, k) && !k || !ke(E.decay, w) || !ke(E.velocity, y)) && (M = !0);
|
|
2012
2012
|
}
|
|
2013
|
-
if (
|
|
2014
|
-
const { onRest:
|
|
2015
|
-
T(Dc, (
|
|
2016
|
-
const
|
|
2017
|
-
|
|
2018
|
-
var
|
|
2019
|
-
a.changed = !m,
|
|
2013
|
+
if (ne && Ie(this) && (a.changed && !m ? M = !0 : M || this._stop(u)), !v && ((M || le(u)) && (a.values = b.getPayload(), a.toValues = le(f) ? null : j == Bt ? [1] : oe(O)), a.immediate != k && (a.immediate = k, !k && !m && this._set(u)), M)) {
|
|
2014
|
+
const { onRest: Y } = a;
|
|
2015
|
+
T(Dc, (q) => qi(this, t, q));
|
|
2016
|
+
const ie = ge(this, Pt(this, u));
|
|
2017
|
+
Ct(this._pendingCalls, ie), this._pendingCalls.add(r), a.changed && C.batchedUpdates(() => {
|
|
2018
|
+
var q;
|
|
2019
|
+
a.changed = !m, Y == null || Y(ie, this), m ? Ue(s.onRest, ie) : (q = a.onStart) == null || q.call(a, ie, this);
|
|
2020
2020
|
});
|
|
2021
2021
|
}
|
|
2022
|
-
m && this._set(S),
|
|
2022
|
+
m && this._set(S), v ? r(Go(t.to, t, this._state, this)) : M ? this._start() : Ie(this) && !p ? this._pendingCalls.add(r) : r(Yo(S));
|
|
2023
2023
|
}
|
|
2024
2024
|
/** Update the `animation.to` value, which might be a `FluidValue` */
|
|
2025
2025
|
_focus(e) {
|
|
@@ -2029,21 +2029,21 @@ var zi = class extends Error {
|
|
|
2029
2029
|
_attach() {
|
|
2030
2030
|
let e = 0;
|
|
2031
2031
|
const { to: t } = this.animation;
|
|
2032
|
-
|
|
2032
|
+
le(t) && (vt(t, this), wn(t) && (e = t.priority + 1)), this.priority = e;
|
|
2033
2033
|
}
|
|
2034
2034
|
_detach() {
|
|
2035
2035
|
const { to: e } = this.animation;
|
|
2036
|
-
|
|
2036
|
+
le(e) && Ft(e, this);
|
|
2037
2037
|
}
|
|
2038
2038
|
/**
|
|
2039
2039
|
* Update the current value from outside the frameloop,
|
|
2040
2040
|
* and return the `Animated` node.
|
|
2041
2041
|
*/
|
|
2042
2042
|
_set(e, t = !0) {
|
|
2043
|
-
const r =
|
|
2043
|
+
const r = Z(e);
|
|
2044
2044
|
if (!_.und(r)) {
|
|
2045
2045
|
const n = _e(this);
|
|
2046
|
-
if (!n || !
|
|
2046
|
+
if (!n || !ke(r, n.getValue())) {
|
|
2047
2047
|
const i = gn(r);
|
|
2048
2048
|
!n || n.constructor != i ? Jn(this, i.create(r)) : n.setValue(r), n && C.batchedUpdates(() => {
|
|
2049
2049
|
this._onChange(r, t);
|
|
@@ -2054,10 +2054,10 @@ var zi = class extends Error {
|
|
|
2054
2054
|
}
|
|
2055
2055
|
_onStart() {
|
|
2056
2056
|
const e = this.animation;
|
|
2057
|
-
e.changed || (e.changed = !0,
|
|
2057
|
+
e.changed || (e.changed = !0, Nt(
|
|
2058
2058
|
this,
|
|
2059
2059
|
"onStart",
|
|
2060
|
-
ge(this,
|
|
2060
|
+
ge(this, Pt(this, e.to)),
|
|
2061
2061
|
this
|
|
2062
2062
|
));
|
|
2063
2063
|
}
|
|
@@ -2069,7 +2069,7 @@ var zi = class extends Error {
|
|
|
2069
2069
|
// is added to the frameloop.
|
|
2070
2070
|
_start() {
|
|
2071
2071
|
const e = this.animation;
|
|
2072
|
-
_e(this).reset(
|
|
2072
|
+
_e(this).reset(Z(e.to)), e.immediate || (e.fromValues = e.values.map((t) => t.lastPosition)), Ie(this) || (Li(this, !0), Ot(this) || this._resume());
|
|
2073
2073
|
}
|
|
2074
2074
|
_resume() {
|
|
2075
2075
|
we.skipAnimation ? this.finish() : Tr.start(this);
|
|
@@ -2085,24 +2085,24 @@ var zi = class extends Error {
|
|
|
2085
2085
|
const r = this.animation;
|
|
2086
2086
|
T(r.values, (i) => {
|
|
2087
2087
|
i.done = !0;
|
|
2088
|
-
}), r.toValues && (r.onChange = r.onPause = r.onResume = void 0),
|
|
2088
|
+
}), r.toValues && (r.onChange = r.onPause = r.onResume = void 0), zt(this, {
|
|
2089
2089
|
type: "idle",
|
|
2090
2090
|
parent: this
|
|
2091
2091
|
});
|
|
2092
|
-
const n = t ? ut(this.get()) : ge(this.get(),
|
|
2093
|
-
|
|
2092
|
+
const n = t ? ut(this.get()) : ge(this.get(), Pt(this, e ?? r.to));
|
|
2093
|
+
Ct(this._pendingCalls, n), r.changed && (r.changed = !1, Nt(this, "onRest", n, this));
|
|
2094
2094
|
}
|
|
2095
2095
|
}
|
|
2096
2096
|
};
|
|
2097
|
-
function
|
|
2098
|
-
const r =
|
|
2099
|
-
return
|
|
2097
|
+
function Pt(e, t) {
|
|
2098
|
+
const r = Ut(t), n = Ut(e.get());
|
|
2099
|
+
return ke(n, r);
|
|
2100
2100
|
}
|
|
2101
|
-
function
|
|
2101
|
+
function Jo(e, t = e.loop, r = e.to) {
|
|
2102
2102
|
const n = Ue(t);
|
|
2103
2103
|
if (n) {
|
|
2104
|
-
const i = n !== !0 &&
|
|
2105
|
-
return
|
|
2104
|
+
const i = n !== !0 && Wo(n), o = (i || e).reverse, s = !i || i.reset;
|
|
2105
|
+
return Wt({
|
|
2106
2106
|
...e,
|
|
2107
2107
|
loop: t,
|
|
2108
2108
|
// Avoid updating default props when looping.
|
|
@@ -2122,16 +2122,16 @@ function Zo(e, t = e.loop, r = e.to) {
|
|
|
2122
2122
|
});
|
|
2123
2123
|
}
|
|
2124
2124
|
}
|
|
2125
|
-
function
|
|
2126
|
-
const { to: t, from: r } = e =
|
|
2125
|
+
function Wt(e) {
|
|
2126
|
+
const { to: t, from: r } = e = Wo(e), n = /* @__PURE__ */ new Set();
|
|
2127
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 Ic(e) {
|
|
2130
|
-
const t =
|
|
2130
|
+
const t = Wt(e);
|
|
2131
2131
|
return _.und(t.default) && (t.default = Zn(t)), t;
|
|
2132
2132
|
}
|
|
2133
2133
|
function Ui(e, t) {
|
|
2134
|
-
|
|
2134
|
+
Se(e, (r, n) => r != null && t.add(n));
|
|
2135
2135
|
}
|
|
2136
2136
|
var Dc = [
|
|
2137
2137
|
"onStart",
|
|
@@ -2140,10 +2140,10 @@ var Dc = [
|
|
|
2140
2140
|
"onPause",
|
|
2141
2141
|
"onResume"
|
|
2142
2142
|
];
|
|
2143
|
-
function
|
|
2144
|
-
e.animation[r] = t[r] !== qo(t, r) ?
|
|
2143
|
+
function qi(e, t, r) {
|
|
2144
|
+
e.animation[r] = t[r] !== qo(t, r) ? Uo(t[r], e.key) : void 0;
|
|
2145
2145
|
}
|
|
2146
|
-
function
|
|
2146
|
+
function Nt(e, t, ...r) {
|
|
2147
2147
|
var n, i, o, s;
|
|
2148
2148
|
(i = (n = e.animation)[t]) == null || i.call(n, ...r), (s = (o = e.defaultProps)[t]) == null || s.call(o, ...r);
|
|
2149
2149
|
}
|
|
@@ -2187,7 +2187,7 @@ var jc = ["onStart", "onChange", "onRest"], Vc = 1, $c = class {
|
|
|
2187
2187
|
}
|
|
2188
2188
|
/** Push an update onto the queue of each value. */
|
|
2189
2189
|
update(e) {
|
|
2190
|
-
return e && this.queue.push(
|
|
2190
|
+
return e && this.queue.push(Wt(e)), this;
|
|
2191
2191
|
}
|
|
2192
2192
|
/**
|
|
2193
2193
|
* Start the queued animations for every spring, and resolve the returned
|
|
@@ -2198,13 +2198,13 @@ var jc = ["onStart", "onChange", "onRest"], Vc = 1, $c = class {
|
|
|
2198
2198
|
*/
|
|
2199
2199
|
start(e) {
|
|
2200
2200
|
let { queue: t } = this;
|
|
2201
|
-
return e ? t =
|
|
2201
|
+
return e ? t = oe(e).map(Wt) : this.queue = [], this._flush ? this._flush(this, t) : (ns(this, t), _n(this, t));
|
|
2202
2202
|
}
|
|
2203
2203
|
/** @internal */
|
|
2204
2204
|
stop(e, t) {
|
|
2205
2205
|
if (e !== !!e && (t = e), t) {
|
|
2206
2206
|
const r = this.springs;
|
|
2207
|
-
T(
|
|
2207
|
+
T(oe(t), (n) => r[n].stop(!!e));
|
|
2208
2208
|
} else
|
|
2209
2209
|
qt(this._state, this._lastAsyncId), this.each((r) => r.stop(!!e));
|
|
2210
2210
|
return this;
|
|
@@ -2215,7 +2215,7 @@ var jc = ["onStart", "onChange", "onRest"], Vc = 1, $c = class {
|
|
|
2215
2215
|
this.start({ pause: !0 });
|
|
2216
2216
|
else {
|
|
2217
2217
|
const t = this.springs;
|
|
2218
|
-
T(
|
|
2218
|
+
T(oe(e), (r) => t[r].pause());
|
|
2219
2219
|
}
|
|
2220
2220
|
return this;
|
|
2221
2221
|
}
|
|
@@ -2225,24 +2225,24 @@ var jc = ["onStart", "onChange", "onRest"], Vc = 1, $c = class {
|
|
|
2225
2225
|
this.start({ pause: !1 });
|
|
2226
2226
|
else {
|
|
2227
2227
|
const t = this.springs;
|
|
2228
|
-
T(
|
|
2228
|
+
T(oe(e), (r) => t[r].resume());
|
|
2229
2229
|
}
|
|
2230
2230
|
return this;
|
|
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() {
|
|
2238
2238
|
const { onStart: e, onChange: t, onRest: r } = this._events, n = this._active.size > 0, i = this._changed.size > 0;
|
|
2239
|
-
(n && !this._started || i && !this._started) && (this._started = !0,
|
|
2239
|
+
(n && !this._started || i && !this._started) && (this._started = !0, Tt(e, ([a, u]) => {
|
|
2240
2240
|
u.value = this.get(), a(u, this, this._item);
|
|
2241
2241
|
}));
|
|
2242
2242
|
const o = !n && this._started, s = i || o && r.size ? this.get() : null;
|
|
2243
|
-
i && t.size &&
|
|
2243
|
+
i && t.size && Tt(t, ([a, u]) => {
|
|
2244
2244
|
u.value = s, a(u, this, this._item);
|
|
2245
|
-
}), o && (this._started = !1,
|
|
2245
|
+
}), o && (this._started = !1, Tt(r, ([a, u]) => {
|
|
2246
2246
|
u.value = s, a(u, this, this._item);
|
|
2247
2247
|
}));
|
|
2248
2248
|
}
|
|
@@ -2258,11 +2258,11 @@ var jc = ["onStart", "onChange", "onRest"], Vc = 1, $c = class {
|
|
|
2258
2258
|
}
|
|
2259
2259
|
};
|
|
2260
2260
|
function _n(e, t) {
|
|
2261
|
-
return Promise.all(t.map((r) =>
|
|
2261
|
+
return Promise.all(t.map((r) => Zo(e, r))).then(
|
|
2262
2262
|
(r) => ei(e, r)
|
|
2263
2263
|
);
|
|
2264
2264
|
}
|
|
2265
|
-
async function
|
|
2265
|
+
async function Zo(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;
|
|
@@ -2281,12 +2281,12 @@ async function es(e, t, r) {
|
|
|
2281
2281
|
}
|
|
2282
2282
|
});
|
|
2283
2283
|
const d = e._state;
|
|
2284
|
-
t.pause === !d.paused ? (d.paused = t.pause,
|
|
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
|
(E) => e.springs[E].start(t)
|
|
2287
2287
|
), p = t.cancel === !0 || qo(t, "cancel") === !0;
|
|
2288
2288
|
(f || p && d.asyncId) && h.push(
|
|
2289
|
-
|
|
2289
|
+
Ho(++e._lastAsyncId, {
|
|
2290
2290
|
props: t,
|
|
2291
2291
|
state: d,
|
|
2292
2292
|
actions: {
|
|
@@ -2294,7 +2294,7 @@ async function es(e, t, r) {
|
|
|
2294
2294
|
resume: mn,
|
|
2295
2295
|
start(E, w) {
|
|
2296
2296
|
p ? (qt(d, e._lastAsyncId), w(ut(e))) : (E.onRest = a, w(
|
|
2297
|
-
|
|
2297
|
+
Go(
|
|
2298
2298
|
f,
|
|
2299
2299
|
E,
|
|
2300
2300
|
d,
|
|
@@ -2307,37 +2307,37 @@ async function es(e, t, r) {
|
|
|
2307
2307
|
), d.paused && await new Promise((E) => {
|
|
2308
2308
|
d.resumeQueue.add(E);
|
|
2309
2309
|
});
|
|
2310
|
-
const
|
|
2311
|
-
if (s &&
|
|
2312
|
-
const E =
|
|
2310
|
+
const v = ei(e, await Promise.all(h));
|
|
2311
|
+
if (s && v.finished && !(r && v.noop)) {
|
|
2312
|
+
const E = Jo(t, s, i);
|
|
2313
2313
|
if (E)
|
|
2314
|
-
return
|
|
2314
|
+
return ns(e, [E]), Zo(e, E, !0);
|
|
2315
2315
|
}
|
|
2316
|
-
return u && C.batchedUpdates(() => u(
|
|
2316
|
+
return u && C.batchedUpdates(() => u(v, e, e.item)), v;
|
|
2317
2317
|
}
|
|
2318
|
-
function
|
|
2318
|
+
function Wi(e, t) {
|
|
2319
2319
|
const r = { ...e.springs };
|
|
2320
|
-
return t && T(
|
|
2321
|
-
_.und(n.keys) && (n =
|
|
2322
|
-
}),
|
|
2320
|
+
return t && T(oe(t), (n) => {
|
|
2321
|
+
_.und(n.keys) && (n = Wt(n)), _.obj(n.to) || (n = { ...n, to: void 0 }), rs(r, n, (i) => ts(i));
|
|
2322
|
+
}), es(e, r), r;
|
|
2323
2323
|
}
|
|
2324
|
-
function
|
|
2325
|
-
|
|
2326
|
-
e.springs[n] || (e.springs[n] = r,
|
|
2324
|
+
function es(e, t) {
|
|
2325
|
+
Se(t, (r, n) => {
|
|
2326
|
+
e.springs[n] || (e.springs[n] = r, vt(r, e));
|
|
2327
2327
|
});
|
|
2328
2328
|
}
|
|
2329
|
-
function
|
|
2329
|
+
function ts(e, t) {
|
|
2330
2330
|
const r = new Tc();
|
|
2331
|
-
return r.key = e, t &&
|
|
2331
|
+
return r.key = e, t && vt(r, t), r;
|
|
2332
2332
|
}
|
|
2333
|
-
function
|
|
2333
|
+
function rs(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 ns(e, t) {
|
|
2339
2339
|
T(t, (r) => {
|
|
2340
|
-
|
|
2340
|
+
rs(e.springs, r, (n) => ts(n, e));
|
|
2341
2341
|
});
|
|
2342
2342
|
}
|
|
2343
2343
|
var Mr = ({
|
|
@@ -2407,21 +2407,21 @@ function Fc(e, t, r) {
|
|
|
2407
2407
|
const i = rr(
|
|
2408
2408
|
() => n || arguments.length == 3 ? zc() : void 0,
|
|
2409
2409
|
[]
|
|
2410
|
-
), o =
|
|
2410
|
+
), o = Pe(0), s = zo(), a = rr(
|
|
2411
2411
|
() => ({
|
|
2412
2412
|
ctrls: [],
|
|
2413
2413
|
queue: [],
|
|
2414
2414
|
flush(y, b) {
|
|
2415
|
-
const m =
|
|
2415
|
+
const m = Wi(y, b);
|
|
2416
2416
|
return o.current > 0 && !a.queue.length && !Object.keys(m).some((O) => !y.springs[O]) ? _n(y, b) : new Promise((O) => {
|
|
2417
|
-
|
|
2417
|
+
es(y, m), a.queue.push(() => {
|
|
2418
2418
|
O(_n(y, b));
|
|
2419
2419
|
}), s();
|
|
2420
2420
|
});
|
|
2421
2421
|
}
|
|
2422
2422
|
}),
|
|
2423
2423
|
[]
|
|
2424
|
-
), u =
|
|
2424
|
+
), u = Pe([...a.ctrls]), l = [], f = Ii(e) || 0;
|
|
2425
2425
|
rr(() => {
|
|
2426
2426
|
T(u.current.slice(e, f), (y) => {
|
|
2427
2427
|
kc(y, i), y.stop(!0);
|
|
@@ -2435,7 +2435,7 @@ function Fc(e, t, r) {
|
|
|
2435
2435
|
O && (l[m] = Ic(O));
|
|
2436
2436
|
}
|
|
2437
2437
|
}
|
|
2438
|
-
const h = u.current.map((y, b) =>
|
|
2438
|
+
const h = u.current.map((y, b) => Wi(y, l[b])), p = Ln(Mr), v = Ii(p), E = p !== v && xc(p);
|
|
2439
2439
|
Xn(() => {
|
|
2440
2440
|
o.current++, a.ctrls = u.current;
|
|
2441
2441
|
const { queue: y } = a;
|
|
@@ -2444,13 +2444,13 @@ function Fc(e, t, r) {
|
|
|
2444
2444
|
const S = l[m];
|
|
2445
2445
|
S && (Oc(b, S.ref), b.ref ? b.queue.push(S) : b.start(S));
|
|
2446
2446
|
});
|
|
2447
|
-
}),
|
|
2447
|
+
}), Fo(() => () => {
|
|
2448
2448
|
T(a.ctrls, (y) => y.stop(!0));
|
|
2449
2449
|
});
|
|
2450
2450
|
const w = h.map((y) => ({ ...y }));
|
|
2451
2451
|
return i ? [w, i] : w;
|
|
2452
2452
|
}
|
|
2453
|
-
function
|
|
2453
|
+
function is(e, t) {
|
|
2454
2454
|
const r = _.fun(e), [[n], i] = Fc(
|
|
2455
2455
|
1,
|
|
2456
2456
|
r ? e : [e],
|
|
@@ -2460,16 +2460,16 @@ function os(e, t) {
|
|
|
2460
2460
|
}
|
|
2461
2461
|
var Lc = class extends ti {
|
|
2462
2462
|
constructor(e, t) {
|
|
2463
|
-
super(), this.source = e, this.idle = !0, this._active = /* @__PURE__ */ new Set(), this.calc =
|
|
2463
|
+
super(), this.source = e, this.idle = !0, this._active = /* @__PURE__ */ new Set(), this.calc = $t(...t);
|
|
2464
2464
|
const r = this._get(), n = gn(r);
|
|
2465
2465
|
Jn(this, n.create(r));
|
|
2466
2466
|
}
|
|
2467
2467
|
advance(e) {
|
|
2468
2468
|
const t = this._get(), r = this.get();
|
|
2469
|
-
|
|
2469
|
+
ke(t, r) || (_e(this).setValue(t), this._onChange(t, this.idle)), !this.idle && Hi(this._active) && on(this);
|
|
2470
2470
|
}
|
|
2471
2471
|
_get() {
|
|
2472
|
-
const e = _.arr(this.source) ? this.source.map(
|
|
2472
|
+
const e = _.arr(this.source) ? this.source.map(Z) : oe(Z(this.source));
|
|
2473
2473
|
return this.calc(...e);
|
|
2474
2474
|
}
|
|
2475
2475
|
_start() {
|
|
@@ -2480,19 +2480,19 @@ var Lc = class extends ti {
|
|
|
2480
2480
|
// Observe our sources only when we're observed.
|
|
2481
2481
|
_attach() {
|
|
2482
2482
|
let e = 1;
|
|
2483
|
-
T(
|
|
2484
|
-
|
|
2483
|
+
T(oe(this.source), (t) => {
|
|
2484
|
+
le(t) && vt(t, this), wn(t) && (t.idle || this._active.add(t), e = Math.max(e, t.priority + 1));
|
|
2485
2485
|
}), this.priority = e, this._start();
|
|
2486
2486
|
}
|
|
2487
2487
|
// Stop observing our sources once we have no observers.
|
|
2488
2488
|
_detach() {
|
|
2489
|
-
T(
|
|
2490
|
-
|
|
2489
|
+
T(oe(this.source), (e) => {
|
|
2490
|
+
le(e) && Ft(e, this);
|
|
2491
2491
|
}), this._active.clear(), on(this);
|
|
2492
2492
|
}
|
|
2493
2493
|
/** @internal */
|
|
2494
2494
|
eventObserved(e) {
|
|
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 =
|
|
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 = oe(this.source).reduce(
|
|
2496
2496
|
(t, r) => Math.max(t, (wn(r) ? r.priority : 0) + 1),
|
|
2497
2497
|
0
|
|
2498
2498
|
));
|
|
@@ -2507,21 +2507,21 @@ function Hi(e) {
|
|
|
2507
2507
|
function on(e) {
|
|
2508
2508
|
e.idle || (e.idle = !0, T(Vr(e), (t) => {
|
|
2509
2509
|
t.done = !0;
|
|
2510
|
-
}),
|
|
2510
|
+
}), zt(e, {
|
|
2511
2511
|
type: "idle",
|
|
2512
2512
|
parent: e
|
|
2513
2513
|
}));
|
|
2514
2514
|
}
|
|
2515
2515
|
we.assign({
|
|
2516
|
-
createStringInterpolator:
|
|
2516
|
+
createStringInterpolator: $o,
|
|
2517
2517
|
to: (e, t) => new Lc(e, t)
|
|
2518
2518
|
});
|
|
2519
|
-
var
|
|
2519
|
+
var os = /^--/;
|
|
2520
2520
|
function Uc(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 && !os.test(e) && !(jt.hasOwnProperty(e) && jt[e]) ? t + "px" : ("" + t).trim();
|
|
2522
2522
|
}
|
|
2523
2523
|
var Yi = {};
|
|
2524
|
-
function
|
|
2524
|
+
function qc(e, t) {
|
|
2525
2525
|
if (!e.nodeType || !e.setAttribute)
|
|
2526
2526
|
return !1;
|
|
2527
2527
|
const r = e.nodeName === "filter" || e.parentNode && e.parentNode.nodeName === "filter", {
|
|
@@ -2543,13 +2543,13 @@ function Wc(e, t) {
|
|
|
2543
2543
|
for (const h in i)
|
|
2544
2544
|
if (i.hasOwnProperty(h)) {
|
|
2545
2545
|
const p = Uc(h, i[h]);
|
|
2546
|
-
|
|
2546
|
+
os.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]);
|
|
2550
2550
|
}), n !== void 0 && (e.className = n), s !== void 0 && (e.scrollTop = s), a !== void 0 && (e.scrollLeft = a), u !== void 0 && e.setAttribute("viewBox", u);
|
|
2551
2551
|
}
|
|
2552
|
-
var
|
|
2552
|
+
var jt = {
|
|
2553
2553
|
animationIterationCount: !0,
|
|
2554
2554
|
borderImageOutset: !0,
|
|
2555
2555
|
borderImageSlice: !0,
|
|
@@ -2592,8 +2592,8 @@ var Vt = {
|
|
|
2592
2592
|
strokeMiterlimit: !0,
|
|
2593
2593
|
strokeOpacity: !0,
|
|
2594
2594
|
strokeWidth: !0
|
|
2595
|
-
},
|
|
2596
|
-
|
|
2595
|
+
}, Wc = (e, t) => e + t.charAt(0).toUpperCase() + t.substring(1), Hc = ["Webkit", "Ms", "Moz", "O"];
|
|
2596
|
+
jt = Object.keys(jt).reduce((e, t) => (Hc.forEach((r) => e[Wc(r, t)] = e[t]), e), jt);
|
|
2597
2597
|
var Yc = /^(matrix|translate|scale|rotate|skew)/, Gc = /^(translate)/, Kc = /^(rotate|skew)/, sn = (e, t) => _.num(e) && e !== 0 ? e + t : e, dr = (e, t) => _.arr(e) ? e.every((r) => dr(r, t)) : _.num(e) ? e === t : parseFloat(e) === t, Qc = class extends $r {
|
|
2598
2598
|
constructor({ x: e, y: t, z: r, ...n }) {
|
|
2599
2599
|
const i = [], o = [];
|
|
@@ -2601,14 +2601,14 @@ var Yc = /^(matrix|translate|scale|rotate|skew)/, Gc = /^(translate)/, Kc = /^(r
|
|
|
2601
2601
|
`translate3d(${s.map((a) => sn(a, "px")).join(",")})`,
|
|
2602
2602
|
// prettier-ignore
|
|
2603
2603
|
dr(s, 0)
|
|
2604
|
-
])),
|
|
2604
|
+
])), Se(n, (s, a) => {
|
|
2605
2605
|
if (a === "transform")
|
|
2606
2606
|
i.push([s || ""]), o.push((u) => [u, u === ""]);
|
|
2607
2607
|
else if (Yc.test(a)) {
|
|
2608
2608
|
if (delete n[a], _.und(s))
|
|
2609
2609
|
return;
|
|
2610
2610
|
const u = Gc.test(a) ? "px" : Kc.test(a) ? "deg" : "";
|
|
2611
|
-
i.push(
|
|
2611
|
+
i.push(oe(s)), o.push(
|
|
2612
2612
|
a === "rotate3d" ? ([l, f, d, h]) => [
|
|
2613
2613
|
`rotate3d(${l},${f},${d},${sn(h, u)})`,
|
|
2614
2614
|
dr(h, 0)
|
|
@@ -2620,7 +2620,7 @@ var Yc = /^(matrix|translate|scale|rotate|skew)/, Gc = /^(translate)/, Kc = /^(r
|
|
|
2620
2620
|
}
|
|
2621
2621
|
}), i.length && (n.transform = new Xc(i, o)), super(n);
|
|
2622
2622
|
}
|
|
2623
|
-
}, Xc = class extends
|
|
2623
|
+
}, Xc = class extends Do {
|
|
2624
2624
|
constructor(e, t) {
|
|
2625
2625
|
super(), this.inputs = e, this.transforms = t, this._value = null;
|
|
2626
2626
|
}
|
|
@@ -2630,8 +2630,8 @@ var Yc = /^(matrix|translate|scale|rotate|skew)/, Gc = /^(translate)/, Kc = /^(r
|
|
|
2630
2630
|
_get() {
|
|
2631
2631
|
let e = "", t = !0;
|
|
2632
2632
|
return T(this.inputs, (r, n) => {
|
|
2633
|
-
const i =
|
|
2634
|
-
_.arr(i) ? i : r.map(
|
|
2633
|
+
const i = Z(r[0]), [o, s] = this.transforms[n](
|
|
2634
|
+
_.arr(i) ? i : r.map(Z)
|
|
2635
2635
|
);
|
|
2636
2636
|
e += " " + o, t = t && s;
|
|
2637
2637
|
}), t ? "none" : e;
|
|
@@ -2642,7 +2642,7 @@ var Yc = /^(matrix|translate|scale|rotate|skew)/, Gc = /^(translate)/, Kc = /^(r
|
|
|
2642
2642
|
this.inputs,
|
|
2643
2643
|
(t) => T(
|
|
2644
2644
|
t,
|
|
2645
|
-
(r) =>
|
|
2645
|
+
(r) => le(r) && vt(r, this)
|
|
2646
2646
|
)
|
|
2647
2647
|
);
|
|
2648
2648
|
}
|
|
@@ -2652,12 +2652,12 @@ var Yc = /^(matrix|translate|scale|rotate|skew)/, Gc = /^(translate)/, Kc = /^(r
|
|
|
2652
2652
|
this.inputs,
|
|
2653
2653
|
(t) => T(
|
|
2654
2654
|
t,
|
|
2655
|
-
(r) =>
|
|
2655
|
+
(r) => le(r) && Ft(r, this)
|
|
2656
2656
|
)
|
|
2657
2657
|
);
|
|
2658
2658
|
}
|
|
2659
2659
|
eventObserved(e) {
|
|
2660
|
-
e.type == "change" && (this._value = null),
|
|
2660
|
+
e.type == "change" && (this._value = null), zt(this, e);
|
|
2661
2661
|
}
|
|
2662
2662
|
}, Jc = [
|
|
2663
2663
|
"a",
|
|
@@ -2797,94 +2797,98 @@ var Yc = /^(matrix|translate|scale|rotate|skew)/, Gc = /^(translate)/, Kc = /^(r
|
|
|
2797
2797
|
];
|
|
2798
2798
|
we.assign({
|
|
2799
2799
|
batchedUpdates: Ra,
|
|
2800
|
-
createStringInterpolator:
|
|
2800
|
+
createStringInterpolator: $o,
|
|
2801
2801
|
colors: La
|
|
2802
2802
|
});
|
|
2803
2803
|
var Zc = bc(Jc, {
|
|
2804
|
-
applyAnimatedValues:
|
|
2804
|
+
applyAnimatedValues: qc,
|
|
2805
2805
|
createAnimatedStyle: (e) => new Qc(e),
|
|
2806
2806
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2807
2807
|
getComponentProps: ({ scrollTop: e, scrollLeft: t, ...r }) => r
|
|
2808
|
-
}),
|
|
2809
|
-
function
|
|
2808
|
+
}), ss = Zc.animated;
|
|
2809
|
+
function as({
|
|
2810
2810
|
animate: e = !0,
|
|
2811
2811
|
content: t,
|
|
2812
2812
|
textStyles: r,
|
|
2813
2813
|
htmlElement: n,
|
|
2814
2814
|
fadeIn: i,
|
|
2815
|
-
characterPreference: o = "simplified"
|
|
2815
|
+
characterPreference: o = "simplified",
|
|
2816
|
+
maxDelay: s = 15e3
|
|
2816
2817
|
}) {
|
|
2817
|
-
const
|
|
2818
|
+
const a = n ?? "div", [u, l] = Gt(!1), [f, d] = is(() => ({
|
|
2818
2819
|
opacity: i ? 0 : 1,
|
|
2819
2820
|
transform: i ? "scale(0)" : "scale(1)",
|
|
2820
2821
|
config: { duration: 200 }
|
|
2821
|
-
})),
|
|
2822
|
-
|
|
2823
|
-
if (!d.current) return;
|
|
2824
|
-
const G = d.current, U = G.textContent, X = [t.english, t.simplified, t.traditional];
|
|
2825
|
-
let B = 0;
|
|
2826
|
-
X.forEach((oe) => {
|
|
2827
|
-
G.textContent = oe, B = Math.max(B, G.offsetWidth);
|
|
2828
|
-
}), G.textContent = U, f(B);
|
|
2829
|
-
}, [t.english, t.simplified, t.traditional]), vt(() => {
|
|
2822
|
+
})), h = Pe(e);
|
|
2823
|
+
gt(() => {
|
|
2830
2824
|
if (!e) {
|
|
2831
|
-
|
|
2825
|
+
h.current = e;
|
|
2832
2826
|
return;
|
|
2833
2827
|
}
|
|
2834
|
-
const
|
|
2835
|
-
|
|
2836
|
-
const
|
|
2837
|
-
|
|
2828
|
+
const ne = !h.current && e;
|
|
2829
|
+
h.current = e;
|
|
2830
|
+
const Y = ne ? 500 : Math.floor(Math.random() * (s - 3500 + 1)) + 3500, ie = setTimeout(() => {
|
|
2831
|
+
d.start({
|
|
2838
2832
|
opacity: 0,
|
|
2839
2833
|
transform: "translateY(15px)",
|
|
2840
2834
|
onRest: () => {
|
|
2841
|
-
|
|
2835
|
+
l((q) => !q), d.start({ opacity: 1, transform: "translateY(0px)" });
|
|
2842
2836
|
}
|
|
2843
2837
|
});
|
|
2844
|
-
},
|
|
2845
|
-
return () => clearTimeout(
|
|
2846
|
-
}, [
|
|
2847
|
-
const
|
|
2848
|
-
fontSize:
|
|
2849
|
-
fontFamily:
|
|
2850
|
-
fontWeight:
|
|
2851
|
-
fontStyle:
|
|
2852
|
-
letterSpacing:
|
|
2853
|
-
lineHeight:
|
|
2854
|
-
...
|
|
2855
|
-
} = r || {},
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
display: "inline-block",
|
|
2838
|
+
}, Y);
|
|
2839
|
+
return () => clearTimeout(ie);
|
|
2840
|
+
}, [u, e, d, s]);
|
|
2841
|
+
const p = o === "traditional" ? t.traditional : t.simplified, v = e && u ? p : t.english, {
|
|
2842
|
+
fontSize: E,
|
|
2843
|
+
fontFamily: w,
|
|
2844
|
+
fontWeight: y,
|
|
2845
|
+
fontStyle: b,
|
|
2846
|
+
letterSpacing: m,
|
|
2847
|
+
lineHeight: S,
|
|
2848
|
+
...O
|
|
2849
|
+
} = r || {}, P = {
|
|
2850
|
+
fontSize: E,
|
|
2851
|
+
fontFamily: w,
|
|
2852
|
+
fontWeight: y,
|
|
2853
|
+
fontStyle: b,
|
|
2854
|
+
letterSpacing: m,
|
|
2855
|
+
lineHeight: S
|
|
2856
|
+
}, k = {
|
|
2857
|
+
...O,
|
|
2858
|
+
display: "inline-grid",
|
|
2866
2859
|
alignContent: "center"
|
|
2860
|
+
}, j = {
|
|
2861
|
+
...P,
|
|
2862
|
+
gridArea: "1 / 1"
|
|
2863
|
+
}, M = {
|
|
2864
|
+
...P,
|
|
2865
|
+
gridArea: "1 / 1",
|
|
2866
|
+
visibility: "hidden"
|
|
2867
2867
|
};
|
|
2868
|
-
return /* @__PURE__ */
|
|
2869
|
-
|
|
2868
|
+
return /* @__PURE__ */ D.jsx(
|
|
2869
|
+
ss.div,
|
|
2870
2870
|
{
|
|
2871
2871
|
style: {
|
|
2872
|
-
...
|
|
2873
|
-
display: "inline-block"
|
|
2874
|
-
minWidth: l !== void 0 ? `${l}px` : void 0
|
|
2872
|
+
...f,
|
|
2873
|
+
display: "inline-block"
|
|
2875
2874
|
},
|
|
2876
|
-
children: /* @__PURE__ */
|
|
2875
|
+
children: /* @__PURE__ */ D.jsxs(a, { style: k, children: [
|
|
2876
|
+
/* @__PURE__ */ D.jsx("span", { style: j, children: v }),
|
|
2877
|
+
/* @__PURE__ */ D.jsx("span", { style: M, children: t.english }),
|
|
2878
|
+
/* @__PURE__ */ D.jsx("span", { style: M, children: t.simplified }),
|
|
2879
|
+
/* @__PURE__ */ D.jsx("span", { style: M, children: t.traditional })
|
|
2880
|
+
] })
|
|
2877
2881
|
}
|
|
2878
2882
|
);
|
|
2879
2883
|
}
|
|
2880
|
-
var
|
|
2881
|
-
return
|
|
2884
|
+
var te = function() {
|
|
2885
|
+
return te = Object.assign || function(t) {
|
|
2882
2886
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
2883
2887
|
r = arguments[n];
|
|
2884
2888
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
2885
2889
|
}
|
|
2886
2890
|
return t;
|
|
2887
|
-
},
|
|
2891
|
+
}, te.apply(this, arguments);
|
|
2888
2892
|
};
|
|
2889
2893
|
function Qe(e, t, r) {
|
|
2890
2894
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
@@ -2902,14 +2906,14 @@ var tu = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
2902
2906
|
return tu.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
2903
2907
|
}
|
|
2904
2908
|
/* Z+1 */
|
|
2905
|
-
), F = "-ms-",
|
|
2909
|
+
), F = "-ms-", Vt = "-moz-", $ = "-webkit-", cs = "comm", zr = "rule", ri = "decl", nu = "@import", us = "@keyframes", iu = "@layer", ls = Math.abs, ni = String.fromCharCode, En = Object.assign;
|
|
2906
2910
|
function ou(e, t) {
|
|
2907
|
-
return
|
|
2911
|
+
return G(e, 0) ^ 45 ? (((t << 2 ^ G(e, 0)) << 2 ^ G(e, 1)) << 2 ^ G(e, 2)) << 2 ^ G(e, 3) : 0;
|
|
2908
2912
|
}
|
|
2909
|
-
function
|
|
2913
|
+
function fs(e) {
|
|
2910
2914
|
return e.trim();
|
|
2911
2915
|
}
|
|
2912
|
-
function
|
|
2916
|
+
function Oe(e, t) {
|
|
2913
2917
|
return (e = t.exec(e)) ? e[0] : e;
|
|
2914
2918
|
}
|
|
2915
2919
|
function R(e, t, r) {
|
|
@@ -2918,19 +2922,19 @@ function R(e, t, r) {
|
|
|
2918
2922
|
function hr(e, t, r) {
|
|
2919
2923
|
return e.indexOf(t, r);
|
|
2920
2924
|
}
|
|
2921
|
-
function
|
|
2925
|
+
function G(e, t) {
|
|
2922
2926
|
return e.charCodeAt(t) | 0;
|
|
2923
2927
|
}
|
|
2924
|
-
function
|
|
2928
|
+
function ft(e, t, r) {
|
|
2925
2929
|
return e.slice(t, r);
|
|
2926
2930
|
}
|
|
2927
2931
|
function Ee(e) {
|
|
2928
2932
|
return e.length;
|
|
2929
2933
|
}
|
|
2930
|
-
function
|
|
2934
|
+
function ds(e) {
|
|
2931
2935
|
return e.length;
|
|
2932
2936
|
}
|
|
2933
|
-
function
|
|
2937
|
+
function Rt(e, t) {
|
|
2934
2938
|
return t.push(e), e;
|
|
2935
2939
|
}
|
|
2936
2940
|
function su(e, t) {
|
|
@@ -2938,12 +2942,12 @@ function su(e, t) {
|
|
|
2938
2942
|
}
|
|
2939
2943
|
function Gi(e, t) {
|
|
2940
2944
|
return e.filter(function(r) {
|
|
2941
|
-
return !
|
|
2945
|
+
return !Oe(r, t);
|
|
2942
2946
|
});
|
|
2943
2947
|
}
|
|
2944
|
-
var Fr = 1,
|
|
2948
|
+
var Fr = 1, dt = 1, hs = 0, de = 0, H = 0, bt = "";
|
|
2945
2949
|
function Lr(e, t, r, n, i, o, s, a) {
|
|
2946
|
-
return { value: e, root: t, parent: r, type: n, props: i, children: o, line: Fr, column:
|
|
2950
|
+
return { value: e, root: t, parent: r, type: n, props: i, children: o, line: Fr, column: dt, length: s, return: "", siblings: a };
|
|
2947
2951
|
}
|
|
2948
2952
|
function De(e, t) {
|
|
2949
2953
|
return En(Lr("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
@@ -2951,25 +2955,25 @@ function De(e, t) {
|
|
|
2951
2955
|
function at(e) {
|
|
2952
2956
|
for (; e.root; )
|
|
2953
2957
|
e = De(e.root, { children: [e] });
|
|
2954
|
-
|
|
2958
|
+
Rt(e, e.siblings);
|
|
2955
2959
|
}
|
|
2956
2960
|
function au() {
|
|
2957
|
-
return
|
|
2961
|
+
return H;
|
|
2958
2962
|
}
|
|
2959
2963
|
function cu() {
|
|
2960
|
-
return
|
|
2964
|
+
return H = de > 0 ? G(bt, --de) : 0, dt--, H === 10 && (dt = 1, Fr--), H;
|
|
2961
2965
|
}
|
|
2962
2966
|
function be() {
|
|
2963
|
-
return
|
|
2967
|
+
return H = de < hs ? G(bt, de++) : 0, dt++, H === 10 && (dt = 1, Fr++), H;
|
|
2964
2968
|
}
|
|
2965
2969
|
function He() {
|
|
2966
|
-
return
|
|
2970
|
+
return G(bt, de);
|
|
2967
2971
|
}
|
|
2968
2972
|
function pr() {
|
|
2969
|
-
return
|
|
2973
|
+
return de;
|
|
2970
2974
|
}
|
|
2971
2975
|
function Br(e, t) {
|
|
2972
|
-
return
|
|
2976
|
+
return ft(bt, e, t);
|
|
2973
2977
|
}
|
|
2974
2978
|
function Sn(e) {
|
|
2975
2979
|
switch (e) {
|
|
@@ -3010,34 +3014,34 @@ function Sn(e) {
|
|
|
3010
3014
|
return 0;
|
|
3011
3015
|
}
|
|
3012
3016
|
function uu(e) {
|
|
3013
|
-
return Fr =
|
|
3017
|
+
return Fr = dt = 1, hs = Ee(bt = e), de = 0, [];
|
|
3014
3018
|
}
|
|
3015
3019
|
function lu(e) {
|
|
3016
|
-
return
|
|
3020
|
+
return bt = "", e;
|
|
3017
3021
|
}
|
|
3018
3022
|
function an(e) {
|
|
3019
|
-
return
|
|
3023
|
+
return fs(Br(de - 1, xn(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
3020
3024
|
}
|
|
3021
3025
|
function fu(e) {
|
|
3022
|
-
for (; (
|
|
3026
|
+
for (; (H = He()) && H < 33; )
|
|
3023
3027
|
be();
|
|
3024
|
-
return Sn(e) > 2 || Sn(
|
|
3028
|
+
return Sn(e) > 2 || Sn(H) > 3 ? "" : " ";
|
|
3025
3029
|
}
|
|
3026
3030
|
function du(e, t) {
|
|
3027
|
-
for (; --t && be() && !(
|
|
3031
|
+
for (; --t && be() && !(H < 48 || H > 102 || H > 57 && H < 65 || H > 70 && H < 97); )
|
|
3028
3032
|
;
|
|
3029
3033
|
return Br(e, pr() + (t < 6 && He() == 32 && be() == 32));
|
|
3030
3034
|
}
|
|
3031
3035
|
function xn(e) {
|
|
3032
3036
|
for (; be(); )
|
|
3033
|
-
switch (
|
|
3037
|
+
switch (H) {
|
|
3034
3038
|
// ] ) " '
|
|
3035
3039
|
case e:
|
|
3036
|
-
return
|
|
3040
|
+
return de;
|
|
3037
3041
|
// " '
|
|
3038
3042
|
case 34:
|
|
3039
3043
|
case 39:
|
|
3040
|
-
e !== 34 && e !== 39 && xn(
|
|
3044
|
+
e !== 34 && e !== 39 && xn(H);
|
|
3041
3045
|
break;
|
|
3042
3046
|
// (
|
|
3043
3047
|
case 40:
|
|
@@ -3048,29 +3052,29 @@ function xn(e) {
|
|
|
3048
3052
|
be();
|
|
3049
3053
|
break;
|
|
3050
3054
|
}
|
|
3051
|
-
return
|
|
3055
|
+
return de;
|
|
3052
3056
|
}
|
|
3053
3057
|
function hu(e, t) {
|
|
3054
|
-
for (; be() && e +
|
|
3055
|
-
if (e +
|
|
3058
|
+
for (; be() && e + H !== 57; )
|
|
3059
|
+
if (e + H === 84 && He() === 47)
|
|
3056
3060
|
break;
|
|
3057
|
-
return "/*" + Br(t,
|
|
3061
|
+
return "/*" + Br(t, de - 1) + "*" + ni(e === 47 ? e : be());
|
|
3058
3062
|
}
|
|
3059
3063
|
function pu(e) {
|
|
3060
3064
|
for (; !Sn(He()); )
|
|
3061
3065
|
be();
|
|
3062
|
-
return Br(e,
|
|
3066
|
+
return Br(e, de);
|
|
3063
3067
|
}
|
|
3064
3068
|
function mu(e) {
|
|
3065
3069
|
return lu(mr("", null, null, null, [""], e = uu(e), 0, [0], e));
|
|
3066
3070
|
}
|
|
3067
3071
|
function mr(e, t, r, n, i, o, s, a, u) {
|
|
3068
|
-
for (var l = 0, f = 0, d = s, h = 0, p = 0,
|
|
3069
|
-
switch (
|
|
3072
|
+
for (var l = 0, f = 0, d = s, h = 0, p = 0, v = 0, E = 1, w = 1, y = 1, b = 0, m = "", S = i, O = o, P = n, k = m; w; )
|
|
3073
|
+
switch (v = b, b = be()) {
|
|
3070
3074
|
// (
|
|
3071
3075
|
case 40:
|
|
3072
|
-
if (
|
|
3073
|
-
hr(k += R(an(b), "&", "&\f"), "&\f",
|
|
3076
|
+
if (v != 108 && G(k, d - 1) == 58) {
|
|
3077
|
+
hr(k += R(an(b), "&", "&\f"), "&\f", ls(l ? a[l - 1] : 0)) != -1 && (y = -1);
|
|
3074
3078
|
break;
|
|
3075
3079
|
}
|
|
3076
3080
|
// " ' [
|
|
@@ -3084,7 +3088,7 @@ function mr(e, t, r, n, i, o, s, a, u) {
|
|
|
3084
3088
|
case 10:
|
|
3085
3089
|
case 13:
|
|
3086
3090
|
case 32:
|
|
3087
|
-
k += fu(
|
|
3091
|
+
k += fu(v);
|
|
3088
3092
|
break;
|
|
3089
3093
|
// \
|
|
3090
3094
|
case 92:
|
|
@@ -3095,7 +3099,7 @@ function mr(e, t, r, n, i, o, s, a, u) {
|
|
|
3095
3099
|
switch (He()) {
|
|
3096
3100
|
case 42:
|
|
3097
3101
|
case 47:
|
|
3098
|
-
|
|
3102
|
+
Rt(yu(hu(be(), pr()), t, r, u), u);
|
|
3099
3103
|
break;
|
|
3100
3104
|
default:
|
|
3101
3105
|
k += "/";
|
|
@@ -3115,24 +3119,24 @@ function mr(e, t, r, n, i, o, s, a, u) {
|
|
|
3115
3119
|
w = 0;
|
|
3116
3120
|
// ;
|
|
3117
3121
|
case 59 + f:
|
|
3118
|
-
y == -1 && (k = R(k, /\f/g, "")), p > 0 && Ee(k) - d &&
|
|
3122
|
+
y == -1 && (k = R(k, /\f/g, "")), p > 0 && Ee(k) - d && Rt(p > 32 ? Qi(k + ";", n, r, d - 1, u) : Qi(R(k, " ", "") + ";", n, r, d - 2, u), u);
|
|
3119
3123
|
break;
|
|
3120
3124
|
// @ ;
|
|
3121
3125
|
case 59:
|
|
3122
3126
|
k += ";";
|
|
3123
3127
|
// { rule/at-rule
|
|
3124
3128
|
default:
|
|
3125
|
-
if (
|
|
3129
|
+
if (Rt(P = Ki(k, t, r, l, f, i, a, m, S = [], O = [], d, o), o), b === 123)
|
|
3126
3130
|
if (f === 0)
|
|
3127
3131
|
mr(k, t, P, P, S, o, d, a, O);
|
|
3128
3132
|
else
|
|
3129
|
-
switch (h === 99 &&
|
|
3133
|
+
switch (h === 99 && G(k, 3) === 110 ? 100 : h) {
|
|
3130
3134
|
// d l m s
|
|
3131
3135
|
case 100:
|
|
3132
3136
|
case 108:
|
|
3133
3137
|
case 109:
|
|
3134
3138
|
case 115:
|
|
3135
|
-
mr(e, P, P, n &&
|
|
3139
|
+
mr(e, P, P, n && Rt(Ki(e, P, P, 0, 0, i, a, m, i, S = [], d, O), O), i, O, d, a, n ? S : O);
|
|
3136
3140
|
break;
|
|
3137
3141
|
default:
|
|
3138
3142
|
mr(k, P, P, P, [""], O, 0, a, O);
|
|
@@ -3142,7 +3146,7 @@ function mr(e, t, r, n, i, o, s, a, u) {
|
|
|
3142
3146
|
break;
|
|
3143
3147
|
// :
|
|
3144
3148
|
case 58:
|
|
3145
|
-
d = 1 + Ee(k), p =
|
|
3149
|
+
d = 1 + Ee(k), p = v;
|
|
3146
3150
|
default:
|
|
3147
3151
|
if (E < 1) {
|
|
3148
3152
|
if (b == 123)
|
|
@@ -3165,24 +3169,24 @@ function mr(e, t, r, n, i, o, s, a, u) {
|
|
|
3165
3169
|
break;
|
|
3166
3170
|
// -
|
|
3167
3171
|
case 45:
|
|
3168
|
-
|
|
3172
|
+
v === 45 && Ee(k) == 2 && (E = 0);
|
|
3169
3173
|
}
|
|
3170
3174
|
}
|
|
3171
3175
|
return o;
|
|
3172
3176
|
}
|
|
3173
3177
|
function Ki(e, t, r, n, i, o, s, a, u, l, f, d) {
|
|
3174
|
-
for (var h = i - 1, p = i === 0 ? o : [""],
|
|
3175
|
-
for (var b = 0, m =
|
|
3176
|
-
(S =
|
|
3178
|
+
for (var h = i - 1, p = i === 0 ? o : [""], v = ds(p), E = 0, w = 0, y = 0; E < n; ++E)
|
|
3179
|
+
for (var b = 0, m = ft(e, h + 1, h = ls(w = s[E])), S = e; b < v; ++b)
|
|
3180
|
+
(S = fs(w > 0 ? p[b] + " " + m : R(m, /&\f/g, p[b]))) && (u[y++] = S);
|
|
3177
3181
|
return Lr(e, t, r, i === 0 ? zr : a, u, l, f, d);
|
|
3178
3182
|
}
|
|
3179
3183
|
function yu(e, t, r, n) {
|
|
3180
|
-
return Lr(e, t, r,
|
|
3184
|
+
return Lr(e, t, r, cs, ni(au()), ft(e, 2, -2), 0, n);
|
|
3181
3185
|
}
|
|
3182
3186
|
function Qi(e, t, r, n, i) {
|
|
3183
|
-
return Lr(e, t, r, ri,
|
|
3187
|
+
return Lr(e, t, r, ri, ft(e, 0, n), ft(e, n + 1, -1), n, i);
|
|
3184
3188
|
}
|
|
3185
|
-
function
|
|
3189
|
+
function ps(e, t, r) {
|
|
3186
3190
|
switch (ou(e, t)) {
|
|
3187
3191
|
// color-adjust
|
|
3188
3192
|
case 5103:
|
|
@@ -3219,17 +3223,17 @@ function ms(e, t, r) {
|
|
|
3219
3223
|
return $ + e + e;
|
|
3220
3224
|
// tab-size
|
|
3221
3225
|
case 4789:
|
|
3222
|
-
return
|
|
3226
|
+
return Vt + e + e;
|
|
3223
3227
|
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
3224
3228
|
case 5349:
|
|
3225
3229
|
case 4246:
|
|
3226
3230
|
case 4810:
|
|
3227
3231
|
case 6968:
|
|
3228
3232
|
case 2756:
|
|
3229
|
-
return $ + e +
|
|
3233
|
+
return $ + e + Vt + e + F + e + e;
|
|
3230
3234
|
// writing-mode
|
|
3231
3235
|
case 5936:
|
|
3232
|
-
switch (
|
|
3236
|
+
switch (G(e, t + 11)) {
|
|
3233
3237
|
// vertical-l(r)
|
|
3234
3238
|
case 114:
|
|
3235
3239
|
return $ + e + F + R(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
@@ -3253,7 +3257,7 @@ function ms(e, t, r) {
|
|
|
3253
3257
|
return $ + e + R(e, /(\w+).+(:[^]+)/, $ + "box-$1$2" + F + "flex-$1$2") + e;
|
|
3254
3258
|
// align-self
|
|
3255
3259
|
case 5443:
|
|
3256
|
-
return $ + e + F + "flex-item-" + R(e, /flex-|-self/g, "") + (
|
|
3260
|
+
return $ + e + F + "flex-item-" + R(e, /flex-|-self/g, "") + (Oe(e, /flex-|baseline/) ? "" : F + "grid-row-" + R(e, /flex-|-self/g, "")) + e;
|
|
3257
3261
|
// align-content
|
|
3258
3262
|
case 4675:
|
|
3259
3263
|
return $ + e + F + "flex-line-pack" + R(e, /align-content|flex-|-self/g, "") + e;
|
|
@@ -3281,7 +3285,7 @@ function ms(e, t, r) {
|
|
|
3281
3285
|
return R(R(e, /(.+:)(flex-)?(.*)/, $ + "box-pack:$3" + F + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + $ + e + e;
|
|
3282
3286
|
// justify-self
|
|
3283
3287
|
case 4200:
|
|
3284
|
-
if (!
|
|
3288
|
+
if (!Oe(e, /flex-|baseline/)) return F + "grid-column-align" + ft(e, t) + e;
|
|
3285
3289
|
break;
|
|
3286
3290
|
// grid-template-(columns|rows)
|
|
3287
3291
|
case 2592:
|
|
@@ -3291,13 +3295,13 @@ function ms(e, t, r) {
|
|
|
3291
3295
|
case 4384:
|
|
3292
3296
|
case 3616:
|
|
3293
3297
|
return r && r.some(function(n, i) {
|
|
3294
|
-
return t = i,
|
|
3295
|
-
}) ? ~hr(e + (r = r[t].value), "span", 0) ? e : F + R(e, "-start", "") + e + F + "grid-row-span:" + (~hr(r, "span", 0) ?
|
|
3298
|
+
return t = i, Oe(n.props, /grid-\w+-end/);
|
|
3299
|
+
}) ? ~hr(e + (r = r[t].value), "span", 0) ? e : F + R(e, "-start", "") + e + F + "grid-row-span:" + (~hr(r, "span", 0) ? Oe(r, /\d+/) : +Oe(r, /\d+/) - +Oe(e, /\d+/)) + ";" : F + R(e, "-start", "") + e;
|
|
3296
3300
|
// grid-(row|column)-end
|
|
3297
3301
|
case 4896:
|
|
3298
3302
|
case 4128:
|
|
3299
3303
|
return r && r.some(function(n) {
|
|
3300
|
-
return
|
|
3304
|
+
return Oe(n.props, /grid-\w+-start/);
|
|
3301
3305
|
}) ? e : F + R(R(e, "-end", "-span"), "span ", "") + e;
|
|
3302
3306
|
// (margin|padding)-inline-(start|end)
|
|
3303
3307
|
case 4095:
|
|
@@ -3319,17 +3323,17 @@ function ms(e, t, r) {
|
|
|
3319
3323
|
case 5021:
|
|
3320
3324
|
case 4765:
|
|
3321
3325
|
if (Ee(e) - 1 - t > 6)
|
|
3322
|
-
switch (
|
|
3326
|
+
switch (G(e, t + 1)) {
|
|
3323
3327
|
// (m)ax-content, (m)in-content
|
|
3324
3328
|
case 109:
|
|
3325
|
-
if (
|
|
3329
|
+
if (G(e, t + 4) !== 45)
|
|
3326
3330
|
break;
|
|
3327
3331
|
// (f)ill-available, (f)it-content
|
|
3328
3332
|
case 102:
|
|
3329
|
-
return R(e, /(.+:)(.+)-([^]+)/, "$1" + $ + "$2-$3$1" +
|
|
3333
|
+
return R(e, /(.+:)(.+)-([^]+)/, "$1" + $ + "$2-$3$1" + Vt + (G(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
3330
3334
|
// (s)tretch
|
|
3331
3335
|
case 115:
|
|
3332
|
-
return ~hr(e, "stretch", 0) ?
|
|
3336
|
+
return ~hr(e, "stretch", 0) ? ps(R(e, "stretch", "fill-available"), t, r) + e : e;
|
|
3333
3337
|
}
|
|
3334
3338
|
break;
|
|
3335
3339
|
// grid-(column|row)
|
|
@@ -3340,15 +3344,15 @@ function ms(e, t, r) {
|
|
|
3340
3344
|
});
|
|
3341
3345
|
// position: sticky
|
|
3342
3346
|
case 4949:
|
|
3343
|
-
if (
|
|
3347
|
+
if (G(e, t + 6) === 121)
|
|
3344
3348
|
return R(e, ":", ":" + $) + e;
|
|
3345
3349
|
break;
|
|
3346
3350
|
// display: (flex|inline-flex|grid|inline-grid)
|
|
3347
3351
|
case 6444:
|
|
3348
|
-
switch (
|
|
3352
|
+
switch (G(e, G(e, 14) === 45 ? 18 : 11)) {
|
|
3349
3353
|
// (inline-)?fle(x)
|
|
3350
3354
|
case 120:
|
|
3351
|
-
return R(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + $ + (
|
|
3355
|
+
return R(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + $ + (G(e, 14) === 45 ? "inline-" : "") + "box$3$1" + $ + "$2$3$1" + F + "$2box$3") + e;
|
|
3352
3356
|
// (inline-)?gri(d)
|
|
3353
3357
|
case 100:
|
|
3354
3358
|
return R(e, ":", ":" + F) + e;
|
|
@@ -3376,9 +3380,9 @@ function gu(e, t, r, n) {
|
|
|
3376
3380
|
case nu:
|
|
3377
3381
|
case ri:
|
|
3378
3382
|
return e.return = e.return || e.value;
|
|
3379
|
-
case
|
|
3383
|
+
case cs:
|
|
3380
3384
|
return "";
|
|
3381
|
-
case
|
|
3385
|
+
case us:
|
|
3382
3386
|
return e.return = e.value + "{" + Er(e.children, n) + "}";
|
|
3383
3387
|
case zr:
|
|
3384
3388
|
if (!Ee(e.value = e.props.join(","))) return "";
|
|
@@ -3386,7 +3390,7 @@ function gu(e, t, r, n) {
|
|
|
3386
3390
|
return Ee(r = Er(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
3387
3391
|
}
|
|
3388
3392
|
function vu(e) {
|
|
3389
|
-
var t =
|
|
3393
|
+
var t = ds(e);
|
|
3390
3394
|
return function(r, n, i, o) {
|
|
3391
3395
|
for (var s = "", a = 0; a < t; a++)
|
|
3392
3396
|
s += e[a](r, n, i, o) || "";
|
|
@@ -3402,22 +3406,22 @@ function wu(e, t, r, n) {
|
|
|
3402
3406
|
if (e.length > -1 && !e.return)
|
|
3403
3407
|
switch (e.type) {
|
|
3404
3408
|
case ri:
|
|
3405
|
-
e.return =
|
|
3409
|
+
e.return = ps(e.value, e.length, r);
|
|
3406
3410
|
return;
|
|
3407
|
-
case
|
|
3411
|
+
case us:
|
|
3408
3412
|
return Er([De(e, { value: R(e.value, "@", "@" + $) })], n);
|
|
3409
3413
|
case zr:
|
|
3410
3414
|
if (e.length)
|
|
3411
3415
|
return su(r = e.props, function(i) {
|
|
3412
|
-
switch (
|
|
3416
|
+
switch (Oe(i, n = /(::plac\w+|:read-\w+)/)) {
|
|
3413
3417
|
// :read-(only|write)
|
|
3414
3418
|
case ":read-only":
|
|
3415
3419
|
case ":read-write":
|
|
3416
|
-
at(De(e, { props: [R(i, /:(read-\w+)/, ":" +
|
|
3420
|
+
at(De(e, { props: [R(i, /:(read-\w+)/, ":" + Vt + "$1")] })), at(De(e, { props: [i] })), En(e, { props: Gi(r, n) });
|
|
3417
3421
|
break;
|
|
3418
3422
|
// :placeholder
|
|
3419
3423
|
case "::placeholder":
|
|
3420
|
-
at(De(e, { props: [R(i, /:(plac\w+)/, ":" + $ + "input-$1")] })), at(De(e, { props: [R(i, /:(plac\w+)/, ":" +
|
|
3424
|
+
at(De(e, { props: [R(i, /:(plac\w+)/, ":" + $ + "input-$1")] })), at(De(e, { props: [R(i, /:(plac\w+)/, ":" + Vt + "$1")] })), at(De(e, { props: [R(i, /:(plac\w+)/, F + "input-$1")] })), at(De(e, { props: [i] })), En(e, { props: Gi(r, n) });
|
|
3421
3425
|
break;
|
|
3422
3426
|
}
|
|
3423
3427
|
return "";
|
|
@@ -3472,7 +3476,7 @@ var _u = {
|
|
|
3472
3476
|
strokeMiterlimit: 1,
|
|
3473
3477
|
strokeOpacity: 1,
|
|
3474
3478
|
strokeWidth: 1
|
|
3475
|
-
}, Xe = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled",
|
|
3479
|
+
}, Xe = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", ms = "active", ys = "data-styled-version", Ur = "6.1.16", ii = `/*!sc*/
|
|
3476
3480
|
`, Sr = typeof window < "u" && "HTMLElement" in window, Eu = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Xi = /invalid hook call/i, or = /* @__PURE__ */ new Set(), Su = function(e, t) {
|
|
3477
3481
|
if (process.env.NODE_ENV !== "production") {
|
|
3478
3482
|
var r = t ? ' with the id of "'.concat(t, '"') : "", n = "The component ".concat(e).concat(r, ` has been created dynamically.
|
|
@@ -3483,16 +3487,16 @@ To resolve this only create new StyledComponents outside of any render method an
|
|
|
3483
3487
|
console.error = function(s) {
|
|
3484
3488
|
for (var a = [], u = 1; u < arguments.length; u++) a[u - 1] = arguments[u];
|
|
3485
3489
|
Xi.test(s) ? (o = !1, or.delete(n)) : i.apply(void 0, Qe([s], a, !1));
|
|
3486
|
-
},
|
|
3490
|
+
}, Pe(), o && !or.has(n) && (console.warn(n), or.add(n));
|
|
3487
3491
|
} catch (s) {
|
|
3488
3492
|
Xi.test(s.message) && or.delete(n);
|
|
3489
3493
|
} finally {
|
|
3490
3494
|
console.error = i;
|
|
3491
3495
|
}
|
|
3492
3496
|
}
|
|
3493
|
-
},
|
|
3497
|
+
}, qr = Object.freeze([]), ht = Object.freeze({});
|
|
3494
3498
|
function xu(e, t, r) {
|
|
3495
|
-
return r === void 0 && (r =
|
|
3499
|
+
return r === void 0 && (r = ht), e.theme !== r.theme && e.theme || t || r.theme;
|
|
3496
3500
|
}
|
|
3497
3501
|
var kn = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), ku = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Ou = /(^-|-$)/g;
|
|
3498
3502
|
function Ji(e) {
|
|
@@ -3506,32 +3510,32 @@ function On(e) {
|
|
|
3506
3510
|
for (t = Math.abs(e); t > sr; t = t / sr | 0) r = Zi(t % sr) + r;
|
|
3507
3511
|
return (Zi(t % sr) + r).replace(Pu, "$1-$2");
|
|
3508
3512
|
}
|
|
3509
|
-
var cn,
|
|
3513
|
+
var cn, gs = 5381, qe = function(e, t) {
|
|
3510
3514
|
for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
|
|
3511
3515
|
return e;
|
|
3512
|
-
},
|
|
3513
|
-
return
|
|
3516
|
+
}, vs = function(e) {
|
|
3517
|
+
return qe(gs, e);
|
|
3514
3518
|
};
|
|
3515
|
-
function
|
|
3516
|
-
return On(
|
|
3519
|
+
function bs(e) {
|
|
3520
|
+
return On(vs(e) >>> 0);
|
|
3517
3521
|
}
|
|
3518
|
-
function
|
|
3522
|
+
function ws(e) {
|
|
3519
3523
|
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
3520
3524
|
}
|
|
3521
3525
|
function un(e) {
|
|
3522
3526
|
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
3523
3527
|
}
|
|
3524
|
-
var
|
|
3528
|
+
var _s = typeof Symbol == "function" && Symbol.for, Es = _s ? Symbol.for("react.memo") : 60115, Nu = _s ? Symbol.for("react.forward_ref") : 60112, Cu = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Ru = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Ss = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Au = ((cn = {})[Nu] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, cn[Es] = Ss, cn);
|
|
3525
3529
|
function eo(e) {
|
|
3526
|
-
return ("type" in (t = e) && t.type.$$typeof) ===
|
|
3530
|
+
return ("type" in (t = e) && t.type.$$typeof) === Es ? Ss : "$$typeof" in e ? Au[e.$$typeof] : Cu;
|
|
3527
3531
|
var t;
|
|
3528
3532
|
}
|
|
3529
3533
|
var Tu = Object.defineProperty, Iu = Object.getOwnPropertyNames, to = Object.getOwnPropertySymbols, Du = Object.getOwnPropertyDescriptor, ju = Object.getPrototypeOf, ro = Object.prototype;
|
|
3530
|
-
function
|
|
3534
|
+
function xs(e, t, r) {
|
|
3531
3535
|
if (typeof t != "string") {
|
|
3532
3536
|
if (ro) {
|
|
3533
3537
|
var n = ju(t);
|
|
3534
|
-
n && n !== ro &&
|
|
3538
|
+
n && n !== ro && xs(e, n, r);
|
|
3535
3539
|
}
|
|
3536
3540
|
var i = Iu(t);
|
|
3537
3541
|
to && (i = i.concat(to(t)));
|
|
@@ -3548,13 +3552,13 @@ function ks(e, t, r) {
|
|
|
3548
3552
|
}
|
|
3549
3553
|
return e;
|
|
3550
3554
|
}
|
|
3551
|
-
function
|
|
3555
|
+
function pt(e) {
|
|
3552
3556
|
return typeof e == "function";
|
|
3553
3557
|
}
|
|
3554
3558
|
function oi(e) {
|
|
3555
3559
|
return typeof e == "object" && "styledComponentId" in e;
|
|
3556
3560
|
}
|
|
3557
|
-
function
|
|
3561
|
+
function We(e, t) {
|
|
3558
3562
|
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
3559
3563
|
}
|
|
3560
3564
|
function Pn(e, t) {
|
|
@@ -3562,13 +3566,13 @@ function Pn(e, t) {
|
|
|
3562
3566
|
for (var r = e[0], n = 1; n < e.length; n++) r += e[n];
|
|
3563
3567
|
return r;
|
|
3564
3568
|
}
|
|
3565
|
-
function
|
|
3569
|
+
function mt(e) {
|
|
3566
3570
|
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
3567
3571
|
}
|
|
3568
3572
|
function Nn(e, t, r) {
|
|
3569
|
-
if (r === void 0 && (r = !1), !r && !
|
|
3573
|
+
if (r === void 0 && (r = !1), !r && !mt(e) && !Array.isArray(e)) return t;
|
|
3570
3574
|
if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = Nn(e[n], t[n]);
|
|
3571
|
-
else if (
|
|
3575
|
+
else if (mt(t)) for (var n in t) e[n] = Nn(e[n], t[n]);
|
|
3572
3576
|
return e;
|
|
3573
3577
|
}
|
|
3574
3578
|
function si(e, t) {
|
|
@@ -3623,7 +3627,7 @@ function $u() {
|
|
|
3623
3627
|
r = r.replace(/%[a-z]/, s);
|
|
3624
3628
|
}), r;
|
|
3625
3629
|
}
|
|
3626
|
-
function
|
|
3630
|
+
function wt(e) {
|
|
3627
3631
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
3628
3632
|
return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error($u.apply(void 0, Qe([Vu[e]], t, !1)).trim());
|
|
3629
3633
|
}
|
|
@@ -3636,7 +3640,7 @@ var Mu = function() {
|
|
|
3636
3640
|
return r;
|
|
3637
3641
|
}, e.prototype.insertRules = function(t, r) {
|
|
3638
3642
|
if (t >= this.groupSizes.length) {
|
|
3639
|
-
for (var n = this.groupSizes, i = n.length, o = i; t >= o; ) if ((o <<= 1) < 0) throw
|
|
3643
|
+
for (var n = this.groupSizes, i = n.length, o = i; t >= o; ) if ((o <<= 1) < 0) throw wt(16, "".concat(t));
|
|
3640
3644
|
this.groupSizes = new Uint32Array(o), this.groupSizes.set(n), this.length = o;
|
|
3641
3645
|
for (var s = i; s < o; s++) this.groupSizes[s] = 0;
|
|
3642
3646
|
}
|
|
@@ -3657,13 +3661,13 @@ var Mu = function() {
|
|
|
3657
3661
|
if (yr.has(e)) return yr.get(e);
|
|
3658
3662
|
for (; xr.has(gr); ) gr++;
|
|
3659
3663
|
var t = gr++;
|
|
3660
|
-
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > zu)) throw
|
|
3664
|
+
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > zu)) throw wt(16, "".concat(t));
|
|
3661
3665
|
return yr.set(e, t), xr.set(t, e), t;
|
|
3662
3666
|
}, Fu = function(e, t) {
|
|
3663
3667
|
gr = t + 1, yr.set(e, t), xr.set(t, e);
|
|
3664
|
-
}, Lu = "style[".concat(Xe, "][").concat(
|
|
3668
|
+
}, Lu = "style[".concat(Xe, "][").concat(ys, '="').concat(Ur, '"]'), Bu = new RegExp("^".concat(Xe, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Uu = function(e, t, r) {
|
|
3665
3669
|
for (var n, i = r.split(","), o = 0, s = i.length; o < s; o++) (n = i[o]) && e.registerName(t, n);
|
|
3666
|
-
},
|
|
3670
|
+
}, qu = function(e, t) {
|
|
3667
3671
|
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(ii), i = [], o = 0, s = n.length; o < s; o++) {
|
|
3668
3672
|
var a = n[o].trim();
|
|
3669
3673
|
if (a) {
|
|
@@ -3677,29 +3681,29 @@ var Mu = function() {
|
|
|
3677
3681
|
}, no = function(e) {
|
|
3678
3682
|
for (var t = document.querySelectorAll(Lu), r = 0, n = t.length; r < n; r++) {
|
|
3679
3683
|
var i = t[r];
|
|
3680
|
-
i && i.getAttribute(Xe) !==
|
|
3684
|
+
i && i.getAttribute(Xe) !== ms && (qu(e, i), i.parentNode && i.parentNode.removeChild(i));
|
|
3681
3685
|
}
|
|
3682
3686
|
};
|
|
3683
|
-
function
|
|
3687
|
+
function Wu() {
|
|
3684
3688
|
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
3685
3689
|
}
|
|
3686
|
-
var
|
|
3690
|
+
var ks = function(e) {
|
|
3687
3691
|
var t = document.head, r = e || t, n = document.createElement("style"), i = function(a) {
|
|
3688
3692
|
var u = Array.from(a.querySelectorAll("style[".concat(Xe, "]")));
|
|
3689
3693
|
return u[u.length - 1];
|
|
3690
3694
|
}(r), o = i !== void 0 ? i.nextSibling : null;
|
|
3691
|
-
n.setAttribute(Xe,
|
|
3692
|
-
var s =
|
|
3695
|
+
n.setAttribute(Xe, ms), n.setAttribute(ys, Ur);
|
|
3696
|
+
var s = Wu();
|
|
3693
3697
|
return s && n.setAttribute("nonce", s), r.insertBefore(n, o), n;
|
|
3694
3698
|
}, Hu = function() {
|
|
3695
3699
|
function e(t) {
|
|
3696
|
-
this.element =
|
|
3700
|
+
this.element = ks(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) {
|
|
3697
3701
|
if (r.sheet) return r.sheet;
|
|
3698
3702
|
for (var n = document.styleSheets, i = 0, o = n.length; i < o; i++) {
|
|
3699
3703
|
var s = n[i];
|
|
3700
3704
|
if (s.ownerNode === r) return s;
|
|
3701
3705
|
}
|
|
3702
|
-
throw
|
|
3706
|
+
throw wt(17);
|
|
3703
3707
|
}(this.element), this.length = 0;
|
|
3704
3708
|
}
|
|
3705
3709
|
return e.prototype.insertRule = function(t, r) {
|
|
@@ -3716,7 +3720,7 @@ var Os = function(e) {
|
|
|
3716
3720
|
}, e;
|
|
3717
3721
|
}(), Yu = function() {
|
|
3718
3722
|
function e(t) {
|
|
3719
|
-
this.element =
|
|
3723
|
+
this.element = ks(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
3720
3724
|
}
|
|
3721
3725
|
return e.prototype.insertRule = function(t, r) {
|
|
3722
3726
|
if (t <= this.length && t >= 0) {
|
|
@@ -3740,23 +3744,23 @@ var Os = function(e) {
|
|
|
3740
3744
|
}, e.prototype.getRule = function(t) {
|
|
3741
3745
|
return t < this.length ? this.rules[t] : "";
|
|
3742
3746
|
}, e;
|
|
3743
|
-
}(), io = Sr, Ku = { isServer: !Sr, useCSSOMInjection: !Eu },
|
|
3747
|
+
}(), io = Sr, Ku = { isServer: !Sr, useCSSOMInjection: !Eu }, Os = function() {
|
|
3744
3748
|
function e(t, r, n) {
|
|
3745
|
-
t === void 0 && (t =
|
|
3749
|
+
t === void 0 && (t = ht), r === void 0 && (r = {});
|
|
3746
3750
|
var i = this;
|
|
3747
|
-
this.options =
|
|
3751
|
+
this.options = te(te({}, Ku), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && Sr && io && (io = !1, no(this)), si(this, function() {
|
|
3748
3752
|
return function(o) {
|
|
3749
3753
|
for (var s = o.getTag(), a = s.length, u = "", l = function(d) {
|
|
3750
3754
|
var h = function(y) {
|
|
3751
3755
|
return xr.get(y);
|
|
3752
3756
|
}(d);
|
|
3753
3757
|
if (h === void 0) return "continue";
|
|
3754
|
-
var p = o.names.get(h),
|
|
3755
|
-
if (p === void 0 || !p.size ||
|
|
3758
|
+
var p = o.names.get(h), v = s.getGroup(d);
|
|
3759
|
+
if (p === void 0 || !p.size || v.length === 0) return "continue";
|
|
3756
3760
|
var E = "".concat(Xe, ".g").concat(d, '[id="').concat(h, '"]'), w = "";
|
|
3757
3761
|
p !== void 0 && p.forEach(function(y) {
|
|
3758
3762
|
y.length > 0 && (w += "".concat(y, ","));
|
|
3759
|
-
}), u += "".concat(
|
|
3763
|
+
}), u += "".concat(v).concat(E, '{content:"').concat(w, '"}').concat(ii);
|
|
3760
3764
|
}, f = 0; f < a; f++) l(f);
|
|
3761
3765
|
return u;
|
|
3762
3766
|
}(i);
|
|
@@ -3767,7 +3771,7 @@ var Os = function(e) {
|
|
|
3767
3771
|
}, e.prototype.rehydrate = function() {
|
|
3768
3772
|
!this.server && Sr && no(this);
|
|
3769
3773
|
}, e.prototype.reconstructWithOptions = function(t, r) {
|
|
3770
|
-
return r === void 0 && (r = !0), new e(
|
|
3774
|
+
return r === void 0 && (r = !0), new e(te(te({}, this.options), t), this.gs, r && this.names || void 0);
|
|
3771
3775
|
}, e.prototype.allocateGSInstance = function(t) {
|
|
3772
3776
|
return this.gs[t] = (this.gs[t] || 0) + 1;
|
|
3773
3777
|
}, e.prototype.getTag = function() {
|
|
@@ -3794,38 +3798,38 @@ var Os = function(e) {
|
|
|
3794
3798
|
this.tag = void 0;
|
|
3795
3799
|
}, e;
|
|
3796
3800
|
}(), Qu = /&/g, Xu = /^\s*\/\/.*$/gm;
|
|
3797
|
-
function
|
|
3801
|
+
function Ps(e, t) {
|
|
3798
3802
|
return e.map(function(r) {
|
|
3799
3803
|
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) {
|
|
3800
3804
|
return "".concat(t, " ").concat(n);
|
|
3801
|
-
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children =
|
|
3805
|
+
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = Ps(r.children, t)), r;
|
|
3802
3806
|
});
|
|
3803
3807
|
}
|
|
3804
3808
|
function Ju(e) {
|
|
3805
|
-
var t, r, n, i =
|
|
3806
|
-
return
|
|
3809
|
+
var t, r, n, i = ht, o = i.options, s = o === void 0 ? ht : o, a = i.plugins, u = a === void 0 ? qr : a, l = function(h, p, v) {
|
|
3810
|
+
return v.startsWith(r) && v.endsWith(r) && v.replaceAll(r, "").length > 0 ? ".".concat(t) : h;
|
|
3807
3811
|
}, f = u.slice();
|
|
3808
3812
|
f.push(function(h) {
|
|
3809
3813
|
h.type === zr && h.value.includes("&") && (h.props[0] = h.props[0].replace(Qu, r).replace(n, l));
|
|
3810
3814
|
}), s.prefix && f.push(wu), f.push(gu);
|
|
3811
|
-
var d = function(h, p,
|
|
3812
|
-
p === void 0 && (p = ""),
|
|
3813
|
-
var w = h.replace(Xu, ""), y = mu(
|
|
3814
|
-
s.namespace && (y =
|
|
3815
|
+
var d = function(h, p, v, E) {
|
|
3816
|
+
p === void 0 && (p = ""), v === void 0 && (v = ""), E === void 0 && (E = "&"), t = E, r = p, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
3817
|
+
var w = h.replace(Xu, ""), y = mu(v || p ? "".concat(v, " ").concat(p, " { ").concat(w, " }") : w);
|
|
3818
|
+
s.namespace && (y = Ps(y, s.namespace));
|
|
3815
3819
|
var b = [];
|
|
3816
3820
|
return Er(y, vu(f.concat(bu(function(m) {
|
|
3817
3821
|
return b.push(m);
|
|
3818
3822
|
})))), b;
|
|
3819
3823
|
};
|
|
3820
3824
|
return d.hash = u.length ? u.reduce(function(h, p) {
|
|
3821
|
-
return p.name ||
|
|
3822
|
-
},
|
|
3825
|
+
return p.name || wt(15), qe(h, p.name);
|
|
3826
|
+
}, gs).toString() : "", d;
|
|
3823
3827
|
}
|
|
3824
|
-
var Zu = new
|
|
3825
|
-
|
|
3826
|
-
|
|
3828
|
+
var Zu = new Os(), Cn = Ju(), Ns = re.createContext({ shouldForwardProp: void 0, styleSheet: Zu, stylis: Cn });
|
|
3829
|
+
Ns.Consumer;
|
|
3830
|
+
re.createContext(void 0);
|
|
3827
3831
|
function oo() {
|
|
3828
|
-
return Ln(
|
|
3832
|
+
return Ln(Ns);
|
|
3829
3833
|
}
|
|
3830
3834
|
var Rn = function() {
|
|
3831
3835
|
function e(t, r) {
|
|
@@ -3835,7 +3839,7 @@ var Rn = function() {
|
|
|
3835
3839
|
var s = n.name + o.hash;
|
|
3836
3840
|
i.hasNameForId(n.id, s) || i.insertRules(n.id, s, o(n.rules, s, "@keyframes"));
|
|
3837
3841
|
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, si(this, function() {
|
|
3838
|
-
throw
|
|
3842
|
+
throw wt(12, String(n.name));
|
|
3839
3843
|
});
|
|
3840
3844
|
}
|
|
3841
3845
|
return e.prototype.getName = function(t) {
|
|
@@ -3852,124 +3856,124 @@ function so(e) {
|
|
|
3852
3856
|
}
|
|
3853
3857
|
return t.startsWith("ms-") ? "-" + t : t;
|
|
3854
3858
|
}
|
|
3855
|
-
var
|
|
3859
|
+
var Cs = function(e) {
|
|
3856
3860
|
return e == null || e === !1 || e === "";
|
|
3857
|
-
},
|
|
3861
|
+
}, Rs = function(e) {
|
|
3858
3862
|
var t, r, n = [];
|
|
3859
3863
|
for (var i in e) {
|
|
3860
3864
|
var o = e[i];
|
|
3861
|
-
e.hasOwnProperty(i) && !
|
|
3865
|
+
e.hasOwnProperty(i) && !Cs(o) && (Array.isArray(o) && o.isCss || pt(o) ? n.push("".concat(so(i), ":"), o, ";") : mt(o) ? n.push.apply(n, Qe(Qe(["".concat(i, " {")], Rs(o), !1), ["}"], !1)) : n.push("".concat(so(i), ": ").concat((t = i, (r = o) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in _u || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
|
|
3862
3866
|
}
|
|
3863
3867
|
return n;
|
|
3864
3868
|
};
|
|
3865
3869
|
function Ye(e, t, r, n) {
|
|
3866
|
-
if (
|
|
3870
|
+
if (Cs(e)) return [];
|
|
3867
3871
|
if (oi(e)) return [".".concat(e.styledComponentId)];
|
|
3868
|
-
if (
|
|
3869
|
-
if (!
|
|
3872
|
+
if (pt(e)) {
|
|
3873
|
+
if (!pt(o = e) || o.prototype && o.prototype.isReactComponent || !t) return [e];
|
|
3870
3874
|
var i = e(t);
|
|
3871
|
-
return process.env.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof Rn ||
|
|
3875
|
+
return process.env.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof Rn || mt(i) || i === null || console.error("".concat(ws(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Ye(i, t, r, n);
|
|
3872
3876
|
}
|
|
3873
3877
|
var o;
|
|
3874
|
-
return e instanceof Rn ? r ? (e.inject(r, n), [e.getName(n)]) : [e] :
|
|
3878
|
+
return e instanceof Rn ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : mt(e) ? Rs(e) : Array.isArray(e) ? Array.prototype.concat.apply(qr, e.map(function(s) {
|
|
3875
3879
|
return Ye(s, t, r, n);
|
|
3876
3880
|
})) : [e.toString()];
|
|
3877
3881
|
}
|
|
3878
3882
|
function tl(e) {
|
|
3879
3883
|
for (var t = 0; t < e.length; t += 1) {
|
|
3880
3884
|
var r = e[t];
|
|
3881
|
-
if (
|
|
3885
|
+
if (pt(r) && !oi(r)) return !1;
|
|
3882
3886
|
}
|
|
3883
3887
|
return !0;
|
|
3884
3888
|
}
|
|
3885
|
-
var rl =
|
|
3889
|
+
var rl = vs(Ur), nl = function() {
|
|
3886
3890
|
function e(t, r, n) {
|
|
3887
|
-
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && tl(t), this.componentId = r, this.baseHash =
|
|
3891
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && tl(t), this.componentId = r, this.baseHash = qe(rl, r), this.baseStyle = n, Os.registerId(r);
|
|
3888
3892
|
}
|
|
3889
3893
|
return e.prototype.generateAndInjectStyles = function(t, r, n) {
|
|
3890
3894
|
var i = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
|
|
3891
|
-
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) i =
|
|
3895
|
+
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) i = We(i, this.staticRulesId);
|
|
3892
3896
|
else {
|
|
3893
|
-
var o = Pn(Ye(this.rules, t, r, n)), s = On(
|
|
3897
|
+
var o = Pn(Ye(this.rules, t, r, n)), s = On(qe(this.baseHash, o) >>> 0);
|
|
3894
3898
|
if (!r.hasNameForId(this.componentId, s)) {
|
|
3895
3899
|
var a = n(o, ".".concat(s), void 0, this.componentId);
|
|
3896
3900
|
r.insertRules(this.componentId, s, a);
|
|
3897
3901
|
}
|
|
3898
|
-
i =
|
|
3902
|
+
i = We(i, s), this.staticRulesId = s;
|
|
3899
3903
|
}
|
|
3900
3904
|
else {
|
|
3901
|
-
for (var u =
|
|
3905
|
+
for (var u = qe(this.baseHash, n.hash), l = "", f = 0; f < this.rules.length; f++) {
|
|
3902
3906
|
var d = this.rules[f];
|
|
3903
|
-
if (typeof d == "string") l += d, process.env.NODE_ENV !== "production" && (u =
|
|
3907
|
+
if (typeof d == "string") l += d, process.env.NODE_ENV !== "production" && (u = qe(u, d));
|
|
3904
3908
|
else if (d) {
|
|
3905
3909
|
var h = Pn(Ye(d, t, r, n));
|
|
3906
|
-
u =
|
|
3910
|
+
u = qe(u, h + f), l += h;
|
|
3907
3911
|
}
|
|
3908
3912
|
}
|
|
3909
3913
|
if (l) {
|
|
3910
3914
|
var p = On(u >>> 0);
|
|
3911
|
-
r.hasNameForId(this.componentId, p) || r.insertRules(this.componentId, p, n(l, ".".concat(p), void 0, this.componentId)), i =
|
|
3915
|
+
r.hasNameForId(this.componentId, p) || r.insertRules(this.componentId, p, n(l, ".".concat(p), void 0, this.componentId)), i = We(i, p);
|
|
3912
3916
|
}
|
|
3913
3917
|
}
|
|
3914
3918
|
return i;
|
|
3915
3919
|
}, e;
|
|
3916
|
-
}(),
|
|
3917
|
-
|
|
3920
|
+
}(), As = re.createContext(void 0);
|
|
3921
|
+
As.Consumer;
|
|
3918
3922
|
var ln = {}, ao = /* @__PURE__ */ new Set();
|
|
3919
3923
|
function il(e, t, r) {
|
|
3920
|
-
var n = oi(e), i = e, o = !un(e), s = t.attrs, a = s === void 0 ?
|
|
3924
|
+
var n = oi(e), i = e, o = !un(e), s = t.attrs, a = s === void 0 ? qr : s, u = t.componentId, l = u === void 0 ? function(S, O) {
|
|
3921
3925
|
var P = typeof S != "string" ? "sc" : Ji(S);
|
|
3922
3926
|
ln[P] = (ln[P] || 0) + 1;
|
|
3923
|
-
var k = "".concat(P, "-").concat(
|
|
3927
|
+
var k = "".concat(P, "-").concat(bs(Ur + P + ln[P]));
|
|
3924
3928
|
return O ? "".concat(O, "-").concat(k) : k;
|
|
3925
3929
|
}(t.displayName, t.parentComponentId) : u, f = t.displayName, d = f === void 0 ? function(S) {
|
|
3926
|
-
return un(S) ? "styled.".concat(S) : "Styled(".concat(
|
|
3927
|
-
}(e) : f, h = t.displayName && t.componentId ? "".concat(Ji(t.displayName), "-").concat(t.componentId) : t.componentId || l, p = n && i.attrs ? i.attrs.concat(a).filter(Boolean) : a,
|
|
3930
|
+
return un(S) ? "styled.".concat(S) : "Styled(".concat(ws(S), ")");
|
|
3931
|
+
}(e) : f, h = t.displayName && t.componentId ? "".concat(Ji(t.displayName), "-").concat(t.componentId) : t.componentId || l, p = n && i.attrs ? i.attrs.concat(a).filter(Boolean) : a, v = t.shouldForwardProp;
|
|
3928
3932
|
if (n && i.shouldForwardProp) {
|
|
3929
3933
|
var E = i.shouldForwardProp;
|
|
3930
3934
|
if (t.shouldForwardProp) {
|
|
3931
3935
|
var w = t.shouldForwardProp;
|
|
3932
|
-
|
|
3936
|
+
v = function(S, O) {
|
|
3933
3937
|
return E(S, O) && w(S, O);
|
|
3934
3938
|
};
|
|
3935
|
-
} else
|
|
3939
|
+
} else v = E;
|
|
3936
3940
|
}
|
|
3937
3941
|
var y = new nl(r, h, n ? i.componentStyle : void 0);
|
|
3938
3942
|
function b(S, O) {
|
|
3939
|
-
return function(P, k,
|
|
3940
|
-
var M = P.attrs,
|
|
3941
|
-
process.env.NODE_ENV !== "production" && Si(
|
|
3942
|
-
var
|
|
3943
|
-
for (var pe, me =
|
|
3944
|
-
var nt =
|
|
3945
|
-
for (var ye in nt) me[ye] = ye === "className" ?
|
|
3943
|
+
return function(P, k, j) {
|
|
3944
|
+
var M = P.attrs, ne = P.componentStyle, Y = P.defaultProps, ie = P.foldedComponentIds, q = P.styledComponentId, he = P.target, Fe = re.useContext(As), Zt = oo(), et = P.shouldForwardProp || Zt.shouldForwardProp;
|
|
3945
|
+
process.env.NODE_ENV !== "production" && Si(q);
|
|
3946
|
+
var _t = xu(k, Fe, Y) || ht, ce = function(rt, xe, Ae) {
|
|
3947
|
+
for (var pe, me = te(te({}, xe), { className: void 0, theme: Ae }), Te = 0; Te < rt.length; Te += 1) {
|
|
3948
|
+
var nt = pt(pe = rt[Te]) ? pe(me) : pe;
|
|
3949
|
+
for (var ye in nt) me[ye] = ye === "className" ? We(me[ye], nt[ye]) : ye === "style" ? te(te({}, me[ye]), nt[ye]) : nt[ye];
|
|
3946
3950
|
}
|
|
3947
|
-
return
|
|
3948
|
-
}(M, k,
|
|
3949
|
-
for (var
|
|
3950
|
-
var tt = function(rt,
|
|
3951
|
-
var Ae = oo(), pe = rt.generateAndInjectStyles(
|
|
3951
|
+
return xe.className && (me.className = We(me.className, xe.className)), me;
|
|
3952
|
+
}(M, k, _t), Ce = ce.as || he, Re = {};
|
|
3953
|
+
for (var Q in ce) ce[Q] === void 0 || Q[0] === "$" || Q === "as" || Q === "theme" && ce.theme === _t || (Q === "forwardedAs" ? Re.as = ce.forwardedAs : et && !et(Q, Ce) || (Re[Q] = ce[Q], et || process.env.NODE_ENV !== "development" || ru(Q) || ao.has(Q) || !kn.has(Ce) || (ao.add(Q), console.warn('styled-components: it looks like an unknown prop "'.concat(Q, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
3954
|
+
var tt = function(rt, xe) {
|
|
3955
|
+
var Ae = oo(), pe = rt.generateAndInjectStyles(xe, Ae.styleSheet, Ae.stylis);
|
|
3952
3956
|
return process.env.NODE_ENV !== "production" && Si(pe), pe;
|
|
3953
|
-
}(
|
|
3957
|
+
}(ne, ce);
|
|
3954
3958
|
process.env.NODE_ENV !== "production" && P.warnTooManyClasses && P.warnTooManyClasses(tt);
|
|
3955
|
-
var
|
|
3956
|
-
return tt && (
|
|
3959
|
+
var Et = We(ie, q);
|
|
3960
|
+
return tt && (Et += " " + tt), ce.className && (Et += " " + ce.className), Re[un(Ce) && !kn.has(Ce) ? "class" : "className"] = Et, j && (Re.ref = j), Ca(Ce, Re);
|
|
3957
3961
|
}(m, S, O);
|
|
3958
3962
|
}
|
|
3959
3963
|
b.displayName = d;
|
|
3960
|
-
var m =
|
|
3961
|
-
return m.attrs = p, m.componentStyle = y, m.displayName = d, m.shouldForwardProp =
|
|
3964
|
+
var m = re.forwardRef(b);
|
|
3965
|
+
return m.attrs = p, m.componentStyle = y, m.displayName = d, m.shouldForwardProp = v, m.foldedComponentIds = n ? We(i.foldedComponentIds, i.styledComponentId) : "", m.styledComponentId = h, m.target = n ? i.target : e, Object.defineProperty(m, "defaultProps", { get: function() {
|
|
3962
3966
|
return this._foldedDefaultProps;
|
|
3963
3967
|
}, set: function(S) {
|
|
3964
3968
|
this._foldedDefaultProps = n ? function(O) {
|
|
3965
3969
|
for (var P = [], k = 1; k < arguments.length; k++) P[k - 1] = arguments[k];
|
|
3966
|
-
for (var
|
|
3970
|
+
for (var j = 0, M = P; j < M.length; j++) Nn(O, M[j], !0);
|
|
3967
3971
|
return O;
|
|
3968
3972
|
}({}, i.defaultProps, S) : S;
|
|
3969
3973
|
} }), process.env.NODE_ENV !== "production" && (Su(d, h), m.warnTooManyClasses = /* @__PURE__ */ function(S, O) {
|
|
3970
3974
|
var P = {}, k = !1;
|
|
3971
|
-
return function(
|
|
3972
|
-
if (!k && (P[
|
|
3975
|
+
return function(j) {
|
|
3976
|
+
if (!k && (P[j] = !0, Object.keys(P).length >= 200)) {
|
|
3973
3977
|
var M = O ? ' with the id of "'.concat(O, '"') : "";
|
|
3974
3978
|
console.warn("Over ".concat(200, " classes were generated for component ").concat(S).concat(M, `.
|
|
3975
3979
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
@@ -3985,7 +3989,7 @@ Example:
|
|
|
3985
3989
|
};
|
|
3986
3990
|
}(d, h)), si(m, function() {
|
|
3987
3991
|
return ".".concat(m.styledComponentId);
|
|
3988
|
-
}), o &&
|
|
3992
|
+
}), o && xs(m, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), m;
|
|
3989
3993
|
}
|
|
3990
3994
|
function co(e, t) {
|
|
3991
3995
|
for (var r = [e[0]], n = 0, i = t.length; n < i; n += 1) r.push(t[n], e[n + 1]);
|
|
@@ -3994,34 +3998,34 @@ function co(e, t) {
|
|
|
3994
3998
|
var uo = function(e) {
|
|
3995
3999
|
return Object.assign(e, { isCss: !0 });
|
|
3996
4000
|
};
|
|
3997
|
-
function
|
|
4001
|
+
function Ts(e) {
|
|
3998
4002
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
3999
|
-
if (
|
|
4003
|
+
if (pt(e) || mt(e)) return uo(Ye(co(qr, Qe([e], t, !0))));
|
|
4000
4004
|
var n = e;
|
|
4001
4005
|
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? Ye(n) : uo(Ye(co(n, t)));
|
|
4002
4006
|
}
|
|
4003
4007
|
function An(e, t, r) {
|
|
4004
|
-
if (r === void 0 && (r =
|
|
4008
|
+
if (r === void 0 && (r = ht), !t) throw wt(1, t);
|
|
4005
4009
|
var n = function(i) {
|
|
4006
4010
|
for (var o = [], s = 1; s < arguments.length; s++) o[s - 1] = arguments[s];
|
|
4007
|
-
return e(t, r,
|
|
4011
|
+
return e(t, r, Ts.apply(void 0, Qe([i], o, !1)));
|
|
4008
4012
|
};
|
|
4009
4013
|
return n.attrs = function(i) {
|
|
4010
|
-
return An(e, t,
|
|
4014
|
+
return An(e, t, te(te({}, r), { attrs: Array.prototype.concat(r.attrs, i).filter(Boolean) }));
|
|
4011
4015
|
}, n.withConfig = function(i) {
|
|
4012
|
-
return An(e, t,
|
|
4016
|
+
return An(e, t, te(te({}, r), i));
|
|
4013
4017
|
}, n;
|
|
4014
4018
|
}
|
|
4015
|
-
var
|
|
4019
|
+
var Is = function(e) {
|
|
4016
4020
|
return An(il, e);
|
|
4017
|
-
},
|
|
4021
|
+
}, U = Is;
|
|
4018
4022
|
kn.forEach(function(e) {
|
|
4019
|
-
|
|
4023
|
+
U[e] = Is(e);
|
|
4020
4024
|
});
|
|
4021
|
-
function
|
|
4025
|
+
function Ds(e) {
|
|
4022
4026
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
4023
4027
|
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.");
|
|
4024
|
-
var n = Pn(
|
|
4028
|
+
var n = Pn(Ts.apply(void 0, Qe([e], t, !1))), i = bs(n);
|
|
4025
4029
|
return new Rn(i, n);
|
|
4026
4030
|
}
|
|
4027
4031
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
@@ -4031,7 +4035,7 @@ var cr = "__sc-".concat(Xe, "__");
|
|
|
4031
4035
|
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[cr] || (window[cr] = 0), window[cr] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
4032
4036
|
|
|
4033
4037
|
See https://s-c.sh/2BAXzed for more info.`), window[cr] += 1);
|
|
4034
|
-
const ol =
|
|
4038
|
+
const ol = Ds`
|
|
4035
4039
|
0% {
|
|
4036
4040
|
transform: scale(1);
|
|
4037
4041
|
}
|
|
@@ -4041,7 +4045,7 @@ const ol = js`
|
|
|
4041
4045
|
100% {
|
|
4042
4046
|
transform: scale(1);
|
|
4043
4047
|
}
|
|
4044
|
-
`, sl =
|
|
4048
|
+
`, sl = U.div`
|
|
4045
4049
|
display: inline-block;
|
|
4046
4050
|
position: relative;
|
|
4047
4051
|
overflow: hidden;
|
|
@@ -4052,7 +4056,7 @@ const ol = js`
|
|
|
4052
4056
|
&:active {
|
|
4053
4057
|
animation: ${ol} 0.2s;
|
|
4054
4058
|
}
|
|
4055
|
-
`, al =
|
|
4059
|
+
`, al = U.button`
|
|
4056
4060
|
display: flex;
|
|
4057
4061
|
align-items: center;
|
|
4058
4062
|
position: relative;
|
|
@@ -4071,7 +4075,7 @@ const ol = js`
|
|
|
4071
4075
|
background-color: #ffb652;
|
|
4072
4076
|
color: black;
|
|
4073
4077
|
}
|
|
4074
|
-
`, cl =
|
|
4078
|
+
`, cl = U.div`
|
|
4075
4079
|
display: flex;
|
|
4076
4080
|
margin-right: 1.25rem;
|
|
4077
4081
|
|
|
@@ -4079,13 +4083,13 @@ const ol = js`
|
|
|
4079
4083
|
margin-right: 0.25rem;
|
|
4080
4084
|
}
|
|
4081
4085
|
`;
|
|
4082
|
-
var
|
|
4086
|
+
var js = {
|
|
4083
4087
|
color: void 0,
|
|
4084
4088
|
size: void 0,
|
|
4085
4089
|
className: void 0,
|
|
4086
4090
|
style: void 0,
|
|
4087
4091
|
attr: void 0
|
|
4088
|
-
}, lo =
|
|
4092
|
+
}, lo = re.createContext && /* @__PURE__ */ re.createContext(js), ul = ["attr", "size", "title"];
|
|
4089
4093
|
function ll(e, t) {
|
|
4090
4094
|
if (e == null) return {};
|
|
4091
4095
|
var r = fl(e, t), n, i;
|
|
@@ -4154,15 +4158,15 @@ function pl(e, t) {
|
|
|
4154
4158
|
}
|
|
4155
4159
|
return (t === "string" ? String : Number)(e);
|
|
4156
4160
|
}
|
|
4157
|
-
function
|
|
4158
|
-
return e && e.map((t, r) => /* @__PURE__ */
|
|
4161
|
+
function Vs(e) {
|
|
4162
|
+
return e && e.map((t, r) => /* @__PURE__ */ re.createElement(t.tag, Or({
|
|
4159
4163
|
key: r
|
|
4160
|
-
}, t.attr),
|
|
4164
|
+
}, t.attr), Vs(t.child)));
|
|
4161
4165
|
}
|
|
4162
4166
|
function ze(e) {
|
|
4163
|
-
return (t) => /* @__PURE__ */
|
|
4167
|
+
return (t) => /* @__PURE__ */ re.createElement(ml, kr({
|
|
4164
4168
|
attr: Or({}, e.attr)
|
|
4165
|
-
}, t),
|
|
4169
|
+
}, t), Vs(e.child));
|
|
4166
4170
|
}
|
|
4167
4171
|
function ml(e) {
|
|
4168
4172
|
var t = (r) => {
|
|
@@ -4171,7 +4175,7 @@ function ml(e) {
|
|
|
4171
4175
|
size: i,
|
|
4172
4176
|
title: o
|
|
4173
4177
|
} = e, s = ll(e, ul), a = i || r.size || "1em", u;
|
|
4174
|
-
return r.className && (u = r.className), e.className && (u = (u ? u + " " : "") + e.className), /* @__PURE__ */
|
|
4178
|
+
return r.className && (u = r.className), e.className && (u = (u ? u + " " : "") + e.className), /* @__PURE__ */ re.createElement("svg", kr({
|
|
4175
4179
|
stroke: "currentColor",
|
|
4176
4180
|
fill: "currentColor",
|
|
4177
4181
|
strokeWidth: "0"
|
|
@@ -4183,9 +4187,9 @@ function ml(e) {
|
|
|
4183
4187
|
height: a,
|
|
4184
4188
|
width: a,
|
|
4185
4189
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4186
|
-
}), o && /* @__PURE__ */
|
|
4190
|
+
}), o && /* @__PURE__ */ re.createElement("title", null, o), e.children);
|
|
4187
4191
|
};
|
|
4188
|
-
return lo !== void 0 ? /* @__PURE__ */
|
|
4192
|
+
return lo !== void 0 ? /* @__PURE__ */ re.createElement(lo.Consumer, null, (r) => t(r)) : t(js);
|
|
4189
4193
|
}
|
|
4190
4194
|
function yl(e) {
|
|
4191
4195
|
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);
|
|
@@ -4202,14 +4206,14 @@ const $f = ({
|
|
|
4202
4206
|
animate: o = !0
|
|
4203
4207
|
}) => {
|
|
4204
4208
|
let s;
|
|
4205
|
-
e === "plus" ? s = /* @__PURE__ */
|
|
4209
|
+
e === "plus" ? s = /* @__PURE__ */ D.jsx(yl, {}) : e === "send" && (s = /* @__PURE__ */ D.jsx(gl, {}));
|
|
4206
4210
|
const a = () => {
|
|
4207
4211
|
n && n();
|
|
4208
4212
|
};
|
|
4209
|
-
return /* @__PURE__ */
|
|
4210
|
-
/* @__PURE__ */
|
|
4211
|
-
/* @__PURE__ */
|
|
4212
|
-
|
|
4213
|
+
return /* @__PURE__ */ D.jsx(sl, { onClick: a, children: /* @__PURE__ */ D.jsxs(al, { className: r, children: [
|
|
4214
|
+
/* @__PURE__ */ D.jsx(cl, { children: s }),
|
|
4215
|
+
/* @__PURE__ */ D.jsx(
|
|
4216
|
+
as,
|
|
4213
4217
|
{
|
|
4214
4218
|
textStyles: { lineHeight: "0.8rem", minWidth: "3rem" },
|
|
4215
4219
|
content: t,
|
|
@@ -4218,7 +4222,7 @@ const $f = ({
|
|
|
4218
4222
|
}
|
|
4219
4223
|
)
|
|
4220
4224
|
] }) });
|
|
4221
|
-
}, vl =
|
|
4225
|
+
}, vl = U(ss.div)`
|
|
4222
4226
|
width: 2.5rem;
|
|
4223
4227
|
height: 2.5rem;
|
|
4224
4228
|
border-radius: 50%;
|
|
@@ -4227,7 +4231,7 @@ const $f = ({
|
|
|
4227
4231
|
align-items: center;
|
|
4228
4232
|
justify-content: center;
|
|
4229
4233
|
cursor: pointer;
|
|
4230
|
-
`, bl =
|
|
4234
|
+
`, bl = U.span`
|
|
4231
4235
|
display: flex;
|
|
4232
4236
|
color: black;
|
|
4233
4237
|
font-size: 1.125rem;
|
|
@@ -4239,14 +4243,14 @@ function _l(e) {
|
|
|
4239
4243
|
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);
|
|
4240
4244
|
}
|
|
4241
4245
|
const Mf = ({ iconComponent: e, onClick: t }) => {
|
|
4242
|
-
const r =
|
|
4246
|
+
const r = is({
|
|
4243
4247
|
from: { opacity: 0, transform: "scale(0.5)" },
|
|
4244
4248
|
to: { opacity: 1, transform: "scale(1)" }
|
|
4245
4249
|
}), n = () => {
|
|
4246
4250
|
t && t();
|
|
4247
4251
|
};
|
|
4248
4252
|
let i;
|
|
4249
|
-
return e === "person" ? i = /* @__PURE__ */
|
|
4253
|
+
return e === "person" ? i = /* @__PURE__ */ D.jsx(wl, {}) : e === "qr" && (i = /* @__PURE__ */ D.jsx(_l, {})), /* @__PURE__ */ D.jsx(vl, { style: r, onClick: n, children: /* @__PURE__ */ D.jsx(bl, { children: i }) });
|
|
4250
4254
|
};
|
|
4251
4255
|
function El(e) {
|
|
4252
4256
|
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);
|
|
@@ -4255,8 +4259,8 @@ const zf = ({ size: e, onClick: t }) => {
|
|
|
4255
4259
|
const r = () => {
|
|
4256
4260
|
t && t();
|
|
4257
4261
|
};
|
|
4258
|
-
return /* @__PURE__ */
|
|
4259
|
-
}, Sl =
|
|
4262
|
+
return /* @__PURE__ */ D.jsx(El, { size: e ?? "1.5rem", onClick: r });
|
|
4263
|
+
}, Sl = Ds`
|
|
4260
4264
|
0% {
|
|
4261
4265
|
transform: scale(0);
|
|
4262
4266
|
opacity: 0.6;
|
|
@@ -4265,7 +4269,7 @@ const zf = ({ size: e, onClick: t }) => {
|
|
|
4265
4269
|
transform: scale(10);
|
|
4266
4270
|
opacity: 0;
|
|
4267
4271
|
}
|
|
4268
|
-
`, xl =
|
|
4272
|
+
`, xl = U.span`
|
|
4269
4273
|
position: absolute;
|
|
4270
4274
|
left: ${({ $x: e }) => e}px;
|
|
4271
4275
|
top: ${({ $y: e }) => e}px;
|
|
@@ -4278,7 +4282,7 @@ const zf = ({ size: e, onClick: t }) => {
|
|
|
4278
4282
|
pointer-events: none;
|
|
4279
4283
|
animation: ${Sl} 0.4s ease-out forwards;
|
|
4280
4284
|
`;
|
|
4281
|
-
|
|
4285
|
+
U.div`
|
|
4282
4286
|
position: absolute;
|
|
4283
4287
|
left: 0;
|
|
4284
4288
|
right: 0;
|
|
@@ -4286,7 +4290,7 @@ q.div`
|
|
|
4286
4290
|
flex-direction: column;
|
|
4287
4291
|
z-index: 1;
|
|
4288
4292
|
`;
|
|
4289
|
-
|
|
4293
|
+
U.div`
|
|
4290
4294
|
display: flex;
|
|
4291
4295
|
flex-direction: column;
|
|
4292
4296
|
padding: 1.5rem var(--app-standard-padding);
|
|
@@ -4294,39 +4298,39 @@ q.div`
|
|
|
4294
4298
|
gap: 2rem;
|
|
4295
4299
|
justify-self: center;
|
|
4296
4300
|
`;
|
|
4297
|
-
|
|
4301
|
+
U.div`
|
|
4298
4302
|
display: flex;
|
|
4299
4303
|
flex-direction: column;
|
|
4300
4304
|
gap: 1.5rem;
|
|
4301
4305
|
`;
|
|
4302
|
-
const Ff =
|
|
4306
|
+
const Ff = U.ul`
|
|
4303
4307
|
display: flex;
|
|
4304
4308
|
flex-direction: column;
|
|
4305
4309
|
justify-content: center;
|
|
4306
4310
|
padding-inline-start: unset;
|
|
4307
|
-
`, kl =
|
|
4311
|
+
`, kl = U.li`
|
|
4308
4312
|
position: relative;
|
|
4309
4313
|
list-style: none;
|
|
4310
4314
|
cursor: pointer;
|
|
4311
4315
|
overflow: hidden;
|
|
4312
4316
|
-webkit-tap-highlight-color: transparent;
|
|
4313
4317
|
border-bottom: 1px solid rgba(0, 0, 0, 0.5);
|
|
4314
|
-
`, Ol =
|
|
4318
|
+
`, Ol = U.div`
|
|
4315
4319
|
display: flex;
|
|
4316
4320
|
flex-direction: row;
|
|
4317
4321
|
justify-content: space-between;
|
|
4318
4322
|
align-items: center;
|
|
4319
4323
|
padding: 0.5rem 0.75rem;
|
|
4320
|
-
`, Pl =
|
|
4324
|
+
`, Pl = U.div`
|
|
4321
4325
|
display: flex;
|
|
4322
4326
|
flex-direction: row;
|
|
4323
4327
|
gap: 2rem;
|
|
4324
4328
|
align-items: center;
|
|
4325
|
-
`, ho =
|
|
4329
|
+
`, ho = U.div`
|
|
4326
4330
|
display: flex;
|
|
4327
4331
|
flex-direction: column;
|
|
4328
4332
|
justify-content: center;
|
|
4329
|
-
`, Nl =
|
|
4333
|
+
`, Nl = U.p`
|
|
4330
4334
|
font-size: 1rem;
|
|
4331
4335
|
`;
|
|
4332
4336
|
function Cl(e) {
|
|
@@ -4338,12 +4342,12 @@ function Rl(e) {
|
|
|
4338
4342
|
function Al(e) {
|
|
4339
4343
|
return ze({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79zM1 10.5h3v2H1zM11 .55h2V3.5h-2zm8.04 2.495 1.408 1.407-1.79 1.79-1.407-1.408zm-1.8 15.115 1.79 1.8 1.41-1.41-1.8-1.79zM20 10.5h3v2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm-1 4h2v2.95h-2zm-7.45-.96 1.41 1.41 1.79-1.8-1.41-1.41z" }, child: [] }] })(e);
|
|
4340
4344
|
}
|
|
4341
|
-
const Tl =
|
|
4345
|
+
const Tl = U.input`
|
|
4342
4346
|
opacity: 0;
|
|
4343
4347
|
width: 0;
|
|
4344
4348
|
height: 0;
|
|
4345
4349
|
position: absolute;
|
|
4346
|
-
`, Tn =
|
|
4350
|
+
`, Tn = U.span`
|
|
4347
4351
|
position: absolute;
|
|
4348
4352
|
top: 50%;
|
|
4349
4353
|
left: ${({ $checked: e }) => e ? "14px" : "0px"};
|
|
@@ -4355,7 +4359,7 @@ const Tl = q.input`
|
|
|
4355
4359
|
transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
|
|
4356
4360
|
left 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
4357
4361
|
pointer-events: none;
|
|
4358
|
-
`, Il =
|
|
4362
|
+
`, Il = U.label`
|
|
4359
4363
|
position: relative;
|
|
4360
4364
|
display: inline-flex;
|
|
4361
4365
|
align-items: center;
|
|
@@ -4371,13 +4375,13 @@ const Tl = q.input`
|
|
|
4371
4375
|
&:focus-within ${Tn} {
|
|
4372
4376
|
background-color: ${({ $checked: e }) => e ? "rgba(72, 159, 181, 0.12)" : "rgba(0, 0, 0, 0.06)"};
|
|
4373
4377
|
}
|
|
4374
|
-
`, Dl =
|
|
4378
|
+
`, Dl = U.span`
|
|
4375
4379
|
width: 34px;
|
|
4376
4380
|
height: 14px;
|
|
4377
4381
|
background-color: ${({ $checked: e }) => e ? "rgba(72, 159, 181, 0.5)" : "rgba(0, 0, 0, 0.38)"};
|
|
4378
4382
|
border-radius: 7px;
|
|
4379
4383
|
transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
4380
|
-
`, jl =
|
|
4384
|
+
`, jl = U.span`
|
|
4381
4385
|
position: absolute;
|
|
4382
4386
|
top: 50%;
|
|
4383
4387
|
left: ${({ $checked: e }) => e ? "14px" : "0px"};
|
|
@@ -4398,14 +4402,14 @@ const Tl = q.input`
|
|
|
4398
4402
|
onChange: r,
|
|
4399
4403
|
disabled: n = !1
|
|
4400
4404
|
}) => {
|
|
4401
|
-
const [i, o] =
|
|
4405
|
+
const [i, o] = Gt(t), s = e !== void 0, a = s ? e : i, u = (l) => {
|
|
4402
4406
|
if (n) return;
|
|
4403
4407
|
l.target.blur();
|
|
4404
4408
|
const f = !a;
|
|
4405
4409
|
s || o(f), r == null || r(f);
|
|
4406
4410
|
};
|
|
4407
|
-
return /* @__PURE__ */
|
|
4408
|
-
/* @__PURE__ */
|
|
4411
|
+
return /* @__PURE__ */ D.jsxs(Il, { $checked: a, onClick: (l) => l.stopPropagation(), children: [
|
|
4412
|
+
/* @__PURE__ */ D.jsx(
|
|
4409
4413
|
Tl,
|
|
4410
4414
|
{
|
|
4411
4415
|
type: "checkbox",
|
|
@@ -4414,14 +4418,14 @@ const Tl = q.input`
|
|
|
4414
4418
|
disabled: n
|
|
4415
4419
|
}
|
|
4416
4420
|
),
|
|
4417
|
-
/* @__PURE__ */
|
|
4418
|
-
/* @__PURE__ */
|
|
4419
|
-
/* @__PURE__ */
|
|
4421
|
+
/* @__PURE__ */ D.jsx(Dl, { $checked: a }),
|
|
4422
|
+
/* @__PURE__ */ D.jsx(Tn, { $checked: a }),
|
|
4423
|
+
/* @__PURE__ */ D.jsx(jl, { $checked: a })
|
|
4420
4424
|
] });
|
|
4421
4425
|
}, $l = {
|
|
4422
4426
|
translate: Cl,
|
|
4423
4427
|
sunny: Al,
|
|
4424
|
-
character: () => /* @__PURE__ */
|
|
4428
|
+
character: () => /* @__PURE__ */ D.jsx("p", { style: { fontSize: "1rem", fontWeight: 500 }, children: "字" })
|
|
4425
4429
|
}, Lf = ({
|
|
4426
4430
|
icon: e,
|
|
4427
4431
|
text: t,
|
|
@@ -4434,23 +4438,23 @@ const Tl = q.input`
|
|
|
4434
4438
|
switchChecked: u,
|
|
4435
4439
|
onSwitchChange: l
|
|
4436
4440
|
}) => {
|
|
4437
|
-
const f = $l[e], [d, h] =
|
|
4441
|
+
const f = $l[e], [d, h] = Gt(null), p = (E) => {
|
|
4438
4442
|
const w = E.currentTarget.getBoundingClientRect(), y = E.clientX - w.left, b = E.clientY - w.top;
|
|
4439
4443
|
h({ x: y, y: b, key: Date.now() }), o === "switch" && l ? l(!u) : s && s();
|
|
4440
|
-
},
|
|
4444
|
+
}, v = () => o === "switch" ? /* @__PURE__ */ D.jsx(
|
|
4441
4445
|
Vl,
|
|
4442
4446
|
{
|
|
4443
4447
|
checked: u,
|
|
4444
4448
|
onChange: l
|
|
4445
4449
|
}
|
|
4446
|
-
) : /* @__PURE__ */
|
|
4447
|
-
return /* @__PURE__ */
|
|
4448
|
-
d && /* @__PURE__ */
|
|
4449
|
-
/* @__PURE__ */
|
|
4450
|
-
/* @__PURE__ */
|
|
4451
|
-
/* @__PURE__ */
|
|
4452
|
-
/* @__PURE__ */
|
|
4453
|
-
|
|
4450
|
+
) : /* @__PURE__ */ D.jsx(Rl, {});
|
|
4451
|
+
return /* @__PURE__ */ D.jsxs(kl, { onClick: p, style: a, children: [
|
|
4452
|
+
d && /* @__PURE__ */ D.jsx(xl, { $x: d.x, $y: d.y }, d.key),
|
|
4453
|
+
/* @__PURE__ */ D.jsxs(Ol, { children: [
|
|
4454
|
+
/* @__PURE__ */ D.jsxs(Pl, { children: [
|
|
4455
|
+
/* @__PURE__ */ D.jsx(ho, { children: /* @__PURE__ */ D.jsx(f, { size: "1rem" }) }),
|
|
4456
|
+
/* @__PURE__ */ D.jsx(Nl, { children: r ? /* @__PURE__ */ D.jsx(
|
|
4457
|
+
as,
|
|
4454
4458
|
{
|
|
4455
4459
|
content: r,
|
|
4456
4460
|
characterPreference: n,
|
|
@@ -4458,11 +4462,11 @@ const Tl = q.input`
|
|
|
4458
4462
|
}
|
|
4459
4463
|
) : t })
|
|
4460
4464
|
] }),
|
|
4461
|
-
/* @__PURE__ */
|
|
4465
|
+
/* @__PURE__ */ D.jsx(ho, { children: v() })
|
|
4462
4466
|
] })
|
|
4463
4467
|
] });
|
|
4464
4468
|
};
|
|
4465
|
-
function
|
|
4469
|
+
function K(e) {
|
|
4466
4470
|
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. `;
|
|
4467
4471
|
}
|
|
4468
4472
|
var Ml = typeof Symbol == "function" && Symbol.observable || "@@observable", po = Ml, fn = () => Math.random().toString(36).substring(7).split("").join("."), zl = {
|
|
@@ -4523,15 +4527,15 @@ function je(e) {
|
|
|
4523
4527
|
let t = typeof e;
|
|
4524
4528
|
return process.env.NODE_ENV !== "production" && (t = Fl(e)), t;
|
|
4525
4529
|
}
|
|
4526
|
-
function
|
|
4530
|
+
function $s(e, t, r) {
|
|
4527
4531
|
if (typeof e != "function")
|
|
4528
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4532
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(2) : `Expected the root reducer to be a function. Instead, received: '${je(e)}'`);
|
|
4529
4533
|
if (typeof t == "function" && typeof r == "function" || typeof r == "function" && typeof arguments[3] == "function")
|
|
4530
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4534
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(0) : "It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");
|
|
4531
4535
|
if (typeof t == "function" && typeof r > "u" && (r = t, t = void 0), typeof r < "u") {
|
|
4532
4536
|
if (typeof r != "function")
|
|
4533
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4534
|
-
return r(
|
|
4537
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(1) : `Expected the enhancer to be a function. Instead, received: '${je(r)}'`);
|
|
4538
|
+
return r($s)(e, t);
|
|
4535
4539
|
}
|
|
4536
4540
|
let n = e, i = t, o = /* @__PURE__ */ new Map(), s = o, a = 0, u = !1;
|
|
4537
4541
|
function l() {
|
|
@@ -4541,34 +4545,34 @@ function Ms(e, t, r) {
|
|
|
4541
4545
|
}
|
|
4542
4546
|
function f() {
|
|
4543
4547
|
if (u)
|
|
4544
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4548
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(3) : "You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
|
|
4545
4549
|
return i;
|
|
4546
4550
|
}
|
|
4547
4551
|
function d(w) {
|
|
4548
4552
|
if (typeof w != "function")
|
|
4549
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4553
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(4) : `Expected the listener to be a function. Instead, received: '${je(w)}'`);
|
|
4550
4554
|
if (u)
|
|
4551
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4555
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
4552
4556
|
let y = !0;
|
|
4553
4557
|
l();
|
|
4554
4558
|
const b = a++;
|
|
4555
4559
|
return s.set(b, w), function() {
|
|
4556
4560
|
if (y) {
|
|
4557
4561
|
if (u)
|
|
4558
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4562
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
4559
4563
|
y = !1, l(), s.delete(b), o = null;
|
|
4560
4564
|
}
|
|
4561
4565
|
};
|
|
4562
4566
|
}
|
|
4563
4567
|
function h(w) {
|
|
4564
4568
|
if (!Jt(w))
|
|
4565
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4569
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(7) : `Actions must be plain objects. Instead, the actual type was: '${je(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.`);
|
|
4566
4570
|
if (typeof w.type > "u")
|
|
4567
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4571
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
|
|
4568
4572
|
if (typeof w.type != "string")
|
|
4569
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4573
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(17) : `Action "type" property must be a string. Instead, the actual type was: '${je(w.type)}'. Value was: '${w.type}' (stringified)`);
|
|
4570
4574
|
if (u)
|
|
4571
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4575
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(9) : "Reducers may not dispatch actions.");
|
|
4572
4576
|
try {
|
|
4573
4577
|
u = !0, i = n(i, w);
|
|
4574
4578
|
} finally {
|
|
@@ -4580,12 +4584,12 @@ function Ms(e, t, r) {
|
|
|
4580
4584
|
}
|
|
4581
4585
|
function p(w) {
|
|
4582
4586
|
if (typeof w != "function")
|
|
4583
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4587
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(10) : `Expected the nextReducer to be a function. Instead, received: '${je(w)}`);
|
|
4584
4588
|
n = w, h({
|
|
4585
4589
|
type: Ge.REPLACE
|
|
4586
4590
|
});
|
|
4587
4591
|
}
|
|
4588
|
-
function
|
|
4592
|
+
function v() {
|
|
4589
4593
|
const w = d;
|
|
4590
4594
|
return {
|
|
4591
4595
|
/**
|
|
@@ -4598,7 +4602,7 @@ function Ms(e, t, r) {
|
|
|
4598
4602
|
*/
|
|
4599
4603
|
subscribe(y) {
|
|
4600
4604
|
if (typeof y != "object" || y === null)
|
|
4601
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4605
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(11) : `Expected the observer to be an object. Instead, received: '${je(y)}'`);
|
|
4602
4606
|
function b() {
|
|
4603
4607
|
const S = y;
|
|
4604
4608
|
S.next && S.next(f());
|
|
@@ -4619,7 +4623,7 @@ function Ms(e, t, r) {
|
|
|
4619
4623
|
subscribe: d,
|
|
4620
4624
|
getState: f,
|
|
4621
4625
|
replaceReducer: p,
|
|
4622
|
-
[po]:
|
|
4626
|
+
[po]: v
|
|
4623
4627
|
};
|
|
4624
4628
|
}
|
|
4625
4629
|
function mo(e) {
|
|
@@ -4629,7 +4633,7 @@ function mo(e) {
|
|
|
4629
4633
|
} catch {
|
|
4630
4634
|
}
|
|
4631
4635
|
}
|
|
4632
|
-
function
|
|
4636
|
+
function ql(e, t, r, n) {
|
|
4633
4637
|
const i = Object.keys(t), o = r && r.type === Ge.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
|
|
4634
4638
|
if (i.length === 0)
|
|
4635
4639
|
return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";
|
|
@@ -4641,20 +4645,20 @@ function Wl(e, t, r, n) {
|
|
|
4641
4645
|
}), !(r && r.type === Ge.REPLACE) && s.length > 0)
|
|
4642
4646
|
return `Unexpected ${s.length > 1 ? "keys" : "key"} "${s.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`;
|
|
4643
4647
|
}
|
|
4644
|
-
function
|
|
4648
|
+
function Wl(e) {
|
|
4645
4649
|
Object.keys(e).forEach((t) => {
|
|
4646
4650
|
const r = e[t];
|
|
4647
4651
|
if (typeof r(void 0, {
|
|
4648
4652
|
type: Ge.INIT
|
|
4649
4653
|
}) > "u")
|
|
4650
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4654
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(12) : `The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);
|
|
4651
4655
|
if (typeof r(void 0, {
|
|
4652
4656
|
type: Ge.PROBE_UNKNOWN_ACTION()
|
|
4653
4657
|
}) > "u")
|
|
4654
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4658
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(13) : `The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Ge.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`);
|
|
4655
4659
|
});
|
|
4656
4660
|
}
|
|
4657
|
-
function
|
|
4661
|
+
function Ms(e) {
|
|
4658
4662
|
const t = Object.keys(e), r = {};
|
|
4659
4663
|
for (let s = 0; s < t.length; s++) {
|
|
4660
4664
|
const a = t[s];
|
|
@@ -4665,7 +4669,7 @@ function zs(e) {
|
|
|
4665
4669
|
process.env.NODE_ENV !== "production" && (i = {});
|
|
4666
4670
|
let o;
|
|
4667
4671
|
try {
|
|
4668
|
-
|
|
4672
|
+
Wl(r);
|
|
4669
4673
|
} catch (s) {
|
|
4670
4674
|
o = s;
|
|
4671
4675
|
}
|
|
@@ -4673,18 +4677,18 @@ function zs(e) {
|
|
|
4673
4677
|
if (o)
|
|
4674
4678
|
throw o;
|
|
4675
4679
|
if (process.env.NODE_ENV !== "production") {
|
|
4676
|
-
const d =
|
|
4680
|
+
const d = ql(a, r, u, i);
|
|
4677
4681
|
d && mo(d);
|
|
4678
4682
|
}
|
|
4679
4683
|
let l = !1;
|
|
4680
4684
|
const f = {};
|
|
4681
4685
|
for (let d = 0; d < n.length; d++) {
|
|
4682
|
-
const h = n[d], p = r[h],
|
|
4686
|
+
const h = n[d], p = r[h], v = a[h], E = p(v, u);
|
|
4683
4687
|
if (typeof E > "u") {
|
|
4684
4688
|
const w = u && u.type;
|
|
4685
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4689
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(14) : `When called with an action of type ${w ? `"${String(w)}"` : "(unknown type)"}, the slice reducer for key "${h}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`);
|
|
4686
4690
|
}
|
|
4687
|
-
f[h] = E, l = l || E !==
|
|
4691
|
+
f[h] = E, l = l || E !== v;
|
|
4688
4692
|
}
|
|
4689
4693
|
return l = l || n.length !== Object.keys(a).length, l ? f : a;
|
|
4690
4694
|
};
|
|
@@ -4696,7 +4700,7 @@ function Hl(...e) {
|
|
|
4696
4700
|
return (t) => (r, n) => {
|
|
4697
4701
|
const i = t(r, n);
|
|
4698
4702
|
let o = () => {
|
|
4699
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4703
|
+
throw new Error(process.env.NODE_ENV === "production" ? K(15) : "Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");
|
|
4700
4704
|
};
|
|
4701
4705
|
const s = {
|
|
4702
4706
|
getState: i.getState,
|
|
@@ -4708,10 +4712,10 @@ function Hl(...e) {
|
|
|
4708
4712
|
};
|
|
4709
4713
|
};
|
|
4710
4714
|
}
|
|
4711
|
-
function
|
|
4715
|
+
function zs(e) {
|
|
4712
4716
|
return Jt(e) && "type" in e && typeof e.type == "string";
|
|
4713
4717
|
}
|
|
4714
|
-
var
|
|
4718
|
+
var Fs = Symbol.for("immer-nothing"), yo = Symbol.for("immer-draftable"), se = Symbol.for("immer-state"), Yl = process.env.NODE_ENV !== "production" ? [
|
|
4715
4719
|
// All error codes, starting by 0:
|
|
4716
4720
|
function(e) {
|
|
4717
4721
|
return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
|
|
@@ -4742,7 +4746,7 @@ var Ls = Symbol.for("immer-nothing"), yo = Symbol.for("immer-draftable"), ae = S
|
|
|
4742
4746
|
// Note: if more errors are added, the errorOffset in Patches.ts should be increased
|
|
4743
4747
|
// See Patches.ts for additional errors
|
|
4744
4748
|
] : [];
|
|
4745
|
-
function
|
|
4749
|
+
function ee(e, ...t) {
|
|
4746
4750
|
if (process.env.NODE_ENV !== "production") {
|
|
4747
4751
|
const r = Yl[e], n = typeof r == "function" ? r.apply(null, t) : r;
|
|
4748
4752
|
throw new Error(`[Immer] ${n}`);
|
|
@@ -4751,38 +4755,38 @@ function re(e, ...t) {
|
|
|
4751
4755
|
`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
|
|
4752
4756
|
);
|
|
4753
4757
|
}
|
|
4754
|
-
var
|
|
4758
|
+
var yt = Object.getPrototypeOf;
|
|
4755
4759
|
function Je(e) {
|
|
4756
|
-
return !!e && !!e[
|
|
4760
|
+
return !!e && !!e[se];
|
|
4757
4761
|
}
|
|
4758
4762
|
function Ne(e) {
|
|
4759
4763
|
var t;
|
|
4760
|
-
return e ?
|
|
4764
|
+
return e ? Ls(e) || Array.isArray(e) || !!e[yo] || !!((t = e.constructor) != null && t[yo]) || Hr(e) || Yr(e) : !1;
|
|
4761
4765
|
}
|
|
4762
4766
|
var Gl = Object.prototype.constructor.toString();
|
|
4763
|
-
function
|
|
4767
|
+
function Ls(e) {
|
|
4764
4768
|
if (!e || typeof e != "object")
|
|
4765
4769
|
return !1;
|
|
4766
|
-
const t =
|
|
4770
|
+
const t = yt(e);
|
|
4767
4771
|
if (t === null)
|
|
4768
4772
|
return !0;
|
|
4769
4773
|
const r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
4770
4774
|
return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === Gl;
|
|
4771
4775
|
}
|
|
4772
4776
|
function Nr(e, t) {
|
|
4773
|
-
|
|
4777
|
+
Wr(e) === 0 ? Reflect.ownKeys(e).forEach((r) => {
|
|
4774
4778
|
t(r, e[r], e);
|
|
4775
4779
|
}) : e.forEach((r, n) => t(n, r, e));
|
|
4776
4780
|
}
|
|
4777
|
-
function
|
|
4778
|
-
const t = e[
|
|
4781
|
+
function Wr(e) {
|
|
4782
|
+
const t = e[se];
|
|
4779
4783
|
return t ? t.type_ : Array.isArray(e) ? 1 : Hr(e) ? 2 : Yr(e) ? 3 : 0;
|
|
4780
4784
|
}
|
|
4781
4785
|
function In(e, t) {
|
|
4782
|
-
return
|
|
4786
|
+
return Wr(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
|
|
4783
4787
|
}
|
|
4784
|
-
function
|
|
4785
|
-
const n =
|
|
4788
|
+
function Bs(e, t, r) {
|
|
4789
|
+
const n = Wr(e);
|
|
4786
4790
|
n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
|
|
4787
4791
|
}
|
|
4788
4792
|
function Kl(e, t) {
|
|
@@ -4804,10 +4808,10 @@ function Dn(e, t) {
|
|
|
4804
4808
|
return new Set(e);
|
|
4805
4809
|
if (Array.isArray(e))
|
|
4806
4810
|
return Array.prototype.slice.call(e);
|
|
4807
|
-
const r =
|
|
4811
|
+
const r = Ls(e);
|
|
4808
4812
|
if (t === !0 || t === "class_only" && !r) {
|
|
4809
4813
|
const n = Object.getOwnPropertyDescriptors(e);
|
|
4810
|
-
delete n[
|
|
4814
|
+
delete n[se];
|
|
4811
4815
|
let i = Reflect.ownKeys(n);
|
|
4812
4816
|
for (let o = 0; o < i.length; o++) {
|
|
4813
4817
|
const s = i[o], a = n[s];
|
|
@@ -4819,9 +4823,9 @@ function Dn(e, t) {
|
|
|
4819
4823
|
value: e[s]
|
|
4820
4824
|
});
|
|
4821
4825
|
}
|
|
4822
|
-
return Object.create(
|
|
4826
|
+
return Object.create(yt(e), n);
|
|
4823
4827
|
} else {
|
|
4824
|
-
const n =
|
|
4828
|
+
const n = yt(e);
|
|
4825
4829
|
if (n !== null && r)
|
|
4826
4830
|
return { ...e };
|
|
4827
4831
|
const i = Object.create(n);
|
|
@@ -4829,10 +4833,10 @@ function Dn(e, t) {
|
|
|
4829
4833
|
}
|
|
4830
4834
|
}
|
|
4831
4835
|
function ai(e, t = !1) {
|
|
4832
|
-
return Gr(e) || Je(e) || !Ne(e) || (
|
|
4836
|
+
return Gr(e) || Je(e) || !Ne(e) || (Wr(e) > 1 && (e.set = e.add = e.clear = e.delete = Ql), Object.freeze(e), t && Object.entries(e).forEach(([r, n]) => ai(n, !0))), e;
|
|
4833
4837
|
}
|
|
4834
4838
|
function Ql() {
|
|
4835
|
-
|
|
4839
|
+
ee(2);
|
|
4836
4840
|
}
|
|
4837
4841
|
function Gr(e) {
|
|
4838
4842
|
return Object.isFrozen(e);
|
|
@@ -4840,11 +4844,11 @@ function Gr(e) {
|
|
|
4840
4844
|
var Xl = {};
|
|
4841
4845
|
function Ze(e) {
|
|
4842
4846
|
const t = Xl[e];
|
|
4843
|
-
return t ||
|
|
4847
|
+
return t || ee(0, e), t;
|
|
4844
4848
|
}
|
|
4845
|
-
var
|
|
4846
|
-
function
|
|
4847
|
-
return
|
|
4849
|
+
var Ht;
|
|
4850
|
+
function Us() {
|
|
4851
|
+
return Ht;
|
|
4848
4852
|
}
|
|
4849
4853
|
function Jl(e, t) {
|
|
4850
4854
|
return {
|
|
@@ -4864,29 +4868,29 @@ function jn(e) {
|
|
|
4864
4868
|
Vn(e), e.drafts_.forEach(Zl), e.drafts_ = null;
|
|
4865
4869
|
}
|
|
4866
4870
|
function Vn(e) {
|
|
4867
|
-
e ===
|
|
4871
|
+
e === Ht && (Ht = e.parent_);
|
|
4868
4872
|
}
|
|
4869
4873
|
function vo(e) {
|
|
4870
|
-
return
|
|
4874
|
+
return Ht = Jl(Ht, e);
|
|
4871
4875
|
}
|
|
4872
4876
|
function Zl(e) {
|
|
4873
|
-
const t = e[
|
|
4877
|
+
const t = e[se];
|
|
4874
4878
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
4875
4879
|
}
|
|
4876
4880
|
function bo(e, t) {
|
|
4877
4881
|
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
4878
4882
|
const r = t.drafts_[0];
|
|
4879
|
-
return e !== void 0 && e !== r ? (r[
|
|
4880
|
-
r[
|
|
4883
|
+
return e !== void 0 && e !== r ? (r[se].modified_ && (jn(t), ee(4)), Ne(e) && (e = Cr(t, e), t.parent_ || Rr(t, e)), t.patches_ && Ze("Patches").generateReplacementPatches_(
|
|
4884
|
+
r[se].base_,
|
|
4881
4885
|
e,
|
|
4882
4886
|
t.patches_,
|
|
4883
4887
|
t.inversePatches_
|
|
4884
|
-
)) : e = Cr(t, r, []), jn(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !==
|
|
4888
|
+
)) : e = Cr(t, r, []), jn(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== Fs ? e : void 0;
|
|
4885
4889
|
}
|
|
4886
4890
|
function Cr(e, t, r) {
|
|
4887
4891
|
if (Gr(t))
|
|
4888
4892
|
return t;
|
|
4889
|
-
const n = t[
|
|
4893
|
+
const n = t[se];
|
|
4890
4894
|
if (!n)
|
|
4891
4895
|
return Nr(
|
|
4892
4896
|
t,
|
|
@@ -4913,10 +4917,10 @@ function Cr(e, t, r) {
|
|
|
4913
4917
|
return n.copy_;
|
|
4914
4918
|
}
|
|
4915
4919
|
function wo(e, t, r, n, i, o, s) {
|
|
4916
|
-
if (process.env.NODE_ENV !== "production" && i === r &&
|
|
4920
|
+
if (process.env.NODE_ENV !== "production" && i === r && ee(5), Je(i)) {
|
|
4917
4921
|
const a = o && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
4918
4922
|
!In(t.assigned_, n) ? o.concat(n) : void 0, u = Cr(e, i, a);
|
|
4919
|
-
if (
|
|
4923
|
+
if (Bs(r, n, u), Je(u))
|
|
4920
4924
|
e.canAutoFreeze_ = !1;
|
|
4921
4925
|
else
|
|
4922
4926
|
return;
|
|
@@ -4934,7 +4938,7 @@ function ef(e, t) {
|
|
|
4934
4938
|
const r = Array.isArray(e), n = {
|
|
4935
4939
|
type_: r ? 1 : 0,
|
|
4936
4940
|
// Track which produce call this is associated with.
|
|
4937
|
-
scope_: t ? t.scope_ :
|
|
4941
|
+
scope_: t ? t.scope_ : Us(),
|
|
4938
4942
|
// True for both shallow and deep changes.
|
|
4939
4943
|
modified_: !1,
|
|
4940
4944
|
// Used during finalization.
|
|
@@ -4955,13 +4959,13 @@ function ef(e, t) {
|
|
|
4955
4959
|
isManual_: !1
|
|
4956
4960
|
};
|
|
4957
4961
|
let i = n, o = ci;
|
|
4958
|
-
r && (i = [n], o =
|
|
4962
|
+
r && (i = [n], o = Yt);
|
|
4959
4963
|
const { revoke: s, proxy: a } = Proxy.revocable(i, o);
|
|
4960
4964
|
return n.draft_ = a, n.revoke_ = s, a;
|
|
4961
4965
|
}
|
|
4962
4966
|
var ci = {
|
|
4963
4967
|
get(e, t) {
|
|
4964
|
-
if (t ===
|
|
4968
|
+
if (t === se)
|
|
4965
4969
|
return e;
|
|
4966
4970
|
const r = Be(e);
|
|
4967
4971
|
if (!In(r, t))
|
|
@@ -4980,7 +4984,7 @@ var ci = {
|
|
|
4980
4984
|
if (n != null && n.set)
|
|
4981
4985
|
return n.set.call(e.draft_, r), !0;
|
|
4982
4986
|
if (!e.modified_) {
|
|
4983
|
-
const i = dn(Be(e), t), o = i == null ? void 0 : i[
|
|
4987
|
+
const i = dn(Be(e), t), o = i == null ? void 0 : i[se];
|
|
4984
4988
|
if (o && o.base_ === r)
|
|
4985
4989
|
return e.copy_[t] = r, e.assigned_[t] = !1, !0;
|
|
4986
4990
|
if (Kl(r, i) && (r !== void 0 || In(e.base_, t)))
|
|
@@ -5006,28 +5010,28 @@ var ci = {
|
|
|
5006
5010
|
};
|
|
5007
5011
|
},
|
|
5008
5012
|
defineProperty() {
|
|
5009
|
-
|
|
5013
|
+
ee(11);
|
|
5010
5014
|
},
|
|
5011
5015
|
getPrototypeOf(e) {
|
|
5012
|
-
return
|
|
5016
|
+
return yt(e.base_);
|
|
5013
5017
|
},
|
|
5014
5018
|
setPrototypeOf() {
|
|
5015
|
-
|
|
5019
|
+
ee(12);
|
|
5016
5020
|
}
|
|
5017
|
-
},
|
|
5021
|
+
}, Yt = {};
|
|
5018
5022
|
Nr(ci, (e, t) => {
|
|
5019
|
-
|
|
5023
|
+
Yt[e] = function() {
|
|
5020
5024
|
return arguments[0] = arguments[0][0], t.apply(this, arguments);
|
|
5021
5025
|
};
|
|
5022
5026
|
});
|
|
5023
|
-
|
|
5024
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) &&
|
|
5027
|
+
Yt.deleteProperty = function(e, t) {
|
|
5028
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && ee(13), Yt.set.call(this, e, t, void 0);
|
|
5025
5029
|
};
|
|
5026
|
-
|
|
5027
|
-
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) &&
|
|
5030
|
+
Yt.set = function(e, t, r) {
|
|
5031
|
+
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && ee(14), ci.set.call(this, e[0], t, r, e[0]);
|
|
5028
5032
|
};
|
|
5029
5033
|
function dn(e, t) {
|
|
5030
|
-
const r = e[
|
|
5034
|
+
const r = e[se];
|
|
5031
5035
|
return (r ? Be(r) : e)[t];
|
|
5032
5036
|
}
|
|
5033
5037
|
function tf(e, t, r) {
|
|
@@ -5042,12 +5046,12 @@ function tf(e, t, r) {
|
|
|
5042
5046
|
function qs(e, t) {
|
|
5043
5047
|
if (!(t in e))
|
|
5044
5048
|
return;
|
|
5045
|
-
let r =
|
|
5049
|
+
let r = yt(e);
|
|
5046
5050
|
for (; r; ) {
|
|
5047
5051
|
const n = Object.getOwnPropertyDescriptor(r, t);
|
|
5048
5052
|
if (n)
|
|
5049
5053
|
return n;
|
|
5050
|
-
r =
|
|
5054
|
+
r = yt(r);
|
|
5051
5055
|
}
|
|
5052
5056
|
}
|
|
5053
5057
|
function $n(e) {
|
|
@@ -5070,7 +5074,7 @@ var rf = class {
|
|
|
5070
5074
|
return s.produce(u, (f) => r.call(this, f, ...l));
|
|
5071
5075
|
};
|
|
5072
5076
|
}
|
|
5073
|
-
typeof r != "function" &&
|
|
5077
|
+
typeof r != "function" && ee(6), n !== void 0 && typeof n != "function" && ee(7);
|
|
5074
5078
|
let i;
|
|
5075
5079
|
if (Ne(t)) {
|
|
5076
5080
|
const o = vo(this), s = Mn(t, void 0);
|
|
@@ -5082,13 +5086,13 @@ var rf = class {
|
|
|
5082
5086
|
}
|
|
5083
5087
|
return go(o, n), bo(i, o);
|
|
5084
5088
|
} else if (!t || typeof t != "object") {
|
|
5085
|
-
if (i = r(t), i === void 0 && (i = t), i ===
|
|
5089
|
+
if (i = r(t), i === void 0 && (i = t), i === Fs && (i = void 0), this.autoFreeze_ && ai(i, !0), n) {
|
|
5086
5090
|
const o = [], s = [];
|
|
5087
5091
|
Ze("Patches").generateReplacementPatches_(t, i, o, s), n(o, s);
|
|
5088
5092
|
}
|
|
5089
5093
|
return i;
|
|
5090
5094
|
} else
|
|
5091
|
-
|
|
5095
|
+
ee(1, t);
|
|
5092
5096
|
}, this.produceWithPatches = (t, r) => {
|
|
5093
5097
|
if (typeof t == "function")
|
|
5094
5098
|
return (s, ...a) => this.produceWithPatches(s, (u) => t(u, ...a));
|
|
@@ -5099,13 +5103,13 @@ var rf = class {
|
|
|
5099
5103
|
}, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
|
|
5100
5104
|
}
|
|
5101
5105
|
createDraft(e) {
|
|
5102
|
-
Ne(e) ||
|
|
5106
|
+
Ne(e) || ee(8), Je(e) && (e = nf(e));
|
|
5103
5107
|
const t = vo(this), r = Mn(e, void 0);
|
|
5104
|
-
return r[
|
|
5108
|
+
return r[se].isManual_ = !0, Vn(t), r;
|
|
5105
5109
|
}
|
|
5106
5110
|
finishDraft(e, t) {
|
|
5107
|
-
const r = e && e[
|
|
5108
|
-
(!r || !r.isManual_) &&
|
|
5111
|
+
const r = e && e[se];
|
|
5112
|
+
(!r || !r.isManual_) && ee(9);
|
|
5109
5113
|
const { scope_: n } = r;
|
|
5110
5114
|
return go(n, t), bo(void 0, n);
|
|
5111
5115
|
}
|
|
@@ -5144,15 +5148,15 @@ var rf = class {
|
|
|
5144
5148
|
};
|
|
5145
5149
|
function Mn(e, t) {
|
|
5146
5150
|
const r = Hr(e) ? Ze("MapSet").proxyMap_(e, t) : Yr(e) ? Ze("MapSet").proxySet_(e, t) : ef(e, t);
|
|
5147
|
-
return (t ? t.scope_ :
|
|
5151
|
+
return (t ? t.scope_ : Us()).drafts_.push(r), r;
|
|
5148
5152
|
}
|
|
5149
5153
|
function nf(e) {
|
|
5150
|
-
return Je(e) ||
|
|
5154
|
+
return Je(e) || ee(10, e), Ws(e);
|
|
5151
5155
|
}
|
|
5152
|
-
function
|
|
5156
|
+
function Ws(e) {
|
|
5153
5157
|
if (!Ne(e) || Gr(e))
|
|
5154
5158
|
return e;
|
|
5155
|
-
const t = e[
|
|
5159
|
+
const t = e[se];
|
|
5156
5160
|
let r;
|
|
5157
5161
|
if (t) {
|
|
5158
5162
|
if (!t.modified_)
|
|
@@ -5161,22 +5165,22 @@ function Hs(e) {
|
|
|
5161
5165
|
} else
|
|
5162
5166
|
r = Dn(e, !0);
|
|
5163
5167
|
return Nr(r, (n, i) => {
|
|
5164
|
-
|
|
5168
|
+
Bs(r, n, Ws(i));
|
|
5165
5169
|
}), t && (t.finalized_ = !1), r;
|
|
5166
5170
|
}
|
|
5167
|
-
var
|
|
5168
|
-
|
|
5169
|
-
|
|
5171
|
+
var ae = new rf(), Hs = ae.produce;
|
|
5172
|
+
ae.produceWithPatches.bind(
|
|
5173
|
+
ae
|
|
5170
5174
|
);
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
function
|
|
5175
|
+
ae.setAutoFreeze.bind(ae);
|
|
5176
|
+
ae.setUseStrictShallowCopy.bind(ae);
|
|
5177
|
+
ae.applyPatches.bind(ae);
|
|
5178
|
+
ae.createDraft.bind(ae);
|
|
5179
|
+
ae.finishDraft.bind(ae);
|
|
5180
|
+
function Ys(e) {
|
|
5177
5181
|
return ({ dispatch: r, getState: n }) => (i) => (o) => typeof o == "function" ? o(r, n, e) : i(o);
|
|
5178
5182
|
}
|
|
5179
|
-
var of =
|
|
5183
|
+
var of = Ys(), sf = Ys, af = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
|
|
5180
5184
|
if (arguments.length !== 0)
|
|
5181
5185
|
return typeof arguments[0] == "object" ? Pr : Pr.apply(null, arguments);
|
|
5182
5186
|
}, cf = (e) => e && typeof e.match == "function";
|
|
@@ -5202,7 +5206,7 @@ function _o(e, t) {
|
|
|
5202
5206
|
payload: n[0]
|
|
5203
5207
|
};
|
|
5204
5208
|
}
|
|
5205
|
-
return r.toString = () => `${e}`, r.type = e, r.match = (n) =>
|
|
5209
|
+
return r.toString = () => `${e}`, r.type = e, r.match = (n) => zs(n) && n.type === e, r;
|
|
5206
5210
|
}
|
|
5207
5211
|
function uf(e) {
|
|
5208
5212
|
return typeof e == "function" && "type" in e && // hasMatchFunction only wants Matchers but I don't see the point in rewriting it
|
|
@@ -5221,7 +5225,7 @@ function ff(e = {}) {
|
|
|
5221
5225
|
} = e;
|
|
5222
5226
|
return () => (r) => (n) => (t(n) && console.warn(lf(n.type)), r(n));
|
|
5223
5227
|
}
|
|
5224
|
-
function
|
|
5228
|
+
function Gs(e, t) {
|
|
5225
5229
|
let r = 0;
|
|
5226
5230
|
return {
|
|
5227
5231
|
measureTime(n) {
|
|
@@ -5240,22 +5244,22 @@ It is disabled in production builds, so you don't need to worry about that.`);
|
|
|
5240
5244
|
}
|
|
5241
5245
|
};
|
|
5242
5246
|
}
|
|
5243
|
-
var
|
|
5247
|
+
var Ks = class At extends Array {
|
|
5244
5248
|
constructor(...t) {
|
|
5245
|
-
super(...t), Object.setPrototypeOf(this,
|
|
5249
|
+
super(...t), Object.setPrototypeOf(this, At.prototype);
|
|
5246
5250
|
}
|
|
5247
5251
|
static get [Symbol.species]() {
|
|
5248
|
-
return
|
|
5252
|
+
return At;
|
|
5249
5253
|
}
|
|
5250
5254
|
concat(...t) {
|
|
5251
5255
|
return super.concat.apply(this, t);
|
|
5252
5256
|
}
|
|
5253
5257
|
prepend(...t) {
|
|
5254
|
-
return t.length === 1 && Array.isArray(t[0]) ? new
|
|
5258
|
+
return t.length === 1 && Array.isArray(t[0]) ? new At(...t[0].concat(this)) : new At(...t.concat(this));
|
|
5255
5259
|
}
|
|
5256
5260
|
};
|
|
5257
5261
|
function Eo(e) {
|
|
5258
|
-
return Ne(e) ?
|
|
5262
|
+
return Ne(e) ? Hs(e, () => {
|
|
5259
5263
|
}) : e;
|
|
5260
5264
|
}
|
|
5261
5265
|
function So(e, t, r) {
|
|
@@ -5265,14 +5269,14 @@ function df(e) {
|
|
|
5265
5269
|
return typeof e != "object" || e == null || Object.isFrozen(e);
|
|
5266
5270
|
}
|
|
5267
5271
|
function hf(e, t, r) {
|
|
5268
|
-
const n =
|
|
5272
|
+
const n = Qs(e, t, r);
|
|
5269
5273
|
return {
|
|
5270
5274
|
detectMutations() {
|
|
5271
|
-
return
|
|
5275
|
+
return Xs(e, t, n, r);
|
|
5272
5276
|
}
|
|
5273
5277
|
};
|
|
5274
5278
|
}
|
|
5275
|
-
function
|
|
5279
|
+
function Qs(e, t = [], r, n = "", i = /* @__PURE__ */ new Set()) {
|
|
5276
5280
|
const o = {
|
|
5277
5281
|
value: r
|
|
5278
5282
|
};
|
|
@@ -5280,12 +5284,12 @@ function Xs(e, t = [], r, n = "", i = /* @__PURE__ */ new Set()) {
|
|
|
5280
5284
|
i.add(r), o.children = {};
|
|
5281
5285
|
for (const s in r) {
|
|
5282
5286
|
const a = n ? n + "." + s : s;
|
|
5283
|
-
t.length && t.indexOf(a) !== -1 || (o.children[s] =
|
|
5287
|
+
t.length && t.indexOf(a) !== -1 || (o.children[s] = Qs(e, t, r[s], a));
|
|
5284
5288
|
}
|
|
5285
5289
|
}
|
|
5286
5290
|
return o;
|
|
5287
5291
|
}
|
|
5288
|
-
function
|
|
5292
|
+
function Xs(e, t = [], r, n, i = !1, o = "") {
|
|
5289
5293
|
const s = r ? r.value : void 0, a = s === n;
|
|
5290
5294
|
if (i && !a && !Number.isNaN(n))
|
|
5291
5295
|
return {
|
|
@@ -5304,9 +5308,9 @@ function Js(e, t = [], r, n, i = !1, o = "") {
|
|
|
5304
5308
|
const l = t.length > 0;
|
|
5305
5309
|
for (let f in u) {
|
|
5306
5310
|
const d = o ? o + "." + f : f;
|
|
5307
|
-
if (l && t.some((
|
|
5311
|
+
if (l && t.some((v) => v instanceof RegExp ? v.test(d) : d === v))
|
|
5308
5312
|
continue;
|
|
5309
|
-
const h =
|
|
5313
|
+
const h = Xs(e, t, r.children[f], n[f], a, d);
|
|
5310
5314
|
if (h.wasMutated)
|
|
5311
5315
|
return h;
|
|
5312
5316
|
}
|
|
@@ -5342,25 +5346,25 @@ function pf(e = {}) {
|
|
|
5342
5346
|
}) => {
|
|
5343
5347
|
let u = a(), l = s(u), f;
|
|
5344
5348
|
return (d) => (h) => {
|
|
5345
|
-
const p =
|
|
5349
|
+
const p = Gs(o, "ImmutableStateInvariantMiddleware");
|
|
5346
5350
|
p.measureTime(() => {
|
|
5347
5351
|
if (u = a(), f = l.detectMutations(), l = s(u), f.wasMutated)
|
|
5348
5352
|
throw new Error(process.env.NODE_ENV === "production" ? L(19) : `A state mutation was detected between dispatches, in the path '${f.path || ""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
|
|
5349
5353
|
});
|
|
5350
|
-
const
|
|
5354
|
+
const v = d(h);
|
|
5351
5355
|
return p.measureTime(() => {
|
|
5352
5356
|
if (u = a(), f = l.detectMutations(), l = s(u), f.wasMutated)
|
|
5353
5357
|
throw new Error(process.env.NODE_ENV === "production" ? L(20) : `A state mutation was detected inside a dispatch, in the path: ${f.path || ""}. Take a look at the reducer(s) handling the action ${t(h)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
|
|
5354
|
-
}), p.warnIfExceeded(),
|
|
5358
|
+
}), p.warnIfExceeded(), v;
|
|
5355
5359
|
};
|
|
5356
5360
|
};
|
|
5357
5361
|
}
|
|
5358
5362
|
}
|
|
5359
|
-
function
|
|
5363
|
+
function Js(e) {
|
|
5360
5364
|
const t = typeof e;
|
|
5361
5365
|
return e == null || t === "string" || t === "boolean" || t === "number" || Array.isArray(e) || Jt(e);
|
|
5362
5366
|
}
|
|
5363
|
-
function zn(e, t = "", r =
|
|
5367
|
+
function zn(e, t = "", r = Js, n, i = [], o) {
|
|
5364
5368
|
let s;
|
|
5365
5369
|
if (!r(e))
|
|
5366
5370
|
return {
|
|
@@ -5381,12 +5385,12 @@ function zn(e, t = "", r = Zs, n, i = [], o) {
|
|
|
5381
5385
|
return s;
|
|
5382
5386
|
}
|
|
5383
5387
|
}
|
|
5384
|
-
return o &&
|
|
5388
|
+
return o && Zs(e) && o.add(e), !1;
|
|
5385
5389
|
}
|
|
5386
|
-
function
|
|
5390
|
+
function Zs(e) {
|
|
5387
5391
|
if (!Object.isFrozen(e)) return !1;
|
|
5388
5392
|
for (const t of Object.values(e))
|
|
5389
|
-
if (!(typeof t != "object" || t === null) && !
|
|
5393
|
+
if (!(typeof t != "object" || t === null) && !Zs(t))
|
|
5390
5394
|
return !1;
|
|
5391
5395
|
return !0;
|
|
5392
5396
|
}
|
|
@@ -5395,7 +5399,7 @@ function mf(e = {}) {
|
|
|
5395
5399
|
return () => (t) => (r) => t(r);
|
|
5396
5400
|
{
|
|
5397
5401
|
const {
|
|
5398
|
-
isSerializable: t =
|
|
5402
|
+
isSerializable: t = Js,
|
|
5399
5403
|
getEntries: r,
|
|
5400
5404
|
ignoredActions: n = [],
|
|
5401
5405
|
ignoredActionPaths: i = ["meta.arg", "meta.baseQueryMeta"],
|
|
@@ -5406,9 +5410,9 @@ function mf(e = {}) {
|
|
|
5406
5410
|
disableCache: l = !1
|
|
5407
5411
|
} = e, f = !l && WeakSet ? /* @__PURE__ */ new WeakSet() : void 0;
|
|
5408
5412
|
return (d) => (h) => (p) => {
|
|
5409
|
-
if (!
|
|
5413
|
+
if (!zs(p))
|
|
5410
5414
|
return h(p);
|
|
5411
|
-
const
|
|
5415
|
+
const v = h(p), E = Gs(s, "SerializableStateInvariantMiddleware");
|
|
5412
5416
|
return !u && !(n.length && n.indexOf(p.type) !== -1) && E.measureTime(() => {
|
|
5413
5417
|
const w = zn(p, "", t, r, i, f);
|
|
5414
5418
|
if (w) {
|
|
@@ -5432,7 +5436,7 @@ Take a look at the logic that dispatched this action: `, p, `
|
|
|
5432
5436
|
Take a look at the reducer(s) handling this action type: ${p.type}.
|
|
5433
5437
|
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`);
|
|
5434
5438
|
}
|
|
5435
|
-
}), E.warnIfExceeded()),
|
|
5439
|
+
}), E.warnIfExceeded()), v;
|
|
5436
5440
|
};
|
|
5437
5441
|
}
|
|
5438
5442
|
}
|
|
@@ -5446,7 +5450,7 @@ var yf = () => function(t) {
|
|
|
5446
5450
|
serializableCheck: i = !0,
|
|
5447
5451
|
actionCreatorCheck: o = !0
|
|
5448
5452
|
} = t ?? {};
|
|
5449
|
-
let s = new
|
|
5453
|
+
let s = new Ks();
|
|
5450
5454
|
if (r && (ur(r) ? s.push(of) : s.push(sf(r.extraArgument))), process.env.NODE_ENV !== "production") {
|
|
5451
5455
|
if (n) {
|
|
5452
5456
|
let a = {};
|
|
@@ -5499,7 +5503,7 @@ var yf = () => function(t) {
|
|
|
5499
5503
|
const {
|
|
5500
5504
|
autoBatch: n = !0
|
|
5501
5505
|
} = r ?? {};
|
|
5502
|
-
let i = new
|
|
5506
|
+
let i = new Ks(e);
|
|
5503
5507
|
return n && i.push(vf(typeof n == "object" ? n : void 0)), i;
|
|
5504
5508
|
};
|
|
5505
5509
|
function wf(e) {
|
|
@@ -5514,7 +5518,7 @@ function wf(e) {
|
|
|
5514
5518
|
if (typeof r == "function")
|
|
5515
5519
|
a = r;
|
|
5516
5520
|
else if (Jt(r))
|
|
5517
|
-
a =
|
|
5521
|
+
a = Ms(r);
|
|
5518
5522
|
else
|
|
5519
5523
|
throw new Error(process.env.NODE_ENV === "production" ? L(1) : "`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");
|
|
5520
5524
|
if (process.env.NODE_ENV !== "production" && n && typeof n != "function")
|
|
@@ -5525,7 +5529,7 @@ function wf(e) {
|
|
|
5525
5529
|
throw new Error(process.env.NODE_ENV === "production" ? L(3) : "when using a middleware builder function, an array of middleware must be returned");
|
|
5526
5530
|
} else
|
|
5527
5531
|
u = t();
|
|
5528
|
-
if (process.env.NODE_ENV !== "production" && u.some((
|
|
5532
|
+
if (process.env.NODE_ENV !== "production" && u.some((v) => typeof v != "function"))
|
|
5529
5533
|
throw new Error(process.env.NODE_ENV === "production" ? L(4) : "each middleware provided to configureStore must be a function");
|
|
5530
5534
|
let l = Pr;
|
|
5531
5535
|
i && (l = af({
|
|
@@ -5539,13 +5543,13 @@ function wf(e) {
|
|
|
5539
5543
|
let h = typeof s == "function" ? s(d) : d();
|
|
5540
5544
|
if (process.env.NODE_ENV !== "production" && !Array.isArray(h))
|
|
5541
5545
|
throw new Error(process.env.NODE_ENV === "production" ? L(6) : "`enhancers` callback must return an array");
|
|
5542
|
-
if (process.env.NODE_ENV !== "production" && h.some((
|
|
5546
|
+
if (process.env.NODE_ENV !== "production" && h.some((v) => typeof v != "function"))
|
|
5543
5547
|
throw new Error(process.env.NODE_ENV === "production" ? L(7) : "each enhancer provided to configureStore must be a function");
|
|
5544
5548
|
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`");
|
|
5545
5549
|
const p = l(...h);
|
|
5546
|
-
return
|
|
5550
|
+
return $s(a, o, p);
|
|
5547
5551
|
}
|
|
5548
|
-
function
|
|
5552
|
+
function ea(e) {
|
|
5549
5553
|
const t = {}, r = [];
|
|
5550
5554
|
let n;
|
|
5551
5555
|
const i = {
|
|
@@ -5585,7 +5589,7 @@ function _f(e) {
|
|
|
5585
5589
|
function Ef(e, t) {
|
|
5586
5590
|
if (process.env.NODE_ENV !== "production" && typeof t == "object")
|
|
5587
5591
|
throw new Error(process.env.NODE_ENV === "production" ? L(8) : "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
|
|
5588
|
-
let [r, n, i] =
|
|
5592
|
+
let [r, n, i] = ea(t), o;
|
|
5589
5593
|
if (_f(e))
|
|
5590
5594
|
o = () => Eo(e());
|
|
5591
5595
|
else {
|
|
@@ -5605,7 +5609,7 @@ function Ef(e, t) {
|
|
|
5605
5609
|
return p === void 0 ? f : p;
|
|
5606
5610
|
} else {
|
|
5607
5611
|
if (Ne(f))
|
|
5608
|
-
return
|
|
5612
|
+
return Hs(f, (h) => d(h, u));
|
|
5609
5613
|
{
|
|
5610
5614
|
const h = d(f, u);
|
|
5611
5615
|
if (h === void 0) {
|
|
@@ -5676,45 +5680,45 @@ function kf({
|
|
|
5676
5680
|
function d() {
|
|
5677
5681
|
if (process.env.NODE_ENV !== "production" && typeof i.extraReducers == "object")
|
|
5678
5682
|
throw new Error(process.env.NODE_ENV === "production" ? L(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
|
|
5679
|
-
const [m = {}, S = [], O = void 0] = typeof i.extraReducers == "function" ?
|
|
5683
|
+
const [m = {}, S = [], O = void 0] = typeof i.extraReducers == "function" ? ea(i.extraReducers) : [i.extraReducers], P = {
|
|
5680
5684
|
...m,
|
|
5681
5685
|
...l.sliceCaseReducersByType
|
|
5682
5686
|
};
|
|
5683
5687
|
return Ef(i.initialState, (k) => {
|
|
5684
|
-
for (let
|
|
5685
|
-
k.addCase(
|
|
5686
|
-
for (let
|
|
5687
|
-
k.addMatcher(
|
|
5688
|
-
for (let
|
|
5689
|
-
k.addMatcher(
|
|
5688
|
+
for (let j in P)
|
|
5689
|
+
k.addCase(j, P[j]);
|
|
5690
|
+
for (let j of l.sliceMatchers)
|
|
5691
|
+
k.addMatcher(j.matcher, j.reducer);
|
|
5692
|
+
for (let j of S)
|
|
5693
|
+
k.addMatcher(j.matcher, j.reducer);
|
|
5690
5694
|
O && k.addDefaultCase(O);
|
|
5691
5695
|
});
|
|
5692
5696
|
}
|
|
5693
5697
|
const h = (m) => m, p = /* @__PURE__ */ new Map();
|
|
5694
|
-
let
|
|
5698
|
+
let v;
|
|
5695
5699
|
function E(m, S) {
|
|
5696
|
-
return
|
|
5700
|
+
return v || (v = d()), v(m, S);
|
|
5697
5701
|
}
|
|
5698
5702
|
function w() {
|
|
5699
|
-
return
|
|
5703
|
+
return v || (v = d()), v.getInitialState();
|
|
5700
5704
|
}
|
|
5701
5705
|
function y(m, S = !1) {
|
|
5702
5706
|
function O(k) {
|
|
5703
|
-
let
|
|
5704
|
-
if (typeof
|
|
5707
|
+
let j = k[m];
|
|
5708
|
+
if (typeof j > "u") {
|
|
5705
5709
|
if (S)
|
|
5706
|
-
|
|
5710
|
+
j = w();
|
|
5707
5711
|
else if (process.env.NODE_ENV !== "production")
|
|
5708
5712
|
throw new Error(process.env.NODE_ENV === "production" ? L(15) : "selectSlice returned undefined for an uninjected slice reducer");
|
|
5709
5713
|
}
|
|
5710
|
-
return
|
|
5714
|
+
return j;
|
|
5711
5715
|
}
|
|
5712
5716
|
function P(k = h) {
|
|
5713
|
-
const
|
|
5714
|
-
return So(
|
|
5717
|
+
const j = So(p, S, () => /* @__PURE__ */ new WeakMap());
|
|
5718
|
+
return So(j, k, () => {
|
|
5715
5719
|
const M = {};
|
|
5716
|
-
for (const [
|
|
5717
|
-
M[
|
|
5720
|
+
for (const [ne, Y] of Object.entries(i.selectors ?? {}))
|
|
5721
|
+
M[ne] = Of(Y, k, w, S);
|
|
5718
5722
|
return M;
|
|
5719
5723
|
});
|
|
5720
5724
|
}
|
|
@@ -5844,19 +5848,19 @@ function L(e) {
|
|
|
5844
5848
|
}
|
|
5845
5849
|
const If = {
|
|
5846
5850
|
cardPosition: "transit-to-home"
|
|
5847
|
-
},
|
|
5851
|
+
}, ta = Pf({
|
|
5848
5852
|
name: "navigation",
|
|
5849
5853
|
initialState: If,
|
|
5850
5854
|
reducers: {
|
|
5851
5855
|
setCardState: (e, t) => (e.cardPosition = t.payload.state, e)
|
|
5852
5856
|
}
|
|
5853
|
-
}), { setCardState: Bf } =
|
|
5854
|
-
navigation:
|
|
5857
|
+
}), { setCardState: Bf } = ta.actions, Df = Ms({
|
|
5858
|
+
navigation: ta.reducer
|
|
5855
5859
|
}), Uf = wf({
|
|
5856
5860
|
reducer: Df
|
|
5857
5861
|
});
|
|
5858
5862
|
export {
|
|
5859
|
-
|
|
5863
|
+
as as AnimatedText,
|
|
5860
5864
|
zf as BackButton,
|
|
5861
5865
|
$f as BannerButton,
|
|
5862
5866
|
Mf as CircleIconButton,
|