@ukpc-lib/react 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,49 +1,25 @@
1
1
  import "../index.css";
2
- import Xe, { jsxs as I, jsx as T, Fragment as Ao } from "react/jsx-runtime";
2
+ import Xe, { jsxs as O, jsx as T, Fragment as Ao } from "react/jsx-runtime";
3
3
  import * as R from "react";
4
- import zs, { useState as ot, useRef as St, useEffect as Wt, createContext as Mt, useLayoutEffect as Ws, useContext as N, useInsertionEffect as So, useCallback as Vo, useMemo as fe, forwardRef as Co, createElement as $s, useId as Mo } from "react";
5
- import { g as Do, a as Ro, s as _o, c as jt, u as Lo, _ as Eo, b as Be, d as ko, P as D, e as Bo, C as Io, r as Fo, f as Oo } from "../styled-f324a192.js";
6
- import { createPortal as jo } from "react-dom";
7
- import { BrowserRouter as No, useLocation as Uo, Link as zo } from "react-router-dom";
8
- import Wo from "axios";
9
- const $o = "_container_de8pp_1", Go = "_fixed_de8pp_1", Ho = "_relative_de8pp_1", qo = "_flex_de8pp_1", Ko = "_hidden_de8pp_1", Yo = "_filter_de8pp_1", Xo = "_transition_de8pp_1", Qo = "_avartarDropdownMenu_de8pp_9", Zo = "_navbar_de8pp_13", Jo = "_userContainer_de8pp_25", tr = "_userFullName_de8pp_29", er = "_userAvatar_de8pp_33", G = {
10
- container: $o,
11
- fixed: Go,
12
- relative: Ho,
13
- "mb-10": "_mb-10_de8pp_1",
14
- "ml-3": "_ml-3_de8pp_1",
15
- "mt-10": "_mt-10_de8pp_1",
16
- "mt-6": "_mt-6_de8pp_1",
17
- flex: qo,
18
- hidden: Ko,
19
- "h-[70px]": "_h-[70px]_de8pp_1",
20
- "h-[8px]": "_h-[8px]_de8pp_1",
21
- "h-screen": "_h-screen_de8pp_1",
22
- "min-h-[1000px]": "_min-h-[1000px]_de8pp_1",
23
- "w-full": "_w-full_de8pp_1",
24
- "flex-1": "_flex-1_de8pp_1",
25
- "cursor-pointer": "_cursor-pointer_de8pp_1",
26
- "flex-col": "_flex-col_de8pp_1",
27
- "overflow-auto": "_overflow-auto_de8pp_1",
28
- "overflow-hidden": "_overflow-hidden_de8pp_1",
29
- "overflow-y-auto": "_overflow-y-auto_de8pp_1",
30
- "overflow-x-hidden": "_overflow-x-hidden_de8pp_1",
31
- "bg-gray-100": "_bg-gray-100_de8pp_1",
32
- "text-sm": "_text-sm_de8pp_1",
33
- "text-white": "_text-white_de8pp_1",
34
- filter: Yo,
35
- transition: Xo,
36
- "avatar-dropdown-item": "_avatar-dropdown-item_de8pp_5",
37
- avartarDropdownMenu: Qo,
38
- navbar: Zo,
39
- "navbar-container": "_navbar-container_de8pp_17",
40
- "right-side-container": "_right-side-container_de8pp_21",
41
- userContainer: Jo,
42
- userFullName: tr,
43
- userAvatar: er
4
+ import zs, { useState as ot, useRef as St, useEffect as Wt, createContext as Mt, useLayoutEffect as Ws, useContext as U, useInsertionEffect as So, useCallback as Vo, useMemo as he, forwardRef as Co, createElement as Gs, useId as Mo } from "react";
5
+ import { g as Do, a as Ro, s as Lo, c as Nt, u as Eo, _ as ko, b as Ie, d as Bo, P as D, e as Io, C as Fo, r as Oo, f as jo } from "../styled-f324a192.js";
6
+ import { createPortal as No } from "react-dom";
7
+ import { useLocation as Uo, Link as _o } from "react-router-dom";
8
+ import zo from "axios";
9
+ const Wo = "_avartarDropdownMenu_zliwx_13", Go = "_navbar_zliwx_25", $o = "_userContainer_zliwx_53", Ho = "_userFullName_zliwx_59", qo = "_userAvatar_zliwx_66", Ko = "_relative_zliwx_74", $ = {
10
+ "avatar-dropdown-item": "_avatar-dropdown-item_zliwx_1",
11
+ avartarDropdownMenu: Wo,
12
+ navbar: Go,
13
+ "navbar-container": "_navbar-container_zliwx_36",
14
+ "right-side-container": "_right-side-container_zliwx_44",
15
+ userContainer: $o,
16
+ userFullName: Ho,
17
+ userAvatar: qo,
18
+ relative: Ko,
19
+ "cursor-pointer": "_cursor-pointer_zliwx_78"
44
20
  };
45
- function nr() {
46
- return /* @__PURE__ */ I(
21
+ function Yo() {
22
+ return /* @__PURE__ */ O(
47
23
  "svg",
48
24
  {
49
25
  width: "24",
@@ -79,8 +55,8 @@ function nr() {
79
55
  }
80
56
  );
81
57
  }
82
- function sr() {
83
- return /* @__PURE__ */ I(
58
+ function Xo() {
59
+ return /* @__PURE__ */ O(
84
60
  "svg",
85
61
  {
86
62
  xmlns: "http://www.w3.org/2000/svg",
@@ -134,41 +110,17 @@ function sr() {
134
110
  }
135
111
  );
136
112
  }
137
- const ir = "data:image/png;base64,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", or = "_container_14n48_1", rr = "_fixed_14n48_1", ar = "_relative_14n48_1", lr = "_flex_14n48_1", cr = "_hidden_14n48_1", ur = "_filter_14n48_1", fr = "_transition_14n48_1", Q = {
138
- container: or,
139
- fixed: rr,
140
- relative: ar,
141
- "mb-10": "_mb-10_14n48_1",
142
- "ml-3": "_ml-3_14n48_1",
143
- "mt-10": "_mt-10_14n48_1",
144
- "mt-6": "_mt-6_14n48_1",
145
- flex: lr,
146
- hidden: cr,
147
- "h-[70px]": "_h-[70px]_14n48_1",
148
- "h-[8px]": "_h-[8px]_14n48_1",
149
- "h-screen": "_h-screen_14n48_1",
150
- "min-h-[1000px]": "_min-h-[1000px]_14n48_1",
151
- "w-full": "_w-full_14n48_1",
152
- "flex-1": "_flex-1_14n48_1",
153
- "cursor-pointer": "_cursor-pointer_14n48_1",
154
- "flex-col": "_flex-col_14n48_1",
155
- "overflow-auto": "_overflow-auto_14n48_1",
156
- "overflow-hidden": "_overflow-hidden_14n48_1",
157
- "overflow-y-auto": "_overflow-y-auto_14n48_1",
158
- "overflow-x-hidden": "_overflow-x-hidden_14n48_1",
159
- "bg-gray-100": "_bg-gray-100_14n48_1",
160
- "text-sm": "_text-sm_14n48_1",
161
- "text-white": "_text-white_14n48_1",
162
- filter: ur,
163
- transition: fr,
164
- "modal-overlay": "_modal-overlay_14n48_5",
165
- "modal-title": "_modal-title_14n48_9",
166
- "modal-footer": "_modal-footer_14n48_13",
167
- "modal-container": "_modal-container_14n48_17",
168
- "modal-button": "_modal-button_14n48_35",
169
- "confirm-btn": "_confirm-btn_14n48_43"
113
+ const Qo = "data:image/png;base64,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", Q = {
114
+ "modal-overlay": "_modal-overlay_10n3k_1",
115
+ "modal-title": "_modal-title_10n3k_12",
116
+ "modal-footer": "_modal-footer_10n3k_19",
117
+ "modal-container": "_modal-container_10n3k_25",
118
+ "modal-button": "_modal-button_10n3k_43",
119
+ "confirm-btn": "_confirm-btn_10n3k_51",
120
+ "text-white": "_text-white_10n3k_55",
121
+ "text-sm": "_text-sm_10n3k_59"
170
122
  };
171
- function Gs({
123
+ function $s({
172
124
  isOpen: t,
173
125
  onClose: e,
174
126
  onConfirm: n
@@ -185,10 +137,10 @@ function Gs({
185
137
  onClick: s,
186
138
  className: Q["modal-overlay"],
187
139
  id: "modal-wrapper",
188
- children: /* @__PURE__ */ I("div", { className: Q["modal-container"], children: [
140
+ children: /* @__PURE__ */ O("div", { className: Q["modal-container"], children: [
189
141
  /* @__PURE__ */ T("h3", { className: Q["modal-title"], children: "Log out" }),
190
142
  /* @__PURE__ */ T("p", { className: Q["text-sm"], children: "Are you sure want to log out?" }),
191
- /* @__PURE__ */ I("div", { className: Q["modal-footer"], children: [
143
+ /* @__PURE__ */ O("div", { className: Q["modal-footer"], children: [
192
144
  /* @__PURE__ */ T("button", { className: Q["modal-button"], onClick: e, children: "Cancel" }),
193
145
  /* @__PURE__ */ T(
194
146
  "button",
@@ -203,31 +155,33 @@ function Gs({
203
155
  }
204
156
  );
205
157
  }
206
- function yf({
158
+ function nh({
207
159
  logo: t,
208
160
  user: e,
209
- baseUrl: n
161
+ baseUrl: n,
162
+ style: s,
163
+ classNames: i = ""
210
164
  }) {
211
- const s = t || "/public/assets/icons/logo-header.png";
212
- return /* @__PURE__ */ T("nav", { className: G.navbar, children: /* @__PURE__ */ I("div", { className: G["navbar-container"], children: [
213
- /* @__PURE__ */ T("img", { src: s, alt: "logo-header" }),
214
- /* @__PURE__ */ I("div", { className: G["right-side-container"], children: [
215
- /* @__PURE__ */ I("div", { className: G.userContainer, children: [
165
+ const r = t || "/public/assets/icons/logo-header.png";
166
+ return /* @__PURE__ */ T("nav", { className: `${$.navbar} ${i}`, style: s, children: /* @__PURE__ */ O("div", { className: $["navbar-container"], children: [
167
+ /* @__PURE__ */ T("img", { src: r, alt: "logo-header" }),
168
+ /* @__PURE__ */ O("div", { className: $["right-side-container"], children: [
169
+ /* @__PURE__ */ O("div", { className: $.userContainer, children: [
216
170
  /* @__PURE__ */ T(
217
171
  "p",
218
172
  {
219
- className: G.userFullName,
173
+ className: $.userFullName,
220
174
  children: `${e == null ? void 0 : e.firstName} ${e == null ? void 0 : e.lastName}`
221
175
  }
222
176
  ),
223
- /* @__PURE__ */ T(hr, { baseUrl: n, avatarUrl: e == null ? void 0 : e.avatarUrl })
177
+ /* @__PURE__ */ T(Zo, { baseUrl: n, avatarUrl: e == null ? void 0 : e.avatarUrl })
224
178
  ] }),
225
- /* @__PURE__ */ T("span", { className: G["cursor-pointer"], children: /* @__PURE__ */ T(nr, {}) }),
226
- /* @__PURE__ */ T("span", { className: G["cursor-pointer"], children: /* @__PURE__ */ T(sr, {}) })
179
+ /* @__PURE__ */ T("span", { className: $["cursor-pointer"], children: /* @__PURE__ */ T(Yo, {}) }),
180
+ /* @__PURE__ */ T("span", { className: $["cursor-pointer"], children: /* @__PURE__ */ T(Xo, {}) })
227
181
  ] })
228
182
  ] }) });
229
183
  }
230
- function hr({
184
+ function Zo({
231
185
  avatarUrl: t,
232
186
  baseUrl: e
233
187
  }) {
@@ -239,32 +193,32 @@ function hr({
239
193
  u.target !== a.current && u.target !== o.current && s(!1);
240
194
  }
241
195
  return window.addEventListener("click", c), () => window.removeEventListener("click", c);
242
- }, []), /* @__PURE__ */ I(Ao, { children: [
243
- /* @__PURE__ */ I("div", { className: G.relative, children: [
196
+ }, []), /* @__PURE__ */ O(Ao, { children: [
197
+ /* @__PURE__ */ O("div", { className: $.relative, children: [
244
198
  /* @__PURE__ */ T(
245
199
  "img",
246
200
  {
247
201
  ref: o,
248
202
  onClick: () => s((c) => !c),
249
203
  alt: "user avatar",
250
- className: G.userAvatar,
251
- src: t || ir
204
+ className: $.userAvatar,
205
+ src: t || Qo
252
206
  }
253
207
  ),
254
- n && /* @__PURE__ */ T("div", { ref: a, className: G.avartarDropdownMenu, children: /* @__PURE__ */ I("ul", { children: [
255
- /* @__PURE__ */ T("li", { className: G["avatar-dropdown-item"], children: "Profile" }),
208
+ n && /* @__PURE__ */ T("div", { ref: a, className: $.avartarDropdownMenu, children: /* @__PURE__ */ O("ul", { children: [
209
+ /* @__PURE__ */ T("li", { className: $["avatar-dropdown-item"], children: "Profile" }),
256
210
  /* @__PURE__ */ T(
257
211
  "li",
258
212
  {
259
213
  onClick: () => r(!0),
260
- className: G["avatar-dropdown-item"],
214
+ className: $["avatar-dropdown-item"],
261
215
  children: "Logout"
262
216
  }
263
217
  )
264
218
  ] }) })
265
219
  ] }),
266
220
  /* @__PURE__ */ T(
267
- Gs,
221
+ $s,
268
222
  {
269
223
  isOpen: i,
270
224
  onClose: () => r(!1),
@@ -283,13 +237,13 @@ var Qe = {}, Hs = { exports: {} };
283
237
  t.exports = e, t.exports.__esModule = !0, t.exports.default = t.exports;
284
238
  })(Hs);
285
239
  var Ze = Hs.exports, we = {};
286
- function dr(...t) {
240
+ function Jo(...t) {
287
241
  return t.reduce((e, n) => n == null ? e : function(...i) {
288
242
  e.apply(this, i), n.apply(this, i);
289
243
  }, () => {
290
244
  });
291
245
  }
292
- function pr(t, e = 166) {
246
+ function tr(t, e = 166) {
293
247
  let n;
294
248
  function s(...i) {
295
249
  const r = () => {
@@ -301,13 +255,13 @@ function pr(t, e = 166) {
301
255
  clearTimeout(n);
302
256
  }, s;
303
257
  }
304
- function mr(t, e) {
258
+ function er(t, e) {
305
259
  return process.env.NODE_ENV === "production" ? () => null : (n, s, i, r, o) => {
306
260
  const a = i || "<<anonymous>>", l = o || s;
307
261
  return typeof n[s] < "u" ? new Error(`The ${r} \`${l}\` of \`${a}\` is deprecated. ${e}`) : null;
308
262
  };
309
263
  }
310
- function gr(t, e) {
264
+ function nr(t, e) {
311
265
  var n, s;
312
266
  return /* @__PURE__ */ R.isValidElement(t) && e.indexOf(
313
267
  // For server components `muiName` is avaialble in element.type._payload.value.muiName
@@ -319,35 +273,35 @@ function gr(t, e) {
319
273
  function qs(t) {
320
274
  return t && t.ownerDocument || document;
321
275
  }
322
- function yr(t) {
276
+ function sr(t) {
323
277
  return qs(t).defaultView || window;
324
278
  }
325
279
  function Ks(t, e) {
326
280
  typeof t == "function" ? t(e) : t && (t.current = e);
327
281
  }
328
- const vr = typeof window < "u" ? R.useLayoutEffect : R.useEffect, Ys = vr;
329
- let _n = 0;
330
- function xr(t) {
282
+ const ir = typeof window < "u" ? R.useLayoutEffect : R.useEffect, Ys = ir;
283
+ let Ln = 0;
284
+ function or(t) {
331
285
  const [e, n] = R.useState(t), s = t || e;
332
286
  return R.useEffect(() => {
333
- e == null && (_n += 1, n(`mui-${_n}`));
287
+ e == null && (Ln += 1, n(`mui-${Ln}`));
334
288
  }, [e]), s;
335
289
  }
336
- const Ln = R["useId".toString()];
337
- function br(t) {
338
- if (Ln !== void 0) {
339
- const e = Ln();
290
+ const En = R["useId".toString()];
291
+ function rr(t) {
292
+ if (En !== void 0) {
293
+ const e = En();
340
294
  return t ?? e;
341
295
  }
342
- return xr(t);
296
+ return or(t);
343
297
  }
344
- function wr(t, e, n, s, i) {
298
+ function ar(t, e, n, s, i) {
345
299
  if (process.env.NODE_ENV === "production")
346
300
  return null;
347
301
  const r = i || e;
348
302
  return typeof t[e] < "u" ? new Error(`The prop \`${r}\` is not supported. Please remove it.`) : null;
349
303
  }
350
- function Tr({
304
+ function lr({
351
305
  controlled: t,
352
306
  default: e,
353
307
  name: n,
@@ -374,7 +328,7 @@ function Tr({
374
328
  }, []);
375
329
  return [a, l];
376
330
  }
377
- function Pr(t) {
331
+ function cr(t) {
378
332
  const e = R.useRef(t);
379
333
  return Ys(() => {
380
334
  e.current = t;
@@ -383,15 +337,15 @@ function Pr(t) {
383
337
  (0, e.current)(...n)
384
338
  )).current;
385
339
  }
386
- function Ar(...t) {
340
+ function ur(...t) {
387
341
  return R.useMemo(() => t.every((e) => e == null) ? null : (e) => {
388
342
  t.forEach((n) => {
389
343
  Ks(n, e);
390
344
  });
391
345
  }, t);
392
346
  }
393
- let he = !0, Ie = !1, En;
394
- const Sr = {
347
+ let fe = !0, Fe = !1, kn;
348
+ const hr = {
395
349
  text: !0,
396
350
  search: !0,
397
351
  url: !0,
@@ -406,26 +360,26 @@ const Sr = {
406
360
  datetime: !0,
407
361
  "datetime-local": !0
408
362
  };
409
- function Vr(t) {
363
+ function fr(t) {
410
364
  const {
411
365
  type: e,
412
366
  tagName: n
413
367
  } = t;
414
- return !!(n === "INPUT" && Sr[e] && !t.readOnly || n === "TEXTAREA" && !t.readOnly || t.isContentEditable);
368
+ return !!(n === "INPUT" && hr[e] && !t.readOnly || n === "TEXTAREA" && !t.readOnly || t.isContentEditable);
415
369
  }
416
- function Cr(t) {
417
- t.metaKey || t.altKey || t.ctrlKey || (he = !0);
370
+ function dr(t) {
371
+ t.metaKey || t.altKey || t.ctrlKey || (fe = !0);
418
372
  }
419
373
  function Te() {
420
- he = !1;
374
+ fe = !1;
421
375
  }
422
- function Mr() {
423
- this.visibilityState === "hidden" && Ie && (he = !0);
376
+ function mr() {
377
+ this.visibilityState === "hidden" && Fe && (fe = !0);
424
378
  }
425
- function Dr(t) {
426
- t.addEventListener("keydown", Cr, !0), t.addEventListener("mousedown", Te, !0), t.addEventListener("pointerdown", Te, !0), t.addEventListener("touchstart", Te, !0), t.addEventListener("visibilitychange", Mr, !0);
379
+ function pr(t) {
380
+ t.addEventListener("keydown", dr, !0), t.addEventListener("mousedown", Te, !0), t.addEventListener("pointerdown", Te, !0), t.addEventListener("touchstart", Te, !0), t.addEventListener("visibilitychange", mr, !0);
427
381
  }
428
- function Rr(t) {
382
+ function gr(t) {
429
383
  const {
430
384
  target: e
431
385
  } = t;
@@ -433,19 +387,19 @@ function Rr(t) {
433
387
  return e.matches(":focus-visible");
434
388
  } catch {
435
389
  }
436
- return he || Vr(e);
390
+ return fe || fr(e);
437
391
  }
438
- function _r() {
392
+ function yr() {
439
393
  const t = R.useCallback((i) => {
440
- i != null && Dr(i.ownerDocument);
394
+ i != null && pr(i.ownerDocument);
441
395
  }, []), e = R.useRef(!1);
442
396
  function n() {
443
- return e.current ? (Ie = !0, window.clearTimeout(En), En = window.setTimeout(() => {
444
- Ie = !1;
397
+ return e.current ? (Fe = !0, window.clearTimeout(kn), kn = window.setTimeout(() => {
398
+ Fe = !1;
445
399
  }, 100), e.current = !1, !0) : !1;
446
400
  }
447
401
  function s(i) {
448
- return Rr(i) ? (e.current = !0, !0) : !1;
402
+ return gr(i) ? (e.current = !0, !0) : !1;
449
403
  }
450
404
  return {
451
405
  isFocusVisibleRef: e,
@@ -454,33 +408,33 @@ function _r() {
454
408
  ref: t
455
409
  };
456
410
  }
457
- function Lr(t) {
411
+ function vr(t) {
458
412
  return Do("MuiSvgIcon", t);
459
413
  }
460
414
  Ro("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
461
- const Er = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], kr = (t) => {
415
+ const xr = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], br = (t) => {
462
416
  const {
463
417
  color: e,
464
418
  fontSize: n,
465
419
  classes: s
466
420
  } = t, i = {
467
- root: ["root", e !== "inherit" && `color${jt(e)}`, `fontSize${jt(n)}`]
421
+ root: ["root", e !== "inherit" && `color${Nt(e)}`, `fontSize${Nt(n)}`]
468
422
  };
469
- return Bo(i, Lr, s);
470
- }, Br = _o("svg", {
423
+ return Io(i, vr, s);
424
+ }, wr = Lo("svg", {
471
425
  name: "MuiSvgIcon",
472
426
  slot: "Root",
473
427
  overridesResolver: (t, e) => {
474
428
  const {
475
429
  ownerState: n
476
430
  } = t;
477
- return [e.root, n.color !== "inherit" && e[`color${jt(n.color)}`], e[`fontSize${jt(n.fontSize)}`]];
431
+ return [e.root, n.color !== "inherit" && e[`color${Nt(n.color)}`], e[`fontSize${Nt(n.fontSize)}`]];
478
432
  }
479
433
  })(({
480
434
  theme: t,
481
435
  ownerState: e
482
436
  }) => {
483
- var n, s, i, r, o, a, l, c, u, f, h, d, p;
437
+ var n, s, i, r, o, a, l, c, u, h, f, d, m;
484
438
  return {
485
439
  userSelect: "none",
486
440
  width: "1em",
@@ -500,14 +454,14 @@ const Er = ["children", "className", "color", "component", "fontSize", "htmlColo
500
454
  large: ((c = t.typography) == null || (u = c.pxToRem) == null ? void 0 : u.call(c, 35)) || "2.1875rem"
501
455
  }[e.fontSize],
502
456
  // TODO v5 deprecate, v6 remove for sx
503
- color: (f = (h = (t.vars || t).palette) == null || (h = h[e.color]) == null ? void 0 : h.main) != null ? f : {
457
+ color: (h = (f = (t.vars || t).palette) == null || (f = f[e.color]) == null ? void 0 : f.main) != null ? h : {
504
458
  action: (d = (t.vars || t).palette) == null || (d = d.action) == null ? void 0 : d.active,
505
- disabled: (p = (t.vars || t).palette) == null || (p = p.action) == null ? void 0 : p.disabled,
459
+ disabled: (m = (t.vars || t).palette) == null || (m = m.action) == null ? void 0 : m.disabled,
506
460
  inherit: void 0
507
461
  }[e.color]
508
462
  };
509
463
  }), Je = /* @__PURE__ */ R.forwardRef(function(e, n) {
510
- const s = Lo({
464
+ const s = Eo({
511
465
  props: e,
512
466
  name: "MuiSvgIcon"
513
467
  }), {
@@ -518,31 +472,31 @@ const Er = ["children", "className", "color", "component", "fontSize", "htmlColo
518
472
  fontSize: l = "medium",
519
473
  htmlColor: c,
520
474
  inheritViewBox: u = !1,
521
- titleAccess: f,
522
- viewBox: h = "0 0 24 24"
523
- } = s, d = Eo(s, Er), p = /* @__PURE__ */ R.isValidElement(i) && i.type === "svg", m = Be({}, s, {
475
+ titleAccess: h,
476
+ viewBox: f = "0 0 24 24"
477
+ } = s, d = ko(s, xr), m = /* @__PURE__ */ R.isValidElement(i) && i.type === "svg", p = Ie({}, s, {
524
478
  color: o,
525
479
  component: a,
526
480
  fontSize: l,
527
481
  instanceFontSize: e.fontSize,
528
482
  inheritViewBox: u,
529
- viewBox: h,
530
- hasSvgAsChild: p
483
+ viewBox: f,
484
+ hasSvgAsChild: m
531
485
  }), v = {};
532
- u || (v.viewBox = h);
533
- const b = kr(m);
534
- return /* @__PURE__ */ I(Br, Be({
486
+ u || (v.viewBox = f);
487
+ const b = br(p);
488
+ return /* @__PURE__ */ O(wr, Ie({
535
489
  as: a,
536
- className: ko(b.root, r),
490
+ className: Bo(b.root, r),
537
491
  focusable: "false",
538
492
  color: c,
539
- "aria-hidden": f ? void 0 : !0,
540
- role: f ? "img" : void 0,
493
+ "aria-hidden": h ? void 0 : !0,
494
+ role: h ? "img" : void 0,
541
495
  ref: n
542
- }, v, d, p && i.props, {
543
- ownerState: m,
544
- children: [p ? i.props.children : i, f ? /* @__PURE__ */ T("title", {
545
- children: f
496
+ }, v, d, m && i.props, {
497
+ ownerState: p,
498
+ children: [m ? i.props.children : i, h ? /* @__PURE__ */ T("title", {
499
+ children: h
546
500
  }) : null]
547
501
  }));
548
502
  });
@@ -619,47 +573,47 @@ process.env.NODE_ENV !== "production" && (Je.propTypes = {
619
573
  viewBox: D.string
620
574
  });
621
575
  Je.muiName = "SvgIcon";
622
- const kn = Je;
623
- function Ir(t, e) {
576
+ const Bn = Je;
577
+ function Tr(t, e) {
624
578
  function n(s, i) {
625
- return /* @__PURE__ */ T(kn, Be({
579
+ return /* @__PURE__ */ T(Bn, Ie({
626
580
  "data-testid": `${e}Icon`,
627
581
  ref: i
628
582
  }, s, {
629
583
  children: t
630
584
  }));
631
585
  }
632
- return process.env.NODE_ENV !== "production" && (n.displayName = `${e}Icon`), n.muiName = kn.muiName, /* @__PURE__ */ R.memo(/* @__PURE__ */ R.forwardRef(n));
586
+ return process.env.NODE_ENV !== "production" && (n.displayName = `${e}Icon`), n.muiName = Bn.muiName, /* @__PURE__ */ R.memo(/* @__PURE__ */ R.forwardRef(n));
633
587
  }
634
- const Fr = {
588
+ const Pr = {
635
589
  configure: (t) => {
636
590
  process.env.NODE_ENV !== "production" && console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.", "", "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", "", "The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401", "", "The updated documentation: https://mui.com/guides/classname-generator/"].join(`
637
- `)), Io.configure(t);
591
+ `)), Fo.configure(t);
638
592
  }
639
- }, Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
593
+ }, Ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
640
594
  __proto__: null,
641
- capitalize: jt,
642
- createChainedFunction: dr,
643
- createSvgIcon: Ir,
644
- debounce: pr,
645
- deprecatedPropType: mr,
646
- isMuiElement: gr,
595
+ capitalize: Nt,
596
+ createChainedFunction: Jo,
597
+ createSvgIcon: Tr,
598
+ debounce: tr,
599
+ deprecatedPropType: er,
600
+ isMuiElement: nr,
647
601
  ownerDocument: qs,
648
- ownerWindow: yr,
649
- requirePropFactory: Fo,
602
+ ownerWindow: sr,
603
+ requirePropFactory: Oo,
650
604
  setRef: Ks,
651
- unstable_ClassNameGenerator: Fr,
605
+ unstable_ClassNameGenerator: Pr,
652
606
  unstable_useEnhancedEffect: Ys,
653
- unstable_useId: br,
654
- unsupportedProp: wr,
655
- useControlled: Tr,
656
- useEventCallback: Pr,
657
- useForkRef: Ar,
658
- useIsFocusVisible: _r
659
- }, Symbol.toStringTag, { value: "Module" })), jr = /* @__PURE__ */ Oo(Or);
660
- var Bn;
607
+ unstable_useId: rr,
608
+ unsupportedProp: ar,
609
+ useControlled: lr,
610
+ useEventCallback: cr,
611
+ useForkRef: ur,
612
+ useIsFocusVisible: yr
613
+ }, Symbol.toStringTag, { value: "Module" })), Sr = /* @__PURE__ */ jo(Ar);
614
+ var In;
661
615
  function tn() {
662
- return Bn || (Bn = 1, function(t) {
616
+ return In || (In = 1, function(t) {
663
617
  "use client";
664
618
  Object.defineProperty(t, "__esModule", {
665
619
  value: !0
@@ -669,40 +623,40 @@ function tn() {
669
623
  return e.createSvgIcon;
670
624
  }
671
625
  });
672
- var e = jr;
626
+ var e = Sr;
673
627
  }(we)), we;
674
628
  }
675
- var Nr = Ze;
629
+ var Vr = Ze;
676
630
  Object.defineProperty(Qe, "__esModule", {
677
631
  value: !0
678
632
  });
679
- var Xs = Qe.default = void 0, Ur = Nr(tn()), zr = Xe;
680
- Xs = Qe.default = (0, Ur.default)(/* @__PURE__ */ (0, zr.jsx)("path", {
633
+ var Xs = Qe.default = void 0, Cr = Vr(tn()), Mr = Xe;
634
+ Xs = Qe.default = (0, Cr.default)(/* @__PURE__ */ (0, Mr.jsx)("path", {
681
635
  d: "m10 17 5-5-5-5z"
682
636
  }), "ArrowRight");
683
- var en = {}, Wr = Ze;
637
+ var en = {}, Dr = Ze;
684
638
  Object.defineProperty(en, "__esModule", {
685
639
  value: !0
686
640
  });
687
- var Qs = en.default = void 0, $r = Wr(tn()), Gr = Xe;
688
- Qs = en.default = (0, $r.default)(/* @__PURE__ */ (0, Gr.jsx)("path", {
641
+ var Qs = en.default = void 0, Rr = Dr(tn()), Lr = Xe;
642
+ Qs = en.default = (0, Rr.default)(/* @__PURE__ */ (0, Lr.jsx)("path", {
689
643
  d: "M4 18h11c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1m0-5h8c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1M3 7c0 .55.45 1 1 1h11c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1m17.3 7.88L17.42 12l2.88-2.88c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L15.3 11.3c-.39.39-.39 1.02 0 1.41l3.59 3.59c.39.39 1.02.39 1.41 0 .38-.39.39-1.03 0-1.42"
690
644
  }), "MenuOpenRounded");
691
- var nn = {}, Hr = Ze;
645
+ var nn = {}, Er = Ze;
692
646
  Object.defineProperty(nn, "__esModule", {
693
647
  value: !0
694
648
  });
695
- var Zs = nn.default = void 0, qr = Hr(tn()), Kr = Xe;
696
- Zs = nn.default = (0, qr.default)(/* @__PURE__ */ (0, Kr.jsx)("path", {
649
+ var Zs = nn.default = void 0, kr = Er(tn()), Br = Xe;
650
+ Zs = nn.default = (0, kr.default)(/* @__PURE__ */ (0, Br.jsx)("path", {
697
651
  d: "M4 18h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1m0-5h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1M3 7c0 .55.45 1 1 1h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1"
698
652
  }), "MenuRounded");
699
653
  const Js = Mt({
700
654
  transformPagePoint: (t) => t,
701
655
  isStatic: !1,
702
656
  reducedMotion: "never"
703
- }), de = Mt({}), sn = Mt(null), pe = typeof document < "u", Yr = pe ? Ws : Wt, ti = Mt({ strict: !1 }), on = (t) => t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), Xr = "framerAppearId", ei = "data-" + on(Xr);
704
- function Qr(t, e, n, s) {
705
- const { visualElement: i } = N(de), r = N(ti), o = N(sn), a = N(Js).reducedMotion, l = St();
657
+ }), de = Mt({}), sn = Mt(null), me = typeof document < "u", Ir = me ? Ws : Wt, ti = Mt({ strict: !1 }), on = (t) => t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), Fr = "framerAppearId", ei = "data-" + on(Fr);
658
+ function Or(t, e, n, s) {
659
+ const { visualElement: i } = U(de), r = U(ti), o = U(sn), a = U(Js).reducedMotion, l = St();
706
660
  s = s || r.renderer, !l.current && s && (l.current = s(t, {
707
661
  visualState: e,
708
662
  parent: i,
@@ -716,7 +670,7 @@ function Qr(t, e, n, s) {
716
670
  c && c.update(n, o);
717
671
  });
718
672
  const u = St(!!(n[ei] && !window.HandoffComplete));
719
- return Yr(() => {
673
+ return Ir(() => {
720
674
  c && (c.render(), u.current && c.animationState && c.animationState.animateChanges());
721
675
  }), Wt(() => {
722
676
  c && (c.updateFeatures(), !u.current && c.animationState && c.animationState.animateChanges(), u.current && (u.current = !1, window.HandoffComplete = !0));
@@ -725,7 +679,7 @@ function Qr(t, e, n, s) {
725
679
  function wt(t) {
726
680
  return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
727
681
  }
728
- function Zr(t, e, n) {
682
+ function jr(t, e, n) {
729
683
  return Vo(
730
684
  (s) => {
731
685
  s && t.mount && t.mount(s), e && (s ? e.mount(s) : e.unmount()), n && (typeof n == "function" ? n(s) : wt(n) && (n.current = s));
@@ -738,10 +692,10 @@ function Zr(t, e, n) {
738
692
  [e]
739
693
  );
740
694
  }
741
- function Nt(t) {
695
+ function Ut(t) {
742
696
  return typeof t == "string" || Array.isArray(t);
743
697
  }
744
- function me(t) {
698
+ function pe(t) {
745
699
  return t !== null && typeof t == "object" && typeof t.start == "function";
746
700
  }
747
701
  const rn = [
@@ -754,29 +708,29 @@ const rn = [
754
708
  "exit"
755
709
  ], an = ["initial", ...rn];
756
710
  function ge(t) {
757
- return me(t.animate) || an.some((e) => Nt(t[e]));
711
+ return pe(t.animate) || an.some((e) => Ut(t[e]));
758
712
  }
759
713
  function ni(t) {
760
714
  return !!(ge(t) || t.variants);
761
715
  }
762
- function Jr(t, e) {
716
+ function Nr(t, e) {
763
717
  if (ge(t)) {
764
718
  const { initial: n, animate: s } = t;
765
719
  return {
766
- initial: n === !1 || Nt(n) ? n : void 0,
767
- animate: Nt(s) ? s : void 0
720
+ initial: n === !1 || Ut(n) ? n : void 0,
721
+ animate: Ut(s) ? s : void 0
768
722
  };
769
723
  }
770
724
  return t.inherit !== !1 ? e : {};
771
725
  }
772
- function ta(t) {
773
- const { initial: e, animate: n } = Jr(t, N(de));
774
- return fe(() => ({ initial: e, animate: n }), [In(e), In(n)]);
726
+ function Ur(t) {
727
+ const { initial: e, animate: n } = Nr(t, U(de));
728
+ return he(() => ({ initial: e, animate: n }), [Fn(e), Fn(n)]);
775
729
  }
776
- function In(t) {
730
+ function Fn(t) {
777
731
  return Array.isArray(t) ? t.join(" ") : t;
778
732
  }
779
- const Fn = {
733
+ const On = {
780
734
  animation: [
781
735
  "animate",
782
736
  "variants",
@@ -795,56 +749,56 @@ const Fn = {
795
749
  pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"],
796
750
  inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
797
751
  layout: ["layout", "layoutId"]
798
- }, Ut = {};
799
- for (const t in Fn)
800
- Ut[t] = {
801
- isEnabled: (e) => Fn[t].some((n) => !!e[n])
752
+ }, _t = {};
753
+ for (const t in On)
754
+ _t[t] = {
755
+ isEnabled: (e) => On[t].some((n) => !!e[n])
802
756
  };
803
- function ea(t) {
757
+ function _r(t) {
804
758
  for (const e in t)
805
- Ut[e] = {
806
- ...Ut[e],
759
+ _t[e] = {
760
+ ..._t[e],
807
761
  ...t[e]
808
762
  };
809
763
  }
810
- const si = Mt({}), ii = Mt({}), na = Symbol.for("motionComponentSymbol");
811
- function sa({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: s, Component: i }) {
812
- t && ea(t);
764
+ const si = Mt({}), ii = Mt({}), zr = Symbol.for("motionComponentSymbol");
765
+ function Wr({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: s, Component: i }) {
766
+ t && _r(t);
813
767
  function r(a, l) {
814
768
  let c;
815
769
  const u = {
816
- ...N(Js),
770
+ ...U(Js),
817
771
  ...a,
818
- layoutId: ia(a)
819
- }, { isStatic: f } = u, h = ta(a), d = s(a, f);
820
- if (!f && pe) {
821
- h.visualElement = Qr(i, d, u, e);
822
- const p = N(ii), m = N(ti).strict;
823
- h.visualElement && (c = h.visualElement.loadFeatures(
772
+ layoutId: Gr(a)
773
+ }, { isStatic: h } = u, f = Ur(a), d = s(a, h);
774
+ if (!h && me) {
775
+ f.visualElement = Or(i, d, u, e);
776
+ const m = U(ii), p = U(ti).strict;
777
+ f.visualElement && (c = f.visualElement.loadFeatures(
824
778
  // Note: Pass the full new combined props to correctly re-render dynamic feature components.
825
779
  u,
826
- m,
780
+ p,
827
781
  t,
828
- p
782
+ m
829
783
  ));
830
784
  }
831
785
  return R.createElement(
832
786
  de.Provider,
833
- { value: h },
834
- c && h.visualElement ? R.createElement(c, { visualElement: h.visualElement, ...u }) : null,
835
- n(i, a, Zr(d, h.visualElement, l), d, f, h.visualElement)
787
+ { value: f },
788
+ c && f.visualElement ? R.createElement(c, { visualElement: f.visualElement, ...u }) : null,
789
+ n(i, a, jr(d, f.visualElement, l), d, h, f.visualElement)
836
790
  );
837
791
  }
838
792
  const o = Co(r);
839
- return o[na] = i, o;
793
+ return o[zr] = i, o;
840
794
  }
841
- function ia({ layoutId: t }) {
842
- const e = N(si).id;
795
+ function Gr({ layoutId: t }) {
796
+ const e = U(si).id;
843
797
  return e && t !== void 0 ? e + "-" + t : t;
844
798
  }
845
- function oa(t) {
799
+ function $r(t) {
846
800
  function e(s, i = {}) {
847
- return sa(t(s, i));
801
+ return Wr(t(s, i));
848
802
  }
849
803
  if (typeof Proxy > "u")
850
804
  return e;
@@ -858,7 +812,7 @@ function oa(t) {
858
812
  get: (s, i) => (n.has(i) || n.set(i, e(i)), n.get(i))
859
813
  });
860
814
  }
861
- const ra = [
815
+ const Hr = [
862
816
  "animate",
863
817
  "circle",
864
818
  "defs",
@@ -898,7 +852,7 @@ function ln(t) {
898
852
  /**
899
853
  * If it's in our list of lowercase SVG tags, it's an SVG component
900
854
  */
901
- !!(ra.indexOf(t) > -1 || /**
855
+ !!(Hr.indexOf(t) > -1 || /**
902
856
  * If it contains a capital letter, it's an SVG component
903
857
  */
904
858
  /[A-Z]/.test(t))
@@ -906,10 +860,10 @@ function ln(t) {
906
860
  );
907
861
  }
908
862
  const se = {};
909
- function aa(t) {
863
+ function qr(t) {
910
864
  Object.assign(se, t);
911
865
  }
912
- const $t = [
866
+ const Gt = [
913
867
  "transformPerspective",
914
868
  "x",
915
869
  "y",
@@ -927,50 +881,50 @@ const $t = [
927
881
  "skew",
928
882
  "skewX",
929
883
  "skewY"
930
- ], gt = new Set($t);
884
+ ], gt = new Set(Gt);
931
885
  function oi(t, { layout: e, layoutId: n }) {
932
886
  return gt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!se[t] || t === "opacity");
933
887
  }
934
- const U = (t) => !!(t && t.getVelocity), la = {
888
+ const _ = (t) => !!(t && t.getVelocity), Kr = {
935
889
  x: "translateX",
936
890
  y: "translateY",
937
891
  z: "translateZ",
938
892
  transformPerspective: "perspective"
939
- }, ca = $t.length;
940
- function ua(t, { enableHardwareAcceleration: e = !0, allowTransformNone: n = !0 }, s, i) {
893
+ }, Yr = Gt.length;
894
+ function Xr(t, { enableHardwareAcceleration: e = !0, allowTransformNone: n = !0 }, s, i) {
941
895
  let r = "";
942
- for (let o = 0; o < ca; o++) {
943
- const a = $t[o];
896
+ for (let o = 0; o < Yr; o++) {
897
+ const a = Gt[o];
944
898
  if (t[a] !== void 0) {
945
- const l = la[a] || a;
899
+ const l = Kr[a] || a;
946
900
  r += `${l}(${t[a]}) `;
947
901
  }
948
902
  }
949
903
  return e && !t.z && (r += "translateZ(0)"), r = r.trim(), i ? r = i(t, s ? "" : r) : n && s && (r = "none"), r;
950
904
  }
951
- const ri = (t) => (e) => typeof e == "string" && e.startsWith(t), ai = ri("--"), Fe = ri("var(--"), fa = /var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g, ha = (t, e) => e && typeof t == "number" ? e.transform(t) : t, lt = (t, e, n) => Math.min(Math.max(n, t), e), yt = {
905
+ const ri = (t) => (e) => typeof e == "string" && e.startsWith(t), ai = ri("--"), Oe = ri("var(--"), Qr = /var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g, Zr = (t, e) => e && typeof t == "number" ? e.transform(t) : t, lt = (t, e, n) => Math.min(Math.max(n, t), e), yt = {
952
906
  test: (t) => typeof t == "number",
953
907
  parse: parseFloat,
954
908
  transform: (t) => t
955
- }, Bt = {
909
+ }, It = {
956
910
  ...yt,
957
911
  transform: (t) => lt(0, 1, t)
958
912
  }, Xt = {
959
913
  ...yt,
960
914
  default: 1
961
- }, It = (t) => Math.round(t * 1e5) / 1e5, ye = /(-)?([\d]*\.?[\d])+/g, li = /(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi, da = /^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;
962
- function Gt(t) {
915
+ }, Ft = (t) => Math.round(t * 1e5) / 1e5, ye = /(-)?([\d]*\.?[\d])+/g, li = /(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi, Jr = /^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;
916
+ function $t(t) {
963
917
  return typeof t == "string";
964
918
  }
965
919
  const Ht = (t) => ({
966
- test: (e) => Gt(e) && e.endsWith(t) && e.split(" ").length === 1,
920
+ test: (e) => $t(e) && e.endsWith(t) && e.split(" ").length === 1,
967
921
  parse: parseFloat,
968
922
  transform: (e) => `${e}${t}`
969
- }), st = Ht("deg"), K = Ht("%"), w = Ht("px"), pa = Ht("vh"), ma = Ht("vw"), On = {
923
+ }), st = Ht("deg"), K = Ht("%"), w = Ht("px"), ta = Ht("vh"), ea = Ht("vw"), jn = {
970
924
  ...K,
971
925
  parse: (t) => K.parse(t) / 100,
972
926
  transform: (t) => K.transform(t * 100)
973
- }, jn = {
927
+ }, Nn = {
974
928
  ...yt,
975
929
  transform: Math.round
976
930
  }, ci = {
@@ -1028,37 +982,37 @@ const Ht = (t) => ({
1028
982
  z: w,
1029
983
  perspective: w,
1030
984
  transformPerspective: w,
1031
- opacity: Bt,
1032
- originX: On,
1033
- originY: On,
985
+ opacity: It,
986
+ originX: jn,
987
+ originY: jn,
1034
988
  originZ: w,
1035
989
  // Misc
1036
- zIndex: jn,
990
+ zIndex: Nn,
1037
991
  // SVG
1038
- fillOpacity: Bt,
1039
- strokeOpacity: Bt,
1040
- numOctaves: jn
992
+ fillOpacity: It,
993
+ strokeOpacity: It,
994
+ numOctaves: Nn
1041
995
  };
1042
996
  function cn(t, e, n, s) {
1043
997
  const { style: i, vars: r, transform: o, transformOrigin: a } = t;
1044
998
  let l = !1, c = !1, u = !0;
1045
- for (const f in e) {
1046
- const h = e[f];
1047
- if (ai(f)) {
1048
- r[f] = h;
999
+ for (const h in e) {
1000
+ const f = e[h];
1001
+ if (ai(h)) {
1002
+ r[h] = f;
1049
1003
  continue;
1050
1004
  }
1051
- const d = ci[f], p = ha(h, d);
1052
- if (gt.has(f)) {
1053
- if (l = !0, o[f] = p, !u)
1005
+ const d = ci[h], m = Zr(f, d);
1006
+ if (gt.has(h)) {
1007
+ if (l = !0, o[h] = m, !u)
1054
1008
  continue;
1055
- h !== (d.default || 0) && (u = !1);
1009
+ f !== (d.default || 0) && (u = !1);
1056
1010
  } else
1057
- f.startsWith("origin") ? (c = !0, a[f] = p) : i[f] = p;
1011
+ h.startsWith("origin") ? (c = !0, a[h] = m) : i[h] = m;
1058
1012
  }
1059
- if (e.transform || (l || s ? i.transform = ua(t.transform, n, u, s) : i.transform && (i.transform = "none")), c) {
1060
- const { originX: f = "50%", originY: h = "50%", originZ: d = 0 } = a;
1061
- i.transformOrigin = `${f} ${h} ${d}`;
1013
+ if (e.transform || (l || s ? i.transform = Xr(t.transform, n, u, s) : i.transform && (i.transform = "none")), c) {
1014
+ const { originX: h = "50%", originY: f = "50%", originZ: d = 0 } = a;
1015
+ i.transformOrigin = `${h} ${f} ${d}`;
1062
1016
  }
1063
1017
  }
1064
1018
  const un = () => ({
@@ -1069,23 +1023,23 @@ const un = () => ({
1069
1023
  });
1070
1024
  function ui(t, e, n) {
1071
1025
  for (const s in e)
1072
- !U(e[s]) && !oi(s, n) && (t[s] = e[s]);
1026
+ !_(e[s]) && !oi(s, n) && (t[s] = e[s]);
1073
1027
  }
1074
- function ga({ transformTemplate: t }, e, n) {
1075
- return fe(() => {
1028
+ function na({ transformTemplate: t }, e, n) {
1029
+ return he(() => {
1076
1030
  const s = un();
1077
1031
  return cn(s, e, { enableHardwareAcceleration: !n }, t), Object.assign({}, s.vars, s.style);
1078
1032
  }, [e]);
1079
1033
  }
1080
- function ya(t, e, n) {
1034
+ function sa(t, e, n) {
1081
1035
  const s = t.style || {}, i = {};
1082
- return ui(i, s, t), Object.assign(i, ga(t, e, n)), t.transformValues ? t.transformValues(i) : i;
1036
+ return ui(i, s, t), Object.assign(i, na(t, e, n)), t.transformValues ? t.transformValues(i) : i;
1083
1037
  }
1084
- function va(t, e, n) {
1085
- const s = {}, i = ya(t, e, n);
1038
+ function ia(t, e, n) {
1039
+ const s = {}, i = sa(t, e, n);
1086
1040
  return t.drag && t.dragListener !== !1 && (s.draggable = !1, i.userSelect = i.WebkitUserSelect = i.WebkitTouchCallout = "none", i.touchAction = t.drag === !0 ? "none" : `pan-${t.drag === "x" ? "y" : "x"}`), t.tabIndex === void 0 && (t.onTap || t.onTapStart || t.whileTap) && (s.tabIndex = 0), s.style = i, s;
1087
1041
  }
1088
- const xa = /* @__PURE__ */ new Set([
1042
+ const oa = /* @__PURE__ */ new Set([
1089
1043
  "animate",
1090
1044
  "exit",
1091
1045
  "variants",
@@ -1119,45 +1073,45 @@ const xa = /* @__PURE__ */ new Set([
1119
1073
  "viewport"
1120
1074
  ]);
1121
1075
  function ie(t) {
1122
- return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || xa.has(t);
1076
+ return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || oa.has(t);
1123
1077
  }
1124
- let fi = (t) => !ie(t);
1125
- function ba(t) {
1126
- t && (fi = (e) => e.startsWith("on") ? !ie(e) : t(e));
1078
+ let hi = (t) => !ie(t);
1079
+ function ra(t) {
1080
+ t && (hi = (e) => e.startsWith("on") ? !ie(e) : t(e));
1127
1081
  }
1128
1082
  try {
1129
- ba(require("@emotion/is-prop-valid").default);
1083
+ ra(require("@emotion/is-prop-valid").default);
1130
1084
  } catch {
1131
1085
  }
1132
- function wa(t, e, n) {
1086
+ function aa(t, e, n) {
1133
1087
  const s = {};
1134
1088
  for (const i in t)
1135
- i === "values" && typeof t.values == "object" || (fi(i) || n === !0 && ie(i) || !e && !ie(i) || // If trying to use native HTML drag events, forward drag listeners
1089
+ i === "values" && typeof t.values == "object" || (hi(i) || n === !0 && ie(i) || !e && !ie(i) || // If trying to use native HTML drag events, forward drag listeners
1136
1090
  t.draggable && i.startsWith("onDrag")) && (s[i] = t[i]);
1137
1091
  return s;
1138
1092
  }
1139
- function Nn(t, e, n) {
1093
+ function Un(t, e, n) {
1140
1094
  return typeof t == "string" ? t : w.transform(e + n * t);
1141
1095
  }
1142
- function Ta(t, e, n) {
1143
- const s = Nn(e, t.x, t.width), i = Nn(n, t.y, t.height);
1096
+ function la(t, e, n) {
1097
+ const s = Un(e, t.x, t.width), i = Un(n, t.y, t.height);
1144
1098
  return `${s} ${i}`;
1145
1099
  }
1146
- const Pa = {
1100
+ const ca = {
1147
1101
  offset: "stroke-dashoffset",
1148
1102
  array: "stroke-dasharray"
1149
- }, Aa = {
1103
+ }, ua = {
1150
1104
  offset: "strokeDashoffset",
1151
1105
  array: "strokeDasharray"
1152
1106
  };
1153
- function Sa(t, e, n = 1, s = 0, i = !0) {
1107
+ function ha(t, e, n = 1, s = 0, i = !0) {
1154
1108
  t.pathLength = 1;
1155
- const r = i ? Pa : Aa;
1109
+ const r = i ? ca : ua;
1156
1110
  t[r.offset] = w.transform(-s);
1157
1111
  const o = w.transform(e), a = w.transform(n);
1158
1112
  t[r.array] = `${o} ${a}`;
1159
1113
  }
1160
- function fn(t, {
1114
+ function hn(t, {
1161
1115
  attrX: e,
1162
1116
  attrY: n,
1163
1117
  attrScale: s,
@@ -1168,23 +1122,23 @@ function fn(t, {
1168
1122
  pathOffset: l = 0,
1169
1123
  // This is object creation, which we try to avoid per-frame.
1170
1124
  ...c
1171
- }, u, f, h) {
1172
- if (cn(t, c, u, h), f) {
1125
+ }, u, h, f) {
1126
+ if (cn(t, c, u, f), h) {
1173
1127
  t.style.viewBox && (t.attrs.viewBox = t.style.viewBox);
1174
1128
  return;
1175
1129
  }
1176
1130
  t.attrs = t.style, t.style = {};
1177
- const { attrs: d, style: p, dimensions: m } = t;
1178
- d.transform && (m && (p.transform = d.transform), delete d.transform), m && (i !== void 0 || r !== void 0 || p.transform) && (p.transformOrigin = Ta(m, i !== void 0 ? i : 0.5, r !== void 0 ? r : 0.5)), e !== void 0 && (d.x = e), n !== void 0 && (d.y = n), s !== void 0 && (d.scale = s), o !== void 0 && Sa(d, o, a, l, !1);
1131
+ const { attrs: d, style: m, dimensions: p } = t;
1132
+ d.transform && (p && (m.transform = d.transform), delete d.transform), p && (i !== void 0 || r !== void 0 || m.transform) && (m.transformOrigin = la(p, i !== void 0 ? i : 0.5, r !== void 0 ? r : 0.5)), e !== void 0 && (d.x = e), n !== void 0 && (d.y = n), s !== void 0 && (d.scale = s), o !== void 0 && ha(d, o, a, l, !1);
1179
1133
  }
1180
- const hi = () => ({
1134
+ const fi = () => ({
1181
1135
  ...un(),
1182
1136
  attrs: {}
1183
- }), hn = (t) => typeof t == "string" && t.toLowerCase() === "svg";
1184
- function Va(t, e, n, s) {
1185
- const i = fe(() => {
1186
- const r = hi();
1187
- return fn(r, e, { enableHardwareAcceleration: !1 }, hn(s), t.transformTemplate), {
1137
+ }), fn = (t) => typeof t == "string" && t.toLowerCase() === "svg";
1138
+ function fa(t, e, n, s) {
1139
+ const i = he(() => {
1140
+ const r = fi();
1141
+ return hn(r, e, { enableHardwareAcceleration: !1 }, fn(s), t.transformTemplate), {
1188
1142
  ...r.attrs,
1189
1143
  style: { ...r.style }
1190
1144
  };
@@ -1195,16 +1149,16 @@ function Va(t, e, n, s) {
1195
1149
  }
1196
1150
  return i;
1197
1151
  }
1198
- function Ca(t = !1) {
1152
+ function da(t = !1) {
1199
1153
  return (n, s, i, { latestValues: r }, o) => {
1200
- const l = (ln(n) ? Va : va)(s, r, o, n), u = {
1201
- ...wa(s, typeof n == "string", t),
1154
+ const l = (ln(n) ? fa : ia)(s, r, o, n), u = {
1155
+ ...aa(s, typeof n == "string", t),
1202
1156
  ...l,
1203
1157
  ref: i
1204
- }, { children: f } = s, h = fe(() => U(f) ? f.get() : f, [f]);
1205
- return $s(n, {
1158
+ }, { children: h } = s, f = he(() => _(h) ? h.get() : h, [h]);
1159
+ return Gs(n, {
1206
1160
  ...u,
1207
- children: h
1161
+ children: f
1208
1162
  });
1209
1163
  };
1210
1164
  }
@@ -1213,7 +1167,7 @@ function di(t, { style: e, vars: n }, s, i) {
1213
1167
  for (const r in n)
1214
1168
  t.style.setProperty(r, n[r]);
1215
1169
  }
1216
- const pi = /* @__PURE__ */ new Set([
1170
+ const mi = /* @__PURE__ */ new Set([
1217
1171
  "baseFrequency",
1218
1172
  "diffuseConstant",
1219
1173
  "kernelMatrix",
@@ -1238,64 +1192,64 @@ const pi = /* @__PURE__ */ new Set([
1238
1192
  "textLength",
1239
1193
  "lengthAdjust"
1240
1194
  ]);
1241
- function mi(t, e, n, s) {
1195
+ function pi(t, e, n, s) {
1242
1196
  di(t, e, void 0, s);
1243
1197
  for (const i in e.attrs)
1244
- t.setAttribute(pi.has(i) ? i : on(i), e.attrs[i]);
1198
+ t.setAttribute(mi.has(i) ? i : on(i), e.attrs[i]);
1245
1199
  }
1246
1200
  function dn(t, e) {
1247
1201
  const { style: n } = t, s = {};
1248
1202
  for (const i in n)
1249
- (U(n[i]) || e.style && U(e.style[i]) || oi(i, t)) && (s[i] = n[i]);
1203
+ (_(n[i]) || e.style && _(e.style[i]) || oi(i, t)) && (s[i] = n[i]);
1250
1204
  return s;
1251
1205
  }
1252
1206
  function gi(t, e) {
1253
1207
  const n = dn(t, e);
1254
1208
  for (const s in t)
1255
- if (U(t[s]) || U(e[s])) {
1256
- const i = $t.indexOf(s) !== -1 ? "attr" + s.charAt(0).toUpperCase() + s.substring(1) : s;
1209
+ if (_(t[s]) || _(e[s])) {
1210
+ const i = Gt.indexOf(s) !== -1 ? "attr" + s.charAt(0).toUpperCase() + s.substring(1) : s;
1257
1211
  n[i] = t[s];
1258
1212
  }
1259
1213
  return n;
1260
1214
  }
1261
- function pn(t, e, n, s = {}, i = {}) {
1215
+ function mn(t, e, n, s = {}, i = {}) {
1262
1216
  return typeof e == "function" && (e = e(n !== void 0 ? n : t.custom, s, i)), typeof e == "string" && (e = t.variants && t.variants[e]), typeof e == "function" && (e = e(n !== void 0 ? n : t.custom, s, i)), e;
1263
1217
  }
1264
- function Ma(t) {
1218
+ function ma(t) {
1265
1219
  const e = St(null);
1266
1220
  return e.current === null && (e.current = t()), e.current;
1267
1221
  }
1268
- const oe = (t) => Array.isArray(t), Da = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), Ra = (t) => oe(t) ? t[t.length - 1] || 0 : t;
1222
+ const oe = (t) => Array.isArray(t), pa = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), ga = (t) => oe(t) ? t[t.length - 1] || 0 : t;
1269
1223
  function ee(t) {
1270
- const e = U(t) ? t.get() : t;
1271
- return Da(e) ? e.toValue() : e;
1224
+ const e = _(t) ? t.get() : t;
1225
+ return pa(e) ? e.toValue() : e;
1272
1226
  }
1273
- function _a({ scrapeMotionValuesFromProps: t, createRenderState: e, onMount: n }, s, i, r) {
1227
+ function ya({ scrapeMotionValuesFromProps: t, createRenderState: e, onMount: n }, s, i, r) {
1274
1228
  const o = {
1275
- latestValues: La(s, i, r, t),
1229
+ latestValues: va(s, i, r, t),
1276
1230
  renderState: e()
1277
1231
  };
1278
1232
  return n && (o.mount = (a) => n(s, a, o)), o;
1279
1233
  }
1280
1234
  const yi = (t) => (e, n) => {
1281
- const s = N(de), i = N(sn), r = () => _a(t, e, s, i);
1282
- return n ? r() : Ma(r);
1235
+ const s = U(de), i = U(sn), r = () => ya(t, e, s, i);
1236
+ return n ? r() : ma(r);
1283
1237
  };
1284
- function La(t, e, n, s) {
1238
+ function va(t, e, n, s) {
1285
1239
  const i = {}, r = s(t, {});
1286
- for (const h in r)
1287
- i[h] = ee(r[h]);
1240
+ for (const f in r)
1241
+ i[f] = ee(r[f]);
1288
1242
  let { initial: o, animate: a } = t;
1289
1243
  const l = ge(t), c = ni(t);
1290
1244
  e && c && !l && t.inherit !== !1 && (o === void 0 && (o = e.initial), a === void 0 && (a = e.animate));
1291
1245
  let u = n ? n.initial === !1 : !1;
1292
1246
  u = u || o === !1;
1293
- const f = u ? a : o;
1294
- return f && typeof f != "boolean" && !me(f) && (Array.isArray(f) ? f : [f]).forEach((d) => {
1295
- const p = pn(t, d);
1296
- if (!p)
1247
+ const h = u ? a : o;
1248
+ return h && typeof h != "boolean" && !pe(h) && (Array.isArray(h) ? h : [h]).forEach((d) => {
1249
+ const m = mn(t, d);
1250
+ if (!m)
1297
1251
  return;
1298
- const { transitionEnd: m, transition: v, ...b } = p;
1252
+ const { transitionEnd: p, transition: v, ...b } = m;
1299
1253
  for (const y in b) {
1300
1254
  let g = b[y];
1301
1255
  if (Array.isArray(g)) {
@@ -1304,12 +1258,12 @@ function La(t, e, n, s) {
1304
1258
  }
1305
1259
  g !== null && (i[y] = g);
1306
1260
  }
1307
- for (const y in m)
1308
- i[y] = m[y];
1261
+ for (const y in p)
1262
+ i[y] = p[y];
1309
1263
  }), i;
1310
1264
  }
1311
- const E = (t) => t;
1312
- class Un {
1265
+ const k = (t) => t;
1266
+ class _n {
1313
1267
  constructor() {
1314
1268
  this.order = [], this.scheduled = /* @__PURE__ */ new Set();
1315
1269
  }
@@ -1325,15 +1279,15 @@ class Un {
1325
1279
  this.order.length = 0, this.scheduled.clear();
1326
1280
  }
1327
1281
  }
1328
- function Ea(t) {
1329
- let e = new Un(), n = new Un(), s = 0, i = !1, r = !1;
1282
+ function xa(t) {
1283
+ let e = new _n(), n = new _n(), s = 0, i = !1, r = !1;
1330
1284
  const o = /* @__PURE__ */ new WeakSet(), a = {
1331
1285
  /**
1332
1286
  * Schedule a process to run on the next frame.
1333
1287
  */
1334
1288
  schedule: (l, c = !1, u = !1) => {
1335
- const f = u && i, h = f ? e : n;
1336
- return c && o.add(l), h.add(l) && f && i && (s = e.order.length), l;
1289
+ const h = u && i, f = h ? e : n;
1290
+ return c && o.add(l), f.add(l) && h && i && (s = e.order.length), l;
1337
1291
  },
1338
1292
  /**
1339
1293
  * Cancel the provided callback from running on the next frame.
@@ -1366,28 +1320,28 @@ const Qt = [
1366
1320
  "preRender",
1367
1321
  "render",
1368
1322
  "postRender"
1369
- ], ka = 40;
1370
- function Ba(t, e) {
1323
+ ], ba = 40;
1324
+ function wa(t, e) {
1371
1325
  let n = !1, s = !0;
1372
1326
  const i = {
1373
1327
  delta: 0,
1374
1328
  timestamp: 0,
1375
1329
  isProcessing: !1
1376
- }, r = Qt.reduce((f, h) => (f[h] = Ea(() => n = !0), f), {}), o = (f) => r[f].process(i), a = () => {
1377
- const f = performance.now();
1378
- n = !1, i.delta = s ? 1e3 / 60 : Math.max(Math.min(f - i.timestamp, ka), 1), i.timestamp = f, i.isProcessing = !0, Qt.forEach(o), i.isProcessing = !1, n && e && (s = !1, t(a));
1330
+ }, r = Qt.reduce((h, f) => (h[f] = xa(() => n = !0), h), {}), o = (h) => r[h].process(i), a = () => {
1331
+ const h = performance.now();
1332
+ n = !1, i.delta = s ? 1e3 / 60 : Math.max(Math.min(h - i.timestamp, ba), 1), i.timestamp = h, i.isProcessing = !0, Qt.forEach(o), i.isProcessing = !1, n && e && (s = !1, t(a));
1379
1333
  }, l = () => {
1380
1334
  n = !0, s = !0, i.isProcessing || t(a);
1381
1335
  };
1382
- return { schedule: Qt.reduce((f, h) => {
1383
- const d = r[h];
1384
- return f[h] = (p, m = !1, v = !1) => (n || l(), d.schedule(p, m, v)), f;
1385
- }, {}), cancel: (f) => Qt.forEach((h) => r[h].cancel(f)), state: i, steps: r };
1336
+ return { schedule: Qt.reduce((h, f) => {
1337
+ const d = r[f];
1338
+ return h[f] = (m, p = !1, v = !1) => (n || l(), d.schedule(m, p, v)), h;
1339
+ }, {}), cancel: (h) => Qt.forEach((f) => r[f].cancel(h)), state: i, steps: r };
1386
1340
  }
1387
- const { schedule: V, cancel: et, state: F, steps: Pe } = Ba(typeof requestAnimationFrame < "u" ? requestAnimationFrame : E, !0), Ia = {
1341
+ const { schedule: V, cancel: et, state: F, steps: Pe } = wa(typeof requestAnimationFrame < "u" ? requestAnimationFrame : k, !0), Ta = {
1388
1342
  useVisualState: yi({
1389
1343
  scrapeMotionValuesFromProps: gi,
1390
- createRenderState: hi,
1344
+ createRenderState: fi,
1391
1345
  onMount: (t, e, { renderState: n, latestValues: s }) => {
1392
1346
  V.read(() => {
1393
1347
  try {
@@ -1401,21 +1355,21 @@ const { schedule: V, cancel: et, state: F, steps: Pe } = Ba(typeof requestAnimat
1401
1355
  };
1402
1356
  }
1403
1357
  }), V.render(() => {
1404
- fn(n, s, { enableHardwareAcceleration: !1 }, hn(e.tagName), t.transformTemplate), mi(e, n);
1358
+ hn(n, s, { enableHardwareAcceleration: !1 }, fn(e.tagName), t.transformTemplate), pi(e, n);
1405
1359
  });
1406
1360
  }
1407
1361
  })
1408
- }, Fa = {
1362
+ }, Pa = {
1409
1363
  useVisualState: yi({
1410
1364
  scrapeMotionValuesFromProps: dn,
1411
1365
  createRenderState: un
1412
1366
  })
1413
1367
  };
1414
- function Oa(t, { forwardMotionProps: e = !1 }, n, s) {
1368
+ function Aa(t, { forwardMotionProps: e = !1 }, n, s) {
1415
1369
  return {
1416
- ...ln(t) ? Ia : Fa,
1370
+ ...ln(t) ? Ta : Pa,
1417
1371
  preloadedFeatures: n,
1418
- useRender: Ca(e),
1372
+ useRender: da(e),
1419
1373
  createVisualElement: s,
1420
1374
  Component: t
1421
1375
  };
@@ -1432,11 +1386,11 @@ function ve(t, e = "page") {
1432
1386
  }
1433
1387
  };
1434
1388
  }
1435
- const ja = (t) => (e) => vi(e) && t(e, ve(e));
1389
+ const Sa = (t) => (e) => vi(e) && t(e, ve(e));
1436
1390
  function J(t, e, n, s) {
1437
- return Z(t, e, ja(n), s);
1391
+ return Z(t, e, Sa(n), s);
1438
1392
  }
1439
- const Na = (t, e) => (n) => e(t(n)), rt = (...t) => t.reduce(Na);
1393
+ const Va = (t, e) => (n) => e(t(n)), rt = (...t) => t.reduce(Va);
1440
1394
  function xi(t) {
1441
1395
  let e = null;
1442
1396
  return () => {
@@ -1472,7 +1426,7 @@ class ut {
1472
1426
  update() {
1473
1427
  }
1474
1428
  }
1475
- function $n(t, e) {
1429
+ function Gn(t, e) {
1476
1430
  const n = "pointer" + (e ? "enter" : "leave"), s = "onHover" + (e ? "Start" : "End"), i = (r, o) => {
1477
1431
  if (r.pointerType === "touch" || wi())
1478
1432
  return;
@@ -1483,14 +1437,14 @@ function $n(t, e) {
1483
1437
  passive: !t.getProps()[s]
1484
1438
  });
1485
1439
  }
1486
- class Ua extends ut {
1440
+ class Ca extends ut {
1487
1441
  mount() {
1488
- this.unmount = rt($n(this.node, !0), $n(this.node, !1));
1442
+ this.unmount = rt(Gn(this.node, !0), Gn(this.node, !1));
1489
1443
  }
1490
1444
  unmount() {
1491
1445
  }
1492
1446
  }
1493
- class za extends ut {
1447
+ class Ma extends ut {
1494
1448
  constructor() {
1495
1449
  super(...arguments), this.isActive = !1;
1496
1450
  }
@@ -1519,18 +1473,18 @@ function Ae(t, e) {
1519
1473
  const n = new PointerEvent("pointer" + t);
1520
1474
  e(n, ve(n));
1521
1475
  }
1522
- class Wa extends ut {
1476
+ class Da extends ut {
1523
1477
  constructor() {
1524
- super(...arguments), this.removeStartListeners = E, this.removeEndListeners = E, this.removeAccessibleListeners = E, this.startPointerPress = (e, n) => {
1478
+ super(...arguments), this.removeStartListeners = k, this.removeEndListeners = k, this.removeAccessibleListeners = k, this.startPointerPress = (e, n) => {
1525
1479
  if (this.isPressing)
1526
1480
  return;
1527
1481
  this.removeEndListeners();
1528
1482
  const s = this.node.getProps(), r = J(window, "pointerup", (a, l) => {
1529
1483
  if (!this.checkPressEnd())
1530
1484
  return;
1531
- const { onTap: c, onTapCancel: u, globalTapTarget: f } = this.node.getProps();
1485
+ const { onTap: c, onTapCancel: u, globalTapTarget: h } = this.node.getProps();
1532
1486
  V.update(() => {
1533
- !f && !Ti(this.node.current, a.target) ? u && u(a, l) : c && c(a, l);
1487
+ !h && !Ti(this.node.current, a.target) ? u && u(a, l) : c && c(a, l);
1534
1488
  });
1535
1489
  }, { passive: !(s.onTap || s.onPointerUp) }), o = J(window, "pointercancel", (a, l) => this.cancelPress(a, l), { passive: !(s.onTapCancel || s.onPointerCancel) });
1536
1490
  this.removeEndListeners = rt(r, o), this.startPress(e, n);
@@ -1575,29 +1529,29 @@ class Wa extends ut {
1575
1529
  this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners();
1576
1530
  }
1577
1531
  }
1578
- const Oe = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), $a = (t) => {
1579
- const e = Oe.get(t.target);
1532
+ const je = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Ra = (t) => {
1533
+ const e = je.get(t.target);
1580
1534
  e && e(t);
1581
- }, Ga = (t) => {
1582
- t.forEach($a);
1535
+ }, La = (t) => {
1536
+ t.forEach(Ra);
1583
1537
  };
1584
- function Ha({ root: t, ...e }) {
1538
+ function Ea({ root: t, ...e }) {
1585
1539
  const n = t || document;
1586
1540
  Se.has(n) || Se.set(n, {});
1587
1541
  const s = Se.get(n), i = JSON.stringify(e);
1588
- return s[i] || (s[i] = new IntersectionObserver(Ga, { root: t, ...e })), s[i];
1542
+ return s[i] || (s[i] = new IntersectionObserver(La, { root: t, ...e })), s[i];
1589
1543
  }
1590
- function qa(t, e, n) {
1591
- const s = Ha(e);
1592
- return Oe.set(t, n), s.observe(t), () => {
1593
- Oe.delete(t), s.unobserve(t);
1544
+ function ka(t, e, n) {
1545
+ const s = Ea(e);
1546
+ return je.set(t, n), s.observe(t), () => {
1547
+ je.delete(t), s.unobserve(t);
1594
1548
  };
1595
1549
  }
1596
- const Ka = {
1550
+ const Ba = {
1597
1551
  some: 0,
1598
1552
  all: 1
1599
1553
  };
1600
- class Ya extends ut {
1554
+ class Ia extends ut {
1601
1555
  constructor() {
1602
1556
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
1603
1557
  }
@@ -1606,16 +1560,16 @@ class Ya extends ut {
1606
1560
  const { viewport: e = {} } = this.node.getProps(), { root: n, margin: s, amount: i = "some", once: r } = e, o = {
1607
1561
  root: n ? n.current : void 0,
1608
1562
  rootMargin: s,
1609
- threshold: typeof i == "number" ? i : Ka[i]
1563
+ threshold: typeof i == "number" ? i : Ba[i]
1610
1564
  }, a = (l) => {
1611
1565
  const { isIntersecting: c } = l;
1612
1566
  if (this.isInView === c || (this.isInView = c, r && !c && this.hasEnteredView))
1613
1567
  return;
1614
1568
  c && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", c);
1615
- const { onViewportEnter: u, onViewportLeave: f } = this.node.getProps(), h = c ? u : f;
1616
- h && h(l);
1569
+ const { onViewportEnter: u, onViewportLeave: h } = this.node.getProps(), f = c ? u : h;
1570
+ f && f(l);
1617
1571
  };
1618
- return qa(this.node.current, o, a);
1572
+ return ka(this.node.current, o, a);
1619
1573
  }
1620
1574
  mount() {
1621
1575
  this.startObserver();
@@ -1624,26 +1578,26 @@ class Ya extends ut {
1624
1578
  if (typeof IntersectionObserver > "u")
1625
1579
  return;
1626
1580
  const { props: e, prevProps: n } = this.node;
1627
- ["amount", "margin", "root"].some(Xa(e, n)) && this.startObserver();
1581
+ ["amount", "margin", "root"].some(Fa(e, n)) && this.startObserver();
1628
1582
  }
1629
1583
  unmount() {
1630
1584
  }
1631
1585
  }
1632
- function Xa({ viewport: t = {} }, { viewport: e = {} } = {}) {
1586
+ function Fa({ viewport: t = {} }, { viewport: e = {} } = {}) {
1633
1587
  return (n) => t[n] !== e[n];
1634
1588
  }
1635
- const Qa = {
1589
+ const Oa = {
1636
1590
  inView: {
1637
- Feature: Ya
1591
+ Feature: Ia
1638
1592
  },
1639
1593
  tap: {
1640
- Feature: Wa
1594
+ Feature: Da
1641
1595
  },
1642
1596
  focus: {
1643
- Feature: za
1597
+ Feature: Ma
1644
1598
  },
1645
1599
  hover: {
1646
- Feature: Ua
1600
+ Feature: Ca
1647
1601
  }
1648
1602
  };
1649
1603
  function Pi(t, e) {
@@ -1657,47 +1611,47 @@ function Pi(t, e) {
1657
1611
  return !1;
1658
1612
  return !0;
1659
1613
  }
1660
- function Za(t) {
1614
+ function ja(t) {
1661
1615
  const e = {};
1662
1616
  return t.values.forEach((n, s) => e[s] = n.get()), e;
1663
1617
  }
1664
- function Ja(t) {
1618
+ function Na(t) {
1665
1619
  const e = {};
1666
1620
  return t.values.forEach((n, s) => e[s] = n.getVelocity()), e;
1667
1621
  }
1668
1622
  function xe(t, e, n) {
1669
1623
  const s = t.getProps();
1670
- return pn(s, e, n !== void 0 ? n : s.custom, Za(t), Ja(t));
1624
+ return mn(s, e, n !== void 0 ? n : s.custom, ja(t), Na(t));
1671
1625
  }
1672
- let qt = E, q = E;
1626
+ let qt = k, q = k;
1673
1627
  process.env.NODE_ENV !== "production" && (qt = (t, e) => {
1674
1628
  !t && typeof console < "u" && console.warn(e);
1675
1629
  }, q = (t, e) => {
1676
1630
  if (!t)
1677
1631
  throw new Error(e);
1678
1632
  });
1679
- const at = (t) => t * 1e3, tt = (t) => t / 1e3, tl = {
1633
+ const at = (t) => t * 1e3, tt = (t) => t / 1e3, Ua = {
1680
1634
  current: !1
1681
1635
  }, Ai = (t) => Array.isArray(t) && typeof t[0] == "number";
1682
1636
  function Si(t) {
1683
1637
  return !!(!t || typeof t == "string" && Vi[t] || Ai(t) || Array.isArray(t) && t.every(Si));
1684
1638
  }
1685
- const kt = ([t, e, n, s]) => `cubic-bezier(${t}, ${e}, ${n}, ${s})`, Vi = {
1639
+ const Bt = ([t, e, n, s]) => `cubic-bezier(${t}, ${e}, ${n}, ${s})`, Vi = {
1686
1640
  linear: "linear",
1687
1641
  ease: "ease",
1688
1642
  easeIn: "ease-in",
1689
1643
  easeOut: "ease-out",
1690
1644
  easeInOut: "ease-in-out",
1691
- circIn: kt([0, 0.65, 0.55, 1]),
1692
- circOut: kt([0.55, 0, 1, 0.45]),
1693
- backIn: kt([0.31, 0.01, 0.66, -0.59]),
1694
- backOut: kt([0.33, 1.53, 0.69, 0.99])
1645
+ circIn: Bt([0, 0.65, 0.55, 1]),
1646
+ circOut: Bt([0.55, 0, 1, 0.45]),
1647
+ backIn: Bt([0.31, 0.01, 0.66, -0.59]),
1648
+ backOut: Bt([0.33, 1.53, 0.69, 0.99])
1695
1649
  };
1696
1650
  function Ci(t) {
1697
1651
  if (t)
1698
- return Ai(t) ? kt(t) : Array.isArray(t) ? t.map(Ci) : Vi[t];
1652
+ return Ai(t) ? Bt(t) : Array.isArray(t) ? t.map(Ci) : Vi[t];
1699
1653
  }
1700
- function el(t, e, n, { delay: s = 0, duration: i, repeat: r = 0, repeatType: o = "loop", ease: a, times: l } = {}) {
1654
+ function _a(t, e, n, { delay: s = 0, duration: i, repeat: r = 0, repeatType: o = "loop", ease: a, times: l } = {}) {
1701
1655
  const c = { [e]: n };
1702
1656
  l && (c.offset = l);
1703
1657
  const u = Ci(a);
@@ -1710,46 +1664,46 @@ function el(t, e, n, { delay: s = 0, duration: i, repeat: r = 0, repeatType: o =
1710
1664
  direction: o === "reverse" ? "alternate" : "normal"
1711
1665
  });
1712
1666
  }
1713
- function nl(t, { repeat: e, repeatType: n = "loop" }) {
1667
+ function za(t, { repeat: e, repeatType: n = "loop" }) {
1714
1668
  const s = e && n !== "loop" && e % 2 === 1 ? 0 : t.length - 1;
1715
1669
  return t[s];
1716
1670
  }
1717
- const Mi = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, sl = 1e-7, il = 12;
1718
- function ol(t, e, n, s, i) {
1671
+ const Mi = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, Wa = 1e-7, Ga = 12;
1672
+ function $a(t, e, n, s, i) {
1719
1673
  let r, o, a = 0;
1720
1674
  do
1721
1675
  o = e + (n - e) / 2, r = Mi(o, s, i) - t, r > 0 ? n = o : e = o;
1722
- while (Math.abs(r) > sl && ++a < il);
1676
+ while (Math.abs(r) > Wa && ++a < Ga);
1723
1677
  return o;
1724
1678
  }
1725
1679
  function Kt(t, e, n, s) {
1726
1680
  if (t === e && n === s)
1727
- return E;
1728
- const i = (r) => ol(r, 0, 1, t, n);
1681
+ return k;
1682
+ const i = (r) => $a(r, 0, 1, t, n);
1729
1683
  return (r) => r === 0 || r === 1 ? r : Mi(i(r), e, s);
1730
1684
  }
1731
- const rl = Kt(0.42, 0, 1, 1), al = Kt(0, 0, 0.58, 1), Di = Kt(0.42, 0, 0.58, 1), ll = (t) => Array.isArray(t) && typeof t[0] != "number", Ri = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, _i = (t) => (e) => 1 - t(1 - e), mn = (t) => 1 - Math.sin(Math.acos(t)), Li = _i(mn), cl = Ri(mn), Ei = Kt(0.33, 1.53, 0.69, 0.99), gn = _i(Ei), ul = Ri(gn), fl = (t) => (t *= 2) < 1 ? 0.5 * gn(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Gn = {
1732
- linear: E,
1733
- easeIn: rl,
1685
+ const Ha = Kt(0.42, 0, 1, 1), qa = Kt(0, 0, 0.58, 1), Di = Kt(0.42, 0, 0.58, 1), Ka = (t) => Array.isArray(t) && typeof t[0] != "number", Ri = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Li = (t) => (e) => 1 - t(1 - e), pn = (t) => 1 - Math.sin(Math.acos(t)), Ei = Li(pn), Ya = Ri(pn), ki = Kt(0.33, 1.53, 0.69, 0.99), gn = Li(ki), Xa = Ri(gn), Qa = (t) => (t *= 2) < 1 ? 0.5 * gn(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), $n = {
1686
+ linear: k,
1687
+ easeIn: Ha,
1734
1688
  easeInOut: Di,
1735
- easeOut: al,
1736
- circIn: mn,
1737
- circInOut: cl,
1738
- circOut: Li,
1689
+ easeOut: qa,
1690
+ circIn: pn,
1691
+ circInOut: Ya,
1692
+ circOut: Ei,
1739
1693
  backIn: gn,
1740
- backInOut: ul,
1741
- backOut: Ei,
1742
- anticipate: fl
1694
+ backInOut: Xa,
1695
+ backOut: ki,
1696
+ anticipate: Qa
1743
1697
  }, Hn = (t) => {
1744
1698
  if (Array.isArray(t)) {
1745
1699
  q(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
1746
1700
  const [e, n, s, i] = t;
1747
1701
  return Kt(e, n, s, i);
1748
1702
  } else if (typeof t == "string")
1749
- return q(Gn[t] !== void 0, `Invalid easing type '${t}'`), Gn[t];
1703
+ return q($n[t] !== void 0, `Invalid easing type '${t}'`), $n[t];
1750
1704
  return t;
1751
- }, yn = (t, e) => (n) => !!(Gt(n) && da.test(n) && n.startsWith(t) || e && Object.prototype.hasOwnProperty.call(n, e)), ki = (t, e, n) => (s) => {
1752
- if (!Gt(s))
1705
+ }, yn = (t, e) => (n) => !!($t(n) && Jr.test(n) && n.startsWith(t) || e && Object.prototype.hasOwnProperty.call(n, e)), Bi = (t, e, n) => (s) => {
1706
+ if (!$t(s))
1753
1707
  return s;
1754
1708
  const [i, r, o, a] = s.match(ye);
1755
1709
  return {
@@ -1758,15 +1712,15 @@ const rl = Kt(0.42, 0, 1, 1), al = Kt(0, 0, 0.58, 1), Di = Kt(0.42, 0, 0.58, 1),
1758
1712
  [n]: parseFloat(o),
1759
1713
  alpha: a !== void 0 ? parseFloat(a) : 1
1760
1714
  };
1761
- }, hl = (t) => lt(0, 255, t), Ve = {
1715
+ }, Za = (t) => lt(0, 255, t), Ve = {
1762
1716
  ...yt,
1763
- transform: (t) => Math.round(hl(t))
1764
- }, mt = {
1717
+ transform: (t) => Math.round(Za(t))
1718
+ }, pt = {
1765
1719
  test: yn("rgb", "red"),
1766
- parse: ki("red", "green", "blue"),
1767
- transform: ({ red: t, green: e, blue: n, alpha: s = 1 }) => "rgba(" + Ve.transform(t) + ", " + Ve.transform(e) + ", " + Ve.transform(n) + ", " + It(Bt.transform(s)) + ")"
1720
+ parse: Bi("red", "green", "blue"),
1721
+ transform: ({ red: t, green: e, blue: n, alpha: s = 1 }) => "rgba(" + Ve.transform(t) + ", " + Ve.transform(e) + ", " + Ve.transform(n) + ", " + Ft(It.transform(s)) + ")"
1768
1722
  };
1769
- function dl(t) {
1723
+ function Ja(t) {
1770
1724
  let e = "", n = "", s = "", i = "";
1771
1725
  return t.length > 5 ? (e = t.substring(1, 3), n = t.substring(3, 5), s = t.substring(5, 7), i = t.substring(7, 9)) : (e = t.substring(1, 2), n = t.substring(2, 3), s = t.substring(3, 4), i = t.substring(4, 5), e += e, n += n, s += s, i += i), {
1772
1726
  red: parseInt(e, 16),
@@ -1775,23 +1729,23 @@ function dl(t) {
1775
1729
  alpha: i ? parseInt(i, 16) / 255 : 1
1776
1730
  };
1777
1731
  }
1778
- const je = {
1732
+ const Ne = {
1779
1733
  test: yn("#"),
1780
- parse: dl,
1781
- transform: mt.transform
1734
+ parse: Ja,
1735
+ transform: pt.transform
1782
1736
  }, Tt = {
1783
1737
  test: yn("hsl", "hue"),
1784
- parse: ki("hue", "saturation", "lightness"),
1785
- transform: ({ hue: t, saturation: e, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(t) + ", " + K.transform(It(e)) + ", " + K.transform(It(n)) + ", " + It(Bt.transform(s)) + ")"
1786
- }, j = {
1787
- test: (t) => mt.test(t) || je.test(t) || Tt.test(t),
1788
- parse: (t) => mt.test(t) ? mt.parse(t) : Tt.test(t) ? Tt.parse(t) : je.parse(t),
1789
- transform: (t) => Gt(t) ? t : t.hasOwnProperty("red") ? mt.transform(t) : Tt.transform(t)
1790
- }, _ = (t, e, n) => -n * t + n * e + t;
1738
+ parse: Bi("hue", "saturation", "lightness"),
1739
+ transform: ({ hue: t, saturation: e, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(t) + ", " + K.transform(Ft(e)) + ", " + K.transform(Ft(n)) + ", " + Ft(It.transform(s)) + ")"
1740
+ }, N = {
1741
+ test: (t) => pt.test(t) || Ne.test(t) || Tt.test(t),
1742
+ parse: (t) => pt.test(t) ? pt.parse(t) : Tt.test(t) ? Tt.parse(t) : Ne.parse(t),
1743
+ transform: (t) => $t(t) ? t : t.hasOwnProperty("red") ? pt.transform(t) : Tt.transform(t)
1744
+ }, L = (t, e, n) => -n * t + n * e + t;
1791
1745
  function Ce(t, e, n) {
1792
1746
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
1793
1747
  }
1794
- function pl({ hue: t, saturation: e, lightness: n, alpha: s }) {
1748
+ function tl({ hue: t, saturation: e, lightness: n, alpha: s }) {
1795
1749
  t /= 360, e /= 100, n /= 100;
1796
1750
  let i = 0, r = 0, o = 0;
1797
1751
  if (!e)
@@ -1810,32 +1764,32 @@ function pl({ hue: t, saturation: e, lightness: n, alpha: s }) {
1810
1764
  const Me = (t, e, n) => {
1811
1765
  const s = t * t;
1812
1766
  return Math.sqrt(Math.max(0, n * (e * e - s) + s));
1813
- }, ml = [je, mt, Tt], gl = (t) => ml.find((e) => e.test(t));
1767
+ }, el = [Ne, pt, Tt], nl = (t) => el.find((e) => e.test(t));
1814
1768
  function qn(t) {
1815
- const e = gl(t);
1769
+ const e = nl(t);
1816
1770
  q(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`);
1817
1771
  let n = e.parse(t);
1818
- return e === Tt && (n = pl(n)), n;
1772
+ return e === Tt && (n = tl(n)), n;
1819
1773
  }
1820
- const Bi = (t, e) => {
1774
+ const Ii = (t, e) => {
1821
1775
  const n = qn(t), s = qn(e), i = { ...n };
1822
- return (r) => (i.red = Me(n.red, s.red, r), i.green = Me(n.green, s.green, r), i.blue = Me(n.blue, s.blue, r), i.alpha = _(n.alpha, s.alpha, r), mt.transform(i));
1776
+ return (r) => (i.red = Me(n.red, s.red, r), i.green = Me(n.green, s.green, r), i.blue = Me(n.blue, s.blue, r), i.alpha = L(n.alpha, s.alpha, r), pt.transform(i));
1823
1777
  };
1824
- function yl(t) {
1778
+ function sl(t) {
1825
1779
  var e, n;
1826
- return isNaN(t) && Gt(t) && (((e = t.match(ye)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(li)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
1780
+ return isNaN(t) && $t(t) && (((e = t.match(ye)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(li)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
1827
1781
  }
1828
- const Ii = {
1829
- regex: fa,
1782
+ const Fi = {
1783
+ regex: Qr,
1830
1784
  countKey: "Vars",
1831
1785
  token: "${v}",
1832
- parse: E
1833
- }, Fi = {
1786
+ parse: k
1787
+ }, Oi = {
1834
1788
  regex: li,
1835
1789
  countKey: "Colors",
1836
1790
  token: "${c}",
1837
- parse: j.parse
1838
- }, Oi = {
1791
+ parse: N.parse
1792
+ }, ji = {
1839
1793
  regex: ye,
1840
1794
  countKey: "Numbers",
1841
1795
  token: "${n}",
@@ -1854,33 +1808,33 @@ function re(t) {
1854
1808
  numColors: 0,
1855
1809
  numNumbers: 0
1856
1810
  };
1857
- return n.value.includes("var(--") && De(n, Ii), De(n, Fi), De(n, Oi), n;
1811
+ return n.value.includes("var(--") && De(n, Fi), De(n, Oi), De(n, ji), n;
1858
1812
  }
1859
- function ji(t) {
1813
+ function Ni(t) {
1860
1814
  return re(t).values;
1861
1815
  }
1862
- function Ni(t) {
1816
+ function Ui(t) {
1863
1817
  const { values: e, numColors: n, numVars: s, tokenised: i } = re(t), r = e.length;
1864
1818
  return (o) => {
1865
1819
  let a = i;
1866
1820
  for (let l = 0; l < r; l++)
1867
- l < s ? a = a.replace(Ii.token, o[l]) : l < s + n ? a = a.replace(Fi.token, j.transform(o[l])) : a = a.replace(Oi.token, It(o[l]));
1821
+ l < s ? a = a.replace(Fi.token, o[l]) : l < s + n ? a = a.replace(Oi.token, N.transform(o[l])) : a = a.replace(ji.token, Ft(o[l]));
1868
1822
  return a;
1869
1823
  };
1870
1824
  }
1871
- const vl = (t) => typeof t == "number" ? 0 : t;
1872
- function xl(t) {
1873
- const e = ji(t);
1874
- return Ni(t)(e.map(vl));
1825
+ const il = (t) => typeof t == "number" ? 0 : t;
1826
+ function ol(t) {
1827
+ const e = Ni(t);
1828
+ return Ui(t)(e.map(il));
1875
1829
  }
1876
1830
  const ct = {
1877
- test: yl,
1878
- parse: ji,
1879
- createTransformer: Ni,
1880
- getAnimatableNone: xl
1881
- }, Ui = (t, e) => (n) => `${n > 0 ? e : t}`;
1831
+ test: sl,
1832
+ parse: Ni,
1833
+ createTransformer: Ui,
1834
+ getAnimatableNone: ol
1835
+ }, _i = (t, e) => (n) => `${n > 0 ? e : t}`;
1882
1836
  function zi(t, e) {
1883
- return typeof t == "number" ? (n) => _(t, e, n) : j.test(t) ? Bi(t, e) : t.startsWith("var(") ? Ui(t, e) : $i(t, e);
1837
+ return typeof t == "number" ? (n) => L(t, e, n) : N.test(t) ? Ii(t, e) : t.startsWith("var(") ? _i(t, e) : Gi(t, e);
1884
1838
  }
1885
1839
  const Wi = (t, e) => {
1886
1840
  const n = [...t], s = n.length, i = t.map((r, o) => zi(r, e[o]));
@@ -1889,7 +1843,7 @@ const Wi = (t, e) => {
1889
1843
  n[o] = i[o](r);
1890
1844
  return n;
1891
1845
  };
1892
- }, bl = (t, e) => {
1846
+ }, rl = (t, e) => {
1893
1847
  const n = { ...t, ...e }, s = {};
1894
1848
  for (const i in n)
1895
1849
  t[i] !== void 0 && e[i] !== void 0 && (s[i] = zi(t[i], e[i]));
@@ -1898,71 +1852,71 @@ const Wi = (t, e) => {
1898
1852
  n[r] = s[r](i);
1899
1853
  return n;
1900
1854
  };
1901
- }, $i = (t, e) => {
1855
+ }, Gi = (t, e) => {
1902
1856
  const n = ct.createTransformer(e), s = re(t), i = re(e);
1903
- return s.numVars === i.numVars && s.numColors === i.numColors && s.numNumbers >= i.numNumbers ? rt(Wi(s.values, i.values), n) : (qt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Ui(t, e));
1857
+ return s.numVars === i.numVars && s.numColors === i.numColors && s.numNumbers >= i.numNumbers ? rt(Wi(s.values, i.values), n) : (qt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), _i(t, e));
1904
1858
  }, zt = (t, e, n) => {
1905
1859
  const s = e - t;
1906
1860
  return s === 0 ? 1 : (n - t) / s;
1907
- }, Kn = (t, e) => (n) => _(t, e, n);
1908
- function wl(t) {
1909
- return typeof t == "number" ? Kn : typeof t == "string" ? j.test(t) ? Bi : $i : Array.isArray(t) ? Wi : typeof t == "object" ? bl : Kn;
1861
+ }, Kn = (t, e) => (n) => L(t, e, n);
1862
+ function al(t) {
1863
+ return typeof t == "number" ? Kn : typeof t == "string" ? N.test(t) ? Ii : Gi : Array.isArray(t) ? Wi : typeof t == "object" ? rl : Kn;
1910
1864
  }
1911
- function Tl(t, e, n) {
1912
- const s = [], i = n || wl(t[0]), r = t.length - 1;
1865
+ function ll(t, e, n) {
1866
+ const s = [], i = n || al(t[0]), r = t.length - 1;
1913
1867
  for (let o = 0; o < r; o++) {
1914
1868
  let a = i(t[o], t[o + 1]);
1915
1869
  if (e) {
1916
- const l = Array.isArray(e) ? e[o] || E : e;
1870
+ const l = Array.isArray(e) ? e[o] || k : e;
1917
1871
  a = rt(l, a);
1918
1872
  }
1919
1873
  s.push(a);
1920
1874
  }
1921
1875
  return s;
1922
1876
  }
1923
- function Gi(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
1877
+ function $i(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
1924
1878
  const r = t.length;
1925
1879
  if (q(r === e.length, "Both input and output ranges must be the same length"), r === 1)
1926
1880
  return () => e[0];
1927
1881
  t[0] > t[r - 1] && (t = [...t].reverse(), e = [...e].reverse());
1928
- const o = Tl(e, s, i), a = o.length, l = (c) => {
1882
+ const o = ll(e, s, i), a = o.length, l = (c) => {
1929
1883
  let u = 0;
1930
1884
  if (a > 1)
1931
1885
  for (; u < t.length - 2 && !(c < t[u + 1]); u++)
1932
1886
  ;
1933
- const f = zt(t[u], t[u + 1], c);
1934
- return o[u](f);
1887
+ const h = zt(t[u], t[u + 1], c);
1888
+ return o[u](h);
1935
1889
  };
1936
1890
  return n ? (c) => l(lt(t[0], t[r - 1], c)) : l;
1937
1891
  }
1938
- function Pl(t, e) {
1892
+ function cl(t, e) {
1939
1893
  const n = t[t.length - 1];
1940
1894
  for (let s = 1; s <= e; s++) {
1941
1895
  const i = zt(0, e, s);
1942
- t.push(_(n, 1, i));
1896
+ t.push(L(n, 1, i));
1943
1897
  }
1944
1898
  }
1945
- function Al(t) {
1899
+ function ul(t) {
1946
1900
  const e = [0];
1947
- return Pl(e, t.length - 1), e;
1901
+ return cl(e, t.length - 1), e;
1948
1902
  }
1949
- function Sl(t, e) {
1903
+ function hl(t, e) {
1950
1904
  return t.map((n) => n * e);
1951
1905
  }
1952
- function Vl(t, e) {
1906
+ function fl(t, e) {
1953
1907
  return t.map(() => e || Di).splice(0, t.length - 1);
1954
1908
  }
1955
1909
  function ae({ duration: t = 300, keyframes: e, times: n, ease: s = "easeInOut" }) {
1956
- const i = ll(s) ? s.map(Hn) : Hn(s), r = {
1910
+ const i = Ka(s) ? s.map(Hn) : Hn(s), r = {
1957
1911
  done: !1,
1958
1912
  value: e[0]
1959
- }, o = Sl(
1913
+ }, o = hl(
1960
1914
  // Only use the provided offsets if they're the correct length
1961
1915
  // TODO Maybe we should warn here if there's a length mismatch
1962
- n && n.length === e.length ? n : Al(e),
1916
+ n && n.length === e.length ? n : ul(e),
1963
1917
  t
1964
- ), a = Gi(o, e, {
1965
- ease: Array.isArray(i) ? i : Vl(e, i)
1918
+ ), a = $i(o, e, {
1919
+ ease: Array.isArray(i) ? i : fl(e, i)
1966
1920
  });
1967
1921
  return {
1968
1922
  calculatedDuration: t,
@@ -1972,30 +1926,30 @@ function ae({ duration: t = 300, keyframes: e, times: n, ease: s = "easeInOut" }
1972
1926
  function Hi(t, e) {
1973
1927
  return e ? t * (1e3 / e) : 0;
1974
1928
  }
1975
- const Cl = 5;
1929
+ const dl = 5;
1976
1930
  function qi(t, e, n) {
1977
- const s = Math.max(e - Cl, 0);
1931
+ const s = Math.max(e - dl, 0);
1978
1932
  return Hi(n - t(s), e - s);
1979
1933
  }
1980
- const Re = 1e-3, Ml = 0.01, Yn = 10, Dl = 0.05, Rl = 1;
1981
- function _l({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: s = 1 }) {
1934
+ const Re = 1e-3, ml = 0.01, Yn = 10, pl = 0.05, gl = 1;
1935
+ function yl({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: s = 1 }) {
1982
1936
  let i, r;
1983
1937
  qt(t <= at(Yn), "Spring duration must be 10 seconds or less");
1984
1938
  let o = 1 - e;
1985
- o = lt(Dl, Rl, o), t = lt(Ml, Yn, tt(t)), o < 1 ? (i = (c) => {
1986
- const u = c * o, f = u * t, h = u - n, d = Ne(c, o), p = Math.exp(-f);
1987
- return Re - h / d * p;
1939
+ o = lt(pl, gl, o), t = lt(ml, Yn, tt(t)), o < 1 ? (i = (c) => {
1940
+ const u = c * o, h = u * t, f = u - n, d = Ue(c, o), m = Math.exp(-h);
1941
+ return Re - f / d * m;
1988
1942
  }, r = (c) => {
1989
- const f = c * o * t, h = f * n + n, d = Math.pow(o, 2) * Math.pow(c, 2) * t, p = Math.exp(-f), m = Ne(Math.pow(c, 2), o);
1990
- return (-i(c) + Re > 0 ? -1 : 1) * ((h - d) * p) / m;
1943
+ const h = c * o * t, f = h * n + n, d = Math.pow(o, 2) * Math.pow(c, 2) * t, m = Math.exp(-h), p = Ue(Math.pow(c, 2), o);
1944
+ return (-i(c) + Re > 0 ? -1 : 1) * ((f - d) * m) / p;
1991
1945
  }) : (i = (c) => {
1992
- const u = Math.exp(-c * t), f = (c - n) * t + 1;
1993
- return -Re + u * f;
1946
+ const u = Math.exp(-c * t), h = (c - n) * t + 1;
1947
+ return -Re + u * h;
1994
1948
  }, r = (c) => {
1995
- const u = Math.exp(-c * t), f = (n - c) * (t * t);
1996
- return u * f;
1949
+ const u = Math.exp(-c * t), h = (n - c) * (t * t);
1950
+ return u * h;
1997
1951
  });
1998
- const a = 5 / t, l = El(i, r, a);
1952
+ const a = 5 / t, l = xl(i, r, a);
1999
1953
  if (t = at(t), isNaN(l))
2000
1954
  return {
2001
1955
  stiffness: 100,
@@ -2011,21 +1965,21 @@ function _l({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: s = 1
2011
1965
  };
2012
1966
  }
2013
1967
  }
2014
- const Ll = 12;
2015
- function El(t, e, n) {
1968
+ const vl = 12;
1969
+ function xl(t, e, n) {
2016
1970
  let s = n;
2017
- for (let i = 1; i < Ll; i++)
1971
+ for (let i = 1; i < vl; i++)
2018
1972
  s = s - t(s) / e(s);
2019
1973
  return s;
2020
1974
  }
2021
- function Ne(t, e) {
1975
+ function Ue(t, e) {
2022
1976
  return t * Math.sqrt(1 - e * e);
2023
1977
  }
2024
- const kl = ["duration", "bounce"], Bl = ["stiffness", "damping", "mass"];
1978
+ const bl = ["duration", "bounce"], wl = ["stiffness", "damping", "mass"];
2025
1979
  function Xn(t, e) {
2026
1980
  return e.some((n) => t[n] !== void 0);
2027
1981
  }
2028
- function Il(t) {
1982
+ function Tl(t) {
2029
1983
  let e = {
2030
1984
  velocity: 0,
2031
1985
  stiffness: 100,
@@ -2034,8 +1988,8 @@ function Il(t) {
2034
1988
  isResolvedFromDuration: !1,
2035
1989
  ...t
2036
1990
  };
2037
- if (!Xn(t, Bl) && Xn(t, kl)) {
2038
- const n = _l(t);
1991
+ if (!Xn(t, wl) && Xn(t, bl)) {
1992
+ const n = yl(t);
2039
1993
  e = {
2040
1994
  ...e,
2041
1995
  ...n,
@@ -2045,36 +1999,36 @@ function Il(t) {
2045
1999
  return e;
2046
2000
  }
2047
2001
  function Ki({ keyframes: t, restDelta: e, restSpeed: n, ...s }) {
2048
- const i = t[0], r = t[t.length - 1], o = { done: !1, value: i }, { stiffness: a, damping: l, mass: c, duration: u, velocity: f, isResolvedFromDuration: h } = Il({
2002
+ const i = t[0], r = t[t.length - 1], o = { done: !1, value: i }, { stiffness: a, damping: l, mass: c, duration: u, velocity: h, isResolvedFromDuration: f } = Tl({
2049
2003
  ...s,
2050
2004
  velocity: -tt(s.velocity || 0)
2051
- }), d = f || 0, p = l / (2 * Math.sqrt(a * c)), m = r - i, v = tt(Math.sqrt(a / c)), b = Math.abs(m) < 5;
2005
+ }), d = h || 0, m = l / (2 * Math.sqrt(a * c)), p = r - i, v = tt(Math.sqrt(a / c)), b = Math.abs(p) < 5;
2052
2006
  n || (n = b ? 0.01 : 2), e || (e = b ? 5e-3 : 0.5);
2053
2007
  let y;
2054
- if (p < 1) {
2055
- const g = Ne(v, p);
2008
+ if (m < 1) {
2009
+ const g = Ue(v, m);
2056
2010
  y = (x) => {
2057
- const P = Math.exp(-p * v * x);
2058
- return r - P * ((d + p * v * m) / g * Math.sin(g * x) + m * Math.cos(g * x));
2011
+ const P = Math.exp(-m * v * x);
2012
+ return r - P * ((d + m * v * p) / g * Math.sin(g * x) + p * Math.cos(g * x));
2059
2013
  };
2060
- } else if (p === 1)
2061
- y = (g) => r - Math.exp(-v * g) * (m + (d + v * m) * g);
2014
+ } else if (m === 1)
2015
+ y = (g) => r - Math.exp(-v * g) * (p + (d + v * p) * g);
2062
2016
  else {
2063
- const g = v * Math.sqrt(p * p - 1);
2017
+ const g = v * Math.sqrt(m * m - 1);
2064
2018
  y = (x) => {
2065
- const P = Math.exp(-p * v * x), S = Math.min(g * x, 300);
2066
- return r - P * ((d + p * v * m) * Math.sinh(S) + g * m * Math.cosh(S)) / g;
2019
+ const P = Math.exp(-m * v * x), S = Math.min(g * x, 300);
2020
+ return r - P * ((d + m * v * p) * Math.sinh(S) + g * p * Math.cosh(S)) / g;
2067
2021
  };
2068
2022
  }
2069
2023
  return {
2070
- calculatedDuration: h && u || null,
2024
+ calculatedDuration: f && u || null,
2071
2025
  next: (g) => {
2072
2026
  const x = y(g);
2073
- if (h)
2027
+ if (f)
2074
2028
  o.done = g >= u;
2075
2029
  else {
2076
2030
  let P = d;
2077
- g !== 0 && (p < 1 ? P = qi(y, g, x) : P = 0);
2031
+ g !== 0 && (m < 1 ? P = qi(y, g, x) : P = 0);
2078
2032
  const S = Math.abs(P) <= n, C = Math.abs(r - x) <= e;
2079
2033
  o.done = S && C;
2080
2034
  }
@@ -2083,22 +2037,22 @@ function Ki({ keyframes: t, restDelta: e, restSpeed: n, ...s }) {
2083
2037
  };
2084
2038
  }
2085
2039
  function Qn({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: i = 10, bounceStiffness: r = 500, modifyTarget: o, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
2086
- const f = t[0], h = {
2040
+ const h = t[0], f = {
2087
2041
  done: !1,
2088
- value: f
2089
- }, d = (A) => a !== void 0 && A < a || l !== void 0 && A > l, p = (A) => a === void 0 ? l : l === void 0 || Math.abs(a - A) < Math.abs(l - A) ? a : l;
2090
- let m = n * e;
2091
- const v = f + m, b = o === void 0 ? v : o(v);
2092
- b !== v && (m = b - f);
2093
- const y = (A) => -m * Math.exp(-A / s), g = (A) => b + y(A), x = (A) => {
2094
- const L = y(A), Y = g(A);
2095
- h.done = Math.abs(L) <= c, h.value = h.done ? b : Y;
2042
+ value: h
2043
+ }, d = (A) => a !== void 0 && A < a || l !== void 0 && A > l, m = (A) => a === void 0 ? l : l === void 0 || Math.abs(a - A) < Math.abs(l - A) ? a : l;
2044
+ let p = n * e;
2045
+ const v = h + p, b = o === void 0 ? v : o(v);
2046
+ b !== v && (p = b - h);
2047
+ const y = (A) => -p * Math.exp(-A / s), g = (A) => b + y(A), x = (A) => {
2048
+ const E = y(A), Y = g(A);
2049
+ f.done = Math.abs(E) <= c, f.value = f.done ? b : Y;
2096
2050
  };
2097
2051
  let P, S;
2098
2052
  const C = (A) => {
2099
- d(h.value) && (P = A, S = Ki({
2100
- keyframes: [h.value, p(h.value)],
2101
- velocity: qi(g, A, h.value),
2053
+ d(f.value) && (P = A, S = Ki({
2054
+ keyframes: [f.value, m(f.value)],
2055
+ velocity: qi(g, A, f.value),
2102
2056
  damping: i,
2103
2057
  stiffness: r,
2104
2058
  restDelta: c,
@@ -2108,12 +2062,12 @@ function Qn({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 3
2108
2062
  return C(0), {
2109
2063
  calculatedDuration: null,
2110
2064
  next: (A) => {
2111
- let L = !1;
2112
- return !S && P === void 0 && (L = !0, x(A), C(A)), P !== void 0 && A > P ? S.next(A - P) : (!L && x(A), h);
2065
+ let E = !1;
2066
+ return !S && P === void 0 && (E = !0, x(A), C(A)), P !== void 0 && A > P ? S.next(A - P) : (!E && x(A), f);
2113
2067
  }
2114
2068
  };
2115
2069
  }
2116
- const Fl = (t) => {
2070
+ const Pl = (t) => {
2117
2071
  const e = ({ timestamp: n }) => t(n);
2118
2072
  return {
2119
2073
  start: () => V.update(e, !0),
@@ -2133,70 +2087,70 @@ function Jn(t) {
2133
2087
  e += n, s = t.next(e);
2134
2088
  return e >= Zn ? 1 / 0 : e;
2135
2089
  }
2136
- const Ol = {
2090
+ const Al = {
2137
2091
  decay: Qn,
2138
2092
  inertia: Qn,
2139
2093
  tween: ae,
2140
2094
  keyframes: ae,
2141
2095
  spring: Ki
2142
2096
  };
2143
- function le({ autoplay: t = !0, delay: e = 0, driver: n = Fl, keyframes: s, type: i = "keyframes", repeat: r = 0, repeatDelay: o = 0, repeatType: a = "loop", onPlay: l, onStop: c, onComplete: u, onUpdate: f, ...h }) {
2144
- let d = 1, p = !1, m, v;
2097
+ function le({ autoplay: t = !0, delay: e = 0, driver: n = Pl, keyframes: s, type: i = "keyframes", repeat: r = 0, repeatDelay: o = 0, repeatType: a = "loop", onPlay: l, onStop: c, onComplete: u, onUpdate: h, ...f }) {
2098
+ let d = 1, m = !1, p, v;
2145
2099
  const b = () => {
2146
2100
  v = new Promise((M) => {
2147
- m = M;
2101
+ p = M;
2148
2102
  });
2149
2103
  };
2150
2104
  b();
2151
2105
  let y;
2152
- const g = Ol[i] || ae;
2106
+ const g = Al[i] || ae;
2153
2107
  let x;
2154
- g !== ae && typeof s[0] != "number" && (process.env.NODE_ENV !== "production" && q(s.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${s}`), x = Gi([0, 100], s, {
2108
+ g !== ae && typeof s[0] != "number" && (process.env.NODE_ENV !== "production" && q(s.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${s}`), x = $i([0, 100], s, {
2155
2109
  clamp: !1
2156
2110
  }), s = [0, 100]);
2157
- const P = g({ ...h, keyframes: s });
2111
+ const P = g({ ...f, keyframes: s });
2158
2112
  let S;
2159
2113
  a === "mirror" && (S = g({
2160
- ...h,
2114
+ ...f,
2161
2115
  keyframes: [...s].reverse(),
2162
- velocity: -(h.velocity || 0)
2116
+ velocity: -(f.velocity || 0)
2163
2117
  }));
2164
- let C = "idle", A = null, L = null, Y = null;
2118
+ let C = "idle", A = null, E = null, Y = null;
2165
2119
  P.calculatedDuration === null && r && (P.calculatedDuration = Jn(P));
2166
2120
  const { calculatedDuration: vt } = P;
2167
2121
  let H = 1 / 0, X = 1 / 0;
2168
2122
  vt !== null && (H = vt + o, X = H * (r + 1) - o);
2169
- let O = 0;
2123
+ let j = 0;
2170
2124
  const xt = (M) => {
2171
- if (L === null)
2125
+ if (E === null)
2172
2126
  return;
2173
- d > 0 && (L = Math.min(L, M)), d < 0 && (L = Math.min(M - X / d, L)), A !== null ? O = A : O = Math.round(M - L) * d;
2174
- const Rt = O - e * (d >= 0 ? 1 : -1), Cn = d >= 0 ? Rt < 0 : Rt > X;
2175
- O = Math.max(Rt, 0), C === "finished" && A === null && (O = X);
2176
- let Mn = O, Dn = P;
2127
+ d > 0 && (E = Math.min(E, M)), d < 0 && (E = Math.min(M - X / d, E)), A !== null ? j = A : j = Math.round(M - E) * d;
2128
+ const Rt = j - e * (d >= 0 ? 1 : -1), Cn = d >= 0 ? Rt < 0 : Rt > X;
2129
+ j = Math.max(Rt, 0), C === "finished" && A === null && (j = X);
2130
+ let Mn = j, Dn = P;
2177
2131
  if (r) {
2178
- const be = Math.min(O, X) / H;
2179
- let Yt = Math.floor(be), ft = be % 1;
2180
- !ft && be >= 1 && (ft = 1), ft === 1 && Yt--, Yt = Math.min(Yt, r + 1), !!(Yt % 2) && (a === "reverse" ? (ft = 1 - ft, o && (ft -= o / H)) : a === "mirror" && (Dn = S)), Mn = lt(0, 1, ft) * H;
2132
+ const be = Math.min(j, X) / H;
2133
+ let Yt = Math.floor(be), ht = be % 1;
2134
+ !ht && be >= 1 && (ht = 1), ht === 1 && Yt--, Yt = Math.min(Yt, r + 1), !!(Yt % 2) && (a === "reverse" ? (ht = 1 - ht, o && (ht -= o / H)) : a === "mirror" && (Dn = S)), Mn = lt(0, 1, ht) * H;
2181
2135
  }
2182
- const _t = Cn ? { done: !1, value: s[0] } : Dn.next(Mn);
2183
- x && (_t.value = x(_t.value));
2184
- let { done: Rn } = _t;
2185
- !Cn && vt !== null && (Rn = d >= 0 ? O >= X : O <= 0);
2136
+ const Lt = Cn ? { done: !1, value: s[0] } : Dn.next(Mn);
2137
+ x && (Lt.value = x(Lt.value));
2138
+ let { done: Rn } = Lt;
2139
+ !Cn && vt !== null && (Rn = d >= 0 ? j >= X : j <= 0);
2186
2140
  const Po = A === null && (C === "finished" || C === "running" && Rn);
2187
- return f && f(_t.value), Po && Dt(), _t;
2188
- }, B = () => {
2141
+ return h && h(Lt.value), Po && Dt(), Lt;
2142
+ }, I = () => {
2189
2143
  y && y.stop(), y = void 0;
2190
2144
  }, nt = () => {
2191
- C = "idle", B(), m(), b(), L = Y = null;
2145
+ C = "idle", I(), p(), b(), E = Y = null;
2192
2146
  }, Dt = () => {
2193
- C = "finished", u && u(), B(), m();
2147
+ C = "finished", u && u(), I(), p();
2194
2148
  }, bt = () => {
2195
- if (p)
2149
+ if (m)
2196
2150
  return;
2197
2151
  y || (y = n(xt));
2198
2152
  const M = y.now();
2199
- l && l(), A !== null ? L = M - A : (!L || C === "finished") && (L = M), C === "finished" && b(), Y = L, A = null, C = "running", y.start();
2153
+ l && l(), A !== null ? E = M - A : (!E || C === "finished") && (E = M), C === "finished" && b(), Y = E, A = null, C = "running", y.start();
2200
2154
  };
2201
2155
  t && bt();
2202
2156
  const Vn = {
@@ -2204,10 +2158,10 @@ function le({ autoplay: t = !0, delay: e = 0, driver: n = Fl, keyframes: s, type
2204
2158
  return v.then(M, Rt);
2205
2159
  },
2206
2160
  get time() {
2207
- return tt(O);
2161
+ return tt(j);
2208
2162
  },
2209
2163
  set time(M) {
2210
- M = at(M), O = M, A !== null || !y || d === 0 ? A = M : L = y.now() - M / d;
2164
+ M = at(M), j = M, A !== null || !y || d === 0 ? A = M : E = y.now() - M / d;
2211
2165
  },
2212
2166
  get duration() {
2213
2167
  const M = P.calculatedDuration === null ? Jn(P) : P.calculatedDuration;
@@ -2217,17 +2171,17 @@ function le({ autoplay: t = !0, delay: e = 0, driver: n = Fl, keyframes: s, type
2217
2171
  return d;
2218
2172
  },
2219
2173
  set speed(M) {
2220
- M === d || !y || (d = M, Vn.time = tt(O));
2174
+ M === d || !y || (d = M, Vn.time = tt(j));
2221
2175
  },
2222
2176
  get state() {
2223
2177
  return C;
2224
2178
  },
2225
2179
  play: bt,
2226
2180
  pause: () => {
2227
- C = "paused", A = O;
2181
+ C = "paused", A = j;
2228
2182
  },
2229
2183
  stop: () => {
2230
- p = !0, C !== "idle" && (C = "idle", c && c(), nt());
2184
+ m = !0, C !== "idle" && (C = "idle", c && c(), nt());
2231
2185
  },
2232
2186
  cancel: () => {
2233
2187
  Y !== null && xt(Y), nt();
@@ -2235,23 +2189,23 @@ function le({ autoplay: t = !0, delay: e = 0, driver: n = Fl, keyframes: s, type
2235
2189
  complete: () => {
2236
2190
  C = "finished";
2237
2191
  },
2238
- sample: (M) => (L = 0, xt(M))
2192
+ sample: (M) => (E = 0, xt(M))
2239
2193
  };
2240
2194
  return Vn;
2241
2195
  }
2242
- function jl(t) {
2196
+ function Sl(t) {
2243
2197
  let e;
2244
2198
  return () => (e === void 0 && (e = t()), e);
2245
2199
  }
2246
- const Nl = jl(() => Object.hasOwnProperty.call(Element.prototype, "animate")), Ul = /* @__PURE__ */ new Set([
2200
+ const Vl = Sl(() => Object.hasOwnProperty.call(Element.prototype, "animate")), Cl = /* @__PURE__ */ new Set([
2247
2201
  "opacity",
2248
2202
  "clipPath",
2249
2203
  "filter",
2250
2204
  "transform",
2251
2205
  "backgroundColor"
2252
- ]), Zt = 10, zl = 2e4, Wl = (t, e) => e.type === "spring" || t === "backgroundColor" || !Si(e.ease);
2253
- function $l(t, e, { onUpdate: n, onComplete: s, ...i }) {
2254
- if (!(Nl() && Ul.has(e) && !i.repeatDelay && i.repeatType !== "mirror" && i.damping !== 0 && i.type !== "inertia"))
2206
+ ]), Zt = 10, Ml = 2e4, Dl = (t, e) => e.type === "spring" || t === "backgroundColor" || !Si(e.ease);
2207
+ function Rl(t, e, { onUpdate: n, onComplete: s, ...i }) {
2208
+ if (!(Vl() && Cl.has(e) && !i.repeatDelay && i.repeatType !== "mirror" && i.damping !== 0 && i.type !== "inertia"))
2255
2209
  return !1;
2256
2210
  let o = !1, a, l, c = !1;
2257
2211
  const u = () => {
@@ -2260,23 +2214,23 @@ function $l(t, e, { onUpdate: n, onComplete: s, ...i }) {
2260
2214
  });
2261
2215
  };
2262
2216
  u();
2263
- let { keyframes: f, duration: h = 300, ease: d, times: p } = i;
2264
- if (Wl(e, i)) {
2217
+ let { keyframes: h, duration: f = 300, ease: d, times: m } = i;
2218
+ if (Dl(e, i)) {
2265
2219
  const g = le({
2266
2220
  ...i,
2267
2221
  repeat: 0,
2268
2222
  delay: 0
2269
2223
  });
2270
- let x = { done: !1, value: f[0] };
2224
+ let x = { done: !1, value: h[0] };
2271
2225
  const P = [];
2272
2226
  let S = 0;
2273
- for (; !x.done && S < zl; )
2227
+ for (; !x.done && S < Ml; )
2274
2228
  x = g.sample(S), P.push(x.value), S += Zt;
2275
- p = void 0, f = P, h = S - Zt, d = "linear";
2229
+ m = void 0, h = P, f = S - Zt, d = "linear";
2276
2230
  }
2277
- const m = el(t.owner.current, e, f, {
2231
+ const p = _a(t.owner.current, e, h, {
2278
2232
  ...i,
2279
- duration: h,
2233
+ duration: f,
2280
2234
  /**
2281
2235
  * This function is currently not called if ease is provided
2282
2236
  * as a function so the cast is safe.
@@ -2286,44 +2240,44 @@ function $l(t, e, { onUpdate: n, onComplete: s, ...i }) {
2286
2240
  * support the upcoming `linear()` easing function.
2287
2241
  */
2288
2242
  ease: d,
2289
- times: p
2243
+ times: m
2290
2244
  }), v = () => {
2291
- c = !1, m.cancel();
2245
+ c = !1, p.cancel();
2292
2246
  }, b = () => {
2293
2247
  c = !0, V.update(v), a(), u();
2294
2248
  };
2295
- return m.onfinish = () => {
2296
- c || (t.set(nl(f, i)), s && s(), b());
2249
+ return p.onfinish = () => {
2250
+ c || (t.set(za(h, i)), s && s(), b());
2297
2251
  }, {
2298
2252
  then(g, x) {
2299
2253
  return l.then(g, x);
2300
2254
  },
2301
2255
  attachTimeline(g) {
2302
- return m.timeline = g, m.onfinish = null, E;
2256
+ return p.timeline = g, p.onfinish = null, k;
2303
2257
  },
2304
2258
  get time() {
2305
- return tt(m.currentTime || 0);
2259
+ return tt(p.currentTime || 0);
2306
2260
  },
2307
2261
  set time(g) {
2308
- m.currentTime = at(g);
2262
+ p.currentTime = at(g);
2309
2263
  },
2310
2264
  get speed() {
2311
- return m.playbackRate;
2265
+ return p.playbackRate;
2312
2266
  },
2313
2267
  set speed(g) {
2314
- m.playbackRate = g;
2268
+ p.playbackRate = g;
2315
2269
  },
2316
2270
  get duration() {
2317
- return tt(h);
2271
+ return tt(f);
2318
2272
  },
2319
2273
  play: () => {
2320
- o || (m.play(), et(v));
2274
+ o || (p.play(), et(v));
2321
2275
  },
2322
- pause: () => m.pause(),
2276
+ pause: () => p.pause(),
2323
2277
  stop: () => {
2324
- if (o = !0, m.playState === "idle")
2278
+ if (o = !0, p.playState === "idle")
2325
2279
  return;
2326
- const { currentTime: g } = m;
2280
+ const { currentTime: g } = p;
2327
2281
  if (g) {
2328
2282
  const x = le({
2329
2283
  ...i,
@@ -2334,22 +2288,22 @@ function $l(t, e, { onUpdate: n, onComplete: s, ...i }) {
2334
2288
  b();
2335
2289
  },
2336
2290
  complete: () => {
2337
- c || m.finish();
2291
+ c || p.finish();
2338
2292
  },
2339
2293
  cancel: b
2340
2294
  };
2341
2295
  }
2342
- function Gl({ keyframes: t, delay: e, onUpdate: n, onComplete: s }) {
2296
+ function Ll({ keyframes: t, delay: e, onUpdate: n, onComplete: s }) {
2343
2297
  const i = () => (n && n(t[t.length - 1]), s && s(), {
2344
2298
  time: 0,
2345
2299
  speed: 1,
2346
2300
  duration: 0,
2347
- play: E,
2348
- pause: E,
2349
- stop: E,
2301
+ play: k,
2302
+ pause: k,
2303
+ stop: k,
2350
2304
  then: (r) => (r(), Promise.resolve()),
2351
- cancel: E,
2352
- complete: E
2305
+ cancel: k,
2306
+ complete: k
2353
2307
  });
2354
2308
  return e ? le({
2355
2309
  keyframes: [0, 1],
@@ -2358,27 +2312,27 @@ function Gl({ keyframes: t, delay: e, onUpdate: n, onComplete: s }) {
2358
2312
  onComplete: i
2359
2313
  }) : i();
2360
2314
  }
2361
- const Hl = {
2315
+ const El = {
2362
2316
  type: "spring",
2363
2317
  stiffness: 500,
2364
2318
  damping: 25,
2365
2319
  restSpeed: 10
2366
- }, ql = (t) => ({
2320
+ }, kl = (t) => ({
2367
2321
  type: "spring",
2368
2322
  stiffness: 550,
2369
2323
  damping: t === 0 ? 2 * Math.sqrt(550) : 30,
2370
2324
  restSpeed: 10
2371
- }), Kl = {
2325
+ }), Bl = {
2372
2326
  type: "keyframes",
2373
2327
  duration: 0.8
2374
- }, Yl = {
2328
+ }, Il = {
2375
2329
  type: "keyframes",
2376
2330
  ease: [0.25, 0.1, 0.35, 1],
2377
2331
  duration: 0.3
2378
- }, Xl = (t, { keyframes: e }) => e.length > 2 ? Kl : gt.has(t) ? t.startsWith("scale") ? ql(e[1]) : Hl : Yl, Ue = (t, e) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
2332
+ }, Fl = (t, { keyframes: e }) => e.length > 2 ? Bl : gt.has(t) ? t.startsWith("scale") ? kl(e[1]) : El : Il, _e = (t, e) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
2379
2333
  (ct.test(e) || e === "0") && // And it contains numbers and/or colors
2380
- !e.startsWith("url(")), Ql = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
2381
- function Zl(t) {
2334
+ !e.startsWith("url(")), Ol = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
2335
+ function jl(t) {
2382
2336
  const [e, n] = t.slice(0, -1).split("(");
2383
2337
  if (e === "drop-shadow")
2384
2338
  return t;
@@ -2386,52 +2340,52 @@ function Zl(t) {
2386
2340
  if (!s)
2387
2341
  return t;
2388
2342
  const i = n.replace(s, "");
2389
- let r = Ql.has(e) ? 1 : 0;
2343
+ let r = Ol.has(e) ? 1 : 0;
2390
2344
  return s !== n && (r *= 100), e + "(" + r + i + ")";
2391
2345
  }
2392
- const Jl = /([a-z-]*)\(.*?\)/g, ze = {
2346
+ const Nl = /([a-z-]*)\(.*?\)/g, ze = {
2393
2347
  ...ct,
2394
2348
  getAnimatableNone: (t) => {
2395
- const e = t.match(Jl);
2396
- return e ? e.map(Zl).join(" ") : t;
2349
+ const e = t.match(Nl);
2350
+ return e ? e.map(jl).join(" ") : t;
2397
2351
  }
2398
- }, tc = {
2352
+ }, Ul = {
2399
2353
  ...ci,
2400
2354
  // Color props
2401
- color: j,
2402
- backgroundColor: j,
2403
- outlineColor: j,
2404
- fill: j,
2405
- stroke: j,
2355
+ color: N,
2356
+ backgroundColor: N,
2357
+ outlineColor: N,
2358
+ fill: N,
2359
+ stroke: N,
2406
2360
  // Border props
2407
- borderColor: j,
2408
- borderTopColor: j,
2409
- borderRightColor: j,
2410
- borderBottomColor: j,
2411
- borderLeftColor: j,
2361
+ borderColor: N,
2362
+ borderTopColor: N,
2363
+ borderRightColor: N,
2364
+ borderBottomColor: N,
2365
+ borderLeftColor: N,
2412
2366
  filter: ze,
2413
2367
  WebkitFilter: ze
2414
- }, vn = (t) => tc[t];
2368
+ }, vn = (t) => Ul[t];
2415
2369
  function Yi(t, e) {
2416
2370
  let n = vn(t);
2417
2371
  return n !== ze && (n = ct), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
2418
2372
  }
2419
2373
  const Xi = (t) => /^0[^.\s]+$/.test(t);
2420
- function ec(t) {
2374
+ function _l(t) {
2421
2375
  if (typeof t == "number")
2422
2376
  return t === 0;
2423
2377
  if (t !== null)
2424
2378
  return t === "none" || t === "0" || Xi(t);
2425
2379
  }
2426
- function nc(t, e, n, s) {
2427
- const i = Ue(e, n);
2380
+ function zl(t, e, n, s) {
2381
+ const i = _e(e, n);
2428
2382
  let r;
2429
2383
  Array.isArray(n) ? r = [...n] : r = [null, n];
2430
2384
  const o = s.from !== void 0 ? s.from : t.get();
2431
2385
  let a;
2432
2386
  const l = [];
2433
2387
  for (let c = 0; c < r.length; c++)
2434
- r[c] === null && (r[c] = c === 0 ? o : r[c - 1]), ec(r[c]) && l.push(c), typeof r[c] == "string" && r[c] !== "none" && r[c] !== "0" && (a = r[c]);
2388
+ r[c] === null && (r[c] = c === 0 ? o : r[c - 1]), _l(r[c]) && l.push(c), typeof r[c] == "string" && r[c] !== "none" && r[c] !== "0" && (a = r[c]);
2435
2389
  if (i && l.length && a)
2436
2390
  for (let c = 0; c < l.length; c++) {
2437
2391
  const u = l[c];
@@ -2439,38 +2393,38 @@ function nc(t, e, n, s) {
2439
2393
  }
2440
2394
  return r;
2441
2395
  }
2442
- function sc({ when: t, delay: e, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: r, repeatType: o, repeatDelay: a, from: l, elapsed: c, ...u }) {
2396
+ function Wl({ when: t, delay: e, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: r, repeatType: o, repeatDelay: a, from: l, elapsed: c, ...u }) {
2443
2397
  return !!Object.keys(u).length;
2444
2398
  }
2445
2399
  function xn(t, e) {
2446
2400
  return t[e] || t.default || t;
2447
2401
  }
2448
- const ic = {
2402
+ const Gl = {
2449
2403
  skipAnimations: !1
2450
2404
  }, bn = (t, e, n, s = {}) => (i) => {
2451
2405
  const r = xn(s, t) || {}, o = r.delay || s.delay || 0;
2452
2406
  let { elapsed: a = 0 } = s;
2453
2407
  a = a - at(o);
2454
- const l = nc(e, t, n, r), c = l[0], u = l[l.length - 1], f = Ue(t, c), h = Ue(t, u);
2455
- qt(f === h, `You are trying to animate ${t} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);
2408
+ const l = zl(e, t, n, r), c = l[0], u = l[l.length - 1], h = _e(t, c), f = _e(t, u);
2409
+ qt(h === f, `You are trying to animate ${t} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);
2456
2410
  let d = {
2457
2411
  keyframes: l,
2458
2412
  velocity: e.getVelocity(),
2459
2413
  ease: "easeOut",
2460
2414
  ...r,
2461
2415
  delay: -a,
2462
- onUpdate: (p) => {
2463
- e.set(p), r.onUpdate && r.onUpdate(p);
2416
+ onUpdate: (m) => {
2417
+ e.set(m), r.onUpdate && r.onUpdate(m);
2464
2418
  },
2465
2419
  onComplete: () => {
2466
2420
  i(), r.onComplete && r.onComplete();
2467
2421
  }
2468
2422
  };
2469
- if (sc(r) || (d = {
2423
+ if (Wl(r) || (d = {
2470
2424
  ...d,
2471
- ...Xl(t, d)
2472
- }), d.duration && (d.duration = at(d.duration)), d.repeatDelay && (d.repeatDelay = at(d.repeatDelay)), !f || !h || tl.current || r.type === !1 || ic.skipAnimations)
2473
- return Gl(d);
2425
+ ...Fl(t, d)
2426
+ }), d.duration && (d.duration = at(d.duration)), d.repeatDelay && (d.repeatDelay = at(d.repeatDelay)), !h || !f || Ua.current || r.type === !1 || Gl.skipAnimations)
2427
+ return Ll(d);
2474
2428
  if (
2475
2429
  /**
2476
2430
  * If this is a handoff animation, the optimised animation will be running via
@@ -2483,14 +2437,14 @@ const ic = {
2483
2437
  */
2484
2438
  !e.owner.getProps().onUpdate
2485
2439
  ) {
2486
- const p = $l(e, t, d);
2487
- if (p)
2488
- return p;
2440
+ const m = Rl(e, t, d);
2441
+ if (m)
2442
+ return m;
2489
2443
  }
2490
2444
  return le(d);
2491
2445
  };
2492
2446
  function ce(t) {
2493
- return !!(U(t) && t.add);
2447
+ return !!(_(t) && t.add);
2494
2448
  }
2495
2449
  const Qi = (t) => /^\-?\d*\.?\d+$/.test(t);
2496
2450
  function wn(t, e) {
@@ -2529,8 +2483,8 @@ const ts = /* @__PURE__ */ new Set();
2529
2483
  function An(t, e, n) {
2530
2484
  t || ts.has(e) || (console.warn(e), n && console.warn(n), ts.add(e));
2531
2485
  }
2532
- const oc = (t) => !isNaN(parseFloat(t));
2533
- class rc {
2486
+ const $l = (t) => !isNaN(parseFloat(t));
2487
+ class Hl {
2534
2488
  /**
2535
2489
  * @param init - The initiating value
2536
2490
  * @param config - Optional configuration options
@@ -2546,7 +2500,7 @@ class rc {
2546
2500
  this.lastUpdated !== o && (this.timeDelta = r, this.lastUpdated = o, V.postRender(this.scheduleVelocityCheck)), this.prev !== this.current && this.events.change && this.events.change.notify(this.current), this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()), i && this.events.renderRequest && this.events.renderRequest.notify(this.current);
2547
2501
  }, this.scheduleVelocityCheck = () => V.postRender(this.velocityCheck), this.velocityCheck = ({ timestamp: s }) => {
2548
2502
  s !== this.lastUpdated && (this.prev = this.current, this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()));
2549
- }, this.hasAnimated = !1, this.prev = this.current = e, this.canTrackVelocity = oc(this.current), this.owner = n.owner;
2503
+ }, this.hasAnimated = !1, this.prev = this.current = e, this.canTrackVelocity = $l(this.current), this.owner = n.owner;
2550
2504
  }
2551
2505
  /**
2552
2506
  * Adds a function that will be notified when the `MotionValue` is updated.
@@ -2721,41 +2675,41 @@ class rc {
2721
2675
  }
2722
2676
  }
2723
2677
  function Vt(t, e) {
2724
- return new rc(t, e);
2678
+ return new Hl(t, e);
2725
2679
  }
2726
- const Zi = (t) => (e) => e.test(t), ac = {
2680
+ const Zi = (t) => (e) => e.test(t), ql = {
2727
2681
  test: (t) => t === "auto",
2728
2682
  parse: (t) => t
2729
- }, Ji = [yt, w, K, st, ma, pa, ac], Lt = (t) => Ji.find(Zi(t)), lc = [...Ji, j, ct], cc = (t) => lc.find(Zi(t));
2730
- function uc(t, e, n) {
2683
+ }, Ji = [yt, w, K, st, ea, ta, ql], Et = (t) => Ji.find(Zi(t)), Kl = [...Ji, N, ct], Yl = (t) => Kl.find(Zi(t));
2684
+ function Xl(t, e, n) {
2731
2685
  t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, Vt(n));
2732
2686
  }
2733
- function fc(t, e) {
2687
+ function Ql(t, e) {
2734
2688
  const n = xe(t, e);
2735
2689
  let { transitionEnd: s = {}, transition: i = {}, ...r } = n ? t.makeTargetAnimatable(n, !1) : {};
2736
2690
  r = { ...r, ...s };
2737
2691
  for (const o in r) {
2738
- const a = Ra(r[o]);
2739
- uc(t, o, a);
2692
+ const a = ga(r[o]);
2693
+ Xl(t, o, a);
2740
2694
  }
2741
2695
  }
2742
- function hc(t, e, n) {
2696
+ function Zl(t, e, n) {
2743
2697
  var s, i;
2744
2698
  const r = Object.keys(e).filter((a) => !t.hasValue(a)), o = r.length;
2745
2699
  if (o)
2746
2700
  for (let a = 0; a < o; a++) {
2747
2701
  const l = r[a], c = e[l];
2748
2702
  let u = null;
2749
- Array.isArray(c) && (u = c[0]), u === null && (u = (i = (s = n[l]) !== null && s !== void 0 ? s : t.readValue(l)) !== null && i !== void 0 ? i : e[l]), u != null && (typeof u == "string" && (Qi(u) || Xi(u)) ? u = parseFloat(u) : !cc(u) && ct.test(c) && (u = Yi(l, c)), t.addValue(l, Vt(u, { owner: t })), n[l] === void 0 && (n[l] = u), u !== null && t.setBaseTarget(l, u));
2703
+ Array.isArray(c) && (u = c[0]), u === null && (u = (i = (s = n[l]) !== null && s !== void 0 ? s : t.readValue(l)) !== null && i !== void 0 ? i : e[l]), u != null && (typeof u == "string" && (Qi(u) || Xi(u)) ? u = parseFloat(u) : !Yl(u) && ct.test(c) && (u = Yi(l, c)), t.addValue(l, Vt(u, { owner: t })), n[l] === void 0 && (n[l] = u), u !== null && t.setBaseTarget(l, u));
2750
2704
  }
2751
2705
  }
2752
- function dc(t, e) {
2706
+ function Jl(t, e) {
2753
2707
  return e ? (e[t] || e.default || e).from : void 0;
2754
2708
  }
2755
- function pc(t, e, n) {
2709
+ function tc(t, e, n) {
2756
2710
  const s = {};
2757
2711
  for (const i in t) {
2758
- const r = dc(i, e);
2712
+ const r = Jl(i, e);
2759
2713
  if (r !== void 0)
2760
2714
  s[i] = r;
2761
2715
  else {
@@ -2765,11 +2719,11 @@ function pc(t, e, n) {
2765
2719
  }
2766
2720
  return s;
2767
2721
  }
2768
- function mc({ protectedKeys: t, needsAnimating: e }, n) {
2722
+ function ec({ protectedKeys: t, needsAnimating: e }, n) {
2769
2723
  const s = t.hasOwnProperty(n) && e[n] !== !0;
2770
2724
  return e[n] = !1, s;
2771
2725
  }
2772
- function gc(t, e) {
2726
+ function nc(t, e) {
2773
2727
  const n = t.get();
2774
2728
  if (Array.isArray(e)) {
2775
2729
  for (let s = 0; s < e.length; s++)
@@ -2783,31 +2737,31 @@ function to(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
2783
2737
  const l = t.getValue("willChange");
2784
2738
  s && (r = s);
2785
2739
  const c = [], u = i && t.animationState && t.animationState.getState()[i];
2786
- for (const f in a) {
2787
- const h = t.getValue(f), d = a[f];
2788
- if (!h || d === void 0 || u && mc(u, f))
2740
+ for (const h in a) {
2741
+ const f = t.getValue(h), d = a[h];
2742
+ if (!f || d === void 0 || u && ec(u, h))
2789
2743
  continue;
2790
- const p = {
2744
+ const m = {
2791
2745
  delay: n,
2792
2746
  elapsed: 0,
2793
- ...xn(r || {}, f)
2747
+ ...xn(r || {}, h)
2794
2748
  };
2795
2749
  if (window.HandoffAppearAnimations) {
2796
2750
  const b = t.getProps()[ei];
2797
2751
  if (b) {
2798
- const y = window.HandoffAppearAnimations(b, f, h, V);
2799
- y !== null && (p.elapsed = y, p.isHandoff = !0);
2752
+ const y = window.HandoffAppearAnimations(b, h, f, V);
2753
+ y !== null && (m.elapsed = y, m.isHandoff = !0);
2800
2754
  }
2801
2755
  }
2802
- let m = !p.isHandoff && !gc(h, d);
2803
- if (p.type === "spring" && (h.getVelocity() || p.velocity) && (m = !1), h.animation && (m = !1), m)
2756
+ let p = !m.isHandoff && !nc(f, d);
2757
+ if (m.type === "spring" && (f.getVelocity() || m.velocity) && (p = !1), f.animation && (p = !1), p)
2804
2758
  continue;
2805
- h.start(bn(f, h, d, t.shouldReduceMotion && gt.has(f) ? { type: !1 } : p));
2806
- const v = h.animation;
2807
- ce(l) && (l.add(f), v.then(() => l.remove(f))), c.push(v);
2759
+ f.start(bn(h, f, d, t.shouldReduceMotion && gt.has(h) ? { type: !1 } : m));
2760
+ const v = f.animation;
2761
+ ce(l) && (l.add(h), v.then(() => l.remove(h))), c.push(v);
2808
2762
  }
2809
2763
  return o && Promise.all(c).then(() => {
2810
- o && fc(t, o);
2764
+ o && Ql(t, o);
2811
2765
  }), c;
2812
2766
  }
2813
2767
  function We(t, e, n = {}) {
@@ -2815,8 +2769,8 @@ function We(t, e, n = {}) {
2815
2769
  let { transition: i = t.getDefaultTransition() || {} } = s || {};
2816
2770
  n.transitionOverride && (i = n.transitionOverride);
2817
2771
  const r = s ? () => Promise.all(to(t, s, n)) : () => Promise.resolve(), o = t.variantChildren && t.variantChildren.size ? (l = 0) => {
2818
- const { delayChildren: c = 0, staggerChildren: u, staggerDirection: f } = i;
2819
- return yc(t, e, c + l, u, f, n);
2772
+ const { delayChildren: c = 0, staggerChildren: u, staggerDirection: h } = i;
2773
+ return sc(t, e, c + l, u, h, n);
2820
2774
  } : () => Promise.resolve(), { when: a } = i;
2821
2775
  if (a) {
2822
2776
  const [l, c] = a === "beforeChildren" ? [r, o] : [o, r];
@@ -2824,19 +2778,19 @@ function We(t, e, n = {}) {
2824
2778
  } else
2825
2779
  return Promise.all([r(), o(n.delay)]);
2826
2780
  }
2827
- function yc(t, e, n = 0, s = 0, i = 1, r) {
2781
+ function sc(t, e, n = 0, s = 0, i = 1, r) {
2828
2782
  const o = [], a = (t.variantChildren.size - 1) * s, l = i === 1 ? (c = 0) => c * s : (c = 0) => a - c * s;
2829
- return Array.from(t.variantChildren).sort(vc).forEach((c, u) => {
2783
+ return Array.from(t.variantChildren).sort(ic).forEach((c, u) => {
2830
2784
  c.notify("AnimationStart", e), o.push(We(c, e, {
2831
2785
  ...r,
2832
2786
  delay: n + l(u)
2833
2787
  }).then(() => c.notify("AnimationComplete", e)));
2834
2788
  }), Promise.all(o);
2835
2789
  }
2836
- function vc(t, e) {
2790
+ function ic(t, e) {
2837
2791
  return t.sortNodePosition(e);
2838
2792
  }
2839
- function xc(t, e, n = {}) {
2793
+ function oc(t, e, n = {}) {
2840
2794
  t.notify("AnimationStart", e);
2841
2795
  let s;
2842
2796
  if (Array.isArray(e)) {
@@ -2850,19 +2804,19 @@ function xc(t, e, n = {}) {
2850
2804
  }
2851
2805
  return s.then(() => t.notify("AnimationComplete", e));
2852
2806
  }
2853
- const bc = [...rn].reverse(), wc = rn.length;
2854
- function Tc(t) {
2855
- return (e) => Promise.all(e.map(({ animation: n, options: s }) => xc(t, n, s)));
2807
+ const rc = [...rn].reverse(), ac = rn.length;
2808
+ function lc(t) {
2809
+ return (e) => Promise.all(e.map(({ animation: n, options: s }) => oc(t, n, s)));
2856
2810
  }
2857
- function Pc(t) {
2858
- let e = Tc(t);
2859
- const n = Sc();
2811
+ function cc(t) {
2812
+ let e = lc(t);
2813
+ const n = hc();
2860
2814
  let s = !0;
2861
2815
  const i = (l, c) => {
2862
2816
  const u = xe(t, c);
2863
2817
  if (u) {
2864
- const { transition: f, transitionEnd: h, ...d } = u;
2865
- l = { ...l, ...d, ...h };
2818
+ const { transition: h, transitionEnd: f, ...d } = u;
2819
+ l = { ...l, ...d, ...f };
2866
2820
  }
2867
2821
  return l;
2868
2822
  };
@@ -2870,38 +2824,38 @@ function Pc(t) {
2870
2824
  e = l(t);
2871
2825
  }
2872
2826
  function o(l, c) {
2873
- const u = t.getProps(), f = t.getVariantContext(!0) || {}, h = [], d = /* @__PURE__ */ new Set();
2874
- let p = {}, m = 1 / 0;
2875
- for (let b = 0; b < wc; b++) {
2876
- const y = bc[b], g = n[y], x = u[y] !== void 0 ? u[y] : f[y], P = Nt(x), S = y === c ? g.isActive : null;
2877
- S === !1 && (m = b);
2878
- let C = x === f[y] && x !== u[y] && P;
2879
- if (C && s && t.manuallyAnimateOnMount && (C = !1), g.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
2827
+ const u = t.getProps(), h = t.getVariantContext(!0) || {}, f = [], d = /* @__PURE__ */ new Set();
2828
+ let m = {}, p = 1 / 0;
2829
+ for (let b = 0; b < ac; b++) {
2830
+ const y = rc[b], g = n[y], x = u[y] !== void 0 ? u[y] : h[y], P = Ut(x), S = y === c ? g.isActive : null;
2831
+ S === !1 && (p = b);
2832
+ let C = x === h[y] && x !== u[y] && P;
2833
+ if (C && s && t.manuallyAnimateOnMount && (C = !1), g.protectedKeys = { ...m }, // If it isn't active and hasn't *just* been set as inactive
2880
2834
  !g.isActive && S === null || // If we didn't and don't have any defined prop for this animation type
2881
2835
  !x && !g.prevProp || // Or if the prop doesn't define an animation
2882
- me(x) || typeof x == "boolean")
2836
+ pe(x) || typeof x == "boolean")
2883
2837
  continue;
2884
- let L = Ac(g.prevProp, x) || // If we're making this variant active, we want to always make it active
2838
+ let E = uc(g.prevProp, x) || // If we're making this variant active, we want to always make it active
2885
2839
  y === c && g.isActive && !C && P || // If we removed a higher-priority variant (i is in reverse order)
2886
- b > m && P, Y = !1;
2840
+ b > p && P, Y = !1;
2887
2841
  const vt = Array.isArray(x) ? x : [x];
2888
2842
  let H = vt.reduce(i, {});
2889
2843
  S === !1 && (H = {});
2890
- const { prevResolvedValues: X = {} } = g, O = {
2844
+ const { prevResolvedValues: X = {} } = g, j = {
2891
2845
  ...X,
2892
2846
  ...H
2893
- }, xt = (B) => {
2894
- L = !0, d.has(B) && (Y = !0, d.delete(B)), g.needsAnimating[B] = !0;
2847
+ }, xt = (I) => {
2848
+ E = !0, d.has(I) && (Y = !0, d.delete(I)), g.needsAnimating[I] = !0;
2895
2849
  };
2896
- for (const B in O) {
2897
- const nt = H[B], Dt = X[B];
2898
- if (p.hasOwnProperty(B))
2850
+ for (const I in j) {
2851
+ const nt = H[I], Dt = X[I];
2852
+ if (m.hasOwnProperty(I))
2899
2853
  continue;
2900
2854
  let bt = !1;
2901
- oe(nt) && oe(Dt) ? bt = !Pi(nt, Dt) : bt = nt !== Dt, bt ? nt !== void 0 ? xt(B) : d.add(B) : nt !== void 0 && d.has(B) ? xt(B) : g.protectedKeys[B] = !0;
2855
+ oe(nt) && oe(Dt) ? bt = !Pi(nt, Dt) : bt = nt !== Dt, bt ? nt !== void 0 ? xt(I) : d.add(I) : nt !== void 0 && d.has(I) ? xt(I) : g.protectedKeys[I] = !0;
2902
2856
  }
2903
- g.prevProp = x, g.prevResolvedValues = H, g.isActive && (p = { ...p, ...H }), s && t.blockInitialAnimation && (L = !1), L && (!C || Y) && h.push(...vt.map((B) => ({
2904
- animation: B,
2857
+ g.prevProp = x, g.prevResolvedValues = H, g.isActive && (m = { ...m, ...H }), s && t.blockInitialAnimation && (E = !1), E && (!C || Y) && f.push(...vt.map((I) => ({
2858
+ animation: I,
2905
2859
  options: { type: y, ...l }
2906
2860
  })));
2907
2861
  }
@@ -2910,23 +2864,23 @@ function Pc(t) {
2910
2864
  d.forEach((y) => {
2911
2865
  const g = t.getBaseTarget(y);
2912
2866
  g !== void 0 && (b[y] = g);
2913
- }), h.push({ animation: b });
2867
+ }), f.push({ animation: b });
2914
2868
  }
2915
- let v = !!h.length;
2916
- return s && (u.initial === !1 || u.initial === u.animate) && !t.manuallyAnimateOnMount && (v = !1), s = !1, v ? e(h) : Promise.resolve();
2869
+ let v = !!f.length;
2870
+ return s && (u.initial === !1 || u.initial === u.animate) && !t.manuallyAnimateOnMount && (v = !1), s = !1, v ? e(f) : Promise.resolve();
2917
2871
  }
2918
2872
  function a(l, c, u) {
2919
- var f;
2873
+ var h;
2920
2874
  if (n[l].isActive === c)
2921
2875
  return Promise.resolve();
2922
- (f = t.variantChildren) === null || f === void 0 || f.forEach((d) => {
2923
- var p;
2924
- return (p = d.animationState) === null || p === void 0 ? void 0 : p.setActive(l, c);
2876
+ (h = t.variantChildren) === null || h === void 0 || h.forEach((d) => {
2877
+ var m;
2878
+ return (m = d.animationState) === null || m === void 0 ? void 0 : m.setActive(l, c);
2925
2879
  }), n[l].isActive = c;
2926
- const h = o(u, l);
2880
+ const f = o(u, l);
2927
2881
  for (const d in n)
2928
2882
  n[d].protectedKeys = {};
2929
- return h;
2883
+ return f;
2930
2884
  }
2931
2885
  return {
2932
2886
  animateChanges: o,
@@ -2935,10 +2889,10 @@ function Pc(t) {
2935
2889
  getState: () => n
2936
2890
  };
2937
2891
  }
2938
- function Ac(t, e) {
2892
+ function uc(t, e) {
2939
2893
  return typeof e == "string" ? e !== t : Array.isArray(e) ? !Pi(e, t) : !1;
2940
2894
  }
2941
- function ht(t = !1) {
2895
+ function ft(t = !1) {
2942
2896
  return {
2943
2897
  isActive: t,
2944
2898
  protectedKeys: {},
@@ -2946,29 +2900,29 @@ function ht(t = !1) {
2946
2900
  prevResolvedValues: {}
2947
2901
  };
2948
2902
  }
2949
- function Sc() {
2903
+ function hc() {
2950
2904
  return {
2951
- animate: ht(!0),
2952
- whileInView: ht(),
2953
- whileHover: ht(),
2954
- whileTap: ht(),
2955
- whileDrag: ht(),
2956
- whileFocus: ht(),
2957
- exit: ht()
2905
+ animate: ft(!0),
2906
+ whileInView: ft(),
2907
+ whileHover: ft(),
2908
+ whileTap: ft(),
2909
+ whileDrag: ft(),
2910
+ whileFocus: ft(),
2911
+ exit: ft()
2958
2912
  };
2959
2913
  }
2960
- class Vc extends ut {
2914
+ class fc extends ut {
2961
2915
  /**
2962
2916
  * We dynamically generate the AnimationState manager as it contains a reference
2963
2917
  * to the underlying animation library. We only want to load that if we load this,
2964
2918
  * so people can optionally code split it out using the `m` component.
2965
2919
  */
2966
2920
  constructor(e) {
2967
- super(e), e.animationState || (e.animationState = Pc(e));
2921
+ super(e), e.animationState || (e.animationState = cc(e));
2968
2922
  }
2969
2923
  updateAnimationControlsSubscription() {
2970
2924
  const { animate: e } = this.node.getProps();
2971
- this.unmount(), me(e) && (this.unmount = e.subscribe(this.node));
2925
+ this.unmount(), pe(e) && (this.unmount = e.subscribe(this.node));
2972
2926
  }
2973
2927
  /**
2974
2928
  * Subscribe any provided AnimationControls to the component's VisualElement
@@ -2983,10 +2937,10 @@ class Vc extends ut {
2983
2937
  unmount() {
2984
2938
  }
2985
2939
  }
2986
- let Cc = 0;
2987
- class Mc extends ut {
2940
+ let dc = 0;
2941
+ class mc extends ut {
2988
2942
  constructor() {
2989
- super(...arguments), this.id = Cc++;
2943
+ super(...arguments), this.id = dc++;
2990
2944
  }
2991
2945
  update() {
2992
2946
  if (!this.node.presenceContext)
@@ -3004,15 +2958,15 @@ class Mc extends ut {
3004
2958
  unmount() {
3005
2959
  }
3006
2960
  }
3007
- const Dc = {
2961
+ const pc = {
3008
2962
  animation: {
3009
- Feature: Vc
2963
+ Feature: fc
3010
2964
  },
3011
2965
  exit: {
3012
- Feature: Mc
2966
+ Feature: mc
3013
2967
  }
3014
2968
  }, es = (t, e) => Math.abs(t - e);
3015
- function Rc(t, e) {
2969
+ function gc(t, e) {
3016
2970
  const n = es(t.x, e.x), s = es(t.y, e.y);
3017
2971
  return Math.sqrt(n ** 2 + s ** 2);
3018
2972
  }
@@ -3021,29 +2975,29 @@ class eo {
3021
2975
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
3022
2976
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
3023
2977
  return;
3024
- const f = Le(this.lastMoveEventInfo, this.history), h = this.startEvent !== null, d = Rc(f.offset, { x: 0, y: 0 }) >= 3;
3025
- if (!h && !d)
2978
+ const h = Ee(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, d = gc(h.offset, { x: 0, y: 0 }) >= 3;
2979
+ if (!f && !d)
3026
2980
  return;
3027
- const { point: p } = f, { timestamp: m } = F;
3028
- this.history.push({ ...p, timestamp: m });
2981
+ const { point: m } = h, { timestamp: p } = F;
2982
+ this.history.push({ ...m, timestamp: p });
3029
2983
  const { onStart: v, onMove: b } = this.handlers;
3030
- h || (v && v(this.lastMoveEvent, f), this.startEvent = this.lastMoveEvent), b && b(this.lastMoveEvent, f);
3031
- }, this.handlePointerMove = (f, h) => {
3032
- this.lastMoveEvent = f, this.lastMoveEventInfo = _e(h, this.transformPagePoint), V.update(this.updatePoint, !0);
3033
- }, this.handlePointerUp = (f, h) => {
2984
+ f || (v && v(this.lastMoveEvent, h), this.startEvent = this.lastMoveEvent), b && b(this.lastMoveEvent, h);
2985
+ }, this.handlePointerMove = (h, f) => {
2986
+ this.lastMoveEvent = h, this.lastMoveEventInfo = Le(f, this.transformPagePoint), V.update(this.updatePoint, !0);
2987
+ }, this.handlePointerUp = (h, f) => {
3034
2988
  this.end();
3035
- const { onEnd: d, onSessionEnd: p, resumeAnimation: m } = this.handlers;
3036
- if (this.dragSnapToOrigin && m && m(), !(this.lastMoveEvent && this.lastMoveEventInfo))
2989
+ const { onEnd: d, onSessionEnd: m, resumeAnimation: p } = this.handlers;
2990
+ if (this.dragSnapToOrigin && p && p(), !(this.lastMoveEvent && this.lastMoveEventInfo))
3037
2991
  return;
3038
- const v = Le(f.type === "pointercancel" ? this.lastMoveEventInfo : _e(h, this.transformPagePoint), this.history);
3039
- this.startEvent && d && d(f, v), p && p(f, v);
2992
+ const v = Ee(h.type === "pointercancel" ? this.lastMoveEventInfo : Le(f, this.transformPagePoint), this.history);
2993
+ this.startEvent && d && d(h, v), m && m(h, v);
3040
2994
  }, !vi(e))
3041
2995
  return;
3042
2996
  this.dragSnapToOrigin = r, this.handlers = n, this.transformPagePoint = s, this.contextWindow = i || window;
3043
- const o = ve(e), a = _e(o, this.transformPagePoint), { point: l } = a, { timestamp: c } = F;
2997
+ const o = ve(e), a = Le(o, this.transformPagePoint), { point: l } = a, { timestamp: c } = F;
3044
2998
  this.history = [{ ...l, timestamp: c }];
3045
2999
  const { onSessionStart: u } = n;
3046
- u && u(e, Le(a, this.history)), this.removeListeners = rt(J(this.contextWindow, "pointermove", this.handlePointerMove), J(this.contextWindow, "pointerup", this.handlePointerUp), J(this.contextWindow, "pointercancel", this.handlePointerUp));
3000
+ u && u(e, Ee(a, this.history)), this.removeListeners = rt(J(this.contextWindow, "pointermove", this.handlePointerMove), J(this.contextWindow, "pointerup", this.handlePointerUp), J(this.contextWindow, "pointercancel", this.handlePointerUp));
3047
3001
  }
3048
3002
  updateHandlers(e) {
3049
3003
  this.handlers = e;
@@ -3052,27 +3006,27 @@ class eo {
3052
3006
  this.removeListeners && this.removeListeners(), et(this.updatePoint);
3053
3007
  }
3054
3008
  }
3055
- function _e(t, e) {
3009
+ function Le(t, e) {
3056
3010
  return e ? { point: e(t.point) } : t;
3057
3011
  }
3058
3012
  function ns(t, e) {
3059
3013
  return { x: t.x - e.x, y: t.y - e.y };
3060
3014
  }
3061
- function Le({ point: t }, e) {
3015
+ function Ee({ point: t }, e) {
3062
3016
  return {
3063
3017
  point: t,
3064
3018
  delta: ns(t, no(e)),
3065
- offset: ns(t, _c(e)),
3066
- velocity: Lc(e, 0.1)
3019
+ offset: ns(t, yc(e)),
3020
+ velocity: vc(e, 0.1)
3067
3021
  };
3068
3022
  }
3069
- function _c(t) {
3023
+ function yc(t) {
3070
3024
  return t[0];
3071
3025
  }
3072
3026
  function no(t) {
3073
3027
  return t[t.length - 1];
3074
3028
  }
3075
- function Lc(t, e) {
3029
+ function vc(t, e) {
3076
3030
  if (t.length < 2)
3077
3031
  return { x: 0, y: 0 };
3078
3032
  let n = t.length - 1, s = null;
@@ -3093,29 +3047,29 @@ function Lc(t, e) {
3093
3047
  function z(t) {
3094
3048
  return t.max - t.min;
3095
3049
  }
3096
- function $e(t, e = 0, n = 0.01) {
3050
+ function Ge(t, e = 0, n = 0.01) {
3097
3051
  return Math.abs(t - e) <= n;
3098
3052
  }
3099
3053
  function ss(t, e, n, s = 0.5) {
3100
- t.origin = s, t.originPoint = _(e.min, e.max, t.origin), t.scale = z(n) / z(e), ($e(t.scale, 1, 1e-4) || isNaN(t.scale)) && (t.scale = 1), t.translate = _(n.min, n.max, t.origin) - t.originPoint, ($e(t.translate) || isNaN(t.translate)) && (t.translate = 0);
3054
+ t.origin = s, t.originPoint = L(e.min, e.max, t.origin), t.scale = z(n) / z(e), (Ge(t.scale, 1, 1e-4) || isNaN(t.scale)) && (t.scale = 1), t.translate = L(n.min, n.max, t.origin) - t.originPoint, (Ge(t.translate) || isNaN(t.translate)) && (t.translate = 0);
3101
3055
  }
3102
- function Ft(t, e, n, s) {
3056
+ function Ot(t, e, n, s) {
3103
3057
  ss(t.x, e.x, n.x, s ? s.originX : void 0), ss(t.y, e.y, n.y, s ? s.originY : void 0);
3104
3058
  }
3105
3059
  function is(t, e, n) {
3106
3060
  t.min = n.min + e.min, t.max = t.min + z(e);
3107
3061
  }
3108
- function Ec(t, e, n) {
3062
+ function xc(t, e, n) {
3109
3063
  is(t.x, e.x, n.x), is(t.y, e.y, n.y);
3110
3064
  }
3111
3065
  function os(t, e, n) {
3112
3066
  t.min = e.min - n.min, t.max = t.min + z(e);
3113
3067
  }
3114
- function Ot(t, e, n) {
3068
+ function jt(t, e, n) {
3115
3069
  os(t.x, e.x, n.x), os(t.y, e.y, n.y);
3116
3070
  }
3117
- function kc(t, { min: e, max: n }, s) {
3118
- return e !== void 0 && t < e ? t = s ? _(e, t, s.min) : Math.max(t, e) : n !== void 0 && t > n && (t = s ? _(n, t, s.max) : Math.min(t, n)), t;
3071
+ function bc(t, { min: e, max: n }, s) {
3072
+ return e !== void 0 && t < e ? t = s ? L(e, t, s.min) : Math.max(t, e) : n !== void 0 && t > n && (t = s ? L(n, t, s.max) : Math.min(t, n)), t;
3119
3073
  }
3120
3074
  function rs(t, e, n) {
3121
3075
  return {
@@ -3123,7 +3077,7 @@ function rs(t, e, n) {
3123
3077
  max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
3124
3078
  };
3125
3079
  }
3126
- function Bc(t, { top: e, left: n, bottom: s, right: i }) {
3080
+ function wc(t, { top: e, left: n, bottom: s, right: i }) {
3127
3081
  return {
3128
3082
  x: rs(t.x, n, i),
3129
3083
  y: rs(t.y, e, s)
@@ -3133,24 +3087,24 @@ function as(t, e) {
3133
3087
  let n = e.min - t.min, s = e.max - t.max;
3134
3088
  return e.max - e.min < t.max - t.min && ([n, s] = [s, n]), { min: n, max: s };
3135
3089
  }
3136
- function Ic(t, e) {
3090
+ function Tc(t, e) {
3137
3091
  return {
3138
3092
  x: as(t.x, e.x),
3139
3093
  y: as(t.y, e.y)
3140
3094
  };
3141
3095
  }
3142
- function Fc(t, e) {
3096
+ function Pc(t, e) {
3143
3097
  let n = 0.5;
3144
3098
  const s = z(t), i = z(e);
3145
3099
  return i > s ? n = zt(e.min, e.max - s, t.min) : s > i && (n = zt(t.min, t.max - i, e.min)), lt(0, 1, n);
3146
3100
  }
3147
- function Oc(t, e) {
3101
+ function Ac(t, e) {
3148
3102
  const n = {};
3149
3103
  return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
3150
3104
  }
3151
- const Ge = 0.35;
3152
- function jc(t = Ge) {
3153
- return t === !1 ? t = 0 : t === !0 && (t = Ge), {
3105
+ const $e = 0.35;
3106
+ function Sc(t = $e) {
3107
+ return t === !1 ? t = 0 : t === !0 && (t = $e), {
3154
3108
  x: ls(t, "left", "right"),
3155
3109
  y: ls(t, "top", "bottom")
3156
3110
  };
@@ -3172,11 +3126,11 @@ const us = () => ({
3172
3126
  }), Pt = () => ({
3173
3127
  x: us(),
3174
3128
  y: us()
3175
- }), fs = () => ({ min: 0, max: 0 }), k = () => ({
3176
- x: fs(),
3177
- y: fs()
3129
+ }), hs = () => ({ min: 0, max: 0 }), B = () => ({
3130
+ x: hs(),
3131
+ y: hs()
3178
3132
  });
3179
- function $(t) {
3133
+ function G(t) {
3180
3134
  return [t("x"), t("y")];
3181
3135
  }
3182
3136
  function so({ top: t, left: e, right: n, bottom: s }) {
@@ -3185,10 +3139,10 @@ function so({ top: t, left: e, right: n, bottom: s }) {
3185
3139
  y: { min: t, max: s }
3186
3140
  };
3187
3141
  }
3188
- function Nc({ x: t, y: e }) {
3142
+ function Vc({ x: t, y: e }) {
3189
3143
  return { top: e.min, right: t.max, bottom: e.max, left: t.min };
3190
3144
  }
3191
- function Uc(t, e) {
3145
+ function Cc(t, e) {
3192
3146
  if (!e)
3193
3147
  return t;
3194
3148
  const n = e({ x: t.left, y: t.top }), s = e({ x: t.right, y: t.bottom });
@@ -3199,19 +3153,19 @@ function Uc(t, e) {
3199
3153
  right: s.x
3200
3154
  };
3201
3155
  }
3202
- function Ee(t) {
3156
+ function ke(t) {
3203
3157
  return t === void 0 || t === 1;
3204
3158
  }
3205
3159
  function He({ scale: t, scaleX: e, scaleY: n }) {
3206
- return !Ee(t) || !Ee(e) || !Ee(n);
3160
+ return !ke(t) || !ke(e) || !ke(n);
3207
3161
  }
3208
3162
  function dt(t) {
3209
3163
  return He(t) || io(t) || t.z || t.rotate || t.rotateX || t.rotateY;
3210
3164
  }
3211
3165
  function io(t) {
3212
- return hs(t.x) || hs(t.y);
3166
+ return fs(t.x) || fs(t.y);
3213
3167
  }
3214
- function hs(t) {
3168
+ function fs(t) {
3215
3169
  return t && t !== "0%";
3216
3170
  }
3217
3171
  function ue(t, e, n) {
@@ -3227,7 +3181,7 @@ function qe(t, e = 0, n = 1, s, i) {
3227
3181
  function oo(t, { x: e, y: n }) {
3228
3182
  qe(t.x, e.translate, e.scale, e.originPoint), qe(t.y, n.translate, n.scale, n.originPoint);
3229
3183
  }
3230
- function zc(t, e, n, s = !1) {
3184
+ function Mc(t, e, n, s = !1) {
3231
3185
  const i = n.length;
3232
3186
  if (!i)
3233
3187
  return;
@@ -3241,46 +3195,46 @@ function zc(t, e, n, s = !1) {
3241
3195
  y: -r.scroll.offset.y
3242
3196
  }), o && (e.x *= o.x.scale, e.y *= o.y.scale, oo(t, o)), s && dt(r.latestValues) && At(t, r.latestValues));
3243
3197
  }
3244
- e.x = ps(e.x), e.y = ps(e.y);
3198
+ e.x = ms(e.x), e.y = ms(e.y);
3245
3199
  }
3246
- function ps(t) {
3200
+ function ms(t) {
3247
3201
  return Number.isInteger(t) || t > 1.0000000000001 || t < 0.999999999999 ? t : 1;
3248
3202
  }
3249
3203
  function it(t, e) {
3250
3204
  t.min = t.min + e, t.max = t.max + e;
3251
3205
  }
3252
- function ms(t, e, [n, s, i]) {
3253
- const r = e[i] !== void 0 ? e[i] : 0.5, o = _(t.min, t.max, r);
3206
+ function ps(t, e, [n, s, i]) {
3207
+ const r = e[i] !== void 0 ? e[i] : 0.5, o = L(t.min, t.max, r);
3254
3208
  qe(t, e[n], e[s], o, e.scale);
3255
3209
  }
3256
- const Wc = ["x", "scaleX", "originX"], $c = ["y", "scaleY", "originY"];
3210
+ const Dc = ["x", "scaleX", "originX"], Rc = ["y", "scaleY", "originY"];
3257
3211
  function At(t, e) {
3258
- ms(t.x, e, Wc), ms(t.y, e, $c);
3212
+ ps(t.x, e, Dc), ps(t.y, e, Rc);
3259
3213
  }
3260
3214
  function ro(t, e) {
3261
- return so(Uc(t.getBoundingClientRect(), e));
3215
+ return so(Cc(t.getBoundingClientRect(), e));
3262
3216
  }
3263
- function Gc(t, e, n) {
3217
+ function Lc(t, e, n) {
3264
3218
  const s = ro(t, n), { scroll: i } = e;
3265
3219
  return i && (it(s.x, i.offset.x), it(s.y, i.offset.y)), s;
3266
3220
  }
3267
- const ao = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Hc = /* @__PURE__ */ new WeakMap();
3268
- class qc {
3221
+ const ao = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Ec = /* @__PURE__ */ new WeakMap();
3222
+ class kc {
3269
3223
  constructor(e) {
3270
- this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = k(), this.visualElement = e;
3224
+ this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = B(), this.visualElement = e;
3271
3225
  }
3272
3226
  start(e, { snapToCursor: n = !1 } = {}) {
3273
3227
  const { presenceContext: s } = this.visualElement;
3274
3228
  if (s && s.isPresent === !1)
3275
3229
  return;
3276
3230
  const i = (u) => {
3277
- const { dragSnapToOrigin: f } = this.getProps();
3278
- f ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(ve(u, "page").point);
3279
- }, r = (u, f) => {
3280
- const { drag: h, dragPropagation: d, onDragStart: p } = this.getProps();
3281
- if (h && !d && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = bi(h), !this.openGlobalLock))
3231
+ const { dragSnapToOrigin: h } = this.getProps();
3232
+ h ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(ve(u, "page").point);
3233
+ }, r = (u, h) => {
3234
+ const { drag: f, dragPropagation: d, onDragStart: m } = this.getProps();
3235
+ if (f && !d && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = bi(f), !this.openGlobalLock))
3282
3236
  return;
3283
- this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), $((v) => {
3237
+ this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), G((v) => {
3284
3238
  let b = this.getAxisMotionValue(v).get() || 0;
3285
3239
  if (K.test(b)) {
3286
3240
  const { projection: y } = this.visualElement;
@@ -3290,22 +3244,22 @@ class qc {
3290
3244
  }
3291
3245
  }
3292
3246
  this.originPoint[v] = b;
3293
- }), p && V.update(() => p(u, f), !1, !0);
3294
- const { animationState: m } = this.visualElement;
3295
- m && m.setActive("whileDrag", !0);
3296
- }, o = (u, f) => {
3297
- const { dragPropagation: h, dragDirectionLock: d, onDirectionLock: p, onDrag: m } = this.getProps();
3298
- if (!h && !this.openGlobalLock)
3247
+ }), m && V.update(() => m(u, h), !1, !0);
3248
+ const { animationState: p } = this.visualElement;
3249
+ p && p.setActive("whileDrag", !0);
3250
+ }, o = (u, h) => {
3251
+ const { dragPropagation: f, dragDirectionLock: d, onDirectionLock: m, onDrag: p } = this.getProps();
3252
+ if (!f && !this.openGlobalLock)
3299
3253
  return;
3300
- const { offset: v } = f;
3254
+ const { offset: v } = h;
3301
3255
  if (d && this.currentDirection === null) {
3302
- this.currentDirection = Kc(v), this.currentDirection !== null && p && p(this.currentDirection);
3256
+ this.currentDirection = Bc(v), this.currentDirection !== null && m && m(this.currentDirection);
3303
3257
  return;
3304
3258
  }
3305
- this.updateAxis("x", f.point, v), this.updateAxis("y", f.point, v), this.visualElement.render(), m && m(u, f);
3306
- }, a = (u, f) => this.stop(u, f), l = () => $((u) => {
3307
- var f;
3308
- return this.getAnimationState(u) === "paused" && ((f = this.getAxisMotionValue(u).animation) === null || f === void 0 ? void 0 : f.play());
3259
+ this.updateAxis("x", h.point, v), this.updateAxis("y", h.point, v), this.visualElement.render(), p && p(u, h);
3260
+ }, a = (u, h) => this.stop(u, h), l = () => G((u) => {
3261
+ var h;
3262
+ return this.getAnimationState(u) === "paused" && ((h = this.getAxisMotionValue(u).animation) === null || h === void 0 ? void 0 : h.play());
3309
3263
  }), { dragSnapToOrigin: c } = this.getProps();
3310
3264
  this.panSession = new eo(e, {
3311
3265
  onSessionStart: i,
@@ -3341,13 +3295,13 @@ class qc {
3341
3295
  return;
3342
3296
  const r = this.getAxisMotionValue(e);
3343
3297
  let o = this.originPoint[e] + s[e];
3344
- this.constraints && this.constraints[e] && (o = kc(o, this.constraints[e], this.elastic[e])), r.set(o);
3298
+ this.constraints && this.constraints[e] && (o = bc(o, this.constraints[e], this.elastic[e])), r.set(o);
3345
3299
  }
3346
3300
  resolveConstraints() {
3347
3301
  var e;
3348
3302
  const { dragConstraints: n, dragElastic: s } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (e = this.visualElement.projection) === null || e === void 0 ? void 0 : e.layout, r = this.constraints;
3349
- n && wt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = Bc(i.layoutBox, n) : this.constraints = !1, this.elastic = jc(s), r !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && $((o) => {
3350
- this.getAxisMotionValue(o) && (this.constraints[o] = Oc(i.layoutBox[o], this.constraints[o]));
3303
+ n && wt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = wc(i.layoutBox, n) : this.constraints = !1, this.elastic = Sc(s), r !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && G((o) => {
3304
+ this.getAxisMotionValue(o) && (this.constraints[o] = Ac(i.layoutBox[o], this.constraints[o]));
3351
3305
  });
3352
3306
  }
3353
3307
  resolveRefConstraints() {
@@ -3359,32 +3313,32 @@ class qc {
3359
3313
  const { projection: i } = this.visualElement;
3360
3314
  if (!i || !i.layout)
3361
3315
  return !1;
3362
- const r = Gc(s, i.root, this.visualElement.getTransformPagePoint());
3363
- let o = Ic(i.layout.layoutBox, r);
3316
+ const r = Lc(s, i.root, this.visualElement.getTransformPagePoint());
3317
+ let o = Tc(i.layout.layoutBox, r);
3364
3318
  if (n) {
3365
- const a = n(Nc(o));
3319
+ const a = n(Vc(o));
3366
3320
  this.hasMutatedConstraints = !!a, a && (o = so(a));
3367
3321
  }
3368
3322
  return o;
3369
3323
  }
3370
3324
  startAnimation(e) {
3371
- const { drag: n, dragMomentum: s, dragElastic: i, dragTransition: r, dragSnapToOrigin: o, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, c = $((u) => {
3325
+ const { drag: n, dragMomentum: s, dragElastic: i, dragTransition: r, dragSnapToOrigin: o, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, c = G((u) => {
3372
3326
  if (!Jt(u, n, this.currentDirection))
3373
3327
  return;
3374
- let f = l && l[u] || {};
3375
- o && (f = { min: 0, max: 0 });
3376
- const h = i ? 200 : 1e6, d = i ? 40 : 1e7, p = {
3328
+ let h = l && l[u] || {};
3329
+ o && (h = { min: 0, max: 0 });
3330
+ const f = i ? 200 : 1e6, d = i ? 40 : 1e7, m = {
3377
3331
  type: "inertia",
3378
3332
  velocity: s ? e[u] : 0,
3379
- bounceStiffness: h,
3333
+ bounceStiffness: f,
3380
3334
  bounceDamping: d,
3381
3335
  timeConstant: 750,
3382
3336
  restDelta: 1,
3383
3337
  restSpeed: 10,
3384
3338
  ...r,
3385
- ...f
3339
+ ...h
3386
3340
  };
3387
- return this.startAxisValueAnimation(u, p);
3341
+ return this.startAxisValueAnimation(u, m);
3388
3342
  });
3389
3343
  return Promise.all(c).then(a);
3390
3344
  }
@@ -3393,10 +3347,10 @@ class qc {
3393
3347
  return s.start(bn(e, s, 0, n));
3394
3348
  }
3395
3349
  stopAnimation() {
3396
- $((e) => this.getAxisMotionValue(e).stop());
3350
+ G((e) => this.getAxisMotionValue(e).stop());
3397
3351
  }
3398
3352
  pauseAnimation() {
3399
- $((e) => {
3353
+ G((e) => {
3400
3354
  var n;
3401
3355
  return (n = this.getAxisMotionValue(e).animation) === null || n === void 0 ? void 0 : n.pause();
3402
3356
  });
@@ -3416,14 +3370,14 @@ class qc {
3416
3370
  return i || this.visualElement.getValue(e, (s.initial ? s.initial[e] : void 0) || 0);
3417
3371
  }
3418
3372
  snapToCursor(e) {
3419
- $((n) => {
3373
+ G((n) => {
3420
3374
  const { drag: s } = this.getProps();
3421
3375
  if (!Jt(n, s, this.currentDirection))
3422
3376
  return;
3423
3377
  const { projection: i } = this.visualElement, r = this.getAxisMotionValue(n);
3424
3378
  if (i && i.layout) {
3425
3379
  const { min: o, max: a } = i.layout.layoutBox[n];
3426
- r.set(e[n] - _(o, a, 0.5));
3380
+ r.set(e[n] - L(o, a, 0.5));
3427
3381
  }
3428
3382
  });
3429
3383
  }
@@ -3440,25 +3394,25 @@ class qc {
3440
3394
  return;
3441
3395
  this.stopAnimation();
3442
3396
  const i = { x: 0, y: 0 };
3443
- $((o) => {
3397
+ G((o) => {
3444
3398
  const a = this.getAxisMotionValue(o);
3445
3399
  if (a) {
3446
3400
  const l = a.get();
3447
- i[o] = Fc({ min: l, max: l }, this.constraints[o]);
3401
+ i[o] = Pc({ min: l, max: l }, this.constraints[o]);
3448
3402
  }
3449
3403
  });
3450
3404
  const { transformTemplate: r } = this.visualElement.getProps();
3451
- this.visualElement.current.style.transform = r ? r({}, "") : "none", s.root && s.root.updateScroll(), s.updateLayout(), this.resolveConstraints(), $((o) => {
3405
+ this.visualElement.current.style.transform = r ? r({}, "") : "none", s.root && s.root.updateScroll(), s.updateLayout(), this.resolveConstraints(), G((o) => {
3452
3406
  if (!Jt(o, e, null))
3453
3407
  return;
3454
3408
  const a = this.getAxisMotionValue(o), { min: l, max: c } = this.constraints[o];
3455
- a.set(_(l, c, i[o]));
3409
+ a.set(L(l, c, i[o]));
3456
3410
  });
3457
3411
  }
3458
3412
  addListeners() {
3459
3413
  if (!this.visualElement.current)
3460
3414
  return;
3461
- Hc.set(this.visualElement, this);
3415
+ Ec.set(this.visualElement, this);
3462
3416
  const e = this.visualElement.current, n = J(e, "pointerdown", (l) => {
3463
3417
  const { drag: c, dragListener: u = !0 } = this.getProps();
3464
3418
  c && u && this.start(l);
@@ -3468,9 +3422,9 @@ class qc {
3468
3422
  }, { projection: i } = this.visualElement, r = i.addEventListener("measure", s);
3469
3423
  i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), s();
3470
3424
  const o = Z(window, "resize", () => this.scalePositionWithinConstraints()), a = i.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: c }) => {
3471
- this.isDragging && c && ($((u) => {
3472
- const f = this.getAxisMotionValue(u);
3473
- f && (this.originPoint[u] += l[u].translate, f.set(f.get() + l[u].translate));
3425
+ this.isDragging && c && (G((u) => {
3426
+ const h = this.getAxisMotionValue(u);
3427
+ h && (this.originPoint[u] += l[u].translate, h.set(h.get() + l[u].translate));
3474
3428
  }), this.visualElement.render());
3475
3429
  });
3476
3430
  return () => {
@@ -3478,7 +3432,7 @@ class qc {
3478
3432
  };
3479
3433
  }
3480
3434
  getProps() {
3481
- const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: s = !1, dragPropagation: i = !1, dragConstraints: r = !1, dragElastic: o = Ge, dragMomentum: a = !0 } = e;
3435
+ const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: s = !1, dragPropagation: i = !1, dragConstraints: r = !1, dragElastic: o = $e, dragMomentum: a = !0 } = e;
3482
3436
  return {
3483
3437
  ...e,
3484
3438
  drag: n,
@@ -3493,17 +3447,17 @@ class qc {
3493
3447
  function Jt(t, e, n) {
3494
3448
  return (e === !0 || e === t) && (n === null || n === t);
3495
3449
  }
3496
- function Kc(t, e = 10) {
3450
+ function Bc(t, e = 10) {
3497
3451
  let n = null;
3498
3452
  return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
3499
3453
  }
3500
- class Yc extends ut {
3454
+ class Ic extends ut {
3501
3455
  constructor(e) {
3502
- super(e), this.removeGroupControls = E, this.removeListeners = E, this.controls = new qc(e);
3456
+ super(e), this.removeGroupControls = k, this.removeListeners = k, this.controls = new kc(e);
3503
3457
  }
3504
3458
  mount() {
3505
3459
  const { dragControls: e } = this.node.getProps();
3506
- e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || E;
3460
+ e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || k;
3507
3461
  }
3508
3462
  unmount() {
3509
3463
  this.removeGroupControls(), this.removeListeners();
@@ -3512,9 +3466,9 @@ class Yc extends ut {
3512
3466
  const gs = (t) => (e, n) => {
3513
3467
  t && V.update(() => t(e, n));
3514
3468
  };
3515
- class Xc extends ut {
3469
+ class Fc extends ut {
3516
3470
  constructor() {
3517
- super(...arguments), this.removePointerDownListener = E;
3471
+ super(...arguments), this.removePointerDownListener = k;
3518
3472
  }
3519
3473
  onPointerDown(e) {
3520
3474
  this.session = new eo(e, this.createPanHandlers(), {
@@ -3543,8 +3497,8 @@ class Xc extends ut {
3543
3497
  this.removePointerDownListener(), this.session && this.session.end();
3544
3498
  }
3545
3499
  }
3546
- function Qc() {
3547
- const t = N(sn);
3500
+ function Oc() {
3501
+ const t = U(sn);
3548
3502
  if (t === null)
3549
3503
  return [!0, null];
3550
3504
  const { isPresent: e, onExitComplete: n, register: s } = t, i = Mo();
@@ -3565,7 +3519,7 @@ const ne = {
3565
3519
  function ys(t, e) {
3566
3520
  return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
3567
3521
  }
3568
- const Et = {
3522
+ const kt = {
3569
3523
  correct: (t, e) => {
3570
3524
  if (!e.target)
3571
3525
  return t;
@@ -3577,18 +3531,18 @@ const Et = {
3577
3531
  const n = ys(t, e.target.x), s = ys(t, e.target.y);
3578
3532
  return `${n}% ${s}%`;
3579
3533
  }
3580
- }, Zc = {
3534
+ }, jc = {
3581
3535
  correct: (t, { treeScale: e, projectionDelta: n }) => {
3582
3536
  const s = t, i = ct.parse(t);
3583
3537
  if (i.length > 5)
3584
3538
  return s;
3585
3539
  const r = ct.createTransformer(t), o = typeof i[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
3586
3540
  i[0 + o] /= a, i[1 + o] /= l;
3587
- const c = _(a, l, 0.5);
3541
+ const c = L(a, l, 0.5);
3588
3542
  return typeof i[2 + o] == "number" && (i[2 + o] /= c), typeof i[3 + o] == "number" && (i[3 + o] /= c), r(i);
3589
3543
  }
3590
3544
  };
3591
- class Jc extends zs.Component {
3545
+ class Nc extends zs.Component {
3592
3546
  /**
3593
3547
  * This only mounts projection nodes for components that
3594
3548
  * need measuring, we might want to do it for all components
@@ -3596,7 +3550,7 @@ class Jc extends zs.Component {
3596
3550
  */
3597
3551
  componentDidMount() {
3598
3552
  const { visualElement: e, layoutGroup: n, switchLayoutGroup: s, layoutId: i } = this.props, { projection: r } = e;
3599
- aa(tu), r && (n.group && n.group.add(r), s && s.register && i && s.register(r), r.root.didUpdate(), r.addEventListener("animationComplete", () => {
3553
+ qr(Uc), r && (n.group && n.group.add(r), s && s.register && i && s.register(r), r.root.didUpdate(), r.addEventListener("animationComplete", () => {
3600
3554
  this.safeToRemove();
3601
3555
  }), r.setOptions({
3602
3556
  ...r.options,
@@ -3629,12 +3583,12 @@ class Jc extends zs.Component {
3629
3583
  }
3630
3584
  }
3631
3585
  function lo(t) {
3632
- const [e, n] = Qc(), s = N(si);
3633
- return zs.createElement(Jc, { ...t, layoutGroup: s, switchLayoutGroup: N(ii), isPresent: e, safeToRemove: n });
3586
+ const [e, n] = Oc(), s = U(si);
3587
+ return zs.createElement(Nc, { ...t, layoutGroup: s, switchLayoutGroup: U(ii), isPresent: e, safeToRemove: n });
3634
3588
  }
3635
- const tu = {
3589
+ const Uc = {
3636
3590
  borderRadius: {
3637
- ...Et,
3591
+ ...kt,
3638
3592
  applyTo: [
3639
3593
  "borderTopLeftRadius",
3640
3594
  "borderTopRightRadius",
@@ -3642,32 +3596,32 @@ const tu = {
3642
3596
  "borderBottomRightRadius"
3643
3597
  ]
3644
3598
  },
3645
- borderTopLeftRadius: Et,
3646
- borderTopRightRadius: Et,
3647
- borderBottomLeftRadius: Et,
3648
- borderBottomRightRadius: Et,
3649
- boxShadow: Zc
3650
- }, co = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], eu = co.length, vs = (t) => typeof t == "string" ? parseFloat(t) : t, xs = (t) => typeof t == "number" || w.test(t);
3651
- function nu(t, e, n, s, i, r) {
3652
- i ? (t.opacity = _(
3599
+ borderTopLeftRadius: kt,
3600
+ borderTopRightRadius: kt,
3601
+ borderBottomLeftRadius: kt,
3602
+ borderBottomRightRadius: kt,
3603
+ boxShadow: jc
3604
+ }, co = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], _c = co.length, vs = (t) => typeof t == "string" ? parseFloat(t) : t, xs = (t) => typeof t == "number" || w.test(t);
3605
+ function zc(t, e, n, s, i, r) {
3606
+ i ? (t.opacity = L(
3653
3607
  0,
3654
3608
  // TODO Reinstate this if only child
3655
3609
  n.opacity !== void 0 ? n.opacity : 1,
3656
- su(s)
3657
- ), t.opacityExit = _(e.opacity !== void 0 ? e.opacity : 1, 0, iu(s))) : r && (t.opacity = _(e.opacity !== void 0 ? e.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, s));
3658
- for (let o = 0; o < eu; o++) {
3610
+ Wc(s)
3611
+ ), t.opacityExit = L(e.opacity !== void 0 ? e.opacity : 1, 0, Gc(s))) : r && (t.opacity = L(e.opacity !== void 0 ? e.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, s));
3612
+ for (let o = 0; o < _c; o++) {
3659
3613
  const a = `border${co[o]}Radius`;
3660
3614
  let l = bs(e, a), c = bs(n, a);
3661
3615
  if (l === void 0 && c === void 0)
3662
3616
  continue;
3663
- l || (l = 0), c || (c = 0), l === 0 || c === 0 || xs(l) === xs(c) ? (t[a] = Math.max(_(vs(l), vs(c), s), 0), (K.test(c) || K.test(l)) && (t[a] += "%")) : t[a] = c;
3617
+ l || (l = 0), c || (c = 0), l === 0 || c === 0 || xs(l) === xs(c) ? (t[a] = Math.max(L(vs(l), vs(c), s), 0), (K.test(c) || K.test(l)) && (t[a] += "%")) : t[a] = c;
3664
3618
  }
3665
- (e.rotate || n.rotate) && (t.rotate = _(e.rotate || 0, n.rotate || 0, s));
3619
+ (e.rotate || n.rotate) && (t.rotate = L(e.rotate || 0, n.rotate || 0, s));
3666
3620
  }
3667
3621
  function bs(t, e) {
3668
3622
  return t[e] !== void 0 ? t[e] : t.borderRadius;
3669
3623
  }
3670
- const su = uo(0, 0.5, Li), iu = uo(0.5, 0.95, E);
3624
+ const Wc = uo(0, 0.5, Ei), Gc = uo(0.5, 0.95, k);
3671
3625
  function uo(t, e, n) {
3672
3626
  return (s) => s < t ? 0 : s > e ? 1 : n(zt(t, e, s));
3673
3627
  }
@@ -3680,35 +3634,35 @@ function W(t, e) {
3680
3634
  function Ts(t, e, n, s, i) {
3681
3635
  return t -= e, t = ue(t, 1 / n, s), i !== void 0 && (t = ue(t, 1 / i, s)), t;
3682
3636
  }
3683
- function ou(t, e = 0, n = 1, s = 0.5, i, r = t, o = t) {
3684
- if (K.test(e) && (e = parseFloat(e), e = _(o.min, o.max, e / 100) - o.min), typeof e != "number")
3637
+ function $c(t, e = 0, n = 1, s = 0.5, i, r = t, o = t) {
3638
+ if (K.test(e) && (e = parseFloat(e), e = L(o.min, o.max, e / 100) - o.min), typeof e != "number")
3685
3639
  return;
3686
- let a = _(r.min, r.max, s);
3640
+ let a = L(r.min, r.max, s);
3687
3641
  t === r && (a -= e), t.min = Ts(t.min, e, n, a, i), t.max = Ts(t.max, e, n, a, i);
3688
3642
  }
3689
3643
  function Ps(t, e, [n, s, i], r, o) {
3690
- ou(t, e[n], e[s], e[i], e.scale, r, o);
3644
+ $c(t, e[n], e[s], e[i], e.scale, r, o);
3691
3645
  }
3692
- const ru = ["x", "scaleX", "originX"], au = ["y", "scaleY", "originY"];
3646
+ const Hc = ["x", "scaleX", "originX"], qc = ["y", "scaleY", "originY"];
3693
3647
  function As(t, e, n, s) {
3694
- Ps(t.x, e, ru, n ? n.x : void 0, s ? s.x : void 0), Ps(t.y, e, au, n ? n.y : void 0, s ? s.y : void 0);
3648
+ Ps(t.x, e, Hc, n ? n.x : void 0, s ? s.x : void 0), Ps(t.y, e, qc, n ? n.y : void 0, s ? s.y : void 0);
3695
3649
  }
3696
3650
  function Ss(t) {
3697
3651
  return t.translate === 0 && t.scale === 1;
3698
3652
  }
3699
- function fo(t) {
3653
+ function ho(t) {
3700
3654
  return Ss(t.x) && Ss(t.y);
3701
3655
  }
3702
- function lu(t, e) {
3656
+ function Kc(t, e) {
3703
3657
  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;
3704
3658
  }
3705
- function ho(t, e) {
3659
+ function fo(t, e) {
3706
3660
  return Math.round(t.x.min) === Math.round(e.x.min) && Math.round(t.x.max) === Math.round(e.x.max) && Math.round(t.y.min) === Math.round(e.y.min) && Math.round(t.y.max) === Math.round(e.y.max);
3707
3661
  }
3708
3662
  function Vs(t) {
3709
3663
  return z(t.x) / z(t.y);
3710
3664
  }
3711
- class cu {
3665
+ class Yc {
3712
3666
  constructor() {
3713
3667
  this.members = [];
3714
3668
  }
@@ -3772,8 +3726,8 @@ function Cs(t, e, n) {
3772
3726
  const o = t.x.scale * e.x, a = t.y.scale * e.y;
3773
3727
  return (o !== 1 || a !== 1) && (s += `scale(${o}, ${a})`), s || "none";
3774
3728
  }
3775
- const uu = (t, e) => t.depth - e.depth;
3776
- class fu {
3729
+ const Xc = (t, e) => t.depth - e.depth;
3730
+ class Qc {
3777
3731
  constructor() {
3778
3732
  this.children = [], this.isDirty = !1;
3779
3733
  }
@@ -3784,45 +3738,45 @@ class fu {
3784
3738
  Tn(this.children, e), this.isDirty = !0;
3785
3739
  }
3786
3740
  forEach(e) {
3787
- this.isDirty && this.children.sort(uu), this.isDirty = !1, this.children.forEach(e);
3741
+ this.isDirty && this.children.sort(Xc), this.isDirty = !1, this.children.forEach(e);
3788
3742
  }
3789
3743
  }
3790
- function hu(t, e) {
3744
+ function Zc(t, e) {
3791
3745
  const n = performance.now(), s = ({ timestamp: i }) => {
3792
3746
  const r = i - n;
3793
3747
  r >= e && (et(s), t(r - e));
3794
3748
  };
3795
3749
  return V.read(s, !0), () => et(s);
3796
3750
  }
3797
- function du(t) {
3751
+ function Jc(t) {
3798
3752
  window.MotionDebug && window.MotionDebug.record(t);
3799
3753
  }
3800
- function pu(t) {
3754
+ function tu(t) {
3801
3755
  return t instanceof SVGElement && t.tagName !== "svg";
3802
3756
  }
3803
- function mu(t, e, n) {
3804
- const s = U(t) ? t : Vt(t);
3757
+ function eu(t, e, n) {
3758
+ const s = _(t) ? t : Vt(t);
3805
3759
  return s.start(bn("", s, e, n)), s.animation;
3806
3760
  }
3807
- const Ms = ["", "X", "Y", "Z"], gu = { visibility: "hidden" }, Ds = 1e3;
3808
- let yu = 0;
3809
- const pt = {
3761
+ const Ms = ["", "X", "Y", "Z"], nu = { visibility: "hidden" }, Ds = 1e3;
3762
+ let su = 0;
3763
+ const mt = {
3810
3764
  type: "projectionFrame",
3811
3765
  totalNodes: 0,
3812
3766
  resolvedTargetDeltas: 0,
3813
3767
  recalculatedProjection: 0
3814
3768
  };
3815
- function po({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: s, resetTransform: i }) {
3769
+ function mo({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: s, resetTransform: i }) {
3816
3770
  return class {
3817
3771
  constructor(o = {}, a = e == null ? void 0 : e()) {
3818
- this.id = yu++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
3772
+ this.id = su++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
3819
3773
  this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
3820
3774
  }, this.updateProjection = () => {
3821
- this.projectionUpdateScheduled = !1, pt.totalNodes = pt.resolvedTargetDeltas = pt.recalculatedProjection = 0, this.nodes.forEach(bu), this.nodes.forEach(Su), this.nodes.forEach(Vu), this.nodes.forEach(wu), du(pt);
3775
+ this.projectionUpdateScheduled = !1, mt.totalNodes = mt.resolvedTargetDeltas = mt.recalculatedProjection = 0, this.nodes.forEach(ru), this.nodes.forEach(hu), this.nodes.forEach(fu), this.nodes.forEach(au), Jc(mt);
3822
3776
  }, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = o, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
3823
3777
  for (let l = 0; l < this.path.length; l++)
3824
3778
  this.path[l].shouldResetTransform = !0;
3825
- this.root === this && (this.nodes = new fu());
3779
+ this.root === this && (this.nodes = new Qc());
3826
3780
  }
3827
3781
  addEventListener(o, a) {
3828
3782
  return this.eventHandlers.has(o) || this.eventHandlers.set(o, new Pn()), this.eventHandlers.get(o).add(a);
@@ -3840,32 +3794,32 @@ function po({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3840
3794
  mount(o, a = this.root.hasTreeAnimated) {
3841
3795
  if (this.instance)
3842
3796
  return;
3843
- this.isSVG = pu(o), this.instance = o;
3797
+ this.isSVG = tu(o), this.instance = o;
3844
3798
  const { layoutId: l, layout: c, visualElement: u } = this.options;
3845
3799
  if (u && !u.current && u.mount(o), this.root.nodes.add(this), this.parent && this.parent.children.add(this), a && (c || l) && (this.isLayoutDirty = !0), t) {
3846
- let f;
3847
- const h = () => this.root.updateBlockedByResize = !1;
3800
+ let h;
3801
+ const f = () => this.root.updateBlockedByResize = !1;
3848
3802
  t(o, () => {
3849
- this.root.updateBlockedByResize = !0, f && f(), f = hu(h, 250), ne.hasAnimatedSinceResize && (ne.hasAnimatedSinceResize = !1, this.nodes.forEach(_s));
3803
+ this.root.updateBlockedByResize = !0, h && h(), h = Zc(f, 250), ne.hasAnimatedSinceResize && (ne.hasAnimatedSinceResize = !1, this.nodes.forEach(Ls));
3850
3804
  });
3851
3805
  }
3852
- l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: f, hasLayoutChanged: h, hasRelativeTargetChanged: d, layout: p }) => {
3806
+ l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: h, hasLayoutChanged: f, hasRelativeTargetChanged: d, layout: m }) => {
3853
3807
  if (this.isTreeAnimationBlocked()) {
3854
3808
  this.target = void 0, this.relativeTarget = void 0;
3855
3809
  return;
3856
3810
  }
3857
- const m = this.options.transition || u.getDefaultTransition() || _u, { onLayoutAnimationStart: v, onLayoutAnimationComplete: b } = u.getProps(), y = !this.targetLayout || !ho(this.targetLayout, p) || d, g = !h && d;
3858
- if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || g || h && (y || !this.currentAnimation)) {
3859
- this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(f, g);
3811
+ const p = this.options.transition || u.getDefaultTransition() || yu, { onLayoutAnimationStart: v, onLayoutAnimationComplete: b } = u.getProps(), y = !this.targetLayout || !fo(this.targetLayout, m) || d, g = !f && d;
3812
+ if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || g || f && (y || !this.currentAnimation)) {
3813
+ this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(h, g);
3860
3814
  const x = {
3861
- ...xn(m, "layout"),
3815
+ ...xn(p, "layout"),
3862
3816
  onPlay: v,
3863
3817
  onComplete: b
3864
3818
  };
3865
3819
  (u.shouldReduceMotion || this.options.layoutRoot) && (x.delay = 0, x.type = !1), this.startAnimation(x);
3866
3820
  } else
3867
- h || _s(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
3868
- this.targetLayout = p;
3821
+ f || Ls(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
3822
+ this.targetLayout = m;
3869
3823
  });
3870
3824
  }
3871
3825
  unmount() {
@@ -3888,7 +3842,7 @@ function po({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3888
3842
  }
3889
3843
  // Note: currently only running on root node
3890
3844
  startUpdate() {
3891
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Cu), this.animationId++);
3845
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(du), this.animationId++);
3892
3846
  }
3893
3847
  getTransformTemplate() {
3894
3848
  const { visualElement: o } = this.options;
@@ -3903,8 +3857,8 @@ function po({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3903
3857
  return;
3904
3858
  this.isLayoutDirty = !0;
3905
3859
  for (let u = 0; u < this.path.length; u++) {
3906
- const f = this.path[u];
3907
- f.shouldResetTransform = !0, f.updateScroll("snapshot"), f.options.layoutRoot && f.willUpdate(!1);
3860
+ const h = this.path[u];
3861
+ h.shouldResetTransform = !0, h.updateScroll("snapshot"), h.options.layoutRoot && h.willUpdate(!1);
3908
3862
  }
3909
3863
  const { layoutId: a, layout: l } = this.options;
3910
3864
  if (a === void 0 && !l)
@@ -3917,7 +3871,7 @@ function po({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3917
3871
  this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Rs);
3918
3872
  return;
3919
3873
  }
3920
- this.isUpdating || this.nodes.forEach(Pu), this.isUpdating = !1, this.nodes.forEach(Au), this.nodes.forEach(vu), this.nodes.forEach(xu), this.clearAllSnapshots();
3874
+ this.isUpdating || this.nodes.forEach(cu), this.isUpdating = !1, this.nodes.forEach(uu), this.nodes.forEach(iu), this.nodes.forEach(ou), this.clearAllSnapshots();
3921
3875
  const a = performance.now();
3922
3876
  F.delta = lt(0, 1e3 / 60, a - F.timestamp), F.timestamp = a, F.isProcessing = !0, Pe.update.process(F), Pe.preRender.process(F), Pe.render.process(F), F.isProcessing = !1;
3923
3877
  }
@@ -3925,7 +3879,7 @@ function po({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3925
3879
  this.updateScheduled || (this.updateScheduled = !0, queueMicrotask(() => this.update()));
3926
3880
  }
3927
3881
  clearAllSnapshots() {
3928
- this.nodes.forEach(Tu), this.sharedNodes.forEach(Mu);
3882
+ this.nodes.forEach(lu), this.sharedNodes.forEach(mu);
3929
3883
  }
3930
3884
  scheduleUpdateProjection() {
3931
3885
  this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, V.preRender(this.updateProjection, !1, !0));
@@ -3948,7 +3902,7 @@ function po({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3948
3902
  for (let l = 0; l < this.path.length; l++)
3949
3903
  this.path[l].updateScroll();
3950
3904
  const o = this.layout;
3951
- this.layout = this.measure(!1), this.layoutCorrected = k(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
3905
+ this.layout = this.measure(!1), this.layoutCorrected = B(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
3952
3906
  const { visualElement: a } = this.options;
3953
3907
  a && a.notify("LayoutMeasure", this.layout.layoutBox, o ? o.layoutBox : void 0);
3954
3908
  }
@@ -3964,13 +3918,13 @@ function po({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3964
3918
  resetTransform() {
3965
3919
  if (!i)
3966
3920
  return;
3967
- const o = this.isLayoutDirty || this.shouldResetTransform, a = this.projectionDelta && !fo(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
3921
+ const o = this.isLayoutDirty || this.shouldResetTransform, a = this.projectionDelta && !ho(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
3968
3922
  o && (a || dt(this.latestValues) || u) && (i(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender());
3969
3923
  }
3970
3924
  measure(o = !0) {
3971
3925
  const a = this.measurePageBox();
3972
3926
  let l = this.removeElementScroll(a);
3973
- return o && (l = this.removeTransform(l)), Lu(l), {
3927
+ return o && (l = this.removeTransform(l)), vu(l), {
3974
3928
  animationId: this.root.animationId,
3975
3929
  measuredBox: a,
3976
3930
  layoutBox: l,
@@ -3981,20 +3935,20 @@ function po({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3981
3935
  measurePageBox() {
3982
3936
  const { visualElement: o } = this.options;
3983
3937
  if (!o)
3984
- return k();
3938
+ return B();
3985
3939
  const a = o.measureViewportBox(), { scroll: l } = this.root;
3986
3940
  return l && (it(a.x, l.offset.x), it(a.y, l.offset.y)), a;
3987
3941
  }
3988
3942
  removeElementScroll(o) {
3989
- const a = k();
3943
+ const a = B();
3990
3944
  W(a, o);
3991
3945
  for (let l = 0; l < this.path.length; l++) {
3992
- const c = this.path[l], { scroll: u, options: f } = c;
3993
- if (c !== this.root && u && f.layoutScroll) {
3946
+ const c = this.path[l], { scroll: u, options: h } = c;
3947
+ if (c !== this.root && u && h.layoutScroll) {
3994
3948
  if (u.isRoot) {
3995
3949
  W(a, o);
3996
- const { scroll: h } = this.root;
3997
- h && (it(a.x, -h.offset.x), it(a.y, -h.offset.y));
3950
+ const { scroll: f } = this.root;
3951
+ f && (it(a.x, -f.offset.x), it(a.y, -f.offset.y));
3998
3952
  }
3999
3953
  it(a.x, u.offset.x), it(a.y, u.offset.y);
4000
3954
  }
@@ -4002,7 +3956,7 @@ function po({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4002
3956
  return a;
4003
3957
  }
4004
3958
  applyTransform(o, a = !1) {
4005
- const l = k();
3959
+ const l = B();
4006
3960
  W(l, o);
4007
3961
  for (let c = 0; c < this.path.length; c++) {
4008
3962
  const u = this.path[c];
@@ -4014,15 +3968,15 @@ function po({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4014
3968
  return dt(this.latestValues) && At(l, this.latestValues), l;
4015
3969
  }
4016
3970
  removeTransform(o) {
4017
- const a = k();
3971
+ const a = B();
4018
3972
  W(a, o);
4019
3973
  for (let l = 0; l < this.path.length; l++) {
4020
3974
  const c = this.path[l];
4021
3975
  if (!c.instance || !dt(c.latestValues))
4022
3976
  continue;
4023
3977
  He(c.latestValues) && c.updateSnapshot();
4024
- const u = k(), f = c.measurePageBox();
4025
- W(u, f), As(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
3978
+ const u = B(), h = c.measurePageBox();
3979
+ W(u, h), As(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
4026
3980
  }
4027
3981
  return dt(this.latestValues) && As(a, this.latestValues), a;
4028
3982
  }
@@ -4049,19 +4003,19 @@ function po({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4049
4003
  const c = !!this.resumingFrom || this !== l;
4050
4004
  if (!(o || c && this.isSharedProjectionDirty || this.isProjectionDirty || !((a = this.parent) === null || a === void 0) && a.isProjectionDirty || this.attemptToResolveRelativeTarget))
4051
4005
  return;
4052
- const { layout: f, layoutId: h } = this.options;
4053
- if (!(!this.layout || !(f || h))) {
4006
+ const { layout: h, layoutId: f } = this.options;
4007
+ if (!(!this.layout || !(h || f))) {
4054
4008
  if (this.resolvedRelativeTargetAt = F.timestamp, !this.targetDelta && !this.relativeTarget) {
4055
4009
  const d = this.getClosestProjectingParent();
4056
- d && d.layout && this.animationProgress !== 1 ? (this.relativeParent = d, this.forceRelativeParentToResolveTarget(), this.relativeTarget = k(), this.relativeTargetOrigin = k(), Ot(this.relativeTargetOrigin, this.layout.layoutBox, d.layout.layoutBox), W(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4010
+ d && d.layout && this.animationProgress !== 1 ? (this.relativeParent = d, this.forceRelativeParentToResolveTarget(), this.relativeTarget = B(), this.relativeTargetOrigin = B(), jt(this.relativeTargetOrigin, this.layout.layoutBox, d.layout.layoutBox), W(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4057
4011
  }
4058
4012
  if (!(!this.relativeTarget && !this.targetDelta)) {
4059
- if (this.target || (this.target = k(), this.targetWithTransforms = k()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Ec(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : W(this.target, this.layout.layoutBox), oo(this.target, this.targetDelta)) : W(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
4013
+ if (this.target || (this.target = B(), this.targetWithTransforms = B()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), xc(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : W(this.target, this.layout.layoutBox), oo(this.target, this.targetDelta)) : W(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
4060
4014
  this.attemptToResolveRelativeTarget = !1;
4061
4015
  const d = this.getClosestProjectingParent();
4062
- d && !!d.resumingFrom == !!this.resumingFrom && !d.options.layoutScroll && d.target && this.animationProgress !== 1 ? (this.relativeParent = d, this.forceRelativeParentToResolveTarget(), this.relativeTarget = k(), this.relativeTargetOrigin = k(), Ot(this.relativeTargetOrigin, this.target, d.target), W(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4016
+ d && !!d.resumingFrom == !!this.resumingFrom && !d.options.layoutScroll && d.target && this.animationProgress !== 1 ? (this.relativeParent = d, this.forceRelativeParentToResolveTarget(), this.relativeTarget = B(), this.relativeTargetOrigin = B(), jt(this.relativeTargetOrigin, this.target, d.target), W(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4063
4017
  }
4064
- pt.resolvedTargetDeltas++;
4018
+ mt.resolvedTargetDeltas++;
4065
4019
  }
4066
4020
  }
4067
4021
  }
@@ -4078,20 +4032,20 @@ function po({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4078
4032
  let c = !0;
4079
4033
  if ((this.isProjectionDirty || !((o = this.parent) === null || o === void 0) && o.isProjectionDirty) && (c = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === F.timestamp && (c = !1), c)
4080
4034
  return;
4081
- const { layout: u, layoutId: f } = this.options;
4082
- if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(u || f))
4035
+ const { layout: u, layoutId: h } = this.options;
4036
+ if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(u || h))
4083
4037
  return;
4084
4038
  W(this.layoutCorrected, this.layout.layoutBox);
4085
- const h = this.treeScale.x, d = this.treeScale.y;
4086
- zc(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox);
4087
- const { target: p } = a;
4088
- if (!p) {
4039
+ const f = this.treeScale.x, d = this.treeScale.y;
4040
+ Mc(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox);
4041
+ const { target: m } = a;
4042
+ if (!m) {
4089
4043
  this.projectionTransform && (this.projectionDelta = Pt(), this.projectionTransform = "none", this.scheduleRender());
4090
4044
  return;
4091
4045
  }
4092
4046
  this.projectionDelta || (this.projectionDelta = Pt(), this.projectionDeltaWithTransform = Pt());
4093
- const m = this.projectionTransform;
4094
- Ft(this.projectionDelta, this.layoutCorrected, p, this.latestValues), this.projectionTransform = Cs(this.projectionDelta, this.treeScale), (this.projectionTransform !== m || this.treeScale.x !== h || this.treeScale.y !== d) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", p)), pt.recalculatedProjection++;
4047
+ const p = this.projectionTransform;
4048
+ Ot(this.projectionDelta, this.layoutCorrected, m, this.latestValues), this.projectionTransform = Cs(this.projectionDelta, this.treeScale), (this.projectionTransform !== p || this.treeScale.x !== f || this.treeScale.y !== d) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m)), mt.recalculatedProjection++;
4095
4049
  }
4096
4050
  hide() {
4097
4051
  this.isVisible = !1;
@@ -4107,19 +4061,19 @@ function po({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4107
4061
  this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
4108
4062
  }
4109
4063
  setAnimationOrigin(o, a = !1) {
4110
- const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, f = Pt();
4064
+ const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, h = Pt();
4111
4065
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
4112
- const h = k(), d = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, m = d !== p, v = this.getStack(), b = !v || v.members.length <= 1, y = !!(m && !b && this.options.crossfade === !0 && !this.path.some(Ru));
4066
+ const f = B(), d = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, p = d !== m, v = this.getStack(), b = !v || v.members.length <= 1, y = !!(p && !b && this.options.crossfade === !0 && !this.path.some(gu));
4113
4067
  this.animationProgress = 0;
4114
4068
  let g;
4115
4069
  this.mixTargetDelta = (x) => {
4116
4070
  const P = x / 1e3;
4117
- Ls(f.x, o.x, P), Ls(f.y, o.y, P), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Ot(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Du(this.relativeTarget, this.relativeTargetOrigin, h, P), g && lu(this.relativeTarget, g) && (this.isProjectionDirty = !1), g || (g = k()), W(g, this.relativeTarget)), m && (this.animationValues = u, nu(u, c, this.latestValues, P, y, b)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = P;
4071
+ Es(h.x, o.x, P), Es(h.y, o.y, P), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (jt(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), pu(this.relativeTarget, this.relativeTargetOrigin, f, P), g && Kc(this.relativeTarget, g) && (this.isProjectionDirty = !1), g || (g = B()), W(g, this.relativeTarget)), p && (this.animationValues = u, zc(u, c, this.latestValues, P, y, b)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = P;
4118
4072
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
4119
4073
  }
4120
4074
  startAnimation(o) {
4121
4075
  this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (et(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = V.update(() => {
4122
- ne.hasAnimatedSinceResize = !0, this.currentAnimation = mu(0, Ds, {
4076
+ ne.hasAnimatedSinceResize = !0, this.currentAnimation = eu(0, Ds, {
4123
4077
  ...o,
4124
4078
  onUpdate: (a) => {
4125
4079
  this.mixTargetDelta(a), o.onUpdate && o.onUpdate(a);
@@ -4142,18 +4096,18 @@ function po({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4142
4096
  const o = this.getLead();
4143
4097
  let { targetWithTransforms: a, target: l, layout: c, latestValues: u } = o;
4144
4098
  if (!(!a || !l || !c)) {
4145
- if (this !== o && this.layout && c && mo(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
4146
- l = this.target || k();
4147
- const f = z(this.layout.layoutBox.x);
4148
- l.x.min = o.target.x.min, l.x.max = l.x.min + f;
4149
- const h = z(this.layout.layoutBox.y);
4150
- l.y.min = o.target.y.min, l.y.max = l.y.min + h;
4099
+ if (this !== o && this.layout && c && po(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
4100
+ l = this.target || B();
4101
+ const h = z(this.layout.layoutBox.x);
4102
+ l.x.min = o.target.x.min, l.x.max = l.x.min + h;
4103
+ const f = z(this.layout.layoutBox.y);
4104
+ l.y.min = o.target.y.min, l.y.max = l.y.min + f;
4151
4105
  }
4152
- W(a, l), At(a, u), Ft(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
4106
+ W(a, l), At(a, u), Ot(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
4153
4107
  }
4154
4108
  }
4155
4109
  registerSharedNode(o, a) {
4156
- this.sharedNodes.has(o) || this.sharedNodes.set(o, new cu()), this.sharedNodes.get(o).add(a);
4110
+ this.sharedNodes.has(o) || this.sharedNodes.set(o, new Yc()), this.sharedNodes.get(o).add(a);
4157
4111
  const c = a.options.initialPromotionConfig;
4158
4112
  a.promote({
4159
4113
  transition: c ? c.transition : void 0,
@@ -4197,8 +4151,8 @@ function po({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4197
4151
  return;
4198
4152
  const c = {};
4199
4153
  for (let u = 0; u < Ms.length; u++) {
4200
- const f = "rotate" + Ms[u];
4201
- l[f] && (c[f] = l[f], o.setStaticValue(f, 0));
4154
+ const h = "rotate" + Ms[u];
4155
+ l[h] && (c[h] = l[h], o.setStaticValue(h, 0));
4202
4156
  }
4203
4157
  o.render();
4204
4158
  for (const u in c)
@@ -4210,33 +4164,33 @@ function po({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4210
4164
  if (!this.instance || this.isSVG)
4211
4165
  return;
4212
4166
  if (!this.isVisible)
4213
- return gu;
4167
+ return nu;
4214
4168
  const c = {
4215
4169
  visibility: ""
4216
4170
  }, u = this.getTransformTemplate();
4217
4171
  if (this.needsReset)
4218
4172
  return this.needsReset = !1, c.opacity = "", c.pointerEvents = ee(o == null ? void 0 : o.pointerEvents) || "", c.transform = u ? u(this.latestValues, "") : "none", c;
4219
- const f = this.getLead();
4220
- if (!this.projectionDelta || !this.layout || !f.target) {
4221
- const m = {};
4222
- return this.options.layoutId && (m.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, m.pointerEvents = ee(o == null ? void 0 : o.pointerEvents) || ""), this.hasProjected && !dt(this.latestValues) && (m.transform = u ? u({}, "") : "none", this.hasProjected = !1), m;
4173
+ const h = this.getLead();
4174
+ if (!this.projectionDelta || !this.layout || !h.target) {
4175
+ const p = {};
4176
+ return this.options.layoutId && (p.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, p.pointerEvents = ee(o == null ? void 0 : o.pointerEvents) || ""), this.hasProjected && !dt(this.latestValues) && (p.transform = u ? u({}, "") : "none", this.hasProjected = !1), p;
4223
4177
  }
4224
- const h = f.animationValues || f.latestValues;
4225
- this.applyTransformsToTarget(), c.transform = Cs(this.projectionDeltaWithTransform, this.treeScale, h), u && (c.transform = u(h, c.transform));
4226
- const { x: d, y: p } = this.projectionDelta;
4227
- c.transformOrigin = `${d.origin * 100}% ${p.origin * 100}% 0`, f.animationValues ? c.opacity = f === this ? (l = (a = h.opacity) !== null && a !== void 0 ? a : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : h.opacityExit : c.opacity = f === this ? h.opacity !== void 0 ? h.opacity : "" : h.opacityExit !== void 0 ? h.opacityExit : 0;
4228
- for (const m in se) {
4229
- if (h[m] === void 0)
4178
+ const f = h.animationValues || h.latestValues;
4179
+ this.applyTransformsToTarget(), c.transform = Cs(this.projectionDeltaWithTransform, this.treeScale, f), u && (c.transform = u(f, c.transform));
4180
+ const { x: d, y: m } = this.projectionDelta;
4181
+ c.transformOrigin = `${d.origin * 100}% ${m.origin * 100}% 0`, h.animationValues ? c.opacity = h === this ? (l = (a = f.opacity) !== null && a !== void 0 ? a : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : f.opacityExit : c.opacity = h === this ? f.opacity !== void 0 ? f.opacity : "" : f.opacityExit !== void 0 ? f.opacityExit : 0;
4182
+ for (const p in se) {
4183
+ if (f[p] === void 0)
4230
4184
  continue;
4231
- const { correct: v, applyTo: b } = se[m], y = c.transform === "none" ? h[m] : v(h[m], f);
4185
+ const { correct: v, applyTo: b } = se[p], y = c.transform === "none" ? f[p] : v(f[p], h);
4232
4186
  if (b) {
4233
4187
  const g = b.length;
4234
4188
  for (let x = 0; x < g; x++)
4235
4189
  c[b[x]] = y;
4236
4190
  } else
4237
- c[m] = y;
4191
+ c[p] = y;
4238
4192
  }
4239
- return this.options.layoutId && (c.pointerEvents = f === this ? ee(o == null ? void 0 : o.pointerEvents) || "" : "none"), c;
4193
+ return this.options.layoutId && (c.pointerEvents = h === this ? ee(o == null ? void 0 : o.pointerEvents) || "" : "none"), c;
4240
4194
  }
4241
4195
  clearSnapshot() {
4242
4196
  this.resumeFrom = this.snapshot = void 0;
@@ -4250,36 +4204,36 @@ function po({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4250
4204
  }
4251
4205
  };
4252
4206
  }
4253
- function vu(t) {
4207
+ function iu(t) {
4254
4208
  t.updateLayout();
4255
4209
  }
4256
- function xu(t) {
4210
+ function ou(t) {
4257
4211
  var e;
4258
4212
  const n = ((e = t.resumeFrom) === null || e === void 0 ? void 0 : e.snapshot) || t.snapshot;
4259
4213
  if (t.isLead() && t.layout && n && t.hasListeners("didUpdate")) {
4260
4214
  const { layoutBox: s, measuredBox: i } = t.layout, { animationType: r } = t.options, o = n.source !== t.layout.source;
4261
- r === "size" ? $((f) => {
4262
- const h = o ? n.measuredBox[f] : n.layoutBox[f], d = z(h);
4263
- h.min = s[f].min, h.max = h.min + d;
4264
- }) : mo(r, n.layoutBox, s) && $((f) => {
4265
- const h = o ? n.measuredBox[f] : n.layoutBox[f], d = z(s[f]);
4266
- h.max = h.min + d, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[f].max = t.relativeTarget[f].min + d);
4215
+ r === "size" ? G((h) => {
4216
+ const f = o ? n.measuredBox[h] : n.layoutBox[h], d = z(f);
4217
+ f.min = s[h].min, f.max = f.min + d;
4218
+ }) : po(r, n.layoutBox, s) && G((h) => {
4219
+ const f = o ? n.measuredBox[h] : n.layoutBox[h], d = z(s[h]);
4220
+ f.max = f.min + d, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[h].max = t.relativeTarget[h].min + d);
4267
4221
  });
4268
4222
  const a = Pt();
4269
- Ft(a, s, n.layoutBox);
4223
+ Ot(a, s, n.layoutBox);
4270
4224
  const l = Pt();
4271
- o ? Ft(l, t.applyTransform(i, !0), n.measuredBox) : Ft(l, s, n.layoutBox);
4272
- const c = !fo(a);
4225
+ o ? Ot(l, t.applyTransform(i, !0), n.measuredBox) : Ot(l, s, n.layoutBox);
4226
+ const c = !ho(a);
4273
4227
  let u = !1;
4274
4228
  if (!t.resumeFrom) {
4275
- const f = t.getClosestProjectingParent();
4276
- if (f && !f.resumeFrom) {
4277
- const { snapshot: h, layout: d } = f;
4278
- if (h && d) {
4279
- const p = k();
4280
- Ot(p, n.layoutBox, h.layoutBox);
4281
- const m = k();
4282
- Ot(m, s, d.layoutBox), ho(p, m) || (u = !0), f.options.layoutRoot && (t.relativeTarget = m, t.relativeTargetOrigin = p, t.relativeParent = f);
4229
+ const h = t.getClosestProjectingParent();
4230
+ if (h && !h.resumeFrom) {
4231
+ const { snapshot: f, layout: d } = h;
4232
+ if (f && d) {
4233
+ const m = B();
4234
+ jt(m, n.layoutBox, f.layoutBox);
4235
+ const p = B();
4236
+ jt(p, s, d.layoutBox), fo(m, p) || (u = !0), h.options.layoutRoot && (t.relativeTarget = p, t.relativeTargetOrigin = m, t.relativeParent = h);
4283
4237
  }
4284
4238
  }
4285
4239
  }
@@ -4297,111 +4251,111 @@ function xu(t) {
4297
4251
  }
4298
4252
  t.options.transition = void 0;
4299
4253
  }
4300
- function bu(t) {
4301
- pt.totalNodes++, t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
4254
+ function ru(t) {
4255
+ mt.totalNodes++, t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
4302
4256
  }
4303
- function wu(t) {
4257
+ function au(t) {
4304
4258
  t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
4305
4259
  }
4306
- function Tu(t) {
4260
+ function lu(t) {
4307
4261
  t.clearSnapshot();
4308
4262
  }
4309
4263
  function Rs(t) {
4310
4264
  t.clearMeasurements();
4311
4265
  }
4312
- function Pu(t) {
4266
+ function cu(t) {
4313
4267
  t.isLayoutDirty = !1;
4314
4268
  }
4315
- function Au(t) {
4269
+ function uu(t) {
4316
4270
  const { visualElement: e } = t.options;
4317
4271
  e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
4318
4272
  }
4319
- function _s(t) {
4273
+ function Ls(t) {
4320
4274
  t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
4321
4275
  }
4322
- function Su(t) {
4276
+ function hu(t) {
4323
4277
  t.resolveTargetDelta();
4324
4278
  }
4325
- function Vu(t) {
4279
+ function fu(t) {
4326
4280
  t.calcProjection();
4327
4281
  }
4328
- function Cu(t) {
4282
+ function du(t) {
4329
4283
  t.resetRotation();
4330
4284
  }
4331
- function Mu(t) {
4285
+ function mu(t) {
4332
4286
  t.removeLeadSnapshot();
4333
4287
  }
4334
- function Ls(t, e, n) {
4335
- t.translate = _(e.translate, 0, n), t.scale = _(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
4288
+ function Es(t, e, n) {
4289
+ t.translate = L(e.translate, 0, n), t.scale = L(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
4336
4290
  }
4337
- function Es(t, e, n, s) {
4338
- t.min = _(e.min, n.min, s), t.max = _(e.max, n.max, s);
4291
+ function ks(t, e, n, s) {
4292
+ t.min = L(e.min, n.min, s), t.max = L(e.max, n.max, s);
4339
4293
  }
4340
- function Du(t, e, n, s) {
4341
- Es(t.x, e.x, n.x, s), Es(t.y, e.y, n.y, s);
4294
+ function pu(t, e, n, s) {
4295
+ ks(t.x, e.x, n.x, s), ks(t.y, e.y, n.y, s);
4342
4296
  }
4343
- function Ru(t) {
4297
+ function gu(t) {
4344
4298
  return t.animationValues && t.animationValues.opacityExit !== void 0;
4345
4299
  }
4346
- const _u = {
4300
+ const yu = {
4347
4301
  duration: 0.45,
4348
4302
  ease: [0.4, 0, 0.1, 1]
4349
- }, ks = (t) => typeof navigator < "u" && navigator.userAgent.toLowerCase().includes(t), Bs = ks("applewebkit/") && !ks("chrome/") ? Math.round : E;
4350
- function Is(t) {
4351
- t.min = Bs(t.min), t.max = Bs(t.max);
4303
+ }, Bs = (t) => typeof navigator < "u" && navigator.userAgent.toLowerCase().includes(t), Is = Bs("applewebkit/") && !Bs("chrome/") ? Math.round : k;
4304
+ function Fs(t) {
4305
+ t.min = Is(t.min), t.max = Is(t.max);
4352
4306
  }
4353
- function Lu(t) {
4354
- Is(t.x), Is(t.y);
4307
+ function vu(t) {
4308
+ Fs(t.x), Fs(t.y);
4355
4309
  }
4356
- function mo(t, e, n) {
4357
- return t === "position" || t === "preserve-aspect" && !$e(Vs(e), Vs(n), 0.2);
4310
+ function po(t, e, n) {
4311
+ return t === "position" || t === "preserve-aspect" && !Ge(Vs(e), Vs(n), 0.2);
4358
4312
  }
4359
- const Eu = po({
4313
+ const xu = mo({
4360
4314
  attachResizeListener: (t, e) => Z(t, "resize", e),
4361
4315
  measureScroll: () => ({
4362
4316
  x: document.documentElement.scrollLeft || document.body.scrollLeft,
4363
4317
  y: document.documentElement.scrollTop || document.body.scrollTop
4364
4318
  }),
4365
4319
  checkIsScrollRoot: () => !0
4366
- }), ke = {
4320
+ }), Be = {
4367
4321
  current: void 0
4368
- }, go = po({
4322
+ }, go = mo({
4369
4323
  measureScroll: (t) => ({
4370
4324
  x: t.scrollLeft,
4371
4325
  y: t.scrollTop
4372
4326
  }),
4373
4327
  defaultParent: () => {
4374
- if (!ke.current) {
4375
- const t = new Eu({});
4376
- t.mount(window), t.setOptions({ layoutScroll: !0 }), ke.current = t;
4328
+ if (!Be.current) {
4329
+ const t = new xu({});
4330
+ t.mount(window), t.setOptions({ layoutScroll: !0 }), Be.current = t;
4377
4331
  }
4378
- return ke.current;
4332
+ return Be.current;
4379
4333
  },
4380
4334
  resetTransform: (t, e) => {
4381
4335
  t.style.transform = e !== void 0 ? e : "none";
4382
4336
  },
4383
4337
  checkIsScrollRoot: (t) => window.getComputedStyle(t).position === "fixed"
4384
- }), ku = {
4338
+ }), bu = {
4385
4339
  pan: {
4386
- Feature: Xc
4340
+ Feature: Fc
4387
4341
  },
4388
4342
  drag: {
4389
- Feature: Yc,
4343
+ Feature: Ic,
4390
4344
  ProjectionNode: go,
4391
4345
  MeasureLayout: lo
4392
4346
  }
4393
- }, Bu = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;
4394
- function Iu(t) {
4395
- const e = Bu.exec(t);
4347
+ }, wu = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;
4348
+ function Tu(t) {
4349
+ const e = wu.exec(t);
4396
4350
  if (!e)
4397
4351
  return [,];
4398
4352
  const [, n, s] = e;
4399
4353
  return [n, s];
4400
4354
  }
4401
- const Fu = 4;
4355
+ const Pu = 4;
4402
4356
  function Ke(t, e, n = 1) {
4403
- q(n <= Fu, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
4404
- const [s, i] = Iu(t);
4357
+ q(n <= Pu, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
4358
+ const [s, i] = Tu(t);
4405
4359
  if (!s)
4406
4360
  return;
4407
4361
  const r = window.getComputedStyle(e).getPropertyValue(s);
@@ -4409,29 +4363,29 @@ function Ke(t, e, n = 1) {
4409
4363
  const o = r.trim();
4410
4364
  return Qi(o) ? parseFloat(o) : o;
4411
4365
  } else
4412
- return Fe(i) ? Ke(i, e, n + 1) : i;
4366
+ return Oe(i) ? Ke(i, e, n + 1) : i;
4413
4367
  }
4414
- function Ou(t, { ...e }, n) {
4368
+ function Au(t, { ...e }, n) {
4415
4369
  const s = t.current;
4416
4370
  if (!(s instanceof Element))
4417
4371
  return { target: e, transitionEnd: n };
4418
4372
  n && (n = { ...n }), t.values.forEach((i) => {
4419
4373
  const r = i.get();
4420
- if (!Fe(r))
4374
+ if (!Oe(r))
4421
4375
  return;
4422
4376
  const o = Ke(r, s);
4423
4377
  o && i.set(o);
4424
4378
  });
4425
4379
  for (const i in e) {
4426
4380
  const r = e[i];
4427
- if (!Fe(r))
4381
+ if (!Oe(r))
4428
4382
  continue;
4429
4383
  const o = Ke(r, s);
4430
4384
  o && (e[i] = o, n || (n = {}), n[i] === void 0 && (n[i] = r));
4431
4385
  }
4432
4386
  return { target: e, transitionEnd: n };
4433
4387
  }
4434
- const ju = /* @__PURE__ */ new Set([
4388
+ const Su = /* @__PURE__ */ new Set([
4435
4389
  "width",
4436
4390
  "height",
4437
4391
  "top",
@@ -4442,20 +4396,20 @@ const ju = /* @__PURE__ */ new Set([
4442
4396
  "y",
4443
4397
  "translateX",
4444
4398
  "translateY"
4445
- ]), yo = (t) => ju.has(t), Nu = (t) => Object.keys(t).some(yo), te = (t) => t === yt || t === w, Fs = (t, e) => parseFloat(t.split(", ")[e]), Os = (t, e) => (n, { transform: s }) => {
4399
+ ]), yo = (t) => Su.has(t), Vu = (t) => Object.keys(t).some(yo), te = (t) => t === yt || t === w, Os = (t, e) => parseFloat(t.split(", ")[e]), js = (t, e) => (n, { transform: s }) => {
4446
4400
  if (s === "none" || !s)
4447
4401
  return 0;
4448
4402
  const i = s.match(/^matrix3d\((.+)\)$/);
4449
4403
  if (i)
4450
- return Fs(i[1], e);
4404
+ return Os(i[1], e);
4451
4405
  {
4452
4406
  const r = s.match(/^matrix\((.+)\)$/);
4453
- return r ? Fs(r[1], t) : 0;
4407
+ return r ? Os(r[1], t) : 0;
4454
4408
  }
4455
- }, Uu = /* @__PURE__ */ new Set(["x", "y", "z"]), zu = $t.filter((t) => !Uu.has(t));
4456
- function Wu(t) {
4409
+ }, Cu = /* @__PURE__ */ new Set(["x", "y", "z"]), Mu = Gt.filter((t) => !Cu.has(t));
4410
+ function Du(t) {
4457
4411
  const e = [];
4458
- return zu.forEach((n) => {
4412
+ return Mu.forEach((n) => {
4459
4413
  const s = t.getValue(n);
4460
4414
  s !== void 0 && (e.push([n, s.get()]), s.set(n.startsWith("scale") ? 1 : 0));
4461
4415
  }), e.length && t.render(), e;
@@ -4469,12 +4423,12 @@ const Ct = {
4469
4423
  bottom: ({ y: t }, { top: e }) => parseFloat(e) + (t.max - t.min),
4470
4424
  right: ({ x: t }, { left: e }) => parseFloat(e) + (t.max - t.min),
4471
4425
  // Transform
4472
- x: Os(4, 13),
4473
- y: Os(5, 14)
4426
+ x: js(4, 13),
4427
+ y: js(5, 14)
4474
4428
  };
4475
4429
  Ct.translateX = Ct.x;
4476
4430
  Ct.translateY = Ct.y;
4477
- const $u = (t, e, n) => {
4431
+ const Ru = (t, e, n) => {
4478
4432
  const s = e.measureViewportBox(), i = e.current, r = getComputedStyle(i), { display: o } = r, a = {};
4479
4433
  o === "none" && e.setStaticValue("display", t.display || "block"), n.forEach((c) => {
4480
4434
  a[c] = Ct[c](s, r);
@@ -4484,7 +4438,7 @@ const $u = (t, e, n) => {
4484
4438
  const u = e.getValue(c);
4485
4439
  u && u.jump(a[c]), t[c] = Ct[c](l, r);
4486
4440
  }), t;
4487
- }, Gu = (t, e, n = {}, s = {}) => {
4441
+ }, Lu = (t, e, n = {}, s = {}) => {
4488
4442
  e = { ...e }, s = { ...s };
4489
4443
  const i = Object.keys(e).filter(yo);
4490
4444
  let r = [], o = !1;
@@ -4493,52 +4447,52 @@ const $u = (t, e, n) => {
4493
4447
  const c = t.getValue(l);
4494
4448
  if (!t.hasValue(l))
4495
4449
  return;
4496
- let u = n[l], f = Lt(u);
4497
- const h = e[l];
4450
+ let u = n[l], h = Et(u);
4451
+ const f = e[l];
4498
4452
  let d;
4499
- if (oe(h)) {
4500
- const p = h.length, m = h[0] === null ? 1 : 0;
4501
- u = h[m], f = Lt(u);
4502
- for (let v = m; v < p && h[v] !== null; v++)
4503
- d ? q(Lt(h[v]) === d, "All keyframes must be of the same type") : (d = Lt(h[v]), q(d === f || te(f) && te(d), "Keyframes must be of the same dimension as the current value"));
4453
+ if (oe(f)) {
4454
+ const m = f.length, p = f[0] === null ? 1 : 0;
4455
+ u = f[p], h = Et(u);
4456
+ for (let v = p; v < m && f[v] !== null; v++)
4457
+ d ? q(Et(f[v]) === d, "All keyframes must be of the same type") : (d = Et(f[v]), q(d === h || te(h) && te(d), "Keyframes must be of the same dimension as the current value"));
4504
4458
  } else
4505
- d = Lt(h);
4506
- if (f !== d)
4507
- if (te(f) && te(d)) {
4508
- const p = c.get();
4509
- typeof p == "string" && c.set(parseFloat(p)), typeof h == "string" ? e[l] = parseFloat(h) : Array.isArray(h) && d === w && (e[l] = h.map(parseFloat));
4459
+ d = Et(f);
4460
+ if (h !== d)
4461
+ if (te(h) && te(d)) {
4462
+ const m = c.get();
4463
+ typeof m == "string" && c.set(parseFloat(m)), typeof f == "string" ? e[l] = parseFloat(f) : Array.isArray(f) && d === w && (e[l] = f.map(parseFloat));
4510
4464
  } else
4511
- f != null && f.transform && (d != null && d.transform) && (u === 0 || h === 0) ? u === 0 ? c.set(d.transform(u)) : e[l] = f.transform(h) : (o || (r = Wu(t), o = !0), a.push(l), s[l] = s[l] !== void 0 ? s[l] : e[l], c.jump(h));
4465
+ h != null && h.transform && (d != null && d.transform) && (u === 0 || f === 0) ? u === 0 ? c.set(d.transform(u)) : e[l] = h.transform(f) : (o || (r = Du(t), o = !0), a.push(l), s[l] = s[l] !== void 0 ? s[l] : e[l], c.jump(f));
4512
4466
  }), a.length) {
4513
- const l = a.indexOf("height") >= 0 ? window.pageYOffset : null, c = $u(e, t, a);
4514
- return r.length && r.forEach(([u, f]) => {
4515
- t.getValue(u).set(f);
4516
- }), t.render(), pe && l !== null && window.scrollTo({ top: l }), { target: c, transitionEnd: s };
4467
+ const l = a.indexOf("height") >= 0 ? window.pageYOffset : null, c = Ru(e, t, a);
4468
+ return r.length && r.forEach(([u, h]) => {
4469
+ t.getValue(u).set(h);
4470
+ }), t.render(), me && l !== null && window.scrollTo({ top: l }), { target: c, transitionEnd: s };
4517
4471
  } else
4518
4472
  return { target: e, transitionEnd: s };
4519
4473
  };
4520
- function Hu(t, e, n, s) {
4521
- return Nu(e) ? Gu(t, e, n, s) : { target: e, transitionEnd: s };
4474
+ function Eu(t, e, n, s) {
4475
+ return Vu(e) ? Lu(t, e, n, s) : { target: e, transitionEnd: s };
4522
4476
  }
4523
- const qu = (t, e, n, s) => {
4524
- const i = Ou(t, e, s);
4525
- return e = i.target, s = i.transitionEnd, Hu(t, e, n, s);
4477
+ const ku = (t, e, n, s) => {
4478
+ const i = Au(t, e, s);
4479
+ return e = i.target, s = i.transitionEnd, Eu(t, e, n, s);
4526
4480
  }, Ye = { current: null }, vo = { current: !1 };
4527
- function Ku() {
4528
- if (vo.current = !0, !!pe)
4481
+ function Bu() {
4482
+ if (vo.current = !0, !!me)
4529
4483
  if (window.matchMedia) {
4530
4484
  const t = window.matchMedia("(prefers-reduced-motion)"), e = () => Ye.current = t.matches;
4531
4485
  t.addListener(e), e();
4532
4486
  } else
4533
4487
  Ye.current = !1;
4534
4488
  }
4535
- function Yu(t, e, n) {
4489
+ function Iu(t, e, n) {
4536
4490
  const { willChange: s } = e;
4537
4491
  for (const i in e) {
4538
4492
  const r = e[i], o = n[i];
4539
- if (U(r))
4493
+ if (_(r))
4540
4494
  t.addValue(i, r), ce(s) && s.add(i), process.env.NODE_ENV === "development" && An(r.version === "10.18.0", `Attempting to mix Framer Motion versions ${r.version} with 10.18.0 may not work as expected.`);
4541
- else if (U(o))
4495
+ else if (_(o))
4542
4496
  t.addValue(i, Vt(r, { owner: t })), ce(s) && s.remove(i);
4543
4497
  else if (o !== r)
4544
4498
  if (t.hasValue(i)) {
@@ -4553,7 +4507,7 @@ function Yu(t, e, n) {
4553
4507
  e[i] === void 0 && t.removeValue(i);
4554
4508
  return e;
4555
4509
  }
4556
- const js = /* @__PURE__ */ new WeakMap(), xo = Object.keys(Ut), Xu = xo.length, Ns = [
4510
+ const Ns = /* @__PURE__ */ new WeakMap(), xo = Object.keys(_t), Fu = xo.length, Us = [
4557
4511
  "AnimationStart",
4558
4512
  "AnimationComplete",
4559
4513
  "Update",
@@ -4561,8 +4515,8 @@ const js = /* @__PURE__ */ new WeakMap(), xo = Object.keys(Ut), Xu = xo.length,
4561
4515
  "LayoutMeasure",
4562
4516
  "LayoutAnimationStart",
4563
4517
  "LayoutAnimationComplete"
4564
- ], Qu = an.length;
4565
- class Zu {
4518
+ ], Ou = an.length;
4519
+ class ju {
4566
4520
  constructor({ parent: e, props: n, presenceContext: s, reducedMotionConfig: i, visualState: r }, o = {}) {
4567
4521
  this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
4568
4522
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
@@ -4570,9 +4524,9 @@ class Zu {
4570
4524
  const { latestValues: a, renderState: l } = r;
4571
4525
  this.latestValues = a, this.baseTarget = { ...a }, this.initialValues = n.initial ? { ...a } : {}, this.renderState = l, this.parent = e, this.props = n, this.presenceContext = s, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.options = o, this.isControllingVariants = ge(n), this.isVariantNode = ni(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
4572
4526
  const { willChange: c, ...u } = this.scrapeMotionValuesFromProps(n, {});
4573
- for (const f in u) {
4574
- const h = u[f];
4575
- a[f] !== void 0 && U(h) && (h.set(a[f], !1), ce(c) && c.add(f));
4527
+ for (const h in u) {
4528
+ const f = u[h];
4529
+ a[h] !== void 0 && _(f) && (f.set(a[h], !1), ce(c) && c.add(h));
4576
4530
  }
4577
4531
  }
4578
4532
  /**
@@ -4586,10 +4540,10 @@ class Zu {
4586
4540
  return {};
4587
4541
  }
4588
4542
  mount(e) {
4589
- this.current = e, js.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, s) => this.bindToMotionValue(s, n)), vo.current || Ku(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Ye.current, process.env.NODE_ENV !== "production" && An(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
4543
+ this.current = e, Ns.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, s) => this.bindToMotionValue(s, n)), vo.current || Bu(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Ye.current, process.env.NODE_ENV !== "production" && An(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
4590
4544
  }
4591
4545
  unmount() {
4592
- js.delete(this.current), this.projection && this.projection.unmount(), et(this.notifyUpdate), et(this.render), this.valueSubscriptions.forEach((e) => e()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
4546
+ Ns.delete(this.current), this.projection && this.projection.unmount(), et(this.notifyUpdate), et(this.render), this.valueSubscriptions.forEach((e) => e()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
4593
4547
  for (const e in this.events)
4594
4548
  this.events[e].clear();
4595
4549
  for (const e in this.features)
@@ -4613,17 +4567,17 @@ class Zu {
4613
4567
  const l = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
4614
4568
  n.ignoreStrict ? qt(!1, l) : q(!1, l);
4615
4569
  }
4616
- for (let l = 0; l < Xu; l++) {
4617
- const c = xo[l], { isEnabled: u, Feature: f, ProjectionNode: h, MeasureLayout: d } = Ut[c];
4618
- h && (o = h), u(n) && (!this.features[c] && f && (this.features[c] = new f(this)), d && (a = d));
4570
+ for (let l = 0; l < Fu; l++) {
4571
+ const c = xo[l], { isEnabled: u, Feature: h, ProjectionNode: f, MeasureLayout: d } = _t[c];
4572
+ f && (o = f), u(n) && (!this.features[c] && h && (this.features[c] = new h(this)), d && (a = d));
4619
4573
  }
4620
4574
  if ((this.type === "html" || this.type === "svg") && !this.projection && o) {
4621
4575
  this.projection = new o(this.latestValues, this.parent && this.parent.projection);
4622
- const { layoutId: l, layout: c, drag: u, dragConstraints: f, layoutScroll: h, layoutRoot: d } = n;
4576
+ const { layoutId: l, layout: c, drag: u, dragConstraints: h, layoutScroll: f, layoutRoot: d } = n;
4623
4577
  this.projection.setOptions({
4624
4578
  layoutId: l,
4625
4579
  layout: c,
4626
- alwaysMeasureLayout: !!u || f && wt(f),
4580
+ alwaysMeasureLayout: !!u || h && wt(h),
4627
4581
  visualElement: this,
4628
4582
  scheduleRender: () => this.scheduleRender(),
4629
4583
  /**
@@ -4635,7 +4589,7 @@ class Zu {
4635
4589
  */
4636
4590
  animationType: typeof c == "string" ? c : "both",
4637
4591
  initialPromotionConfig: r,
4638
- layoutScroll: h,
4592
+ layoutScroll: f,
4639
4593
  layoutRoot: d
4640
4594
  });
4641
4595
  }
@@ -4656,7 +4610,7 @@ class Zu {
4656
4610
  * removed with a re-render to work.
4657
4611
  */
4658
4612
  measureViewportBox() {
4659
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : k();
4613
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : B();
4660
4614
  }
4661
4615
  getStaticValue(e) {
4662
4616
  return this.latestValues[e];
@@ -4680,13 +4634,13 @@ class Zu {
4680
4634
  */
4681
4635
  update(e, n) {
4682
4636
  (e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
4683
- for (let s = 0; s < Ns.length; s++) {
4684
- const i = Ns[s];
4637
+ for (let s = 0; s < Us.length; s++) {
4638
+ const i = Us[s];
4685
4639
  this.propEventSubscriptions[i] && (this.propEventSubscriptions[i](), delete this.propEventSubscriptions[i]);
4686
4640
  const r = e["on" + i];
4687
4641
  r && (this.propEventSubscriptions[i] = this.on(i, r));
4688
4642
  }
4689
- this.prevMotionValues = Yu(this, this.scrapeMotionValuesFromProps(e, this.prevProps), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
4643
+ this.prevMotionValues = Iu(this, this.scrapeMotionValuesFromProps(e, this.prevProps), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
4690
4644
  }
4691
4645
  getProps() {
4692
4646
  return this.props;
@@ -4717,9 +4671,9 @@ class Zu {
4717
4671
  return this.props.initial !== void 0 && (s.initial = this.props.initial), s;
4718
4672
  }
4719
4673
  const n = {};
4720
- for (let s = 0; s < Qu; s++) {
4674
+ for (let s = 0; s < Ou; s++) {
4721
4675
  const i = an[s], r = this.props[i];
4722
- (Nt(r) || r === !1) && (n[i] = r);
4676
+ (Ut(r) || r === !1) && (n[i] = r);
4723
4677
  }
4724
4678
  return n;
4725
4679
  }
@@ -4779,11 +4733,11 @@ class Zu {
4779
4733
  */
4780
4734
  getBaseTarget(e) {
4781
4735
  var n;
4782
- const { initial: s } = this.props, i = typeof s == "string" || typeof s == "object" ? (n = pn(this.props, s)) === null || n === void 0 ? void 0 : n[e] : void 0;
4736
+ const { initial: s } = this.props, i = typeof s == "string" || typeof s == "object" ? (n = mn(this.props, s)) === null || n === void 0 ? void 0 : n[e] : void 0;
4783
4737
  if (s && i !== void 0)
4784
4738
  return i;
4785
4739
  const r = this.getBaseTargetFromProps(this.props, e);
4786
- return r !== void 0 && !U(r) ? r : this.initialValues[e] !== void 0 && i === void 0 ? void 0 : this.baseTarget[e];
4740
+ return r !== void 0 && !_(r) ? r : this.initialValues[e] !== void 0 && i === void 0 ? void 0 : this.baseTarget[e];
4787
4741
  }
4788
4742
  on(e, n) {
4789
4743
  return this.events[e] || (this.events[e] = new Pn()), this.events[e].add(n);
@@ -4792,7 +4746,7 @@ class Zu {
4792
4746
  this.events[e] && this.events[e].notify(...n);
4793
4747
  }
4794
4748
  }
4795
- class bo extends Zu {
4749
+ class bo extends ju {
4796
4750
  sortInstanceNodePosition(e, n) {
4797
4751
  return e.compareDocumentPosition(n) & 2 ? 1 : -1;
4798
4752
  }
@@ -4803,10 +4757,10 @@ class bo extends Zu {
4803
4757
  delete n[e], delete s[e];
4804
4758
  }
4805
4759
  makeTargetAnimatableFromInstance({ transition: e, transitionEnd: n, ...s }, { transformValues: i }, r) {
4806
- let o = pc(s, e || {}, this);
4760
+ let o = tc(s, e || {}, this);
4807
4761
  if (i && (n && (n = i(n)), s && (s = i(s)), o && (o = i(o))), r) {
4808
- hc(this, s, o);
4809
- const a = qu(this, s, o, n);
4762
+ Zl(this, s, o);
4763
+ const a = ku(this, s, o, n);
4810
4764
  n = a.transitionEnd, s = a.target;
4811
4765
  }
4812
4766
  return {
@@ -4816,10 +4770,10 @@ class bo extends Zu {
4816
4770
  };
4817
4771
  }
4818
4772
  }
4819
- function Ju(t) {
4773
+ function Nu(t) {
4820
4774
  return window.getComputedStyle(t);
4821
4775
  }
4822
- class tf extends bo {
4776
+ class Uu extends bo {
4823
4777
  constructor() {
4824
4778
  super(...arguments), this.type = "html";
4825
4779
  }
@@ -4828,7 +4782,7 @@ class tf extends bo {
4828
4782
  const s = vn(n);
4829
4783
  return s && s.default || 0;
4830
4784
  } else {
4831
- const s = Ju(e), i = (ai(n) ? s.getPropertyValue(n) : s[n]) || 0;
4785
+ const s = Nu(e), i = (ai(n) ? s.getPropertyValue(n) : s[n]) || 0;
4832
4786
  return typeof i == "string" ? i.trim() : i;
4833
4787
  }
4834
4788
  }
@@ -4844,7 +4798,7 @@ class tf extends bo {
4844
4798
  handleChildMotionValue() {
4845
4799
  this.childSubscription && (this.childSubscription(), delete this.childSubscription);
4846
4800
  const { children: e } = this.props;
4847
- U(e) && (this.childSubscription = e.on("change", (n) => {
4801
+ _(e) && (this.childSubscription = e.on("change", (n) => {
4848
4802
  this.current && (this.current.textContent = `${n}`);
4849
4803
  }));
4850
4804
  }
@@ -4852,7 +4806,7 @@ class tf extends bo {
4852
4806
  di(e, n, s, i);
4853
4807
  }
4854
4808
  }
4855
- class ef extends bo {
4809
+ class _u extends bo {
4856
4810
  constructor() {
4857
4811
  super(...arguments), this.type = "svg", this.isSVGTag = !1;
4858
4812
  }
@@ -4864,43 +4818,43 @@ class ef extends bo {
4864
4818
  const s = vn(n);
4865
4819
  return s && s.default || 0;
4866
4820
  }
4867
- return n = pi.has(n) ? n : on(n), e.getAttribute(n);
4821
+ return n = mi.has(n) ? n : on(n), e.getAttribute(n);
4868
4822
  }
4869
4823
  measureInstanceViewportBox() {
4870
- return k();
4824
+ return B();
4871
4825
  }
4872
4826
  scrapeMotionValuesFromProps(e, n) {
4873
4827
  return gi(e, n);
4874
4828
  }
4875
4829
  build(e, n, s, i) {
4876
- fn(e, n, s, this.isSVGTag, i.transformTemplate);
4830
+ hn(e, n, s, this.isSVGTag, i.transformTemplate);
4877
4831
  }
4878
4832
  renderInstance(e, n, s, i) {
4879
- mi(e, n, s, i);
4833
+ pi(e, n, s, i);
4880
4834
  }
4881
4835
  mount(e) {
4882
- this.isSVGTag = hn(e.tagName), super.mount(e);
4836
+ this.isSVGTag = fn(e.tagName), super.mount(e);
4883
4837
  }
4884
4838
  }
4885
- const nf = (t, e) => ln(t) ? new ef(e, { enableHardwareAcceleration: !1 }) : new tf(e, { enableHardwareAcceleration: !0 }), sf = {
4839
+ const zu = (t, e) => ln(t) ? new _u(e, { enableHardwareAcceleration: !1 }) : new Uu(e, { enableHardwareAcceleration: !0 }), Wu = {
4886
4840
  layout: {
4887
4841
  ProjectionNode: go,
4888
4842
  MeasureLayout: lo
4889
4843
  }
4890
- }, of = {
4891
- ...Dc,
4892
- ...Qa,
4893
- ...ku,
4894
- ...sf
4895
- }, Sn = /* @__PURE__ */ oa((t, e) => Oa(t, e, of, nf));
4896
- function Us(t) {
4844
+ }, Gu = {
4845
+ ...pc,
4846
+ ...Oa,
4847
+ ...bu,
4848
+ ...Wu
4849
+ }, Sn = /* @__PURE__ */ $r((t, e) => Aa(t, e, Gu, zu));
4850
+ function _s(t) {
4897
4851
  for (; t.startsWith("/"); )
4898
4852
  t = t.slice(1);
4899
4853
  return t;
4900
4854
  }
4901
4855
  function wo(t, e, n = []) {
4902
4856
  for (const s of t) {
4903
- if (console.log(s.path, e, s.path === e), Us(s.path || "") === Us(e))
4857
+ if (console.log(s.path, e, s.path === e), _s(s.path || "") === _s(e))
4904
4858
  return [...n, s];
4905
4859
  if (s.children) {
4906
4860
  const i = wo(s.children, e, [...n, s]);
@@ -4910,7 +4864,7 @@ function wo(t, e, n = []) {
4910
4864
  }
4911
4865
  return null;
4912
4866
  }
4913
- function rf(t) {
4867
+ function $u(t) {
4914
4868
  return /* @__PURE__ */ T(
4915
4869
  "svg",
4916
4870
  {
@@ -4932,27 +4886,27 @@ function rf(t) {
4932
4886
  }
4933
4887
  );
4934
4888
  }
4935
- function xf(t) {
4936
- return /* @__PURE__ */ T(No, { children: /* @__PURE__ */ T(af, { ...t }) });
4889
+ function ih(t) {
4890
+ return /* @__PURE__ */ T(Hu, { ...t });
4937
4891
  }
4938
- function af(t) {
4892
+ function Hu(t) {
4939
4893
  const { baseUrl: e, menuPath: n } = t;
4940
4894
  console.log("baseUrl:", e);
4941
4895
  const s = Uo();
4942
4896
  console.log("location:", s);
4943
- const [i, r] = ot([]), [o, a] = ot(!0), l = (wo(i, s.pathname) || []).filter((y) => y.parentKey !== 0), [c, u] = ot({}), f = (y) => {
4897
+ const [i, r] = ot([]), [o, a] = ot(!1), l = (wo(i, s.pathname) || []).filter((y) => y.parentKey !== 0), [c, u] = ot({}), h = (y) => {
4944
4898
  u({
4945
4899
  ...c,
4946
4900
  [y]: !c[y]
4947
4901
  });
4948
4902
  };
4949
4903
  console.log("matchPaths:", l);
4950
- const h = () => {
4904
+ const f = () => {
4951
4905
  a(!o);
4952
4906
  };
4953
4907
  Wt(() => {
4954
4908
  (async () => {
4955
- const g = e + (n || "/global-menu-config/api/v1/menu-items"), x = await Wo.get(g, {
4909
+ const g = e + (n || "/global-menu-config/api/v1/menu-items/user"), x = await zo.get(g, {
4956
4910
  withCredentials: !0
4957
4911
  }).then((S) => S.data), P = {};
4958
4912
  x.forEach((S) => {
@@ -4960,10 +4914,10 @@ function af(t) {
4960
4914
  }), u(P), r(x.map((S) => ({ ...S, parentKey: 0 })));
4961
4915
  })();
4962
4916
  }, [e, n]);
4963
- const [d, p] = ot(!1), m = () => {
4917
+ const [d, m] = ot(!1), p = () => {
4964
4918
  window.location.href = `${e}/authentication/logout?callbackUrl=${window.location.origin}`;
4965
4919
  }, v = o ? "collapsed" : "expanded", b = (y) => `${y} ${v}`;
4966
- return /* @__PURE__ */ I(
4920
+ return /* @__PURE__ */ O(
4967
4921
  Sn.nav,
4968
4922
  {
4969
4923
  initial: { width: "18rem" },
@@ -4972,12 +4926,12 @@ function af(t) {
4972
4926
  className: b("side-bar"),
4973
4927
  children: [
4974
4928
  /* @__PURE__ */ T("div", { className: "h-[8px]" }),
4975
- /* @__PURE__ */ T("div", { className: b("side-bar__toggle-btn"), children: /* @__PURE__ */ T("button", { className: "icon-btn", onClick: h, children: o ? /* @__PURE__ */ T(Zs, {}) : /* @__PURE__ */ T(Qs, {}) }) }),
4929
+ /* @__PURE__ */ T("div", { className: b("side-bar__toggle-btn"), children: /* @__PURE__ */ T("button", { className: "icon-btn", onClick: f, children: o ? /* @__PURE__ */ T(Zs, {}) : /* @__PURE__ */ T(Qs, {}) }) }),
4976
4930
  /* @__PURE__ */ T(
4977
4931
  "div",
4978
4932
  {
4979
4933
  id: "menu-items",
4980
- className: "mt-6 overflow-y-auto overflow-x-hidden flex-1",
4934
+ className: b("mt-6 overflow-y-auto overflow-x-hidden flex-1"),
4981
4935
  children: i.map((y) => /* @__PURE__ */ T(
4982
4936
  To,
4983
4937
  {
@@ -4985,30 +4939,30 @@ function af(t) {
4985
4939
  isActive: (x) => l.some((P) => P.id === x),
4986
4940
  isCollapsed: o,
4987
4941
  expanded: (x) => c[x],
4988
- toggleExpand: f
4942
+ toggleExpand: h
4989
4943
  },
4990
4944
  y.id
4991
4945
  ))
4992
4946
  }
4993
4947
  ),
4994
- /* @__PURE__ */ I("div", { className: "w-full mt-10 mb-10", children: [
4995
- /* @__PURE__ */ I(
4948
+ /* @__PURE__ */ O("div", { className: "w-full mt-10 mb-10", children: [
4949
+ /* @__PURE__ */ O(
4996
4950
  "button",
4997
4951
  {
4998
4952
  className: b("side-bar__logout-btn"),
4999
- onClick: () => p(!0),
4953
+ onClick: () => m(!0),
5000
4954
  children: [
5001
- /* @__PURE__ */ T(rf, {}),
4955
+ /* @__PURE__ */ T($u, {}),
5002
4956
  /* @__PURE__ */ T("span", { className: `ml-3 ${o ? "hidden" : ""}`, children: "Logout" })
5003
4957
  ]
5004
4958
  }
5005
4959
  ),
5006
4960
  /* @__PURE__ */ T(
5007
- Gs,
4961
+ $s,
5008
4962
  {
5009
4963
  isOpen: d,
5010
- onClose: () => p(!1),
5011
- onConfirm: m
4964
+ onClose: () => m(!1),
4965
+ onConfirm: p
5012
4966
  }
5013
4967
  )
5014
4968
  ] })
@@ -5018,12 +4972,12 @@ function af(t) {
5018
4972
  }
5019
4973
  function To({ item: t, level: e = 0, ...n }) {
5020
4974
  var v;
5021
- const { isActive: s, isCollapsed: i, expanded: r, toggleExpand: o } = n, a = `level-${e}`, l = i ? "collapsed" : "expanded", c = s(t.id) ? "active" : "", u = (b, y = a) => `${b} ${y} ${l} ${c}`, f = !!((v = t.children) != null && v.length), [h, d] = ot(!1), p = St();
5022
- function m(b) {
4975
+ const { isActive: s, isCollapsed: i, expanded: r, toggleExpand: o } = n, a = `level-${e}`, l = i ? "collapsed" : "expanded", c = s(t.id) ? "active" : "", u = (b, y = a) => `${b} ${y} ${l} ${c}`, h = !!((v = t.children) != null && v.length), [f, d] = ot(!1), m = St();
4976
+ function p(b) {
5023
4977
  var P;
5024
4978
  const { level: y, hovered: g, parentRef: x } = b;
5025
- return !f || i && y >= 2 && !g ? null : /* @__PURE__ */ T(
5026
- lf,
4979
+ return !h || i && y >= 2 && !g ? null : /* @__PURE__ */ T(
4980
+ qu,
5027
4981
  {
5028
4982
  parentRef: x,
5029
4983
  onlyChild: !i || i && y < 2,
@@ -5036,31 +4990,31 @@ function To({ item: t, level: e = 0, ...n }) {
5036
4990
  height: i || r(t.id) ? "auto" : 0
5037
4991
  },
5038
4992
  transition: { duration: 0.2 },
5039
- children: (P = t.children) == null ? void 0 : P.map((S) => /* @__PURE__ */ $s(To, { ...n, key: S.id, item: S, level: y }))
4993
+ children: (P = t.children) == null ? void 0 : P.map((S) => /* @__PURE__ */ Gs(To, { ...n, key: S.id, item: S, level: y }))
5040
4994
  },
5041
4995
  +i
5042
4996
  )
5043
4997
  }
5044
4998
  );
5045
4999
  }
5046
- return /* @__PURE__ */ I(
5000
+ return /* @__PURE__ */ O(
5047
5001
  "div",
5048
5002
  {
5049
- ref: p,
5003
+ ref: m,
5050
5004
  className: u("menu-item__wrapper"),
5051
5005
  onMouseEnter: () => i && d(!0),
5052
5006
  onMouseLeave: () => i && d(!1),
5053
5007
  children: [
5054
- /* @__PURE__ */ I(
5055
- zo,
5008
+ /* @__PURE__ */ O(
5009
+ _o,
5056
5010
  {
5057
- to: f ? "#" : t.path || "#",
5011
+ to: h ? "#" : t.path || "#",
5058
5012
  style: {
5059
5013
  paddingLeft: `${i ? "0.5rem" : `${e * 1}rem`}`
5060
5014
  },
5061
5015
  className: u("menu-item__link"),
5062
5016
  onClick: () => {
5063
- f && !i && o(t.id);
5017
+ h && !i && o(t.id);
5064
5018
  },
5065
5019
  children: [
5066
5020
  e !== 0 && /* @__PURE__ */ T("div", { className: u("menu-item__icon"), children: /* @__PURE__ */ T(
@@ -5071,12 +5025,8 @@ function To({ item: t, level: e = 0, ...n }) {
5071
5025
  style: { height: 24, maxHeight: 24 }
5072
5026
  }
5073
5027
  ) }),
5074
- /* @__PURE__ */ I("span", { className: u("menu-item__label"), children: [
5075
- e,
5076
- " ",
5077
- t.name
5078
- ] }),
5079
- f && /* @__PURE__ */ T("div", { className: u("menu-item__icon-arrow__wrapper"), children: /* @__PURE__ */ T(
5028
+ /* @__PURE__ */ T("span", { className: u("menu-item__label"), children: t.name }),
5029
+ h && /* @__PURE__ */ T("div", { className: u("menu-item__icon-arrow__wrapper"), children: /* @__PURE__ */ T(
5080
5030
  Xs,
5081
5031
  {
5082
5032
  className: u(
@@ -5088,13 +5038,13 @@ function To({ item: t, level: e = 0, ...n }) {
5088
5038
  ]
5089
5039
  }
5090
5040
  ),
5091
- m({ level: e + 1, hovered: h, parentRef: p })
5041
+ p({ level: e + 1, hovered: f, parentRef: m })
5092
5042
  ]
5093
5043
  },
5094
5044
  t.id
5095
5045
  );
5096
5046
  }
5097
- function lf(t) {
5047
+ function qu(t) {
5098
5048
  const { children: e, parentRef: n, onlyChild: s } = t, [i, r] = ot({ top: 0, left: 0 });
5099
5049
  return Ws(() => {
5100
5050
  if (n.current) {
@@ -5104,7 +5054,7 @@ function lf(t) {
5104
5054
  left: o.left + o.width
5105
5055
  });
5106
5056
  }
5107
- }, [n]), s ? e : jo(
5057
+ }, [n]), s ? e : No(
5108
5058
  /* @__PURE__ */ T(
5109
5059
  Sn.div,
5110
5060
  {
@@ -5120,6 +5070,6 @@ function lf(t) {
5120
5070
  );
5121
5071
  }
5122
5072
  export {
5123
- xf as GlobalMenu,
5124
- yf as TopBar
5073
+ ih as GlobalMenu,
5074
+ nh as TopBar
5125
5075
  };