@devtron-labs/devtron-fe-common-lib 1.15.1-pre-3 → 1.15.1-pre-5
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-DlSJ1llB.js → @code-editor-AS248Z8Q.js} +3897 -3845
- package/dist/{@common-rjsf-CYuivsxy.js → @common-rjsf-LqYGieJ9.js} +1 -1
- package/dist/{@framer-motion-Dchiw-Rb.js → @framer-motion-Bw9QEkUf.js} +637 -619
- package/dist/Common/Constants.d.ts +3 -0
- package/dist/Common/Types.d.ts +7 -0
- package/dist/Shared/Components/Header/types.d.ts +2 -1
- package/dist/Shared/Components/Icon/Icon.d.ts +5 -0
- package/dist/Shared/Components/ProgressBar/ProgressBar.component.d.ts +2 -0
- package/dist/Shared/Components/ProgressBar/index.d.ts +1 -0
- package/dist/Shared/Components/ProgressBar/types.d.ts +9 -0
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/assets/ic-cluster-isolated.93f843b9.svg +3 -0
- package/dist/assets/{ic-cluster.71ba9e26.svg → ic-cluster.f1c3fad1.svg} +1 -1
- package/dist/assets/ic-environment-isolated.b772ae9d.svg +3 -0
- package/dist/assets/ic-environment.e639b8f3.svg +4 -0
- package/dist/assets/ic-openai.6e4c9a37.svg +10 -0
- package/dist/assets/ic-shapes.b7b5c28f.svg +3 -0
- package/dist/assets/ic-sparkle-ai-color.34768219.svg +11 -0
- package/dist/index.js +726 -724
- package/package.json +1 -1
- package/dist/assets/ic-sparkle-ai-color.d123b325.svg +0 -16
@@ -1,7 +1,7 @@
|
|
1
|
-
import { ax as ct, ay as m, az as M, aA as Xr, aB as Ee, aC as T, aD as at, aE as
|
1
|
+
import { ax as ct, ay as m, az as M, aA as Xr, aB as Ee, aC as T, aD as at, aE as Gt, aF as oe, aG as We, aH as Q, aI as Wr, aJ as ni, aK as Zr, aL as ii, aM as ai, aN as oi, aO as si, aP as ui, aQ as $r, aR as li, aS as fi, aT as ci, aU as vi, aV as di, aW as pi, aX as hi, aY as Pt, aZ as k, a_ as he, a$ as qr, b0 as mi, b1 as Jr, b2 as W, b3 as Z, b4 as gi, b5 as me, b6 as Ot, b7 as yi, b8 as bi, b9 as Qr, ba as Ft, bb as O, bc as ge, bd as Pi, be as se, bf as Vi, bg as Ti } from "./@vendor-STJ9h0oI.js";
|
2
2
|
import * as G from "react";
|
3
|
-
import Le, { createContext as
|
4
|
-
var Ze = "production", De = typeof process > "u" || process.env === void 0 ? Ze : process.env.NODE_ENV || Ze,
|
3
|
+
import Le, { createContext as St, useContext as F, useLayoutEffect as Si, useEffect as H, useState as Re, useRef as $, useCallback as ye, useMemo as Vt, forwardRef as xi, createElement as Ci, cloneElement as Ai, Children as wi, isValidElement as Ei } from "react";
|
4
|
+
var Ze = "production", De = typeof process > "u" || process.env === void 0 ? Ze : process.env.NODE_ENV || Ze, tt = function(t) {
|
5
5
|
return {
|
6
6
|
isEnabled: function(e) {
|
7
7
|
return t.some(function(r) {
|
@@ -9,9 +9,9 @@ var Ze = "production", De = typeof process > "u" || process.env === void 0 ? Ze
|
|
9
9
|
});
|
10
10
|
}
|
11
11
|
};
|
12
|
-
},
|
13
|
-
measureLayout:
|
14
|
-
animation:
|
12
|
+
}, jt = {
|
13
|
+
measureLayout: tt(["layout", "layoutId", "drag"]),
|
14
|
+
animation: tt([
|
15
15
|
"animate",
|
16
16
|
"exit",
|
17
17
|
"variants",
|
@@ -21,52 +21,52 @@ var Ze = "production", De = typeof process > "u" || process.env === void 0 ? Ze
|
|
21
21
|
"whileDrag",
|
22
22
|
"whileInView"
|
23
23
|
]),
|
24
|
-
exit:
|
25
|
-
drag:
|
26
|
-
focus:
|
27
|
-
hover:
|
28
|
-
tap:
|
29
|
-
pan:
|
24
|
+
exit: tt(["exit"]),
|
25
|
+
drag: tt(["drag", "dragControls"]),
|
26
|
+
focus: tt(["whileFocus"]),
|
27
|
+
hover: tt(["whileHover", "onHoverStart", "onHoverEnd"]),
|
28
|
+
tap: tt(["whileTap", "onTap", "onTapStart", "onTapCancel"]),
|
29
|
+
pan: tt([
|
30
30
|
"onPan",
|
31
31
|
"onPanStart",
|
32
32
|
"onPanSessionStart",
|
33
33
|
"onPanEnd"
|
34
34
|
]),
|
35
|
-
inView:
|
35
|
+
inView: tt([
|
36
36
|
"whileInView",
|
37
37
|
"onViewportEnter",
|
38
38
|
"onViewportLeave"
|
39
39
|
])
|
40
40
|
};
|
41
|
-
function
|
41
|
+
function Li(t) {
|
42
42
|
for (var e in t)
|
43
|
-
t[e] !== null && (e === "projectionNodeConstructor" ?
|
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 tn = St({ strict: !1 }), en = Object.keys(jt), Ri = en.length;
|
46
|
+
function Di(t, e, r) {
|
47
|
+
var n = [], i = F(tn);
|
48
48
|
if (!e)
|
49
49
|
return null;
|
50
50
|
De !== "production" && r && i.strict && ct(!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 <
|
52
|
-
var o =
|
51
|
+
for (var s = 0; s < Ri; s++) {
|
52
|
+
var o = en[s], a = jt[o], u = a.isEnabled, l = a.Component;
|
53
53
|
u(t) && l && n.push(G.createElement(l, m({ key: o }, t, { visualElement: e })));
|
54
54
|
}
|
55
55
|
return n;
|
56
56
|
}
|
57
|
-
var
|
57
|
+
var _t = St({
|
58
58
|
transformPagePoint: function(t) {
|
59
59
|
return t;
|
60
60
|
},
|
61
61
|
isStatic: !1,
|
62
62
|
reducedMotion: "never"
|
63
|
-
}), ee =
|
64
|
-
function
|
63
|
+
}), ee = St({});
|
64
|
+
function Mi() {
|
65
65
|
return F(ee).visualElement;
|
66
66
|
}
|
67
|
-
var
|
68
|
-
function
|
69
|
-
if (
|
67
|
+
var Nt = St(null), xt = typeof document < "u", Tt = xt ? Si : H, be = { current: null }, rn = !1;
|
68
|
+
function Ii() {
|
69
|
+
if (rn = !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 Mi() {
|
|
75
75
|
} else
|
76
76
|
be.current = !1;
|
77
77
|
}
|
78
|
-
function
|
79
|
-
!
|
78
|
+
function Oi() {
|
79
|
+
!rn && Ii();
|
80
80
|
var t = M(Re(be.current), 1), e = t[0];
|
81
81
|
return e;
|
82
82
|
}
|
83
|
-
function
|
84
|
-
var t =
|
83
|
+
function Fi() {
|
84
|
+
var t = Oi(), e = F(_t).reducedMotion;
|
85
85
|
return e === "never" ? !1 : e === "always" ? !0 : t;
|
86
86
|
}
|
87
|
-
function
|
88
|
-
var i = F(
|
87
|
+
function ji(t, e, r, n) {
|
88
|
+
var i = F(tn), s = Mi(), o = F(Nt), a = Fi(), u = $(void 0);
|
89
89
|
n || (n = i.renderer), !u.current && n && (u.current = n(t, {
|
90
90
|
visualState: e,
|
91
91
|
parent: s,
|
@@ -95,12 +95,12 @@ function Fi(t, e, r, n) {
|
|
95
95
|
shouldReduceMotion: a
|
96
96
|
}));
|
97
97
|
var l = u.current;
|
98
|
-
return
|
98
|
+
return Tt(function() {
|
99
99
|
l?.syncRender();
|
100
100
|
}), H(function() {
|
101
101
|
var f;
|
102
102
|
(f = l?.animationState) === null || f === void 0 || f.animateChanges();
|
103
|
-
}),
|
103
|
+
}), Tt(function() {
|
104
104
|
return function() {
|
105
105
|
return l?.notifyUnmount();
|
106
106
|
};
|
@@ -109,7 +109,7 @@ function Fi(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 Bi(t, e, r) {
|
113
113
|
return ye(
|
114
114
|
function(n) {
|
115
115
|
var i;
|
@@ -123,40 +123,40 @@ function ji(t, e, r) {
|
|
123
123
|
[e]
|
124
124
|
);
|
125
125
|
}
|
126
|
-
function
|
126
|
+
function nn(t) {
|
127
127
|
return Array.isArray(t);
|
128
128
|
}
|
129
129
|
function X(t) {
|
130
|
-
return typeof t == "string" ||
|
130
|
+
return typeof t == "string" || nn(t);
|
131
131
|
}
|
132
|
-
function
|
132
|
+
function Ui(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 _i(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 an(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 an(n, e, r ?? n.custom, Ui(t), _i(t));
|
151
151
|
}
|
152
152
|
function ne(t) {
|
153
153
|
var e;
|
154
154
|
return typeof ((e = t.animate) === null || e === void 0 ? void 0 : e.start) == "function" || X(t.initial) || X(t.animate) || X(t.whileHover) || X(t.whileDrag) || X(t.whileTap) || X(t.whileFocus) || X(t.exit);
|
155
155
|
}
|
156
|
-
function
|
156
|
+
function on(t) {
|
157
157
|
return !!(ne(t) || t.variants);
|
158
158
|
}
|
159
|
-
function
|
159
|
+
function Ni(t, e) {
|
160
160
|
if (ne(t)) {
|
161
161
|
var r = t.initial, n = t.animate;
|
162
162
|
return {
|
@@ -166,9 +166,9 @@ function _i(t, e) {
|
|
166
166
|
}
|
167
167
|
return t.inherit !== !1 ? e : {};
|
168
168
|
}
|
169
|
-
function
|
170
|
-
var e =
|
171
|
-
return
|
169
|
+
function Hi(t) {
|
170
|
+
var e = Ni(t, F(ee)), r = e.initial, n = e.animate;
|
171
|
+
return Vt(function() {
|
172
172
|
return { initial: r, animate: n };
|
173
173
|
}, [$e(r), $e(n)]);
|
174
174
|
}
|
@@ -176,10 +176,10 @@ function $e(t) {
|
|
176
176
|
return Array.isArray(t) ? t.join(" ") : t;
|
177
177
|
}
|
178
178
|
function dt(t) {
|
179
|
-
var e =
|
179
|
+
var e = $(null);
|
180
180
|
return e.current === null && (e.current = t()), e.current;
|
181
181
|
}
|
182
|
-
var
|
182
|
+
var Lt = {
|
183
183
|
/**
|
184
184
|
* Global flag as to whether the tree has animated since the last time
|
185
185
|
* we resized the window
|
@@ -190,16 +190,16 @@ var wt = {
|
|
190
190
|
* update will be given a `data-projection-id` attribute.
|
191
191
|
*/
|
192
192
|
hasEverUpdated: !1
|
193
|
-
},
|
194
|
-
function
|
193
|
+
}, zi = 1;
|
194
|
+
function Ki() {
|
195
195
|
return dt(function() {
|
196
|
-
if (
|
197
|
-
return
|
196
|
+
if (Lt.hasEverUpdated)
|
197
|
+
return zi++;
|
198
198
|
});
|
199
199
|
}
|
200
|
-
var Me =
|
201
|
-
function
|
202
|
-
var i, s = e.layoutId, o = e.layout, a = e.drag, u = e.dragConstraints, l = e.layoutScroll, f = F(
|
200
|
+
var Me = St({}), sn = St({});
|
201
|
+
function Gi(t, e, r, n) {
|
202
|
+
var i, s = e.layoutId, o = e.layout, a = e.drag, u = e.dragConstraints, l = e.layoutScroll, f = F(sn);
|
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,7 +220,7 @@ function Ki(t, e, r, n) {
|
|
220
220
|
layoutScroll: l
|
221
221
|
}));
|
222
222
|
}
|
223
|
-
var
|
223
|
+
var Yi = (
|
224
224
|
/** @class */
|
225
225
|
function(t) {
|
226
226
|
Xr(e, t);
|
@@ -238,29 +238,29 @@ var Gi = (
|
|
238
238
|
}, e;
|
239
239
|
}(Le.Component)
|
240
240
|
);
|
241
|
-
function
|
241
|
+
function ki(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 && Li(e);
|
244
244
|
function a(u, l) {
|
245
|
-
var f =
|
245
|
+
var f = Xi(u);
|
246
246
|
u = m(m({}, u), { layoutId: f });
|
247
|
-
var v = F(
|
248
|
-
return !v.isStatic &&
|
249
|
-
|
247
|
+
var v = F(_t), c = null, d = Hi(u), p = v.isStatic ? void 0 : Ki(), h = s(u, v.isStatic);
|
248
|
+
return !v.isStatic && xt && (d.visualElement = ji(o, h, m(m({}, v), u), r), Gi(p, u, d.visualElement, n || jt.projectionNodeConstructor), c = Di(u, d.visualElement, e)), G.createElement(
|
249
|
+
Yi,
|
250
250
|
{ visualElement: d.visualElement, props: m(m({}, v), u) },
|
251
251
|
c,
|
252
|
-
G.createElement(ee.Provider, { value: d }, i(o, u, p,
|
252
|
+
G.createElement(ee.Provider, { value: d }, i(o, u, p, Bi(h, d.visualElement, l), h, v.isStatic, d.visualElement))
|
253
253
|
);
|
254
254
|
}
|
255
|
-
return
|
255
|
+
return xi(a);
|
256
256
|
}
|
257
|
-
function
|
257
|
+
function Xi(t) {
|
258
258
|
var e, r = t.layoutId, n = (e = F(Me)) === null || e === void 0 ? void 0 : e.id;
|
259
259
|
return n && r !== void 0 ? n + "-" + r : r;
|
260
260
|
}
|
261
|
-
function
|
261
|
+
function Wi(t) {
|
262
262
|
function e(n, i) {
|
263
|
-
return i === void 0 && (i = {}),
|
263
|
+
return i === void 0 && (i = {}), ki(t(n, i));
|
264
264
|
}
|
265
265
|
if (typeof Proxy > "u")
|
266
266
|
return e;
|
@@ -276,7 +276,7 @@ function Xi(t) {
|
|
276
276
|
}
|
277
277
|
});
|
278
278
|
}
|
279
|
-
var
|
279
|
+
var Zi = [
|
280
280
|
"animate",
|
281
281
|
"circle",
|
282
282
|
"defs",
|
@@ -316,65 +316,65 @@ 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
|
+
!!(Zi.indexOf(t) > -1 || /**
|
320
320
|
* If it contains a capital letter, it's an SVG component
|
321
321
|
*/
|
322
322
|
/[A-Z]/.test(t))
|
323
323
|
)
|
324
324
|
);
|
325
325
|
}
|
326
|
-
var
|
327
|
-
function
|
328
|
-
Object.assign(
|
326
|
+
var $t = {};
|
327
|
+
function $i(t) {
|
328
|
+
Object.assign($t, t);
|
329
329
|
}
|
330
|
-
var Pe = ["", "X", "Y", "Z"],
|
331
|
-
|
330
|
+
var Pe = ["", "X", "Y", "Z"], qi = ["translate", "scale", "rotate", "skew"], Bt = ["transformPerspective", "x", "y", "z"];
|
331
|
+
qi.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 Ji(t, e) {
|
337
337
|
return Bt.indexOf(t) - Bt.indexOf(e);
|
338
338
|
}
|
339
|
-
var
|
340
|
-
function
|
341
|
-
return Ji.has(t);
|
342
|
-
}
|
343
|
-
var Qi = /* @__PURE__ */ new Set(["originX", "originY", "originZ"]);
|
344
|
-
function sn(t) {
|
339
|
+
var Qi = new Set(Bt);
|
340
|
+
function Ht(t) {
|
345
341
|
return Qi.has(t);
|
346
342
|
}
|
347
|
-
|
343
|
+
var ta = /* @__PURE__ */ new Set(["originX", "originY", "originZ"]);
|
344
|
+
function un(t) {
|
345
|
+
return ta.has(t);
|
346
|
+
}
|
347
|
+
function ln(t, e) {
|
348
348
|
var r = e.layout, n = e.layoutId;
|
349
|
-
return
|
349
|
+
return Ht(t) || un(t) || (r || n !== void 0) && (!!$t[t] || t === "opacity");
|
350
350
|
}
|
351
|
-
var
|
351
|
+
var q = function(t) {
|
352
352
|
return !!(t !== null && typeof t == "object" && t.getVelocity);
|
353
|
-
},
|
353
|
+
}, ea = {
|
354
354
|
x: "translateX",
|
355
355
|
y: "translateY",
|
356
356
|
z: "translateZ",
|
357
357
|
transformPerspective: "perspective"
|
358
358
|
};
|
359
|
-
function
|
359
|
+
function ra(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(Ji);
|
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(ea[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 na(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 fn(t) {
|
373
373
|
return t.startsWith("--");
|
374
374
|
}
|
375
|
-
var
|
375
|
+
var ia = function(t, e) {
|
376
376
|
return e && typeof t == "number" ? e.transform(t) : t;
|
377
|
-
}, qe = m(m({}, Ee), { transform: Math.round }),
|
377
|
+
}, qe = m(m({}, Ee), { transform: Math.round }), cn = {
|
378
378
|
// Border props
|
379
379
|
borderWidth: T,
|
380
380
|
borderTopWidth: T,
|
@@ -413,10 +413,10 @@ var na = function(t, e) {
|
|
413
413
|
rotateX: at,
|
414
414
|
rotateY: at,
|
415
415
|
rotateZ: at,
|
416
|
-
scale:
|
417
|
-
scaleX:
|
418
|
-
scaleY:
|
419
|
-
scaleZ:
|
416
|
+
scale: Gt,
|
417
|
+
scaleX: Gt,
|
418
|
+
scaleY: Gt,
|
419
|
+
scaleZ: Gt,
|
420
420
|
skew: at,
|
421
421
|
skewX: at,
|
422
422
|
skewY: at,
|
@@ -446,18 +446,18 @@ function Oe(t, e, r, n) {
|
|
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 (fn(d)) {
|
450
450
|
o[d] = p;
|
451
451
|
continue;
|
452
452
|
}
|
453
|
-
var h =
|
454
|
-
if (
|
453
|
+
var h = cn[d], g = ia(p, h);
|
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 un(d) ? (l[d] = g, v = !0) : s[d] = g;
|
459
459
|
}
|
460
|
-
f ? s.transform =
|
460
|
+
f ? s.transform = ra(t, r, c, n) : n ? s.transform = n({}, "") : !e.transform && s.transform && (s.transform = "none"), v && (s.transformOrigin = na(l));
|
461
461
|
}
|
462
462
|
var Fe = function() {
|
463
463
|
return {
|
@@ -468,28 +468,28 @@ var Fe = function() {
|
|
468
468
|
vars: {}
|
469
469
|
};
|
470
470
|
};
|
471
|
-
function
|
471
|
+
function vn(t, e, r) {
|
472
472
|
for (var n in e)
|
473
|
-
!
|
473
|
+
!q(e[n]) && !ln(n, r) && (t[n] = e[n]);
|
474
474
|
}
|
475
|
-
function
|
475
|
+
function aa(t, e, r) {
|
476
476
|
var n = t.transformTemplate;
|
477
|
-
return
|
477
|
+
return Vt(function() {
|
478
478
|
var i = Fe();
|
479
479
|
Oe(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 oa(t, e, r) {
|
485
485
|
var n = t.style || {}, i = {};
|
486
|
-
return
|
486
|
+
return vn(i, n, t), Object.assign(i, aa(t, e, r)), t.transformValues && (i = t.transformValues(i)), i;
|
487
487
|
}
|
488
|
-
function
|
489
|
-
var n = {}, i =
|
488
|
+
function sa(t, e, r) {
|
489
|
+
var n = {}, i = oa(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 ua = /* @__PURE__ */ new Set([
|
493
493
|
"initial",
|
494
494
|
"animate",
|
495
495
|
"exit",
|
@@ -547,84 +547,84 @@ var sa = /* @__PURE__ */ new Set([
|
|
547
547
|
"viewport",
|
548
548
|
"layoutScroll"
|
549
549
|
]);
|
550
|
-
function
|
551
|
-
return
|
550
|
+
function qt(t) {
|
551
|
+
return ua.has(t);
|
552
552
|
}
|
553
|
-
var
|
554
|
-
return
|
553
|
+
var dn = function(t) {
|
554
|
+
return !qt(t);
|
555
555
|
};
|
556
|
-
function
|
557
|
-
t && (
|
558
|
-
return e.startsWith("on") ?
|
556
|
+
function la(t) {
|
557
|
+
t && (dn = function(e) {
|
558
|
+
return e.startsWith("on") ? !qt(e) : t(e);
|
559
559
|
});
|
560
560
|
}
|
561
561
|
try {
|
562
|
-
|
562
|
+
la(require("@emotion/is-prop-valid").default);
|
563
563
|
} catch {
|
564
564
|
}
|
565
|
-
function
|
565
|
+
function fa(t, e, r) {
|
566
566
|
var n = {};
|
567
567
|
for (var i in t)
|
568
|
-
(
|
568
|
+
(dn(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
572
|
function Je(t, e, r) {
|
573
573
|
return typeof t == "string" ? t : T.transform(e + r * t);
|
574
574
|
}
|
575
|
-
function
|
575
|
+
function ca(t, e, r) {
|
576
576
|
var n = Je(e, t.x, t.width), i = Je(r, t.y, t.height);
|
577
577
|
return "".concat(n, " ").concat(i);
|
578
578
|
}
|
579
|
-
var
|
579
|
+
var va = {
|
580
580
|
offset: "strokeDashoffset",
|
581
581
|
array: "strokeDasharray"
|
582
582
|
};
|
583
|
-
function
|
583
|
+
function da(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 = va;
|
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
590
|
function je(t, e, r, n) {
|
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 =
|
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
|
Oe(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 = ca(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 && da(p, u, f, c);
|
595
595
|
}
|
596
|
-
var
|
596
|
+
var pn = function() {
|
597
597
|
return m(m({}, Fe()), { attrs: {} });
|
598
598
|
};
|
599
|
-
function
|
600
|
-
var r =
|
601
|
-
var i =
|
599
|
+
function pa(t, e) {
|
600
|
+
var r = Vt(function() {
|
601
|
+
var i = pn();
|
602
602
|
return je(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
|
+
vn(n, t.style, t), r.style = m(m({}, n), r.style);
|
607
607
|
}
|
608
608
|
return r;
|
609
609
|
}
|
610
|
-
function
|
610
|
+
function ha(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 = Ie(r) ?
|
614
|
-
return i && (c["data-projection-id"] = i),
|
613
|
+
var u = o.latestValues, l = Ie(r) ? pa : sa, f = l(n, u, a), v = fa(n, typeof r == "string", t), c = m(m(m({}, v), f), { ref: s });
|
614
|
+
return i && (c["data-projection-id"] = i), Ci(r, c);
|
615
615
|
};
|
616
616
|
return e;
|
617
617
|
}
|
618
|
-
var
|
619
|
-
return t.replace(
|
618
|
+
var ma = /([a-z])([A-Z])/g, ga = "$1-$2", hn = function(t) {
|
619
|
+
return t.replace(ma, ga).toLowerCase();
|
620
620
|
};
|
621
|
-
function
|
621
|
+
function mn(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 gn = /* @__PURE__ */ new Set([
|
628
628
|
"baseFrequency",
|
629
629
|
"diffuseConstant",
|
630
630
|
"kernelMatrix",
|
@@ -646,21 +646,21 @@ var mn = /* @__PURE__ */ new Set([
|
|
646
646
|
"gradientTransform",
|
647
647
|
"pathLength"
|
648
648
|
]);
|
649
|
-
function
|
650
|
-
|
649
|
+
function yn(t, e, r, n) {
|
650
|
+
mn(t, e, void 0, n);
|
651
651
|
for (var i in e.attrs)
|
652
|
-
t.setAttribute(
|
652
|
+
t.setAttribute(gn.has(i) ? i : hn(i), e.attrs[i]);
|
653
653
|
}
|
654
654
|
function Be(t) {
|
655
655
|
var e = t.style, r = {};
|
656
656
|
for (var n in e)
|
657
|
-
(
|
657
|
+
(q(e[n]) || ln(n, t)) && (r[n] = e[n]);
|
658
658
|
return r;
|
659
659
|
}
|
660
|
-
function
|
660
|
+
function bn(t) {
|
661
661
|
var e = Be(t);
|
662
662
|
for (var r in t)
|
663
|
-
if (
|
663
|
+
if (q(t[r])) {
|
664
664
|
var n = r === "x" || r === "y" ? "attr" + r.toUpperCase() : r;
|
665
665
|
e[n] = t[r];
|
666
666
|
}
|
@@ -671,47 +671,47 @@ function Ue(t) {
|
|
671
671
|
}
|
672
672
|
var Ut = function(t) {
|
673
673
|
return Array.isArray(t);
|
674
|
-
},
|
674
|
+
}, ya = function(t) {
|
675
675
|
return !!(t && typeof t == "object" && t.mix && t.toValue);
|
676
|
-
},
|
676
|
+
}, Pn = function(t) {
|
677
677
|
return Ut(t) ? t[t.length - 1] || 0 : t;
|
678
678
|
};
|
679
|
-
function
|
680
|
-
var e =
|
681
|
-
return
|
679
|
+
function Zt(t) {
|
680
|
+
var e = q(t) ? t.get() : t;
|
681
|
+
return ya(e) ? e.toValue() : e;
|
682
682
|
}
|
683
683
|
function Qe(t, e, r, n) {
|
684
684
|
var i = t.scrapeMotionValuesFromProps, s = t.createRenderState, o = t.onMount, a = {
|
685
|
-
latestValues:
|
685
|
+
latestValues: ba(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 Vn = function(t) {
|
693
693
|
return function(e, r) {
|
694
|
-
var n = F(ee), i = F(
|
694
|
+
var n = F(ee), i = F(Nt);
|
695
695
|
return r ? Qe(t, e, n, i) : dt(function() {
|
696
696
|
return Qe(t, e, n, i);
|
697
697
|
});
|
698
698
|
};
|
699
699
|
};
|
700
|
-
function
|
700
|
+
function ba(t, e, r, n) {
|
701
701
|
var i = {}, s = r?.initial === !1, o = n(t);
|
702
702
|
for (var a in o)
|
703
|
-
i[a] =
|
704
|
-
var u = t.initial, l = t.animate, f = ne(t), v =
|
703
|
+
i[a] = Zt(o[a]);
|
704
|
+
var u = t.initial, l = t.animate, f = ne(t), v = on(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
707
|
if (d && typeof d != "boolean" && !Ue(d)) {
|
708
708
|
var p = Array.isArray(d) ? d : [d];
|
709
709
|
p.forEach(function(h) {
|
710
|
-
var g =
|
710
|
+
var g = an(t, h);
|
711
711
|
if (g) {
|
712
712
|
var b = g.transitionEnd;
|
713
713
|
g.transition;
|
714
|
-
var P =
|
714
|
+
var P = Q(g, ["transitionEnd", "transition"]);
|
715
715
|
for (var S in P) {
|
716
716
|
var C = P[S];
|
717
717
|
if (Array.isArray(C)) {
|
@@ -727,10 +727,10 @@ function ya(t, e, r, n) {
|
|
727
727
|
}
|
728
728
|
return i;
|
729
729
|
}
|
730
|
-
var
|
731
|
-
useVisualState:
|
732
|
-
scrapeMotionValuesFromProps:
|
733
|
-
createRenderState:
|
730
|
+
var Pa = {
|
731
|
+
useVisualState: Vn({
|
732
|
+
scrapeMotionValuesFromProps: bn,
|
733
|
+
createRenderState: pn,
|
734
734
|
onMount: function(t, e, r) {
|
735
735
|
var n = r.renderState, i = r.latestValues;
|
736
736
|
try {
|
@@ -743,18 +743,18 @@ var ba = {
|
|
743
743
|
height: 0
|
744
744
|
};
|
745
745
|
}
|
746
|
-
je(n, i, { enableHardwareAcceleration: !1 }, t.transformTemplate),
|
746
|
+
je(n, i, { enableHardwareAcceleration: !1 }, t.transformTemplate), yn(e, n);
|
747
747
|
}
|
748
748
|
})
|
749
|
-
},
|
750
|
-
useVisualState:
|
749
|
+
}, Va = {
|
750
|
+
useVisualState: Vn({
|
751
751
|
scrapeMotionValuesFromProps: Be,
|
752
752
|
createRenderState: Fe
|
753
753
|
})
|
754
754
|
};
|
755
|
-
function
|
756
|
-
var s = e.forwardMotionProps, o = s === void 0 ? !1 : s, a = Ie(t) ?
|
757
|
-
return m(m({}, a), { preloadedFeatures: r, useRender:
|
755
|
+
function Ta(t, e, r, n, i) {
|
756
|
+
var s = e.forwardMotionProps, o = s === void 0 ? !1 : s, a = Ie(t) ? Pa : Va;
|
757
|
+
return m(m({}, a), { preloadedFeatures: r, useRender: ha(o), createVisualElement: n, projectionNodeConstructor: i, Component: t });
|
758
758
|
}
|
759
759
|
var L;
|
760
760
|
(function(t) {
|
@@ -772,7 +772,7 @@ function Ve(t, e, r, n) {
|
|
772
772
|
return ie(i, e, r, n);
|
773
773
|
}, [t, e, r, n]);
|
774
774
|
}
|
775
|
-
function
|
775
|
+
function Sa(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,29 +782,29 @@ function Ta(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 Tn(t) {
|
786
786
|
return typeof PointerEvent < "u" && t instanceof PointerEvent ? t.pointerType === "mouse" : t instanceof MouseEvent;
|
787
787
|
}
|
788
|
-
function
|
788
|
+
function Sn(t) {
|
789
789
|
var e = !!t.touches;
|
790
790
|
return e;
|
791
791
|
}
|
792
|
-
function
|
792
|
+
function xa(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 Ca = { pageX: 0, pageY: 0 };
|
799
|
+
function Aa(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 || Ca;
|
802
802
|
return {
|
803
803
|
x: n[e + "X"],
|
804
804
|
y: n[e + "Y"]
|
805
805
|
};
|
806
806
|
}
|
807
|
-
function
|
807
|
+
function wa(t, e) {
|
808
808
|
return e === void 0 && (e = "page"), {
|
809
809
|
x: t[e + "X"],
|
810
810
|
y: t[e + "Y"]
|
@@ -812,22 +812,22 @@ function Aa(t, e) {
|
|
812
812
|
}
|
813
813
|
function _e(t, e) {
|
814
814
|
return e === void 0 && (e = "page"), {
|
815
|
-
point:
|
815
|
+
point: Sn(t) ? Aa(t, e) : wa(t, e)
|
816
816
|
};
|
817
817
|
}
|
818
|
-
var
|
818
|
+
var xn = function(t, e) {
|
819
819
|
e === void 0 && (e = !1);
|
820
820
|
var r = function(n) {
|
821
821
|
return t(n, _e(n));
|
822
822
|
};
|
823
|
-
return e ?
|
824
|
-
}, wa = function() {
|
825
|
-
return Tt && window.onpointerdown === null;
|
823
|
+
return e ? xa(r) : r;
|
826
824
|
}, Ea = function() {
|
827
|
-
return
|
825
|
+
return xt && window.onpointerdown === null;
|
828
826
|
}, La = function() {
|
829
|
-
return
|
830
|
-
}, Ra = {
|
827
|
+
return xt && window.ontouchstart === null;
|
828
|
+
}, Ra = function() {
|
829
|
+
return xt && window.onmousedown === null;
|
830
|
+
}, Da = {
|
831
831
|
pointerdown: "mousedown",
|
832
832
|
pointermove: "mousemove",
|
833
833
|
pointerup: "mouseup",
|
@@ -836,22 +836,22 @@ var Sn = function(t, e) {
|
|
836
836
|
pointerout: "mouseout",
|
837
837
|
pointerenter: "mouseenter",
|
838
838
|
pointerleave: "mouseleave"
|
839
|
-
},
|
839
|
+
}, Ma = {
|
840
840
|
pointerdown: "touchstart",
|
841
841
|
pointermove: "touchmove",
|
842
842
|
pointerup: "touchend",
|
843
843
|
pointercancel: "touchcancel"
|
844
844
|
};
|
845
|
-
function
|
846
|
-
return
|
845
|
+
function Cn(t) {
|
846
|
+
return Ea() ? t : La() ? Ma[t] : Ra() ? Da[t] : t;
|
847
847
|
}
|
848
848
|
function bt(t, e, r, n) {
|
849
|
-
return ie(t,
|
849
|
+
return ie(t, Cn(e), xn(r, e === "pointerdown"), n);
|
850
850
|
}
|
851
|
-
function
|
852
|
-
return Ve(t,
|
851
|
+
function Jt(t, e, r, n) {
|
852
|
+
return Ve(t, Cn(e), r && xn(r, e === "pointerdown"), n);
|
853
853
|
}
|
854
|
-
function
|
854
|
+
function An(t) {
|
855
855
|
var e = null;
|
856
856
|
return function() {
|
857
857
|
var r = function() {
|
@@ -860,8 +860,8 @@ function Cn(t) {
|
|
860
860
|
return e === null ? (e = t, r) : !1;
|
861
861
|
};
|
862
862
|
}
|
863
|
-
var tr =
|
864
|
-
function
|
863
|
+
var tr = An("dragHorizontal"), er = An("dragVertical");
|
864
|
+
function wn(t) {
|
865
865
|
var e = !1;
|
866
866
|
if (t === "y")
|
867
867
|
e = er();
|
@@ -875,22 +875,22 @@ function An(t) {
|
|
875
875
|
}
|
876
876
|
return e;
|
877
877
|
}
|
878
|
-
function
|
879
|
-
var t =
|
878
|
+
function En() {
|
879
|
+
var t = wn(!0);
|
880
880
|
return t ? (t(), !1) : !0;
|
881
881
|
}
|
882
882
|
function rr(t, e, r) {
|
883
883
|
return function(n, i) {
|
884
884
|
var s;
|
885
|
-
!
|
885
|
+
!Tn(n) || En() || ((s = t.animationState) === null || s === void 0 || s.setActive(L.Hover, e), r?.(n, i));
|
886
886
|
};
|
887
887
|
}
|
888
|
-
function
|
888
|
+
function Ia(t) {
|
889
889
|
var e = t.onHoverStart, r = t.onHoverEnd, n = t.whileHover, i = t.visualElement;
|
890
|
-
|
890
|
+
Jt(i, "pointerenter", e || n ? rr(i, !0, e) : void 0, { passive: !e }), Jt(i, "pointerleave", r || n ? rr(i, !1, r) : void 0, { passive: !r });
|
891
891
|
}
|
892
|
-
var
|
893
|
-
return e ? t === e ? !0 :
|
892
|
+
var Ln = function(t, e) {
|
893
|
+
return e ? t === e ? !0 : Ln(t, e.parentElement) : !1;
|
894
894
|
};
|
895
895
|
function Ne(t) {
|
896
896
|
return H(function() {
|
@@ -899,8 +899,8 @@ function Ne(t) {
|
|
899
899
|
};
|
900
900
|
}, []);
|
901
901
|
}
|
902
|
-
function
|
903
|
-
var e = t.onTap, r = t.onTapStart, n = t.onTapCancel, i = t.whileTap, s = t.visualElement, o = e || r || n || i, a =
|
902
|
+
function Oa(t) {
|
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
|
};
|
906
906
|
function f() {
|
@@ -909,10 +909,10 @@ function Ia(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), !En();
|
913
913
|
}
|
914
914
|
function c(h, g) {
|
915
|
-
v() && (
|
915
|
+
v() && (Ln(s.getInstance(), h.target) ? e?.(h, g) : n?.(h, g));
|
916
916
|
}
|
917
917
|
function d(h, g) {
|
918
918
|
v() && n?.(h, g);
|
@@ -921,51 +921,51 @@ function Ia(t) {
|
|
921
921
|
var b;
|
922
922
|
f(), !a.current && (a.current = !0, u.current = Wr(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
|
-
|
924
|
+
Jt(s, "pointerdown", o ? p : void 0, l), Ne(f);
|
925
925
|
}
|
926
926
|
var nr = /* @__PURE__ */ new Set();
|
927
|
-
function
|
927
|
+
function Rn(t, e, r) {
|
928
928
|
t || nr.has(e) || (console.warn(e), nr.add(e));
|
929
929
|
}
|
930
|
-
var Te = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(),
|
930
|
+
var Te = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), Fa = function(t) {
|
931
931
|
var e;
|
932
932
|
(e = Te.get(t.target)) === null || e === void 0 || e(t);
|
933
|
-
},
|
934
|
-
t.forEach(
|
933
|
+
}, ja = function(t) {
|
934
|
+
t.forEach(Fa);
|
935
935
|
};
|
936
|
-
function
|
937
|
-
var e = t.root, r =
|
936
|
+
function Ba(t) {
|
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(ja, m({ root: e }, r))), i[s];
|
941
941
|
}
|
942
|
-
function
|
943
|
-
var n =
|
942
|
+
function Ua(t, e, r) {
|
943
|
+
var n = Ba(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
|
949
|
-
var e = t.visualElement, r = t.whileInView, n = t.onViewportEnter, i = t.onViewportLeave, s = t.viewport, o = s === void 0 ? {} : s, a =
|
948
|
+
function _a(t) {
|
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" ? za : Ha;
|
955
955
|
l(u, a.current, e, o);
|
956
956
|
}
|
957
|
-
var
|
957
|
+
var Na = {
|
958
958
|
some: 0,
|
959
959
|
all: 1
|
960
960
|
};
|
961
|
-
function
|
961
|
+
function Ha(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
|
H(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 : Na[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 Na(t, e, r, n) {
|
|
974
974
|
h?.(v);
|
975
975
|
}
|
976
976
|
};
|
977
|
-
return
|
977
|
+
return Ua(r.getInstance(), l, f);
|
978
978
|
}
|
979
979
|
}, [t, i, s, a]);
|
980
980
|
}
|
981
|
-
function
|
981
|
+
function za(t, e, r, n) {
|
982
982
|
var i = n.fallback, s = i === void 0 ? !0 : i;
|
983
983
|
H(function() {
|
984
|
-
!t || !s || (De !== "production" &&
|
984
|
+
!t || !s || (De !== "production" && Rn(!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,21 +993,21 @@ 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 dt(
|
996
|
+
}, Ka = {
|
997
|
+
inView: ut(_a),
|
998
|
+
tap: ut(Oa),
|
999
|
+
focus: ut(Sa),
|
1000
|
+
hover: ut(Ia)
|
1001
|
+
}, Ga = 0, Ya = function() {
|
1002
|
+
return Ga++;
|
1003
|
+
}, Dn = function() {
|
1004
|
+
return dt(Ya);
|
1005
1005
|
};
|
1006
|
-
function
|
1007
|
-
var t = F(
|
1006
|
+
function Mn() {
|
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 =
|
1010
|
+
var e = t.isPresent, r = t.onExitComplete, n = t.register, i = Dn();
|
1011
1011
|
H(function() {
|
1012
1012
|
return n(i);
|
1013
1013
|
}, []);
|
@@ -1016,7 +1016,7 @@ function Dn() {
|
|
1016
1016
|
};
|
1017
1017
|
return !e && r ? [!1, s] : [!0];
|
1018
1018
|
}
|
1019
|
-
function
|
1019
|
+
function In(t, e) {
|
1020
1020
|
if (!Array.isArray(e))
|
1021
1021
|
return !1;
|
1022
1022
|
var r = e.length;
|
@@ -1027,32 +1027,32 @@ function Mn(t, e) {
|
|
1027
1027
|
return !1;
|
1028
1028
|
return !0;
|
1029
1029
|
}
|
1030
|
-
var
|
1030
|
+
var Qt = function(t) {
|
1031
1031
|
return t * 1e3;
|
1032
1032
|
}, ir = {
|
1033
1033
|
linear: Zr,
|
1034
|
-
easeIn:
|
1035
|
-
easeInOut:
|
1036
|
-
easeOut:
|
1037
|
-
circIn:
|
1038
|
-
circInOut:
|
1034
|
+
easeIn: ii,
|
1035
|
+
easeInOut: ai,
|
1036
|
+
easeOut: oi,
|
1037
|
+
circIn: si,
|
1038
|
+
circInOut: ui,
|
1039
1039
|
circOut: $r,
|
1040
|
-
backIn:
|
1041
|
-
backInOut:
|
1042
|
-
backOut:
|
1043
|
-
anticipate:
|
1044
|
-
bounceIn:
|
1045
|
-
bounceInOut:
|
1046
|
-
bounceOut:
|
1040
|
+
backIn: li,
|
1041
|
+
backInOut: fi,
|
1042
|
+
backOut: ci,
|
1043
|
+
anticipate: vi,
|
1044
|
+
bounceIn: di,
|
1045
|
+
bounceInOut: pi,
|
1046
|
+
bounceOut: hi
|
1047
1047
|
}, ar = function(t) {
|
1048
1048
|
if (Array.isArray(t)) {
|
1049
1049
|
ct(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
|
1050
1050
|
var e = M(t, 4), r = e[0], n = e[1], i = e[2], s = e[3];
|
1051
|
-
return
|
1051
|
+
return ni(r, n, i, s);
|
1052
1052
|
} else if (typeof t == "string")
|
1053
1053
|
return ct(ir[t] !== void 0, "Invalid easing type '".concat(t, "'")), ir[t];
|
1054
1054
|
return t;
|
1055
|
-
},
|
1055
|
+
}, ka = function(t) {
|
1056
1056
|
return Array.isArray(t) && typeof t[0] != "number";
|
1057
1057
|
}, or = 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
|
@@ -1065,7 +1065,7 @@ var Jt = function(t) {
|
|
1065
1065
|
damping: 25,
|
1066
1066
|
restSpeed: 10
|
1067
1067
|
};
|
1068
|
-
},
|
1068
|
+
}, Yt = function(t) {
|
1069
1069
|
return {
|
1070
1070
|
type: "spring",
|
1071
1071
|
stiffness: 550,
|
@@ -1078,7 +1078,7 @@ var Jt = function(t) {
|
|
1078
1078
|
ease: "linear",
|
1079
1079
|
duration: 0.3
|
1080
1080
|
};
|
1081
|
-
},
|
1081
|
+
}, Xa = function(t) {
|
1082
1082
|
return {
|
1083
1083
|
type: "keyframes",
|
1084
1084
|
duration: 0.8,
|
@@ -1092,17 +1092,17 @@ var Jt = function(t) {
|
|
1092
1092
|
rotateX: lt,
|
1093
1093
|
rotateY: lt,
|
1094
1094
|
rotateZ: lt,
|
1095
|
-
scaleX:
|
1096
|
-
scaleY:
|
1097
|
-
scale:
|
1095
|
+
scaleX: Yt,
|
1096
|
+
scaleY: Yt,
|
1097
|
+
scale: Yt,
|
1098
1098
|
opacity: le,
|
1099
1099
|
backgroundColor: le,
|
1100
1100
|
color: le,
|
1101
|
-
default:
|
1102
|
-
},
|
1101
|
+
default: Yt
|
1102
|
+
}, Wa = function(t, e) {
|
1103
1103
|
var r;
|
1104
|
-
return Ut(e) ? r =
|
1105
|
-
},
|
1104
|
+
return Ut(e) ? r = Xa : r = sr[t] || sr.default, m({ to: e }, r(e));
|
1105
|
+
}, Za = m(m({}, cn), {
|
1106
1106
|
// Color props
|
1107
1107
|
color: k,
|
1108
1108
|
backgroundColor: k,
|
@@ -1118,34 +1118,34 @@ var Jt = function(t) {
|
|
1118
1118
|
filter: he,
|
1119
1119
|
WebkitFilter: he
|
1120
1120
|
}), He = function(t) {
|
1121
|
-
return
|
1121
|
+
return Za[t];
|
1122
1122
|
};
|
1123
1123
|
function ze(t, e) {
|
1124
1124
|
var r, n = He(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 $a(t) {
|
1128
1128
|
t.when, t.delay, t.delayChildren, t.staggerChildren, t.staggerDirection, t.repeat, t.repeatType, t.repeatDelay, t.from;
|
1129
|
-
var e =
|
1129
|
+
var e = Q(t, ["when", "delay", "delayChildren", "staggerChildren", "staggerDirection", "repeat", "repeatType", "repeatDelay", "from"]);
|
1130
1130
|
return !!Object.keys(e).length;
|
1131
1131
|
}
|
1132
1132
|
var ur = !1;
|
1133
|
-
function
|
1134
|
-
var e = t.ease, r = t.times, n = t.yoyo, i = t.flip, s = t.loop, o =
|
1135
|
-
return r && (a.offset = r), o.duration && (a.duration =
|
1133
|
+
function qa(t) {
|
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 = ka(e) ? e.map(ar) : ar(e)), o.type === "tween" && (a.type = "keyframes"), (n || s || i) && (qr(!ur, "yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."), ur = !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
|
1137
|
+
function Ja(t, e) {
|
1138
1138
|
var r, n, i = Ke(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
|
1141
|
+
function Qa(t) {
|
1142
1142
|
return Array.isArray(t.to) && t.to[0] === null && (t.to = W([], M(t.to), !1), t.to[0] = t.from), t;
|
1143
1143
|
}
|
1144
|
-
function
|
1144
|
+
function to(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)), Qa(e), $a(t) || (t = m(m({}, t), Wa(r, e.to))), m(m({}, e), qa(t));
|
1147
1147
|
}
|
1148
|
-
function
|
1148
|
+
function eo(t, e, r, n, i) {
|
1149
1149
|
var s, o = Ke(n, t), a = (s = o.from) !== null && s !== void 0 ? s : e.get(), u = or(t, r);
|
1150
1150
|
a === "none" && u && typeof r == "string" ? a = ze(t, r) : lr(a) && typeof r == "string" ? a = fr(r) : !Array.isArray(r) && lr(r) && typeof a == "string" && (r = fr(a));
|
1151
1151
|
var l = or(t, a);
|
@@ -1160,7 +1160,7 @@ function to(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" ? mi(m(m({}, c), o)) : Jr(m(m({}, to(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,7 +1169,7 @@ function to(t, e, r, n, i) {
|
|
1169
1169
|
} }));
|
1170
1170
|
}
|
1171
1171
|
function v() {
|
1172
|
-
var c, d, p =
|
1172
|
+
var c, d, p = Pn(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
|
}
|
@@ -1186,17 +1186,17 @@ function Ke(t, e) {
|
|
1186
1186
|
}
|
1187
1187
|
function Ge(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 = eo(t, e, r, n, i), u = Ja(n, t), l = function() {
|
1190
1190
|
return o = a();
|
1191
1191
|
};
|
1192
|
-
return u ? s = window.setTimeout(l,
|
1192
|
+
return u ? s = window.setTimeout(l, Qt(u)) : l(), function() {
|
1193
1193
|
clearTimeout(s), o?.stop();
|
1194
1194
|
};
|
1195
1195
|
});
|
1196
1196
|
}
|
1197
|
-
var
|
1197
|
+
var ro = function(t) {
|
1198
1198
|
return /^\-?\d*\.?\d+$/.test(t);
|
1199
|
-
},
|
1199
|
+
}, no = function(t) {
|
1200
1200
|
return /^0[^.\s]+$/.test(t);
|
1201
1201
|
};
|
1202
1202
|
function Ye(t, e) {
|
@@ -1206,7 +1206,7 @@ function ke(t, e) {
|
|
1206
1206
|
var r = t.indexOf(e);
|
1207
1207
|
r > -1 && t.splice(r, 1);
|
1208
1208
|
}
|
1209
|
-
var
|
1209
|
+
var Rt = (
|
1210
1210
|
/** @class */
|
1211
1211
|
function() {
|
1212
1212
|
function t() {
|
@@ -1233,14 +1233,14 @@ var Et = (
|
|
1233
1233
|
this.subscriptions.length = 0;
|
1234
1234
|
}, t;
|
1235
1235
|
}()
|
1236
|
-
),
|
1236
|
+
), io = function(t) {
|
1237
1237
|
return !isNaN(parseFloat(t));
|
1238
|
-
},
|
1238
|
+
}, ao = (
|
1239
1239
|
/** @class */
|
1240
1240
|
function() {
|
1241
1241
|
function t(e) {
|
1242
1242
|
var r = this;
|
1243
|
-
this.version = "6.5.1", this.timeDelta = 0, this.lastUpdated = 0, this.updateSubscribers = new
|
1243
|
+
this.version = "6.5.1", this.timeDelta = 0, this.lastUpdated = 0, this.updateSubscribers = new Rt(), this.velocityUpdateSubscribers = new Rt(), this.renderSubscribers = new Rt(), this.canTrackVelocity = !1, this.updateAndNotify = function(n, i) {
|
1244
1244
|
i === void 0 && (i = !0), r.prev = r.current, r.current = n;
|
1245
1245
|
var s = me(), o = s.delta, a = s.timestamp;
|
1246
1246
|
r.lastUpdated !== a && (r.timeDelta = o, r.lastUpdated = a, Z.postRender(r.scheduleVelocityCheck)), r.prev !== r.current && r.updateSubscribers.notify(r.current), r.velocityUpdateSubscribers.getSize() && r.velocityUpdateSubscribers.notify(r.getVelocity()), i && r.renderSubscribers.notify(r.current);
|
@@ -1249,7 +1249,7 @@ var Et = (
|
|
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 = io(this.current);
|
1253
1253
|
}
|
1254
1254
|
return t.prototype.onChange = function(e) {
|
1255
1255
|
return this.updateSubscribers.add(e);
|
@@ -1268,7 +1268,7 @@ var Et = (
|
|
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
|
+
gi(parseFloat(this.current) - parseFloat(this.prev), this.timeDelta)
|
1272
1272
|
) : 0;
|
1273
1273
|
}, t.prototype.start = function(e) {
|
1274
1274
|
var r = this;
|
@@ -1289,60 +1289,60 @@ var Et = (
|
|
1289
1289
|
}()
|
1290
1290
|
);
|
1291
1291
|
function vt(t) {
|
1292
|
-
return new
|
1292
|
+
return new ao(t);
|
1293
1293
|
}
|
1294
|
-
var
|
1294
|
+
var On = function(t) {
|
1295
1295
|
return function(e) {
|
1296
1296
|
return e.test(t);
|
1297
1297
|
};
|
1298
|
-
},
|
1298
|
+
}, oo = {
|
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
|
+
}, Fn = [Ee, T, Ot, at, yi, bi, oo], wt = function(t) {
|
1306
|
+
return Fn.find(On(t));
|
1307
|
+
}, so = W(W([], M(Fn), !1), [k, Pt], !1), uo = function(t) {
|
1308
|
+
return so.find(On(t));
|
1309
1309
|
};
|
1310
|
-
function
|
1310
|
+
function lo(t, e, r) {
|
1311
1311
|
t.hasValue(e) ? t.getValue(e).set(r) : t.addValue(e, vt(r));
|
1312
1312
|
}
|
1313
|
-
function
|
1313
|
+
function fo(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
|
-
var o =
|
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 = Pn(o[a]);
|
1320
|
+
lo(t, a, u);
|
1321
1321
|
}
|
1322
1322
|
}
|
1323
|
-
function
|
1323
|
+
function co(t, e, r) {
|
1324
1324
|
var n, i, s, o, a = Object.keys(e).filter(function(d) {
|
1325
1325
|
return !t.hasValue(d);
|
1326
1326
|
}), u = a.length;
|
1327
1327
|
if (u)
|
1328
1328
|
for (var l = 0; l < u; l++) {
|
1329
1329
|
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" && (
|
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" && (ro(c) || no(c)) ? c = parseFloat(c) : !uo(c) && Pt.test(v) && (c = ze(f, v)), t.addValue(f, vt(c)), (s = (o = r)[f]) !== null && s !== void 0 || (o[f] = c), t.setBaseTarget(f, c));
|
1331
1331
|
}
|
1332
1332
|
}
|
1333
|
-
function
|
1333
|
+
function vo(t, e) {
|
1334
1334
|
if (e) {
|
1335
1335
|
var r = e[t] || e.default || e;
|
1336
1336
|
return r.from;
|
1337
1337
|
}
|
1338
1338
|
}
|
1339
|
-
function
|
1339
|
+
function po(t, e, r) {
|
1340
1340
|
var n, i, s = {};
|
1341
1341
|
for (var o in t)
|
1342
|
-
s[o] = (n =
|
1342
|
+
s[o] = (n = vo(o, e)) !== null && n !== void 0 ? n : (i = r.getValue(o)) === null || i === void 0 ? void 0 : i.get();
|
1343
1343
|
return s;
|
1344
1344
|
}
|
1345
|
-
function
|
1345
|
+
function ho(t, e, r) {
|
1346
1346
|
r === void 0 && (r = {}), t.notifyAnimationStart(e);
|
1347
1347
|
var n;
|
1348
1348
|
if (Array.isArray(e)) {
|
@@ -1354,7 +1354,7 @@ function po(t, e, r) {
|
|
1354
1354
|
n = Se(t, e, r);
|
1355
1355
|
else {
|
1356
1356
|
var s = typeof e == "function" ? re(t, e, r.custom) : e;
|
1357
|
-
n =
|
1357
|
+
n = jn(t, s, r);
|
1358
1358
|
}
|
1359
1359
|
return n.then(function() {
|
1360
1360
|
return t.notifyAnimationComplete(e);
|
@@ -1366,13 +1366,13 @@ function Se(t, e, r) {
|
|
1366
1366
|
var i = re(t, e, r.custom), s = (i || {}).transition, o = s === void 0 ? t.getDefaultTransition() || {} : s;
|
1367
1367
|
r.transitionOverride && (o = r.transitionOverride);
|
1368
1368
|
var a = i ? function() {
|
1369
|
-
return
|
1369
|
+
return jn(t, i, r);
|
1370
1370
|
} : function() {
|
1371
1371
|
return Promise.resolve();
|
1372
1372
|
}, u = !((n = t.variantChildren) === null || n === void 0) && n.size ? function(d) {
|
1373
1373
|
d === void 0 && (d = 0);
|
1374
1374
|
var p = o.delayChildren, h = p === void 0 ? 0 : p, g = o.staggerChildren, b = o.staggerDirection;
|
1375
|
-
return
|
1375
|
+
return mo(t, e, h + d, g, b, r);
|
1376
1376
|
} : function() {
|
1377
1377
|
return Promise.resolve();
|
1378
1378
|
}, l = o.when;
|
@@ -1382,40 +1382,40 @@ function Se(t, e, r) {
|
|
1382
1382
|
} else
|
1383
1383
|
return Promise.all([a(), u(r.delay)]);
|
1384
1384
|
}
|
1385
|
-
function
|
1386
|
-
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 =
|
1385
|
+
function jn(t, e, r) {
|
1386
|
+
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
1387
|
a && (v = a);
|
1388
1388
|
var p = [], h = u && ((n = t.animationState) === null || n === void 0 ? void 0 : n.getState()[u]);
|
1389
1389
|
for (var g in d) {
|
1390
1390
|
var b = t.getValue(g), P = d[g];
|
1391
|
-
if (!(!b || P === void 0 || h &&
|
1391
|
+
if (!(!b || P === void 0 || h && yo(h, g))) {
|
1392
1392
|
var S = m({ delay: o }, v);
|
1393
|
-
t.shouldReduceMotion &&
|
1393
|
+
t.shouldReduceMotion && Ht(g) && (S = m(m({}, S), { type: !1, delay: 0 }));
|
1394
1394
|
var C = Ge(g, b, P, S);
|
1395
1395
|
p.push(C);
|
1396
1396
|
}
|
1397
1397
|
}
|
1398
1398
|
return Promise.all(p).then(function() {
|
1399
|
-
c &&
|
1399
|
+
c && fo(t, c);
|
1400
1400
|
});
|
1401
1401
|
}
|
1402
|
-
function
|
1402
|
+
function mo(t, e, r, n, i, s) {
|
1403
1403
|
r === void 0 && (r = 0), n === void 0 && (n = 0), i === void 0 && (i = 1);
|
1404
1404
|
var o = [], a = (t.variantChildren.size - 1) * n, u = i === 1 ? function(l) {
|
1405
1405
|
return l === void 0 && (l = 0), l * n;
|
1406
1406
|
} : function(l) {
|
1407
1407
|
return l === void 0 && (l = 0), a - l * n;
|
1408
1408
|
};
|
1409
|
-
return Array.from(t.variantChildren).sort(
|
1409
|
+
return Array.from(t.variantChildren).sort(go).forEach(function(l, f) {
|
1410
1410
|
o.push(Se(l, e, m(m({}, s), { delay: r + u(f) })).then(function() {
|
1411
1411
|
return l.notifyAnimationComplete(e);
|
1412
1412
|
}));
|
1413
1413
|
}), Promise.all(o);
|
1414
1414
|
}
|
1415
|
-
function
|
1415
|
+
function go(t, e) {
|
1416
1416
|
return t.sortNodePosition(e);
|
1417
1417
|
}
|
1418
|
-
function
|
1418
|
+
function yo(t, e) {
|
1419
1419
|
var r = t.protectedKeys, n = t.needsAnimating, i = r.hasOwnProperty(e) && n[e] !== !0;
|
1420
1420
|
return n[e] = !1, i;
|
1421
1421
|
}
|
@@ -1427,21 +1427,21 @@ var Xe = [
|
|
1427
1427
|
L.Tap,
|
1428
1428
|
L.Drag,
|
1429
1429
|
L.Exit
|
1430
|
-
],
|
1431
|
-
function
|
1430
|
+
], bo = W([], M(Xe), !1).reverse(), Po = Xe.length;
|
1431
|
+
function Vo(t) {
|
1432
1432
|
return function(e) {
|
1433
1433
|
return Promise.all(e.map(function(r) {
|
1434
1434
|
var n = r.animation, i = r.options;
|
1435
|
-
return
|
1435
|
+
return ho(t, n, i);
|
1436
1436
|
}));
|
1437
1437
|
};
|
1438
1438
|
}
|
1439
|
-
function
|
1440
|
-
var e =
|
1439
|
+
function To(t) {
|
1440
|
+
var e = Vo(t), r = xo(), n = {}, i = !0, s = function(f, v) {
|
1441
1441
|
var c = re(t, v);
|
1442
1442
|
if (c) {
|
1443
1443
|
c.transition;
|
1444
|
-
var d = c.transitionEnd, p =
|
1444
|
+
var d = c.transitionEnd, p = Q(c, ["transition", "transitionEnd"]);
|
1445
1445
|
f = m(m(m({}, f), p), d);
|
1446
1446
|
}
|
1447
1447
|
return f;
|
@@ -1454,7 +1454,7 @@ function Vo(t) {
|
|
1454
1454
|
}
|
1455
1455
|
function u(f, v) {
|
1456
1456
|
for (var c, d = t.getProps(), p = t.getVariantContext(!0) || {}, h = [], g = /* @__PURE__ */ new Set(), b = {}, P = 1 / 0, S = function(R) {
|
1457
|
-
var x =
|
1457
|
+
var x = bo[R], w = r[x], D = (c = d[x]) !== null && c !== void 0 ? c : p[x], z = X(D), B = x === v ? w.isActive : null;
|
1458
1458
|
B === !1 && (P = R);
|
1459
1459
|
var N = D === p[x] && D !== d[x] && z;
|
1460
1460
|
if (N && i && t.manuallyAnimateOnMount && (N = !1), w.protectedKeys = m({}, b), // If it isn't active and hasn't *just* been set as inactive
|
@@ -1462,16 +1462,16 @@ function Vo(t) {
|
|
1462
1462
|
!D && !w.prevProp || // Or if the prop doesn't define an animation
|
1463
1463
|
Ue(D) || typeof D == "boolean")
|
1464
1464
|
return "continue";
|
1465
|
-
var rt =
|
1465
|
+
var rt = So(w.prevProp, D), nt = rt || // If we're making this variant active, we want to always make it active
|
1466
1466
|
x === v && w.isActive && !N && z || // If we removed a higher-priority variant (i is in reverse order)
|
1467
1467
|
R > P && z, it = Array.isArray(D) ? D : [D], K = it.reduce(s, {});
|
1468
1468
|
B === !1 && (K = {});
|
1469
|
-
var
|
1469
|
+
var Ct = w.prevResolvedValues, pt = Ct === void 0 ? {} : Ct, zt = m(m({}, pt), K), ht = function(V) {
|
1470
1470
|
nt = !0, g.delete(V), w.needsAnimating[V] = !0;
|
1471
1471
|
};
|
1472
|
-
for (var _ in
|
1472
|
+
for (var _ in zt) {
|
1473
1473
|
var E = K[_], y = pt[_];
|
1474
|
-
b.hasOwnProperty(_) || (E !== y ? Ut(E) && Ut(y) ? !
|
1474
|
+
b.hasOwnProperty(_) || (E !== y ? Ut(E) && Ut(y) ? !In(E, y) || rt ? ht(_) : w.protectedKeys[_] = !0 : E !== void 0 ? ht(_) : g.add(_) : E !== void 0 && g.has(_) ? ht(_) : w.protectedKeys[_] = !0);
|
1475
1475
|
}
|
1476
1476
|
w.prevProp = D, w.prevResolvedValues = K, w.isActive && (b = m(m({}, b), K)), i && t.blockInitialAnimation && (nt = !1), nt && !N && h.push.apply(h, W([], M(it.map(function(V) {
|
1477
1477
|
return {
|
@@ -1479,7 +1479,7 @@ function Vo(t) {
|
|
1479
1479
|
options: m({ type: x }, f)
|
1480
1480
|
};
|
1481
1481
|
})), !1));
|
1482
|
-
}, C = 0; C <
|
1482
|
+
}, C = 0; C < Po; C++)
|
1483
1483
|
S(C);
|
1484
1484
|
if (n = m({}, b), g.size) {
|
1485
1485
|
var A = {};
|
@@ -1514,8 +1514,8 @@ function Vo(t) {
|
|
1514
1514
|
}
|
1515
1515
|
};
|
1516
1516
|
}
|
1517
|
-
function
|
1518
|
-
return typeof e == "string" ? e !== t :
|
1517
|
+
function So(t, e) {
|
1518
|
+
return typeof e == "string" ? e !== t : nn(e) ? !In(e, t) : !1;
|
1519
1519
|
}
|
1520
1520
|
function ft(t) {
|
1521
1521
|
return t === void 0 && (t = !1), {
|
@@ -1525,19 +1525,19 @@ function ft(t) {
|
|
1525
1525
|
prevResolvedValues: {}
|
1526
1526
|
};
|
1527
1527
|
}
|
1528
|
-
function
|
1528
|
+
function xo() {
|
1529
1529
|
var t;
|
1530
1530
|
return t = {}, t[L.Animate] = ft(!0), t[L.InView] = ft(), t[L.Hover] = ft(), t[L.Tap] = ft(), t[L.Drag] = ft(), t[L.Focus] = ft(), t[L.Exit] = ft(), t;
|
1531
1531
|
}
|
1532
|
-
var
|
1532
|
+
var Co = {
|
1533
1533
|
animation: ut(function(t) {
|
1534
1534
|
var e = t.visualElement, r = t.animate;
|
1535
|
-
e.animationState || (e.animationState =
|
1535
|
+
e.animationState || (e.animationState = To(e)), Ue(r) && H(function() {
|
1536
1536
|
return r.subscribe(e);
|
1537
1537
|
}, [r]);
|
1538
1538
|
}),
|
1539
1539
|
exit: ut(function(t) {
|
1540
|
-
var e = t.custom, r = t.visualElement, n = M(
|
1540
|
+
var e = t.custom, r = t.visualElement, n = M(Mn(), 2), i = n[0], s = n[1], o = F(Nt);
|
1541
1541
|
H(function() {
|
1542
1542
|
var a, u;
|
1543
1543
|
r.isPresent = i;
|
@@ -1545,14 +1545,14 @@ var xo = {
|
|
1545
1545
|
!i && l?.then(s);
|
1546
1546
|
}, [i]);
|
1547
1547
|
})
|
1548
|
-
},
|
1548
|
+
}, Bn = (
|
1549
1549
|
/** @class */
|
1550
1550
|
function() {
|
1551
1551
|
function t(e, r, n) {
|
1552
1552
|
var i = this, s = n === void 0 ? {} : n, o = s.transformPagePoint;
|
1553
1553
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.updatePoint = function() {
|
1554
1554
|
if (i.lastMoveEvent && i.lastMoveEventInfo) {
|
1555
|
-
var c = ce(i.lastMoveEventInfo, i.history), d = i.startEvent !== null, p =
|
1555
|
+
var c = ce(i.lastMoveEventInfo, i.history), d = i.startEvent !== null, p = Qr(c.offset, { x: 0, y: 0 }) >= 3;
|
1556
1556
|
if (!(!d && !p)) {
|
1557
1557
|
var h = c.point, g = me().timestamp;
|
1558
1558
|
i.history.push(m(m({}, h), { timestamp: g }));
|
@@ -1561,7 +1561,7 @@ var xo = {
|
|
1561
1561
|
}
|
1562
1562
|
}
|
1563
1563
|
}, this.handlePointerMove = function(c, d) {
|
1564
|
-
if (i.lastMoveEvent = c, i.lastMoveEventInfo = fe(d, i.transformPagePoint),
|
1564
|
+
if (i.lastMoveEvent = c, i.lastMoveEventInfo = fe(d, i.transformPagePoint), Tn(c) && c.buttons === 0) {
|
1565
1565
|
i.handlePointerUp(c, d);
|
1566
1566
|
return;
|
1567
1567
|
}
|
@@ -1570,7 +1570,7 @@ var xo = {
|
|
1570
1570
|
i.end();
|
1571
1571
|
var p = i.handlers, h = p.onEnd, g = p.onSessionEnd, b = ce(fe(d, i.transformPagePoint), i.history);
|
1572
1572
|
i.startEvent && h && h(c, b), g && g(c, b);
|
1573
|
-
}, !(
|
1573
|
+
}, !(Sn(e) && e.touches.length > 1)) {
|
1574
1574
|
this.handlers = r, this.transformPagePoint = o;
|
1575
1575
|
var a = _e(e), u = fe(a, this.transformPagePoint), l = u.point, f = me().timestamp;
|
1576
1576
|
this.history = [m(m({}, l), { timestamp: f })];
|
@@ -1581,7 +1581,7 @@ var xo = {
|
|
1581
1581
|
return t.prototype.updateHandlers = function(e) {
|
1582
1582
|
this.handlers = e;
|
1583
1583
|
}, t.prototype.end = function() {
|
1584
|
-
this.removeListeners && this.removeListeners(),
|
1584
|
+
this.removeListeners && this.removeListeners(), Ft.update(this.updatePoint);
|
1585
1585
|
}, t;
|
1586
1586
|
}()
|
1587
1587
|
);
|
@@ -1595,21 +1595,21 @@ function ce(t, e) {
|
|
1595
1595
|
var r = t.point;
|
1596
1596
|
return {
|
1597
1597
|
point: r,
|
1598
|
-
delta: cr(r,
|
1599
|
-
offset: cr(r,
|
1600
|
-
velocity:
|
1598
|
+
delta: cr(r, Un(e)),
|
1599
|
+
offset: cr(r, Ao(e)),
|
1600
|
+
velocity: wo(e, 0.1)
|
1601
1601
|
};
|
1602
1602
|
}
|
1603
|
-
function
|
1603
|
+
function Ao(t) {
|
1604
1604
|
return t[0];
|
1605
1605
|
}
|
1606
|
-
function
|
1606
|
+
function Un(t) {
|
1607
1607
|
return t[t.length - 1];
|
1608
1608
|
}
|
1609
|
-
function
|
1609
|
+
function wo(t, e) {
|
1610
1610
|
if (t.length < 2)
|
1611
1611
|
return { x: 0, y: 0 };
|
1612
|
-
for (var r = t.length - 1, n = null, i =
|
1612
|
+
for (var r = t.length - 1, n = null, i = Un(t); r >= 0 && (n = t[r], !(i.timestamp - n.timestamp > Qt(e))); )
|
1613
1613
|
r--;
|
1614
1614
|
if (!n)
|
1615
1615
|
return { x: 0, y: 0 };
|
@@ -1626,27 +1626,27 @@ function et(t) {
|
|
1626
1626
|
return t.max - t.min;
|
1627
1627
|
}
|
1628
1628
|
function vr(t, e, r) {
|
1629
|
-
return e === void 0 && (e = 0), r === void 0 && (r = 0.01),
|
1629
|
+
return e === void 0 && (e = 0), r === void 0 && (r = 0.01), Qr(t, e) < r;
|
1630
1630
|
}
|
1631
1631
|
function dr(t, e, r, n) {
|
1632
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), (vr(t.scale, 1, 1e-4) || isNaN(t.scale)) && (t.scale = 1), t.translate = O(r.min, r.max, t.origin) - t.originPoint, (vr(t.translate) || isNaN(t.translate)) && (t.translate = 0);
|
1633
1633
|
}
|
1634
|
-
function
|
1634
|
+
function Dt(t, e, r, n) {
|
1635
1635
|
dr(t.x, e.x, r.x, n?.originX), dr(t.y, e.y, r.y, n?.originY);
|
1636
1636
|
}
|
1637
1637
|
function pr(t, e, r) {
|
1638
1638
|
t.min = r.min + e.min, t.max = t.min + et(e);
|
1639
1639
|
}
|
1640
|
-
function
|
1640
|
+
function Eo(t, e, r) {
|
1641
1641
|
pr(t.x, e.x, r.x), pr(t.y, e.y, r.y);
|
1642
1642
|
}
|
1643
1643
|
function hr(t, e, r) {
|
1644
1644
|
t.min = e.min - r.min, t.max = t.min + et(e);
|
1645
1645
|
}
|
1646
|
-
function
|
1646
|
+
function Mt(t, e, r) {
|
1647
1647
|
hr(t.x, e.x, r.x), hr(t.y, e.y, r.y);
|
1648
1648
|
}
|
1649
|
-
function
|
1649
|
+
function Lo(t, e, r) {
|
1650
1650
|
var n = e.min, i = e.max;
|
1651
1651
|
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
1652
|
}
|
@@ -1656,7 +1656,7 @@ function mr(t, e, r) {
|
|
1656
1656
|
max: r !== void 0 ? t.max + r - (t.max - t.min) : void 0
|
1657
1657
|
};
|
1658
1658
|
}
|
1659
|
-
function
|
1659
|
+
function Ro(t, e) {
|
1660
1660
|
var r = e.top, n = e.left, i = e.bottom, s = e.right;
|
1661
1661
|
return {
|
1662
1662
|
x: mr(t.x, n, s),
|
@@ -1667,22 +1667,22 @@ function gr(t, e) {
|
|
1667
1667
|
var r, n = e.min - t.min, i = e.max - t.max;
|
1668
1668
|
return e.max - e.min < t.max - t.min && (r = M([i, n], 2), n = r[0], i = r[1]), { min: n, max: i };
|
1669
1669
|
}
|
1670
|
-
function
|
1670
|
+
function Do(t, e) {
|
1671
1671
|
return {
|
1672
1672
|
x: gr(t.x, e.x),
|
1673
1673
|
y: gr(t.y, e.y)
|
1674
1674
|
};
|
1675
1675
|
}
|
1676
|
-
function
|
1676
|
+
function Mo(t, e) {
|
1677
1677
|
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)),
|
1678
|
+
return i > n ? r = ge(e.min, e.max - n, t.min) : n > i && (r = ge(t.min, t.max - i, e.min)), Pi(0, 1, r);
|
1679
1679
|
}
|
1680
|
-
function
|
1680
|
+
function Io(t, e) {
|
1681
1681
|
var r = {};
|
1682
1682
|
return e.min !== void 0 && (r.min = e.min - t.min), e.max !== void 0 && (r.max = e.max - t.min), r;
|
1683
1683
|
}
|
1684
1684
|
var xe = 0.35;
|
1685
|
-
function
|
1685
|
+
function Oo(t) {
|
1686
1686
|
return t === void 0 && (t = xe), t === !1 ? t = 0 : t === !0 && (t = xe), {
|
1687
1687
|
x: yr(t, "left", "right"),
|
1688
1688
|
y: yr(t, "top", "bottom")
|
@@ -1705,7 +1705,7 @@ var Pr = function() {
|
|
1705
1705
|
origin: 0,
|
1706
1706
|
originPoint: 0
|
1707
1707
|
};
|
1708
|
-
},
|
1708
|
+
}, It = function() {
|
1709
1709
|
return {
|
1710
1710
|
x: Pr(),
|
1711
1711
|
y: Pr()
|
@@ -1718,21 +1718,21 @@ var Pr = function() {
|
|
1718
1718
|
y: Vr()
|
1719
1719
|
};
|
1720
1720
|
};
|
1721
|
-
function
|
1721
|
+
function J(t) {
|
1722
1722
|
return [t("x"), t("y")];
|
1723
1723
|
}
|
1724
|
-
function
|
1724
|
+
function _n(t) {
|
1725
1725
|
var e = t.top, r = t.left, n = t.right, i = t.bottom;
|
1726
1726
|
return {
|
1727
1727
|
x: { min: r, max: n },
|
1728
1728
|
y: { min: e, max: i }
|
1729
1729
|
};
|
1730
1730
|
}
|
1731
|
-
function
|
1731
|
+
function Fo(t) {
|
1732
1732
|
var e = t.x, r = t.y;
|
1733
1733
|
return { top: r.min, right: e.max, bottom: r.max, left: e.min };
|
1734
1734
|
}
|
1735
|
-
function
|
1735
|
+
function jo(t, e) {
|
1736
1736
|
if (!e)
|
1737
1737
|
return t;
|
1738
1738
|
var r = e({ x: t.left, y: t.top }), n = e({ x: t.right, y: t.bottom });
|
@@ -1746,38 +1746,38 @@ function Fo(t, e) {
|
|
1746
1746
|
function ve(t) {
|
1747
1747
|
return t === void 0 || t === 1;
|
1748
1748
|
}
|
1749
|
-
function
|
1749
|
+
function Nn(t) {
|
1750
1750
|
var e = t.scale, r = t.scaleX, n = t.scaleY;
|
1751
1751
|
return !ve(e) || !ve(r) || !ve(n);
|
1752
1752
|
}
|
1753
1753
|
function ot(t) {
|
1754
|
-
return
|
1754
|
+
return Nn(t) || Tr(t.x) || Tr(t.y) || t.z || t.rotate || t.rotateX || t.rotateY;
|
1755
1755
|
}
|
1756
1756
|
function Tr(t) {
|
1757
1757
|
return t && t !== "0%";
|
1758
1758
|
}
|
1759
|
-
function
|
1759
|
+
function te(t, e, r) {
|
1760
1760
|
var n = t - r, i = e * n;
|
1761
1761
|
return r + i;
|
1762
1762
|
}
|
1763
1763
|
function Sr(t, e, r, n, i) {
|
1764
|
-
return i !== void 0 && (t =
|
1764
|
+
return i !== void 0 && (t = te(t, i, n)), te(t, r, n) + e;
|
1765
1765
|
}
|
1766
1766
|
function Ce(t, e, r, n, i) {
|
1767
1767
|
e === void 0 && (e = 0), r === void 0 && (r = 1), t.min = Sr(t.min, e, r, n, i), t.max = Sr(t.max, e, r, n, i);
|
1768
1768
|
}
|
1769
|
-
function
|
1769
|
+
function Hn(t, e) {
|
1770
1770
|
var r = e.x, n = e.y;
|
1771
1771
|
Ce(t.x, r.translate, r.scale, r.originPoint), Ce(t.y, n.translate, n.scale, n.originPoint);
|
1772
1772
|
}
|
1773
|
-
function
|
1773
|
+
function Bo(t, e, r, n) {
|
1774
1774
|
var i, s;
|
1775
1775
|
n === void 0 && (n = !1);
|
1776
1776
|
var o = r.length;
|
1777
1777
|
if (o) {
|
1778
1778
|
e.x = e.y = 1;
|
1779
1779
|
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,
|
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, Hn(t, u)), n && ot(a.latestValues) && yt(t, a.latestValues));
|
1781
1781
|
}
|
1782
1782
|
}
|
1783
1783
|
function st(t, e) {
|
@@ -1787,18 +1787,18 @@ function xr(t, e, r) {
|
|
1787
1787
|
var n = M(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);
|
1788
1788
|
Ce(t, e[i], e[s], u, e.scale);
|
1789
1789
|
}
|
1790
|
-
var
|
1790
|
+
var Uo = ["x", "scaleX", "originX"], _o = ["y", "scaleY", "originY"];
|
1791
1791
|
function yt(t, e) {
|
1792
|
-
xr(t.x, e,
|
1792
|
+
xr(t.x, e, Uo), xr(t.y, e, _o);
|
1793
1793
|
}
|
1794
|
-
function
|
1795
|
-
return
|
1794
|
+
function zn(t, e) {
|
1795
|
+
return _n(jo(t.getBoundingClientRect(), e));
|
1796
1796
|
}
|
1797
|
-
function
|
1798
|
-
var n =
|
1797
|
+
function No(t, e, r) {
|
1798
|
+
var n = zn(t, r), i = e.scroll;
|
1799
1799
|
return i && (st(n.x, i.x), st(n.y, i.y)), n;
|
1800
1800
|
}
|
1801
|
-
var
|
1801
|
+
var Ho = /* @__PURE__ */ new WeakMap(), zo = (
|
1802
1802
|
/** @class */
|
1803
1803
|
function() {
|
1804
1804
|
function t(e) {
|
@@ -1811,9 +1811,9 @@ var No = /* @__PURE__ */ new WeakMap(), Ho = (
|
|
1811
1811
|
n.stopAnimation(), o && n.snapToCursor(_e(v, "page").point);
|
1812
1812
|
}, u = function(v, c) {
|
1813
1813
|
var d, p = n.getProps(), h = p.drag, g = p.dragPropagation, b = p.onDragStart;
|
1814
|
-
h && !g && (n.openGlobalLock && n.openGlobalLock(), n.openGlobalLock =
|
1814
|
+
h && !g && (n.openGlobalLock && n.openGlobalLock(), n.openGlobalLock = wn(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
1815
|
var S, C, A = n.getAxisMotionValue(P).get() || 0;
|
1816
|
-
if (
|
1816
|
+
if (Ot.test(A)) {
|
1817
1817
|
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
1818
|
if (I) {
|
1819
1819
|
var R = et(I);
|
@@ -1827,7 +1827,7 @@ var No = /* @__PURE__ */ new WeakMap(), Ho = (
|
|
1827
1827
|
if (!(!p && !n.openGlobalLock)) {
|
1828
1828
|
var P = c.offset;
|
1829
1829
|
if (h && n.currentDirection === null) {
|
1830
|
-
n.currentDirection =
|
1830
|
+
n.currentDirection = Ko(P), n.currentDirection !== null && g?.(n.currentDirection);
|
1831
1831
|
return;
|
1832
1832
|
}
|
1833
1833
|
n.updateAxis("x", c.point, P), n.updateAxis("y", c.point, P), n.visualElement.syncRender(), b?.(v, c);
|
@@ -1835,7 +1835,7 @@ var No = /* @__PURE__ */ new WeakMap(), Ho = (
|
|
1835
1835
|
}, f = function(v, c) {
|
1836
1836
|
return n.stop(v, c);
|
1837
1837
|
};
|
1838
|
-
this.panSession = new
|
1838
|
+
this.panSession = new Bn(e, {
|
1839
1839
|
onSessionStart: a,
|
1840
1840
|
onStart: u,
|
1841
1841
|
onMove: l,
|
@@ -1857,14 +1857,14 @@ var No = /* @__PURE__ */ new WeakMap(), Ho = (
|
|
1857
1857
|
!n && this.openGlobalLock && (this.openGlobalLock(), this.openGlobalLock = null), (r = this.visualElement.animationState) === null || r === void 0 || r.setActive(L.Drag, !1);
|
1858
1858
|
}, t.prototype.updateAxis = function(e, r, n) {
|
1859
1859
|
var i = this.getProps().drag;
|
1860
|
-
if (!(!n || !
|
1860
|
+
if (!(!n || !kt(e, i, this.currentDirection))) {
|
1861
1861
|
var s = this.getAxisMotionValue(e), o = this.originPoint[e] + n[e];
|
1862
|
-
this.constraints && this.constraints[e] && (o =
|
1862
|
+
this.constraints && this.constraints[e] && (o = Lo(o, this.constraints[e], this.elastic[e])), s.set(o);
|
1863
1863
|
}
|
1864
1864
|
}, t.prototype.resolveConstraints = function() {
|
1865
1865
|
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] =
|
1866
|
+
n && gt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && s ? this.constraints = Ro(s.actual, n) : this.constraints = !1, this.elastic = Oo(i), o !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && J(function(a) {
|
1867
|
+
e.getAxisMotionValue(a) && (e.constraints[a] = Io(s.actual[a], e.constraints[a]));
|
1868
1868
|
});
|
1869
1869
|
}, t.prototype.resolveRefConstraints = function() {
|
1870
1870
|
var e = this.getProps(), r = e.dragConstraints, n = e.onMeasureDragConstraints;
|
@@ -1875,16 +1875,16 @@ var No = /* @__PURE__ */ new WeakMap(), Ho = (
|
|
1875
1875
|
var s = this.visualElement.projection;
|
1876
1876
|
if (!s || !s.layout)
|
1877
1877
|
return !1;
|
1878
|
-
var o =
|
1878
|
+
var o = No(i, s.root, this.visualElement.getTransformPagePoint()), a = Do(s.layout.actual, o);
|
1879
1879
|
if (n) {
|
1880
|
-
var u = n(
|
1881
|
-
this.hasMutatedConstraints = !!u, u && (a =
|
1880
|
+
var u = n(Fo(a));
|
1881
|
+
this.hasMutatedConstraints = !!u, u && (a = _n(u));
|
1882
1882
|
}
|
1883
1883
|
return a;
|
1884
1884
|
}, t.prototype.startAnimation = function(e) {
|
1885
|
-
var r = this, n = this.getProps(), i = n.drag, s = n.dragMomentum, o = n.dragElastic, a = n.dragTransition, u = n.dragSnapToOrigin, l = n.onDragTransitionEnd, f = this.constraints || {}, v =
|
1885
|
+
var r = this, n = this.getProps(), i = n.drag, s = n.dragMomentum, o = n.dragElastic, a = n.dragTransition, u = n.dragSnapToOrigin, l = n.onDragTransitionEnd, f = this.constraints || {}, v = J(function(c) {
|
1886
1886
|
var d;
|
1887
|
-
if (
|
1887
|
+
if (kt(c, i, r.currentDirection)) {
|
1888
1888
|
var p = (d = f?.[c]) !== null && d !== void 0 ? d : {};
|
1889
1889
|
u && (p = { min: 0, max: 0 });
|
1890
1890
|
var h = o ? 200 : 1e6, g = o ? 40 : 1e7, b = m(m({ type: "inertia", velocity: s ? e[c] : 0, bounceStiffness: h, bounceDamping: g, timeConstant: 750, restDelta: 1, restSpeed: 10 }, a), p);
|
@@ -1897,7 +1897,7 @@ var No = /* @__PURE__ */ new WeakMap(), Ho = (
|
|
1897
1897
|
return Ge(e, n, 0, r);
|
1898
1898
|
}, t.prototype.stopAnimation = function() {
|
1899
1899
|
var e = this;
|
1900
|
-
|
1900
|
+
J(function(r) {
|
1901
1901
|
return e.getAxisMotionValue(r).stop();
|
1902
1902
|
});
|
1903
1903
|
}, t.prototype.getAxisMotionValue = function(e) {
|
@@ -1905,9 +1905,9 @@ var No = /* @__PURE__ */ new WeakMap(), Ho = (
|
|
1905
1905
|
return s || this.visualElement.getValue(e, (n = (r = this.visualElement.getProps().initial) === null || r === void 0 ? void 0 : r[e]) !== null && n !== void 0 ? n : 0);
|
1906
1906
|
}, t.prototype.snapToCursor = function(e) {
|
1907
1907
|
var r = this;
|
1908
|
-
|
1908
|
+
J(function(n) {
|
1909
1909
|
var i = r.getProps().drag;
|
1910
|
-
if (
|
1910
|
+
if (kt(n, i, r.currentDirection)) {
|
1911
1911
|
var s = r.visualElement.projection, o = r.getAxisMotionValue(n);
|
1912
1912
|
if (s && s.layout) {
|
1913
1913
|
var a = s.layout.actual[n], u = a.min, l = a.max;
|
@@ -1920,16 +1920,16 @@ var No = /* @__PURE__ */ new WeakMap(), Ho = (
|
|
1920
1920
|
if (!(!gt(s) || !o || !this.constraints)) {
|
1921
1921
|
this.stopAnimation();
|
1922
1922
|
var a = { x: 0, y: 0 };
|
1923
|
-
|
1923
|
+
J(function(l) {
|
1924
1924
|
var f = e.getAxisMotionValue(l);
|
1925
1925
|
if (f) {
|
1926
1926
|
var v = f.get();
|
1927
|
-
a[l] =
|
1927
|
+
a[l] = Mo({ min: v, max: v }, e.constraints[l]);
|
1928
1928
|
}
|
1929
1929
|
});
|
1930
1930
|
var u = this.visualElement.getProps().transformTemplate;
|
1931
|
-
this.visualElement.getInstance().style.transform = u ? u({}, "") : "none", (r = o.root) === null || r === void 0 || r.updateScroll(), o.updateLayout(), this.resolveConstraints(),
|
1932
|
-
if (
|
1931
|
+
this.visualElement.getInstance().style.transform = u ? u({}, "") : "none", (r = o.root) === null || r === void 0 || r.updateScroll(), o.updateLayout(), this.resolveConstraints(), J(function(l) {
|
1932
|
+
if (kt(l, i, null)) {
|
1933
1933
|
var f = e.getAxisMotionValue(l), v = e.constraints[l], c = v.min, d = v.max;
|
1934
1934
|
f.set(O(c, d, a[l]));
|
1935
1935
|
}
|
@@ -1937,7 +1937,7 @@ var No = /* @__PURE__ */ new WeakMap(), Ho = (
|
|
1937
1937
|
}
|
1938
1938
|
}, t.prototype.addListeners = function() {
|
1939
1939
|
var e = this, r;
|
1940
|
-
|
1940
|
+
Ho.set(this.visualElement, this);
|
1941
1941
|
var n = this.visualElement.getInstance(), i = bt(n, "pointerdown", function(l) {
|
1942
1942
|
var f = e.getProps(), v = f.drag, c = f.dragListener, d = c === void 0 ? !0 : c;
|
1943
1943
|
v && d && e.start(l);
|
@@ -1951,7 +1951,7 @@ var No = /* @__PURE__ */ new WeakMap(), Ho = (
|
|
1951
1951
|
});
|
1952
1952
|
return o.addEventListener("didUpdate", function(l) {
|
1953
1953
|
var f = l.delta, v = l.hasLayoutChanged;
|
1954
|
-
e.isDragging && v && (
|
1954
|
+
e.isDragging && v && (J(function(c) {
|
1955
1955
|
var d = e.getAxisMotionValue(c);
|
1956
1956
|
d && (e.originPoint[c] += f[c].translate, d.set(d.get() + f[c].translate));
|
1957
1957
|
}), e.visualElement.syncRender());
|
@@ -1964,17 +1964,17 @@ var No = /* @__PURE__ */ new WeakMap(), Ho = (
|
|
1964
1964
|
}, t;
|
1965
1965
|
}()
|
1966
1966
|
);
|
1967
|
-
function
|
1967
|
+
function kt(t, e, r) {
|
1968
1968
|
return (e === !0 || e === t) && (r === null || r === t);
|
1969
1969
|
}
|
1970
|
-
function
|
1970
|
+
function Ko(t, e) {
|
1971
1971
|
e === void 0 && (e = 10);
|
1972
1972
|
var r = null;
|
1973
1973
|
return Math.abs(t.y) > e ? r = "y" : Math.abs(t.x) > e && (r = "x"), r;
|
1974
1974
|
}
|
1975
|
-
function
|
1975
|
+
function Go(t) {
|
1976
1976
|
var e = t.dragControls, r = t.visualElement, n = dt(function() {
|
1977
|
-
return new
|
1977
|
+
return new zo(r);
|
1978
1978
|
});
|
1979
1979
|
H(function() {
|
1980
1980
|
return e && e.subscribe(n);
|
@@ -1982,8 +1982,8 @@ function Ko(t) {
|
|
1982
1982
|
return n.addListeners();
|
1983
1983
|
}, [n]);
|
1984
1984
|
}
|
1985
|
-
function
|
1986
|
-
var e = t.onPan, r = t.onPanStart, n = t.onPanEnd, i = t.onPanSessionStart, s = t.visualElement, o = e || r || n || i, a =
|
1985
|
+
function Yo(t) {
|
1986
|
+
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
1987
|
onSessionStart: i,
|
1988
1988
|
onStart: r,
|
1989
1989
|
onMove: e,
|
@@ -1995,18 +1995,18 @@ function Go(t) {
|
|
1995
1995
|
a.current !== null && a.current.updateHandlers(l);
|
1996
1996
|
});
|
1997
1997
|
function f(v) {
|
1998
|
-
a.current = new
|
1998
|
+
a.current = new Bn(v, l, {
|
1999
1999
|
transformPagePoint: u
|
2000
2000
|
});
|
2001
2001
|
}
|
2002
|
-
|
2002
|
+
Jt(s, "pointerdown", o && f), Ne(function() {
|
2003
2003
|
return a.current && a.current.end();
|
2004
2004
|
});
|
2005
2005
|
}
|
2006
|
-
var
|
2007
|
-
pan: ut(
|
2008
|
-
drag: ut(
|
2009
|
-
},
|
2006
|
+
var ko = {
|
2007
|
+
pan: ut(Yo),
|
2008
|
+
drag: ut(Go)
|
2009
|
+
}, Xt = [
|
2010
2010
|
"LayoutMeasure",
|
2011
2011
|
"BeforeLayoutMeasure",
|
2012
2012
|
"LayoutUpdate",
|
@@ -2020,9 +2020,9 @@ var Yo = {
|
|
2020
2020
|
"SetAxisTarget",
|
2021
2021
|
"Unmount"
|
2022
2022
|
];
|
2023
|
-
function
|
2024
|
-
var t =
|
2025
|
-
return new
|
2023
|
+
function Xo() {
|
2024
|
+
var t = Xt.map(function() {
|
2025
|
+
return new Rt();
|
2026
2026
|
}), e = {}, r = {
|
2027
2027
|
clearAllListeners: function() {
|
2028
2028
|
return t.forEach(function(n) {
|
@@ -2030,29 +2030,29 @@ function ko() {
|
|
2030
2030
|
});
|
2031
2031
|
},
|
2032
2032
|
updatePropListeners: function(n) {
|
2033
|
-
|
2033
|
+
Xt.forEach(function(i) {
|
2034
2034
|
var s, o = "on" + i, a = n[o];
|
2035
2035
|
(s = e[i]) === null || s === void 0 || s.call(e), a && (e[i] = r[o](a));
|
2036
2036
|
});
|
2037
2037
|
}
|
2038
2038
|
};
|
2039
2039
|
return t.forEach(function(n, i) {
|
2040
|
-
r["on" +
|
2040
|
+
r["on" + Xt[i]] = function(s) {
|
2041
2041
|
return n.add(s);
|
2042
|
-
}, r["notify" +
|
2042
|
+
}, r["notify" + Xt[i]] = function() {
|
2043
2043
|
for (var s = [], o = 0; o < arguments.length; o++)
|
2044
2044
|
s[o] = arguments[o];
|
2045
2045
|
return n.notify.apply(n, W([], M(s), !1));
|
2046
2046
|
};
|
2047
2047
|
}), r;
|
2048
2048
|
}
|
2049
|
-
function
|
2049
|
+
function Wo(t, e, r) {
|
2050
2050
|
var n;
|
2051
2051
|
for (var i in e) {
|
2052
2052
|
var s = e[i], o = r[i];
|
2053
|
-
if (
|
2054
|
-
t.addValue(i, s), process.env.NODE_ENV === "development" &&
|
2055
|
-
else if (
|
2053
|
+
if (q(s))
|
2054
|
+
t.addValue(i, s), process.env.NODE_ENV === "development" && Rn(s.version === "6.5.1", "Attempting to mix Framer Motion versions ".concat(s.version, " with 6.5.1 may not work as expected."));
|
2055
|
+
else if (q(o))
|
2056
2056
|
t.addValue(i, vt(s));
|
2057
2057
|
else if (o !== s)
|
2058
2058
|
if (t.hasValue(i)) {
|
@@ -2065,12 +2065,12 @@ function Xo(t, e, r) {
|
|
2065
2065
|
e[i] === void 0 && t.removeValue(i);
|
2066
2066
|
return e;
|
2067
2067
|
}
|
2068
|
-
var
|
2068
|
+
var Kn = function(t) {
|
2069
2069
|
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
2070
|
return function(c, d) {
|
2071
2071
|
var p = c.parent, h = c.props, g = c.presenceId, b = c.blockInitialAnimation, P = c.visualState, S = c.shouldReduceMotion;
|
2072
2072
|
d === void 0 && (d = {});
|
2073
|
-
var C = !1, A = P.latestValues, I = P.renderState, R, x =
|
2073
|
+
var C = !1, A = P.latestValues, I = P.renderState, R, x = Xo(), w = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), z = {}, B = m({}, A), N;
|
2074
2074
|
function rt() {
|
2075
2075
|
!R || !C || (nt(), a(R, I, h.style, E.projection));
|
2076
2076
|
}
|
@@ -2081,19 +2081,19 @@ var zn = function(t) {
|
|
2081
2081
|
x.notifyUpdate(A);
|
2082
2082
|
}
|
2083
2083
|
function K(y, V) {
|
2084
|
-
var U = V.onChange(function(
|
2085
|
-
A[y] =
|
2086
|
-
}),
|
2084
|
+
var U = V.onChange(function(Kt) {
|
2085
|
+
A[y] = Kt, h.onUpdate && Z.update(it, !1, !0);
|
2086
|
+
}), At = V.onRenderRequest(E.scheduleRender);
|
2087
2087
|
D.set(y, function() {
|
2088
|
-
U(),
|
2088
|
+
U(), At();
|
2089
2089
|
});
|
2090
2090
|
}
|
2091
|
-
var
|
2092
|
-
for (var pt in
|
2093
|
-
var
|
2094
|
-
A[pt] !== void 0 &&
|
2091
|
+
var Ct = v(h);
|
2092
|
+
for (var pt in Ct) {
|
2093
|
+
var zt = Ct[pt];
|
2094
|
+
A[pt] !== void 0 && q(zt) && zt.set(A[pt], !1);
|
2095
2095
|
}
|
2096
|
-
var ht = ne(h), _ =
|
2096
|
+
var ht = ne(h), _ = on(h), E = m(m({
|
2097
2097
|
treeType: r,
|
2098
2098
|
/**
|
2099
2099
|
* This is a mirror of the internal instance prop, which keeps
|
@@ -2156,7 +2156,7 @@ var zn = function(t) {
|
|
2156
2156
|
*/
|
2157
2157
|
unmount: function() {
|
2158
2158
|
var y;
|
2159
|
-
(y = E.projection) === null || y === void 0 || y.unmount(),
|
2159
|
+
(y = E.projection) === null || y === void 0 || y.unmount(), Ft.update(it), Ft.render(rt), D.forEach(function(V) {
|
2160
2160
|
return V();
|
2161
2161
|
}), N?.(), p?.children.delete(E), x.clearAllListeners(), R = void 0, C = !1;
|
2162
2162
|
},
|
@@ -2291,7 +2291,7 @@ var zn = function(t) {
|
|
2291
2291
|
getBaseTarget: function(y) {
|
2292
2292
|
if (i) {
|
2293
2293
|
var V = i(h, y);
|
2294
|
-
if (V !== void 0 && !
|
2294
|
+
if (V !== void 0 && !q(V))
|
2295
2295
|
return V;
|
2296
2296
|
}
|
2297
2297
|
return B[y];
|
@@ -2321,7 +2321,7 @@ var zn = function(t) {
|
|
2321
2321
|
* added to our map, old ones removed, and listeners updated.
|
2322
2322
|
*/
|
2323
2323
|
setProps: function(y) {
|
2324
|
-
(y.transformTemplate || h.transformTemplate) && E.scheduleRender(), h = y, x.updatePropListeners(y), z =
|
2324
|
+
(y.transformTemplate || h.transformTemplate) && E.scheduleRender(), h = y, x.updatePropListeners(y), z = Wo(E, v(h), z);
|
2325
2325
|
},
|
2326
2326
|
getProps: function() {
|
2327
2327
|
return h;
|
@@ -2353,38 +2353,38 @@ var zn = function(t) {
|
|
2353
2353
|
var V = p?.getVariantContext() || {};
|
2354
2354
|
return h.initial !== void 0 && (V.initial = h.initial), V;
|
2355
2355
|
}
|
2356
|
-
for (var U = {},
|
2357
|
-
var
|
2358
|
-
(X(ae) || ae === !1) && (U[
|
2356
|
+
for (var U = {}, At = 0; At < Zo; At++) {
|
2357
|
+
var Kt = Gn[At], ae = h[Kt];
|
2358
|
+
(X(ae) || ae === !1) && (U[Kt] = ae);
|
2359
2359
|
}
|
2360
2360
|
return U;
|
2361
2361
|
}
|
2362
2362
|
});
|
2363
2363
|
return E;
|
2364
2364
|
};
|
2365
|
-
},
|
2365
|
+
}, Gn = W(["initial"], M(Xe), !1), Zo = Gn.length;
|
2366
2366
|
function Ae(t) {
|
2367
2367
|
return typeof t == "string" && t.startsWith("var(--");
|
2368
2368
|
}
|
2369
|
-
var
|
2370
|
-
function
|
2371
|
-
var e =
|
2369
|
+
var Yn = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;
|
2370
|
+
function $o(t) {
|
2371
|
+
var e = Yn.exec(t);
|
2372
2372
|
if (!e)
|
2373
2373
|
return [,];
|
2374
2374
|
var r = M(e, 3), n = r[1], i = r[2];
|
2375
2375
|
return [n, i];
|
2376
2376
|
}
|
2377
|
-
var
|
2377
|
+
var qo = 4;
|
2378
2378
|
function we(t, e, r) {
|
2379
|
-
r === void 0 && (r = 1), ct(r <=
|
2380
|
-
var n = M(
|
2379
|
+
r === void 0 && (r = 1), ct(r <= qo, 'Max CSS variable fallback depth detected in property "'.concat(t, '". This may indicate a circular fallback dependency.'));
|
2380
|
+
var n = M($o(t), 2), i = n[0], s = n[1];
|
2381
2381
|
if (i) {
|
2382
2382
|
var o = window.getComputedStyle(e).getPropertyValue(i);
|
2383
2383
|
return o ? o.trim() : Ae(s) ? we(s, e, r + 1) : s;
|
2384
2384
|
}
|
2385
2385
|
}
|
2386
|
-
function
|
2387
|
-
var n, i =
|
2386
|
+
function Jo(t, e, r) {
|
2387
|
+
var n, i = Q(e, []), s = t.getInstance();
|
2388
2388
|
if (!(s instanceof Element))
|
2389
2389
|
return { target: i, transitionEnd: r };
|
2390
2390
|
r && (r = m({}, r)), t.forEachValue(function(l) {
|
@@ -2403,7 +2403,7 @@ function qo(t, e, r) {
|
|
2403
2403
|
}
|
2404
2404
|
return { target: i, transitionEnd: r };
|
2405
2405
|
}
|
2406
|
-
var
|
2406
|
+
var Qo = /* @__PURE__ */ new Set([
|
2407
2407
|
"width",
|
2408
2408
|
"height",
|
2409
2409
|
"top",
|
@@ -2412,13 +2412,13 @@ var Jo = /* @__PURE__ */ new Set([
|
|
2412
2412
|
"bottom",
|
2413
2413
|
"x",
|
2414
2414
|
"y"
|
2415
|
-
]),
|
2416
|
-
return
|
2417
|
-
},
|
2418
|
-
return Object.keys(t).some(
|
2419
|
-
},
|
2415
|
+
]), kn = function(t) {
|
2416
|
+
return Qo.has(t);
|
2417
|
+
}, ts = function(t) {
|
2418
|
+
return Object.keys(t).some(kn);
|
2419
|
+
}, Xn = function(t, e) {
|
2420
2420
|
t.set(e, !1), t.set(e);
|
2421
|
-
},
|
2421
|
+
}, Wt = function(t) {
|
2422
2422
|
return t === Ee || t === T;
|
2423
2423
|
}, Cr;
|
2424
2424
|
(function(t) {
|
@@ -2437,12 +2437,12 @@ var Ar = function(t, e) {
|
|
2437
2437
|
var o = i.match(/^matrix\((.+)\)$/);
|
2438
2438
|
return o ? Ar(o[1], t) : 0;
|
2439
2439
|
};
|
2440
|
-
},
|
2441
|
-
return !
|
2440
|
+
}, es = /* @__PURE__ */ new Set(["x", "y", "z"]), rs = Bt.filter(function(t) {
|
2441
|
+
return !es.has(t);
|
2442
2442
|
});
|
2443
|
-
function
|
2443
|
+
function ns(t) {
|
2444
2444
|
var e = [];
|
2445
|
-
return
|
2445
|
+
return rs.forEach(function(r) {
|
2446
2446
|
var n = t.getValue(r);
|
2447
2447
|
n !== void 0 && (e.push([r, n.get()]), n.set(r.startsWith("scale") ? 1 : 0));
|
2448
2448
|
}), e.length && t.syncRender(), e;
|
@@ -2476,7 +2476,7 @@ var Er = {
|
|
2476
2476
|
// Transform
|
2477
2477
|
x: wr(4, 13),
|
2478
2478
|
y: wr(5, 14)
|
2479
|
-
},
|
2479
|
+
}, is = function(t, e, r) {
|
2480
2480
|
var n = e.measureViewportBox(), i = e.getInstance(), s = getComputedStyle(i), o = s.display, a = {};
|
2481
2481
|
o === "none" && e.setStaticValue("display", t.display || "block"), r.forEach(function(l) {
|
2482
2482
|
a[l] = Er[l](n, s);
|
@@ -2484,30 +2484,30 @@ var Er = {
|
|
2484
2484
|
var u = e.measureViewportBox();
|
2485
2485
|
return r.forEach(function(l) {
|
2486
2486
|
var f = e.getValue(l);
|
2487
|
-
|
2487
|
+
Xn(f, a[l]), t[l] = Er[l](u, s);
|
2488
2488
|
}), t;
|
2489
|
-
},
|
2489
|
+
}, as = function(t, e, r, n) {
|
2490
2490
|
r === void 0 && (r = {}), n === void 0 && (n = {}), e = m({}, e), n = m({}, n);
|
2491
|
-
var i = Object.keys(e).filter(
|
2491
|
+
var i = Object.keys(e).filter(kn), s = [], o = !1, a = [];
|
2492
2492
|
if (i.forEach(function(f) {
|
2493
2493
|
var v = t.getValue(f);
|
2494
2494
|
if (t.hasValue(f)) {
|
2495
|
-
var c = r[f], d =
|
2495
|
+
var c = r[f], d = wt(c), p = e[f], h;
|
2496
2496
|
if (Ut(p)) {
|
2497
2497
|
var g = p.length, b = p[0] === null ? 1 : 0;
|
2498
|
-
c = p[b], d =
|
2498
|
+
c = p[b], d = wt(c);
|
2499
2499
|
for (var P = b; P < g; P++)
|
2500
|
-
h ? ct(
|
2500
|
+
h ? ct(wt(p[P]) === h, "All keyframes must be of the same type") : (h = wt(p[P]), ct(h === d || Wt(d) && Wt(h), "Keyframes must be of the same dimension as the current value"));
|
2501
2501
|
} else
|
2502
|
-
h =
|
2502
|
+
h = wt(p);
|
2503
2503
|
if (d !== h)
|
2504
|
-
if (
|
2504
|
+
if (Wt(d) && Wt(h)) {
|
2505
2505
|
var S = v.get();
|
2506
2506
|
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 =
|
2507
|
+
} else d?.transform && h?.transform && (c === 0 || p === 0) ? c === 0 ? v.set(h.transform(c)) : e[f] = d.transform(p) : (o || (s = ns(t), o = !0), a.push(f), n[f] = n[f] !== void 0 ? n[f] : e[f], Xn(v, p));
|
2508
2508
|
}
|
2509
2509
|
}), a.length) {
|
2510
|
-
var u = a.indexOf("height") >= 0 ? window.pageYOffset : null, l =
|
2510
|
+
var u = a.indexOf("height") >= 0 ? window.pageYOffset : null, l = is(e, t, a);
|
2511
2511
|
return s.length && s.forEach(function(f) {
|
2512
2512
|
var v = M(f, 2), c = v[0], d = v[1];
|
2513
2513
|
t.getValue(c).set(d);
|
@@ -2515,25 +2515,25 @@ var Er = {
|
|
2515
2515
|
} else
|
2516
2516
|
return { target: e, transitionEnd: n };
|
2517
2517
|
};
|
2518
|
-
function
|
2519
|
-
return
|
2518
|
+
function os(t, e, r, n) {
|
2519
|
+
return ts(e) ? as(t, e, r, n) : { target: e, transitionEnd: n };
|
2520
2520
|
}
|
2521
|
-
var
|
2522
|
-
var i =
|
2523
|
-
return e = i.target, n = i.transitionEnd,
|
2521
|
+
var ss = function(t, e, r, n) {
|
2522
|
+
var i = Jo(t, e, n);
|
2523
|
+
return e = i.target, n = i.transitionEnd, os(t, e, r, n);
|
2524
2524
|
};
|
2525
|
-
function
|
2525
|
+
function us(t) {
|
2526
2526
|
return window.getComputedStyle(t);
|
2527
2527
|
}
|
2528
|
-
var
|
2528
|
+
var Wn = {
|
2529
2529
|
treeType: "dom",
|
2530
2530
|
readValueFromInstance: function(t, e) {
|
2531
|
-
if (
|
2531
|
+
if (Ht(e)) {
|
2532
2532
|
var r = He(e);
|
2533
2533
|
return r && r.default || 0;
|
2534
2534
|
} else {
|
2535
|
-
var n =
|
2536
|
-
return (
|
2535
|
+
var n = us(t);
|
2536
|
+
return (fn(e) ? n.getPropertyValue(e) : n[e]) || 0;
|
2537
2537
|
}
|
2538
2538
|
},
|
2539
2539
|
sortNodePosition: function(t, e) {
|
@@ -2545,7 +2545,7 @@ var Xn = {
|
|
2545
2545
|
},
|
2546
2546
|
measureViewportBox: function(t, e) {
|
2547
2547
|
var r = e.transformPagePoint;
|
2548
|
-
return
|
2548
|
+
return zn(t, r);
|
2549
2549
|
},
|
2550
2550
|
/**
|
2551
2551
|
* Reset the transform on the current Element. This is called as part
|
@@ -2572,10 +2572,10 @@ var Xn = {
|
|
2572
2572
|
makeTargetAnimatable: function(t, e, r, n) {
|
2573
2573
|
var i = r.transformValues;
|
2574
2574
|
n === void 0 && (n = !0);
|
2575
|
-
var s = e.transition, o = e.transitionEnd, a =
|
2575
|
+
var s = e.transition, o = e.transitionEnd, a = Q(e, ["transition", "transitionEnd"]), u = po(a, s || {}, t);
|
2576
2576
|
if (i && (o && (o = i(o)), a && (a = i(a)), u && (u = i(u))), n) {
|
2577
|
-
|
2578
|
-
var l =
|
2577
|
+
co(t, a, u);
|
2578
|
+
var l = ss(t, a, u, o);
|
2579
2579
|
o = l.transitionEnd, a = l.target;
|
2580
2580
|
}
|
2581
2581
|
return m({ transition: s, transitionEnd: o }, a);
|
@@ -2584,21 +2584,21 @@ var Xn = {
|
|
2584
2584
|
build: function(t, e, r, n, i) {
|
2585
2585
|
t.isVisible !== void 0 && (e.style.visibility = t.isVisible ? "visible" : "hidden"), Oe(e, r, n, i.transformTemplate);
|
2586
2586
|
},
|
2587
|
-
render:
|
2588
|
-
},
|
2587
|
+
render: mn
|
2588
|
+
}, ls = Kn(Wn), fs = Kn(m(m({}, Wn), { getBaseTarget: function(t, e) {
|
2589
2589
|
return t[e];
|
2590
2590
|
}, readValueFromInstance: function(t, e) {
|
2591
2591
|
var r;
|
2592
|
-
return
|
2593
|
-
}, scrapeMotionValuesFromProps:
|
2592
|
+
return Ht(e) ? ((r = He(e)) === null || r === void 0 ? void 0 : r.default) || 0 : (e = gn.has(e) ? e : hn(e), t.getAttribute(e));
|
2593
|
+
}, scrapeMotionValuesFromProps: bn, build: function(t, e, r, n, i) {
|
2594
2594
|
je(e, r, n, i.transformTemplate);
|
2595
|
-
}, render:
|
2596
|
-
return Ie(t) ?
|
2595
|
+
}, render: yn })), cs = function(t, e) {
|
2596
|
+
return Ie(t) ? fs(e, { enableHardwareAcceleration: !1 }) : ls(e, { enableHardwareAcceleration: !0 });
|
2597
2597
|
};
|
2598
2598
|
function Lr(t, e) {
|
2599
2599
|
return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
|
2600
2600
|
}
|
2601
|
-
var
|
2601
|
+
var Et = {
|
2602
2602
|
correct: function(t, e) {
|
2603
2603
|
if (!e.target)
|
2604
2604
|
return t;
|
@@ -2610,10 +2610,10 @@ var At = {
|
|
2610
2610
|
var r = Lr(t, e.target.x), n = Lr(t, e.target.y);
|
2611
2611
|
return "".concat(r, "% ").concat(n, "%");
|
2612
2612
|
}
|
2613
|
-
}, Rr = "_$css",
|
2613
|
+
}, Rr = "_$css", vs = {
|
2614
2614
|
correct: function(t, e) {
|
2615
2615
|
var r = e.treeScale, n = e.projectionDelta, i = t, s = t.includes("var("), o = [];
|
2616
|
-
s && (t = t.replace(
|
2616
|
+
s && (t = t.replace(Yn, function(h) {
|
2617
2617
|
return o.push(h), Rr;
|
2618
2618
|
}));
|
2619
2619
|
var a = Pt.parse(t);
|
@@ -2633,7 +2633,7 @@ var At = {
|
|
2633
2633
|
}
|
2634
2634
|
return d;
|
2635
2635
|
}
|
2636
|
-
},
|
2636
|
+
}, ds = (
|
2637
2637
|
/** @class */
|
2638
2638
|
function(t) {
|
2639
2639
|
Xr(e, t);
|
@@ -2642,11 +2642,11 @@ var At = {
|
|
2642
2642
|
}
|
2643
2643
|
return e.prototype.componentDidMount = function() {
|
2644
2644
|
var r = this, n = this.props, i = n.visualElement, s = n.layoutGroup, o = n.switchLayoutGroup, a = n.layoutId, u = i.projection;
|
2645
|
-
|
2645
|
+
$i(hs), u && (s?.group && s.group.add(u), o?.register && a && o.register(u), u.root.didUpdate(), u.addEventListener("animationComplete", function() {
|
2646
2646
|
r.safeToRemove();
|
2647
2647
|
}), u.setOptions(m(m({}, u.options), { onExitComplete: function() {
|
2648
2648
|
return r.safeToRemove();
|
2649
|
-
} }))),
|
2649
|
+
} }))), Lt.hasEverUpdated = !0;
|
2650
2650
|
}, e.prototype.getSnapshotBeforeUpdate = function(r) {
|
2651
2651
|
var n = this, i = this.props, s = i.layoutDependency, o = i.visualElement, a = i.drag, u = i.isPresent, l = o.projection;
|
2652
2652
|
return l && (l.isPresent = u, a || r.layoutDependency !== s || s === void 0 ? l.willUpdate() : this.safeToRemove(), r.isPresent !== u && (u ? l.promote() : l.relegate() || Z.postRender(function() {
|
@@ -2667,28 +2667,28 @@ var At = {
|
|
2667
2667
|
}, e;
|
2668
2668
|
}(Le.Component)
|
2669
2669
|
);
|
2670
|
-
function
|
2671
|
-
var e = M(
|
2672
|
-
return Le.createElement(
|
2670
|
+
function ps(t) {
|
2671
|
+
var e = M(Mn(), 2), r = e[0], n = e[1], i = F(Me);
|
2672
|
+
return Le.createElement(ds, m({}, t, { layoutGroup: i, switchLayoutGroup: F(sn), isPresent: r, safeToRemove: n }));
|
2673
2673
|
}
|
2674
|
-
var
|
2675
|
-
borderRadius: m(m({},
|
2674
|
+
var hs = {
|
2675
|
+
borderRadius: m(m({}, Et), { applyTo: [
|
2676
2676
|
"borderTopLeftRadius",
|
2677
2677
|
"borderTopRightRadius",
|
2678
2678
|
"borderBottomLeftRadius",
|
2679
2679
|
"borderBottomRightRadius"
|
2680
2680
|
] }),
|
2681
|
-
borderTopLeftRadius:
|
2682
|
-
borderTopRightRadius:
|
2683
|
-
borderBottomLeftRadius:
|
2684
|
-
borderBottomRightRadius:
|
2685
|
-
boxShadow:
|
2686
|
-
},
|
2687
|
-
measureLayout:
|
2681
|
+
borderTopLeftRadius: Et,
|
2682
|
+
borderTopRightRadius: Et,
|
2683
|
+
borderBottomLeftRadius: Et,
|
2684
|
+
borderBottomRightRadius: Et,
|
2685
|
+
boxShadow: vs
|
2686
|
+
}, ms = {
|
2687
|
+
measureLayout: ps
|
2688
2688
|
};
|
2689
|
-
function
|
2689
|
+
function gs(t, e, r) {
|
2690
2690
|
r === void 0 && (r = {});
|
2691
|
-
var n =
|
2691
|
+
var n = q(t) ? t : vt(t);
|
2692
2692
|
return Ge("", n, e, r), {
|
2693
2693
|
stop: function() {
|
2694
2694
|
return n.stop();
|
@@ -2698,26 +2698,26 @@ function ms(t, e, r) {
|
|
2698
2698
|
}
|
2699
2699
|
};
|
2700
2700
|
}
|
2701
|
-
var
|
2701
|
+
var Zn = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], ys = Zn.length, Dr = function(t) {
|
2702
2702
|
return typeof t == "string" ? parseFloat(t) : t;
|
2703
2703
|
}, Mr = function(t) {
|
2704
2704
|
return typeof t == "number" || T.test(t);
|
2705
2705
|
};
|
2706
|
-
function
|
2706
|
+
function bs(t, e, r, n, i, s) {
|
2707
2707
|
var o, a, u, l;
|
2708
2708
|
i ? (t.opacity = O(
|
2709
2709
|
0,
|
2710
2710
|
// (follow?.opacity as number) ?? 0,
|
2711
2711
|
// TODO Reinstate this if only child
|
2712
2712
|
(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(
|
2713
|
+
Ps(n)
|
2714
|
+
), t.opacityExit = O((a = e.opacity) !== null && a !== void 0 ? a : 1, 0, Vs(n))) : s && (t.opacity = O((u = e.opacity) !== null && u !== void 0 ? u : 1, (l = r.opacity) !== null && l !== void 0 ? l : 1, n));
|
2715
|
+
for (var f = 0; f < ys; f++) {
|
2716
|
+
var v = "border".concat(Zn[f], "Radius"), c = Ir(e, v), d = Ir(r, v);
|
2717
2717
|
if (!(c === void 0 && d === void 0)) {
|
2718
2718
|
c || (c = 0), d || (d = 0);
|
2719
2719
|
var p = c === 0 || d === 0 || Mr(c) === Mr(d);
|
2720
|
-
p ? (t[v] = Math.max(O(Dr(c), Dr(d), n), 0), (
|
2720
|
+
p ? (t[v] = Math.max(O(Dr(c), Dr(d), n), 0), (Ot.test(d) || Ot.test(c)) && (t[v] += "%")) : t[v] = d;
|
2721
2721
|
}
|
2722
2722
|
}
|
2723
2723
|
(e.rotate || r.rotate) && (t.rotate = O(e.rotate || 0, r.rotate || 0, n));
|
@@ -2726,8 +2726,8 @@ function Ir(t, e) {
|
|
2726
2726
|
var r;
|
2727
2727
|
return (r = t[e]) !== null && r !== void 0 ? r : t.borderRadius;
|
2728
2728
|
}
|
2729
|
-
var
|
2730
|
-
function
|
2729
|
+
var Ps = $n(0, 0.5, $r), Vs = $n(0.5, 0.95, Zr);
|
2730
|
+
function $n(t, e, r) {
|
2731
2731
|
return function(n) {
|
2732
2732
|
return n < t ? 0 : n > e ? 1 : r(ge(t, e, n));
|
2733
2733
|
};
|
@@ -2739,10 +2739,10 @@ function Y(t, e) {
|
|
2739
2739
|
Or(t.x, e.x), Or(t.y, e.y);
|
2740
2740
|
}
|
2741
2741
|
function Fr(t, e, r, n, i) {
|
2742
|
-
return t -= e, t =
|
2742
|
+
return t -= e, t = te(t, 1 / r, n), i !== void 0 && (t = te(t, 1 / i, n)), t;
|
2743
2743
|
}
|
2744
|
-
function
|
2745
|
-
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),
|
2744
|
+
function Ts(t, e, r, n, i, s, o) {
|
2745
|
+
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
2746
|
e = parseFloat(e);
|
2747
2747
|
var a = O(o.min, o.max, e / 100);
|
2748
2748
|
e = a - o.min;
|
@@ -2754,22 +2754,22 @@ function Vs(t, e, r, n, i, s, o) {
|
|
2754
2754
|
}
|
2755
2755
|
function jr(t, e, r, n, i) {
|
2756
2756
|
var s = M(r, 3), o = s[0], a = s[1], u = s[2];
|
2757
|
-
|
2757
|
+
Ts(t, e[o], e[a], e[u], e.scale, n, i);
|
2758
2758
|
}
|
2759
|
-
var
|
2759
|
+
var Ss = ["x", "scaleX", "originX"], xs = ["y", "scaleY", "originY"];
|
2760
2760
|
function Br(t, e, r, n) {
|
2761
|
-
jr(t.x, e,
|
2761
|
+
jr(t.x, e, Ss, r?.x, n?.x), jr(t.y, e, xs, r?.y, n?.y);
|
2762
2762
|
}
|
2763
2763
|
function Ur(t) {
|
2764
2764
|
return t.translate === 0 && t.scale === 1;
|
2765
2765
|
}
|
2766
|
-
function
|
2766
|
+
function qn(t) {
|
2767
2767
|
return Ur(t.x) && Ur(t.y);
|
2768
2768
|
}
|
2769
|
-
function
|
2769
|
+
function Jn(t, e) {
|
2770
2770
|
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
2771
|
}
|
2772
|
-
var
|
2772
|
+
var Cs = (
|
2773
2773
|
/** @class */
|
2774
2774
|
function() {
|
2775
2775
|
function t() {
|
@@ -2816,7 +2816,7 @@ var xs = (
|
|
2816
2816
|
this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
|
2817
2817
|
}, t;
|
2818
2818
|
}()
|
2819
|
-
),
|
2819
|
+
), As = "translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";
|
2820
2820
|
function _r(t, e, r) {
|
2821
2821
|
var n = t.x.translate / e.x, i = t.y.translate / e.y, s = "translate3d(".concat(n, "px, ").concat(i, "px, 0) ");
|
2822
2822
|
if (s += "scale(".concat(1 / e.x, ", ").concat(1 / e.y, ") "), r) {
|
@@ -2824,11 +2824,11 @@ function _r(t, e, r) {
|
|
2824
2824
|
o && (s += "rotate(".concat(o, "deg) ")), a && (s += "rotateX(".concat(a, "deg) ")), u && (s += "rotateY(".concat(u, "deg) "));
|
2825
2825
|
}
|
2826
2826
|
var l = t.x.scale * e.x, f = t.y.scale * e.y;
|
2827
|
-
return s += "scale(".concat(l, ", ").concat(f, ")"), s ===
|
2827
|
+
return s += "scale(".concat(l, ", ").concat(f, ")"), s === As ? "none" : s;
|
2828
2828
|
}
|
2829
|
-
var
|
2829
|
+
var ws = function(t, e) {
|
2830
2830
|
return t.depth - e.depth;
|
2831
|
-
},
|
2831
|
+
}, Es = (
|
2832
2832
|
/** @class */
|
2833
2833
|
function() {
|
2834
2834
|
function t() {
|
@@ -2839,11 +2839,11 @@ var As = function(t, e) {
|
|
2839
2839
|
}, t.prototype.remove = function(e) {
|
2840
2840
|
ke(this.children, e), this.isDirty = !0;
|
2841
2841
|
}, t.prototype.forEach = function(e) {
|
2842
|
-
this.isDirty && this.children.sort(
|
2842
|
+
this.isDirty && this.children.sort(ws), this.isDirty = !1, this.children.forEach(e);
|
2843
2843
|
}, t;
|
2844
2844
|
}()
|
2845
2845
|
), Nr = 1e3;
|
2846
|
-
function
|
2846
|
+
function Qn(t) {
|
2847
2847
|
var e = t.attachResizeListener, r = t.defaultParent, n = t.measureScroll, i = t.checkIsScrollRoot, s = t.resetTransform;
|
2848
2848
|
return (
|
2849
2849
|
/** @class */
|
@@ -2853,14 +2853,14 @@ function Jn(t) {
|
|
2853
2853
|
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
2854
|
f.isUpdating && (f.isUpdating = !1, f.clearAllSnapshots());
|
2855
2855
|
}, this.updateProjection = function() {
|
2856
|
-
f.nodes.forEach(
|
2856
|
+
f.nodes.forEach(Os), f.nodes.forEach(Fs);
|
2857
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 ? W(W([], M(l.path), !1), [l], !1) : [], this.parent = l, this.depth = l ? l.depth + 1 : 0, a && this.root.registerPotentialNode(a, this);
|
2858
2858
|
for (var v = 0; v < this.path.length; v++)
|
2859
2859
|
this.path[v].shouldResetTransform = !0;
|
2860
|
-
this.root === this && (this.nodes = new
|
2860
|
+
this.root === this && (this.nodes = new Es());
|
2861
2861
|
}
|
2862
2862
|
return o.prototype.addEventListener = function(a, u) {
|
2863
|
-
return this.eventHandlers.has(a) || this.eventHandlers.set(a, new
|
2863
|
+
return this.eventHandlers.has(a) || this.eventHandlers.set(a, new Rt()), this.eventHandlers.get(a).add(u);
|
2864
2864
|
}, o.prototype.notifyListeners = function(a) {
|
2865
2865
|
for (var u = [], l = 1; l < arguments.length; l++)
|
2866
2866
|
u[l - 1] = arguments[l];
|
@@ -2880,7 +2880,7 @@ function Jn(t) {
|
|
2880
2880
|
return l.root.updateBlockedByResize = !1;
|
2881
2881
|
};
|
2882
2882
|
e(a, function() {
|
2883
|
-
l.root.updateBlockedByResize = !0, clearTimeout(h), h = window.setTimeout(g, 250),
|
2883
|
+
l.root.updateBlockedByResize = !0, clearTimeout(h), h = window.setTimeout(g, 250), Lt.hasAnimatedSinceResize && (Lt.hasAnimatedSinceResize = !1, l.nodes.forEach(Is));
|
2884
2884
|
});
|
2885
2885
|
}
|
2886
2886
|
c && this.root.registerSharedNode(c, this), this.options.animate !== !1 && p && (c || d) && this.addEventListener("didUpdate", function(b) {
|
@@ -2889,7 +2889,7 @@ function Jn(t) {
|
|
2889
2889
|
l.target = void 0, l.relativeTarget = void 0;
|
2890
2890
|
return;
|
2891
2891
|
}
|
2892
|
-
var z = (S = (P = l.options.transition) !== null && P !== void 0 ? P : p.getDefaultTransition()) !== null && S !== void 0 ? S :
|
2892
|
+
var z = (S = (P = l.options.transition) !== null && P !== void 0 ? P : p.getDefaultTransition()) !== null && S !== void 0 ? S : Ns, B = p.getProps(), N = B.onLayoutAnimationStart, rt = B.onLayoutAnimationComplete, nt = !l.targetLayout || !Jn(l.targetLayout, D) || w, it = !x && w;
|
2893
2893
|
if (!((C = l.resumeFrom) === null || C === void 0) && C.instance || it || x && (nt || !l.currentAnimation)) {
|
2894
2894
|
l.resumeFrom && (l.resumingFrom = l.resumeFrom, l.resumingFrom.resumingFrom = void 0), l.setAnimationOrigin(R, it);
|
2895
2895
|
var K = m(m({}, Ke(z, "layout")), { onPlay: N, onComplete: rt });
|
@@ -2901,7 +2901,7 @@ function Jn(t) {
|
|
2901
2901
|
}
|
2902
2902
|
}, o.prototype.unmount = function() {
|
2903
2903
|
var a, u;
|
2904
|
-
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this), (a = this.getStack()) === null || a === void 0 || a.remove(this), (u = this.parent) === null || u === void 0 || u.children.delete(this), this.instance = void 0,
|
2904
|
+
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this), (a = this.getStack()) === null || a === void 0 || a.remove(this), (u = this.parent) === null || u === void 0 || u.children.delete(this), this.instance = void 0, Ft.preRender(this.updateProjection);
|
2905
2905
|
}, o.prototype.blockUpdate = function() {
|
2906
2906
|
this.updateManuallyBlocked = !0;
|
2907
2907
|
}, o.prototype.unblockUpdate = function() {
|
@@ -2913,7 +2913,7 @@ function Jn(t) {
|
|
2913
2913
|
return this.isAnimationBlocked || ((a = this.parent) === null || a === void 0 ? void 0 : a.isTreeAnimationBlocked()) || !1;
|
2914
2914
|
}, o.prototype.startUpdate = function() {
|
2915
2915
|
var a;
|
2916
|
-
this.isUpdateBlocked() || (this.isUpdating = !0, (a = this.nodes) === null || a === void 0 || a.forEach(
|
2916
|
+
this.isUpdateBlocked() || (this.isUpdating = !0, (a = this.nodes) === null || a === void 0 || a.forEach(js));
|
2917
2917
|
}, o.prototype.willUpdate = function(a) {
|
2918
2918
|
var u, l, f;
|
2919
2919
|
if (a === void 0 && (a = !0), this.root.isUpdateBlocked()) {
|
@@ -2938,9 +2938,9 @@ function Jn(t) {
|
|
2938
2938
|
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Hr);
|
2939
2939
|
return;
|
2940
2940
|
}
|
2941
|
-
this.isUpdating && (this.isUpdating = !1, this.potentialNodes.size && (this.potentialNodes.forEach(
|
2941
|
+
this.isUpdating && (this.isUpdating = !1, this.potentialNodes.size && (this.potentialNodes.forEach(Hs), this.potentialNodes.clear()), this.nodes.forEach(Ms), this.nodes.forEach(Ls), this.nodes.forEach(Rs), this.clearAllSnapshots(), se.update(), se.preRender(), se.render());
|
2942
2942
|
}, o.prototype.clearAllSnapshots = function() {
|
2943
|
-
this.nodes.forEach(
|
2943
|
+
this.nodes.forEach(Ds), this.sharedNodes.forEach(Bs);
|
2944
2944
|
}, o.prototype.scheduleUpdateProjection = function() {
|
2945
2945
|
Z.preRender(this.updateProjection, !1, !0);
|
2946
2946
|
}, o.prototype.scheduleCheckAfterUnmount = function() {
|
@@ -2978,7 +2978,7 @@ function Jn(t) {
|
|
2978
2978
|
}, o.prototype.resetTransform = function() {
|
2979
2979
|
var a;
|
2980
2980
|
if (s) {
|
2981
|
-
var u = this.isLayoutDirty || this.shouldResetTransform, l = this.projectionDelta &&
|
2981
|
+
var u = this.isLayoutDirty || this.shouldResetTransform, l = this.projectionDelta && !qn(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
2982
|
u && (l || ot(this.latestValues) || c) && (s(this.instance, v), this.shouldResetTransform = !1, this.scheduleRender());
|
2983
2983
|
}
|
2984
2984
|
}, o.prototype.measure = function() {
|
@@ -3020,7 +3020,7 @@ function Jn(t) {
|
|
3020
3020
|
for (var f = 0; f < this.path.length; f++) {
|
3021
3021
|
var v = this.path[f];
|
3022
3022
|
if (v.instance && ot(v.latestValues)) {
|
3023
|
-
|
3023
|
+
Nn(v.latestValues) && v.updateSnapshot();
|
3024
3024
|
var c = j(), d = v.measure();
|
3025
3025
|
Y(c, d), Br(l, v.latestValues, (u = v.snapshot) === null || u === void 0 ? void 0 : u.layout, c);
|
3026
3026
|
}
|
@@ -3035,7 +3035,7 @@ function Jn(t) {
|
|
3035
3035
|
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
3036
|
}, o.prototype.resolveTargetDelta = function() {
|
3037
3037
|
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(),
|
3038
|
+
!this.layout || !(l || f) || (!this.targetDelta && !this.relativeTarget && (this.relativeParent = this.getClosestProjectingParent(), this.relativeParent && this.relativeParent.layout && (this.relativeTarget = j(), this.relativeTargetOrigin = j(), Mt(this.relativeTargetOrigin, this.layout.actual, this.relativeParent.layout.actual), Y(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) ? Eo(this.target, this.relativeTarget, this.relativeParent.target) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.actual) : Y(this.target, this.layout.actual), Hn(this.target, this.targetDelta)) : Y(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(), Mt(this.relativeTargetOrigin, this.target, this.relativeParent.target), Y(this.relativeTarget, this.relativeTargetOrigin)))));
|
3039
3039
|
}, o.prototype.getClosestProjectingParent = function() {
|
3040
3040
|
if (!(!this.parent || ot(this.parent.latestValues)))
|
3041
3041
|
return (this.parent.relativeTarget || this.parent.targetDelta) && this.parent.layout ? this.parent : this.parent.getClosestProjectingParent();
|
@@ -3043,12 +3043,12 @@ function Jn(t) {
|
|
3043
3043
|
var a, u = this.options, l = u.layout, f = u.layoutId;
|
3044
3044
|
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
3045
|
var v = this.getLead();
|
3046
|
-
Y(this.layoutCorrected, this.layout.actual),
|
3046
|
+
Y(this.layoutCorrected, this.layout.actual), Bo(this.layoutCorrected, this.treeScale, this.path, !!this.resumingFrom || this !== v);
|
3047
3047
|
var c = v.target;
|
3048
3048
|
if (c) {
|
3049
|
-
this.projectionDelta || (this.projectionDelta =
|
3049
|
+
this.projectionDelta || (this.projectionDelta = It(), this.projectionDeltaWithTransform = It());
|
3050
3050
|
var d = this.treeScale.x, p = this.treeScale.y, h = this.projectionTransform;
|
3051
|
-
|
3051
|
+
Dt(this.projectionDelta, this.layoutCorrected, c, this.latestValues), this.projectionTransform = _r(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
3052
|
}
|
3053
3053
|
}
|
3054
3054
|
}, o.prototype.hide = function() {
|
@@ -3061,17 +3061,17 @@ function Jn(t) {
|
|
3061
3061
|
}, o.prototype.setAnimationOrigin = function(a, u) {
|
3062
3062
|
var l = this, f;
|
3063
3063
|
u === void 0 && (u = !1);
|
3064
|
-
var v = this.snapshot, c = v?.latestValues || {}, d = m({}, this.latestValues), p =
|
3064
|
+
var v = this.snapshot, c = v?.latestValues || {}, d = m({}, this.latestValues), p = It();
|
3065
3065
|
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(
|
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(_s));
|
3067
3067
|
this.animationProgress = 0, this.mixTargetDelta = function(S) {
|
3068
3068
|
var C, A = S / 1e3;
|
3069
|
-
zr(p.x, a.x, A), zr(p.y, a.y, A), l.setTargetDelta(p), l.relativeTarget && l.relativeTargetOrigin && l.layout && (!((C = l.relativeParent) === null || C === void 0) && C.layout) && (
|
3069
|
+
zr(p.x, a.x, A), zr(p.y, a.y, A), l.setTargetDelta(p), l.relativeTarget && l.relativeTargetOrigin && l.layout && (!((C = l.relativeParent) === null || C === void 0) && C.layout) && (Mt(h, l.layout.actual, l.relativeParent.layout.actual), Us(l.relativeTarget, l.relativeTargetOrigin, h, A)), g && (l.animationValues = d, bs(d, c, l.latestValues, A, P, b)), l.root.scheduleUpdateProjection(), l.scheduleRender(), l.animationProgress = A;
|
3070
3070
|
}, this.mixTargetDelta(0);
|
3071
3071
|
}, o.prototype.startAnimation = function(a) {
|
3072
3072
|
var u = this, l, f;
|
3073
|
-
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 && (
|
3074
|
-
|
3073
|
+
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 = gs(0, Nr, m(m({}, a), { onUpdate: function(v) {
|
3075
3075
|
var c;
|
3076
3076
|
u.mixTargetDelta(v), (c = a.onUpdate) === null || c === void 0 || c.call(a, v);
|
3077
3077
|
}, onComplete: function() {
|
@@ -3087,10 +3087,10 @@ function Jn(t) {
|
|
3087
3087
|
this.currentAnimation && ((a = this.mixTargetDelta) === null || a === void 0 || a.call(this, Nr), this.currentAnimation.stop()), this.completeAnimation();
|
3088
3088
|
}, o.prototype.applyTransformsToTarget = function() {
|
3089
3089
|
var a = this.getLead(), u = a.targetWithTransforms, l = a.target, f = a.layout, v = a.latestValues;
|
3090
|
-
!u || !l || !f || (Y(u, l), yt(u, v),
|
3090
|
+
!u || !l || !f || (Y(u, l), yt(u, v), Dt(this.projectionDeltaWithTransform, this.layoutCorrected, u, v));
|
3091
3091
|
}, o.prototype.registerSharedNode = function(a, u) {
|
3092
3092
|
var l, f, v;
|
3093
|
-
this.sharedNodes.has(a) || this.sharedNodes.set(a, new
|
3093
|
+
this.sharedNodes.has(a) || this.sharedNodes.set(a, new Cs());
|
3094
3094
|
var c = this.sharedNodes.get(a);
|
3095
3095
|
c.add(u), u.promote({
|
3096
3096
|
transition: (l = u.options.initialPromotionConfig) === null || l === void 0 ? void 0 : l.transition,
|
@@ -3141,26 +3141,26 @@ function Jn(t) {
|
|
3141
3141
|
return { visibility: "hidden" };
|
3142
3142
|
var h = (u = this.options.visualElement) === null || u === void 0 ? void 0 : u.getProps().transformTemplate;
|
3143
3143
|
if (this.needsReset)
|
3144
|
-
return this.needsReset = !1, p.opacity = "", p.pointerEvents =
|
3144
|
+
return this.needsReset = !1, p.opacity = "", p.pointerEvents = Zt(a.pointerEvents) || "", p.transform = h ? h(this.latestValues, "") : "none", p;
|
3145
3145
|
var g = this.getLead();
|
3146
3146
|
if (!this.projectionDelta || !this.layout || !g.target) {
|
3147
3147
|
var b = {};
|
3148
|
-
return this.options.layoutId && (b.opacity = (l = this.latestValues.opacity) !== null && l !== void 0 ? l : 1, b.pointerEvents =
|
3148
|
+
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
3149
|
}
|
3150
3150
|
var P = g.animationValues || g.latestValues;
|
3151
3151
|
this.applyTransformsToTarget(), p.transform = _r(this.projectionDeltaWithTransform, this.treeScale, P), h && (p.transform = h(P, p.transform));
|
3152
3152
|
var S = this.projectionDelta, C = S.x, A = S.y;
|
3153
3153
|
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
|
-
for (var I in
|
3154
|
+
for (var I in $t)
|
3155
3155
|
if (P[I] !== void 0) {
|
3156
|
-
var R =
|
3156
|
+
var R = $t[I], x = R.correct, w = R.applyTo, D = x(P[I], g);
|
3157
3157
|
if (w)
|
3158
3158
|
for (var z = w.length, B = 0; B < z; B++)
|
3159
3159
|
p[w[B]] = D;
|
3160
3160
|
else
|
3161
3161
|
p[I] = D;
|
3162
3162
|
}
|
3163
|
-
return this.options.layoutId && (p.pointerEvents = g === this ?
|
3163
|
+
return this.options.layoutId && (p.pointerEvents = g === this ? Zt(a.pointerEvents) || "" : "none"), p;
|
3164
3164
|
}, o.prototype.clearSnapshot = function() {
|
3165
3165
|
this.resumeFrom = this.snapshot = void 0;
|
3166
3166
|
}, o.prototype.resetTree = function() {
|
@@ -3172,32 +3172,32 @@ function Jn(t) {
|
|
3172
3172
|
}()
|
3173
3173
|
);
|
3174
3174
|
}
|
3175
|
-
function
|
3175
|
+
function Ls(t) {
|
3176
3176
|
t.updateLayout();
|
3177
3177
|
}
|
3178
|
-
function
|
3178
|
+
function Rs(t) {
|
3179
3179
|
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
3180
|
if (t.isLead() && t.layout && s && t.hasListeners("didUpdate")) {
|
3181
3181
|
var o = t.layout, a = o.actual, u = o.measured;
|
3182
|
-
t.options.animationType === "size" ?
|
3182
|
+
t.options.animationType === "size" ? J(function(P) {
|
3183
3183
|
var S = s.isShared ? s.measured[P] : s.layout[P], C = et(S);
|
3184
3184
|
S.min = a[P].min, S.max = S.min + C;
|
3185
|
-
}) : t.options.animationType === "position" &&
|
3185
|
+
}) : t.options.animationType === "position" && J(function(P) {
|
3186
3186
|
var S = s.isShared ? s.measured[P] : s.layout[P], C = et(a[P]);
|
3187
3187
|
S.max = S.min + C;
|
3188
3188
|
});
|
3189
|
-
var l =
|
3190
|
-
|
3191
|
-
var f =
|
3192
|
-
s.isShared ?
|
3193
|
-
var v =
|
3189
|
+
var l = It();
|
3190
|
+
Dt(l, a, s.layout);
|
3191
|
+
var f = It();
|
3192
|
+
s.isShared ? Dt(f, t.applyTransform(u, !0), s.measured) : Dt(f, a, s.layout);
|
3193
|
+
var v = !qn(l), c = !1;
|
3194
3194
|
if (!t.resumeFrom && (t.relativeParent = t.getClosestProjectingParent(), t.relativeParent && !t.relativeParent.resumeFrom)) {
|
3195
3195
|
var d = t.relativeParent, p = d.snapshot, h = d.layout;
|
3196
3196
|
if (p && h) {
|
3197
3197
|
var g = j();
|
3198
|
-
|
3198
|
+
Mt(g, s.layout, p.layout);
|
3199
3199
|
var b = j();
|
3200
|
-
|
3200
|
+
Mt(b, a, h.actual), Jn(g, b) || (c = !0);
|
3201
3201
|
}
|
3202
3202
|
}
|
3203
3203
|
t.notifyListeners("didUpdate", {
|
@@ -3211,29 +3211,29 @@ function Ls(t) {
|
|
3211
3211
|
} else t.isLead() && ((i = (n = t.options).onExitComplete) === null || i === void 0 || i.call(n));
|
3212
3212
|
t.options.transition = void 0;
|
3213
3213
|
}
|
3214
|
-
function
|
3214
|
+
function Ds(t) {
|
3215
3215
|
t.clearSnapshot();
|
3216
3216
|
}
|
3217
3217
|
function Hr(t) {
|
3218
3218
|
t.clearMeasurements();
|
3219
3219
|
}
|
3220
|
-
function
|
3220
|
+
function Ms(t) {
|
3221
3221
|
var e = t.options.visualElement;
|
3222
3222
|
e?.getProps().onBeforeLayoutMeasure && e.notifyBeforeLayoutMeasure(), t.resetTransform();
|
3223
3223
|
}
|
3224
|
-
function
|
3224
|
+
function Is(t) {
|
3225
3225
|
t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0;
|
3226
3226
|
}
|
3227
|
-
function
|
3227
|
+
function Os(t) {
|
3228
3228
|
t.resolveTargetDelta();
|
3229
3229
|
}
|
3230
|
-
function
|
3230
|
+
function Fs(t) {
|
3231
3231
|
t.calcProjection();
|
3232
3232
|
}
|
3233
|
-
function
|
3233
|
+
function js(t) {
|
3234
3234
|
t.resetRotation();
|
3235
3235
|
}
|
3236
|
-
function
|
3236
|
+
function Bs(t) {
|
3237
3237
|
t.removeLeadSnapshot();
|
3238
3238
|
}
|
3239
3239
|
function zr(t, e, r) {
|
@@ -3242,17 +3242,17 @@ function zr(t, e, r) {
|
|
3242
3242
|
function Kr(t, e, r, n) {
|
3243
3243
|
t.min = O(e.min, r.min, n), t.max = O(e.max, r.max, n);
|
3244
3244
|
}
|
3245
|
-
function
|
3245
|
+
function Us(t, e, r, n) {
|
3246
3246
|
Kr(t.x, e.x, r.x, n), Kr(t.y, e.y, r.y, n);
|
3247
3247
|
}
|
3248
|
-
function
|
3248
|
+
function _s(t) {
|
3249
3249
|
return t.animationValues && t.animationValues.opacityExit !== void 0;
|
3250
3250
|
}
|
3251
|
-
var
|
3251
|
+
var Ns = {
|
3252
3252
|
duration: 0.45,
|
3253
3253
|
ease: [0.4, 0, 0.1, 1]
|
3254
3254
|
};
|
3255
|
-
function
|
3255
|
+
function Hs(t, e) {
|
3256
3256
|
for (var r = t.root, n = t.path.length - 1; n >= 0; n--)
|
3257
3257
|
if (t.path[n].instance) {
|
3258
3258
|
r = t.path[n];
|
@@ -3267,7 +3267,7 @@ function Gr(t) {
|
|
3267
3267
|
function Yr(t) {
|
3268
3268
|
Gr(t.x), Gr(t.y);
|
3269
3269
|
}
|
3270
|
-
var
|
3270
|
+
var zs = Qn({
|
3271
3271
|
attachResizeListener: function(t, e) {
|
3272
3272
|
return ie(t, "resize", e);
|
3273
3273
|
},
|
@@ -3282,7 +3282,7 @@ var Hs = Jn({
|
|
3282
3282
|
}
|
3283
3283
|
}), de = {
|
3284
3284
|
current: void 0
|
3285
|
-
},
|
3285
|
+
}, Ks = Qn({
|
3286
3286
|
measureScroll: function(t) {
|
3287
3287
|
return {
|
3288
3288
|
x: t.scrollLeft,
|
@@ -3291,7 +3291,7 @@ var Hs = Jn({
|
|
3291
3291
|
},
|
3292
3292
|
defaultParent: function() {
|
3293
3293
|
if (!de.current) {
|
3294
|
-
var t = new
|
3294
|
+
var t = new zs(0, {});
|
3295
3295
|
t.mount(window), t.setOptions({ layoutScroll: !0 }), de.current = t;
|
3296
3296
|
}
|
3297
3297
|
return de.current;
|
@@ -3302,19 +3302,19 @@ var Hs = Jn({
|
|
3302
3302
|
checkIsScrollRoot: function(t) {
|
3303
3303
|
return window.getComputedStyle(t).position === "fixed";
|
3304
3304
|
}
|
3305
|
-
}),
|
3306
|
-
return
|
3305
|
+
}), Gs = m(m(m(m({}, Co), Ka), ko), ms), ru = /* @__PURE__ */ Wi(function(t, e) {
|
3306
|
+
return Ta(t, e, Gs, cs, Ks);
|
3307
3307
|
});
|
3308
|
-
function
|
3309
|
-
var t =
|
3310
|
-
return
|
3308
|
+
function ti() {
|
3309
|
+
var t = $(!1);
|
3310
|
+
return Tt(function() {
|
3311
3311
|
return t.current = !0, function() {
|
3312
3312
|
t.current = !1;
|
3313
3313
|
};
|
3314
3314
|
}, []), t;
|
3315
3315
|
}
|
3316
|
-
function
|
3317
|
-
var t =
|
3316
|
+
function Ys() {
|
3317
|
+
var t = ti(), e = M(Re(0), 2), r = e[0], n = e[1], i = ye(function() {
|
3318
3318
|
t.current && n(r + 1);
|
3319
3319
|
}, [r]), s = ye(function() {
|
3320
3320
|
return Z.postRender(i);
|
@@ -3322,7 +3322,7 @@ function Gs() {
|
|
3322
3322
|
return [s, r];
|
3323
3323
|
}
|
3324
3324
|
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 = dt(
|
3325
|
+
var e = t.children, r = t.initial, n = t.isPresent, i = t.onExitComplete, s = t.custom, o = t.presenceAffectsLayout, a = dt(ks), u = Dn(), l = Vt(
|
3326
3326
|
function() {
|
3327
3327
|
return {
|
3328
3328
|
id: u,
|
@@ -3333,7 +3333,7 @@ var pe = function(t) {
|
|
3333
3333
|
var v, c;
|
3334
3334
|
a.set(f, !0);
|
3335
3335
|
try {
|
3336
|
-
for (var d =
|
3336
|
+
for (var d = Vi(a.values()), p = d.next(); !p.done; p = d.next()) {
|
3337
3337
|
var h = p.value;
|
3338
3338
|
if (!h)
|
3339
3339
|
return;
|
@@ -3363,38 +3363,38 @@ var pe = function(t) {
|
|
3363
3363
|
*/
|
3364
3364
|
o ? void 0 : [n]
|
3365
3365
|
);
|
3366
|
-
return
|
3366
|
+
return Vt(function() {
|
3367
3367
|
a.forEach(function(f, v) {
|
3368
3368
|
return a.set(v, !1);
|
3369
3369
|
});
|
3370
3370
|
}, [n]), G.useEffect(function() {
|
3371
3371
|
!n && !a.size && i?.();
|
3372
|
-
}, [n]), G.createElement(
|
3372
|
+
}, [n]), G.createElement(Nt.Provider, { value: l }, e);
|
3373
3373
|
};
|
3374
|
-
function
|
3374
|
+
function ks() {
|
3375
3375
|
return /* @__PURE__ */ new Map();
|
3376
3376
|
}
|
3377
3377
|
var mt = function(t) {
|
3378
3378
|
return t.key || "";
|
3379
3379
|
};
|
3380
|
-
function
|
3380
|
+
function Xs(t, e) {
|
3381
3381
|
t.forEach(function(r) {
|
3382
3382
|
var n = mt(r);
|
3383
3383
|
e.set(n, r);
|
3384
3384
|
});
|
3385
3385
|
}
|
3386
|
-
function
|
3386
|
+
function Ws(t) {
|
3387
3387
|
var e = [];
|
3388
|
-
return
|
3389
|
-
|
3388
|
+
return wi.forEach(t, function(r) {
|
3389
|
+
Ei(r) && e.push(r);
|
3390
3390
|
}), e;
|
3391
3391
|
}
|
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 = M(
|
3392
|
+
var nu = function(t) {
|
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 = M(Ys(), 1), f = l[0], v = F(Me).forceRender;
|
3394
3394
|
v && (f = v);
|
3395
|
-
var c =
|
3396
|
-
if (
|
3397
|
-
P.current = !1,
|
3395
|
+
var c = ti(), d = Ws(e), p = d, h = /* @__PURE__ */ new Set(), g = $(p), b = $(/* @__PURE__ */ new Map()).current, P = $(!0);
|
3396
|
+
if (Tt(function() {
|
3397
|
+
P.current = !1, Xs(d, b), g.current = p;
|
3398
3398
|
}), Ne(function() {
|
3399
3399
|
P.current = !0, b.clear(), h.clear();
|
3400
3400
|
}), P.current)
|
@@ -3428,13 +3428,13 @@ var ru = function(t) {
|
|
3428
3428
|
var w = x.key;
|
3429
3429
|
return h.has(w) ? x : G.createElement(pe, { key: mt(x), isPresent: !0, presenceAffectsLayout: u }, x);
|
3430
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."), G.createElement(G.Fragment, null, h.size ? p : p.map(function(x) {
|
3431
|
-
return
|
3431
|
+
return Ai(x);
|
3432
3432
|
}));
|
3433
3433
|
};
|
3434
|
-
function
|
3434
|
+
function ei(t) {
|
3435
3435
|
var e = dt(function() {
|
3436
3436
|
return vt(t);
|
3437
|
-
}), r = F(
|
3437
|
+
}), r = F(_t).isStatic;
|
3438
3438
|
if (r) {
|
3439
3439
|
var n = M(Re(t), 2), i = n[1];
|
3440
3440
|
H(function() {
|
@@ -3451,11 +3451,17 @@ var Zs = function(t) {
|
|
3451
3451
|
function qs() {
|
3452
3452
|
for (var t = [], e = 0; e < arguments.length; e++)
|
3453
3453
|
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 =
|
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 = Ti(s, o, m({ mixer: $s(o[0]) }, a));
|
3455
3455
|
return r ? u(i) : u;
|
3456
3456
|
}
|
3457
3457
|
function Js(t, e) {
|
3458
|
-
|
3458
|
+
Tt(function() {
|
3459
|
+
if (q(t))
|
3460
|
+
return t.onChange(e);
|
3461
|
+
}, [e]);
|
3462
|
+
}
|
3463
|
+
function Qs(t, e) {
|
3464
|
+
Tt(function() {
|
3459
3465
|
var r = t.map(function(n) {
|
3460
3466
|
return n.onChange(e);
|
3461
3467
|
});
|
@@ -3466,15 +3472,15 @@ function Js(t, e) {
|
|
3466
3472
|
};
|
3467
3473
|
});
|
3468
3474
|
}
|
3469
|
-
function
|
3470
|
-
var r =
|
3475
|
+
function ri(t, e) {
|
3476
|
+
var r = ei(e()), n = function() {
|
3471
3477
|
return r.set(e());
|
3472
3478
|
};
|
3473
|
-
return n(),
|
3479
|
+
return n(), Qs(t, function() {
|
3474
3480
|
return Z.update(n, !1, !0);
|
3475
3481
|
}), r;
|
3476
3482
|
}
|
3477
|
-
function
|
3483
|
+
function iu(t, e, r, n) {
|
3478
3484
|
var i = typeof e == "function" ? e : qs(e, r, n);
|
3479
3485
|
return Array.isArray(t) ? kr(t, i) : kr([t], function(s) {
|
3480
3486
|
var o = M(s, 1), a = o[0];
|
@@ -3485,14 +3491,14 @@ function kr(t, e) {
|
|
3485
3491
|
var r = dt(function() {
|
3486
3492
|
return [];
|
3487
3493
|
});
|
3488
|
-
return
|
3494
|
+
return ri(t, function() {
|
3489
3495
|
r.length = 0;
|
3490
3496
|
for (var n = t.length, i = 0; i < n; i++)
|
3491
3497
|
r[i] = t[i].get();
|
3492
3498
|
return e(r);
|
3493
3499
|
});
|
3494
3500
|
}
|
3495
|
-
function
|
3501
|
+
function au(t) {
|
3496
3502
|
for (var e = [], r = 1; r < arguments.length; r++)
|
3497
3503
|
e[r - 1] = arguments[r];
|
3498
3504
|
var n = t.length;
|
@@ -3504,13 +3510,25 @@ function iu(t) {
|
|
3504
3510
|
}
|
3505
3511
|
return s;
|
3506
3512
|
}
|
3507
|
-
return
|
3513
|
+
return ri(e, i);
|
3514
|
+
}
|
3515
|
+
function ou(t, e) {
|
3516
|
+
e === void 0 && (e = {});
|
3517
|
+
var r = F(_t).isStatic, n = $(null), i = ei(q(t) ? t.get() : t);
|
3518
|
+
return Vt(function() {
|
3519
|
+
return i.attach(function(s, o) {
|
3520
|
+
return r ? o(s) : (n.current && n.current.stop(), n.current = Jr(m(m({ from: i.get(), to: s, velocity: i.getVelocity() }, e), { onUpdate: o })), i.get());
|
3521
|
+
});
|
3522
|
+
}, [JSON.stringify(e)]), Js(t, function(s) {
|
3523
|
+
return i.set(parseFloat(s));
|
3524
|
+
}), i;
|
3508
3525
|
}
|
3509
3526
|
export {
|
3510
|
-
|
3511
|
-
|
3512
|
-
|
3513
|
-
|
3514
|
-
|
3515
|
-
|
3527
|
+
nu as A,
|
3528
|
+
gs as a,
|
3529
|
+
iu as b,
|
3530
|
+
au as c,
|
3531
|
+
ou as d,
|
3532
|
+
ru as m,
|
3533
|
+
ei as u
|
3516
3534
|
};
|