react-motion-modal 1.1.4 → 1.1.6

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.
Files changed (2) hide show
  1. package/dist/index.js +427 -422
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,33 +1,33 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-font-weight:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-500:oklch(63.7% .237 25.331);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--font-weight-semibold:600;--radius-md:.375rem;--radius-xl:.75rem;--blur-sm:8px;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.top-0{top:calc(var(--spacing)*0)}.top-1\\/2{top:50%}.right-0{right:calc(var(--spacing)*0)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mt-4{margin-top:calc(var(--spacing)*4)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.flex{display:flex}.h-\\[2000px\\]{height:2000px}.max-h-screen{max-height:100vh}.max-w-screen{max-width:100vw}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-end{justify-content:flex-end}.gap-2{gap:calc(var(--spacing)*2)}.overflow-auto{overflow:auto}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.bg-black{background-color:var(--color-black)}.bg-black\\/40{background-color:#0006}@supports (color:color-mix(in lab,red,red)){.bg-black\\/40{background-color:color-mix(in oklab,var(--color-black)40%,transparent)}}.bg-blue-400{background-color:var(--color-blue-400)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-white{background-color:var(--color-white)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-2{padding-block:calc(var(--spacing)*2)}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.break-all{word-break:break-all}.text-blue-500{color:var(--color-blue-500)}.text-red-500{color:var(--color-red-500)}.text-white{color:var(--color-white)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}@media (hover:hover){.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-gray-600:hover{background-color:var(--color-gray-600)}.hover\\:opacity-80:hover{opacity:.8}}@media (min-width:64rem){.lg\\:left-1\\/2{left:50%}.lg\\:-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}}}.react-motion-modal__opening,.react-motion-modal__opening *{overflow-y:hidden!important}.react-motion-modal__active,.react-motion-modal__active *{overflow:auto!important}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-font-weight:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-500:oklch(63.7% .237 25.331);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--font-weight-semibold:600;--radius-md:.375rem;--radius-xl:.75rem;--blur-sm:8px;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.top-0{top:calc(var(--spacing)*0)}.top-1\\/2{top:50%}.right-0{right:calc(var(--spacing)*0)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mt-4{margin-top:calc(var(--spacing)*4)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.flex{display:flex}.h-\\[2000px\\]{height:2000px}.max-h-screen{max-height:100vh}.max-w-screen{max-width:100vw}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-end{justify-content:flex-end}.gap-2{gap:calc(var(--spacing)*2)}.overflow-auto{overflow:auto}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.bg-black{background-color:var(--color-black)}.bg-black\\/40{background-color:#0006}@supports (color:color-mix(in lab,red,red)){.bg-black\\/40{background-color:color-mix(in oklab,var(--color-black)40%,transparent)}}.bg-blue-400{background-color:var(--color-blue-400)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-white{background-color:var(--color-white)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-2{padding-block:calc(var(--spacing)*2)}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.break-all{word-break:break-all}.text-blue-500{color:var(--color-blue-500)}.text-red-500{color:var(--color-red-500)}.text-white{color:var(--color-white)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}@media (hover:hover){.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-gray-600:hover{background-color:var(--color-gray-600)}.hover\\:opacity-80:hover{opacity:.8}}@media (min-width:64rem){.lg\\:left-1\\/2{left:50%}.lg\\:-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}}}.react-motion-modal__opening{overflow-y:hidden!important}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
2
  import * as Mn from "react";
3
- import pe, { createContext as Ot, useRef as ut, useLayoutEffect as Ro, useEffect as Jt, useId as Vn, useContext as G, useInsertionEffect as Fi, useMemo as At, useCallback as ji, Children as Lo, isValidElement as Ko, useState as fs, Fragment as Ni, createElement as _o, forwardRef as Io, Component as Bo } from "react";
4
- import { jsx as nt, Fragment as Oo, jsxs as Fo } from "react/jsx-runtime";
5
- import { createPortal as jo } from "react-dom";
3
+ import pe, { createContext as Ot, useRef as ut, useLayoutEffect as Lo, useEffect as Jt, useId as Vn, useContext as G, useInsertionEffect as ji, useMemo as At, useCallback as Ni, Children as Ko, isValidElement as _o, useState as fs, Fragment as Ui, createElement as Io, forwardRef as Bo, Component as Oo } from "react";
4
+ import { jsx as nt, Fragment as Fo, jsxs as jo } from "react/jsx-runtime";
5
+ import { createPortal as No } from "react-dom";
6
6
  const z = [];
7
7
  for (let t = 0; t < 256; ++t)
8
8
  z.push((t + 256).toString(16).slice(1));
9
- function No(t, e = 0) {
9
+ function Uo(t, e = 0) {
10
10
  return (z[t[e + 0]] + z[t[e + 1]] + z[t[e + 2]] + z[t[e + 3]] + "-" + z[t[e + 4]] + z[t[e + 5]] + "-" + z[t[e + 6]] + z[t[e + 7]] + "-" + z[t[e + 8]] + z[t[e + 9]] + "-" + z[t[e + 10]] + z[t[e + 11]] + z[t[e + 12]] + z[t[e + 13]] + z[t[e + 14]] + z[t[e + 15]]).toLowerCase();
11
11
  }
12
12
  let Be;
13
- const Uo = new Uint8Array(16);
14
- function zo() {
13
+ const zo = new Uint8Array(16);
14
+ function $o() {
15
15
  if (!Be) {
16
16
  if (typeof crypto > "u" || !crypto.getRandomValues)
17
17
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
18
18
  Be = crypto.getRandomValues.bind(crypto);
19
19
  }
20
- return Be(Uo);
20
+ return Be(zo);
21
21
  }
22
- const $o = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ps = { randomUUID: $o };
23
- function Go(t, e, n) {
22
+ const Go = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ps = { randomUUID: Go };
23
+ function Wo(t, e, n) {
24
24
  if (ps.randomUUID && !t)
25
25
  return ps.randomUUID();
26
26
  t = t || {};
27
- const s = t.random ?? t.rng?.() ?? zo();
27
+ const s = t.random ?? t.rng?.() ?? $o();
28
28
  if (s.length < 16)
29
29
  throw new Error("Random bytes length must be >= 16");
30
- return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, No(s);
30
+ return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, Uo(s);
31
31
  }
32
32
  const ms = (t) => {
33
33
  let e;
@@ -39,8 +39,8 @@ const ms = (t) => {
39
39
  }
40
40
  }, i = () => e, a = { setState: s, getState: i, getInitialState: () => l, subscribe: (u) => (n.add(u), () => n.delete(u)) }, l = e = t(s, i, a);
41
41
  return a;
42
- }, Wo = (t) => t ? ms(t) : ms, Ho = (t) => t;
43
- function Xo(t, e = Ho) {
42
+ }, Ho = (t) => t ? ms(t) : ms, Xo = (t) => t;
43
+ function Yo(t, e = Xo) {
44
44
  const n = pe.useSyncExternalStore(
45
45
  t.subscribe,
46
46
  pe.useCallback(() => e(t.getState()), [t, e]),
@@ -49,16 +49,16 @@ function Xo(t, e = Ho) {
49
49
  return pe.useDebugValue(n), n;
50
50
  }
51
51
  const gs = (t) => {
52
- const e = Wo(t), n = (s) => Xo(e, s);
52
+ const e = Ho(t), n = (s) => Yo(e, s);
53
53
  return Object.assign(n, e), n;
54
- }, Yo = (t) => t ? gs(t) : gs, Oe = Yo((t, e) => ({
54
+ }, qo = (t) => t ? gs(t) : gs, Oe = qo((t, e) => ({
55
55
  modals: [],
56
56
  openModal(n, s) {
57
57
  const o = {
58
58
  ...s,
59
59
  closeModal: () => e().closeModal(n)
60
60
  }, r = {
61
- id: Go(),
61
+ id: Wo(),
62
62
  name: n,
63
63
  params: o
64
64
  }, a = [...e().modals, r];
@@ -87,26 +87,26 @@ const gs = (t) => {
87
87
  });
88
88
  }
89
89
  }));
90
- function Ui(t) {
90
+ function zi(t) {
91
91
  var e, n, s = "";
92
92
  if (typeof t == "string" || typeof t == "number") s += t;
93
93
  else if (typeof t == "object") if (Array.isArray(t)) {
94
94
  var i = t.length;
95
- for (e = 0; e < i; e++) t[e] && (n = Ui(t[e])) && (s && (s += " "), s += n);
95
+ for (e = 0; e < i; e++) t[e] && (n = zi(t[e])) && (s && (s += " "), s += n);
96
96
  } else for (n in t) t[n] && (s && (s += " "), s += n);
97
97
  return s;
98
98
  }
99
- function qo() {
100
- for (var t, e, n = 0, s = "", i = arguments.length; n < i; n++) (t = arguments[n]) && (e = Ui(t)) && (s && (s += " "), s += e);
99
+ function ys() {
100
+ for (var t, e, n = 0, s = "", i = arguments.length; n < i; n++) (t = arguments[n]) && (e = zi(t)) && (s && (s += " "), s += e);
101
101
  return s;
102
102
  }
103
- var ys = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
103
+ var bs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
104
104
  function Zo(t) {
105
105
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
106
106
  }
107
- var we = { exports: {} }, Jo = we.exports, bs;
107
+ var we = { exports: {} }, Jo = we.exports, vs;
108
108
  function Qo() {
109
- return bs || (bs = 1, function(t, e) {
109
+ return vs || (vs = 1, function(t, e) {
110
110
  (function(n, s) {
111
111
  t.exports = s();
112
112
  })(Jo, function() {
@@ -436,7 +436,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
436
436
  value: function(d, p, g, x) {
437
437
  var T = this;
438
438
  this.stop();
439
- var b = typeof globalThis < "u" ? globalThis : typeof ys < "u" ? ys : typeof window < "u" ? window : {};
439
+ var b = typeof globalThis < "u" ? globalThis : typeof bs < "u" ? bs : typeof window < "u" ? window : {};
440
440
  if (!d) {
441
441
  if (!b.addEventListener && !b.attachEvent) {
442
442
  if (this._currentContext === "global")
@@ -586,12 +586,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
586
586
  }(we)), we.exports;
587
587
  }
588
588
  var ta = Qo();
589
- const vs = /* @__PURE__ */ Zo(ta), En = Ot({});
589
+ const xs = /* @__PURE__ */ Zo(ta), En = Ot({});
590
590
  function Dn(t) {
591
591
  const e = ut(null);
592
592
  return e.current === null && (e.current = t()), e.current;
593
593
  }
594
- const Rn = typeof window < "u", zi = Rn ? Ro : Jt, De = /* @__PURE__ */ Ot(null);
594
+ const Rn = typeof window < "u", $i = Rn ? Lo : Jt, De = /* @__PURE__ */ Ot(null);
595
595
  function Ln(t, e) {
596
596
  t.indexOf(e) === -1 && t.push(e);
597
597
  }
@@ -612,11 +612,11 @@ process.env.NODE_ENV !== "production" && (Ft = (t, e, n) => {
612
612
  if (!t)
613
613
  throw new Error(nn(e, n));
614
614
  });
615
- const ft = {}, $i = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
616
- function Gi(t) {
615
+ const ft = {}, Gi = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
616
+ function Wi(t) {
617
617
  return typeof t == "object" && t !== null;
618
618
  }
619
- const Wi = (t) => /^0[^.\s]+$/u.test(t);
619
+ const Hi = (t) => /^0[^.\s]+$/u.test(t);
620
620
  // @__NO_SIDE_EFFECTS__
621
621
  function _n(t) {
622
622
  let e;
@@ -652,18 +652,18 @@ class In {
652
652
  }
653
653
  }
654
654
  const rt = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, ot = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3;
655
- function Hi(t, e) {
655
+ function Xi(t, e) {
656
656
  return e ? t * (1e3 / e) : 0;
657
657
  }
658
- const xs = /* @__PURE__ */ new Set();
658
+ const ws = /* @__PURE__ */ new Set();
659
659
  function Bn(t, e, n) {
660
- t || xs.has(e) || (console.warn(nn(e, n)), xs.add(e));
660
+ t || ws.has(e) || (console.warn(nn(e, n)), ws.add(e));
661
661
  }
662
- const Xi = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, na = 1e-7, sa = 12;
662
+ const Yi = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, na = 1e-7, sa = 12;
663
663
  function ia(t, e, n, s, i) {
664
664
  let o, r, a = 0;
665
665
  do
666
- r = e + (n - e) / 2, o = Xi(r, s, i) - t, o > 0 ? n = r : e = r;
666
+ r = e + (n - e) / 2, o = Yi(r, s, i) - t, o > 0 ? n = r : e = r;
667
667
  while (Math.abs(o) > na && ++a < sa);
668
668
  return r;
669
669
  }
@@ -671,27 +671,27 @@ function oe(t, e, n, s) {
671
671
  if (t === e && n === s)
672
672
  return st;
673
673
  const i = (o) => ia(o, 0, 1, t, n);
674
- return (o) => o === 0 || o === 1 ? o : Xi(i(o), e, s);
674
+ return (o) => o === 0 || o === 1 ? o : Yi(i(o), e, s);
675
675
  }
676
- const Yi = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, qi = (t) => (e) => 1 - t(1 - e), Zi = /* @__PURE__ */ oe(0.33, 1.53, 0.69, 0.99), On = /* @__PURE__ */ qi(Zi), Ji = /* @__PURE__ */ Yi(On), Qi = (t) => (t *= 2) < 1 ? 0.5 * On(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Fn = (t) => 1 - Math.sin(Math.acos(t)), tr = qi(Fn), er = Yi(Fn), ra = /* @__PURE__ */ oe(0.42, 0, 1, 1), oa = /* @__PURE__ */ oe(0, 0, 0.58, 1), nr = /* @__PURE__ */ oe(0.42, 0, 0.58, 1), aa = (t) => Array.isArray(t) && typeof t[0] != "number", sr = (t) => Array.isArray(t) && typeof t[0] == "number", ws = {
676
+ const qi = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Zi = (t) => (e) => 1 - t(1 - e), Ji = /* @__PURE__ */ oe(0.33, 1.53, 0.69, 0.99), On = /* @__PURE__ */ Zi(Ji), Qi = /* @__PURE__ */ qi(On), tr = (t) => (t *= 2) < 1 ? 0.5 * On(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Fn = (t) => 1 - Math.sin(Math.acos(t)), er = Zi(Fn), nr = qi(Fn), ra = /* @__PURE__ */ oe(0.42, 0, 1, 1), oa = /* @__PURE__ */ oe(0, 0, 0.58, 1), sr = /* @__PURE__ */ oe(0.42, 0, 0.58, 1), aa = (t) => Array.isArray(t) && typeof t[0] != "number", ir = (t) => Array.isArray(t) && typeof t[0] == "number", Ts = {
677
677
  linear: st,
678
678
  easeIn: ra,
679
- easeInOut: nr,
679
+ easeInOut: sr,
680
680
  easeOut: oa,
681
681
  circIn: Fn,
682
- circInOut: er,
683
- circOut: tr,
682
+ circInOut: nr,
683
+ circOut: er,
684
684
  backIn: On,
685
- backInOut: Ji,
686
- backOut: Zi,
687
- anticipate: Qi
688
- }, la = (t) => typeof t == "string", Ts = (t) => {
689
- if (sr(t)) {
685
+ backInOut: Qi,
686
+ backOut: Ji,
687
+ anticipate: tr
688
+ }, la = (t) => typeof t == "string", Cs = (t) => {
689
+ if (ir(t)) {
690
690
  ht(t.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
691
691
  const [e, n, s, i] = t;
692
692
  return oe(e, n, s, i);
693
693
  } else if (la(t))
694
- return ht(ws[t] !== void 0, `Invalid easing type '${t}'`, "invalid-easing-type"), ws[t];
694
+ return ht(Ts[t] !== void 0, `Invalid easing type '${t}'`, "invalid-easing-type"), Ts[t];
695
695
  return t;
696
696
  }, me = [
697
697
  "setup",
@@ -750,7 +750,7 @@ function ca(t, e) {
750
750
  return u;
751
751
  }
752
752
  const ua = 40;
753
- function ir(t, e) {
753
+ function rr(t, e) {
754
754
  let n = !1, s = !0;
755
755
  const i = {
756
756
  delta: 0,
@@ -770,7 +770,7 @@ function ir(t, e) {
770
770
  r[me[p]].cancel(d);
771
771
  }, state: i, steps: r };
772
772
  }
773
- const { schedule: K, cancel: yt, state: $, steps: Fe } = /* @__PURE__ */ ir(typeof requestAnimationFrame < "u" ? requestAnimationFrame : st, !0);
773
+ const { schedule: K, cancel: yt, state: $, steps: Fe } = /* @__PURE__ */ rr(typeof requestAnimationFrame < "u" ? requestAnimationFrame : st, !0);
774
774
  let Te;
775
775
  function da() {
776
776
  Te = void 0;
@@ -780,7 +780,7 @@ const Y = {
780
780
  set: (t) => {
781
781
  Te = t, queueMicrotask(da);
782
782
  }
783
- }, rr = (t) => (e) => typeof e == "string" && e.startsWith(t), jn = /* @__PURE__ */ rr("--"), ha = /* @__PURE__ */ rr("var(--"), Nn = (t) => ha(t) ? fa.test(t.split("/*")[0].trim()) : !1, fa = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, jt = {
783
+ }, or = (t) => (e) => typeof e == "string" && e.startsWith(t), jn = /* @__PURE__ */ or("--"), ha = /* @__PURE__ */ or("var(--"), Nn = (t) => ha(t) ? fa.test(t.split("/*")[0].trim()) : !1, fa = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, jt = {
784
784
  test: (t) => typeof t == "number",
785
785
  parse: parseFloat,
786
786
  transform: (t) => t
@@ -794,7 +794,7 @@ const Y = {
794
794
  function pa(t) {
795
795
  return t == null;
796
796
  }
797
- const ma = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, zn = (t, e) => (n) => !!(typeof n == "string" && ma.test(n) && n.startsWith(t) || e && !pa(n) && Object.prototype.hasOwnProperty.call(n, e)), or = (t, e, n) => (s) => {
797
+ const ma = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, zn = (t, e) => (n) => !!(typeof n == "string" && ma.test(n) && n.startsWith(t) || e && !pa(n) && Object.prototype.hasOwnProperty.call(n, e)), ar = (t, e, n) => (s) => {
798
798
  if (typeof s != "string")
799
799
  return s;
800
800
  const [i, o, r, a] = s.match(Un);
@@ -809,7 +809,7 @@ const ma = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
809
809
  transform: (t) => Math.round(ga(t))
810
810
  }, Ct = {
811
811
  test: /* @__PURE__ */ zn("rgb", "red"),
812
- parse: /* @__PURE__ */ or("red", "green", "blue"),
812
+ parse: /* @__PURE__ */ ar("red", "green", "blue"),
813
813
  transform: ({ red: t, green: e, blue: n, alpha: s = 1 }) => "rgba(" + je.transform(t) + ", " + je.transform(e) + ", " + je.transform(n) + ", " + Xt(te.transform(s)) + ")"
814
814
  };
815
815
  function ya(t) {
@@ -829,13 +829,13 @@ const sn = {
829
829
  test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
830
830
  parse: parseFloat,
831
831
  transform: (e) => `${e}${t}`
832
- }), gt = /* @__PURE__ */ ae("deg"), at = /* @__PURE__ */ ae("%"), M = /* @__PURE__ */ ae("px"), ba = /* @__PURE__ */ ae("vh"), va = /* @__PURE__ */ ae("vw"), Cs = {
832
+ }), gt = /* @__PURE__ */ ae("deg"), at = /* @__PURE__ */ ae("%"), M = /* @__PURE__ */ ae("px"), ba = /* @__PURE__ */ ae("vh"), va = /* @__PURE__ */ ae("vw"), Ps = {
833
833
  ...at,
834
834
  parse: (t) => at.parse(t) / 100,
835
835
  transform: (t) => at.transform(t * 100)
836
836
  }, Vt = {
837
837
  test: /* @__PURE__ */ zn("hsl", "hue"),
838
- parse: /* @__PURE__ */ or("hue", "saturation", "lightness"),
838
+ parse: /* @__PURE__ */ ar("hue", "saturation", "lightness"),
839
839
  transform: ({ hue: t, saturation: e, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(t) + ", " + at.transform(Xt(e)) + ", " + at.transform(Xt(n)) + ", " + Xt(te.transform(s)) + ")"
840
840
  }, F = {
841
841
  test: (t) => Ct.test(t) || sn.test(t) || Vt.test(t),
@@ -849,7 +849,7 @@ const sn = {
849
849
  function wa(t) {
850
850
  return isNaN(t) && typeof t == "string" && (t.match(Un)?.length || 0) + (t.match(xa)?.length || 0) > 0;
851
851
  }
852
- const ar = "number", lr = "color", Ta = "var", Ca = "var(", Ps = "${}", Pa = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
852
+ const lr = "number", cr = "color", Ta = "var", Ca = "var(", Ss = "${}", Pa = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
853
853
  function ee(t) {
854
854
  const e = t.toString(), n = [], s = {
855
855
  color: [],
@@ -857,33 +857,33 @@ function ee(t) {
857
857
  var: []
858
858
  }, i = [];
859
859
  let o = 0;
860
- const a = e.replace(Pa, (l) => (F.test(l) ? (s.color.push(o), i.push(lr), n.push(F.parse(l))) : l.startsWith(Ca) ? (s.var.push(o), i.push(Ta), n.push(l)) : (s.number.push(o), i.push(ar), n.push(parseFloat(l))), ++o, Ps)).split(Ps);
860
+ const a = e.replace(Pa, (l) => (F.test(l) ? (s.color.push(o), i.push(cr), n.push(F.parse(l))) : l.startsWith(Ca) ? (s.var.push(o), i.push(Ta), n.push(l)) : (s.number.push(o), i.push(lr), n.push(parseFloat(l))), ++o, Ss)).split(Ss);
861
861
  return { values: n, split: a, indexes: s, types: i };
862
862
  }
863
- function cr(t) {
863
+ function ur(t) {
864
864
  return ee(t).values;
865
865
  }
866
- function ur(t) {
866
+ function dr(t) {
867
867
  const { split: e, types: n } = ee(t), s = e.length;
868
868
  return (i) => {
869
869
  let o = "";
870
870
  for (let r = 0; r < s; r++)
871
871
  if (o += e[r], i[r] !== void 0) {
872
872
  const a = n[r];
873
- a === ar ? o += Xt(i[r]) : a === lr ? o += F.transform(i[r]) : o += i[r];
873
+ a === lr ? o += Xt(i[r]) : a === cr ? o += F.transform(i[r]) : o += i[r];
874
874
  }
875
875
  return o;
876
876
  };
877
877
  }
878
878
  const Sa = (t) => typeof t == "number" ? 0 : F.test(t) ? F.getAnimatableNone(t) : t;
879
879
  function ka(t) {
880
- const e = cr(t);
881
- return ur(t)(e.map(Sa));
880
+ const e = ur(t);
881
+ return dr(t)(e.map(Sa));
882
882
  }
883
883
  const bt = {
884
884
  test: wa,
885
- parse: cr,
886
- createTransformer: ur,
885
+ parse: ur,
886
+ createTransformer: dr,
887
887
  getAnimatableNone: ka
888
888
  };
889
889
  function Ne(t, e, n) {
@@ -912,15 +912,15 @@ const I = (t, e, n) => t + (e - t) * n, Ue = (t, e, n) => {
912
912
  const s = t * t, i = n * (e * e - s) + s;
913
913
  return i < 0 ? 0 : Math.sqrt(i);
914
914
  }, Ma = [sn, Ct, Vt], Va = (t) => Ma.find((e) => e.test(t));
915
- function Ss(t) {
915
+ function ks(t) {
916
916
  const e = Va(t);
917
917
  if (Ft(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !e)
918
918
  return !1;
919
919
  let n = e.parse(t);
920
920
  return e === Vt && (n = Aa(n)), n;
921
921
  }
922
- const ks = (t, e) => {
923
- const n = Ss(t), s = Ss(e);
922
+ const As = (t, e) => {
923
+ const n = ks(t), s = ks(e);
924
924
  if (!n || !s)
925
925
  return ke(t, e);
926
926
  const i = { ...n };
@@ -933,9 +933,9 @@ function Da(t, e) {
933
933
  return (n) => I(t, e, n);
934
934
  }
935
935
  function $n(t) {
936
- return typeof t == "number" ? Da : typeof t == "string" ? Nn(t) ? ke : F.test(t) ? ks : Ka : Array.isArray(t) ? dr : typeof t == "object" ? F.test(t) ? ks : Ra : ke;
936
+ return typeof t == "number" ? Da : typeof t == "string" ? Nn(t) ? ke : F.test(t) ? As : Ka : Array.isArray(t) ? hr : typeof t == "object" ? F.test(t) ? As : Ra : ke;
937
937
  }
938
- function dr(t, e) {
938
+ function hr(t, e) {
939
939
  const n = [...t], s = n.length, i = t.map((o, r) => $n(o)(o, e[r]));
940
940
  return (o) => {
941
941
  for (let r = 0; r < s; r++)
@@ -963,9 +963,9 @@ function La(t, e) {
963
963
  }
964
964
  const Ka = (t, e) => {
965
965
  const n = bt.createTransformer(e), s = ee(t), i = ee(e);
966
- return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? rn.has(t) && !i.values.length || rn.has(e) && !s.values.length ? Ea(t, e) : re(dr(La(s, i), i.values), n) : (Ft(!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.`, "complex-values-different"), ke(t, e));
966
+ return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? rn.has(t) && !i.values.length || rn.has(e) && !s.values.length ? Ea(t, e) : re(hr(La(s, i), i.values), n) : (Ft(!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.`, "complex-values-different"), ke(t, e));
967
967
  };
968
- function hr(t, e, n) {
968
+ function fr(t, e, n) {
969
969
  return typeof t == "number" && typeof e == "number" && typeof n == "number" ? I(t, e, n) : $n(t)(t, e);
970
970
  }
971
971
  const _a = (t) => {
@@ -979,7 +979,7 @@ const _a = (t) => {
979
979
  */
980
980
  now: () => $.isProcessing ? $.timestamp : Y.now()
981
981
  };
982
- }, fr = (t, e, n = 10) => {
982
+ }, pr = (t, e, n = 10) => {
983
983
  let s = "";
984
984
  const i = Math.max(Math.round(e / n), 2);
985
985
  for (let o = 0; o < i; o++)
@@ -1003,9 +1003,9 @@ function Ia(t, e = 100, n) {
1003
1003
  };
1004
1004
  }
1005
1005
  const Ba = 5;
1006
- function pr(t, e, n) {
1006
+ function mr(t, e, n) {
1007
1007
  const s = Math.max(e - Ba, 0);
1008
- return Hi(n - t(s), e - s);
1008
+ return Xi(n - t(s), e - s);
1009
1009
  }
1010
1010
  const _ = {
1011
1011
  // Default spring physics
@@ -1080,7 +1080,7 @@ function on(t, e) {
1080
1080
  return t * Math.sqrt(1 - e * e);
1081
1081
  }
1082
1082
  const Na = ["duration", "bounce"], Ua = ["stiffness", "damping", "mass"];
1083
- function As(t, e) {
1083
+ function Ms(t, e) {
1084
1084
  return e.some((n) => t[n] !== void 0);
1085
1085
  }
1086
1086
  function za(t) {
@@ -1092,7 +1092,7 @@ function za(t) {
1092
1092
  isResolvedFromDuration: !1,
1093
1093
  ...t
1094
1094
  };
1095
- if (!As(t, Ua) && As(t, Na))
1095
+ if (!Ms(t, Ua) && Ms(t, Na))
1096
1096
  if (t.visualDuration) {
1097
1097
  const n = t.visualDuration, s = 2 * Math.PI / (n * 1.2), i = s * s, o = 2 * dt(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(i);
1098
1098
  e = {
@@ -1147,14 +1147,14 @@ function Me(t = _.visualDuration, e = _.bounce) {
1147
1147
  a.done = g >= f;
1148
1148
  else {
1149
1149
  let T = g === 0 ? w : 0;
1150
- C < 1 && (T = g === 0 ? /* @__PURE__ */ rt(w) : pr(d, g, x));
1150
+ C < 1 && (T = g === 0 ? /* @__PURE__ */ rt(w) : mr(d, g, x));
1151
1151
  const b = Math.abs(T) <= s, V = Math.abs(r - x) <= i;
1152
1152
  a.done = b && V;
1153
1153
  }
1154
1154
  return a.value = a.done ? r : x, a;
1155
1155
  },
1156
1156
  toString: () => {
1157
- const g = Math.min(Gn(p), Ae), x = fr((T) => p.next(g * T).value, g, 30);
1157
+ const g = Math.min(Gn(p), Ae), x = pr((T) => p.next(g * T).value, g, 30);
1158
1158
  return g + "ms " + x;
1159
1159
  },
1160
1160
  toTransition: () => {
@@ -1182,7 +1182,7 @@ function an({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 3
1182
1182
  const T = (b) => {
1183
1183
  v(m.value) && (g = b, x = Me({
1184
1184
  keyframes: [m.value, w(m.value)],
1185
- velocity: pr(d, b, m.value),
1185
+ velocity: mr(d, b, m.value),
1186
1186
  // TODO: This should be passing * 1000
1187
1187
  damping: i,
1188
1188
  stiffness: o,
@@ -1199,7 +1199,7 @@ function an({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 3
1199
1199
  };
1200
1200
  }
1201
1201
  function $a(t, e, n) {
1202
- const s = [], i = n || ft.mix || hr, o = t.length - 1;
1202
+ const s = [], i = n || ft.mix || fr, o = t.length - 1;
1203
1203
  for (let r = 0; r < o; r++) {
1204
1204
  let a = i(t[r], t[r + 1]);
1205
1205
  if (e) {
@@ -1245,10 +1245,10 @@ function Xa(t, e) {
1245
1245
  return t.map((n) => n * e);
1246
1246
  }
1247
1247
  function Ya(t, e) {
1248
- return t.map(() => e || nr).splice(0, t.length - 1);
1248
+ return t.map(() => e || sr).splice(0, t.length - 1);
1249
1249
  }
1250
1250
  function Et({ duration: t = 300, keyframes: e, times: n, ease: s = "easeInOut" }) {
1251
- const i = aa(s) ? s.map(Ts) : Ts(s), o = {
1251
+ const i = aa(s) ? s.map(Cs) : Cs(s), o = {
1252
1252
  done: !1,
1253
1253
  value: e[0]
1254
1254
  }, r = Xa(
@@ -1276,7 +1276,7 @@ const Za = {
1276
1276
  keyframes: Et,
1277
1277
  spring: Me
1278
1278
  };
1279
- function mr(t) {
1279
+ function gr(t) {
1280
1280
  typeof t.type == "string" && (t.type = Za[t.type]);
1281
1281
  }
1282
1282
  class Hn {
@@ -1313,11 +1313,11 @@ class Xn extends Hn {
1313
1313
  }
1314
1314
  initAnimation() {
1315
1315
  const { options: e } = this;
1316
- mr(e);
1316
+ gr(e);
1317
1317
  const { type: n = Et, repeat: s = 0, repeatDelay: i = 0, repeatType: o, velocity: r = 0 } = e;
1318
1318
  let { keyframes: a } = e;
1319
1319
  const l = n || Et;
1320
- process.env.NODE_ENV !== "production" && l !== Et && ht(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), l !== Et && typeof a[0] != "number" && (this.mixKeyframes = re(Ja, hr(a[0], a[1])), a = [0, 100]);
1320
+ process.env.NODE_ENV !== "production" && l !== Et && ht(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), l !== Et && typeof a[0] != "number" && (this.mixKeyframes = re(Ja, fr(a[0], a[1])), a = [0, 100]);
1321
1321
  const u = l({ ...e, keyframes: a });
1322
1322
  o === "mirror" && (this.mirroredGenerator = l({
1323
1323
  ...e,
@@ -1430,20 +1430,20 @@ const Pt = (t) => t * 180 / Math.PI, ln = (t) => {
1430
1430
  skewX: (t) => Pt(Math.atan(t[1])),
1431
1431
  skewY: (t) => Pt(Math.atan(t[2])),
1432
1432
  skew: (t) => (Math.abs(t[1]) + Math.abs(t[2])) / 2
1433
- }, cn = (t) => (t = t % 360, t < 0 && (t += 360), t), Ms = ln, Vs = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), Es = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), el = {
1433
+ }, cn = (t) => (t = t % 360, t < 0 && (t += 360), t), Vs = ln, Es = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), Ds = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), el = {
1434
1434
  x: 12,
1435
1435
  y: 13,
1436
1436
  z: 14,
1437
1437
  translateX: 12,
1438
1438
  translateY: 13,
1439
1439
  translateZ: 14,
1440
- scaleX: Vs,
1441
- scaleY: Es,
1442
- scale: (t) => (Vs(t) + Es(t)) / 2,
1440
+ scaleX: Es,
1441
+ scaleY: Ds,
1442
+ scale: (t) => (Es(t) + Ds(t)) / 2,
1443
1443
  rotateX: (t) => cn(Pt(Math.atan2(t[6], t[5]))),
1444
1444
  rotateY: (t) => cn(Pt(Math.atan2(-t[2], t[0]))),
1445
- rotateZ: Ms,
1446
- rotate: Ms,
1445
+ rotateZ: Vs,
1446
+ rotate: Vs,
1447
1447
  skewX: (t) => Pt(Math.atan(t[4])),
1448
1448
  skewY: (t) => Pt(Math.atan(t[1])),
1449
1449
  skew: (t) => (Math.abs(t[1]) + Math.abs(t[4])) / 2
@@ -1492,7 +1492,7 @@ const Nt = [
1492
1492
  "skew",
1493
1493
  "skewX",
1494
1494
  "skewY"
1495
- ], Ut = new Set(Nt), Ds = (t) => t === jt || t === M, il = /* @__PURE__ */ new Set(["x", "y", "z"]), rl = Nt.filter((t) => !il.has(t));
1495
+ ], Ut = new Set(Nt), Rs = (t) => t === jt || t === M, il = /* @__PURE__ */ new Set(["x", "y", "z"]), rl = Nt.filter((t) => !il.has(t));
1496
1496
  function ol(t) {
1497
1497
  const e = [];
1498
1498
  return rl.forEach((n) => {
@@ -1516,7 +1516,7 @@ St.translateX = St.x;
1516
1516
  St.translateY = St.y;
1517
1517
  const kt = /* @__PURE__ */ new Set();
1518
1518
  let hn = !1, fn = !1, pn = !1;
1519
- function gr() {
1519
+ function yr() {
1520
1520
  if (fn) {
1521
1521
  const t = Array.from(kt).filter((s) => s.needsMeasurement), e = new Set(t.map((s) => s.element)), n = /* @__PURE__ */ new Map();
1522
1522
  e.forEach((s) => {
@@ -1534,20 +1534,20 @@ function gr() {
1534
1534
  }
1535
1535
  fn = !1, hn = !1, kt.forEach((t) => t.complete(pn)), kt.clear();
1536
1536
  }
1537
- function yr() {
1537
+ function br() {
1538
1538
  kt.forEach((t) => {
1539
1539
  t.readKeyframes(), t.needsMeasurement && (fn = !0);
1540
1540
  });
1541
1541
  }
1542
1542
  function al() {
1543
- pn = !0, yr(), gr(), pn = !1;
1543
+ pn = !0, br(), yr(), pn = !1;
1544
1544
  }
1545
1545
  class Yn {
1546
1546
  constructor(e, n, s, i, o, r = !1) {
1547
1547
  this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = s, this.motionValue = i, this.element = o, this.isAsync = r;
1548
1548
  }
1549
1549
  scheduleResolve() {
1550
- this.state = "scheduled", this.isAsync ? (kt.add(this), hn || (hn = !0, K.read(yr), K.resolveKeyframes(gr))) : (this.readKeyframes(), this.complete());
1550
+ this.state = "scheduled", this.isAsync ? (kt.add(this), hn || (hn = !0, K.read(br), K.resolveKeyframes(yr))) : (this.readKeyframes(), this.complete());
1551
1551
  }
1552
1552
  readKeyframes() {
1553
1553
  const { unresolvedKeyframes: e, name: n, element: s, motionValue: i } = this;
@@ -1590,14 +1590,14 @@ function hl(t, e) {
1590
1590
  const n = /* @__PURE__ */ _n(t);
1591
1591
  return () => dl[e] ?? n();
1592
1592
  }
1593
- const br = /* @__PURE__ */ hl(() => {
1593
+ const vr = /* @__PURE__ */ hl(() => {
1594
1594
  try {
1595
1595
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
1596
1596
  } catch {
1597
1597
  return !1;
1598
1598
  }
1599
1599
  return !0;
1600
- }, "linearEasing"), Ht = ([t, e, n, s]) => `cubic-bezier(${t}, ${e}, ${n}, ${s})`, Rs = {
1600
+ }, "linearEasing"), Ht = ([t, e, n, s]) => `cubic-bezier(${t}, ${e}, ${n}, ${s})`, Ls = {
1601
1601
  linear: "linear",
1602
1602
  ease: "ease",
1603
1603
  easeIn: "ease-in",
@@ -1608,16 +1608,16 @@ const br = /* @__PURE__ */ hl(() => {
1608
1608
  backIn: /* @__PURE__ */ Ht([0.31, 0.01, 0.66, -0.59]),
1609
1609
  backOut: /* @__PURE__ */ Ht([0.33, 1.53, 0.69, 0.99])
1610
1610
  };
1611
- function vr(t, e) {
1611
+ function xr(t, e) {
1612
1612
  if (t)
1613
- return typeof t == "function" ? br() ? fr(t, e) : "ease-out" : sr(t) ? Ht(t) : Array.isArray(t) ? t.map((n) => vr(n, e) || Rs.easeOut) : Rs[t];
1613
+ return typeof t == "function" ? vr() ? pr(t, e) : "ease-out" : ir(t) ? Ht(t) : Array.isArray(t) ? t.map((n) => xr(n, e) || Ls.easeOut) : Ls[t];
1614
1614
  }
1615
1615
  function fl(t, e, n, { delay: s = 0, duration: i = 300, repeat: o = 0, repeatType: r = "loop", ease: a = "easeOut", times: l } = {}, u = void 0) {
1616
1616
  const c = {
1617
1617
  [e]: n
1618
1618
  };
1619
1619
  l && (c.offset = l);
1620
- const f = vr(a, i);
1620
+ const f = xr(a, i);
1621
1621
  Array.isArray(f) && (c.easing = f);
1622
1622
  const m = {
1623
1623
  delay: s,
@@ -1629,11 +1629,11 @@ function fl(t, e, n, { delay: s = 0, duration: i = 300, repeat: o = 0, repeatTyp
1629
1629
  };
1630
1630
  return u && (m.pseudoElement = u), t.animate(c, m);
1631
1631
  }
1632
- function xr(t) {
1632
+ function wr(t) {
1633
1633
  return typeof t == "function" && "applyToOptions" in t;
1634
1634
  }
1635
1635
  function pl({ type: t, ...e }) {
1636
- return xr(t) && br() ? t.applyToOptions(e) : (e.duration ?? (e.duration = 300), e.ease ?? (e.ease = "easeOut"), e);
1636
+ return wr(t) && vr() ? t.applyToOptions(e) : (e.duration ?? (e.duration = 300), e.ease ?? (e.ease = "easeOut"), e);
1637
1637
  }
1638
1638
  class ml extends Hn {
1639
1639
  constructor(e) {
@@ -1723,21 +1723,21 @@ class ml extends Hn {
1723
1723
  return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && ul() ? (this.animation.timeline = e, st) : n(this);
1724
1724
  }
1725
1725
  }
1726
- const wr = {
1727
- anticipate: Qi,
1728
- backInOut: Ji,
1729
- circInOut: er
1726
+ const Tr = {
1727
+ anticipate: tr,
1728
+ backInOut: Qi,
1729
+ circInOut: nr
1730
1730
  };
1731
1731
  function gl(t) {
1732
- return t in wr;
1732
+ return t in Tr;
1733
1733
  }
1734
1734
  function yl(t) {
1735
- typeof t.ease == "string" && gl(t.ease) && (t.ease = wr[t.ease]);
1735
+ typeof t.ease == "string" && gl(t.ease) && (t.ease = Tr[t.ease]);
1736
1736
  }
1737
- const Ls = 10;
1737
+ const Ks = 10;
1738
1738
  class bl extends ml {
1739
1739
  constructor(e) {
1740
- yl(e), mr(e), super(e), e.startTime && (this.startTime = e.startTime), this.options = e;
1740
+ yl(e), gr(e), super(e), e.startTime && (this.startTime = e.startTime), this.options = e;
1741
1741
  }
1742
1742
  /**
1743
1743
  * WAAPI doesn't natively have any interruption capabilities.
@@ -1759,10 +1759,10 @@ class bl extends ml {
1759
1759
  ...r,
1760
1760
  autoplay: !1
1761
1761
  }), l = /* @__PURE__ */ rt(this.finishedTime ?? this.time);
1762
- n.setWithVelocity(a.sample(l - Ls).value, a.sample(l).value, Ls), a.stop();
1762
+ n.setWithVelocity(a.sample(l - Ks).value, a.sample(l).value, Ks), a.stop();
1763
1763
  }
1764
1764
  }
1765
- const Ks = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
1765
+ const _s = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
1766
1766
  (bt.test(t) || t === "0") && // And it contains numbers and/or colors
1767
1767
  !t.startsWith("url("));
1768
1768
  function vl(t) {
@@ -1779,8 +1779,8 @@ function xl(t, e, n, s) {
1779
1779
  return !1;
1780
1780
  if (e === "display" || e === "visibility")
1781
1781
  return !0;
1782
- const o = t[t.length - 1], r = Ks(i, e), a = Ks(o, e);
1783
- return Ft(r === a, `You are trying to animate ${e} from "${i}" to "${o}". "${r ? o : i}" is not an animatable value.`, "value-not-animatable"), !r || !a ? !1 : vl(t) || (n === "spring" || xr(n)) && s;
1782
+ const o = t[t.length - 1], r = _s(i, e), a = _s(o, e);
1783
+ return Ft(r === a, `You are trying to animate ${e} from "${i}" to "${o}". "${r ? o : i}" is not an animatable value.`, "value-not-animatable"), !r || !a ? !1 : vl(t) || (n === "spring" || wr(n)) && s;
1784
1784
  }
1785
1785
  function mn(t) {
1786
1786
  t.duration = 0, t.type;
@@ -1898,7 +1898,7 @@ function Al(t) {
1898
1898
  return [`--${n ?? s}`, i];
1899
1899
  }
1900
1900
  const Ml = 4;
1901
- function Tr(t, e, n = 1) {
1901
+ function Cr(t, e, n = 1) {
1902
1902
  ht(n <= Ml, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1903
1903
  const [s, i] = Al(t);
1904
1904
  if (!s)
@@ -1906,14 +1906,14 @@ function Tr(t, e, n = 1) {
1906
1906
  const o = window.getComputedStyle(e).getPropertyValue(s);
1907
1907
  if (o) {
1908
1908
  const r = o.trim();
1909
- return $i(r) ? parseFloat(r) : r;
1909
+ return Gi(r) ? parseFloat(r) : r;
1910
1910
  }
1911
- return Nn(i) ? Tr(i, e, n + 1) : i;
1911
+ return Nn(i) ? Cr(i, e, n + 1) : i;
1912
1912
  }
1913
1913
  function qn(t, e) {
1914
1914
  return t?.[e] ?? t?.default ?? t;
1915
1915
  }
1916
- const Cr = /* @__PURE__ */ new Set([
1916
+ const Pr = /* @__PURE__ */ new Set([
1917
1917
  "width",
1918
1918
  "height",
1919
1919
  "top",
@@ -1924,9 +1924,9 @@ const Cr = /* @__PURE__ */ new Set([
1924
1924
  ]), Vl = {
1925
1925
  test: (t) => t === "auto",
1926
1926
  parse: (t) => t
1927
- }, Pr = (t) => (e) => e.test(t), Sr = [jt, M, at, gt, va, ba, Vl], _s = (t) => Sr.find(Pr(t));
1927
+ }, Sr = (t) => (e) => e.test(t), kr = [jt, M, at, gt, va, ba, Vl], Is = (t) => kr.find(Sr(t));
1928
1928
  function El(t) {
1929
- return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Wi(t) : !0;
1929
+ return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Hi(t) : !0;
1930
1930
  }
1931
1931
  const Dl = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1932
1932
  function Rl(t) {
@@ -1946,7 +1946,7 @@ const Ll = /\b([a-z-]*)\(.*?\)/gu, gn = {
1946
1946
  const e = t.match(Ll);
1947
1947
  return e ? e.map(Rl).join(" ") : t;
1948
1948
  }
1949
- }, Is = {
1949
+ }, Bs = {
1950
1950
  ...jt,
1951
1951
  transform: Math.round
1952
1952
  }, Kl = {
@@ -1971,8 +1971,8 @@ const Ll = /\b([a-z-]*)\(.*?\)/gu, gn = {
1971
1971
  perspective: M,
1972
1972
  transformPerspective: M,
1973
1973
  opacity: te,
1974
- originX: Cs,
1975
- originY: Cs,
1974
+ originX: Ps,
1975
+ originY: Ps,
1976
1976
  originZ: M
1977
1977
  }, Zn = {
1978
1978
  // Border props
@@ -2011,11 +2011,11 @@ const Ll = /\b([a-z-]*)\(.*?\)/gu, gn = {
2011
2011
  backgroundPositionX: M,
2012
2012
  backgroundPositionY: M,
2013
2013
  ...Kl,
2014
- zIndex: Is,
2014
+ zIndex: Bs,
2015
2015
  // SVG
2016
2016
  fillOpacity: te,
2017
2017
  strokeOpacity: te,
2018
- numOctaves: Is
2018
+ numOctaves: Bs
2019
2019
  }, _l = {
2020
2020
  ...Zn,
2021
2021
  // Color props
@@ -2032,9 +2032,9 @@ const Ll = /\b([a-z-]*)\(.*?\)/gu, gn = {
2032
2032
  borderLeftColor: F,
2033
2033
  filter: gn,
2034
2034
  WebkitFilter: gn
2035
- }, kr = (t) => _l[t];
2036
- function Ar(t, e) {
2037
- let n = kr(t);
2035
+ }, Ar = (t) => _l[t];
2036
+ function Mr(t, e) {
2037
+ let n = Ar(t);
2038
2038
  return n !== gn && (n = bt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
2039
2039
  }
2040
2040
  const Il = /* @__PURE__ */ new Set(["auto", "none", "0"]);
@@ -2046,7 +2046,7 @@ function Bl(t, e, n) {
2046
2046
  }
2047
2047
  if (i && n)
2048
2048
  for (const o of e)
2049
- t[o] = Ar(n, i);
2049
+ t[o] = Mr(n, i);
2050
2050
  }
2051
2051
  class Ol extends Yn {
2052
2052
  constructor(e, n, s, i, o) {
@@ -2060,15 +2060,15 @@ class Ol extends Yn {
2060
2060
  for (let l = 0; l < e.length; l++) {
2061
2061
  let u = e[l];
2062
2062
  if (typeof u == "string" && (u = u.trim(), Nn(u))) {
2063
- const c = Tr(u, n.current);
2063
+ const c = Cr(u, n.current);
2064
2064
  c !== void 0 && (e[l] = c), l === e.length - 1 && (this.finalKeyframe = u);
2065
2065
  }
2066
2066
  }
2067
- if (this.resolveNoneKeyframes(), !Cr.has(s) || e.length !== 2)
2067
+ if (this.resolveNoneKeyframes(), !Pr.has(s) || e.length !== 2)
2068
2068
  return;
2069
- const [i, o] = e, r = _s(i), a = _s(o);
2069
+ const [i, o] = e, r = Is(i), a = Is(o);
2070
2070
  if (r !== a)
2071
- if (Ds(r) && Ds(a))
2071
+ if (Rs(r) && Rs(a))
2072
2072
  for (let l = 0; l < e.length; l++) {
2073
2073
  const u = e[l];
2074
2074
  typeof u == "string" && (e[l] = parseFloat(u));
@@ -2111,11 +2111,11 @@ function Fl(t, e, n) {
2111
2111
  }
2112
2112
  return Array.from(t);
2113
2113
  }
2114
- const Mr = (t, e) => e && typeof t == "number" ? e.transform(t) : t;
2115
- function Vr(t) {
2116
- return Gi(t) && "offsetHeight" in t;
2114
+ const Vr = (t, e) => e && typeof t == "number" ? e.transform(t) : t;
2115
+ function Er(t) {
2116
+ return Wi(t) && "offsetHeight" in t;
2117
2117
  }
2118
- const Bs = 30, jl = (t) => !isNaN(parseFloat(t));
2118
+ const Os = 30, jl = (t) => !isNaN(parseFloat(t));
2119
2119
  class Nl {
2120
2120
  /**
2121
2121
  * @param init - The initiating value
@@ -2261,10 +2261,10 @@ class Nl {
2261
2261
  */
2262
2262
  getVelocity() {
2263
2263
  const e = Y.now();
2264
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Bs)
2264
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Os)
2265
2265
  return 0;
2266
- const n = Math.min(this.updatedAt - this.prevUpdatedAt, Bs);
2267
- return Hi(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
2266
+ const n = Math.min(this.updatedAt - this.prevUpdatedAt, Os);
2267
+ return Xi(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
2268
2268
  }
2269
2269
  /**
2270
2270
  * Registers a new animation to control this `MotionValue`. Only one
@@ -2318,11 +2318,11 @@ class Nl {
2318
2318
  function It(t, e) {
2319
2319
  return new Nl(t, e);
2320
2320
  }
2321
- const { schedule: Jn } = /* @__PURE__ */ ir(queueMicrotask, !1), it = {
2321
+ const { schedule: Jn } = /* @__PURE__ */ rr(queueMicrotask, !1), it = {
2322
2322
  x: !1,
2323
2323
  y: !1
2324
2324
  };
2325
- function Er() {
2325
+ function Dr() {
2326
2326
  return it.x || it.y;
2327
2327
  }
2328
2328
  function Ul(t) {
@@ -2332,7 +2332,7 @@ function Ul(t) {
2332
2332
  it.x = it.y = !1;
2333
2333
  });
2334
2334
  }
2335
- function Dr(t, e) {
2335
+ function Rr(t, e) {
2336
2336
  const n = Fl(t), s = new AbortController(), i = {
2337
2337
  passive: !0,
2338
2338
  ...e,
@@ -2340,18 +2340,18 @@ function Dr(t, e) {
2340
2340
  };
2341
2341
  return [n, i, () => s.abort()];
2342
2342
  }
2343
- function Os(t) {
2344
- return !(t.pointerType === "touch" || Er());
2343
+ function Fs(t) {
2344
+ return !(t.pointerType === "touch" || Dr());
2345
2345
  }
2346
2346
  function zl(t, e, n = {}) {
2347
- const [s, i, o] = Dr(t, n), r = (a) => {
2348
- if (!Os(a))
2347
+ const [s, i, o] = Rr(t, n), r = (a) => {
2348
+ if (!Fs(a))
2349
2349
  return;
2350
2350
  const { target: l } = a, u = e(l, a);
2351
2351
  if (typeof u != "function" || !l)
2352
2352
  return;
2353
2353
  const c = (f) => {
2354
- Os(f) && (u(f), l.removeEventListener("pointerleave", c));
2354
+ Fs(f) && (u(f), l.removeEventListener("pointerleave", c));
2355
2355
  };
2356
2356
  l.addEventListener("pointerleave", c, i);
2357
2357
  };
@@ -2359,7 +2359,7 @@ function zl(t, e, n = {}) {
2359
2359
  a.addEventListener("pointerenter", r, i);
2360
2360
  }), o;
2361
2361
  }
2362
- const Rr = (t, e) => e ? t === e ? !0 : Rr(t, e.parentElement) : !1, Qn = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, $l = /* @__PURE__ */ new Set([
2362
+ const Lr = (t, e) => e ? t === e ? !0 : Lr(t, e.parentElement) : !1, Qn = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, $l = /* @__PURE__ */ new Set([
2363
2363
  "BUTTON",
2364
2364
  "INPUT",
2365
2365
  "SELECT",
@@ -2370,7 +2370,7 @@ function Gl(t) {
2370
2370
  return $l.has(t.tagName) || t.tabIndex !== -1;
2371
2371
  }
2372
2372
  const Ce = /* @__PURE__ */ new WeakSet();
2373
- function Fs(t) {
2373
+ function js(t) {
2374
2374
  return (e) => {
2375
2375
  e.key === "Enter" && t(e);
2376
2376
  };
@@ -2382,46 +2382,46 @@ const Wl = (t, e) => {
2382
2382
  const n = t.currentTarget;
2383
2383
  if (!n)
2384
2384
  return;
2385
- const s = Fs(() => {
2385
+ const s = js(() => {
2386
2386
  if (Ce.has(n))
2387
2387
  return;
2388
2388
  $e(n, "down");
2389
- const i = Fs(() => {
2389
+ const i = js(() => {
2390
2390
  $e(n, "up");
2391
2391
  }), o = () => $e(n, "cancel");
2392
2392
  n.addEventListener("keyup", i, e), n.addEventListener("blur", o, e);
2393
2393
  });
2394
2394
  n.addEventListener("keydown", s, e), n.addEventListener("blur", () => n.removeEventListener("keydown", s), e);
2395
2395
  };
2396
- function js(t) {
2397
- return Qn(t) && !Er();
2396
+ function Ns(t) {
2397
+ return Qn(t) && !Dr();
2398
2398
  }
2399
2399
  function Hl(t, e, n = {}) {
2400
- const [s, i, o] = Dr(t, n), r = (a) => {
2400
+ const [s, i, o] = Rr(t, n), r = (a) => {
2401
2401
  const l = a.currentTarget;
2402
- if (!js(a))
2402
+ if (!Ns(a))
2403
2403
  return;
2404
2404
  Ce.add(l);
2405
2405
  const u = e(l, a), c = (v, w) => {
2406
- window.removeEventListener("pointerup", f), window.removeEventListener("pointercancel", m), Ce.has(l) && Ce.delete(l), js(v) && typeof u == "function" && u(v, { success: w });
2406
+ window.removeEventListener("pointerup", f), window.removeEventListener("pointercancel", m), Ce.has(l) && Ce.delete(l), Ns(v) && typeof u == "function" && u(v, { success: w });
2407
2407
  }, f = (v) => {
2408
- c(v, l === window || l === document || n.useGlobalTarget || Rr(l, v.target));
2408
+ c(v, l === window || l === document || n.useGlobalTarget || Lr(l, v.target));
2409
2409
  }, m = (v) => {
2410
2410
  c(v, !1);
2411
2411
  };
2412
2412
  window.addEventListener("pointerup", f, i), window.addEventListener("pointercancel", m, i);
2413
2413
  };
2414
2414
  return s.forEach((a) => {
2415
- (n.useGlobalTarget ? window : a).addEventListener("pointerdown", r, i), Vr(a) && (a.addEventListener("focus", (u) => Wl(u, i)), !Gl(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
2415
+ (n.useGlobalTarget ? window : a).addEventListener("pointerdown", r, i), Er(a) && (a.addEventListener("focus", (u) => Wl(u, i)), !Gl(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
2416
2416
  }), o;
2417
2417
  }
2418
- function Lr(t) {
2419
- return Gi(t) && "ownerSVGElement" in t;
2418
+ function Kr(t) {
2419
+ return Wi(t) && "ownerSVGElement" in t;
2420
2420
  }
2421
2421
  function Xl(t) {
2422
- return Lr(t) && t.tagName === "svg";
2422
+ return Kr(t) && t.tagName === "svg";
2423
2423
  }
2424
- const W = (t) => !!(t && t.getVelocity), Yl = [...Sr, F, bt], ql = (t) => Yl.find(Pr(t)), ts = Ot({
2424
+ const W = (t) => !!(t && t.getVelocity), Yl = [...kr, F, bt], ql = (t) => Yl.find(Sr(t)), ts = Ot({
2425
2425
  transformPagePoint: (t) => t,
2426
2426
  isStatic: !1,
2427
2427
  reducedMotion: "never"
@@ -2430,7 +2430,7 @@ class Zl extends Mn.Component {
2430
2430
  getSnapshotBeforeUpdate(e) {
2431
2431
  const n = this.props.childRef.current;
2432
2432
  if (n && e.isPresent && !this.props.isPresent) {
2433
- const s = n.offsetParent, i = Vr(s) && s.offsetWidth || 0, o = this.props.sizeRef.current;
2433
+ const s = n.offsetParent, i = Er(s) && s.offsetWidth || 0, o = this.props.sizeRef.current;
2434
2434
  o.height = n.offsetHeight || 0, o.width = n.offsetWidth || 0, o.top = n.offsetTop, o.left = n.offsetLeft, o.right = i - o.width - o.left;
2435
2435
  }
2436
2436
  return null;
@@ -2452,7 +2452,7 @@ function Jl({ children: t, isPresent: e, anchorX: n, root: s }) {
2452
2452
  left: 0,
2453
2453
  right: 0
2454
2454
  }), { nonce: a } = G(ts);
2455
- return Fi(() => {
2455
+ return ji(() => {
2456
2456
  const { width: l, height: u, top: c, left: f, right: m } = r.current;
2457
2457
  if (e || !o.current || !l || !u)
2458
2458
  return;
@@ -2499,7 +2499,7 @@ const Ql = ({ children: t, initial: e, isPresent: n, onExitComplete: s, custom:
2499
2499
  function tc() {
2500
2500
  return /* @__PURE__ */ new Map();
2501
2501
  }
2502
- function Kr(t = !0) {
2502
+ function _r(t = !0) {
2503
2503
  const e = G(De);
2504
2504
  if (e === null)
2505
2505
  return [!0, null];
@@ -2508,19 +2508,19 @@ function Kr(t = !0) {
2508
2508
  if (t)
2509
2509
  return i(o);
2510
2510
  }, [t]);
2511
- const r = ji(() => t && s && s(o), [o, s, t]);
2511
+ const r = Ni(() => t && s && s(o), [o, s, t]);
2512
2512
  return !n && s ? [!1, r] : [!0];
2513
2513
  }
2514
2514
  const ye = (t) => t.key || "";
2515
- function Ns(t) {
2515
+ function Us(t) {
2516
2516
  const e = [];
2517
- return Lo.forEach(t, (n) => {
2518
- Ko(n) && e.push(n);
2517
+ return Ko.forEach(t, (n) => {
2518
+ _o(n) && e.push(n);
2519
2519
  }), e;
2520
2520
  }
2521
2521
  const ec = ({ children: t, custom: e, initial: n = !0, onExitComplete: s, presenceAffectsLayout: i = !0, mode: o = "sync", propagate: r = !1, anchorX: a = "left", root: l }) => {
2522
- const [u, c] = Kr(r), f = At(() => Ns(t), [t]), m = r && !u ? [] : f.map(ye), v = ut(!0), w = ut(f), C = Dn(() => /* @__PURE__ */ new Map()), [P, h] = fs(f), [y, d] = fs(f);
2523
- zi(() => {
2522
+ const [u, c] = _r(r), f = At(() => Us(t), [t]), m = r && !u ? [] : f.map(ye), v = ut(!0), w = ut(f), C = Dn(() => /* @__PURE__ */ new Map()), [P, h] = fs(f), [y, d] = fs(f);
2523
+ $i(() => {
2524
2524
  v.current = !1, w.current = f;
2525
2525
  for (let x = 0; x < y.length; x++) {
2526
2526
  const T = ye(y[x]);
@@ -2534,11 +2534,11 @@ const ec = ({ children: t, custom: e, initial: n = !0, onExitComplete: s, presen
2534
2534
  const b = y[T], V = ye(b);
2535
2535
  m.includes(V) || (x.splice(T, 0, b), p.push(b));
2536
2536
  }
2537
- return o === "wait" && p.length && (x = p), d(Ns(x)), h(f), null;
2537
+ return o === "wait" && p.length && (x = p), d(Us(x)), h(f), null;
2538
2538
  }
2539
2539
  process.env.NODE_ENV !== "production" && o === "wait" && y.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
2540
2540
  const { forceRender: g } = G(En);
2541
- return nt(Oo, { children: y.map((x) => {
2541
+ return nt(Fo, { children: y.map((x) => {
2542
2542
  const T = ye(x), b = r && !u ? !1 : f === y || m.includes(T), V = () => {
2543
2543
  if (C.has(T))
2544
2544
  C.set(T, !0);
@@ -2551,7 +2551,7 @@ const ec = ({ children: t, custom: e, initial: n = !0, onExitComplete: s, presen
2551
2551
  };
2552
2552
  return nt(Ql, { isPresent: b, initial: !v.current || n ? void 0 : !1, custom: e, presenceAffectsLayout: i, mode: o, root: l, onExitComplete: b ? void 0 : V, anchorX: a, children: x }, T);
2553
2553
  }) });
2554
- }, _r = Ot({ strict: !1 }), Us = {
2554
+ }, Ir = Ot({ strict: !1 }), zs = {
2555
2555
  animation: [
2556
2556
  "animate",
2557
2557
  "variants",
@@ -2571,9 +2571,9 @@ const ec = ({ children: t, custom: e, initial: n = !0, onExitComplete: s, presen
2571
2571
  inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
2572
2572
  layout: ["layout", "layoutId"]
2573
2573
  }, Bt = {};
2574
- for (const t in Us)
2574
+ for (const t in zs)
2575
2575
  Bt[t] = {
2576
- isEnabled: (e) => Us[t].some((n) => !!e[n])
2576
+ isEnabled: (e) => zs[t].some((n) => !!e[n])
2577
2577
  };
2578
2578
  function nc(t) {
2579
2579
  for (const e in t)
@@ -2617,9 +2617,9 @@ const sc = /* @__PURE__ */ new Set([
2617
2617
  function Ve(t) {
2618
2618
  return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || sc.has(t);
2619
2619
  }
2620
- let Ir = (t) => !Ve(t);
2620
+ let Br = (t) => !Ve(t);
2621
2621
  function ic(t) {
2622
- typeof t == "function" && (Ir = (e) => e.startsWith("on") ? !Ve(e) : t(e));
2622
+ typeof t == "function" && (Br = (e) => e.startsWith("on") ? !Ve(e) : t(e));
2623
2623
  }
2624
2624
  try {
2625
2625
  ic(require("@emotion/is-prop-valid").default);
@@ -2628,7 +2628,7 @@ try {
2628
2628
  function rc(t, e, n) {
2629
2629
  const s = {};
2630
2630
  for (const i in t)
2631
- i === "values" && typeof t.values == "object" || (Ir(i) || n === !0 && Ve(i) || !e && !Ve(i) || // If trying to use native HTML drag events, forward drag listeners
2631
+ i === "values" && typeof t.values == "object" || (Br(i) || n === !0 && Ve(i) || !e && !Ve(i) || // If trying to use native HTML drag events, forward drag listeners
2632
2632
  t.draggable && i.startsWith("onDrag")) && (s[i] = t[i]);
2633
2633
  return s;
2634
2634
  }
@@ -2651,7 +2651,7 @@ const es = [
2651
2651
  function Ke(t) {
2652
2652
  return Le(t.animate) || ns.some((e) => ne(t[e]));
2653
2653
  }
2654
- function Br(t) {
2654
+ function Or(t) {
2655
2655
  return !!(Ke(t) || t.variants);
2656
2656
  }
2657
2657
  function oc(t, e) {
@@ -2666,9 +2666,9 @@ function oc(t, e) {
2666
2666
  }
2667
2667
  function ac(t) {
2668
2668
  const { initial: e, animate: n } = oc(t, G(Re));
2669
- return At(() => ({ initial: e, animate: n }), [zs(e), zs(n)]);
2669
+ return At(() => ({ initial: e, animate: n }), [$s(e), $s(n)]);
2670
2670
  }
2671
- function zs(t) {
2671
+ function $s(t) {
2672
2672
  return Array.isArray(t) ? t.join(" ") : t;
2673
2673
  }
2674
2674
  const se = {};
@@ -2676,7 +2676,7 @@ function lc(t) {
2676
2676
  for (const e in t)
2677
2677
  se[e] = t[e], jn(e) && (se[e].isCSSVariable = !0);
2678
2678
  }
2679
- function Or(t, { layout: e, layoutId: n }) {
2679
+ function Fr(t, { layout: e, layoutId: n }) {
2680
2680
  return Ut.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!se[t] || t === "opacity");
2681
2681
  }
2682
2682
  const cc = {
@@ -2693,7 +2693,7 @@ function dc(t, e, n) {
2693
2693
  continue;
2694
2694
  let l = !0;
2695
2695
  if (typeof a == "number" ? l = a === (r.startsWith("scale") ? 1 : 0) : l = parseFloat(a) === 0, !l || n) {
2696
- const u = Mr(a, Zn[r]);
2696
+ const u = Vr(a, Zn[r]);
2697
2697
  if (!l) {
2698
2698
  i = !1;
2699
2699
  const c = cc[r] || r;
@@ -2716,7 +2716,7 @@ function ss(t, e, n) {
2716
2716
  i[l] = u;
2717
2717
  continue;
2718
2718
  } else {
2719
- const c = Mr(u, Zn[l]);
2719
+ const c = Vr(u, Zn[l]);
2720
2720
  l.startsWith("origin") ? (a = !0, o[l] = c) : s[l] = c;
2721
2721
  }
2722
2722
  }
@@ -2731,9 +2731,9 @@ const is = () => ({
2731
2731
  transformOrigin: {},
2732
2732
  vars: {}
2733
2733
  });
2734
- function Fr(t, e, n) {
2734
+ function jr(t, e, n) {
2735
2735
  for (const s in e)
2736
- !W(e[s]) && !Or(s, n) && (t[s] = e[s]);
2736
+ !W(e[s]) && !Fr(s, n) && (t[s] = e[s]);
2737
2737
  }
2738
2738
  function hc({ transformTemplate: t }, e) {
2739
2739
  return At(() => {
@@ -2743,7 +2743,7 @@ function hc({ transformTemplate: t }, e) {
2743
2743
  }
2744
2744
  function fc(t, e) {
2745
2745
  const n = t.style || {}, s = {};
2746
- return Fr(s, n, t), Object.assign(s, hc(t, e)), s;
2746
+ return jr(s, n, t), Object.assign(s, hc(t, e)), s;
2747
2747
  }
2748
2748
  function pc(t, e) {
2749
2749
  const n = {}, s = fc(t, e);
@@ -2763,7 +2763,7 @@ function yc(t, e, n = 1, s = 0, i = !0) {
2763
2763
  const r = M.transform(e), a = M.transform(n);
2764
2764
  t[o.array] = `${r} ${a}`;
2765
2765
  }
2766
- function jr(t, {
2766
+ function Nr(t, {
2767
2767
  attrX: e,
2768
2768
  attrY: n,
2769
2769
  attrScale: s,
@@ -2781,21 +2781,21 @@ function jr(t, {
2781
2781
  const { attrs: f, style: m } = t;
2782
2782
  f.transform && (m.transform = f.transform, delete f.transform), (m.transform || f.transformOrigin) && (m.transformOrigin = f.transformOrigin ?? "50% 50%", delete f.transformOrigin), m.transform && (m.transformBox = c?.transformBox ?? "fill-box", delete f.transformBox), e !== void 0 && (f.x = e), n !== void 0 && (f.y = n), s !== void 0 && (f.scale = s), i !== void 0 && yc(f, i, o, r, !1);
2783
2783
  }
2784
- const Nr = () => ({
2784
+ const Ur = () => ({
2785
2785
  ...is(),
2786
2786
  attrs: {}
2787
- }), Ur = (t) => typeof t == "string" && t.toLowerCase() === "svg";
2787
+ }), zr = (t) => typeof t == "string" && t.toLowerCase() === "svg";
2788
2788
  function bc(t, e, n, s) {
2789
2789
  const i = At(() => {
2790
- const o = Nr();
2791
- return jr(o, e, Ur(s), t.transformTemplate, t.style), {
2790
+ const o = Ur();
2791
+ return Nr(o, e, zr(s), t.transformTemplate, t.style), {
2792
2792
  ...o.attrs,
2793
2793
  style: { ...o.style }
2794
2794
  };
2795
2795
  }, [e]);
2796
2796
  if (t.style) {
2797
2797
  const o = {};
2798
- Fr(o, t.style, t), i.style = { ...o, ...i.style };
2798
+ jr(o, t.style, t), i.style = { ...o, ...i.style };
2799
2799
  }
2800
2800
  return i;
2801
2801
  }
@@ -2847,13 +2847,13 @@ function rs(t) {
2847
2847
  );
2848
2848
  }
2849
2849
  function xc(t, e, n, { latestValues: s }, i, o = !1) {
2850
- const a = (rs(t) ? bc : pc)(e, s, i, t), l = rc(e, typeof t == "string", o), u = t !== Ni ? { ...l, ...a, ref: n } : {}, { children: c } = e, f = At(() => W(c) ? c.get() : c, [c]);
2851
- return _o(t, {
2850
+ const a = (rs(t) ? bc : pc)(e, s, i, t), l = rc(e, typeof t == "string", o), u = t !== Ui ? { ...l, ...a, ref: n } : {}, { children: c } = e, f = At(() => W(c) ? c.get() : c, [c]);
2851
+ return Io(t, {
2852
2852
  ...u,
2853
2853
  children: f
2854
2854
  });
2855
2855
  }
2856
- function $s(t) {
2856
+ function Gs(t) {
2857
2857
  const e = [{}, {}];
2858
2858
  return t?.values.forEach((n, s) => {
2859
2859
  e[0][s] = n.get(), e[1][s] = n.getVelocity();
@@ -2861,11 +2861,11 @@ function $s(t) {
2861
2861
  }
2862
2862
  function os(t, e, n, s) {
2863
2863
  if (typeof e == "function") {
2864
- const [i, o] = $s(s);
2864
+ const [i, o] = Gs(s);
2865
2865
  e = e(n !== void 0 ? n : t.custom, i, o);
2866
2866
  }
2867
2867
  if (typeof e == "string" && (e = t.variants && t.variants[e]), typeof e == "function") {
2868
- const [i, o] = $s(s);
2868
+ const [i, o] = Gs(s);
2869
2869
  e = e(n !== void 0 ? n : t.custom, i, o);
2870
2870
  }
2871
2871
  return e;
@@ -2884,7 +2884,7 @@ function Tc(t, e, n, s) {
2884
2884
  for (const m in o)
2885
2885
  i[m] = Pe(o[m]);
2886
2886
  let { initial: r, animate: a } = t;
2887
- const l = Ke(t), u = Br(t);
2887
+ const l = Ke(t), u = Or(t);
2888
2888
  e && u && !l && t.inherit !== !1 && (r === void 0 && (r = e.initial), a === void 0 && (a = e.animate));
2889
2889
  let c = n ? n.initial === !1 : !1;
2890
2890
  c = c || r === !1;
@@ -2910,21 +2910,21 @@ function Tc(t, e, n, s) {
2910
2910
  }
2911
2911
  return i;
2912
2912
  }
2913
- const zr = (t) => (e, n) => {
2913
+ const $r = (t) => (e, n) => {
2914
2914
  const s = G(Re), i = G(De), o = () => wc(t, e, s, i);
2915
2915
  return n ? o() : Dn(o);
2916
2916
  };
2917
2917
  function as(t, e, n) {
2918
2918
  const { style: s } = t, i = {};
2919
2919
  for (const o in s)
2920
- (W(s[o]) || e.style && W(e.style[o]) || Or(o, t) || n?.getValue(o)?.liveStyle !== void 0) && (i[o] = s[o]);
2920
+ (W(s[o]) || e.style && W(e.style[o]) || Fr(o, t) || n?.getValue(o)?.liveStyle !== void 0) && (i[o] = s[o]);
2921
2921
  return i;
2922
2922
  }
2923
- const Cc = /* @__PURE__ */ zr({
2923
+ const Cc = /* @__PURE__ */ $r({
2924
2924
  scrapeMotionValuesFromProps: as,
2925
2925
  createRenderState: is
2926
2926
  });
2927
- function $r(t, e, n) {
2927
+ function Gr(t, e, n) {
2928
2928
  const s = as(t, e, n);
2929
2929
  for (const i in t)
2930
2930
  if (W(t[i]) || W(e[i])) {
@@ -2933,15 +2933,15 @@ function $r(t, e, n) {
2933
2933
  }
2934
2934
  return s;
2935
2935
  }
2936
- const Pc = /* @__PURE__ */ zr({
2937
- scrapeMotionValuesFromProps: $r,
2938
- createRenderState: Nr
2936
+ const Pc = /* @__PURE__ */ $r({
2937
+ scrapeMotionValuesFromProps: Gr,
2938
+ createRenderState: Ur
2939
2939
  }), Sc = Symbol.for("motionComponentSymbol");
2940
2940
  function Dt(t) {
2941
2941
  return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
2942
2942
  }
2943
2943
  function kc(t, e, n) {
2944
- return ji(
2944
+ return Ni(
2945
2945
  (s) => {
2946
2946
  s && t.onMount && t.onMount(s), e && (s ? e.mount(s) : e.unmount()), n && (typeof n == "function" ? n(s) : Dt(n) && (n.current = s));
2947
2947
  },
@@ -2953,9 +2953,9 @@ function kc(t, e, n) {
2953
2953
  [e]
2954
2954
  );
2955
2955
  }
2956
- const ls = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Ac = "framerAppearId", Gr = "data-" + ls(Ac), Wr = Ot({});
2956
+ const ls = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Ac = "framerAppearId", Wr = "data-" + ls(Ac), Hr = Ot({});
2957
2957
  function Mc(t, e, n, s, i) {
2958
- const { visualElement: o } = G(Re), r = G(_r), a = G(De), l = G(ts).reducedMotion, u = ut(null);
2958
+ const { visualElement: o } = G(Re), r = G(Ir), a = G(De), l = G(ts).reducedMotion, u = ut(null);
2959
2959
  s = s || r.renderer, !u.current && s && (u.current = s(t, {
2960
2960
  visualState: e,
2961
2961
  parent: o,
@@ -2964,14 +2964,14 @@ function Mc(t, e, n, s, i) {
2964
2964
  blockInitialAnimation: a ? a.initial === !1 : !1,
2965
2965
  reducedMotionConfig: l
2966
2966
  }));
2967
- const c = u.current, f = G(Wr);
2967
+ const c = u.current, f = G(Hr);
2968
2968
  c && !c.projection && i && (c.type === "html" || c.type === "svg") && Vc(u.current, n, i, f);
2969
2969
  const m = ut(!1);
2970
- Fi(() => {
2970
+ ji(() => {
2971
2971
  c && m.current && c.update(n, a);
2972
2972
  });
2973
- const v = n[Gr], w = ut(!!v && !window.MotionHandoffIsComplete?.(v) && window.MotionHasOptimisedAnimation?.(v));
2974
- return zi(() => {
2973
+ const v = n[Wr], w = ut(!!v && !window.MotionHandoffIsComplete?.(v) && window.MotionHasOptimisedAnimation?.(v));
2974
+ return $i(() => {
2975
2975
  c && (m.current = !0, window.MotionIsMounted = !0, c.updateFeatures(), c.scheduleRenderMicrotask(), w.current && c.animationState && c.animationState.animateChanges());
2976
2976
  }), Jt(() => {
2977
2977
  c && (!w.current && c.animationState && c.animationState.animateChanges(), w.current && (queueMicrotask(() => {
@@ -2981,7 +2981,7 @@ function Mc(t, e, n, s, i) {
2981
2981
  }
2982
2982
  function Vc(t, e, n, s) {
2983
2983
  const { layoutId: i, layout: o, drag: r, dragConstraints: a, layoutScroll: l, layoutRoot: u, layoutCrossfade: c } = e;
2984
- t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : Hr(t.parent)), t.projection.setOptions({
2984
+ t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : Xr(t.parent)), t.projection.setOptions({
2985
2985
  layoutId: i,
2986
2986
  layout: o,
2987
2987
  alwaysMeasureLayout: !!r || a && Dt(a),
@@ -3000,9 +3000,9 @@ function Vc(t, e, n, s) {
3000
3000
  layoutRoot: u
3001
3001
  });
3002
3002
  }
3003
- function Hr(t) {
3003
+ function Xr(t) {
3004
3004
  if (t)
3005
- return t.options.allowProjection !== !1 ? t.projection : Hr(t.parent);
3005
+ return t.options.allowProjection !== !1 ? t.projection : Xr(t.parent);
3006
3006
  }
3007
3007
  function Ge(t, { forwardMotionProps: e = !1 } = {}, n, s) {
3008
3008
  n && nc(n);
@@ -3019,10 +3019,10 @@ function Ge(t, { forwardMotionProps: e = !1 } = {}, n, s) {
3019
3019
  const w = Rc(c);
3020
3020
  u = w.MeasureLayout, m.visualElement = Mc(t, v, c, s, w.ProjectionNode);
3021
3021
  }
3022
- return Fo(Re.Provider, { value: m, children: [u && m.visualElement ? nt(u, { visualElement: m.visualElement, ...c }) : null, xc(t, a, kc(v, m.visualElement, l), v, f, e)] });
3022
+ return jo(Re.Provider, { value: m, children: [u && m.visualElement ? nt(u, { visualElement: m.visualElement, ...c }) : null, xc(t, a, kc(v, m.visualElement, l), v, f, e)] });
3023
3023
  }
3024
3024
  o.displayName = `motion.${typeof t == "string" ? t : `create(${t.displayName ?? t.name ?? ""})`}`;
3025
- const r = Io(o);
3025
+ const r = Bo(o);
3026
3026
  return r[Sc] = t, r;
3027
3027
  }
3028
3028
  function Ec({ layoutId: t }) {
@@ -3030,7 +3030,7 @@ function Ec({ layoutId: t }) {
3030
3030
  return e && t !== void 0 ? e + "-" + t : t;
3031
3031
  }
3032
3032
  function Dc(t, e) {
3033
- const n = G(_r).strict;
3033
+ const n = G(Ir).strict;
3034
3034
  if (process.env.NODE_ENV !== "production" && e && n) {
3035
3035
  const s = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
3036
3036
  t.ignoreStrict ? Ft(!1, s, "lazy-strict-mode") : ht(!1, s, "lazy-strict-mode");
@@ -3059,7 +3059,7 @@ function Lc(t, e) {
3059
3059
  get: (o, r) => r === "create" ? s : (n.has(r) || n.set(r, Ge(r, void 0, t, e)), n.get(r))
3060
3060
  });
3061
3061
  }
3062
- function Xr({ top: t, left: e, right: n, bottom: s }) {
3062
+ function Yr({ top: t, left: e, right: n, bottom: s }) {
3063
3063
  return {
3064
3064
  x: { min: e, max: n },
3065
3065
  y: { min: t, max: s }
@@ -3086,28 +3086,28 @@ function yn({ scale: t, scaleX: e, scaleY: n }) {
3086
3086
  return !We(t) || !We(e) || !We(n);
3087
3087
  }
3088
3088
  function Tt(t) {
3089
- return yn(t) || Yr(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
3089
+ return yn(t) || qr(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
3090
3090
  }
3091
- function Yr(t) {
3092
- return Gs(t.x) || Gs(t.y);
3091
+ function qr(t) {
3092
+ return Ws(t.x) || Ws(t.y);
3093
3093
  }
3094
- function Gs(t) {
3094
+ function Ws(t) {
3095
3095
  return t && t !== "0%";
3096
3096
  }
3097
3097
  function Ee(t, e, n) {
3098
3098
  const s = t - n, i = e * s;
3099
3099
  return n + i;
3100
3100
  }
3101
- function Ws(t, e, n, s, i) {
3101
+ function Hs(t, e, n, s, i) {
3102
3102
  return i !== void 0 && (t = Ee(t, i, s)), Ee(t, n, s) + e;
3103
3103
  }
3104
3104
  function bn(t, e = 0, n = 1, s, i) {
3105
- t.min = Ws(t.min, e, n, s, i), t.max = Ws(t.max, e, n, s, i);
3105
+ t.min = Hs(t.min, e, n, s, i), t.max = Hs(t.max, e, n, s, i);
3106
3106
  }
3107
- function qr(t, { x: e, y: n }) {
3107
+ function Zr(t, { x: e, y: n }) {
3108
3108
  bn(t.x, e.translate, e.scale, e.originPoint), bn(t.y, n.translate, n.scale, n.originPoint);
3109
3109
  }
3110
- const Hs = 0.999999999999, Xs = 1.0000000000001;
3110
+ const Xs = 0.999999999999, Ys = 1.0000000000001;
3111
3111
  function Ic(t, e, n, s = !1) {
3112
3112
  const i = n.length;
3113
3113
  if (!i)
@@ -3120,41 +3120,41 @@ function Ic(t, e, n, s = !1) {
3120
3120
  l && l.props.style && l.props.style.display === "contents" || (s && o.options.layoutScroll && o.scroll && o !== o.root && Lt(t, {
3121
3121
  x: -o.scroll.offset.x,
3122
3122
  y: -o.scroll.offset.y
3123
- }), r && (e.x *= r.x.scale, e.y *= r.y.scale, qr(t, r)), s && Tt(o.latestValues) && Lt(t, o.latestValues));
3123
+ }), r && (e.x *= r.x.scale, e.y *= r.y.scale, Zr(t, r)), s && Tt(o.latestValues) && Lt(t, o.latestValues));
3124
3124
  }
3125
- e.x < Xs && e.x > Hs && (e.x = 1), e.y < Xs && e.y > Hs && (e.y = 1);
3125
+ e.x < Ys && e.x > Xs && (e.x = 1), e.y < Ys && e.y > Xs && (e.y = 1);
3126
3126
  }
3127
3127
  function Rt(t, e) {
3128
3128
  t.min = t.min + e, t.max = t.max + e;
3129
3129
  }
3130
- function Ys(t, e, n, s, i = 0.5) {
3130
+ function qs(t, e, n, s, i = 0.5) {
3131
3131
  const o = I(t.min, t.max, i);
3132
3132
  bn(t, e, n, o, s);
3133
3133
  }
3134
3134
  function Lt(t, e) {
3135
- Ys(t.x, e.x, e.scaleX, e.scale, e.originX), Ys(t.y, e.y, e.scaleY, e.scale, e.originY);
3135
+ qs(t.x, e.x, e.scaleX, e.scale, e.originX), qs(t.y, e.y, e.scaleY, e.scale, e.originY);
3136
3136
  }
3137
- function Zr(t, e) {
3138
- return Xr(_c(t.getBoundingClientRect(), e));
3137
+ function Jr(t, e) {
3138
+ return Yr(_c(t.getBoundingClientRect(), e));
3139
3139
  }
3140
3140
  function Bc(t, e, n) {
3141
- const s = Zr(t, n), { scroll: i } = e;
3141
+ const s = Jr(t, n), { scroll: i } = e;
3142
3142
  return i && (Rt(s.x, i.offset.x), Rt(s.y, i.offset.y)), s;
3143
3143
  }
3144
- const qs = () => ({
3144
+ const Zs = () => ({
3145
3145
  translate: 0,
3146
3146
  scale: 1,
3147
3147
  origin: 0,
3148
3148
  originPoint: 0
3149
3149
  }), Kt = () => ({
3150
- x: qs(),
3151
- y: qs()
3152
- }), Zs = () => ({ min: 0, max: 0 }), O = () => ({
3153
3150
  x: Zs(),
3154
3151
  y: Zs()
3155
- }), vn = { current: null }, Jr = { current: !1 };
3152
+ }), Js = () => ({ min: 0, max: 0 }), O = () => ({
3153
+ x: Js(),
3154
+ y: Js()
3155
+ }), vn = { current: null }, Qr = { current: !1 };
3156
3156
  function Oc() {
3157
- if (Jr.current = !0, !!Rn)
3157
+ if (Qr.current = !0, !!Rn)
3158
3158
  if (window.matchMedia) {
3159
3159
  const t = window.matchMedia("(prefers-reduced-motion)"), e = () => vn.current = t.matches;
3160
3160
  t.addEventListener("change", e), e();
@@ -3182,7 +3182,7 @@ function jc(t, e, n) {
3182
3182
  e[s] === void 0 && t.removeValue(s);
3183
3183
  return e;
3184
3184
  }
3185
- const Js = [
3185
+ const Qs = [
3186
3186
  "AnimationStart",
3187
3187
  "AnimationComplete",
3188
3188
  "Update",
@@ -3210,7 +3210,7 @@ class Nc {
3210
3210
  this.renderScheduledAt < m && (this.renderScheduledAt = m, K.render(this.render, !1, !0));
3211
3211
  };
3212
3212
  const { latestValues: l, renderState: u } = r;
3213
- this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = u, this.parent = e, this.props = n, this.presenceContext = s, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = Ke(n), this.isVariantNode = Br(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
3213
+ this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = u, this.parent = e, this.props = n, this.presenceContext = s, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = Ke(n), this.isVariantNode = Or(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
3214
3214
  const { willChange: c, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
3215
3215
  for (const m in f) {
3216
3216
  const v = f[m];
@@ -3218,7 +3218,7 @@ class Nc {
3218
3218
  }
3219
3219
  }
3220
3220
  mount(e) {
3221
- this.current = e, Fc.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)), Jr.current || Oc(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : vn.current, process.env.NODE_ENV !== "production" && Bn(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.parent?.addChild(this), this.update(this.props, this.presenceContext);
3221
+ this.current = e, Fc.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)), Qr.current || Oc(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : vn.current, process.env.NODE_ENV !== "production" && Bn(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.parent?.addChild(this), this.update(this.props, this.presenceContext);
3222
3222
  }
3223
3223
  unmount() {
3224
3224
  this.projection && this.projection.unmount(), yt(this.notifyUpdate), yt(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
@@ -3287,8 +3287,8 @@ class Nc {
3287
3287
  */
3288
3288
  update(e, n) {
3289
3289
  (e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
3290
- for (let s = 0; s < Js.length; s++) {
3291
- const i = Js[s];
3290
+ for (let s = 0; s < Qs.length; s++) {
3291
+ const i = Qs[s];
3292
3292
  this.propEventSubscriptions[i] && (this.propEventSubscriptions[i](), delete this.propEventSubscriptions[i]);
3293
3293
  const o = "on" + i, r = e[o];
3294
3294
  r && (this.propEventSubscriptions[i] = this.on(i, r));
@@ -3358,7 +3358,7 @@ class Nc {
3358
3358
  */
3359
3359
  readValue(e, n) {
3360
3360
  let s = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
3361
- return s != null && (typeof s == "string" && ($i(s) || Wi(s)) ? s = parseFloat(s) : !ql(s) && bt.test(n) && (s = Ar(e, n)), this.setBaseTarget(e, W(s) ? s.get() : s)), W(s) ? s.get() : s;
3361
+ return s != null && (typeof s == "string" && (Gi(s) || Hi(s)) ? s = parseFloat(s) : !ql(s) && bt.test(n) && (s = Mr(e, n)), this.setBaseTarget(e, W(s) ? s.get() : s)), W(s) ? s.get() : s;
3362
3362
  }
3363
3363
  /**
3364
3364
  * Set the base target to later animate back to. This is currently
@@ -3393,7 +3393,7 @@ class Nc {
3393
3393
  Jn.render(this.render);
3394
3394
  }
3395
3395
  }
3396
- class Qr extends Nc {
3396
+ class to extends Nc {
3397
3397
  constructor() {
3398
3398
  super(...arguments), this.KeyframeResolver = Ol;
3399
3399
  }
@@ -3414,7 +3414,7 @@ class Qr extends Nc {
3414
3414
  }));
3415
3415
  }
3416
3416
  }
3417
- function to(t, { style: e, vars: n }, s, i) {
3417
+ function eo(t, { style: e, vars: n }, s, i) {
3418
3418
  const o = t.style;
3419
3419
  let r;
3420
3420
  for (r in e)
@@ -3426,9 +3426,9 @@ function to(t, { style: e, vars: n }, s, i) {
3426
3426
  function Uc(t) {
3427
3427
  return window.getComputedStyle(t);
3428
3428
  }
3429
- class zc extends Qr {
3429
+ class zc extends to {
3430
3430
  constructor() {
3431
- super(...arguments), this.type = "html", this.renderInstance = to;
3431
+ super(...arguments), this.type = "html", this.renderInstance = eo;
3432
3432
  }
3433
3433
  readValueFromInstance(e, n) {
3434
3434
  if (Ut.has(n))
@@ -3439,7 +3439,7 @@ class zc extends Qr {
3439
3439
  }
3440
3440
  }
3441
3441
  measureInstanceViewportBox(e, { transformPagePoint: n }) {
3442
- return Zr(e, n);
3442
+ return Jr(e, n);
3443
3443
  }
3444
3444
  build(e, n, s) {
3445
3445
  ss(e, n, s.transformTemplate);
@@ -3448,7 +3448,7 @@ class zc extends Qr {
3448
3448
  return as(e, n, s);
3449
3449
  }
3450
3450
  }
3451
- const eo = /* @__PURE__ */ new Set([
3451
+ const no = /* @__PURE__ */ new Set([
3452
3452
  "baseFrequency",
3453
3453
  "diffuseConstant",
3454
3454
  "kernelMatrix",
@@ -3474,11 +3474,11 @@ const eo = /* @__PURE__ */ new Set([
3474
3474
  "lengthAdjust"
3475
3475
  ]);
3476
3476
  function $c(t, e, n, s) {
3477
- to(t, e, void 0, s);
3477
+ eo(t, e, void 0, s);
3478
3478
  for (const i in e.attrs)
3479
- t.setAttribute(eo.has(i) ? i : ls(i), e.attrs[i]);
3479
+ t.setAttribute(no.has(i) ? i : ls(i), e.attrs[i]);
3480
3480
  }
3481
- class Gc extends Qr {
3481
+ class Gc extends to {
3482
3482
  constructor() {
3483
3483
  super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = O;
3484
3484
  }
@@ -3487,26 +3487,26 @@ class Gc extends Qr {
3487
3487
  }
3488
3488
  readValueFromInstance(e, n) {
3489
3489
  if (Ut.has(n)) {
3490
- const s = kr(n);
3490
+ const s = Ar(n);
3491
3491
  return s && s.default || 0;
3492
3492
  }
3493
- return n = eo.has(n) ? n : ls(n), e.getAttribute(n);
3493
+ return n = no.has(n) ? n : ls(n), e.getAttribute(n);
3494
3494
  }
3495
3495
  scrapeMotionValuesFromProps(e, n, s) {
3496
- return $r(e, n, s);
3496
+ return Gr(e, n, s);
3497
3497
  }
3498
3498
  build(e, n, s) {
3499
- jr(e, n, this.isSVGTag, s.transformTemplate, s.style);
3499
+ Nr(e, n, this.isSVGTag, s.transformTemplate, s.style);
3500
3500
  }
3501
3501
  renderInstance(e, n, s, i) {
3502
3502
  $c(e, n, s, i);
3503
3503
  }
3504
3504
  mount(e) {
3505
- this.isSVGTag = Ur(e.tagName), super.mount(e);
3505
+ this.isSVGTag = zr(e.tagName), super.mount(e);
3506
3506
  }
3507
3507
  }
3508
3508
  const Wc = (t, e) => rs(t) ? new Gc(e) : new zc(e, {
3509
- allowProjection: t !== Ni
3509
+ allowProjection: t !== Ui
3510
3510
  });
3511
3511
  function _t(t, e, n) {
3512
3512
  const s = t.getProps();
@@ -3540,8 +3540,8 @@ function wn(t, e) {
3540
3540
  t.addValue("willChange", s), s.add(e);
3541
3541
  }
3542
3542
  }
3543
- function no(t) {
3544
- return t.props[Gr];
3543
+ function so(t) {
3544
+ return t.props[Wr];
3545
3545
  }
3546
3546
  const Zc = (t) => t !== null;
3547
3547
  function Jc(t, { repeat: e, repeatType: n = "loop" }, s) {
@@ -3606,7 +3606,7 @@ function ru({ protectedKeys: t, needsAnimating: e }, n) {
3606
3606
  const s = t.hasOwnProperty(n) && e[n] !== !0;
3607
3607
  return e[n] = !1, s;
3608
3608
  }
3609
- function so(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
3609
+ function io(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
3610
3610
  let { transition: o = t.getDefaultTransition(), transitionEnd: r, ...a } = e;
3611
3611
  s && (o = s);
3612
3612
  const l = [], u = i && t.animationState && t.animationState.getState()[i];
@@ -3622,13 +3622,13 @@ function so(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
3622
3622
  continue;
3623
3623
  let C = !1;
3624
3624
  if (window.MotionHandoffAnimation) {
3625
- const h = no(t);
3625
+ const h = so(t);
3626
3626
  if (h) {
3627
3627
  const y = window.MotionHandoffAnimation(h, c, K);
3628
3628
  y !== null && (v.startTime = y, C = !0);
3629
3629
  }
3630
3630
  }
3631
- wn(t, c), f.start(cs(c, f, m, t.shouldReduceMotion && Cr.has(c) ? { type: !1 } : v, t, C));
3631
+ wn(t, c), f.start(cs(c, f, m, t.shouldReduceMotion && Pr.has(c) ? { type: !1 } : v, t, C));
3632
3632
  const P = f.animation;
3633
3633
  P && l.push(P);
3634
3634
  }
@@ -3638,7 +3638,7 @@ function so(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
3638
3638
  });
3639
3639
  }), l;
3640
3640
  }
3641
- function io(t, e, n, s = 0, i = 1) {
3641
+ function ro(t, e, n, s = 0, i = 1) {
3642
3642
  const o = Array.from(t).sort((u, c) => u.sortNodePosition(c)).indexOf(e), r = t.size, a = (r - 1) * s;
3643
3643
  return typeof n == "function" ? n(o, r) : i === 1 ? o * s : a - o * s;
3644
3644
  }
@@ -3646,7 +3646,7 @@ function Tn(t, e, n = {}) {
3646
3646
  const s = _t(t, e, n.type === "exit" ? t.presenceContext?.custom : void 0);
3647
3647
  let { transition: i = t.getDefaultTransition() || {} } = s || {};
3648
3648
  n.transitionOverride && (i = n.transitionOverride);
3649
- const o = s ? () => Promise.all(so(t, s, n)) : () => Promise.resolve(), r = t.variantChildren && t.variantChildren.size ? (l = 0) => {
3649
+ const o = s ? () => Promise.all(io(t, s, n)) : () => Promise.resolve(), r = t.variantChildren && t.variantChildren.size ? (l = 0) => {
3650
3650
  const { delayChildren: u = 0, staggerChildren: c, staggerDirection: f } = i;
3651
3651
  return ou(t, e, l, u, c, f, n);
3652
3652
  } : () => Promise.resolve(), { when: a } = i;
@@ -3661,7 +3661,7 @@ function ou(t, e, n = 0, s = 0, i = 0, o = 1, r) {
3661
3661
  for (const l of t.variantChildren)
3662
3662
  l.notify("AnimationStart", e), a.push(Tn(l, e, {
3663
3663
  ...r,
3664
- delay: n + (typeof s == "function" ? 0 : s) + io(t.variantChildren, l, s, i, o)
3664
+ delay: n + (typeof s == "function" ? 0 : s) + ro(t.variantChildren, l, s, i, o)
3665
3665
  }).then(() => l.notify("AnimationComplete", e)));
3666
3666
  return Promise.all(a);
3667
3667
  }
@@ -3675,13 +3675,13 @@ function au(t, e, n = {}) {
3675
3675
  s = Tn(t, e, n);
3676
3676
  else {
3677
3677
  const i = typeof e == "function" ? _t(t, e, n.custom) : e;
3678
- s = Promise.all(so(t, i, n));
3678
+ s = Promise.all(io(t, i, n));
3679
3679
  }
3680
3680
  return s.then(() => {
3681
3681
  t.notify("AnimationComplete", e);
3682
3682
  });
3683
3683
  }
3684
- function ro(t, e) {
3684
+ function oo(t, e) {
3685
3685
  if (!Array.isArray(e))
3686
3686
  return !1;
3687
3687
  const n = e.length;
@@ -3693,11 +3693,11 @@ function ro(t, e) {
3693
3693
  return !0;
3694
3694
  }
3695
3695
  const lu = ns.length;
3696
- function oo(t) {
3696
+ function ao(t) {
3697
3697
  if (!t)
3698
3698
  return;
3699
3699
  if (!t.isControllingVariants) {
3700
- const n = t.parent ? oo(t.parent) || {} : {};
3700
+ const n = t.parent ? ao(t.parent) || {} : {};
3701
3701
  return t.props.initial !== void 0 && (n.initial = t.props.initial), n;
3702
3702
  }
3703
3703
  const e = {};
@@ -3712,7 +3712,7 @@ function du(t) {
3712
3712
  return (e) => Promise.all(e.map(({ animation: n, options: s }) => au(t, n, s)));
3713
3713
  }
3714
3714
  function hu(t) {
3715
- let e = du(t), n = Qs(), s = !0;
3715
+ let e = du(t), n = ti(), s = !0;
3716
3716
  const i = (l) => (u, c) => {
3717
3717
  const f = _t(t, c, l === "exit" ? t.presenceContext?.custom : void 0);
3718
3718
  if (f) {
@@ -3725,7 +3725,7 @@ function hu(t) {
3725
3725
  e = l(t);
3726
3726
  }
3727
3727
  function r(l) {
3728
- const { props: u } = t, c = oo(t.parent) || {}, f = [], m = /* @__PURE__ */ new Set();
3728
+ const { props: u } = t, c = ao(t.parent) || {}, f = [], m = /* @__PURE__ */ new Set();
3729
3729
  let v = {}, w = 1 / 0;
3730
3730
  for (let P = 0; P < uu; P++) {
3731
3731
  const h = cu[P], y = n[h], d = u[h] !== void 0 ? u[h] : c[h], p = ne(d), g = h === l ? y.isActive : null;
@@ -3756,7 +3756,7 @@ function hu(t) {
3756
3756
  if (v.hasOwnProperty(R))
3757
3757
  continue;
3758
3758
  let lt = !1;
3759
- xn(A) && xn(Q) ? lt = !ro(A, Q) : lt = A !== Q, lt ? A != null ? q(R) : m.add(R) : A !== void 0 && m.has(R) ? q(R) : y.protectedKeys[R] = !0;
3759
+ xn(A) && xn(Q) ? lt = !oo(A, Q) : lt = A !== Q, lt ? A != null ? q(R) : m.add(R) : A !== void 0 && m.has(R) ? q(R) : y.protectedKeys[R] = !0;
3760
3760
  }
3761
3761
  y.prevProp = d, y.prevResolvedValues = L, y.isActive && (v = { ...v, ...L }), s && t.blockInitialAnimation && (b = !1);
3762
3762
  const Z = x && T;
@@ -3766,7 +3766,7 @@ function hu(t) {
3766
3766
  const { parent: Q } = t, lt = _t(Q, R);
3767
3767
  if (Q.enteringChildren && lt) {
3768
3768
  const { delayChildren: ce } = lt.transition || {};
3769
- A.delay = io(Q.enteringChildren, t, ce);
3769
+ A.delay = ro(Q.enteringChildren, t, ce);
3770
3770
  }
3771
3771
  }
3772
3772
  return {
@@ -3804,12 +3804,12 @@ function hu(t) {
3804
3804
  setAnimateFunction: o,
3805
3805
  getState: () => n,
3806
3806
  reset: () => {
3807
- n = Qs(), s = !0;
3807
+ n = ti(), s = !0;
3808
3808
  }
3809
3809
  };
3810
3810
  }
3811
3811
  function fu(t, e) {
3812
- return typeof e == "string" ? e !== t : Array.isArray(e) ? !ro(e, t) : !1;
3812
+ return typeof e == "string" ? e !== t : Array.isArray(e) ? !oo(e, t) : !1;
3813
3813
  }
3814
3814
  function xt(t = !1) {
3815
3815
  return {
@@ -3819,7 +3819,7 @@ function xt(t = !1) {
3819
3819
  prevResolvedValues: {}
3820
3820
  };
3821
3821
  }
3822
- function Qs() {
3822
+ function ti() {
3823
3823
  return {
3824
3824
  animate: xt(!0),
3825
3825
  whileInView: xt(),
@@ -3910,40 +3910,40 @@ const bu = (t) => (e) => Qn(e) && t(e, le(e));
3910
3910
  function Yt(t, e, n, s) {
3911
3911
  return ie(t, e, bu(n), s);
3912
3912
  }
3913
- const ao = 1e-4, vu = 1 - ao, xu = 1 + ao, lo = 0.01, wu = 0 - lo, Tu = 0 + lo;
3913
+ const lo = 1e-4, vu = 1 - lo, xu = 1 + lo, co = 0.01, wu = 0 - co, Tu = 0 + co;
3914
3914
  function X(t) {
3915
3915
  return t.max - t.min;
3916
3916
  }
3917
3917
  function Cu(t, e, n) {
3918
3918
  return Math.abs(t - e) <= n;
3919
3919
  }
3920
- function ti(t, e, n, s = 0.5) {
3920
+ function ei(t, e, n, s = 0.5) {
3921
3921
  t.origin = s, t.originPoint = I(e.min, e.max, t.origin), t.scale = X(n) / X(e), t.translate = I(n.min, n.max, t.origin) - t.originPoint, (t.scale >= vu && t.scale <= xu || isNaN(t.scale)) && (t.scale = 1), (t.translate >= wu && t.translate <= Tu || isNaN(t.translate)) && (t.translate = 0);
3922
3922
  }
3923
3923
  function qt(t, e, n, s) {
3924
- ti(t.x, e.x, n.x, s ? s.originX : void 0), ti(t.y, e.y, n.y, s ? s.originY : void 0);
3924
+ ei(t.x, e.x, n.x, s ? s.originX : void 0), ei(t.y, e.y, n.y, s ? s.originY : void 0);
3925
3925
  }
3926
- function ei(t, e, n) {
3926
+ function ni(t, e, n) {
3927
3927
  t.min = n.min + e.min, t.max = t.min + X(e);
3928
3928
  }
3929
3929
  function Pu(t, e, n) {
3930
- ei(t.x, e.x, n.x), ei(t.y, e.y, n.y);
3930
+ ni(t.x, e.x, n.x), ni(t.y, e.y, n.y);
3931
3931
  }
3932
- function ni(t, e, n) {
3932
+ function si(t, e, n) {
3933
3933
  t.min = e.min - n.min, t.max = t.min + X(e);
3934
3934
  }
3935
3935
  function Zt(t, e, n) {
3936
- ni(t.x, e.x, n.x), ni(t.y, e.y, n.y);
3936
+ si(t.x, e.x, n.x), si(t.y, e.y, n.y);
3937
3937
  }
3938
3938
  function et(t) {
3939
3939
  return [t("x"), t("y")];
3940
3940
  }
3941
- const co = ({ current: t }) => t ? t.ownerDocument.defaultView : null, si = (t, e) => Math.abs(t - e);
3941
+ const uo = ({ current: t }) => t ? t.ownerDocument.defaultView : null, ii = (t, e) => Math.abs(t - e);
3942
3942
  function Su(t, e) {
3943
- const n = si(t.x, e.x), s = si(t.y, e.y);
3943
+ const n = ii(t.x, e.x), s = ii(t.y, e.y);
3944
3944
  return Math.sqrt(n ** 2 + s ** 2);
3945
3945
  }
3946
- class uo {
3946
+ class ho {
3947
3947
  constructor(e, n, { transformPagePoint: s, contextWindow: i = window, dragSnapToOrigin: o = !1, distanceThreshold: r = 3 } = {}) {
3948
3948
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
3949
3949
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
@@ -3982,28 +3982,28 @@ class uo {
3982
3982
  function He(t, e) {
3983
3983
  return e ? { point: e(t.point) } : t;
3984
3984
  }
3985
- function ii(t, e) {
3985
+ function ri(t, e) {
3986
3986
  return { x: t.x - e.x, y: t.y - e.y };
3987
3987
  }
3988
3988
  function Xe({ point: t }, e) {
3989
3989
  return {
3990
3990
  point: t,
3991
- delta: ii(t, ho(e)),
3992
- offset: ii(t, ku(e)),
3991
+ delta: ri(t, fo(e)),
3992
+ offset: ri(t, ku(e)),
3993
3993
  velocity: Au(e, 0.1)
3994
3994
  };
3995
3995
  }
3996
3996
  function ku(t) {
3997
3997
  return t[0];
3998
3998
  }
3999
- function ho(t) {
3999
+ function fo(t) {
4000
4000
  return t[t.length - 1];
4001
4001
  }
4002
4002
  function Au(t, e) {
4003
4003
  if (t.length < 2)
4004
4004
  return { x: 0, y: 0 };
4005
4005
  let n = t.length - 1, s = null;
4006
- const i = ho(t);
4006
+ const i = fo(t);
4007
4007
  for (; n >= 0 && (s = t[n], !(i.timestamp - s.timestamp > /* @__PURE__ */ rt(e))); )
4008
4008
  n--;
4009
4009
  if (!s)
@@ -4020,7 +4020,7 @@ function Au(t, e) {
4020
4020
  function Mu(t, { min: e, max: n }, s) {
4021
4021
  return e !== void 0 && t < e ? t = s ? I(e, t, s.min) : Math.max(t, e) : n !== void 0 && t > n && (t = s ? I(n, t, s.max) : Math.min(t, n)), t;
4022
4022
  }
4023
- function ri(t, e, n) {
4023
+ function oi(t, e, n) {
4024
4024
  return {
4025
4025
  min: e !== void 0 ? t.min + e : void 0,
4026
4026
  max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
@@ -4028,18 +4028,18 @@ function ri(t, e, n) {
4028
4028
  }
4029
4029
  function Vu(t, { top: e, left: n, bottom: s, right: i }) {
4030
4030
  return {
4031
- x: ri(t.x, n, i),
4032
- y: ri(t.y, e, s)
4031
+ x: oi(t.x, n, i),
4032
+ y: oi(t.y, e, s)
4033
4033
  };
4034
4034
  }
4035
- function oi(t, e) {
4035
+ function ai(t, e) {
4036
4036
  let n = e.min - t.min, s = e.max - t.max;
4037
4037
  return e.max - e.min < t.max - t.min && ([n, s] = [s, n]), { min: n, max: s };
4038
4038
  }
4039
4039
  function Eu(t, e) {
4040
4040
  return {
4041
- x: oi(t.x, e.x),
4042
- y: oi(t.y, e.y)
4041
+ x: ai(t.x, e.x),
4042
+ y: ai(t.y, e.y)
4043
4043
  };
4044
4044
  }
4045
4045
  function Du(t, e) {
@@ -4054,17 +4054,17 @@ function Ru(t, e) {
4054
4054
  const Cn = 0.35;
4055
4055
  function Lu(t = Cn) {
4056
4056
  return t === !1 ? t = 0 : t === !0 && (t = Cn), {
4057
- x: ai(t, "left", "right"),
4058
- y: ai(t, "top", "bottom")
4057
+ x: li(t, "left", "right"),
4058
+ y: li(t, "top", "bottom")
4059
4059
  };
4060
4060
  }
4061
- function ai(t, e, n) {
4061
+ function li(t, e, n) {
4062
4062
  return {
4063
- min: li(t, e),
4064
- max: li(t, n)
4063
+ min: ci(t, e),
4064
+ max: ci(t, n)
4065
4065
  };
4066
4066
  }
4067
- function li(t, e) {
4067
+ function ci(t, e) {
4068
4068
  return typeof t == "number" ? t : t[e] || 0;
4069
4069
  }
4070
4070
  const Ku = /* @__PURE__ */ new WeakMap();
@@ -4110,7 +4110,7 @@ class _u {
4110
4110
  }, l = (f, m) => {
4111
4111
  this.latestPointerEvent = f, this.latestPanInfo = m, this.stop(f, m), this.latestPointerEvent = null, this.latestPanInfo = null;
4112
4112
  }, u = () => et((f) => this.getAnimationState(f) === "paused" && this.getAxisMotionValue(f).animation?.play()), { dragSnapToOrigin: c } = this.getProps();
4113
- this.panSession = new uo(e, {
4113
+ this.panSession = new ho(e, {
4114
4114
  onSessionStart: o,
4115
4115
  onStart: r,
4116
4116
  onMove: a,
@@ -4120,7 +4120,7 @@ class _u {
4120
4120
  transformPagePoint: this.visualElement.getTransformPagePoint(),
4121
4121
  dragSnapToOrigin: c,
4122
4122
  distanceThreshold: s,
4123
- contextWindow: co(this.visualElement)
4123
+ contextWindow: uo(this.visualElement)
4124
4124
  });
4125
4125
  }
4126
4126
  /**
@@ -4172,7 +4172,7 @@ class _u {
4172
4172
  let r = Eu(i.layout.layoutBox, o);
4173
4173
  if (n) {
4174
4174
  const a = n(Kc(r));
4175
- this.hasMutatedConstraints = !!a, a && (r = Xr(a));
4175
+ this.hasMutatedConstraints = !!a, a && (r = Yr(a));
4176
4176
  }
4177
4177
  return r;
4178
4178
  }
@@ -4314,7 +4314,7 @@ class Bu extends vt {
4314
4314
  this.removeGroupControls(), this.removeListeners();
4315
4315
  }
4316
4316
  }
4317
- const ci = (t) => (e, n) => {
4317
+ const ui = (t) => (e, n) => {
4318
4318
  t && K.postRender(() => t(e, n));
4319
4319
  };
4320
4320
  class Ou extends vt {
@@ -4322,16 +4322,16 @@ class Ou extends vt {
4322
4322
  super(...arguments), this.removePointerDownListener = st;
4323
4323
  }
4324
4324
  onPointerDown(e) {
4325
- this.session = new uo(e, this.createPanHandlers(), {
4325
+ this.session = new ho(e, this.createPanHandlers(), {
4326
4326
  transformPagePoint: this.node.getTransformPagePoint(),
4327
- contextWindow: co(this.node)
4327
+ contextWindow: uo(this.node)
4328
4328
  });
4329
4329
  }
4330
4330
  createPanHandlers() {
4331
4331
  const { onPanSessionStart: e, onPanStart: n, onPan: s, onPanEnd: i } = this.node.getProps();
4332
4332
  return {
4333
- onSessionStart: ci(e),
4334
- onStart: ci(n),
4333
+ onSessionStart: ui(e),
4334
+ onStart: ui(n),
4335
4335
  onMove: s,
4336
4336
  onEnd: (o, r) => {
4337
4337
  delete this.session, i && K.postRender(() => i(o, r));
@@ -4360,7 +4360,7 @@ const Se = {
4360
4360
  */
4361
4361
  hasEverUpdated: !1
4362
4362
  };
4363
- function ui(t, e) {
4363
+ function di(t, e) {
4364
4364
  return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
4365
4365
  }
4366
4366
  const Gt = {
@@ -4372,7 +4372,7 @@ const Gt = {
4372
4372
  t = parseFloat(t);
4373
4373
  else
4374
4374
  return t;
4375
- const n = ui(t, e.target.x), s = ui(t, e.target.y);
4375
+ const n = di(t, e.target.x), s = di(t, e.target.y);
4376
4376
  return `${n}% ${s}%`;
4377
4377
  }
4378
4378
  }, Fu = {
@@ -4387,7 +4387,7 @@ const Gt = {
4387
4387
  }
4388
4388
  };
4389
4389
  let Ye = !1;
4390
- class ju extends Bo {
4390
+ class ju extends Oo {
4391
4391
  /**
4392
4392
  * This only mounts projection nodes for components that
4393
4393
  * need measuring, we might want to do it for all components
@@ -4427,9 +4427,9 @@ class ju extends Bo {
4427
4427
  return null;
4428
4428
  }
4429
4429
  }
4430
- function fo(t) {
4431
- const [e, n] = Kr(), s = G(En);
4432
- return nt(ju, { ...t, layoutGroup: s, switchLayoutGroup: G(Wr), isPresent: e, safeToRemove: n });
4430
+ function po(t) {
4431
+ const [e, n] = _r(), s = G(En);
4432
+ return nt(ju, { ...t, layoutGroup: s, switchLayoutGroup: G(Hr), isPresent: e, safeToRemove: n });
4433
4433
  }
4434
4434
  const Nu = {
4435
4435
  borderRadius: {
@@ -4473,72 +4473,72 @@ function Gu(t, e) {
4473
4473
  };
4474
4474
  return K.setup(s, !0), () => yt(s);
4475
4475
  }
4476
- const po = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Wu = po.length, di = (t) => typeof t == "string" ? parseFloat(t) : t, hi = (t) => typeof t == "number" || M.test(t);
4476
+ const mo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Wu = mo.length, hi = (t) => typeof t == "string" ? parseFloat(t) : t, fi = (t) => typeof t == "number" || M.test(t);
4477
4477
  function Hu(t, e, n, s, i, o) {
4478
4478
  i ? (t.opacity = I(0, n.opacity ?? 1, Xu(s)), t.opacityExit = I(e.opacity ?? 1, 0, Yu(s))) : o && (t.opacity = I(e.opacity ?? 1, n.opacity ?? 1, s));
4479
4479
  for (let r = 0; r < Wu; r++) {
4480
- const a = `border${po[r]}Radius`;
4481
- let l = fi(e, a), u = fi(n, a);
4480
+ const a = `border${mo[r]}Radius`;
4481
+ let l = pi(e, a), u = pi(n, a);
4482
4482
  if (l === void 0 && u === void 0)
4483
4483
  continue;
4484
- l || (l = 0), u || (u = 0), l === 0 || u === 0 || hi(l) === hi(u) ? (t[a] = Math.max(I(di(l), di(u), s), 0), (at.test(u) || at.test(l)) && (t[a] += "%")) : t[a] = u;
4484
+ l || (l = 0), u || (u = 0), l === 0 || u === 0 || fi(l) === fi(u) ? (t[a] = Math.max(I(hi(l), hi(u), s), 0), (at.test(u) || at.test(l)) && (t[a] += "%")) : t[a] = u;
4485
4485
  }
4486
4486
  (e.rotate || n.rotate) && (t.rotate = I(e.rotate || 0, n.rotate || 0, s));
4487
4487
  }
4488
- function fi(t, e) {
4488
+ function pi(t, e) {
4489
4489
  return t[e] !== void 0 ? t[e] : t.borderRadius;
4490
4490
  }
4491
- const Xu = /* @__PURE__ */ mo(0, 0.5, tr), Yu = /* @__PURE__ */ mo(0.5, 0.95, st);
4492
- function mo(t, e, n) {
4491
+ const Xu = /* @__PURE__ */ go(0, 0.5, er), Yu = /* @__PURE__ */ go(0.5, 0.95, st);
4492
+ function go(t, e, n) {
4493
4493
  return (s) => s < t ? 0 : s > e ? 1 : n(/* @__PURE__ */ Qt(t, e, s));
4494
4494
  }
4495
- function pi(t, e) {
4495
+ function mi(t, e) {
4496
4496
  t.min = e.min, t.max = e.max;
4497
4497
  }
4498
4498
  function tt(t, e) {
4499
- pi(t.x, e.x), pi(t.y, e.y);
4499
+ mi(t.x, e.x), mi(t.y, e.y);
4500
4500
  }
4501
- function mi(t, e) {
4501
+ function gi(t, e) {
4502
4502
  t.translate = e.translate, t.scale = e.scale, t.originPoint = e.originPoint, t.origin = e.origin;
4503
4503
  }
4504
- function gi(t, e, n, s, i) {
4504
+ function yi(t, e, n, s, i) {
4505
4505
  return t -= e, t = Ee(t, 1 / n, s), i !== void 0 && (t = Ee(t, 1 / i, s)), t;
4506
4506
  }
4507
4507
  function qu(t, e = 0, n = 1, s = 0.5, i, o = t, r = t) {
4508
4508
  if (at.test(e) && (e = parseFloat(e), e = I(r.min, r.max, e / 100) - r.min), typeof e != "number")
4509
4509
  return;
4510
4510
  let a = I(o.min, o.max, s);
4511
- t === o && (a -= e), t.min = gi(t.min, e, n, a, i), t.max = gi(t.max, e, n, a, i);
4511
+ t === o && (a -= e), t.min = yi(t.min, e, n, a, i), t.max = yi(t.max, e, n, a, i);
4512
4512
  }
4513
- function yi(t, e, [n, s, i], o, r) {
4513
+ function bi(t, e, [n, s, i], o, r) {
4514
4514
  qu(t, e[n], e[s], e[i], e.scale, o, r);
4515
4515
  }
4516
4516
  const Zu = ["x", "scaleX", "originX"], Ju = ["y", "scaleY", "originY"];
4517
- function bi(t, e, n, s) {
4518
- yi(t.x, e, Zu, n ? n.x : void 0, s ? s.x : void 0), yi(t.y, e, Ju, n ? n.y : void 0, s ? s.y : void 0);
4517
+ function vi(t, e, n, s) {
4518
+ bi(t.x, e, Zu, n ? n.x : void 0, s ? s.x : void 0), bi(t.y, e, Ju, n ? n.y : void 0, s ? s.y : void 0);
4519
4519
  }
4520
- function vi(t) {
4520
+ function xi(t) {
4521
4521
  return t.translate === 0 && t.scale === 1;
4522
4522
  }
4523
- function go(t) {
4524
- return vi(t.x) && vi(t.y);
4523
+ function yo(t) {
4524
+ return xi(t.x) && xi(t.y);
4525
4525
  }
4526
- function xi(t, e) {
4526
+ function wi(t, e) {
4527
4527
  return t.min === e.min && t.max === e.max;
4528
4528
  }
4529
4529
  function Qu(t, e) {
4530
- return xi(t.x, e.x) && xi(t.y, e.y);
4530
+ return wi(t.x, e.x) && wi(t.y, e.y);
4531
4531
  }
4532
- function wi(t, e) {
4532
+ function Ti(t, e) {
4533
4533
  return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
4534
4534
  }
4535
- function yo(t, e) {
4536
- return wi(t.x, e.x) && wi(t.y, e.y);
4535
+ function bo(t, e) {
4536
+ return Ti(t.x, e.x) && Ti(t.y, e.y);
4537
4537
  }
4538
- function Ti(t) {
4538
+ function Ci(t) {
4539
4539
  return X(t.x) / X(t.y);
4540
4540
  }
4541
- function Ci(t, e) {
4541
+ function Pi(t, e) {
4542
4542
  return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
4543
4543
  }
4544
4544
  class td {
@@ -4611,21 +4611,21 @@ function Ze(t, e, n, s) {
4611
4611
  const { latestValues: i } = e;
4612
4612
  i[t] && (n[t] = i[t], e.setStaticValue(t, 0), s && (s[t] = 0));
4613
4613
  }
4614
- function bo(t) {
4614
+ function vo(t) {
4615
4615
  if (t.hasCheckedOptimisedAppear = !0, t.root === t)
4616
4616
  return;
4617
4617
  const { visualElement: e } = t.options;
4618
4618
  if (!e)
4619
4619
  return;
4620
- const n = no(e);
4620
+ const n = so(e);
4621
4621
  if (window.MotionHasOptimisedAnimation(n, "transform")) {
4622
4622
  const { layout: i, layoutId: o } = t.options;
4623
4623
  window.MotionCancelOptimisedAnimation(n, "transform", K, !(i || o));
4624
4624
  }
4625
4625
  const { parent: s } = t;
4626
- s && !s.hasCheckedOptimisedAppear && bo(s);
4626
+ s && !s.hasCheckedOptimisedAppear && vo(s);
4627
4627
  }
4628
- function vo({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: s, resetTransform: i }) {
4628
+ function xo({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: s, resetTransform: i }) {
4629
4629
  return class {
4630
4630
  constructor(r = {}, a = e?.()) {
4631
4631
  this.id = sd++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
@@ -4653,7 +4653,7 @@ function vo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4653
4653
  mount(r) {
4654
4654
  if (this.instance)
4655
4655
  return;
4656
- this.isSVG = Lr(r) && !Xl(r), this.instance = r;
4656
+ this.isSVG = Kr(r) && !Xl(r), this.instance = r;
4657
4657
  const { layoutId: a, layout: l, visualElement: u } = this.options;
4658
4658
  if (u && !u.current && u.mount(r), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (l || a) && (this.isLayoutDirty = !0), t) {
4659
4659
  let c, f = 0;
@@ -4662,7 +4662,7 @@ function vo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4662
4662
  f = window.innerWidth;
4663
4663
  }), t(r, () => {
4664
4664
  const v = window.innerWidth;
4665
- v !== f && (f = v, this.root.updateBlockedByResize = !0, c && c(), c = Gu(m, 250), Se.hasAnimatedSinceResize && (Se.hasAnimatedSinceResize = !1, this.nodes.forEach(ki)));
4665
+ v !== f && (f = v, this.root.updateBlockedByResize = !0, c && c(), c = Gu(m, 250), Se.hasAnimatedSinceResize && (Se.hasAnimatedSinceResize = !1, this.nodes.forEach(Ai)));
4666
4666
  });
4667
4667
  }
4668
4668
  a && this.root.registerSharedNode(a, this), this.options.animate !== !1 && u && (a || l) && this.addEventListener("didUpdate", ({ delta: c, hasLayoutChanged: f, hasRelativeLayoutChanged: m, layout: v }) => {
@@ -4670,7 +4670,7 @@ function vo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4670
4670
  this.target = void 0, this.relativeTarget = void 0;
4671
4671
  return;
4672
4672
  }
4673
- const w = this.options.transition || u.getDefaultTransition() || gd, { onLayoutAnimationStart: C, onLayoutAnimationComplete: P } = u.getProps(), h = !this.targetLayout || !yo(this.targetLayout, v), y = !f && m;
4673
+ const w = this.options.transition || u.getDefaultTransition() || gd, { onLayoutAnimationStart: C, onLayoutAnimationComplete: P } = u.getProps(), h = !this.targetLayout || !bo(this.targetLayout, v), y = !f && m;
4674
4674
  if (this.options.layoutRoot || this.resumeFrom || y || f && (h || !this.currentAnimation)) {
4675
4675
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
4676
4676
  const d = {
@@ -4680,7 +4680,7 @@ function vo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4680
4680
  };
4681
4681
  (u.shouldReduceMotion || this.options.layoutRoot) && (d.delay = 0, d.type = !1), this.startAnimation(d), this.setAnimationOrigin(c, y);
4682
4682
  } else
4683
- f || ki(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
4683
+ f || Ai(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
4684
4684
  this.targetLayout = v;
4685
4685
  });
4686
4686
  }
@@ -4715,7 +4715,7 @@ function vo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4715
4715
  this.options.onExitComplete && this.options.onExitComplete();
4716
4716
  return;
4717
4717
  }
4718
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && bo(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
4718
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && vo(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
4719
4719
  return;
4720
4720
  this.isLayoutDirty = !0;
4721
4721
  for (let c = 0; c < this.path.length; c++) {
@@ -4730,14 +4730,14 @@ function vo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4730
4730
  }
4731
4731
  update() {
4732
4732
  if (this.updateScheduled = !1, this.isUpdateBlocked()) {
4733
- this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Pi);
4733
+ this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Si);
4734
4734
  return;
4735
4735
  }
4736
4736
  if (this.animationId <= this.animationCommitId) {
4737
- this.nodes.forEach(Si);
4737
+ this.nodes.forEach(ki);
4738
4738
  return;
4739
4739
  }
4740
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(cd), this.nodes.forEach(id), this.nodes.forEach(rd)) : this.nodes.forEach(Si), this.clearAllSnapshots();
4740
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(cd), this.nodes.forEach(id), this.nodes.forEach(rd)) : this.nodes.forEach(ki), this.clearAllSnapshots();
4741
4741
  const a = Y.now();
4742
4742
  $.delta = dt(0, 1e3 / 60, a - $.timestamp), $.timestamp = a, $.isProcessing = !0, Fe.update.process($), Fe.preRender.process($), Fe.render.process($), $.isProcessing = !1;
4743
4743
  }
@@ -4788,7 +4788,7 @@ function vo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4788
4788
  resetTransform() {
4789
4789
  if (!i)
4790
4790
  return;
4791
- const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !go(this.projectionDelta), l = this.getTransformTemplate(), u = l ? l(this.latestValues, "") : void 0, c = u !== this.prevTransformTemplateValue;
4791
+ const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !yo(this.projectionDelta), l = this.getTransformTemplate(), u = l ? l(this.latestValues, "") : void 0, c = u !== this.prevTransformTemplateValue;
4792
4792
  r && this.instance && (a || Tt(this.latestValues) || c) && (i(this.instance, u), this.shouldResetTransform = !1, this.scheduleRender());
4793
4793
  }
4794
4794
  measure(r = !0) {
@@ -4844,9 +4844,9 @@ function vo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4844
4844
  continue;
4845
4845
  yn(u.latestValues) && u.updateSnapshot();
4846
4846
  const c = O(), f = u.measurePageBox();
4847
- tt(c, f), bi(a, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, c);
4847
+ tt(c, f), vi(a, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, c);
4848
4848
  }
4849
- return Tt(this.latestValues) && bi(a, this.latestValues), a;
4849
+ return Tt(this.latestValues) && vi(a, this.latestValues), a;
4850
4850
  }
4851
4851
  setTargetDelta(r) {
4852
4852
  this.targetDelta = r, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -4876,7 +4876,7 @@ function vo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4876
4876
  const m = this.getClosestProjectingParent();
4877
4877
  m && m.layout && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget = O(), this.relativeTargetOrigin = O(), Zt(this.relativeTargetOrigin, this.layout.layoutBox, m.layout.layoutBox), tt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4878
4878
  }
4879
- if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = O(), this.targetWithTransforms = O()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Pu(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : tt(this.target, this.layout.layoutBox), qr(this.target, this.targetDelta)) : tt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
4879
+ if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = O(), this.targetWithTransforms = O()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Pu(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : tt(this.target, this.layout.layoutBox), Zr(this.target, this.targetDelta)) : tt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
4880
4880
  this.attemptToResolveRelativeTarget = !1;
4881
4881
  const m = this.getClosestProjectingParent();
4882
4882
  m && !!m.resumingFrom == !!this.resumingFrom && !m.options.layoutScroll && m.target && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget = O(), this.relativeTargetOrigin = O(), Zt(this.relativeTargetOrigin, this.target, m.target), tt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
@@ -4884,7 +4884,7 @@ function vo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4884
4884
  }
4885
4885
  }
4886
4886
  getClosestProjectingParent() {
4887
- if (!(!this.parent || yn(this.parent.latestValues) || Yr(this.parent.latestValues)))
4887
+ if (!(!this.parent || yn(this.parent.latestValues) || qr(this.parent.latestValues)))
4888
4888
  return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
4889
4889
  }
4890
4890
  isProjecting() {
@@ -4906,7 +4906,7 @@ function vo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4906
4906
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
4907
4907
  return;
4908
4908
  }
4909
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (mi(this.prevProjectionDelta.x, this.projectionDelta.x), mi(this.prevProjectionDelta.y, this.projectionDelta.y)), qt(this.projectionDelta, this.layoutCorrected, v, this.latestValues), (this.treeScale.x !== f || this.treeScale.y !== m || !Ci(this.projectionDelta.x, this.prevProjectionDelta.x) || !Ci(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", v));
4909
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (gi(this.prevProjectionDelta.x, this.projectionDelta.x), gi(this.prevProjectionDelta.y, this.projectionDelta.y)), qt(this.projectionDelta, this.layoutCorrected, v, this.latestValues), (this.treeScale.x !== f || this.treeScale.y !== m || !Pi(this.projectionDelta.x, this.prevProjectionDelta.x) || !Pi(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", v));
4910
4910
  }
4911
4911
  hide() {
4912
4912
  this.isVisible = !1;
@@ -4932,7 +4932,7 @@ function vo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4932
4932
  let d;
4933
4933
  this.mixTargetDelta = (p) => {
4934
4934
  const g = p / 1e3;
4935
- Ai(f.x, r.x, g), Ai(f.y, r.y, g), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Zt(m, this.layout.layoutBox, this.relativeParent.layout.layoutBox), pd(this.relativeTarget, this.relativeTargetOrigin, m, g), d && Qu(this.relativeTarget, d) && (this.isProjectionDirty = !1), d || (d = O()), tt(d, this.relativeTarget)), C && (this.animationValues = c, Hu(c, u, this.latestValues, g, y, h)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = g;
4935
+ Mi(f.x, r.x, g), Mi(f.y, r.y, g), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Zt(m, this.layout.layoutBox, this.relativeParent.layout.layoutBox), pd(this.relativeTarget, this.relativeTargetOrigin, m, g), d && Qu(this.relativeTarget, d) && (this.isProjectionDirty = !1), d || (d = O()), tt(d, this.relativeTarget)), C && (this.animationValues = c, Hu(c, u, this.latestValues, g, y, h)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = g;
4936
4936
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
4937
4937
  }
4938
4938
  startAnimation(r) {
@@ -4964,7 +4964,7 @@ function vo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4964
4964
  const r = this.getLead();
4965
4965
  let { targetWithTransforms: a, target: l, layout: u, latestValues: c } = r;
4966
4966
  if (!(!a || !l || !u)) {
4967
- if (this !== r && this.layout && u && xo(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
4967
+ if (this !== r && this.layout && u && wo(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
4968
4968
  l = this.target || O();
4969
4969
  const f = X(this.layout.layoutBox.x);
4970
4970
  l.x.min = r.target.x.min, l.x.max = l.x.min + f;
@@ -5066,7 +5066,7 @@ function vo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5066
5066
  }
5067
5067
  // Only run on root
5068
5068
  resetTree() {
5069
- this.root.nodes.forEach((r) => r.currentAnimation?.stop()), this.root.nodes.forEach(Pi), this.root.sharedNodes.clear();
5069
+ this.root.nodes.forEach((r) => r.currentAnimation?.stop()), this.root.nodes.forEach(Si), this.root.sharedNodes.clear();
5070
5070
  }
5071
5071
  };
5072
5072
  }
@@ -5080,7 +5080,7 @@ function rd(t) {
5080
5080
  i === "size" ? et((c) => {
5081
5081
  const f = o ? e.measuredBox[c] : e.layoutBox[c], m = X(f);
5082
5082
  f.min = n[c].min, f.max = f.min + m;
5083
- }) : xo(i, e.layoutBox, n) && et((c) => {
5083
+ }) : wo(i, e.layoutBox, n) && et((c) => {
5084
5084
  const f = o ? e.measuredBox[c] : e.layoutBox[c], m = X(n[c]);
5085
5085
  f.max = f.min + m, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[c].max = t.relativeTarget[c].min + m);
5086
5086
  });
@@ -5088,7 +5088,7 @@ function rd(t) {
5088
5088
  qt(r, n, e.layoutBox);
5089
5089
  const a = Kt();
5090
5090
  o ? qt(a, t.applyTransform(s, !0), e.measuredBox) : qt(a, n, e.layoutBox);
5091
- const l = !go(r);
5091
+ const l = !yo(r);
5092
5092
  let u = !1;
5093
5093
  if (!t.resumeFrom) {
5094
5094
  const c = t.getClosestProjectingParent();
@@ -5098,7 +5098,7 @@ function rd(t) {
5098
5098
  const v = O();
5099
5099
  Zt(v, e.layoutBox, f.layoutBox);
5100
5100
  const w = O();
5101
- Zt(w, n, m.layoutBox), yo(v, w) || (u = !0), c.options.layoutRoot && (t.relativeTarget = w, t.relativeTargetOrigin = v, t.relativeParent = c);
5101
+ Zt(w, n, m.layoutBox), bo(v, w) || (u = !0), c.options.layoutRoot && (t.relativeTarget = w, t.relativeTargetOrigin = v, t.relativeParent = c);
5102
5102
  }
5103
5103
  }
5104
5104
  }
@@ -5125,17 +5125,17 @@ function ad(t) {
5125
5125
  function ld(t) {
5126
5126
  t.clearSnapshot();
5127
5127
  }
5128
- function Pi(t) {
5128
+ function Si(t) {
5129
5129
  t.clearMeasurements();
5130
5130
  }
5131
- function Si(t) {
5131
+ function ki(t) {
5132
5132
  t.isLayoutDirty = !1;
5133
5133
  }
5134
5134
  function cd(t) {
5135
5135
  const { visualElement: e } = t.options;
5136
5136
  e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
5137
5137
  }
5138
- function ki(t) {
5138
+ function Ai(t) {
5139
5139
  t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
5140
5140
  }
5141
5141
  function ud(t) {
@@ -5150,14 +5150,14 @@ function hd(t) {
5150
5150
  function fd(t) {
5151
5151
  t.removeLeadSnapshot();
5152
5152
  }
5153
- function Ai(t, e, n) {
5153
+ function Mi(t, e, n) {
5154
5154
  t.translate = I(e.translate, 0, n), t.scale = I(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
5155
5155
  }
5156
- function Mi(t, e, n, s) {
5156
+ function Vi(t, e, n, s) {
5157
5157
  t.min = I(e.min, n.min, s), t.max = I(e.max, n.max, s);
5158
5158
  }
5159
5159
  function pd(t, e, n, s) {
5160
- Mi(t.x, e.x, n.x, s), Mi(t.y, e.y, n.y, s);
5160
+ Vi(t.x, e.x, n.x, s), Vi(t.y, e.y, n.y, s);
5161
5161
  }
5162
5162
  function md(t) {
5163
5163
  return t.animationValues && t.animationValues.opacityExit !== void 0;
@@ -5165,20 +5165,20 @@ function md(t) {
5165
5165
  const gd = {
5166
5166
  duration: 0.45,
5167
5167
  ease: [0.4, 0, 0.1, 1]
5168
- }, Vi = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Ei = Vi("applewebkit/") && !Vi("chrome/") ? Math.round : st;
5169
- function Di(t) {
5170
- t.min = Ei(t.min), t.max = Ei(t.max);
5168
+ }, Ei = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Di = Ei("applewebkit/") && !Ei("chrome/") ? Math.round : st;
5169
+ function Ri(t) {
5170
+ t.min = Di(t.min), t.max = Di(t.max);
5171
5171
  }
5172
5172
  function yd(t) {
5173
- Di(t.x), Di(t.y);
5173
+ Ri(t.x), Ri(t.y);
5174
5174
  }
5175
- function xo(t, e, n) {
5176
- return t === "position" || t === "preserve-aspect" && !Cu(Ti(e), Ti(n), 0.2);
5175
+ function wo(t, e, n) {
5176
+ return t === "position" || t === "preserve-aspect" && !Cu(Ci(e), Ci(n), 0.2);
5177
5177
  }
5178
5178
  function bd(t) {
5179
5179
  return t !== t.root && t.scroll?.wasRoot;
5180
5180
  }
5181
- const vd = vo({
5181
+ const vd = xo({
5182
5182
  attachResizeListener: (t, e) => ie(t, "resize", e),
5183
5183
  measureScroll: () => ({
5184
5184
  x: document.documentElement.scrollLeft || document.body.scrollLeft,
@@ -5187,7 +5187,7 @@ const vd = vo({
5187
5187
  checkIsScrollRoot: () => !0
5188
5188
  }), Je = {
5189
5189
  current: void 0
5190
- }, wo = vo({
5190
+ }, To = xo({
5191
5191
  measureScroll: (t) => ({
5192
5192
  x: t.scrollLeft,
5193
5193
  y: t.scrollTop
@@ -5209,11 +5209,11 @@ const vd = vo({
5209
5209
  },
5210
5210
  drag: {
5211
5211
  Feature: Bu,
5212
- ProjectionNode: wo,
5213
- MeasureLayout: fo
5212
+ ProjectionNode: To,
5213
+ MeasureLayout: po
5214
5214
  }
5215
5215
  };
5216
- function Ri(t, e, n) {
5216
+ function Li(t, e, n) {
5217
5217
  const { props: s } = t;
5218
5218
  t.animationState && s.whileHover && t.animationState.setActive("whileHover", n === "Start");
5219
5219
  const i = "onHover" + n, o = s[i];
@@ -5222,7 +5222,7 @@ function Ri(t, e, n) {
5222
5222
  class wd extends vt {
5223
5223
  mount() {
5224
5224
  const { current: e } = this.node;
5225
- e && (this.unmount = zl(e, (n, s) => (Ri(this.node, s, "Start"), (i) => Ri(this.node, i, "End"))));
5225
+ e && (this.unmount = zl(e, (n, s) => (Li(this.node, s, "Start"), (i) => Li(this.node, i, "End"))));
5226
5226
  }
5227
5227
  unmount() {
5228
5228
  }
@@ -5249,7 +5249,7 @@ class Td extends vt {
5249
5249
  unmount() {
5250
5250
  }
5251
5251
  }
5252
- function Li(t, e, n) {
5252
+ function Ki(t, e, n) {
5253
5253
  const { props: s } = t;
5254
5254
  if (t.current instanceof HTMLButtonElement && t.current.disabled)
5255
5255
  return;
@@ -5260,7 +5260,7 @@ function Li(t, e, n) {
5260
5260
  class Cd extends vt {
5261
5261
  mount() {
5262
5262
  const { current: e } = this.node;
5263
- e && (this.unmount = Hl(e, (n, s) => (Li(this.node, s, "Start"), (i, { success: o }) => Li(this.node, i, o ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
5263
+ e && (this.unmount = Hl(e, (n, s) => (Ki(this.node, s, "Start"), (i, { success: o }) => Ki(this.node, i, o ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
5264
5264
  }
5265
5265
  unmount() {
5266
5266
  }
@@ -5337,8 +5337,8 @@ const Dd = {
5337
5337
  }
5338
5338
  }, Rd = {
5339
5339
  layout: {
5340
- ProjectionNode: wo,
5341
- MeasureLayout: fo
5340
+ ProjectionNode: To,
5341
+ MeasureLayout: po
5342
5342
  }
5343
5343
  }, Ld = {
5344
5344
  ...yu,
@@ -5353,17 +5353,17 @@ const Dd = {
5353
5353
  return {
5354
5354
  getClassGroupId: (r) => {
5355
5355
  const a = r.split(us);
5356
- return a[0] === "" && a.length !== 1 && a.shift(), To(a, e) || Id(r);
5356
+ return a[0] === "" && a.length !== 1 && a.shift(), Co(a, e) || Id(r);
5357
5357
  },
5358
5358
  getConflictingClassGroupIds: (r, a) => {
5359
5359
  const l = n[r] || [];
5360
5360
  return a && s[r] ? [...l, ...s[r]] : l;
5361
5361
  }
5362
5362
  };
5363
- }, To = (t, e) => {
5363
+ }, Co = (t, e) => {
5364
5364
  if (t.length === 0)
5365
5365
  return e.classGroupId;
5366
- const n = t[0], s = e.nextPart.get(n), i = s ? To(t.slice(1), s) : void 0;
5366
+ const n = t[0], s = e.nextPart.get(n), i = s ? Co(t.slice(1), s) : void 0;
5367
5367
  if (i)
5368
5368
  return i;
5369
5369
  if (e.validators.length === 0)
@@ -5372,9 +5372,9 @@ const Dd = {
5372
5372
  return e.validators.find(({
5373
5373
  validator: r
5374
5374
  }) => r(o))?.classGroupId;
5375
- }, Ki = /^\[(.+)\]$/, Id = (t) => {
5376
- if (Ki.test(t)) {
5377
- const e = Ki.exec(t)[1], n = e?.substring(0, e.indexOf(":"));
5375
+ }, _i = /^\[(.+)\]$/, Id = (t) => {
5376
+ if (_i.test(t)) {
5377
+ const e = _i.exec(t)[1], n = e?.substring(0, e.indexOf(":"));
5378
5378
  if (n)
5379
5379
  return "arbitrary.." + n;
5380
5380
  }
@@ -5392,7 +5392,7 @@ const Dd = {
5392
5392
  }, Sn = (t, e, n, s) => {
5393
5393
  t.forEach((i) => {
5394
5394
  if (typeof i == "string") {
5395
- const o = i === "" ? e : _i(e, i);
5395
+ const o = i === "" ? e : Ii(e, i);
5396
5396
  o.classGroupId = n;
5397
5397
  return;
5398
5398
  }
@@ -5408,10 +5408,10 @@ const Dd = {
5408
5408
  return;
5409
5409
  }
5410
5410
  Object.entries(i).forEach(([o, r]) => {
5411
- Sn(r, _i(e, o), n, s);
5411
+ Sn(r, Ii(e, o), n, s);
5412
5412
  });
5413
5413
  });
5414
- }, _i = (t, e) => {
5414
+ }, Ii = (t, e) => {
5415
5415
  let n = t;
5416
5416
  return e.split(us).forEach((s) => {
5417
5417
  n.nextPart.has(s) || n.nextPart.set(s, {
@@ -5555,15 +5555,15 @@ const Dd = {
5555
5555
  function Hd() {
5556
5556
  let t = 0, e, n, s = "";
5557
5557
  for (; t < arguments.length; )
5558
- (e = arguments[t++]) && (n = Co(e)) && (s && (s += " "), s += n);
5558
+ (e = arguments[t++]) && (n = Po(e)) && (s && (s += " "), s += n);
5559
5559
  return s;
5560
5560
  }
5561
- const Co = (t) => {
5561
+ const Po = (t) => {
5562
5562
  if (typeof t == "string")
5563
5563
  return t;
5564
5564
  let e, n = "";
5565
5565
  for (let s = 0; s < t.length; s++)
5566
- t[s] && (e = Co(t[s])) && (n && (n += " "), n += e);
5566
+ t[s] && (e = Po(t[s])) && (n && (n += " "), n += e);
5567
5567
  return n;
5568
5568
  };
5569
5569
  function Xd(t, ...e) {
@@ -5586,18 +5586,18 @@ function Xd(t, ...e) {
5586
5586
  const j = (t) => {
5587
5587
  const e = (n) => n[t] || [];
5588
5588
  return e.isThemeGetter = !0, e;
5589
- }, Po = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, So = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Yd = /^\d+\/\d+$/, qd = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Zd = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Jd = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Qd = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, th = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Mt = (t) => Yd.test(t), D = (t) => !!t && !Number.isNaN(Number(t)), mt = (t) => !!t && Number.isInteger(Number(t)), tn = (t) => t.endsWith("%") && D(t.slice(0, -1)), ct = (t) => qd.test(t), eh = () => !0, nh = (t) => (
5589
+ }, So = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ko = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Yd = /^\d+\/\d+$/, qd = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Zd = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Jd = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Qd = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, th = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Mt = (t) => Yd.test(t), D = (t) => !!t && !Number.isNaN(Number(t)), mt = (t) => !!t && Number.isInteger(Number(t)), tn = (t) => t.endsWith("%") && D(t.slice(0, -1)), ct = (t) => qd.test(t), eh = () => !0, nh = (t) => (
5590
5590
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
5591
5591
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
5592
5592
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
5593
5593
  Zd.test(t) && !Jd.test(t)
5594
- ), ko = () => !1, sh = (t) => Qd.test(t), ih = (t) => th.test(t), rh = (t) => !S(t) && !k(t), oh = (t) => zt(t, Vo, ko), S = (t) => Po.test(t), wt = (t) => zt(t, Eo, nh), en = (t) => zt(t, dh, D), Ii = (t) => zt(t, Ao, ko), ah = (t) => zt(t, Mo, ih), ve = (t) => zt(t, Do, sh), k = (t) => So.test(t), Wt = (t) => $t(t, Eo), lh = (t) => $t(t, hh), Bi = (t) => $t(t, Ao), ch = (t) => $t(t, Vo), uh = (t) => $t(t, Mo), xe = (t) => $t(t, Do, !0), zt = (t, e, n) => {
5595
- const s = Po.exec(t);
5594
+ ), Ao = () => !1, sh = (t) => Qd.test(t), ih = (t) => th.test(t), rh = (t) => !S(t) && !k(t), oh = (t) => zt(t, Eo, Ao), S = (t) => So.test(t), wt = (t) => zt(t, Do, nh), en = (t) => zt(t, dh, D), Bi = (t) => zt(t, Mo, Ao), ah = (t) => zt(t, Vo, ih), ve = (t) => zt(t, Ro, sh), k = (t) => ko.test(t), Wt = (t) => $t(t, Do), lh = (t) => $t(t, hh), Oi = (t) => $t(t, Mo), ch = (t) => $t(t, Eo), uh = (t) => $t(t, Vo), xe = (t) => $t(t, Ro, !0), zt = (t, e, n) => {
5595
+ const s = So.exec(t);
5596
5596
  return s ? s[1] ? e(s[1]) : n(s[2]) : !1;
5597
5597
  }, $t = (t, e, n = !1) => {
5598
- const s = So.exec(t);
5598
+ const s = ko.exec(t);
5599
5599
  return s ? s[1] ? e(s[1]) : n : !1;
5600
- }, Ao = (t) => t === "position" || t === "percentage", Mo = (t) => t === "image" || t === "url", Vo = (t) => t === "length" || t === "size" || t === "bg-size", Eo = (t) => t === "length", dh = (t) => t === "number", hh = (t) => t === "family-name", Do = (t) => t === "shadow", fh = () => {
5600
+ }, Mo = (t) => t === "position" || t === "percentage", Vo = (t) => t === "image" || t === "url", Eo = (t) => t === "length" || t === "size" || t === "bg-size", Do = (t) => t === "length", dh = (t) => t === "number", hh = (t) => t === "family-name", Ro = (t) => t === "shadow", fh = () => {
5601
5601
  const t = j("color"), e = j("font"), n = j("text"), s = j("font-weight"), i = j("tracking"), o = j("leading"), r = j("breakpoint"), a = j("container"), l = j("spacing"), u = j("radius"), c = j("shadow"), f = j("inset-shadow"), m = j("text-shadow"), v = j("drop-shadow"), w = j("blur"), C = j("perspective"), P = j("aspect"), h = j("ease"), y = j("animate"), d = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], p = () => [
5602
5602
  "center",
5603
5603
  "top",
@@ -5618,7 +5618,7 @@ const j = (t) => {
5618
5618
  "left-bottom"
5619
5619
  ], g = () => [...p(), k, S], x = () => ["auto", "hidden", "clip", "visible", "scroll"], T = () => ["auto", "contain", "none"], b = () => [k, S, l], V = () => [Mt, "full", "auto", ...b()], E = () => [mt, "none", "subgrid", k, S], L = () => ["auto", {
5620
5620
  span: ["full", mt, k, S]
5621
- }, mt, k, S], N = () => [mt, "auto", k, S], pt = () => ["auto", "min", "max", "fr", k, S], q = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Z = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], B = () => ["auto", ...b()], R = () => [Mt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...b()], A = () => [t, k, S], Q = () => [...p(), Bi, Ii, {
5621
+ }, mt, k, S], N = () => [mt, "auto", k, S], pt = () => ["auto", "min", "max", "fr", k, S], q = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Z = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], B = () => ["auto", ...b()], R = () => [Mt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...b()], A = () => [t, k, S], Q = () => [...p(), Oi, Bi, {
5622
5622
  position: [k, S]
5623
5623
  }], lt = () => ["no-repeat", {
5624
5624
  repeat: ["", "x", "y", "space", "round"]
@@ -5632,7 +5632,7 @@ const j = (t) => {
5632
5632
  u,
5633
5633
  k,
5634
5634
  S
5635
- ], J = () => ["", D, Wt, wt], ue = () => ["solid", "dashed", "dotted", "double"], ds = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => [D, tn, Bi, Ii], hs = () => [
5635
+ ], J = () => ["", D, Wt, wt], ue = () => ["solid", "dashed", "dotted", "double"], ds = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => [D, tn, Oi, Bi], hs = () => [
5636
5636
  // Deprecated since Tailwind CSS v4.0.0
5637
5637
  "",
5638
5638
  "none",
@@ -8067,7 +8067,7 @@ const j = (t) => {
8067
8067
  },
8068
8068
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
8069
8069
  };
8070
- }, Oi = /* @__PURE__ */ Xd(fh), bh = ({ modals: t, initialParams: e }) => {
8070
+ }, Fi = /* @__PURE__ */ Xd(fh), bh = ({ modals: t, initialParams: e }) => {
8071
8071
  const n = Oe((r) => r.modals), s = Oe((r) => r.closeModal), i = Oe((r) => r.active), o = ut(null);
8072
8072
  return Jt(() => {
8073
8073
  n.length ? o.current?.classList.add("react-motion-modal__opening") : o.current?.classList.remove("react-motion-modal__opening");
@@ -8077,8 +8077,8 @@ const j = (t) => {
8077
8077
  const r = () => {
8078
8078
  s();
8079
8079
  };
8080
- return vs.bind(["escape"], r), () => vs.unbind(["escape"], r);
8081
- }, [n, s, e?.closeOnPressEsc]), o.current && jo(
8080
+ return xs.bind(["escape"], r), () => xs.unbind(["escape"], r);
8081
+ }, [n, s, e?.closeOnPressEsc]), o.current && No(
8082
8082
  /* @__PURE__ */ nt("div", { id: "react-motion-modal", children: /* @__PURE__ */ nt(ec, { initial: !0, mode: "sync", children: n?.map((r, a) => {
8083
8083
  const l = t[r.name], u = r.params || e, c = u?.animate || e?.animate, f = u?.onClose || e?.onClose, m = u?.container || e?.container, v = u?.body || e?.body, w = u?.closeOnClickOutside || e?.closeOnClickOutside;
8084
8084
  return /* @__PURE__ */ nt(
@@ -8091,8 +8091,13 @@ const j = (t) => {
8091
8091
  style: {
8092
8092
  zIndex: 100 + a
8093
8093
  },
8094
- className: Oi(
8095
- "fixed top-0 left-0 right-0 bottom-0 bg-black/40 backdrop-blur-sm",
8094
+ className: Fi(
8095
+ ys(
8096
+ "fixed top-0 left-0 right-0 bottom-0 bg-black/40 backdrop-blur-sm",
8097
+ {
8098
+ "react-motion-modal__active": i?.id === r.id
8099
+ }
8100
+ ),
8096
8101
  m?.className
8097
8102
  ),
8098
8103
  onClick: () => {
@@ -8101,12 +8106,12 @@ const j = (t) => {
8101
8106
  children: /* @__PURE__ */ nt(
8102
8107
  "div",
8103
8108
  {
8104
- className: Oi(
8105
- qo(
8106
- "p-5 absolute max-h-screen max-w-screen overflow-auto top-1/2 -translate-y-1/2",
8109
+ className: Fi(
8110
+ ys(
8111
+ "p-5 absolute max-h-screen max-w-screen top-1/2 -translate-y-1/2",
8107
8112
  "lg:left-1/2 lg:-translate-x-1/2",
8108
8113
  {
8109
- "react-motion-modal__active": i?.id === r.id
8114
+ "overflow-auto": i?.id === r.id
8110
8115
  }
8111
8116
  ),
8112
8117
  v?.className