@devtron-labs/devtron-fe-common-lib 1.15.3-pre-2 → 1.15.3-pre-4

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