@acrool/react-picker 0.0.5 → 0.0.6-alpha.1
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Dn from "react";
|
|
2
|
-
import Mn, { createContext as Et, useContext as U, useLayoutEffect as
|
|
3
|
-
import
|
|
2
|
+
import Mn, { createContext as Et, useContext as U, useLayoutEffect as Qo, useEffect as ut, useRef as nt, useInsertionEffect as qs, useCallback as mt, useMemo as Vt, forwardRef as Ve, Fragment as Zs, createElement as ta, useId as kn, Component as ea, Children as na, isValidElement as ia, useState as Jt } from "react";
|
|
3
|
+
import sa from "react-dom";
|
|
4
4
|
var Ot = /* @__PURE__ */ ((t) => (t.Escape = "Escape", t.Enter = "Enter", t.Tab = "Tab", t.ArrowUp = "ArrowUp", t.ArrowDown = "ArrowDown", t))(Ot || {});
|
|
5
5
|
const ce = [
|
|
6
6
|
"color: #fff",
|
|
@@ -19,42 +19,42 @@ const ce = [
|
|
|
19
19
|
function fe(t, e, ...n) {
|
|
20
20
|
console.log(`%c ${t}`, e, ...n);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function ra(t, ...e) {
|
|
23
23
|
const n = ce.concat([
|
|
24
24
|
`background-color: ${ue.primary}`
|
|
25
25
|
]).join(";");
|
|
26
26
|
fe(t, n, ...e);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function oa(t, ...e) {
|
|
29
29
|
const n = ce.concat([
|
|
30
30
|
`background-color: ${ue.success}`
|
|
31
31
|
]).join(";");
|
|
32
32
|
fe(t, n, ...e);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function aa(t, ...e) {
|
|
35
35
|
const n = ce.concat([
|
|
36
36
|
`background-color: ${ue.info}`
|
|
37
37
|
]).join(";");
|
|
38
38
|
fe(t, n, ...e);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function la(t, ...e) {
|
|
41
41
|
const n = ce.concat([
|
|
42
42
|
`background-color: ${ue.warning}`
|
|
43
43
|
]).join(";");
|
|
44
44
|
fe(t, n, ...e);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function ca(t, ...e) {
|
|
47
47
|
const n = ce.concat([
|
|
48
48
|
`background-color: ${ue.danger}`
|
|
49
49
|
]).join(";");
|
|
50
50
|
fe(t, n, ...e);
|
|
51
51
|
}
|
|
52
52
|
const wt = {
|
|
53
|
-
primary:
|
|
54
|
-
success:
|
|
55
|
-
info:
|
|
56
|
-
warning:
|
|
57
|
-
danger:
|
|
53
|
+
primary: ra,
|
|
54
|
+
success: oa,
|
|
55
|
+
info: aa,
|
|
56
|
+
warning: la,
|
|
57
|
+
danger: ca
|
|
58
58
|
}, Ln = Et({
|
|
59
59
|
hide: () => wt.warning("No hide method detected, did you embed your app with Acrool/PickerPortal?"),
|
|
60
60
|
show: () => wt.warning("No show method detected, did you embed your app with Acrool/PickerPortal?"),
|
|
@@ -75,11 +75,11 @@ var pn = { exports: {} }, Ht = {};
|
|
|
75
75
|
* This source code is licensed under the MIT license found in the
|
|
76
76
|
* LICENSE file in the root directory of this source tree.
|
|
77
77
|
*/
|
|
78
|
-
var
|
|
79
|
-
function
|
|
80
|
-
if (
|
|
78
|
+
var Vi;
|
|
79
|
+
function ua() {
|
|
80
|
+
if (Vi)
|
|
81
81
|
return Ht;
|
|
82
|
-
|
|
82
|
+
Vi = 1;
|
|
83
83
|
var t = Mn, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, s = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
84
84
|
function r(a, l, c) {
|
|
85
85
|
var u, f = {}, d = null, p = null;
|
|
@@ -103,9 +103,9 @@ var Yt = {};
|
|
|
103
103
|
* This source code is licensed under the MIT license found in the
|
|
104
104
|
* LICENSE file in the root directory of this source tree.
|
|
105
105
|
*/
|
|
106
|
-
var
|
|
107
|
-
function
|
|
108
|
-
return
|
|
106
|
+
var Ei;
|
|
107
|
+
function fa() {
|
|
108
|
+
return Ei || (Ei = 1, process.env.NODE_ENV !== "production" && function() {
|
|
109
109
|
var t = Mn, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), g = Symbol.iterator, P = "@@iterator";
|
|
110
110
|
function b(h) {
|
|
111
111
|
if (h === null || typeof h != "object")
|
|
@@ -195,18 +195,18 @@ function ha() {
|
|
|
195
195
|
}
|
|
196
196
|
return null;
|
|
197
197
|
}
|
|
198
|
-
var it = Object.assign, F = 0, J, Dt, Mt, ui, fi, hi
|
|
199
|
-
function
|
|
198
|
+
var it = Object.assign, F = 0, J, Dt, Mt, ci, ui, fi, hi;
|
|
199
|
+
function di() {
|
|
200
200
|
}
|
|
201
|
-
|
|
202
|
-
function
|
|
201
|
+
di.__reactDisabledLog = !0;
|
|
202
|
+
function Ao() {
|
|
203
203
|
{
|
|
204
204
|
if (F === 0) {
|
|
205
|
-
J = console.log, Dt = console.info, Mt = console.warn,
|
|
205
|
+
J = console.log, Dt = console.info, Mt = console.warn, ci = console.error, ui = console.group, fi = console.groupCollapsed, hi = console.groupEnd;
|
|
206
206
|
var h = {
|
|
207
207
|
configurable: !0,
|
|
208
208
|
enumerable: !0,
|
|
209
|
-
value:
|
|
209
|
+
value: di,
|
|
210
210
|
writable: !0
|
|
211
211
|
};
|
|
212
212
|
Object.defineProperties(console, {
|
|
@@ -222,7 +222,7 @@ function ha() {
|
|
|
222
222
|
F++;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function Ro() {
|
|
226
226
|
{
|
|
227
227
|
if (F--, F === 0) {
|
|
228
228
|
var h = {
|
|
@@ -241,16 +241,16 @@ function ha() {
|
|
|
241
241
|
value: Mt
|
|
242
242
|
}),
|
|
243
243
|
error: it({}, h, {
|
|
244
|
-
value:
|
|
244
|
+
value: ci
|
|
245
245
|
}),
|
|
246
246
|
group: it({}, h, {
|
|
247
|
-
value:
|
|
247
|
+
value: ui
|
|
248
248
|
}),
|
|
249
249
|
groupCollapsed: it({}, h, {
|
|
250
|
-
value:
|
|
250
|
+
value: fi
|
|
251
251
|
}),
|
|
252
252
|
groupEnd: it({}, h, {
|
|
253
|
-
value:
|
|
253
|
+
value: hi
|
|
254
254
|
})
|
|
255
255
|
});
|
|
256
256
|
}
|
|
@@ -273,10 +273,10 @@ function ha() {
|
|
|
273
273
|
}
|
|
274
274
|
var ze = !1, ye;
|
|
275
275
|
{
|
|
276
|
-
var
|
|
277
|
-
ye = new
|
|
276
|
+
var Vo = typeof WeakMap == "function" ? WeakMap : Map;
|
|
277
|
+
ye = new Vo();
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function pi(h, m) {
|
|
280
280
|
if (!h || ze)
|
|
281
281
|
return "";
|
|
282
282
|
{
|
|
@@ -289,7 +289,7 @@ function ha() {
|
|
|
289
289
|
var D = Error.prepareStackTrace;
|
|
290
290
|
Error.prepareStackTrace = void 0;
|
|
291
291
|
var k;
|
|
292
|
-
k = Ke.current, Ke.current = null,
|
|
292
|
+
k = Ke.current, Ke.current = null, Ao();
|
|
293
293
|
try {
|
|
294
294
|
if (m) {
|
|
295
295
|
var E = function() {
|
|
@@ -342,15 +342,15 @@ function ha() {
|
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
} finally {
|
|
345
|
-
ze = !1, Ke.current = k,
|
|
345
|
+
ze = !1, Ke.current = k, Ro(), Error.prepareStackTrace = D;
|
|
346
346
|
}
|
|
347
347
|
var Lt = h ? h.displayName || h.name : "", Tt = Lt ? ge(Lt) : "";
|
|
348
348
|
return typeof h == "function" && ye.set(h, Tt), Tt;
|
|
349
349
|
}
|
|
350
|
-
function
|
|
351
|
-
return
|
|
350
|
+
function Eo(h, m, T) {
|
|
351
|
+
return pi(h, !1);
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function Do(h) {
|
|
354
354
|
var m = h.prototype;
|
|
355
355
|
return !!(m && m.isReactComponent);
|
|
356
356
|
}
|
|
@@ -358,7 +358,7 @@ function ha() {
|
|
|
358
358
|
if (h == null)
|
|
359
359
|
return "";
|
|
360
360
|
if (typeof h == "function")
|
|
361
|
-
return
|
|
361
|
+
return pi(h, Do(h));
|
|
362
362
|
if (typeof h == "string")
|
|
363
363
|
return ge(h);
|
|
364
364
|
switch (h) {
|
|
@@ -370,7 +370,7 @@ function ha() {
|
|
|
370
370
|
if (typeof h == "object")
|
|
371
371
|
switch (h.$$typeof) {
|
|
372
372
|
case l:
|
|
373
|
-
return
|
|
373
|
+
return Eo(h.render);
|
|
374
374
|
case f:
|
|
375
375
|
return ve(h.type, m, T);
|
|
376
376
|
case d: {
|
|
@@ -383,15 +383,15 @@ function ha() {
|
|
|
383
383
|
}
|
|
384
384
|
return "";
|
|
385
385
|
}
|
|
386
|
-
var Gt = Object.prototype.hasOwnProperty,
|
|
386
|
+
var Gt = Object.prototype.hasOwnProperty, mi = {}, gi = x.ReactDebugCurrentFrame;
|
|
387
387
|
function Pe(h) {
|
|
388
388
|
if (h) {
|
|
389
389
|
var m = h._owner, T = ve(h.type, h._source, m ? m.type : null);
|
|
390
|
-
|
|
390
|
+
gi.setExtraStackFrame(T);
|
|
391
391
|
} else
|
|
392
|
-
|
|
392
|
+
gi.setExtraStackFrame(null);
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function Mo(h, m, T, A, D) {
|
|
395
395
|
{
|
|
396
396
|
var k = Function.call.bind(Gt);
|
|
397
397
|
for (var E in h)
|
|
@@ -406,42 +406,42 @@ function ha() {
|
|
|
406
406
|
} catch (_) {
|
|
407
407
|
R = _;
|
|
408
408
|
}
|
|
409
|
-
R && !(R instanceof Error) && (Pe(D), y("%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).", A || "React class", T, E, typeof R), Pe(null)), R instanceof Error && !(R.message in
|
|
409
|
+
R && !(R instanceof Error) && (Pe(D), y("%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).", A || "React class", T, E, typeof R), Pe(null)), R instanceof Error && !(R.message in mi) && (mi[R.message] = !0, Pe(D), y("Failed %s type: %s", T, R.message), Pe(null));
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
var
|
|
413
|
+
var ko = Array.isArray;
|
|
414
414
|
function He(h) {
|
|
415
|
-
return
|
|
415
|
+
return ko(h);
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function Lo(h) {
|
|
418
418
|
{
|
|
419
419
|
var m = typeof Symbol == "function" && Symbol.toStringTag, T = m && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
420
420
|
return T;
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function Oo(h) {
|
|
424
424
|
try {
|
|
425
|
-
return
|
|
425
|
+
return yi(h), !1;
|
|
426
426
|
} catch {
|
|
427
427
|
return !0;
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function yi(h) {
|
|
431
431
|
return "" + h;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
if (
|
|
435
|
-
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
433
|
+
function vi(h) {
|
|
434
|
+
if (Oo(h))
|
|
435
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Lo(h)), yi(h);
|
|
436
436
|
}
|
|
437
|
-
var zt = x.ReactCurrentOwner,
|
|
437
|
+
var zt = x.ReactCurrentOwner, jo = {
|
|
438
438
|
key: !0,
|
|
439
439
|
ref: !0,
|
|
440
440
|
__self: !0,
|
|
441
441
|
__source: !0
|
|
442
|
-
},
|
|
442
|
+
}, Pi, xi, Ye;
|
|
443
443
|
Ye = {};
|
|
444
|
-
function
|
|
444
|
+
function Fo(h) {
|
|
445
445
|
if (Gt.call(h, "ref")) {
|
|
446
446
|
var m = Object.getOwnPropertyDescriptor(h, "ref").get;
|
|
447
447
|
if (m && m.isReactWarning)
|
|
@@ -449,7 +449,7 @@ function ha() {
|
|
|
449
449
|
}
|
|
450
450
|
return h.ref !== void 0;
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function _o(h) {
|
|
453
453
|
if (Gt.call(h, "key")) {
|
|
454
454
|
var m = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
455
455
|
if (m && m.isReactWarning)
|
|
@@ -457,16 +457,16 @@ function ha() {
|
|
|
457
457
|
}
|
|
458
458
|
return h.key !== void 0;
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function Bo(h, m) {
|
|
461
461
|
if (typeof h.ref == "string" && zt.current && m && zt.current.stateNode !== m) {
|
|
462
462
|
var T = Z(zt.current.type);
|
|
463
463
|
Ye[T] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Z(zt.current.type), h.ref), Ye[T] = !0);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function Io(h, m) {
|
|
467
467
|
{
|
|
468
468
|
var T = function() {
|
|
469
|
-
|
|
469
|
+
Pi || (Pi = !0, y("%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)", m));
|
|
470
470
|
};
|
|
471
471
|
T.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
472
472
|
get: T,
|
|
@@ -474,10 +474,10 @@ function ha() {
|
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function No(h, m) {
|
|
478
478
|
{
|
|
479
479
|
var T = function() {
|
|
480
|
-
|
|
480
|
+
xi || (xi = !0, y("%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)", m));
|
|
481
481
|
};
|
|
482
482
|
T.isReactWarning = !0, Object.defineProperty(h, "ref", {
|
|
483
483
|
get: T,
|
|
@@ -485,7 +485,7 @@ function ha() {
|
|
|
485
485
|
});
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
var
|
|
488
|
+
var Uo = function(h, m, T, A, D, k, E) {
|
|
489
489
|
var R = {
|
|
490
490
|
// This tag allows us to uniquely identify this as a React Element
|
|
491
491
|
$$typeof: e,
|
|
@@ -514,12 +514,12 @@ function ha() {
|
|
|
514
514
|
value: D
|
|
515
515
|
}), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
|
|
516
516
|
};
|
|
517
|
-
function
|
|
517
|
+
function Wo(h, m, T, A, D) {
|
|
518
518
|
{
|
|
519
519
|
var k, E = {}, R = null, z = null;
|
|
520
|
-
T !== void 0 && (
|
|
520
|
+
T !== void 0 && (vi(T), R = "" + T), _o(m) && (vi(m.key), R = "" + m.key), Fo(m) && (z = m.ref, Bo(m, D));
|
|
521
521
|
for (k in m)
|
|
522
|
-
Gt.call(m, k) && !
|
|
522
|
+
Gt.call(m, k) && !jo.hasOwnProperty(k) && (E[k] = m[k]);
|
|
523
523
|
if (h && h.defaultProps) {
|
|
524
524
|
var _ = h.defaultProps;
|
|
525
525
|
for (k in _)
|
|
@@ -527,25 +527,25 @@ function ha() {
|
|
|
527
527
|
}
|
|
528
528
|
if (R || z) {
|
|
529
529
|
var I = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
|
|
530
|
-
R &&
|
|
530
|
+
R && Io(E, I), z && No(E, I);
|
|
531
531
|
}
|
|
532
|
-
return
|
|
532
|
+
return Uo(h, R, z, D, A, zt.current, E);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
var Xe = x.ReactCurrentOwner,
|
|
535
|
+
var Xe = x.ReactCurrentOwner, Ti = x.ReactDebugCurrentFrame;
|
|
536
536
|
function kt(h) {
|
|
537
537
|
if (h) {
|
|
538
538
|
var m = h._owner, T = ve(h.type, h._source, m ? m.type : null);
|
|
539
|
-
|
|
539
|
+
Ti.setExtraStackFrame(T);
|
|
540
540
|
} else
|
|
541
|
-
|
|
541
|
+
Ti.setExtraStackFrame(null);
|
|
542
542
|
}
|
|
543
543
|
var qe;
|
|
544
544
|
qe = !1;
|
|
545
545
|
function Ze(h) {
|
|
546
546
|
return typeof h == "object" && h !== null && h.$$typeof === e;
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function bi() {
|
|
549
549
|
{
|
|
550
550
|
if (Xe.current) {
|
|
551
551
|
var h = Z(Xe.current.type);
|
|
@@ -557,7 +557,7 @@ Check the render method of \`` + h + "`.";
|
|
|
557
557
|
return "";
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function $o(h) {
|
|
561
561
|
{
|
|
562
562
|
if (h !== void 0) {
|
|
563
563
|
var m = h.fileName.replace(/^.*[\\\/]/, ""), T = h.lineNumber;
|
|
@@ -568,10 +568,10 @@ Check your code at ` + m + ":" + T + ".";
|
|
|
568
568
|
return "";
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
var
|
|
572
|
-
function
|
|
571
|
+
var wi = {};
|
|
572
|
+
function Ko(h) {
|
|
573
573
|
{
|
|
574
|
-
var m =
|
|
574
|
+
var m = bi();
|
|
575
575
|
if (!m) {
|
|
576
576
|
var T = typeof h == "string" ? h : h.displayName || h.name;
|
|
577
577
|
T && (m = `
|
|
@@ -581,27 +581,27 @@ Check the top-level render call using <` + T + ">.");
|
|
|
581
581
|
return m;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function Si(h, m) {
|
|
585
585
|
{
|
|
586
586
|
if (!h._store || h._store.validated || h.key != null)
|
|
587
587
|
return;
|
|
588
588
|
h._store.validated = !0;
|
|
589
|
-
var T =
|
|
590
|
-
if (
|
|
589
|
+
var T = Ko(m);
|
|
590
|
+
if (wi[T])
|
|
591
591
|
return;
|
|
592
|
-
|
|
592
|
+
wi[T] = !0;
|
|
593
593
|
var A = "";
|
|
594
594
|
h && h._owner && h._owner !== Xe.current && (A = " It was passed a child from " + Z(h._owner.type) + "."), kt(h), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, A), kt(null);
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function Ci(h, m) {
|
|
598
598
|
{
|
|
599
599
|
if (typeof h != "object")
|
|
600
600
|
return;
|
|
601
601
|
if (He(h))
|
|
602
602
|
for (var T = 0; T < h.length; T++) {
|
|
603
603
|
var A = h[T];
|
|
604
|
-
Ze(A) &&
|
|
604
|
+
Ze(A) && Si(A, m);
|
|
605
605
|
}
|
|
606
606
|
else if (Ze(h))
|
|
607
607
|
h._store && (h._store.validated = !0);
|
|
@@ -609,11 +609,11 @@ Check the top-level render call using <` + T + ">.");
|
|
|
609
609
|
var D = b(h);
|
|
610
610
|
if (typeof D == "function" && D !== h.entries)
|
|
611
611
|
for (var k = D.call(h), E; !(E = k.next()).done; )
|
|
612
|
-
Ze(E.value) &&
|
|
612
|
+
Ze(E.value) && Si(E.value, m);
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function Go(h) {
|
|
617
617
|
{
|
|
618
618
|
var m = h.type;
|
|
619
619
|
if (m == null || typeof m == "string")
|
|
@@ -629,7 +629,7 @@ Check the top-level render call using <` + T + ">.");
|
|
|
629
629
|
return;
|
|
630
630
|
if (T) {
|
|
631
631
|
var A = Z(m);
|
|
632
|
-
|
|
632
|
+
Mo(T, h.props, "prop", A, h);
|
|
633
633
|
} else if (m.PropTypes !== void 0 && !qe) {
|
|
634
634
|
qe = !0;
|
|
635
635
|
var D = Z(m);
|
|
@@ -638,7 +638,7 @@ Check the top-level render call using <` + T + ">.");
|
|
|
638
638
|
typeof m.getDefaultProps == "function" && !m.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function zo(h) {
|
|
642
642
|
{
|
|
643
643
|
for (var m = Object.keys(h.props), T = 0; T < m.length; T++) {
|
|
644
644
|
var A = m[T];
|
|
@@ -650,19 +650,19 @@ Check the top-level render call using <` + T + ">.");
|
|
|
650
650
|
h.ref !== null && (kt(h), y("Invalid attribute `ref` supplied to `React.Fragment`."), kt(null));
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
|
-
var
|
|
654
|
-
function
|
|
653
|
+
var Ai = {};
|
|
654
|
+
function Ri(h, m, T, A, D, k) {
|
|
655
655
|
{
|
|
656
656
|
var E = H(h);
|
|
657
657
|
if (!E) {
|
|
658
658
|
var R = "";
|
|
659
659
|
(h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
660
|
-
var z =
|
|
661
|
-
z ? R += z : R +=
|
|
660
|
+
var z = $o(D);
|
|
661
|
+
z ? R += z : R += bi();
|
|
662
662
|
var _;
|
|
663
663
|
h === null ? _ = "null" : He(h) ? _ = "array" : h !== void 0 && h.$$typeof === e ? (_ = "<" + (Z(h.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof h, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, R);
|
|
664
664
|
}
|
|
665
|
-
var I =
|
|
665
|
+
var I = Wo(h, m, T, D, k);
|
|
666
666
|
if (I == null)
|
|
667
667
|
return I;
|
|
668
668
|
if (E) {
|
|
@@ -671,45 +671,45 @@ Check the top-level render call using <` + T + ">.");
|
|
|
671
671
|
if (A)
|
|
672
672
|
if (He(Q)) {
|
|
673
673
|
for (var Lt = 0; Lt < Q.length; Lt++)
|
|
674
|
-
|
|
674
|
+
Ci(Q[Lt], h);
|
|
675
675
|
Object.freeze && Object.freeze(Q);
|
|
676
676
|
} else
|
|
677
677
|
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
678
678
|
else
|
|
679
|
-
|
|
679
|
+
Ci(Q, h);
|
|
680
680
|
}
|
|
681
681
|
if (Gt.call(m, "key")) {
|
|
682
|
-
var Tt = Z(h), Y = Object.keys(m).filter(function(
|
|
683
|
-
return
|
|
682
|
+
var Tt = Z(h), Y = Object.keys(m).filter(function(Jo) {
|
|
683
|
+
return Jo !== "key";
|
|
684
684
|
}), Je = Y.length > 0 ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
685
|
-
if (!
|
|
686
|
-
var
|
|
685
|
+
if (!Ai[Tt + Je]) {
|
|
686
|
+
var Zo = Y.length > 0 ? "{" + Y.join(": ..., ") + ": ...}" : "{}";
|
|
687
687
|
y(`A props object containing a "key" prop is being spread into JSX:
|
|
688
688
|
let props = %s;
|
|
689
689
|
<%s {...props} />
|
|
690
690
|
React keys must be passed directly to JSX without using spread:
|
|
691
691
|
let props = %s;
|
|
692
|
-
<%s key={someKey} {...props} />`, Je, Tt,
|
|
692
|
+
<%s key={someKey} {...props} />`, Je, Tt, Zo, Tt), Ai[Tt + Je] = !0;
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
return h === i ?
|
|
695
|
+
return h === i ? zo(I) : Go(I), I;
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
|
-
function
|
|
699
|
-
return
|
|
698
|
+
function Ho(h, m, T) {
|
|
699
|
+
return Ri(h, m, T, !0);
|
|
700
700
|
}
|
|
701
|
-
function
|
|
702
|
-
return
|
|
701
|
+
function Yo(h, m, T) {
|
|
702
|
+
return Ri(h, m, T, !1);
|
|
703
703
|
}
|
|
704
|
-
var
|
|
705
|
-
Yt.Fragment = i, Yt.jsx =
|
|
704
|
+
var Xo = Yo, qo = Ho;
|
|
705
|
+
Yt.Fragment = i, Yt.jsx = Xo, Yt.jsxs = qo;
|
|
706
706
|
}()), Yt;
|
|
707
707
|
}
|
|
708
|
-
process.env.NODE_ENV === "production" ? pn.exports =
|
|
709
|
-
var O = pn.exports,
|
|
710
|
-
class
|
|
708
|
+
process.env.NODE_ENV === "production" ? pn.exports = ua() : pn.exports = fa();
|
|
709
|
+
var O = pn.exports, ha = Object.defineProperty, da = (t, e, n) => e in t ? ha(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, mn = (t, e, n) => (da(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
710
|
+
class Js extends Mn.Component {
|
|
711
711
|
constructor(e) {
|
|
712
|
-
super(e), mn(this, "_el"), mn(this, "renderPortal", () =>
|
|
712
|
+
super(e), mn(this, "_el"), mn(this, "renderPortal", () => sa.createPortal(
|
|
713
713
|
this.props.children,
|
|
714
714
|
this._el
|
|
715
715
|
));
|
|
@@ -720,29 +720,29 @@ class Qs extends Mn.Component {
|
|
|
720
720
|
return this.props;
|
|
721
721
|
}
|
|
722
722
|
componentDidMount() {
|
|
723
|
-
const e =
|
|
723
|
+
const e = this.typeProps.containerSelector();
|
|
724
724
|
e == null || e.appendChild(this._el);
|
|
725
725
|
}
|
|
726
726
|
componentWillUnmount() {
|
|
727
|
-
const e =
|
|
727
|
+
const e = this.typeProps.containerSelector();
|
|
728
728
|
e == null || e.removeChild(this._el);
|
|
729
729
|
}
|
|
730
730
|
render() {
|
|
731
731
|
return this.renderPortal();
|
|
732
732
|
}
|
|
733
733
|
}
|
|
734
|
-
mn(
|
|
735
|
-
|
|
734
|
+
mn(Js, "defaultProps", {
|
|
735
|
+
containerSelector: () => document.body
|
|
736
736
|
});
|
|
737
737
|
const On = Et({
|
|
738
738
|
transformPagePoint: (t) => t,
|
|
739
739
|
isStatic: !1,
|
|
740
740
|
reducedMotion: "never"
|
|
741
|
-
}), je = Et({}), Fe = Et(null), jn = typeof window < "u",
|
|
741
|
+
}), je = Et({}), Fe = Et(null), jn = typeof window < "u", Qs = jn ? Qo : ut, tr = Et({ strict: !1 }), _e = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), pa = "framerAppearId", er = "data-" + _e(pa), ma = {
|
|
742
742
|
skipAnimations: !1,
|
|
743
743
|
useManualTiming: !1
|
|
744
744
|
};
|
|
745
|
-
function
|
|
745
|
+
function ga(t) {
|
|
746
746
|
let e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), i = !1, s = !1;
|
|
747
747
|
const o = /* @__PURE__ */ new WeakSet();
|
|
748
748
|
let r = {
|
|
@@ -793,16 +793,16 @@ const xe = [
|
|
|
793
793
|
// Write
|
|
794
794
|
"postRender"
|
|
795
795
|
// Compute
|
|
796
|
-
],
|
|
797
|
-
function
|
|
796
|
+
], ya = 40;
|
|
797
|
+
function nr(t, e) {
|
|
798
798
|
let n = !1, i = !0;
|
|
799
799
|
const s = {
|
|
800
800
|
delta: 0,
|
|
801
801
|
timestamp: 0,
|
|
802
802
|
isProcessing: !1
|
|
803
|
-
}, o = () => n = !0, r = xe.reduce((x, y) => (x[y] =
|
|
803
|
+
}, o = () => n = !0, r = xe.reduce((x, y) => (x[y] = ga(o), x), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: f, postRender: d } = r, p = () => {
|
|
804
804
|
const x = performance.now();
|
|
805
|
-
n = !1, s.delta = i ? 1e3 / 60 : Math.max(Math.min(x - s.timestamp,
|
|
805
|
+
n = !1, s.delta = i ? 1e3 / 60 : Math.max(Math.min(x - s.timestamp, ya), 1), s.timestamp = x, s.isProcessing = !0, a.process(s), l.process(s), c.process(s), u.process(s), f.process(s), d.process(s), s.isProcessing = !1, n && e && (i = !1, t(p));
|
|
806
806
|
}, g = () => {
|
|
807
807
|
n = !0, i = !0, s.isProcessing || t(p);
|
|
808
808
|
};
|
|
@@ -814,14 +814,14 @@ function ir(t, e) {
|
|
|
814
814
|
r[xe[y]].cancel(x);
|
|
815
815
|
}, state: s, steps: r };
|
|
816
816
|
}
|
|
817
|
-
const { schedule: Fn, cancel: ch } =
|
|
817
|
+
const { schedule: Fn, cancel: ch } = nr(queueMicrotask, !1);
|
|
818
818
|
function jt(t) {
|
|
819
819
|
return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
|
|
820
820
|
}
|
|
821
|
-
const
|
|
822
|
-
let
|
|
823
|
-
function
|
|
824
|
-
const { visualElement: o } = U(je), r = U(
|
|
821
|
+
const ir = Et({});
|
|
822
|
+
let Di = !1;
|
|
823
|
+
function va(t, e, n, i, s) {
|
|
824
|
+
const { visualElement: o } = U(je), r = U(tr), a = U(Fe), l = U(On).reducedMotion, c = nt();
|
|
825
825
|
i = i || r.renderer, !c.current && i && (c.current = i(t, {
|
|
826
826
|
visualState: e,
|
|
827
827
|
parent: o,
|
|
@@ -830,23 +830,23 @@ function Pa(t, e, n, i, s) {
|
|
|
830
830
|
blockInitialAnimation: a ? a.initial === !1 : !1,
|
|
831
831
|
reducedMotionConfig: l
|
|
832
832
|
}));
|
|
833
|
-
const u = c.current, f = U(
|
|
834
|
-
u && !u.projection && s && (u.type === "html" || u.type === "svg") &&
|
|
833
|
+
const u = c.current, f = U(ir);
|
|
834
|
+
u && !u.projection && s && (u.type === "html" || u.type === "svg") && xa(c.current, n, s, f), qs(() => {
|
|
835
835
|
u && u.update(n, a);
|
|
836
836
|
});
|
|
837
|
-
const d = nt(!!(n[
|
|
838
|
-
return
|
|
837
|
+
const d = nt(!!(n[er] && !window.HandoffComplete));
|
|
838
|
+
return Qs(() => {
|
|
839
839
|
u && (u.updateFeatures(), Fn.render(u.render), d.current && u.animationState && u.animationState.animateChanges());
|
|
840
840
|
}), ut(() => {
|
|
841
|
-
u && (!d.current && u.animationState && u.animationState.animateChanges(), d.current && (d.current = !1,
|
|
841
|
+
u && (!d.current && u.animationState && u.animationState.animateChanges(), d.current && (d.current = !1, Di || (Di = !0, queueMicrotask(Pa))));
|
|
842
842
|
}), u;
|
|
843
843
|
}
|
|
844
|
-
function
|
|
844
|
+
function Pa() {
|
|
845
845
|
window.HandoffComplete = !0;
|
|
846
846
|
}
|
|
847
|
-
function
|
|
847
|
+
function xa(t, e, n, i) {
|
|
848
848
|
const { layoutId: s, layout: o, drag: r, dragConstraints: a, layoutScroll: l, layoutRoot: c } = e;
|
|
849
|
-
t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 :
|
|
849
|
+
t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : sr(t.parent)), t.projection.setOptions({
|
|
850
850
|
layoutId: s,
|
|
851
851
|
layout: o,
|
|
852
852
|
alwaysMeasureLayout: !!r || a && jt(a),
|
|
@@ -864,11 +864,11 @@ function Ta(t, e, n, i) {
|
|
|
864
864
|
layoutRoot: c
|
|
865
865
|
});
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function sr(t) {
|
|
868
868
|
if (t)
|
|
869
|
-
return t.options.allowProjection !== !1 ? t.projection :
|
|
869
|
+
return t.options.allowProjection !== !1 ? t.projection : sr(t.parent);
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function Ta(t, e, n) {
|
|
872
872
|
return mt(
|
|
873
873
|
(i) => {
|
|
874
874
|
i && t.mount && t.mount(i), e && (i ? e.mount(i) : e.unmount()), n && (typeof n == "function" ? n(i) : jt(n) && (n.current = i));
|
|
@@ -899,10 +899,10 @@ const _n = [
|
|
|
899
899
|
function Be(t) {
|
|
900
900
|
return re(t.animate) || Bn.some((e) => se(t[e]));
|
|
901
901
|
}
|
|
902
|
-
function
|
|
902
|
+
function rr(t) {
|
|
903
903
|
return !!(Be(t) || t.variants);
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function ba(t, e) {
|
|
906
906
|
if (Be(t)) {
|
|
907
907
|
const { initial: n, animate: i } = t;
|
|
908
908
|
return {
|
|
@@ -912,14 +912,14 @@ function wa(t, e) {
|
|
|
912
912
|
}
|
|
913
913
|
return t.inherit !== !1 ? e : {};
|
|
914
914
|
}
|
|
915
|
-
function
|
|
916
|
-
const { initial: e, animate: n } =
|
|
917
|
-
return Vt(() => ({ initial: e, animate: n }), [
|
|
915
|
+
function wa(t) {
|
|
916
|
+
const { initial: e, animate: n } = ba(t, U(je));
|
|
917
|
+
return Vt(() => ({ initial: e, animate: n }), [Mi(e), Mi(n)]);
|
|
918
918
|
}
|
|
919
|
-
function
|
|
919
|
+
function Mi(t) {
|
|
920
920
|
return Array.isArray(t) ? t.join(" ") : t;
|
|
921
921
|
}
|
|
922
|
-
const
|
|
922
|
+
const ki = {
|
|
923
923
|
animation: [
|
|
924
924
|
"animate",
|
|
925
925
|
"variants",
|
|
@@ -939,18 +939,18 @@ const Li = {
|
|
|
939
939
|
inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
|
|
940
940
|
layout: ["layout", "layoutId"]
|
|
941
941
|
}, Nt = {};
|
|
942
|
-
for (const t in
|
|
942
|
+
for (const t in ki)
|
|
943
943
|
Nt[t] = {
|
|
944
|
-
isEnabled: (e) =>
|
|
944
|
+
isEnabled: (e) => ki[t].some((n) => !!e[n])
|
|
945
945
|
};
|
|
946
|
-
function
|
|
946
|
+
function Sa(t) {
|
|
947
947
|
for (const e in t)
|
|
948
948
|
Nt[e] = {
|
|
949
949
|
...Nt[e],
|
|
950
950
|
...t[e]
|
|
951
951
|
};
|
|
952
952
|
}
|
|
953
|
-
const In = Et({}),
|
|
953
|
+
const In = Et({}), Ca = Symbol.for("motionComponentSymbol"), W = (t) => t;
|
|
954
954
|
let Wt = W, ft = W;
|
|
955
955
|
process.env.NODE_ENV !== "production" && (Wt = (t, e) => {
|
|
956
956
|
!t && typeof console < "u" && console.warn(e);
|
|
@@ -958,37 +958,37 @@ process.env.NODE_ENV !== "production" && (Wt = (t, e) => {
|
|
|
958
958
|
if (!t)
|
|
959
959
|
throw new Error(e);
|
|
960
960
|
});
|
|
961
|
-
function
|
|
962
|
-
t &&
|
|
961
|
+
function Aa({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: i, Component: s }) {
|
|
962
|
+
t && Sa(t);
|
|
963
963
|
function o(a, l) {
|
|
964
964
|
let c;
|
|
965
965
|
const u = {
|
|
966
966
|
...U(On),
|
|
967
967
|
...a,
|
|
968
|
-
layoutId:
|
|
969
|
-
}, { isStatic: f } = u, d =
|
|
968
|
+
layoutId: Ra(a)
|
|
969
|
+
}, { isStatic: f } = u, d = wa(a), p = i(a, f);
|
|
970
970
|
if (!f && jn) {
|
|
971
|
-
|
|
972
|
-
const g =
|
|
973
|
-
c = g.MeasureLayout, d.visualElement =
|
|
971
|
+
Va(u, t);
|
|
972
|
+
const g = Ea(u);
|
|
973
|
+
c = g.MeasureLayout, d.visualElement = va(s, p, u, e, g.ProjectionNode);
|
|
974
974
|
}
|
|
975
|
-
return O.jsxs(je.Provider, { value: d, children: [c && d.visualElement ? O.jsx(c, { visualElement: d.visualElement, ...u }) : null, n(s, a,
|
|
975
|
+
return O.jsxs(je.Provider, { value: d, children: [c && d.visualElement ? O.jsx(c, { visualElement: d.visualElement, ...u }) : null, n(s, a, Ta(p, d.visualElement, l), p, f, d.visualElement)] });
|
|
976
976
|
}
|
|
977
977
|
const r = Ve(o);
|
|
978
|
-
return r[
|
|
978
|
+
return r[Ca] = s, r;
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function Ra({ layoutId: t }) {
|
|
981
981
|
const e = U(In).id;
|
|
982
982
|
return e && t !== void 0 ? e + "-" + t : t;
|
|
983
983
|
}
|
|
984
|
-
function
|
|
985
|
-
const n = U(
|
|
984
|
+
function Va(t, e) {
|
|
985
|
+
const n = U(tr).strict;
|
|
986
986
|
if (process.env.NODE_ENV !== "production" && e && n) {
|
|
987
987
|
const i = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
988
988
|
t.ignoreStrict ? Wt(!1, i) : ft(!1, i);
|
|
989
989
|
}
|
|
990
990
|
}
|
|
991
|
-
function
|
|
991
|
+
function Ea(t) {
|
|
992
992
|
const { drag: e, layout: n } = Nt;
|
|
993
993
|
if (!e && !n)
|
|
994
994
|
return {};
|
|
@@ -998,9 +998,9 @@ function Da(t) {
|
|
|
998
998
|
ProjectionNode: i.ProjectionNode
|
|
999
999
|
};
|
|
1000
1000
|
}
|
|
1001
|
-
function
|
|
1001
|
+
function Da(t) {
|
|
1002
1002
|
function e(i, s = {}) {
|
|
1003
|
-
return
|
|
1003
|
+
return Aa(t(i, s));
|
|
1004
1004
|
}
|
|
1005
1005
|
if (typeof Proxy > "u")
|
|
1006
1006
|
return e;
|
|
@@ -1014,7 +1014,7 @@ function Ma(t) {
|
|
|
1014
1014
|
get: (i, s) => (n.has(s) || n.set(s, e(s)), n.get(s))
|
|
1015
1015
|
});
|
|
1016
1016
|
}
|
|
1017
|
-
const
|
|
1017
|
+
const Ma = [
|
|
1018
1018
|
"animate",
|
|
1019
1019
|
"circle",
|
|
1020
1020
|
"defs",
|
|
@@ -1054,7 +1054,7 @@ function Nn(t) {
|
|
|
1054
1054
|
/**
|
|
1055
1055
|
* If it's in our list of lowercase SVG tags, it's an SVG component
|
|
1056
1056
|
*/
|
|
1057
|
-
!!(
|
|
1057
|
+
!!(Ma.indexOf(t) > -1 || /**
|
|
1058
1058
|
* If it contains a capital letter, it's an SVG component
|
|
1059
1059
|
*/
|
|
1060
1060
|
/[A-Z]/u.test(t))
|
|
@@ -1062,7 +1062,7 @@ function Nn(t) {
|
|
|
1062
1062
|
);
|
|
1063
1063
|
}
|
|
1064
1064
|
const Ee = {};
|
|
1065
|
-
function
|
|
1065
|
+
function ka(t) {
|
|
1066
1066
|
Object.assign(Ee, t);
|
|
1067
1067
|
}
|
|
1068
1068
|
const he = [
|
|
@@ -1084,10 +1084,27 @@ const he = [
|
|
|
1084
1084
|
"skewX",
|
|
1085
1085
|
"skewY"
|
|
1086
1086
|
], Pt = new Set(he);
|
|
1087
|
-
function
|
|
1087
|
+
function or(t, { layout: e, layoutId: n }) {
|
|
1088
1088
|
return Pt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!Ee[t] || t === "opacity");
|
|
1089
1089
|
}
|
|
1090
|
-
const K = (t) => !!(t && t.getVelocity),
|
|
1090
|
+
const K = (t) => !!(t && t.getVelocity), La = {
|
|
1091
|
+
x: "translateX",
|
|
1092
|
+
y: "translateY",
|
|
1093
|
+
z: "translateZ",
|
|
1094
|
+
transformPerspective: "perspective"
|
|
1095
|
+
}, Oa = he.length;
|
|
1096
|
+
function ja(t, e, n) {
|
|
1097
|
+
let i = "";
|
|
1098
|
+
for (let s = 0; s < Oa; s++) {
|
|
1099
|
+
const o = he[s];
|
|
1100
|
+
if (t[o] !== void 0) {
|
|
1101
|
+
const r = La[o] || o;
|
|
1102
|
+
i += `${r}(${t[o]}) `;
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
return i = i.trim(), n ? i = n(t, e ? "" : i) : e && (i = "none"), i;
|
|
1106
|
+
}
|
|
1107
|
+
const ar = (t) => (e) => typeof e == "string" && e.startsWith(t), lr = ar("--"), Fa = ar("var(--"), Un = (t) => Fa(t) ? _a.test(t.split("/*")[0].trim()) : !1, _a = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Ba = (t, e) => e && typeof t == "number" ? e.transform(t) : t, yt = (t, e, n) => n > e ? e : n < t ? t : n, $t = {
|
|
1091
1108
|
test: (t) => typeof t == "number",
|
|
1092
1109
|
parse: parseFloat,
|
|
1093
1110
|
transform: (t) => t
|
|
@@ -1097,25 +1114,25 @@ const K = (t) => !!(t && t.getVelocity), lr = (t, e) => e && typeof t == "number
|
|
|
1097
1114
|
}, Te = {
|
|
1098
1115
|
...$t,
|
|
1099
1116
|
default: 1
|
|
1100
|
-
}, te = (t) => Math.round(t * 1e5) / 1e5,
|
|
1117
|
+
}, te = (t) => Math.round(t * 1e5) / 1e5, Wn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu, Ia = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, Na = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
|
|
1101
1118
|
function de(t) {
|
|
1102
1119
|
return typeof t == "string";
|
|
1103
1120
|
}
|
|
1104
|
-
function
|
|
1121
|
+
function Ua(t) {
|
|
1105
1122
|
return t == null;
|
|
1106
1123
|
}
|
|
1107
1124
|
const pe = (t) => ({
|
|
1108
1125
|
test: (e) => de(e) && e.endsWith(t) && e.split(" ").length === 1,
|
|
1109
1126
|
parse: parseFloat,
|
|
1110
1127
|
transform: (e) => `${e}${t}`
|
|
1111
|
-
}), pt = pe("deg"), st = pe("%"), S = pe("px"),
|
|
1128
|
+
}), pt = pe("deg"), st = pe("%"), S = pe("px"), Wa = pe("vh"), $a = pe("vw"), Li = {
|
|
1112
1129
|
...st,
|
|
1113
1130
|
parse: (t) => st.parse(t) / 100,
|
|
1114
1131
|
transform: (t) => st.transform(t * 100)
|
|
1115
|
-
},
|
|
1132
|
+
}, Oi = {
|
|
1116
1133
|
...$t,
|
|
1117
1134
|
transform: Math.round
|
|
1118
|
-
},
|
|
1135
|
+
}, cr = {
|
|
1119
1136
|
// Border props
|
|
1120
1137
|
borderWidth: S,
|
|
1121
1138
|
borderTopWidth: S,
|
|
@@ -1171,83 +1188,59 @@ const pe = (t) => ({
|
|
|
1171
1188
|
perspective: S,
|
|
1172
1189
|
transformPerspective: S,
|
|
1173
1190
|
opacity: Qt,
|
|
1174
|
-
originX:
|
|
1175
|
-
originY:
|
|
1191
|
+
originX: Li,
|
|
1192
|
+
originY: Li,
|
|
1176
1193
|
originZ: S,
|
|
1177
1194
|
// Misc
|
|
1178
|
-
zIndex:
|
|
1195
|
+
zIndex: Oi,
|
|
1179
1196
|
backgroundPositionX: S,
|
|
1180
1197
|
backgroundPositionY: S,
|
|
1181
1198
|
// SVG
|
|
1182
1199
|
fillOpacity: Qt,
|
|
1183
1200
|
strokeOpacity: Qt,
|
|
1184
|
-
numOctaves:
|
|
1185
|
-
}
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
for (let o = 0; o < Na; o++) {
|
|
1194
|
-
const r = he[o], a = t[r];
|
|
1195
|
-
if (a === void 0)
|
|
1196
|
-
continue;
|
|
1197
|
-
let l = !0;
|
|
1198
|
-
if (typeof a == "number" ? l = a === (r.startsWith("scale") ? 1 : 0) : l = parseFloat(a) === 0, !l || n) {
|
|
1199
|
-
const c = lr(a, Wn[r]);
|
|
1200
|
-
if (!l) {
|
|
1201
|
-
s = !1;
|
|
1202
|
-
const u = Ia[r] || r;
|
|
1203
|
-
i += `${u}(${c}) `;
|
|
1204
|
-
}
|
|
1205
|
-
n && (e[r] = c);
|
|
1206
|
-
}
|
|
1207
|
-
}
|
|
1208
|
-
return i = i.trim(), n ? i = n(e, s ? "" : i) : s && (i = "none"), i;
|
|
1209
|
-
}
|
|
1210
|
-
const cr = (t) => (e) => typeof e == "string" && e.startsWith(t), ur = cr("--"), Wa = cr("var(--"), $n = (t) => Wa(t) ? $a.test(t.split("/*")[0].trim()) : !1, $a = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
|
|
1211
|
-
function Kn(t, e, n) {
|
|
1212
|
-
const { style: i, vars: s, transformOrigin: o } = t;
|
|
1213
|
-
let r = !1, a = !1;
|
|
1214
|
-
for (const l in e) {
|
|
1215
|
-
const c = e[l];
|
|
1216
|
-
if (Pt.has(l)) {
|
|
1217
|
-
r = !0;
|
|
1218
|
-
continue;
|
|
1219
|
-
} else if (ur(l)) {
|
|
1220
|
-
s[l] = c;
|
|
1201
|
+
numOctaves: Oi
|
|
1202
|
+
};
|
|
1203
|
+
function $n(t, e, n) {
|
|
1204
|
+
const { style: i, vars: s, transform: o, transformOrigin: r } = t;
|
|
1205
|
+
let a = !1, l = !1, c = !0;
|
|
1206
|
+
for (const u in e) {
|
|
1207
|
+
const f = e[u];
|
|
1208
|
+
if (lr(u)) {
|
|
1209
|
+
s[u] = f;
|
|
1221
1210
|
continue;
|
|
1222
|
-
} else {
|
|
1223
|
-
const u = lr(c, Wn[l]);
|
|
1224
|
-
l.startsWith("origin") ? (a = !0, o[l] = u) : i[l] = u;
|
|
1225
1211
|
}
|
|
1212
|
+
const d = cr[u], p = Ba(f, d);
|
|
1213
|
+
if (Pt.has(u)) {
|
|
1214
|
+
if (a = !0, o[u] = p, !c)
|
|
1215
|
+
continue;
|
|
1216
|
+
f !== (d.default || 0) && (c = !1);
|
|
1217
|
+
} else
|
|
1218
|
+
u.startsWith("origin") ? (l = !0, r[u] = p) : i[u] = p;
|
|
1226
1219
|
}
|
|
1227
|
-
if (e.transform || (
|
|
1228
|
-
const { originX:
|
|
1229
|
-
i.transformOrigin = `${
|
|
1220
|
+
if (e.transform || (a || n ? i.transform = ja(t.transform, c, n) : i.transform && (i.transform = "none")), l) {
|
|
1221
|
+
const { originX: u = "50%", originY: f = "50%", originZ: d = 0 } = r;
|
|
1222
|
+
i.transformOrigin = `${u} ${f} ${d}`;
|
|
1230
1223
|
}
|
|
1231
1224
|
}
|
|
1232
|
-
const
|
|
1225
|
+
const Kn = () => ({
|
|
1233
1226
|
style: {},
|
|
1234
1227
|
transform: {},
|
|
1235
1228
|
transformOrigin: {},
|
|
1236
1229
|
vars: {}
|
|
1237
1230
|
});
|
|
1238
|
-
function
|
|
1231
|
+
function ur(t, e, n) {
|
|
1239
1232
|
for (const i in e)
|
|
1240
|
-
!K(e[i]) && !
|
|
1233
|
+
!K(e[i]) && !or(i, n) && (t[i] = e[i]);
|
|
1241
1234
|
}
|
|
1242
1235
|
function Ka({ transformTemplate: t }, e) {
|
|
1243
1236
|
return Vt(() => {
|
|
1244
|
-
const n =
|
|
1245
|
-
return
|
|
1237
|
+
const n = Kn();
|
|
1238
|
+
return $n(n, e, t), Object.assign({}, n.vars, n.style);
|
|
1246
1239
|
}, [e]);
|
|
1247
1240
|
}
|
|
1248
1241
|
function Ga(t, e) {
|
|
1249
1242
|
const n = t.style || {}, i = {};
|
|
1250
|
-
return
|
|
1243
|
+
return ur(i, n, t), Object.assign(i, Ka(t, e)), i;
|
|
1251
1244
|
}
|
|
1252
1245
|
function za(t, e) {
|
|
1253
1246
|
const n = {}, i = Ga(t, e);
|
|
@@ -1288,9 +1281,9 @@ const Ha = /* @__PURE__ */ new Set([
|
|
|
1288
1281
|
function De(t) {
|
|
1289
1282
|
return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || Ha.has(t);
|
|
1290
1283
|
}
|
|
1291
|
-
let
|
|
1284
|
+
let fr = (t) => !De(t);
|
|
1292
1285
|
function Ya(t) {
|
|
1293
|
-
t && (
|
|
1286
|
+
t && (fr = (e) => e.startsWith("on") ? !De(e) : t(e));
|
|
1294
1287
|
}
|
|
1295
1288
|
try {
|
|
1296
1289
|
Ya(require("@emotion/is-prop-valid").default);
|
|
@@ -1299,15 +1292,15 @@ try {
|
|
|
1299
1292
|
function Xa(t, e, n) {
|
|
1300
1293
|
const i = {};
|
|
1301
1294
|
for (const s in t)
|
|
1302
|
-
s === "values" && typeof t.values == "object" || (
|
|
1295
|
+
s === "values" && typeof t.values == "object" || (fr(s) || n === !0 && De(s) || !e && !De(s) || // If trying to use native HTML drag events, forward drag listeners
|
|
1303
1296
|
t.draggable && s.startsWith("onDrag")) && (i[s] = t[s]);
|
|
1304
1297
|
return i;
|
|
1305
1298
|
}
|
|
1306
|
-
function
|
|
1299
|
+
function ji(t, e, n) {
|
|
1307
1300
|
return typeof t == "string" ? t : S.transform(e + n * t);
|
|
1308
1301
|
}
|
|
1309
1302
|
function qa(t, e, n) {
|
|
1310
|
-
const i =
|
|
1303
|
+
const i = ji(e, t.x, t.width), s = ji(n, t.y, t.height);
|
|
1311
1304
|
return `${i} ${s}`;
|
|
1312
1305
|
}
|
|
1313
1306
|
const Za = {
|
|
@@ -1324,7 +1317,7 @@ function Qa(t, e, n = 1, i = 0, s = !0) {
|
|
|
1324
1317
|
const r = S.transform(e), a = S.transform(n);
|
|
1325
1318
|
t[o.array] = `${r} ${a}`;
|
|
1326
1319
|
}
|
|
1327
|
-
function
|
|
1320
|
+
function Gn(t, {
|
|
1328
1321
|
attrX: e,
|
|
1329
1322
|
attrY: n,
|
|
1330
1323
|
attrScale: i,
|
|
@@ -1336,7 +1329,7 @@ function zn(t, {
|
|
|
1336
1329
|
// This is object creation, which we try to avoid per-frame.
|
|
1337
1330
|
...c
|
|
1338
1331
|
}, u, f) {
|
|
1339
|
-
if (
|
|
1332
|
+
if ($n(t, c, f), u) {
|
|
1340
1333
|
t.style.viewBox && (t.attrs.viewBox = t.style.viewBox);
|
|
1341
1334
|
return;
|
|
1342
1335
|
}
|
|
@@ -1344,39 +1337,39 @@ function zn(t, {
|
|
|
1344
1337
|
const { attrs: d, style: p, dimensions: g } = t;
|
|
1345
1338
|
d.transform && (g && (p.transform = d.transform), delete d.transform), g && (s !== void 0 || o !== void 0 || p.transform) && (p.transformOrigin = qa(g, s !== void 0 ? s : 0.5, o !== void 0 ? o : 0.5)), e !== void 0 && (d.x = e), n !== void 0 && (d.y = n), i !== void 0 && (d.scale = i), r !== void 0 && Qa(d, r, a, l, !1);
|
|
1346
1339
|
}
|
|
1347
|
-
const
|
|
1348
|
-
...
|
|
1340
|
+
const hr = () => ({
|
|
1341
|
+
...Kn(),
|
|
1349
1342
|
attrs: {}
|
|
1350
|
-
}),
|
|
1343
|
+
}), zn = (t) => typeof t == "string" && t.toLowerCase() === "svg";
|
|
1351
1344
|
function tl(t, e, n, i) {
|
|
1352
1345
|
const s = Vt(() => {
|
|
1353
|
-
const o =
|
|
1354
|
-
return
|
|
1346
|
+
const o = hr();
|
|
1347
|
+
return Gn(o, e, zn(i), t.transformTemplate), {
|
|
1355
1348
|
...o.attrs,
|
|
1356
1349
|
style: { ...o.style }
|
|
1357
1350
|
};
|
|
1358
1351
|
}, [e]);
|
|
1359
1352
|
if (t.style) {
|
|
1360
1353
|
const o = {};
|
|
1361
|
-
|
|
1354
|
+
ur(o, t.style, t), s.style = { ...o, ...s.style };
|
|
1362
1355
|
}
|
|
1363
1356
|
return s;
|
|
1364
1357
|
}
|
|
1365
1358
|
function el(t = !1) {
|
|
1366
1359
|
return (n, i, s, { latestValues: o }, r) => {
|
|
1367
|
-
const l = (Nn(n) ? tl : za)(i, o, r, n), c = Xa(i, typeof n == "string", t), u = n !==
|
|
1368
|
-
return
|
|
1360
|
+
const l = (Nn(n) ? tl : za)(i, o, r, n), c = Xa(i, typeof n == "string", t), u = n !== Zs ? { ...c, ...l, ref: s } : {}, { children: f } = i, d = Vt(() => K(f) ? f.get() : f, [f]);
|
|
1361
|
+
return ta(n, {
|
|
1369
1362
|
...u,
|
|
1370
1363
|
children: d
|
|
1371
1364
|
});
|
|
1372
1365
|
};
|
|
1373
1366
|
}
|
|
1374
|
-
function
|
|
1367
|
+
function dr(t, { style: e, vars: n }, i, s) {
|
|
1375
1368
|
Object.assign(t.style, e, s && s.getProjectionStyles(i));
|
|
1376
1369
|
for (const o in n)
|
|
1377
1370
|
t.style.setProperty(o, n[o]);
|
|
1378
1371
|
}
|
|
1379
|
-
const
|
|
1372
|
+
const pr = /* @__PURE__ */ new Set([
|
|
1380
1373
|
"baseFrequency",
|
|
1381
1374
|
"diffuseConstant",
|
|
1382
1375
|
"kernelMatrix",
|
|
@@ -1401,20 +1394,20 @@ const mr = /* @__PURE__ */ new Set([
|
|
|
1401
1394
|
"textLength",
|
|
1402
1395
|
"lengthAdjust"
|
|
1403
1396
|
]);
|
|
1404
|
-
function
|
|
1405
|
-
|
|
1397
|
+
function mr(t, e, n, i) {
|
|
1398
|
+
dr(t, e, void 0, i);
|
|
1406
1399
|
for (const s in e.attrs)
|
|
1407
|
-
t.setAttribute(
|
|
1400
|
+
t.setAttribute(pr.has(s) ? s : _e(s), e.attrs[s]);
|
|
1408
1401
|
}
|
|
1409
|
-
function
|
|
1402
|
+
function Hn(t, e, n) {
|
|
1410
1403
|
var i;
|
|
1411
1404
|
const { style: s } = t, o = {};
|
|
1412
1405
|
for (const r in s)
|
|
1413
|
-
(K(s[r]) || e.style && K(e.style[r]) ||
|
|
1406
|
+
(K(s[r]) || e.style && K(e.style[r]) || or(r, t) || ((i = n == null ? void 0 : n.getValue(r)) === null || i === void 0 ? void 0 : i.liveStyle) !== void 0) && (o[r] = s[r]);
|
|
1414
1407
|
return n && s && typeof s.willChange == "string" && (n.applyWillChange = !1), o;
|
|
1415
1408
|
}
|
|
1416
|
-
function
|
|
1417
|
-
const i =
|
|
1409
|
+
function gr(t, e, n) {
|
|
1410
|
+
const i = Hn(t, e, n);
|
|
1418
1411
|
for (const s in t)
|
|
1419
1412
|
if (K(t[s]) || K(e[s])) {
|
|
1420
1413
|
const o = he.indexOf(s) !== -1 ? "attr" + s.charAt(0).toUpperCase() + s.substring(1) : s;
|
|
@@ -1422,24 +1415,24 @@ function yr(t, e, n) {
|
|
|
1422
1415
|
}
|
|
1423
1416
|
return i;
|
|
1424
1417
|
}
|
|
1425
|
-
function
|
|
1418
|
+
function Fi(t) {
|
|
1426
1419
|
const e = [{}, {}];
|
|
1427
1420
|
return t == null || t.values.forEach((n, i) => {
|
|
1428
1421
|
e[0][i] = n.get(), e[1][i] = n.getVelocity();
|
|
1429
1422
|
}), e;
|
|
1430
1423
|
}
|
|
1431
|
-
function
|
|
1424
|
+
function Yn(t, e, n, i) {
|
|
1432
1425
|
if (typeof e == "function") {
|
|
1433
|
-
const [s, o] =
|
|
1426
|
+
const [s, o] = Fi(i);
|
|
1434
1427
|
e = e(n !== void 0 ? n : t.custom, s, o);
|
|
1435
1428
|
}
|
|
1436
1429
|
if (typeof e == "string" && (e = t.variants && t.variants[e]), typeof e == "function") {
|
|
1437
|
-
const [s, o] =
|
|
1430
|
+
const [s, o] = Fi(i);
|
|
1438
1431
|
e = e(n !== void 0 ? n : t.custom, s, o);
|
|
1439
1432
|
}
|
|
1440
1433
|
return e;
|
|
1441
1434
|
}
|
|
1442
|
-
function
|
|
1435
|
+
function Xn(t) {
|
|
1443
1436
|
const e = nt(null);
|
|
1444
1437
|
return e.current === null && (e.current = t()), e.current;
|
|
1445
1438
|
}
|
|
@@ -1448,7 +1441,7 @@ function Se(t) {
|
|
|
1448
1441
|
const e = K(t) ? t.get() : t;
|
|
1449
1442
|
return nl(e) ? e.toValue() : e;
|
|
1450
1443
|
}
|
|
1451
|
-
const
|
|
1444
|
+
const yr = /* @__PURE__ */ new Set([
|
|
1452
1445
|
"opacity",
|
|
1453
1446
|
"clipPath",
|
|
1454
1447
|
"filter",
|
|
@@ -1457,10 +1450,10 @@ const vr = /* @__PURE__ */ new Set([
|
|
|
1457
1450
|
// or until we implement support for linear() easing.
|
|
1458
1451
|
// "background-color"
|
|
1459
1452
|
]);
|
|
1460
|
-
function
|
|
1453
|
+
function vr(t) {
|
|
1461
1454
|
if (Pt.has(t))
|
|
1462
1455
|
return "transform";
|
|
1463
|
-
if (
|
|
1456
|
+
if (yr.has(t))
|
|
1464
1457
|
return _e(t);
|
|
1465
1458
|
}
|
|
1466
1459
|
function Ie(t, e) {
|
|
@@ -1477,18 +1470,18 @@ function sl({ applyWillChange: t = !1, scrapeMotionValuesFromProps: e, createRen
|
|
|
1477
1470
|
};
|
|
1478
1471
|
return i && (l.mount = (c) => i(s, c, l)), l;
|
|
1479
1472
|
}
|
|
1480
|
-
const
|
|
1473
|
+
const Pr = (t) => (e, n) => {
|
|
1481
1474
|
const i = U(je), s = U(Fe), o = () => sl(t, e, i, s, n);
|
|
1482
|
-
return n ? o() :
|
|
1475
|
+
return n ? o() : Xn(o);
|
|
1483
1476
|
};
|
|
1484
1477
|
function rl(t, e) {
|
|
1485
|
-
const n =
|
|
1478
|
+
const n = vr(e);
|
|
1486
1479
|
n && Ie(t, n);
|
|
1487
1480
|
}
|
|
1488
|
-
function
|
|
1481
|
+
function _i(t, e, n) {
|
|
1489
1482
|
const i = Array.isArray(e) ? e : [e];
|
|
1490
1483
|
for (let s = 0; s < i.length; s++) {
|
|
1491
|
-
const o =
|
|
1484
|
+
const o = Yn(t, i[s]);
|
|
1492
1485
|
if (o) {
|
|
1493
1486
|
const { transitionEnd: r, transition: a, ...l } = o;
|
|
1494
1487
|
n(l, r);
|
|
@@ -1501,12 +1494,12 @@ function ol(t, e, n, i, s) {
|
|
|
1501
1494
|
for (const b in c)
|
|
1502
1495
|
r[b] = Se(c[b]);
|
|
1503
1496
|
let { initial: u, animate: f } = t;
|
|
1504
|
-
const d = Be(t), p =
|
|
1497
|
+
const d = Be(t), p = rr(t);
|
|
1505
1498
|
e && p && !d && t.inherit !== !1 && (u === void 0 && (u = e.initial), f === void 0 && (f = e.animate));
|
|
1506
1499
|
let g = n ? n.initial === !1 : !1;
|
|
1507
1500
|
g = g || u === !1;
|
|
1508
1501
|
const P = g ? f : u;
|
|
1509
|
-
return P && typeof P != "boolean" && !re(P) &&
|
|
1502
|
+
return P && typeof P != "boolean" && !re(P) && _i(t, P, (b, x) => {
|
|
1510
1503
|
for (const y in b) {
|
|
1511
1504
|
let v = b[y];
|
|
1512
1505
|
if (Array.isArray(v)) {
|
|
@@ -1517,15 +1510,15 @@ function ol(t, e, n, i, s) {
|
|
|
1517
1510
|
}
|
|
1518
1511
|
for (const y in x)
|
|
1519
1512
|
r[y] = x[y];
|
|
1520
|
-
}), l && (f && u !== !1 && !re(f) &&
|
|
1513
|
+
}), l && (f && u !== !1 && !re(f) && _i(t, f, (b) => {
|
|
1521
1514
|
for (const x in b)
|
|
1522
1515
|
rl(a, x);
|
|
1523
1516
|
}), a.length && (r.willChange = a.join(","))), r;
|
|
1524
1517
|
}
|
|
1525
|
-
const { schedule: M, cancel: ht, state: N, steps: Qe } =
|
|
1526
|
-
useVisualState:
|
|
1527
|
-
scrapeMotionValuesFromProps:
|
|
1528
|
-
createRenderState:
|
|
1518
|
+
const { schedule: M, cancel: ht, state: N, steps: Qe } = nr(typeof requestAnimationFrame < "u" ? requestAnimationFrame : W, !0), al = {
|
|
1519
|
+
useVisualState: Pr({
|
|
1520
|
+
scrapeMotionValuesFromProps: gr,
|
|
1521
|
+
createRenderState: hr,
|
|
1529
1522
|
onMount: (t, e, { renderState: n, latestValues: i }) => {
|
|
1530
1523
|
M.read(() => {
|
|
1531
1524
|
try {
|
|
@@ -1539,15 +1532,15 @@ const { schedule: M, cancel: ht, state: N, steps: Qe } = ir(typeof requestAnimat
|
|
|
1539
1532
|
};
|
|
1540
1533
|
}
|
|
1541
1534
|
}), M.render(() => {
|
|
1542
|
-
|
|
1535
|
+
Gn(n, i, zn(e.tagName), t.transformTemplate), mr(e, n);
|
|
1543
1536
|
});
|
|
1544
1537
|
}
|
|
1545
1538
|
})
|
|
1546
1539
|
}, ll = {
|
|
1547
|
-
useVisualState:
|
|
1540
|
+
useVisualState: Pr({
|
|
1548
1541
|
applyWillChange: !0,
|
|
1549
|
-
scrapeMotionValuesFromProps:
|
|
1550
|
-
createRenderState:
|
|
1542
|
+
scrapeMotionValuesFromProps: Hn,
|
|
1543
|
+
createRenderState: Kn
|
|
1551
1544
|
})
|
|
1552
1545
|
};
|
|
1553
1546
|
function cl(t, { forwardMotionProps: e = !1 }, n, i) {
|
|
@@ -1562,7 +1555,7 @@ function cl(t, { forwardMotionProps: e = !1 }, n, i) {
|
|
|
1562
1555
|
function rt(t, e, n, i = { passive: !0 }) {
|
|
1563
1556
|
return t.addEventListener(e, n, i), () => t.removeEventListener(e, n);
|
|
1564
1557
|
}
|
|
1565
|
-
const
|
|
1558
|
+
const xr = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1;
|
|
1566
1559
|
function Ue(t, e = "page") {
|
|
1567
1560
|
return {
|
|
1568
1561
|
point: {
|
|
@@ -1571,12 +1564,12 @@ function Ue(t, e = "page") {
|
|
|
1571
1564
|
}
|
|
1572
1565
|
};
|
|
1573
1566
|
}
|
|
1574
|
-
const ul = (t) => (e) =>
|
|
1567
|
+
const ul = (t) => (e) => xr(e) && t(e, Ue(e));
|
|
1575
1568
|
function ot(t, e, n, i) {
|
|
1576
1569
|
return rt(t, e, ul(n), i);
|
|
1577
1570
|
}
|
|
1578
1571
|
const fl = (t, e) => (n) => e(t(n)), at = (...t) => t.reduce(fl);
|
|
1579
|
-
function
|
|
1572
|
+
function Tr(t) {
|
|
1580
1573
|
let e = null;
|
|
1581
1574
|
return () => {
|
|
1582
1575
|
const n = () => {
|
|
@@ -1585,23 +1578,23 @@ function br(t) {
|
|
|
1585
1578
|
return e === null ? (e = t, n) : !1;
|
|
1586
1579
|
};
|
|
1587
1580
|
}
|
|
1588
|
-
const
|
|
1589
|
-
function
|
|
1581
|
+
const Bi = Tr("dragHorizontal"), Ii = Tr("dragVertical");
|
|
1582
|
+
function br(t) {
|
|
1590
1583
|
let e = !1;
|
|
1591
1584
|
if (t === "y")
|
|
1592
|
-
e = Ni();
|
|
1593
|
-
else if (t === "x")
|
|
1594
1585
|
e = Ii();
|
|
1586
|
+
else if (t === "x")
|
|
1587
|
+
e = Bi();
|
|
1595
1588
|
else {
|
|
1596
|
-
const n =
|
|
1589
|
+
const n = Bi(), i = Ii();
|
|
1597
1590
|
n && i ? e = () => {
|
|
1598
1591
|
n(), i();
|
|
1599
1592
|
} : (n && n(), i && i());
|
|
1600
1593
|
}
|
|
1601
1594
|
return e;
|
|
1602
1595
|
}
|
|
1603
|
-
function
|
|
1604
|
-
const t =
|
|
1596
|
+
function wr() {
|
|
1597
|
+
const t = br(!0);
|
|
1605
1598
|
return t ? (t(), !1) : !0;
|
|
1606
1599
|
}
|
|
1607
1600
|
class xt {
|
|
@@ -1611,9 +1604,9 @@ class xt {
|
|
|
1611
1604
|
update() {
|
|
1612
1605
|
}
|
|
1613
1606
|
}
|
|
1614
|
-
function
|
|
1607
|
+
function Ni(t, e) {
|
|
1615
1608
|
const n = e ? "pointerenter" : "pointerleave", i = e ? "onHoverStart" : "onHoverEnd", s = (o, r) => {
|
|
1616
|
-
if (o.pointerType === "touch" ||
|
|
1609
|
+
if (o.pointerType === "touch" || wr())
|
|
1617
1610
|
return;
|
|
1618
1611
|
const a = t.getProps();
|
|
1619
1612
|
t.animationState && a.whileHover && t.animationState.setActive("whileHover", e);
|
|
@@ -1626,7 +1619,7 @@ function Ui(t, e) {
|
|
|
1626
1619
|
}
|
|
1627
1620
|
class hl extends xt {
|
|
1628
1621
|
mount() {
|
|
1629
|
-
this.unmount = at(
|
|
1622
|
+
this.unmount = at(Ni(this.node, !0), Ni(this.node, !1));
|
|
1630
1623
|
}
|
|
1631
1624
|
unmount() {
|
|
1632
1625
|
}
|
|
@@ -1653,7 +1646,7 @@ class dl extends xt {
|
|
|
1653
1646
|
unmount() {
|
|
1654
1647
|
}
|
|
1655
1648
|
}
|
|
1656
|
-
const
|
|
1649
|
+
const Sr = (t, e) => e ? t === e ? !0 : Sr(t, e.parentElement) : !1;
|
|
1657
1650
|
function tn(t, e) {
|
|
1658
1651
|
if (!e)
|
|
1659
1652
|
return;
|
|
@@ -1669,7 +1662,7 @@ class pl extends xt {
|
|
|
1669
1662
|
const i = this.node.getProps(), o = ot(window, "pointerup", (a, l) => {
|
|
1670
1663
|
if (!this.checkPressEnd())
|
|
1671
1664
|
return;
|
|
1672
|
-
const { onTap: c, onTapCancel: u, globalTapTarget: f } = this.node.getProps(), d = !f && !
|
|
1665
|
+
const { onTap: c, onTapCancel: u, globalTapTarget: f } = this.node.getProps(), d = !f && !Sr(this.node.current, a.target) ? u : c;
|
|
1673
1666
|
d && M.update(() => d(a, l));
|
|
1674
1667
|
}, {
|
|
1675
1668
|
passive: !(i.onTap || i.onPointerUp)
|
|
@@ -1702,7 +1695,7 @@ class pl extends xt {
|
|
|
1702
1695
|
s && this.node.animationState && this.node.animationState.setActive("whileTap", !0), i && M.postRender(() => i(e, n));
|
|
1703
1696
|
}
|
|
1704
1697
|
checkPressEnd() {
|
|
1705
|
-
return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !
|
|
1698
|
+
return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !wr();
|
|
1706
1699
|
}
|
|
1707
1700
|
cancelPress(e, n) {
|
|
1708
1701
|
if (!this.checkPressEnd())
|
|
@@ -1791,7 +1784,7 @@ const bl = {
|
|
|
1791
1784
|
Feature: hl
|
|
1792
1785
|
}
|
|
1793
1786
|
};
|
|
1794
|
-
function
|
|
1787
|
+
function Cr(t, e) {
|
|
1795
1788
|
if (!Array.isArray(e))
|
|
1796
1789
|
return !1;
|
|
1797
1790
|
const n = e.length;
|
|
@@ -1804,7 +1797,7 @@ function Ar(t, e) {
|
|
|
1804
1797
|
}
|
|
1805
1798
|
function We(t, e, n) {
|
|
1806
1799
|
const i = t.getProps();
|
|
1807
|
-
return
|
|
1800
|
+
return Yn(i, e, n !== void 0 ? n : i.custom, t);
|
|
1808
1801
|
}
|
|
1809
1802
|
const lt = (t) => t * 1e3, ct = (t) => t / 1e3, wl = {
|
|
1810
1803
|
type: "spring",
|
|
@@ -1827,7 +1820,7 @@ const lt = (t) => t * 1e3, ct = (t) => t / 1e3, wl = {
|
|
|
1827
1820
|
function Vl({ when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: s, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: c, ...u }) {
|
|
1828
1821
|
return !!Object.keys(u).length;
|
|
1829
1822
|
}
|
|
1830
|
-
function
|
|
1823
|
+
function qn(t, e) {
|
|
1831
1824
|
return t[e] || t.default || t;
|
|
1832
1825
|
}
|
|
1833
1826
|
const El = (t) => t !== null;
|
|
@@ -1840,15 +1833,15 @@ function Dl() {
|
|
|
1840
1833
|
Ce = void 0;
|
|
1841
1834
|
}
|
|
1842
1835
|
const gt = {
|
|
1843
|
-
now: () => (Ce === void 0 && gt.set(N.isProcessing ||
|
|
1836
|
+
now: () => (Ce === void 0 && gt.set(N.isProcessing || ma.useManualTiming ? N.timestamp : performance.now()), Ce),
|
|
1844
1837
|
set: (t) => {
|
|
1845
1838
|
Ce = t, queueMicrotask(Dl);
|
|
1846
1839
|
}
|
|
1847
|
-
},
|
|
1840
|
+
}, Ar = (t) => /^0[^.\s]+$/u.test(t);
|
|
1848
1841
|
function Ml(t) {
|
|
1849
|
-
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" ||
|
|
1842
|
+
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Ar(t) : !0;
|
|
1850
1843
|
}
|
|
1851
|
-
const
|
|
1844
|
+
const Rr = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), kl = (
|
|
1852
1845
|
// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
|
|
1853
1846
|
/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
|
|
1854
1847
|
);
|
|
@@ -1860,7 +1853,7 @@ function Ll(t) {
|
|
|
1860
1853
|
return [`--${n ?? i}`, s];
|
|
1861
1854
|
}
|
|
1862
1855
|
const Ol = 4;
|
|
1863
|
-
function
|
|
1856
|
+
function Vr(t, e, n = 1) {
|
|
1864
1857
|
ft(n <= Ol, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
|
|
1865
1858
|
const [i, s] = Ll(t);
|
|
1866
1859
|
if (!i)
|
|
@@ -1868,9 +1861,9 @@ function Er(t, e, n = 1) {
|
|
|
1868
1861
|
const o = window.getComputedStyle(e).getPropertyValue(i);
|
|
1869
1862
|
if (o) {
|
|
1870
1863
|
const r = o.trim();
|
|
1871
|
-
return
|
|
1864
|
+
return Rr(r) ? parseFloat(r) : r;
|
|
1872
1865
|
}
|
|
1873
|
-
return
|
|
1866
|
+
return Un(s) ? Vr(s, e, n + 1) : s;
|
|
1874
1867
|
}
|
|
1875
1868
|
const jl = /* @__PURE__ */ new Set([
|
|
1876
1869
|
"width",
|
|
@@ -1883,15 +1876,15 @@ const jl = /* @__PURE__ */ new Set([
|
|
|
1883
1876
|
"y",
|
|
1884
1877
|
"translateX",
|
|
1885
1878
|
"translateY"
|
|
1886
|
-
]),
|
|
1879
|
+
]), Ui = (t) => t === $t || t === S, Wi = (t, e) => parseFloat(t.split(", ")[e]), $i = (t, e) => (n, { transform: i }) => {
|
|
1887
1880
|
if (i === "none" || !i)
|
|
1888
1881
|
return 0;
|
|
1889
1882
|
const s = i.match(/^matrix3d\((.+)\)$/u);
|
|
1890
1883
|
if (s)
|
|
1891
|
-
return
|
|
1884
|
+
return Wi(s[1], e);
|
|
1892
1885
|
{
|
|
1893
1886
|
const o = i.match(/^matrix\((.+)\)$/u);
|
|
1894
|
-
return o ?
|
|
1887
|
+
return o ? Wi(o[1], t) : 0;
|
|
1895
1888
|
}
|
|
1896
1889
|
}, Fl = /* @__PURE__ */ new Set(["x", "y", "z"]), _l = he.filter((t) => !Fl.has(t));
|
|
1897
1890
|
function Bl(t) {
|
|
@@ -1910,17 +1903,17 @@ const Ut = {
|
|
|
1910
1903
|
bottom: ({ y: t }, { top: e }) => parseFloat(e) + (t.max - t.min),
|
|
1911
1904
|
right: ({ x: t }, { left: e }) => parseFloat(e) + (t.max - t.min),
|
|
1912
1905
|
// Transform
|
|
1913
|
-
x:
|
|
1914
|
-
y:
|
|
1906
|
+
x: $i(4, 13),
|
|
1907
|
+
y: $i(5, 14)
|
|
1915
1908
|
};
|
|
1916
1909
|
Ut.translateX = Ut.x;
|
|
1917
1910
|
Ut.translateY = Ut.y;
|
|
1918
|
-
const
|
|
1911
|
+
const Er = (t) => (e) => e.test(t), Il = {
|
|
1919
1912
|
test: (t) => t === "auto",
|
|
1920
1913
|
parse: (t) => t
|
|
1921
|
-
},
|
|
1914
|
+
}, Dr = [$t, S, st, pt, $a, Wa, Il], Ki = (t) => Dr.find(Er(t)), Rt = /* @__PURE__ */ new Set();
|
|
1922
1915
|
let vn = !1, Pn = !1;
|
|
1923
|
-
function
|
|
1916
|
+
function Mr() {
|
|
1924
1917
|
if (Pn) {
|
|
1925
1918
|
const t = Array.from(Rt).filter((i) => i.needsMeasurement), e = new Set(t.map((i) => i.element)), n = /* @__PURE__ */ new Map();
|
|
1926
1919
|
e.forEach((i) => {
|
|
@@ -1939,20 +1932,20 @@ function kr() {
|
|
|
1939
1932
|
}
|
|
1940
1933
|
Pn = !1, vn = !1, Rt.forEach((t) => t.complete()), Rt.clear();
|
|
1941
1934
|
}
|
|
1942
|
-
function
|
|
1935
|
+
function kr() {
|
|
1943
1936
|
Rt.forEach((t) => {
|
|
1944
1937
|
t.readKeyframes(), t.needsMeasurement && (Pn = !0);
|
|
1945
1938
|
});
|
|
1946
1939
|
}
|
|
1947
1940
|
function Nl() {
|
|
1948
|
-
|
|
1941
|
+
kr(), Mr();
|
|
1949
1942
|
}
|
|
1950
|
-
class
|
|
1943
|
+
class Zn {
|
|
1951
1944
|
constructor(e, n, i, s, o, r = !1) {
|
|
1952
1945
|
this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = i, this.motionValue = s, this.element = o, this.isAsync = r;
|
|
1953
1946
|
}
|
|
1954
1947
|
scheduleResolve() {
|
|
1955
|
-
this.isScheduled = !0, this.isAsync ? (Rt.add(this), vn || (vn = !0, M.read(
|
|
1948
|
+
this.isScheduled = !0, this.isAsync ? (Rt.add(this), vn || (vn = !0, M.read(kr), M.resolveKeyframes(Mr))) : (this.readKeyframes(), this.complete());
|
|
1956
1949
|
}
|
|
1957
1950
|
readKeyframes() {
|
|
1958
1951
|
const { unresolvedKeyframes: e, name: n, element: i, motionValue: s } = this;
|
|
@@ -1988,10 +1981,10 @@ class Jn {
|
|
|
1988
1981
|
this.isComplete || this.scheduleResolve();
|
|
1989
1982
|
}
|
|
1990
1983
|
}
|
|
1991
|
-
const
|
|
1984
|
+
const Jn = (t, e) => (n) => !!(de(n) && Na.test(n) && n.startsWith(t) || e && !Ua(n) && Object.prototype.hasOwnProperty.call(n, e)), Lr = (t, e, n) => (i) => {
|
|
1992
1985
|
if (!de(i))
|
|
1993
1986
|
return i;
|
|
1994
|
-
const [s, o, r, a] = i.match(
|
|
1987
|
+
const [s, o, r, a] = i.match(Wn);
|
|
1995
1988
|
return {
|
|
1996
1989
|
[t]: parseFloat(s),
|
|
1997
1990
|
[e]: parseFloat(o),
|
|
@@ -2002,8 +1995,8 @@ const Qn = (t, e) => (n) => !!(de(n) && ja.test(n) && n.startsWith(t) || e && !F
|
|
|
2002
1995
|
...$t,
|
|
2003
1996
|
transform: (t) => Math.round(Ul(t))
|
|
2004
1997
|
}, At = {
|
|
2005
|
-
test:
|
|
2006
|
-
parse:
|
|
1998
|
+
test: Jn("rgb", "red"),
|
|
1999
|
+
parse: Lr("red", "green", "blue"),
|
|
2007
2000
|
transform: ({ red: t, green: e, blue: n, alpha: i = 1 }) => "rgba(" + nn.transform(t) + ", " + nn.transform(e) + ", " + nn.transform(n) + ", " + te(Qt.transform(i)) + ")"
|
|
2008
2001
|
};
|
|
2009
2002
|
function Wl(t) {
|
|
@@ -2016,12 +2009,12 @@ function Wl(t) {
|
|
|
2016
2009
|
};
|
|
2017
2010
|
}
|
|
2018
2011
|
const xn = {
|
|
2019
|
-
test:
|
|
2012
|
+
test: Jn("#"),
|
|
2020
2013
|
parse: Wl,
|
|
2021
2014
|
transform: At.transform
|
|
2022
2015
|
}, Ft = {
|
|
2023
|
-
test:
|
|
2024
|
-
parse:
|
|
2016
|
+
test: Jn("hsl", "hue"),
|
|
2017
|
+
parse: Lr("hue", "saturation", "lightness"),
|
|
2025
2018
|
transform: ({ hue: t, saturation: e, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(t) + ", " + st.transform(te(e)) + ", " + st.transform(te(n)) + ", " + te(Qt.transform(i)) + ")"
|
|
2026
2019
|
}, $ = {
|
|
2027
2020
|
test: (t) => At.test(t) || xn.test(t) || Ft.test(t),
|
|
@@ -2030,9 +2023,9 @@ const xn = {
|
|
|
2030
2023
|
};
|
|
2031
2024
|
function $l(t) {
|
|
2032
2025
|
var e, n;
|
|
2033
|
-
return isNaN(t) && de(t) && (((e = t.match(
|
|
2026
|
+
return isNaN(t) && de(t) && (((e = t.match(Wn)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(Ia)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
|
|
2034
2027
|
}
|
|
2035
|
-
const
|
|
2028
|
+
const Or = "number", jr = "color", Kl = "var", Gl = "var(", Gi = "${}", zl = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
|
|
2036
2029
|
function oe(t) {
|
|
2037
2030
|
const e = t.toString(), n = [], i = {
|
|
2038
2031
|
color: [],
|
|
@@ -2040,40 +2033,40 @@ function oe(t) {
|
|
|
2040
2033
|
var: []
|
|
2041
2034
|
}, s = [];
|
|
2042
2035
|
let o = 0;
|
|
2043
|
-
const a = e.replace(zl, (l) => ($.test(l) ? (i.color.push(o), s.push(
|
|
2036
|
+
const a = e.replace(zl, (l) => ($.test(l) ? (i.color.push(o), s.push(jr), n.push($.parse(l))) : l.startsWith(Gl) ? (i.var.push(o), s.push(Kl), n.push(l)) : (i.number.push(o), s.push(Or), n.push(parseFloat(l))), ++o, Gi)).split(Gi);
|
|
2044
2037
|
return { values: n, split: a, indexes: i, types: s };
|
|
2045
2038
|
}
|
|
2046
|
-
function
|
|
2039
|
+
function Fr(t) {
|
|
2047
2040
|
return oe(t).values;
|
|
2048
2041
|
}
|
|
2049
|
-
function
|
|
2042
|
+
function _r(t) {
|
|
2050
2043
|
const { split: e, types: n } = oe(t), i = e.length;
|
|
2051
2044
|
return (s) => {
|
|
2052
2045
|
let o = "";
|
|
2053
2046
|
for (let r = 0; r < i; r++)
|
|
2054
2047
|
if (o += e[r], s[r] !== void 0) {
|
|
2055
2048
|
const a = n[r];
|
|
2056
|
-
a ===
|
|
2049
|
+
a === Or ? o += te(s[r]) : a === jr ? o += $.transform(s[r]) : o += s[r];
|
|
2057
2050
|
}
|
|
2058
2051
|
return o;
|
|
2059
2052
|
};
|
|
2060
2053
|
}
|
|
2061
2054
|
const Hl = (t) => typeof t == "number" ? 0 : t;
|
|
2062
2055
|
function Yl(t) {
|
|
2063
|
-
const e =
|
|
2064
|
-
return
|
|
2056
|
+
const e = Fr(t);
|
|
2057
|
+
return _r(t)(e.map(Hl));
|
|
2065
2058
|
}
|
|
2066
2059
|
const vt = {
|
|
2067
2060
|
test: $l,
|
|
2068
|
-
parse:
|
|
2069
|
-
createTransformer:
|
|
2061
|
+
parse: Fr,
|
|
2062
|
+
createTransformer: _r,
|
|
2070
2063
|
getAnimatableNone: Yl
|
|
2071
2064
|
}, Xl = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
|
|
2072
2065
|
function ql(t) {
|
|
2073
2066
|
const [e, n] = t.slice(0, -1).split("(");
|
|
2074
2067
|
if (e === "drop-shadow")
|
|
2075
2068
|
return t;
|
|
2076
|
-
const [i] = n.match(
|
|
2069
|
+
const [i] = n.match(Wn) || [];
|
|
2077
2070
|
if (!i)
|
|
2078
2071
|
return t;
|
|
2079
2072
|
const s = n.replace(i, "");
|
|
@@ -2087,7 +2080,7 @@ const Zl = /\b([a-z-]*)\(.*?\)/gu, Tn = {
|
|
|
2087
2080
|
return e ? e.map(ql).join(" ") : t;
|
|
2088
2081
|
}
|
|
2089
2082
|
}, Jl = {
|
|
2090
|
-
...
|
|
2083
|
+
...cr,
|
|
2091
2084
|
// Color props
|
|
2092
2085
|
color: $,
|
|
2093
2086
|
backgroundColor: $,
|
|
@@ -2102,9 +2095,9 @@ const Zl = /\b([a-z-]*)\(.*?\)/gu, Tn = {
|
|
|
2102
2095
|
borderLeftColor: $,
|
|
2103
2096
|
filter: Tn,
|
|
2104
2097
|
WebkitFilter: Tn
|
|
2105
|
-
},
|
|
2106
|
-
function
|
|
2107
|
-
let n =
|
|
2098
|
+
}, Qn = (t) => Jl[t];
|
|
2099
|
+
function Br(t, e) {
|
|
2100
|
+
let n = Qn(t);
|
|
2108
2101
|
return n !== Tn && (n = vt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
|
|
2109
2102
|
}
|
|
2110
2103
|
const Ql = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
@@ -2116,9 +2109,9 @@ function tc(t, e, n) {
|
|
|
2116
2109
|
}
|
|
2117
2110
|
if (s && n)
|
|
2118
2111
|
for (const o of e)
|
|
2119
|
-
t[o] =
|
|
2112
|
+
t[o] = Br(n, s);
|
|
2120
2113
|
}
|
|
2121
|
-
class
|
|
2114
|
+
class Ir extends Zn {
|
|
2122
2115
|
constructor(e, n, i, s) {
|
|
2123
2116
|
super(e, n, i, s, s == null ? void 0 : s.owner, !0);
|
|
2124
2117
|
}
|
|
@@ -2129,16 +2122,16 @@ class Nr extends Jn {
|
|
|
2129
2122
|
super.readKeyframes();
|
|
2130
2123
|
for (let l = 0; l < e.length; l++) {
|
|
2131
2124
|
let c = e[l];
|
|
2132
|
-
if (typeof c == "string" && (c = c.trim(),
|
|
2133
|
-
const u =
|
|
2125
|
+
if (typeof c == "string" && (c = c.trim(), Un(c))) {
|
|
2126
|
+
const u = Vr(c, n.current);
|
|
2134
2127
|
u !== void 0 && (e[l] = u), l === e.length - 1 && (this.finalKeyframe = c);
|
|
2135
2128
|
}
|
|
2136
2129
|
}
|
|
2137
2130
|
if (this.resolveNoneKeyframes(), !jl.has(i) || e.length !== 2)
|
|
2138
2131
|
return;
|
|
2139
|
-
const [s, o] = e, r =
|
|
2132
|
+
const [s, o] = e, r = Ki(s), a = Ki(o);
|
|
2140
2133
|
if (r !== a)
|
|
2141
|
-
if (
|
|
2134
|
+
if (Ui(r) && Ui(a))
|
|
2142
2135
|
for (let l = 0; l < e.length; l++) {
|
|
2143
2136
|
const c = e[l];
|
|
2144
2137
|
typeof c == "string" && (e[l] = parseFloat(c));
|
|
@@ -2173,11 +2166,11 @@ class Nr extends Jn {
|
|
|
2173
2166
|
}), this.resolveNoneKeyframes();
|
|
2174
2167
|
}
|
|
2175
2168
|
}
|
|
2176
|
-
function
|
|
2169
|
+
function Nr(t) {
|
|
2177
2170
|
let e;
|
|
2178
2171
|
return () => (e === void 0 && (e = t()), e);
|
|
2179
2172
|
}
|
|
2180
|
-
const
|
|
2173
|
+
const zi = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
|
|
2181
2174
|
(vt.test(t) || t === "0") && // And it contains numbers and/or colors
|
|
2182
2175
|
!t.startsWith("url("));
|
|
2183
2176
|
function ec(t) {
|
|
@@ -2194,10 +2187,10 @@ function nc(t, e, n, i) {
|
|
|
2194
2187
|
return !1;
|
|
2195
2188
|
if (e === "display" || e === "visibility")
|
|
2196
2189
|
return !0;
|
|
2197
|
-
const o = t[t.length - 1], r =
|
|
2190
|
+
const o = t[t.length - 1], r = zi(s, e), a = zi(o, e);
|
|
2198
2191
|
return Wt(r === a, `You are trying to animate ${e} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`), !r || !a ? !1 : ec(t) || n === "spring" && i;
|
|
2199
2192
|
}
|
|
2200
|
-
class
|
|
2193
|
+
class Ur {
|
|
2201
2194
|
constructor({ autoplay: e = !0, delay: n = 0, type: i = "keyframes", repeat: s = 0, repeatDelay: o = 0, repeatType: r = "loop", ...a }) {
|
|
2202
2195
|
this.isStopped = !1, this.hasAttemptedResolve = !1, this.options = {
|
|
2203
2196
|
autoplay: e,
|
|
@@ -2255,20 +2248,20 @@ class Wr {
|
|
|
2255
2248
|
});
|
|
2256
2249
|
}
|
|
2257
2250
|
}
|
|
2258
|
-
function
|
|
2251
|
+
function Wr(t, e) {
|
|
2259
2252
|
return e ? t * (1e3 / e) : 0;
|
|
2260
2253
|
}
|
|
2261
2254
|
const ic = 5;
|
|
2262
|
-
function
|
|
2255
|
+
function $r(t, e, n) {
|
|
2263
2256
|
const i = Math.max(e - ic, 0);
|
|
2264
|
-
return
|
|
2257
|
+
return Wr(n - t(i), e - i);
|
|
2265
2258
|
}
|
|
2266
|
-
const sn = 1e-3, sc = 0.01,
|
|
2259
|
+
const sn = 1e-3, sc = 0.01, Hi = 10, rc = 0.05, oc = 1;
|
|
2267
2260
|
function ac({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: i = 1 }) {
|
|
2268
2261
|
let s, o;
|
|
2269
|
-
Wt(t <= lt(
|
|
2262
|
+
Wt(t <= lt(Hi), "Spring duration must be 10 seconds or less");
|
|
2270
2263
|
let r = 1 - e;
|
|
2271
|
-
r = yt(rc, oc, r), t = yt(sc,
|
|
2264
|
+
r = yt(rc, oc, r), t = yt(sc, Hi, ct(t)), r < 1 ? (s = (c) => {
|
|
2272
2265
|
const u = c * r, f = u * t, d = u - n, p = bn(c, r), g = Math.exp(-f);
|
|
2273
2266
|
return sn - d / p * g;
|
|
2274
2267
|
}, o = (c) => {
|
|
@@ -2308,7 +2301,7 @@ function bn(t, e) {
|
|
|
2308
2301
|
return t * Math.sqrt(1 - e * e);
|
|
2309
2302
|
}
|
|
2310
2303
|
const uc = ["duration", "bounce"], fc = ["stiffness", "damping", "mass"];
|
|
2311
|
-
function
|
|
2304
|
+
function Yi(t, e) {
|
|
2312
2305
|
return e.some((n) => t[n] !== void 0);
|
|
2313
2306
|
}
|
|
2314
2307
|
function hc(t) {
|
|
@@ -2320,7 +2313,7 @@ function hc(t) {
|
|
|
2320
2313
|
isResolvedFromDuration: !1,
|
|
2321
2314
|
...t
|
|
2322
2315
|
};
|
|
2323
|
-
if (!
|
|
2316
|
+
if (!Yi(t, fc) && Yi(t, uc)) {
|
|
2324
2317
|
const n = ac(t);
|
|
2325
2318
|
e = {
|
|
2326
2319
|
...e,
|
|
@@ -2330,7 +2323,7 @@ function hc(t) {
|
|
|
2330
2323
|
}
|
|
2331
2324
|
return e;
|
|
2332
2325
|
}
|
|
2333
|
-
function
|
|
2326
|
+
function Kr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
|
|
2334
2327
|
const s = t[0], o = t[t.length - 1], r = { done: !1, value: s }, { stiffness: a, damping: l, mass: c, duration: u, velocity: f, isResolvedFromDuration: d } = hc({
|
|
2335
2328
|
...i,
|
|
2336
2329
|
velocity: -ct(i.velocity || 0)
|
|
@@ -2360,7 +2353,7 @@ function Gr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
|
|
|
2360
2353
|
r.done = v >= u;
|
|
2361
2354
|
else {
|
|
2362
2355
|
let w = p;
|
|
2363
|
-
v !== 0 && (g < 1 ? w =
|
|
2356
|
+
v !== 0 && (g < 1 ? w = $r(y, v, C) : w = 0);
|
|
2364
2357
|
const L = Math.abs(w) <= n, q = Math.abs(o - C) <= e;
|
|
2365
2358
|
r.done = L && q;
|
|
2366
2359
|
}
|
|
@@ -2368,7 +2361,7 @@ function Gr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
|
|
|
2368
2361
|
}
|
|
2369
2362
|
};
|
|
2370
2363
|
}
|
|
2371
|
-
function
|
|
2364
|
+
function Xi({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 325, bounceDamping: s = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
|
|
2372
2365
|
const f = t[0], d = {
|
|
2373
2366
|
done: !1,
|
|
2374
2367
|
value: f
|
|
@@ -2382,9 +2375,9 @@ function qi({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
|
|
|
2382
2375
|
};
|
|
2383
2376
|
let w, L;
|
|
2384
2377
|
const q = (V) => {
|
|
2385
|
-
p(d.value) && (w = V, L =
|
|
2378
|
+
p(d.value) && (w = V, L = Kr({
|
|
2386
2379
|
keyframes: [d.value, g(d.value)],
|
|
2387
|
-
velocity:
|
|
2380
|
+
velocity: $r(v, V, d.value),
|
|
2388
2381
|
// TODO: This should be passing * 1000
|
|
2389
2382
|
damping: s,
|
|
2390
2383
|
stiffness: o,
|
|
@@ -2400,11 +2393,11 @@ function qi({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
|
|
|
2400
2393
|
}
|
|
2401
2394
|
};
|
|
2402
2395
|
}
|
|
2403
|
-
const
|
|
2396
|
+
const Gr = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, dc = 1e-7, pc = 12;
|
|
2404
2397
|
function mc(t, e, n, i, s) {
|
|
2405
2398
|
let o, r, a = 0;
|
|
2406
2399
|
do
|
|
2407
|
-
r = e + (n - e) / 2, o =
|
|
2400
|
+
r = e + (n - e) / 2, o = Gr(r, i, s) - t, o > 0 ? n = r : e = r;
|
|
2408
2401
|
while (Math.abs(o) > dc && ++a < pc);
|
|
2409
2402
|
return r;
|
|
2410
2403
|
}
|
|
@@ -2412,27 +2405,27 @@ function me(t, e, n, i) {
|
|
|
2412
2405
|
if (t === e && n === i)
|
|
2413
2406
|
return W;
|
|
2414
2407
|
const s = (o) => mc(o, 0, 1, t, n);
|
|
2415
|
-
return (o) => o === 0 || o === 1 ? o :
|
|
2408
|
+
return (o) => o === 0 || o === 1 ? o : Gr(s(o), e, i);
|
|
2416
2409
|
}
|
|
2417
|
-
const gc = me(0.42, 0, 1, 1), yc = me(0, 0, 0.58, 1),
|
|
2410
|
+
const gc = me(0.42, 0, 1, 1), yc = me(0, 0, 0.58, 1), zr = me(0.42, 0, 0.58, 1), vc = (t) => Array.isArray(t) && typeof t[0] != "number", Hr = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Yr = (t) => (e) => 1 - t(1 - e), ti = (t) => 1 - Math.sin(Math.acos(t)), Xr = Yr(ti), Pc = Hr(ti), qr = me(0.33, 1.53, 0.69, 0.99), ei = Yr(qr), xc = Hr(ei), Tc = (t) => (t *= 2) < 1 ? 0.5 * ei(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), qi = {
|
|
2418
2411
|
linear: W,
|
|
2419
2412
|
easeIn: gc,
|
|
2420
|
-
easeInOut:
|
|
2413
|
+
easeInOut: zr,
|
|
2421
2414
|
easeOut: yc,
|
|
2422
|
-
circIn:
|
|
2415
|
+
circIn: ti,
|
|
2423
2416
|
circInOut: Pc,
|
|
2424
|
-
circOut:
|
|
2425
|
-
backIn:
|
|
2417
|
+
circOut: Xr,
|
|
2418
|
+
backIn: ei,
|
|
2426
2419
|
backInOut: xc,
|
|
2427
|
-
backOut:
|
|
2420
|
+
backOut: qr,
|
|
2428
2421
|
anticipate: Tc
|
|
2429
|
-
},
|
|
2422
|
+
}, Zi = (t) => {
|
|
2430
2423
|
if (Array.isArray(t)) {
|
|
2431
2424
|
ft(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
|
|
2432
2425
|
const [e, n, i, s] = t;
|
|
2433
2426
|
return me(e, n, i, s);
|
|
2434
2427
|
} else if (typeof t == "string")
|
|
2435
|
-
return ft(
|
|
2428
|
+
return ft(qi[t] !== void 0, `Invalid easing type '${t}'`), qi[t];
|
|
2436
2429
|
return t;
|
|
2437
2430
|
}, ae = (t, e, n) => {
|
|
2438
2431
|
const i = e - t;
|
|
@@ -2464,15 +2457,15 @@ const on = (t, e, n) => {
|
|
|
2464
2457
|
const i = t * t, s = n * (e * e - i) + i;
|
|
2465
2458
|
return s < 0 ? 0 : Math.sqrt(s);
|
|
2466
2459
|
}, wc = [xn, At, Ft], Sc = (t) => wc.find((e) => e.test(t));
|
|
2467
|
-
function
|
|
2460
|
+
function Ji(t) {
|
|
2468
2461
|
const e = Sc(t);
|
|
2469
2462
|
if (Wt(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
|
|
2470
2463
|
return !1;
|
|
2471
2464
|
let n = e.parse(t);
|
|
2472
2465
|
return e === Ft && (n = bc(n)), n;
|
|
2473
2466
|
}
|
|
2474
|
-
const
|
|
2475
|
-
const n =
|
|
2467
|
+
const Qi = (t, e) => {
|
|
2468
|
+
const n = Ji(t), i = Ji(e);
|
|
2476
2469
|
if (!n || !i)
|
|
2477
2470
|
return Me(t, e);
|
|
2478
2471
|
const s = { ...n };
|
|
@@ -2484,11 +2477,11 @@ function Cc(t, e) {
|
|
|
2484
2477
|
function Ac(t, e) {
|
|
2485
2478
|
return (n) => j(t, e, n);
|
|
2486
2479
|
}
|
|
2487
|
-
function
|
|
2488
|
-
return typeof t == "number" ? Ac : typeof t == "string" ?
|
|
2480
|
+
function ni(t) {
|
|
2481
|
+
return typeof t == "number" ? Ac : typeof t == "string" ? Un(t) ? Me : $.test(t) ? Qi : Ec : Array.isArray(t) ? Zr : typeof t == "object" ? $.test(t) ? Qi : Rc : Me;
|
|
2489
2482
|
}
|
|
2490
|
-
function
|
|
2491
|
-
const n = [...t], i = n.length, s = t.map((o, r) =>
|
|
2483
|
+
function Zr(t, e) {
|
|
2484
|
+
const n = [...t], i = n.length, s = t.map((o, r) => ni(o)(o, e[r]));
|
|
2492
2485
|
return (o) => {
|
|
2493
2486
|
for (let r = 0; r < i; r++)
|
|
2494
2487
|
n[r] = s[r](o);
|
|
@@ -2498,7 +2491,7 @@ function Jr(t, e) {
|
|
|
2498
2491
|
function Rc(t, e) {
|
|
2499
2492
|
const n = { ...t, ...e }, i = {};
|
|
2500
2493
|
for (const s in n)
|
|
2501
|
-
t[s] !== void 0 && e[s] !== void 0 && (i[s] =
|
|
2494
|
+
t[s] !== void 0 && e[s] !== void 0 && (i[s] = ni(t[s])(t[s], e[s]));
|
|
2502
2495
|
return (s) => {
|
|
2503
2496
|
for (const o in i)
|
|
2504
2497
|
n[o] = i[o](s);
|
|
@@ -2516,13 +2509,13 @@ function Vc(t, e) {
|
|
|
2516
2509
|
}
|
|
2517
2510
|
const Ec = (t, e) => {
|
|
2518
2511
|
const n = vt.createTransformer(e), i = oe(t), s = oe(e);
|
|
2519
|
-
return i.indexes.var.length === s.indexes.var.length && i.indexes.color.length === s.indexes.color.length && i.indexes.number.length >= s.indexes.number.length ? wn.has(t) && !s.values.length || wn.has(e) && !i.values.length ? Cc(t, e) : at(
|
|
2512
|
+
return i.indexes.var.length === s.indexes.var.length && i.indexes.color.length === s.indexes.color.length && i.indexes.number.length >= s.indexes.number.length ? wn.has(t) && !s.values.length || wn.has(e) && !i.values.length ? Cc(t, e) : at(Zr(Vc(i, s), s.values), n) : (Wt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Me(t, e));
|
|
2520
2513
|
};
|
|
2521
|
-
function
|
|
2522
|
-
return typeof t == "number" && typeof e == "number" && typeof n == "number" ? j(t, e, n) :
|
|
2514
|
+
function Jr(t, e, n) {
|
|
2515
|
+
return typeof t == "number" && typeof e == "number" && typeof n == "number" ? j(t, e, n) : ni(t)(t, e);
|
|
2523
2516
|
}
|
|
2524
2517
|
function Dc(t, e, n) {
|
|
2525
|
-
const i = [], s = n ||
|
|
2518
|
+
const i = [], s = n || Jr, o = t.length - 1;
|
|
2526
2519
|
for (let r = 0; r < o; r++) {
|
|
2527
2520
|
let a = s(t[r], t[r + 1]);
|
|
2528
2521
|
if (e) {
|
|
@@ -2565,10 +2558,10 @@ function Oc(t, e) {
|
|
|
2565
2558
|
return t.map((n) => n * e);
|
|
2566
2559
|
}
|
|
2567
2560
|
function jc(t, e) {
|
|
2568
|
-
return t.map(() => e ||
|
|
2561
|
+
return t.map(() => e || zr).splice(0, t.length - 1);
|
|
2569
2562
|
}
|
|
2570
2563
|
function ke({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }) {
|
|
2571
|
-
const s = vc(i) ? i.map(
|
|
2564
|
+
const s = vc(i) ? i.map(Zi) : Zi(i), o = {
|
|
2572
2565
|
done: !1,
|
|
2573
2566
|
value: e[0]
|
|
2574
2567
|
}, r = Oc(
|
|
@@ -2584,14 +2577,14 @@ function ke({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }
|
|
|
2584
2577
|
next: (l) => (o.value = a(l), o.done = l >= t, o)
|
|
2585
2578
|
};
|
|
2586
2579
|
}
|
|
2587
|
-
const
|
|
2580
|
+
const ts = 2e4;
|
|
2588
2581
|
function Fc(t) {
|
|
2589
2582
|
let e = 0;
|
|
2590
2583
|
const n = 50;
|
|
2591
2584
|
let i = t.next(e);
|
|
2592
|
-
for (; !i.done && e <
|
|
2585
|
+
for (; !i.done && e < ts; )
|
|
2593
2586
|
e += n, i = t.next(e);
|
|
2594
|
-
return e >=
|
|
2587
|
+
return e >= ts ? 1 / 0 : e;
|
|
2595
2588
|
}
|
|
2596
2589
|
const _c = (t) => {
|
|
2597
2590
|
const e = ({ timestamp: n }) => t(n);
|
|
@@ -2605,14 +2598,14 @@ const _c = (t) => {
|
|
|
2605
2598
|
now: () => N.isProcessing ? N.timestamp : gt.now()
|
|
2606
2599
|
};
|
|
2607
2600
|
}, Bc = {
|
|
2608
|
-
decay:
|
|
2609
|
-
inertia:
|
|
2601
|
+
decay: Xi,
|
|
2602
|
+
inertia: Xi,
|
|
2610
2603
|
tween: ke,
|
|
2611
2604
|
keyframes: ke,
|
|
2612
|
-
spring:
|
|
2605
|
+
spring: Kr
|
|
2613
2606
|
}, Ic = (t) => t / 100;
|
|
2614
|
-
class
|
|
2615
|
-
constructor({ KeyframeResolver: e =
|
|
2607
|
+
class ii extends Ur {
|
|
2608
|
+
constructor({ KeyframeResolver: e = Zn, ...n }) {
|
|
2616
2609
|
super(n), this.holdTime = null, this.startTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.state = "idle", this.stop = () => {
|
|
2617
2610
|
if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle")
|
|
2618
2611
|
return;
|
|
@@ -2626,7 +2619,7 @@ class si extends Wr {
|
|
|
2626
2619
|
initPlayback(e) {
|
|
2627
2620
|
const { type: n = "keyframes", repeat: i = 0, repeatDelay: s = 0, repeatType: o, velocity: r = 0 } = this.options, a = Bc[n] || ke;
|
|
2628
2621
|
let l, c;
|
|
2629
|
-
a !== ke && typeof e[0] != "number" && (process.env.NODE_ENV !== "production" && ft(e.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), l = at(Ic,
|
|
2622
|
+
a !== ke && typeof e[0] != "number" && (process.env.NODE_ENV !== "production" && ft(e.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), l = at(Ic, Jr(e[0], e[1])), e = [0, 100]);
|
|
2630
2623
|
const u = a({ ...this.options, keyframes: e });
|
|
2631
2624
|
o === "mirror" && (c = a({
|
|
2632
2625
|
...this.options,
|
|
@@ -2731,11 +2724,11 @@ class si extends Wr {
|
|
|
2731
2724
|
return this.startTime = 0, this.tick(e, !0);
|
|
2732
2725
|
}
|
|
2733
2726
|
}
|
|
2734
|
-
const
|
|
2735
|
-
function
|
|
2736
|
-
return !!(!t || typeof t == "string" && t in
|
|
2727
|
+
const Qr = (t) => Array.isArray(t) && typeof t[0] == "number";
|
|
2728
|
+
function to(t) {
|
|
2729
|
+
return !!(!t || typeof t == "string" && t in si || Qr(t) || Array.isArray(t) && t.every(to));
|
|
2737
2730
|
}
|
|
2738
|
-
const qt = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`,
|
|
2731
|
+
const qt = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`, si = {
|
|
2739
2732
|
linear: "linear",
|
|
2740
2733
|
ease: "ease",
|
|
2741
2734
|
easeIn: "ease-in",
|
|
@@ -2747,16 +2740,16 @@ const qt = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`, ri = {
|
|
|
2747
2740
|
backOut: qt([0.33, 1.53, 0.69, 0.99])
|
|
2748
2741
|
};
|
|
2749
2742
|
function Nc(t) {
|
|
2750
|
-
return
|
|
2743
|
+
return eo(t) || si.easeOut;
|
|
2751
2744
|
}
|
|
2752
|
-
function
|
|
2745
|
+
function eo(t) {
|
|
2753
2746
|
if (t)
|
|
2754
|
-
return
|
|
2747
|
+
return Qr(t) ? qt(t) : Array.isArray(t) ? t.map(Nc) : si[t];
|
|
2755
2748
|
}
|
|
2756
2749
|
function Uc(t, e, n, { delay: i = 0, duration: s = 300, repeat: o = 0, repeatType: r = "loop", ease: a, times: l } = {}) {
|
|
2757
2750
|
const c = { [e]: n };
|
|
2758
2751
|
l && (c.offset = l);
|
|
2759
|
-
const u =
|
|
2752
|
+
const u = eo(a);
|
|
2760
2753
|
return Array.isArray(u) && (c.easing = u), t.animate(c, {
|
|
2761
2754
|
delay: i,
|
|
2762
2755
|
duration: s,
|
|
@@ -2766,12 +2759,12 @@ function Uc(t, e, n, { delay: i = 0, duration: s = 300, repeat: o = 0, repeatTyp
|
|
|
2766
2759
|
direction: r === "reverse" ? "alternate" : "normal"
|
|
2767
2760
|
});
|
|
2768
2761
|
}
|
|
2769
|
-
const Wc =
|
|
2762
|
+
const Wc = Nr(() => Object.hasOwnProperty.call(Element.prototype, "animate")), Le = 10, $c = 2e4;
|
|
2770
2763
|
function Kc(t) {
|
|
2771
|
-
return t.type === "spring" || !
|
|
2764
|
+
return t.type === "spring" || !to(t.ease);
|
|
2772
2765
|
}
|
|
2773
2766
|
function Gc(t, e) {
|
|
2774
|
-
const n = new
|
|
2767
|
+
const n = new ii({
|
|
2775
2768
|
...e,
|
|
2776
2769
|
keyframes: t,
|
|
2777
2770
|
repeat: 0,
|
|
@@ -2790,11 +2783,11 @@ function Gc(t, e) {
|
|
|
2790
2783
|
ease: "linear"
|
|
2791
2784
|
};
|
|
2792
2785
|
}
|
|
2793
|
-
class
|
|
2786
|
+
class es extends Ur {
|
|
2794
2787
|
constructor(e) {
|
|
2795
2788
|
super(e);
|
|
2796
2789
|
const { name: n, motionValue: i, keyframes: s } = this.options;
|
|
2797
|
-
this.resolver = new
|
|
2790
|
+
this.resolver = new Ir(s, (o, r) => this.onKeyframesResolved(o, r), n, i), this.resolver.scheduleResolve();
|
|
2798
2791
|
}
|
|
2799
2792
|
initPlayback(e, n) {
|
|
2800
2793
|
var i;
|
|
@@ -2903,7 +2896,7 @@ class ns extends Wr {
|
|
|
2903
2896
|
if (n.playState === "idle" || n.playState === "finished")
|
|
2904
2897
|
return;
|
|
2905
2898
|
if (this.time) {
|
|
2906
|
-
const { motionValue: c, onUpdate: u, onComplete: f, ...d } = this.options, p = new
|
|
2899
|
+
const { motionValue: c, onUpdate: u, onComplete: f, ...d } = this.options, p = new ii({
|
|
2907
2900
|
...d,
|
|
2908
2901
|
keyframes: i,
|
|
2909
2902
|
duration: s,
|
|
@@ -2927,7 +2920,7 @@ class ns extends Wr {
|
|
|
2927
2920
|
}
|
|
2928
2921
|
static supports(e) {
|
|
2929
2922
|
const { motionValue: n, name: i, repeatDelay: s, repeatType: o, damping: r, type: a } = e;
|
|
2930
|
-
return Wc() && i &&
|
|
2923
|
+
return Wc() && i && yr.has(i) && n && n.owner && n.owner.current instanceof HTMLElement && /**
|
|
2931
2924
|
* If we're outputting values to onUpdate then we can't use WAAPI as there's
|
|
2932
2925
|
* no way to read the value from WAAPI every frame.
|
|
2933
2926
|
*/
|
|
@@ -2942,7 +2935,7 @@ function zc(t, e) {
|
|
|
2942
2935
|
};
|
|
2943
2936
|
return M.update(i, !0), () => ht(i);
|
|
2944
2937
|
}
|
|
2945
|
-
const Hc =
|
|
2938
|
+
const Hc = Nr(() => window.ScrollTimeline !== void 0);
|
|
2946
2939
|
class Yc {
|
|
2947
2940
|
constructor(e) {
|
|
2948
2941
|
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
|
|
@@ -3009,8 +3002,8 @@ class Yc {
|
|
|
3009
3002
|
this.runAll("complete");
|
|
3010
3003
|
}
|
|
3011
3004
|
}
|
|
3012
|
-
const
|
|
3013
|
-
const l =
|
|
3005
|
+
const ri = (t, e, n, i = {}, s, o, r) => (a) => {
|
|
3006
|
+
const l = qn(i, t) || {}, c = l.delay || i.delay || 0;
|
|
3014
3007
|
let { elapsed: u = 0 } = i;
|
|
3015
3008
|
u = u - lt(c);
|
|
3016
3009
|
let f = {
|
|
@@ -3042,9 +3035,9 @@ const oi = (t, e, n, i = {}, s, o, r) => (a) => {
|
|
|
3042
3035
|
f.onUpdate(p), f.onComplete();
|
|
3043
3036
|
}), new Yc([]);
|
|
3044
3037
|
}
|
|
3045
|
-
return !o &&
|
|
3038
|
+
return !o && es.supports(f) ? new es(f) : new ii(f);
|
|
3046
3039
|
};
|
|
3047
|
-
class
|
|
3040
|
+
class oi {
|
|
3048
3041
|
constructor() {
|
|
3049
3042
|
this.subscriptions = [];
|
|
3050
3043
|
}
|
|
@@ -3069,12 +3062,12 @@ class ai {
|
|
|
3069
3062
|
this.subscriptions.length = 0;
|
|
3070
3063
|
}
|
|
3071
3064
|
}
|
|
3072
|
-
const
|
|
3073
|
-
function
|
|
3074
|
-
t ||
|
|
3065
|
+
const ns = /* @__PURE__ */ new Set();
|
|
3066
|
+
function ai(t, e, n) {
|
|
3067
|
+
t || ns.has(e) || (console.warn(e), n && console.warn(n), ns.add(e));
|
|
3075
3068
|
}
|
|
3076
|
-
const
|
|
3077
|
-
class
|
|
3069
|
+
const is = 30, Xc = (t) => !isNaN(parseFloat(t));
|
|
3070
|
+
class no {
|
|
3078
3071
|
/**
|
|
3079
3072
|
* @param init - The initiating value
|
|
3080
3073
|
* @param config - Optional configuration options
|
|
@@ -3084,7 +3077,7 @@ class io {
|
|
|
3084
3077
|
* @internal
|
|
3085
3078
|
*/
|
|
3086
3079
|
constructor(e, n = {}) {
|
|
3087
|
-
this.version = "11.3.
|
|
3080
|
+
this.version = "11.3.19", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (i, s = !0) => {
|
|
3088
3081
|
const o = gt.now();
|
|
3089
3082
|
this.updatedAt !== o && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(i), this.current !== this.prev && this.events.change && this.events.change.notify(this.current), s && this.events.renderRequest && this.events.renderRequest.notify(this.current);
|
|
3090
3083
|
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
|
|
@@ -3136,10 +3129,10 @@ class io {
|
|
|
3136
3129
|
* @deprecated
|
|
3137
3130
|
*/
|
|
3138
3131
|
onChange(e) {
|
|
3139
|
-
return process.env.NODE_ENV !== "production" &&
|
|
3132
|
+
return process.env.NODE_ENV !== "production" && ai(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", e);
|
|
3140
3133
|
}
|
|
3141
3134
|
on(e, n) {
|
|
3142
|
-
this.events[e] || (this.events[e] = new
|
|
3135
|
+
this.events[e] || (this.events[e] = new oi());
|
|
3143
3136
|
const i = this.events[e].add(n);
|
|
3144
3137
|
return e === "change" ? () => {
|
|
3145
3138
|
i(), M.read(() => {
|
|
@@ -3212,10 +3205,10 @@ class io {
|
|
|
3212
3205
|
*/
|
|
3213
3206
|
getVelocity() {
|
|
3214
3207
|
const e = gt.now();
|
|
3215
|
-
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt >
|
|
3208
|
+
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > is)
|
|
3216
3209
|
return 0;
|
|
3217
|
-
const n = Math.min(this.updatedAt - this.prevUpdatedAt,
|
|
3218
|
-
return
|
|
3210
|
+
const n = Math.min(this.updatedAt - this.prevUpdatedAt, is);
|
|
3211
|
+
return Wr(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
|
|
3219
3212
|
}
|
|
3220
3213
|
/**
|
|
3221
3214
|
* Registers a new animation to control this `MotionValue`. Only one
|
|
@@ -3269,7 +3262,7 @@ class io {
|
|
|
3269
3262
|
}
|
|
3270
3263
|
}
|
|
3271
3264
|
function le(t, e) {
|
|
3272
|
-
return new
|
|
3265
|
+
return new no(t, e);
|
|
3273
3266
|
}
|
|
3274
3267
|
function qc(t, e, n) {
|
|
3275
3268
|
t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, le(n));
|
|
@@ -3283,15 +3276,15 @@ function Zc(t, e) {
|
|
|
3283
3276
|
qc(t, r, a);
|
|
3284
3277
|
}
|
|
3285
3278
|
}
|
|
3286
|
-
function
|
|
3287
|
-
return t.getProps()[
|
|
3279
|
+
function io(t) {
|
|
3280
|
+
return t.getProps()[er];
|
|
3288
3281
|
}
|
|
3289
|
-
class Jc extends
|
|
3282
|
+
class Jc extends no {
|
|
3290
3283
|
constructor() {
|
|
3291
3284
|
super(...arguments), this.output = [], this.counts = /* @__PURE__ */ new Map();
|
|
3292
3285
|
}
|
|
3293
3286
|
add(e) {
|
|
3294
|
-
const n =
|
|
3287
|
+
const n = vr(e);
|
|
3295
3288
|
if (!n)
|
|
3296
3289
|
return;
|
|
3297
3290
|
const i = this.counts.get(n) || 0;
|
|
@@ -3324,7 +3317,7 @@ function tu({ protectedKeys: t, needsAnimating: e }, n) {
|
|
|
3324
3317
|
const i = t.hasOwnProperty(n) && e[n] !== !0;
|
|
3325
3318
|
return e[n] = !1, i;
|
|
3326
3319
|
}
|
|
3327
|
-
function
|
|
3320
|
+
function so(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
|
|
3328
3321
|
var o;
|
|
3329
3322
|
let { transition: r = t.getDefaultTransition(), transitionEnd: a, ...l } = e;
|
|
3330
3323
|
i && (r = i);
|
|
@@ -3336,17 +3329,17 @@ function ro(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
|
|
|
3336
3329
|
const g = {
|
|
3337
3330
|
delay: n,
|
|
3338
3331
|
elapsed: 0,
|
|
3339
|
-
...
|
|
3332
|
+
...qn(r || {}, f)
|
|
3340
3333
|
};
|
|
3341
3334
|
let P = !1;
|
|
3342
3335
|
if (window.HandoffAppearAnimations) {
|
|
3343
|
-
const x =
|
|
3336
|
+
const x = io(t);
|
|
3344
3337
|
if (x) {
|
|
3345
3338
|
const y = window.HandoffAppearAnimations(x, f, d, M);
|
|
3346
3339
|
y !== null && (g.elapsed = y, P = !0);
|
|
3347
3340
|
}
|
|
3348
3341
|
}
|
|
3349
|
-
d.start(
|
|
3342
|
+
d.start(ri(f, d, p, t.shouldReduceMotion && Pt.has(f) ? { type: !1 } : g, t, P, Sn(t, f)));
|
|
3350
3343
|
const b = d.animation;
|
|
3351
3344
|
b && c.push(b);
|
|
3352
3345
|
}
|
|
@@ -3361,7 +3354,7 @@ function Cn(t, e, n = {}) {
|
|
|
3361
3354
|
const s = We(t, e, n.type === "exit" ? (i = t.presenceContext) === null || i === void 0 ? void 0 : i.custom : void 0);
|
|
3362
3355
|
let { transition: o = t.getDefaultTransition() || {} } = s || {};
|
|
3363
3356
|
n.transitionOverride && (o = n.transitionOverride);
|
|
3364
|
-
const r = s ? () => Promise.all(
|
|
3357
|
+
const r = s ? () => Promise.all(so(t, s, n)) : () => Promise.resolve(), a = t.variantChildren && t.variantChildren.size ? (c = 0) => {
|
|
3365
3358
|
const { delayChildren: u = 0, staggerChildren: f, staggerDirection: d } = o;
|
|
3366
3359
|
return eu(t, e, u + c, f, d, n);
|
|
3367
3360
|
} : () => Promise.resolve(), { when: l } = o;
|
|
@@ -3393,7 +3386,7 @@ function iu(t, e, n = {}) {
|
|
|
3393
3386
|
i = Cn(t, e, n);
|
|
3394
3387
|
else {
|
|
3395
3388
|
const s = typeof e == "function" ? We(t, e, n.custom) : e;
|
|
3396
|
-
i = Promise.all(
|
|
3389
|
+
i = Promise.all(so(t, s, n));
|
|
3397
3390
|
}
|
|
3398
3391
|
return i.then(() => {
|
|
3399
3392
|
t.notify("AnimationComplete", e);
|
|
@@ -3404,7 +3397,7 @@ function ou(t) {
|
|
|
3404
3397
|
return (e) => Promise.all(e.map(({ animation: n, options: i }) => iu(t, n, i)));
|
|
3405
3398
|
}
|
|
3406
3399
|
function au(t) {
|
|
3407
|
-
let e = ou(t), n =
|
|
3400
|
+
let e = ou(t), n = ss(), i = !0;
|
|
3408
3401
|
const s = (l) => (c, u) => {
|
|
3409
3402
|
var f;
|
|
3410
3403
|
const d = We(t, u, l === "exit" ? (f = t.presenceContext) === null || f === void 0 ? void 0 : f.custom : void 0);
|
|
@@ -3448,7 +3441,7 @@ function au(t) {
|
|
|
3448
3441
|
if (p.hasOwnProperty(F))
|
|
3449
3442
|
continue;
|
|
3450
3443
|
let Mt = !1;
|
|
3451
|
-
gn(J) && gn(Dt) ? Mt = !
|
|
3444
|
+
gn(J) && gn(Dt) ? Mt = !Cr(J, Dt) : Mt = J !== Dt, Mt ? J != null ? it(F) : d.add(F) : J !== void 0 && d.has(F) ? it(F) : y.protectedKeys[F] = !0;
|
|
3452
3445
|
}
|
|
3453
3446
|
y.prevProp = v, y.prevResolvedValues = dt, y.isActive && (p = { ...p, ...dt }), i && t.blockInitialAnimation && (V = !1), V && (!L || G) && f.push(...H.map((F) => ({
|
|
3454
3447
|
animation: F,
|
|
@@ -3484,12 +3477,12 @@ function au(t) {
|
|
|
3484
3477
|
setAnimateFunction: o,
|
|
3485
3478
|
getState: () => n,
|
|
3486
3479
|
reset: () => {
|
|
3487
|
-
n =
|
|
3480
|
+
n = ss(), i = !0;
|
|
3488
3481
|
}
|
|
3489
3482
|
};
|
|
3490
3483
|
}
|
|
3491
3484
|
function lu(t, e) {
|
|
3492
|
-
return typeof e == "string" ? e !== t : Array.isArray(e) ? !
|
|
3485
|
+
return typeof e == "string" ? e !== t : Array.isArray(e) ? !Cr(e, t) : !1;
|
|
3493
3486
|
}
|
|
3494
3487
|
function bt(t = !1) {
|
|
3495
3488
|
return {
|
|
@@ -3499,7 +3492,7 @@ function bt(t = !1) {
|
|
|
3499
3492
|
prevResolvedValues: {}
|
|
3500
3493
|
};
|
|
3501
3494
|
}
|
|
3502
|
-
function
|
|
3495
|
+
function ss() {
|
|
3503
3496
|
return {
|
|
3504
3497
|
animate: bt(!0),
|
|
3505
3498
|
whileInView: bt(),
|
|
@@ -3566,12 +3559,12 @@ const hu = {
|
|
|
3566
3559
|
exit: {
|
|
3567
3560
|
Feature: fu
|
|
3568
3561
|
}
|
|
3569
|
-
},
|
|
3562
|
+
}, rs = (t, e) => Math.abs(t - e);
|
|
3570
3563
|
function du(t, e) {
|
|
3571
|
-
const n =
|
|
3564
|
+
const n = rs(t.x, e.x), i = rs(t.y, e.y);
|
|
3572
3565
|
return Math.sqrt(n ** 2 + i ** 2);
|
|
3573
3566
|
}
|
|
3574
|
-
class
|
|
3567
|
+
class ro {
|
|
3575
3568
|
constructor(e, n, { transformPagePoint: i, contextWindow: s, dragSnapToOrigin: o = !1 } = {}) {
|
|
3576
3569
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
|
|
3577
3570
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
@@ -3592,7 +3585,7 @@ class oo {
|
|
|
3592
3585
|
return;
|
|
3593
3586
|
const b = ln(f.type === "pointercancel" ? this.lastMoveEventInfo : an(d, this.transformPagePoint), this.history);
|
|
3594
3587
|
this.startEvent && p && p(f, b), g && g(f, b);
|
|
3595
|
-
}, !
|
|
3588
|
+
}, !xr(e))
|
|
3596
3589
|
return;
|
|
3597
3590
|
this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = i, this.contextWindow = s || window;
|
|
3598
3591
|
const r = Ue(e), a = an(r, this.transformPagePoint), { point: l } = a, { timestamp: c } = N;
|
|
@@ -3610,28 +3603,28 @@ class oo {
|
|
|
3610
3603
|
function an(t, e) {
|
|
3611
3604
|
return e ? { point: e(t.point) } : t;
|
|
3612
3605
|
}
|
|
3613
|
-
function
|
|
3606
|
+
function os(t, e) {
|
|
3614
3607
|
return { x: t.x - e.x, y: t.y - e.y };
|
|
3615
3608
|
}
|
|
3616
3609
|
function ln({ point: t }, e) {
|
|
3617
3610
|
return {
|
|
3618
3611
|
point: t,
|
|
3619
|
-
delta:
|
|
3620
|
-
offset:
|
|
3612
|
+
delta: os(t, oo(e)),
|
|
3613
|
+
offset: os(t, pu(e)),
|
|
3621
3614
|
velocity: mu(e, 0.1)
|
|
3622
3615
|
};
|
|
3623
3616
|
}
|
|
3624
3617
|
function pu(t) {
|
|
3625
3618
|
return t[0];
|
|
3626
3619
|
}
|
|
3627
|
-
function
|
|
3620
|
+
function oo(t) {
|
|
3628
3621
|
return t[t.length - 1];
|
|
3629
3622
|
}
|
|
3630
3623
|
function mu(t, e) {
|
|
3631
3624
|
if (t.length < 2)
|
|
3632
3625
|
return { x: 0, y: 0 };
|
|
3633
3626
|
let n = t.length - 1, i = null;
|
|
3634
|
-
const s =
|
|
3627
|
+
const s = oo(t);
|
|
3635
3628
|
for (; n >= 0 && (i = t[n], !(s.timestamp - i.timestamp > lt(e))); )
|
|
3636
3629
|
n--;
|
|
3637
3630
|
if (!i)
|
|
@@ -3645,35 +3638,35 @@ function mu(t, e) {
|
|
|
3645
3638
|
};
|
|
3646
3639
|
return r.x === 1 / 0 && (r.x = 0), r.y === 1 / 0 && (r.y = 0), r;
|
|
3647
3640
|
}
|
|
3648
|
-
const
|
|
3641
|
+
const ao = 1e-4, gu = 1 - ao, yu = 1 + ao, lo = 0.01, vu = 0 - lo, Pu = 0 + lo;
|
|
3649
3642
|
function X(t) {
|
|
3650
3643
|
return t.max - t.min;
|
|
3651
3644
|
}
|
|
3652
3645
|
function xu(t, e, n) {
|
|
3653
3646
|
return Math.abs(t - e) <= n;
|
|
3654
3647
|
}
|
|
3655
|
-
function
|
|
3648
|
+
function as(t, e, n, i = 0.5) {
|
|
3656
3649
|
t.origin = i, t.originPoint = j(e.min, e.max, t.origin), t.scale = X(n) / X(e), t.translate = j(n.min, n.max, t.origin) - t.originPoint, (t.scale >= gu && t.scale <= yu || isNaN(t.scale)) && (t.scale = 1), (t.translate >= vu && t.translate <= Pu || isNaN(t.translate)) && (t.translate = 0);
|
|
3657
3650
|
}
|
|
3658
3651
|
function ee(t, e, n, i) {
|
|
3659
|
-
|
|
3652
|
+
as(t.x, e.x, n.x, i ? i.originX : void 0), as(t.y, e.y, n.y, i ? i.originY : void 0);
|
|
3660
3653
|
}
|
|
3661
|
-
function
|
|
3654
|
+
function ls(t, e, n) {
|
|
3662
3655
|
t.min = n.min + e.min, t.max = t.min + X(e);
|
|
3663
3656
|
}
|
|
3664
3657
|
function Tu(t, e, n) {
|
|
3665
|
-
|
|
3658
|
+
ls(t.x, e.x, n.x), ls(t.y, e.y, n.y);
|
|
3666
3659
|
}
|
|
3667
|
-
function
|
|
3660
|
+
function cs(t, e, n) {
|
|
3668
3661
|
t.min = e.min - n.min, t.max = t.min + X(e);
|
|
3669
3662
|
}
|
|
3670
3663
|
function ne(t, e, n) {
|
|
3671
|
-
|
|
3664
|
+
cs(t.x, e.x, n.x), cs(t.y, e.y, n.y);
|
|
3672
3665
|
}
|
|
3673
3666
|
function bu(t, { min: e, max: n }, i) {
|
|
3674
3667
|
return e !== void 0 && t < e ? t = i ? j(e, t, i.min) : Math.max(t, e) : n !== void 0 && t > n && (t = i ? j(n, t, i.max) : Math.min(t, n)), t;
|
|
3675
3668
|
}
|
|
3676
|
-
function
|
|
3669
|
+
function us(t, e, n) {
|
|
3677
3670
|
return {
|
|
3678
3671
|
min: e !== void 0 ? t.min + e : void 0,
|
|
3679
3672
|
max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
|
|
@@ -3681,18 +3674,18 @@ function fs(t, e, n) {
|
|
|
3681
3674
|
}
|
|
3682
3675
|
function wu(t, { top: e, left: n, bottom: i, right: s }) {
|
|
3683
3676
|
return {
|
|
3684
|
-
x:
|
|
3685
|
-
y:
|
|
3677
|
+
x: us(t.x, n, s),
|
|
3678
|
+
y: us(t.y, e, i)
|
|
3686
3679
|
};
|
|
3687
3680
|
}
|
|
3688
|
-
function
|
|
3681
|
+
function fs(t, e) {
|
|
3689
3682
|
let n = e.min - t.min, i = e.max - t.max;
|
|
3690
3683
|
return e.max - e.min < t.max - t.min && ([n, i] = [i, n]), { min: n, max: i };
|
|
3691
3684
|
}
|
|
3692
3685
|
function Su(t, e) {
|
|
3693
3686
|
return {
|
|
3694
|
-
x:
|
|
3695
|
-
y:
|
|
3687
|
+
x: fs(t.x, e.x),
|
|
3688
|
+
y: fs(t.y, e.y)
|
|
3696
3689
|
};
|
|
3697
3690
|
}
|
|
3698
3691
|
function Cu(t, e) {
|
|
@@ -3707,35 +3700,35 @@ function Au(t, e) {
|
|
|
3707
3700
|
const An = 0.35;
|
|
3708
3701
|
function Ru(t = An) {
|
|
3709
3702
|
return t === !1 ? t = 0 : t === !0 && (t = An), {
|
|
3710
|
-
x:
|
|
3711
|
-
y:
|
|
3703
|
+
x: hs(t, "left", "right"),
|
|
3704
|
+
y: hs(t, "top", "bottom")
|
|
3712
3705
|
};
|
|
3713
3706
|
}
|
|
3714
|
-
function
|
|
3707
|
+
function hs(t, e, n) {
|
|
3715
3708
|
return {
|
|
3716
|
-
min:
|
|
3717
|
-
max:
|
|
3709
|
+
min: ds(t, e),
|
|
3710
|
+
max: ds(t, n)
|
|
3718
3711
|
};
|
|
3719
3712
|
}
|
|
3720
|
-
function
|
|
3713
|
+
function ds(t, e) {
|
|
3721
3714
|
return typeof t == "number" ? t : t[e] || 0;
|
|
3722
3715
|
}
|
|
3723
|
-
const
|
|
3716
|
+
const ps = () => ({
|
|
3724
3717
|
translate: 0,
|
|
3725
3718
|
scale: 1,
|
|
3726
3719
|
origin: 0,
|
|
3727
3720
|
originPoint: 0
|
|
3728
3721
|
}), _t = () => ({
|
|
3722
|
+
x: ps(),
|
|
3723
|
+
y: ps()
|
|
3724
|
+
}), ms = () => ({ min: 0, max: 0 }), B = () => ({
|
|
3729
3725
|
x: ms(),
|
|
3730
3726
|
y: ms()
|
|
3731
|
-
}), gs = () => ({ min: 0, max: 0 }), B = () => ({
|
|
3732
|
-
x: gs(),
|
|
3733
|
-
y: gs()
|
|
3734
3727
|
});
|
|
3735
3728
|
function et(t) {
|
|
3736
3729
|
return [t("x"), t("y")];
|
|
3737
3730
|
}
|
|
3738
|
-
function
|
|
3731
|
+
function co({ top: t, left: e, right: n, bottom: i }) {
|
|
3739
3732
|
return {
|
|
3740
3733
|
x: { min: e, max: n },
|
|
3741
3734
|
y: { min: t, max: i }
|
|
@@ -3762,28 +3755,28 @@ function Rn({ scale: t, scaleX: e, scaleY: n }) {
|
|
|
3762
3755
|
return !cn(t) || !cn(e) || !cn(n);
|
|
3763
3756
|
}
|
|
3764
3757
|
function St(t) {
|
|
3765
|
-
return Rn(t) ||
|
|
3758
|
+
return Rn(t) || uo(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
|
|
3766
3759
|
}
|
|
3767
|
-
function
|
|
3768
|
-
return
|
|
3760
|
+
function uo(t) {
|
|
3761
|
+
return gs(t.x) || gs(t.y);
|
|
3769
3762
|
}
|
|
3770
|
-
function
|
|
3763
|
+
function gs(t) {
|
|
3771
3764
|
return t && t !== "0%";
|
|
3772
3765
|
}
|
|
3773
3766
|
function Oe(t, e, n) {
|
|
3774
3767
|
const i = t - n, s = e * i;
|
|
3775
3768
|
return n + s;
|
|
3776
3769
|
}
|
|
3777
|
-
function
|
|
3770
|
+
function ys(t, e, n, i, s) {
|
|
3778
3771
|
return s !== void 0 && (t = Oe(t, s, i)), Oe(t, n, i) + e;
|
|
3779
3772
|
}
|
|
3780
3773
|
function Vn(t, e = 0, n = 1, i, s) {
|
|
3781
|
-
t.min =
|
|
3774
|
+
t.min = ys(t.min, e, n, i, s), t.max = ys(t.max, e, n, i, s);
|
|
3782
3775
|
}
|
|
3783
|
-
function
|
|
3776
|
+
function fo(t, { x: e, y: n }) {
|
|
3784
3777
|
Vn(t.x, e.translate, e.scale, e.originPoint), Vn(t.y, n.translate, n.scale, n.originPoint);
|
|
3785
3778
|
}
|
|
3786
|
-
const
|
|
3779
|
+
const vs = 0.999999999999, Ps = 1.0000000000001;
|
|
3787
3780
|
function Du(t, e, n, i = !1) {
|
|
3788
3781
|
const s = n.length;
|
|
3789
3782
|
if (!s)
|
|
@@ -3796,28 +3789,28 @@ function Du(t, e, n, i = !1) {
|
|
|
3796
3789
|
l && l.props.style && l.props.style.display === "contents" || (i && o.options.layoutScroll && o.scroll && o !== o.root && It(t, {
|
|
3797
3790
|
x: -o.scroll.offset.x,
|
|
3798
3791
|
y: -o.scroll.offset.y
|
|
3799
|
-
}), r && (e.x *= r.x.scale, e.y *= r.y.scale,
|
|
3792
|
+
}), r && (e.x *= r.x.scale, e.y *= r.y.scale, fo(t, r)), i && St(o.latestValues) && It(t, o.latestValues));
|
|
3800
3793
|
}
|
|
3801
|
-
e.x <
|
|
3794
|
+
e.x < Ps && e.x > vs && (e.x = 1), e.y < Ps && e.y > vs && (e.y = 1);
|
|
3802
3795
|
}
|
|
3803
3796
|
function Bt(t, e) {
|
|
3804
3797
|
t.min = t.min + e, t.max = t.max + e;
|
|
3805
3798
|
}
|
|
3806
|
-
function
|
|
3799
|
+
function xs(t, e, n, i, s = 0.5) {
|
|
3807
3800
|
const o = j(t.min, t.max, s);
|
|
3808
3801
|
Vn(t, e, n, o, i);
|
|
3809
3802
|
}
|
|
3810
3803
|
function It(t, e) {
|
|
3811
|
-
|
|
3804
|
+
xs(t.x, e.x, e.scaleX, e.scale, e.originX), xs(t.y, e.y, e.scaleY, e.scale, e.originY);
|
|
3812
3805
|
}
|
|
3813
|
-
function
|
|
3814
|
-
return
|
|
3806
|
+
function ho(t, e) {
|
|
3807
|
+
return co(Eu(t.getBoundingClientRect(), e));
|
|
3815
3808
|
}
|
|
3816
3809
|
function Mu(t, e, n) {
|
|
3817
|
-
const i =
|
|
3810
|
+
const i = ho(t, n), { scroll: s } = e;
|
|
3818
3811
|
return s && (Bt(i.x, s.offset.x), Bt(i.y, s.offset.y)), i;
|
|
3819
3812
|
}
|
|
3820
|
-
const
|
|
3813
|
+
const po = ({ current: t }) => t ? t.ownerDocument.defaultView : null, ku = /* @__PURE__ */ new WeakMap();
|
|
3821
3814
|
class Lu {
|
|
3822
3815
|
constructor(e) {
|
|
3823
3816
|
this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = B(), this.visualElement = e;
|
|
@@ -3832,7 +3825,7 @@ class Lu {
|
|
|
3832
3825
|
}, o = (u, f) => {
|
|
3833
3826
|
var d;
|
|
3834
3827
|
const { drag: p, dragPropagation: g, onDragStart: P } = this.getProps();
|
|
3835
|
-
if (p && !g && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock =
|
|
3828
|
+
if (p && !g && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = br(p), !this.openGlobalLock))
|
|
3836
3829
|
return;
|
|
3837
3830
|
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), et((x) => {
|
|
3838
3831
|
let y = this.getAxisMotionValue(x).get() || 0;
|
|
@@ -3861,7 +3854,7 @@ class Lu {
|
|
|
3861
3854
|
var f;
|
|
3862
3855
|
return this.getAnimationState(u) === "paused" && ((f = this.getAxisMotionValue(u).animation) === null || f === void 0 ? void 0 : f.play());
|
|
3863
3856
|
}), { dragSnapToOrigin: c } = this.getProps();
|
|
3864
|
-
this.panSession = new
|
|
3857
|
+
this.panSession = new ro(e, {
|
|
3865
3858
|
onSessionStart: s,
|
|
3866
3859
|
onStart: o,
|
|
3867
3860
|
onMove: r,
|
|
@@ -3870,7 +3863,7 @@ class Lu {
|
|
|
3870
3863
|
}, {
|
|
3871
3864
|
transformPagePoint: this.visualElement.getTransformPagePoint(),
|
|
3872
3865
|
dragSnapToOrigin: c,
|
|
3873
|
-
contextWindow:
|
|
3866
|
+
contextWindow: po(this.visualElement)
|
|
3874
3867
|
});
|
|
3875
3868
|
}
|
|
3876
3869
|
stop(e, n) {
|
|
@@ -3919,7 +3912,7 @@ class Lu {
|
|
|
3919
3912
|
let r = Su(s.layout.layoutBox, o);
|
|
3920
3913
|
if (n) {
|
|
3921
3914
|
const a = n(Vu(r));
|
|
3922
|
-
this.hasMutatedConstraints = !!a, a && (r =
|
|
3915
|
+
this.hasMutatedConstraints = !!a, a && (r = co(a));
|
|
3923
3916
|
}
|
|
3924
3917
|
return r;
|
|
3925
3918
|
}
|
|
@@ -3946,7 +3939,7 @@ class Lu {
|
|
|
3946
3939
|
}
|
|
3947
3940
|
startAxisValueAnimation(e, n) {
|
|
3948
3941
|
const i = this.getAxisMotionValue(e);
|
|
3949
|
-
return i.start(
|
|
3942
|
+
return i.start(ri(e, i, 0, n, this.visualElement, !1, Sn(this.visualElement, e)));
|
|
3950
3943
|
}
|
|
3951
3944
|
stopAnimation() {
|
|
3952
3945
|
et((e) => this.getAxisMotionValue(e).stop());
|
|
@@ -4065,7 +4058,7 @@ class ju extends xt {
|
|
|
4065
4058
|
this.removeGroupControls(), this.removeListeners();
|
|
4066
4059
|
}
|
|
4067
4060
|
}
|
|
4068
|
-
const
|
|
4061
|
+
const Ts = (t) => (e, n) => {
|
|
4069
4062
|
t && M.postRender(() => t(e, n));
|
|
4070
4063
|
};
|
|
4071
4064
|
class Fu extends xt {
|
|
@@ -4073,16 +4066,16 @@ class Fu extends xt {
|
|
|
4073
4066
|
super(...arguments), this.removePointerDownListener = W;
|
|
4074
4067
|
}
|
|
4075
4068
|
onPointerDown(e) {
|
|
4076
|
-
this.session = new
|
|
4069
|
+
this.session = new ro(e, this.createPanHandlers(), {
|
|
4077
4070
|
transformPagePoint: this.node.getTransformPagePoint(),
|
|
4078
|
-
contextWindow:
|
|
4071
|
+
contextWindow: po(this.node)
|
|
4079
4072
|
});
|
|
4080
4073
|
}
|
|
4081
4074
|
createPanHandlers() {
|
|
4082
4075
|
const { onPanSessionStart: e, onPanStart: n, onPan: i, onPanEnd: s } = this.node.getProps();
|
|
4083
4076
|
return {
|
|
4084
|
-
onSessionStart:
|
|
4085
|
-
onStart:
|
|
4077
|
+
onSessionStart: Ts(e),
|
|
4078
|
+
onStart: Ts(n),
|
|
4086
4079
|
onMove: i,
|
|
4087
4080
|
onEnd: (o, r) => {
|
|
4088
4081
|
delete this.session, s && M.postRender(() => s(o, r));
|
|
@@ -4120,7 +4113,7 @@ const Ae = {
|
|
|
4120
4113
|
*/
|
|
4121
4114
|
hasEverUpdated: !1
|
|
4122
4115
|
};
|
|
4123
|
-
function
|
|
4116
|
+
function bs(t, e) {
|
|
4124
4117
|
return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
|
|
4125
4118
|
}
|
|
4126
4119
|
const Xt = {
|
|
@@ -4132,7 +4125,7 @@ const Xt = {
|
|
|
4132
4125
|
t = parseFloat(t);
|
|
4133
4126
|
else
|
|
4134
4127
|
return t;
|
|
4135
|
-
const n =
|
|
4128
|
+
const n = bs(t, e.target.x), i = bs(t, e.target.y);
|
|
4136
4129
|
return `${n}% ${i}%`;
|
|
4137
4130
|
}
|
|
4138
4131
|
}, Bu = {
|
|
@@ -4146,7 +4139,7 @@ const Xt = {
|
|
|
4146
4139
|
return typeof s[2 + r] == "number" && (s[2 + r] /= c), typeof s[3 + r] == "number" && (s[3 + r] /= c), o(s);
|
|
4147
4140
|
}
|
|
4148
4141
|
};
|
|
4149
|
-
class Iu extends
|
|
4142
|
+
class Iu extends ea {
|
|
4150
4143
|
/**
|
|
4151
4144
|
* This only mounts projection nodes for components that
|
|
4152
4145
|
* need measuring, we might want to do it for all components
|
|
@@ -4154,7 +4147,7 @@ class Iu extends na {
|
|
|
4154
4147
|
*/
|
|
4155
4148
|
componentDidMount() {
|
|
4156
4149
|
const { visualElement: e, layoutGroup: n, switchLayoutGroup: i, layoutId: s } = this.props, { projection: o } = e;
|
|
4157
|
-
|
|
4150
|
+
ka(Nu), o && (n.group && n.group.add(o), i && i.register && s && i.register(o), o.root.didUpdate(), o.addEventListener("animationComplete", () => {
|
|
4158
4151
|
this.safeToRemove();
|
|
4159
4152
|
}), o.setOptions({
|
|
4160
4153
|
...o.options,
|
|
@@ -4186,9 +4179,9 @@ class Iu extends na {
|
|
|
4186
4179
|
return null;
|
|
4187
4180
|
}
|
|
4188
4181
|
}
|
|
4189
|
-
function
|
|
4182
|
+
function mo(t) {
|
|
4190
4183
|
const [e, n] = _u(), i = U(In);
|
|
4191
|
-
return O.jsx(Iu, { ...t, layoutGroup: i, switchLayoutGroup: U(
|
|
4184
|
+
return O.jsx(Iu, { ...t, layoutGroup: i, switchLayoutGroup: U(ir), isPresent: e, safeToRemove: n });
|
|
4192
4185
|
}
|
|
4193
4186
|
const Nu = {
|
|
4194
4187
|
borderRadius: {
|
|
@@ -4205,7 +4198,7 @@ const Nu = {
|
|
|
4205
4198
|
borderBottomLeftRadius: Xt,
|
|
4206
4199
|
borderBottomRightRadius: Xt,
|
|
4207
4200
|
boxShadow: Bu
|
|
4208
|
-
},
|
|
4201
|
+
}, go = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Uu = go.length, ws = (t) => typeof t == "string" ? parseFloat(t) : t, Ss = (t) => typeof t == "number" || S.test(t);
|
|
4209
4202
|
function Wu(t, e, n, i, s, o) {
|
|
4210
4203
|
s ? (t.opacity = j(
|
|
4211
4204
|
0,
|
|
@@ -4214,68 +4207,68 @@ function Wu(t, e, n, i, s, o) {
|
|
|
4214
4207
|
$u(i)
|
|
4215
4208
|
), t.opacityExit = j(e.opacity !== void 0 ? e.opacity : 1, 0, Ku(i))) : o && (t.opacity = j(e.opacity !== void 0 ? e.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, i));
|
|
4216
4209
|
for (let r = 0; r < Uu; r++) {
|
|
4217
|
-
const a = `border${
|
|
4218
|
-
let l =
|
|
4210
|
+
const a = `border${go[r]}Radius`;
|
|
4211
|
+
let l = Cs(e, a), c = Cs(n, a);
|
|
4219
4212
|
if (l === void 0 && c === void 0)
|
|
4220
4213
|
continue;
|
|
4221
|
-
l || (l = 0), c || (c = 0), l === 0 || c === 0 ||
|
|
4214
|
+
l || (l = 0), c || (c = 0), l === 0 || c === 0 || Ss(l) === Ss(c) ? (t[a] = Math.max(j(ws(l), ws(c), i), 0), (st.test(c) || st.test(l)) && (t[a] += "%")) : t[a] = c;
|
|
4222
4215
|
}
|
|
4223
4216
|
(e.rotate || n.rotate) && (t.rotate = j(e.rotate || 0, n.rotate || 0, i));
|
|
4224
4217
|
}
|
|
4225
|
-
function
|
|
4218
|
+
function Cs(t, e) {
|
|
4226
4219
|
return t[e] !== void 0 ? t[e] : t.borderRadius;
|
|
4227
4220
|
}
|
|
4228
|
-
const $u =
|
|
4229
|
-
function
|
|
4221
|
+
const $u = yo(0, 0.5, Xr), Ku = yo(0.5, 0.95, W);
|
|
4222
|
+
function yo(t, e, n) {
|
|
4230
4223
|
return (i) => i < t ? 0 : i > e ? 1 : n(ae(t, e, i));
|
|
4231
4224
|
}
|
|
4232
|
-
function
|
|
4225
|
+
function As(t, e) {
|
|
4233
4226
|
t.min = e.min, t.max = e.max;
|
|
4234
4227
|
}
|
|
4235
4228
|
function tt(t, e) {
|
|
4236
|
-
|
|
4229
|
+
As(t.x, e.x), As(t.y, e.y);
|
|
4237
4230
|
}
|
|
4238
|
-
function
|
|
4231
|
+
function Rs(t, e) {
|
|
4239
4232
|
t.translate = e.translate, t.scale = e.scale, t.originPoint = e.originPoint, t.origin = e.origin;
|
|
4240
4233
|
}
|
|
4241
|
-
function
|
|
4234
|
+
function Vs(t, e, n, i, s) {
|
|
4242
4235
|
return t -= e, t = Oe(t, 1 / n, i), s !== void 0 && (t = Oe(t, 1 / s, i)), t;
|
|
4243
4236
|
}
|
|
4244
4237
|
function Gu(t, e = 0, n = 1, i = 0.5, s, o = t, r = t) {
|
|
4245
4238
|
if (st.test(e) && (e = parseFloat(e), e = j(r.min, r.max, e / 100) - r.min), typeof e != "number")
|
|
4246
4239
|
return;
|
|
4247
4240
|
let a = j(o.min, o.max, i);
|
|
4248
|
-
t === o && (a -= e), t.min =
|
|
4241
|
+
t === o && (a -= e), t.min = Vs(t.min, e, n, a, s), t.max = Vs(t.max, e, n, a, s);
|
|
4249
4242
|
}
|
|
4250
|
-
function
|
|
4243
|
+
function Es(t, e, [n, i, s], o, r) {
|
|
4251
4244
|
Gu(t, e[n], e[i], e[s], e.scale, o, r);
|
|
4252
4245
|
}
|
|
4253
4246
|
const zu = ["x", "scaleX", "originX"], Hu = ["y", "scaleY", "originY"];
|
|
4254
|
-
function
|
|
4255
|
-
|
|
4247
|
+
function Ds(t, e, n, i) {
|
|
4248
|
+
Es(t.x, e, zu, n ? n.x : void 0, i ? i.x : void 0), Es(t.y, e, Hu, n ? n.y : void 0, i ? i.y : void 0);
|
|
4256
4249
|
}
|
|
4257
|
-
function
|
|
4250
|
+
function Ms(t) {
|
|
4258
4251
|
return t.translate === 0 && t.scale === 1;
|
|
4259
4252
|
}
|
|
4260
|
-
function
|
|
4261
|
-
return
|
|
4253
|
+
function vo(t) {
|
|
4254
|
+
return Ms(t.x) && Ms(t.y);
|
|
4262
4255
|
}
|
|
4263
|
-
function
|
|
4256
|
+
function ks(t, e) {
|
|
4264
4257
|
return t.min === e.min && t.max === e.max;
|
|
4265
4258
|
}
|
|
4266
4259
|
function Yu(t, e) {
|
|
4267
|
-
return
|
|
4260
|
+
return ks(t.x, e.x) && ks(t.y, e.y);
|
|
4268
4261
|
}
|
|
4269
|
-
function
|
|
4262
|
+
function Ls(t, e) {
|
|
4270
4263
|
return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
|
|
4271
4264
|
}
|
|
4272
|
-
function
|
|
4273
|
-
return
|
|
4265
|
+
function Po(t, e) {
|
|
4266
|
+
return Ls(t.x, e.x) && Ls(t.y, e.y);
|
|
4274
4267
|
}
|
|
4275
|
-
function
|
|
4268
|
+
function Os(t) {
|
|
4276
4269
|
return X(t.x) / X(t.y);
|
|
4277
4270
|
}
|
|
4278
|
-
function
|
|
4271
|
+
function js(t, e) {
|
|
4279
4272
|
return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
|
|
4280
4273
|
}
|
|
4281
4274
|
class Xu {
|
|
@@ -4369,26 +4362,26 @@ function tf(t) {
|
|
|
4369
4362
|
}
|
|
4370
4363
|
function ef(t, e, n) {
|
|
4371
4364
|
const i = K(t) ? t : le(t);
|
|
4372
|
-
return i.start(
|
|
4365
|
+
return i.start(ri("", i, e, n)), i.animation;
|
|
4373
4366
|
}
|
|
4374
4367
|
const Ct = {
|
|
4375
4368
|
type: "projectionFrame",
|
|
4376
4369
|
totalNodes: 0,
|
|
4377
4370
|
resolvedTargetDeltas: 0,
|
|
4378
4371
|
recalculatedProjection: 0
|
|
4379
|
-
}, Zt = typeof window < "u" && window.MotionDebug !== void 0, un = ["", "X", "Y", "Z"], nf = { visibility: "hidden" },
|
|
4372
|
+
}, Zt = typeof window < "u" && window.MotionDebug !== void 0, un = ["", "X", "Y", "Z"], nf = { visibility: "hidden" }, Fs = 1e3;
|
|
4380
4373
|
let sf = 0;
|
|
4381
4374
|
function fn(t, e, n, i) {
|
|
4382
4375
|
const { latestValues: s } = e;
|
|
4383
4376
|
s[t] && (n[t] = s[t], e.setStaticValue(t, 0), i && (i[t] = 0));
|
|
4384
4377
|
}
|
|
4385
|
-
function
|
|
4378
|
+
function xo(t) {
|
|
4386
4379
|
if (t.hasCheckedOptimisedAppear = !0, t.root === t)
|
|
4387
4380
|
return !1;
|
|
4388
4381
|
const { visualElement: e } = t.options;
|
|
4389
|
-
return e ?
|
|
4382
|
+
return e ? io(e) ? !0 : t.parent && !t.parent.hasCheckedOptimisedAppear ? xo(t.parent) : !1 : !1;
|
|
4390
4383
|
}
|
|
4391
|
-
function
|
|
4384
|
+
function To({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: i, resetTransform: s }) {
|
|
4392
4385
|
return class {
|
|
4393
4386
|
constructor(r = {}, a = e == null ? void 0 : e()) {
|
|
4394
4387
|
this.id = sf++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
|
@@ -4401,7 +4394,7 @@ function bo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4401
4394
|
this.root === this && (this.nodes = new Ju());
|
|
4402
4395
|
}
|
|
4403
4396
|
addEventListener(r, a) {
|
|
4404
|
-
return this.eventHandlers.has(r) || this.eventHandlers.set(r, new
|
|
4397
|
+
return this.eventHandlers.has(r) || this.eventHandlers.set(r, new oi()), this.eventHandlers.get(r).add(a);
|
|
4405
4398
|
}
|
|
4406
4399
|
notifyListeners(r, ...a) {
|
|
4407
4400
|
const l = this.eventHandlers.get(r);
|
|
@@ -4422,7 +4415,7 @@ function bo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4422
4415
|
let f;
|
|
4423
4416
|
const d = () => this.root.updateBlockedByResize = !1;
|
|
4424
4417
|
t(r, () => {
|
|
4425
|
-
this.root.updateBlockedByResize = !0, f && f(), f = Qu(d, 250), Ae.hasAnimatedSinceResize && (Ae.hasAnimatedSinceResize = !1, this.nodes.forEach(
|
|
4418
|
+
this.root.updateBlockedByResize = !0, f && f(), f = Qu(d, 250), Ae.hasAnimatedSinceResize && (Ae.hasAnimatedSinceResize = !1, this.nodes.forEach(Bs));
|
|
4426
4419
|
});
|
|
4427
4420
|
}
|
|
4428
4421
|
l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: f, hasLayoutChanged: d, hasRelativeTargetChanged: p, layout: g }) => {
|
|
@@ -4430,17 +4423,17 @@ function bo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4430
4423
|
this.target = void 0, this.relativeTarget = void 0;
|
|
4431
4424
|
return;
|
|
4432
4425
|
}
|
|
4433
|
-
const P = this.options.transition || u.getDefaultTransition() || vf, { onLayoutAnimationStart: b, onLayoutAnimationComplete: x } = u.getProps(), y = !this.targetLayout || !
|
|
4426
|
+
const P = this.options.transition || u.getDefaultTransition() || vf, { onLayoutAnimationStart: b, onLayoutAnimationComplete: x } = u.getProps(), y = !this.targetLayout || !Po(this.targetLayout, g) || p, v = !d && p;
|
|
4434
4427
|
if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || v || d && (y || !this.currentAnimation)) {
|
|
4435
4428
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(f, v);
|
|
4436
4429
|
const C = {
|
|
4437
|
-
...
|
|
4430
|
+
...qn(P, "layout"),
|
|
4438
4431
|
onPlay: b,
|
|
4439
4432
|
onComplete: x
|
|
4440
4433
|
};
|
|
4441
4434
|
(u.shouldReduceMotion || this.options.layoutRoot) && (C.delay = 0, C.type = !1), this.startAnimation(C);
|
|
4442
4435
|
} else
|
|
4443
|
-
d ||
|
|
4436
|
+
d || Bs(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
4444
4437
|
this.targetLayout = g;
|
|
4445
4438
|
});
|
|
4446
4439
|
}
|
|
@@ -4475,7 +4468,7 @@ function bo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4475
4468
|
this.options.onExitComplete && this.options.onExitComplete();
|
|
4476
4469
|
return;
|
|
4477
4470
|
}
|
|
4478
|
-
if (window.HandoffCancelAllAnimations &&
|
|
4471
|
+
if (window.HandoffCancelAllAnimations && xo(this) && window.HandoffCancelAllAnimations(), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
|
|
4479
4472
|
return;
|
|
4480
4473
|
this.isLayoutDirty = !0;
|
|
4481
4474
|
for (let u = 0; u < this.path.length; u++) {
|
|
@@ -4490,7 +4483,7 @@ function bo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4490
4483
|
}
|
|
4491
4484
|
update() {
|
|
4492
4485
|
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
|
|
4493
|
-
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(
|
|
4486
|
+
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(_s);
|
|
4494
4487
|
return;
|
|
4495
4488
|
}
|
|
4496
4489
|
this.isUpdating || this.nodes.forEach(uf), this.isUpdating = !1, this.nodes.forEach(ff), this.nodes.forEach(rf), this.nodes.forEach(of), this.clearAllSnapshots();
|
|
@@ -4544,7 +4537,7 @@ function bo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4544
4537
|
resetTransform() {
|
|
4545
4538
|
if (!s)
|
|
4546
4539
|
return;
|
|
4547
|
-
const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !
|
|
4540
|
+
const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !vo(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
|
|
4548
4541
|
r && (a || St(this.latestValues) || u) && (s(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender());
|
|
4549
4542
|
}
|
|
4550
4543
|
measure(r = !0) {
|
|
@@ -4602,9 +4595,9 @@ function bo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4602
4595
|
continue;
|
|
4603
4596
|
Rn(c.latestValues) && c.updateSnapshot();
|
|
4604
4597
|
const u = B(), f = c.measurePageBox();
|
|
4605
|
-
tt(u, f),
|
|
4598
|
+
tt(u, f), Ds(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
|
|
4606
4599
|
}
|
|
4607
|
-
return St(this.latestValues) &&
|
|
4600
|
+
return St(this.latestValues) && Ds(a, this.latestValues), a;
|
|
4608
4601
|
}
|
|
4609
4602
|
setTargetDelta(r) {
|
|
4610
4603
|
this.targetDelta = r, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
@@ -4636,7 +4629,7 @@ function bo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4636
4629
|
p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = B(), this.relativeTargetOrigin = B(), ne(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), tt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
4637
4630
|
}
|
|
4638
4631
|
if (!(!this.relativeTarget && !this.targetDelta)) {
|
|
4639
|
-
if (this.target || (this.target = B(), this.targetWithTransforms = B()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Tu(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : tt(this.target, this.layout.layoutBox),
|
|
4632
|
+
if (this.target || (this.target = B(), this.targetWithTransforms = B()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Tu(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : tt(this.target, this.layout.layoutBox), fo(this.target, this.targetDelta)) : tt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
|
|
4640
4633
|
this.attemptToResolveRelativeTarget = !1;
|
|
4641
4634
|
const p = this.getClosestProjectingParent();
|
|
4642
4635
|
p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = B(), this.relativeTargetOrigin = B(), ne(this.relativeTargetOrigin, this.target, p.target), tt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
@@ -4646,7 +4639,7 @@ function bo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4646
4639
|
}
|
|
4647
4640
|
}
|
|
4648
4641
|
getClosestProjectingParent() {
|
|
4649
|
-
if (!(!this.parent || Rn(this.parent.latestValues) ||
|
|
4642
|
+
if (!(!this.parent || Rn(this.parent.latestValues) || uo(this.parent.latestValues)))
|
|
4650
4643
|
return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
|
|
4651
4644
|
}
|
|
4652
4645
|
isProjecting() {
|
|
@@ -4669,7 +4662,7 @@ function bo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4669
4662
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
4670
4663
|
return;
|
|
4671
4664
|
}
|
|
4672
|
-
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (
|
|
4665
|
+
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Rs(this.prevProjectionDelta.x, this.projectionDelta.x), Rs(this.prevProjectionDelta.y, this.projectionDelta.y)), ee(this.projectionDelta, this.layoutCorrected, g, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== p || !js(this.projectionDelta.x, this.prevProjectionDelta.x) || !js(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", g)), Zt && Ct.recalculatedProjection++;
|
|
4673
4666
|
}
|
|
4674
4667
|
hide() {
|
|
4675
4668
|
this.isVisible = !1;
|
|
@@ -4696,12 +4689,12 @@ function bo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4696
4689
|
let v;
|
|
4697
4690
|
this.mixTargetDelta = (C) => {
|
|
4698
4691
|
const w = C / 1e3;
|
|
4699
|
-
|
|
4692
|
+
Is(f.x, r.x, w), Is(f.y, r.y, w), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ne(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), gf(this.relativeTarget, this.relativeTargetOrigin, d, w), v && Yu(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v = B()), tt(v, this.relativeTarget)), P && (this.animationValues = u, Wu(u, c, this.latestValues, w, y, x)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = w;
|
|
4700
4693
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
4701
4694
|
}
|
|
4702
4695
|
startAnimation(r) {
|
|
4703
4696
|
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (ht(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = M.update(() => {
|
|
4704
|
-
Ae.hasAnimatedSinceResize = !0, this.currentAnimation = ef(0,
|
|
4697
|
+
Ae.hasAnimatedSinceResize = !0, this.currentAnimation = ef(0, Fs, {
|
|
4705
4698
|
...r,
|
|
4706
4699
|
onUpdate: (a) => {
|
|
4707
4700
|
this.mixTargetDelta(a), r.onUpdate && r.onUpdate(a);
|
|
@@ -4718,13 +4711,13 @@ function bo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4718
4711
|
r && r.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
|
|
4719
4712
|
}
|
|
4720
4713
|
finishAnimation() {
|
|
4721
|
-
this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(
|
|
4714
|
+
this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Fs), this.currentAnimation.stop()), this.completeAnimation();
|
|
4722
4715
|
}
|
|
4723
4716
|
applyTransformsToTarget() {
|
|
4724
4717
|
const r = this.getLead();
|
|
4725
4718
|
let { targetWithTransforms: a, target: l, layout: c, latestValues: u } = r;
|
|
4726
4719
|
if (!(!a || !l || !c)) {
|
|
4727
|
-
if (this !== r && this.layout && c &&
|
|
4720
|
+
if (this !== r && this.layout && c && bo(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
|
|
4728
4721
|
l = this.target || B();
|
|
4729
4722
|
const f = X(this.layout.layoutBox.x);
|
|
4730
4723
|
l.x.min = r.target.x.min, l.x.max = l.x.min + f;
|
|
@@ -4827,7 +4820,7 @@ function bo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4827
4820
|
this.root.nodes.forEach((r) => {
|
|
4828
4821
|
var a;
|
|
4829
4822
|
return (a = r.currentAnimation) === null || a === void 0 ? void 0 : a.stop();
|
|
4830
|
-
}), this.root.nodes.forEach(
|
|
4823
|
+
}), this.root.nodes.forEach(_s), this.root.sharedNodes.clear();
|
|
4831
4824
|
}
|
|
4832
4825
|
};
|
|
4833
4826
|
}
|
|
@@ -4842,7 +4835,7 @@ function of(t) {
|
|
|
4842
4835
|
o === "size" ? et((f) => {
|
|
4843
4836
|
const d = r ? n.measuredBox[f] : n.layoutBox[f], p = X(d);
|
|
4844
4837
|
d.min = i[f].min, d.max = d.min + p;
|
|
4845
|
-
}) :
|
|
4838
|
+
}) : bo(o, n.layoutBox, i) && et((f) => {
|
|
4846
4839
|
const d = r ? n.measuredBox[f] : n.layoutBox[f], p = X(i[f]);
|
|
4847
4840
|
d.max = d.min + p, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[f].max = t.relativeTarget[f].min + p);
|
|
4848
4841
|
});
|
|
@@ -4850,7 +4843,7 @@ function of(t) {
|
|
|
4850
4843
|
ee(a, i, n.layoutBox);
|
|
4851
4844
|
const l = _t();
|
|
4852
4845
|
r ? ee(l, t.applyTransform(s, !0), n.measuredBox) : ee(l, i, n.layoutBox);
|
|
4853
|
-
const c = !
|
|
4846
|
+
const c = !vo(a);
|
|
4854
4847
|
let u = !1;
|
|
4855
4848
|
if (!t.resumeFrom) {
|
|
4856
4849
|
const f = t.getClosestProjectingParent();
|
|
@@ -4860,7 +4853,7 @@ function of(t) {
|
|
|
4860
4853
|
const g = B();
|
|
4861
4854
|
ne(g, n.layoutBox, d.layoutBox);
|
|
4862
4855
|
const P = B();
|
|
4863
|
-
ne(P, i, p.layoutBox),
|
|
4856
|
+
ne(P, i, p.layoutBox), Po(g, P) || (u = !0), f.options.layoutRoot && (t.relativeTarget = P, t.relativeTargetOrigin = g, t.relativeParent = f);
|
|
4864
4857
|
}
|
|
4865
4858
|
}
|
|
4866
4859
|
}
|
|
@@ -4887,7 +4880,7 @@ function lf(t) {
|
|
|
4887
4880
|
function cf(t) {
|
|
4888
4881
|
t.clearSnapshot();
|
|
4889
4882
|
}
|
|
4890
|
-
function
|
|
4883
|
+
function _s(t) {
|
|
4891
4884
|
t.clearMeasurements();
|
|
4892
4885
|
}
|
|
4893
4886
|
function uf(t) {
|
|
@@ -4897,7 +4890,7 @@ function ff(t) {
|
|
|
4897
4890
|
const { visualElement: e } = t.options;
|
|
4898
4891
|
e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
|
|
4899
4892
|
}
|
|
4900
|
-
function
|
|
4893
|
+
function Bs(t) {
|
|
4901
4894
|
t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
|
|
4902
4895
|
}
|
|
4903
4896
|
function hf(t) {
|
|
@@ -4912,14 +4905,14 @@ function pf(t) {
|
|
|
4912
4905
|
function mf(t) {
|
|
4913
4906
|
t.removeLeadSnapshot();
|
|
4914
4907
|
}
|
|
4915
|
-
function
|
|
4908
|
+
function Is(t, e, n) {
|
|
4916
4909
|
t.translate = j(e.translate, 0, n), t.scale = j(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
|
|
4917
4910
|
}
|
|
4918
|
-
function
|
|
4911
|
+
function Ns(t, e, n, i) {
|
|
4919
4912
|
t.min = j(e.min, n.min, i), t.max = j(e.max, n.max, i);
|
|
4920
4913
|
}
|
|
4921
4914
|
function gf(t, e, n, i) {
|
|
4922
|
-
|
|
4915
|
+
Ns(t.x, e.x, n.x, i), Ns(t.y, e.y, n.y, i);
|
|
4923
4916
|
}
|
|
4924
4917
|
function yf(t) {
|
|
4925
4918
|
return t.animationValues && t.animationValues.opacityExit !== void 0;
|
|
@@ -4927,21 +4920,21 @@ function yf(t) {
|
|
|
4927
4920
|
const vf = {
|
|
4928
4921
|
duration: 0.45,
|
|
4929
4922
|
ease: [0.4, 0, 0.1, 1]
|
|
4930
|
-
},
|
|
4931
|
-
function
|
|
4932
|
-
t.min =
|
|
4923
|
+
}, Us = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Ws = Us("applewebkit/") && !Us("chrome/") ? Math.round : W;
|
|
4924
|
+
function $s(t) {
|
|
4925
|
+
t.min = Ws(t.min), t.max = Ws(t.max);
|
|
4933
4926
|
}
|
|
4934
4927
|
function Pf(t) {
|
|
4935
|
-
|
|
4928
|
+
$s(t.x), $s(t.y);
|
|
4936
4929
|
}
|
|
4937
|
-
function
|
|
4938
|
-
return t === "position" || t === "preserve-aspect" && !xu(
|
|
4930
|
+
function bo(t, e, n) {
|
|
4931
|
+
return t === "position" || t === "preserve-aspect" && !xu(Os(e), Os(n), 0.2);
|
|
4939
4932
|
}
|
|
4940
4933
|
function xf(t) {
|
|
4941
4934
|
var e;
|
|
4942
4935
|
return t !== t.root && ((e = t.scroll) === null || e === void 0 ? void 0 : e.wasRoot);
|
|
4943
4936
|
}
|
|
4944
|
-
const Tf =
|
|
4937
|
+
const Tf = To({
|
|
4945
4938
|
attachResizeListener: (t, e) => rt(t, "resize", e),
|
|
4946
4939
|
measureScroll: () => ({
|
|
4947
4940
|
x: document.documentElement.scrollLeft || document.body.scrollLeft,
|
|
@@ -4950,7 +4943,7 @@ const Tf = bo({
|
|
|
4950
4943
|
checkIsScrollRoot: () => !0
|
|
4951
4944
|
}), hn = {
|
|
4952
4945
|
current: void 0
|
|
4953
|
-
},
|
|
4946
|
+
}, wo = To({
|
|
4954
4947
|
measureScroll: (t) => ({
|
|
4955
4948
|
x: t.scrollLeft,
|
|
4956
4949
|
y: t.scrollTop
|
|
@@ -4972,12 +4965,12 @@ const Tf = bo({
|
|
|
4972
4965
|
},
|
|
4973
4966
|
drag: {
|
|
4974
4967
|
Feature: ju,
|
|
4975
|
-
ProjectionNode:
|
|
4976
|
-
MeasureLayout:
|
|
4968
|
+
ProjectionNode: wo,
|
|
4969
|
+
MeasureLayout: mo
|
|
4977
4970
|
}
|
|
4978
|
-
}, En = { current: null },
|
|
4971
|
+
}, En = { current: null }, So = { current: !1 };
|
|
4979
4972
|
function wf() {
|
|
4980
|
-
if (
|
|
4973
|
+
if (So.current = !0, !!jn)
|
|
4981
4974
|
if (window.matchMedia) {
|
|
4982
4975
|
const t = window.matchMedia("(prefers-reduced-motion)"), e = () => En.current = t.matches;
|
|
4983
4976
|
t.addListener(e), e();
|
|
@@ -4988,7 +4981,7 @@ function Sf(t, e, n) {
|
|
|
4988
4981
|
for (const i in e) {
|
|
4989
4982
|
const s = e[i], o = n[i];
|
|
4990
4983
|
if (K(s))
|
|
4991
|
-
t.addValue(i, s), process.env.NODE_ENV === "development" &&
|
|
4984
|
+
t.addValue(i, s), process.env.NODE_ENV === "development" && ai(s.version === "11.3.19", `Attempting to mix Framer Motion versions ${s.version} with 11.3.19 may not work as expected.`);
|
|
4992
4985
|
else if (K(o))
|
|
4993
4986
|
t.addValue(i, le(s, { owner: t }));
|
|
4994
4987
|
else if (o !== s)
|
|
@@ -5004,7 +4997,7 @@ function Sf(t, e, n) {
|
|
|
5004
4997
|
e[i] === void 0 && t.removeValue(i);
|
|
5005
4998
|
return e;
|
|
5006
4999
|
}
|
|
5007
|
-
const
|
|
5000
|
+
const Ks = /* @__PURE__ */ new WeakMap(), Cf = [...Dr, $, vt], Af = (t) => Cf.find(Er(t)), Gs = [
|
|
5008
5001
|
"AnimationStart",
|
|
5009
5002
|
"AnimationComplete",
|
|
5010
5003
|
"Update",
|
|
@@ -5025,13 +5018,13 @@ class Vf {
|
|
|
5025
5018
|
return {};
|
|
5026
5019
|
}
|
|
5027
5020
|
constructor({ parent: e, props: n, presenceContext: i, reducedMotionConfig: s, blockInitialAnimation: o, visualState: r }, a = {}) {
|
|
5028
|
-
this.applyWillChange = !1, this.resolveKeyframes = (d, p, g, P) => new this.KeyframeResolver(d, p, g, P, this), this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver =
|
|
5021
|
+
this.applyWillChange = !1, this.resolveKeyframes = (d, p, g, P) => new this.KeyframeResolver(d, p, g, P, this), this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Zn, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
5029
5022
|
this.isRenderScheduled = !1, this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
5030
5023
|
}, this.isRenderScheduled = !1, this.scheduleRender = () => {
|
|
5031
5024
|
this.isRenderScheduled || (this.isRenderScheduled = !0, M.render(this.render, !1, !0));
|
|
5032
5025
|
};
|
|
5033
5026
|
const { latestValues: l, renderState: c } = r;
|
|
5034
|
-
this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = c, this.parent = e, this.props = n, this.presenceContext = i, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = s, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = Be(n), this.isVariantNode =
|
|
5027
|
+
this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = c, this.parent = e, this.props = n, this.presenceContext = i, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = s, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = Be(n), this.isVariantNode = rr(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
|
|
5035
5028
|
const { willChange: u, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
|
|
5036
5029
|
for (const d in f) {
|
|
5037
5030
|
const p = f[d];
|
|
@@ -5039,10 +5032,10 @@ class Vf {
|
|
|
5039
5032
|
}
|
|
5040
5033
|
}
|
|
5041
5034
|
mount(e) {
|
|
5042
|
-
this.current = e,
|
|
5035
|
+
this.current = e, Ks.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, i) => this.bindToMotionValue(i, n)), So.current || wf(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : En.current, process.env.NODE_ENV !== "production" && ai(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
|
|
5043
5036
|
}
|
|
5044
5037
|
unmount() {
|
|
5045
|
-
|
|
5038
|
+
Ks.delete(this.current), this.projection && this.projection.unmount(), ht(this.notifyUpdate), ht(this.render), this.valueSubscriptions.forEach((e) => e()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
|
|
5046
5039
|
for (const e in this.events)
|
|
5047
5040
|
this.events[e].clear();
|
|
5048
5041
|
for (const e in this.features) {
|
|
@@ -5098,8 +5091,8 @@ class Vf {
|
|
|
5098
5091
|
*/
|
|
5099
5092
|
update(e, n) {
|
|
5100
5093
|
(e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
|
|
5101
|
-
for (let i = 0; i <
|
|
5102
|
-
const s =
|
|
5094
|
+
for (let i = 0; i < Gs.length; i++) {
|
|
5095
|
+
const s = Gs[i];
|
|
5103
5096
|
this.propEventSubscriptions[s] && (this.propEventSubscriptions[s](), delete this.propEventSubscriptions[s]);
|
|
5104
5097
|
const o = "on" + s, r = e[o];
|
|
5105
5098
|
r && (this.propEventSubscriptions[s] = this.on(s, r));
|
|
@@ -5184,7 +5177,7 @@ class Vf {
|
|
|
5184
5177
|
readValue(e, n) {
|
|
5185
5178
|
var i;
|
|
5186
5179
|
let s = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : (i = this.getBaseTargetFromProps(this.props, e)) !== null && i !== void 0 ? i : this.readValueFromInstance(this.current, e, this.options);
|
|
5187
|
-
return s != null && (typeof s == "string" && (
|
|
5180
|
+
return s != null && (typeof s == "string" && (Rr(s) || Ar(s)) ? s = parseFloat(s) : !Af(s) && vt.test(n) && (s = Br(e, n)), this.setBaseTarget(e, K(s) ? s.get() : s)), K(s) ? s.get() : s;
|
|
5188
5181
|
}
|
|
5189
5182
|
/**
|
|
5190
5183
|
* Set the base target to later animate back to. This is currently
|
|
@@ -5202,7 +5195,7 @@ class Vf {
|
|
|
5202
5195
|
const { initial: i } = this.props;
|
|
5203
5196
|
let s;
|
|
5204
5197
|
if (typeof i == "string" || typeof i == "object") {
|
|
5205
|
-
const r =
|
|
5198
|
+
const r = Yn(this.props, i, (n = this.presenceContext) === null || n === void 0 ? void 0 : n.custom);
|
|
5206
5199
|
r && (s = r[e]);
|
|
5207
5200
|
}
|
|
5208
5201
|
if (i && s !== void 0)
|
|
@@ -5211,15 +5204,15 @@ class Vf {
|
|
|
5211
5204
|
return o !== void 0 && !K(o) ? o : this.initialValues[e] !== void 0 && s === void 0 ? void 0 : this.baseTarget[e];
|
|
5212
5205
|
}
|
|
5213
5206
|
on(e, n) {
|
|
5214
|
-
return this.events[e] || (this.events[e] = new
|
|
5207
|
+
return this.events[e] || (this.events[e] = new oi()), this.events[e].add(n);
|
|
5215
5208
|
}
|
|
5216
5209
|
notify(e, ...n) {
|
|
5217
5210
|
this.events[e] && this.events[e].notify(...n);
|
|
5218
5211
|
}
|
|
5219
5212
|
}
|
|
5220
|
-
class
|
|
5213
|
+
class Co extends Vf {
|
|
5221
5214
|
constructor() {
|
|
5222
|
-
super(...arguments), this.KeyframeResolver =
|
|
5215
|
+
super(...arguments), this.KeyframeResolver = Ir;
|
|
5223
5216
|
}
|
|
5224
5217
|
sortInstanceNodePosition(e, n) {
|
|
5225
5218
|
return e.compareDocumentPosition(n) & 2 ? 1 : -1;
|
|
@@ -5234,27 +5227,27 @@ class Ao extends Vf {
|
|
|
5234
5227
|
function Ef(t) {
|
|
5235
5228
|
return window.getComputedStyle(t);
|
|
5236
5229
|
}
|
|
5237
|
-
class Df extends
|
|
5230
|
+
class Df extends Co {
|
|
5238
5231
|
constructor() {
|
|
5239
|
-
super(...arguments), this.type = "html", this.applyWillChange = !0, this.renderInstance =
|
|
5232
|
+
super(...arguments), this.type = "html", this.applyWillChange = !0, this.renderInstance = dr;
|
|
5240
5233
|
}
|
|
5241
5234
|
readValueFromInstance(e, n) {
|
|
5242
5235
|
if (Pt.has(n)) {
|
|
5243
|
-
const i =
|
|
5236
|
+
const i = Qn(n);
|
|
5244
5237
|
return i && i.default || 0;
|
|
5245
5238
|
} else {
|
|
5246
|
-
const i = Ef(e), s = (
|
|
5239
|
+
const i = Ef(e), s = (lr(n) ? i.getPropertyValue(n) : i[n]) || 0;
|
|
5247
5240
|
return typeof s == "string" ? s.trim() : s;
|
|
5248
5241
|
}
|
|
5249
5242
|
}
|
|
5250
5243
|
measureInstanceViewportBox(e, { transformPagePoint: n }) {
|
|
5251
|
-
return
|
|
5244
|
+
return ho(e, n);
|
|
5252
5245
|
}
|
|
5253
5246
|
build(e, n, i) {
|
|
5254
|
-
|
|
5247
|
+
$n(e, n, i.transformTemplate);
|
|
5255
5248
|
}
|
|
5256
5249
|
scrapeMotionValuesFromProps(e, n, i) {
|
|
5257
|
-
return
|
|
5250
|
+
return Hn(e, n, i);
|
|
5258
5251
|
}
|
|
5259
5252
|
handleChildMotionValue() {
|
|
5260
5253
|
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
|
|
@@ -5264,7 +5257,7 @@ class Df extends Ao {
|
|
|
5264
5257
|
}));
|
|
5265
5258
|
}
|
|
5266
5259
|
}
|
|
5267
|
-
class Mf extends
|
|
5260
|
+
class Mf extends Co {
|
|
5268
5261
|
constructor() {
|
|
5269
5262
|
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = B;
|
|
5270
5263
|
}
|
|
@@ -5273,37 +5266,37 @@ class Mf extends Ao {
|
|
|
5273
5266
|
}
|
|
5274
5267
|
readValueFromInstance(e, n) {
|
|
5275
5268
|
if (Pt.has(n)) {
|
|
5276
|
-
const i =
|
|
5269
|
+
const i = Qn(n);
|
|
5277
5270
|
return i && i.default || 0;
|
|
5278
5271
|
}
|
|
5279
|
-
return n =
|
|
5272
|
+
return n = pr.has(n) ? n : _e(n), e.getAttribute(n);
|
|
5280
5273
|
}
|
|
5281
5274
|
scrapeMotionValuesFromProps(e, n, i) {
|
|
5282
|
-
return
|
|
5275
|
+
return gr(e, n, i);
|
|
5283
5276
|
}
|
|
5284
5277
|
build(e, n, i) {
|
|
5285
|
-
|
|
5278
|
+
Gn(e, n, this.isSVGTag, i.transformTemplate);
|
|
5286
5279
|
}
|
|
5287
5280
|
renderInstance(e, n, i, s) {
|
|
5288
|
-
|
|
5281
|
+
mr(e, n, i, s);
|
|
5289
5282
|
}
|
|
5290
5283
|
mount(e) {
|
|
5291
|
-
this.isSVGTag =
|
|
5284
|
+
this.isSVGTag = zn(e.tagName), super.mount(e);
|
|
5292
5285
|
}
|
|
5293
5286
|
}
|
|
5294
5287
|
const kf = (t, e) => Nn(t) ? new Mf(e) : new Df(e, {
|
|
5295
|
-
allowProjection: t !==
|
|
5288
|
+
allowProjection: t !== Zs
|
|
5296
5289
|
}), Lf = {
|
|
5297
5290
|
layout: {
|
|
5298
|
-
ProjectionNode:
|
|
5299
|
-
MeasureLayout:
|
|
5291
|
+
ProjectionNode: wo,
|
|
5292
|
+
MeasureLayout: mo
|
|
5300
5293
|
}
|
|
5301
5294
|
}, Of = {
|
|
5302
5295
|
...hu,
|
|
5303
5296
|
...bl,
|
|
5304
5297
|
...bf,
|
|
5305
5298
|
...Lf
|
|
5306
|
-
}, jf = /* @__PURE__ */
|
|
5299
|
+
}, jf = /* @__PURE__ */ Da((t, e) => cl(t, e, Of, kf));
|
|
5307
5300
|
class Ff extends Dn.Component {
|
|
5308
5301
|
getSnapshotBeforeUpdate(e) {
|
|
5309
5302
|
const n = this.props.childRef.current;
|
|
@@ -5329,7 +5322,7 @@ function _f({ children: t, isPresent: e }) {
|
|
|
5329
5322
|
top: 0,
|
|
5330
5323
|
left: 0
|
|
5331
5324
|
}), { nonce: o } = U(On);
|
|
5332
|
-
return
|
|
5325
|
+
return qs(() => {
|
|
5333
5326
|
const { width: r, height: a, top: l, left: c } = s.current;
|
|
5334
5327
|
if (e || !i.current || !r || !a)
|
|
5335
5328
|
return;
|
|
@@ -5349,7 +5342,7 @@ function _f({ children: t, isPresent: e }) {
|
|
|
5349
5342
|
}, [e]), O.jsx(Ff, { isPresent: e, childRef: i, sizeRef: s, children: Dn.cloneElement(t, { ref: i }) });
|
|
5350
5343
|
}
|
|
5351
5344
|
const Bf = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom: s, presenceAffectsLayout: o, mode: r }) => {
|
|
5352
|
-
const a =
|
|
5345
|
+
const a = Xn(If), l = kn(), c = Vt(
|
|
5353
5346
|
() => ({
|
|
5354
5347
|
id: l,
|
|
5355
5348
|
initial: e,
|
|
@@ -5381,16 +5374,16 @@ function If() {
|
|
|
5381
5374
|
return /* @__PURE__ */ new Map();
|
|
5382
5375
|
}
|
|
5383
5376
|
const we = (t) => t.key || "";
|
|
5384
|
-
function
|
|
5377
|
+
function zs(t) {
|
|
5385
5378
|
const e = [];
|
|
5386
|
-
return
|
|
5387
|
-
|
|
5379
|
+
return na.forEach(t, (n) => {
|
|
5380
|
+
ia(n) && e.push(n);
|
|
5388
5381
|
}), e;
|
|
5389
5382
|
}
|
|
5390
5383
|
const Nf = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExitComplete: s, presenceAffectsLayout: o = !0, mode: r = "sync" }) => {
|
|
5391
5384
|
ft(!e, "Replace exitBeforeEnter with mode='wait'");
|
|
5392
|
-
const a = Vt(() =>
|
|
5393
|
-
|
|
5385
|
+
const a = Vt(() => zs(t), [t]), l = a.map(we), c = nt(!0), u = nt(a), f = Xn(() => /* @__PURE__ */ new Map()), [d, p] = Jt(a), [g, P] = Jt(a);
|
|
5386
|
+
Qs(() => {
|
|
5394
5387
|
c.current = !1, u.current = a;
|
|
5395
5388
|
for (let y = 0; y < g.length; y++) {
|
|
5396
5389
|
const v = we(g[y]);
|
|
@@ -5404,7 +5397,7 @@ const Nf = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExi
|
|
|
5404
5397
|
const C = g[v], w = we(C);
|
|
5405
5398
|
l.includes(w) || (y.splice(v, 0, C), b.push(C));
|
|
5406
5399
|
}
|
|
5407
|
-
r === "wait" && b.length && (y = b), P(
|
|
5400
|
+
r === "wait" && b.length && (y = b), P(zs(y)), p(a);
|
|
5408
5401
|
return;
|
|
5409
5402
|
}
|
|
5410
5403
|
process.env.NODE_ENV !== "production" && r === "wait" && g.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
@@ -5427,22 +5420,22 @@ function Re(t) {
|
|
|
5427
5420
|
var e = new Error(t);
|
|
5428
5421
|
return e.source = "ulid", e;
|
|
5429
5422
|
}
|
|
5430
|
-
var
|
|
5423
|
+
var li = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", ie = li.length, Hs = Math.pow(2, 48) - 1, Uf = 10, Wf = 16;
|
|
5431
5424
|
function $f(t) {
|
|
5432
5425
|
var e = Math.floor(t() * ie);
|
|
5433
|
-
return e === ie && (e = ie - 1),
|
|
5426
|
+
return e === ie && (e = ie - 1), li.charAt(e);
|
|
5434
5427
|
}
|
|
5435
5428
|
function Kf(t, e) {
|
|
5436
5429
|
if (isNaN(t))
|
|
5437
5430
|
throw new Error(t + " must be a number");
|
|
5438
|
-
if (t >
|
|
5439
|
-
throw Re("cannot encode time greater than " +
|
|
5431
|
+
if (t > Hs)
|
|
5432
|
+
throw Re("cannot encode time greater than " + Hs);
|
|
5440
5433
|
if (t < 0)
|
|
5441
5434
|
throw Re("time must be positive");
|
|
5442
5435
|
if (Number.isInteger(t) === !1)
|
|
5443
5436
|
throw Re("time must be an integer");
|
|
5444
5437
|
for (var n = void 0, i = ""; e > 0; e--)
|
|
5445
|
-
n = t % ie, i =
|
|
5438
|
+
n = t % ie, i = li.charAt(n) + i, t = (t - n) / ie;
|
|
5446
5439
|
return i;
|
|
5447
5440
|
}
|
|
5448
5441
|
function Gf(t, e) {
|
|
@@ -5483,11 +5476,11 @@ function Hf(t) {
|
|
|
5483
5476
|
};
|
|
5484
5477
|
}
|
|
5485
5478
|
var Yf = Hf();
|
|
5486
|
-
const
|
|
5487
|
-
|
|
5488
|
-
}) => (ut(() => (document.addEventListener("
|
|
5489
|
-
document.removeEventListener("
|
|
5490
|
-
}), []), null),
|
|
5479
|
+
const Ys = ({
|
|
5480
|
+
onKeyUp: t
|
|
5481
|
+
}) => (ut(() => (document.addEventListener("keyup", t), () => {
|
|
5482
|
+
document.removeEventListener("keyup", t);
|
|
5483
|
+
}), []), null), Xs = ({
|
|
5491
5484
|
onMousedown: t
|
|
5492
5485
|
}) => (ut(() => (document.addEventListener("mousedown", t), () => {
|
|
5493
5486
|
document.removeEventListener("mousedown", t);
|
|
@@ -5535,7 +5528,7 @@ const Xs = ({
|
|
|
5535
5528
|
}
|
|
5536
5529
|
};
|
|
5537
5530
|
if (e.current && i.current) {
|
|
5538
|
-
i.current.style.
|
|
5531
|
+
i.current.style.visibility = "visible";
|
|
5539
5532
|
const o = new ResizeObserver(s);
|
|
5540
5533
|
return o.observe(i.current), () => {
|
|
5541
5534
|
o.disconnect();
|
|
@@ -5546,7 +5539,7 @@ const Xs = ({
|
|
|
5546
5539
|
{
|
|
5547
5540
|
ref: Qf(n, i),
|
|
5548
5541
|
transition: { type: "spring", duration: 0.2 },
|
|
5549
|
-
style: {
|
|
5542
|
+
style: { visibility: "hidden" },
|
|
5550
5543
|
className: eh.motionAnimationWrapper,
|
|
5551
5544
|
variants: nh.variants,
|
|
5552
5545
|
initial: "initial",
|
|
@@ -5597,7 +5590,7 @@ function fh(t, e) {
|
|
|
5597
5590
|
onChange: f
|
|
5598
5591
|
},
|
|
5599
5592
|
children: /* @__PURE__ */ O.jsxs("div", { className: dn.root, children: [
|
|
5600
|
-
/* @__PURE__ */ O.jsx("div", { ref: p, className: dn.mainEl,
|
|
5593
|
+
/* @__PURE__ */ O.jsx("div", { ref: p, className: dn.mainEl, onKeyUp: C, children: /* @__PURE__ */ O.jsx(
|
|
5601
5594
|
n,
|
|
5602
5595
|
{
|
|
5603
5596
|
...s,
|
|
@@ -5605,7 +5598,7 @@ function fh(t, e) {
|
|
|
5605
5598
|
}
|
|
5606
5599
|
) }),
|
|
5607
5600
|
/* @__PURE__ */ O.jsx(Nf, { children: r && /* @__PURE__ */ O.jsx(
|
|
5608
|
-
|
|
5601
|
+
Js,
|
|
5609
5602
|
{
|
|
5610
5603
|
id: `acrool-react-picker-${Yf().toLowerCase()}`,
|
|
5611
5604
|
className: dn.pickerEl,
|
|
@@ -5620,10 +5613,10 @@ function fh(t, e) {
|
|
|
5620
5613
|
}
|
|
5621
5614
|
) }),
|
|
5622
5615
|
r && /* @__PURE__ */ O.jsx(Xf, { onPickerHide: v }),
|
|
5623
|
-
r && /* @__PURE__ */ O.jsx(
|
|
5624
|
-
l && /* @__PURE__ */ O.jsx(
|
|
5625
|
-
l && /* @__PURE__ */ O.jsx(
|
|
5626
|
-
l && /* @__PURE__ */ O.jsx(
|
|
5616
|
+
r && /* @__PURE__ */ O.jsx(Xs, { onMousedown: y }),
|
|
5617
|
+
l && /* @__PURE__ */ O.jsx(Xs, { onMousedown: x }),
|
|
5618
|
+
l && /* @__PURE__ */ O.jsx(Ys, { onKeyUp: b }),
|
|
5619
|
+
l && /* @__PURE__ */ O.jsx(Ys, { onKeyUp: P })
|
|
5627
5620
|
] })
|
|
5628
5621
|
}
|
|
5629
5622
|
);
|