@devtron-labs/devtron-fe-common-lib 1.15.3-pre-4 → 1.16.0-beta-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.
- package/dist/{@code-editor-BqrKjHnF.js → @code-editor-DxJTBxC3.js} +6207 -6203
- package/dist/{@common-rjsf-BouEdO2I.js → @common-rjsf-BP_R1OLj.js} +6 -6
- package/dist/{@framer-motion-BhKAac90.js → @framer-motion-DAmKhMSi.js} +854 -784
- package/dist/{@moment-CGWt8tF2.js → @moment-C_WeV3Af.js} +1 -12
- package/dist/{@react-dates-CfRo6n5e.js → @react-dates-D5kydtW-.js} +2140 -2065
- package/dist/{@react-select-DNDV8S9D.js → @react-select-Cmser7OI.js} +6 -6
- package/dist/{@react-virtualized-sticky-tree-mXcyQzGx.js → @react-virtualized-sticky-tree-DMnFy9PE.js} +1 -1
- package/dist/{@vendor-CA9d7Ztm.js → @vendor-STJ9h0oI.js} +20458 -20720
- package/dist/Common/Tooltip/types.d.ts +1 -1
- package/dist/Common/Types.d.ts +2 -2
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +0 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +1 -1
- package/dist/Shared/Components/AppStatusModal/service.d.ts +1 -1
- package/dist/Shared/Components/AppStatusModal/types.d.ts +2 -1
- package/dist/Shared/Components/BulkOperations/types.d.ts +1 -1
- package/dist/Shared/Components/Button/types.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +2 -1
- package/dist/Shared/Components/CodeEditor/CodeEditor.constants.d.ts +1 -1
- package/dist/Shared/Components/DeploymentStatusBreakdown/constants.d.ts +2 -1
- package/dist/Shared/Components/DeploymentStatusBreakdown/utils.d.ts +2 -1
- package/dist/Shared/Components/DynamicDataTable/types.d.ts +1 -1
- package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
- package/dist/Shared/Components/GenericInfoCard/types.d.ts +1 -1
- package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +1 -1
- package/dist/Shared/Components/InvalidYAMLTippy/types.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +7 -7
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +1 -1
- package/dist/Shared/Components/Security/Vulnerabilities/types.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
- package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +1 -1
- package/dist/Shared/Components/Table/types.d.ts +1 -1
- package/dist/Shared/Components/TargetPlatforms/types.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/Helpers.d.ts +1 -1
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +2 -2
- package/dist/Shared/constants.d.ts +0 -1
- package/dist/Shared/types.d.ts +2 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.js +377 -376
- package/package.json +7 -6
- package/dist/Shared/Components/Badge/Badge.d.ts +0 -3
- package/dist/Shared/Components/Badge/index.d.ts +0 -2
- package/dist/Shared/Components/Badge/types.d.ts +0 -18
- package/dist/Shared/Components/Badge/utils.d.ts +0 -7
- package/dist/Shared/Components/Security/SeverityChip.d.ts +0 -6
@@ -1,7 +1,7 @@
|
|
1
|
-
import { ax as
|
2
|
-
import * as
|
3
|
-
import
|
4
|
-
var
|
1
|
+
import { ax as lt, ay as m, az as R, aA as Zr, aB as Le, aC as T, aD as at, aE as Gt, aF as oe, aG as $e, aH as Q, aI as $r, aJ as oi, aK as qr, aL as si, aM as ui, aN as li, aO as fi, aP as ci, aQ as Jr, aR as vi, aS as di, aT as pi, aU as hi, aV as mi, aW as gi, aX as yi, aY as Pt, aZ as X, a_ as he, a$ as Qr, b0 as bi, b1 as tn, b2 as z, b3 as Z, b4 as Pi, b5 as me, b6 as Ot, b7 as Vi, b8 as Ti, b9 as en, ba as Ft, bb as O, bc as ge, bd as Si, be as se, bf as xi, bg as Ci } from "./@vendor-STJ9h0oI.js";
|
2
|
+
import * as Y from "react";
|
3
|
+
import Re, { createContext as St, useContext as F, useLayoutEffect as Ai, useEffect as N, useState as Me, useRef as $, useCallback as ye, useMemo as Vt, forwardRef as wi, createElement as Ei, cloneElement as Li, Children as Ri, isValidElement as Mi } from "react";
|
4
|
+
var qe = "production", De = typeof process > "u" || process.env === void 0 ? qe : process.env.NODE_ENV || qe, tt = function(t) {
|
5
5
|
return {
|
6
6
|
isEnabled: function(e) {
|
7
7
|
return t.some(function(r) {
|
@@ -38,19 +38,19 @@ var Ze = "production", De = typeof process > "u" || process.env === void 0 ? Ze
|
|
38
38
|
"onViewportLeave"
|
39
39
|
])
|
40
40
|
};
|
41
|
-
function
|
41
|
+
function Di(t) {
|
42
42
|
for (var e in t)
|
43
43
|
t[e] !== null && (e === "projectionNodeConstructor" ? jt.projectionNodeConstructor = t[e] : jt[e].Component = t[e]);
|
44
44
|
}
|
45
|
-
var
|
46
|
-
function
|
47
|
-
var n = [], i = F(
|
45
|
+
var rn = St({ strict: !1 }), nn = Object.keys(jt), Ii = nn.length;
|
46
|
+
function Oi(t, e, r) {
|
47
|
+
var n = [], i = F(rn);
|
48
48
|
if (!e)
|
49
49
|
return null;
|
50
|
-
De !== "production" && r && i.strict &&
|
51
|
-
for (var s = 0; s <
|
52
|
-
var o =
|
53
|
-
u(t) && l && n.push(
|
50
|
+
De !== "production" && r && i.strict && lt(!1, "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");
|
51
|
+
for (var s = 0; s < Ii; s++) {
|
52
|
+
var o = nn[s], a = jt[o], u = a.isEnabled, l = a.Component;
|
53
|
+
u(t) && l && n.push(Y.createElement(l, m({ key: o }, t, { visualElement: e })));
|
54
54
|
}
|
55
55
|
return n;
|
56
56
|
}
|
@@ -61,12 +61,12 @@ var _t = St({
|
|
61
61
|
isStatic: !1,
|
62
62
|
reducedMotion: "never"
|
63
63
|
}), ee = St({});
|
64
|
-
function
|
64
|
+
function Fi() {
|
65
65
|
return F(ee).visualElement;
|
66
66
|
}
|
67
|
-
var Nt = St(null), xt = typeof document < "u", Tt = xt ?
|
68
|
-
function
|
69
|
-
if (
|
67
|
+
var Nt = St(null), xt = typeof document < "u", Tt = xt ? Ai : N, be = { current: null }, an = !1;
|
68
|
+
function ji() {
|
69
|
+
if (an = !0, !!xt)
|
70
70
|
if (window.matchMedia) {
|
71
71
|
var t = window.matchMedia("(prefers-reduced-motion)"), e = function() {
|
72
72
|
return be.current = t.matches;
|
@@ -75,17 +75,17 @@ function Ii() {
|
|
75
75
|
} else
|
76
76
|
be.current = !1;
|
77
77
|
}
|
78
|
-
function
|
79
|
-
!
|
80
|
-
var t =
|
78
|
+
function Bi() {
|
79
|
+
!an && ji();
|
80
|
+
var t = R(Me(be.current), 1), e = t[0];
|
81
81
|
return e;
|
82
82
|
}
|
83
|
-
function
|
84
|
-
var t =
|
83
|
+
function Ui() {
|
84
|
+
var t = Bi(), e = F(_t).reducedMotion;
|
85
85
|
return e === "never" ? !1 : e === "always" ? !0 : t;
|
86
86
|
}
|
87
|
-
function
|
88
|
-
var i = F(
|
87
|
+
function _i(t, e, r, n) {
|
88
|
+
var i = F(rn), s = Fi(), o = F(Nt), a = Ui(), u = $(void 0);
|
89
89
|
n || (n = i.renderer), !u.current && n && (u.current = n(t, {
|
90
90
|
visualState: e,
|
91
91
|
parent: s,
|
@@ -97,7 +97,7 @@ function ji(t, e, r, n) {
|
|
97
97
|
var l = u.current;
|
98
98
|
return Tt(function() {
|
99
99
|
l?.syncRender();
|
100
|
-
}),
|
100
|
+
}), N(function() {
|
101
101
|
var f;
|
102
102
|
(f = l?.animationState) === null || f === void 0 || f.animateChanges();
|
103
103
|
}), Tt(function() {
|
@@ -109,7 +109,7 @@ function ji(t, e, r, n) {
|
|
109
109
|
function gt(t) {
|
110
110
|
return typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
|
111
111
|
}
|
112
|
-
function
|
112
|
+
function Ni(t, e, r) {
|
113
113
|
return ye(
|
114
114
|
function(n) {
|
115
115
|
var i;
|
@@ -123,59 +123,59 @@ function Bi(t, e, r) {
|
|
123
123
|
[e]
|
124
124
|
);
|
125
125
|
}
|
126
|
-
function
|
126
|
+
function on(t) {
|
127
127
|
return Array.isArray(t);
|
128
128
|
}
|
129
|
-
function
|
130
|
-
return typeof t == "string" ||
|
129
|
+
function W(t) {
|
130
|
+
return typeof t == "string" || on(t);
|
131
131
|
}
|
132
|
-
function
|
132
|
+
function Hi(t) {
|
133
133
|
var e = {};
|
134
134
|
return t.forEachValue(function(r, n) {
|
135
135
|
return e[n] = r.get();
|
136
136
|
}), e;
|
137
137
|
}
|
138
|
-
function
|
138
|
+
function zi(t) {
|
139
139
|
var e = {};
|
140
140
|
return t.forEachValue(function(r, n) {
|
141
141
|
return e[n] = r.getVelocity();
|
142
142
|
}), e;
|
143
143
|
}
|
144
|
-
function
|
144
|
+
function sn(t, e, r, n, i) {
|
145
145
|
var s;
|
146
146
|
return n === void 0 && (n = {}), i === void 0 && (i = {}), typeof e == "function" && (e = e(r ?? t.custom, n, i)), typeof e == "string" && (e = (s = t.variants) === null || s === void 0 ? void 0 : s[e]), typeof e == "function" && (e = e(r ?? t.custom, n, i)), e;
|
147
147
|
}
|
148
148
|
function re(t, e, r) {
|
149
149
|
var n = t.getProps();
|
150
|
-
return
|
150
|
+
return sn(n, e, r ?? n.custom, Hi(t), zi(t));
|
151
151
|
}
|
152
152
|
function ne(t) {
|
153
153
|
var e;
|
154
|
-
return typeof ((e = t.animate) === null || e === void 0 ? void 0 : e.start) == "function" ||
|
154
|
+
return typeof ((e = t.animate) === null || e === void 0 ? void 0 : e.start) == "function" || W(t.initial) || W(t.animate) || W(t.whileHover) || W(t.whileDrag) || W(t.whileTap) || W(t.whileFocus) || W(t.exit);
|
155
155
|
}
|
156
|
-
function
|
156
|
+
function un(t) {
|
157
157
|
return !!(ne(t) || t.variants);
|
158
158
|
}
|
159
|
-
function
|
159
|
+
function Ki(t, e) {
|
160
160
|
if (ne(t)) {
|
161
161
|
var r = t.initial, n = t.animate;
|
162
162
|
return {
|
163
|
-
initial: r === !1 ||
|
164
|
-
animate:
|
163
|
+
initial: r === !1 || W(r) ? r : void 0,
|
164
|
+
animate: W(n) ? n : void 0
|
165
165
|
};
|
166
166
|
}
|
167
167
|
return t.inherit !== !1 ? e : {};
|
168
168
|
}
|
169
|
-
function
|
170
|
-
var e =
|
169
|
+
function Gi(t) {
|
170
|
+
var e = Ki(t, F(ee)), r = e.initial, n = e.animate;
|
171
171
|
return Vt(function() {
|
172
172
|
return { initial: r, animate: n };
|
173
|
-
}, [
|
173
|
+
}, [Je(r), Je(n)]);
|
174
174
|
}
|
175
|
-
function
|
175
|
+
function Je(t) {
|
176
176
|
return Array.isArray(t) ? t.join(" ") : t;
|
177
177
|
}
|
178
|
-
function
|
178
|
+
function ft(t) {
|
179
179
|
var e = $(null);
|
180
180
|
return e.current === null && (e.current = t()), e.current;
|
181
181
|
}
|
@@ -190,16 +190,16 @@ var Lt = {
|
|
190
190
|
* update will be given a `data-projection-id` attribute.
|
191
191
|
*/
|
192
192
|
hasEverUpdated: !1
|
193
|
-
},
|
194
|
-
function
|
195
|
-
return
|
193
|
+
}, Yi = 1;
|
194
|
+
function ki() {
|
195
|
+
return ft(function() {
|
196
196
|
if (Lt.hasEverUpdated)
|
197
|
-
return
|
197
|
+
return Yi++;
|
198
198
|
});
|
199
199
|
}
|
200
|
-
var
|
201
|
-
function
|
202
|
-
var i, s = e.layoutId, o = e.layout, a = e.drag, u = e.dragConstraints, l = e.layoutScroll, f = F(
|
200
|
+
var Ie = St({}), ln = St({});
|
201
|
+
function Xi(t, e, r, n) {
|
202
|
+
var i, s = e.layoutId, o = e.layout, a = e.drag, u = e.dragConstraints, l = e.layoutScroll, f = F(ln);
|
203
203
|
!n || !r || r?.projection || (r.projection = new n(t, r.getLatestValues(), (i = r.parent) === null || i === void 0 ? void 0 : i.projection), r.projection.setOptions({
|
204
204
|
layoutId: s,
|
205
205
|
layout: o,
|
@@ -220,10 +220,10 @@ function Gi(t, e, r, n) {
|
|
220
220
|
layoutScroll: l
|
221
221
|
}));
|
222
222
|
}
|
223
|
-
var
|
223
|
+
var Wi = (
|
224
224
|
/** @class */
|
225
225
|
function(t) {
|
226
|
-
|
226
|
+
Zr(e, t);
|
227
227
|
function e() {
|
228
228
|
return t !== null && t.apply(this, arguments) || this;
|
229
229
|
}
|
@@ -236,31 +236,31 @@ var Yi = (
|
|
236
236
|
}, e.prototype.render = function() {
|
237
237
|
return this.props.children;
|
238
238
|
}, e;
|
239
|
-
}(
|
239
|
+
}(Re.Component)
|
240
240
|
);
|
241
|
-
function
|
241
|
+
function Zi(t) {
|
242
242
|
var e = t.preloadedFeatures, r = t.createVisualElement, n = t.projectionNodeConstructor, i = t.useRender, s = t.useVisualState, o = t.Component;
|
243
|
-
e &&
|
243
|
+
e && Di(e);
|
244
244
|
function a(u, l) {
|
245
|
-
var f =
|
245
|
+
var f = $i(u);
|
246
246
|
u = m(m({}, u), { layoutId: f });
|
247
|
-
var v = F(_t), c = null, d =
|
248
|
-
return !v.isStatic && xt && (d.visualElement =
|
249
|
-
|
247
|
+
var v = F(_t), c = null, d = Gi(u), p = v.isStatic ? void 0 : ki(), h = s(u, v.isStatic);
|
248
|
+
return !v.isStatic && xt && (d.visualElement = _i(o, h, m(m({}, v), u), r), Xi(p, u, d.visualElement, n || jt.projectionNodeConstructor), c = Oi(u, d.visualElement, e)), Y.createElement(
|
249
|
+
Wi,
|
250
250
|
{ visualElement: d.visualElement, props: m(m({}, v), u) },
|
251
251
|
c,
|
252
|
-
|
252
|
+
Y.createElement(ee.Provider, { value: d }, i(o, u, p, Ni(h, d.visualElement, l), h, v.isStatic, d.visualElement))
|
253
253
|
);
|
254
254
|
}
|
255
|
-
return
|
255
|
+
return wi(a);
|
256
256
|
}
|
257
|
-
function
|
258
|
-
var e, r = t.layoutId, n = (e = F(
|
257
|
+
function $i(t) {
|
258
|
+
var e, r = t.layoutId, n = (e = F(Ie)) === null || e === void 0 ? void 0 : e.id;
|
259
259
|
return n && r !== void 0 ? n + "-" + r : r;
|
260
260
|
}
|
261
|
-
function
|
261
|
+
function qi(t) {
|
262
262
|
function e(n, i) {
|
263
|
-
return i === void 0 && (i = {}),
|
263
|
+
return i === void 0 && (i = {}), Zi(t(n, i));
|
264
264
|
}
|
265
265
|
if (typeof Proxy > "u")
|
266
266
|
return e;
|
@@ -276,7 +276,7 @@ function Wi(t) {
|
|
276
276
|
}
|
277
277
|
});
|
278
278
|
}
|
279
|
-
var
|
279
|
+
var Ji = [
|
280
280
|
"animate",
|
281
281
|
"circle",
|
282
282
|
"defs",
|
@@ -303,7 +303,7 @@ var Zi = [
|
|
303
303
|
"use",
|
304
304
|
"view"
|
305
305
|
];
|
306
|
-
function
|
306
|
+
function Oe(t) {
|
307
307
|
return (
|
308
308
|
/**
|
309
309
|
* If it's not a string, it's a custom React component. Currently we only support
|
@@ -316,7 +316,7 @@ function Ie(t) {
|
|
316
316
|
/**
|
317
317
|
* If it's in our list of lowercase SVG tags, it's an SVG component
|
318
318
|
*/
|
319
|
-
!!(
|
319
|
+
!!(Ji.indexOf(t) > -1 || /**
|
320
320
|
* If it contains a capital letter, it's an SVG component
|
321
321
|
*/
|
322
322
|
/[A-Z]/.test(t))
|
@@ -324,57 +324,57 @@ function Ie(t) {
|
|
324
324
|
);
|
325
325
|
}
|
326
326
|
var $t = {};
|
327
|
-
function
|
327
|
+
function Qi(t) {
|
328
328
|
Object.assign($t, t);
|
329
329
|
}
|
330
|
-
var Pe = ["", "X", "Y", "Z"],
|
331
|
-
|
330
|
+
var Pe = ["", "X", "Y", "Z"], ta = ["translate", "scale", "rotate", "skew"], Bt = ["transformPerspective", "x", "y", "z"];
|
331
|
+
ta.forEach(function(t) {
|
332
332
|
return Pe.forEach(function(e) {
|
333
333
|
return Bt.push(t + e);
|
334
334
|
});
|
335
335
|
});
|
336
|
-
function
|
336
|
+
function ea(t, e) {
|
337
337
|
return Bt.indexOf(t) - Bt.indexOf(e);
|
338
338
|
}
|
339
|
-
var
|
339
|
+
var ra = new Set(Bt);
|
340
340
|
function Ht(t) {
|
341
|
-
return
|
341
|
+
return ra.has(t);
|
342
342
|
}
|
343
|
-
var
|
344
|
-
function
|
345
|
-
return
|
343
|
+
var na = /* @__PURE__ */ new Set(["originX", "originY", "originZ"]);
|
344
|
+
function fn(t) {
|
345
|
+
return na.has(t);
|
346
346
|
}
|
347
|
-
function
|
347
|
+
function cn(t, e) {
|
348
348
|
var r = e.layout, n = e.layoutId;
|
349
|
-
return Ht(t) ||
|
349
|
+
return Ht(t) || fn(t) || (r || n !== void 0) && (!!$t[t] || t === "opacity");
|
350
350
|
}
|
351
351
|
var q = function(t) {
|
352
352
|
return !!(t !== null && typeof t == "object" && t.getVelocity);
|
353
|
-
},
|
353
|
+
}, ia = {
|
354
354
|
x: "translateX",
|
355
355
|
y: "translateY",
|
356
356
|
z: "translateZ",
|
357
357
|
transformPerspective: "perspective"
|
358
358
|
};
|
359
|
-
function
|
359
|
+
function aa(t, e, r, n) {
|
360
360
|
var i = t.transform, s = t.transformKeys, o = e.enableHardwareAcceleration, a = o === void 0 ? !0 : o, u = e.allowTransformNone, l = u === void 0 ? !0 : u, f = "";
|
361
|
-
s.sort(
|
361
|
+
s.sort(ea);
|
362
362
|
for (var v = !1, c = s.length, d = 0; d < c; d++) {
|
363
363
|
var p = s[d];
|
364
|
-
f += "".concat(
|
364
|
+
f += "".concat(ia[p] || p, "(").concat(i[p], ") "), p === "z" && (v = !0);
|
365
365
|
}
|
366
366
|
return !v && a ? f += "translateZ(0)" : f = f.trim(), n ? f = n(i, r ? "" : f) : l && r && (f = "none"), f;
|
367
367
|
}
|
368
|
-
function
|
368
|
+
function oa(t) {
|
369
369
|
var e = t.originX, r = e === void 0 ? "50%" : e, n = t.originY, i = n === void 0 ? "50%" : n, s = t.originZ, o = s === void 0 ? 0 : s;
|
370
370
|
return "".concat(r, " ").concat(i, " ").concat(o);
|
371
371
|
}
|
372
|
-
function
|
372
|
+
function vn(t) {
|
373
373
|
return t.startsWith("--");
|
374
374
|
}
|
375
|
-
var
|
375
|
+
var sa = function(t, e) {
|
376
376
|
return e && typeof t == "number" ? e.transform(t) : t;
|
377
|
-
},
|
377
|
+
}, Qe = m(m({}, Le), { transform: Math.round }), dn = {
|
378
378
|
// Border props
|
379
379
|
borderWidth: T,
|
380
380
|
borderTopWidth: T,
|
@@ -430,36 +430,36 @@ var ia = function(t, e) {
|
|
430
430
|
perspective: T,
|
431
431
|
transformPerspective: T,
|
432
432
|
opacity: oe,
|
433
|
-
originX:
|
434
|
-
originY:
|
433
|
+
originX: $e,
|
434
|
+
originY: $e,
|
435
435
|
originZ: T,
|
436
436
|
// Misc
|
437
|
-
zIndex:
|
437
|
+
zIndex: Qe,
|
438
438
|
// SVG
|
439
439
|
fillOpacity: oe,
|
440
440
|
strokeOpacity: oe,
|
441
|
-
numOctaves:
|
441
|
+
numOctaves: Qe
|
442
442
|
};
|
443
|
-
function
|
443
|
+
function Fe(t, e, r, n) {
|
444
444
|
var i, s = t.style, o = t.vars, a = t.transform, u = t.transformKeys, l = t.transformOrigin;
|
445
445
|
u.length = 0;
|
446
446
|
var f = !1, v = !1, c = !0;
|
447
447
|
for (var d in e) {
|
448
448
|
var p = e[d];
|
449
|
-
if (
|
449
|
+
if (vn(d)) {
|
450
450
|
o[d] = p;
|
451
451
|
continue;
|
452
452
|
}
|
453
|
-
var h =
|
453
|
+
var h = dn[d], g = sa(p, h);
|
454
454
|
if (Ht(d)) {
|
455
455
|
if (f = !0, a[d] = g, u.push(d), !c)
|
456
456
|
continue;
|
457
457
|
p !== ((i = h.default) !== null && i !== void 0 ? i : 0) && (c = !1);
|
458
|
-
} else
|
458
|
+
} else fn(d) ? (l[d] = g, v = !0) : s[d] = g;
|
459
459
|
}
|
460
|
-
f ? s.transform =
|
460
|
+
f ? s.transform = aa(t, r, c, n) : n ? s.transform = n({}, "") : !e.transform && s.transform && (s.transform = "none"), v && (s.transformOrigin = oa(l));
|
461
461
|
}
|
462
|
-
var
|
462
|
+
var je = function() {
|
463
463
|
return {
|
464
464
|
style: {},
|
465
465
|
transform: {},
|
@@ -468,28 +468,28 @@ var Fe = function() {
|
|
468
468
|
vars: {}
|
469
469
|
};
|
470
470
|
};
|
471
|
-
function
|
471
|
+
function pn(t, e, r) {
|
472
472
|
for (var n in e)
|
473
|
-
!q(e[n]) && !
|
473
|
+
!q(e[n]) && !cn(n, r) && (t[n] = e[n]);
|
474
474
|
}
|
475
|
-
function
|
475
|
+
function ua(t, e, r) {
|
476
476
|
var n = t.transformTemplate;
|
477
477
|
return Vt(function() {
|
478
|
-
var i =
|
479
|
-
|
478
|
+
var i = je();
|
479
|
+
Fe(i, e, { enableHardwareAcceleration: !r }, n);
|
480
480
|
var s = i.vars, o = i.style;
|
481
481
|
return m(m({}, s), o);
|
482
482
|
}, [e]);
|
483
483
|
}
|
484
|
-
function
|
484
|
+
function la(t, e, r) {
|
485
485
|
var n = t.style || {}, i = {};
|
486
|
-
return
|
486
|
+
return pn(i, n, t), Object.assign(i, ua(t, e, r)), t.transformValues && (i = t.transformValues(i)), i;
|
487
487
|
}
|
488
|
-
function
|
489
|
-
var n = {}, i =
|
488
|
+
function fa(t, e, r) {
|
489
|
+
var n = {}, i = la(t, e, r);
|
490
490
|
return t.drag && t.dragListener !== !1 && (n.draggable = !1, i.userSelect = i.WebkitUserSelect = i.WebkitTouchCallout = "none", i.touchAction = t.drag === !0 ? "none" : "pan-".concat(t.drag === "x" ? "y" : "x")), n.style = i, n;
|
491
491
|
}
|
492
|
-
var
|
492
|
+
var ca = /* @__PURE__ */ new Set([
|
493
493
|
"initial",
|
494
494
|
"animate",
|
495
495
|
"exit",
|
@@ -548,83 +548,83 @@ var ua = /* @__PURE__ */ new Set([
|
|
548
548
|
"layoutScroll"
|
549
549
|
]);
|
550
550
|
function qt(t) {
|
551
|
-
return
|
551
|
+
return ca.has(t);
|
552
552
|
}
|
553
|
-
var
|
553
|
+
var hn = function(t) {
|
554
554
|
return !qt(t);
|
555
555
|
};
|
556
|
-
function
|
557
|
-
t && (
|
556
|
+
function va(t) {
|
557
|
+
t && (hn = function(e) {
|
558
558
|
return e.startsWith("on") ? !qt(e) : t(e);
|
559
559
|
});
|
560
560
|
}
|
561
561
|
try {
|
562
|
-
|
562
|
+
va(require("@emotion/is-prop-valid").default);
|
563
563
|
} catch {
|
564
564
|
}
|
565
|
-
function
|
565
|
+
function da(t, e, r) {
|
566
566
|
var n = {};
|
567
567
|
for (var i in t)
|
568
|
-
(
|
568
|
+
(hn(i) || r === !0 && qt(i) || !e && !qt(i) || // If trying to use native HTML drag events, forward drag listeners
|
569
569
|
t.draggable && i.startsWith("onDrag")) && (n[i] = t[i]);
|
570
570
|
return n;
|
571
571
|
}
|
572
|
-
function
|
572
|
+
function tr(t, e, r) {
|
573
573
|
return typeof t == "string" ? t : T.transform(e + r * t);
|
574
574
|
}
|
575
|
-
function
|
576
|
-
var n =
|
575
|
+
function pa(t, e, r) {
|
576
|
+
var n = tr(e, t.x, t.width), i = tr(r, t.y, t.height);
|
577
577
|
return "".concat(n, " ").concat(i);
|
578
578
|
}
|
579
|
-
var
|
579
|
+
var ha = {
|
580
580
|
offset: "strokeDashoffset",
|
581
581
|
array: "strokeDasharray"
|
582
582
|
};
|
583
|
-
function
|
583
|
+
function ma(t, e, r, n, i) {
|
584
584
|
r === void 0 && (r = 1), n === void 0 && (n = 0), t.pathLength = 1;
|
585
|
-
var s =
|
585
|
+
var s = ha;
|
586
586
|
t[s.offset] = T.transform(-n);
|
587
587
|
var o = T.transform(e), a = T.transform(r);
|
588
588
|
t[s.array] = "".concat(o, " ").concat(a);
|
589
589
|
}
|
590
|
-
function
|
590
|
+
function Be(t, e, r, n) {
|
591
591
|
var i = e.attrX, s = e.attrY, o = e.originX, a = e.originY, u = e.pathLength, l = e.pathSpacing, f = l === void 0 ? 1 : l, v = e.pathOffset, c = v === void 0 ? 0 : v, d = Q(e, ["attrX", "attrY", "originX", "originY", "pathLength", "pathSpacing", "pathOffset"]);
|
592
|
-
|
592
|
+
Fe(t, d, r, n), t.attrs = t.style, t.style = {};
|
593
593
|
var p = t.attrs, h = t.style, g = t.dimensions;
|
594
|
-
p.transform && (g && (h.transform = p.transform), delete p.transform), g && (o !== void 0 || a !== void 0 || h.transform) && (h.transformOrigin =
|
594
|
+
p.transform && (g && (h.transform = p.transform), delete p.transform), g && (o !== void 0 || a !== void 0 || h.transform) && (h.transformOrigin = pa(g, o !== void 0 ? o : 0.5, a !== void 0 ? a : 0.5)), i !== void 0 && (p.x = i), s !== void 0 && (p.y = s), u !== void 0 && ma(p, u, f, c);
|
595
595
|
}
|
596
|
-
var
|
597
|
-
return m(m({},
|
596
|
+
var mn = function() {
|
597
|
+
return m(m({}, je()), { attrs: {} });
|
598
598
|
};
|
599
|
-
function
|
599
|
+
function ga(t, e) {
|
600
600
|
var r = Vt(function() {
|
601
|
-
var i =
|
602
|
-
return
|
601
|
+
var i = mn();
|
602
|
+
return Be(i, e, { enableHardwareAcceleration: !1 }, t.transformTemplate), m(m({}, i.attrs), { style: m({}, i.style) });
|
603
603
|
}, [e]);
|
604
604
|
if (t.style) {
|
605
605
|
var n = {};
|
606
|
-
|
606
|
+
pn(n, t.style, t), r.style = m(m({}, n), r.style);
|
607
607
|
}
|
608
608
|
return r;
|
609
609
|
}
|
610
|
-
function
|
610
|
+
function ya(t) {
|
611
611
|
t === void 0 && (t = !1);
|
612
612
|
var e = function(r, n, i, s, o, a) {
|
613
|
-
var u = o.latestValues, l =
|
614
|
-
return i && (c["data-projection-id"] = i),
|
613
|
+
var u = o.latestValues, l = Oe(r) ? ga : fa, f = l(n, u, a), v = da(n, typeof r == "string", t), c = m(m(m({}, v), f), { ref: s });
|
614
|
+
return i && (c["data-projection-id"] = i), Ei(r, c);
|
615
615
|
};
|
616
616
|
return e;
|
617
617
|
}
|
618
|
-
var
|
619
|
-
return t.replace(
|
618
|
+
var ba = /([a-z])([A-Z])/g, Pa = "$1-$2", gn = function(t) {
|
619
|
+
return t.replace(ba, Pa).toLowerCase();
|
620
620
|
};
|
621
|
-
function
|
621
|
+
function yn(t, e, r, n) {
|
622
622
|
var i = e.style, s = e.vars;
|
623
623
|
Object.assign(t.style, i, n && n.getProjectionStyles(r));
|
624
624
|
for (var o in s)
|
625
625
|
t.style.setProperty(o, s[o]);
|
626
626
|
}
|
627
|
-
var
|
627
|
+
var bn = /* @__PURE__ */ new Set([
|
628
628
|
"baseFrequency",
|
629
629
|
"diffuseConstant",
|
630
630
|
"kernelMatrix",
|
@@ -646,19 +646,19 @@ var gn = /* @__PURE__ */ new Set([
|
|
646
646
|
"gradientTransform",
|
647
647
|
"pathLength"
|
648
648
|
]);
|
649
|
-
function
|
650
|
-
|
649
|
+
function Pn(t, e, r, n) {
|
650
|
+
yn(t, e, void 0, n);
|
651
651
|
for (var i in e.attrs)
|
652
|
-
t.setAttribute(
|
652
|
+
t.setAttribute(bn.has(i) ? i : gn(i), e.attrs[i]);
|
653
653
|
}
|
654
|
-
function
|
654
|
+
function Ue(t) {
|
655
655
|
var e = t.style, r = {};
|
656
656
|
for (var n in e)
|
657
|
-
(q(e[n]) ||
|
657
|
+
(q(e[n]) || cn(n, t)) && (r[n] = e[n]);
|
658
658
|
return r;
|
659
659
|
}
|
660
|
-
function
|
661
|
-
var e =
|
660
|
+
function Vn(t) {
|
661
|
+
var e = Ue(t);
|
662
662
|
for (var r in t)
|
663
663
|
if (q(t[r])) {
|
664
664
|
var n = r === "x" || r === "y" ? "attr" + r.toUpperCase() : r;
|
@@ -666,48 +666,48 @@ function bn(t) {
|
|
666
666
|
}
|
667
667
|
return e;
|
668
668
|
}
|
669
|
-
function
|
669
|
+
function _e(t) {
|
670
670
|
return typeof t == "object" && typeof t.start == "function";
|
671
671
|
}
|
672
672
|
var Ut = function(t) {
|
673
673
|
return Array.isArray(t);
|
674
|
-
},
|
674
|
+
}, Va = function(t) {
|
675
675
|
return !!(t && typeof t == "object" && t.mix && t.toValue);
|
676
|
-
},
|
676
|
+
}, Tn = function(t) {
|
677
677
|
return Ut(t) ? t[t.length - 1] || 0 : t;
|
678
678
|
};
|
679
679
|
function Zt(t) {
|
680
680
|
var e = q(t) ? t.get() : t;
|
681
|
-
return
|
681
|
+
return Va(e) ? e.toValue() : e;
|
682
682
|
}
|
683
|
-
function
|
683
|
+
function er(t, e, r, n) {
|
684
684
|
var i = t.scrapeMotionValuesFromProps, s = t.createRenderState, o = t.onMount, a = {
|
685
|
-
latestValues:
|
685
|
+
latestValues: Ta(e, r, n, i),
|
686
686
|
renderState: s()
|
687
687
|
};
|
688
688
|
return o && (a.mount = function(u) {
|
689
689
|
return o(e, u, a);
|
690
690
|
}), a;
|
691
691
|
}
|
692
|
-
var
|
692
|
+
var Sn = function(t) {
|
693
693
|
return function(e, r) {
|
694
694
|
var n = F(ee), i = F(Nt);
|
695
|
-
return r ?
|
696
|
-
return
|
695
|
+
return r ? er(t, e, n, i) : ft(function() {
|
696
|
+
return er(t, e, n, i);
|
697
697
|
});
|
698
698
|
};
|
699
699
|
};
|
700
|
-
function
|
700
|
+
function Ta(t, e, r, n) {
|
701
701
|
var i = {}, s = r?.initial === !1, o = n(t);
|
702
702
|
for (var a in o)
|
703
703
|
i[a] = Zt(o[a]);
|
704
|
-
var u = t.initial, l = t.animate, f = ne(t), v =
|
704
|
+
var u = t.initial, l = t.animate, f = ne(t), v = un(t);
|
705
705
|
e && v && !f && t.inherit !== !1 && (u ?? (u = e.initial), l ?? (l = e.animate));
|
706
706
|
var c = s || u === !1, d = c ? l : u;
|
707
|
-
if (d && typeof d != "boolean" && !
|
707
|
+
if (d && typeof d != "boolean" && !_e(d)) {
|
708
708
|
var p = Array.isArray(d) ? d : [d];
|
709
709
|
p.forEach(function(h) {
|
710
|
-
var g =
|
710
|
+
var g = sn(t, h);
|
711
711
|
if (g) {
|
712
712
|
var b = g.transitionEnd;
|
713
713
|
g.transition;
|
@@ -727,10 +727,10 @@ function ba(t, e, r, n) {
|
|
727
727
|
}
|
728
728
|
return i;
|
729
729
|
}
|
730
|
-
var
|
731
|
-
useVisualState:
|
732
|
-
scrapeMotionValuesFromProps:
|
733
|
-
createRenderState:
|
730
|
+
var Sa = {
|
731
|
+
useVisualState: Sn({
|
732
|
+
scrapeMotionValuesFromProps: Vn,
|
733
|
+
createRenderState: mn,
|
734
734
|
onMount: function(t, e, r) {
|
735
735
|
var n = r.renderState, i = r.latestValues;
|
736
736
|
try {
|
@@ -743,18 +743,18 @@ var Pa = {
|
|
743
743
|
height: 0
|
744
744
|
};
|
745
745
|
}
|
746
|
-
|
746
|
+
Be(n, i, { enableHardwareAcceleration: !1 }, t.transformTemplate), Pn(e, n);
|
747
747
|
}
|
748
748
|
})
|
749
|
-
},
|
750
|
-
useVisualState:
|
751
|
-
scrapeMotionValuesFromProps:
|
752
|
-
createRenderState:
|
749
|
+
}, xa = {
|
750
|
+
useVisualState: Sn({
|
751
|
+
scrapeMotionValuesFromProps: Ue,
|
752
|
+
createRenderState: je
|
753
753
|
})
|
754
754
|
};
|
755
|
-
function
|
756
|
-
var s = e.forwardMotionProps, o = s === void 0 ? !1 : s, a =
|
757
|
-
return m(m({}, a), { preloadedFeatures: r, useRender:
|
755
|
+
function Ca(t, e, r, n, i) {
|
756
|
+
var s = e.forwardMotionProps, o = s === void 0 ? !1 : s, a = Oe(t) ? Sa : xa;
|
757
|
+
return m(m({}, a), { preloadedFeatures: r, useRender: ya(o), createVisualElement: n, projectionNodeConstructor: i, Component: t });
|
758
758
|
}
|
759
759
|
var L;
|
760
760
|
(function(t) {
|
@@ -766,13 +766,13 @@ function ie(t, e, r, n) {
|
|
766
766
|
};
|
767
767
|
}
|
768
768
|
function Ve(t, e, r, n) {
|
769
|
-
|
769
|
+
N(function() {
|
770
770
|
var i = t.current;
|
771
771
|
if (r && i)
|
772
772
|
return ie(i, e, r, n);
|
773
773
|
}, [t, e, r, n]);
|
774
774
|
}
|
775
|
-
function
|
775
|
+
function Aa(t) {
|
776
776
|
var e = t.whileFocus, r = t.visualElement, n = function() {
|
777
777
|
var s;
|
778
778
|
(s = r.animationState) === null || s === void 0 || s.setActive(L.Focus, !0);
|
@@ -782,52 +782,52 @@ function Sa(t) {
|
|
782
782
|
};
|
783
783
|
Ve(r, "focus", e ? n : void 0), Ve(r, "blur", e ? i : void 0);
|
784
784
|
}
|
785
|
-
function
|
785
|
+
function xn(t) {
|
786
786
|
return typeof PointerEvent < "u" && t instanceof PointerEvent ? t.pointerType === "mouse" : t instanceof MouseEvent;
|
787
787
|
}
|
788
|
-
function
|
788
|
+
function Cn(t) {
|
789
789
|
var e = !!t.touches;
|
790
790
|
return e;
|
791
791
|
}
|
792
|
-
function
|
792
|
+
function wa(t) {
|
793
793
|
return function(e) {
|
794
794
|
var r = e instanceof MouseEvent, n = !r || r && e.button === 0;
|
795
795
|
n && t(e);
|
796
796
|
};
|
797
797
|
}
|
798
|
-
var
|
799
|
-
function
|
798
|
+
var Ea = { pageX: 0, pageY: 0 };
|
799
|
+
function La(t, e) {
|
800
800
|
e === void 0 && (e = "page");
|
801
|
-
var r = t.touches[0] || t.changedTouches[0], n = r ||
|
801
|
+
var r = t.touches[0] || t.changedTouches[0], n = r || Ea;
|
802
802
|
return {
|
803
803
|
x: n[e + "X"],
|
804
804
|
y: n[e + "Y"]
|
805
805
|
};
|
806
806
|
}
|
807
|
-
function
|
807
|
+
function Ra(t, e) {
|
808
808
|
return e === void 0 && (e = "page"), {
|
809
809
|
x: t[e + "X"],
|
810
810
|
y: t[e + "Y"]
|
811
811
|
};
|
812
812
|
}
|
813
|
-
function
|
813
|
+
function Ne(t, e) {
|
814
814
|
return e === void 0 && (e = "page"), {
|
815
|
-
point:
|
815
|
+
point: Cn(t) ? La(t, e) : Ra(t, e)
|
816
816
|
};
|
817
817
|
}
|
818
|
-
var
|
818
|
+
var An = function(t, e) {
|
819
819
|
e === void 0 && (e = !1);
|
820
820
|
var r = function(n) {
|
821
|
-
return t(n,
|
821
|
+
return t(n, Ne(n));
|
822
822
|
};
|
823
|
-
return e ?
|
824
|
-
},
|
823
|
+
return e ? wa(r) : r;
|
824
|
+
}, Ma = function() {
|
825
825
|
return xt && window.onpointerdown === null;
|
826
|
-
},
|
826
|
+
}, Da = function() {
|
827
827
|
return xt && window.ontouchstart === null;
|
828
|
-
},
|
828
|
+
}, Ia = function() {
|
829
829
|
return xt && window.onmousedown === null;
|
830
|
-
},
|
830
|
+
}, Oa = {
|
831
831
|
pointerdown: "mousedown",
|
832
832
|
pointermove: "mousemove",
|
833
833
|
pointerup: "mouseup",
|
@@ -836,22 +836,22 @@ var xn = function(t, e) {
|
|
836
836
|
pointerout: "mouseout",
|
837
837
|
pointerenter: "mouseenter",
|
838
838
|
pointerleave: "mouseleave"
|
839
|
-
},
|
839
|
+
}, Fa = {
|
840
840
|
pointerdown: "touchstart",
|
841
841
|
pointermove: "touchmove",
|
842
842
|
pointerup: "touchend",
|
843
843
|
pointercancel: "touchcancel"
|
844
844
|
};
|
845
|
-
function
|
846
|
-
return
|
845
|
+
function wn(t) {
|
846
|
+
return Ma() ? t : Da() ? Fa[t] : Ia() ? Oa[t] : t;
|
847
847
|
}
|
848
848
|
function bt(t, e, r, n) {
|
849
|
-
return ie(t,
|
849
|
+
return ie(t, wn(e), An(r, e === "pointerdown"), n);
|
850
850
|
}
|
851
851
|
function Jt(t, e, r, n) {
|
852
|
-
return Ve(t,
|
852
|
+
return Ve(t, wn(e), r && An(r, e === "pointerdown"), n);
|
853
853
|
}
|
854
|
-
function
|
854
|
+
function En(t) {
|
855
855
|
var e = null;
|
856
856
|
return function() {
|
857
857
|
var r = function() {
|
@@ -860,46 +860,46 @@ function An(t) {
|
|
860
860
|
return e === null ? (e = t, r) : !1;
|
861
861
|
};
|
862
862
|
}
|
863
|
-
var
|
864
|
-
function
|
863
|
+
var rr = En("dragHorizontal"), nr = En("dragVertical");
|
864
|
+
function Ln(t) {
|
865
865
|
var e = !1;
|
866
866
|
if (t === "y")
|
867
|
-
e =
|
867
|
+
e = nr();
|
868
868
|
else if (t === "x")
|
869
|
-
e =
|
869
|
+
e = rr();
|
870
870
|
else {
|
871
|
-
var r =
|
871
|
+
var r = rr(), n = nr();
|
872
872
|
r && n ? e = function() {
|
873
873
|
r(), n();
|
874
874
|
} : (r && r(), n && n());
|
875
875
|
}
|
876
876
|
return e;
|
877
877
|
}
|
878
|
-
function
|
879
|
-
var t =
|
878
|
+
function Rn() {
|
879
|
+
var t = Ln(!0);
|
880
880
|
return t ? (t(), !1) : !0;
|
881
881
|
}
|
882
|
-
function
|
882
|
+
function ir(t, e, r) {
|
883
883
|
return function(n, i) {
|
884
884
|
var s;
|
885
|
-
!
|
885
|
+
!xn(n) || Rn() || ((s = t.animationState) === null || s === void 0 || s.setActive(L.Hover, e), r?.(n, i));
|
886
886
|
};
|
887
887
|
}
|
888
|
-
function
|
888
|
+
function ja(t) {
|
889
889
|
var e = t.onHoverStart, r = t.onHoverEnd, n = t.whileHover, i = t.visualElement;
|
890
|
-
Jt(i, "pointerenter", e || n ?
|
890
|
+
Jt(i, "pointerenter", e || n ? ir(i, !0, e) : void 0, { passive: !e }), Jt(i, "pointerleave", r || n ? ir(i, !1, r) : void 0, { passive: !r });
|
891
891
|
}
|
892
|
-
var
|
893
|
-
return e ? t === e ? !0 :
|
892
|
+
var Mn = function(t, e) {
|
893
|
+
return e ? t === e ? !0 : Mn(t, e.parentElement) : !1;
|
894
894
|
};
|
895
|
-
function
|
896
|
-
return
|
895
|
+
function He(t) {
|
896
|
+
return N(function() {
|
897
897
|
return function() {
|
898
898
|
return t();
|
899
899
|
};
|
900
900
|
}, []);
|
901
901
|
}
|
902
|
-
function
|
902
|
+
function Ba(t) {
|
903
903
|
var e = t.onTap, r = t.onTapStart, n = t.onTapCancel, i = t.whileTap, s = t.visualElement, o = e || r || n || i, a = $(!1), u = $(null), l = {
|
904
904
|
passive: !(r || e || n || p)
|
905
905
|
};
|
@@ -909,63 +909,63 @@ function Oa(t) {
|
|
909
909
|
}
|
910
910
|
function v() {
|
911
911
|
var h;
|
912
|
-
return f(), a.current = !1, (h = s.animationState) === null || h === void 0 || h.setActive(L.Tap, !1), !
|
912
|
+
return f(), a.current = !1, (h = s.animationState) === null || h === void 0 || h.setActive(L.Tap, !1), !Rn();
|
913
913
|
}
|
914
914
|
function c(h, g) {
|
915
|
-
v() && (
|
915
|
+
v() && (Mn(s.getInstance(), h.target) ? e?.(h, g) : n?.(h, g));
|
916
916
|
}
|
917
917
|
function d(h, g) {
|
918
918
|
v() && n?.(h, g);
|
919
919
|
}
|
920
920
|
function p(h, g) {
|
921
921
|
var b;
|
922
|
-
f(), !a.current && (a.current = !0, u.current =
|
922
|
+
f(), !a.current && (a.current = !0, u.current = $r(bt(window, "pointerup", c, l), bt(window, "pointercancel", d, l)), (b = s.animationState) === null || b === void 0 || b.setActive(L.Tap, !0), r?.(h, g));
|
923
923
|
}
|
924
|
-
Jt(s, "pointerdown", o ? p : void 0, l),
|
924
|
+
Jt(s, "pointerdown", o ? p : void 0, l), He(f);
|
925
925
|
}
|
926
|
-
var
|
927
|
-
function
|
928
|
-
t ||
|
926
|
+
var ar = /* @__PURE__ */ new Set();
|
927
|
+
function Dn(t, e, r) {
|
928
|
+
t || ar.has(e) || (console.warn(e), ar.add(e));
|
929
929
|
}
|
930
|
-
var Te = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(),
|
930
|
+
var Te = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), Ua = function(t) {
|
931
931
|
var e;
|
932
932
|
(e = Te.get(t.target)) === null || e === void 0 || e(t);
|
933
|
-
},
|
934
|
-
t.forEach(
|
933
|
+
}, _a = function(t) {
|
934
|
+
t.forEach(Ua);
|
935
935
|
};
|
936
|
-
function
|
936
|
+
function Na(t) {
|
937
937
|
var e = t.root, r = Q(t, ["root"]), n = e || document;
|
938
938
|
ue.has(n) || ue.set(n, {});
|
939
939
|
var i = ue.get(n), s = JSON.stringify(r);
|
940
|
-
return i[s] || (i[s] = new IntersectionObserver(
|
940
|
+
return i[s] || (i[s] = new IntersectionObserver(_a, m({ root: e }, r))), i[s];
|
941
941
|
}
|
942
|
-
function
|
943
|
-
var n =
|
942
|
+
function Ha(t, e, r) {
|
943
|
+
var n = Na(e);
|
944
944
|
return Te.set(t, r), n.observe(t), function() {
|
945
945
|
Te.delete(t), n.unobserve(t);
|
946
946
|
};
|
947
947
|
}
|
948
|
-
function
|
948
|
+
function za(t) {
|
949
949
|
var e = t.visualElement, r = t.whileInView, n = t.onViewportEnter, i = t.onViewportLeave, s = t.viewport, o = s === void 0 ? {} : s, a = $({
|
950
950
|
hasEnteredView: !1,
|
951
951
|
isInView: !1
|
952
952
|
}), u = !!(r || n || i);
|
953
953
|
o.once && a.current.hasEnteredView && (u = !1);
|
954
|
-
var l = typeof IntersectionObserver > "u" ?
|
954
|
+
var l = typeof IntersectionObserver > "u" ? Ya : Ga;
|
955
955
|
l(u, a.current, e, o);
|
956
956
|
}
|
957
|
-
var
|
957
|
+
var Ka = {
|
958
958
|
some: 0,
|
959
959
|
all: 1
|
960
960
|
};
|
961
|
-
function
|
961
|
+
function Ga(t, e, r, n) {
|
962
962
|
var i = n.root, s = n.margin, o = n.amount, a = o === void 0 ? "some" : o, u = n.once;
|
963
|
-
|
963
|
+
N(function() {
|
964
964
|
if (t) {
|
965
965
|
var l = {
|
966
966
|
root: i?.current,
|
967
967
|
rootMargin: s,
|
968
|
-
threshold: typeof a == "number" ? a :
|
968
|
+
threshold: typeof a == "number" ? a : Ka[a]
|
969
969
|
}, f = function(v) {
|
970
970
|
var c, d = v.isIntersecting;
|
971
971
|
if (e.isInView !== d && (e.isInView = d, !(u && !d && e.hasEnteredView))) {
|
@@ -974,14 +974,14 @@ function Ha(t, e, r, n) {
|
|
974
974
|
h?.(v);
|
975
975
|
}
|
976
976
|
};
|
977
|
-
return
|
977
|
+
return Ha(r.getInstance(), l, f);
|
978
978
|
}
|
979
979
|
}, [t, i, s, a]);
|
980
980
|
}
|
981
|
-
function
|
981
|
+
function Ya(t, e, r, n) {
|
982
982
|
var i = n.fallback, s = i === void 0 ? !0 : i;
|
983
|
-
|
984
|
-
!t || !s || (De !== "production" &&
|
983
|
+
N(function() {
|
984
|
+
!t || !s || (De !== "production" && Dn(!1, "IntersectionObserver not available on this device. whileInView animations will trigger on mount."), requestAnimationFrame(function() {
|
985
985
|
var o;
|
986
986
|
e.hasEnteredView = !0;
|
987
987
|
var a = r.getProps().onViewportEnter;
|
@@ -993,22 +993,22 @@ var ut = function(t) {
|
|
993
993
|
return function(e) {
|
994
994
|
return t(e), null;
|
995
995
|
};
|
996
|
-
},
|
997
|
-
inView: ut(
|
998
|
-
tap: ut(
|
999
|
-
focus: ut(
|
1000
|
-
hover: ut(
|
1001
|
-
},
|
1002
|
-
return
|
1003
|
-
},
|
1004
|
-
return
|
996
|
+
}, ka = {
|
997
|
+
inView: ut(za),
|
998
|
+
tap: ut(Ba),
|
999
|
+
focus: ut(Aa),
|
1000
|
+
hover: ut(ja)
|
1001
|
+
}, Xa = 0, Wa = function() {
|
1002
|
+
return Xa++;
|
1003
|
+
}, In = function() {
|
1004
|
+
return ft(Wa);
|
1005
1005
|
};
|
1006
|
-
function
|
1006
|
+
function On() {
|
1007
1007
|
var t = F(Nt);
|
1008
1008
|
if (t === null)
|
1009
1009
|
return [!0, null];
|
1010
|
-
var e = t.isPresent, r = t.onExitComplete, n = t.register, i =
|
1011
|
-
|
1010
|
+
var e = t.isPresent, r = t.onExitComplete, n = t.register, i = In();
|
1011
|
+
N(function() {
|
1012
1012
|
return n(i);
|
1013
1013
|
}, []);
|
1014
1014
|
var s = function() {
|
@@ -1016,7 +1016,7 @@ function Mn() {
|
|
1016
1016
|
};
|
1017
1017
|
return !e && r ? [!1, s] : [!0];
|
1018
1018
|
}
|
1019
|
-
function
|
1019
|
+
function Fn(t, e) {
|
1020
1020
|
if (!Array.isArray(e))
|
1021
1021
|
return !1;
|
1022
1022
|
var r = e.length;
|
@@ -1029,36 +1029,36 @@ function In(t, e) {
|
|
1029
1029
|
}
|
1030
1030
|
var Qt = function(t) {
|
1031
1031
|
return t * 1e3;
|
1032
|
-
},
|
1033
|
-
linear:
|
1034
|
-
easeIn:
|
1035
|
-
easeInOut:
|
1036
|
-
easeOut:
|
1037
|
-
circIn:
|
1032
|
+
}, or = {
|
1033
|
+
linear: qr,
|
1034
|
+
easeIn: si,
|
1035
|
+
easeInOut: ui,
|
1036
|
+
easeOut: li,
|
1037
|
+
circIn: fi,
|
1038
1038
|
circInOut: ci,
|
1039
|
-
circOut:
|
1040
|
-
backIn:
|
1041
|
-
backInOut:
|
1042
|
-
backOut:
|
1043
|
-
anticipate:
|
1044
|
-
bounceIn:
|
1045
|
-
bounceInOut:
|
1046
|
-
bounceOut:
|
1047
|
-
},
|
1039
|
+
circOut: Jr,
|
1040
|
+
backIn: vi,
|
1041
|
+
backInOut: di,
|
1042
|
+
backOut: pi,
|
1043
|
+
anticipate: hi,
|
1044
|
+
bounceIn: mi,
|
1045
|
+
bounceInOut: gi,
|
1046
|
+
bounceOut: yi
|
1047
|
+
}, sr = function(t) {
|
1048
1048
|
if (Array.isArray(t)) {
|
1049
|
-
|
1050
|
-
var e =
|
1051
|
-
return
|
1049
|
+
lt(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
|
1050
|
+
var e = R(t, 4), r = e[0], n = e[1], i = e[2], s = e[3];
|
1051
|
+
return oi(r, n, i, s);
|
1052
1052
|
} else if (typeof t == "string")
|
1053
|
-
return
|
1053
|
+
return lt(or[t] !== void 0, "Invalid easing type '".concat(t, "'")), or[t];
|
1054
1054
|
return t;
|
1055
|
-
},
|
1055
|
+
}, Za = function(t) {
|
1056
1056
|
return Array.isArray(t) && typeof t[0] != "number";
|
1057
|
-
},
|
1057
|
+
}, ur = function(t, e) {
|
1058
1058
|
return t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
|
1059
1059
|
Pt.test(e) && // And it contains numbers and/or colors
|
1060
1060
|
!e.startsWith("url("));
|
1061
|
-
},
|
1061
|
+
}, ct = function() {
|
1062
1062
|
return {
|
1063
1063
|
type: "spring",
|
1064
1064
|
stiffness: 500,
|
@@ -1078,20 +1078,20 @@ var Qt = function(t) {
|
|
1078
1078
|
ease: "linear",
|
1079
1079
|
duration: 0.3
|
1080
1080
|
};
|
1081
|
-
},
|
1081
|
+
}, $a = function(t) {
|
1082
1082
|
return {
|
1083
1083
|
type: "keyframes",
|
1084
1084
|
duration: 0.8,
|
1085
1085
|
values: t
|
1086
1086
|
};
|
1087
|
-
},
|
1088
|
-
x:
|
1089
|
-
y:
|
1090
|
-
z:
|
1091
|
-
rotate:
|
1092
|
-
rotateX:
|
1093
|
-
rotateY:
|
1094
|
-
rotateZ:
|
1087
|
+
}, lr = {
|
1088
|
+
x: ct,
|
1089
|
+
y: ct,
|
1090
|
+
z: ct,
|
1091
|
+
rotate: ct,
|
1092
|
+
rotateX: ct,
|
1093
|
+
rotateY: ct,
|
1094
|
+
rotateZ: ct,
|
1095
1095
|
scaleX: Yt,
|
1096
1096
|
scaleY: Yt,
|
1097
1097
|
scale: Yt,
|
@@ -1099,57 +1099,57 @@ var Qt = function(t) {
|
|
1099
1099
|
backgroundColor: le,
|
1100
1100
|
color: le,
|
1101
1101
|
default: Yt
|
1102
|
-
},
|
1102
|
+
}, qa = function(t, e) {
|
1103
1103
|
var r;
|
1104
|
-
return Ut(e) ? r =
|
1105
|
-
},
|
1104
|
+
return Ut(e) ? r = $a : r = lr[t] || lr.default, m({ to: e }, r(e));
|
1105
|
+
}, Ja = m(m({}, dn), {
|
1106
1106
|
// Color props
|
1107
|
-
color:
|
1108
|
-
backgroundColor:
|
1109
|
-
outlineColor:
|
1110
|
-
fill:
|
1111
|
-
stroke:
|
1107
|
+
color: X,
|
1108
|
+
backgroundColor: X,
|
1109
|
+
outlineColor: X,
|
1110
|
+
fill: X,
|
1111
|
+
stroke: X,
|
1112
1112
|
// Border props
|
1113
|
-
borderColor:
|
1114
|
-
borderTopColor:
|
1115
|
-
borderRightColor:
|
1116
|
-
borderBottomColor:
|
1117
|
-
borderLeftColor:
|
1113
|
+
borderColor: X,
|
1114
|
+
borderTopColor: X,
|
1115
|
+
borderRightColor: X,
|
1116
|
+
borderBottomColor: X,
|
1117
|
+
borderLeftColor: X,
|
1118
1118
|
filter: he,
|
1119
1119
|
WebkitFilter: he
|
1120
|
-
}),
|
1121
|
-
return
|
1120
|
+
}), ze = function(t) {
|
1121
|
+
return Ja[t];
|
1122
1122
|
};
|
1123
|
-
function
|
1124
|
-
var r, n =
|
1123
|
+
function Ke(t, e) {
|
1124
|
+
var r, n = ze(t);
|
1125
1125
|
return n !== he && (n = Pt), (r = n.getAnimatableNone) === null || r === void 0 ? void 0 : r.call(n, e);
|
1126
1126
|
}
|
1127
|
-
function
|
1127
|
+
function Qa(t) {
|
1128
1128
|
t.when, t.delay, t.delayChildren, t.staggerChildren, t.staggerDirection, t.repeat, t.repeatType, t.repeatDelay, t.from;
|
1129
1129
|
var e = Q(t, ["when", "delay", "delayChildren", "staggerChildren", "staggerDirection", "repeat", "repeatType", "repeatDelay", "from"]);
|
1130
1130
|
return !!Object.keys(e).length;
|
1131
1131
|
}
|
1132
|
-
var
|
1133
|
-
function
|
1132
|
+
var fr = !1;
|
1133
|
+
function to(t) {
|
1134
1134
|
var e = t.ease, r = t.times, n = t.yoyo, i = t.flip, s = t.loop, o = Q(t, ["ease", "times", "yoyo", "flip", "loop"]), a = m({}, o);
|
1135
|
-
return r && (a.offset = r), o.duration && (a.duration = Qt(o.duration)), o.repeatDelay && (a.repeatDelay = Qt(o.repeatDelay)), e && (a.ease =
|
1135
|
+
return r && (a.offset = r), o.duration && (a.duration = Qt(o.duration)), o.repeatDelay && (a.repeatDelay = Qt(o.repeatDelay)), e && (a.ease = Za(e) ? e.map(sr) : sr(e)), o.type === "tween" && (a.type = "keyframes"), (n || s || i) && (Qr(!fr, "yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."), fr = !0, n ? a.repeatType = "reverse" : s ? a.repeatType = "loop" : i && (a.repeatType = "mirror"), a.repeat = s || n || i || o.repeat), o.type !== "spring" && (a.type = "keyframes"), a;
|
1136
1136
|
}
|
1137
|
-
function
|
1138
|
-
var r, n, i =
|
1137
|
+
function eo(t, e) {
|
1138
|
+
var r, n, i = Ge(t, e) || {};
|
1139
1139
|
return (n = (r = i.delay) !== null && r !== void 0 ? r : t.delay) !== null && n !== void 0 ? n : 0;
|
1140
1140
|
}
|
1141
|
-
function
|
1142
|
-
return Array.isArray(t.to) && t.to[0] === null && (t.to =
|
1141
|
+
function ro(t) {
|
1142
|
+
return Array.isArray(t.to) && t.to[0] === null && (t.to = z([], R(t.to), !1), t.to[0] = t.from), t;
|
1143
1143
|
}
|
1144
|
-
function
|
1144
|
+
function no(t, e, r) {
|
1145
1145
|
var n;
|
1146
|
-
return Array.isArray(e.to) && ((n = t.duration) !== null && n !== void 0 || (t.duration = 0.8)),
|
1146
|
+
return Array.isArray(e.to) && ((n = t.duration) !== null && n !== void 0 || (t.duration = 0.8)), ro(e), Qa(t) || (t = m(m({}, t), qa(r, e.to))), m(m({}, e), to(t));
|
1147
1147
|
}
|
1148
|
-
function
|
1149
|
-
var s, o =
|
1150
|
-
a === "none" && u && typeof r == "string" ? a =
|
1151
|
-
var l =
|
1152
|
-
|
1148
|
+
function io(t, e, r, n, i) {
|
1149
|
+
var s, o = Ge(n, t), a = (s = o.from) !== null && s !== void 0 ? s : e.get(), u = ur(t, r);
|
1150
|
+
a === "none" && u && typeof r == "string" ? a = Ke(t, r) : cr(a) && typeof r == "string" ? a = vr(r) : !Array.isArray(r) && cr(r) && typeof a == "string" && (r = vr(a));
|
1151
|
+
var l = ur(t, a);
|
1152
|
+
Qr(l === u, "You are trying to animate ".concat(t, ' from "').concat(a, '" to "').concat(r, '". ').concat(a, " is not an animatable value - to enable this animation set ").concat(a, " to a value animatable to ").concat(r, " via the `style` property."));
|
1153
1153
|
function f() {
|
1154
1154
|
var c = {
|
1155
1155
|
from: a,
|
@@ -1160,7 +1160,7 @@ function eo(t, e, r, n, i) {
|
|
1160
1160
|
return e.set(d);
|
1161
1161
|
}
|
1162
1162
|
};
|
1163
|
-
return o.type === "inertia" || o.type === "decay" ?
|
1163
|
+
return o.type === "inertia" || o.type === "decay" ? bi(m(m({}, c), o)) : tn(m(m({}, no(o, c, t)), { onUpdate: function(d) {
|
1164
1164
|
var p;
|
1165
1165
|
c.onUpdate(d), (p = o.onUpdate) === null || p === void 0 || p.call(o, d);
|
1166
1166
|
}, onComplete: function() {
|
@@ -1169,24 +1169,24 @@ function eo(t, e, r, n, i) {
|
|
1169
1169
|
} }));
|
1170
1170
|
}
|
1171
1171
|
function v() {
|
1172
|
-
var c, d, p =
|
1172
|
+
var c, d, p = Tn(r);
|
1173
1173
|
return e.set(p), i(), (c = o?.onUpdate) === null || c === void 0 || c.call(o, p), (d = o?.onComplete) === null || d === void 0 || d.call(o), { stop: function() {
|
1174
1174
|
} };
|
1175
1175
|
}
|
1176
1176
|
return !l || !u || o.type === !1 ? v : f;
|
1177
1177
|
}
|
1178
|
-
function
|
1178
|
+
function cr(t) {
|
1179
1179
|
return t === 0 || typeof t == "string" && parseFloat(t) === 0 && t.indexOf(" ") === -1;
|
1180
1180
|
}
|
1181
|
-
function
|
1182
|
-
return typeof t == "number" ? 0 :
|
1181
|
+
function vr(t) {
|
1182
|
+
return typeof t == "number" ? 0 : Ke("", t);
|
1183
1183
|
}
|
1184
|
-
function
|
1184
|
+
function Ge(t, e) {
|
1185
1185
|
return t[e] || t.default || t;
|
1186
1186
|
}
|
1187
|
-
function
|
1187
|
+
function Ye(t, e, r, n) {
|
1188
1188
|
return n === void 0 && (n = {}), e.start(function(i) {
|
1189
|
-
var s, o, a =
|
1189
|
+
var s, o, a = io(t, e, r, n, i), u = eo(n, t), l = function() {
|
1190
1190
|
return o = a();
|
1191
1191
|
};
|
1192
1192
|
return u ? s = window.setTimeout(l, Qt(u)) : l(), function() {
|
@@ -1194,15 +1194,15 @@ function Ge(t, e, r, n) {
|
|
1194
1194
|
};
|
1195
1195
|
});
|
1196
1196
|
}
|
1197
|
-
var
|
1197
|
+
var ao = function(t) {
|
1198
1198
|
return /^\-?\d*\.?\d+$/.test(t);
|
1199
|
-
},
|
1199
|
+
}, oo = function(t) {
|
1200
1200
|
return /^0[^.\s]+$/.test(t);
|
1201
1201
|
};
|
1202
|
-
function
|
1202
|
+
function ke(t, e) {
|
1203
1203
|
t.indexOf(e) === -1 && t.push(e);
|
1204
1204
|
}
|
1205
|
-
function
|
1205
|
+
function Xe(t, e) {
|
1206
1206
|
var r = t.indexOf(e);
|
1207
1207
|
r > -1 && t.splice(r, 1);
|
1208
1208
|
}
|
@@ -1214,8 +1214,8 @@ var Rt = (
|
|
1214
1214
|
}
|
1215
1215
|
return t.prototype.add = function(e) {
|
1216
1216
|
var r = this;
|
1217
|
-
return
|
1218
|
-
return
|
1217
|
+
return ke(this.subscriptions, e), function() {
|
1218
|
+
return Xe(r.subscriptions, e);
|
1219
1219
|
};
|
1220
1220
|
}, t.prototype.notify = function(e, r, n) {
|
1221
1221
|
var i = this.subscriptions.length;
|
@@ -1233,9 +1233,9 @@ var Rt = (
|
|
1233
1233
|
this.subscriptions.length = 0;
|
1234
1234
|
}, t;
|
1235
1235
|
}()
|
1236
|
-
),
|
1236
|
+
), so = function(t) {
|
1237
1237
|
return !isNaN(parseFloat(t));
|
1238
|
-
},
|
1238
|
+
}, uo = (
|
1239
1239
|
/** @class */
|
1240
1240
|
function() {
|
1241
1241
|
function t(e) {
|
@@ -1249,7 +1249,7 @@ var Rt = (
|
|
1249
1249
|
}, this.velocityCheck = function(n) {
|
1250
1250
|
var i = n.timestamp;
|
1251
1251
|
i !== r.lastUpdated && (r.prev = r.current, r.velocityUpdateSubscribers.notify(r.getVelocity()));
|
1252
|
-
}, this.hasAnimated = !1, this.prev = this.current = e, this.canTrackVelocity =
|
1252
|
+
}, this.hasAnimated = !1, this.prev = this.current = e, this.canTrackVelocity = so(this.current);
|
1253
1253
|
}
|
1254
1254
|
return t.prototype.onChange = function(e) {
|
1255
1255
|
return this.updateSubscribers.add(e);
|
@@ -1268,7 +1268,7 @@ var Rt = (
|
|
1268
1268
|
}, t.prototype.getVelocity = function() {
|
1269
1269
|
return this.canTrackVelocity ? (
|
1270
1270
|
// These casts could be avoided if parseFloat would be typed better
|
1271
|
-
|
1271
|
+
Pi(parseFloat(this.current) - parseFloat(this.prev), this.timeDelta)
|
1272
1272
|
) : 0;
|
1273
1273
|
}, t.prototype.start = function(e) {
|
1274
1274
|
var r = this;
|
@@ -1288,138 +1288,159 @@ var Rt = (
|
|
1288
1288
|
}, t;
|
1289
1289
|
}()
|
1290
1290
|
);
|
1291
|
-
function
|
1292
|
-
return new
|
1291
|
+
function dt(t) {
|
1292
|
+
return new uo(t);
|
1293
1293
|
}
|
1294
|
-
var
|
1294
|
+
var jn = function(t) {
|
1295
1295
|
return function(e) {
|
1296
1296
|
return e.test(t);
|
1297
1297
|
};
|
1298
|
-
},
|
1298
|
+
}, lo = {
|
1299
1299
|
test: function(t) {
|
1300
1300
|
return t === "auto";
|
1301
1301
|
},
|
1302
1302
|
parse: function(t) {
|
1303
1303
|
return t;
|
1304
1304
|
}
|
1305
|
-
},
|
1306
|
-
return
|
1307
|
-
},
|
1308
|
-
return
|
1305
|
+
}, Bn = [Le, T, Ot, at, Vi, Ti, lo], wt = function(t) {
|
1306
|
+
return Bn.find(jn(t));
|
1307
|
+
}, fo = z(z([], R(Bn), !1), [X, Pt], !1), co = function(t) {
|
1308
|
+
return fo.find(jn(t));
|
1309
1309
|
};
|
1310
|
-
function
|
1311
|
-
t.hasValue(e) ? t.getValue(e).set(r) : t.addValue(e,
|
1310
|
+
function vo(t, e, r) {
|
1311
|
+
t.hasValue(e) ? t.getValue(e).set(r) : t.addValue(e, dt(r));
|
1312
1312
|
}
|
1313
|
-
function
|
1313
|
+
function We(t, e) {
|
1314
1314
|
var r = re(t, e), n = r ? t.makeTargetAnimatable(r, !1) : {}, i = n.transitionEnd, s = i === void 0 ? {} : i;
|
1315
1315
|
n.transition;
|
1316
1316
|
var o = Q(n, ["transitionEnd", "transition"]);
|
1317
1317
|
o = m(m({}, o), s);
|
1318
1318
|
for (var a in o) {
|
1319
|
-
var u =
|
1320
|
-
|
1319
|
+
var u = Tn(o[a]);
|
1320
|
+
vo(t, a, u);
|
1321
1321
|
}
|
1322
1322
|
}
|
1323
|
-
function
|
1323
|
+
function Se(t, e) {
|
1324
|
+
var r = z([], R(e), !1).reverse();
|
1325
|
+
r.forEach(function(n) {
|
1326
|
+
var i, s = t.getVariant(n);
|
1327
|
+
s && We(t, s), (i = t.variantChildren) === null || i === void 0 || i.forEach(function(o) {
|
1328
|
+
Se(o, e);
|
1329
|
+
});
|
1330
|
+
});
|
1331
|
+
}
|
1332
|
+
function po(t, e) {
|
1333
|
+
if (Array.isArray(e))
|
1334
|
+
return Se(t, e);
|
1335
|
+
if (typeof e == "string")
|
1336
|
+
return Se(t, [e]);
|
1337
|
+
We(t, e);
|
1338
|
+
}
|
1339
|
+
function ho(t, e, r) {
|
1324
1340
|
var n, i, s, o, a = Object.keys(e).filter(function(d) {
|
1325
1341
|
return !t.hasValue(d);
|
1326
1342
|
}), u = a.length;
|
1327
1343
|
if (u)
|
1328
1344
|
for (var l = 0; l < u; l++) {
|
1329
1345
|
var f = a[l], v = e[f], c = null;
|
1330
|
-
Array.isArray(v) && (c = v[0]), c === null && (c = (i = (n = r[f]) !== null && n !== void 0 ? n : t.readValue(f)) !== null && i !== void 0 ? i : e[f]), c != null && (typeof c == "string" && (
|
1346
|
+
Array.isArray(v) && (c = v[0]), c === null && (c = (i = (n = r[f]) !== null && n !== void 0 ? n : t.readValue(f)) !== null && i !== void 0 ? i : e[f]), c != null && (typeof c == "string" && (ao(c) || oo(c)) ? c = parseFloat(c) : !co(c) && Pt.test(v) && (c = Ke(f, v)), t.addValue(f, dt(c)), (s = (o = r)[f]) !== null && s !== void 0 || (o[f] = c), t.setBaseTarget(f, c));
|
1331
1347
|
}
|
1332
1348
|
}
|
1333
|
-
function
|
1349
|
+
function mo(t, e) {
|
1334
1350
|
if (e) {
|
1335
1351
|
var r = e[t] || e.default || e;
|
1336
1352
|
return r.from;
|
1337
1353
|
}
|
1338
1354
|
}
|
1339
|
-
function
|
1355
|
+
function go(t, e, r) {
|
1340
1356
|
var n, i, s = {};
|
1341
1357
|
for (var o in t)
|
1342
|
-
s[o] = (n =
|
1358
|
+
s[o] = (n = mo(o, e)) !== null && n !== void 0 ? n : (i = r.getValue(o)) === null || i === void 0 ? void 0 : i.get();
|
1343
1359
|
return s;
|
1344
1360
|
}
|
1345
|
-
function
|
1361
|
+
function Un(t, e, r) {
|
1346
1362
|
r === void 0 && (r = {}), t.notifyAnimationStart(e);
|
1347
1363
|
var n;
|
1348
1364
|
if (Array.isArray(e)) {
|
1349
1365
|
var i = e.map(function(o) {
|
1350
|
-
return
|
1366
|
+
return xe(t, o, r);
|
1351
1367
|
});
|
1352
1368
|
n = Promise.all(i);
|
1353
1369
|
} else if (typeof e == "string")
|
1354
|
-
n =
|
1370
|
+
n = xe(t, e, r);
|
1355
1371
|
else {
|
1356
1372
|
var s = typeof e == "function" ? re(t, e, r.custom) : e;
|
1357
|
-
n =
|
1373
|
+
n = _n(t, s, r);
|
1358
1374
|
}
|
1359
1375
|
return n.then(function() {
|
1360
1376
|
return t.notifyAnimationComplete(e);
|
1361
1377
|
});
|
1362
1378
|
}
|
1363
|
-
function
|
1379
|
+
function xe(t, e, r) {
|
1364
1380
|
var n;
|
1365
1381
|
r === void 0 && (r = {});
|
1366
1382
|
var i = re(t, e, r.custom), s = (i || {}).transition, o = s === void 0 ? t.getDefaultTransition() || {} : s;
|
1367
1383
|
r.transitionOverride && (o = r.transitionOverride);
|
1368
1384
|
var a = i ? function() {
|
1369
|
-
return
|
1385
|
+
return _n(t, i, r);
|
1370
1386
|
} : function() {
|
1371
1387
|
return Promise.resolve();
|
1372
1388
|
}, u = !((n = t.variantChildren) === null || n === void 0) && n.size ? function(d) {
|
1373
1389
|
d === void 0 && (d = 0);
|
1374
1390
|
var p = o.delayChildren, h = p === void 0 ? 0 : p, g = o.staggerChildren, b = o.staggerDirection;
|
1375
|
-
return
|
1391
|
+
return yo(t, e, h + d, g, b, r);
|
1376
1392
|
} : function() {
|
1377
1393
|
return Promise.resolve();
|
1378
1394
|
}, l = o.when;
|
1379
1395
|
if (l) {
|
1380
|
-
var f =
|
1396
|
+
var f = R(l === "beforeChildren" ? [a, u] : [u, a], 2), v = f[0], c = f[1];
|
1381
1397
|
return v().then(c);
|
1382
1398
|
} else
|
1383
1399
|
return Promise.all([a(), u(r.delay)]);
|
1384
1400
|
}
|
1385
|
-
function
|
1401
|
+
function _n(t, e, r) {
|
1386
1402
|
var n, i = r === void 0 ? {} : r, s = i.delay, o = s === void 0 ? 0 : s, a = i.transitionOverride, u = i.type, l = t.makeTargetAnimatable(e), f = l.transition, v = f === void 0 ? t.getDefaultTransition() : f, c = l.transitionEnd, d = Q(l, ["transition", "transitionEnd"]);
|
1387
1403
|
a && (v = a);
|
1388
1404
|
var p = [], h = u && ((n = t.animationState) === null || n === void 0 ? void 0 : n.getState()[u]);
|
1389
1405
|
for (var g in d) {
|
1390
1406
|
var b = t.getValue(g), P = d[g];
|
1391
|
-
if (!(!b || P === void 0 || h &&
|
1407
|
+
if (!(!b || P === void 0 || h && Vo(h, g))) {
|
1392
1408
|
var S = m({ delay: o }, v);
|
1393
1409
|
t.shouldReduceMotion && Ht(g) && (S = m(m({}, S), { type: !1, delay: 0 }));
|
1394
|
-
var C =
|
1410
|
+
var C = Ye(g, b, P, S);
|
1395
1411
|
p.push(C);
|
1396
1412
|
}
|
1397
1413
|
}
|
1398
1414
|
return Promise.all(p).then(function() {
|
1399
|
-
c &&
|
1415
|
+
c && We(t, c);
|
1400
1416
|
});
|
1401
1417
|
}
|
1402
|
-
function
|
1418
|
+
function yo(t, e, r, n, i, s) {
|
1403
1419
|
r === void 0 && (r = 0), n === void 0 && (n = 0), i === void 0 && (i = 1);
|
1404
1420
|
var o = [], a = (t.variantChildren.size - 1) * n, u = i === 1 ? function(l) {
|
1405
1421
|
return l === void 0 && (l = 0), l * n;
|
1406
1422
|
} : function(l) {
|
1407
1423
|
return l === void 0 && (l = 0), a - l * n;
|
1408
1424
|
};
|
1409
|
-
return Array.from(t.variantChildren).sort(
|
1410
|
-
o.push(
|
1425
|
+
return Array.from(t.variantChildren).sort(Po).forEach(function(l, f) {
|
1426
|
+
o.push(xe(l, e, m(m({}, s), { delay: r + u(f) })).then(function() {
|
1411
1427
|
return l.notifyAnimationComplete(e);
|
1412
1428
|
}));
|
1413
1429
|
}), Promise.all(o);
|
1414
1430
|
}
|
1415
|
-
function
|
1431
|
+
function bo(t) {
|
1432
|
+
t.forEachValue(function(e) {
|
1433
|
+
return e.stop();
|
1434
|
+
});
|
1435
|
+
}
|
1436
|
+
function Po(t, e) {
|
1416
1437
|
return t.sortNodePosition(e);
|
1417
1438
|
}
|
1418
|
-
function
|
1439
|
+
function Vo(t, e) {
|
1419
1440
|
var r = t.protectedKeys, n = t.needsAnimating, i = r.hasOwnProperty(e) && n[e] !== !0;
|
1420
1441
|
return n[e] = !1, i;
|
1421
1442
|
}
|
1422
|
-
var
|
1443
|
+
var Ze = [
|
1423
1444
|
L.Animate,
|
1424
1445
|
L.InView,
|
1425
1446
|
L.Focus,
|
@@ -1427,17 +1448,17 @@ var Xe = [
|
|
1427
1448
|
L.Tap,
|
1428
1449
|
L.Drag,
|
1429
1450
|
L.Exit
|
1430
|
-
],
|
1431
|
-
function
|
1451
|
+
], To = z([], R(Ze), !1).reverse(), So = Ze.length;
|
1452
|
+
function xo(t) {
|
1432
1453
|
return function(e) {
|
1433
1454
|
return Promise.all(e.map(function(r) {
|
1434
1455
|
var n = r.animation, i = r.options;
|
1435
|
-
return
|
1456
|
+
return Un(t, n, i);
|
1436
1457
|
}));
|
1437
1458
|
};
|
1438
1459
|
}
|
1439
|
-
function
|
1440
|
-
var e =
|
1460
|
+
function Co(t) {
|
1461
|
+
var e = xo(t), r = wo(), n = {}, i = !0, s = function(f, v) {
|
1441
1462
|
var c = re(t, v);
|
1442
1463
|
if (c) {
|
1443
1464
|
c.transition;
|
@@ -1453,39 +1474,39 @@ function To(t) {
|
|
1453
1474
|
e = f(t);
|
1454
1475
|
}
|
1455
1476
|
function u(f, v) {
|
1456
|
-
for (var c, d = t.getProps(), p = t.getVariantContext(!0) || {}, h = [], g = /* @__PURE__ */ new Set(), b = {}, P = 1 / 0, S = function(
|
1457
|
-
var x =
|
1458
|
-
B === !1 && (P =
|
1459
|
-
var
|
1460
|
-
if (
|
1477
|
+
for (var c, d = t.getProps(), p = t.getVariantContext(!0) || {}, h = [], g = /* @__PURE__ */ new Set(), b = {}, P = 1 / 0, S = function(M) {
|
1478
|
+
var x = To[M], w = r[x], D = (c = d[x]) !== null && c !== void 0 ? c : p[x], K = W(D), B = x === v ? w.isActive : null;
|
1479
|
+
B === !1 && (P = M);
|
1480
|
+
var H = D === p[x] && D !== d[x] && K;
|
1481
|
+
if (H && i && t.manuallyAnimateOnMount && (H = !1), w.protectedKeys = m({}, b), // If it isn't active and hasn't *just* been set as inactive
|
1461
1482
|
!w.isActive && B === null || // If we didn't and don't have any defined prop for this animation type
|
1462
1483
|
!D && !w.prevProp || // Or if the prop doesn't define an animation
|
1463
|
-
|
1484
|
+
_e(D) || typeof D == "boolean")
|
1464
1485
|
return "continue";
|
1465
|
-
var rt =
|
1466
|
-
x === v && w.isActive && !
|
1467
|
-
|
1468
|
-
B === !1 && (
|
1469
|
-
var Ct = w.prevResolvedValues, pt = Ct === void 0 ? {} : Ct, zt = m(m({}, pt),
|
1486
|
+
var rt = Ao(w.prevProp, D), nt = rt || // If we're making this variant active, we want to always make it active
|
1487
|
+
x === v && w.isActive && !H && K || // If we removed a higher-priority variant (i is in reverse order)
|
1488
|
+
M > P && K, it = Array.isArray(D) ? D : [D], G = it.reduce(s, {});
|
1489
|
+
B === !1 && (G = {});
|
1490
|
+
var Ct = w.prevResolvedValues, pt = Ct === void 0 ? {} : Ct, zt = m(m({}, pt), G), ht = function(V) {
|
1470
1491
|
nt = !0, g.delete(V), w.needsAnimating[V] = !0;
|
1471
1492
|
};
|
1472
1493
|
for (var _ in zt) {
|
1473
|
-
var E =
|
1474
|
-
b.hasOwnProperty(_) || (E !== y ? Ut(E) && Ut(y) ? !
|
1494
|
+
var E = G[_], y = pt[_];
|
1495
|
+
b.hasOwnProperty(_) || (E !== y ? Ut(E) && Ut(y) ? !Fn(E, y) || rt ? ht(_) : w.protectedKeys[_] = !0 : E !== void 0 ? ht(_) : g.add(_) : E !== void 0 && g.has(_) ? ht(_) : w.protectedKeys[_] = !0);
|
1475
1496
|
}
|
1476
|
-
w.prevProp = D, w.prevResolvedValues =
|
1497
|
+
w.prevProp = D, w.prevResolvedValues = G, w.isActive && (b = m(m({}, b), G)), i && t.blockInitialAnimation && (nt = !1), nt && !H && h.push.apply(h, z([], R(it.map(function(V) {
|
1477
1498
|
return {
|
1478
1499
|
animation: V,
|
1479
1500
|
options: m({ type: x }, f)
|
1480
1501
|
};
|
1481
1502
|
})), !1));
|
1482
|
-
}, C = 0; C <
|
1503
|
+
}, C = 0; C < So; C++)
|
1483
1504
|
S(C);
|
1484
1505
|
if (n = m({}, b), g.size) {
|
1485
1506
|
var A = {};
|
1486
|
-
g.forEach(function(
|
1487
|
-
var x = t.getBaseTarget(
|
1488
|
-
x !== void 0 && (A[
|
1507
|
+
g.forEach(function(M) {
|
1508
|
+
var x = t.getBaseTarget(M);
|
1509
|
+
x !== void 0 && (A[M] = x);
|
1489
1510
|
}), h.push({ animation: A });
|
1490
1511
|
}
|
1491
1512
|
var I = !!h.length;
|
@@ -1514,10 +1535,10 @@ function To(t) {
|
|
1514
1535
|
}
|
1515
1536
|
};
|
1516
1537
|
}
|
1517
|
-
function
|
1518
|
-
return typeof e == "string" ? e !== t :
|
1538
|
+
function Ao(t, e) {
|
1539
|
+
return typeof e == "string" ? e !== t : on(e) ? !Fn(e, t) : !1;
|
1519
1540
|
}
|
1520
|
-
function
|
1541
|
+
function vt(t) {
|
1521
1542
|
return t === void 0 && (t = !1), {
|
1522
1543
|
isActive: t,
|
1523
1544
|
protectedKeys: {},
|
@@ -1525,34 +1546,34 @@ function ft(t) {
|
|
1525
1546
|
prevResolvedValues: {}
|
1526
1547
|
};
|
1527
1548
|
}
|
1528
|
-
function
|
1549
|
+
function wo() {
|
1529
1550
|
var t;
|
1530
|
-
return t = {}, t[L.Animate] =
|
1551
|
+
return t = {}, t[L.Animate] = vt(!0), t[L.InView] = vt(), t[L.Hover] = vt(), t[L.Tap] = vt(), t[L.Drag] = vt(), t[L.Focus] = vt(), t[L.Exit] = vt(), t;
|
1531
1552
|
}
|
1532
|
-
var
|
1553
|
+
var Eo = {
|
1533
1554
|
animation: ut(function(t) {
|
1534
1555
|
var e = t.visualElement, r = t.animate;
|
1535
|
-
e.animationState || (e.animationState =
|
1556
|
+
e.animationState || (e.animationState = Co(e)), _e(r) && N(function() {
|
1536
1557
|
return r.subscribe(e);
|
1537
1558
|
}, [r]);
|
1538
1559
|
}),
|
1539
1560
|
exit: ut(function(t) {
|
1540
|
-
var e = t.custom, r = t.visualElement, n =
|
1541
|
-
|
1561
|
+
var e = t.custom, r = t.visualElement, n = R(On(), 2), i = n[0], s = n[1], o = F(Nt);
|
1562
|
+
N(function() {
|
1542
1563
|
var a, u;
|
1543
1564
|
r.isPresent = i;
|
1544
1565
|
var l = (a = r.animationState) === null || a === void 0 ? void 0 : a.setActive(L.Exit, !i, { custom: (u = o?.custom) !== null && u !== void 0 ? u : e });
|
1545
1566
|
!i && l?.then(s);
|
1546
1567
|
}, [i]);
|
1547
1568
|
})
|
1548
|
-
},
|
1569
|
+
}, Nn = (
|
1549
1570
|
/** @class */
|
1550
1571
|
function() {
|
1551
1572
|
function t(e, r, n) {
|
1552
1573
|
var i = this, s = n === void 0 ? {} : n, o = s.transformPagePoint;
|
1553
1574
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.updatePoint = function() {
|
1554
1575
|
if (i.lastMoveEvent && i.lastMoveEventInfo) {
|
1555
|
-
var c = ce(i.lastMoveEventInfo, i.history), d = i.startEvent !== null, p =
|
1576
|
+
var c = ce(i.lastMoveEventInfo, i.history), d = i.startEvent !== null, p = en(c.offset, { x: 0, y: 0 }) >= 3;
|
1556
1577
|
if (!(!d && !p)) {
|
1557
1578
|
var h = c.point, g = me().timestamp;
|
1558
1579
|
i.history.push(m(m({}, h), { timestamp: g }));
|
@@ -1561,7 +1582,7 @@ var Co = {
|
|
1561
1582
|
}
|
1562
1583
|
}
|
1563
1584
|
}, this.handlePointerMove = function(c, d) {
|
1564
|
-
if (i.lastMoveEvent = c, i.lastMoveEventInfo = fe(d, i.transformPagePoint),
|
1585
|
+
if (i.lastMoveEvent = c, i.lastMoveEventInfo = fe(d, i.transformPagePoint), xn(c) && c.buttons === 0) {
|
1565
1586
|
i.handlePointerUp(c, d);
|
1566
1587
|
return;
|
1567
1588
|
}
|
@@ -1570,12 +1591,12 @@ var Co = {
|
|
1570
1591
|
i.end();
|
1571
1592
|
var p = i.handlers, h = p.onEnd, g = p.onSessionEnd, b = ce(fe(d, i.transformPagePoint), i.history);
|
1572
1593
|
i.startEvent && h && h(c, b), g && g(c, b);
|
1573
|
-
}, !(
|
1594
|
+
}, !(Cn(e) && e.touches.length > 1)) {
|
1574
1595
|
this.handlers = r, this.transformPagePoint = o;
|
1575
|
-
var a =
|
1596
|
+
var a = Ne(e), u = fe(a, this.transformPagePoint), l = u.point, f = me().timestamp;
|
1576
1597
|
this.history = [m(m({}, l), { timestamp: f })];
|
1577
1598
|
var v = r.onSessionStart;
|
1578
|
-
v && v(e, ce(u, this.history)), this.removeListeners =
|
1599
|
+
v && v(e, ce(u, this.history)), this.removeListeners = $r(bt(window, "pointermove", this.handlePointerMove), bt(window, "pointerup", this.handlePointerUp), bt(window, "pointercancel", this.handlePointerUp));
|
1579
1600
|
}
|
1580
1601
|
}
|
1581
1602
|
return t.prototype.updateHandlers = function(e) {
|
@@ -1588,28 +1609,28 @@ var Co = {
|
|
1588
1609
|
function fe(t, e) {
|
1589
1610
|
return e ? { point: e(t.point) } : t;
|
1590
1611
|
}
|
1591
|
-
function
|
1612
|
+
function dr(t, e) {
|
1592
1613
|
return { x: t.x - e.x, y: t.y - e.y };
|
1593
1614
|
}
|
1594
1615
|
function ce(t, e) {
|
1595
1616
|
var r = t.point;
|
1596
1617
|
return {
|
1597
1618
|
point: r,
|
1598
|
-
delta:
|
1599
|
-
offset:
|
1600
|
-
velocity:
|
1619
|
+
delta: dr(r, Hn(e)),
|
1620
|
+
offset: dr(r, Lo(e)),
|
1621
|
+
velocity: Ro(e, 0.1)
|
1601
1622
|
};
|
1602
1623
|
}
|
1603
|
-
function
|
1624
|
+
function Lo(t) {
|
1604
1625
|
return t[0];
|
1605
1626
|
}
|
1606
|
-
function
|
1627
|
+
function Hn(t) {
|
1607
1628
|
return t[t.length - 1];
|
1608
1629
|
}
|
1609
|
-
function
|
1630
|
+
function Ro(t, e) {
|
1610
1631
|
if (t.length < 2)
|
1611
1632
|
return { x: 0, y: 0 };
|
1612
|
-
for (var r = t.length - 1, n = null, i =
|
1633
|
+
for (var r = t.length - 1, n = null, i = Hn(t); r >= 0 && (n = t[r], !(i.timestamp - n.timestamp > Qt(e))); )
|
1613
1634
|
r--;
|
1614
1635
|
if (!n)
|
1615
1636
|
return { x: 0, y: 0 };
|
@@ -1625,80 +1646,80 @@ function wo(t, e) {
|
|
1625
1646
|
function et(t) {
|
1626
1647
|
return t.max - t.min;
|
1627
1648
|
}
|
1628
|
-
function
|
1629
|
-
return e === void 0 && (e = 0), r === void 0 && (r = 0.01),
|
1649
|
+
function pr(t, e, r) {
|
1650
|
+
return e === void 0 && (e = 0), r === void 0 && (r = 0.01), en(t, e) < r;
|
1630
1651
|
}
|
1631
|
-
function
|
1632
|
-
n === void 0 && (n = 0.5), t.origin = n, t.originPoint = O(e.min, e.max, t.origin), t.scale = et(r) / et(e), (
|
1652
|
+
function hr(t, e, r, n) {
|
1653
|
+
n === void 0 && (n = 0.5), t.origin = n, t.originPoint = O(e.min, e.max, t.origin), t.scale = et(r) / et(e), (pr(t.scale, 1, 1e-4) || isNaN(t.scale)) && (t.scale = 1), t.translate = O(r.min, r.max, t.origin) - t.originPoint, (pr(t.translate) || isNaN(t.translate)) && (t.translate = 0);
|
1633
1654
|
}
|
1634
|
-
function
|
1635
|
-
|
1655
|
+
function Mt(t, e, r, n) {
|
1656
|
+
hr(t.x, e.x, r.x, n?.originX), hr(t.y, e.y, r.y, n?.originY);
|
1636
1657
|
}
|
1637
|
-
function
|
1658
|
+
function mr(t, e, r) {
|
1638
1659
|
t.min = r.min + e.min, t.max = t.min + et(e);
|
1639
1660
|
}
|
1640
|
-
function
|
1641
|
-
|
1661
|
+
function Mo(t, e, r) {
|
1662
|
+
mr(t.x, e.x, r.x), mr(t.y, e.y, r.y);
|
1642
1663
|
}
|
1643
|
-
function
|
1664
|
+
function gr(t, e, r) {
|
1644
1665
|
t.min = e.min - r.min, t.max = t.min + et(e);
|
1645
1666
|
}
|
1646
|
-
function
|
1647
|
-
|
1667
|
+
function Dt(t, e, r) {
|
1668
|
+
gr(t.x, e.x, r.x), gr(t.y, e.y, r.y);
|
1648
1669
|
}
|
1649
|
-
function
|
1670
|
+
function Do(t, e, r) {
|
1650
1671
|
var n = e.min, i = e.max;
|
1651
1672
|
return n !== void 0 && t < n ? t = r ? O(n, t, r.min) : Math.max(t, n) : i !== void 0 && t > i && (t = r ? O(i, t, r.max) : Math.min(t, i)), t;
|
1652
1673
|
}
|
1653
|
-
function
|
1674
|
+
function yr(t, e, r) {
|
1654
1675
|
return {
|
1655
1676
|
min: e !== void 0 ? t.min + e : void 0,
|
1656
1677
|
max: r !== void 0 ? t.max + r - (t.max - t.min) : void 0
|
1657
1678
|
};
|
1658
1679
|
}
|
1659
|
-
function
|
1680
|
+
function Io(t, e) {
|
1660
1681
|
var r = e.top, n = e.left, i = e.bottom, s = e.right;
|
1661
1682
|
return {
|
1662
|
-
x:
|
1663
|
-
y:
|
1683
|
+
x: yr(t.x, n, s),
|
1684
|
+
y: yr(t.y, r, i)
|
1664
1685
|
};
|
1665
1686
|
}
|
1666
|
-
function
|
1687
|
+
function br(t, e) {
|
1667
1688
|
var r, n = e.min - t.min, i = e.max - t.max;
|
1668
|
-
return e.max - e.min < t.max - t.min && (r =
|
1689
|
+
return e.max - e.min < t.max - t.min && (r = R([i, n], 2), n = r[0], i = r[1]), { min: n, max: i };
|
1669
1690
|
}
|
1670
|
-
function
|
1691
|
+
function Oo(t, e) {
|
1671
1692
|
return {
|
1672
|
-
x:
|
1673
|
-
y:
|
1693
|
+
x: br(t.x, e.x),
|
1694
|
+
y: br(t.y, e.y)
|
1674
1695
|
};
|
1675
1696
|
}
|
1676
|
-
function
|
1697
|
+
function Fo(t, e) {
|
1677
1698
|
var r = 0.5, n = et(t), i = et(e);
|
1678
|
-
return i > n ? r = ge(e.min, e.max - n, t.min) : n > i && (r = ge(t.min, t.max - i, e.min)),
|
1699
|
+
return i > n ? r = ge(e.min, e.max - n, t.min) : n > i && (r = ge(t.min, t.max - i, e.min)), Si(0, 1, r);
|
1679
1700
|
}
|
1680
|
-
function
|
1701
|
+
function jo(t, e) {
|
1681
1702
|
var r = {};
|
1682
1703
|
return e.min !== void 0 && (r.min = e.min - t.min), e.max !== void 0 && (r.max = e.max - t.min), r;
|
1683
1704
|
}
|
1684
|
-
var
|
1685
|
-
function
|
1686
|
-
return t === void 0 && (t =
|
1687
|
-
x:
|
1688
|
-
y:
|
1705
|
+
var Ce = 0.35;
|
1706
|
+
function Bo(t) {
|
1707
|
+
return t === void 0 && (t = Ce), t === !1 ? t = 0 : t === !0 && (t = Ce), {
|
1708
|
+
x: Pr(t, "left", "right"),
|
1709
|
+
y: Pr(t, "top", "bottom")
|
1689
1710
|
};
|
1690
1711
|
}
|
1691
|
-
function
|
1712
|
+
function Pr(t, e, r) {
|
1692
1713
|
return {
|
1693
|
-
min:
|
1694
|
-
max:
|
1714
|
+
min: Vr(t, e),
|
1715
|
+
max: Vr(t, r)
|
1695
1716
|
};
|
1696
1717
|
}
|
1697
|
-
function
|
1718
|
+
function Vr(t, e) {
|
1698
1719
|
var r;
|
1699
1720
|
return typeof t == "number" ? t : (r = t[e]) !== null && r !== void 0 ? r : 0;
|
1700
1721
|
}
|
1701
|
-
var
|
1722
|
+
var Tr = function() {
|
1702
1723
|
return {
|
1703
1724
|
translate: 0,
|
1704
1725
|
scale: 1,
|
@@ -1707,32 +1728,32 @@ var Pr = function() {
|
|
1707
1728
|
};
|
1708
1729
|
}, It = function() {
|
1709
1730
|
return {
|
1710
|
-
x:
|
1711
|
-
y:
|
1731
|
+
x: Tr(),
|
1732
|
+
y: Tr()
|
1712
1733
|
};
|
1713
|
-
},
|
1734
|
+
}, Sr = function() {
|
1714
1735
|
return { min: 0, max: 0 };
|
1715
1736
|
}, j = function() {
|
1716
1737
|
return {
|
1717
|
-
x:
|
1718
|
-
y:
|
1738
|
+
x: Sr(),
|
1739
|
+
y: Sr()
|
1719
1740
|
};
|
1720
1741
|
};
|
1721
1742
|
function J(t) {
|
1722
1743
|
return [t("x"), t("y")];
|
1723
1744
|
}
|
1724
|
-
function
|
1745
|
+
function zn(t) {
|
1725
1746
|
var e = t.top, r = t.left, n = t.right, i = t.bottom;
|
1726
1747
|
return {
|
1727
1748
|
x: { min: r, max: n },
|
1728
1749
|
y: { min: e, max: i }
|
1729
1750
|
};
|
1730
1751
|
}
|
1731
|
-
function
|
1752
|
+
function Uo(t) {
|
1732
1753
|
var e = t.x, r = t.y;
|
1733
1754
|
return { top: r.min, right: e.max, bottom: r.max, left: e.min };
|
1734
1755
|
}
|
1735
|
-
function
|
1756
|
+
function _o(t, e) {
|
1736
1757
|
if (!e)
|
1737
1758
|
return t;
|
1738
1759
|
var r = e({ x: t.left, y: t.top }), n = e({ x: t.right, y: t.bottom });
|
@@ -1746,59 +1767,59 @@ function jo(t, e) {
|
|
1746
1767
|
function ve(t) {
|
1747
1768
|
return t === void 0 || t === 1;
|
1748
1769
|
}
|
1749
|
-
function
|
1770
|
+
function Kn(t) {
|
1750
1771
|
var e = t.scale, r = t.scaleX, n = t.scaleY;
|
1751
1772
|
return !ve(e) || !ve(r) || !ve(n);
|
1752
1773
|
}
|
1753
1774
|
function ot(t) {
|
1754
|
-
return
|
1775
|
+
return Kn(t) || xr(t.x) || xr(t.y) || t.z || t.rotate || t.rotateX || t.rotateY;
|
1755
1776
|
}
|
1756
|
-
function
|
1777
|
+
function xr(t) {
|
1757
1778
|
return t && t !== "0%";
|
1758
1779
|
}
|
1759
1780
|
function te(t, e, r) {
|
1760
1781
|
var n = t - r, i = e * n;
|
1761
1782
|
return r + i;
|
1762
1783
|
}
|
1763
|
-
function
|
1784
|
+
function Cr(t, e, r, n, i) {
|
1764
1785
|
return i !== void 0 && (t = te(t, i, n)), te(t, r, n) + e;
|
1765
1786
|
}
|
1766
|
-
function
|
1767
|
-
e === void 0 && (e = 0), r === void 0 && (r = 1), t.min =
|
1787
|
+
function Ae(t, e, r, n, i) {
|
1788
|
+
e === void 0 && (e = 0), r === void 0 && (r = 1), t.min = Cr(t.min, e, r, n, i), t.max = Cr(t.max, e, r, n, i);
|
1768
1789
|
}
|
1769
|
-
function
|
1790
|
+
function Gn(t, e) {
|
1770
1791
|
var r = e.x, n = e.y;
|
1771
|
-
|
1792
|
+
Ae(t.x, r.translate, r.scale, r.originPoint), Ae(t.y, n.translate, n.scale, n.originPoint);
|
1772
1793
|
}
|
1773
|
-
function
|
1794
|
+
function No(t, e, r, n) {
|
1774
1795
|
var i, s;
|
1775
1796
|
n === void 0 && (n = !1);
|
1776
1797
|
var o = r.length;
|
1777
1798
|
if (o) {
|
1778
1799
|
e.x = e.y = 1;
|
1779
1800
|
for (var a, u, l = 0; l < o; l++)
|
1780
|
-
a = r[l], u = a.projectionDelta, ((s = (i = a.instance) === null || i === void 0 ? void 0 : i.style) === null || s === void 0 ? void 0 : s.display) !== "contents" && (n && a.options.layoutScroll && a.scroll && a !== a.root && yt(t, { x: -a.scroll.x, y: -a.scroll.y }), u && (e.x *= u.x.scale, e.y *= u.y.scale,
|
1801
|
+
a = r[l], u = a.projectionDelta, ((s = (i = a.instance) === null || i === void 0 ? void 0 : i.style) === null || s === void 0 ? void 0 : s.display) !== "contents" && (n && a.options.layoutScroll && a.scroll && a !== a.root && yt(t, { x: -a.scroll.x, y: -a.scroll.y }), u && (e.x *= u.x.scale, e.y *= u.y.scale, Gn(t, u)), n && ot(a.latestValues) && yt(t, a.latestValues));
|
1781
1802
|
}
|
1782
1803
|
}
|
1783
1804
|
function st(t, e) {
|
1784
1805
|
t.min = t.min + e, t.max = t.max + e;
|
1785
1806
|
}
|
1786
|
-
function
|
1787
|
-
var n =
|
1788
|
-
|
1807
|
+
function Ar(t, e, r) {
|
1808
|
+
var n = R(r, 3), i = n[0], s = n[1], o = n[2], a = e[o] !== void 0 ? e[o] : 0.5, u = O(t.min, t.max, a);
|
1809
|
+
Ae(t, e[i], e[s], u, e.scale);
|
1789
1810
|
}
|
1790
|
-
var
|
1811
|
+
var Ho = ["x", "scaleX", "originX"], zo = ["y", "scaleY", "originY"];
|
1791
1812
|
function yt(t, e) {
|
1792
|
-
|
1813
|
+
Ar(t.x, e, Ho), Ar(t.y, e, zo);
|
1793
1814
|
}
|
1794
|
-
function
|
1795
|
-
return
|
1815
|
+
function Yn(t, e) {
|
1816
|
+
return zn(_o(t.getBoundingClientRect(), e));
|
1796
1817
|
}
|
1797
|
-
function
|
1798
|
-
var n =
|
1818
|
+
function Ko(t, e, r) {
|
1819
|
+
var n = Yn(t, r), i = e.scroll;
|
1799
1820
|
return i && (st(n.x, i.x), st(n.y, i.y)), n;
|
1800
1821
|
}
|
1801
|
-
var
|
1822
|
+
var Go = /* @__PURE__ */ new WeakMap(), Yo = (
|
1802
1823
|
/** @class */
|
1803
1824
|
function() {
|
1804
1825
|
function t(e) {
|
@@ -1808,16 +1829,16 @@ var Ho = /* @__PURE__ */ new WeakMap(), zo = (
|
|
1808
1829
|
var n = this, i = r === void 0 ? {} : r, s = i.snapToCursor, o = s === void 0 ? !1 : s;
|
1809
1830
|
if (this.visualElement.isPresent !== !1) {
|
1810
1831
|
var a = function(v) {
|
1811
|
-
n.stopAnimation(), o && n.snapToCursor(
|
1832
|
+
n.stopAnimation(), o && n.snapToCursor(Ne(v, "page").point);
|
1812
1833
|
}, u = function(v, c) {
|
1813
1834
|
var d, p = n.getProps(), h = p.drag, g = p.dragPropagation, b = p.onDragStart;
|
1814
|
-
h && !g && (n.openGlobalLock && n.openGlobalLock(), n.openGlobalLock =
|
1835
|
+
h && !g && (n.openGlobalLock && n.openGlobalLock(), n.openGlobalLock = Ln(h), !n.openGlobalLock) || (n.isDragging = !0, n.currentDirection = null, n.resolveConstraints(), n.visualElement.projection && (n.visualElement.projection.isAnimationBlocked = !0, n.visualElement.projection.target = void 0), J(function(P) {
|
1815
1836
|
var S, C, A = n.getAxisMotionValue(P).get() || 0;
|
1816
1837
|
if (Ot.test(A)) {
|
1817
1838
|
var I = (C = (S = n.visualElement.projection) === null || S === void 0 ? void 0 : S.layout) === null || C === void 0 ? void 0 : C.actual[P];
|
1818
1839
|
if (I) {
|
1819
|
-
var
|
1820
|
-
A =
|
1840
|
+
var M = et(I);
|
1841
|
+
A = M * (parseFloat(A) / 100);
|
1821
1842
|
}
|
1822
1843
|
}
|
1823
1844
|
n.originPoint[P] = A;
|
@@ -1827,7 +1848,7 @@ var Ho = /* @__PURE__ */ new WeakMap(), zo = (
|
|
1827
1848
|
if (!(!p && !n.openGlobalLock)) {
|
1828
1849
|
var P = c.offset;
|
1829
1850
|
if (h && n.currentDirection === null) {
|
1830
|
-
n.currentDirection =
|
1851
|
+
n.currentDirection = ko(P), n.currentDirection !== null && g?.(n.currentDirection);
|
1831
1852
|
return;
|
1832
1853
|
}
|
1833
1854
|
n.updateAxis("x", c.point, P), n.updateAxis("y", c.point, P), n.visualElement.syncRender(), b?.(v, c);
|
@@ -1835,7 +1856,7 @@ var Ho = /* @__PURE__ */ new WeakMap(), zo = (
|
|
1835
1856
|
}, f = function(v, c) {
|
1836
1857
|
return n.stop(v, c);
|
1837
1858
|
};
|
1838
|
-
this.panSession = new
|
1859
|
+
this.panSession = new Nn(e, {
|
1839
1860
|
onSessionStart: a,
|
1840
1861
|
onStart: u,
|
1841
1862
|
onMove: l,
|
@@ -1859,26 +1880,26 @@ var Ho = /* @__PURE__ */ new WeakMap(), zo = (
|
|
1859
1880
|
var i = this.getProps().drag;
|
1860
1881
|
if (!(!n || !kt(e, i, this.currentDirection))) {
|
1861
1882
|
var s = this.getAxisMotionValue(e), o = this.originPoint[e] + n[e];
|
1862
|
-
this.constraints && this.constraints[e] && (o =
|
1883
|
+
this.constraints && this.constraints[e] && (o = Do(o, this.constraints[e], this.elastic[e])), s.set(o);
|
1863
1884
|
}
|
1864
1885
|
}, t.prototype.resolveConstraints = function() {
|
1865
1886
|
var e = this, r = this.getProps(), n = r.dragConstraints, i = r.dragElastic, s = (this.visualElement.projection || {}).layout, o = this.constraints;
|
1866
|
-
n && gt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && s ? this.constraints =
|
1867
|
-
e.getAxisMotionValue(a) && (e.constraints[a] =
|
1887
|
+
n && gt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && s ? this.constraints = Io(s.actual, n) : this.constraints = !1, this.elastic = Bo(i), o !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && J(function(a) {
|
1888
|
+
e.getAxisMotionValue(a) && (e.constraints[a] = jo(s.actual[a], e.constraints[a]));
|
1868
1889
|
});
|
1869
1890
|
}, t.prototype.resolveRefConstraints = function() {
|
1870
1891
|
var e = this.getProps(), r = e.dragConstraints, n = e.onMeasureDragConstraints;
|
1871
1892
|
if (!r || !gt(r))
|
1872
1893
|
return !1;
|
1873
1894
|
var i = r.current;
|
1874
|
-
|
1895
|
+
lt(i !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");
|
1875
1896
|
var s = this.visualElement.projection;
|
1876
1897
|
if (!s || !s.layout)
|
1877
1898
|
return !1;
|
1878
|
-
var o =
|
1899
|
+
var o = Ko(i, s.root, this.visualElement.getTransformPagePoint()), a = Oo(s.layout.actual, o);
|
1879
1900
|
if (n) {
|
1880
|
-
var u = n(
|
1881
|
-
this.hasMutatedConstraints = !!u, u && (a =
|
1901
|
+
var u = n(Uo(a));
|
1902
|
+
this.hasMutatedConstraints = !!u, u && (a = zn(u));
|
1882
1903
|
}
|
1883
1904
|
return a;
|
1884
1905
|
}, t.prototype.startAnimation = function(e) {
|
@@ -1894,7 +1915,7 @@ var Ho = /* @__PURE__ */ new WeakMap(), zo = (
|
|
1894
1915
|
return Promise.all(v).then(l);
|
1895
1916
|
}, t.prototype.startAxisValueAnimation = function(e, r) {
|
1896
1917
|
var n = this.getAxisMotionValue(e);
|
1897
|
-
return
|
1918
|
+
return Ye(e, n, 0, r);
|
1898
1919
|
}, t.prototype.stopAnimation = function() {
|
1899
1920
|
var e = this;
|
1900
1921
|
J(function(r) {
|
@@ -1924,7 +1945,7 @@ var Ho = /* @__PURE__ */ new WeakMap(), zo = (
|
|
1924
1945
|
var f = e.getAxisMotionValue(l);
|
1925
1946
|
if (f) {
|
1926
1947
|
var v = f.get();
|
1927
|
-
a[l] =
|
1948
|
+
a[l] = Fo({ min: v, max: v }, e.constraints[l]);
|
1928
1949
|
}
|
1929
1950
|
});
|
1930
1951
|
var u = this.visualElement.getProps().transformTemplate;
|
@@ -1937,7 +1958,7 @@ var Ho = /* @__PURE__ */ new WeakMap(), zo = (
|
|
1937
1958
|
}
|
1938
1959
|
}, t.prototype.addListeners = function() {
|
1939
1960
|
var e = this, r;
|
1940
|
-
|
1961
|
+
Go.set(this.visualElement, this);
|
1941
1962
|
var n = this.visualElement.getInstance(), i = bt(n, "pointerdown", function(l) {
|
1942
1963
|
var f = e.getProps(), v = f.drag, c = f.dragListener, d = c === void 0 ? !0 : c;
|
1943
1964
|
v && d && e.start(l);
|
@@ -1959,7 +1980,7 @@ var Ho = /* @__PURE__ */ new WeakMap(), zo = (
|
|
1959
1980
|
u(), i(), a();
|
1960
1981
|
};
|
1961
1982
|
}, t.prototype.getProps = function() {
|
1962
|
-
var e = this.visualElement.getProps(), r = e.drag, n = r === void 0 ? !1 : r, i = e.dragDirectionLock, s = i === void 0 ? !1 : i, o = e.dragPropagation, a = o === void 0 ? !1 : o, u = e.dragConstraints, l = u === void 0 ? !1 : u, f = e.dragElastic, v = f === void 0 ?
|
1983
|
+
var e = this.visualElement.getProps(), r = e.drag, n = r === void 0 ? !1 : r, i = e.dragDirectionLock, s = i === void 0 ? !1 : i, o = e.dragPropagation, a = o === void 0 ? !1 : o, u = e.dragConstraints, l = u === void 0 ? !1 : u, f = e.dragElastic, v = f === void 0 ? Ce : f, c = e.dragMomentum, d = c === void 0 ? !0 : c;
|
1963
1984
|
return m(m({}, e), { drag: n, dragDirectionLock: s, dragPropagation: a, dragConstraints: l, dragElastic: v, dragMomentum: d });
|
1964
1985
|
}, t;
|
1965
1986
|
}()
|
@@ -1967,22 +1988,22 @@ var Ho = /* @__PURE__ */ new WeakMap(), zo = (
|
|
1967
1988
|
function kt(t, e, r) {
|
1968
1989
|
return (e === !0 || e === t) && (r === null || r === t);
|
1969
1990
|
}
|
1970
|
-
function
|
1991
|
+
function ko(t, e) {
|
1971
1992
|
e === void 0 && (e = 10);
|
1972
1993
|
var r = null;
|
1973
1994
|
return Math.abs(t.y) > e ? r = "y" : Math.abs(t.x) > e && (r = "x"), r;
|
1974
1995
|
}
|
1975
|
-
function
|
1976
|
-
var e = t.dragControls, r = t.visualElement, n =
|
1977
|
-
return new
|
1996
|
+
function Xo(t) {
|
1997
|
+
var e = t.dragControls, r = t.visualElement, n = ft(function() {
|
1998
|
+
return new Yo(r);
|
1978
1999
|
});
|
1979
|
-
|
2000
|
+
N(function() {
|
1980
2001
|
return e && e.subscribe(n);
|
1981
|
-
}, [n, e]),
|
2002
|
+
}, [n, e]), N(function() {
|
1982
2003
|
return n.addListeners();
|
1983
2004
|
}, [n]);
|
1984
2005
|
}
|
1985
|
-
function
|
2006
|
+
function Wo(t) {
|
1986
2007
|
var e = t.onPan, r = t.onPanStart, n = t.onPanEnd, i = t.onPanSessionStart, s = t.visualElement, o = e || r || n || i, a = $(null), u = F(_t).transformPagePoint, l = {
|
1987
2008
|
onSessionStart: i,
|
1988
2009
|
onStart: r,
|
@@ -1991,21 +2012,21 @@ function Yo(t) {
|
|
1991
2012
|
a.current = null, n && n(v, c);
|
1992
2013
|
}
|
1993
2014
|
};
|
1994
|
-
|
2015
|
+
N(function() {
|
1995
2016
|
a.current !== null && a.current.updateHandlers(l);
|
1996
2017
|
});
|
1997
2018
|
function f(v) {
|
1998
|
-
a.current = new
|
2019
|
+
a.current = new Nn(v, l, {
|
1999
2020
|
transformPagePoint: u
|
2000
2021
|
});
|
2001
2022
|
}
|
2002
|
-
Jt(s, "pointerdown", o && f),
|
2023
|
+
Jt(s, "pointerdown", o && f), He(function() {
|
2003
2024
|
return a.current && a.current.end();
|
2004
2025
|
});
|
2005
2026
|
}
|
2006
|
-
var
|
2007
|
-
pan: ut(
|
2008
|
-
drag: ut(
|
2027
|
+
var Zo = {
|
2028
|
+
pan: ut(Wo),
|
2029
|
+
drag: ut(Xo)
|
2009
2030
|
}, Xt = [
|
2010
2031
|
"LayoutMeasure",
|
2011
2032
|
"BeforeLayoutMeasure",
|
@@ -2020,7 +2041,7 @@ var ko = {
|
|
2020
2041
|
"SetAxisTarget",
|
2021
2042
|
"Unmount"
|
2022
2043
|
];
|
2023
|
-
function
|
2044
|
+
function $o() {
|
2024
2045
|
var t = Xt.map(function() {
|
2025
2046
|
return new Rt();
|
2026
2047
|
}), e = {}, r = {
|
@@ -2042,37 +2063,37 @@ function Xo() {
|
|
2042
2063
|
}, r["notify" + Xt[i]] = function() {
|
2043
2064
|
for (var s = [], o = 0; o < arguments.length; o++)
|
2044
2065
|
s[o] = arguments[o];
|
2045
|
-
return n.notify.apply(n,
|
2066
|
+
return n.notify.apply(n, z([], R(s), !1));
|
2046
2067
|
};
|
2047
2068
|
}), r;
|
2048
2069
|
}
|
2049
|
-
function
|
2070
|
+
function qo(t, e, r) {
|
2050
2071
|
var n;
|
2051
2072
|
for (var i in e) {
|
2052
2073
|
var s = e[i], o = r[i];
|
2053
2074
|
if (q(s))
|
2054
|
-
t.addValue(i, s), process.env.NODE_ENV === "development" &&
|
2075
|
+
t.addValue(i, s), process.env.NODE_ENV === "development" && Dn(s.version === "6.5.1", "Attempting to mix Framer Motion versions ".concat(s.version, " with 6.5.1 may not work as expected."));
|
2055
2076
|
else if (q(o))
|
2056
|
-
t.addValue(i,
|
2077
|
+
t.addValue(i, dt(s));
|
2057
2078
|
else if (o !== s)
|
2058
2079
|
if (t.hasValue(i)) {
|
2059
2080
|
var a = t.getValue(i);
|
2060
2081
|
!a.hasAnimated && a.set(s);
|
2061
2082
|
} else
|
2062
|
-
t.addValue(i,
|
2083
|
+
t.addValue(i, dt((n = t.getStaticValue(i)) !== null && n !== void 0 ? n : s));
|
2063
2084
|
}
|
2064
2085
|
for (var i in r)
|
2065
2086
|
e[i] === void 0 && t.removeValue(i);
|
2066
2087
|
return e;
|
2067
2088
|
}
|
2068
|
-
var
|
2089
|
+
var kn = function(t) {
|
2069
2090
|
var e = t.treeType, r = e === void 0 ? "" : e, n = t.build, i = t.getBaseTarget, s = t.makeTargetAnimatable, o = t.measureViewportBox, a = t.render, u = t.readValueFromInstance, l = t.removeValueFromRenderState, f = t.sortNodePosition, v = t.scrapeMotionValuesFromProps;
|
2070
2091
|
return function(c, d) {
|
2071
2092
|
var p = c.parent, h = c.props, g = c.presenceId, b = c.blockInitialAnimation, P = c.visualState, S = c.shouldReduceMotion;
|
2072
2093
|
d === void 0 && (d = {});
|
2073
|
-
var C = !1, A = P.latestValues, I = P.renderState,
|
2094
|
+
var C = !1, A = P.latestValues, I = P.renderState, M, x = $o(), w = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), K = {}, B = m({}, A), H;
|
2074
2095
|
function rt() {
|
2075
|
-
!
|
2096
|
+
!M || !C || (nt(), a(M, I, h.style, E.projection));
|
2076
2097
|
}
|
2077
2098
|
function nt() {
|
2078
2099
|
n(E, I, A, d, h);
|
@@ -2080,7 +2101,7 @@ var Kn = function(t) {
|
|
2080
2101
|
function it() {
|
2081
2102
|
x.notifyUpdate(A);
|
2082
2103
|
}
|
2083
|
-
function
|
2104
|
+
function G(y, V) {
|
2084
2105
|
var U = V.onChange(function(Kt) {
|
2085
2106
|
A[y] = Kt, h.onUpdate && Z.update(it, !1, !0);
|
2086
2107
|
}), At = V.onRenderRequest(E.scheduleRender);
|
@@ -2093,7 +2114,7 @@ var Kn = function(t) {
|
|
2093
2114
|
var zt = Ct[pt];
|
2094
2115
|
A[pt] !== void 0 && q(zt) && zt.set(A[pt], !1);
|
2095
2116
|
}
|
2096
|
-
var ht = ne(h), _ =
|
2117
|
+
var ht = ne(h), _ = un(h), E = m(m({
|
2097
2118
|
treeType: r,
|
2098
2119
|
/**
|
2099
2120
|
* This is a mirror of the internal instance prop, which keeps
|
@@ -2144,11 +2165,11 @@ var Kn = function(t) {
|
|
2144
2165
|
* own animations on mount.
|
2145
2166
|
*/
|
2146
2167
|
isMounted: function() {
|
2147
|
-
return !!
|
2168
|
+
return !!M;
|
2148
2169
|
},
|
2149
2170
|
mount: function(y) {
|
2150
|
-
C = !0,
|
2151
|
-
return
|
2171
|
+
C = !0, M = E.current = y, E.projection && E.projection.mount(y), _ && p && !ht && (H = p?.addVariantChild(E)), w.forEach(function(V, U) {
|
2172
|
+
return G(U, V);
|
2152
2173
|
}), p?.children.add(E), E.setProps(h);
|
2153
2174
|
},
|
2154
2175
|
/**
|
@@ -2158,7 +2179,7 @@ var Kn = function(t) {
|
|
2158
2179
|
var y;
|
2159
2180
|
(y = E.projection) === null || y === void 0 || y.unmount(), Ft.update(it), Ft.render(rt), D.forEach(function(V) {
|
2160
2181
|
return V();
|
2161
|
-
}),
|
2182
|
+
}), H?.(), p?.children.delete(E), x.clearAllListeners(), M = void 0, C = !1;
|
2162
2183
|
},
|
2163
2184
|
/**
|
2164
2185
|
* Add a child visual element to our set of children.
|
@@ -2190,7 +2211,7 @@ var Kn = function(t) {
|
|
2190
2211
|
* Returns the current instance.
|
2191
2212
|
*/
|
2192
2213
|
getInstance: function() {
|
2193
|
-
return
|
2214
|
+
return M;
|
2194
2215
|
},
|
2195
2216
|
/**
|
2196
2217
|
* Get/set the latest static values.
|
@@ -2232,14 +2253,14 @@ var Kn = function(t) {
|
|
2232
2253
|
* removed with a re-render to work.
|
2233
2254
|
*/
|
2234
2255
|
measureViewportBox: function() {
|
2235
|
-
return o(
|
2256
|
+
return o(M, h);
|
2236
2257
|
},
|
2237
2258
|
// Motion values ========================
|
2238
2259
|
/**
|
2239
2260
|
* Add a motion value and bind it to this visual element.
|
2240
2261
|
*/
|
2241
2262
|
addValue: function(y, V) {
|
2242
|
-
E.hasValue(y) && E.removeValue(y), w.set(y, V), A[y] = V.get(),
|
2263
|
+
E.hasValue(y) && E.removeValue(y), w.set(y, V), A[y] = V.get(), G(y, V);
|
2243
2264
|
},
|
2244
2265
|
/**
|
2245
2266
|
* Remove a motion value and unbind any active subscriptions.
|
@@ -2260,7 +2281,7 @@ var Kn = function(t) {
|
|
2260
2281
|
*/
|
2261
2282
|
getValue: function(y, V) {
|
2262
2283
|
var U = w.get(y);
|
2263
|
-
return U === void 0 && V !== void 0 && (U =
|
2284
|
+
return U === void 0 && V !== void 0 && (U = dt(V), E.addValue(y, U)), U;
|
2264
2285
|
},
|
2265
2286
|
/**
|
2266
2287
|
* Iterate over our motion values.
|
@@ -2275,7 +2296,7 @@ var Kn = function(t) {
|
|
2275
2296
|
*/
|
2276
2297
|
readValue: function(y) {
|
2277
2298
|
var V;
|
2278
|
-
return (V = A[y]) !== null && V !== void 0 ? V : u(
|
2299
|
+
return (V = A[y]) !== null && V !== void 0 ? V : u(M, y, d);
|
2279
2300
|
},
|
2280
2301
|
/**
|
2281
2302
|
* Set the base target to later animate back to. This is currently
|
@@ -2321,7 +2342,7 @@ var Kn = function(t) {
|
|
2321
2342
|
* added to our map, old ones removed, and listeners updated.
|
2322
2343
|
*/
|
2323
2344
|
setProps: function(y) {
|
2324
|
-
(y.transformTemplate || h.transformTemplate) && E.scheduleRender(), h = y, x.updatePropListeners(y),
|
2345
|
+
(y.transformTemplate || h.transformTemplate) && E.scheduleRender(), h = y, x.updatePropListeners(y), K = qo(E, v(h), K);
|
2325
2346
|
},
|
2326
2347
|
getProps: function() {
|
2327
2348
|
return h;
|
@@ -2353,57 +2374,57 @@ var Kn = function(t) {
|
|
2353
2374
|
var V = p?.getVariantContext() || {};
|
2354
2375
|
return h.initial !== void 0 && (V.initial = h.initial), V;
|
2355
2376
|
}
|
2356
|
-
for (var U = {}, At = 0; At <
|
2357
|
-
var Kt =
|
2358
|
-
(
|
2377
|
+
for (var U = {}, At = 0; At < Jo; At++) {
|
2378
|
+
var Kt = Xn[At], ae = h[Kt];
|
2379
|
+
(W(ae) || ae === !1) && (U[Kt] = ae);
|
2359
2380
|
}
|
2360
2381
|
return U;
|
2361
2382
|
}
|
2362
2383
|
});
|
2363
2384
|
return E;
|
2364
2385
|
};
|
2365
|
-
},
|
2366
|
-
function
|
2386
|
+
}, Xn = z(["initial"], R(Ze), !1), Jo = Xn.length;
|
2387
|
+
function we(t) {
|
2367
2388
|
return typeof t == "string" && t.startsWith("var(--");
|
2368
2389
|
}
|
2369
|
-
var
|
2370
|
-
function
|
2371
|
-
var e =
|
2390
|
+
var Wn = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;
|
2391
|
+
function Qo(t) {
|
2392
|
+
var e = Wn.exec(t);
|
2372
2393
|
if (!e)
|
2373
2394
|
return [,];
|
2374
|
-
var r =
|
2395
|
+
var r = R(e, 3), n = r[1], i = r[2];
|
2375
2396
|
return [n, i];
|
2376
2397
|
}
|
2377
|
-
var
|
2378
|
-
function
|
2379
|
-
r === void 0 && (r = 1),
|
2380
|
-
var n =
|
2398
|
+
var ts = 4;
|
2399
|
+
function Ee(t, e, r) {
|
2400
|
+
r === void 0 && (r = 1), lt(r <= ts, 'Max CSS variable fallback depth detected in property "'.concat(t, '". This may indicate a circular fallback dependency.'));
|
2401
|
+
var n = R(Qo(t), 2), i = n[0], s = n[1];
|
2381
2402
|
if (i) {
|
2382
2403
|
var o = window.getComputedStyle(e).getPropertyValue(i);
|
2383
|
-
return o ? o.trim() :
|
2404
|
+
return o ? o.trim() : we(s) ? Ee(s, e, r + 1) : s;
|
2384
2405
|
}
|
2385
2406
|
}
|
2386
|
-
function
|
2407
|
+
function es(t, e, r) {
|
2387
2408
|
var n, i = Q(e, []), s = t.getInstance();
|
2388
2409
|
if (!(s instanceof Element))
|
2389
2410
|
return { target: i, transitionEnd: r };
|
2390
2411
|
r && (r = m({}, r)), t.forEachValue(function(l) {
|
2391
2412
|
var f = l.get();
|
2392
|
-
if (
|
2393
|
-
var v =
|
2413
|
+
if (we(f)) {
|
2414
|
+
var v = Ee(f, s);
|
2394
2415
|
v && l.set(v);
|
2395
2416
|
}
|
2396
2417
|
});
|
2397
2418
|
for (var o in i) {
|
2398
2419
|
var a = i[o];
|
2399
|
-
if (
|
2400
|
-
var u =
|
2420
|
+
if (we(a)) {
|
2421
|
+
var u = Ee(a, s);
|
2401
2422
|
u && (i[o] = u, r && ((n = r[o]) !== null && n !== void 0 || (r[o] = a)));
|
2402
2423
|
}
|
2403
2424
|
}
|
2404
2425
|
return { target: i, transitionEnd: r };
|
2405
2426
|
}
|
2406
|
-
var
|
2427
|
+
var rs = /* @__PURE__ */ new Set([
|
2407
2428
|
"width",
|
2408
2429
|
"height",
|
2409
2430
|
"top",
|
@@ -2412,42 +2433,42 @@ var Qo = /* @__PURE__ */ new Set([
|
|
2412
2433
|
"bottom",
|
2413
2434
|
"x",
|
2414
2435
|
"y"
|
2415
|
-
]),
|
2416
|
-
return
|
2417
|
-
},
|
2418
|
-
return Object.keys(t).some(
|
2419
|
-
},
|
2436
|
+
]), Zn = function(t) {
|
2437
|
+
return rs.has(t);
|
2438
|
+
}, ns = function(t) {
|
2439
|
+
return Object.keys(t).some(Zn);
|
2440
|
+
}, $n = function(t, e) {
|
2420
2441
|
t.set(e, !1), t.set(e);
|
2421
2442
|
}, Wt = function(t) {
|
2422
|
-
return t ===
|
2423
|
-
},
|
2443
|
+
return t === Le || t === T;
|
2444
|
+
}, wr;
|
2424
2445
|
(function(t) {
|
2425
2446
|
t.width = "width", t.height = "height", t.left = "left", t.right = "right", t.top = "top", t.bottom = "bottom";
|
2426
|
-
})(
|
2427
|
-
var
|
2447
|
+
})(wr || (wr = {}));
|
2448
|
+
var Er = function(t, e) {
|
2428
2449
|
return parseFloat(t.split(", ")[e]);
|
2429
|
-
},
|
2450
|
+
}, Lr = function(t, e) {
|
2430
2451
|
return function(r, n) {
|
2431
2452
|
var i = n.transform;
|
2432
2453
|
if (i === "none" || !i)
|
2433
2454
|
return 0;
|
2434
2455
|
var s = i.match(/^matrix3d\((.+)\)$/);
|
2435
2456
|
if (s)
|
2436
|
-
return
|
2457
|
+
return Er(s[1], e);
|
2437
2458
|
var o = i.match(/^matrix\((.+)\)$/);
|
2438
|
-
return o ?
|
2459
|
+
return o ? Er(o[1], t) : 0;
|
2439
2460
|
};
|
2440
|
-
},
|
2441
|
-
return !
|
2461
|
+
}, is = /* @__PURE__ */ new Set(["x", "y", "z"]), as = Bt.filter(function(t) {
|
2462
|
+
return !is.has(t);
|
2442
2463
|
});
|
2443
|
-
function
|
2464
|
+
function os(t) {
|
2444
2465
|
var e = [];
|
2445
|
-
return
|
2466
|
+
return as.forEach(function(r) {
|
2446
2467
|
var n = t.getValue(r);
|
2447
2468
|
n !== void 0 && (e.push([r, n.get()]), n.set(r.startsWith("scale") ? 1 : 0));
|
2448
2469
|
}), e.length && t.syncRender(), e;
|
2449
2470
|
}
|
2450
|
-
var
|
2471
|
+
var Rr = {
|
2451
2472
|
// Dimensions
|
2452
2473
|
width: function(t, e) {
|
2453
2474
|
var r = t.x, n = e.paddingLeft, i = n === void 0 ? "0" : n, s = e.paddingRight, o = s === void 0 ? "0" : s;
|
@@ -2474,21 +2495,21 @@ var Er = {
|
|
2474
2495
|
return parseFloat(n) + (r.max - r.min);
|
2475
2496
|
},
|
2476
2497
|
// Transform
|
2477
|
-
x:
|
2478
|
-
y:
|
2479
|
-
},
|
2498
|
+
x: Lr(4, 13),
|
2499
|
+
y: Lr(5, 14)
|
2500
|
+
}, ss = function(t, e, r) {
|
2480
2501
|
var n = e.measureViewportBox(), i = e.getInstance(), s = getComputedStyle(i), o = s.display, a = {};
|
2481
2502
|
o === "none" && e.setStaticValue("display", t.display || "block"), r.forEach(function(l) {
|
2482
|
-
a[l] =
|
2503
|
+
a[l] = Rr[l](n, s);
|
2483
2504
|
}), e.syncRender();
|
2484
2505
|
var u = e.measureViewportBox();
|
2485
2506
|
return r.forEach(function(l) {
|
2486
2507
|
var f = e.getValue(l);
|
2487
|
-
|
2508
|
+
$n(f, a[l]), t[l] = Rr[l](u, s);
|
2488
2509
|
}), t;
|
2489
|
-
},
|
2510
|
+
}, us = function(t, e, r, n) {
|
2490
2511
|
r === void 0 && (r = {}), n === void 0 && (n = {}), e = m({}, e), n = m({}, n);
|
2491
|
-
var i = Object.keys(e).filter(
|
2512
|
+
var i = Object.keys(e).filter(Zn), s = [], o = !1, a = [];
|
2492
2513
|
if (i.forEach(function(f) {
|
2493
2514
|
var v = t.getValue(f);
|
2494
2515
|
if (t.hasValue(f)) {
|
@@ -2497,43 +2518,43 @@ var Er = {
|
|
2497
2518
|
var g = p.length, b = p[0] === null ? 1 : 0;
|
2498
2519
|
c = p[b], d = wt(c);
|
2499
2520
|
for (var P = b; P < g; P++)
|
2500
|
-
h ?
|
2521
|
+
h ? lt(wt(p[P]) === h, "All keyframes must be of the same type") : (h = wt(p[P]), lt(h === d || Wt(d) && Wt(h), "Keyframes must be of the same dimension as the current value"));
|
2501
2522
|
} else
|
2502
2523
|
h = wt(p);
|
2503
2524
|
if (d !== h)
|
2504
2525
|
if (Wt(d) && Wt(h)) {
|
2505
2526
|
var S = v.get();
|
2506
2527
|
typeof S == "string" && v.set(parseFloat(S)), typeof p == "string" ? e[f] = parseFloat(p) : Array.isArray(p) && h === T && (e[f] = p.map(parseFloat));
|
2507
|
-
} else d?.transform && h?.transform && (c === 0 || p === 0) ? c === 0 ? v.set(h.transform(c)) : e[f] = d.transform(p) : (o || (s =
|
2528
|
+
} else d?.transform && h?.transform && (c === 0 || p === 0) ? c === 0 ? v.set(h.transform(c)) : e[f] = d.transform(p) : (o || (s = os(t), o = !0), a.push(f), n[f] = n[f] !== void 0 ? n[f] : e[f], $n(v, p));
|
2508
2529
|
}
|
2509
2530
|
}), a.length) {
|
2510
|
-
var u = a.indexOf("height") >= 0 ? window.pageYOffset : null, l =
|
2531
|
+
var u = a.indexOf("height") >= 0 ? window.pageYOffset : null, l = ss(e, t, a);
|
2511
2532
|
return s.length && s.forEach(function(f) {
|
2512
|
-
var v =
|
2533
|
+
var v = R(f, 2), c = v[0], d = v[1];
|
2513
2534
|
t.getValue(c).set(d);
|
2514
2535
|
}), t.syncRender(), u !== null && window.scrollTo({ top: u }), { target: l, transitionEnd: n };
|
2515
2536
|
} else
|
2516
2537
|
return { target: e, transitionEnd: n };
|
2517
2538
|
};
|
2518
|
-
function
|
2519
|
-
return
|
2539
|
+
function ls(t, e, r, n) {
|
2540
|
+
return ns(e) ? us(t, e, r, n) : { target: e, transitionEnd: n };
|
2520
2541
|
}
|
2521
|
-
var
|
2522
|
-
var i =
|
2523
|
-
return e = i.target, n = i.transitionEnd,
|
2542
|
+
var fs = function(t, e, r, n) {
|
2543
|
+
var i = es(t, e, n);
|
2544
|
+
return e = i.target, n = i.transitionEnd, ls(t, e, r, n);
|
2524
2545
|
};
|
2525
|
-
function
|
2546
|
+
function cs(t) {
|
2526
2547
|
return window.getComputedStyle(t);
|
2527
2548
|
}
|
2528
|
-
var
|
2549
|
+
var qn = {
|
2529
2550
|
treeType: "dom",
|
2530
2551
|
readValueFromInstance: function(t, e) {
|
2531
2552
|
if (Ht(e)) {
|
2532
|
-
var r =
|
2553
|
+
var r = ze(e);
|
2533
2554
|
return r && r.default || 0;
|
2534
2555
|
} else {
|
2535
|
-
var n =
|
2536
|
-
return (
|
2556
|
+
var n = cs(t);
|
2557
|
+
return (vn(e) ? n.getPropertyValue(e) : n[e]) || 0;
|
2537
2558
|
}
|
2538
2559
|
},
|
2539
2560
|
sortNodePosition: function(t, e) {
|
@@ -2545,7 +2566,7 @@ var Wn = {
|
|
2545
2566
|
},
|
2546
2567
|
measureViewportBox: function(t, e) {
|
2547
2568
|
var r = e.transformPagePoint;
|
2548
|
-
return
|
2569
|
+
return Yn(t, r);
|
2549
2570
|
},
|
2550
2571
|
/**
|
2551
2572
|
* Reset the transform on the current Element. This is called as part
|
@@ -2572,30 +2593,30 @@ var Wn = {
|
|
2572
2593
|
makeTargetAnimatable: function(t, e, r, n) {
|
2573
2594
|
var i = r.transformValues;
|
2574
2595
|
n === void 0 && (n = !0);
|
2575
|
-
var s = e.transition, o = e.transitionEnd, a = Q(e, ["transition", "transitionEnd"]), u =
|
2596
|
+
var s = e.transition, o = e.transitionEnd, a = Q(e, ["transition", "transitionEnd"]), u = go(a, s || {}, t);
|
2576
2597
|
if (i && (o && (o = i(o)), a && (a = i(a)), u && (u = i(u))), n) {
|
2577
|
-
|
2578
|
-
var l =
|
2598
|
+
ho(t, a, u);
|
2599
|
+
var l = fs(t, a, u, o);
|
2579
2600
|
o = l.transitionEnd, a = l.target;
|
2580
2601
|
}
|
2581
2602
|
return m({ transition: s, transitionEnd: o }, a);
|
2582
2603
|
},
|
2583
|
-
scrapeMotionValuesFromProps:
|
2604
|
+
scrapeMotionValuesFromProps: Ue,
|
2584
2605
|
build: function(t, e, r, n, i) {
|
2585
|
-
t.isVisible !== void 0 && (e.style.visibility = t.isVisible ? "visible" : "hidden"),
|
2606
|
+
t.isVisible !== void 0 && (e.style.visibility = t.isVisible ? "visible" : "hidden"), Fe(e, r, n, i.transformTemplate);
|
2586
2607
|
},
|
2587
|
-
render:
|
2588
|
-
},
|
2608
|
+
render: yn
|
2609
|
+
}, vs = kn(qn), ds = kn(m(m({}, qn), { getBaseTarget: function(t, e) {
|
2589
2610
|
return t[e];
|
2590
2611
|
}, readValueFromInstance: function(t, e) {
|
2591
2612
|
var r;
|
2592
|
-
return Ht(e) ? ((r =
|
2593
|
-
}, scrapeMotionValuesFromProps:
|
2594
|
-
|
2595
|
-
}, render:
|
2596
|
-
return
|
2613
|
+
return Ht(e) ? ((r = ze(e)) === null || r === void 0 ? void 0 : r.default) || 0 : (e = bn.has(e) ? e : gn(e), t.getAttribute(e));
|
2614
|
+
}, scrapeMotionValuesFromProps: Vn, build: function(t, e, r, n, i) {
|
2615
|
+
Be(e, r, n, i.transformTemplate);
|
2616
|
+
}, render: Pn })), ps = function(t, e) {
|
2617
|
+
return Oe(t) ? ds(e, { enableHardwareAcceleration: !1 }) : vs(e, { enableHardwareAcceleration: !0 });
|
2597
2618
|
};
|
2598
|
-
function
|
2619
|
+
function Mr(t, e) {
|
2599
2620
|
return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
|
2600
2621
|
}
|
2601
2622
|
var Et = {
|
@@ -2607,14 +2628,14 @@ var Et = {
|
|
2607
2628
|
t = parseFloat(t);
|
2608
2629
|
else
|
2609
2630
|
return t;
|
2610
|
-
var r =
|
2631
|
+
var r = Mr(t, e.target.x), n = Mr(t, e.target.y);
|
2611
2632
|
return "".concat(r, "% ").concat(n, "%");
|
2612
2633
|
}
|
2613
|
-
},
|
2634
|
+
}, Dr = "_$css", hs = {
|
2614
2635
|
correct: function(t, e) {
|
2615
2636
|
var r = e.treeScale, n = e.projectionDelta, i = t, s = t.includes("var("), o = [];
|
2616
|
-
s && (t = t.replace(
|
2617
|
-
return o.push(h),
|
2637
|
+
s && (t = t.replace(Wn, function(h) {
|
2638
|
+
return o.push(h), Dr;
|
2618
2639
|
}));
|
2619
2640
|
var a = Pt.parse(t);
|
2620
2641
|
if (a.length > 5)
|
@@ -2626,23 +2647,23 @@ var Et = {
|
|
2626
2647
|
var d = u(a);
|
2627
2648
|
if (s) {
|
2628
2649
|
var p = 0;
|
2629
|
-
d = d.replace(
|
2650
|
+
d = d.replace(Dr, function() {
|
2630
2651
|
var h = o[p];
|
2631
2652
|
return p++, h;
|
2632
2653
|
});
|
2633
2654
|
}
|
2634
2655
|
return d;
|
2635
2656
|
}
|
2636
|
-
},
|
2657
|
+
}, ms = (
|
2637
2658
|
/** @class */
|
2638
2659
|
function(t) {
|
2639
|
-
|
2660
|
+
Zr(e, t);
|
2640
2661
|
function e() {
|
2641
2662
|
return t !== null && t.apply(this, arguments) || this;
|
2642
2663
|
}
|
2643
2664
|
return e.prototype.componentDidMount = function() {
|
2644
2665
|
var r = this, n = this.props, i = n.visualElement, s = n.layoutGroup, o = n.switchLayoutGroup, a = n.layoutId, u = i.projection;
|
2645
|
-
|
2666
|
+
Qi(ys), u && (s?.group && s.group.add(u), o?.register && a && o.register(u), u.root.didUpdate(), u.addEventListener("animationComplete", function() {
|
2646
2667
|
r.safeToRemove();
|
2647
2668
|
}), u.setOptions(m(m({}, u.options), { onExitComplete: function() {
|
2648
2669
|
return r.safeToRemove();
|
@@ -2665,13 +2686,13 @@ var Et = {
|
|
2665
2686
|
}, e.prototype.render = function() {
|
2666
2687
|
return null;
|
2667
2688
|
}, e;
|
2668
|
-
}(
|
2689
|
+
}(Re.Component)
|
2669
2690
|
);
|
2670
|
-
function
|
2671
|
-
var e =
|
2672
|
-
return
|
2691
|
+
function gs(t) {
|
2692
|
+
var e = R(On(), 2), r = e[0], n = e[1], i = F(Ie);
|
2693
|
+
return Re.createElement(ms, m({}, t, { layoutGroup: i, switchLayoutGroup: F(ln), isPresent: r, safeToRemove: n }));
|
2673
2694
|
}
|
2674
|
-
var
|
2695
|
+
var ys = {
|
2675
2696
|
borderRadius: m(m({}, Et), { applyTo: [
|
2676
2697
|
"borderTopLeftRadius",
|
2677
2698
|
"borderTopRightRadius",
|
@@ -2682,14 +2703,14 @@ var hs = {
|
|
2682
2703
|
borderTopRightRadius: Et,
|
2683
2704
|
borderBottomLeftRadius: Et,
|
2684
2705
|
borderBottomRightRadius: Et,
|
2685
|
-
boxShadow:
|
2686
|
-
},
|
2687
|
-
measureLayout:
|
2706
|
+
boxShadow: hs
|
2707
|
+
}, bs = {
|
2708
|
+
measureLayout: gs
|
2688
2709
|
};
|
2689
|
-
function
|
2710
|
+
function Ps(t, e, r) {
|
2690
2711
|
r === void 0 && (r = {});
|
2691
|
-
var n = q(t) ? t :
|
2692
|
-
return
|
2712
|
+
var n = q(t) ? t : dt(t);
|
2713
|
+
return Ye("", n, e, r), {
|
2693
2714
|
stop: function() {
|
2694
2715
|
return n.stop();
|
2695
2716
|
},
|
@@ -2698,50 +2719,50 @@ function gs(t, e, r) {
|
|
2698
2719
|
}
|
2699
2720
|
};
|
2700
2721
|
}
|
2701
|
-
var
|
2722
|
+
var Jn = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Vs = Jn.length, Ir = function(t) {
|
2702
2723
|
return typeof t == "string" ? parseFloat(t) : t;
|
2703
|
-
},
|
2724
|
+
}, Or = function(t) {
|
2704
2725
|
return typeof t == "number" || T.test(t);
|
2705
2726
|
};
|
2706
|
-
function
|
2727
|
+
function Ts(t, e, r, n, i, s) {
|
2707
2728
|
var o, a, u, l;
|
2708
2729
|
i ? (t.opacity = O(
|
2709
2730
|
0,
|
2710
2731
|
// (follow?.opacity as number) ?? 0,
|
2711
2732
|
// TODO Reinstate this if only child
|
2712
2733
|
(o = r.opacity) !== null && o !== void 0 ? o : 1,
|
2713
|
-
|
2714
|
-
), t.opacityExit = O((a = e.opacity) !== null && a !== void 0 ? a : 1, 0,
|
2715
|
-
for (var f = 0; f <
|
2716
|
-
var v = "border".concat(
|
2734
|
+
Ss(n)
|
2735
|
+
), t.opacityExit = O((a = e.opacity) !== null && a !== void 0 ? a : 1, 0, xs(n))) : s && (t.opacity = O((u = e.opacity) !== null && u !== void 0 ? u : 1, (l = r.opacity) !== null && l !== void 0 ? l : 1, n));
|
2736
|
+
for (var f = 0; f < Vs; f++) {
|
2737
|
+
var v = "border".concat(Jn[f], "Radius"), c = Fr(e, v), d = Fr(r, v);
|
2717
2738
|
if (!(c === void 0 && d === void 0)) {
|
2718
2739
|
c || (c = 0), d || (d = 0);
|
2719
|
-
var p = c === 0 || d === 0 ||
|
2720
|
-
p ? (t[v] = Math.max(O(
|
2740
|
+
var p = c === 0 || d === 0 || Or(c) === Or(d);
|
2741
|
+
p ? (t[v] = Math.max(O(Ir(c), Ir(d), n), 0), (Ot.test(d) || Ot.test(c)) && (t[v] += "%")) : t[v] = d;
|
2721
2742
|
}
|
2722
2743
|
}
|
2723
2744
|
(e.rotate || r.rotate) && (t.rotate = O(e.rotate || 0, r.rotate || 0, n));
|
2724
2745
|
}
|
2725
|
-
function
|
2746
|
+
function Fr(t, e) {
|
2726
2747
|
var r;
|
2727
2748
|
return (r = t[e]) !== null && r !== void 0 ? r : t.borderRadius;
|
2728
2749
|
}
|
2729
|
-
var
|
2730
|
-
function
|
2750
|
+
var Ss = Qn(0, 0.5, Jr), xs = Qn(0.5, 0.95, qr);
|
2751
|
+
function Qn(t, e, r) {
|
2731
2752
|
return function(n) {
|
2732
2753
|
return n < t ? 0 : n > e ? 1 : r(ge(t, e, n));
|
2733
2754
|
};
|
2734
2755
|
}
|
2735
|
-
function
|
2756
|
+
function jr(t, e) {
|
2736
2757
|
t.min = e.min, t.max = e.max;
|
2737
2758
|
}
|
2738
|
-
function
|
2739
|
-
|
2759
|
+
function k(t, e) {
|
2760
|
+
jr(t.x, e.x), jr(t.y, e.y);
|
2740
2761
|
}
|
2741
|
-
function
|
2762
|
+
function Br(t, e, r, n, i) {
|
2742
2763
|
return t -= e, t = te(t, 1 / r, n), i !== void 0 && (t = te(t, 1 / i, n)), t;
|
2743
2764
|
}
|
2744
|
-
function
|
2765
|
+
function Cs(t, e, r, n, i, s, o) {
|
2745
2766
|
if (e === void 0 && (e = 0), r === void 0 && (r = 1), n === void 0 && (n = 0.5), s === void 0 && (s = t), o === void 0 && (o = t), Ot.test(e)) {
|
2746
2767
|
e = parseFloat(e);
|
2747
2768
|
var a = O(o.min, o.max, e / 100);
|
@@ -2749,36 +2770,36 @@ function Ts(t, e, r, n, i, s, o) {
|
|
2749
2770
|
}
|
2750
2771
|
if (typeof e == "number") {
|
2751
2772
|
var u = O(s.min, s.max, n);
|
2752
|
-
t === s && (u -= e), t.min =
|
2773
|
+
t === s && (u -= e), t.min = Br(t.min, e, r, u, i), t.max = Br(t.max, e, r, u, i);
|
2753
2774
|
}
|
2754
2775
|
}
|
2755
|
-
function
|
2756
|
-
var s =
|
2757
|
-
|
2776
|
+
function Ur(t, e, r, n, i) {
|
2777
|
+
var s = R(r, 3), o = s[0], a = s[1], u = s[2];
|
2778
|
+
Cs(t, e[o], e[a], e[u], e.scale, n, i);
|
2758
2779
|
}
|
2759
|
-
var
|
2760
|
-
function
|
2761
|
-
|
2780
|
+
var As = ["x", "scaleX", "originX"], ws = ["y", "scaleY", "originY"];
|
2781
|
+
function _r(t, e, r, n) {
|
2782
|
+
Ur(t.x, e, As, r?.x, n?.x), Ur(t.y, e, ws, r?.y, n?.y);
|
2762
2783
|
}
|
2763
|
-
function
|
2784
|
+
function Nr(t) {
|
2764
2785
|
return t.translate === 0 && t.scale === 1;
|
2765
2786
|
}
|
2766
|
-
function
|
2767
|
-
return
|
2787
|
+
function ti(t) {
|
2788
|
+
return Nr(t.x) && Nr(t.y);
|
2768
2789
|
}
|
2769
|
-
function
|
2790
|
+
function ei(t, e) {
|
2770
2791
|
return t.x.min === e.x.min && t.x.max === e.x.max && t.y.min === e.y.min && t.y.max === e.y.max;
|
2771
2792
|
}
|
2772
|
-
var
|
2793
|
+
var Es = (
|
2773
2794
|
/** @class */
|
2774
2795
|
function() {
|
2775
2796
|
function t() {
|
2776
2797
|
this.members = [];
|
2777
2798
|
}
|
2778
2799
|
return t.prototype.add = function(e) {
|
2779
|
-
|
2800
|
+
ke(this.members, e), e.scheduleRender();
|
2780
2801
|
}, t.prototype.remove = function(e) {
|
2781
|
-
if (
|
2802
|
+
if (Xe(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
|
2782
2803
|
var r = this.members[this.members.length - 1];
|
2783
2804
|
r && this.promote(r);
|
2784
2805
|
}
|
@@ -2816,34 +2837,34 @@ var Cs = (
|
|
2816
2837
|
this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
|
2817
2838
|
}, t;
|
2818
2839
|
}()
|
2819
|
-
),
|
2820
|
-
function
|
2840
|
+
), Ls = "translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";
|
2841
|
+
function Hr(t, e, r) {
|
2821
2842
|
var n = t.x.translate / e.x, i = t.y.translate / e.y, s = "translate3d(".concat(n, "px, ").concat(i, "px, 0) ");
|
2822
2843
|
if (s += "scale(".concat(1 / e.x, ", ").concat(1 / e.y, ") "), r) {
|
2823
2844
|
var o = r.rotate, a = r.rotateX, u = r.rotateY;
|
2824
2845
|
o && (s += "rotate(".concat(o, "deg) ")), a && (s += "rotateX(".concat(a, "deg) ")), u && (s += "rotateY(".concat(u, "deg) "));
|
2825
2846
|
}
|
2826
2847
|
var l = t.x.scale * e.x, f = t.y.scale * e.y;
|
2827
|
-
return s += "scale(".concat(l, ", ").concat(f, ")"), s ===
|
2848
|
+
return s += "scale(".concat(l, ", ").concat(f, ")"), s === Ls ? "none" : s;
|
2828
2849
|
}
|
2829
|
-
var
|
2850
|
+
var Rs = function(t, e) {
|
2830
2851
|
return t.depth - e.depth;
|
2831
|
-
},
|
2852
|
+
}, Ms = (
|
2832
2853
|
/** @class */
|
2833
2854
|
function() {
|
2834
2855
|
function t() {
|
2835
2856
|
this.children = [], this.isDirty = !1;
|
2836
2857
|
}
|
2837
2858
|
return t.prototype.add = function(e) {
|
2838
|
-
Ye(this.children, e), this.isDirty = !0;
|
2839
|
-
}, t.prototype.remove = function(e) {
|
2840
2859
|
ke(this.children, e), this.isDirty = !0;
|
2860
|
+
}, t.prototype.remove = function(e) {
|
2861
|
+
Xe(this.children, e), this.isDirty = !0;
|
2841
2862
|
}, t.prototype.forEach = function(e) {
|
2842
|
-
this.isDirty && this.children.sort(
|
2863
|
+
this.isDirty && this.children.sort(Rs), this.isDirty = !1, this.children.forEach(e);
|
2843
2864
|
}, t;
|
2844
2865
|
}()
|
2845
|
-
),
|
2846
|
-
function
|
2866
|
+
), zr = 1e3;
|
2867
|
+
function ri(t) {
|
2847
2868
|
var e = t.attachResizeListener, r = t.defaultParent, n = t.measureScroll, i = t.checkIsScrollRoot, s = t.resetTransform;
|
2848
2869
|
return (
|
2849
2870
|
/** @class */
|
@@ -2853,11 +2874,11 @@ function Qn(t) {
|
|
2853
2874
|
u === void 0 && (u = {}), l === void 0 && (l = r?.()), this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.potentialNodes = /* @__PURE__ */ new Map(), this.checkUpdateFailed = function() {
|
2854
2875
|
f.isUpdating && (f.isUpdating = !1, f.clearAllSnapshots());
|
2855
2876
|
}, this.updateProjection = function() {
|
2856
|
-
f.nodes.forEach(
|
2857
|
-
}, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.id = a, this.latestValues = u, this.root = l ? l.root || l : this, this.path = l ?
|
2877
|
+
f.nodes.forEach(Bs), f.nodes.forEach(Us);
|
2878
|
+
}, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.id = a, this.latestValues = u, this.root = l ? l.root || l : this, this.path = l ? z(z([], R(l.path), !1), [l], !1) : [], this.parent = l, this.depth = l ? l.depth + 1 : 0, a && this.root.registerPotentialNode(a, this);
|
2858
2879
|
for (var v = 0; v < this.path.length; v++)
|
2859
2880
|
this.path[v].shouldResetTransform = !0;
|
2860
|
-
this.root === this && (this.nodes = new
|
2881
|
+
this.root === this && (this.nodes = new Ms());
|
2861
2882
|
}
|
2862
2883
|
return o.prototype.addEventListener = function(a, u) {
|
2863
2884
|
return this.eventHandlers.has(a) || this.eventHandlers.set(a, new Rt()), this.eventHandlers.get(a).add(u);
|
@@ -2865,7 +2886,7 @@ function Qn(t) {
|
|
2865
2886
|
for (var u = [], l = 1; l < arguments.length; l++)
|
2866
2887
|
u[l - 1] = arguments[l];
|
2867
2888
|
var f = this.eventHandlers.get(a);
|
2868
|
-
f?.notify.apply(f,
|
2889
|
+
f?.notify.apply(f, z([], R(u), !1));
|
2869
2890
|
}, o.prototype.hasListeners = function(a) {
|
2870
2891
|
return this.eventHandlers.has(a);
|
2871
2892
|
}, o.prototype.registerPotentialNode = function(a, u) {
|
@@ -2880,20 +2901,20 @@ function Qn(t) {
|
|
2880
2901
|
return l.root.updateBlockedByResize = !1;
|
2881
2902
|
};
|
2882
2903
|
e(a, function() {
|
2883
|
-
l.root.updateBlockedByResize = !0, clearTimeout(h), h = window.setTimeout(g, 250), Lt.hasAnimatedSinceResize && (Lt.hasAnimatedSinceResize = !1, l.nodes.forEach(
|
2904
|
+
l.root.updateBlockedByResize = !0, clearTimeout(h), h = window.setTimeout(g, 250), Lt.hasAnimatedSinceResize && (Lt.hasAnimatedSinceResize = !1, l.nodes.forEach(js));
|
2884
2905
|
});
|
2885
2906
|
}
|
2886
2907
|
c && this.root.registerSharedNode(c, this), this.options.animate !== !1 && p && (c || d) && this.addEventListener("didUpdate", function(b) {
|
2887
|
-
var P, S, C, A, I,
|
2908
|
+
var P, S, C, A, I, M = b.delta, x = b.hasLayoutChanged, w = b.hasRelativeTargetChanged, D = b.layout;
|
2888
2909
|
if (l.isTreeAnimationBlocked()) {
|
2889
2910
|
l.target = void 0, l.relativeTarget = void 0;
|
2890
2911
|
return;
|
2891
2912
|
}
|
2892
|
-
var
|
2913
|
+
var K = (S = (P = l.options.transition) !== null && P !== void 0 ? P : p.getDefaultTransition()) !== null && S !== void 0 ? S : Ks, B = p.getProps(), H = B.onLayoutAnimationStart, rt = B.onLayoutAnimationComplete, nt = !l.targetLayout || !ei(l.targetLayout, D) || w, it = !x && w;
|
2893
2914
|
if (!((C = l.resumeFrom) === null || C === void 0) && C.instance || it || x && (nt || !l.currentAnimation)) {
|
2894
|
-
l.resumeFrom && (l.resumingFrom = l.resumeFrom, l.resumingFrom.resumingFrom = void 0), l.setAnimationOrigin(
|
2895
|
-
var
|
2896
|
-
p.shouldReduceMotion && (
|
2915
|
+
l.resumeFrom && (l.resumingFrom = l.resumeFrom, l.resumingFrom.resumingFrom = void 0), l.setAnimationOrigin(M, it);
|
2916
|
+
var G = m(m({}, Ge(K, "layout")), { onPlay: H, onComplete: rt });
|
2917
|
+
p.shouldReduceMotion && (G.delay = 0, G.type = !1), l.startAnimation(G);
|
2897
2918
|
} else
|
2898
2919
|
!x && l.animationProgress === 0 && l.finishAnimation(), l.isLead() && ((I = (A = l.options).onExitComplete) === null || I === void 0 || I.call(A));
|
2899
2920
|
l.targetLayout = D;
|
@@ -2913,7 +2934,7 @@ function Qn(t) {
|
|
2913
2934
|
return this.isAnimationBlocked || ((a = this.parent) === null || a === void 0 ? void 0 : a.isTreeAnimationBlocked()) || !1;
|
2914
2935
|
}, o.prototype.startUpdate = function() {
|
2915
2936
|
var a;
|
2916
|
-
this.isUpdateBlocked() || (this.isUpdating = !0, (a = this.nodes) === null || a === void 0 || a.forEach(
|
2937
|
+
this.isUpdateBlocked() || (this.isUpdating = !0, (a = this.nodes) === null || a === void 0 || a.forEach(_s));
|
2917
2938
|
}, o.prototype.willUpdate = function(a) {
|
2918
2939
|
var u, l, f;
|
2919
2940
|
if (a === void 0 && (a = !0), this.root.isUpdateBlocked()) {
|
@@ -2935,12 +2956,12 @@ function Qn(t) {
|
|
2935
2956
|
}, o.prototype.didUpdate = function() {
|
2936
2957
|
var a = this.isUpdateBlocked();
|
2937
2958
|
if (a) {
|
2938
|
-
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(
|
2959
|
+
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Kr);
|
2939
2960
|
return;
|
2940
2961
|
}
|
2941
|
-
this.isUpdating && (this.isUpdating = !1, this.potentialNodes.size && (this.potentialNodes.forEach(
|
2962
|
+
this.isUpdating && (this.isUpdating = !1, this.potentialNodes.size && (this.potentialNodes.forEach(Gs), this.potentialNodes.clear()), this.nodes.forEach(Fs), this.nodes.forEach(Ds), this.nodes.forEach(Is), this.clearAllSnapshots(), se.update(), se.preRender(), se.render());
|
2942
2963
|
}, o.prototype.clearAllSnapshots = function() {
|
2943
|
-
this.nodes.forEach(
|
2964
|
+
this.nodes.forEach(Os), this.sharedNodes.forEach(Ns);
|
2944
2965
|
}, o.prototype.scheduleUpdateProjection = function() {
|
2945
2966
|
Z.preRender(this.updateProjection, !1, !0);
|
2946
2967
|
}, o.prototype.scheduleCheckAfterUnmount = function() {
|
@@ -2951,7 +2972,7 @@ function Qn(t) {
|
|
2951
2972
|
}, o.prototype.updateSnapshot = function() {
|
2952
2973
|
if (!(this.snapshot || !this.instance)) {
|
2953
2974
|
var a = this.measure(), u = this.removeTransform(this.removeElementScroll(a));
|
2954
|
-
|
2975
|
+
Xr(u), this.snapshot = {
|
2955
2976
|
measured: a,
|
2956
2977
|
layout: u,
|
2957
2978
|
latestValues: {}
|
@@ -2966,7 +2987,7 @@ function Qn(t) {
|
|
2966
2987
|
l.updateScroll();
|
2967
2988
|
}
|
2968
2989
|
var f = this.measure();
|
2969
|
-
|
2990
|
+
Xr(f);
|
2970
2991
|
var v = this.layout;
|
2971
2992
|
this.layout = {
|
2972
2993
|
measured: f,
|
@@ -2978,7 +2999,7 @@ function Qn(t) {
|
|
2978
2999
|
}, o.prototype.resetTransform = function() {
|
2979
3000
|
var a;
|
2980
3001
|
if (s) {
|
2981
|
-
var u = this.isLayoutDirty || this.shouldResetTransform, l = this.projectionDelta && !
|
3002
|
+
var u = this.isLayoutDirty || this.shouldResetTransform, l = this.projectionDelta && !ti(this.projectionDelta), f = (a = this.options.visualElement) === null || a === void 0 ? void 0 : a.getProps().transformTemplate, v = f?.(this.latestValues, ""), c = v !== this.prevTransformTemplateValue;
|
2982
3003
|
u && (l || ot(this.latestValues) || c) && (s(this.instance, v), this.shouldResetTransform = !1, this.scheduleRender());
|
2983
3004
|
}
|
2984
3005
|
}, o.prototype.measure = function() {
|
@@ -2989,12 +3010,12 @@ function Qn(t) {
|
|
2989
3010
|
return l && (st(u.x, l.x), st(u.y, l.y)), u;
|
2990
3011
|
}, o.prototype.removeElementScroll = function(a) {
|
2991
3012
|
var u = j();
|
2992
|
-
|
3013
|
+
k(u, a);
|
2993
3014
|
for (var l = 0; l < this.path.length; l++) {
|
2994
3015
|
var f = this.path[l], v = f.scroll, c = f.options, d = f.isScrollRoot;
|
2995
3016
|
if (f !== this.root && v && c.layoutScroll) {
|
2996
3017
|
if (d) {
|
2997
|
-
|
3018
|
+
k(u, a);
|
2998
3019
|
var p = this.root.scroll;
|
2999
3020
|
p && (st(u.x, -p.x), st(u.y, -p.y));
|
3000
3021
|
}
|
@@ -3005,7 +3026,7 @@ function Qn(t) {
|
|
3005
3026
|
}, o.prototype.applyTransform = function(a, u) {
|
3006
3027
|
u === void 0 && (u = !1);
|
3007
3028
|
var l = j();
|
3008
|
-
|
3029
|
+
k(l, a);
|
3009
3030
|
for (var f = 0; f < this.path.length; f++) {
|
3010
3031
|
var v = this.path[f];
|
3011
3032
|
!u && v.options.layoutScroll && v.scroll && v !== v.root && yt(l, {
|
@@ -3016,16 +3037,16 @@ function Qn(t) {
|
|
3016
3037
|
return ot(this.latestValues) && yt(l, this.latestValues), l;
|
3017
3038
|
}, o.prototype.removeTransform = function(a) {
|
3018
3039
|
var u, l = j();
|
3019
|
-
|
3040
|
+
k(l, a);
|
3020
3041
|
for (var f = 0; f < this.path.length; f++) {
|
3021
3042
|
var v = this.path[f];
|
3022
3043
|
if (v.instance && ot(v.latestValues)) {
|
3023
|
-
|
3044
|
+
Kn(v.latestValues) && v.updateSnapshot();
|
3024
3045
|
var c = j(), d = v.measure();
|
3025
|
-
|
3046
|
+
k(c, d), _r(l, v.latestValues, (u = v.snapshot) === null || u === void 0 ? void 0 : u.layout, c);
|
3026
3047
|
}
|
3027
3048
|
}
|
3028
|
-
return ot(this.latestValues) &&
|
3049
|
+
return ot(this.latestValues) && _r(l, this.latestValues), l;
|
3029
3050
|
}, o.prototype.setTargetDelta = function(a) {
|
3030
3051
|
this.targetDelta = a, this.root.scheduleUpdateProjection();
|
3031
3052
|
}, o.prototype.setOptions = function(a) {
|
@@ -3035,7 +3056,7 @@ function Qn(t) {
|
|
3035
3056
|
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
|
3036
3057
|
}, o.prototype.resolveTargetDelta = function() {
|
3037
3058
|
var a, u = this.options, l = u.layout, f = u.layoutId;
|
3038
|
-
!this.layout || !(l || f) || (!this.targetDelta && !this.relativeTarget && (this.relativeParent = this.getClosestProjectingParent(), this.relativeParent && this.relativeParent.layout && (this.relativeTarget = j(), this.relativeTargetOrigin = j(),
|
3059
|
+
!this.layout || !(l || f) || (!this.targetDelta && !this.relativeTarget && (this.relativeParent = this.getClosestProjectingParent(), this.relativeParent && this.relativeParent.layout && (this.relativeTarget = j(), this.relativeTargetOrigin = j(), Dt(this.relativeTargetOrigin, this.layout.actual, this.relativeParent.layout.actual), k(this.relativeTarget, this.relativeTargetOrigin))), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = j(), this.targetWithTransforms = j()), this.relativeTarget && this.relativeTargetOrigin && (!((a = this.relativeParent) === null || a === void 0) && a.target) ? Mo(this.target, this.relativeTarget, this.relativeParent.target) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.actual) : k(this.target, this.layout.actual), Gn(this.target, this.targetDelta)) : k(this.target, this.layout.actual), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.relativeParent = this.getClosestProjectingParent(), this.relativeParent && !!this.relativeParent.resumingFrom == !!this.resumingFrom && !this.relativeParent.options.layoutScroll && this.relativeParent.target && (this.relativeTarget = j(), this.relativeTargetOrigin = j(), Dt(this.relativeTargetOrigin, this.target, this.relativeParent.target), k(this.relativeTarget, this.relativeTargetOrigin)))));
|
3039
3060
|
}, o.prototype.getClosestProjectingParent = function() {
|
3040
3061
|
if (!(!this.parent || ot(this.parent.latestValues)))
|
3041
3062
|
return (this.parent.relativeTarget || this.parent.targetDelta) && this.parent.layout ? this.parent : this.parent.getClosestProjectingParent();
|
@@ -3043,12 +3064,12 @@ function Qn(t) {
|
|
3043
3064
|
var a, u = this.options, l = u.layout, f = u.layoutId;
|
3044
3065
|
if (this.isTreeAnimating = !!(!((a = this.parent) === null || a === void 0) && a.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !(!this.layout || !(l || f))) {
|
3045
3066
|
var v = this.getLead();
|
3046
|
-
|
3067
|
+
k(this.layoutCorrected, this.layout.actual), No(this.layoutCorrected, this.treeScale, this.path, !!this.resumingFrom || this !== v);
|
3047
3068
|
var c = v.target;
|
3048
3069
|
if (c) {
|
3049
3070
|
this.projectionDelta || (this.projectionDelta = It(), this.projectionDeltaWithTransform = It());
|
3050
3071
|
var d = this.treeScale.x, p = this.treeScale.y, h = this.projectionTransform;
|
3051
|
-
|
3072
|
+
Mt(this.projectionDelta, this.layoutCorrected, c, this.latestValues), this.projectionTransform = Hr(this.projectionDelta, this.treeScale), (this.projectionTransform !== h || this.treeScale.x !== d || this.treeScale.y !== p) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", c));
|
3052
3073
|
}
|
3053
3074
|
}
|
3054
3075
|
}, o.prototype.hide = function() {
|
@@ -3063,15 +3084,15 @@ function Qn(t) {
|
|
3063
3084
|
u === void 0 && (u = !1);
|
3064
3085
|
var v = this.snapshot, c = v?.latestValues || {}, d = m({}, this.latestValues), p = It();
|
3065
3086
|
this.relativeTarget = this.relativeTargetOrigin = void 0, this.attemptToResolveRelativeTarget = !u;
|
3066
|
-
var h = j(), g = v?.isShared, b = (((f = this.getStack()) === null || f === void 0 ? void 0 : f.members.length) || 0) <= 1, P = !!(g && !b && this.options.crossfade === !0 && !this.path.some(
|
3087
|
+
var h = j(), g = v?.isShared, b = (((f = this.getStack()) === null || f === void 0 ? void 0 : f.members.length) || 0) <= 1, P = !!(g && !b && this.options.crossfade === !0 && !this.path.some(zs));
|
3067
3088
|
this.animationProgress = 0, this.mixTargetDelta = function(S) {
|
3068
3089
|
var C, A = S / 1e3;
|
3069
|
-
|
3090
|
+
Gr(p.x, a.x, A), Gr(p.y, a.y, A), l.setTargetDelta(p), l.relativeTarget && l.relativeTargetOrigin && l.layout && (!((C = l.relativeParent) === null || C === void 0) && C.layout) && (Dt(h, l.layout.actual, l.relativeParent.layout.actual), Hs(l.relativeTarget, l.relativeTargetOrigin, h, A)), g && (l.animationValues = d, Ts(d, c, l.latestValues, A, P, b)), l.root.scheduleUpdateProjection(), l.scheduleRender(), l.animationProgress = A;
|
3070
3091
|
}, this.mixTargetDelta(0);
|
3071
3092
|
}, o.prototype.startAnimation = function(a) {
|
3072
3093
|
var u = this, l, f;
|
3073
3094
|
this.notifyListeners("animationStart"), (l = this.currentAnimation) === null || l === void 0 || l.stop(), this.resumingFrom && ((f = this.resumingFrom.currentAnimation) === null || f === void 0 || f.stop()), this.pendingAnimation && (Ft.update(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = Z.update(function() {
|
3074
|
-
Lt.hasAnimatedSinceResize = !0, u.currentAnimation =
|
3095
|
+
Lt.hasAnimatedSinceResize = !0, u.currentAnimation = Ps(0, zr, m(m({}, a), { onUpdate: function(v) {
|
3075
3096
|
var c;
|
3076
3097
|
u.mixTargetDelta(v), (c = a.onUpdate) === null || c === void 0 || c.call(a, v);
|
3077
3098
|
}, onComplete: function() {
|
@@ -3084,13 +3105,13 @@ function Qn(t) {
|
|
3084
3105
|
this.resumingFrom && (this.resumingFrom.currentAnimation = void 0, this.resumingFrom.preserveOpacity = void 0), (a = this.getStack()) === null || a === void 0 || a.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
|
3085
3106
|
}, o.prototype.finishAnimation = function() {
|
3086
3107
|
var a;
|
3087
|
-
this.currentAnimation && ((a = this.mixTargetDelta) === null || a === void 0 || a.call(this,
|
3108
|
+
this.currentAnimation && ((a = this.mixTargetDelta) === null || a === void 0 || a.call(this, zr), this.currentAnimation.stop()), this.completeAnimation();
|
3088
3109
|
}, o.prototype.applyTransformsToTarget = function() {
|
3089
3110
|
var a = this.getLead(), u = a.targetWithTransforms, l = a.target, f = a.layout, v = a.latestValues;
|
3090
|
-
!u || !l || !f || (
|
3111
|
+
!u || !l || !f || (k(u, l), yt(u, v), Mt(this.projectionDeltaWithTransform, this.layoutCorrected, u, v));
|
3091
3112
|
}, o.prototype.registerSharedNode = function(a, u) {
|
3092
3113
|
var l, f, v;
|
3093
|
-
this.sharedNodes.has(a) || this.sharedNodes.set(a, new
|
3114
|
+
this.sharedNodes.has(a) || this.sharedNodes.set(a, new Es());
|
3094
3115
|
var c = this.sharedNodes.get(a);
|
3095
3116
|
c.add(u), u.promote({
|
3096
3117
|
transition: (l = u.options.initialPromotionConfig) === null || l === void 0 ? void 0 : l.transition,
|
@@ -3148,14 +3169,14 @@ function Qn(t) {
|
|
3148
3169
|
return this.options.layoutId && (b.opacity = (l = this.latestValues.opacity) !== null && l !== void 0 ? l : 1, b.pointerEvents = Zt(a.pointerEvents) || ""), this.hasProjected && !ot(this.latestValues) && (b.transform = h ? h({}, "") : "none", this.hasProjected = !1), b;
|
3149
3170
|
}
|
3150
3171
|
var P = g.animationValues || g.latestValues;
|
3151
|
-
this.applyTransformsToTarget(), p.transform =
|
3172
|
+
this.applyTransformsToTarget(), p.transform = Hr(this.projectionDeltaWithTransform, this.treeScale, P), h && (p.transform = h(P, p.transform));
|
3152
3173
|
var S = this.projectionDelta, C = S.x, A = S.y;
|
3153
3174
|
p.transformOrigin = "".concat(C.origin * 100, "% ").concat(A.origin * 100, "% 0"), g.animationValues ? p.opacity = g === this ? (v = (f = P.opacity) !== null && f !== void 0 ? f : this.latestValues.opacity) !== null && v !== void 0 ? v : 1 : this.preserveOpacity ? this.latestValues.opacity : P.opacityExit : p.opacity = g === this ? (c = P.opacity) !== null && c !== void 0 ? c : "" : (d = P.opacityExit) !== null && d !== void 0 ? d : 0;
|
3154
3175
|
for (var I in $t)
|
3155
3176
|
if (P[I] !== void 0) {
|
3156
|
-
var
|
3177
|
+
var M = $t[I], x = M.correct, w = M.applyTo, D = x(P[I], g);
|
3157
3178
|
if (w)
|
3158
|
-
for (var
|
3179
|
+
for (var K = w.length, B = 0; B < K; B++)
|
3159
3180
|
p[w[B]] = D;
|
3160
3181
|
else
|
3161
3182
|
p[I] = D;
|
@@ -3167,15 +3188,15 @@ function Qn(t) {
|
|
3167
3188
|
this.root.nodes.forEach(function(a) {
|
3168
3189
|
var u;
|
3169
3190
|
return (u = a.currentAnimation) === null || u === void 0 ? void 0 : u.stop();
|
3170
|
-
}), this.root.nodes.forEach(
|
3191
|
+
}), this.root.nodes.forEach(Kr), this.root.sharedNodes.clear();
|
3171
3192
|
}, o;
|
3172
3193
|
}()
|
3173
3194
|
);
|
3174
3195
|
}
|
3175
|
-
function
|
3196
|
+
function Ds(t) {
|
3176
3197
|
t.updateLayout();
|
3177
3198
|
}
|
3178
|
-
function
|
3199
|
+
function Is(t) {
|
3179
3200
|
var e, r, n, i, s = (r = (e = t.resumeFrom) === null || e === void 0 ? void 0 : e.snapshot) !== null && r !== void 0 ? r : t.snapshot;
|
3180
3201
|
if (t.isLead() && t.layout && s && t.hasListeners("didUpdate")) {
|
3181
3202
|
var o = t.layout, a = o.actual, u = o.measured;
|
@@ -3187,17 +3208,17 @@ function Rs(t) {
|
|
3187
3208
|
S.max = S.min + C;
|
3188
3209
|
});
|
3189
3210
|
var l = It();
|
3190
|
-
|
3211
|
+
Mt(l, a, s.layout);
|
3191
3212
|
var f = It();
|
3192
|
-
s.isShared ?
|
3193
|
-
var v = !
|
3213
|
+
s.isShared ? Mt(f, t.applyTransform(u, !0), s.measured) : Mt(f, a, s.layout);
|
3214
|
+
var v = !ti(l), c = !1;
|
3194
3215
|
if (!t.resumeFrom && (t.relativeParent = t.getClosestProjectingParent(), t.relativeParent && !t.relativeParent.resumeFrom)) {
|
3195
3216
|
var d = t.relativeParent, p = d.snapshot, h = d.layout;
|
3196
3217
|
if (p && h) {
|
3197
3218
|
var g = j();
|
3198
|
-
|
3219
|
+
Dt(g, s.layout, p.layout);
|
3199
3220
|
var b = j();
|
3200
|
-
|
3221
|
+
Dt(b, a, h.actual), ei(g, b) || (c = !0);
|
3201
3222
|
}
|
3202
3223
|
}
|
3203
3224
|
t.notifyListeners("didUpdate", {
|
@@ -3211,48 +3232,48 @@ function Rs(t) {
|
|
3211
3232
|
} else t.isLead() && ((i = (n = t.options).onExitComplete) === null || i === void 0 || i.call(n));
|
3212
3233
|
t.options.transition = void 0;
|
3213
3234
|
}
|
3214
|
-
function
|
3235
|
+
function Os(t) {
|
3215
3236
|
t.clearSnapshot();
|
3216
3237
|
}
|
3217
|
-
function
|
3238
|
+
function Kr(t) {
|
3218
3239
|
t.clearMeasurements();
|
3219
3240
|
}
|
3220
|
-
function
|
3241
|
+
function Fs(t) {
|
3221
3242
|
var e = t.options.visualElement;
|
3222
3243
|
e?.getProps().onBeforeLayoutMeasure && e.notifyBeforeLayoutMeasure(), t.resetTransform();
|
3223
3244
|
}
|
3224
|
-
function
|
3245
|
+
function js(t) {
|
3225
3246
|
t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0;
|
3226
3247
|
}
|
3227
|
-
function
|
3248
|
+
function Bs(t) {
|
3228
3249
|
t.resolveTargetDelta();
|
3229
3250
|
}
|
3230
|
-
function
|
3251
|
+
function Us(t) {
|
3231
3252
|
t.calcProjection();
|
3232
3253
|
}
|
3233
|
-
function
|
3254
|
+
function _s(t) {
|
3234
3255
|
t.resetRotation();
|
3235
3256
|
}
|
3236
|
-
function
|
3257
|
+
function Ns(t) {
|
3237
3258
|
t.removeLeadSnapshot();
|
3238
3259
|
}
|
3239
|
-
function
|
3260
|
+
function Gr(t, e, r) {
|
3240
3261
|
t.translate = O(e.translate, 0, r), t.scale = O(e.scale, 1, r), t.origin = e.origin, t.originPoint = e.originPoint;
|
3241
3262
|
}
|
3242
|
-
function
|
3263
|
+
function Yr(t, e, r, n) {
|
3243
3264
|
t.min = O(e.min, r.min, n), t.max = O(e.max, r.max, n);
|
3244
3265
|
}
|
3245
|
-
function
|
3246
|
-
|
3266
|
+
function Hs(t, e, r, n) {
|
3267
|
+
Yr(t.x, e.x, r.x, n), Yr(t.y, e.y, r.y, n);
|
3247
3268
|
}
|
3248
|
-
function
|
3269
|
+
function zs(t) {
|
3249
3270
|
return t.animationValues && t.animationValues.opacityExit !== void 0;
|
3250
3271
|
}
|
3251
|
-
var
|
3272
|
+
var Ks = {
|
3252
3273
|
duration: 0.45,
|
3253
3274
|
ease: [0.4, 0, 0.1, 1]
|
3254
3275
|
};
|
3255
|
-
function
|
3276
|
+
function Gs(t, e) {
|
3256
3277
|
for (var r = t.root, n = t.path.length - 1; n >= 0; n--)
|
3257
3278
|
if (t.path[n].instance) {
|
3258
3279
|
r = t.path[n];
|
@@ -3261,13 +3282,13 @@ function Hs(t, e) {
|
|
3261
3282
|
var i = r && r !== t.root ? r.instance : document, s = i.querySelector('[data-projection-id="'.concat(e, '"]'));
|
3262
3283
|
s && t.mount(s, !0);
|
3263
3284
|
}
|
3264
|
-
function
|
3285
|
+
function kr(t) {
|
3265
3286
|
t.min = Math.round(t.min), t.max = Math.round(t.max);
|
3266
3287
|
}
|
3267
|
-
function
|
3268
|
-
|
3288
|
+
function Xr(t) {
|
3289
|
+
kr(t.x), kr(t.y);
|
3269
3290
|
}
|
3270
|
-
var
|
3291
|
+
var Ys = ri({
|
3271
3292
|
attachResizeListener: function(t, e) {
|
3272
3293
|
return ie(t, "resize", e);
|
3273
3294
|
},
|
@@ -3282,7 +3303,7 @@ var zs = Qn({
|
|
3282
3303
|
}
|
3283
3304
|
}), de = {
|
3284
3305
|
current: void 0
|
3285
|
-
},
|
3306
|
+
}, ks = ri({
|
3286
3307
|
measureScroll: function(t) {
|
3287
3308
|
return {
|
3288
3309
|
x: t.scrollLeft,
|
@@ -3291,7 +3312,7 @@ var zs = Qn({
|
|
3291
3312
|
},
|
3292
3313
|
defaultParent: function() {
|
3293
3314
|
if (!de.current) {
|
3294
|
-
var t = new
|
3315
|
+
var t = new Ys(0, {});
|
3295
3316
|
t.mount(window), t.setOptions({ layoutScroll: !0 }), de.current = t;
|
3296
3317
|
}
|
3297
3318
|
return de.current;
|
@@ -3302,10 +3323,10 @@ var zs = Qn({
|
|
3302
3323
|
checkIsScrollRoot: function(t) {
|
3303
3324
|
return window.getComputedStyle(t).position === "fixed";
|
3304
3325
|
}
|
3305
|
-
}),
|
3306
|
-
return
|
3326
|
+
}), Xs = m(m(m(m({}, Eo), ka), Zo), bs), ou = /* @__PURE__ */ qi(function(t, e) {
|
3327
|
+
return Ca(t, e, Xs, ps, ks);
|
3307
3328
|
});
|
3308
|
-
function
|
3329
|
+
function ni() {
|
3309
3330
|
var t = $(!1);
|
3310
3331
|
return Tt(function() {
|
3311
3332
|
return t.current = !0, function() {
|
@@ -3313,8 +3334,8 @@ function ti() {
|
|
3313
3334
|
};
|
3314
3335
|
}, []), t;
|
3315
3336
|
}
|
3316
|
-
function
|
3317
|
-
var t =
|
3337
|
+
function Ws() {
|
3338
|
+
var t = ni(), e = R(Me(0), 2), r = e[0], n = e[1], i = ye(function() {
|
3318
3339
|
t.current && n(r + 1);
|
3319
3340
|
}, [r]), s = ye(function() {
|
3320
3341
|
return Z.postRender(i);
|
@@ -3322,7 +3343,7 @@ function Ys() {
|
|
3322
3343
|
return [s, r];
|
3323
3344
|
}
|
3324
3345
|
var pe = function(t) {
|
3325
|
-
var e = t.children, r = t.initial, n = t.isPresent, i = t.onExitComplete, s = t.custom, o = t.presenceAffectsLayout, a =
|
3346
|
+
var e = t.children, r = t.initial, n = t.isPresent, i = t.onExitComplete, s = t.custom, o = t.presenceAffectsLayout, a = ft(Zs), u = In(), l = Vt(
|
3326
3347
|
function() {
|
3327
3348
|
return {
|
3328
3349
|
id: u,
|
@@ -3333,7 +3354,7 @@ var pe = function(t) {
|
|
3333
3354
|
var v, c;
|
3334
3355
|
a.set(f, !0);
|
3335
3356
|
try {
|
3336
|
-
for (var d =
|
3357
|
+
for (var d = xi(a.values()), p = d.next(); !p.done; p = d.next()) {
|
3337
3358
|
var h = p.value;
|
3338
3359
|
if (!h)
|
3339
3360
|
return;
|
@@ -3367,53 +3388,53 @@ var pe = function(t) {
|
|
3367
3388
|
a.forEach(function(f, v) {
|
3368
3389
|
return a.set(v, !1);
|
3369
3390
|
});
|
3370
|
-
}, [n]),
|
3391
|
+
}, [n]), Y.useEffect(function() {
|
3371
3392
|
!n && !a.size && i?.();
|
3372
|
-
}, [n]),
|
3393
|
+
}, [n]), Y.createElement(Nt.Provider, { value: l }, e);
|
3373
3394
|
};
|
3374
|
-
function
|
3395
|
+
function Zs() {
|
3375
3396
|
return /* @__PURE__ */ new Map();
|
3376
3397
|
}
|
3377
3398
|
var mt = function(t) {
|
3378
3399
|
return t.key || "";
|
3379
3400
|
};
|
3380
|
-
function
|
3401
|
+
function $s(t, e) {
|
3381
3402
|
t.forEach(function(r) {
|
3382
3403
|
var n = mt(r);
|
3383
3404
|
e.set(n, r);
|
3384
3405
|
});
|
3385
3406
|
}
|
3386
|
-
function
|
3407
|
+
function qs(t) {
|
3387
3408
|
var e = [];
|
3388
|
-
return
|
3389
|
-
|
3409
|
+
return Ri.forEach(t, function(r) {
|
3410
|
+
Mi(r) && e.push(r);
|
3390
3411
|
}), e;
|
3391
3412
|
}
|
3392
|
-
var
|
3393
|
-
var e = t.children, r = t.custom, n = t.initial, i = n === void 0 ? !0 : n, s = t.onExitComplete, o = t.exitBeforeEnter, a = t.presenceAffectsLayout, u = a === void 0 ? !0 : a, l =
|
3413
|
+
var su = function(t) {
|
3414
|
+
var e = t.children, r = t.custom, n = t.initial, i = n === void 0 ? !0 : n, s = t.onExitComplete, o = t.exitBeforeEnter, a = t.presenceAffectsLayout, u = a === void 0 ? !0 : a, l = R(Ws(), 1), f = l[0], v = F(Ie).forceRender;
|
3394
3415
|
v && (f = v);
|
3395
|
-
var c =
|
3416
|
+
var c = ni(), d = qs(e), p = d, h = /* @__PURE__ */ new Set(), g = $(p), b = $(/* @__PURE__ */ new Map()).current, P = $(!0);
|
3396
3417
|
if (Tt(function() {
|
3397
|
-
P.current = !1,
|
3398
|
-
}),
|
3418
|
+
P.current = !1, $s(d, b), g.current = p;
|
3419
|
+
}), He(function() {
|
3399
3420
|
P.current = !0, b.clear(), h.clear();
|
3400
3421
|
}), P.current)
|
3401
|
-
return
|
3402
|
-
return
|
3422
|
+
return Y.createElement(Y.Fragment, null, p.map(function(x) {
|
3423
|
+
return Y.createElement(pe, { key: mt(x), isPresent: !0, initial: i ? void 0 : !1, presenceAffectsLayout: u }, x);
|
3403
3424
|
}));
|
3404
|
-
p =
|
3425
|
+
p = z([], R(p), !1);
|
3405
3426
|
for (var S = g.current.map(mt), C = d.map(mt), A = S.length, I = 0; I < A; I++) {
|
3406
|
-
var
|
3407
|
-
C.indexOf(
|
3427
|
+
var M = S[I];
|
3428
|
+
C.indexOf(M) === -1 && h.add(M);
|
3408
3429
|
}
|
3409
3430
|
return o && h.size && (p = []), h.forEach(function(x) {
|
3410
3431
|
if (C.indexOf(x) === -1) {
|
3411
3432
|
var w = b.get(x);
|
3412
3433
|
if (w) {
|
3413
|
-
var D = S.indexOf(x),
|
3434
|
+
var D = S.indexOf(x), K = function() {
|
3414
3435
|
b.delete(x), h.delete(x);
|
3415
|
-
var B = g.current.findIndex(function(
|
3416
|
-
return
|
3436
|
+
var B = g.current.findIndex(function(H) {
|
3437
|
+
return H.key === x;
|
3417
3438
|
});
|
3418
3439
|
if (g.current.splice(B, 1), !h.size) {
|
3419
3440
|
if (g.current = d, c.current === !1)
|
@@ -3421,46 +3442,46 @@ var nu = function(t) {
|
|
3421
3442
|
f(), s && s();
|
3422
3443
|
}
|
3423
3444
|
};
|
3424
|
-
p.splice(D, 0,
|
3445
|
+
p.splice(D, 0, Y.createElement(pe, { key: mt(w), isPresent: !1, onExitComplete: K, custom: r, presenceAffectsLayout: u }, w));
|
3425
3446
|
}
|
3426
3447
|
}
|
3427
3448
|
}), p = p.map(function(x) {
|
3428
3449
|
var w = x.key;
|
3429
|
-
return h.has(w) ? x :
|
3430
|
-
}), De !== "production" && o && p.length > 1 && console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),
|
3431
|
-
return
|
3450
|
+
return h.has(w) ? x : Y.createElement(pe, { key: mt(x), isPresent: !0, presenceAffectsLayout: u }, x);
|
3451
|
+
}), De !== "production" && o && p.length > 1 && console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."), Y.createElement(Y.Fragment, null, h.size ? p : p.map(function(x) {
|
3452
|
+
return Li(x);
|
3432
3453
|
}));
|
3433
3454
|
};
|
3434
|
-
function
|
3435
|
-
var e =
|
3436
|
-
return
|
3455
|
+
function ii(t) {
|
3456
|
+
var e = ft(function() {
|
3457
|
+
return dt(t);
|
3437
3458
|
}), r = F(_t).isStatic;
|
3438
3459
|
if (r) {
|
3439
|
-
var n =
|
3440
|
-
|
3460
|
+
var n = R(Me(t), 2), i = n[1];
|
3461
|
+
N(function() {
|
3441
3462
|
return e.onChange(i);
|
3442
3463
|
}, []);
|
3443
3464
|
}
|
3444
3465
|
return e;
|
3445
3466
|
}
|
3446
|
-
var
|
3467
|
+
var Js = function(t) {
|
3447
3468
|
return typeof t == "object" && t.mix;
|
3448
|
-
},
|
3449
|
-
return
|
3469
|
+
}, Qs = function(t) {
|
3470
|
+
return Js(t) ? t.mix : void 0;
|
3450
3471
|
};
|
3451
|
-
function
|
3472
|
+
function tu() {
|
3452
3473
|
for (var t = [], e = 0; e < arguments.length; e++)
|
3453
3474
|
t[e] = arguments[e];
|
3454
|
-
var r = !Array.isArray(t[0]), n = r ? 0 : -1, i = t[0 + n], s = t[1 + n], o = t[2 + n], a = t[3 + n], u =
|
3475
|
+
var r = !Array.isArray(t[0]), n = r ? 0 : -1, i = t[0 + n], s = t[1 + n], o = t[2 + n], a = t[3 + n], u = Ci(s, o, m({ mixer: Qs(o[0]) }, a));
|
3455
3476
|
return r ? u(i) : u;
|
3456
3477
|
}
|
3457
|
-
function
|
3478
|
+
function eu(t, e) {
|
3458
3479
|
Tt(function() {
|
3459
3480
|
if (q(t))
|
3460
3481
|
return t.onChange(e);
|
3461
3482
|
}, [e]);
|
3462
3483
|
}
|
3463
|
-
function
|
3484
|
+
function ru(t, e) {
|
3464
3485
|
Tt(function() {
|
3465
3486
|
var r = t.map(function(n) {
|
3466
3487
|
return n.onChange(e);
|
@@ -3472,33 +3493,33 @@ function Qs(t, e) {
|
|
3472
3493
|
};
|
3473
3494
|
});
|
3474
3495
|
}
|
3475
|
-
function
|
3476
|
-
var r =
|
3496
|
+
function ai(t, e) {
|
3497
|
+
var r = ii(e()), n = function() {
|
3477
3498
|
return r.set(e());
|
3478
3499
|
};
|
3479
|
-
return n(),
|
3500
|
+
return n(), ru(t, function() {
|
3480
3501
|
return Z.update(n, !1, !0);
|
3481
3502
|
}), r;
|
3482
3503
|
}
|
3483
|
-
function
|
3484
|
-
var i = typeof e == "function" ? e :
|
3485
|
-
return Array.isArray(t) ?
|
3486
|
-
var o =
|
3504
|
+
function uu(t, e, r, n) {
|
3505
|
+
var i = typeof e == "function" ? e : tu(e, r, n);
|
3506
|
+
return Array.isArray(t) ? Wr(t, i) : Wr([t], function(s) {
|
3507
|
+
var o = R(s, 1), a = o[0];
|
3487
3508
|
return i(a);
|
3488
3509
|
});
|
3489
3510
|
}
|
3490
|
-
function
|
3491
|
-
var r =
|
3511
|
+
function Wr(t, e) {
|
3512
|
+
var r = ft(function() {
|
3492
3513
|
return [];
|
3493
3514
|
});
|
3494
|
-
return
|
3515
|
+
return ai(t, function() {
|
3495
3516
|
r.length = 0;
|
3496
3517
|
for (var n = t.length, i = 0; i < n; i++)
|
3497
3518
|
r[i] = t[i].get();
|
3498
3519
|
return e(r);
|
3499
3520
|
});
|
3500
3521
|
}
|
3501
|
-
function
|
3522
|
+
function lu(t) {
|
3502
3523
|
for (var e = [], r = 1; r < arguments.length; r++)
|
3503
3524
|
e[r - 1] = arguments[r];
|
3504
3525
|
var n = t.length;
|
@@ -3510,25 +3531,74 @@ function au(t) {
|
|
3510
3531
|
}
|
3511
3532
|
return s;
|
3512
3533
|
}
|
3513
|
-
return
|
3534
|
+
return ai(e, i);
|
3514
3535
|
}
|
3515
|
-
function
|
3536
|
+
function fu(t, e) {
|
3516
3537
|
e === void 0 && (e = {});
|
3517
|
-
var r = F(_t).isStatic, n = $(null), i =
|
3538
|
+
var r = F(_t).isStatic, n = $(null), i = ii(q(t) ? t.get() : t);
|
3518
3539
|
return Vt(function() {
|
3519
3540
|
return i.attach(function(s, o) {
|
3520
|
-
return r ? o(s) : (n.current && n.current.stop(), n.current =
|
3541
|
+
return r ? o(s) : (n.current && n.current.stop(), n.current = tn(m(m({ from: i.get(), to: s, velocity: i.getVelocity() }, e), { onUpdate: o })), i.get());
|
3521
3542
|
});
|
3522
|
-
}, [JSON.stringify(e)]),
|
3543
|
+
}, [JSON.stringify(e)]), eu(t, function(s) {
|
3523
3544
|
return i.set(parseFloat(s));
|
3524
3545
|
}), i;
|
3525
3546
|
}
|
3547
|
+
function nu() {
|
3548
|
+
var t = !1, e = [], r = /* @__PURE__ */ new Set(), n = {
|
3549
|
+
subscribe: function(i) {
|
3550
|
+
return r.add(i), function() {
|
3551
|
+
return void r.delete(i);
|
3552
|
+
};
|
3553
|
+
},
|
3554
|
+
start: function(i, s) {
|
3555
|
+
if (t) {
|
3556
|
+
var o = [];
|
3557
|
+
return r.forEach(function(a) {
|
3558
|
+
o.push(Un(a, i, {
|
3559
|
+
transitionOverride: s
|
3560
|
+
}));
|
3561
|
+
}), Promise.all(o);
|
3562
|
+
} else
|
3563
|
+
return new Promise(function(a) {
|
3564
|
+
e.push({
|
3565
|
+
animation: [i, s],
|
3566
|
+
resolve: a
|
3567
|
+
});
|
3568
|
+
});
|
3569
|
+
},
|
3570
|
+
set: function(i) {
|
3571
|
+
return lt(t, "controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."), r.forEach(function(s) {
|
3572
|
+
po(s, i);
|
3573
|
+
});
|
3574
|
+
},
|
3575
|
+
stop: function() {
|
3576
|
+
r.forEach(function(i) {
|
3577
|
+
bo(i);
|
3578
|
+
});
|
3579
|
+
},
|
3580
|
+
mount: function() {
|
3581
|
+
return t = !0, e.forEach(function(i) {
|
3582
|
+
var s = i.animation, o = i.resolve;
|
3583
|
+
n.start.apply(n, z([], R(s), !1)).then(o);
|
3584
|
+
}), function() {
|
3585
|
+
t = !1, n.stop();
|
3586
|
+
};
|
3587
|
+
}
|
3588
|
+
};
|
3589
|
+
return n;
|
3590
|
+
}
|
3591
|
+
function cu() {
|
3592
|
+
var t = ft(nu);
|
3593
|
+
return N(t.mount, []), t;
|
3594
|
+
}
|
3526
3595
|
export {
|
3527
|
-
|
3528
|
-
|
3529
|
-
|
3530
|
-
|
3531
|
-
|
3532
|
-
|
3533
|
-
|
3596
|
+
su as A,
|
3597
|
+
Ps as a,
|
3598
|
+
uu as b,
|
3599
|
+
lu as c,
|
3600
|
+
fu as d,
|
3601
|
+
cu as e,
|
3602
|
+
ou as m,
|
3603
|
+
ii as u
|
3534
3604
|
};
|