react-motion-modal 1.2.2 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,27 +1,35 @@
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-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size: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-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--font-weight-semibold:600;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--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%}.z-50{z-index: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}}.mx-auto{margin-inline:auto}.mt-4{margin-top:calc(var(--spacing)*4)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.flex{display:flex}.max-h-screen{max-height:100vh}.max-w-screen{max-width:100vw}.max-w-sm{max-width:var(--container-sm)}.-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)}.gap-3{gap:calc(var(--spacing)*3)}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-lg{border-radius:var(--radius-lg)}.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-blue-500{background-color:var(--color-blue-500)}.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)}.p-6{padding:calc(var(--spacing)*6)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-2{padding-block:calc(var(--spacing)*2)}.py-10{padding-block:calc(var(--spacing)*10)}.text-center{text-align:center}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.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-gray-600{color:var(--color-gray-600)}.text-red-500{color:var(--color-red-500)}.text-white{color:var(--color-white)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.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,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@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\\:text-gray-800:hover{color:var(--color-gray-800)}.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)}}}@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-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{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-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size: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-slate-100:oklch(96.8% .007 247.896);--color-slate-900:oklch(20.8% .042 265.755);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-3xl:48rem;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-semibold:600;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--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)}.right-auto{right:auto}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-auto{left:auto}.z-50{z-index: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}}.mx-auto{margin-inline:auto}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.flex{display:flex}.grid{display:grid}.max-h-screen{max-height:100vh}.min-h-screen{min-height:100vh}.w-full{width:100%}.max-w-3xl{max-width:var(--container-3xl)}.max-w-screen{max-width:100vw}.max-w-sm{max-width:var(--container-sm)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.items-center{align-items:center}.justify-end{justify-content:flex-end}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-lg{border-radius:var(--radius-lg)}.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-blue-500{background-color:var(--color-blue-500)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-white{background-color:var(--color-white)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-10{padding-block:calc(var(--spacing)*10)}.py-28{padding-block:calc(var(--spacing)*28)}.text-center{text-align:center}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.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-gray-600{color:var(--color-gray-600)}.text-red-500{color:var(--color-red-500)}.text-slate-900{color:var(--color-slate-900)}.text-white{color:var(--color-white)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.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,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@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\\:text-gray-800:hover{color:var(--color-gray-800)}}@media (min-width:40rem){.sm\\:w-96{width:calc(var(--spacing)*96)}.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@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)}}}@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-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{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 Dn from "react";
3
- import fe, { createContext as Ot, useRef as ut, useLayoutEffect as _o, useEffect as Re, useId as Rn, useContext as G, useInsertionEffect as Ui, useMemo as At, useCallback as zi, Children as Bo, isValidElement as Oo, useState as gs, Fragment as $i, createElement as Fo, forwardRef as jo, Component as No } from "react";
4
- import { jsx as Q, Fragment as Uo, jsxs as Gi } from "react/jsx-runtime";
3
+ import pe, { createContext as Ft, useRef as dt, useLayoutEffect as Io, useEffect as Re, useId as Rn, useContext as $, useInsertionEffect as Ui, useMemo as Mt, useCallback as zi, Children as Oo, isValidElement as Bo, useState as gs, Fragment as Gi, createElement as Fo, forwardRef as jo, Component as No } from "react";
4
+ import { jsx as Q, Fragment as Uo, jsxs as $i } from "react/jsx-runtime";
5
5
  import { createPortal as zo } from "react-dom";
6
- const pe = {
6
+ const et = {
7
7
  TOP: "top",
8
+ TOP_LEFT: "top-left",
9
+ TOP_CENTER: "top-center",
10
+ TOP_RIGHT: "top-right",
11
+ CENTER_LEFT: "center-left",
8
12
  CENTER: "center",
9
- BOTTOM: "bottom"
13
+ CENTER_RIGHT: "center-right",
14
+ BOTTOM: "bottom",
15
+ BOTTOM_LEFT: "bottom-left",
16
+ BOTTOM_CENTER: "bottom-center",
17
+ BOTTOM_RIGHT: "bottom-right"
10
18
  }, z = [];
11
19
  for (let t = 0; t < 256; ++t)
12
20
  z.push((t + 256).toString(16).slice(1));
13
- function $o(t, e = 0) {
21
+ function Go(t, e = 0) {
14
22
  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();
15
23
  }
16
24
  let Fe;
17
- const Go = new Uint8Array(16);
25
+ const $o = new Uint8Array(16);
18
26
  function Wo() {
19
27
  if (!Fe) {
20
28
  if (typeof crypto > "u" || !crypto.getRandomValues)
21
29
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
22
30
  Fe = crypto.getRandomValues.bind(crypto);
23
31
  }
24
- return Fe(Go);
32
+ return Fe($o);
25
33
  }
26
34
  const Ho = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ys = { randomUUID: Ho };
27
35
  function Xo(t, e, n) {
@@ -31,7 +39,7 @@ function Xo(t, e, n) {
31
39
  const s = t.random ?? t.rng?.() ?? Wo();
32
40
  if (s.length < 16)
33
41
  throw new Error("Random bytes length must be >= 16");
34
- return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, $o(s);
42
+ return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, Go(s);
35
43
  }
36
44
  const bs = (t) => {
37
45
  let e;
@@ -45,12 +53,12 @@ const bs = (t) => {
45
53
  return a;
46
54
  }, Yo = (t) => t ? bs(t) : bs, qo = (t) => t;
47
55
  function Zo(t, e = qo) {
48
- const n = fe.useSyncExternalStore(
56
+ const n = pe.useSyncExternalStore(
49
57
  t.subscribe,
50
- fe.useCallback(() => e(t.getState()), [t, e]),
51
- fe.useCallback(() => e(t.getInitialState()), [t, e])
58
+ pe.useCallback(() => e(t.getState()), [t, e]),
59
+ pe.useCallback(() => e(t.getInitialState()), [t, e])
52
60
  );
53
- return fe.useDebugValue(n), n;
61
+ return pe.useDebugValue(n), n;
54
62
  }
55
63
  const vs = (t) => {
56
64
  const e = Yo(t), n = (s) => Zo(e, s);
@@ -102,43 +110,43 @@ function je() {
102
110
  for (var t, e, n = 0, s = "", i = arguments.length; n < i; n++) (t = arguments[n]) && (e = Wi(t)) && (s && (s += " "), s += e);
103
111
  return s;
104
112
  }
105
- const Ln = Ot({});
113
+ const Ln = Ft({});
106
114
  function Kn(t) {
107
- const e = ut(null);
115
+ const e = dt(null);
108
116
  return e.current === null && (e.current = t()), e.current;
109
117
  }
110
- const In = typeof window < "u", Hi = In ? _o : Re, Le = /* @__PURE__ */ Ot(null);
111
- function _n(t, e) {
118
+ const _n = typeof window < "u", Hi = _n ? Io : Re, Le = /* @__PURE__ */ Ft(null);
119
+ function In(t, e) {
112
120
  t.indexOf(e) === -1 && t.push(e);
113
121
  }
114
- function Bn(t, e) {
122
+ function On(t, e) {
115
123
  const n = t.indexOf(e);
116
124
  n > -1 && t.splice(n, 1);
117
125
  }
118
- const dt = (t, e, n) => n > e ? e : n < t ? t : n;
126
+ const ht = (t, e, n) => n > e ? e : n < t ? t : n;
119
127
  function on(t, e) {
120
128
  return e ? `${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}` : t;
121
129
  }
122
- let Ft = () => {
123
- }, ht = () => {
130
+ let jt = () => {
131
+ }, ft = () => {
124
132
  };
125
- process.env.NODE_ENV !== "production" && (Ft = (t, e, n) => {
133
+ process.env.NODE_ENV !== "production" && (jt = (t, e, n) => {
126
134
  !t && typeof console < "u" && console.warn(on(e, n));
127
- }, ht = (t, e, n) => {
135
+ }, ft = (t, e, n) => {
128
136
  if (!t)
129
137
  throw new Error(on(e, n));
130
138
  });
131
- const ft = {}, Xi = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
139
+ const pt = {}, Xi = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
132
140
  function Yi(t) {
133
141
  return typeof t == "object" && t !== null;
134
142
  }
135
143
  const qi = (t) => /^0[^.\s]+$/u.test(t);
136
144
  // @__NO_SIDE_EFFECTS__
137
- function On(t) {
145
+ function Bn(t) {
138
146
  let e;
139
147
  return () => (e === void 0 && (e = t()), e);
140
148
  }
141
- const st = /* @__NO_SIDE_EFFECTS__ */ (t) => t, Qo = (t, e) => (n) => e(t(n)), ie = (...t) => t.reduce(Qo), Jt = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
149
+ const it = /* @__NO_SIDE_EFFECTS__ */ (t) => t, Qo = (t, e) => (n) => e(t(n)), re = (...t) => t.reduce(Qo), Qt = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
142
150
  const s = e - t;
143
151
  return s === 0 ? 1 : (n - t) / s;
144
152
  };
@@ -147,7 +155,7 @@ class Fn {
147
155
  this.subscriptions = [];
148
156
  }
149
157
  add(e) {
150
- return _n(this.subscriptions, e), () => Bn(this.subscriptions, e);
158
+ return In(this.subscriptions, e), () => On(this.subscriptions, e);
151
159
  }
152
160
  notify(e, n, s) {
153
161
  const i = this.subscriptions.length;
@@ -167,7 +175,7 @@ class Fn {
167
175
  this.subscriptions.length = 0;
168
176
  }
169
177
  }
170
- const rt = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, ot = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3;
178
+ const ot = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, at = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3;
171
179
  function Zi(t, e) {
172
180
  return e ? t * (1e3 / e) : 0;
173
181
  }
@@ -183,14 +191,14 @@ function na(t, e, n, s, i) {
183
191
  while (Math.abs(o) > ta && ++a < ea);
184
192
  return r;
185
193
  }
186
- function re(t, e, n, s) {
194
+ function oe(t, e, n, s) {
187
195
  if (t === e && n === s)
188
- return st;
196
+ return it;
189
197
  const i = (o) => na(o, 0, 1, t, n);
190
198
  return (o) => o === 0 || o === 1 ? o : Ji(i(o), e, s);
191
199
  }
192
- const Qi = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, tr = (t) => (e) => 1 - t(1 - e), er = /* @__PURE__ */ re(0.33, 1.53, 0.69, 0.99), Nn = /* @__PURE__ */ tr(er), nr = /* @__PURE__ */ Qi(Nn), sr = (t) => (t *= 2) < 1 ? 0.5 * Nn(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Un = (t) => 1 - Math.sin(Math.acos(t)), ir = tr(Un), rr = Qi(Un), sa = /* @__PURE__ */ re(0.42, 0, 1, 1), ia = /* @__PURE__ */ re(0, 0, 0.58, 1), or = /* @__PURE__ */ re(0.42, 0, 0.58, 1), ra = (t) => Array.isArray(t) && typeof t[0] != "number", ar = (t) => Array.isArray(t) && typeof t[0] == "number", ws = {
193
- linear: st,
200
+ const Qi = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, tr = (t) => (e) => 1 - t(1 - e), er = /* @__PURE__ */ oe(0.33, 1.53, 0.69, 0.99), Nn = /* @__PURE__ */ tr(er), nr = /* @__PURE__ */ Qi(Nn), sr = (t) => (t *= 2) < 1 ? 0.5 * Nn(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Un = (t) => 1 - Math.sin(Math.acos(t)), ir = tr(Un), rr = Qi(Un), sa = /* @__PURE__ */ oe(0.42, 0, 1, 1), ia = /* @__PURE__ */ oe(0, 0, 0.58, 1), or = /* @__PURE__ */ oe(0.42, 0, 0.58, 1), ra = (t) => Array.isArray(t) && typeof t[0] != "number", ar = (t) => Array.isArray(t) && typeof t[0] == "number", ws = {
201
+ linear: it,
194
202
  easeIn: sa,
195
203
  easeInOut: or,
196
204
  easeOut: ia,
@@ -203,11 +211,11 @@ const Qi = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, tr
203
211
  anticipate: sr
204
212
  }, oa = (t) => typeof t == "string", Ts = (t) => {
205
213
  if (ar(t)) {
206
- ht(t.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
214
+ ft(t.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
207
215
  const [e, n, s, i] = t;
208
- return re(e, n, s, i);
216
+ return oe(e, n, s, i);
209
217
  } else if (oa(t))
210
- return ht(ws[t] !== void 0, `Invalid easing type '${t}'`, "invalid-easing-type"), ws[t];
218
+ return ft(ws[t] !== void 0, `Invalid easing type '${t}'`, "invalid-easing-type"), ws[t];
211
219
  return t;
212
220
  }, me = [
213
221
  "setup",
@@ -273,8 +281,8 @@ function lr(t, e) {
273
281
  timestamp: 0,
274
282
  isProcessing: !1
275
283
  }, o = () => n = !0, r = me.reduce((d, p) => (d[p] = aa(o), d), {}), { setup: a, read: l, resolveKeyframes: u, preUpdate: c, update: f, preRender: m, render: v, postRender: w } = r, C = () => {
276
- const d = ft.useManualTiming ? i.timestamp : performance.now();
277
- n = !1, ft.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(d - i.timestamp, la), 1)), i.timestamp = d, i.isProcessing = !0, a.process(i), l.process(i), u.process(i), c.process(i), f.process(i), m.process(i), v.process(i), w.process(i), i.isProcessing = !1, n && e && (s = !1, t(C));
284
+ const d = pt.useManualTiming ? i.timestamp : performance.now();
285
+ n = !1, pt.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(d - i.timestamp, la), 1)), i.timestamp = d, i.isProcessing = !0, a.process(i), l.process(i), u.process(i), c.process(i), f.process(i), m.process(i), v.process(i), w.process(i), i.isProcessing = !1, n && e && (s = !1, t(C));
278
286
  }, P = () => {
279
287
  n = !0, s = !0, i.isProcessing || t(C);
280
288
  };
@@ -286,47 +294,47 @@ function lr(t, e) {
286
294
  r[me[p]].cancel(d);
287
295
  }, state: i, steps: r };
288
296
  }
289
- const { schedule: K, cancel: yt, state: $, steps: Ne } = /* @__PURE__ */ lr(typeof requestAnimationFrame < "u" ? requestAnimationFrame : st, !0);
297
+ const { schedule: K, cancel: bt, state: G, steps: Ne } = /* @__PURE__ */ lr(typeof requestAnimationFrame < "u" ? requestAnimationFrame : it, !0);
290
298
  let we;
291
299
  function ca() {
292
300
  we = void 0;
293
301
  }
294
302
  const Y = {
295
- now: () => (we === void 0 && Y.set($.isProcessing || ft.useManualTiming ? $.timestamp : performance.now()), we),
303
+ now: () => (we === void 0 && Y.set(G.isProcessing || pt.useManualTiming ? G.timestamp : performance.now()), we),
296
304
  set: (t) => {
297
305
  we = t, queueMicrotask(ca);
298
306
  }
299
- }, cr = (t) => (e) => typeof e == "string" && e.startsWith(t), zn = /* @__PURE__ */ cr("--"), ua = /* @__PURE__ */ cr("var(--"), $n = (t) => ua(t) ? da.test(t.split("/*")[0].trim()) : !1, da = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, jt = {
307
+ }, cr = (t) => (e) => typeof e == "string" && e.startsWith(t), zn = /* @__PURE__ */ cr("--"), ua = /* @__PURE__ */ cr("var(--"), Gn = (t) => ua(t) ? da.test(t.split("/*")[0].trim()) : !1, da = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Nt = {
300
308
  test: (t) => typeof t == "number",
301
309
  parse: parseFloat,
302
310
  transform: (t) => t
303
- }, Qt = {
304
- ...jt,
305
- transform: (t) => dt(0, 1, t)
311
+ }, te = {
312
+ ...Nt,
313
+ transform: (t) => ht(0, 1, t)
306
314
  }, ge = {
307
- ...jt,
315
+ ...Nt,
308
316
  default: 1
309
- }, Xt = (t) => Math.round(t * 1e5) / 1e5, Gn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
317
+ }, Yt = (t) => Math.round(t * 1e5) / 1e5, $n = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
310
318
  function ha(t) {
311
319
  return t == null;
312
320
  }
313
321
  const fa = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Wn = (t, e) => (n) => !!(typeof n == "string" && fa.test(n) && n.startsWith(t) || e && !ha(n) && Object.prototype.hasOwnProperty.call(n, e)), ur = (t, e, n) => (s) => {
314
322
  if (typeof s != "string")
315
323
  return s;
316
- const [i, o, r, a] = s.match(Gn);
324
+ const [i, o, r, a] = s.match($n);
317
325
  return {
318
326
  [t]: parseFloat(i),
319
327
  [e]: parseFloat(o),
320
328
  [n]: parseFloat(r),
321
329
  alpha: a !== void 0 ? parseFloat(a) : 1
322
330
  };
323
- }, pa = (t) => dt(0, 255, t), Ue = {
324
- ...jt,
331
+ }, pa = (t) => ht(0, 255, t), Ue = {
332
+ ...Nt,
325
333
  transform: (t) => Math.round(pa(t))
326
- }, Ct = {
334
+ }, Pt = {
327
335
  test: /* @__PURE__ */ Wn("rgb", "red"),
328
336
  parse: /* @__PURE__ */ ur("red", "green", "blue"),
329
- transform: ({ red: t, green: e, blue: n, alpha: s = 1 }) => "rgba(" + Ue.transform(t) + ", " + Ue.transform(e) + ", " + Ue.transform(n) + ", " + Xt(Qt.transform(s)) + ")"
337
+ transform: ({ red: t, green: e, blue: n, alpha: s = 1 }) => "rgba(" + Ue.transform(t) + ", " + Ue.transform(e) + ", " + Ue.transform(n) + ", " + Yt(te.transform(s)) + ")"
330
338
  };
331
339
  function ma(t) {
332
340
  let e = "", n = "", s = "", i = "";
@@ -340,33 +348,33 @@ function ma(t) {
340
348
  const an = {
341
349
  test: /* @__PURE__ */ Wn("#"),
342
350
  parse: ma,
343
- transform: Ct.transform
344
- }, oe = /* @__NO_SIDE_EFFECTS__ */ (t) => ({
351
+ transform: Pt.transform
352
+ }, ae = /* @__NO_SIDE_EFFECTS__ */ (t) => ({
345
353
  test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
346
354
  parse: parseFloat,
347
355
  transform: (e) => `${e}${t}`
348
- }), gt = /* @__PURE__ */ oe("deg"), at = /* @__PURE__ */ oe("%"), M = /* @__PURE__ */ oe("px"), ga = /* @__PURE__ */ oe("vh"), ya = /* @__PURE__ */ oe("vw"), Cs = {
349
- ...at,
350
- parse: (t) => at.parse(t) / 100,
351
- transform: (t) => at.transform(t * 100)
352
- }, Vt = {
356
+ }), yt = /* @__PURE__ */ ae("deg"), lt = /* @__PURE__ */ ae("%"), M = /* @__PURE__ */ ae("px"), ga = /* @__PURE__ */ ae("vh"), ya = /* @__PURE__ */ ae("vw"), Cs = {
357
+ ...lt,
358
+ parse: (t) => lt.parse(t) / 100,
359
+ transform: (t) => lt.transform(t * 100)
360
+ }, Et = {
353
361
  test: /* @__PURE__ */ Wn("hsl", "hue"),
354
362
  parse: /* @__PURE__ */ ur("hue", "saturation", "lightness"),
355
- transform: ({ hue: t, saturation: e, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(t) + ", " + at.transform(Xt(e)) + ", " + at.transform(Xt(n)) + ", " + Xt(Qt.transform(s)) + ")"
363
+ transform: ({ hue: t, saturation: e, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(t) + ", " + lt.transform(Yt(e)) + ", " + lt.transform(Yt(n)) + ", " + Yt(te.transform(s)) + ")"
356
364
  }, F = {
357
- test: (t) => Ct.test(t) || an.test(t) || Vt.test(t),
358
- parse: (t) => Ct.test(t) ? Ct.parse(t) : Vt.test(t) ? Vt.parse(t) : an.parse(t),
359
- transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? Ct.transform(t) : Vt.transform(t),
365
+ test: (t) => Pt.test(t) || an.test(t) || Et.test(t),
366
+ parse: (t) => Pt.test(t) ? Pt.parse(t) : Et.test(t) ? Et.parse(t) : an.parse(t),
367
+ transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? Pt.transform(t) : Et.transform(t),
360
368
  getAnimatableNone: (t) => {
361
369
  const e = F.parse(t);
362
370
  return e.alpha = 0, F.transform(e);
363
371
  }
364
372
  }, ba = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
365
373
  function va(t) {
366
- return isNaN(t) && typeof t == "string" && (t.match(Gn)?.length || 0) + (t.match(ba)?.length || 0) > 0;
374
+ return isNaN(t) && typeof t == "string" && (t.match($n)?.length || 0) + (t.match(ba)?.length || 0) > 0;
367
375
  }
368
376
  const dr = "number", hr = "color", xa = "var", wa = "var(", Ps = "${}", Ta = /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;
369
- function te(t) {
377
+ function ee(t) {
370
378
  const e = t.toString(), n = [], s = {
371
379
  color: [],
372
380
  number: [],
@@ -377,16 +385,16 @@ function te(t) {
377
385
  return { values: n, split: a, indexes: s, types: i };
378
386
  }
379
387
  function fr(t) {
380
- return te(t).values;
388
+ return ee(t).values;
381
389
  }
382
390
  function pr(t) {
383
- const { split: e, types: n } = te(t), s = e.length;
391
+ const { split: e, types: n } = ee(t), s = e.length;
384
392
  return (i) => {
385
393
  let o = "";
386
394
  for (let r = 0; r < s; r++)
387
395
  if (o += e[r], i[r] !== void 0) {
388
396
  const a = n[r];
389
- a === dr ? o += Xt(i[r]) : a === hr ? o += F.transform(i[r]) : o += i[r];
397
+ a === dr ? o += Yt(i[r]) : a === hr ? o += F.transform(i[r]) : o += i[r];
390
398
  }
391
399
  return o;
392
400
  };
@@ -396,7 +404,7 @@ function Pa(t) {
396
404
  const e = fr(t);
397
405
  return pr(t)(e.map(Ca));
398
406
  }
399
- const bt = {
407
+ const vt = {
400
408
  test: va,
401
409
  parse: fr,
402
410
  createTransformer: pr,
@@ -424,32 +432,32 @@ function Sa({ hue: t, saturation: e, lightness: n, alpha: s }) {
424
432
  function Ae(t, e) {
425
433
  return (n) => n > 0 ? e : t;
426
434
  }
427
- const _ = (t, e, n) => t + (e - t) * n, $e = (t, e, n) => {
435
+ const I = (t, e, n) => t + (e - t) * n, Ge = (t, e, n) => {
428
436
  const s = t * t, i = n * (e * e - s) + s;
429
437
  return i < 0 ? 0 : Math.sqrt(i);
430
- }, ka = [an, Ct, Vt], Aa = (t) => ka.find((e) => e.test(t));
438
+ }, ka = [an, Pt, Et], Aa = (t) => ka.find((e) => e.test(t));
431
439
  function Ss(t) {
432
440
  const e = Aa(t);
433
- if (Ft(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !e)
441
+ if (jt(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !e)
434
442
  return !1;
435
443
  let n = e.parse(t);
436
- return e === Vt && (n = Sa(n)), n;
444
+ return e === Et && (n = Sa(n)), n;
437
445
  }
438
446
  const ks = (t, e) => {
439
447
  const n = Ss(t), s = Ss(e);
440
448
  if (!n || !s)
441
449
  return Ae(t, e);
442
450
  const i = { ...n };
443
- return (o) => (i.red = $e(n.red, s.red, o), i.green = $e(n.green, s.green, o), i.blue = $e(n.blue, s.blue, o), i.alpha = _(n.alpha, s.alpha, o), Ct.transform(i));
451
+ return (o) => (i.red = Ge(n.red, s.red, o), i.green = Ge(n.green, s.green, o), i.blue = Ge(n.blue, s.blue, o), i.alpha = I(n.alpha, s.alpha, o), Pt.transform(i));
444
452
  }, ln = /* @__PURE__ */ new Set(["none", "hidden"]);
445
453
  function Ma(t, e) {
446
454
  return ln.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
447
455
  }
448
456
  function Va(t, e) {
449
- return (n) => _(t, e, n);
457
+ return (n) => I(t, e, n);
450
458
  }
451
459
  function Hn(t) {
452
- return typeof t == "number" ? Va : typeof t == "string" ? $n(t) ? Ae : F.test(t) ? ks : Ra : Array.isArray(t) ? mr : typeof t == "object" ? F.test(t) ? ks : Ea : Ae;
460
+ return typeof t == "number" ? Va : typeof t == "string" ? Gn(t) ? Ae : F.test(t) ? ks : Ra : Array.isArray(t) ? mr : typeof t == "object" ? F.test(t) ? ks : Ea : Ae;
453
461
  }
454
462
  function mr(t, e) {
455
463
  const n = [...t], s = n.length, i = t.map((o, r) => Hn(o)(o, e[r]));
@@ -478,22 +486,22 @@ function Da(t, e) {
478
486
  return n;
479
487
  }
480
488
  const Ra = (t, e) => {
481
- const n = bt.createTransformer(e), s = te(t), i = te(e);
482
- 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 ? ln.has(t) && !i.values.length || ln.has(e) && !s.values.length ? Ma(t, e) : ie(mr(Da(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"), Ae(t, e));
489
+ const n = vt.createTransformer(e), s = ee(t), i = ee(e);
490
+ 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 ? ln.has(t) && !i.values.length || ln.has(e) && !s.values.length ? Ma(t, e) : re(mr(Da(s, i), i.values), n) : (jt(!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"), Ae(t, e));
483
491
  };
484
492
  function gr(t, e, n) {
485
- return typeof t == "number" && typeof e == "number" && typeof n == "number" ? _(t, e, n) : Hn(t)(t, e);
493
+ return typeof t == "number" && typeof e == "number" && typeof n == "number" ? I(t, e, n) : Hn(t)(t, e);
486
494
  }
487
495
  const La = (t) => {
488
496
  const e = ({ timestamp: n }) => t(n);
489
497
  return {
490
498
  start: (n = !0) => K.update(e, n),
491
- stop: () => yt(e),
499
+ stop: () => bt(e),
492
500
  /**
493
501
  * If we're processing this frame we can use the
494
502
  * framelocked timestamp to keep things in sync.
495
503
  */
496
- now: () => $.isProcessing ? $.timestamp : Y.now()
504
+ now: () => G.isProcessing ? G.timestamp : Y.now()
497
505
  };
498
506
  }, yr = (t, e, n = 10) => {
499
507
  let s = "";
@@ -515,15 +523,15 @@ function Ka(t, e = 100, n) {
515
523
  return {
516
524
  type: "keyframes",
517
525
  ease: (o) => s.next(i * o).value / e,
518
- duration: /* @__PURE__ */ ot(i)
526
+ duration: /* @__PURE__ */ at(i)
519
527
  };
520
528
  }
521
- const Ia = 5;
529
+ const _a = 5;
522
530
  function br(t, e, n) {
523
- const s = Math.max(e - Ia, 0);
531
+ const s = Math.max(e - _a, 0);
524
532
  return Zi(n - t(s), e - s);
525
533
  }
526
- const I = {
534
+ const _ = {
527
535
  // Default spring physics
528
536
  stiffness: 100,
529
537
  damping: 10,
@@ -551,29 +559,29 @@ const I = {
551
559
  // in seconds
552
560
  minDamping: 0.05,
553
561
  maxDamping: 1
554
- }, Ge = 1e-3;
555
- function _a({ duration: t = I.duration, bounce: e = I.bounce, velocity: n = I.velocity, mass: s = I.mass }) {
562
+ }, $e = 1e-3;
563
+ function Ia({ duration: t = _.duration, bounce: e = _.bounce, velocity: n = _.velocity, mass: s = _.mass }) {
556
564
  let i, o;
557
- Ft(t <= /* @__PURE__ */ rt(I.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
565
+ jt(t <= /* @__PURE__ */ ot(_.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
558
566
  let r = 1 - e;
559
- r = dt(I.minDamping, I.maxDamping, r), t = dt(I.minDuration, I.maxDuration, /* @__PURE__ */ ot(t)), r < 1 ? (i = (u) => {
567
+ r = ht(_.minDamping, _.maxDamping, r), t = ht(_.minDuration, _.maxDuration, /* @__PURE__ */ at(t)), r < 1 ? (i = (u) => {
560
568
  const c = u * r, f = c * t, m = c - n, v = cn(u, r), w = Math.exp(-f);
561
- return Ge - m / v * w;
569
+ return $e - m / v * w;
562
570
  }, o = (u) => {
563
571
  const f = u * r * t, m = f * n + n, v = Math.pow(r, 2) * Math.pow(u, 2) * t, w = Math.exp(-f), C = cn(Math.pow(u, 2), r);
564
- return (-i(u) + Ge > 0 ? -1 : 1) * ((m - v) * w) / C;
572
+ return (-i(u) + $e > 0 ? -1 : 1) * ((m - v) * w) / C;
565
573
  }) : (i = (u) => {
566
574
  const c = Math.exp(-u * t), f = (u - n) * t + 1;
567
- return -Ge + c * f;
575
+ return -$e + c * f;
568
576
  }, o = (u) => {
569
577
  const c = Math.exp(-u * t), f = (n - u) * (t * t);
570
578
  return c * f;
571
579
  });
572
- const a = 5 / t, l = Oa(i, o, a);
573
- if (t = /* @__PURE__ */ rt(t), isNaN(l))
580
+ const a = 5 / t, l = Ba(i, o, a);
581
+ if (t = /* @__PURE__ */ ot(t), isNaN(l))
574
582
  return {
575
- stiffness: I.stiffness,
576
- damping: I.damping,
583
+ stiffness: _.stiffness,
584
+ damping: _.damping,
577
585
  duration: t
578
586
  };
579
587
  {
@@ -585,10 +593,10 @@ function _a({ duration: t = I.duration, bounce: e = I.bounce, velocity: n = I.ve
585
593
  };
586
594
  }
587
595
  }
588
- const Ba = 12;
589
- function Oa(t, e, n) {
596
+ const Oa = 12;
597
+ function Ba(t, e, n) {
590
598
  let s = n;
591
- for (let i = 1; i < Ba; i++)
599
+ for (let i = 1; i < Oa; i++)
592
600
  s = s - t(s) / e(s);
593
601
  return s;
594
602
  }
@@ -601,33 +609,33 @@ function As(t, e) {
601
609
  }
602
610
  function Na(t) {
603
611
  let e = {
604
- velocity: I.velocity,
605
- stiffness: I.stiffness,
606
- damping: I.damping,
607
- mass: I.mass,
612
+ velocity: _.velocity,
613
+ stiffness: _.stiffness,
614
+ damping: _.damping,
615
+ mass: _.mass,
608
616
  isResolvedFromDuration: !1,
609
617
  ...t
610
618
  };
611
619
  if (!As(t, ja) && As(t, Fa))
612
620
  if (t.visualDuration) {
613
- 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);
621
+ const n = t.visualDuration, s = 2 * Math.PI / (n * 1.2), i = s * s, o = 2 * ht(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(i);
614
622
  e = {
615
623
  ...e,
616
- mass: I.mass,
624
+ mass: _.mass,
617
625
  stiffness: i,
618
626
  damping: o
619
627
  };
620
628
  } else {
621
- const n = _a(t);
629
+ const n = Ia(t);
622
630
  e = {
623
631
  ...e,
624
632
  ...n,
625
- mass: I.mass
633
+ mass: _.mass
626
634
  }, e.isResolvedFromDuration = !0;
627
635
  }
628
636
  return e;
629
637
  }
630
- function Ve(t = I.visualDuration, e = I.bounce) {
638
+ function Ve(t = _.visualDuration, e = _.bounce) {
631
639
  const n = typeof t != "object" ? {
632
640
  visualDuration: t,
633
641
  keyframes: [0, 1],
@@ -636,9 +644,9 @@ function Ve(t = I.visualDuration, e = I.bounce) {
636
644
  let { restSpeed: s, restDelta: i } = n;
637
645
  const o = n.keyframes[0], r = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: u, mass: c, duration: f, velocity: m, isResolvedFromDuration: v } = Na({
638
646
  ...n,
639
- velocity: -/* @__PURE__ */ ot(n.velocity || 0)
640
- }), w = m || 0, C = u / (2 * Math.sqrt(l * c)), P = r - o, h = /* @__PURE__ */ ot(Math.sqrt(l / c)), y = Math.abs(P) < 5;
641
- s || (s = y ? I.restSpeed.granular : I.restSpeed.default), i || (i = y ? I.restDelta.granular : I.restDelta.default);
647
+ velocity: -/* @__PURE__ */ at(n.velocity || 0)
648
+ }), w = m || 0, C = u / (2 * Math.sqrt(l * c)), P = r - o, h = /* @__PURE__ */ at(Math.sqrt(l / c)), y = Math.abs(P) < 5;
649
+ s || (s = y ? _.restSpeed.granular : _.restSpeed.default), i || (i = y ? _.restDelta.granular : _.restDelta.default);
642
650
  let d;
643
651
  if (C < 1) {
644
652
  const g = cn(h, C);
@@ -663,7 +671,7 @@ function Ve(t = I.visualDuration, e = I.bounce) {
663
671
  a.done = g >= f;
664
672
  else {
665
673
  let T = g === 0 ? w : 0;
666
- C < 1 && (T = g === 0 ? /* @__PURE__ */ rt(w) : br(d, g, x));
674
+ C < 1 && (T = g === 0 ? /* @__PURE__ */ ot(w) : br(d, g, x));
667
675
  const b = Math.abs(T) <= s, V = Math.abs(r - x) <= i;
668
676
  a.done = b && V;
669
677
  }
@@ -680,7 +688,7 @@ function Ve(t = I.visualDuration, e = I.bounce) {
680
688
  }
681
689
  Ve.applyToOptions = (t) => {
682
690
  const e = Ka(t, 100, Ve);
683
- return t.ease = e.ease, t.duration = /* @__PURE__ */ rt(e.duration), t.type = "keyframes", t;
691
+ return t.ease = e.ease, t.duration = /* @__PURE__ */ ot(e.duration), t.type = "keyframes", t;
684
692
  };
685
693
  function un({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: i = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: u = 0.5, restSpeed: c }) {
686
694
  const f = t[0], m = {
@@ -715,12 +723,12 @@ function un({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 3
715
723
  };
716
724
  }
717
725
  function Ua(t, e, n) {
718
- const s = [], i = n || ft.mix || gr, o = t.length - 1;
726
+ const s = [], i = n || pt.mix || gr, o = t.length - 1;
719
727
  for (let r = 0; r < o; r++) {
720
728
  let a = i(t[r], t[r + 1]);
721
729
  if (e) {
722
- const l = Array.isArray(e) ? e[r] || st : e;
723
- a = ie(l, a);
730
+ const l = Array.isArray(e) ? e[r] || it : e;
731
+ a = re(l, a);
724
732
  }
725
733
  s.push(a);
726
734
  }
@@ -728,7 +736,7 @@ function Ua(t, e, n) {
728
736
  }
729
737
  function za(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
730
738
  const o = t.length;
731
- if (ht(o === e.length, "Both input and output ranges must be the same length", "range-length"), o === 1)
739
+ if (ft(o === e.length, "Both input and output ranges must be the same length", "range-length"), o === 1)
732
740
  return () => e[0];
733
741
  if (o === 2 && e[0] === e[1])
734
742
  return () => e[1];
@@ -741,21 +749,21 @@ function za(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
741
749
  if (l > 1)
742
750
  for (; f < t.length - 2 && !(c < t[f + 1]); f++)
743
751
  ;
744
- const m = /* @__PURE__ */ Jt(t[f], t[f + 1], c);
752
+ const m = /* @__PURE__ */ Qt(t[f], t[f + 1], c);
745
753
  return a[f](m);
746
754
  };
747
- return n ? (c) => u(dt(t[0], t[o - 1], c)) : u;
755
+ return n ? (c) => u(ht(t[0], t[o - 1], c)) : u;
748
756
  }
749
- function $a(t, e) {
757
+ function Ga(t, e) {
750
758
  const n = t[t.length - 1];
751
759
  for (let s = 1; s <= e; s++) {
752
- const i = /* @__PURE__ */ Jt(0, e, s);
753
- t.push(_(n, 1, i));
760
+ const i = /* @__PURE__ */ Qt(0, e, s);
761
+ t.push(I(n, 1, i));
754
762
  }
755
763
  }
756
- function Ga(t) {
764
+ function $a(t) {
757
765
  const e = [0];
758
- return $a(e, t.length - 1), e;
766
+ return Ga(e, t.length - 1), e;
759
767
  }
760
768
  function Wa(t, e) {
761
769
  return t.map((n) => n * e);
@@ -763,14 +771,14 @@ function Wa(t, e) {
763
771
  function Ha(t, e) {
764
772
  return t.map(() => e || or).splice(0, t.length - 1);
765
773
  }
766
- function Et({ duration: t = 300, keyframes: e, times: n, ease: s = "easeInOut" }) {
774
+ function Dt({ duration: t = 300, keyframes: e, times: n, ease: s = "easeInOut" }) {
767
775
  const i = ra(s) ? s.map(Ts) : Ts(s), o = {
768
776
  done: !1,
769
777
  value: e[0]
770
778
  }, r = Wa(
771
779
  // Only use the provided offsets if they're the correct length
772
780
  // TODO Maybe we should warn here if there's a length mismatch
773
- n && n.length === e.length ? n : Ga(e),
781
+ n && n.length === e.length ? n : $a(e),
774
782
  t
775
783
  ), a = za(r, e, {
776
784
  ease: Array.isArray(i) ? i : Ha(e, i)
@@ -788,8 +796,8 @@ function Yn(t, { repeat: e, repeatType: n = "loop" }, s, i = 1) {
788
796
  const Ya = {
789
797
  decay: un,
790
798
  inertia: un,
791
- tween: Et,
792
- keyframes: Et,
799
+ tween: Dt,
800
+ keyframes: Dt,
793
801
  spring: Ve
794
802
  };
795
803
  function vr(t) {
@@ -830,10 +838,10 @@ class Zn extends qn {
830
838
  initAnimation() {
831
839
  const { options: e } = this;
832
840
  vr(e);
833
- const { type: n = Et, repeat: s = 0, repeatDelay: i = 0, repeatType: o, velocity: r = 0 } = e;
841
+ const { type: n = Dt, repeat: s = 0, repeatDelay: i = 0, repeatType: o, velocity: r = 0 } = e;
834
842
  let { keyframes: a } = e;
835
- const l = n || Et;
836
- 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 = ie(qa, gr(a[0], a[1])), a = [0, 100]);
843
+ const l = n || Dt;
844
+ process.env.NODE_ENV !== "production" && l !== Dt && ft(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), l !== Dt && typeof a[0] != "number" && (this.mixKeyframes = re(qa, gr(a[0], a[1])), a = [0, 100]);
837
845
  const u = l({ ...e, keyframes: a });
838
846
  o === "mirror" && (this.mirroredGenerator = l({
839
847
  ...e,
@@ -859,7 +867,7 @@ class Zn extends qn {
859
867
  if (f) {
860
868
  const b = Math.min(this.currentTime, i) / a;
861
869
  let V = Math.floor(b), E = b % 1;
862
- !E && b >= 1 && (E = 1), E === 1 && V--, V = Math.min(V, f + 1), !!(V % 2) && (m === "reverse" ? (E = 1 - E, v && (E -= v / a)) : m === "mirror" && (p = r)), d = dt(0, 1, E) * a;
870
+ !E && b >= 1 && (E = 1), E === 1 && V--, V = Math.min(V, f + 1), !!(V % 2) && (m === "reverse" ? (E = 1 - E, v && (E -= v / a)) : m === "mirror" && (p = r)), d = ht(0, 1, E) * a;
863
871
  }
864
872
  const g = y ? { done: !1, value: c[0] } : p.next(d);
865
873
  o && (g.value = o(g.value));
@@ -877,13 +885,13 @@ class Zn extends qn {
877
885
  return this.finished.then(e, n);
878
886
  }
879
887
  get duration() {
880
- return /* @__PURE__ */ ot(this.calculatedDuration);
888
+ return /* @__PURE__ */ at(this.calculatedDuration);
881
889
  }
882
890
  get time() {
883
- return /* @__PURE__ */ ot(this.currentTime);
891
+ return /* @__PURE__ */ at(this.currentTime);
884
892
  }
885
893
  set time(e) {
886
- e = /* @__PURE__ */ rt(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver?.start(!1);
894
+ e = /* @__PURE__ */ ot(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver?.start(!1);
887
895
  }
888
896
  get speed() {
889
897
  return this.playbackSpeed;
@@ -891,7 +899,7 @@ class Zn extends qn {
891
899
  set speed(e) {
892
900
  this.updateTime(Y.now());
893
901
  const n = this.playbackSpeed !== e;
894
- this.playbackSpeed = e, n && (this.time = /* @__PURE__ */ ot(this.currentTime));
902
+ this.playbackSpeed = e, n && (this.time = /* @__PURE__ */ at(this.currentTime));
895
903
  }
896
904
  play() {
897
905
  if (this.isStopped)
@@ -930,8 +938,8 @@ function Za(t) {
930
938
  for (let e = 1; e < t.length; e++)
931
939
  t[e] ?? (t[e] = t[e - 1]);
932
940
  }
933
- const Pt = (t) => t * 180 / Math.PI, dn = (t) => {
934
- const e = Pt(Math.atan2(t[1], t[0]));
941
+ const St = (t) => t * 180 / Math.PI, dn = (t) => {
942
+ const e = St(Math.atan2(t[1], t[0]));
935
943
  return hn(e);
936
944
  }, Ja = {
937
945
  x: 4,
@@ -943,8 +951,8 @@ const Pt = (t) => t * 180 / Math.PI, dn = (t) => {
943
951
  scale: (t) => (Math.abs(t[0]) + Math.abs(t[3])) / 2,
944
952
  rotate: dn,
945
953
  rotateZ: dn,
946
- skewX: (t) => Pt(Math.atan(t[1])),
947
- skewY: (t) => Pt(Math.atan(t[2])),
954
+ skewX: (t) => St(Math.atan(t[1])),
955
+ skewY: (t) => St(Math.atan(t[2])),
948
956
  skew: (t) => (Math.abs(t[1]) + Math.abs(t[2])) / 2
949
957
  }, hn = (t) => (t = t % 360, t < 0 && (t += 360), t), Ms = dn, Vs = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), Es = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), Qa = {
950
958
  x: 12,
@@ -956,12 +964,12 @@ const Pt = (t) => t * 180 / Math.PI, dn = (t) => {
956
964
  scaleX: Vs,
957
965
  scaleY: Es,
958
966
  scale: (t) => (Vs(t) + Es(t)) / 2,
959
- rotateX: (t) => hn(Pt(Math.atan2(t[6], t[5]))),
960
- rotateY: (t) => hn(Pt(Math.atan2(-t[2], t[0]))),
967
+ rotateX: (t) => hn(St(Math.atan2(t[6], t[5]))),
968
+ rotateY: (t) => hn(St(Math.atan2(-t[2], t[0]))),
961
969
  rotateZ: Ms,
962
970
  rotate: Ms,
963
- skewX: (t) => Pt(Math.atan(t[4])),
964
- skewY: (t) => Pt(Math.atan(t[1])),
971
+ skewX: (t) => St(Math.atan(t[4])),
972
+ skewY: (t) => St(Math.atan(t[1])),
965
973
  skew: (t) => (Math.abs(t[1]) + Math.abs(t[4])) / 2
966
974
  };
967
975
  function fn(t) {
@@ -990,7 +998,7 @@ const tl = (t, e) => {
990
998
  function el(t) {
991
999
  return parseFloat(t.trim());
992
1000
  }
993
- const Nt = [
1001
+ const Ut = [
994
1002
  "transformPerspective",
995
1003
  "x",
996
1004
  "y",
@@ -1008,7 +1016,7 @@ const Nt = [
1008
1016
  "skew",
1009
1017
  "skewX",
1010
1018
  "skewY"
1011
- ], Ut = new Set(Nt), Ds = (t) => t === jt || t === M, nl = /* @__PURE__ */ new Set(["x", "y", "z"]), sl = Nt.filter((t) => !nl.has(t));
1019
+ ], zt = new Set(Ut), Ds = (t) => t === Nt || t === M, nl = /* @__PURE__ */ new Set(["x", "y", "z"]), sl = Ut.filter((t) => !nl.has(t));
1012
1020
  function il(t) {
1013
1021
  const e = [];
1014
1022
  return sl.forEach((n) => {
@@ -1016,7 +1024,7 @@ function il(t) {
1016
1024
  s !== void 0 && (e.push([n, s.get()]), s.set(n.startsWith("scale") ? 1 : 0));
1017
1025
  }), e;
1018
1026
  }
1019
- const St = {
1027
+ const kt = {
1020
1028
  // Dimensions
1021
1029
  width: ({ x: t }, { paddingLeft: e = "0", paddingRight: n = "0" }) => t.max - t.min - parseFloat(e) - parseFloat(n),
1022
1030
  height: ({ y: t }, { paddingTop: e = "0", paddingBottom: n = "0" }) => t.max - t.min - parseFloat(e) - parseFloat(n),
@@ -1028,13 +1036,13 @@ const St = {
1028
1036
  x: (t, { transform: e }) => pn(e, "x"),
1029
1037
  y: (t, { transform: e }) => pn(e, "y")
1030
1038
  };
1031
- St.translateX = St.x;
1032
- St.translateY = St.y;
1033
- const kt = /* @__PURE__ */ new Set();
1039
+ kt.translateX = kt.x;
1040
+ kt.translateY = kt.y;
1041
+ const At = /* @__PURE__ */ new Set();
1034
1042
  let mn = !1, gn = !1, yn = !1;
1035
1043
  function xr() {
1036
1044
  if (gn) {
1037
- const t = Array.from(kt).filter((s) => s.needsMeasurement), e = new Set(t.map((s) => s.element)), n = /* @__PURE__ */ new Map();
1045
+ const t = Array.from(At).filter((s) => s.needsMeasurement), e = new Set(t.map((s) => s.element)), n = /* @__PURE__ */ new Map();
1038
1046
  e.forEach((s) => {
1039
1047
  const i = il(s);
1040
1048
  i.length && (n.set(s, i), s.render());
@@ -1048,10 +1056,10 @@ function xr() {
1048
1056
  s.suspendedScrollY !== void 0 && window.scrollTo(0, s.suspendedScrollY);
1049
1057
  });
1050
1058
  }
1051
- gn = !1, mn = !1, kt.forEach((t) => t.complete(yn)), kt.clear();
1059
+ gn = !1, mn = !1, At.forEach((t) => t.complete(yn)), At.clear();
1052
1060
  }
1053
1061
  function wr() {
1054
- kt.forEach((t) => {
1062
+ At.forEach((t) => {
1055
1063
  t.readKeyframes(), t.needsMeasurement && (gn = !0);
1056
1064
  });
1057
1065
  }
@@ -1063,7 +1071,7 @@ class Jn {
1063
1071
  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;
1064
1072
  }
1065
1073
  scheduleResolve() {
1066
- this.state = "scheduled", this.isAsync ? (kt.add(this), mn || (mn = !0, K.read(wr), K.resolveKeyframes(xr))) : (this.readKeyframes(), this.complete());
1074
+ this.state = "scheduled", this.isAsync ? (At.add(this), mn || (mn = !0, K.read(wr), K.resolveKeyframes(xr))) : (this.readKeyframes(), this.complete());
1067
1075
  }
1068
1076
  readKeyframes() {
1069
1077
  const { unresolvedKeyframes: e, name: n, element: s, motionValue: i } = this;
@@ -1088,10 +1096,10 @@ class Jn {
1088
1096
  measureEndState() {
1089
1097
  }
1090
1098
  complete(e = !1) {
1091
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), kt.delete(this);
1099
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), At.delete(this);
1092
1100
  }
1093
1101
  cancel() {
1094
- this.state === "scheduled" && (kt.delete(this), this.state = "pending");
1102
+ this.state === "scheduled" && (At.delete(this), this.state = "pending");
1095
1103
  }
1096
1104
  resume() {
1097
1105
  this.state === "pending" && this.scheduleResolve();
@@ -1101,9 +1109,9 @@ const ol = (t) => t.startsWith("--");
1101
1109
  function al(t, e, n) {
1102
1110
  ol(e) ? t.style.setProperty(e, n) : t.style[e] = n;
1103
1111
  }
1104
- const ll = /* @__PURE__ */ On(() => window.ScrollTimeline !== void 0), cl = {};
1112
+ const ll = /* @__PURE__ */ Bn(() => window.ScrollTimeline !== void 0), cl = {};
1105
1113
  function ul(t, e) {
1106
- const n = /* @__PURE__ */ On(t);
1114
+ const n = /* @__PURE__ */ Bn(t);
1107
1115
  return () => cl[e] ?? n();
1108
1116
  }
1109
1117
  const Tr = /* @__PURE__ */ ul(() => {
@@ -1113,20 +1121,20 @@ const Tr = /* @__PURE__ */ ul(() => {
1113
1121
  return !1;
1114
1122
  }
1115
1123
  return !0;
1116
- }, "linearEasing"), Ht = ([t, e, n, s]) => `cubic-bezier(${t}, ${e}, ${n}, ${s})`, Rs = {
1124
+ }, "linearEasing"), Xt = ([t, e, n, s]) => `cubic-bezier(${t}, ${e}, ${n}, ${s})`, Rs = {
1117
1125
  linear: "linear",
1118
1126
  ease: "ease",
1119
1127
  easeIn: "ease-in",
1120
1128
  easeOut: "ease-out",
1121
1129
  easeInOut: "ease-in-out",
1122
- circIn: /* @__PURE__ */ Ht([0, 0.65, 0.55, 1]),
1123
- circOut: /* @__PURE__ */ Ht([0.55, 0, 1, 0.45]),
1124
- backIn: /* @__PURE__ */ Ht([0.31, 0.01, 0.66, -0.59]),
1125
- backOut: /* @__PURE__ */ Ht([0.33, 1.53, 0.69, 0.99])
1130
+ circIn: /* @__PURE__ */ Xt([0, 0.65, 0.55, 1]),
1131
+ circOut: /* @__PURE__ */ Xt([0.55, 0, 1, 0.45]),
1132
+ backIn: /* @__PURE__ */ Xt([0.31, 0.01, 0.66, -0.59]),
1133
+ backOut: /* @__PURE__ */ Xt([0.33, 1.53, 0.69, 0.99])
1126
1134
  };
1127
1135
  function Cr(t, e) {
1128
1136
  if (t)
1129
- return typeof t == "function" ? Tr() ? yr(t, e) : "ease-out" : ar(t) ? Ht(t) : Array.isArray(t) ? t.map((n) => Cr(n, e) || Rs.easeOut) : Rs[t];
1137
+ return typeof t == "function" ? Tr() ? yr(t, e) : "ease-out" : ar(t) ? Xt(t) : Array.isArray(t) ? t.map((n) => Cr(n, e) || Rs.easeOut) : Rs[t];
1130
1138
  }
1131
1139
  function dl(t, e, n, { delay: s = 0, duration: i = 300, repeat: o = 0, repeatType: r = "loop", ease: a = "easeOut", times: l } = {}, u = void 0) {
1132
1140
  const c = {
@@ -1156,7 +1164,7 @@ class fl extends qn {
1156
1164
  if (super(), this.finishedTime = null, this.isStopped = !1, !e)
1157
1165
  return;
1158
1166
  const { element: n, name: s, keyframes: i, pseudoElement: o, allowFlatten: r = !1, finalKeyframe: a, onComplete: l } = e;
1159
- this.isPseudoElement = !!o, this.allowFlatten = r, this.options = e, ht(typeof e.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
1167
+ this.isPseudoElement = !!o, this.allowFlatten = r, this.options = e, ft(typeof e.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
1160
1168
  const u = hl(e);
1161
1169
  this.animation = dl(n, s, i, u, o), u.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1162
1170
  if (this.finishedTime = this.time, !o) {
@@ -1205,13 +1213,13 @@ class fl extends qn {
1205
1213
  }
1206
1214
  get duration() {
1207
1215
  const e = this.animation.effect?.getComputedTiming?.().duration || 0;
1208
- return /* @__PURE__ */ ot(Number(e));
1216
+ return /* @__PURE__ */ at(Number(e));
1209
1217
  }
1210
1218
  get time() {
1211
- return /* @__PURE__ */ ot(Number(this.animation.currentTime) || 0);
1219
+ return /* @__PURE__ */ at(Number(this.animation.currentTime) || 0);
1212
1220
  }
1213
1221
  set time(e) {
1214
- this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ rt(e);
1222
+ this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ ot(e);
1215
1223
  }
1216
1224
  /**
1217
1225
  * The playback speed of the animation.
@@ -1236,7 +1244,7 @@ class fl extends qn {
1236
1244
  * Attaches a timeline to the animation, for instance the `ScrollTimeline`.
1237
1245
  */
1238
1246
  attachTimeline({ timeline: e, observe: n }) {
1239
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && ll() ? (this.animation.timeline = e, st) : n(this);
1247
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && ll() ? (this.animation.timeline = e, it) : n(this);
1240
1248
  }
1241
1249
  }
1242
1250
  const Sr = {
@@ -1274,12 +1282,12 @@ class gl extends fl {
1274
1282
  const a = new Zn({
1275
1283
  ...r,
1276
1284
  autoplay: !1
1277
- }), l = /* @__PURE__ */ rt(this.finishedTime ?? this.time);
1285
+ }), l = /* @__PURE__ */ ot(this.finishedTime ?? this.time);
1278
1286
  n.setWithVelocity(a.sample(l - Ls).value, a.sample(l).value, Ls), a.stop();
1279
1287
  }
1280
1288
  }
1281
1289
  const Ks = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
1282
- (bt.test(t) || t === "0") && // And it contains numbers and/or colors
1290
+ (vt.test(t) || t === "0") && // And it contains numbers and/or colors
1283
1291
  !t.startsWith("url("));
1284
1292
  function yl(t) {
1285
1293
  const e = t[0];
@@ -1296,7 +1304,7 @@ function bl(t, e, n, s) {
1296
1304
  if (e === "display" || e === "visibility")
1297
1305
  return !0;
1298
1306
  const o = t[t.length - 1], r = Ks(i, e), a = Ks(o, e);
1299
- 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 : yl(t) || (n === "spring" || Pr(n)) && s;
1307
+ return jt(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 : yl(t) || (n === "spring" || Pr(n)) && s;
1300
1308
  }
1301
1309
  function bn(t) {
1302
1310
  t.duration = 0, t.type;
@@ -1308,7 +1316,7 @@ const vl = /* @__PURE__ */ new Set([
1308
1316
  "transform"
1309
1317
  // TODO: Could be re-enabled now we have support for linear() easing
1310
1318
  // "background-color"
1311
- ]), xl = /* @__PURE__ */ On(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1319
+ ]), xl = /* @__PURE__ */ Bn(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1312
1320
  function wl(t) {
1313
1321
  const { motionValue: e, name: n, repeatDelay: s, repeatType: i, damping: o, type: r } = t;
1314
1322
  if (!(e?.owner?.current instanceof HTMLElement))
@@ -1343,7 +1351,7 @@ class Cl extends qn {
1343
1351
  onKeyframesResolved(e, n, s, i) {
1344
1352
  this.keyframeResolver = void 0;
1345
1353
  const { name: o, type: r, velocity: a, delay: l, isHandoff: u, onUpdate: c } = s;
1346
- this.resolvedAt = Y.now(), bl(e, o, r, a) || ((ft.instantAnimations || !l) && c?.(Yn(e, s, n)), e[0] = e[e.length - 1], bn(s), s.repeat = 0);
1354
+ this.resolvedAt = Y.now(), bl(e, o, r, a) || ((pt.instantAnimations || !l) && c?.(Yn(e, s, n)), e[0] = e[e.length - 1], bn(s), s.repeat = 0);
1347
1355
  const m = {
1348
1356
  startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > Tl ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1349
1357
  finalKeyframe: n,
@@ -1353,7 +1361,7 @@ class Cl extends qn {
1353
1361
  ...m,
1354
1362
  element: m.motionValue.owner.current
1355
1363
  }) : new Zn(m);
1356
- v.finished.then(() => this.notifyFinished()).catch(st), this.pendingTimeline && (this.stopTimeline = v.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = v;
1364
+ v.finished.then(() => this.notifyFinished()).catch(it), this.pendingTimeline && (this.stopTimeline = v.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = v;
1357
1365
  }
1358
1366
  get finished() {
1359
1367
  return this._animation ? this.animation.finished : this._finished;
@@ -1415,7 +1423,7 @@ function Sl(t) {
1415
1423
  }
1416
1424
  const kl = 4;
1417
1425
  function kr(t, e, n = 1) {
1418
- ht(n <= kl, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1426
+ ft(n <= kl, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1419
1427
  const [s, i] = Sl(t);
1420
1428
  if (!s)
1421
1429
  return;
@@ -1424,7 +1432,7 @@ function kr(t, e, n = 1) {
1424
1432
  const r = o.trim();
1425
1433
  return Xi(r) ? parseFloat(r) : r;
1426
1434
  }
1427
- return $n(i) ? kr(i, e, n + 1) : i;
1435
+ return Gn(i) ? kr(i, e, n + 1) : i;
1428
1436
  }
1429
1437
  function Qn(t, e) {
1430
1438
  return t?.[e] ?? t?.default ?? t;
@@ -1436,11 +1444,11 @@ const Ar = /* @__PURE__ */ new Set([
1436
1444
  "left",
1437
1445
  "right",
1438
1446
  "bottom",
1439
- ...Nt
1447
+ ...Ut
1440
1448
  ]), Al = {
1441
1449
  test: (t) => t === "auto",
1442
1450
  parse: (t) => t
1443
- }, Mr = (t) => (e) => e.test(t), Vr = [jt, M, at, gt, ya, ga, Al], Is = (t) => Vr.find(Mr(t));
1451
+ }, Mr = (t) => (e) => e.test(t), Vr = [Nt, M, lt, yt, ya, ga, Al], _s = (t) => Vr.find(Mr(t));
1444
1452
  function Ml(t) {
1445
1453
  return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || qi(t) : !0;
1446
1454
  }
@@ -1449,7 +1457,7 @@ function El(t) {
1449
1457
  const [e, n] = t.slice(0, -1).split("(");
1450
1458
  if (e === "drop-shadow")
1451
1459
  return t;
1452
- const [s] = n.match(Gn) || [];
1460
+ const [s] = n.match($n) || [];
1453
1461
  if (!s)
1454
1462
  return t;
1455
1463
  const i = n.replace(s, "");
@@ -1457,26 +1465,26 @@ function El(t) {
1457
1465
  return s !== n && (o *= 100), e + "(" + o + i + ")";
1458
1466
  }
1459
1467
  const Dl = /\b([a-z-]*)\(.*?\)/gu, vn = {
1460
- ...bt,
1468
+ ...vt,
1461
1469
  getAnimatableNone: (t) => {
1462
1470
  const e = t.match(Dl);
1463
1471
  return e ? e.map(El).join(" ") : t;
1464
1472
  }
1465
- }, _s = {
1466
- ...jt,
1473
+ }, Is = {
1474
+ ...Nt,
1467
1475
  transform: Math.round
1468
1476
  }, Rl = {
1469
- rotate: gt,
1470
- rotateX: gt,
1471
- rotateY: gt,
1472
- rotateZ: gt,
1477
+ rotate: yt,
1478
+ rotateX: yt,
1479
+ rotateY: yt,
1480
+ rotateZ: yt,
1473
1481
  scale: ge,
1474
1482
  scaleX: ge,
1475
1483
  scaleY: ge,
1476
1484
  scaleZ: ge,
1477
- skew: gt,
1478
- skewX: gt,
1479
- skewY: gt,
1485
+ skew: yt,
1486
+ skewX: yt,
1487
+ skewY: yt,
1480
1488
  distance: M,
1481
1489
  translateX: M,
1482
1490
  translateY: M,
@@ -1486,7 +1494,7 @@ const Dl = /\b([a-z-]*)\(.*?\)/gu, vn = {
1486
1494
  z: M,
1487
1495
  perspective: M,
1488
1496
  transformPerspective: M,
1489
- opacity: Qt,
1497
+ opacity: te,
1490
1498
  originX: Cs,
1491
1499
  originY: Cs,
1492
1500
  originZ: M
@@ -1527,11 +1535,11 @@ const Dl = /\b([a-z-]*)\(.*?\)/gu, vn = {
1527
1535
  backgroundPositionX: M,
1528
1536
  backgroundPositionY: M,
1529
1537
  ...Rl,
1530
- zIndex: _s,
1538
+ zIndex: Is,
1531
1539
  // SVG
1532
- fillOpacity: Qt,
1533
- strokeOpacity: Qt,
1534
- numOctaves: _s
1540
+ fillOpacity: te,
1541
+ strokeOpacity: te,
1542
+ numOctaves: Is
1535
1543
  }, Ll = {
1536
1544
  ...ts,
1537
1545
  // Color props
@@ -1551,20 +1559,20 @@ const Dl = /\b([a-z-]*)\(.*?\)/gu, vn = {
1551
1559
  }, Er = (t) => Ll[t];
1552
1560
  function Dr(t, e) {
1553
1561
  let n = Er(t);
1554
- return n !== vn && (n = bt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
1562
+ return n !== vn && (n = vt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
1555
1563
  }
1556
1564
  const Kl = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1557
- function Il(t, e, n) {
1565
+ function _l(t, e, n) {
1558
1566
  let s = 0, i;
1559
1567
  for (; s < t.length && !i; ) {
1560
1568
  const o = t[s];
1561
- typeof o == "string" && !Kl.has(o) && te(o).values.length && (i = t[s]), s++;
1569
+ typeof o == "string" && !Kl.has(o) && ee(o).values.length && (i = t[s]), s++;
1562
1570
  }
1563
1571
  if (i && n)
1564
1572
  for (const o of e)
1565
1573
  t[o] = Dr(n, i);
1566
1574
  }
1567
- class _l extends Jn {
1575
+ class Il extends Jn {
1568
1576
  constructor(e, n, s, i, o) {
1569
1577
  super(e, n, s, i, o, !0);
1570
1578
  }
@@ -1575,33 +1583,33 @@ class _l extends Jn {
1575
1583
  super.readKeyframes();
1576
1584
  for (let l = 0; l < e.length; l++) {
1577
1585
  let u = e[l];
1578
- if (typeof u == "string" && (u = u.trim(), $n(u))) {
1586
+ if (typeof u == "string" && (u = u.trim(), Gn(u))) {
1579
1587
  const c = kr(u, n.current);
1580
1588
  c !== void 0 && (e[l] = c), l === e.length - 1 && (this.finalKeyframe = u);
1581
1589
  }
1582
1590
  }
1583
1591
  if (this.resolveNoneKeyframes(), !Ar.has(s) || e.length !== 2)
1584
1592
  return;
1585
- const [i, o] = e, r = Is(i), a = Is(o);
1593
+ const [i, o] = e, r = _s(i), a = _s(o);
1586
1594
  if (r !== a)
1587
1595
  if (Ds(r) && Ds(a))
1588
1596
  for (let l = 0; l < e.length; l++) {
1589
1597
  const u = e[l];
1590
1598
  typeof u == "string" && (e[l] = parseFloat(u));
1591
1599
  }
1592
- else St[s] && (this.needsMeasurement = !0);
1600
+ else kt[s] && (this.needsMeasurement = !0);
1593
1601
  }
1594
1602
  resolveNoneKeyframes() {
1595
1603
  const { unresolvedKeyframes: e, name: n } = this, s = [];
1596
1604
  for (let i = 0; i < e.length; i++)
1597
1605
  (e[i] === null || Ml(e[i])) && s.push(i);
1598
- s.length && Il(e, s, n);
1606
+ s.length && _l(e, s, n);
1599
1607
  }
1600
1608
  measureInitialState() {
1601
1609
  const { element: e, unresolvedKeyframes: n, name: s } = this;
1602
1610
  if (!e || !e.current)
1603
1611
  return;
1604
- s === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = St[s](e.measureViewportBox(), window.getComputedStyle(e.current)), n[0] = this.measuredOrigin;
1612
+ s === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = kt[s](e.measureViewportBox(), window.getComputedStyle(e.current)), n[0] = this.measuredOrigin;
1605
1613
  const i = n[n.length - 1];
1606
1614
  i !== void 0 && e.getValue(s, i).jump(i, !1);
1607
1615
  }
@@ -1612,12 +1620,12 @@ class _l extends Jn {
1612
1620
  const i = e.getValue(n);
1613
1621
  i && i.jump(this.measuredOrigin, !1);
1614
1622
  const o = s.length - 1, r = s[o];
1615
- s[o] = St[n](e.measureViewportBox(), window.getComputedStyle(e.current)), r !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = r), this.removedTransforms?.length && this.removedTransforms.forEach(([a, l]) => {
1623
+ s[o] = kt[n](e.measureViewportBox(), window.getComputedStyle(e.current)), r !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = r), this.removedTransforms?.length && this.removedTransforms.forEach(([a, l]) => {
1616
1624
  e.getValue(a).set(l);
1617
1625
  }), this.resolveNoneKeyframes();
1618
1626
  }
1619
1627
  }
1620
- function Bl(t, e, n) {
1628
+ function Ol(t, e, n) {
1621
1629
  if (t instanceof EventTarget)
1622
1630
  return [t];
1623
1631
  if (typeof t == "string") {
@@ -1631,7 +1639,7 @@ const Rr = (t, e) => e && typeof t == "number" ? e.transform(t) : t;
1631
1639
  function Lr(t) {
1632
1640
  return Yi(t) && "offsetHeight" in t;
1633
1641
  }
1634
- const Bs = 30, Ol = (t) => !isNaN(parseFloat(t));
1642
+ const Os = 30, Bl = (t) => !isNaN(parseFloat(t));
1635
1643
  class Fl {
1636
1644
  /**
1637
1645
  * @param init - The initiating value
@@ -1648,7 +1656,7 @@ class Fl {
1648
1656
  }, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
1649
1657
  }
1650
1658
  setCurrent(e) {
1651
- this.current = e, this.updatedAt = Y.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Ol(this.current));
1659
+ this.current = e, this.updatedAt = Y.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Bl(this.current));
1652
1660
  }
1653
1661
  setPrevFrameValue(e = this.current) {
1654
1662
  this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -1777,9 +1785,9 @@ class Fl {
1777
1785
  */
1778
1786
  getVelocity() {
1779
1787
  const e = Y.now();
1780
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Bs)
1788
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Os)
1781
1789
  return 0;
1782
- const n = Math.min(this.updatedAt - this.prevUpdatedAt, Bs);
1790
+ const n = Math.min(this.updatedAt - this.prevUpdatedAt, Os);
1783
1791
  return Zi(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
1784
1792
  }
1785
1793
  /**
@@ -1831,43 +1839,43 @@ class Fl {
1831
1839
  this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
1832
1840
  }
1833
1841
  }
1834
- function _t(t, e) {
1842
+ function Ot(t, e) {
1835
1843
  return new Fl(t, e);
1836
1844
  }
1837
- const { schedule: es } = /* @__PURE__ */ lr(queueMicrotask, !1), it = {
1845
+ const { schedule: es } = /* @__PURE__ */ lr(queueMicrotask, !1), rt = {
1838
1846
  x: !1,
1839
1847
  y: !1
1840
1848
  };
1841
1849
  function Kr() {
1842
- return it.x || it.y;
1850
+ return rt.x || rt.y;
1843
1851
  }
1844
1852
  function jl(t) {
1845
- return t === "x" || t === "y" ? it[t] ? null : (it[t] = !0, () => {
1846
- it[t] = !1;
1847
- }) : it.x || it.y ? null : (it.x = it.y = !0, () => {
1848
- it.x = it.y = !1;
1853
+ return t === "x" || t === "y" ? rt[t] ? null : (rt[t] = !0, () => {
1854
+ rt[t] = !1;
1855
+ }) : rt.x || rt.y ? null : (rt.x = rt.y = !0, () => {
1856
+ rt.x = rt.y = !1;
1849
1857
  });
1850
1858
  }
1851
- function Ir(t, e) {
1852
- const n = Bl(t), s = new AbortController(), i = {
1859
+ function _r(t, e) {
1860
+ const n = Ol(t), s = new AbortController(), i = {
1853
1861
  passive: !0,
1854
1862
  ...e,
1855
1863
  signal: s.signal
1856
1864
  };
1857
1865
  return [n, i, () => s.abort()];
1858
1866
  }
1859
- function Os(t) {
1867
+ function Bs(t) {
1860
1868
  return !(t.pointerType === "touch" || Kr());
1861
1869
  }
1862
1870
  function Nl(t, e, n = {}) {
1863
- const [s, i, o] = Ir(t, n), r = (a) => {
1864
- if (!Os(a))
1871
+ const [s, i, o] = _r(t, n), r = (a) => {
1872
+ if (!Bs(a))
1865
1873
  return;
1866
1874
  const { target: l } = a, u = e(l, a);
1867
1875
  if (typeof u != "function" || !l)
1868
1876
  return;
1869
1877
  const c = (f) => {
1870
- Os(f) && (u(f), l.removeEventListener("pointerleave", c));
1878
+ Bs(f) && (u(f), l.removeEventListener("pointerleave", c));
1871
1879
  };
1872
1880
  l.addEventListener("pointerleave", c, i);
1873
1881
  };
@@ -1875,7 +1883,7 @@ function Nl(t, e, n = {}) {
1875
1883
  a.addEventListener("pointerenter", r, i);
1876
1884
  }), o;
1877
1885
  }
1878
- const _r = (t, e) => e ? t === e ? !0 : _r(t, e.parentElement) : !1, ns = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, Ul = /* @__PURE__ */ new Set([
1886
+ const Ir = (t, e) => e ? t === e ? !0 : Ir(t, e.parentElement) : !1, ns = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, Ul = /* @__PURE__ */ new Set([
1879
1887
  "BUTTON",
1880
1888
  "INPUT",
1881
1889
  "SELECT",
@@ -1894,7 +1902,7 @@ function Fs(t) {
1894
1902
  function We(t, e) {
1895
1903
  t.dispatchEvent(new PointerEvent("pointer" + e, { isPrimary: !0, bubbles: !0 }));
1896
1904
  }
1897
- const $l = (t, e) => {
1905
+ const Gl = (t, e) => {
1898
1906
  const n = t.currentTarget;
1899
1907
  if (!n)
1900
1908
  return;
@@ -1912,8 +1920,8 @@ const $l = (t, e) => {
1912
1920
  function js(t) {
1913
1921
  return ns(t) && !Kr();
1914
1922
  }
1915
- function Gl(t, e, n = {}) {
1916
- const [s, i, o] = Ir(t, n), r = (a) => {
1923
+ function $l(t, e, n = {}) {
1924
+ const [s, i, o] = _r(t, n), r = (a) => {
1917
1925
  const l = a.currentTarget;
1918
1926
  if (!js(a))
1919
1927
  return;
@@ -1921,23 +1929,23 @@ function Gl(t, e, n = {}) {
1921
1929
  const u = e(l, a), c = (v, w) => {
1922
1930
  window.removeEventListener("pointerup", f), window.removeEventListener("pointercancel", m), Te.has(l) && Te.delete(l), js(v) && typeof u == "function" && u(v, { success: w });
1923
1931
  }, f = (v) => {
1924
- c(v, l === window || l === document || n.useGlobalTarget || _r(l, v.target));
1932
+ c(v, l === window || l === document || n.useGlobalTarget || Ir(l, v.target));
1925
1933
  }, m = (v) => {
1926
1934
  c(v, !1);
1927
1935
  };
1928
1936
  window.addEventListener("pointerup", f, i), window.addEventListener("pointercancel", m, i);
1929
1937
  };
1930
1938
  return s.forEach((a) => {
1931
- (n.useGlobalTarget ? window : a).addEventListener("pointerdown", r, i), Lr(a) && (a.addEventListener("focus", (u) => $l(u, i)), !zl(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
1939
+ (n.useGlobalTarget ? window : a).addEventListener("pointerdown", r, i), Lr(a) && (a.addEventListener("focus", (u) => Gl(u, i)), !zl(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
1932
1940
  }), o;
1933
1941
  }
1934
- function Br(t) {
1942
+ function Or(t) {
1935
1943
  return Yi(t) && "ownerSVGElement" in t;
1936
1944
  }
1937
1945
  function Wl(t) {
1938
- return Br(t) && t.tagName === "svg";
1946
+ return Or(t) && t.tagName === "svg";
1939
1947
  }
1940
- const W = (t) => !!(t && t.getVelocity), Hl = [...Vr, F, bt], Xl = (t) => Hl.find(Mr(t)), ss = Ot({
1948
+ const W = (t) => !!(t && t.getVelocity), Hl = [...Vr, F, vt], Xl = (t) => Hl.find(Mr(t)), ss = Ft({
1941
1949
  transformPagePoint: (t) => t,
1942
1950
  isStatic: !1,
1943
1951
  reducedMotion: "never"
@@ -1961,13 +1969,13 @@ class Yl extends Dn.Component {
1961
1969
  }
1962
1970
  }
1963
1971
  function ql({ children: t, isPresent: e, anchorX: n, root: s }) {
1964
- const i = Rn(), o = ut(null), r = ut({
1972
+ const i = Rn(), o = dt(null), r = dt({
1965
1973
  width: 0,
1966
1974
  height: 0,
1967
1975
  top: 0,
1968
1976
  left: 0,
1969
1977
  right: 0
1970
- }), { nonce: a } = G(ss);
1978
+ }), { nonce: a } = $(ss);
1971
1979
  return Ui(() => {
1972
1980
  const { width: l, height: u, top: c, left: f, right: m } = r.current;
1973
1981
  if (e || !o.current || !l || !u)
@@ -1992,7 +2000,7 @@ function ql({ children: t, isPresent: e, anchorX: n, root: s }) {
1992
2000
  }
1993
2001
  const Zl = ({ children: t, initial: e, isPresent: n, onExitComplete: s, custom: i, presenceAffectsLayout: o, mode: r, anchorX: a, root: l }) => {
1994
2002
  const u = Kn(Jl), c = Rn();
1995
- let f = !0, m = At(() => (f = !1, {
2003
+ let f = !0, m = Mt(() => (f = !1, {
1996
2004
  id: c,
1997
2005
  initial: e,
1998
2006
  isPresent: n,
@@ -2006,7 +2014,7 @@ const Zl = ({ children: t, initial: e, isPresent: n, onExitComplete: s, custom:
2006
2014
  },
2007
2015
  register: (v) => (u.set(v, !1), () => u.delete(v))
2008
2016
  }), [n, u, s]);
2009
- return o && f && (m = { ...m }), At(() => {
2017
+ return o && f && (m = { ...m }), Mt(() => {
2010
2018
  u.forEach((v, w) => u.set(w, !1));
2011
2019
  }, [n]), Dn.useEffect(() => {
2012
2020
  !n && !u.size && s && s();
@@ -2015,8 +2023,8 @@ const Zl = ({ children: t, initial: e, isPresent: n, onExitComplete: s, custom:
2015
2023
  function Jl() {
2016
2024
  return /* @__PURE__ */ new Map();
2017
2025
  }
2018
- function Or(t = !0) {
2019
- const e = G(Le);
2026
+ function Br(t = !0) {
2027
+ const e = $(Le);
2020
2028
  if (e === null)
2021
2029
  return [!0, null];
2022
2030
  const { isPresent: n, onExitComplete: s, register: i } = e, o = Rn();
@@ -2030,12 +2038,12 @@ function Or(t = !0) {
2030
2038
  const ye = (t) => t.key || "";
2031
2039
  function Ns(t) {
2032
2040
  const e = [];
2033
- return Bo.forEach(t, (n) => {
2034
- Oo(n) && e.push(n);
2041
+ return Oo.forEach(t, (n) => {
2042
+ Bo(n) && e.push(n);
2035
2043
  }), e;
2036
2044
  }
2037
2045
  const Ql = ({ children: t, custom: e, initial: n = !0, onExitComplete: s, presenceAffectsLayout: i = !0, mode: o = "sync", propagate: r = !1, anchorX: a = "left", root: l }) => {
2038
- const [u, c] = Or(r), f = At(() => Ns(t), [t]), m = r && !u ? [] : f.map(ye), v = ut(!0), w = ut(f), C = Kn(() => /* @__PURE__ */ new Map()), [P, h] = gs(f), [y, d] = gs(f);
2046
+ const [u, c] = Br(r), f = Mt(() => Ns(t), [t]), m = r && !u ? [] : f.map(ye), v = dt(!0), w = dt(f), C = Kn(() => /* @__PURE__ */ new Map()), [P, h] = gs(f), [y, d] = gs(f);
2039
2047
  Hi(() => {
2040
2048
  v.current = !1, w.current = f;
2041
2049
  for (let x = 0; x < y.length; x++) {
@@ -2053,7 +2061,7 @@ const Ql = ({ children: t, custom: e, initial: n = !0, onExitComplete: s, presen
2053
2061
  return o === "wait" && p.length && (x = p), d(Ns(x)), h(f), null;
2054
2062
  }
2055
2063
  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.`);
2056
- const { forceRender: g } = G(Ln);
2064
+ const { forceRender: g } = $(Ln);
2057
2065
  return Q(Uo, { children: y.map((x) => {
2058
2066
  const T = ye(x), b = r && !u ? !1 : f === y || m.includes(T), V = () => {
2059
2067
  if (C.has(T))
@@ -2067,7 +2075,7 @@ const Ql = ({ children: t, custom: e, initial: n = !0, onExitComplete: s, presen
2067
2075
  };
2068
2076
  return Q(Zl, { 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);
2069
2077
  }) });
2070
- }, Fr = Ot({ strict: !1 }), Us = {
2078
+ }, Fr = Ft({ strict: !1 }), Us = {
2071
2079
  animation: [
2072
2080
  "animate",
2073
2081
  "variants",
@@ -2148,11 +2156,11 @@ function sc(t, e, n) {
2148
2156
  t.draggable && i.startsWith("onDrag")) && (s[i] = t[i]);
2149
2157
  return s;
2150
2158
  }
2151
- const Ke = /* @__PURE__ */ Ot({});
2152
- function Ie(t) {
2159
+ const Ke = /* @__PURE__ */ Ft({});
2160
+ function _e(t) {
2153
2161
  return t !== null && typeof t == "object" && typeof t.start == "function";
2154
2162
  }
2155
- function ee(t) {
2163
+ function ne(t) {
2156
2164
  return typeof t == "string" || Array.isArray(t);
2157
2165
  }
2158
2166
  const is = [
@@ -2164,47 +2172,47 @@ const is = [
2164
2172
  "whileDrag",
2165
2173
  "exit"
2166
2174
  ], rs = ["initial", ...is];
2167
- function _e(t) {
2168
- return Ie(t.animate) || rs.some((e) => ee(t[e]));
2175
+ function Ie(t) {
2176
+ return _e(t.animate) || rs.some((e) => ne(t[e]));
2169
2177
  }
2170
2178
  function Nr(t) {
2171
- return !!(_e(t) || t.variants);
2179
+ return !!(Ie(t) || t.variants);
2172
2180
  }
2173
2181
  function ic(t, e) {
2174
- if (_e(t)) {
2182
+ if (Ie(t)) {
2175
2183
  const { initial: n, animate: s } = t;
2176
2184
  return {
2177
- initial: n === !1 || ee(n) ? n : void 0,
2178
- animate: ee(s) ? s : void 0
2185
+ initial: n === !1 || ne(n) ? n : void 0,
2186
+ animate: ne(s) ? s : void 0
2179
2187
  };
2180
2188
  }
2181
2189
  return t.inherit !== !1 ? e : {};
2182
2190
  }
2183
2191
  function rc(t) {
2184
- const { initial: e, animate: n } = ic(t, G(Ke));
2185
- return At(() => ({ initial: e, animate: n }), [zs(e), zs(n)]);
2192
+ const { initial: e, animate: n } = ic(t, $(Ke));
2193
+ return Mt(() => ({ initial: e, animate: n }), [zs(e), zs(n)]);
2186
2194
  }
2187
2195
  function zs(t) {
2188
2196
  return Array.isArray(t) ? t.join(" ") : t;
2189
2197
  }
2190
- const ne = {};
2198
+ const se = {};
2191
2199
  function oc(t) {
2192
2200
  for (const e in t)
2193
- ne[e] = t[e], zn(e) && (ne[e].isCSSVariable = !0);
2201
+ se[e] = t[e], zn(e) && (se[e].isCSSVariable = !0);
2194
2202
  }
2195
2203
  function Ur(t, { layout: e, layoutId: n }) {
2196
- return Ut.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!ne[t] || t === "opacity");
2204
+ return zt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!se[t] || t === "opacity");
2197
2205
  }
2198
2206
  const ac = {
2199
2207
  x: "translateX",
2200
2208
  y: "translateY",
2201
2209
  z: "translateZ",
2202
2210
  transformPerspective: "perspective"
2203
- }, lc = Nt.length;
2211
+ }, lc = Ut.length;
2204
2212
  function cc(t, e, n) {
2205
2213
  let s = "", i = !0;
2206
2214
  for (let o = 0; o < lc; o++) {
2207
- const r = Nt[o], a = t[r];
2215
+ const r = Ut[o], a = t[r];
2208
2216
  if (a === void 0)
2209
2217
  continue;
2210
2218
  let l = !0;
@@ -2225,7 +2233,7 @@ function os(t, e, n) {
2225
2233
  let r = !1, a = !1;
2226
2234
  for (const l in e) {
2227
2235
  const u = e[l];
2228
- if (Ut.has(l)) {
2236
+ if (zt.has(l)) {
2229
2237
  r = !0;
2230
2238
  continue;
2231
2239
  } else if (zn(l)) {
@@ -2252,7 +2260,7 @@ function zr(t, e, n) {
2252
2260
  !W(e[s]) && !Ur(s, n) && (t[s] = e[s]);
2253
2261
  }
2254
2262
  function uc({ transformTemplate: t }, e) {
2255
- return At(() => {
2263
+ return Mt(() => {
2256
2264
  const n = as();
2257
2265
  return os(n, e, t), Object.assign({}, n.vars, n.style);
2258
2266
  }, [e]);
@@ -2279,7 +2287,7 @@ function mc(t, e, n = 1, s = 0, i = !0) {
2279
2287
  const r = M.transform(e), a = M.transform(n);
2280
2288
  t[o.array] = `${r} ${a}`;
2281
2289
  }
2282
- function $r(t, {
2290
+ function Gr(t, {
2283
2291
  attrX: e,
2284
2292
  attrY: n,
2285
2293
  attrScale: s,
@@ -2297,14 +2305,14 @@ function $r(t, {
2297
2305
  const { attrs: f, style: m } = t;
2298
2306
  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 && mc(f, i, o, r, !1);
2299
2307
  }
2300
- const Gr = () => ({
2308
+ const $r = () => ({
2301
2309
  ...as(),
2302
2310
  attrs: {}
2303
2311
  }), Wr = (t) => typeof t == "string" && t.toLowerCase() === "svg";
2304
2312
  function gc(t, e, n, s) {
2305
- const i = At(() => {
2306
- const o = Gr();
2307
- return $r(o, e, Wr(s), t.transformTemplate, t.style), {
2313
+ const i = Mt(() => {
2314
+ const o = $r();
2315
+ return Gr(o, e, Wr(s), t.transformTemplate, t.style), {
2308
2316
  ...o.attrs,
2309
2317
  style: { ...o.style }
2310
2318
  };
@@ -2363,13 +2371,13 @@ function ls(t) {
2363
2371
  );
2364
2372
  }
2365
2373
  function bc(t, e, n, { latestValues: s }, i, o = !1) {
2366
- const a = (ls(t) ? gc : hc)(e, s, i, t), l = sc(e, typeof t == "string", o), u = t !== $i ? { ...l, ...a, ref: n } : {}, { children: c } = e, f = At(() => W(c) ? c.get() : c, [c]);
2374
+ const a = (ls(t) ? gc : hc)(e, s, i, t), l = sc(e, typeof t == "string", o), u = t !== Gi ? { ...l, ...a, ref: n } : {}, { children: c } = e, f = Mt(() => W(c) ? c.get() : c, [c]);
2367
2375
  return Fo(t, {
2368
2376
  ...u,
2369
2377
  children: f
2370
2378
  });
2371
2379
  }
2372
- function $s(t) {
2380
+ function Gs(t) {
2373
2381
  const e = [{}, {}];
2374
2382
  return t?.values.forEach((n, s) => {
2375
2383
  e[0][s] = n.get(), e[1][s] = n.getVelocity();
@@ -2377,11 +2385,11 @@ function $s(t) {
2377
2385
  }
2378
2386
  function cs(t, e, n, s) {
2379
2387
  if (typeof e == "function") {
2380
- const [i, o] = $s(s);
2388
+ const [i, o] = Gs(s);
2381
2389
  e = e(n !== void 0 ? n : t.custom, i, o);
2382
2390
  }
2383
2391
  if (typeof e == "string" && (e = t.variants && t.variants[e]), typeof e == "function") {
2384
- const [i, o] = $s(s);
2392
+ const [i, o] = Gs(s);
2385
2393
  e = e(n !== void 0 ? n : t.custom, i, o);
2386
2394
  }
2387
2395
  return e;
@@ -2400,12 +2408,12 @@ function xc(t, e, n, s) {
2400
2408
  for (const m in o)
2401
2409
  i[m] = Ce(o[m]);
2402
2410
  let { initial: r, animate: a } = t;
2403
- const l = _e(t), u = Nr(t);
2411
+ const l = Ie(t), u = Nr(t);
2404
2412
  e && u && !l && t.inherit !== !1 && (r === void 0 && (r = e.initial), a === void 0 && (a = e.animate));
2405
2413
  let c = n ? n.initial === !1 : !1;
2406
2414
  c = c || r === !1;
2407
2415
  const f = c ? a : r;
2408
- if (f && typeof f != "boolean" && !Ie(f)) {
2416
+ if (f && typeof f != "boolean" && !_e(f)) {
2409
2417
  const m = Array.isArray(f) ? f : [f];
2410
2418
  for (let v = 0; v < m.length; v++) {
2411
2419
  const w = cs(t, m[v]);
@@ -2427,7 +2435,7 @@ function xc(t, e, n, s) {
2427
2435
  return i;
2428
2436
  }
2429
2437
  const Hr = (t) => (e, n) => {
2430
- const s = G(Ke), i = G(Le), o = () => vc(t, e, s, i);
2438
+ const s = $(Ke), i = $(Le), o = () => vc(t, e, s, i);
2431
2439
  return n ? o() : Kn(o);
2432
2440
  };
2433
2441
  function us(t, e, n) {
@@ -2444,22 +2452,22 @@ function Xr(t, e, n) {
2444
2452
  const s = us(t, e, n);
2445
2453
  for (const i in t)
2446
2454
  if (W(t[i]) || W(e[i])) {
2447
- const o = Nt.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
2455
+ const o = Ut.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
2448
2456
  s[o] = t[i];
2449
2457
  }
2450
2458
  return s;
2451
2459
  }
2452
2460
  const Tc = /* @__PURE__ */ Hr({
2453
2461
  scrapeMotionValuesFromProps: Xr,
2454
- createRenderState: Gr
2462
+ createRenderState: $r
2455
2463
  }), Cc = Symbol.for("motionComponentSymbol");
2456
- function Dt(t) {
2464
+ function Rt(t) {
2457
2465
  return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
2458
2466
  }
2459
2467
  function Pc(t, e, n) {
2460
2468
  return zi(
2461
2469
  (s) => {
2462
- s && t.onMount && t.onMount(s), e && (s ? e.mount(s) : e.unmount()), n && (typeof n == "function" ? n(s) : Dt(n) && (n.current = s));
2470
+ s && t.onMount && t.onMount(s), e && (s ? e.mount(s) : e.unmount()), n && (typeof n == "function" ? n(s) : Rt(n) && (n.current = s));
2463
2471
  },
2464
2472
  /**
2465
2473
  * Only pass a new ref callback to React if we've received a visual element
@@ -2469,9 +2477,9 @@ function Pc(t, e, n) {
2469
2477
  [e]
2470
2478
  );
2471
2479
  }
2472
- const ds = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Sc = "framerAppearId", Yr = "data-" + ds(Sc), qr = Ot({});
2480
+ const ds = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Sc = "framerAppearId", Yr = "data-" + ds(Sc), qr = Ft({});
2473
2481
  function kc(t, e, n, s, i) {
2474
- const { visualElement: o } = G(Ke), r = G(Fr), a = G(Le), l = G(ss).reducedMotion, u = ut(null);
2482
+ const { visualElement: o } = $(Ke), r = $(Fr), a = $(Le), l = $(ss).reducedMotion, u = dt(null);
2475
2483
  s = s || r.renderer, !u.current && s && (u.current = s(t, {
2476
2484
  visualState: e,
2477
2485
  parent: o,
@@ -2480,13 +2488,13 @@ function kc(t, e, n, s, i) {
2480
2488
  blockInitialAnimation: a ? a.initial === !1 : !1,
2481
2489
  reducedMotionConfig: l
2482
2490
  }));
2483
- const c = u.current, f = G(qr);
2491
+ const c = u.current, f = $(qr);
2484
2492
  c && !c.projection && i && (c.type === "html" || c.type === "svg") && Ac(u.current, n, i, f);
2485
- const m = ut(!1);
2493
+ const m = dt(!1);
2486
2494
  Ui(() => {
2487
2495
  c && m.current && c.update(n, a);
2488
2496
  });
2489
- const v = n[Yr], w = ut(!!v && !window.MotionHandoffIsComplete?.(v) && window.MotionHasOptimisedAnimation?.(v));
2497
+ const v = n[Yr], w = dt(!!v && !window.MotionHandoffIsComplete?.(v) && window.MotionHasOptimisedAnimation?.(v));
2490
2498
  return Hi(() => {
2491
2499
  c && (m.current = !0, window.MotionIsMounted = !0, c.updateFeatures(), c.scheduleRenderMicrotask(), w.current && c.animationState && c.animationState.animateChanges());
2492
2500
  }), Re(() => {
@@ -2500,7 +2508,7 @@ function Ac(t, e, n, s) {
2500
2508
  t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : Zr(t.parent)), t.projection.setOptions({
2501
2509
  layoutId: i,
2502
2510
  layout: o,
2503
- alwaysMeasureLayout: !!r || a && Dt(a),
2511
+ alwaysMeasureLayout: !!r || a && Rt(a),
2504
2512
  visualElement: t,
2505
2513
  /**
2506
2514
  * TODO: Update options in an effect. This could be tricky as it'll be too late
@@ -2526,30 +2534,30 @@ function He(t, { forwardMotionProps: e = !1 } = {}, n, s) {
2526
2534
  function o(a, l) {
2527
2535
  let u;
2528
2536
  const c = {
2529
- ...G(ss),
2537
+ ...$(ss),
2530
2538
  ...a,
2531
2539
  layoutId: Mc(a)
2532
2540
  }, { isStatic: f } = c, m = rc(a), v = i(a, f);
2533
- if (!f && In) {
2541
+ if (!f && _n) {
2534
2542
  Vc(c, n);
2535
2543
  const w = Ec(c);
2536
2544
  u = w.MeasureLayout, m.visualElement = kc(t, v, c, s, w.ProjectionNode);
2537
2545
  }
2538
- return Gi(Ke.Provider, { value: m, children: [u && m.visualElement ? Q(u, { visualElement: m.visualElement, ...c }) : null, bc(t, a, Pc(v, m.visualElement, l), v, f, e)] });
2546
+ return $i(Ke.Provider, { value: m, children: [u && m.visualElement ? Q(u, { visualElement: m.visualElement, ...c }) : null, bc(t, a, Pc(v, m.visualElement, l), v, f, e)] });
2539
2547
  }
2540
2548
  o.displayName = `motion.${typeof t == "string" ? t : `create(${t.displayName ?? t.name ?? ""})`}`;
2541
2549
  const r = jo(o);
2542
2550
  return r[Cc] = t, r;
2543
2551
  }
2544
2552
  function Mc({ layoutId: t }) {
2545
- const e = G(Ln).id;
2553
+ const e = $(Ln).id;
2546
2554
  return e && t !== void 0 ? e + "-" + t : t;
2547
2555
  }
2548
2556
  function Vc(t, e) {
2549
- const n = G(Fr).strict;
2557
+ const n = $(Fr).strict;
2550
2558
  if (process.env.NODE_ENV !== "production" && e && n) {
2551
2559
  const s = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
2552
- t.ignoreStrict ? Ft(!1, s, "lazy-strict-mode") : ht(!1, s, "lazy-strict-mode");
2560
+ t.ignoreStrict ? jt(!1, s, "lazy-strict-mode") : ft(!1, s, "lazy-strict-mode");
2553
2561
  }
2554
2562
  }
2555
2563
  function Ec(t) {
@@ -2601,13 +2609,13 @@ function Xe(t) {
2601
2609
  function xn({ scale: t, scaleX: e, scaleY: n }) {
2602
2610
  return !Xe(t) || !Xe(e) || !Xe(n);
2603
2611
  }
2604
- function Tt(t) {
2612
+ function Ct(t) {
2605
2613
  return xn(t) || Qr(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
2606
2614
  }
2607
2615
  function Qr(t) {
2608
- return Gs(t.x) || Gs(t.y);
2616
+ return $s(t.x) || $s(t.y);
2609
2617
  }
2610
- function Gs(t) {
2618
+ function $s(t) {
2611
2619
  return t && t !== "0%";
2612
2620
  }
2613
2621
  function De(t, e, n) {
@@ -2633,65 +2641,65 @@ function Kc(t, e, n, s = !1) {
2633
2641
  for (let a = 0; a < i; a++) {
2634
2642
  o = n[a], r = o.projectionDelta;
2635
2643
  const { visualElement: l } = o.options;
2636
- l && l.props.style && l.props.style.display === "contents" || (s && o.options.layoutScroll && o.scroll && o !== o.root && Lt(t, {
2644
+ l && l.props.style && l.props.style.display === "contents" || (s && o.options.layoutScroll && o.scroll && o !== o.root && Kt(t, {
2637
2645
  x: -o.scroll.offset.x,
2638
2646
  y: -o.scroll.offset.y
2639
- }), r && (e.x *= r.x.scale, e.y *= r.y.scale, to(t, r)), s && Tt(o.latestValues) && Lt(t, o.latestValues));
2647
+ }), r && (e.x *= r.x.scale, e.y *= r.y.scale, to(t, r)), s && Ct(o.latestValues) && Kt(t, o.latestValues));
2640
2648
  }
2641
2649
  e.x < Xs && e.x > Hs && (e.x = 1), e.y < Xs && e.y > Hs && (e.y = 1);
2642
2650
  }
2643
- function Rt(t, e) {
2651
+ function Lt(t, e) {
2644
2652
  t.min = t.min + e, t.max = t.max + e;
2645
2653
  }
2646
2654
  function Ys(t, e, n, s, i = 0.5) {
2647
- const o = _(t.min, t.max, i);
2655
+ const o = I(t.min, t.max, i);
2648
2656
  wn(t, e, n, o, s);
2649
2657
  }
2650
- function Lt(t, e) {
2658
+ function Kt(t, e) {
2651
2659
  Ys(t.x, e.x, e.scaleX, e.scale, e.originX), Ys(t.y, e.y, e.scaleY, e.scale, e.originY);
2652
2660
  }
2653
2661
  function eo(t, e) {
2654
2662
  return Jr(Lc(t.getBoundingClientRect(), e));
2655
2663
  }
2656
- function Ic(t, e, n) {
2664
+ function _c(t, e, n) {
2657
2665
  const s = eo(t, n), { scroll: i } = e;
2658
- return i && (Rt(s.x, i.offset.x), Rt(s.y, i.offset.y)), s;
2666
+ return i && (Lt(s.x, i.offset.x), Lt(s.y, i.offset.y)), s;
2659
2667
  }
2660
2668
  const qs = () => ({
2661
2669
  translate: 0,
2662
2670
  scale: 1,
2663
2671
  origin: 0,
2664
2672
  originPoint: 0
2665
- }), Kt = () => ({
2673
+ }), _t = () => ({
2666
2674
  x: qs(),
2667
2675
  y: qs()
2668
- }), Zs = () => ({ min: 0, max: 0 }), O = () => ({
2676
+ }), Zs = () => ({ min: 0, max: 0 }), B = () => ({
2669
2677
  x: Zs(),
2670
2678
  y: Zs()
2671
2679
  }), Tn = { current: null }, no = { current: !1 };
2672
- function _c() {
2673
- if (no.current = !0, !!In)
2680
+ function Ic() {
2681
+ if (no.current = !0, !!_n)
2674
2682
  if (window.matchMedia) {
2675
2683
  const t = window.matchMedia("(prefers-reduced-motion)"), e = () => Tn.current = t.matches;
2676
2684
  t.addEventListener("change", e), e();
2677
2685
  } else
2678
2686
  Tn.current = !1;
2679
2687
  }
2680
- const Bc = /* @__PURE__ */ new WeakMap();
2681
- function Oc(t, e, n) {
2688
+ const Oc = /* @__PURE__ */ new WeakMap();
2689
+ function Bc(t, e, n) {
2682
2690
  for (const s in e) {
2683
2691
  const i = e[s], o = n[s];
2684
2692
  if (W(i))
2685
2693
  t.addValue(s, i);
2686
2694
  else if (W(o))
2687
- t.addValue(s, _t(i, { owner: t }));
2695
+ t.addValue(s, Ot(i, { owner: t }));
2688
2696
  else if (o !== i)
2689
2697
  if (t.hasValue(s)) {
2690
2698
  const r = t.getValue(s);
2691
2699
  r.liveStyle === !0 ? r.jump(i) : r.hasAnimated || r.set(i);
2692
2700
  } else {
2693
2701
  const r = t.getStaticValue(s);
2694
- t.addValue(s, _t(r !== void 0 ? r : i, { owner: t }));
2702
+ t.addValue(s, Ot(r !== void 0 ? r : i, { owner: t }));
2695
2703
  }
2696
2704
  }
2697
2705
  for (const s in n)
@@ -2726,7 +2734,7 @@ class Fc {
2726
2734
  this.renderScheduledAt < m && (this.renderScheduledAt = m, K.render(this.render, !1, !0));
2727
2735
  };
2728
2736
  const { latestValues: l, renderState: u } = r;
2729
- 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 = _e(n), this.isVariantNode = Nr(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
2737
+ 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 = Ie(n), this.isVariantNode = Nr(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
2730
2738
  const { willChange: c, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
2731
2739
  for (const m in f) {
2732
2740
  const v = f[m];
@@ -2734,10 +2742,10 @@ class Fc {
2734
2742
  }
2735
2743
  }
2736
2744
  mount(e) {
2737
- this.current = e, Bc.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)), no.current || _c(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Tn.current, process.env.NODE_ENV !== "production" && jn(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);
2745
+ this.current = e, Oc.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)), no.current || Ic(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Tn.current, process.env.NODE_ENV !== "production" && jn(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);
2738
2746
  }
2739
2747
  unmount() {
2740
- 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);
2748
+ this.projection && this.projection.unmount(), bt(this.notifyUpdate), bt(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
2741
2749
  for (const e in this.events)
2742
2750
  this.events[e].clear();
2743
2751
  for (const e in this.features) {
@@ -2754,7 +2762,7 @@ class Fc {
2754
2762
  }
2755
2763
  bindToMotionValue(e, n) {
2756
2764
  this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)();
2757
- const s = Ut.has(e);
2765
+ const s = zt.has(e);
2758
2766
  s && this.onBindTransform && this.onBindTransform();
2759
2767
  const i = n.on("change", (r) => {
2760
2768
  this.latestValues[e] = r, this.props.onUpdate && K.preRender(this.notifyUpdate), s && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
@@ -2789,7 +2797,7 @@ class Fc {
2789
2797
  * removed with a re-render to work.
2790
2798
  */
2791
2799
  measureViewportBox() {
2792
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : O();
2800
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : B();
2793
2801
  }
2794
2802
  getStaticValue(e) {
2795
2803
  return this.latestValues[e];
@@ -2809,7 +2817,7 @@ class Fc {
2809
2817
  const o = "on" + i, r = e[o];
2810
2818
  r && (this.propEventSubscriptions[i] = this.on(i, r));
2811
2819
  }
2812
- this.prevMotionValues = Oc(this, this.scrapeMotionValuesFromProps(e, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2820
+ this.prevMotionValues = Bc(this, this.scrapeMotionValuesFromProps(e, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2813
2821
  }
2814
2822
  getProps() {
2815
2823
  return this.props;
@@ -2865,7 +2873,7 @@ class Fc {
2865
2873
  if (this.props.values && this.props.values[e])
2866
2874
  return this.props.values[e];
2867
2875
  let s = this.values.get(e);
2868
- return s === void 0 && n !== void 0 && (s = _t(n === null ? void 0 : n, { owner: this }), this.addValue(e, s)), s;
2876
+ return s === void 0 && n !== void 0 && (s = Ot(n === null ? void 0 : n, { owner: this }), this.addValue(e, s)), s;
2869
2877
  }
2870
2878
  /**
2871
2879
  * If we're trying to animate to a previously unencountered value,
@@ -2874,7 +2882,7 @@ class Fc {
2874
2882
  */
2875
2883
  readValue(e, n) {
2876
2884
  let s = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
2877
- return s != null && (typeof s == "string" && (Xi(s) || qi(s)) ? s = parseFloat(s) : !Xl(s) && bt.test(n) && (s = Dr(e, n)), this.setBaseTarget(e, W(s) ? s.get() : s)), W(s) ? s.get() : s;
2885
+ return s != null && (typeof s == "string" && (Xi(s) || qi(s)) ? s = parseFloat(s) : !Xl(s) && vt.test(n) && (s = Dr(e, n)), this.setBaseTarget(e, W(s) ? s.get() : s)), W(s) ? s.get() : s;
2878
2886
  }
2879
2887
  /**
2880
2888
  * Set the base target to later animate back to. This is currently
@@ -2911,7 +2919,7 @@ class Fc {
2911
2919
  }
2912
2920
  class so extends Fc {
2913
2921
  constructor() {
2914
- super(...arguments), this.KeyframeResolver = _l;
2922
+ super(...arguments), this.KeyframeResolver = Il;
2915
2923
  }
2916
2924
  sortInstanceNodePosition(e, n) {
2917
2925
  return e.compareDocumentPosition(n) & 2 ? 1 : -1;
@@ -2947,7 +2955,7 @@ class Nc extends so {
2947
2955
  super(...arguments), this.type = "html", this.renderInstance = io;
2948
2956
  }
2949
2957
  readValueFromInstance(e, n) {
2950
- if (Ut.has(n))
2958
+ if (zt.has(n))
2951
2959
  return this.projection?.isProjecting ? fn(n) : tl(e, n);
2952
2960
  {
2953
2961
  const s = jc(e), i = (zn(n) ? s.getPropertyValue(n) : s[n]) || 0;
@@ -2996,13 +3004,13 @@ function Uc(t, e, n, s) {
2996
3004
  }
2997
3005
  class zc extends so {
2998
3006
  constructor() {
2999
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = O;
3007
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = B;
3000
3008
  }
3001
3009
  getBaseTargetFromProps(e, n) {
3002
3010
  return e[n];
3003
3011
  }
3004
3012
  readValueFromInstance(e, n) {
3005
- if (Ut.has(n)) {
3013
+ if (zt.has(n)) {
3006
3014
  const s = Er(n);
3007
3015
  return s && s.default || 0;
3008
3016
  }
@@ -3012,7 +3020,7 @@ class zc extends so {
3012
3020
  return Xr(e, n, s);
3013
3021
  }
3014
3022
  build(e, n, s) {
3015
- $r(e, n, this.isSVGTag, s.transformTemplate, s.style);
3023
+ Gr(e, n, this.isSVGTag, s.transformTemplate, s.style);
3016
3024
  }
3017
3025
  renderInstance(e, n, s, i) {
3018
3026
  Uc(e, n, s, i);
@@ -3021,16 +3029,16 @@ class zc extends so {
3021
3029
  this.isSVGTag = Wr(e.tagName), super.mount(e);
3022
3030
  }
3023
3031
  }
3024
- const $c = (t, e) => ls(t) ? new zc(e) : new Nc(e, {
3025
- allowProjection: t !== $i
3032
+ const Gc = (t, e) => ls(t) ? new zc(e) : new Nc(e, {
3033
+ allowProjection: t !== Gi
3026
3034
  });
3027
3035
  function It(t, e, n) {
3028
3036
  const s = t.getProps();
3029
3037
  return cs(s, e, n !== void 0 ? n : s.custom, t);
3030
3038
  }
3031
3039
  const Cn = (t) => Array.isArray(t);
3032
- function Gc(t, e, n) {
3033
- t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, _t(n));
3040
+ function $c(t, e, n) {
3041
+ t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, Ot(n));
3034
3042
  }
3035
3043
  function Wc(t) {
3036
3044
  return Cn(t) ? t[t.length - 1] || 0 : t;
@@ -3041,7 +3049,7 @@ function Hc(t, e) {
3041
3049
  o = { ...o, ...s };
3042
3050
  for (const r in o) {
3043
3051
  const a = Wc(o[r]);
3044
- Gc(t, r, a);
3052
+ $c(t, r, a);
3045
3053
  }
3046
3054
  }
3047
3055
  function Xc(t) {
@@ -3051,8 +3059,8 @@ function Pn(t, e) {
3051
3059
  const n = t.getValue("willChange");
3052
3060
  if (Xc(n))
3053
3061
  return n.add(e);
3054
- if (!n && ft.WillChange) {
3055
- const s = new ft.WillChange("auto");
3062
+ if (!n && pt.WillChange) {
3063
+ const s = new pt.WillChange("auto");
3056
3064
  t.addValue("willChange", s), s.add(e);
3057
3065
  }
3058
3066
  }
@@ -3081,14 +3089,14 @@ const Zc = {
3081
3089
  type: "keyframes",
3082
3090
  ease: [0.25, 0.1, 0.35, 1],
3083
3091
  duration: 0.3
3084
- }, eu = (t, { keyframes: e }) => e.length > 2 ? Qc : Ut.has(t) ? t.startsWith("scale") ? Jc(e[1]) : Zc : tu;
3092
+ }, eu = (t, { keyframes: e }) => e.length > 2 ? Qc : zt.has(t) ? t.startsWith("scale") ? Jc(e[1]) : Zc : tu;
3085
3093
  function nu({ when: t, delay: e, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: u, ...c }) {
3086
3094
  return !!Object.keys(c).length;
3087
3095
  }
3088
3096
  const hs = (t, e, n, s = {}, i, o) => (r) => {
3089
3097
  const a = Qn(s, t) || {}, l = a.delay || s.delay || 0;
3090
3098
  let { elapsed: u = 0 } = s;
3091
- u = u - /* @__PURE__ */ rt(l);
3099
+ u = u - /* @__PURE__ */ ot(l);
3092
3100
  const c = {
3093
3101
  keyframes: Array.isArray(n) ? n : [null, n],
3094
3102
  ease: "easeOut",
@@ -3105,9 +3113,9 @@ const hs = (t, e, n, s = {}, i, o) => (r) => {
3105
3113
  motionValue: e,
3106
3114
  element: o ? void 0 : i
3107
3115
  };
3108
- nu(a) || Object.assign(c, eu(t, c)), c.duration && (c.duration = /* @__PURE__ */ rt(c.duration)), c.repeatDelay && (c.repeatDelay = /* @__PURE__ */ rt(c.repeatDelay)), c.from !== void 0 && (c.keyframes[0] = c.from);
3116
+ nu(a) || Object.assign(c, eu(t, c)), c.duration && (c.duration = /* @__PURE__ */ ot(c.duration)), c.repeatDelay && (c.repeatDelay = /* @__PURE__ */ ot(c.repeatDelay)), c.from !== void 0 && (c.keyframes[0] = c.from);
3109
3117
  let f = !1;
3110
- if ((c.type === !1 || c.duration === 0 && !c.repeatDelay) && (bn(c), c.delay === 0 && (f = !0)), (ft.instantAnimations || ft.skipAnimations) && (f = !0, bn(c), c.delay = 0), c.allowFlatten = !a.type && !a.ease, f && !o && e.get() !== void 0) {
3118
+ if ((c.type === !1 || c.duration === 0 && !c.repeatDelay) && (bn(c), c.delay === 0 && (f = !0)), (pt.instantAnimations || pt.skipAnimations) && (f = !0, bn(c), c.delay = 0), c.allowFlatten = !a.type && !a.ease, f && !o && e.get() !== void 0) {
3111
3119
  const m = qc(c.keyframes, a);
3112
3120
  if (m !== void 0) {
3113
3121
  K.update(() => {
@@ -3219,7 +3227,7 @@ function uo(t) {
3219
3227
  const e = {};
3220
3228
  for (let n = 0; n < ou; n++) {
3221
3229
  const s = rs[n], i = t.props[s];
3222
- (ee(i) || i === !1) && (e[s] = i);
3230
+ (ne(i) || i === !1) && (e[s] = i);
3223
3231
  }
3224
3232
  return e;
3225
3233
  }
@@ -3244,13 +3252,13 @@ function uu(t) {
3244
3252
  const { props: u } = t, c = uo(t.parent) || {}, f = [], m = /* @__PURE__ */ new Set();
3245
3253
  let v = {}, w = 1 / 0;
3246
3254
  for (let P = 0; P < lu; P++) {
3247
- const h = au[P], y = n[h], d = u[h] !== void 0 ? u[h] : c[h], p = ee(d), g = h === l ? y.isActive : null;
3255
+ const h = au[P], y = n[h], d = u[h] !== void 0 ? u[h] : c[h], p = ne(d), g = h === l ? y.isActive : null;
3248
3256
  g === !1 && (w = P);
3249
3257
  let x = d === c[h] && d !== u[h] && p;
3250
3258
  if (x && s && t.manuallyAnimateOnMount && (x = !1), y.protectedKeys = { ...v }, // If it isn't active and hasn't *just* been set as inactive
3251
3259
  !y.isActive && g === null || // If we didn't and don't have any defined prop for this animation type
3252
3260
  !d && !y.prevProp || // Or if the prop doesn't define an animation
3253
- Ie(d) || typeof d == "boolean")
3261
+ _e(d) || typeof d == "boolean")
3254
3262
  continue;
3255
3263
  const T = du(y.prevProp, d);
3256
3264
  let b = T || // If we're making this variant active, we want to always make it active
@@ -3259,7 +3267,7 @@ function uu(t) {
3259
3267
  const E = Array.isArray(d) ? d : [d];
3260
3268
  let L = E.reduce(i(h), {});
3261
3269
  g === !1 && (L = {});
3262
- const { prevResolvedValues: N = {} } = y, pt = {
3270
+ const { prevResolvedValues: N = {} } = y, mt = {
3263
3271
  ...N,
3264
3272
  ...L
3265
3273
  }, q = (R) => {
@@ -3267,22 +3275,22 @@ function uu(t) {
3267
3275
  const A = t.getValue(R);
3268
3276
  A && (A.liveStyle = !1);
3269
3277
  };
3270
- for (const R in pt) {
3278
+ for (const R in mt) {
3271
3279
  const A = L[R], tt = N[R];
3272
3280
  if (v.hasOwnProperty(R))
3273
3281
  continue;
3274
- let lt = !1;
3275
- Cn(A) && Cn(tt) ? lt = !co(A, tt) : lt = A !== tt, lt ? A != null ? q(R) : m.add(R) : A !== void 0 && m.has(R) ? q(R) : y.protectedKeys[R] = !0;
3282
+ let ct = !1;
3283
+ Cn(A) && Cn(tt) ? ct = !co(A, tt) : ct = A !== tt, ct ? A != null ? q(R) : m.add(R) : A !== void 0 && m.has(R) ? q(R) : y.protectedKeys[R] = !0;
3276
3284
  }
3277
3285
  y.prevProp = d, y.prevResolvedValues = L, y.isActive && (v = { ...v, ...L }), s && t.blockInitialAnimation && (b = !1);
3278
3286
  const Z = x && T;
3279
3287
  b && (!Z || V) && f.push(...E.map((R) => {
3280
3288
  const A = { type: h };
3281
3289
  if (typeof R == "string" && s && !Z && t.manuallyAnimateOnMount && t.parent) {
3282
- const { parent: tt } = t, lt = It(tt, R);
3283
- if (tt.enteringChildren && lt) {
3284
- const { delayChildren: le } = lt.transition || {};
3285
- A.delay = lo(tt.enteringChildren, t, le);
3290
+ const { parent: tt } = t, ct = It(tt, R);
3291
+ if (tt.enteringChildren && ct) {
3292
+ const { delayChildren: ce } = ct.transition || {};
3293
+ A.delay = lo(tt.enteringChildren, t, ce);
3286
3294
  }
3287
3295
  }
3288
3296
  return {
@@ -3327,7 +3335,7 @@ function uu(t) {
3327
3335
  function du(t, e) {
3328
3336
  return typeof e == "string" ? e !== t : Array.isArray(e) ? !co(e, t) : !1;
3329
3337
  }
3330
- function xt(t = !1) {
3338
+ function wt(t = !1) {
3331
3339
  return {
3332
3340
  isActive: t,
3333
3341
  protectedKeys: {},
@@ -3337,23 +3345,23 @@ function xt(t = !1) {
3337
3345
  }
3338
3346
  function Qs() {
3339
3347
  return {
3340
- animate: xt(!0),
3341
- whileInView: xt(),
3342
- whileHover: xt(),
3343
- whileTap: xt(),
3344
- whileDrag: xt(),
3345
- whileFocus: xt(),
3346
- exit: xt()
3348
+ animate: wt(!0),
3349
+ whileInView: wt(),
3350
+ whileHover: wt(),
3351
+ whileTap: wt(),
3352
+ whileDrag: wt(),
3353
+ whileFocus: wt(),
3354
+ exit: wt()
3347
3355
  };
3348
3356
  }
3349
- class vt {
3357
+ class xt {
3350
3358
  constructor(e) {
3351
3359
  this.isMounted = !1, this.node = e;
3352
3360
  }
3353
3361
  update() {
3354
3362
  }
3355
3363
  }
3356
- class hu extends vt {
3364
+ class hu extends xt {
3357
3365
  /**
3358
3366
  * We dynamically generate the AnimationState manager as it contains a reference
3359
3367
  * to the underlying animation library. We only want to load that if we load this,
@@ -3364,7 +3372,7 @@ class hu extends vt {
3364
3372
  }
3365
3373
  updateAnimationControlsSubscription() {
3366
3374
  const { animate: e } = this.node.getProps();
3367
- Ie(e) && (this.unmountControls = e.subscribe(this.node));
3375
+ _e(e) && (this.unmountControls = e.subscribe(this.node));
3368
3376
  }
3369
3377
  /**
3370
3378
  * Subscribe any provided AnimationControls to the component's VisualElement
@@ -3381,7 +3389,7 @@ class hu extends vt {
3381
3389
  }
3382
3390
  }
3383
3391
  let fu = 0;
3384
- class pu extends vt {
3392
+ class pu extends xt {
3385
3393
  constructor() {
3386
3394
  super(...arguments), this.id = fu++;
3387
3395
  }
@@ -3411,10 +3419,10 @@ const mu = {
3411
3419
  Feature: pu
3412
3420
  }
3413
3421
  };
3414
- function se(t, e, n, s = { passive: !0 }) {
3422
+ function ie(t, e, n, s = { passive: !0 }) {
3415
3423
  return t.addEventListener(e, n, s), () => t.removeEventListener(e, n);
3416
3424
  }
3417
- function ae(t) {
3425
+ function le(t) {
3418
3426
  return {
3419
3427
  point: {
3420
3428
  x: t.pageX,
@@ -3422,9 +3430,9 @@ function ae(t) {
3422
3430
  }
3423
3431
  };
3424
3432
  }
3425
- const gu = (t) => (e) => ns(e) && t(e, ae(e));
3426
- function Yt(t, e, n, s) {
3427
- return se(t, e, gu(n), s);
3433
+ const gu = (t) => (e) => ns(e) && t(e, le(e));
3434
+ function qt(t, e, n, s) {
3435
+ return ie(t, e, gu(n), s);
3428
3436
  }
3429
3437
  const ho = 1e-4, yu = 1 - ho, bu = 1 + ho, fo = 0.01, vu = 0 - fo, xu = 0 + fo;
3430
3438
  function X(t) {
@@ -3434,9 +3442,9 @@ function wu(t, e, n) {
3434
3442
  return Math.abs(t - e) <= n;
3435
3443
  }
3436
3444
  function ti(t, e, n, s = 0.5) {
3437
- t.origin = s, t.originPoint = _(e.min, e.max, t.origin), t.scale = X(n) / X(e), t.translate = _(n.min, n.max, t.origin) - t.originPoint, (t.scale >= yu && t.scale <= bu || isNaN(t.scale)) && (t.scale = 1), (t.translate >= vu && t.translate <= xu || isNaN(t.translate)) && (t.translate = 0);
3445
+ 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 >= yu && t.scale <= bu || isNaN(t.scale)) && (t.scale = 1), (t.translate >= vu && t.translate <= xu || isNaN(t.translate)) && (t.translate = 0);
3438
3446
  }
3439
- function qt(t, e, n, s) {
3447
+ function Zt(t, e, n, s) {
3440
3448
  ti(t.x, e.x, n.x, s ? s.originX : void 0), ti(t.y, e.y, n.y, s ? s.originY : void 0);
3441
3449
  }
3442
3450
  function ei(t, e, n) {
@@ -3448,10 +3456,10 @@ function Tu(t, e, n) {
3448
3456
  function ni(t, e, n) {
3449
3457
  t.min = e.min - n.min, t.max = t.min + X(e);
3450
3458
  }
3451
- function Zt(t, e, n) {
3459
+ function Jt(t, e, n) {
3452
3460
  ni(t.x, e.x, n.x), ni(t.y, e.y, n.y);
3453
3461
  }
3454
- function nt(t) {
3462
+ function st(t) {
3455
3463
  return [t("x"), t("y")];
3456
3464
  }
3457
3465
  const po = ({ current: t }) => t ? t.ownerDocument.defaultView : null, si = (t, e) => Math.abs(t - e);
@@ -3467,7 +3475,7 @@ class mo {
3467
3475
  const m = qe(this.lastMoveEventInfo, this.history), v = this.startEvent !== null, w = Cu(m.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
3468
3476
  if (!v && !w)
3469
3477
  return;
3470
- const { point: C } = m, { timestamp: P } = $;
3478
+ const { point: C } = m, { timestamp: P } = G;
3471
3479
  this.history.push({ ...C, timestamp: P });
3472
3480
  const { onStart: h, onMove: y } = this.handlers;
3473
3481
  v || (h && h(this.lastMoveEvent, m), this.startEvent = this.lastMoveEvent), y && y(this.lastMoveEvent, m);
@@ -3483,16 +3491,16 @@ class mo {
3483
3491
  }, !ns(e))
3484
3492
  return;
3485
3493
  this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = s, this.distanceThreshold = r, this.contextWindow = i || window;
3486
- const a = ae(e), l = Ye(a, this.transformPagePoint), { point: u } = l, { timestamp: c } = $;
3494
+ const a = le(e), l = Ye(a, this.transformPagePoint), { point: u } = l, { timestamp: c } = G;
3487
3495
  this.history = [{ ...u, timestamp: c }];
3488
3496
  const { onSessionStart: f } = n;
3489
- f && f(e, qe(l, this.history)), this.removeListeners = ie(Yt(this.contextWindow, "pointermove", this.handlePointerMove), Yt(this.contextWindow, "pointerup", this.handlePointerUp), Yt(this.contextWindow, "pointercancel", this.handlePointerUp));
3497
+ f && f(e, qe(l, this.history)), this.removeListeners = re(qt(this.contextWindow, "pointermove", this.handlePointerMove), qt(this.contextWindow, "pointerup", this.handlePointerUp), qt(this.contextWindow, "pointercancel", this.handlePointerUp));
3490
3498
  }
3491
3499
  updateHandlers(e) {
3492
3500
  this.handlers = e;
3493
3501
  }
3494
3502
  end() {
3495
- this.removeListeners && this.removeListeners(), yt(this.updatePoint);
3503
+ this.removeListeners && this.removeListeners(), bt(this.updatePoint);
3496
3504
  }
3497
3505
  }
3498
3506
  function Ye(t, e) {
@@ -3520,11 +3528,11 @@ function Su(t, e) {
3520
3528
  return { x: 0, y: 0 };
3521
3529
  let n = t.length - 1, s = null;
3522
3530
  const i = go(t);
3523
- for (; n >= 0 && (s = t[n], !(i.timestamp - s.timestamp > /* @__PURE__ */ rt(e))); )
3531
+ for (; n >= 0 && (s = t[n], !(i.timestamp - s.timestamp > /* @__PURE__ */ ot(e))); )
3524
3532
  n--;
3525
3533
  if (!s)
3526
3534
  return { x: 0, y: 0 };
3527
- const o = /* @__PURE__ */ ot(i.timestamp - s.timestamp);
3535
+ const o = /* @__PURE__ */ at(i.timestamp - s.timestamp);
3528
3536
  if (o === 0)
3529
3537
  return { x: 0, y: 0 };
3530
3538
  const r = {
@@ -3534,7 +3542,7 @@ function Su(t, e) {
3534
3542
  return r.x === 1 / 0 && (r.x = 0), r.y === 1 / 0 && (r.y = 0), r;
3535
3543
  }
3536
3544
  function ku(t, { min: e, max: n }, s) {
3537
- return e !== void 0 && t < e ? t = s ? _(e, t, s.min) : Math.max(t, e) : n !== void 0 && t > n && (t = s ? _(n, t, s.max) : Math.min(t, n)), t;
3545
+ 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;
3538
3546
  }
3539
3547
  function ri(t, e, n) {
3540
3548
  return {
@@ -3561,7 +3569,7 @@ function Mu(t, e) {
3561
3569
  function Vu(t, e) {
3562
3570
  let n = 0.5;
3563
3571
  const s = X(t), i = X(e);
3564
- return i > s ? n = /* @__PURE__ */ Jt(e.min, e.max - s, t.min) : s > i && (n = /* @__PURE__ */ Jt(t.min, t.max - i, e.min)), dt(0, 1, n);
3572
+ return i > s ? n = /* @__PURE__ */ Qt(e.min, e.max - s, t.min) : s > i && (n = /* @__PURE__ */ Qt(t.min, t.max - i, e.min)), ht(0, 1, n);
3565
3573
  }
3566
3574
  function Eu(t, e) {
3567
3575
  const n = {};
@@ -3586,7 +3594,7 @@ function li(t, e) {
3586
3594
  const Ru = /* @__PURE__ */ new WeakMap();
3587
3595
  class Lu {
3588
3596
  constructor(e) {
3589
- this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = O(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
3597
+ this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = B(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
3590
3598
  }
3591
3599
  start(e, { snapToCursor: n = !1, distanceThreshold: s } = {}) {
3592
3600
  const { presenceContext: i } = this.visualElement;
@@ -3594,14 +3602,14 @@ class Lu {
3594
3602
  return;
3595
3603
  const o = (f) => {
3596
3604
  const { dragSnapToOrigin: m } = this.getProps();
3597
- m ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(ae(f).point);
3605
+ m ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(le(f).point);
3598
3606
  }, r = (f, m) => {
3599
3607
  const { drag: v, dragPropagation: w, onDragStart: C } = this.getProps();
3600
3608
  if (v && !w && (this.openDragLock && this.openDragLock(), this.openDragLock = jl(v), !this.openDragLock))
3601
3609
  return;
3602
- this.latestPointerEvent = f, this.latestPanInfo = m, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), nt((h) => {
3610
+ this.latestPointerEvent = f, this.latestPanInfo = m, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), st((h) => {
3603
3611
  let y = this.getAxisMotionValue(h).get() || 0;
3604
- if (at.test(y)) {
3612
+ if (lt.test(y)) {
3605
3613
  const { projection: d } = this.visualElement;
3606
3614
  if (d && d.layout) {
3607
3615
  const p = d.layout.layoutBox[h];
@@ -3625,7 +3633,7 @@ class Lu {
3625
3633
  this.updateAxis("x", m.point, h), this.updateAxis("y", m.point, h), this.visualElement.render(), P && P(f, m);
3626
3634
  }, l = (f, m) => {
3627
3635
  this.latestPointerEvent = f, this.latestPanInfo = m, this.stop(f, m), this.latestPointerEvent = null, this.latestPanInfo = null;
3628
- }, u = () => nt((f) => this.getAnimationState(f) === "paused" && this.getAxisMotionValue(f).animation?.play()), { dragSnapToOrigin: c } = this.getProps();
3636
+ }, u = () => st((f) => this.getAnimationState(f) === "paused" && this.getAxisMotionValue(f).animation?.play()), { dragSnapToOrigin: c } = this.getProps();
3629
3637
  this.panSession = new mo(e, {
3630
3638
  onSessionStart: o,
3631
3639
  onStart: r,
@@ -3671,20 +3679,20 @@ class Lu {
3671
3679
  }
3672
3680
  resolveConstraints() {
3673
3681
  const { dragConstraints: e, dragElastic: n } = this.getProps(), s = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, i = this.constraints;
3674
- e && Dt(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && s ? this.constraints = Au(s.layoutBox, e) : this.constraints = !1, this.elastic = Du(n), i !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && nt((o) => {
3682
+ e && Rt(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && s ? this.constraints = Au(s.layoutBox, e) : this.constraints = !1, this.elastic = Du(n), i !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && st((o) => {
3675
3683
  this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = Eu(s.layoutBox[o], this.constraints[o]));
3676
3684
  });
3677
3685
  }
3678
3686
  resolveRefConstraints() {
3679
3687
  const { dragConstraints: e, onMeasureDragConstraints: n } = this.getProps();
3680
- if (!e || !Dt(e))
3688
+ if (!e || !Rt(e))
3681
3689
  return !1;
3682
3690
  const s = e.current;
3683
- ht(s !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
3691
+ ft(s !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
3684
3692
  const { projection: i } = this.visualElement;
3685
3693
  if (!i || !i.layout)
3686
3694
  return !1;
3687
- const o = Ic(s, i.root, this.visualElement.getTransformPagePoint());
3695
+ const o = _c(s, i.root, this.visualElement.getTransformPagePoint());
3688
3696
  let r = Mu(i.layout.layoutBox, o);
3689
3697
  if (n) {
3690
3698
  const a = n(Rc(r));
@@ -3693,7 +3701,7 @@ class Lu {
3693
3701
  return r;
3694
3702
  }
3695
3703
  startAnimation(e) {
3696
- const { drag: n, dragMomentum: s, dragElastic: i, dragTransition: o, dragSnapToOrigin: r, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, u = nt((c) => {
3704
+ const { drag: n, dragMomentum: s, dragElastic: i, dragTransition: o, dragSnapToOrigin: r, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, u = st((c) => {
3697
3705
  if (!be(c, n, this.currentDirection))
3698
3706
  return;
3699
3707
  let f = l && l[c] || {};
@@ -3718,10 +3726,10 @@ class Lu {
3718
3726
  return Pn(this.visualElement, e), s.start(hs(e, s, 0, n, this.visualElement, !1));
3719
3727
  }
3720
3728
  stopAnimation() {
3721
- nt((e) => this.getAxisMotionValue(e).stop());
3729
+ st((e) => this.getAxisMotionValue(e).stop());
3722
3730
  }
3723
3731
  pauseAnimation() {
3724
- nt((e) => this.getAxisMotionValue(e).animation?.pause());
3732
+ st((e) => this.getAxisMotionValue(e).animation?.pause());
3725
3733
  }
3726
3734
  getAnimationState(e) {
3727
3735
  return this.getAxisMotionValue(e).animation?.state;
@@ -3737,14 +3745,14 @@ class Lu {
3737
3745
  return i || this.visualElement.getValue(e, (s.initial ? s.initial[e] : void 0) || 0);
3738
3746
  }
3739
3747
  snapToCursor(e) {
3740
- nt((n) => {
3748
+ st((n) => {
3741
3749
  const { drag: s } = this.getProps();
3742
3750
  if (!be(n, s, this.currentDirection))
3743
3751
  return;
3744
3752
  const { projection: i } = this.visualElement, o = this.getAxisMotionValue(n);
3745
3753
  if (i && i.layout) {
3746
3754
  const { min: r, max: a } = i.layout.layoutBox[n];
3747
- o.set(e[n] - _(r, a, 0.5));
3755
+ o.set(e[n] - I(r, a, 0.5));
3748
3756
  }
3749
3757
  });
3750
3758
  }
@@ -3757,11 +3765,11 @@ class Lu {
3757
3765
  if (!this.visualElement.current)
3758
3766
  return;
3759
3767
  const { drag: e, dragConstraints: n } = this.getProps(), { projection: s } = this.visualElement;
3760
- if (!Dt(n) || !s || !this.constraints)
3768
+ if (!Rt(n) || !s || !this.constraints)
3761
3769
  return;
3762
3770
  this.stopAnimation();
3763
3771
  const i = { x: 0, y: 0 };
3764
- nt((r) => {
3772
+ st((r) => {
3765
3773
  const a = this.getAxisMotionValue(r);
3766
3774
  if (a && this.constraints !== !1) {
3767
3775
  const l = a.get();
@@ -3769,27 +3777,27 @@ class Lu {
3769
3777
  }
3770
3778
  });
3771
3779
  const { transformTemplate: o } = this.visualElement.getProps();
3772
- this.visualElement.current.style.transform = o ? o({}, "") : "none", s.root && s.root.updateScroll(), s.updateLayout(), this.resolveConstraints(), nt((r) => {
3780
+ this.visualElement.current.style.transform = o ? o({}, "") : "none", s.root && s.root.updateScroll(), s.updateLayout(), this.resolveConstraints(), st((r) => {
3773
3781
  if (!be(r, e, null))
3774
3782
  return;
3775
3783
  const a = this.getAxisMotionValue(r), { min: l, max: u } = this.constraints[r];
3776
- a.set(_(l, u, i[r]));
3784
+ a.set(I(l, u, i[r]));
3777
3785
  });
3778
3786
  }
3779
3787
  addListeners() {
3780
3788
  if (!this.visualElement.current)
3781
3789
  return;
3782
3790
  Ru.set(this.visualElement, this);
3783
- const e = this.visualElement.current, n = Yt(e, "pointerdown", (l) => {
3791
+ const e = this.visualElement.current, n = qt(e, "pointerdown", (l) => {
3784
3792
  const { drag: u, dragListener: c = !0 } = this.getProps();
3785
3793
  u && c && this.start(l);
3786
3794
  }), s = () => {
3787
3795
  const { dragConstraints: l } = this.getProps();
3788
- Dt(l) && l.current && (this.constraints = this.resolveRefConstraints());
3796
+ Rt(l) && l.current && (this.constraints = this.resolveRefConstraints());
3789
3797
  }, { projection: i } = this.visualElement, o = i.addEventListener("measure", s);
3790
3798
  i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), K.read(s);
3791
- const r = se(window, "resize", () => this.scalePositionWithinConstraints()), a = i.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: u }) => {
3792
- this.isDragging && u && (nt((c) => {
3799
+ const r = ie(window, "resize", () => this.scalePositionWithinConstraints()), a = i.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: u }) => {
3800
+ this.isDragging && u && (st((c) => {
3793
3801
  const f = this.getAxisMotionValue(c);
3794
3802
  f && (this.originPoint[c] += l[c].translate, f.set(f.get() + l[c].translate));
3795
3803
  }), this.visualElement.render());
@@ -3818,13 +3826,13 @@ function Ku(t, e = 10) {
3818
3826
  let n = null;
3819
3827
  return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
3820
3828
  }
3821
- class Iu extends vt {
3829
+ class _u extends xt {
3822
3830
  constructor(e) {
3823
- super(e), this.removeGroupControls = st, this.removeListeners = st, this.controls = new Lu(e);
3831
+ super(e), this.removeGroupControls = it, this.removeListeners = it, this.controls = new Lu(e);
3824
3832
  }
3825
3833
  mount() {
3826
3834
  const { dragControls: e } = this.node.getProps();
3827
- e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || st;
3835
+ e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || it;
3828
3836
  }
3829
3837
  unmount() {
3830
3838
  this.removeGroupControls(), this.removeListeners();
@@ -3833,9 +3841,9 @@ class Iu extends vt {
3833
3841
  const ci = (t) => (e, n) => {
3834
3842
  t && K.postRender(() => t(e, n));
3835
3843
  };
3836
- class _u extends vt {
3844
+ class Iu extends xt {
3837
3845
  constructor() {
3838
- super(...arguments), this.removePointerDownListener = st;
3846
+ super(...arguments), this.removePointerDownListener = it;
3839
3847
  }
3840
3848
  onPointerDown(e) {
3841
3849
  this.session = new mo(e, this.createPanHandlers(), {
@@ -3855,7 +3863,7 @@ class _u extends vt {
3855
3863
  };
3856
3864
  }
3857
3865
  mount() {
3858
- this.removePointerDownListener = Yt(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
3866
+ this.removePointerDownListener = qt(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
3859
3867
  }
3860
3868
  update() {
3861
3869
  this.session && this.session.updateHandlers(this.createPanHandlers());
@@ -3879,7 +3887,7 @@ const Pe = {
3879
3887
  function ui(t, e) {
3880
3888
  return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
3881
3889
  }
3882
- const Gt = {
3890
+ const Wt = {
3883
3891
  correct: (t, e) => {
3884
3892
  if (!e.target)
3885
3893
  return t;
@@ -3891,19 +3899,19 @@ const Gt = {
3891
3899
  const n = ui(t, e.target.x), s = ui(t, e.target.y);
3892
3900
  return `${n}% ${s}%`;
3893
3901
  }
3894
- }, Bu = {
3902
+ }, Ou = {
3895
3903
  correct: (t, { treeScale: e, projectionDelta: n }) => {
3896
- const s = t, i = bt.parse(t);
3904
+ const s = t, i = vt.parse(t);
3897
3905
  if (i.length > 5)
3898
3906
  return s;
3899
- const o = bt.createTransformer(t), r = typeof i[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
3907
+ const o = vt.createTransformer(t), r = typeof i[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
3900
3908
  i[0 + r] /= a, i[1 + r] /= l;
3901
- const u = _(a, l, 0.5);
3909
+ const u = I(a, l, 0.5);
3902
3910
  return typeof i[2 + r] == "number" && (i[2 + r] /= u), typeof i[3 + r] == "number" && (i[3 + r] /= u), o(i);
3903
3911
  }
3904
3912
  };
3905
3913
  let Ze = !1;
3906
- class Ou extends No {
3914
+ class Bu extends No {
3907
3915
  /**
3908
3916
  * This only mounts projection nodes for components that
3909
3917
  * need measuring, we might want to do it for all components
@@ -3944,12 +3952,12 @@ class Ou extends No {
3944
3952
  }
3945
3953
  }
3946
3954
  function yo(t) {
3947
- const [e, n] = Or(), s = G(Ln);
3948
- return Q(Ou, { ...t, layoutGroup: s, switchLayoutGroup: G(qr), isPresent: e, safeToRemove: n });
3955
+ const [e, n] = Br(), s = $(Ln);
3956
+ return Q(Bu, { ...t, layoutGroup: s, switchLayoutGroup: $(qr), isPresent: e, safeToRemove: n });
3949
3957
  }
3950
3958
  const Fu = {
3951
3959
  borderRadius: {
3952
- ...Gt,
3960
+ ...Wt,
3953
3961
  applyTo: [
3954
3962
  "borderTopLeftRadius",
3955
3963
  "borderTopRightRadius",
@@ -3957,14 +3965,14 @@ const Fu = {
3957
3965
  "borderBottomRightRadius"
3958
3966
  ]
3959
3967
  },
3960
- borderTopLeftRadius: Gt,
3961
- borderTopRightRadius: Gt,
3962
- borderBottomLeftRadius: Gt,
3963
- borderBottomRightRadius: Gt,
3964
- boxShadow: Bu
3968
+ borderTopLeftRadius: Wt,
3969
+ borderTopRightRadius: Wt,
3970
+ borderBottomLeftRadius: Wt,
3971
+ borderBottomRightRadius: Wt,
3972
+ boxShadow: Ou
3965
3973
  };
3966
3974
  function ju(t, e, n) {
3967
- const s = W(t) ? t : _t(t);
3975
+ const s = W(t) ? t : Ot(t);
3968
3976
  return s.start(hs("", s, e, n)), s.animation;
3969
3977
  }
3970
3978
  const Nu = (t, e) => t.depth - e.depth;
@@ -3973,10 +3981,10 @@ class Uu {
3973
3981
  this.children = [], this.isDirty = !1;
3974
3982
  }
3975
3983
  add(e) {
3976
- _n(this.children, e), this.isDirty = !0;
3984
+ In(this.children, e), this.isDirty = !0;
3977
3985
  }
3978
3986
  remove(e) {
3979
- Bn(this.children, e), this.isDirty = !0;
3987
+ On(this.children, e), this.isDirty = !0;
3980
3988
  }
3981
3989
  forEach(e) {
3982
3990
  this.isDirty && this.children.sort(Nu), this.isDirty = !1, this.children.forEach(e);
@@ -3985,33 +3993,33 @@ class Uu {
3985
3993
  function zu(t, e) {
3986
3994
  const n = Y.now(), s = ({ timestamp: i }) => {
3987
3995
  const o = i - n;
3988
- o >= e && (yt(s), t(o - e));
3996
+ o >= e && (bt(s), t(o - e));
3989
3997
  };
3990
- return K.setup(s, !0), () => yt(s);
3998
+ return K.setup(s, !0), () => bt(s);
3991
3999
  }
3992
- const bo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], $u = bo.length, di = (t) => typeof t == "string" ? parseFloat(t) : t, hi = (t) => typeof t == "number" || M.test(t);
3993
- function Gu(t, e, n, s, i, o) {
3994
- i ? (t.opacity = _(0, n.opacity ?? 1, Wu(s)), t.opacityExit = _(e.opacity ?? 1, 0, Hu(s))) : o && (t.opacity = _(e.opacity ?? 1, n.opacity ?? 1, s));
3995
- for (let r = 0; r < $u; r++) {
4000
+ const bo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Gu = bo.length, di = (t) => typeof t == "string" ? parseFloat(t) : t, hi = (t) => typeof t == "number" || M.test(t);
4001
+ function $u(t, e, n, s, i, o) {
4002
+ i ? (t.opacity = I(0, n.opacity ?? 1, Wu(s)), t.opacityExit = I(e.opacity ?? 1, 0, Hu(s))) : o && (t.opacity = I(e.opacity ?? 1, n.opacity ?? 1, s));
4003
+ for (let r = 0; r < Gu; r++) {
3996
4004
  const a = `border${bo[r]}Radius`;
3997
4005
  let l = fi(e, a), u = fi(n, a);
3998
4006
  if (l === void 0 && u === void 0)
3999
4007
  continue;
4000
- l || (l = 0), u || (u = 0), l === 0 || u === 0 || hi(l) === hi(u) ? (t[a] = Math.max(_(di(l), di(u), s), 0), (at.test(u) || at.test(l)) && (t[a] += "%")) : t[a] = u;
4008
+ 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), (lt.test(u) || lt.test(l)) && (t[a] += "%")) : t[a] = u;
4001
4009
  }
4002
- (e.rotate || n.rotate) && (t.rotate = _(e.rotate || 0, n.rotate || 0, s));
4010
+ (e.rotate || n.rotate) && (t.rotate = I(e.rotate || 0, n.rotate || 0, s));
4003
4011
  }
4004
4012
  function fi(t, e) {
4005
4013
  return t[e] !== void 0 ? t[e] : t.borderRadius;
4006
4014
  }
4007
- const Wu = /* @__PURE__ */ vo(0, 0.5, ir), Hu = /* @__PURE__ */ vo(0.5, 0.95, st);
4015
+ const Wu = /* @__PURE__ */ vo(0, 0.5, ir), Hu = /* @__PURE__ */ vo(0.5, 0.95, it);
4008
4016
  function vo(t, e, n) {
4009
- return (s) => s < t ? 0 : s > e ? 1 : n(/* @__PURE__ */ Jt(t, e, s));
4017
+ return (s) => s < t ? 0 : s > e ? 1 : n(/* @__PURE__ */ Qt(t, e, s));
4010
4018
  }
4011
4019
  function pi(t, e) {
4012
4020
  t.min = e.min, t.max = e.max;
4013
4021
  }
4014
- function et(t, e) {
4022
+ function nt(t, e) {
4015
4023
  pi(t.x, e.x), pi(t.y, e.y);
4016
4024
  }
4017
4025
  function mi(t, e) {
@@ -4021,9 +4029,9 @@ function gi(t, e, n, s, i) {
4021
4029
  return t -= e, t = De(t, 1 / n, s), i !== void 0 && (t = De(t, 1 / i, s)), t;
4022
4030
  }
4023
4031
  function Xu(t, e = 0, n = 1, s = 0.5, i, o = t, r = t) {
4024
- if (at.test(e) && (e = parseFloat(e), e = _(r.min, r.max, e / 100) - r.min), typeof e != "number")
4032
+ if (lt.test(e) && (e = parseFloat(e), e = I(r.min, r.max, e / 100) - r.min), typeof e != "number")
4025
4033
  return;
4026
- let a = _(o.min, o.max, s);
4034
+ let a = I(o.min, o.max, s);
4027
4035
  t === o && (a -= e), t.min = gi(t.min, e, n, a, i), t.max = gi(t.max, e, n, a, i);
4028
4036
  }
4029
4037
  function yi(t, e, [n, s, i], o, r) {
@@ -4062,10 +4070,10 @@ class Ju {
4062
4070
  this.members = [];
4063
4071
  }
4064
4072
  add(e) {
4065
- _n(this.members, e), e.scheduleRender();
4073
+ In(this.members, e), e.scheduleRender();
4066
4074
  }
4067
4075
  remove(e) {
4068
- if (Bn(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
4076
+ if (On(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
4069
4077
  const n = this.members[this.members.length - 1];
4070
4078
  n && this.promote(n);
4071
4079
  }
@@ -4169,7 +4177,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4169
4177
  mount(r) {
4170
4178
  if (this.instance)
4171
4179
  return;
4172
- this.isSVG = Br(r) && !Wl(r), this.instance = r;
4180
+ this.isSVG = Or(r) && !Wl(r), this.instance = r;
4173
4181
  const { layoutId: a, layout: l, visualElement: u } = this.options;
4174
4182
  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) {
4175
4183
  let c, f = 0;
@@ -4203,7 +4211,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4203
4211
  unmount() {
4204
4212
  this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
4205
4213
  const r = this.getStack();
4206
- r && r.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), yt(this.updateProjection);
4214
+ r && r.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), bt(this.updateProjection);
4207
4215
  }
4208
4216
  // only on the root
4209
4217
  blockUpdate() {
@@ -4255,7 +4263,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4255
4263
  }
4256
4264
  this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(ad), this.nodes.forEach(nd), this.nodes.forEach(sd)) : this.nodes.forEach(Si), this.clearAllSnapshots();
4257
4265
  const a = Y.now();
4258
- $.delta = dt(0, 1e3 / 60, a - $.timestamp), $.timestamp = a, $.isProcessing = !0, Ne.update.process($), Ne.preRender.process($), Ne.render.process($), $.isProcessing = !1;
4266
+ G.delta = ht(0, 1e3 / 60, a - G.timestamp), G.timestamp = a, G.isProcessing = !0, Ne.update.process(G), Ne.preRender.process(G), Ne.render.process(G), G.isProcessing = !1;
4259
4267
  }
4260
4268
  didUpdate() {
4261
4269
  this.updateScheduled || (this.updateScheduled = !0, es.read(this.scheduleUpdate));
@@ -4284,7 +4292,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4284
4292
  for (let l = 0; l < this.path.length; l++)
4285
4293
  this.path[l].updateScroll();
4286
4294
  const r = this.layout;
4287
- this.layout = this.measure(!1), this.layoutCorrected = O(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
4295
+ this.layout = this.measure(!1), this.layoutCorrected = B(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
4288
4296
  const { visualElement: a } = this.options;
4289
4297
  a && a.notify("LayoutMeasure", this.layout.layoutBox, r ? r.layoutBox : void 0);
4290
4298
  }
@@ -4305,7 +4313,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4305
4313
  if (!i)
4306
4314
  return;
4307
4315
  const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !xo(this.projectionDelta), l = this.getTransformTemplate(), u = l ? l(this.latestValues, "") : void 0, c = u !== this.prevTransformTemplateValue;
4308
- r && this.instance && (a || Tt(this.latestValues) || c) && (i(this.instance, u), this.shouldResetTransform = !1, this.scheduleRender());
4316
+ r && this.instance && (a || Ct(this.latestValues) || c) && (i(this.instance, u), this.shouldResetTransform = !1, this.scheduleRender());
4309
4317
  }
4310
4318
  measure(r = !0) {
4311
4319
  const a = this.measurePageBox();
@@ -4321,48 +4329,48 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4321
4329
  measurePageBox() {
4322
4330
  const { visualElement: r } = this.options;
4323
4331
  if (!r)
4324
- return O();
4332
+ return B();
4325
4333
  const a = r.measureViewportBox();
4326
4334
  if (!(this.scroll?.wasRoot || this.path.some(gd))) {
4327
4335
  const { scroll: u } = this.root;
4328
- u && (Rt(a.x, u.offset.x), Rt(a.y, u.offset.y));
4336
+ u && (Lt(a.x, u.offset.x), Lt(a.y, u.offset.y));
4329
4337
  }
4330
4338
  return a;
4331
4339
  }
4332
4340
  removeElementScroll(r) {
4333
- const a = O();
4334
- if (et(a, r), this.scroll?.wasRoot)
4341
+ const a = B();
4342
+ if (nt(a, r), this.scroll?.wasRoot)
4335
4343
  return a;
4336
4344
  for (let l = 0; l < this.path.length; l++) {
4337
4345
  const u = this.path[l], { scroll: c, options: f } = u;
4338
- u !== this.root && c && f.layoutScroll && (c.wasRoot && et(a, r), Rt(a.x, c.offset.x), Rt(a.y, c.offset.y));
4346
+ u !== this.root && c && f.layoutScroll && (c.wasRoot && nt(a, r), Lt(a.x, c.offset.x), Lt(a.y, c.offset.y));
4339
4347
  }
4340
4348
  return a;
4341
4349
  }
4342
4350
  applyTransform(r, a = !1) {
4343
- const l = O();
4344
- et(l, r);
4351
+ const l = B();
4352
+ nt(l, r);
4345
4353
  for (let u = 0; u < this.path.length; u++) {
4346
4354
  const c = this.path[u];
4347
- !a && c.options.layoutScroll && c.scroll && c !== c.root && Lt(l, {
4355
+ !a && c.options.layoutScroll && c.scroll && c !== c.root && Kt(l, {
4348
4356
  x: -c.scroll.offset.x,
4349
4357
  y: -c.scroll.offset.y
4350
- }), Tt(c.latestValues) && Lt(l, c.latestValues);
4358
+ }), Ct(c.latestValues) && Kt(l, c.latestValues);
4351
4359
  }
4352
- return Tt(this.latestValues) && Lt(l, this.latestValues), l;
4360
+ return Ct(this.latestValues) && Kt(l, this.latestValues), l;
4353
4361
  }
4354
4362
  removeTransform(r) {
4355
- const a = O();
4356
- et(a, r);
4363
+ const a = B();
4364
+ nt(a, r);
4357
4365
  for (let l = 0; l < this.path.length; l++) {
4358
4366
  const u = this.path[l];
4359
- if (!u.instance || !Tt(u.latestValues))
4367
+ if (!u.instance || !Ct(u.latestValues))
4360
4368
  continue;
4361
4369
  xn(u.latestValues) && u.updateSnapshot();
4362
- const c = O(), f = u.measurePageBox();
4363
- et(c, f), bi(a, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, c);
4370
+ const c = B(), f = u.measurePageBox();
4371
+ nt(c, f), bi(a, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, c);
4364
4372
  }
4365
- return Tt(this.latestValues) && bi(a, this.latestValues), a;
4373
+ return Ct(this.latestValues) && bi(a, this.latestValues), a;
4366
4374
  }
4367
4375
  setTargetDelta(r) {
4368
4376
  this.targetDelta = r, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -4378,7 +4386,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4378
4386
  this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
4379
4387
  }
4380
4388
  forceRelativeParentToResolveTarget() {
4381
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== $.timestamp && this.relativeParent.resolveTargetDelta(!0);
4389
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== G.timestamp && this.relativeParent.resolveTargetDelta(!0);
4382
4390
  }
4383
4391
  resolveTargetDelta(r = !1) {
4384
4392
  const a = this.getLead();
@@ -4388,14 +4396,14 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4388
4396
  return;
4389
4397
  const { layout: c, layoutId: f } = this.options;
4390
4398
  if (!(!this.layout || !(c || f))) {
4391
- if (this.resolvedRelativeTargetAt = $.timestamp, !this.targetDelta && !this.relativeTarget) {
4399
+ if (this.resolvedRelativeTargetAt = G.timestamp, !this.targetDelta && !this.relativeTarget) {
4392
4400
  const m = this.getClosestProjectingParent();
4393
- 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), et(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4401
+ m && m.layout && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget = B(), this.relativeTargetOrigin = B(), Jt(this.relativeTargetOrigin, this.layout.layoutBox, m.layout.layoutBox), nt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4394
4402
  }
4395
- if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = O(), this.targetWithTransforms = O()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Tu(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : et(this.target, this.layout.layoutBox), to(this.target, this.targetDelta)) : et(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
4403
+ if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = B(), this.targetWithTransforms = B()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Tu(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : nt(this.target, this.layout.layoutBox), to(this.target, this.targetDelta)) : nt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
4396
4404
  this.attemptToResolveRelativeTarget = !1;
4397
4405
  const m = this.getClosestProjectingParent();
4398
- 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), et(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4406
+ m && !!m.resumingFrom == !!this.resumingFrom && !m.options.layoutScroll && m.target && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget = B(), this.relativeTargetOrigin = B(), Jt(this.relativeTargetOrigin, this.target, m.target), nt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4399
4407
  }
4400
4408
  }
4401
4409
  }
@@ -4409,20 +4417,20 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4409
4417
  calcProjection() {
4410
4418
  const r = this.getLead(), a = !!this.resumingFrom || this !== r;
4411
4419
  let l = !0;
4412
- if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (l = !1), a && (this.isSharedProjectionDirty || this.isTransformDirty) && (l = !1), this.resolvedRelativeTargetAt === $.timestamp && (l = !1), l)
4420
+ if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (l = !1), a && (this.isSharedProjectionDirty || this.isTransformDirty) && (l = !1), this.resolvedRelativeTargetAt === G.timestamp && (l = !1), l)
4413
4421
  return;
4414
4422
  const { layout: u, layoutId: c } = this.options;
4415
4423
  if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(u || c))
4416
4424
  return;
4417
- et(this.layoutCorrected, this.layout.layoutBox);
4425
+ nt(this.layoutCorrected, this.layout.layoutBox);
4418
4426
  const f = this.treeScale.x, m = this.treeScale.y;
4419
- Kc(this.layoutCorrected, this.treeScale, this.path, a), r.layout && !r.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (r.target = r.layout.layoutBox, r.targetWithTransforms = O());
4427
+ Kc(this.layoutCorrected, this.treeScale, this.path, a), r.layout && !r.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (r.target = r.layout.layoutBox, r.targetWithTransforms = B());
4420
4428
  const { target: v } = r;
4421
4429
  if (!v) {
4422
4430
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
4423
4431
  return;
4424
4432
  }
4425
- !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));
4433
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (mi(this.prevProjectionDelta.x, this.projectionDelta.x), mi(this.prevProjectionDelta.y, this.projectionDelta.y)), Zt(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));
4426
4434
  }
4427
4435
  hide() {
4428
4436
  this.isVisible = !1;
@@ -4438,22 +4446,22 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4438
4446
  this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
4439
4447
  }
4440
4448
  createProjectionDeltas() {
4441
- this.prevProjectionDelta = Kt(), this.projectionDelta = Kt(), this.projectionDeltaWithTransform = Kt();
4449
+ this.prevProjectionDelta = _t(), this.projectionDelta = _t(), this.projectionDeltaWithTransform = _t();
4442
4450
  }
4443
4451
  setAnimationOrigin(r, a = !1) {
4444
- const l = this.snapshot, u = l ? l.latestValues : {}, c = { ...this.latestValues }, f = Kt();
4452
+ const l = this.snapshot, u = l ? l.latestValues : {}, c = { ...this.latestValues }, f = _t();
4445
4453
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
4446
- const m = O(), v = l ? l.source : void 0, w = this.layout ? this.layout.source : void 0, C = v !== w, P = this.getStack(), h = !P || P.members.length <= 1, y = !!(C && !h && this.options.crossfade === !0 && !this.path.some(fd));
4454
+ const m = B(), v = l ? l.source : void 0, w = this.layout ? this.layout.source : void 0, C = v !== w, P = this.getStack(), h = !P || P.members.length <= 1, y = !!(C && !h && this.options.crossfade === !0 && !this.path.some(fd));
4447
4455
  this.animationProgress = 0;
4448
4456
  let d;
4449
4457
  this.mixTargetDelta = (p) => {
4450
4458
  const g = p / 1e3;
4451
- 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), hd(this.relativeTarget, this.relativeTargetOrigin, m, g), d && Zu(this.relativeTarget, d) && (this.isProjectionDirty = !1), d || (d = O()), et(d, this.relativeTarget)), C && (this.animationValues = c, Gu(c, u, this.latestValues, g, y, h)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = g;
4459
+ 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 && (Jt(m, this.layout.layoutBox, this.relativeParent.layout.layoutBox), hd(this.relativeTarget, this.relativeTargetOrigin, m, g), d && Zu(this.relativeTarget, d) && (this.isProjectionDirty = !1), d || (d = B()), nt(d, this.relativeTarget)), C && (this.animationValues = c, $u(c, u, this.latestValues, g, y, h)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = g;
4452
4460
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
4453
4461
  }
4454
4462
  startAnimation(r) {
4455
- this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (yt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = K.update(() => {
4456
- Pe.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = _t(0)), this.currentAnimation = ju(this.motionValue, [0, 1e3], {
4463
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (bt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = K.update(() => {
4464
+ Pe.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = Ot(0)), this.currentAnimation = ju(this.motionValue, [0, 1e3], {
4457
4465
  ...r,
4458
4466
  velocity: 0,
4459
4467
  isSync: !0,
@@ -4481,13 +4489,13 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4481
4489
  let { targetWithTransforms: a, target: l, layout: u, latestValues: c } = r;
4482
4490
  if (!(!a || !l || !u)) {
4483
4491
  if (this !== r && this.layout && u && Po(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
4484
- l = this.target || O();
4492
+ l = this.target || B();
4485
4493
  const f = X(this.layout.layoutBox.x);
4486
4494
  l.x.min = r.target.x.min, l.x.max = l.x.min + f;
4487
4495
  const m = X(this.layout.layoutBox.y);
4488
4496
  l.y.min = r.target.y.min, l.y.max = l.y.min + m;
4489
4497
  }
4490
- et(a, l), Lt(a, c), qt(this.projectionDeltaWithTransform, this.layoutCorrected, a, c);
4498
+ nt(a, l), Kt(a, c), Zt(this.projectionDeltaWithTransform, this.layoutCorrected, a, c);
4491
4499
  }
4492
4500
  }
4493
4501
  registerSharedNode(r, a) {
@@ -4554,7 +4562,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4554
4562
  }
4555
4563
  const u = this.getLead();
4556
4564
  if (!this.projectionDelta || !this.layout || !u.target) {
4557
- this.options.layoutId && (r.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, r.pointerEvents = Ce(a?.pointerEvents) || ""), this.hasProjected && !Tt(this.latestValues) && (r.transform = l ? l({}, "") : "none", this.hasProjected = !1);
4565
+ this.options.layoutId && (r.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, r.pointerEvents = Ce(a?.pointerEvents) || ""), this.hasProjected && !Ct(this.latestValues) && (r.transform = l ? l({}, "") : "none", this.hasProjected = !1);
4558
4566
  return;
4559
4567
  }
4560
4568
  r.visibility = "";
@@ -4564,10 +4572,10 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4564
4572
  l && (f = l(c, f)), r.transform = f;
4565
4573
  const { x: m, y: v } = this.projectionDelta;
4566
4574
  r.transformOrigin = `${m.origin * 100}% ${v.origin * 100}% 0`, u.animationValues ? r.opacity = u === this ? c.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : c.opacityExit : r.opacity = u === this ? c.opacity !== void 0 ? c.opacity : "" : c.opacityExit !== void 0 ? c.opacityExit : 0;
4567
- for (const w in ne) {
4575
+ for (const w in se) {
4568
4576
  if (c[w] === void 0)
4569
4577
  continue;
4570
- const { correct: C, applyTo: P, isCSSVariable: h } = ne[w], y = f === "none" ? c[w] : C(c[w], u);
4578
+ const { correct: C, applyTo: P, isCSSVariable: h } = se[w], y = f === "none" ? c[w] : C(c[w], u);
4571
4579
  if (P) {
4572
4580
  const d = P.length;
4573
4581
  for (let p = 0; p < d; p++)
@@ -4593,17 +4601,17 @@ function sd(t) {
4593
4601
  const e = t.resumeFrom?.snapshot || t.snapshot;
4594
4602
  if (t.isLead() && t.layout && e && t.hasListeners("didUpdate")) {
4595
4603
  const { layoutBox: n, measuredBox: s } = t.layout, { animationType: i } = t.options, o = e.source !== t.layout.source;
4596
- i === "size" ? nt((c) => {
4604
+ i === "size" ? st((c) => {
4597
4605
  const f = o ? e.measuredBox[c] : e.layoutBox[c], m = X(f);
4598
4606
  f.min = n[c].min, f.max = f.min + m;
4599
- }) : Po(i, e.layoutBox, n) && nt((c) => {
4607
+ }) : Po(i, e.layoutBox, n) && st((c) => {
4600
4608
  const f = o ? e.measuredBox[c] : e.layoutBox[c], m = X(n[c]);
4601
4609
  f.max = f.min + m, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[c].max = t.relativeTarget[c].min + m);
4602
4610
  });
4603
- const r = Kt();
4604
- qt(r, n, e.layoutBox);
4605
- const a = Kt();
4606
- o ? qt(a, t.applyTransform(s, !0), e.measuredBox) : qt(a, n, e.layoutBox);
4611
+ const r = _t();
4612
+ Zt(r, n, e.layoutBox);
4613
+ const a = _t();
4614
+ o ? Zt(a, t.applyTransform(s, !0), e.measuredBox) : Zt(a, n, e.layoutBox);
4607
4615
  const l = !xo(r);
4608
4616
  let u = !1;
4609
4617
  if (!t.resumeFrom) {
@@ -4611,10 +4619,10 @@ function sd(t) {
4611
4619
  if (c && !c.resumeFrom) {
4612
4620
  const { snapshot: f, layout: m } = c;
4613
4621
  if (f && m) {
4614
- const v = O();
4615
- Zt(v, e.layoutBox, f.layoutBox);
4616
- const w = O();
4617
- Zt(w, n, m.layoutBox), wo(v, w) || (u = !0), c.options.layoutRoot && (t.relativeTarget = w, t.relativeTargetOrigin = v, t.relativeParent = c);
4622
+ const v = B();
4623
+ Jt(v, e.layoutBox, f.layoutBox);
4624
+ const w = B();
4625
+ Jt(w, n, m.layoutBox), wo(v, w) || (u = !0), c.options.layoutRoot && (t.relativeTarget = w, t.relativeTargetOrigin = v, t.relativeParent = c);
4618
4626
  }
4619
4627
  }
4620
4628
  }
@@ -4667,10 +4675,10 @@ function dd(t) {
4667
4675
  t.removeLeadSnapshot();
4668
4676
  }
4669
4677
  function Ai(t, e, n) {
4670
- t.translate = _(e.translate, 0, n), t.scale = _(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
4678
+ t.translate = I(e.translate, 0, n), t.scale = I(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
4671
4679
  }
4672
4680
  function Mi(t, e, n, s) {
4673
- t.min = _(e.min, n.min, s), t.max = _(e.max, n.max, s);
4681
+ t.min = I(e.min, n.min, s), t.max = I(e.max, n.max, s);
4674
4682
  }
4675
4683
  function hd(t, e, n, s) {
4676
4684
  Mi(t.x, e.x, n.x, s), Mi(t.y, e.y, n.y, s);
@@ -4681,7 +4689,7 @@ function fd(t) {
4681
4689
  const pd = {
4682
4690
  duration: 0.45,
4683
4691
  ease: [0.4, 0, 0.1, 1]
4684
- }, Vi = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Ei = Vi("applewebkit/") && !Vi("chrome/") ? Math.round : st;
4692
+ }, Vi = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Ei = Vi("applewebkit/") && !Vi("chrome/") ? Math.round : it;
4685
4693
  function Di(t) {
4686
4694
  t.min = Ei(t.min), t.max = Ei(t.max);
4687
4695
  }
@@ -4695,7 +4703,7 @@ function gd(t) {
4695
4703
  return t !== t.root && t.scroll?.wasRoot;
4696
4704
  }
4697
4705
  const yd = Co({
4698
- attachResizeListener: (t, e) => se(t, "resize", e),
4706
+ attachResizeListener: (t, e) => ie(t, "resize", e),
4699
4707
  measureScroll: () => ({
4700
4708
  x: document.documentElement.scrollLeft || document.body.scrollLeft,
4701
4709
  y: document.documentElement.scrollTop || document.body.scrollTop
@@ -4721,10 +4729,10 @@ const yd = Co({
4721
4729
  checkIsScrollRoot: (t) => window.getComputedStyle(t).position === "fixed"
4722
4730
  }), bd = {
4723
4731
  pan: {
4724
- Feature: _u
4732
+ Feature: Iu
4725
4733
  },
4726
4734
  drag: {
4727
- Feature: Iu,
4735
+ Feature: _u,
4728
4736
  ProjectionNode: So,
4729
4737
  MeasureLayout: yo
4730
4738
  }
@@ -4733,9 +4741,9 @@ function Ri(t, e, n) {
4733
4741
  const { props: s } = t;
4734
4742
  t.animationState && s.whileHover && t.animationState.setActive("whileHover", n === "Start");
4735
4743
  const i = "onHover" + n, o = s[i];
4736
- o && K.postRender(() => o(e, ae(e)));
4744
+ o && K.postRender(() => o(e, le(e)));
4737
4745
  }
4738
- class vd extends vt {
4746
+ class vd extends xt {
4739
4747
  mount() {
4740
4748
  const { current: e } = this.node;
4741
4749
  e && (this.unmount = Nl(e, (n, s) => (Ri(this.node, s, "Start"), (i) => Ri(this.node, i, "End"))));
@@ -4743,7 +4751,7 @@ class vd extends vt {
4743
4751
  unmount() {
4744
4752
  }
4745
4753
  }
4746
- class xd extends vt {
4754
+ class xd extends xt {
4747
4755
  constructor() {
4748
4756
  super(...arguments), this.isActive = !1;
4749
4757
  }
@@ -4760,7 +4768,7 @@ class xd extends vt {
4760
4768
  !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
4761
4769
  }
4762
4770
  mount() {
4763
- this.unmount = ie(se(this.node.current, "focus", () => this.onFocus()), se(this.node.current, "blur", () => this.onBlur()));
4771
+ this.unmount = re(ie(this.node.current, "focus", () => this.onFocus()), ie(this.node.current, "blur", () => this.onBlur()));
4764
4772
  }
4765
4773
  unmount() {
4766
4774
  }
@@ -4771,12 +4779,12 @@ function Li(t, e, n) {
4771
4779
  return;
4772
4780
  t.animationState && s.whileTap && t.animationState.setActive("whileTap", n === "Start");
4773
4781
  const i = "onTap" + (n === "End" ? "" : n), o = s[i];
4774
- o && K.postRender(() => o(e, ae(e)));
4782
+ o && K.postRender(() => o(e, le(e)));
4775
4783
  }
4776
- class wd extends vt {
4784
+ class wd extends xt {
4777
4785
  mount() {
4778
4786
  const { current: e } = this.node;
4779
- e && (this.unmount = Gl(e, (n, s) => (Li(this.node, s, "Start"), (i, { success: o }) => Li(this.node, i, o ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
4787
+ e && (this.unmount = $l(e, (n, s) => (Li(this.node, s, "Start"), (i, { success: o }) => Li(this.node, i, o ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
4780
4788
  }
4781
4789
  unmount() {
4782
4790
  }
@@ -4803,7 +4811,7 @@ const kd = {
4803
4811
  some: 0,
4804
4812
  all: 1
4805
4813
  };
4806
- class Ad extends vt {
4814
+ class Ad extends xt {
4807
4815
  constructor() {
4808
4816
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
4809
4817
  }
@@ -4861,8 +4869,8 @@ const Vd = {
4861
4869
  ...Vd,
4862
4870
  ...bd,
4863
4871
  ...Ed
4864
- }, Rd = /* @__PURE__ */ Dc(Dd, $c), fs = "-", Ld = (t) => {
4865
- const e = Id(t), {
4872
+ }, Rd = /* @__PURE__ */ Dc(Dd, Gc), fs = "-", Ld = (t) => {
4873
+ const e = _d(t), {
4866
4874
  conflictingClassGroups: n,
4867
4875
  conflictingClassGroupModifiers: s
4868
4876
  } = t;
@@ -4894,7 +4902,7 @@ const Vd = {
4894
4902
  if (n)
4895
4903
  return "arbitrary.." + n;
4896
4904
  }
4897
- }, Id = (t) => {
4905
+ }, _d = (t) => {
4898
4906
  const {
4899
4907
  theme: e,
4900
4908
  classGroups: n
@@ -4908,12 +4916,12 @@ const Vd = {
4908
4916
  }, Mn = (t, e, n, s) => {
4909
4917
  t.forEach((i) => {
4910
4918
  if (typeof i == "string") {
4911
- const o = i === "" ? e : Ii(e, i);
4919
+ const o = i === "" ? e : _i(e, i);
4912
4920
  o.classGroupId = n;
4913
4921
  return;
4914
4922
  }
4915
4923
  if (typeof i == "function") {
4916
- if (_d(i)) {
4924
+ if (Id(i)) {
4917
4925
  Mn(i(s), e, n, s);
4918
4926
  return;
4919
4927
  }
@@ -4924,10 +4932,10 @@ const Vd = {
4924
4932
  return;
4925
4933
  }
4926
4934
  Object.entries(i).forEach(([o, r]) => {
4927
- Mn(r, Ii(e, o), n, s);
4935
+ Mn(r, _i(e, o), n, s);
4928
4936
  });
4929
4937
  });
4930
- }, Ii = (t, e) => {
4938
+ }, _i = (t, e) => {
4931
4939
  let n = t;
4932
4940
  return e.split(fs).forEach((s) => {
4933
4941
  n.nextPart.has(s) || n.nextPart.set(s, {
@@ -4935,7 +4943,7 @@ const Vd = {
4935
4943
  validators: []
4936
4944
  }), n = n.nextPart.get(s);
4937
4945
  }), n;
4938
- }, _d = (t) => t.isThemeGetter, Bd = (t) => {
4946
+ }, Id = (t) => t.isThemeGetter, Od = (t) => {
4939
4947
  if (t < 1)
4940
4948
  return {
4941
4949
  get: () => {
@@ -4959,7 +4967,7 @@ const Vd = {
4959
4967
  n.has(o) ? n.set(o, r) : i(o, r);
4960
4968
  }
4961
4969
  };
4962
- }, Vn = "!", En = ":", Od = En.length, Fd = (t) => {
4970
+ }, Vn = "!", En = ":", Bd = En.length, Fd = (t) => {
4963
4971
  const {
4964
4972
  prefix: e,
4965
4973
  experimentalParseClassName: n
@@ -4971,7 +4979,7 @@ const Vd = {
4971
4979
  let C = i[w];
4972
4980
  if (r === 0 && a === 0) {
4973
4981
  if (C === En) {
4974
- o.push(i.slice(l, w)), l = w + Od;
4982
+ o.push(i.slice(l, w)), l = w + Bd;
4975
4983
  continue;
4976
4984
  }
4977
4985
  if (C === "/") {
@@ -5019,11 +5027,11 @@ const Vd = {
5019
5027
  }), i.push(...o.sort()), i;
5020
5028
  };
5021
5029
  }, Ud = (t) => ({
5022
- cache: Bd(t.cacheSize),
5030
+ cache: Od(t.cacheSize),
5023
5031
  parseClassName: Fd(t),
5024
5032
  sortModifiers: Nd(t),
5025
5033
  ...Ld(t)
5026
- }), zd = /\s+/, $d = (t, e) => {
5034
+ }), zd = /\s+/, Gd = (t, e) => {
5027
5035
  const {
5028
5036
  parseClassName: n,
5029
5037
  getClassGroupId: s,
@@ -5068,7 +5076,7 @@ const Vd = {
5068
5076
  }
5069
5077
  return l;
5070
5078
  };
5071
- function Gd() {
5079
+ function $d() {
5072
5080
  let t = 0, e, n, s = "";
5073
5081
  for (; t < arguments.length; )
5074
5082
  (e = arguments[t++]) && (n = Ao(e)) && (s && (s += " "), s += n);
@@ -5092,28 +5100,28 @@ function Wd(t, ...e) {
5092
5100
  const u = s(l);
5093
5101
  if (u)
5094
5102
  return u;
5095
- const c = $d(l, n);
5103
+ const c = Gd(l, n);
5096
5104
  return i(l, c), c;
5097
5105
  }
5098
5106
  return function() {
5099
- return o(Gd.apply(null, arguments));
5107
+ return o($d.apply(null, arguments));
5100
5108
  };
5101
5109
  }
5102
5110
  const j = (t) => {
5103
5111
  const e = (n) => n[t] || [];
5104
5112
  return e.isThemeGetter = !0, e;
5105
- }, Mo = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Vo = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Hd = /^\d+\/\d+$/, Xd = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Yd = /\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$/, qd = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Zd = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Jd = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Mt = (t) => Hd.test(t), D = (t) => !!t && !Number.isNaN(Number(t)), mt = (t) => !!t && Number.isInteger(Number(t)), nn = (t) => t.endsWith("%") && D(t.slice(0, -1)), ct = (t) => Xd.test(t), Qd = () => !0, th = (t) => (
5113
+ }, Mo = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Vo = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Hd = /^\d+\/\d+$/, Xd = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Yd = /\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$/, qd = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Zd = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Jd = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Vt = (t) => Hd.test(t), D = (t) => !!t && !Number.isNaN(Number(t)), gt = (t) => !!t && Number.isInteger(Number(t)), nn = (t) => t.endsWith("%") && D(t.slice(0, -1)), ut = (t) => Xd.test(t), Qd = () => !0, th = (t) => (
5106
5114
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
5107
5115
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
5108
5116
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
5109
5117
  Yd.test(t) && !qd.test(t)
5110
- ), Eo = () => !1, eh = (t) => Zd.test(t), nh = (t) => Jd.test(t), sh = (t) => !S(t) && !k(t), ih = (t) => zt(t, Lo, Eo), S = (t) => Mo.test(t), wt = (t) => zt(t, Ko, th), sn = (t) => zt(t, ch, D), _i = (t) => zt(t, Do, Eo), rh = (t) => zt(t, Ro, nh), ve = (t) => zt(t, Io, eh), k = (t) => Vo.test(t), Wt = (t) => $t(t, Ko), oh = (t) => $t(t, uh), Bi = (t) => $t(t, Do), ah = (t) => $t(t, Lo), lh = (t) => $t(t, Ro), xe = (t) => $t(t, Io, !0), zt = (t, e, n) => {
5118
+ ), Eo = () => !1, eh = (t) => Zd.test(t), nh = (t) => Jd.test(t), sh = (t) => !S(t) && !k(t), ih = (t) => Gt(t, Lo, Eo), S = (t) => Mo.test(t), Tt = (t) => Gt(t, Ko, th), sn = (t) => Gt(t, ch, D), Ii = (t) => Gt(t, Do, Eo), rh = (t) => Gt(t, Ro, nh), ve = (t) => Gt(t, _o, eh), k = (t) => Vo.test(t), Ht = (t) => $t(t, Ko), oh = (t) => $t(t, uh), Oi = (t) => $t(t, Do), ah = (t) => $t(t, Lo), lh = (t) => $t(t, Ro), xe = (t) => $t(t, _o, !0), Gt = (t, e, n) => {
5111
5119
  const s = Mo.exec(t);
5112
5120
  return s ? s[1] ? e(s[1]) : n(s[2]) : !1;
5113
5121
  }, $t = (t, e, n = !1) => {
5114
5122
  const s = Vo.exec(t);
5115
5123
  return s ? s[1] ? e(s[1]) : n : !1;
5116
- }, Do = (t) => t === "position" || t === "percentage", Ro = (t) => t === "image" || t === "url", Lo = (t) => t === "length" || t === "size" || t === "bg-size", Ko = (t) => t === "length", ch = (t) => t === "number", uh = (t) => t === "family-name", Io = (t) => t === "shadow", dh = () => {
5124
+ }, Do = (t) => t === "position" || t === "percentage", Ro = (t) => t === "image" || t === "url", Lo = (t) => t === "length" || t === "size" || t === "bg-size", Ko = (t) => t === "length", ch = (t) => t === "number", uh = (t) => t === "family-name", _o = (t) => t === "shadow", dh = () => {
5117
5125
  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 = () => [
5118
5126
  "center",
5119
5127
  "top",
@@ -5132,15 +5140,15 @@ const j = (t) => {
5132
5140
  "bottom-left",
5133
5141
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
5134
5142
  "left-bottom"
5135
- ], 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", {
5136
- span: ["full", mt, k, S]
5137
- }, 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], tt = () => [...p(), Bi, _i, {
5143
+ ], g = () => [...p(), k, S], x = () => ["auto", "hidden", "clip", "visible", "scroll"], T = () => ["auto", "contain", "none"], b = () => [k, S, l], V = () => [Vt, "full", "auto", ...b()], E = () => [gt, "none", "subgrid", k, S], L = () => ["auto", {
5144
+ span: ["full", gt, k, S]
5145
+ }, gt, k, S], N = () => [gt, "auto", k, S], mt = () => ["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"], O = () => ["auto", ...b()], R = () => [Vt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...b()], A = () => [t, k, S], tt = () => [...p(), Oi, Ii, {
5138
5146
  position: [k, S]
5139
- }], lt = () => ["no-repeat", {
5147
+ }], ct = () => ["no-repeat", {
5140
5148
  repeat: ["", "x", "y", "space", "round"]
5141
- }], le = () => ["auto", "cover", "contain", ah, ih, {
5149
+ }], ce = () => ["auto", "cover", "contain", ah, ih, {
5142
5150
  size: [k, S]
5143
- }], Be = () => [nn, Wt, wt], H = () => [
5151
+ }], Oe = () => [nn, Ht, Tt], H = () => [
5144
5152
  // Deprecated since Tailwind CSS v4.0.0
5145
5153
  "",
5146
5154
  "none",
@@ -5148,35 +5156,35 @@ const j = (t) => {
5148
5156
  u,
5149
5157
  k,
5150
5158
  S
5151
- ], J = () => ["", D, Wt, wt], ce = () => ["solid", "dashed", "dotted", "double"], ps = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => [D, nn, Bi, _i], ms = () => [
5159
+ ], J = () => ["", D, Ht, Tt], ue = () => ["solid", "dashed", "dotted", "double"], ps = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => [D, nn, Oi, Ii], ms = () => [
5152
5160
  // Deprecated since Tailwind CSS v4.0.0
5153
5161
  "",
5154
5162
  "none",
5155
5163
  w,
5156
5164
  k,
5157
5165
  S
5158
- ], ue = () => ["none", D, k, S], de = () => ["none", D, k, S], Oe = () => [D, k, S], he = () => [Mt, "full", ...b()];
5166
+ ], de = () => ["none", D, k, S], he = () => ["none", D, k, S], Be = () => [D, k, S], fe = () => [Vt, "full", ...b()];
5159
5167
  return {
5160
5168
  cacheSize: 500,
5161
5169
  theme: {
5162
5170
  animate: ["spin", "ping", "pulse", "bounce"],
5163
5171
  aspect: ["video"],
5164
- blur: [ct],
5165
- breakpoint: [ct],
5172
+ blur: [ut],
5173
+ breakpoint: [ut],
5166
5174
  color: [Qd],
5167
- container: [ct],
5168
- "drop-shadow": [ct],
5175
+ container: [ut],
5176
+ "drop-shadow": [ut],
5169
5177
  ease: ["in", "out", "in-out"],
5170
5178
  font: [sh],
5171
5179
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
5172
- "inset-shadow": [ct],
5180
+ "inset-shadow": [ut],
5173
5181
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
5174
5182
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
5175
- radius: [ct],
5176
- shadow: [ct],
5183
+ radius: [ut],
5184
+ shadow: [ut],
5177
5185
  spacing: ["px", D],
5178
- text: [ct],
5179
- "text-shadow": [ct],
5186
+ text: [ut],
5187
+ "text-shadow": [ut],
5180
5188
  tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
5181
5189
  },
5182
5190
  classGroups: {
@@ -5188,7 +5196,7 @@ const j = (t) => {
5188
5196
  * @see https://tailwindcss.com/docs/aspect-ratio
5189
5197
  */
5190
5198
  aspect: [{
5191
- aspect: ["auto", "square", Mt, S, k, P]
5199
+ aspect: ["auto", "square", Vt, S, k, P]
5192
5200
  }],
5193
5201
  /**
5194
5202
  * Container
@@ -5401,7 +5409,7 @@ const j = (t) => {
5401
5409
  * @see https://tailwindcss.com/docs/z-index
5402
5410
  */
5403
5411
  z: [{
5404
- z: [mt, "auto", k, S]
5412
+ z: [gt, "auto", k, S]
5405
5413
  }],
5406
5414
  // ------------------------
5407
5415
  // --- Flexbox and Grid ---
@@ -5411,7 +5419,7 @@ const j = (t) => {
5411
5419
  * @see https://tailwindcss.com/docs/flex-basis
5412
5420
  */
5413
5421
  basis: [{
5414
- basis: [Mt, "full", "auto", a, ...b()]
5422
+ basis: [Vt, "full", "auto", a, ...b()]
5415
5423
  }],
5416
5424
  /**
5417
5425
  * Flex Direction
@@ -5432,7 +5440,7 @@ const j = (t) => {
5432
5440
  * @see https://tailwindcss.com/docs/flex
5433
5441
  */
5434
5442
  flex: [{
5435
- flex: [D, Mt, "auto", "initial", "none", S]
5443
+ flex: [D, Vt, "auto", "initial", "none", S]
5436
5444
  }],
5437
5445
  /**
5438
5446
  * Flex Grow
@@ -5453,7 +5461,7 @@ const j = (t) => {
5453
5461
  * @see https://tailwindcss.com/docs/order
5454
5462
  */
5455
5463
  order: [{
5456
- order: [mt, "first", "last", "none", k, S]
5464
+ order: [gt, "first", "last", "none", k, S]
5457
5465
  }],
5458
5466
  /**
5459
5467
  * Grid Template Columns
@@ -5523,14 +5531,14 @@ const j = (t) => {
5523
5531
  * @see https://tailwindcss.com/docs/grid-auto-columns
5524
5532
  */
5525
5533
  "auto-cols": [{
5526
- "auto-cols": pt()
5534
+ "auto-cols": mt()
5527
5535
  }],
5528
5536
  /**
5529
5537
  * Grid Auto Rows
5530
5538
  * @see https://tailwindcss.com/docs/grid-auto-rows
5531
5539
  */
5532
5540
  "auto-rows": [{
5533
- "auto-rows": pt()
5541
+ "auto-rows": mt()
5534
5542
  }],
5535
5543
  /**
5536
5544
  * Gap
@@ -5689,63 +5697,63 @@ const j = (t) => {
5689
5697
  * @see https://tailwindcss.com/docs/margin
5690
5698
  */
5691
5699
  m: [{
5692
- m: B()
5700
+ m: O()
5693
5701
  }],
5694
5702
  /**
5695
5703
  * Margin X
5696
5704
  * @see https://tailwindcss.com/docs/margin
5697
5705
  */
5698
5706
  mx: [{
5699
- mx: B()
5707
+ mx: O()
5700
5708
  }],
5701
5709
  /**
5702
5710
  * Margin Y
5703
5711
  * @see https://tailwindcss.com/docs/margin
5704
5712
  */
5705
5713
  my: [{
5706
- my: B()
5714
+ my: O()
5707
5715
  }],
5708
5716
  /**
5709
5717
  * Margin Start
5710
5718
  * @see https://tailwindcss.com/docs/margin
5711
5719
  */
5712
5720
  ms: [{
5713
- ms: B()
5721
+ ms: O()
5714
5722
  }],
5715
5723
  /**
5716
5724
  * Margin End
5717
5725
  * @see https://tailwindcss.com/docs/margin
5718
5726
  */
5719
5727
  me: [{
5720
- me: B()
5728
+ me: O()
5721
5729
  }],
5722
5730
  /**
5723
5731
  * Margin Top
5724
5732
  * @see https://tailwindcss.com/docs/margin
5725
5733
  */
5726
5734
  mt: [{
5727
- mt: B()
5735
+ mt: O()
5728
5736
  }],
5729
5737
  /**
5730
5738
  * Margin Right
5731
5739
  * @see https://tailwindcss.com/docs/margin
5732
5740
  */
5733
5741
  mr: [{
5734
- mr: B()
5742
+ mr: O()
5735
5743
  }],
5736
5744
  /**
5737
5745
  * Margin Bottom
5738
5746
  * @see https://tailwindcss.com/docs/margin
5739
5747
  */
5740
5748
  mb: [{
5741
- mb: B()
5749
+ mb: O()
5742
5750
  }],
5743
5751
  /**
5744
5752
  * Margin Left
5745
5753
  * @see https://tailwindcss.com/docs/margin
5746
5754
  */
5747
5755
  ml: [{
5748
- ml: B()
5756
+ ml: O()
5749
5757
  }],
5750
5758
  /**
5751
5759
  * Space Between X
@@ -5848,7 +5856,7 @@ const j = (t) => {
5848
5856
  * @see https://tailwindcss.com/docs/font-size
5849
5857
  */
5850
5858
  "font-size": [{
5851
- text: ["base", n, Wt, wt]
5859
+ text: ["base", n, Ht, Tt]
5852
5860
  }],
5853
5861
  /**
5854
5862
  * Font Smoothing
@@ -5989,14 +5997,14 @@ const j = (t) => {
5989
5997
  * @see https://tailwindcss.com/docs/text-decoration-style
5990
5998
  */
5991
5999
  "text-decoration-style": [{
5992
- decoration: [...ce(), "wavy"]
6000
+ decoration: [...ue(), "wavy"]
5993
6001
  }],
5994
6002
  /**
5995
6003
  * Text Decoration Thickness
5996
6004
  * @see https://tailwindcss.com/docs/text-decoration-thickness
5997
6005
  */
5998
6006
  "text-decoration-thickness": [{
5999
- decoration: [D, "from-font", "auto", k, wt]
6007
+ decoration: [D, "from-font", "auto", k, Tt]
6000
6008
  }],
6001
6009
  /**
6002
6010
  * Text Decoration Color
@@ -6114,14 +6122,14 @@ const j = (t) => {
6114
6122
  * @see https://tailwindcss.com/docs/background-repeat
6115
6123
  */
6116
6124
  "bg-repeat": [{
6117
- bg: lt()
6125
+ bg: ct()
6118
6126
  }],
6119
6127
  /**
6120
6128
  * Background Size
6121
6129
  * @see https://tailwindcss.com/docs/background-size
6122
6130
  */
6123
6131
  "bg-size": [{
6124
- bg: le()
6132
+ bg: ce()
6125
6133
  }],
6126
6134
  /**
6127
6135
  * Background Image
@@ -6131,9 +6139,9 @@ const j = (t) => {
6131
6139
  bg: ["none", {
6132
6140
  linear: [{
6133
6141
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
6134
- }, mt, k, S],
6142
+ }, gt, k, S],
6135
6143
  radial: ["", k, S],
6136
- conic: [mt, k, S]
6144
+ conic: [gt, k, S]
6137
6145
  }, lh, rh]
6138
6146
  }],
6139
6147
  /**
@@ -6148,21 +6156,21 @@ const j = (t) => {
6148
6156
  * @see https://tailwindcss.com/docs/gradient-color-stops
6149
6157
  */
6150
6158
  "gradient-from-pos": [{
6151
- from: Be()
6159
+ from: Oe()
6152
6160
  }],
6153
6161
  /**
6154
6162
  * Gradient Color Stops Via Position
6155
6163
  * @see https://tailwindcss.com/docs/gradient-color-stops
6156
6164
  */
6157
6165
  "gradient-via-pos": [{
6158
- via: Be()
6166
+ via: Oe()
6159
6167
  }],
6160
6168
  /**
6161
6169
  * Gradient Color Stops To Position
6162
6170
  * @see https://tailwindcss.com/docs/gradient-color-stops
6163
6171
  */
6164
6172
  "gradient-to-pos": [{
6165
- to: Be()
6173
+ to: Oe()
6166
6174
  }],
6167
6175
  /**
6168
6176
  * Gradient Color Stops From
@@ -6385,14 +6393,14 @@ const j = (t) => {
6385
6393
  * @see https://tailwindcss.com/docs/border-style
6386
6394
  */
6387
6395
  "border-style": [{
6388
- border: [...ce(), "hidden", "none"]
6396
+ border: [...ue(), "hidden", "none"]
6389
6397
  }],
6390
6398
  /**
6391
6399
  * Divide Style
6392
6400
  * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
6393
6401
  */
6394
6402
  "divide-style": [{
6395
- divide: [...ce(), "hidden", "none"]
6403
+ divide: [...ue(), "hidden", "none"]
6396
6404
  }],
6397
6405
  /**
6398
6406
  * Border Color
@@ -6469,7 +6477,7 @@ const j = (t) => {
6469
6477
  * @see https://tailwindcss.com/docs/outline-style
6470
6478
  */
6471
6479
  "outline-style": [{
6472
- outline: [...ce(), "none", "hidden"]
6480
+ outline: [...ue(), "none", "hidden"]
6473
6481
  }],
6474
6482
  /**
6475
6483
  * Outline Offset
@@ -6483,7 +6491,7 @@ const j = (t) => {
6483
6491
  * @see https://tailwindcss.com/docs/outline-width
6484
6492
  */
6485
6493
  "outline-w": [{
6486
- outline: ["", D, Wt, wt]
6494
+ outline: ["", D, Ht, Tt]
6487
6495
  }],
6488
6496
  /**
6489
6497
  * Outline Color
@@ -6558,7 +6566,7 @@ const j = (t) => {
6558
6566
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
6559
6567
  */
6560
6568
  "ring-offset-w": [{
6561
- "ring-offset": [D, wt]
6569
+ "ring-offset": [D, Tt]
6562
6570
  }],
6563
6571
  /**
6564
6572
  * Ring Offset Color
@@ -6791,14 +6799,14 @@ const j = (t) => {
6791
6799
  * @see https://tailwindcss.com/docs/mask-repeat
6792
6800
  */
6793
6801
  "mask-repeat": [{
6794
- mask: lt()
6802
+ mask: ct()
6795
6803
  }],
6796
6804
  /**
6797
6805
  * Mask Size
6798
6806
  * @see https://tailwindcss.com/docs/mask-size
6799
6807
  */
6800
6808
  "mask-size": [{
6801
- mask: le()
6809
+ mask: ce()
6802
6810
  }],
6803
6811
  /**
6804
6812
  * Mask Type
@@ -7102,56 +7110,56 @@ const j = (t) => {
7102
7110
  * @see https://tailwindcss.com/docs/rotate
7103
7111
  */
7104
7112
  rotate: [{
7105
- rotate: ue()
7113
+ rotate: de()
7106
7114
  }],
7107
7115
  /**
7108
7116
  * Rotate X
7109
7117
  * @see https://tailwindcss.com/docs/rotate
7110
7118
  */
7111
7119
  "rotate-x": [{
7112
- "rotate-x": ue()
7120
+ "rotate-x": de()
7113
7121
  }],
7114
7122
  /**
7115
7123
  * Rotate Y
7116
7124
  * @see https://tailwindcss.com/docs/rotate
7117
7125
  */
7118
7126
  "rotate-y": [{
7119
- "rotate-y": ue()
7127
+ "rotate-y": de()
7120
7128
  }],
7121
7129
  /**
7122
7130
  * Rotate Z
7123
7131
  * @see https://tailwindcss.com/docs/rotate
7124
7132
  */
7125
7133
  "rotate-z": [{
7126
- "rotate-z": ue()
7134
+ "rotate-z": de()
7127
7135
  }],
7128
7136
  /**
7129
7137
  * Scale
7130
7138
  * @see https://tailwindcss.com/docs/scale
7131
7139
  */
7132
7140
  scale: [{
7133
- scale: de()
7141
+ scale: he()
7134
7142
  }],
7135
7143
  /**
7136
7144
  * Scale X
7137
7145
  * @see https://tailwindcss.com/docs/scale
7138
7146
  */
7139
7147
  "scale-x": [{
7140
- "scale-x": de()
7148
+ "scale-x": he()
7141
7149
  }],
7142
7150
  /**
7143
7151
  * Scale Y
7144
7152
  * @see https://tailwindcss.com/docs/scale
7145
7153
  */
7146
7154
  "scale-y": [{
7147
- "scale-y": de()
7155
+ "scale-y": he()
7148
7156
  }],
7149
7157
  /**
7150
7158
  * Scale Z
7151
7159
  * @see https://tailwindcss.com/docs/scale
7152
7160
  */
7153
7161
  "scale-z": [{
7154
- "scale-z": de()
7162
+ "scale-z": he()
7155
7163
  }],
7156
7164
  /**
7157
7165
  * Scale 3D
@@ -7163,21 +7171,21 @@ const j = (t) => {
7163
7171
  * @see https://tailwindcss.com/docs/skew
7164
7172
  */
7165
7173
  skew: [{
7166
- skew: Oe()
7174
+ skew: Be()
7167
7175
  }],
7168
7176
  /**
7169
7177
  * Skew X
7170
7178
  * @see https://tailwindcss.com/docs/skew
7171
7179
  */
7172
7180
  "skew-x": [{
7173
- "skew-x": Oe()
7181
+ "skew-x": Be()
7174
7182
  }],
7175
7183
  /**
7176
7184
  * Skew Y
7177
7185
  * @see https://tailwindcss.com/docs/skew
7178
7186
  */
7179
7187
  "skew-y": [{
7180
- "skew-y": Oe()
7188
+ "skew-y": Be()
7181
7189
  }],
7182
7190
  /**
7183
7191
  * Transform
@@ -7205,28 +7213,28 @@ const j = (t) => {
7205
7213
  * @see https://tailwindcss.com/docs/translate
7206
7214
  */
7207
7215
  translate: [{
7208
- translate: he()
7216
+ translate: fe()
7209
7217
  }],
7210
7218
  /**
7211
7219
  * Translate X
7212
7220
  * @see https://tailwindcss.com/docs/translate
7213
7221
  */
7214
7222
  "translate-x": [{
7215
- "translate-x": he()
7223
+ "translate-x": fe()
7216
7224
  }],
7217
7225
  /**
7218
7226
  * Translate Y
7219
7227
  * @see https://tailwindcss.com/docs/translate
7220
7228
  */
7221
7229
  "translate-y": [{
7222
- "translate-y": he()
7230
+ "translate-y": fe()
7223
7231
  }],
7224
7232
  /**
7225
7233
  * Translate Z
7226
7234
  * @see https://tailwindcss.com/docs/translate
7227
7235
  */
7228
7236
  "translate-z": [{
7229
- "translate-z": he()
7237
+ "translate-z": fe()
7230
7238
  }],
7231
7239
  /**
7232
7240
  * Translate None
@@ -7508,7 +7516,7 @@ const j = (t) => {
7508
7516
  * @see https://tailwindcss.com/docs/stroke-width
7509
7517
  */
7510
7518
  "stroke-w": [{
7511
- stroke: [D, Wt, wt, sn]
7519
+ stroke: [D, Ht, Tt, sn]
7512
7520
  }],
7513
7521
  /**
7514
7522
  * Stroke
@@ -7583,9 +7591,9 @@ const j = (t) => {
7583
7591
  },
7584
7592
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
7585
7593
  };
7586
- }, Oi = /* @__PURE__ */ Wd(dh), rn = 1e3, hh = ({ data: t, modals: e, index: n, initialParams: s }) => {
7587
- const i = e[t.name], o = t.params ?? s, r = o?.animate ?? s?.animate, a = o?.blur ?? s?.blur ?? !0, l = o?.onClose ?? s?.onClose, u = o?.backdrop ?? s?.backdrop, c = o?.body ?? s?.body, f = o?.position ?? s?.position ?? pe.CENTER, m = o?.closeOnClickOutside ?? s?.closeOnClickOutside, v = ke((C) => C.active), w = ke((C) => C.closeModal);
7588
- return /* @__PURE__ */ Gi(
7594
+ }, Bi = /* @__PURE__ */ Wd(dh), rn = 1e3, hh = ({ data: t, modals: e, index: n, initialParams: s }) => {
7595
+ const i = e[t.name], o = t.params ?? s, r = o?.animate ?? s?.animate, a = o?.blur ?? s?.blur ?? !0, l = o?.onClose ?? s?.onClose, u = o?.backdrop ?? s?.backdrop, c = o?.body ?? s?.body, f = o?.position ?? s?.position ?? et.CENTER, m = o?.closeOnClickOutside ?? s?.closeOnClickOutside, v = ke((C) => C.active), w = ke((C) => C.closeModal);
7596
+ return /* @__PURE__ */ $i(
7589
7597
  Rd.div,
7590
7598
  {
7591
7599
  exit: r?.exit ?? { opacity: 0 },
@@ -7602,7 +7610,7 @@ const j = (t) => {
7602
7610
  /* @__PURE__ */ Q(
7603
7611
  "div",
7604
7612
  {
7605
- className: Oi(
7613
+ className: Bi(
7606
7614
  je("absolute top-0 left-0 right-0 bottom-0 bg-black/40", {
7607
7615
  "react-motion-modal__active": v?.id === t.id
7608
7616
  }),
@@ -7619,14 +7627,20 @@ const j = (t) => {
7619
7627
  /* @__PURE__ */ Q(
7620
7628
  "div",
7621
7629
  {
7622
- className: Oi(
7630
+ className: Bi(
7623
7631
  je(
7624
7632
  "p-5 absolute max-h-screen max-w-screen overflow-hidden left-0 right-0",
7625
7633
  {
7626
7634
  "overflow-auto": v?.id === t.id,
7627
- "top-1/2 -translate-y-1/2 lg:left-1/2 lg:-translate-x-1/2": f === pe.CENTER,
7628
- "top-0 lg:left-1/2 lg:-translate-x-1/2": f === pe.TOP,
7629
- "bottom-0 lg:left-1/2 lg:-translate-x-1/2": f === pe.BOTTOM
7635
+ "top-1/2 -translate-y-1/2 lg:left-1/2 lg:-translate-x-1/2": f === et.CENTER,
7636
+ "top-1/2 -translate-y-1/2 right-auto": f === et.CENTER_LEFT,
7637
+ "top-1/2 -translate-y-1/2 left-auto right-0": f === et.CENTER_RIGHT,
7638
+ "top-0 lg:left-1/2 lg:-translate-x-1/2": f === et.TOP || f === et.TOP_CENTER,
7639
+ "top-0 right-auto": f === et.TOP_LEFT,
7640
+ "top-0 left-auto right-0": f === et.TOP_RIGHT,
7641
+ "bottom-0 lg:left-1/2 lg:-translate-x-1/2": f === et.BOTTOM || f === et.BOTTOM_CENTER,
7642
+ "bottom-0 right-auto": f === et.BOTTOM_LEFT,
7643
+ "bottom-0 left-auto right-0": f === et.BOTTOM_RIGHT
7630
7644
  }
7631
7645
  ),
7632
7646
  c?.className
@@ -8079,13 +8093,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8079
8093
  g = !0;
8080
8094
  }, d.pressedKeys = this._locale.pressedKeys.slice(0);
8081
8095
  for (var x = this._locale.activeTargetKeys, T = this._locale.pressedKeys.slice(0), b = this._getGroupedListeners(), V = function(N) {
8082
- var pt = b[N], q = pt[0].keyCombo;
8096
+ var mt = b[N], q = mt[0].keyCombo;
8083
8097
  if (q === null || q.check(T) && x.some(function(tt) {
8084
8098
  return q.keyNames.includes(tt);
8085
8099
  })) {
8086
- for (var Z = 0; Z < pt.length; Z += 1) {
8087
- var B = pt[Z];
8088
- !B.executingHandler && B.pressHandler && !B.preventRepeat && (B.executingHandler = !0, B.pressHandler.call(p, d), B.executingHandler = !1, (g || B.preventRepeatByDefault) && (B.preventRepeat = !0, g = !1)), p._appliedListeners.indexOf(B) === -1 && p._appliedListeners.push(B);
8100
+ for (var Z = 0; Z < mt.length; Z += 1) {
8101
+ var O = mt[Z];
8102
+ !O.executingHandler && O.pressHandler && !O.preventRepeat && (O.executingHandler = !0, O.pressHandler.call(p, d), O.executingHandler = !1, (g || O.preventRepeatByDefault) && (O.preventRepeat = !0, g = !1)), p._appliedListeners.indexOf(O) === -1 && p._appliedListeners.push(O);
8089
8103
  }
8090
8104
  if (q)
8091
8105
  for (var R = 0; R < q.keyNames.length; R += 1) {
@@ -8129,7 +8143,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8129
8143
  }
8130
8144
  var gh = mh();
8131
8145
  const Ni = /* @__PURE__ */ fh(gh), wh = ({ modals: t, initialParams: e }) => {
8132
- const n = ke((o) => o.modals), s = ke((o) => o.closeModal), i = ut(null);
8146
+ const n = ke((o) => o.modals), s = ke((o) => o.closeModal), i = dt(null);
8133
8147
  return Re(() => {
8134
8148
  if (i.current = document.body, n?.length === 0 || !n[n.length - 1].params?.closeOnPressEsc && !e?.closeOnPressEsc)
8135
8149
  return;
@@ -8152,7 +8166,7 @@ const Ni = /* @__PURE__ */ fh(gh), wh = ({ modals: t, initialParams: e }) => {
8152
8166
  );
8153
8167
  };
8154
8168
  export {
8155
- pe as MODAL_POSITIONS,
8169
+ et as MODAL_POSITIONS,
8156
8170
  wh as ModalProvider,
8157
8171
  ke as useModal
8158
8172
  };