uhuu-components 0.3.9 → 0.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  (function(){(function(e,t){try{if(typeof document>`u`)return;let n=document.head||document.getElementsByTagName(`head`)[0];if(!n)return;let r=t&&t.styleId||`uhuu-components-styles`,i=document.getElementById(r);i||(i=document.createElement(`style`),i.setAttribute(`id`,r),t&&t.attributes&&Object.entries(t.attributes).forEach(([e,t])=>{try{i.setAttribute(e,t)}catch{}})),i.textContent!==e&&(i.textContent=e),i.parentNode!==n&&(n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i))}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})(`/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
2
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,[data-uhuu-interactive] :before,[data-uhuu-portal] :before,[data-uhuu-interactive] :after,[data-uhuu-portal] :after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction: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-outline-style:solid;--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;--tw-duration:initial;--tw-ease:initial;--tw-space-x-reverse:0}*,:before,:after,::backdrop{--tw-outline-style:solid}}}@layer theme{:root,[data-uhuu-interactive] :host,[data-uhuu-portal] :host{--uhuu-font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--uhuu-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--uhuu-color-red-50:oklch(97.1% .013 17.38);--uhuu-color-red-600:oklch(57.7% .245 27.325);--uhuu-color-red-700:oklch(50.5% .213 27.518);--uhuu-color-emerald-100:oklch(95% .052 163.051);--uhuu-color-emerald-600:oklch(59.6% .145 163.225);--uhuu-color-blue-50:oklch(97% .014 254.604);--uhuu-color-blue-100:oklch(93.2% .032 255.585);--uhuu-color-blue-400:oklch(70.7% .165 254.624);--uhuu-color-blue-500:oklch(62.3% .214 259.815);--uhuu-color-blue-600:oklch(54.6% .245 262.881);--uhuu-color-gray-50:oklch(98.5% .002 247.839);--uhuu-color-gray-100:oklch(96.7% .003 264.542);--uhuu-color-gray-200:oklch(92.8% .006 264.531);--uhuu-color-gray-300:oklch(87.2% .01 258.338);--uhuu-color-gray-400:oklch(70.7% .022 261.325);--uhuu-color-gray-500:oklch(55.1% .027 264.364);--uhuu-color-gray-600:oklch(44.6% .03 256.802);--uhuu-color-gray-700:oklch(37.3% .034 259.733);--uhuu-color-gray-800:oklch(27.8% .033 256.848);--uhuu-color-gray-900:oklch(21% .034 264.665);--uhuu-color-neutral-50:oklch(98.5% 0 none);--uhuu-color-black:#000;--uhuu-color-white:#fff;--uhuu-spacing:.25rem;--uhuu-container-xs:20rem;--uhuu-container-sm:24rem;--uhuu-container-md:28rem;--uhuu-text-xs:.75rem;--uhuu-text-xs--line-height:calc(1 / .75);--uhuu-text-sm:.875rem;--uhuu-text-sm--line-height:calc(1.25 / .875);--uhuu-text-base:1rem;--uhuu-text-base--line-height:calc(1.5 / 1);--uhuu-text-lg:1.125rem;--uhuu-text-lg--line-height:calc(1.75 / 1.125);--uhuu-font-weight-normal:400;--uhuu-font-weight-medium:500;--uhuu-font-weight-semibold:600;--uhuu-tracking-wide:.025em;--uhuu-tracking-widest:.1em;--uhuu-leading-tight:1.25;--uhuu-radius-sm:.25rem;--uhuu-radius-md:.375rem;--uhuu-radius-lg:.5rem;--uhuu-ease-in-out:cubic-bezier(.4, 0, .2, 1);--uhuu-blur-sm:8px;--uhuu-blur-md:12px;--uhuu-default-transition-duration:.15s;--uhuu-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}:root:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),:root:is([data-uhuu-chrome],[data-uhuu-chrome] *),:host:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),:host:is([data-uhuu-chrome],[data-uhuu-chrome] *),:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, 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;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),:is([data-uhuu-chrome],[data-uhuu-chrome] *),:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)):after,:is([data-uhuu-chrome],[data-uhuu-chrome] *):after,:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)):before,:is([data-uhuu-chrome],[data-uhuu-chrome] *):before,:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::backdrop,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::file-selector-button,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),html:is([data-uhuu-chrome],[data-uhuu-chrome] *),:host:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),:host:is([data-uhuu-chrome],[data-uhuu-chrome] *){-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, 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:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),hr:is([data-uhuu-chrome],[data-uhuu-chrome] *){height:0;color:inherit;border-top-width:1px}abbr:where([title]):is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),abbr:where([title]):is([data-uhuu-chrome],[data-uhuu-chrome] *){text-decoration:underline dotted}h1:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),h1:is([data-uhuu-chrome],[data-uhuu-chrome] *),h2:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),h2:is([data-uhuu-chrome],[data-uhuu-chrome] *),h3:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),h3:is([data-uhuu-chrome],[data-uhuu-chrome] *),h4:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),h4:is([data-uhuu-chrome],[data-uhuu-chrome] *),h5:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),h5:is([data-uhuu-chrome],[data-uhuu-chrome] *),h6:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),h6:is([data-uhuu-chrome],[data-uhuu-chrome] *){font-size:inherit;font-weight:inherit}a:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),a:is([data-uhuu-chrome],[data-uhuu-chrome] *){color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),b:is([data-uhuu-chrome],[data-uhuu-chrome] *),strong:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),strong:is([data-uhuu-chrome],[data-uhuu-chrome] *){font-weight:bolder}code:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),code:is([data-uhuu-chrome],[data-uhuu-chrome] *),kbd:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),kbd:is([data-uhuu-chrome],[data-uhuu-chrome] *),samp:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),samp:is([data-uhuu-chrome],[data-uhuu-chrome] *),pre:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),pre:is([data-uhuu-chrome],[data-uhuu-chrome] *){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:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),small:is([data-uhuu-chrome],[data-uhuu-chrome] *){font-size:80%}sub:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),sub:is([data-uhuu-chrome],[data-uhuu-chrome] *),sup:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),sup:is([data-uhuu-chrome],[data-uhuu-chrome] *){vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),sub:is([data-uhuu-chrome],[data-uhuu-chrome] *){bottom:-.25em}sup:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),sup:is([data-uhuu-chrome],[data-uhuu-chrome] *){top:-.5em}table:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),table:is([data-uhuu-chrome],[data-uhuu-chrome] *){text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)):is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),:-moz-focusring:where(:not(iframe)):is([data-uhuu-chrome],[data-uhuu-chrome] *){outline:auto}progress:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),progress:is([data-uhuu-chrome],[data-uhuu-chrome] *){vertical-align:baseline}summary:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),summary:is([data-uhuu-chrome],[data-uhuu-chrome] *){display:list-item}ol:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),ol:is([data-uhuu-chrome],[data-uhuu-chrome] *),ul:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),ul:is([data-uhuu-chrome],[data-uhuu-chrome] *),menu:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),menu:is([data-uhuu-chrome],[data-uhuu-chrome] *){list-style:none}img:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),img:is([data-uhuu-chrome],[data-uhuu-chrome] *),svg:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),svg:is([data-uhuu-chrome],[data-uhuu-chrome] *),video:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),video:is([data-uhuu-chrome],[data-uhuu-chrome] *),canvas:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),canvas:is([data-uhuu-chrome],[data-uhuu-chrome] *),audio:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),audio:is([data-uhuu-chrome],[data-uhuu-chrome] *),iframe:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),iframe:is([data-uhuu-chrome],[data-uhuu-chrome] *),embed:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),embed:is([data-uhuu-chrome],[data-uhuu-chrome] *),object:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),object:is([data-uhuu-chrome],[data-uhuu-chrome] *){vertical-align:middle;display:block}img:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),img:is([data-uhuu-chrome],[data-uhuu-chrome] *),video:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),video:is([data-uhuu-chrome],[data-uhuu-chrome] *){max-width:100%;height:auto}button:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),button:is([data-uhuu-chrome],[data-uhuu-chrome] *),input:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),input:is([data-uhuu-chrome],[data-uhuu-chrome] *),select:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),select:is([data-uhuu-chrome],[data-uhuu-chrome] *),optgroup:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),optgroup:is([data-uhuu-chrome],[data-uhuu-chrome] *),textarea:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),textarea:is([data-uhuu-chrome],[data-uhuu-chrome] *){font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::file-selector-button,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::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:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),:where(select:is([multiple],[size])) optgroup:is([data-uhuu-chrome],[data-uhuu-chrome] *){font-weight:bolder}:where(select:is([multiple],[size])) optgroup option:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),:where(select:is([multiple],[size])) optgroup option:is([data-uhuu-chrome],[data-uhuu-chrome] *){padding-inline-start:20px}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::file-selector-button,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::file-selector-button{margin-inline-end:4px}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-moz-placeholder,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-moz-placeholder{opacity:1}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::placeholder,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-moz-placeholder,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-moz-placeholder{color:currentColor}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::placeholder,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-moz-placeholder,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-moz-placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::placeholder,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),textarea:is([data-uhuu-chrome],[data-uhuu-chrome] *){resize:vertical}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-search-decoration,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-search-decoration{-webkit-appearance:none}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-date-and-time-value,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-datetime-edit,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-datetime-edit{display:inline-flex}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-datetime-edit-fields-wrapper,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-datetime-edit-fields-wrapper{padding:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-datetime-edit,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-datetime-edit{padding-block:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-datetime-edit-year-field,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-datetime-edit-year-field{padding-block:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-datetime-edit-month-field,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-datetime-edit-month-field{padding-block:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-datetime-edit-day-field,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-datetime-edit-day-field{padding-block:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-datetime-edit-hour-field,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-datetime-edit-hour-field{padding-block:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-datetime-edit-minute-field,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-datetime-edit-minute-field{padding-block:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-datetime-edit-second-field,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-datetime-edit-second-field{padding-block:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-datetime-edit-millisecond-field,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-datetime-edit-millisecond-field{padding-block:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-datetime-edit-meridiem-field,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-datetime-edit-meridiem-field{padding-block:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-calendar-picker-indicator,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),:-moz-ui-invalid:is([data-uhuu-chrome],[data-uhuu-chrome] *){box-shadow:none}button:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),button:is([data-uhuu-chrome],[data-uhuu-chrome] *),input:where([type=button],[type=reset],[type=submit]):is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),input:where([type=button],[type=reset],[type=submit]):is([data-uhuu-chrome],[data-uhuu-chrome] *){-webkit-appearance:button;-moz-appearance:button;appearance:button}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::file-selector-button,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-inner-spin-button,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-inner-spin-button{height:auto}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-outer-spin-button,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])):is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),[hidden]:where(:not([hidden=until-found])):is([data-uhuu-chrome],[data-uhuu-chrome] *){display:none!important}}@layer components{@media screen{[data-uhuu-interactive] [data-uhuu-flow-unplaceable=true],[data-uhuu-portal] [data-uhuu-flow-unplaceable=true]{outline-offset:-2px;outline:2px dashed #dc2626}[data-uhuu-interactive] :where([data-uhuu]:not(.skip-data-uhuu,.skip-data-uhuu *)),[data-uhuu-portal] :where([data-uhuu]:not(.skip-data-uhuu,.skip-data-uhuu *)){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 14V8a6 6 0 0 1 12 0 6 6 0 0 1-6 6z' fill='%23ff44cc' fill-opacity='.2'/%3E%3C/svg%3E")}[data-uhuu-interactive] :where([data-uhuu]:not(.skip-data-uhuu,.skip-data-uhuu *):hover),[data-uhuu-portal] :where([data-uhuu]:not(.skip-data-uhuu,.skip-data-uhuu *):hover){outline-offset:-1px;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 14V8a6 6 0 0 1 12 0 6 6 0 0 1-6 6z' fill='%23ff44cc'/%3E%3C/svg%3E");outline:2px dashed #f4c}[data-uhuu-interactive] :where([data-uhuu].uhuu-text-empty),[data-uhuu-portal] :where([data-uhuu].uhuu-text-empty),[data-uhuu-interactive] :where([data-uhuu][data-uhuu-type=text]:empty),[data-uhuu-portal] :where([data-uhuu][data-uhuu-type=text]:empty),[data-uhuu-interactive] :where([data-uhuu][data-uhuu-type=textarea]:empty),[data-uhuu-portal] :where([data-uhuu][data-uhuu-type=textarea]:empty),[data-uhuu-interactive] :where([data-uhuu][data-uhuu-type=markdown]:empty),[data-uhuu-portal] :where([data-uhuu][data-uhuu-type=markdown]:empty){background-color:#ff44cc14;min-width:3em;min-height:1lh}[data-uhuu-interactive] :where(span[data-uhuu].uhuu-text-empty),[data-uhuu-portal] :where(span[data-uhuu].uhuu-text-empty),[data-uhuu-interactive] :where(span[data-uhuu][data-uhuu-type=text]:empty),[data-uhuu-portal] :where(span[data-uhuu][data-uhuu-type=text]:empty),[data-uhuu-interactive] :where(span[data-uhuu][data-uhuu-type=textarea]:empty),[data-uhuu-portal] :where(span[data-uhuu][data-uhuu-type=textarea]:empty),[data-uhuu-interactive] :where(span[data-uhuu][data-uhuu-type=markdown]:empty),[data-uhuu-portal] :where(span[data-uhuu][data-uhuu-type=markdown]:empty){vertical-align:top;display:inline-block}}}@layer utilities{[data-uhuu-interactive] .uhuu\\:pointer-events-auto,[data-uhuu-portal] .uhuu\\:pointer-events-auto{pointer-events:auto}[data-uhuu-interactive] .uhuu\\:pointer-events-none,[data-uhuu-portal] .uhuu\\:pointer-events-none{pointer-events:none}[data-uhuu-interactive] .uhuu\\:sr-only,[data-uhuu-portal] .uhuu\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}[data-uhuu-interactive] .uhuu\\:absolute,[data-uhuu-portal] .uhuu\\:absolute{position:absolute}[data-uhuu-interactive] .uhuu\\:fixed,[data-uhuu-portal] .uhuu\\:fixed{position:fixed}[data-uhuu-interactive] .uhuu\\:relative,[data-uhuu-portal] .uhuu\\:relative{position:relative}[data-uhuu-interactive] .uhuu\\:inset-0,[data-uhuu-portal] .uhuu\\:inset-0{inset:0}[data-uhuu-interactive] .uhuu\\:inset-x-0,[data-uhuu-portal] .uhuu\\:inset-x-0{inset-inline:0}[data-uhuu-interactive] .uhuu\\:inset-y-0,[data-uhuu-portal] .uhuu\\:inset-y-0{inset-block:0}[data-uhuu-interactive] .uhuu\\:-top-3,[data-uhuu-portal] .uhuu\\:-top-3{top:calc(var(--uhuu-spacing) * -3)}[data-uhuu-interactive] .uhuu\\:top-0,[data-uhuu-portal] .uhuu\\:top-0{top:0}[data-uhuu-interactive] .uhuu\\:top-1\\/2,[data-uhuu-portal] .uhuu\\:top-1\\/2{top:50%}[data-uhuu-interactive] .uhuu\\:top-2,[data-uhuu-portal] .uhuu\\:top-2{top:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:top-3,[data-uhuu-portal] .uhuu\\:top-3{top:calc(var(--uhuu-spacing) * 3)}[data-uhuu-interactive] .uhuu\\:top-4,[data-uhuu-portal] .uhuu\\:top-4{top:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:top-\\[50\\%\\],[data-uhuu-portal] .uhuu\\:top-\\[50\\%\\]{top:50%}[data-uhuu-interactive] .uhuu\\:-right-3,[data-uhuu-portal] .uhuu\\:-right-3{right:calc(var(--uhuu-spacing) * -3)}[data-uhuu-interactive] .uhuu\\:right-0,[data-uhuu-portal] .uhuu\\:right-0{right:0}[data-uhuu-interactive] .uhuu\\:right-2,[data-uhuu-portal] .uhuu\\:right-2{right:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:right-4,[data-uhuu-portal] .uhuu\\:right-4{right:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:bottom-0,[data-uhuu-portal] .uhuu\\:bottom-0{bottom:0}[data-uhuu-interactive] .uhuu\\:bottom-2,[data-uhuu-portal] .uhuu\\:bottom-2{bottom:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:bottom-4,[data-uhuu-portal] .uhuu\\:bottom-4{bottom:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:left-0,[data-uhuu-portal] .uhuu\\:left-0{left:0}[data-uhuu-interactive] .uhuu\\:left-2,[data-uhuu-portal] .uhuu\\:left-2{left:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:left-3,[data-uhuu-portal] .uhuu\\:left-3{left:calc(var(--uhuu-spacing) * 3)}[data-uhuu-interactive] .uhuu\\:left-4,[data-uhuu-portal] .uhuu\\:left-4{left:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:left-\\[50\\%\\],[data-uhuu-portal] .uhuu\\:left-\\[50\\%\\]{left:50%}[data-uhuu-interactive] .uhuu\\:z-10,[data-uhuu-portal] .uhuu\\:z-10{z-index:10}[data-uhuu-interactive] .uhuu\\:z-20,[data-uhuu-portal] .uhuu\\:z-20{z-index:20}[data-uhuu-interactive] .uhuu\\:z-30,[data-uhuu-portal] .uhuu\\:z-30{z-index:30}[data-uhuu-interactive] .uhuu\\:z-50,[data-uhuu-portal] .uhuu\\:z-50{z-index:50}[data-uhuu-interactive] .uhuu\\:z-\\[2\\],[data-uhuu-portal] .uhuu\\:z-\\[2\\]{z-index:2}[data-uhuu-interactive] .uhuu\\:-mx-1,[data-uhuu-portal] .uhuu\\:-mx-1{margin-inline:calc(var(--uhuu-spacing) * -1)}[data-uhuu-interactive] .uhuu\\:mx-0\\.5,[data-uhuu-portal] .uhuu\\:mx-0\\.5{margin-inline:calc(var(--uhuu-spacing) * .5)}[data-uhuu-interactive] .uhuu\\:mx-4,[data-uhuu-portal] .uhuu\\:mx-4{margin-inline:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:mx-auto,[data-uhuu-portal] .uhuu\\:mx-auto{margin-inline:auto}[data-uhuu-interactive] .uhuu\\:my-1,[data-uhuu-portal] .uhuu\\:my-1{margin-block:var(--uhuu-spacing)}[data-uhuu-interactive] .uhuu\\:my-1\\.5,[data-uhuu-portal] .uhuu\\:my-1\\.5{margin-block:calc(var(--uhuu-spacing) * 1.5)}[data-uhuu-interactive] .uhuu\\:mt-0\\.5,[data-uhuu-portal] .uhuu\\:mt-0\\.5{margin-top:calc(var(--uhuu-spacing) * .5)}[data-uhuu-interactive] .uhuu\\:mt-1,[data-uhuu-portal] .uhuu\\:mt-1{margin-top:var(--uhuu-spacing)}[data-uhuu-interactive] .uhuu\\:mt-6,[data-uhuu-portal] .uhuu\\:mt-6{margin-top:calc(var(--uhuu-spacing) * 6)}[data-uhuu-interactive] .uhuu\\:mr-2,[data-uhuu-portal] .uhuu\\:mr-2{margin-right:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:mr-8,[data-uhuu-portal] .uhuu\\:mr-8{margin-right:calc(var(--uhuu-spacing) * 8)}[data-uhuu-interactive] .uhuu\\:mb-0\\.5,[data-uhuu-portal] .uhuu\\:mb-0\\.5{margin-bottom:calc(var(--uhuu-spacing) * .5)}[data-uhuu-interactive] .uhuu\\:mb-1,[data-uhuu-portal] .uhuu\\:mb-1{margin-bottom:var(--uhuu-spacing)}[data-uhuu-interactive] .uhuu\\:mb-2,[data-uhuu-portal] .uhuu\\:mb-2{margin-bottom:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:mb-3,[data-uhuu-portal] .uhuu\\:mb-3{margin-bottom:calc(var(--uhuu-spacing) * 3)}[data-uhuu-interactive] .uhuu\\:mb-4,[data-uhuu-portal] .uhuu\\:mb-4{margin-bottom:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:mb-5,[data-uhuu-portal] .uhuu\\:mb-5{margin-bottom:calc(var(--uhuu-spacing) * 5)}[data-uhuu-interactive] .uhuu\\:mb-6,[data-uhuu-portal] .uhuu\\:mb-6{margin-bottom:calc(var(--uhuu-spacing) * 6)}[data-uhuu-interactive] .uhuu\\:ml-1,[data-uhuu-portal] .uhuu\\:ml-1{margin-left:var(--uhuu-spacing)}[data-uhuu-interactive] .uhuu\\:ml-auto,[data-uhuu-portal] .uhuu\\:ml-auto{margin-left:auto}[data-uhuu-interactive] .uhuu\\:block,[data-uhuu-portal] .uhuu\\:block{display:block}[data-uhuu-interactive] .uhuu\\:flex,[data-uhuu-portal] .uhuu\\:flex{display:flex}[data-uhuu-interactive] .uhuu\\:hidden,[data-uhuu-portal] .uhuu\\:hidden{display:none}[data-uhuu-interactive] .uhuu\\:inline-block,[data-uhuu-portal] .uhuu\\:inline-block{display:inline-block}[data-uhuu-interactive] .uhuu\\:inline-flex,[data-uhuu-portal] .uhuu\\:inline-flex{display:inline-flex}[data-uhuu-interactive] .uhuu\\:size-3,[data-uhuu-portal] .uhuu\\:size-3{width:calc(var(--uhuu-spacing) * 3);height:calc(var(--uhuu-spacing) * 3)}[data-uhuu-interactive] .uhuu\\:size-3\\.5,[data-uhuu-portal] .uhuu\\:size-3\\.5{width:calc(var(--uhuu-spacing) * 3.5);height:calc(var(--uhuu-spacing) * 3.5)}[data-uhuu-interactive] .uhuu\\:size-4,[data-uhuu-portal] .uhuu\\:size-4{width:calc(var(--uhuu-spacing) * 4);height:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:h-1\\.5,[data-uhuu-portal] .uhuu\\:h-1\\.5{height:calc(var(--uhuu-spacing) * 1.5)}[data-uhuu-interactive] .uhuu\\:h-3,[data-uhuu-portal] .uhuu\\:h-3{height:calc(var(--uhuu-spacing) * 3)}[data-uhuu-interactive] .uhuu\\:h-3\\.5,[data-uhuu-portal] .uhuu\\:h-3\\.5{height:calc(var(--uhuu-spacing) * 3.5)}[data-uhuu-interactive] .uhuu\\:h-4,[data-uhuu-portal] .uhuu\\:h-4{height:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:h-5,[data-uhuu-portal] .uhuu\\:h-5{height:calc(var(--uhuu-spacing) * 5)}[data-uhuu-interactive] .uhuu\\:h-6,[data-uhuu-portal] .uhuu\\:h-6{height:calc(var(--uhuu-spacing) * 6)}[data-uhuu-interactive] .uhuu\\:h-7,[data-uhuu-portal] .uhuu\\:h-7{height:calc(var(--uhuu-spacing) * 7)}[data-uhuu-interactive] .uhuu\\:h-8,[data-uhuu-portal] .uhuu\\:h-8{height:calc(var(--uhuu-spacing) * 8)}[data-uhuu-interactive] .uhuu\\:h-9,[data-uhuu-portal] .uhuu\\:h-9{height:calc(var(--uhuu-spacing) * 9)}[data-uhuu-interactive] .uhuu\\:h-10,[data-uhuu-portal] .uhuu\\:h-10{height:calc(var(--uhuu-spacing) * 10)}[data-uhuu-interactive] .uhuu\\:h-11,[data-uhuu-portal] .uhuu\\:h-11{height:calc(var(--uhuu-spacing) * 11)}[data-uhuu-interactive] .uhuu\\:h-12,[data-uhuu-portal] .uhuu\\:h-12{height:calc(var(--uhuu-spacing) * 12)}[data-uhuu-interactive] .uhuu\\:h-16,[data-uhuu-portal] .uhuu\\:h-16{height:calc(var(--uhuu-spacing) * 16)}[data-uhuu-interactive] .uhuu\\:h-\\[90vh\\],[data-uhuu-portal] .uhuu\\:h-\\[90vh\\]{height:90vh}[data-uhuu-interactive] .uhuu\\:h-full,[data-uhuu-portal] .uhuu\\:h-full{height:100%}[data-uhuu-interactive] .uhuu\\:h-px,[data-uhuu-portal] .uhuu\\:h-px{height:1px}[data-uhuu-interactive] .uhuu\\:min-h-0,[data-uhuu-portal] .uhuu\\:min-h-0{min-height:0}[data-uhuu-interactive] .uhuu\\:w-3,[data-uhuu-portal] .uhuu\\:w-3{width:calc(var(--uhuu-spacing) * 3)}[data-uhuu-interactive] .uhuu\\:w-3\\.5,[data-uhuu-portal] .uhuu\\:w-3\\.5{width:calc(var(--uhuu-spacing) * 3.5)}[data-uhuu-interactive] .uhuu\\:w-3\\/4,[data-uhuu-portal] .uhuu\\:w-3\\/4{width:75%}[data-uhuu-interactive] .uhuu\\:w-4,[data-uhuu-portal] .uhuu\\:w-4{width:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:w-6,[data-uhuu-portal] .uhuu\\:w-6{width:calc(var(--uhuu-spacing) * 6)}[data-uhuu-interactive] .uhuu\\:w-7,[data-uhuu-portal] .uhuu\\:w-7{width:calc(var(--uhuu-spacing) * 7)}[data-uhuu-interactive] .uhuu\\:w-8,[data-uhuu-portal] .uhuu\\:w-8{width:calc(var(--uhuu-spacing) * 8)}[data-uhuu-interactive] .uhuu\\:w-9,[data-uhuu-portal] .uhuu\\:w-9{width:calc(var(--uhuu-spacing) * 9)}[data-uhuu-interactive] .uhuu\\:w-10,[data-uhuu-portal] .uhuu\\:w-10{width:calc(var(--uhuu-spacing) * 10)}[data-uhuu-interactive] .uhuu\\:w-12,[data-uhuu-portal] .uhuu\\:w-12{width:calc(var(--uhuu-spacing) * 12)}[data-uhuu-interactive] .uhuu\\:w-16,[data-uhuu-portal] .uhuu\\:w-16{width:calc(var(--uhuu-spacing) * 16)}[data-uhuu-interactive] .uhuu\\:w-20,[data-uhuu-portal] .uhuu\\:w-20{width:calc(var(--uhuu-spacing) * 20)}[data-uhuu-interactive] .uhuu\\:w-24,[data-uhuu-portal] .uhuu\\:w-24{width:calc(var(--uhuu-spacing) * 24)}[data-uhuu-interactive] .uhuu\\:w-40,[data-uhuu-portal] .uhuu\\:w-40{width:calc(var(--uhuu-spacing) * 40)}[data-uhuu-interactive] .uhuu\\:w-48,[data-uhuu-portal] .uhuu\\:w-48{width:calc(var(--uhuu-spacing) * 48)}[data-uhuu-interactive] .uhuu\\:w-52,[data-uhuu-portal] .uhuu\\:w-52{width:calc(var(--uhuu-spacing) * 52)}[data-uhuu-interactive] .uhuu\\:w-full,[data-uhuu-portal] .uhuu\\:w-full{width:100%}[data-uhuu-interactive] .uhuu\\:w-px,[data-uhuu-portal] .uhuu\\:w-px{width:1px}[data-uhuu-interactive] .uhuu\\:max-w-\\[110px\\],[data-uhuu-portal] .uhuu\\:max-w-\\[110px\\]{max-width:110px}[data-uhuu-interactive] .uhuu\\:max-w-\\[120px\\],[data-uhuu-portal] .uhuu\\:max-w-\\[120px\\]{max-width:120px}[data-uhuu-interactive] .uhuu\\:max-w-\\[140px\\],[data-uhuu-portal] .uhuu\\:max-w-\\[140px\\]{max-width:140px}[data-uhuu-interactive] .uhuu\\:max-w-md,[data-uhuu-portal] .uhuu\\:max-w-md{max-width:var(--uhuu-container-md)}[data-uhuu-interactive] .uhuu\\:max-w-none,[data-uhuu-portal] .uhuu\\:max-w-none{max-width:none}[data-uhuu-interactive] .uhuu\\:max-w-sm,[data-uhuu-portal] .uhuu\\:max-w-sm{max-width:var(--uhuu-container-sm)}[data-uhuu-interactive] .uhuu\\:max-w-xs,[data-uhuu-portal] .uhuu\\:max-w-xs{max-width:var(--uhuu-container-xs)}[data-uhuu-interactive] .uhuu\\:min-w-0,[data-uhuu-portal] .uhuu\\:min-w-0{min-width:0}[data-uhuu-interactive] .uhuu\\:min-w-44,[data-uhuu-portal] .uhuu\\:min-w-44{min-width:calc(var(--uhuu-spacing) * 44)}[data-uhuu-interactive] .uhuu\\:min-w-48,[data-uhuu-portal] .uhuu\\:min-w-48{min-width:calc(var(--uhuu-spacing) * 48)}[data-uhuu-interactive] .uhuu\\:min-w-\\[1rem\\],[data-uhuu-portal] .uhuu\\:min-w-\\[1rem\\]{min-width:1rem}[data-uhuu-interactive] .uhuu\\:min-w-\\[8rem\\],[data-uhuu-portal] .uhuu\\:min-w-\\[8rem\\]{min-width:8rem}[data-uhuu-interactive] .uhuu\\:min-w-\\[24px\\],[data-uhuu-portal] .uhuu\\:min-w-\\[24px\\]{min-width:24px}[data-uhuu-interactive] .uhuu\\:min-w-\\[180px\\],[data-uhuu-portal] .uhuu\\:min-w-\\[180px\\]{min-width:180px}[data-uhuu-interactive] .uhuu\\:min-w-\\[200px\\],[data-uhuu-portal] .uhuu\\:min-w-\\[200px\\]{min-width:200px}[data-uhuu-interactive] .uhuu\\:flex-1,[data-uhuu-portal] .uhuu\\:flex-1{flex:1}[data-uhuu-interactive] .uhuu\\:shrink-0,[data-uhuu-portal] .uhuu\\:shrink-0{flex-shrink:0}[data-uhuu-interactive] .uhuu\\:shrink-0\\!,[data-uhuu-portal] .uhuu\\:shrink-0\\!{flex-shrink:0!important}[data-uhuu-interactive] .uhuu\\:grow,[data-uhuu-portal] .uhuu\\:grow{flex-grow:1}[data-uhuu-interactive] .uhuu\\:translate-x-\\[-50\\%\\],[data-uhuu-portal] .uhuu\\:translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}[data-uhuu-interactive] .uhuu\\:-translate-y-1\\/2,[data-uhuu-portal] .uhuu\\:-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}[data-uhuu-interactive] .uhuu\\:translate-y-\\[-50\\%\\],[data-uhuu-portal] .uhuu\\:translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}[data-uhuu-interactive] .uhuu\\:scale-105,[data-uhuu-portal] .uhuu\\:scale-105{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}[data-uhuu-interactive] .uhuu\\:scale-110,[data-uhuu-portal] .uhuu\\:scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}[data-uhuu-interactive] .uhuu\\:rotate-2,[data-uhuu-portal] .uhuu\\:rotate-2{rotate:2deg}[data-uhuu-interactive] .uhuu\\:rotate-45,[data-uhuu-portal] .uhuu\\:rotate-45{rotate:45deg}[data-uhuu-interactive] .uhuu\\:cursor-default,[data-uhuu-portal] .uhuu\\:cursor-default{cursor:default}[data-uhuu-interactive] .uhuu\\:cursor-grab,[data-uhuu-portal] .uhuu\\:cursor-grab{cursor:grab}[data-uhuu-interactive] .uhuu\\:cursor-pointer,[data-uhuu-portal] .uhuu\\:cursor-pointer{cursor:pointer}[data-uhuu-interactive] .uhuu\\:touch-none,[data-uhuu-portal] .uhuu\\:touch-none{touch-action:none}[data-uhuu-interactive] .uhuu\\:flex-col,[data-uhuu-portal] .uhuu\\:flex-col{flex-direction:column}[data-uhuu-interactive] .uhuu\\:flex-col-reverse,[data-uhuu-portal] .uhuu\\:flex-col-reverse{flex-direction:column-reverse}[data-uhuu-interactive] .uhuu\\:flex-wrap,[data-uhuu-portal] .uhuu\\:flex-wrap{flex-wrap:wrap}[data-uhuu-interactive] .uhuu\\:items-center,[data-uhuu-portal] .uhuu\\:items-center{align-items:center}[data-uhuu-interactive] .uhuu\\:items-end,[data-uhuu-portal] .uhuu\\:items-end{align-items:flex-end}[data-uhuu-interactive] .uhuu\\:items-start,[data-uhuu-portal] .uhuu\\:items-start{align-items:flex-start}[data-uhuu-interactive] .uhuu\\:justify-between,[data-uhuu-portal] .uhuu\\:justify-between{justify-content:space-between}[data-uhuu-interactive] .uhuu\\:justify-center,[data-uhuu-portal] .uhuu\\:justify-center{justify-content:center}[data-uhuu-interactive] .uhuu\\:justify-end,[data-uhuu-portal] .uhuu\\:justify-end{justify-content:flex-end}[data-uhuu-interactive] .uhuu\\:justify-start,[data-uhuu-portal] .uhuu\\:justify-start{justify-content:flex-start}[data-uhuu-interactive] .uhuu\\:gap-0,[data-uhuu-portal] .uhuu\\:gap-0{gap:0}[data-uhuu-interactive] .uhuu\\:gap-1,[data-uhuu-portal] .uhuu\\:gap-1{gap:var(--uhuu-spacing)}[data-uhuu-interactive] .uhuu\\:gap-1\\.5,[data-uhuu-portal] .uhuu\\:gap-1\\.5{gap:calc(var(--uhuu-spacing) * 1.5)}[data-uhuu-interactive] .uhuu\\:gap-2,[data-uhuu-portal] .uhuu\\:gap-2{gap:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:gap-3,[data-uhuu-portal] .uhuu\\:gap-3{gap:calc(var(--uhuu-spacing) * 3)}[data-uhuu-interactive] .uhuu\\:gap-4,[data-uhuu-portal] .uhuu\\:gap-4{gap:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] :where(.uhuu\\:space-y-1\\.5>:not(:last-child)),[data-uhuu-portal] :where(.uhuu\\:space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--uhuu-spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--uhuu-spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}[data-uhuu-interactive] :where(.uhuu\\:space-y-2>:not(:last-child)),[data-uhuu-portal] :where(.uhuu\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--uhuu-spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--uhuu-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}[data-uhuu-interactive] :where(.uhuu\\:space-y-3>:not(:last-child)),[data-uhuu-portal] :where(.uhuu\\:space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--uhuu-spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--uhuu-spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}[data-uhuu-interactive] .uhuu\\:truncate,[data-uhuu-portal] .uhuu\\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}[data-uhuu-interactive] .uhuu\\:overflow-auto,[data-uhuu-portal] .uhuu\\:overflow-auto{overflow:auto}[data-uhuu-interactive] .uhuu\\:overflow-hidden,[data-uhuu-portal] .uhuu\\:overflow-hidden{overflow:hidden}[data-uhuu-interactive] .uhuu\\:rounded,[data-uhuu-portal] .uhuu\\:rounded{border-radius:.25rem}[data-uhuu-interactive] .uhuu\\:rounded-full,[data-uhuu-portal] .uhuu\\:rounded-full{border-radius:2147483647px}[data-uhuu-interactive] .uhuu\\:rounded-lg,[data-uhuu-portal] .uhuu\\:rounded-lg{border-radius:var(--uhuu-radius-lg)}[data-uhuu-interactive] .uhuu\\:rounded-md,[data-uhuu-portal] .uhuu\\:rounded-md{border-radius:var(--uhuu-radius-md)}[data-uhuu-interactive] .uhuu\\:rounded-sm,[data-uhuu-portal] .uhuu\\:rounded-sm{border-radius:var(--uhuu-radius-sm)}[data-uhuu-interactive] .uhuu\\:border,[data-uhuu-portal] .uhuu\\:border{border-style:var(--tw-border-style);border-width:1px}[data-uhuu-interactive] .uhuu\\:border-0,[data-uhuu-portal] .uhuu\\:border-0{border-style:var(--tw-border-style);border-width:0}[data-uhuu-interactive] .uhuu\\:border-2,[data-uhuu-portal] .uhuu\\:border-2{border-style:var(--tw-border-style);border-width:2px}[data-uhuu-interactive] .uhuu\\:border-t,[data-uhuu-portal] .uhuu\\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}[data-uhuu-interactive] .uhuu\\:border-r,[data-uhuu-portal] .uhuu\\:border-r{border-right-style:var(--tw-border-style);border-right-width:1px}[data-uhuu-interactive] .uhuu\\:border-b,[data-uhuu-portal] .uhuu\\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}[data-uhuu-interactive] .uhuu\\:border-l,[data-uhuu-portal] .uhuu\\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}[data-uhuu-interactive] .uhuu\\:border-\\(--uhuu-thumbnail-border\\),[data-uhuu-portal] .uhuu\\:border-\\(--uhuu-thumbnail-border\\){border-color:var(--uhuu-thumbnail-border)}[data-uhuu-interactive] .uhuu\\:border-\\(--uhuu-thumbnail-border-strong\\),[data-uhuu-portal] .uhuu\\:border-\\(--uhuu-thumbnail-border-strong\\){border-color:var(--uhuu-thumbnail-border-strong)}[data-uhuu-interactive] .uhuu\\:border-blue-400,[data-uhuu-portal] .uhuu\\:border-blue-400{border-color:var(--uhuu-color-blue-400)}[data-uhuu-interactive] .uhuu\\:border-gray-200,[data-uhuu-portal] .uhuu\\:border-gray-200,[data-uhuu-interactive] .uhuu\\:border-gray-200\\/60,[data-uhuu-portal] .uhuu\\:border-gray-200\\/60{border-color:var(--uhuu-color-gray-200)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:border-gray-200\\/60,[data-uhuu-portal] .uhuu\\:border-gray-200\\/60{border-color:color-mix(in oklab, var(--uhuu-color-gray-200) 60%, transparent)}}[data-uhuu-interactive] .uhuu\\:border-gray-200\\/80,[data-uhuu-portal] .uhuu\\:border-gray-200\\/80{border-color:var(--uhuu-color-gray-200)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:border-gray-200\\/80,[data-uhuu-portal] .uhuu\\:border-gray-200\\/80{border-color:color-mix(in oklab, var(--uhuu-color-gray-200) 80%, transparent)}}[data-uhuu-interactive] .uhuu\\:border-gray-300,[data-uhuu-portal] .uhuu\\:border-gray-300{border-color:var(--uhuu-color-gray-300)}[data-uhuu-interactive] .uhuu\\:border-gray-400,[data-uhuu-portal] .uhuu\\:border-gray-400{border-color:var(--uhuu-color-gray-400)}[data-uhuu-interactive] .uhuu\\:border-gray-900,[data-uhuu-portal] .uhuu\\:border-gray-900{border-color:var(--uhuu-color-gray-900)}[data-uhuu-interactive] .uhuu\\:border-transparent,[data-uhuu-portal] .uhuu\\:border-transparent{border-color:#0000}[data-uhuu-interactive] .uhuu\\:bg-\\(--uhuu-shell-surface\\),[data-uhuu-portal] .uhuu\\:bg-\\(--uhuu-shell-surface\\),[data-uhuu-interactive] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/50,[data-uhuu-portal] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/50{background-color:var(--uhuu-shell-surface)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/50,[data-uhuu-portal] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/50{background-color:color-mix(in oklab, var(--uhuu-shell-surface) 50%, transparent)}}[data-uhuu-interactive] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/90,[data-uhuu-portal] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/90{background-color:var(--uhuu-shell-surface)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/90,[data-uhuu-portal] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/90{background-color:color-mix(in oklab, var(--uhuu-shell-surface) 90%, transparent)}}[data-uhuu-interactive] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/95,[data-uhuu-portal] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/95{background-color:var(--uhuu-shell-surface)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/95,[data-uhuu-portal] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/95{background-color:color-mix(in oklab, var(--uhuu-shell-surface) 95%, transparent)}}[data-uhuu-interactive] .uhuu\\:bg-\\(--uhuu-thumbnail-caption\\),[data-uhuu-portal] .uhuu\\:bg-\\(--uhuu-thumbnail-caption\\){background-color:var(--uhuu-thumbnail-caption)}[data-uhuu-interactive] .uhuu\\:bg-black,[data-uhuu-portal] .uhuu\\:bg-black,[data-uhuu-interactive] .uhuu\\:bg-black\\/30,[data-uhuu-portal] .uhuu\\:bg-black\\/30{background-color:var(--uhuu-color-black)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:bg-black\\/30,[data-uhuu-portal] .uhuu\\:bg-black\\/30{background-color:color-mix(in oklab, var(--uhuu-color-black) 30%, transparent)}}[data-uhuu-interactive] .uhuu\\:bg-black\\/40,[data-uhuu-portal] .uhuu\\:bg-black\\/40{background-color:var(--uhuu-color-black)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:bg-black\\/40,[data-uhuu-portal] .uhuu\\:bg-black\\/40{background-color:color-mix(in oklab, var(--uhuu-color-black) 40%, transparent)}}[data-uhuu-interactive] .uhuu\\:bg-black\\/50,[data-uhuu-portal] .uhuu\\:bg-black\\/50{background-color:var(--uhuu-color-black)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:bg-black\\/50,[data-uhuu-portal] .uhuu\\:bg-black\\/50{background-color:color-mix(in oklab, var(--uhuu-color-black) 50%, transparent)}}[data-uhuu-interactive] .uhuu\\:bg-blue-50,[data-uhuu-portal] .uhuu\\:bg-blue-50{background-color:var(--uhuu-color-blue-50)}[data-uhuu-interactive] .uhuu\\:bg-blue-100,[data-uhuu-portal] .uhuu\\:bg-blue-100{background-color:var(--uhuu-color-blue-100)}[data-uhuu-interactive] .uhuu\\:bg-blue-500\\/10,[data-uhuu-portal] .uhuu\\:bg-blue-500\\/10{background-color:var(--uhuu-color-blue-500)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:bg-blue-500\\/10,[data-uhuu-portal] .uhuu\\:bg-blue-500\\/10{background-color:color-mix(in oklab, var(--uhuu-color-blue-500) 10%, transparent)}}[data-uhuu-interactive] .uhuu\\:bg-blue-600\\/80,[data-uhuu-portal] .uhuu\\:bg-blue-600\\/80{background-color:var(--uhuu-color-blue-600)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:bg-blue-600\\/80,[data-uhuu-portal] .uhuu\\:bg-blue-600\\/80{background-color:color-mix(in oklab, var(--uhuu-color-blue-600) 80%, transparent)}}[data-uhuu-interactive] .uhuu\\:bg-emerald-100,[data-uhuu-portal] .uhuu\\:bg-emerald-100{background-color:var(--uhuu-color-emerald-100)}[data-uhuu-interactive] .uhuu\\:bg-gray-50,[data-uhuu-portal] .uhuu\\:bg-gray-50{background-color:var(--uhuu-color-gray-50)}[data-uhuu-interactive] .uhuu\\:bg-gray-100,[data-uhuu-portal] .uhuu\\:bg-gray-100,[data-uhuu-interactive] .uhuu\\:bg-gray-100\\/80,[data-uhuu-portal] .uhuu\\:bg-gray-100\\/80{background-color:var(--uhuu-color-gray-100)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:bg-gray-100\\/80,[data-uhuu-portal] .uhuu\\:bg-gray-100\\/80{background-color:color-mix(in oklab, var(--uhuu-color-gray-100) 80%, transparent)}}[data-uhuu-interactive] .uhuu\\:bg-gray-200,[data-uhuu-portal] .uhuu\\:bg-gray-200{background-color:var(--uhuu-color-gray-200)}[data-uhuu-interactive] .uhuu\\:bg-gray-600\\/80,[data-uhuu-portal] .uhuu\\:bg-gray-600\\/80{background-color:var(--uhuu-color-gray-600)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:bg-gray-600\\/80,[data-uhuu-portal] .uhuu\\:bg-gray-600\\/80{background-color:color-mix(in oklab, var(--uhuu-color-gray-600) 80%, transparent)}}[data-uhuu-interactive] .uhuu\\:bg-gray-900,[data-uhuu-portal] .uhuu\\:bg-gray-900{background-color:var(--uhuu-color-gray-900)}[data-uhuu-interactive] .uhuu\\:bg-transparent,[data-uhuu-portal] .uhuu\\:bg-transparent{background-color:#0000}[data-uhuu-interactive] .uhuu\\:bg-white,[data-uhuu-portal] .uhuu\\:bg-white,[data-uhuu-interactive] .uhuu\\:bg-white\\/90,[data-uhuu-portal] .uhuu\\:bg-white\\/90{background-color:var(--uhuu-color-white)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:bg-white\\/90,[data-uhuu-portal] .uhuu\\:bg-white\\/90{background-color:color-mix(in oklab, var(--uhuu-color-white) 90%, transparent)}}[data-uhuu-interactive] .uhuu\\:object-contain,[data-uhuu-portal] .uhuu\\:object-contain{-o-object-fit:contain;object-fit:contain}[data-uhuu-interactive] .uhuu\\:object-top,[data-uhuu-portal] .uhuu\\:object-top{-o-object-position:top;object-position:top}[data-uhuu-interactive] .uhuu\\:p-0,[data-uhuu-portal] .uhuu\\:p-0{padding:0}[data-uhuu-interactive] .uhuu\\:p-1,[data-uhuu-portal] .uhuu\\:p-1{padding:var(--uhuu-spacing)}[data-uhuu-interactive] .uhuu\\:p-1\\.5,[data-uhuu-portal] .uhuu\\:p-1\\.5{padding:calc(var(--uhuu-spacing) * 1.5)}[data-uhuu-interactive] .uhuu\\:p-2,[data-uhuu-portal] .uhuu\\:p-2{padding:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:p-3,[data-uhuu-portal] .uhuu\\:p-3{padding:calc(var(--uhuu-spacing) * 3)}[data-uhuu-interactive] .uhuu\\:p-4,[data-uhuu-portal] .uhuu\\:p-4{padding:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:p-6,[data-uhuu-portal] .uhuu\\:p-6{padding:calc(var(--uhuu-spacing) * 6)}[data-uhuu-interactive] .uhuu\\:px-2,[data-uhuu-portal] .uhuu\\:px-2{padding-inline:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:px-2\\.5,[data-uhuu-portal] .uhuu\\:px-2\\.5{padding-inline:calc(var(--uhuu-spacing) * 2.5)}[data-uhuu-interactive] .uhuu\\:px-3,[data-uhuu-portal] .uhuu\\:px-3{padding-inline:calc(var(--uhuu-spacing) * 3)}[data-uhuu-interactive] .uhuu\\:px-4,[data-uhuu-portal] .uhuu\\:px-4{padding-inline:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:px-8,[data-uhuu-portal] .uhuu\\:px-8{padding-inline:calc(var(--uhuu-spacing) * 8)}[data-uhuu-interactive] .uhuu\\:py-0\\.5,[data-uhuu-portal] .uhuu\\:py-0\\.5{padding-block:calc(var(--uhuu-spacing) * .5)}[data-uhuu-interactive] .uhuu\\:py-1,[data-uhuu-portal] .uhuu\\:py-1{padding-block:var(--uhuu-spacing)}[data-uhuu-interactive] .uhuu\\:py-1\\.5,[data-uhuu-portal] .uhuu\\:py-1\\.5{padding-block:calc(var(--uhuu-spacing) * 1.5)}[data-uhuu-interactive] .uhuu\\:py-2,[data-uhuu-portal] .uhuu\\:py-2{padding-block:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:py-2\\.5,[data-uhuu-portal] .uhuu\\:py-2\\.5{padding-block:calc(var(--uhuu-spacing) * 2.5)}[data-uhuu-interactive] .uhuu\\:py-3,[data-uhuu-portal] .uhuu\\:py-3{padding-block:calc(var(--uhuu-spacing) * 3)}[data-uhuu-interactive] .uhuu\\:py-16,[data-uhuu-portal] .uhuu\\:py-16{padding-block:calc(var(--uhuu-spacing) * 16)}[data-uhuu-interactive] .uhuu\\:py-20,[data-uhuu-portal] .uhuu\\:py-20{padding-block:calc(var(--uhuu-spacing) * 20)}[data-uhuu-interactive] .uhuu\\:pt-1,[data-uhuu-portal] .uhuu\\:pt-1{padding-top:var(--uhuu-spacing)}[data-uhuu-interactive] .uhuu\\:pt-2,[data-uhuu-portal] .uhuu\\:pt-2{padding-top:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:pr-1,[data-uhuu-portal] .uhuu\\:pr-1{padding-right:var(--uhuu-spacing)}[data-uhuu-interactive] .uhuu\\:pr-2,[data-uhuu-portal] .uhuu\\:pr-2{padding-right:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:pr-3,[data-uhuu-portal] .uhuu\\:pr-3{padding-right:calc(var(--uhuu-spacing) * 3)}[data-uhuu-interactive] .uhuu\\:pr-6,[data-uhuu-portal] .uhuu\\:pr-6{padding-right:calc(var(--uhuu-spacing) * 6)}[data-uhuu-interactive] .uhuu\\:pb-4,[data-uhuu-portal] .uhuu\\:pb-4{padding-bottom:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:pl-0,[data-uhuu-portal] .uhuu\\:pl-0{padding-left:0}[data-uhuu-interactive] .uhuu\\:pl-1,[data-uhuu-portal] .uhuu\\:pl-1{padding-left:var(--uhuu-spacing)}[data-uhuu-interactive] .uhuu\\:pl-8,[data-uhuu-portal] .uhuu\\:pl-8{padding-left:calc(var(--uhuu-spacing) * 8)}[data-uhuu-interactive] .uhuu\\:text-center,[data-uhuu-portal] .uhuu\\:text-center{text-align:center}[data-uhuu-interactive] .uhuu\\:text-left,[data-uhuu-portal] .uhuu\\:text-left{text-align:left}[data-uhuu-interactive] .uhuu\\:align-top,[data-uhuu-portal] .uhuu\\:align-top{vertical-align:top}[data-uhuu-interactive] .uhuu\\:font-mono,[data-uhuu-portal] .uhuu\\:font-mono{font-family:var(--uhuu-font-mono)}[data-uhuu-interactive] .uhuu\\:text-base,[data-uhuu-portal] .uhuu\\:text-base{font-size:var(--uhuu-text-base);line-height:var(--tw-leading,var(--uhuu-text-base--line-height))}[data-uhuu-interactive] .uhuu\\:text-lg,[data-uhuu-portal] .uhuu\\:text-lg{font-size:var(--uhuu-text-lg);line-height:var(--tw-leading,var(--uhuu-text-lg--line-height))}[data-uhuu-interactive] .uhuu\\:text-sm,[data-uhuu-portal] .uhuu\\:text-sm{font-size:var(--uhuu-text-sm);line-height:var(--tw-leading,var(--uhuu-text-sm--line-height))}[data-uhuu-interactive] .uhuu\\:text-xs,[data-uhuu-portal] .uhuu\\:text-xs{font-size:var(--uhuu-text-xs);line-height:var(--tw-leading,var(--uhuu-text-xs--line-height))}[data-uhuu-interactive] .uhuu\\:text-xs\\!,[data-uhuu-portal] .uhuu\\:text-xs\\!{font-size:var(--uhuu-text-xs)!important;line-height:var(--tw-leading,var(--uhuu-text-xs--line-height))!important}[data-uhuu-interactive] .uhuu\\:text-\\[10px\\],[data-uhuu-portal] .uhuu\\:text-\\[10px\\]{font-size:10px}[data-uhuu-interactive] .uhuu\\:leading-none,[data-uhuu-portal] .uhuu\\:leading-none{--tw-leading:1;line-height:1}[data-uhuu-interactive] .uhuu\\:leading-tight,[data-uhuu-portal] .uhuu\\:leading-tight{--tw-leading:var(--uhuu-leading-tight);line-height:var(--uhuu-leading-tight)}[data-uhuu-interactive] .uhuu\\:font-medium,[data-uhuu-portal] .uhuu\\:font-medium{--tw-font-weight:var(--uhuu-font-weight-medium);font-weight:var(--uhuu-font-weight-medium)}[data-uhuu-interactive] .uhuu\\:font-normal,[data-uhuu-portal] .uhuu\\:font-normal{--tw-font-weight:var(--uhuu-font-weight-normal);font-weight:var(--uhuu-font-weight-normal)}[data-uhuu-interactive] .uhuu\\:font-semibold,[data-uhuu-portal] .uhuu\\:font-semibold{--tw-font-weight:var(--uhuu-font-weight-semibold);font-weight:var(--uhuu-font-weight-semibold)}[data-uhuu-interactive] .uhuu\\:tracking-wide,[data-uhuu-portal] .uhuu\\:tracking-wide{--tw-tracking:var(--uhuu-tracking-wide);letter-spacing:var(--uhuu-tracking-wide)}[data-uhuu-interactive] .uhuu\\:tracking-widest,[data-uhuu-portal] .uhuu\\:tracking-widest{--tw-tracking:var(--uhuu-tracking-widest);letter-spacing:var(--uhuu-tracking-widest)}[data-uhuu-interactive] .uhuu\\:break-all,[data-uhuu-portal] .uhuu\\:break-all{word-break:break-all}[data-uhuu-interactive] .uhuu\\:whitespace-nowrap,[data-uhuu-portal] .uhuu\\:whitespace-nowrap{white-space:nowrap}[data-uhuu-interactive] .uhuu\\:text-\\(--uhuu-shell-on-inverse\\),[data-uhuu-portal] .uhuu\\:text-\\(--uhuu-shell-on-inverse\\){color:var(--uhuu-shell-on-inverse)}[data-uhuu-interactive] .uhuu\\:text-blue-600,[data-uhuu-portal] .uhuu\\:text-blue-600{color:var(--uhuu-color-blue-600)}[data-uhuu-interactive] .uhuu\\:text-emerald-600,[data-uhuu-portal] .uhuu\\:text-emerald-600{color:var(--uhuu-color-emerald-600)}[data-uhuu-interactive] .uhuu\\:text-gray-400,[data-uhuu-portal] .uhuu\\:text-gray-400{color:var(--uhuu-color-gray-400)}[data-uhuu-interactive] .uhuu\\:text-gray-500,[data-uhuu-portal] .uhuu\\:text-gray-500{color:var(--uhuu-color-gray-500)}[data-uhuu-interactive] .uhuu\\:text-gray-600,[data-uhuu-portal] .uhuu\\:text-gray-600{color:var(--uhuu-color-gray-600)}[data-uhuu-interactive] .uhuu\\:text-gray-700,[data-uhuu-portal] .uhuu\\:text-gray-700{color:var(--uhuu-color-gray-700)}[data-uhuu-interactive] .uhuu\\:text-gray-800,[data-uhuu-portal] .uhuu\\:text-gray-800{color:var(--uhuu-color-gray-800)}[data-uhuu-interactive] .uhuu\\:text-gray-900,[data-uhuu-portal] .uhuu\\:text-gray-900{color:var(--uhuu-color-gray-900)}[data-uhuu-interactive] .uhuu\\:text-red-600,[data-uhuu-portal] .uhuu\\:text-red-600{color:var(--uhuu-color-red-600)}[data-uhuu-interactive] .uhuu\\:text-white,[data-uhuu-portal] .uhuu\\:text-white{color:var(--uhuu-color-white)}[data-uhuu-interactive] .uhuu\\:uppercase,[data-uhuu-portal] .uhuu\\:uppercase{text-transform:uppercase}[data-uhuu-interactive] .uhuu\\:tabular-nums,[data-uhuu-portal] .uhuu\\:tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}[data-uhuu-interactive] .uhuu\\:opacity-0,[data-uhuu-portal] .uhuu\\:opacity-0{opacity:0}[data-uhuu-interactive] .uhuu\\:opacity-50,[data-uhuu-portal] .uhuu\\:opacity-50{opacity:.5}[data-uhuu-interactive] .uhuu\\:opacity-60,[data-uhuu-portal] .uhuu\\:opacity-60{opacity:.6}[data-uhuu-interactive] .uhuu\\:opacity-70,[data-uhuu-portal] .uhuu\\:opacity-70{opacity:.7}[data-uhuu-interactive] .uhuu\\:opacity-75,[data-uhuu-portal] .uhuu\\:opacity-75{opacity:.75}[data-uhuu-interactive] .uhuu\\:shadow,[data-uhuu-portal] .uhuu\\:shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px 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)}[data-uhuu-interactive] .uhuu\\:shadow-2xl,[data-uhuu-portal] .uhuu\\:shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}[data-uhuu-interactive] .uhuu\\:shadow-lg,[data-uhuu-portal] .uhuu\\: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)}[data-uhuu-interactive] .uhuu\\:shadow-md,[data-uhuu-portal] .uhuu\\:shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px 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)}[data-uhuu-interactive] .uhuu\\:shadow-sm,[data-uhuu-portal] .uhuu\\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px 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)}[data-uhuu-interactive] .uhuu\\:shadow-xl,[data-uhuu-portal] .uhuu\\:shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px 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)}[data-uhuu-interactive] .uhuu\\:ring-0,[data-uhuu-portal] .uhuu\\:ring-0{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}[data-uhuu-interactive] .uhuu\\:ring-offset-\\(--uhuu-shell-surface\\),[data-uhuu-portal] .uhuu\\:ring-offset-\\(--uhuu-shell-surface\\){--tw-ring-offset-color:var(--uhuu-shell-surface)}[data-uhuu-interactive] .uhuu\\:outline,[data-uhuu-portal] .uhuu\\:outline{outline-style:var(--tw-outline-style);outline-width:1px}[data-uhuu-interactive] .uhuu\\:outline-2,[data-uhuu-portal] .uhuu\\:outline-2{outline-style:var(--tw-outline-style);outline-width:2px}[data-uhuu-interactive] .uhuu\\:outline-offset-2,[data-uhuu-portal] .uhuu\\:outline-offset-2{outline-offset:2px}[data-uhuu-interactive] .uhuu\\:outline-blue-100,[data-uhuu-portal] .uhuu\\:outline-blue-100{outline-color:var(--uhuu-color-blue-100)}[data-uhuu-interactive] .uhuu\\:drop-shadow-\\[0_1px_2px_rgba\\(0\\,0\\,0\\,0\\.8\\)\\],[data-uhuu-portal] .uhuu\\:drop-shadow-\\[0_1px_2px_rgba\\(0\\,0\\,0\\,0\\.8\\)\\]{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#000c));--tw-drop-shadow:var(--tw-drop-shadow-size);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,)}[data-uhuu-interactive] .uhuu\\:backdrop-blur-\\[1px\\],[data-uhuu-portal] .uhuu\\:backdrop-blur-\\[1px\\]{--tw-backdrop-blur:blur(1px);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,)}[data-uhuu-interactive] .uhuu\\:backdrop-blur-md,[data-uhuu-portal] .uhuu\\:backdrop-blur-md{--tw-backdrop-blur:blur(var(--uhuu-blur-md));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,)}[data-uhuu-interactive] .uhuu\\:backdrop-blur-sm,[data-uhuu-portal] .uhuu\\:backdrop-blur-sm{--tw-backdrop-blur:blur(var(--uhuu-blur-sm));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,)}[data-uhuu-interactive] .uhuu\\:transition,[data-uhuu-portal] .uhuu\\: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,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--uhuu-default-transition-timing-function));transition-duration:var(--tw-duration,var(--uhuu-default-transition-duration))}[data-uhuu-interactive] .uhuu\\:transition-all,[data-uhuu-portal] .uhuu\\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--uhuu-default-transition-timing-function));transition-duration:var(--tw-duration,var(--uhuu-default-transition-duration))}[data-uhuu-interactive] .uhuu\\:transition-colors,[data-uhuu-portal] .uhuu\\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--uhuu-default-transition-timing-function));transition-duration:var(--tw-duration,var(--uhuu-default-transition-duration))}[data-uhuu-interactive] .uhuu\\:transition-opacity,[data-uhuu-portal] .uhuu\\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--uhuu-default-transition-timing-function));transition-duration:var(--tw-duration,var(--uhuu-default-transition-duration))}[data-uhuu-interactive] .uhuu\\:transition-transform,[data-uhuu-portal] .uhuu\\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--uhuu-default-transition-timing-function));transition-duration:var(--tw-duration,var(--uhuu-default-transition-duration))}[data-uhuu-interactive] .uhuu\\:duration-150,[data-uhuu-portal] .uhuu\\:duration-150{--tw-duration:.15s;transition-duration:.15s}[data-uhuu-interactive] .uhuu\\:ease-in-out,[data-uhuu-portal] .uhuu\\:ease-in-out{--tw-ease:var(--uhuu-ease-in-out);transition-timing-function:var(--uhuu-ease-in-out)}[data-uhuu-interactive] .uhuu\\:outline-none,[data-uhuu-portal] .uhuu\\:outline-none{--tw-outline-style:none;outline-style:none}[data-uhuu-interactive] .uhuu\\:select-none,[data-uhuu-portal] .uhuu\\:select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}@media (hover:hover){[data-uhuu-interactive] .uhuu\\:group-hover\\:opacity-100:is(:where(.uhuu\\:group):hover *),[data-uhuu-portal] .uhuu\\:group-hover\\:opacity-100:is(:where(.uhuu\\:group):hover *){opacity:1}[data-uhuu-interactive] .uhuu\\:group-hover\\/drag-item\\:block:is(:where(.uhuu\\:group\\/drag-item):hover *),[data-uhuu-portal] .uhuu\\:group-hover\\/drag-item\\:block:is(:where(.uhuu\\:group\\/drag-item):hover *){display:block}[data-uhuu-interactive] .uhuu\\:group-hover\\/drag-item\\:flex:is(:where(.uhuu\\:group\\/drag-item):hover *),[data-uhuu-portal] .uhuu\\:group-hover\\/drag-item\\:flex:is(:where(.uhuu\\:group\\/drag-item):hover *){display:flex}[data-uhuu-interactive] .uhuu\\:group-hover\\/drag-item\\:hidden:is(:where(.uhuu\\:group\\/drag-item):hover *),[data-uhuu-portal] .uhuu\\:group-hover\\/drag-item\\:hidden:is(:where(.uhuu\\:group\\/drag-item):hover *){display:none}[data-uhuu-interactive] .uhuu\\:group-hover\\/drag-item\\:border-gray-300:is(:where(.uhuu\\:group\\/drag-item):hover *),[data-uhuu-portal] .uhuu\\:group-hover\\/drag-item\\:border-gray-300:is(:where(.uhuu\\:group\\/drag-item):hover *){border-color:var(--uhuu-color-gray-300)}[data-uhuu-interactive] .uhuu\\:group-hover\\/drag-item\\:shadow-md:is(:where(.uhuu\\:group\\/drag-item):hover *),[data-uhuu-portal] .uhuu\\:group-hover\\/drag-item\\:shadow-md:is(:where(.uhuu\\:group\\/drag-item):hover *){--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px 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)}[data-uhuu-interactive] .uhuu\\:group-hover\\/remove-btn\\:block:is(:where(.uhuu\\:group\\/remove-btn):hover *),[data-uhuu-portal] .uhuu\\:group-hover\\/remove-btn\\:block:is(:where(.uhuu\\:group\\/remove-btn):hover *){display:block}[data-uhuu-interactive] .uhuu\\:group-hover\\/remove-btn\\:hidden:is(:where(.uhuu\\:group\\/remove-btn):hover *),[data-uhuu-portal] .uhuu\\:group-hover\\/remove-btn\\:hidden:is(:where(.uhuu\\:group\\/remove-btn):hover *){display:none}}[data-uhuu-interactive] .uhuu\\:peer-disabled\\:cursor-not-allowed:is(:where(.uhuu\\:peer):disabled~*),[data-uhuu-portal] .uhuu\\:peer-disabled\\:cursor-not-allowed:is(:where(.uhuu\\:peer):disabled~*){cursor:not-allowed}[data-uhuu-interactive] .uhuu\\:peer-disabled\\:opacity-70:is(:where(.uhuu\\:peer):disabled~*),[data-uhuu-portal] .uhuu\\:peer-disabled\\:opacity-70:is(:where(.uhuu\\:peer):disabled~*){opacity:.7}[data-uhuu-interactive] .uhuu\\:placeholder\\:text-gray-400::-moz-placeholder,[data-uhuu-portal] .uhuu\\:placeholder\\:text-gray-400::-moz-placeholder{color:var(--uhuu-color-gray-400)}[data-uhuu-interactive] .uhuu\\:placeholder\\:text-gray-400::placeholder,[data-uhuu-portal] .uhuu\\:placeholder\\:text-gray-400::placeholder{color:var(--uhuu-color-gray-400)}[data-uhuu-interactive] .uhuu\\:focus-within\\:border-gray-400:focus-within,[data-uhuu-portal] .uhuu\\:focus-within\\:border-gray-400:focus-within{border-color:var(--uhuu-color-gray-400)}[data-uhuu-interactive] .uhuu\\:focus-within\\:ring-2:focus-within,[data-uhuu-portal] .uhuu\\:focus-within\\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}[data-uhuu-interactive] .uhuu\\:focus-within\\:ring-gray-200:focus-within,[data-uhuu-portal] .uhuu\\:focus-within\\:ring-gray-200:focus-within{--tw-ring-color:var(--uhuu-color-gray-200)}@media (hover:hover){[data-uhuu-interactive] .uhuu\\:hover\\:scale-105:hover,[data-uhuu-portal] .uhuu\\:hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}[data-uhuu-interactive] .uhuu\\:hover\\:border-\\(--uhuu-thumbnail-border-strong\\):hover,[data-uhuu-portal] .uhuu\\:hover\\:border-\\(--uhuu-thumbnail-border-strong\\):hover{border-color:var(--uhuu-thumbnail-border-strong)}[data-uhuu-interactive] .uhuu\\:hover\\:border-gray-200:hover,[data-uhuu-portal] .uhuu\\:hover\\:border-gray-200:hover{border-color:var(--uhuu-color-gray-200)}[data-uhuu-interactive] .uhuu\\:hover\\:border-gray-400:hover,[data-uhuu-portal] .uhuu\\:hover\\:border-gray-400:hover{border-color:var(--uhuu-color-gray-400)}[data-uhuu-interactive] .uhuu\\:hover\\:bg-\\(--uhuu-shell-surface\\):hover,[data-uhuu-portal] .uhuu\\:hover\\:bg-\\(--uhuu-shell-surface\\):hover{background-color:var(--uhuu-shell-surface)}[data-uhuu-interactive] .uhuu\\:hover\\:bg-gray-50:hover,[data-uhuu-portal] .uhuu\\:hover\\:bg-gray-50:hover{background-color:var(--uhuu-color-gray-50)}[data-uhuu-interactive] .uhuu\\:hover\\:bg-gray-100:hover,[data-uhuu-portal] .uhuu\\:hover\\:bg-gray-100:hover,[data-uhuu-interactive] .uhuu\\:hover\\:bg-gray-100\\/80:hover,[data-uhuu-portal] .uhuu\\:hover\\:bg-gray-100\\/80:hover{background-color:var(--uhuu-color-gray-100)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:hover\\:bg-gray-100\\/80:hover,[data-uhuu-portal] .uhuu\\:hover\\:bg-gray-100\\/80:hover{background-color:color-mix(in oklab, var(--uhuu-color-gray-100) 80%, transparent)}}[data-uhuu-interactive] .uhuu\\:hover\\:bg-gray-200:hover,[data-uhuu-portal] .uhuu\\:hover\\:bg-gray-200:hover{background-color:var(--uhuu-color-gray-200)}[data-uhuu-interactive] .uhuu\\:hover\\:bg-gray-800:hover,[data-uhuu-portal] .uhuu\\:hover\\:bg-gray-800:hover{background-color:var(--uhuu-color-gray-800)}[data-uhuu-interactive] .uhuu\\:hover\\:bg-white:hover,[data-uhuu-portal] .uhuu\\:hover\\:bg-white:hover{background-color:var(--uhuu-color-white)}[data-uhuu-interactive] .uhuu\\:hover\\:text-gray-600:hover,[data-uhuu-portal] .uhuu\\:hover\\:text-gray-600:hover{color:var(--uhuu-color-gray-600)}[data-uhuu-interactive] .uhuu\\:hover\\:text-gray-900:hover,[data-uhuu-portal] .uhuu\\:hover\\:text-gray-900:hover{color:var(--uhuu-color-gray-900)}[data-uhuu-interactive] .uhuu\\:hover\\:opacity-100:hover,[data-uhuu-portal] .uhuu\\:hover\\:opacity-100:hover{opacity:1}[data-uhuu-interactive] .uhuu\\:hover\\:shadow-lg:hover,[data-uhuu-portal] .uhuu\\:hover\\:shadow-lg:hover{--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)}}[data-uhuu-interactive] .uhuu\\:focus\\:w-40:focus,[data-uhuu-portal] .uhuu\\:focus\\:w-40:focus{width:calc(var(--uhuu-spacing) * 40)}[data-uhuu-interactive] .uhuu\\:focus\\:border-gray-400:focus,[data-uhuu-portal] .uhuu\\:focus\\:border-gray-400:focus{border-color:var(--uhuu-color-gray-400)}[data-uhuu-interactive] .uhuu\\:focus\\:border-transparent:focus,[data-uhuu-portal] .uhuu\\:focus\\:border-transparent:focus{border-color:#0000}[data-uhuu-interactive] .uhuu\\:focus\\:bg-gray-100:focus,[data-uhuu-portal] .uhuu\\:focus\\:bg-gray-100:focus{background-color:var(--uhuu-color-gray-100)}[data-uhuu-interactive] .uhuu\\:focus\\:bg-red-50:focus,[data-uhuu-portal] .uhuu\\:focus\\:bg-red-50:focus{background-color:var(--uhuu-color-red-50)}[data-uhuu-interactive] .uhuu\\:focus\\:text-gray-900:focus,[data-uhuu-portal] .uhuu\\:focus\\:text-gray-900:focus{color:var(--uhuu-color-gray-900)}[data-uhuu-interactive] .uhuu\\:focus\\:text-red-700:focus,[data-uhuu-portal] .uhuu\\:focus\\:text-red-700:focus{color:var(--uhuu-color-red-700)}[data-uhuu-interactive] .uhuu\\:focus\\:ring-2:focus,[data-uhuu-portal] .uhuu\\:focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}[data-uhuu-interactive] .uhuu\\:focus\\:ring-blue-400\\/30:focus,[data-uhuu-portal] .uhuu\\:focus\\:ring-blue-400\\/30:focus{--tw-ring-color:var(--uhuu-color-blue-400)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:focus\\:ring-blue-400\\/30:focus,[data-uhuu-portal] .uhuu\\:focus\\:ring-blue-400\\/30:focus{--tw-ring-color:color-mix(in oklab, var(--uhuu-color-blue-400) 30%, transparent)}}[data-uhuu-interactive] .uhuu\\:focus\\:ring-blue-500:focus,[data-uhuu-portal] .uhuu\\:focus\\:ring-blue-500:focus{--tw-ring-color:var(--uhuu-color-blue-500)}[data-uhuu-interactive] .uhuu\\:focus\\:ring-gray-200:focus,[data-uhuu-portal] .uhuu\\:focus\\:ring-gray-200:focus{--tw-ring-color:var(--uhuu-color-gray-200)}[data-uhuu-interactive] .uhuu\\:focus\\:ring-gray-400:focus,[data-uhuu-portal] .uhuu\\:focus\\:ring-gray-400:focus{--tw-ring-color:var(--uhuu-color-gray-400)}[data-uhuu-interactive] .uhuu\\:focus\\:ring-offset-0:focus,[data-uhuu-portal] .uhuu\\:focus\\:ring-offset-0:focus{--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}[data-uhuu-interactive] .uhuu\\:focus\\:ring-offset-2:focus,[data-uhuu-portal] .uhuu\\:focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}[data-uhuu-interactive] .uhuu\\:focus\\:outline-none:focus,[data-uhuu-portal] .uhuu\\:focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}[data-uhuu-interactive] .uhuu\\:focus-visible\\:ring-2:focus-visible,[data-uhuu-portal] .uhuu\\:focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}[data-uhuu-interactive] .uhuu\\:focus-visible\\:ring-gray-400:focus-visible,[data-uhuu-portal] .uhuu\\:focus-visible\\:ring-gray-400:focus-visible{--tw-ring-color:var(--uhuu-color-gray-400)}[data-uhuu-interactive] .uhuu\\:focus-visible\\:ring-gray-900:focus-visible,[data-uhuu-portal] .uhuu\\:focus-visible\\:ring-gray-900:focus-visible{--tw-ring-color:var(--uhuu-color-gray-900)}[data-uhuu-interactive] .uhuu\\:focus-visible\\:ring-offset-2:focus-visible,[data-uhuu-portal] .uhuu\\:focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}[data-uhuu-interactive] .uhuu\\:focus-visible\\:ring-offset-\\(--uhuu-shell-surface\\):focus-visible,[data-uhuu-portal] .uhuu\\:focus-visible\\:ring-offset-\\(--uhuu-shell-surface\\):focus-visible{--tw-ring-offset-color:var(--uhuu-shell-surface)}[data-uhuu-interactive] .uhuu\\:focus-visible\\:outline-none:focus-visible,[data-uhuu-portal] .uhuu\\:focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}[data-uhuu-interactive] .uhuu\\:active\\:cursor-grabbing:active,[data-uhuu-portal] .uhuu\\:active\\:cursor-grabbing:active{cursor:grabbing}[data-uhuu-interactive] .uhuu\\:disabled\\:pointer-events-none:disabled,[data-uhuu-portal] .uhuu\\:disabled\\:pointer-events-none:disabled{pointer-events:none}[data-uhuu-interactive] .uhuu\\:disabled\\:cursor-not-allowed:disabled,[data-uhuu-portal] .uhuu\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}[data-uhuu-interactive] .uhuu\\:disabled\\:opacity-40:disabled,[data-uhuu-portal] .uhuu\\:disabled\\:opacity-40:disabled{opacity:.4}[data-uhuu-interactive] .uhuu\\:disabled\\:opacity-50:disabled,[data-uhuu-portal] .uhuu\\:disabled\\:opacity-50:disabled{opacity:.5}[data-uhuu-interactive] .uhuu\\:data-\\[disabled\\]\\:pointer-events-none[data-disabled],[data-uhuu-portal] .uhuu\\:data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}[data-uhuu-interactive] .uhuu\\:data-\\[disabled\\]\\:opacity-50[data-disabled],[data-uhuu-portal] .uhuu\\:data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}[data-uhuu-interactive] .uhuu\\:data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked],[data-uhuu-portal] .uhuu\\:data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x:calc(var(--uhuu-spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}[data-uhuu-interactive] .uhuu\\:data-\\[state\\=checked\\]\\:bg-\\(--uhuu-shell-on-inverse\\)[data-state=checked],[data-uhuu-portal] .uhuu\\:data-\\[state\\=checked\\]\\:bg-\\(--uhuu-shell-on-inverse\\)[data-state=checked]{background-color:var(--uhuu-shell-on-inverse)}[data-uhuu-interactive] .uhuu\\:data-\\[state\\=checked\\]\\:bg-gray-900[data-state=checked],[data-uhuu-portal] .uhuu\\:data-\\[state\\=checked\\]\\:bg-gray-900[data-state=checked]{background-color:var(--uhuu-color-gray-900)}[data-uhuu-interactive] .uhuu\\:data-\\[state\\=closed\\]\\:duration-300[data-state=closed],[data-uhuu-portal] .uhuu\\:data-\\[state\\=closed\\]\\:duration-300[data-state=closed]{--tw-duration:.3s;transition-duration:.3s}[data-uhuu-interactive] .uhuu\\:data-\\[state\\=open\\]\\:bg-gray-100[data-state=open],[data-uhuu-portal] .uhuu\\:data-\\[state\\=open\\]\\:bg-gray-100[data-state=open]{background-color:var(--uhuu-color-gray-100)}[data-uhuu-interactive] .uhuu\\:data-\\[state\\=open\\]\\:duration-500[data-state=open],[data-uhuu-portal] .uhuu\\:data-\\[state\\=open\\]\\:duration-500[data-state=open]{--tw-duration:.5s;transition-duration:.5s}[data-uhuu-interactive] .uhuu\\:data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked],[data-uhuu-portal] .uhuu\\:data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}[data-uhuu-interactive] .uhuu\\:data-\\[state\\=unchecked\\]\\:bg-gray-200[data-state=unchecked],[data-uhuu-portal] .uhuu\\:data-\\[state\\=unchecked\\]\\:bg-gray-200[data-state=unchecked]{background-color:var(--uhuu-color-gray-200)}@media (width>=40rem){[data-uhuu-interactive] .uhuu\\:sm\\:max-w-sm,[data-uhuu-portal] .uhuu\\:sm\\:max-w-sm{max-width:var(--uhuu-container-sm)}[data-uhuu-interactive] .uhuu\\:sm\\:flex-row,[data-uhuu-portal] .uhuu\\:sm\\:flex-row{flex-direction:row}[data-uhuu-interactive] .uhuu\\:sm\\:justify-end,[data-uhuu-portal] .uhuu\\:sm\\:justify-end{justify-content:flex-end}[data-uhuu-interactive] :where(.uhuu\\:sm\\:space-x-2>:not(:last-child)),[data-uhuu-portal] :where(.uhuu\\:sm\\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--uhuu-spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--uhuu-spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}[data-uhuu-interactive] .uhuu\\:sm\\:text-left,[data-uhuu-portal] .uhuu\\:sm\\:text-left{text-align:left}}@media print{.uhuu\\:print\\:transform-none{transform:none}}[data-uhuu-interactive] .uhuu\\:\\[\\&\\>button\\]\\:hidden>button,[data-uhuu-portal] .uhuu\\:\\[\\&\\>button\\]\\:hidden>button{display:none}.uhuu-page-overlay{pointer-events:none;color:var(--color-gray-600,oklch(44.6% .03 256.802));justify-content:space-between;align-items:center;font-size:7pt;display:flex;position:absolute;bottom:10mm;left:15mm;right:15mm}.uhuu-flow-page{flex-direction:column;width:100%;height:100%;display:flex}.uhuu-flow-page-area{flex:1;min-height:0}[data-uhuu-flow-area]:has([data-uhuu-flow-unplaceable]){overflow:clip}.uhuu-flow-document{width:100%}.uhuu-image-block{position:relative}.uhuu-image-block-fill{width:100%;height:100%}.uhuu-image-body{width:100%;height:100%;position:relative}.uhuu-image-img{-o-object-fit:cover;object-fit:cover;width:100%;height:100%}.uhuu-image-img:where(.object-cover){-o-object-fit:cover;object-fit:cover}.uhuu-image-img:where(.object-contain){-o-object-fit:contain;object-fit:contain}.uhuu-image-img:where(.object-fill){-o-object-fit:fill;object-fit:fill}.uhuu-image-img:where(.object-center){-o-object-position:center;object-position:center}.uhuu-image-img:where(.object-top){-o-object-position:top;object-position:top}.uhuu-image-img:where(.object-bottom){-o-object-position:bottom;object-position:bottom}.uhuu-image-img:where(.object-left){-o-object-position:left;object-position:left}.uhuu-image-img:where(.object-right){-o-object-position:right;object-position:right}.uhuu-image-img:where(.object-left-top){-o-object-position:left top;object-position:left top}.uhuu-image-img:where(.object-right-top){-o-object-position:right top;object-position:right top}.uhuu-image-img:where(.object-left-bottom){-o-object-position:left bottom;object-position:left bottom}.uhuu-image-img:where(.object-right-bottom){-o-object-position:right bottom;object-position:right bottom}.uhuu-image-overlay{z-index:10;pointer-events:none;position:absolute;inset:0}.uhuu-image-overlay-img{-o-object-fit:cover;object-fit:cover;width:100%;height:100%}.uhuu-image-img,.uhuu-image-overlay-img,:where(.uhuu-image-inner) .cover-image,:where(.uhuu-image-overlay)>svg{display:block}}[data-uhuu-interactive] [data-uhuu-editor],[data-uhuu-portal] [data-uhuu-editor],[data-uhuu-interactive] [data-uhuu-editor] [data-uhuu-paper],[data-uhuu-portal] [data-uhuu-editor] [data-uhuu-paper]{--uhuu-spacing:.25rem;--uhuu-font-sans:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--uhuu-default-font-family:var(--uhuu-font-sans);--uhuu-color-white:#fff;--uhuu-color-black:#000;--uhuu-color-red-50:oklch(97.1% .013 17.38);--uhuu-color-red-600:oklch(57.7% .245 27.325);--uhuu-color-red-700:oklch(50.5% .213 27.518);--uhuu-color-blue-50:oklch(97% .014 254.604);--uhuu-color-blue-100:oklch(93.2% .032 255.585);--uhuu-color-blue-200:oklch(88.2% .059 254.128);--uhuu-color-blue-300:oklch(80.9% .105 251.813);--uhuu-color-blue-400:oklch(70.7% .165 254.624);--uhuu-color-blue-500:oklch(62.3% .214 259.815);--uhuu-color-blue-600:oklch(54.6% .245 262.881);--uhuu-color-blue-700:oklch(48.8% .243 264.376);--uhuu-color-emerald-100:oklch(95% .052 163.051);--uhuu-color-emerald-600:oklch(59.6% .145 163.225);--uhuu-color-gray-50:oklch(98.5% .002 247.839);--uhuu-color-gray-100:oklch(96.7% .003 264.542);--uhuu-color-gray-200:oklch(92.8% .006 264.531);--uhuu-color-gray-300:oklch(87.2% .01 258.338);--uhuu-color-gray-400:oklch(70.7% .022 261.325);--uhuu-color-gray-500:oklch(55.1% .027 264.364);--uhuu-color-gray-600:oklch(44.6% .03 256.802);--uhuu-color-gray-700:oklch(37.3% .034 259.733);--uhuu-color-gray-800:oklch(27.8% .033 256.848);--uhuu-color-gray-900:oklch(21% .034 264.665);--uhuu-color-gray-950:oklch(13% .028 261.692);--uhuu-container-sm:24rem;--uhuu-container-md:28rem;--uhuu-text-xs:.75rem;--uhuu-text-xs--line-height:calc(1 / .75);--uhuu-text-sm:.875rem;--uhuu-text-sm--line-height:calc(1.25 / .875);--uhuu-text-base:1rem;--uhuu-text-base--line-height:calc(1.5 / 1);--uhuu-text-lg:1.125rem;--uhuu-text-lg--line-height:calc(1.75 / 1.125);--uhuu-font-weight-normal:400;--uhuu-font-weight-medium:500;--uhuu-font-weight-semibold:600;--uhuu-font-weight-bold:700;--uhuu-radius-sm:.25rem;--uhuu-radius-md:.375rem;--uhuu-radius-lg:.5rem;--uhuu-radius-xl:.75rem;--uhuu-shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--uhuu-shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--uhuu-shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--uhuu-shadow-xl:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--uhuu-shadow-2xl:0 25px 50px -12px #00000040;--uhuu-blur-sm:8px;--uhuu-blur-md:12px;--radius:.625rem;--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0);font-family:var(--uhuu-font-sans);box-sizing:border-box}[data-uhuu-interactive] [data-uhuu-editor] *,[data-uhuu-portal] [data-uhuu-editor] *,[data-uhuu-interactive] [data-uhuu-editor] :before,[data-uhuu-portal] [data-uhuu-editor] :before,[data-uhuu-interactive] [data-uhuu-editor] :after,[data-uhuu-portal] [data-uhuu-editor] :after{box-sizing:border-box}[data-uhuu-interactive] .uhuu-page-options-trigger,[data-uhuu-portal] .uhuu-page-options-trigger{height:calc(var(--uhuu-spacing) * 7);width:calc(var(--uhuu-spacing) * 7);justify-content:center;align-items:center;gap:var(--uhuu-spacing);border-radius:var(--uhuu-radius-lg);background-color:var(--uhuu-color-gray-100);padding-inline:var(--uhuu-spacing);padding-block:calc(var(--uhuu-spacing) * .5);color:var(--uhuu-color-gray-600);display:flex}@media (hover:hover){[data-uhuu-interactive] .uhuu-page-options-trigger:hover,[data-uhuu-portal] .uhuu-page-options-trigger:hover{background-color:var(--uhuu-color-gray-100)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu-page-options-trigger:hover,[data-uhuu-portal] .uhuu-page-options-trigger:hover{background-color:color-mix(in oklab, var(--uhuu-color-gray-100) 80%, transparent)}}[data-uhuu-interactive] .uhuu-page-options-trigger:hover,[data-uhuu-portal] .uhuu-page-options-trigger:hover{color:var(--uhuu-color-gray-800)}}[data-uhuu-interactive] .uhuu-page-number,[data-uhuu-portal] .uhuu-page-number{font-size:var(--uhuu-text-sm);line-height:var(--tw-leading,var(--uhuu-text-sm--line-height));color:var(--uhuu-color-gray-500)}[data-uhuu-interactive] .uhuu-page-order-grid-cols,[data-uhuu-portal] .uhuu-page-order-grid-cols{gap:calc(var(--uhuu-spacing) * 6);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}@media (width>=48rem){[data-uhuu-interactive] .uhuu-page-order-grid-cols,[data-uhuu-portal] .uhuu-page-order-grid-cols{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width>=64rem){[data-uhuu-interactive] .uhuu-page-order-grid-cols,[data-uhuu-portal] .uhuu-page-order-grid-cols{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width>=80rem){[data-uhuu-interactive] .uhuu-page-order-grid-cols,[data-uhuu-portal] .uhuu-page-order-grid-cols{grid-template-columns:repeat(6,minmax(0,1fr))}}[data-uhuu-interactive] .uhuu-page-drag-drop-grid-cols,[data-uhuu-portal] .uhuu-page-drag-drop-grid-cols{gap:calc(var(--uhuu-spacing) * 4);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}@media (width>=48rem){[data-uhuu-interactive] .uhuu-page-drag-drop-grid-cols,[data-uhuu-portal] .uhuu-page-drag-drop-grid-cols{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width>=64rem){[data-uhuu-interactive] .uhuu-page-drag-drop-grid-cols,[data-uhuu-portal] .uhuu-page-drag-drop-grid-cols{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width>=80rem){[data-uhuu-interactive] .uhuu-page-drag-drop-grid-cols,[data-uhuu-portal] .uhuu-page-drag-drop-grid-cols{grid-template-columns:repeat(6,minmax(0,1fr))}}@media (width>=96rem){[data-uhuu-interactive] .uhuu-page-drag-drop-grid-cols,[data-uhuu-portal] .uhuu-page-drag-drop-grid-cols{grid-template-columns:repeat(6,minmax(0,1fr))}}@media screen{body{background-color:var(--uhuu-color-neutral-50)}}@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-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{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-outline-style{syntax:"*";inherits:false;initial-value:solid}@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}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@layer base.uhuu-document{*,: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%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, 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]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration: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:where(:not(iframe)){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}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::-moz-placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}::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}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}[data-uhuu-reset=none]:not(#\\#),[data-uhuu-reset=none] :not(#\\#),[data-uhuu-reset=none]:not(#\\#):before,[data-uhuu-reset=none] :not(#\\#):before,[data-uhuu-reset=none]:not(#\\#):after,[data-uhuu-reset=none] :not(#\\#):after{all:revert-layer}}:root{--uhuu-shell-surface:#fff;--uhuu-shell-on-inverse:#fff;--uhuu-thumbnail-caption:#0006;--uhuu-thumbnail-border:oklch(92.8% .006 264.531);--uhuu-thumbnail-border-strong:oklch(87.2% .01 258.338)}@media screen{html[data-uhuu-appearance=dark] [data-uhuu-editor]{color-scheme:dark;color:oklch(98.5% 0 0);--uhuu-shell-surface:oklch(27.4% .006 286.033);--uhuu-shell-on-inverse:oklch(21% .006 285.885);--uhuu-thumbnail-caption:oklch(21% .006 285.885/.92);--uhuu-thumbnail-border:oklch(37% .013 285.805);--uhuu-thumbnail-border-strong:oklch(44.2% .017 285.786);--uhuu-color-gray-50:oklch(30% .006 286);--uhuu-color-gray-100:oklch(33% .007 286);--uhuu-color-gray-200:oklch(100% 0 0/.1);--uhuu-color-gray-300:oklch(100% 0 0/.15);--uhuu-color-gray-400:oklch(66% .015 286);--uhuu-color-gray-500:oklch(70.5% .015 286.067);--uhuu-color-gray-600:oklch(87.1% .006 286.286);--uhuu-color-gray-700:oklch(92% .004 286.32);--uhuu-color-gray-800:oklch(96.7% .001 286.375);--uhuu-color-gray-900:oklch(98.5% 0 0);--uhuu-color-gray-950:oklch(98.5% 0 0);--uhuu-color-blue-50:oklch(62.3% .214 259.815/.15);--uhuu-color-blue-100:oklch(62.3% .214 259.815/.25);--uhuu-color-blue-200:oklch(62.3% .214 259.815/.35);--uhuu-color-red-50:oklch(70.4% .191 22.216/.15);--uhuu-color-red-600:oklch(70.4% .191 22.216);--uhuu-color-red-700:oklch(80.8% .114 19.571);--uhuu-color-emerald-100:oklch(76.5% .177 163.223/.15);--uhuu-color-emerald-600:oklch(76.5% .177 163.223);--background:oklch(14.1% .005 285.823);--foreground:oklch(98.5% 0 0);--card:oklch(27.4% .006 286.033);--card-foreground:oklch(98.5% 0 0);--popover:oklch(27.4% .006 286.033);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(98.5% 0 0);--primary-foreground:oklch(21% .006 285.885);--secondary:oklch(33% .007 286);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(33% .007 286);--muted-foreground:oklch(70.5% .015 286.067);--accent:oklch(33% .007 286);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(70.4% .191 22.216);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.2% .016 285.938);--uhuu-shadow-sm:0 1px 3px 0 #0006, 0 1px 2px -1px #0006;--uhuu-shadow-md:0 4px 6px -1px #0006, 0 2px 4px -2px #0006;--uhuu-shadow-lg:0 10px 15px -3px #00000080, 0 4px 6px -4px #00000080}html[data-uhuu-appearance=dark] [data-uhuu-editor] [data-uhuu-paper]{color-scheme:light;color:initial;scrollbar-color:auto;--uhuu-shell-surface:#fff;--uhuu-shell-on-inverse:#fff}@layer base{html[data-uhuu-appearance=dark] [data-uhuu-editor],html[data-uhuu-appearance=dark] [data-uhuu-editor] :not([data-uhuu-paper],[data-uhuu-paper] *){border-color:oklch(100% 0 0/.1)}}html[data-uhuu-appearance=dark] body{background-color:oklch(24.5% .004 286)}html[data-uhuu-appearance=dark],html[data-uhuu-appearance=dark] .uhuu-zoom-pane{scrollbar-color:oklch(37% .013 285.805) transparent}html[data-uhuu-appearance=dark] [data-section-content]{scrollbar-color:auto}}:root{--uhuu-page-width:210mm;--uhuu-page-height:297mm;--uhuu-page-bleed:0mm;--uhuu-page-background:var(--background,#fff);--uhuu-outline-color:var(--outline-color,#d1d5db);--uhuu-sheet-width:calc(var(--uhuu-page-width) + 2 * var(--uhuu-page-bleed));--uhuu-sheet-height:calc(var(--uhuu-page-height) + 2 * var(--uhuu-page-bleed));--uhuu-spine-width:0mm;--uhuu-glue-width:0mm;--uhuu-paper-color:#fff}@page{size:var(--uhuu-sheet-width) var(--uhuu-sheet-height);margin:0}@media print{body>section[aria-live],body>next-route-announcer{display:none!important}}.uhuu-page-break-inside-avoid{page-break-inside:avoid;break-inside:avoid-page}.uhuu-page-break-after{page-break-after:always;break-inside:avoid-page;-moz-column-break-after:page;break-after:page}.uhuu-page-break-before{page-break-before:always;break-inside:avoid-page;-moz-column-break-before:page;break-before:page}html,body{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;-webkit-print-color-adjust:exact;print-color-adjust:exact}.uhuu-page-sheet{width:calc(var(--uhuu-page-width) + 2 * var(--uhuu-page-bleed));height:calc(var(--uhuu-page-height) + 2 * var(--uhuu-page-bleed));min-width:calc(var(--uhuu-page-width) + 2 * var(--uhuu-page-bleed));padding:var(--uhuu-page-bleed);background-color:var(--uhuu-page-background);box-sizing:border-box;break-inside:avoid-page;page-break-inside:avoid;margin-inline:auto;position:relative;overflow:hidden}.uhuu-page-sheet.uhuu-cover-spread{width:var(--uhuu-sheet-width);height:var(--uhuu-sheet-height);min-width:var(--uhuu-sheet-width);flex-direction:row;align-items:stretch;padding:0;display:flex}.uhuu-spread-panel{width:calc(var(--uhuu-page-width) + var(--uhuu-page-bleed));flex:none;height:100%;position:relative;overflow:hidden}.uhuu-cover-spread .uhuu-page-sheet--panel{box-shadow:none;outline:none;margin:0}.uhuu-spread-panel[data-side=right] .uhuu-page-sheet--panel{margin-left:calc(-1 * var(--uhuu-page-bleed))}.uhuu-spread-spine{width:var(--uhuu-spine-width);flex:none;height:100%;position:relative;overflow:hidden}.uhuu-spread-spine[data-blank=true]{background-color:var(--uhuu-paper-color)}.uhuu-glue-zone{width:var(--uhuu-glue-width);background-color:var(--uhuu-paper-color);pointer-events:none;z-index:2;position:absolute;top:0;bottom:0}.uhuu-glue-zone[data-side=left]{left:calc(var(--uhuu-page-bleed) + var(--uhuu-page-width) - var(--uhuu-glue-width))}.uhuu-glue-zone[data-side=right]{left:calc(var(--uhuu-page-bleed) + var(--uhuu-page-width) + var(--uhuu-spine-width))}@media print{.uhuu-screen-only{display:none!important}}@media screen{.uhuu-bleed-area{top:var(--uhuu-page-bleed);left:var(--uhuu-page-bleed);right:var(--uhuu-page-bleed);bottom:var(--uhuu-page-bleed);pointer-events:none;outline-style:var(--tw-outline-style);outline-width:1px;outline-color:var(--uhuu-outline-color);--tw-outline-style:dashed;outline-style:dashed;position:absolute}.uhuu-page-sheet{margin-bottom:calc(var(--spacing,.25rem) * 6);outline-style:var(--tw-outline-style);outline-width:1px;outline-color:var(--uhuu-outline-color);flex-shrink:0}.uhuu-spread-guide{pointer-events:none;outline-style:var(--tw-outline-style);outline-offset:calc(1px * -1);outline-width:1px;outline-color:var(--uhuu-outline-color);--tw-outline-style:dashed;background-image:repeating-linear-gradient(45deg,#0000001f 0 1px,#0000 1px 5px);outline-style:dashed;position:absolute;inset:0}.uhuu-spread-guide:after{content:attr(data-label);white-space:nowrap;letter-spacing:.04em;color:#6b7280;background:#ffffffd9;border-radius:2px;padding:1px 4px;font:500 7pt/1 ui-sans-serif,system-ui,sans-serif;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)rotate(-90deg)}.uhuu-pagination.horizontal_pages{justify-content:center;gap:calc(var(--spacing,.25rem) * 6);display:flex;overflow-x:auto;width:fit-content!important;min-width:fit-content!important}.uhuu-pagination.two_pages{width:calc(var(--uhuu-page-width) * 2 + 4 * var(--uhuu-page-bleed));flex-wrap:wrap;justify-content:center;margin:0 auto;display:flex}.uhuu-pagination.two_pages .uhuu-page-sheet{flex-shrink:0}.uhuu-pagination.two_pages .uhuu-page-sheet:first-child{margin-left:calc(var(--uhuu-page-width) + 2 * var(--uhuu-page-bleed))}.uhuu-pagination.two_pages .uhuu-page-sheet:nth-child(odd):not(:first-child){margin-right:0}.uhuu-pagination.two_pages .uhuu-page-sheet:nth-child(2n):not(:first-child){margin-left:0}}.uhuu-image-container{overflow:hidden;position:absolute!important}.uhuu-image-inner{width:100%;height:100%;position:relative;overflow:hidden}.uhuu-image-inner .cover-image{width:100%;height:100%;max-width:none!important;max-height:none!important}.uhuu-image-inner .cover-image.object-cover{-o-object-fit:cover;object-fit:cover}.uhuu-image-inner .cover-image.object-contain{-o-object-fit:contain;object-fit:contain}.uhuu-image-inner .cover-image.object-fill{-o-object-fit:fill;object-fit:fill}.uhuu-image-inner .cover-image.object-center{-o-object-position:center;object-position:center}.uhuu-image-inner .cover-image.object-top{-o-object-position:top;object-position:top}.uhuu-image-inner .cover-image.object-bottom{-o-object-position:bottom;object-position:bottom}.uhuu-image-inner .cover-image.object-left{-o-object-position:left;object-position:left}.uhuu-image-inner .cover-image.object-right{-o-object-position:right;object-position:right}.uhuu-image-inner .cover-image.object-left-top{-o-object-position:left top;object-position:left top}.uhuu-image-inner .cover-image.object-right-top{-o-object-position:right top;object-position:right top}.uhuu-image-inner .cover-image.object-left-bottom{-o-object-position:left bottom;object-position:left bottom}.uhuu-image-inner .cover-image.object-right-bottom{-o-object-position:right bottom;object-position:right bottom}@media screen{[data-uhuu-interactive] .uhuu-zoom-pane,[data-uhuu-portal] .uhuu-zoom-pane{overscroll-behavior:contain;max-height:100%;overflow:auto}[data-uhuu-interactive] .uhuu-zoom-pane-content,[data-uhuu-portal] .uhuu-zoom-pane-content{overflow-anchor:none;width:max-content;margin:auto;padding:0 24px 64px}}@media print{.uhuu-zoom-pane{height:auto;max-height:none;overflow:visible}.uhuu-zoom-pane-content{width:auto;padding:0}}@media screen{[data-uhuu-interactive] .group_two_pages,[data-uhuu-portal] .group_two_pages{flex-direction:column;align-items:center;gap:24px;width:max-content;margin:0 auto;display:flex}[data-uhuu-interactive] .group_two_pages>.two-pages-pair,[data-uhuu-portal] .group_two_pages>.two-pages-pair{width:var(--uhuu-group-pair-width,-moz-max-content);width:var(--uhuu-group-pair-width,max-content);grid-template-columns:1fr 1fr;gap:0;margin:0 auto;display:grid}[data-uhuu-interactive] .group_two_pages>.two-pages-pair>[class*=group\\/section],[data-uhuu-portal] .group_two_pages>.two-pages-pair>[class*=group\\/section]{flex-direction:column;flex-shrink:0;display:flex}[data-uhuu-interactive] .group_two_pages>.two-pages-pair--spread>[class*=group\\/section]:first-child,[data-uhuu-portal] .group_two_pages>.two-pages-pair--spread>[class*=group\\/section]:first-child{justify-self:end}[data-uhuu-interactive] .group_two_pages>.two-pages-pair--spread>[class*=group\\/section]:last-child,[data-uhuu-portal] .group_two_pages>.two-pages-pair--spread>[class*=group\\/section]:last-child{justify-self:start}[data-uhuu-interactive] .group_two_pages>.two-pages-pair--right>[class*=group\\/section],[data-uhuu-portal] .group_two_pages>.two-pages-pair--right>[class*=group\\/section]{grid-column:2;justify-self:start}[data-uhuu-interactive] .group_two_pages>.two-pages-pair--left>[class*=group\\/section],[data-uhuu-portal] .group_two_pages>.two-pages-pair--left>[class*=group\\/section]{grid-column:1;justify-self:end}}
2
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,[data-uhuu-interactive] :before,[data-uhuu-portal] :before,[data-uhuu-interactive] :after,[data-uhuu-portal] :after,::backdrop{--uhuu-tw-translate-x:0;--uhuu-tw-translate-y:0;--uhuu-tw-translate-z:0;--uhuu-tw-scale-x:1;--uhuu-tw-scale-y:1;--uhuu-tw-scale-z:1;--uhuu-tw-space-y-reverse:0;--uhuu-tw-border-style:solid;--uhuu-tw-leading:initial;--uhuu-tw-font-weight:initial;--uhuu-tw-tracking:initial;--uhuu-tw-ordinal:initial;--uhuu-tw-slashed-zero:initial;--uhuu-tw-numeric-figure:initial;--uhuu-tw-numeric-spacing:initial;--uhuu-tw-numeric-fraction:initial;--uhuu-tw-shadow:0 0 #0000;--uhuu-tw-shadow-color:initial;--uhuu-tw-shadow-alpha:100%;--uhuu-tw-inset-shadow:0 0 #0000;--uhuu-tw-inset-shadow-color:initial;--uhuu-tw-inset-shadow-alpha:100%;--uhuu-tw-ring-color:initial;--uhuu-tw-ring-shadow:0 0 #0000;--uhuu-tw-inset-ring-color:initial;--uhuu-tw-inset-ring-shadow:0 0 #0000;--uhuu-tw-ring-inset:initial;--uhuu-tw-ring-offset-width:0px;--uhuu-tw-ring-offset-color:#fff;--uhuu-tw-ring-offset-shadow:0 0 #0000;--uhuu-tw-outline-style:solid;--uhuu-tw-blur:initial;--uhuu-tw-brightness:initial;--uhuu-tw-contrast:initial;--uhuu-tw-grayscale:initial;--uhuu-tw-hue-rotate:initial;--uhuu-tw-invert:initial;--uhuu-tw-opacity:initial;--uhuu-tw-saturate:initial;--uhuu-tw-sepia:initial;--uhuu-tw-drop-shadow:initial;--uhuu-tw-drop-shadow-color:initial;--uhuu-tw-drop-shadow-alpha:100%;--uhuu-tw-drop-shadow-size:initial;--uhuu-tw-backdrop-blur:initial;--uhuu-tw-backdrop-brightness:initial;--uhuu-tw-backdrop-contrast:initial;--uhuu-tw-backdrop-grayscale:initial;--uhuu-tw-backdrop-hue-rotate:initial;--uhuu-tw-backdrop-invert:initial;--uhuu-tw-backdrop-opacity:initial;--uhuu-tw-backdrop-saturate:initial;--uhuu-tw-backdrop-sepia:initial;--uhuu-tw-duration:initial;--uhuu-tw-ease:initial;--uhuu-tw-space-x-reverse:0}*,:before,:after,::backdrop{--uhuu-tw-outline-style:solid}}}@layer theme{:root,[data-uhuu-interactive] :host,[data-uhuu-portal] :host{--uhuu-font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--uhuu-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--uhuu-color-red-50:oklch(97.1% .013 17.38);--uhuu-color-red-600:oklch(57.7% .245 27.325);--uhuu-color-red-700:oklch(50.5% .213 27.518);--uhuu-color-emerald-100:oklch(95% .052 163.051);--uhuu-color-emerald-600:oklch(59.6% .145 163.225);--uhuu-color-blue-50:oklch(97% .014 254.604);--uhuu-color-blue-100:oklch(93.2% .032 255.585);--uhuu-color-blue-400:oklch(70.7% .165 254.624);--uhuu-color-blue-500:oklch(62.3% .214 259.815);--uhuu-color-blue-600:oklch(54.6% .245 262.881);--uhuu-color-gray-50:oklch(98.5% .002 247.839);--uhuu-color-gray-100:oklch(96.7% .003 264.542);--uhuu-color-gray-200:oklch(92.8% .006 264.531);--uhuu-color-gray-300:oklch(87.2% .01 258.338);--uhuu-color-gray-400:oklch(70.7% .022 261.325);--uhuu-color-gray-500:oklch(55.1% .027 264.364);--uhuu-color-gray-600:oklch(44.6% .03 256.802);--uhuu-color-gray-700:oklch(37.3% .034 259.733);--uhuu-color-gray-800:oklch(27.8% .033 256.848);--uhuu-color-gray-900:oklch(21% .034 264.665);--uhuu-color-neutral-50:oklch(98.5% 0 none);--uhuu-color-black:#000;--uhuu-color-white:#fff;--uhuu-spacing:.25rem;--uhuu-container-xs:20rem;--uhuu-container-sm:24rem;--uhuu-container-md:28rem;--uhuu-text-xs:.75rem;--uhuu-text-xs--line-height:calc(1 / .75);--uhuu-text-sm:.875rem;--uhuu-text-sm--line-height:calc(1.25 / .875);--uhuu-text-base:1rem;--uhuu-text-base--line-height:calc(1.5 / 1);--uhuu-text-lg:1.125rem;--uhuu-text-lg--line-height:calc(1.75 / 1.125);--uhuu-font-weight-normal:400;--uhuu-font-weight-medium:500;--uhuu-font-weight-semibold:600;--uhuu-tracking-wide:.025em;--uhuu-tracking-widest:.1em;--uhuu-leading-tight:1.25;--uhuu-radius-sm:.25rem;--uhuu-radius-md:.375rem;--uhuu-radius-lg:.5rem;--uhuu-ease-in-out:cubic-bezier(.4, 0, .2, 1);--uhuu-blur-sm:8px;--uhuu-blur-md:12px;--uhuu-default-transition-duration:.15s;--uhuu-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}:root:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),:root:is([data-uhuu-chrome],[data-uhuu-chrome] *),:host:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),:host:is([data-uhuu-chrome],[data-uhuu-chrome] *),:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, 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;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base;@layer components{@media screen{[data-uhuu-interactive] [data-uhuu-flow-unplaceable=true],[data-uhuu-portal] [data-uhuu-flow-unplaceable=true]{outline-offset:-2px;outline:2px dashed #dc2626}[data-uhuu-interactive] :where([data-uhuu]:not(.skip-data-uhuu,.skip-data-uhuu *)),[data-uhuu-portal] :where([data-uhuu]:not(.skip-data-uhuu,.skip-data-uhuu *)){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 14V8a6 6 0 0 1 12 0 6 6 0 0 1-6 6z' fill='%23ff44cc' fill-opacity='.2'/%3E%3C/svg%3E")}[data-uhuu-interactive] :where([data-uhuu]:not(.skip-data-uhuu,.skip-data-uhuu *):hover),[data-uhuu-portal] :where([data-uhuu]:not(.skip-data-uhuu,.skip-data-uhuu *):hover){outline-offset:-1px;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 14V8a6 6 0 0 1 12 0 6 6 0 0 1-6 6z' fill='%23ff44cc'/%3E%3C/svg%3E");outline:2px dashed #f4c}[data-uhuu-interactive] :where([data-uhuu].uhuu-text-empty),[data-uhuu-portal] :where([data-uhuu].uhuu-text-empty),[data-uhuu-interactive] :where([data-uhuu][data-uhuu-type=text]:empty),[data-uhuu-portal] :where([data-uhuu][data-uhuu-type=text]:empty),[data-uhuu-interactive] :where([data-uhuu][data-uhuu-type=textarea]:empty),[data-uhuu-portal] :where([data-uhuu][data-uhuu-type=textarea]:empty),[data-uhuu-interactive] :where([data-uhuu][data-uhuu-type=markdown]:empty),[data-uhuu-portal] :where([data-uhuu][data-uhuu-type=markdown]:empty){background-color:#ff44cc14;min-width:3em;min-height:1lh}[data-uhuu-interactive] :where(span[data-uhuu].uhuu-text-empty),[data-uhuu-portal] :where(span[data-uhuu].uhuu-text-empty),[data-uhuu-interactive] :where(span[data-uhuu][data-uhuu-type=text]:empty),[data-uhuu-portal] :where(span[data-uhuu][data-uhuu-type=text]:empty),[data-uhuu-interactive] :where(span[data-uhuu][data-uhuu-type=textarea]:empty),[data-uhuu-portal] :where(span[data-uhuu][data-uhuu-type=textarea]:empty),[data-uhuu-interactive] :where(span[data-uhuu][data-uhuu-type=markdown]:empty),[data-uhuu-portal] :where(span[data-uhuu][data-uhuu-type=markdown]:empty){vertical-align:top;display:inline-block}}}@layer utilities{.uhuu-page-overlay{pointer-events:none;color:var(--color-gray-600,oklch(44.6% .03 256.802));justify-content:space-between;align-items:center;font-size:7pt;display:flex;position:absolute;bottom:10mm;left:15mm;right:15mm}.uhuu-flow-page{flex-direction:column;width:100%;height:100%;display:flex}.uhuu-flow-page-area{flex:1;min-height:0}[data-uhuu-flow-area]:has([data-uhuu-flow-unplaceable]){overflow:clip}.uhuu-flow-document{width:100%}.uhuu-image-block{position:relative}.uhuu-image-block-fill{width:100%;height:100%}.uhuu-image-body{width:100%;height:100%;position:relative}.uhuu-image-img{-o-object-fit:cover;object-fit:cover;width:100%;height:100%}.uhuu-image-img:where(.object-cover){-o-object-fit:cover;object-fit:cover}.uhuu-image-img:where(.object-contain){-o-object-fit:contain;object-fit:contain}.uhuu-image-img:where(.object-fill){-o-object-fit:fill;object-fit:fill}.uhuu-image-img:where(.object-center){-o-object-position:center;object-position:center}.uhuu-image-img:where(.object-top){-o-object-position:top;object-position:top}.uhuu-image-img:where(.object-bottom){-o-object-position:bottom;object-position:bottom}.uhuu-image-img:where(.object-left){-o-object-position:left;object-position:left}.uhuu-image-img:where(.object-right){-o-object-position:right;object-position:right}.uhuu-image-img:where(.object-left-top){-o-object-position:left top;object-position:left top}.uhuu-image-img:where(.object-right-top){-o-object-position:right top;object-position:right top}.uhuu-image-img:where(.object-left-bottom){-o-object-position:left bottom;object-position:left bottom}.uhuu-image-img:where(.object-right-bottom){-o-object-position:right bottom;object-position:right bottom}.uhuu-image-overlay{z-index:10;pointer-events:none;position:absolute;inset:0}.uhuu-image-overlay-img{-o-object-fit:cover;object-fit:cover;width:100%;height:100%}.uhuu-image-img,.uhuu-image-overlay-img,:where(.uhuu-image-inner) .cover-image,:where(.uhuu-image-overlay)>svg{display:block}}[data-uhuu-interactive] .uhuu\\:pointer-events-auto,[data-uhuu-portal] .uhuu\\:pointer-events-auto{pointer-events:auto}[data-uhuu-interactive] .uhuu\\:pointer-events-none,[data-uhuu-portal] .uhuu\\:pointer-events-none{pointer-events:none}[data-uhuu-interactive] .uhuu\\:sr-only,[data-uhuu-portal] .uhuu\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}[data-uhuu-interactive] .uhuu\\:absolute,[data-uhuu-portal] .uhuu\\:absolute{position:absolute}[data-uhuu-interactive] .uhuu\\:fixed,[data-uhuu-portal] .uhuu\\:fixed{position:fixed}[data-uhuu-interactive] .uhuu\\:relative,[data-uhuu-portal] .uhuu\\:relative{position:relative}[data-uhuu-interactive] .uhuu\\:inset-0,[data-uhuu-portal] .uhuu\\:inset-0{inset:0}[data-uhuu-interactive] .uhuu\\:inset-x-0,[data-uhuu-portal] .uhuu\\:inset-x-0{inset-inline:0}[data-uhuu-interactive] .uhuu\\:inset-y-0,[data-uhuu-portal] .uhuu\\:inset-y-0{inset-block:0}[data-uhuu-interactive] .uhuu\\:-top-3,[data-uhuu-portal] .uhuu\\:-top-3{top:calc(var(--uhuu-spacing) * -3)}[data-uhuu-interactive] .uhuu\\:top-0,[data-uhuu-portal] .uhuu\\:top-0{top:0}[data-uhuu-interactive] .uhuu\\:top-1\\/2,[data-uhuu-portal] .uhuu\\:top-1\\/2{top:50%}[data-uhuu-interactive] .uhuu\\:top-2,[data-uhuu-portal] .uhuu\\:top-2{top:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:top-3,[data-uhuu-portal] .uhuu\\:top-3{top:calc(var(--uhuu-spacing) * 3)}[data-uhuu-interactive] .uhuu\\:top-4,[data-uhuu-portal] .uhuu\\:top-4{top:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:top-\\[50\\%\\],[data-uhuu-portal] .uhuu\\:top-\\[50\\%\\]{top:50%}[data-uhuu-interactive] .uhuu\\:-right-3,[data-uhuu-portal] .uhuu\\:-right-3{right:calc(var(--uhuu-spacing) * -3)}[data-uhuu-interactive] .uhuu\\:right-0,[data-uhuu-portal] .uhuu\\:right-0{right:0}[data-uhuu-interactive] .uhuu\\:right-2,[data-uhuu-portal] .uhuu\\:right-2{right:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:right-4,[data-uhuu-portal] .uhuu\\:right-4{right:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:bottom-0,[data-uhuu-portal] .uhuu\\:bottom-0{bottom:0}[data-uhuu-interactive] .uhuu\\:bottom-2,[data-uhuu-portal] .uhuu\\:bottom-2{bottom:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:bottom-4,[data-uhuu-portal] .uhuu\\:bottom-4{bottom:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:left-0,[data-uhuu-portal] .uhuu\\:left-0{left:0}[data-uhuu-interactive] .uhuu\\:left-2,[data-uhuu-portal] .uhuu\\:left-2{left:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:left-3,[data-uhuu-portal] .uhuu\\:left-3{left:calc(var(--uhuu-spacing) * 3)}[data-uhuu-interactive] .uhuu\\:left-4,[data-uhuu-portal] .uhuu\\:left-4{left:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:left-\\[50\\%\\],[data-uhuu-portal] .uhuu\\:left-\\[50\\%\\]{left:50%}[data-uhuu-interactive] .uhuu\\:z-10,[data-uhuu-portal] .uhuu\\:z-10{z-index:10}[data-uhuu-interactive] .uhuu\\:z-20,[data-uhuu-portal] .uhuu\\:z-20{z-index:20}[data-uhuu-interactive] .uhuu\\:z-30,[data-uhuu-portal] .uhuu\\:z-30{z-index:30}[data-uhuu-interactive] .uhuu\\:z-50,[data-uhuu-portal] .uhuu\\:z-50{z-index:50}[data-uhuu-interactive] .uhuu\\:z-\\[2\\],[data-uhuu-portal] .uhuu\\:z-\\[2\\]{z-index:2}[data-uhuu-interactive] .uhuu\\:-mx-1,[data-uhuu-portal] .uhuu\\:-mx-1{margin-inline:calc(var(--uhuu-spacing) * -1)}[data-uhuu-interactive] .uhuu\\:mx-0\\.5,[data-uhuu-portal] .uhuu\\:mx-0\\.5{margin-inline:calc(var(--uhuu-spacing) * .5)}[data-uhuu-interactive] .uhuu\\:mx-4,[data-uhuu-portal] .uhuu\\:mx-4{margin-inline:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:mx-auto,[data-uhuu-portal] .uhuu\\:mx-auto{margin-inline:auto}[data-uhuu-interactive] .uhuu\\:my-1,[data-uhuu-portal] .uhuu\\:my-1{margin-block:var(--uhuu-spacing)}[data-uhuu-interactive] .uhuu\\:my-1\\.5,[data-uhuu-portal] .uhuu\\:my-1\\.5{margin-block:calc(var(--uhuu-spacing) * 1.5)}[data-uhuu-interactive] .uhuu\\:mt-0\\.5,[data-uhuu-portal] .uhuu\\:mt-0\\.5{margin-top:calc(var(--uhuu-spacing) * .5)}[data-uhuu-interactive] .uhuu\\:mt-1,[data-uhuu-portal] .uhuu\\:mt-1{margin-top:var(--uhuu-spacing)}[data-uhuu-interactive] .uhuu\\:mt-6,[data-uhuu-portal] .uhuu\\:mt-6{margin-top:calc(var(--uhuu-spacing) * 6)}[data-uhuu-interactive] .uhuu\\:mr-2,[data-uhuu-portal] .uhuu\\:mr-2{margin-right:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:mr-8,[data-uhuu-portal] .uhuu\\:mr-8{margin-right:calc(var(--uhuu-spacing) * 8)}[data-uhuu-interactive] .uhuu\\:mb-0\\.5,[data-uhuu-portal] .uhuu\\:mb-0\\.5{margin-bottom:calc(var(--uhuu-spacing) * .5)}[data-uhuu-interactive] .uhuu\\:mb-1,[data-uhuu-portal] .uhuu\\:mb-1{margin-bottom:var(--uhuu-spacing)}[data-uhuu-interactive] .uhuu\\:mb-2,[data-uhuu-portal] .uhuu\\:mb-2{margin-bottom:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:mb-3,[data-uhuu-portal] .uhuu\\:mb-3{margin-bottom:calc(var(--uhuu-spacing) * 3)}[data-uhuu-interactive] .uhuu\\:mb-4,[data-uhuu-portal] .uhuu\\:mb-4{margin-bottom:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:mb-5,[data-uhuu-portal] .uhuu\\:mb-5{margin-bottom:calc(var(--uhuu-spacing) * 5)}[data-uhuu-interactive] .uhuu\\:mb-6,[data-uhuu-portal] .uhuu\\:mb-6{margin-bottom:calc(var(--uhuu-spacing) * 6)}[data-uhuu-interactive] .uhuu\\:ml-1,[data-uhuu-portal] .uhuu\\:ml-1{margin-left:var(--uhuu-spacing)}[data-uhuu-interactive] .uhuu\\:ml-auto,[data-uhuu-portal] .uhuu\\:ml-auto{margin-left:auto}[data-uhuu-interactive] .uhuu\\:block,[data-uhuu-portal] .uhuu\\:block{display:block}[data-uhuu-interactive] .uhuu\\:flex,[data-uhuu-portal] .uhuu\\:flex{display:flex}[data-uhuu-interactive] .uhuu\\:hidden,[data-uhuu-portal] .uhuu\\:hidden{display:none}[data-uhuu-interactive] .uhuu\\:inline-block,[data-uhuu-portal] .uhuu\\:inline-block{display:inline-block}[data-uhuu-interactive] .uhuu\\:inline-flex,[data-uhuu-portal] .uhuu\\:inline-flex{display:inline-flex}[data-uhuu-interactive] .uhuu\\:size-3,[data-uhuu-portal] .uhuu\\:size-3{width:calc(var(--uhuu-spacing) * 3);height:calc(var(--uhuu-spacing) * 3)}[data-uhuu-interactive] .uhuu\\:size-3\\.5,[data-uhuu-portal] .uhuu\\:size-3\\.5{width:calc(var(--uhuu-spacing) * 3.5);height:calc(var(--uhuu-spacing) * 3.5)}[data-uhuu-interactive] .uhuu\\:size-4,[data-uhuu-portal] .uhuu\\:size-4{width:calc(var(--uhuu-spacing) * 4);height:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:h-1\\.5,[data-uhuu-portal] .uhuu\\:h-1\\.5{height:calc(var(--uhuu-spacing) * 1.5)}[data-uhuu-interactive] .uhuu\\:h-3,[data-uhuu-portal] .uhuu\\:h-3{height:calc(var(--uhuu-spacing) * 3)}[data-uhuu-interactive] .uhuu\\:h-3\\.5,[data-uhuu-portal] .uhuu\\:h-3\\.5{height:calc(var(--uhuu-spacing) * 3.5)}[data-uhuu-interactive] .uhuu\\:h-4,[data-uhuu-portal] .uhuu\\:h-4{height:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:h-5,[data-uhuu-portal] .uhuu\\:h-5{height:calc(var(--uhuu-spacing) * 5)}[data-uhuu-interactive] .uhuu\\:h-6,[data-uhuu-portal] .uhuu\\:h-6{height:calc(var(--uhuu-spacing) * 6)}[data-uhuu-interactive] .uhuu\\:h-7,[data-uhuu-portal] .uhuu\\:h-7{height:calc(var(--uhuu-spacing) * 7)}[data-uhuu-interactive] .uhuu\\:h-8,[data-uhuu-portal] .uhuu\\:h-8{height:calc(var(--uhuu-spacing) * 8)}[data-uhuu-interactive] .uhuu\\:h-9,[data-uhuu-portal] .uhuu\\:h-9{height:calc(var(--uhuu-spacing) * 9)}[data-uhuu-interactive] .uhuu\\:h-10,[data-uhuu-portal] .uhuu\\:h-10{height:calc(var(--uhuu-spacing) * 10)}[data-uhuu-interactive] .uhuu\\:h-11,[data-uhuu-portal] .uhuu\\:h-11{height:calc(var(--uhuu-spacing) * 11)}[data-uhuu-interactive] .uhuu\\:h-12,[data-uhuu-portal] .uhuu\\:h-12{height:calc(var(--uhuu-spacing) * 12)}[data-uhuu-interactive] .uhuu\\:h-16,[data-uhuu-portal] .uhuu\\:h-16{height:calc(var(--uhuu-spacing) * 16)}[data-uhuu-interactive] .uhuu\\:h-\\[90vh\\],[data-uhuu-portal] .uhuu\\:h-\\[90vh\\]{height:90vh}[data-uhuu-interactive] .uhuu\\:h-full,[data-uhuu-portal] .uhuu\\:h-full{height:100%}[data-uhuu-interactive] .uhuu\\:h-px,[data-uhuu-portal] .uhuu\\:h-px{height:1px}[data-uhuu-interactive] .uhuu\\:min-h-0,[data-uhuu-portal] .uhuu\\:min-h-0{min-height:0}[data-uhuu-interactive] .uhuu\\:w-3,[data-uhuu-portal] .uhuu\\:w-3{width:calc(var(--uhuu-spacing) * 3)}[data-uhuu-interactive] .uhuu\\:w-3\\.5,[data-uhuu-portal] .uhuu\\:w-3\\.5{width:calc(var(--uhuu-spacing) * 3.5)}[data-uhuu-interactive] .uhuu\\:w-3\\/4,[data-uhuu-portal] .uhuu\\:w-3\\/4{width:75%}[data-uhuu-interactive] .uhuu\\:w-4,[data-uhuu-portal] .uhuu\\:w-4{width:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:w-6,[data-uhuu-portal] .uhuu\\:w-6{width:calc(var(--uhuu-spacing) * 6)}[data-uhuu-interactive] .uhuu\\:w-7,[data-uhuu-portal] .uhuu\\:w-7{width:calc(var(--uhuu-spacing) * 7)}[data-uhuu-interactive] .uhuu\\:w-8,[data-uhuu-portal] .uhuu\\:w-8{width:calc(var(--uhuu-spacing) * 8)}[data-uhuu-interactive] .uhuu\\:w-9,[data-uhuu-portal] .uhuu\\:w-9{width:calc(var(--uhuu-spacing) * 9)}[data-uhuu-interactive] .uhuu\\:w-10,[data-uhuu-portal] .uhuu\\:w-10{width:calc(var(--uhuu-spacing) * 10)}[data-uhuu-interactive] .uhuu\\:w-12,[data-uhuu-portal] .uhuu\\:w-12{width:calc(var(--uhuu-spacing) * 12)}[data-uhuu-interactive] .uhuu\\:w-16,[data-uhuu-portal] .uhuu\\:w-16{width:calc(var(--uhuu-spacing) * 16)}[data-uhuu-interactive] .uhuu\\:w-20,[data-uhuu-portal] .uhuu\\:w-20{width:calc(var(--uhuu-spacing) * 20)}[data-uhuu-interactive] .uhuu\\:w-24,[data-uhuu-portal] .uhuu\\:w-24{width:calc(var(--uhuu-spacing) * 24)}[data-uhuu-interactive] .uhuu\\:w-40,[data-uhuu-portal] .uhuu\\:w-40{width:calc(var(--uhuu-spacing) * 40)}[data-uhuu-interactive] .uhuu\\:w-48,[data-uhuu-portal] .uhuu\\:w-48{width:calc(var(--uhuu-spacing) * 48)}[data-uhuu-interactive] .uhuu\\:w-52,[data-uhuu-portal] .uhuu\\:w-52{width:calc(var(--uhuu-spacing) * 52)}[data-uhuu-interactive] .uhuu\\:w-full,[data-uhuu-portal] .uhuu\\:w-full{width:100%}[data-uhuu-interactive] .uhuu\\:w-px,[data-uhuu-portal] .uhuu\\:w-px{width:1px}[data-uhuu-interactive] .uhuu\\:max-w-\\[110px\\],[data-uhuu-portal] .uhuu\\:max-w-\\[110px\\]{max-width:110px}[data-uhuu-interactive] .uhuu\\:max-w-\\[120px\\],[data-uhuu-portal] .uhuu\\:max-w-\\[120px\\]{max-width:120px}[data-uhuu-interactive] .uhuu\\:max-w-\\[140px\\],[data-uhuu-portal] .uhuu\\:max-w-\\[140px\\]{max-width:140px}[data-uhuu-interactive] .uhuu\\:max-w-md,[data-uhuu-portal] .uhuu\\:max-w-md{max-width:var(--uhuu-container-md)}[data-uhuu-interactive] .uhuu\\:max-w-none,[data-uhuu-portal] .uhuu\\:max-w-none{max-width:none}[data-uhuu-interactive] .uhuu\\:max-w-sm,[data-uhuu-portal] .uhuu\\:max-w-sm{max-width:var(--uhuu-container-sm)}[data-uhuu-interactive] .uhuu\\:max-w-xs,[data-uhuu-portal] .uhuu\\:max-w-xs{max-width:var(--uhuu-container-xs)}[data-uhuu-interactive] .uhuu\\:min-w-0,[data-uhuu-portal] .uhuu\\:min-w-0{min-width:0}[data-uhuu-interactive] .uhuu\\:min-w-44,[data-uhuu-portal] .uhuu\\:min-w-44{min-width:calc(var(--uhuu-spacing) * 44)}[data-uhuu-interactive] .uhuu\\:min-w-48,[data-uhuu-portal] .uhuu\\:min-w-48{min-width:calc(var(--uhuu-spacing) * 48)}[data-uhuu-interactive] .uhuu\\:min-w-\\[1rem\\],[data-uhuu-portal] .uhuu\\:min-w-\\[1rem\\]{min-width:1rem}[data-uhuu-interactive] .uhuu\\:min-w-\\[8rem\\],[data-uhuu-portal] .uhuu\\:min-w-\\[8rem\\]{min-width:8rem}[data-uhuu-interactive] .uhuu\\:min-w-\\[24px\\],[data-uhuu-portal] .uhuu\\:min-w-\\[24px\\]{min-width:24px}[data-uhuu-interactive] .uhuu\\:min-w-\\[180px\\],[data-uhuu-portal] .uhuu\\:min-w-\\[180px\\]{min-width:180px}[data-uhuu-interactive] .uhuu\\:min-w-\\[200px\\],[data-uhuu-portal] .uhuu\\:min-w-\\[200px\\]{min-width:200px}[data-uhuu-interactive] .uhuu\\:flex-1,[data-uhuu-portal] .uhuu\\:flex-1{flex:1}[data-uhuu-interactive] .uhuu\\:shrink-0,[data-uhuu-portal] .uhuu\\:shrink-0{flex-shrink:0}[data-uhuu-interactive] .uhuu\\:shrink-0\\!,[data-uhuu-portal] .uhuu\\:shrink-0\\!{flex-shrink:0!important}[data-uhuu-interactive] .uhuu\\:grow,[data-uhuu-portal] .uhuu\\:grow{flex-grow:1}[data-uhuu-interactive] .uhuu\\:translate-x-\\[-50\\%\\],[data-uhuu-portal] .uhuu\\:translate-x-\\[-50\\%\\]{--uhuu-tw-translate-x:-50%;translate:var(--uhuu-tw-translate-x) var(--uhuu-tw-translate-y)}[data-uhuu-interactive] .uhuu\\:-translate-y-1\\/2,[data-uhuu-portal] .uhuu\\:-translate-y-1\\/2{--uhuu-tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--uhuu-tw-translate-x) var(--uhuu-tw-translate-y)}[data-uhuu-interactive] .uhuu\\:translate-y-\\[-50\\%\\],[data-uhuu-portal] .uhuu\\:translate-y-\\[-50\\%\\]{--uhuu-tw-translate-y:-50%;translate:var(--uhuu-tw-translate-x) var(--uhuu-tw-translate-y)}[data-uhuu-interactive] .uhuu\\:scale-105,[data-uhuu-portal] .uhuu\\:scale-105{--uhuu-tw-scale-x:105%;--uhuu-tw-scale-y:105%;--uhuu-tw-scale-z:105%;scale:var(--uhuu-tw-scale-x) var(--uhuu-tw-scale-y)}[data-uhuu-interactive] .uhuu\\:scale-110,[data-uhuu-portal] .uhuu\\:scale-110{--uhuu-tw-scale-x:110%;--uhuu-tw-scale-y:110%;--uhuu-tw-scale-z:110%;scale:var(--uhuu-tw-scale-x) var(--uhuu-tw-scale-y)}[data-uhuu-interactive] .uhuu\\:rotate-2,[data-uhuu-portal] .uhuu\\:rotate-2{rotate:2deg}[data-uhuu-interactive] .uhuu\\:rotate-45,[data-uhuu-portal] .uhuu\\:rotate-45{rotate:45deg}[data-uhuu-interactive] .uhuu\\:cursor-default,[data-uhuu-portal] .uhuu\\:cursor-default{cursor:default}[data-uhuu-interactive] .uhuu\\:cursor-grab,[data-uhuu-portal] .uhuu\\:cursor-grab{cursor:grab}[data-uhuu-interactive] .uhuu\\:cursor-pointer,[data-uhuu-portal] .uhuu\\:cursor-pointer{cursor:pointer}[data-uhuu-interactive] .uhuu\\:touch-none,[data-uhuu-portal] .uhuu\\:touch-none{touch-action:none}[data-uhuu-interactive] .uhuu\\:flex-col,[data-uhuu-portal] .uhuu\\:flex-col{flex-direction:column}[data-uhuu-interactive] .uhuu\\:flex-col-reverse,[data-uhuu-portal] .uhuu\\:flex-col-reverse{flex-direction:column-reverse}[data-uhuu-interactive] .uhuu\\:flex-wrap,[data-uhuu-portal] .uhuu\\:flex-wrap{flex-wrap:wrap}[data-uhuu-interactive] .uhuu\\:items-center,[data-uhuu-portal] .uhuu\\:items-center{align-items:center}[data-uhuu-interactive] .uhuu\\:items-end,[data-uhuu-portal] .uhuu\\:items-end{align-items:flex-end}[data-uhuu-interactive] .uhuu\\:items-start,[data-uhuu-portal] .uhuu\\:items-start{align-items:flex-start}[data-uhuu-interactive] .uhuu\\:justify-between,[data-uhuu-portal] .uhuu\\:justify-between{justify-content:space-between}[data-uhuu-interactive] .uhuu\\:justify-center,[data-uhuu-portal] .uhuu\\:justify-center{justify-content:center}[data-uhuu-interactive] .uhuu\\:justify-end,[data-uhuu-portal] .uhuu\\:justify-end{justify-content:flex-end}[data-uhuu-interactive] .uhuu\\:justify-start,[data-uhuu-portal] .uhuu\\:justify-start{justify-content:flex-start}[data-uhuu-interactive] .uhuu\\:gap-0,[data-uhuu-portal] .uhuu\\:gap-0{gap:0}[data-uhuu-interactive] .uhuu\\:gap-1,[data-uhuu-portal] .uhuu\\:gap-1{gap:var(--uhuu-spacing)}[data-uhuu-interactive] .uhuu\\:gap-1\\.5,[data-uhuu-portal] .uhuu\\:gap-1\\.5{gap:calc(var(--uhuu-spacing) * 1.5)}[data-uhuu-interactive] .uhuu\\:gap-2,[data-uhuu-portal] .uhuu\\:gap-2{gap:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:gap-3,[data-uhuu-portal] .uhuu\\:gap-3{gap:calc(var(--uhuu-spacing) * 3)}[data-uhuu-interactive] .uhuu\\:gap-4,[data-uhuu-portal] .uhuu\\:gap-4{gap:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] :where(.uhuu\\:space-y-1\\.5>:not(:last-child)),[data-uhuu-portal] :where(.uhuu\\:space-y-1\\.5>:not(:last-child)){--uhuu-tw-space-y-reverse:0;margin-block-start:calc(calc(var(--uhuu-spacing) * 1.5) * var(--uhuu-tw-space-y-reverse));margin-block-end:calc(calc(var(--uhuu-spacing) * 1.5) * calc(1 - var(--uhuu-tw-space-y-reverse)))}[data-uhuu-interactive] :where(.uhuu\\:space-y-2>:not(:last-child)),[data-uhuu-portal] :where(.uhuu\\:space-y-2>:not(:last-child)){--uhuu-tw-space-y-reverse:0;margin-block-start:calc(calc(var(--uhuu-spacing) * 2) * var(--uhuu-tw-space-y-reverse));margin-block-end:calc(calc(var(--uhuu-spacing) * 2) * calc(1 - var(--uhuu-tw-space-y-reverse)))}[data-uhuu-interactive] :where(.uhuu\\:space-y-3>:not(:last-child)),[data-uhuu-portal] :where(.uhuu\\:space-y-3>:not(:last-child)){--uhuu-tw-space-y-reverse:0;margin-block-start:calc(calc(var(--uhuu-spacing) * 3) * var(--uhuu-tw-space-y-reverse));margin-block-end:calc(calc(var(--uhuu-spacing) * 3) * calc(1 - var(--uhuu-tw-space-y-reverse)))}[data-uhuu-interactive] .uhuu\\:truncate,[data-uhuu-portal] .uhuu\\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}[data-uhuu-interactive] .uhuu\\:overflow-auto,[data-uhuu-portal] .uhuu\\:overflow-auto{overflow:auto}[data-uhuu-interactive] .uhuu\\:overflow-hidden,[data-uhuu-portal] .uhuu\\:overflow-hidden{overflow:hidden}[data-uhuu-interactive] .uhuu\\:rounded,[data-uhuu-portal] .uhuu\\:rounded{border-radius:.25rem}[data-uhuu-interactive] .uhuu\\:rounded-full,[data-uhuu-portal] .uhuu\\:rounded-full{border-radius:2147483647px}[data-uhuu-interactive] .uhuu\\:rounded-lg,[data-uhuu-portal] .uhuu\\:rounded-lg{border-radius:var(--uhuu-radius-lg)}[data-uhuu-interactive] .uhuu\\:rounded-md,[data-uhuu-portal] .uhuu\\:rounded-md{border-radius:var(--uhuu-radius-md)}[data-uhuu-interactive] .uhuu\\:rounded-sm,[data-uhuu-portal] .uhuu\\:rounded-sm{border-radius:var(--uhuu-radius-sm)}[data-uhuu-interactive] .uhuu\\:border,[data-uhuu-portal] .uhuu\\:border{border-style:var(--uhuu-tw-border-style);border-width:1px}[data-uhuu-interactive] .uhuu\\:border-0,[data-uhuu-portal] .uhuu\\:border-0{border-style:var(--uhuu-tw-border-style);border-width:0}[data-uhuu-interactive] .uhuu\\:border-2,[data-uhuu-portal] .uhuu\\:border-2{border-style:var(--uhuu-tw-border-style);border-width:2px}[data-uhuu-interactive] .uhuu\\:border-t,[data-uhuu-portal] .uhuu\\:border-t{border-top-style:var(--uhuu-tw-border-style);border-top-width:1px}[data-uhuu-interactive] .uhuu\\:border-r,[data-uhuu-portal] .uhuu\\:border-r{border-right-style:var(--uhuu-tw-border-style);border-right-width:1px}[data-uhuu-interactive] .uhuu\\:border-b,[data-uhuu-portal] .uhuu\\:border-b{border-bottom-style:var(--uhuu-tw-border-style);border-bottom-width:1px}[data-uhuu-interactive] .uhuu\\:border-l,[data-uhuu-portal] .uhuu\\:border-l{border-left-style:var(--uhuu-tw-border-style);border-left-width:1px}[data-uhuu-interactive] .uhuu\\:border-\\(--uhuu-thumbnail-border\\),[data-uhuu-portal] .uhuu\\:border-\\(--uhuu-thumbnail-border\\){border-color:var(--uhuu-thumbnail-border)}[data-uhuu-interactive] .uhuu\\:border-\\(--uhuu-thumbnail-border-strong\\),[data-uhuu-portal] .uhuu\\:border-\\(--uhuu-thumbnail-border-strong\\){border-color:var(--uhuu-thumbnail-border-strong)}[data-uhuu-interactive] .uhuu\\:border-blue-400,[data-uhuu-portal] .uhuu\\:border-blue-400{border-color:var(--uhuu-color-blue-400)}[data-uhuu-interactive] .uhuu\\:border-gray-200,[data-uhuu-portal] .uhuu\\:border-gray-200,[data-uhuu-interactive] .uhuu\\:border-gray-200\\/60,[data-uhuu-portal] .uhuu\\:border-gray-200\\/60{border-color:var(--uhuu-color-gray-200)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:border-gray-200\\/60,[data-uhuu-portal] .uhuu\\:border-gray-200\\/60{border-color:color-mix(in oklab, var(--uhuu-color-gray-200) 60%, transparent)}}[data-uhuu-interactive] .uhuu\\:border-gray-200\\/80,[data-uhuu-portal] .uhuu\\:border-gray-200\\/80{border-color:var(--uhuu-color-gray-200)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:border-gray-200\\/80,[data-uhuu-portal] .uhuu\\:border-gray-200\\/80{border-color:color-mix(in oklab, var(--uhuu-color-gray-200) 80%, transparent)}}[data-uhuu-interactive] .uhuu\\:border-gray-300,[data-uhuu-portal] .uhuu\\:border-gray-300{border-color:var(--uhuu-color-gray-300)}[data-uhuu-interactive] .uhuu\\:border-gray-400,[data-uhuu-portal] .uhuu\\:border-gray-400{border-color:var(--uhuu-color-gray-400)}[data-uhuu-interactive] .uhuu\\:border-gray-900,[data-uhuu-portal] .uhuu\\:border-gray-900{border-color:var(--uhuu-color-gray-900)}[data-uhuu-interactive] .uhuu\\:border-transparent,[data-uhuu-portal] .uhuu\\:border-transparent{border-color:#0000}[data-uhuu-interactive] .uhuu\\:bg-\\(--uhuu-shell-surface\\),[data-uhuu-portal] .uhuu\\:bg-\\(--uhuu-shell-surface\\),[data-uhuu-interactive] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/50,[data-uhuu-portal] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/50{background-color:var(--uhuu-shell-surface)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/50,[data-uhuu-portal] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/50{background-color:color-mix(in oklab, var(--uhuu-shell-surface) 50%, transparent)}}[data-uhuu-interactive] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/90,[data-uhuu-portal] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/90{background-color:var(--uhuu-shell-surface)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/90,[data-uhuu-portal] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/90{background-color:color-mix(in oklab, var(--uhuu-shell-surface) 90%, transparent)}}[data-uhuu-interactive] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/95,[data-uhuu-portal] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/95{background-color:var(--uhuu-shell-surface)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/95,[data-uhuu-portal] .uhuu\\:bg-\\(--uhuu-shell-surface\\)\\/95{background-color:color-mix(in oklab, var(--uhuu-shell-surface) 95%, transparent)}}[data-uhuu-interactive] .uhuu\\:bg-\\(--uhuu-thumbnail-caption\\),[data-uhuu-portal] .uhuu\\:bg-\\(--uhuu-thumbnail-caption\\){background-color:var(--uhuu-thumbnail-caption)}[data-uhuu-interactive] .uhuu\\:bg-black,[data-uhuu-portal] .uhuu\\:bg-black,[data-uhuu-interactive] .uhuu\\:bg-black\\/30,[data-uhuu-portal] .uhuu\\:bg-black\\/30{background-color:var(--uhuu-color-black)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:bg-black\\/30,[data-uhuu-portal] .uhuu\\:bg-black\\/30{background-color:color-mix(in oklab, var(--uhuu-color-black) 30%, transparent)}}[data-uhuu-interactive] .uhuu\\:bg-black\\/40,[data-uhuu-portal] .uhuu\\:bg-black\\/40{background-color:var(--uhuu-color-black)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:bg-black\\/40,[data-uhuu-portal] .uhuu\\:bg-black\\/40{background-color:color-mix(in oklab, var(--uhuu-color-black) 40%, transparent)}}[data-uhuu-interactive] .uhuu\\:bg-black\\/50,[data-uhuu-portal] .uhuu\\:bg-black\\/50{background-color:var(--uhuu-color-black)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:bg-black\\/50,[data-uhuu-portal] .uhuu\\:bg-black\\/50{background-color:color-mix(in oklab, var(--uhuu-color-black) 50%, transparent)}}[data-uhuu-interactive] .uhuu\\:bg-blue-50,[data-uhuu-portal] .uhuu\\:bg-blue-50{background-color:var(--uhuu-color-blue-50)}[data-uhuu-interactive] .uhuu\\:bg-blue-100,[data-uhuu-portal] .uhuu\\:bg-blue-100{background-color:var(--uhuu-color-blue-100)}[data-uhuu-interactive] .uhuu\\:bg-blue-500\\/10,[data-uhuu-portal] .uhuu\\:bg-blue-500\\/10{background-color:var(--uhuu-color-blue-500)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:bg-blue-500\\/10,[data-uhuu-portal] .uhuu\\:bg-blue-500\\/10{background-color:color-mix(in oklab, var(--uhuu-color-blue-500) 10%, transparent)}}[data-uhuu-interactive] .uhuu\\:bg-blue-600\\/80,[data-uhuu-portal] .uhuu\\:bg-blue-600\\/80{background-color:var(--uhuu-color-blue-600)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:bg-blue-600\\/80,[data-uhuu-portal] .uhuu\\:bg-blue-600\\/80{background-color:color-mix(in oklab, var(--uhuu-color-blue-600) 80%, transparent)}}[data-uhuu-interactive] .uhuu\\:bg-emerald-100,[data-uhuu-portal] .uhuu\\:bg-emerald-100{background-color:var(--uhuu-color-emerald-100)}[data-uhuu-interactive] .uhuu\\:bg-gray-50,[data-uhuu-portal] .uhuu\\:bg-gray-50{background-color:var(--uhuu-color-gray-50)}[data-uhuu-interactive] .uhuu\\:bg-gray-100,[data-uhuu-portal] .uhuu\\:bg-gray-100,[data-uhuu-interactive] .uhuu\\:bg-gray-100\\/80,[data-uhuu-portal] .uhuu\\:bg-gray-100\\/80{background-color:var(--uhuu-color-gray-100)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:bg-gray-100\\/80,[data-uhuu-portal] .uhuu\\:bg-gray-100\\/80{background-color:color-mix(in oklab, var(--uhuu-color-gray-100) 80%, transparent)}}[data-uhuu-interactive] .uhuu\\:bg-gray-200,[data-uhuu-portal] .uhuu\\:bg-gray-200{background-color:var(--uhuu-color-gray-200)}[data-uhuu-interactive] .uhuu\\:bg-gray-600\\/80,[data-uhuu-portal] .uhuu\\:bg-gray-600\\/80{background-color:var(--uhuu-color-gray-600)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:bg-gray-600\\/80,[data-uhuu-portal] .uhuu\\:bg-gray-600\\/80{background-color:color-mix(in oklab, var(--uhuu-color-gray-600) 80%, transparent)}}[data-uhuu-interactive] .uhuu\\:bg-gray-900,[data-uhuu-portal] .uhuu\\:bg-gray-900{background-color:var(--uhuu-color-gray-900)}[data-uhuu-interactive] .uhuu\\:bg-transparent,[data-uhuu-portal] .uhuu\\:bg-transparent{background-color:#0000}[data-uhuu-interactive] .uhuu\\:bg-white,[data-uhuu-portal] .uhuu\\:bg-white,[data-uhuu-interactive] .uhuu\\:bg-white\\/90,[data-uhuu-portal] .uhuu\\:bg-white\\/90{background-color:var(--uhuu-color-white)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:bg-white\\/90,[data-uhuu-portal] .uhuu\\:bg-white\\/90{background-color:color-mix(in oklab, var(--uhuu-color-white) 90%, transparent)}}[data-uhuu-interactive] .uhuu\\:object-contain,[data-uhuu-portal] .uhuu\\:object-contain{-o-object-fit:contain;object-fit:contain}[data-uhuu-interactive] .uhuu\\:object-top,[data-uhuu-portal] .uhuu\\:object-top{-o-object-position:top;object-position:top}[data-uhuu-interactive] .uhuu\\:p-0,[data-uhuu-portal] .uhuu\\:p-0{padding:0}[data-uhuu-interactive] .uhuu\\:p-1,[data-uhuu-portal] .uhuu\\:p-1{padding:var(--uhuu-spacing)}[data-uhuu-interactive] .uhuu\\:p-1\\.5,[data-uhuu-portal] .uhuu\\:p-1\\.5{padding:calc(var(--uhuu-spacing) * 1.5)}[data-uhuu-interactive] .uhuu\\:p-2,[data-uhuu-portal] .uhuu\\:p-2{padding:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:p-3,[data-uhuu-portal] .uhuu\\:p-3{padding:calc(var(--uhuu-spacing) * 3)}[data-uhuu-interactive] .uhuu\\:p-4,[data-uhuu-portal] .uhuu\\:p-4{padding:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:p-6,[data-uhuu-portal] .uhuu\\:p-6{padding:calc(var(--uhuu-spacing) * 6)}[data-uhuu-interactive] .uhuu\\:px-2,[data-uhuu-portal] .uhuu\\:px-2{padding-inline:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:px-2\\.5,[data-uhuu-portal] .uhuu\\:px-2\\.5{padding-inline:calc(var(--uhuu-spacing) * 2.5)}[data-uhuu-interactive] .uhuu\\:px-3,[data-uhuu-portal] .uhuu\\:px-3{padding-inline:calc(var(--uhuu-spacing) * 3)}[data-uhuu-interactive] .uhuu\\:px-4,[data-uhuu-portal] .uhuu\\:px-4{padding-inline:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:px-8,[data-uhuu-portal] .uhuu\\:px-8{padding-inline:calc(var(--uhuu-spacing) * 8)}[data-uhuu-interactive] .uhuu\\:py-0\\.5,[data-uhuu-portal] .uhuu\\:py-0\\.5{padding-block:calc(var(--uhuu-spacing) * .5)}[data-uhuu-interactive] .uhuu\\:py-1,[data-uhuu-portal] .uhuu\\:py-1{padding-block:var(--uhuu-spacing)}[data-uhuu-interactive] .uhuu\\:py-1\\.5,[data-uhuu-portal] .uhuu\\:py-1\\.5{padding-block:calc(var(--uhuu-spacing) * 1.5)}[data-uhuu-interactive] .uhuu\\:py-2,[data-uhuu-portal] .uhuu\\:py-2{padding-block:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:py-2\\.5,[data-uhuu-portal] .uhuu\\:py-2\\.5{padding-block:calc(var(--uhuu-spacing) * 2.5)}[data-uhuu-interactive] .uhuu\\:py-3,[data-uhuu-portal] .uhuu\\:py-3{padding-block:calc(var(--uhuu-spacing) * 3)}[data-uhuu-interactive] .uhuu\\:py-16,[data-uhuu-portal] .uhuu\\:py-16{padding-block:calc(var(--uhuu-spacing) * 16)}[data-uhuu-interactive] .uhuu\\:py-20,[data-uhuu-portal] .uhuu\\:py-20{padding-block:calc(var(--uhuu-spacing) * 20)}[data-uhuu-interactive] .uhuu\\:pt-1,[data-uhuu-portal] .uhuu\\:pt-1{padding-top:var(--uhuu-spacing)}[data-uhuu-interactive] .uhuu\\:pt-2,[data-uhuu-portal] .uhuu\\:pt-2{padding-top:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:pr-1,[data-uhuu-portal] .uhuu\\:pr-1{padding-right:var(--uhuu-spacing)}[data-uhuu-interactive] .uhuu\\:pr-2,[data-uhuu-portal] .uhuu\\:pr-2{padding-right:calc(var(--uhuu-spacing) * 2)}[data-uhuu-interactive] .uhuu\\:pr-3,[data-uhuu-portal] .uhuu\\:pr-3{padding-right:calc(var(--uhuu-spacing) * 3)}[data-uhuu-interactive] .uhuu\\:pr-6,[data-uhuu-portal] .uhuu\\:pr-6{padding-right:calc(var(--uhuu-spacing) * 6)}[data-uhuu-interactive] .uhuu\\:pb-4,[data-uhuu-portal] .uhuu\\:pb-4{padding-bottom:calc(var(--uhuu-spacing) * 4)}[data-uhuu-interactive] .uhuu\\:pl-0,[data-uhuu-portal] .uhuu\\:pl-0{padding-left:0}[data-uhuu-interactive] .uhuu\\:pl-1,[data-uhuu-portal] .uhuu\\:pl-1{padding-left:var(--uhuu-spacing)}[data-uhuu-interactive] .uhuu\\:pl-8,[data-uhuu-portal] .uhuu\\:pl-8{padding-left:calc(var(--uhuu-spacing) * 8)}[data-uhuu-interactive] .uhuu\\:text-center,[data-uhuu-portal] .uhuu\\:text-center{text-align:center}[data-uhuu-interactive] .uhuu\\:text-left,[data-uhuu-portal] .uhuu\\:text-left{text-align:left}[data-uhuu-interactive] .uhuu\\:align-top,[data-uhuu-portal] .uhuu\\:align-top{vertical-align:top}[data-uhuu-interactive] .uhuu\\:font-mono,[data-uhuu-portal] .uhuu\\:font-mono{font-family:var(--uhuu-font-mono)}[data-uhuu-interactive] .uhuu\\:text-base,[data-uhuu-portal] .uhuu\\:text-base{font-size:var(--uhuu-text-base);line-height:var(--uhuu-tw-leading,var(--uhuu-text-base--line-height))}[data-uhuu-interactive] .uhuu\\:text-lg,[data-uhuu-portal] .uhuu\\:text-lg{font-size:var(--uhuu-text-lg);line-height:var(--uhuu-tw-leading,var(--uhuu-text-lg--line-height))}[data-uhuu-interactive] .uhuu\\:text-sm,[data-uhuu-portal] .uhuu\\:text-sm{font-size:var(--uhuu-text-sm);line-height:var(--uhuu-tw-leading,var(--uhuu-text-sm--line-height))}[data-uhuu-interactive] .uhuu\\:text-xs,[data-uhuu-portal] .uhuu\\:text-xs{font-size:var(--uhuu-text-xs);line-height:var(--uhuu-tw-leading,var(--uhuu-text-xs--line-height))}[data-uhuu-interactive] .uhuu\\:text-xs\\!,[data-uhuu-portal] .uhuu\\:text-xs\\!{font-size:var(--uhuu-text-xs)!important;line-height:var(--uhuu-tw-leading,var(--uhuu-text-xs--line-height))!important}[data-uhuu-interactive] .uhuu\\:text-\\[10px\\],[data-uhuu-portal] .uhuu\\:text-\\[10px\\]{font-size:10px}[data-uhuu-interactive] .uhuu\\:leading-none,[data-uhuu-portal] .uhuu\\:leading-none{--uhuu-tw-leading:1;line-height:1}[data-uhuu-interactive] .uhuu\\:leading-tight,[data-uhuu-portal] .uhuu\\:leading-tight{--uhuu-tw-leading:var(--uhuu-leading-tight);line-height:var(--uhuu-leading-tight)}[data-uhuu-interactive] .uhuu\\:font-medium,[data-uhuu-portal] .uhuu\\:font-medium{--uhuu-tw-font-weight:var(--uhuu-font-weight-medium);font-weight:var(--uhuu-font-weight-medium)}[data-uhuu-interactive] .uhuu\\:font-normal,[data-uhuu-portal] .uhuu\\:font-normal{--uhuu-tw-font-weight:var(--uhuu-font-weight-normal);font-weight:var(--uhuu-font-weight-normal)}[data-uhuu-interactive] .uhuu\\:font-semibold,[data-uhuu-portal] .uhuu\\:font-semibold{--uhuu-tw-font-weight:var(--uhuu-font-weight-semibold);font-weight:var(--uhuu-font-weight-semibold)}[data-uhuu-interactive] .uhuu\\:tracking-wide,[data-uhuu-portal] .uhuu\\:tracking-wide{--uhuu-tw-tracking:var(--uhuu-tracking-wide);letter-spacing:var(--uhuu-tracking-wide)}[data-uhuu-interactive] .uhuu\\:tracking-widest,[data-uhuu-portal] .uhuu\\:tracking-widest{--uhuu-tw-tracking:var(--uhuu-tracking-widest);letter-spacing:var(--uhuu-tracking-widest)}[data-uhuu-interactive] .uhuu\\:break-all,[data-uhuu-portal] .uhuu\\:break-all{word-break:break-all}[data-uhuu-interactive] .uhuu\\:whitespace-nowrap,[data-uhuu-portal] .uhuu\\:whitespace-nowrap{white-space:nowrap}[data-uhuu-interactive] .uhuu\\:text-\\(--uhuu-shell-on-inverse\\),[data-uhuu-portal] .uhuu\\:text-\\(--uhuu-shell-on-inverse\\){color:var(--uhuu-shell-on-inverse)}[data-uhuu-interactive] .uhuu\\:text-blue-600,[data-uhuu-portal] .uhuu\\:text-blue-600{color:var(--uhuu-color-blue-600)}[data-uhuu-interactive] .uhuu\\:text-emerald-600,[data-uhuu-portal] .uhuu\\:text-emerald-600{color:var(--uhuu-color-emerald-600)}[data-uhuu-interactive] .uhuu\\:text-gray-400,[data-uhuu-portal] .uhuu\\:text-gray-400{color:var(--uhuu-color-gray-400)}[data-uhuu-interactive] .uhuu\\:text-gray-500,[data-uhuu-portal] .uhuu\\:text-gray-500{color:var(--uhuu-color-gray-500)}[data-uhuu-interactive] .uhuu\\:text-gray-600,[data-uhuu-portal] .uhuu\\:text-gray-600{color:var(--uhuu-color-gray-600)}[data-uhuu-interactive] .uhuu\\:text-gray-700,[data-uhuu-portal] .uhuu\\:text-gray-700{color:var(--uhuu-color-gray-700)}[data-uhuu-interactive] .uhuu\\:text-gray-800,[data-uhuu-portal] .uhuu\\:text-gray-800{color:var(--uhuu-color-gray-800)}[data-uhuu-interactive] .uhuu\\:text-gray-900,[data-uhuu-portal] .uhuu\\:text-gray-900{color:var(--uhuu-color-gray-900)}[data-uhuu-interactive] .uhuu\\:text-red-600,[data-uhuu-portal] .uhuu\\:text-red-600{color:var(--uhuu-color-red-600)}[data-uhuu-interactive] .uhuu\\:text-white,[data-uhuu-portal] .uhuu\\:text-white{color:var(--uhuu-color-white)}[data-uhuu-interactive] .uhuu\\:uppercase,[data-uhuu-portal] .uhuu\\:uppercase{text-transform:uppercase}[data-uhuu-interactive] .uhuu\\:tabular-nums,[data-uhuu-portal] .uhuu\\:tabular-nums{--uhuu-tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--uhuu-tw-ordinal,) var(--uhuu-tw-slashed-zero,) var(--uhuu-tw-numeric-figure,) var(--uhuu-tw-numeric-spacing,) var(--uhuu-tw-numeric-fraction,)}[data-uhuu-interactive] .uhuu\\:opacity-0,[data-uhuu-portal] .uhuu\\:opacity-0{opacity:0}[data-uhuu-interactive] .uhuu\\:opacity-50,[data-uhuu-portal] .uhuu\\:opacity-50{opacity:.5}[data-uhuu-interactive] .uhuu\\:opacity-60,[data-uhuu-portal] .uhuu\\:opacity-60{opacity:.6}[data-uhuu-interactive] .uhuu\\:opacity-70,[data-uhuu-portal] .uhuu\\:opacity-70{opacity:.7}[data-uhuu-interactive] .uhuu\\:opacity-75,[data-uhuu-portal] .uhuu\\:opacity-75{opacity:.75}[data-uhuu-interactive] .uhuu\\:shadow,[data-uhuu-portal] .uhuu\\:shadow{--uhuu-tw-shadow:0 1px 3px 0 var(--uhuu-tw-shadow-color,#0000001a), 0 1px 2px -1px var(--uhuu-tw-shadow-color,#0000001a);box-shadow:var(--uhuu-tw-inset-shadow), var(--uhuu-tw-inset-ring-shadow), var(--uhuu-tw-ring-offset-shadow), var(--uhuu-tw-ring-shadow), var(--uhuu-tw-shadow)}[data-uhuu-interactive] .uhuu\\:shadow-2xl,[data-uhuu-portal] .uhuu\\:shadow-2xl{--uhuu-tw-shadow:0 25px 50px -12px var(--uhuu-tw-shadow-color,#00000040);box-shadow:var(--uhuu-tw-inset-shadow), var(--uhuu-tw-inset-ring-shadow), var(--uhuu-tw-ring-offset-shadow), var(--uhuu-tw-ring-shadow), var(--uhuu-tw-shadow)}[data-uhuu-interactive] .uhuu\\:shadow-lg,[data-uhuu-portal] .uhuu\\:shadow-lg{--uhuu-tw-shadow:0 10px 15px -3px var(--uhuu-tw-shadow-color,#0000001a), 0 4px 6px -4px var(--uhuu-tw-shadow-color,#0000001a);box-shadow:var(--uhuu-tw-inset-shadow), var(--uhuu-tw-inset-ring-shadow), var(--uhuu-tw-ring-offset-shadow), var(--uhuu-tw-ring-shadow), var(--uhuu-tw-shadow)}[data-uhuu-interactive] .uhuu\\:shadow-md,[data-uhuu-portal] .uhuu\\:shadow-md{--uhuu-tw-shadow:0 4px 6px -1px var(--uhuu-tw-shadow-color,#0000001a), 0 2px 4px -2px var(--uhuu-tw-shadow-color,#0000001a);box-shadow:var(--uhuu-tw-inset-shadow), var(--uhuu-tw-inset-ring-shadow), var(--uhuu-tw-ring-offset-shadow), var(--uhuu-tw-ring-shadow), var(--uhuu-tw-shadow)}[data-uhuu-interactive] .uhuu\\:shadow-sm,[data-uhuu-portal] .uhuu\\:shadow-sm{--uhuu-tw-shadow:0 1px 3px 0 var(--uhuu-tw-shadow-color,#0000001a), 0 1px 2px -1px var(--uhuu-tw-shadow-color,#0000001a);box-shadow:var(--uhuu-tw-inset-shadow), var(--uhuu-tw-inset-ring-shadow), var(--uhuu-tw-ring-offset-shadow), var(--uhuu-tw-ring-shadow), var(--uhuu-tw-shadow)}[data-uhuu-interactive] .uhuu\\:shadow-xl,[data-uhuu-portal] .uhuu\\:shadow-xl{--uhuu-tw-shadow:0 20px 25px -5px var(--uhuu-tw-shadow-color,#0000001a), 0 8px 10px -6px var(--uhuu-tw-shadow-color,#0000001a);box-shadow:var(--uhuu-tw-inset-shadow), var(--uhuu-tw-inset-ring-shadow), var(--uhuu-tw-ring-offset-shadow), var(--uhuu-tw-ring-shadow), var(--uhuu-tw-shadow)}[data-uhuu-interactive] .uhuu\\:ring-0,[data-uhuu-portal] .uhuu\\:ring-0{--uhuu-tw-ring-shadow:var(--uhuu-tw-ring-inset,) 0 0 0 calc(0px + var(--uhuu-tw-ring-offset-width)) var(--uhuu-tw-ring-color,currentcolor);box-shadow:var(--uhuu-tw-inset-shadow), var(--uhuu-tw-inset-ring-shadow), var(--uhuu-tw-ring-offset-shadow), var(--uhuu-tw-ring-shadow), var(--uhuu-tw-shadow)}[data-uhuu-interactive] .uhuu\\:ring-offset-\\(--uhuu-shell-surface\\),[data-uhuu-portal] .uhuu\\:ring-offset-\\(--uhuu-shell-surface\\){--uhuu-tw-ring-offset-color:var(--uhuu-shell-surface)}[data-uhuu-interactive] .uhuu\\:outline,[data-uhuu-portal] .uhuu\\:outline{outline-style:var(--uhuu-tw-outline-style);outline-width:1px}[data-uhuu-interactive] .uhuu\\:outline-2,[data-uhuu-portal] .uhuu\\:outline-2{outline-style:var(--uhuu-tw-outline-style);outline-width:2px}[data-uhuu-interactive] .uhuu\\:outline-offset-2,[data-uhuu-portal] .uhuu\\:outline-offset-2{outline-offset:2px}[data-uhuu-interactive] .uhuu\\:outline-blue-100,[data-uhuu-portal] .uhuu\\:outline-blue-100{outline-color:var(--uhuu-color-blue-100)}[data-uhuu-interactive] .uhuu\\:drop-shadow-\\[0_1px_2px_rgba\\(0\\,0\\,0\\,0\\.8\\)\\],[data-uhuu-portal] .uhuu\\:drop-shadow-\\[0_1px_2px_rgba\\(0\\,0\\,0\\,0\\.8\\)\\]{--uhuu-tw-drop-shadow-size:drop-shadow(0 1px 2px var(--uhuu-tw-drop-shadow-color,#000c));--uhuu-tw-drop-shadow:var(--uhuu-tw-drop-shadow-size);filter:var(--uhuu-tw-blur,) var(--uhuu-tw-brightness,) var(--uhuu-tw-contrast,) var(--uhuu-tw-grayscale,) var(--uhuu-tw-hue-rotate,) var(--uhuu-tw-invert,) var(--uhuu-tw-saturate,) var(--uhuu-tw-sepia,) var(--uhuu-tw-drop-shadow,)}[data-uhuu-interactive] .uhuu\\:backdrop-blur-\\[1px\\],[data-uhuu-portal] .uhuu\\:backdrop-blur-\\[1px\\]{--uhuu-tw-backdrop-blur:blur(1px);backdrop-filter:var(--uhuu-tw-backdrop-blur,) var(--uhuu-tw-backdrop-brightness,) var(--uhuu-tw-backdrop-contrast,) var(--uhuu-tw-backdrop-grayscale,) var(--uhuu-tw-backdrop-hue-rotate,) var(--uhuu-tw-backdrop-invert,) var(--uhuu-tw-backdrop-opacity,) var(--uhuu-tw-backdrop-saturate,) var(--uhuu-tw-backdrop-sepia,)}[data-uhuu-interactive] .uhuu\\:backdrop-blur-md,[data-uhuu-portal] .uhuu\\:backdrop-blur-md{--uhuu-tw-backdrop-blur:blur(var(--uhuu-blur-md));backdrop-filter:var(--uhuu-tw-backdrop-blur,) var(--uhuu-tw-backdrop-brightness,) var(--uhuu-tw-backdrop-contrast,) var(--uhuu-tw-backdrop-grayscale,) var(--uhuu-tw-backdrop-hue-rotate,) var(--uhuu-tw-backdrop-invert,) var(--uhuu-tw-backdrop-opacity,) var(--uhuu-tw-backdrop-saturate,) var(--uhuu-tw-backdrop-sepia,)}[data-uhuu-interactive] .uhuu\\:backdrop-blur-sm,[data-uhuu-portal] .uhuu\\:backdrop-blur-sm{--uhuu-tw-backdrop-blur:blur(var(--uhuu-blur-sm));backdrop-filter:var(--uhuu-tw-backdrop-blur,) var(--uhuu-tw-backdrop-brightness,) var(--uhuu-tw-backdrop-contrast,) var(--uhuu-tw-backdrop-grayscale,) var(--uhuu-tw-backdrop-hue-rotate,) var(--uhuu-tw-backdrop-invert,) var(--uhuu-tw-backdrop-opacity,) var(--uhuu-tw-backdrop-saturate,) var(--uhuu-tw-backdrop-sepia,)}[data-uhuu-interactive] .uhuu\\:transition,[data-uhuu-portal] .uhuu\\:transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--uhuu-tw-gradient-from,--uhuu-tw-gradient-via,--uhuu-tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--uhuu-tw-ease,var(--uhuu-default-transition-timing-function));transition-duration:var(--uhuu-tw-duration,var(--uhuu-default-transition-duration))}[data-uhuu-interactive] .uhuu\\:transition-all,[data-uhuu-portal] .uhuu\\:transition-all{transition-property:all;transition-timing-function:var(--uhuu-tw-ease,var(--uhuu-default-transition-timing-function));transition-duration:var(--uhuu-tw-duration,var(--uhuu-default-transition-duration))}[data-uhuu-interactive] .uhuu\\:transition-colors,[data-uhuu-portal] .uhuu\\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--uhuu-tw-gradient-from,--uhuu-tw-gradient-via,--uhuu-tw-gradient-to;transition-timing-function:var(--uhuu-tw-ease,var(--uhuu-default-transition-timing-function));transition-duration:var(--uhuu-tw-duration,var(--uhuu-default-transition-duration))}[data-uhuu-interactive] .uhuu\\:transition-opacity,[data-uhuu-portal] .uhuu\\:transition-opacity{transition-property:opacity;transition-timing-function:var(--uhuu-tw-ease,var(--uhuu-default-transition-timing-function));transition-duration:var(--uhuu-tw-duration,var(--uhuu-default-transition-duration))}[data-uhuu-interactive] .uhuu\\:transition-transform,[data-uhuu-portal] .uhuu\\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--uhuu-tw-ease,var(--uhuu-default-transition-timing-function));transition-duration:var(--uhuu-tw-duration,var(--uhuu-default-transition-duration))}[data-uhuu-interactive] .uhuu\\:duration-150,[data-uhuu-portal] .uhuu\\:duration-150{--uhuu-tw-duration:.15s;transition-duration:.15s}[data-uhuu-interactive] .uhuu\\:ease-in-out,[data-uhuu-portal] .uhuu\\:ease-in-out{--uhuu-tw-ease:var(--uhuu-ease-in-out);transition-timing-function:var(--uhuu-ease-in-out)}[data-uhuu-interactive] .uhuu\\:outline-none,[data-uhuu-portal] .uhuu\\:outline-none{--uhuu-tw-outline-style:none;outline-style:none}[data-uhuu-interactive] .uhuu\\:select-none,[data-uhuu-portal] .uhuu\\:select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}@media (hover:hover){[data-uhuu-interactive] .uhuu\\:group-hover\\:opacity-100:is(:where(.uhuu\\:group):hover *),[data-uhuu-portal] .uhuu\\:group-hover\\:opacity-100:is(:where(.uhuu\\:group):hover *){opacity:1}[data-uhuu-interactive] .uhuu\\:group-hover\\/drag-item\\:block:is(:where(.uhuu\\:group\\/drag-item):hover *),[data-uhuu-portal] .uhuu\\:group-hover\\/drag-item\\:block:is(:where(.uhuu\\:group\\/drag-item):hover *){display:block}[data-uhuu-interactive] .uhuu\\:group-hover\\/drag-item\\:flex:is(:where(.uhuu\\:group\\/drag-item):hover *),[data-uhuu-portal] .uhuu\\:group-hover\\/drag-item\\:flex:is(:where(.uhuu\\:group\\/drag-item):hover *){display:flex}[data-uhuu-interactive] .uhuu\\:group-hover\\/drag-item\\:hidden:is(:where(.uhuu\\:group\\/drag-item):hover *),[data-uhuu-portal] .uhuu\\:group-hover\\/drag-item\\:hidden:is(:where(.uhuu\\:group\\/drag-item):hover *){display:none}[data-uhuu-interactive] .uhuu\\:group-hover\\/drag-item\\:border-gray-300:is(:where(.uhuu\\:group\\/drag-item):hover *),[data-uhuu-portal] .uhuu\\:group-hover\\/drag-item\\:border-gray-300:is(:where(.uhuu\\:group\\/drag-item):hover *){border-color:var(--uhuu-color-gray-300)}[data-uhuu-interactive] .uhuu\\:group-hover\\/drag-item\\:shadow-md:is(:where(.uhuu\\:group\\/drag-item):hover *),[data-uhuu-portal] .uhuu\\:group-hover\\/drag-item\\:shadow-md:is(:where(.uhuu\\:group\\/drag-item):hover *){--uhuu-tw-shadow:0 4px 6px -1px var(--uhuu-tw-shadow-color,#0000001a), 0 2px 4px -2px var(--uhuu-tw-shadow-color,#0000001a);box-shadow:var(--uhuu-tw-inset-shadow), var(--uhuu-tw-inset-ring-shadow), var(--uhuu-tw-ring-offset-shadow), var(--uhuu-tw-ring-shadow), var(--uhuu-tw-shadow)}[data-uhuu-interactive] .uhuu\\:group-hover\\/remove-btn\\:block:is(:where(.uhuu\\:group\\/remove-btn):hover *),[data-uhuu-portal] .uhuu\\:group-hover\\/remove-btn\\:block:is(:where(.uhuu\\:group\\/remove-btn):hover *){display:block}[data-uhuu-interactive] .uhuu\\:group-hover\\/remove-btn\\:hidden:is(:where(.uhuu\\:group\\/remove-btn):hover *),[data-uhuu-portal] .uhuu\\:group-hover\\/remove-btn\\:hidden:is(:where(.uhuu\\:group\\/remove-btn):hover *){display:none}}[data-uhuu-interactive] .uhuu\\:peer-disabled\\:cursor-not-allowed:is(:where(.uhuu\\:peer):disabled~*),[data-uhuu-portal] .uhuu\\:peer-disabled\\:cursor-not-allowed:is(:where(.uhuu\\:peer):disabled~*){cursor:not-allowed}[data-uhuu-interactive] .uhuu\\:peer-disabled\\:opacity-70:is(:where(.uhuu\\:peer):disabled~*),[data-uhuu-portal] .uhuu\\:peer-disabled\\:opacity-70:is(:where(.uhuu\\:peer):disabled~*){opacity:.7}[data-uhuu-interactive] .uhuu\\:placeholder\\:text-gray-400::-moz-placeholder,[data-uhuu-portal] .uhuu\\:placeholder\\:text-gray-400::-moz-placeholder{color:var(--uhuu-color-gray-400)}[data-uhuu-interactive] .uhuu\\:placeholder\\:text-gray-400::placeholder,[data-uhuu-portal] .uhuu\\:placeholder\\:text-gray-400::placeholder{color:var(--uhuu-color-gray-400)}[data-uhuu-interactive] .uhuu\\:focus-within\\:border-gray-400:focus-within,[data-uhuu-portal] .uhuu\\:focus-within\\:border-gray-400:focus-within{border-color:var(--uhuu-color-gray-400)}[data-uhuu-interactive] .uhuu\\:focus-within\\:ring-2:focus-within,[data-uhuu-portal] .uhuu\\:focus-within\\:ring-2:focus-within{--uhuu-tw-ring-shadow:var(--uhuu-tw-ring-inset,) 0 0 0 calc(2px + var(--uhuu-tw-ring-offset-width)) var(--uhuu-tw-ring-color,currentcolor);box-shadow:var(--uhuu-tw-inset-shadow), var(--uhuu-tw-inset-ring-shadow), var(--uhuu-tw-ring-offset-shadow), var(--uhuu-tw-ring-shadow), var(--uhuu-tw-shadow)}[data-uhuu-interactive] .uhuu\\:focus-within\\:ring-gray-200:focus-within,[data-uhuu-portal] .uhuu\\:focus-within\\:ring-gray-200:focus-within{--uhuu-tw-ring-color:var(--uhuu-color-gray-200)}@media (hover:hover){[data-uhuu-interactive] .uhuu\\:hover\\:scale-105:hover,[data-uhuu-portal] .uhuu\\:hover\\:scale-105:hover{--uhuu-tw-scale-x:105%;--uhuu-tw-scale-y:105%;--uhuu-tw-scale-z:105%;scale:var(--uhuu-tw-scale-x) var(--uhuu-tw-scale-y)}[data-uhuu-interactive] .uhuu\\:hover\\:border-\\(--uhuu-thumbnail-border-strong\\):hover,[data-uhuu-portal] .uhuu\\:hover\\:border-\\(--uhuu-thumbnail-border-strong\\):hover{border-color:var(--uhuu-thumbnail-border-strong)}[data-uhuu-interactive] .uhuu\\:hover\\:border-gray-200:hover,[data-uhuu-portal] .uhuu\\:hover\\:border-gray-200:hover{border-color:var(--uhuu-color-gray-200)}[data-uhuu-interactive] .uhuu\\:hover\\:border-gray-400:hover,[data-uhuu-portal] .uhuu\\:hover\\:border-gray-400:hover{border-color:var(--uhuu-color-gray-400)}[data-uhuu-interactive] .uhuu\\:hover\\:bg-\\(--uhuu-shell-surface\\):hover,[data-uhuu-portal] .uhuu\\:hover\\:bg-\\(--uhuu-shell-surface\\):hover{background-color:var(--uhuu-shell-surface)}[data-uhuu-interactive] .uhuu\\:hover\\:bg-gray-50:hover,[data-uhuu-portal] .uhuu\\:hover\\:bg-gray-50:hover{background-color:var(--uhuu-color-gray-50)}[data-uhuu-interactive] .uhuu\\:hover\\:bg-gray-100:hover,[data-uhuu-portal] .uhuu\\:hover\\:bg-gray-100:hover,[data-uhuu-interactive] .uhuu\\:hover\\:bg-gray-100\\/80:hover,[data-uhuu-portal] .uhuu\\:hover\\:bg-gray-100\\/80:hover{background-color:var(--uhuu-color-gray-100)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:hover\\:bg-gray-100\\/80:hover,[data-uhuu-portal] .uhuu\\:hover\\:bg-gray-100\\/80:hover{background-color:color-mix(in oklab, var(--uhuu-color-gray-100) 80%, transparent)}}[data-uhuu-interactive] .uhuu\\:hover\\:bg-gray-200:hover,[data-uhuu-portal] .uhuu\\:hover\\:bg-gray-200:hover{background-color:var(--uhuu-color-gray-200)}[data-uhuu-interactive] .uhuu\\:hover\\:bg-gray-800:hover,[data-uhuu-portal] .uhuu\\:hover\\:bg-gray-800:hover{background-color:var(--uhuu-color-gray-800)}[data-uhuu-interactive] .uhuu\\:hover\\:bg-white:hover,[data-uhuu-portal] .uhuu\\:hover\\:bg-white:hover{background-color:var(--uhuu-color-white)}[data-uhuu-interactive] .uhuu\\:hover\\:text-gray-600:hover,[data-uhuu-portal] .uhuu\\:hover\\:text-gray-600:hover{color:var(--uhuu-color-gray-600)}[data-uhuu-interactive] .uhuu\\:hover\\:text-gray-900:hover,[data-uhuu-portal] .uhuu\\:hover\\:text-gray-900:hover{color:var(--uhuu-color-gray-900)}[data-uhuu-interactive] .uhuu\\:hover\\:opacity-100:hover,[data-uhuu-portal] .uhuu\\:hover\\:opacity-100:hover{opacity:1}[data-uhuu-interactive] .uhuu\\:hover\\:shadow-lg:hover,[data-uhuu-portal] .uhuu\\:hover\\:shadow-lg:hover{--uhuu-tw-shadow:0 10px 15px -3px var(--uhuu-tw-shadow-color,#0000001a), 0 4px 6px -4px var(--uhuu-tw-shadow-color,#0000001a);box-shadow:var(--uhuu-tw-inset-shadow), var(--uhuu-tw-inset-ring-shadow), var(--uhuu-tw-ring-offset-shadow), var(--uhuu-tw-ring-shadow), var(--uhuu-tw-shadow)}}[data-uhuu-interactive] .uhuu\\:focus\\:w-40:focus,[data-uhuu-portal] .uhuu\\:focus\\:w-40:focus{width:calc(var(--uhuu-spacing) * 40)}[data-uhuu-interactive] .uhuu\\:focus\\:border-gray-400:focus,[data-uhuu-portal] .uhuu\\:focus\\:border-gray-400:focus{border-color:var(--uhuu-color-gray-400)}[data-uhuu-interactive] .uhuu\\:focus\\:border-transparent:focus,[data-uhuu-portal] .uhuu\\:focus\\:border-transparent:focus{border-color:#0000}[data-uhuu-interactive] .uhuu\\:focus\\:bg-gray-100:focus,[data-uhuu-portal] .uhuu\\:focus\\:bg-gray-100:focus{background-color:var(--uhuu-color-gray-100)}[data-uhuu-interactive] .uhuu\\:focus\\:bg-red-50:focus,[data-uhuu-portal] .uhuu\\:focus\\:bg-red-50:focus{background-color:var(--uhuu-color-red-50)}[data-uhuu-interactive] .uhuu\\:focus\\:text-gray-900:focus,[data-uhuu-portal] .uhuu\\:focus\\:text-gray-900:focus{color:var(--uhuu-color-gray-900)}[data-uhuu-interactive] .uhuu\\:focus\\:text-red-700:focus,[data-uhuu-portal] .uhuu\\:focus\\:text-red-700:focus{color:var(--uhuu-color-red-700)}[data-uhuu-interactive] .uhuu\\:focus\\:ring-2:focus,[data-uhuu-portal] .uhuu\\:focus\\:ring-2:focus{--uhuu-tw-ring-shadow:var(--uhuu-tw-ring-inset,) 0 0 0 calc(2px + var(--uhuu-tw-ring-offset-width)) var(--uhuu-tw-ring-color,currentcolor);box-shadow:var(--uhuu-tw-inset-shadow), var(--uhuu-tw-inset-ring-shadow), var(--uhuu-tw-ring-offset-shadow), var(--uhuu-tw-ring-shadow), var(--uhuu-tw-shadow)}[data-uhuu-interactive] .uhuu\\:focus\\:ring-blue-400\\/30:focus,[data-uhuu-portal] .uhuu\\:focus\\:ring-blue-400\\/30:focus{--uhuu-tw-ring-color:var(--uhuu-color-blue-400)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu\\:focus\\:ring-blue-400\\/30:focus,[data-uhuu-portal] .uhuu\\:focus\\:ring-blue-400\\/30:focus{--uhuu-tw-ring-color:color-mix(in oklab, var(--uhuu-color-blue-400) 30%, transparent)}}[data-uhuu-interactive] .uhuu\\:focus\\:ring-blue-500:focus,[data-uhuu-portal] .uhuu\\:focus\\:ring-blue-500:focus{--uhuu-tw-ring-color:var(--uhuu-color-blue-500)}[data-uhuu-interactive] .uhuu\\:focus\\:ring-gray-200:focus,[data-uhuu-portal] .uhuu\\:focus\\:ring-gray-200:focus{--uhuu-tw-ring-color:var(--uhuu-color-gray-200)}[data-uhuu-interactive] .uhuu\\:focus\\:ring-gray-400:focus,[data-uhuu-portal] .uhuu\\:focus\\:ring-gray-400:focus{--uhuu-tw-ring-color:var(--uhuu-color-gray-400)}[data-uhuu-interactive] .uhuu\\:focus\\:ring-offset-0:focus,[data-uhuu-portal] .uhuu\\:focus\\:ring-offset-0:focus{--uhuu-tw-ring-offset-width:0px;--uhuu-tw-ring-offset-shadow:var(--uhuu-tw-ring-inset,) 0 0 0 var(--uhuu-tw-ring-offset-width) var(--uhuu-tw-ring-offset-color)}[data-uhuu-interactive] .uhuu\\:focus\\:ring-offset-2:focus,[data-uhuu-portal] .uhuu\\:focus\\:ring-offset-2:focus{--uhuu-tw-ring-offset-width:2px;--uhuu-tw-ring-offset-shadow:var(--uhuu-tw-ring-inset,) 0 0 0 var(--uhuu-tw-ring-offset-width) var(--uhuu-tw-ring-offset-color)}[data-uhuu-interactive] .uhuu\\:focus\\:outline-none:focus,[data-uhuu-portal] .uhuu\\:focus\\:outline-none:focus{--uhuu-tw-outline-style:none;outline-style:none}[data-uhuu-interactive] .uhuu\\:focus-visible\\:ring-2:focus-visible,[data-uhuu-portal] .uhuu\\:focus-visible\\:ring-2:focus-visible{--uhuu-tw-ring-shadow:var(--uhuu-tw-ring-inset,) 0 0 0 calc(2px + var(--uhuu-tw-ring-offset-width)) var(--uhuu-tw-ring-color,currentcolor);box-shadow:var(--uhuu-tw-inset-shadow), var(--uhuu-tw-inset-ring-shadow), var(--uhuu-tw-ring-offset-shadow), var(--uhuu-tw-ring-shadow), var(--uhuu-tw-shadow)}[data-uhuu-interactive] .uhuu\\:focus-visible\\:ring-gray-400:focus-visible,[data-uhuu-portal] .uhuu\\:focus-visible\\:ring-gray-400:focus-visible{--uhuu-tw-ring-color:var(--uhuu-color-gray-400)}[data-uhuu-interactive] .uhuu\\:focus-visible\\:ring-gray-900:focus-visible,[data-uhuu-portal] .uhuu\\:focus-visible\\:ring-gray-900:focus-visible{--uhuu-tw-ring-color:var(--uhuu-color-gray-900)}[data-uhuu-interactive] .uhuu\\:focus-visible\\:ring-offset-2:focus-visible,[data-uhuu-portal] .uhuu\\:focus-visible\\:ring-offset-2:focus-visible{--uhuu-tw-ring-offset-width:2px;--uhuu-tw-ring-offset-shadow:var(--uhuu-tw-ring-inset,) 0 0 0 var(--uhuu-tw-ring-offset-width) var(--uhuu-tw-ring-offset-color)}[data-uhuu-interactive] .uhuu\\:focus-visible\\:ring-offset-\\(--uhuu-shell-surface\\):focus-visible,[data-uhuu-portal] .uhuu\\:focus-visible\\:ring-offset-\\(--uhuu-shell-surface\\):focus-visible{--uhuu-tw-ring-offset-color:var(--uhuu-shell-surface)}[data-uhuu-interactive] .uhuu\\:focus-visible\\:outline-none:focus-visible,[data-uhuu-portal] .uhuu\\:focus-visible\\:outline-none:focus-visible{--uhuu-tw-outline-style:none;outline-style:none}[data-uhuu-interactive] .uhuu\\:active\\:cursor-grabbing:active,[data-uhuu-portal] .uhuu\\:active\\:cursor-grabbing:active{cursor:grabbing}[data-uhuu-interactive] .uhuu\\:disabled\\:pointer-events-none:disabled,[data-uhuu-portal] .uhuu\\:disabled\\:pointer-events-none:disabled{pointer-events:none}[data-uhuu-interactive] .uhuu\\:disabled\\:cursor-not-allowed:disabled,[data-uhuu-portal] .uhuu\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}[data-uhuu-interactive] .uhuu\\:disabled\\:opacity-40:disabled,[data-uhuu-portal] .uhuu\\:disabled\\:opacity-40:disabled{opacity:.4}[data-uhuu-interactive] .uhuu\\:disabled\\:opacity-50:disabled,[data-uhuu-portal] .uhuu\\:disabled\\:opacity-50:disabled{opacity:.5}[data-uhuu-interactive] .uhuu\\:data-\\[disabled\\]\\:pointer-events-none[data-disabled],[data-uhuu-portal] .uhuu\\:data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}[data-uhuu-interactive] .uhuu\\:data-\\[disabled\\]\\:opacity-50[data-disabled],[data-uhuu-portal] .uhuu\\:data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}[data-uhuu-interactive] .uhuu\\:data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked],[data-uhuu-portal] .uhuu\\:data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--uhuu-tw-translate-x:calc(var(--uhuu-spacing) * 4);translate:var(--uhuu-tw-translate-x) var(--uhuu-tw-translate-y)}[data-uhuu-interactive] .uhuu\\:data-\\[state\\=checked\\]\\:bg-\\(--uhuu-shell-on-inverse\\)[data-state=checked],[data-uhuu-portal] .uhuu\\:data-\\[state\\=checked\\]\\:bg-\\(--uhuu-shell-on-inverse\\)[data-state=checked]{background-color:var(--uhuu-shell-on-inverse)}[data-uhuu-interactive] .uhuu\\:data-\\[state\\=checked\\]\\:bg-gray-900[data-state=checked],[data-uhuu-portal] .uhuu\\:data-\\[state\\=checked\\]\\:bg-gray-900[data-state=checked]{background-color:var(--uhuu-color-gray-900)}[data-uhuu-interactive] .uhuu\\:data-\\[state\\=closed\\]\\:duration-300[data-state=closed],[data-uhuu-portal] .uhuu\\:data-\\[state\\=closed\\]\\:duration-300[data-state=closed]{--uhuu-tw-duration:.3s;transition-duration:.3s}[data-uhuu-interactive] .uhuu\\:data-\\[state\\=open\\]\\:bg-gray-100[data-state=open],[data-uhuu-portal] .uhuu\\:data-\\[state\\=open\\]\\:bg-gray-100[data-state=open]{background-color:var(--uhuu-color-gray-100)}[data-uhuu-interactive] .uhuu\\:data-\\[state\\=open\\]\\:duration-500[data-state=open],[data-uhuu-portal] .uhuu\\:data-\\[state\\=open\\]\\:duration-500[data-state=open]{--uhuu-tw-duration:.5s;transition-duration:.5s}[data-uhuu-interactive] .uhuu\\:data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked],[data-uhuu-portal] .uhuu\\:data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--uhuu-tw-translate-x:0px;translate:var(--uhuu-tw-translate-x) var(--uhuu-tw-translate-y)}[data-uhuu-interactive] .uhuu\\:data-\\[state\\=unchecked\\]\\:bg-gray-200[data-state=unchecked],[data-uhuu-portal] .uhuu\\:data-\\[state\\=unchecked\\]\\:bg-gray-200[data-state=unchecked]{background-color:var(--uhuu-color-gray-200)}@media (width>=40rem){[data-uhuu-interactive] .uhuu\\:sm\\:max-w-sm,[data-uhuu-portal] .uhuu\\:sm\\:max-w-sm{max-width:var(--uhuu-container-sm)}[data-uhuu-interactive] .uhuu\\:sm\\:flex-row,[data-uhuu-portal] .uhuu\\:sm\\:flex-row{flex-direction:row}[data-uhuu-interactive] .uhuu\\:sm\\:justify-end,[data-uhuu-portal] .uhuu\\:sm\\:justify-end{justify-content:flex-end}[data-uhuu-interactive] :where(.uhuu\\:sm\\:space-x-2>:not(:last-child)),[data-uhuu-portal] :where(.uhuu\\:sm\\:space-x-2>:not(:last-child)){--uhuu-tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--uhuu-spacing) * 2) * var(--uhuu-tw-space-x-reverse));margin-inline-end:calc(calc(var(--uhuu-spacing) * 2) * calc(1 - var(--uhuu-tw-space-x-reverse)))}[data-uhuu-interactive] .uhuu\\:sm\\:text-left,[data-uhuu-portal] .uhuu\\:sm\\:text-left{text-align:left}}@media print{.uhuu\\:print\\:transform-none{transform:none}}[data-uhuu-interactive] .uhuu\\:\\[\\&\\>button\\]\\:hidden>button,[data-uhuu-portal] .uhuu\\:\\[\\&\\>button\\]\\:hidden>button{display:none}[data-uhuu-interactive] [data-uhuu-editor],[data-uhuu-portal] [data-uhuu-editor],[data-uhuu-interactive] [data-uhuu-editor] [data-uhuu-paper],[data-uhuu-portal] [data-uhuu-editor] [data-uhuu-paper]{--uhuu-spacing:.25rem;--uhuu-font-sans:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--uhuu-default-font-family:var(--uhuu-font-sans);--uhuu-color-white:#fff;--uhuu-color-black:#000;--uhuu-color-red-50:oklch(97.1% .013 17.38);--uhuu-color-red-600:oklch(57.7% .245 27.325);--uhuu-color-red-700:oklch(50.5% .213 27.518);--uhuu-color-blue-50:oklch(97% .014 254.604);--uhuu-color-blue-100:oklch(93.2% .032 255.585);--uhuu-color-blue-200:oklch(88.2% .059 254.128);--uhuu-color-blue-300:oklch(80.9% .105 251.813);--uhuu-color-blue-400:oklch(70.7% .165 254.624);--uhuu-color-blue-500:oklch(62.3% .214 259.815);--uhuu-color-blue-600:oklch(54.6% .245 262.881);--uhuu-color-blue-700:oklch(48.8% .243 264.376);--uhuu-color-emerald-100:oklch(95% .052 163.051);--uhuu-color-emerald-600:oklch(59.6% .145 163.225);--uhuu-color-gray-50:oklch(98.5% .002 247.839);--uhuu-color-gray-100:oklch(96.7% .003 264.542);--uhuu-color-gray-200:oklch(92.8% .006 264.531);--uhuu-color-gray-300:oklch(87.2% .01 258.338);--uhuu-color-gray-400:oklch(70.7% .022 261.325);--uhuu-color-gray-500:oklch(55.1% .027 264.364);--uhuu-color-gray-600:oklch(44.6% .03 256.802);--uhuu-color-gray-700:oklch(37.3% .034 259.733);--uhuu-color-gray-800:oklch(27.8% .033 256.848);--uhuu-color-gray-900:oklch(21% .034 264.665);--uhuu-color-gray-950:oklch(13% .028 261.692);--uhuu-container-sm:24rem;--uhuu-container-md:28rem;--uhuu-text-xs:.75rem;--uhuu-text-xs--line-height:calc(1 / .75);--uhuu-text-sm:.875rem;--uhuu-text-sm--line-height:calc(1.25 / .875);--uhuu-text-base:1rem;--uhuu-text-base--line-height:calc(1.5 / 1);--uhuu-text-lg:1.125rem;--uhuu-text-lg--line-height:calc(1.75 / 1.125);--uhuu-font-weight-normal:400;--uhuu-font-weight-medium:500;--uhuu-font-weight-semibold:600;--uhuu-font-weight-bold:700;--uhuu-radius-sm:.25rem;--uhuu-radius-md:.375rem;--uhuu-radius-lg:.5rem;--uhuu-radius-xl:.75rem;--uhuu-shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--uhuu-shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--uhuu-shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--uhuu-shadow-xl:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--uhuu-shadow-2xl:0 25px 50px -12px #00000040;--uhuu-blur-sm:8px;--uhuu-blur-md:12px;--radius:.625rem;--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0);box-sizing:border-box}[data-uhuu-interactive] [data-uhuu-editor] *,[data-uhuu-portal] [data-uhuu-editor] *,[data-uhuu-interactive] [data-uhuu-editor] :before,[data-uhuu-portal] [data-uhuu-editor] :before,[data-uhuu-interactive] [data-uhuu-editor] :after,[data-uhuu-portal] [data-uhuu-editor] :after{box-sizing:border-box}[data-uhuu-interactive] .uhuu-page-options-trigger,[data-uhuu-portal] .uhuu-page-options-trigger{height:calc(var(--uhuu-spacing) * 7);width:calc(var(--uhuu-spacing) * 7);justify-content:center;align-items:center;gap:var(--uhuu-spacing);border-radius:var(--uhuu-radius-lg);background-color:var(--uhuu-color-gray-100);padding-inline:var(--uhuu-spacing);padding-block:calc(var(--uhuu-spacing) * .5);color:var(--uhuu-color-gray-600);display:flex}@media (hover:hover){[data-uhuu-interactive] .uhuu-page-options-trigger:hover,[data-uhuu-portal] .uhuu-page-options-trigger:hover{background-color:var(--uhuu-color-gray-100)}@supports (color:color-mix(in lab, red, red)){[data-uhuu-interactive] .uhuu-page-options-trigger:hover,[data-uhuu-portal] .uhuu-page-options-trigger:hover{background-color:color-mix(in oklab, var(--uhuu-color-gray-100) 80%, transparent)}}[data-uhuu-interactive] .uhuu-page-options-trigger:hover,[data-uhuu-portal] .uhuu-page-options-trigger:hover{color:var(--uhuu-color-gray-800)}}[data-uhuu-interactive] .uhuu-page-number,[data-uhuu-portal] .uhuu-page-number{font-size:var(--uhuu-text-sm);line-height:var(--uhuu-tw-leading,var(--uhuu-text-sm--line-height));color:var(--uhuu-color-gray-500)}[data-uhuu-interactive] .uhuu-page-order-grid-cols,[data-uhuu-portal] .uhuu-page-order-grid-cols{gap:calc(var(--uhuu-spacing) * 6);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}@media (width>=48rem){[data-uhuu-interactive] .uhuu-page-order-grid-cols,[data-uhuu-portal] .uhuu-page-order-grid-cols{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width>=64rem){[data-uhuu-interactive] .uhuu-page-order-grid-cols,[data-uhuu-portal] .uhuu-page-order-grid-cols{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width>=80rem){[data-uhuu-interactive] .uhuu-page-order-grid-cols,[data-uhuu-portal] .uhuu-page-order-grid-cols{grid-template-columns:repeat(6,minmax(0,1fr))}}[data-uhuu-interactive] .uhuu-page-drag-drop-grid-cols,[data-uhuu-portal] .uhuu-page-drag-drop-grid-cols{gap:calc(var(--uhuu-spacing) * 4);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}@media (width>=48rem){[data-uhuu-interactive] .uhuu-page-drag-drop-grid-cols,[data-uhuu-portal] .uhuu-page-drag-drop-grid-cols{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width>=64rem){[data-uhuu-interactive] .uhuu-page-drag-drop-grid-cols,[data-uhuu-portal] .uhuu-page-drag-drop-grid-cols{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width>=80rem){[data-uhuu-interactive] .uhuu-page-drag-drop-grid-cols,[data-uhuu-portal] .uhuu-page-drag-drop-grid-cols{grid-template-columns:repeat(6,minmax(0,1fr))}}@media (width>=96rem){[data-uhuu-interactive] .uhuu-page-drag-drop-grid-cols,[data-uhuu-portal] .uhuu-page-drag-drop-grid-cols{grid-template-columns:repeat(6,minmax(0,1fr))}}@media screen{body{background-color:var(--uhuu-color-neutral-50)}}@property --uhuu-tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --uhuu-tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --uhuu-tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --uhuu-tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --uhuu-tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --uhuu-tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --uhuu-tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --uhuu-tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --uhuu-tw-leading{syntax:"*";inherits:false}@property --uhuu-tw-font-weight{syntax:"*";inherits:false}@property --uhuu-tw-tracking{syntax:"*";inherits:false}@property --uhuu-tw-ordinal{syntax:"*";inherits:false}@property --uhuu-tw-slashed-zero{syntax:"*";inherits:false}@property --uhuu-tw-numeric-figure{syntax:"*";inherits:false}@property --uhuu-tw-numeric-spacing{syntax:"*";inherits:false}@property --uhuu-tw-numeric-fraction{syntax:"*";inherits:false}@property --uhuu-tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --uhuu-tw-shadow-color{syntax:"*";inherits:false}@property --uhuu-tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --uhuu-tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --uhuu-tw-inset-shadow-color{syntax:"*";inherits:false}@property --uhuu-tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --uhuu-tw-ring-color{syntax:"*";inherits:false}@property --uhuu-tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --uhuu-tw-inset-ring-color{syntax:"*";inherits:false}@property --uhuu-tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --uhuu-tw-ring-inset{syntax:"*";inherits:false}@property --uhuu-tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --uhuu-tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --uhuu-tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --uhuu-tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --uhuu-tw-blur{syntax:"*";inherits:false}@property --uhuu-tw-brightness{syntax:"*";inherits:false}@property --uhuu-tw-contrast{syntax:"*";inherits:false}@property --uhuu-tw-grayscale{syntax:"*";inherits:false}@property --uhuu-tw-hue-rotate{syntax:"*";inherits:false}@property --uhuu-tw-invert{syntax:"*";inherits:false}@property --uhuu-tw-opacity{syntax:"*";inherits:false}@property --uhuu-tw-saturate{syntax:"*";inherits:false}@property --uhuu-tw-sepia{syntax:"*";inherits:false}@property --uhuu-tw-drop-shadow{syntax:"*";inherits:false}@property --uhuu-tw-drop-shadow-color{syntax:"*";inherits:false}@property --uhuu-tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --uhuu-tw-drop-shadow-size{syntax:"*";inherits:false}@property --uhuu-tw-backdrop-blur{syntax:"*";inherits:false}@property --uhuu-tw-backdrop-brightness{syntax:"*";inherits:false}@property --uhuu-tw-backdrop-contrast{syntax:"*";inherits:false}@property --uhuu-tw-backdrop-grayscale{syntax:"*";inherits:false}@property --uhuu-tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --uhuu-tw-backdrop-invert{syntax:"*";inherits:false}@property --uhuu-tw-backdrop-opacity{syntax:"*";inherits:false}@property --uhuu-tw-backdrop-saturate{syntax:"*";inherits:false}@property --uhuu-tw-backdrop-sepia{syntax:"*";inherits:false}@property --uhuu-tw-duration{syntax:"*";inherits:false}@property --uhuu-tw-ease{syntax:"*";inherits:false}@property --uhuu-tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),:is([data-uhuu-chrome],[data-uhuu-chrome] *),:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)):after,:is([data-uhuu-chrome],[data-uhuu-chrome] *):after,:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)):before,:is([data-uhuu-chrome],[data-uhuu-chrome] *):before,:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::backdrop,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::file-selector-button,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),html:is([data-uhuu-chrome],[data-uhuu-chrome] *),:host:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),:host:is([data-uhuu-chrome],[data-uhuu-chrome] *){-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, 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:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),hr:is([data-uhuu-chrome],[data-uhuu-chrome] *){height:0;color:inherit;border-top-width:1px}abbr:where([title]):is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),abbr:where([title]):is([data-uhuu-chrome],[data-uhuu-chrome] *){text-decoration:underline dotted}h1:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),h1:is([data-uhuu-chrome],[data-uhuu-chrome] *),h2:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),h2:is([data-uhuu-chrome],[data-uhuu-chrome] *),h3:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),h3:is([data-uhuu-chrome],[data-uhuu-chrome] *),h4:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),h4:is([data-uhuu-chrome],[data-uhuu-chrome] *),h5:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),h5:is([data-uhuu-chrome],[data-uhuu-chrome] *),h6:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),h6:is([data-uhuu-chrome],[data-uhuu-chrome] *){font-size:inherit;font-weight:inherit}a:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),a:is([data-uhuu-chrome],[data-uhuu-chrome] *){color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),b:is([data-uhuu-chrome],[data-uhuu-chrome] *),strong:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),strong:is([data-uhuu-chrome],[data-uhuu-chrome] *){font-weight:bolder}code:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),code:is([data-uhuu-chrome],[data-uhuu-chrome] *),kbd:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),kbd:is([data-uhuu-chrome],[data-uhuu-chrome] *),samp:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),samp:is([data-uhuu-chrome],[data-uhuu-chrome] *),pre:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),pre:is([data-uhuu-chrome],[data-uhuu-chrome] *){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:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),small:is([data-uhuu-chrome],[data-uhuu-chrome] *){font-size:80%}sub:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),sub:is([data-uhuu-chrome],[data-uhuu-chrome] *),sup:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),sup:is([data-uhuu-chrome],[data-uhuu-chrome] *){vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),sub:is([data-uhuu-chrome],[data-uhuu-chrome] *){bottom:-.25em}sup:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),sup:is([data-uhuu-chrome],[data-uhuu-chrome] *){top:-.5em}table:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),table:is([data-uhuu-chrome],[data-uhuu-chrome] *){text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)):is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),:-moz-focusring:where(:not(iframe)):is([data-uhuu-chrome],[data-uhuu-chrome] *){outline:auto}progress:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),progress:is([data-uhuu-chrome],[data-uhuu-chrome] *){vertical-align:baseline}summary:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),summary:is([data-uhuu-chrome],[data-uhuu-chrome] *){display:list-item}ol:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),ol:is([data-uhuu-chrome],[data-uhuu-chrome] *),ul:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),ul:is([data-uhuu-chrome],[data-uhuu-chrome] *),menu:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),menu:is([data-uhuu-chrome],[data-uhuu-chrome] *){list-style:none}img:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),img:is([data-uhuu-chrome],[data-uhuu-chrome] *),svg:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),svg:is([data-uhuu-chrome],[data-uhuu-chrome] *),video:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),video:is([data-uhuu-chrome],[data-uhuu-chrome] *),canvas:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),canvas:is([data-uhuu-chrome],[data-uhuu-chrome] *),audio:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),audio:is([data-uhuu-chrome],[data-uhuu-chrome] *),iframe:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),iframe:is([data-uhuu-chrome],[data-uhuu-chrome] *),embed:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),embed:is([data-uhuu-chrome],[data-uhuu-chrome] *),object:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),object:is([data-uhuu-chrome],[data-uhuu-chrome] *){vertical-align:middle;display:block}img:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),img:is([data-uhuu-chrome],[data-uhuu-chrome] *),video:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),video:is([data-uhuu-chrome],[data-uhuu-chrome] *){max-width:100%;height:auto}button:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),button:is([data-uhuu-chrome],[data-uhuu-chrome] *),input:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),input:is([data-uhuu-chrome],[data-uhuu-chrome] *),select:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),select:is([data-uhuu-chrome],[data-uhuu-chrome] *),optgroup:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),optgroup:is([data-uhuu-chrome],[data-uhuu-chrome] *),textarea:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),textarea:is([data-uhuu-chrome],[data-uhuu-chrome] *){font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::file-selector-button,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::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:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),:where(select:is([multiple],[size])) optgroup:is([data-uhuu-chrome],[data-uhuu-chrome] *){font-weight:bolder}:where(select:is([multiple],[size])) optgroup option:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),:where(select:is([multiple],[size])) optgroup option:is([data-uhuu-chrome],[data-uhuu-chrome] *){padding-inline-start:20px}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::file-selector-button,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::file-selector-button{margin-inline-end:4px}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-moz-placeholder,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-moz-placeholder{opacity:1}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::placeholder,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-moz-placeholder,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-moz-placeholder{color:currentColor}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::placeholder,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-moz-placeholder,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-moz-placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::placeholder,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),textarea:is([data-uhuu-chrome],[data-uhuu-chrome] *){resize:vertical}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-search-decoration,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-search-decoration{-webkit-appearance:none}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-date-and-time-value,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-datetime-edit,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-datetime-edit{display:inline-flex}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-datetime-edit-fields-wrapper,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-datetime-edit-fields-wrapper{padding:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-datetime-edit,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-datetime-edit{padding-block:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-datetime-edit-year-field,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-datetime-edit-year-field{padding-block:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-datetime-edit-month-field,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-datetime-edit-month-field{padding-block:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-datetime-edit-day-field,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-datetime-edit-day-field{padding-block:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-datetime-edit-hour-field,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-datetime-edit-hour-field{padding-block:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-datetime-edit-minute-field,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-datetime-edit-minute-field{padding-block:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-datetime-edit-second-field,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-datetime-edit-second-field{padding-block:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-datetime-edit-millisecond-field,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-datetime-edit-millisecond-field{padding-block:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-datetime-edit-meridiem-field,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-datetime-edit-meridiem-field{padding-block:0}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-calendar-picker-indicator,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),:-moz-ui-invalid:is([data-uhuu-chrome],[data-uhuu-chrome] *){box-shadow:none}button:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),button:is([data-uhuu-chrome],[data-uhuu-chrome] *),input:where([type=button],[type=reset],[type=submit]):is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),input:where([type=button],[type=reset],[type=submit]):is([data-uhuu-chrome],[data-uhuu-chrome] *){-webkit-appearance:button;-moz-appearance:button;appearance:button}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::file-selector-button,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-inner-spin-button,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-inner-spin-button{height:auto}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *))::-webkit-outer-spin-button,:is([data-uhuu-chrome],[data-uhuu-chrome] *)::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])):is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),[hidden]:where(:not([hidden=until-found])):is([data-uhuu-chrome],[data-uhuu-chrome] *){display:none!important}:is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),:is([data-uhuu-chrome],[data-uhuu-chrome] *){font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit}:where([data-uhuu-editor],[data-uhuu-chrome]):not(:where([data-uhuu-editor] *,[data-uhuu-chrome] *)):is([data-uhuu-editor],[data-uhuu-editor] *,[data-uhuu-portal] *):not(:where([data-uhuu-paper],[data-uhuu-paper] *)),:where([data-uhuu-editor],[data-uhuu-chrome]):not(:where([data-uhuu-editor] *,[data-uhuu-chrome] *)):is([data-uhuu-chrome],[data-uhuu-chrome] *){font-family:var(--uhuu-font-sans,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-variant:normal;font-feature-settings:normal;font-variation-settings:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;text-indent:0;text-align:start;text-shadow:none;color:#000;font-size:1rem;font-style:normal;font-weight:400;font-stretch:100%;line-height:1.5}@layer base.uhuu-document{*,: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%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, 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]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration: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:where(:not(iframe)){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}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::-moz-placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}::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}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}[data-uhuu-reset=none]:not(#\\#),[data-uhuu-reset=none] :not(#\\#),[data-uhuu-reset=none]:not(#\\#):before,[data-uhuu-reset=none] :not(#\\#):before,[data-uhuu-reset=none]:not(#\\#):after,[data-uhuu-reset=none] :not(#\\#):after{all:revert-layer}}:root{--uhuu-shell-surface:#fff;--uhuu-shell-on-inverse:#fff;--uhuu-thumbnail-caption:#0006;--uhuu-thumbnail-border:oklch(92.8% .006 264.531);--uhuu-thumbnail-border-strong:oklch(87.2% .01 258.338)}@media screen{html[data-uhuu-appearance=dark] [data-uhuu-editor]{color-scheme:dark;color:oklch(98.5% 0 0);--uhuu-shell-surface:oklch(27.4% .006 286.033);--uhuu-shell-on-inverse:oklch(21% .006 285.885);--uhuu-thumbnail-caption:oklch(21% .006 285.885/.92);--uhuu-thumbnail-border:oklch(37% .013 285.805);--uhuu-thumbnail-border-strong:oklch(44.2% .017 285.786);--uhuu-color-gray-50:oklch(30% .006 286);--uhuu-color-gray-100:oklch(33% .007 286);--uhuu-color-gray-200:oklch(100% 0 0/.1);--uhuu-color-gray-300:oklch(100% 0 0/.15);--uhuu-color-gray-400:oklch(66% .015 286);--uhuu-color-gray-500:oklch(70.5% .015 286.067);--uhuu-color-gray-600:oklch(87.1% .006 286.286);--uhuu-color-gray-700:oklch(92% .004 286.32);--uhuu-color-gray-800:oklch(96.7% .001 286.375);--uhuu-color-gray-900:oklch(98.5% 0 0);--uhuu-color-gray-950:oklch(98.5% 0 0);--uhuu-color-blue-50:oklch(62.3% .214 259.815/.15);--uhuu-color-blue-100:oklch(62.3% .214 259.815/.25);--uhuu-color-blue-200:oklch(62.3% .214 259.815/.35);--uhuu-color-red-50:oklch(70.4% .191 22.216/.15);--uhuu-color-red-600:oklch(70.4% .191 22.216);--uhuu-color-red-700:oklch(80.8% .114 19.571);--uhuu-color-emerald-100:oklch(76.5% .177 163.223/.15);--uhuu-color-emerald-600:oklch(76.5% .177 163.223);--background:oklch(14.1% .005 285.823);--foreground:oklch(98.5% 0 0);--card:oklch(27.4% .006 286.033);--card-foreground:oklch(98.5% 0 0);--popover:oklch(27.4% .006 286.033);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(98.5% 0 0);--primary-foreground:oklch(21% .006 285.885);--secondary:oklch(33% .007 286);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(33% .007 286);--muted-foreground:oklch(70.5% .015 286.067);--accent:oklch(33% .007 286);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(70.4% .191 22.216);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.2% .016 285.938);--uhuu-shadow-sm:0 1px 3px 0 #0006, 0 1px 2px -1px #0006;--uhuu-shadow-md:0 4px 6px -1px #0006, 0 2px 4px -2px #0006;--uhuu-shadow-lg:0 10px 15px -3px #00000080, 0 4px 6px -4px #00000080}html[data-uhuu-appearance=dark] [data-uhuu-editor] [data-uhuu-paper]{color-scheme:light;color:initial;scrollbar-color:auto;--uhuu-shell-surface:#fff;--uhuu-shell-on-inverse:#fff}@layer base{html[data-uhuu-appearance=dark] [data-uhuu-editor],html[data-uhuu-appearance=dark] [data-uhuu-editor] :not([data-uhuu-paper],[data-uhuu-paper] *){border-color:oklch(100% 0 0/.1)}}html[data-uhuu-appearance=dark] body{background-color:oklch(24.5% .004 286)}html[data-uhuu-appearance=dark],html[data-uhuu-appearance=dark] .uhuu-zoom-pane{scrollbar-color:oklch(37% .013 285.805) transparent}html[data-uhuu-appearance=dark] [data-section-content]{scrollbar-color:auto}}:root{--uhuu-page-width:210mm;--uhuu-page-height:297mm;--uhuu-page-bleed:0mm;--uhuu-page-background:var(--background,#fff);--uhuu-outline-color:var(--outline-color,#d1d5db);--uhuu-sheet-width:calc(var(--uhuu-page-width) + 2 * var(--uhuu-page-bleed));--uhuu-sheet-height:calc(var(--uhuu-page-height) + 2 * var(--uhuu-page-bleed));--uhuu-spine-width:0mm;--uhuu-glue-width:0mm;--uhuu-paper-color:#fff}@page{size:var(--uhuu-sheet-width) var(--uhuu-sheet-height);margin:0}@media print{body>section[aria-live],body>next-route-announcer{display:none!important}}.uhuu-page-break-inside-avoid{page-break-inside:avoid;break-inside:avoid-page}.uhuu-page-break-after{page-break-after:always;break-inside:avoid-page;-moz-column-break-after:page;break-after:page}.uhuu-page-break-before{page-break-before:always;break-inside:avoid-page;-moz-column-break-before:page;break-before:page}html,body{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;-webkit-print-color-adjust:exact;print-color-adjust:exact}.uhuu-page-sheet{width:calc(var(--uhuu-page-width) + 2 * var(--uhuu-page-bleed));height:calc(var(--uhuu-page-height) + 2 * var(--uhuu-page-bleed));min-width:calc(var(--uhuu-page-width) + 2 * var(--uhuu-page-bleed));padding:var(--uhuu-page-bleed);background-color:var(--uhuu-page-background);box-sizing:border-box;break-inside:avoid-page;page-break-inside:avoid;margin-inline:auto;position:relative;overflow:hidden}.uhuu-page-sheet.uhuu-cover-spread{width:var(--uhuu-sheet-width);height:var(--uhuu-sheet-height);min-width:var(--uhuu-sheet-width);flex-direction:row;align-items:stretch;padding:0;display:flex}.uhuu-spread-panel{width:calc(var(--uhuu-page-width) + var(--uhuu-page-bleed));flex:none;height:100%;position:relative;overflow:hidden}.uhuu-cover-spread .uhuu-page-sheet--panel{box-shadow:none;outline:none;margin:0}.uhuu-spread-panel[data-side=right] .uhuu-page-sheet--panel{margin-left:calc(-1 * var(--uhuu-page-bleed))}.uhuu-spread-spine{width:var(--uhuu-spine-width);flex:none;height:100%;position:relative;overflow:hidden}.uhuu-spread-spine[data-blank=true]{background-color:var(--uhuu-paper-color)}.uhuu-glue-zone{width:var(--uhuu-glue-width);background-color:var(--uhuu-paper-color);pointer-events:none;z-index:2;position:absolute;top:0;bottom:0}.uhuu-glue-zone[data-side=left]{left:calc(var(--uhuu-page-bleed) + var(--uhuu-page-width) - var(--uhuu-glue-width))}.uhuu-glue-zone[data-side=right]{left:calc(var(--uhuu-page-bleed) + var(--uhuu-page-width) + var(--uhuu-spine-width))}@media print{.uhuu-screen-only{display:none!important}}@media screen{.uhuu-bleed-area{top:var(--uhuu-page-bleed);left:var(--uhuu-page-bleed);right:var(--uhuu-page-bleed);bottom:var(--uhuu-page-bleed);pointer-events:none;outline-style:var(--uhuu-tw-outline-style);outline-width:1px;outline-color:var(--uhuu-outline-color);--uhuu-tw-outline-style:dashed;outline-style:dashed;position:absolute}.uhuu-page-sheet{margin-bottom:calc(var(--spacing,.25rem) * 6);outline-style:var(--uhuu-tw-outline-style);outline-width:1px;outline-color:var(--uhuu-outline-color);flex-shrink:0}.uhuu-spread-guide{pointer-events:none;outline-style:var(--uhuu-tw-outline-style);outline-offset:calc(1px * -1);outline-width:1px;outline-color:var(--uhuu-outline-color);--uhuu-tw-outline-style:dashed;background-image:repeating-linear-gradient(45deg,#0000001f 0 1px,#0000 1px 5px);outline-style:dashed;position:absolute;inset:0}.uhuu-spread-guide:after{content:attr(data-label);white-space:nowrap;letter-spacing:.04em;color:#6b7280;background:#ffffffd9;border-radius:2px;padding:1px 4px;font:500 7pt/1 ui-sans-serif,system-ui,sans-serif;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)rotate(-90deg)}.uhuu-pagination.horizontal_pages{justify-content:center;gap:calc(var(--spacing,.25rem) * 6);display:flex;overflow-x:auto;width:fit-content!important;min-width:fit-content!important}.uhuu-pagination.two_pages{width:calc(var(--uhuu-page-width) * 2 + 4 * var(--uhuu-page-bleed));flex-wrap:wrap;justify-content:center;margin:0 auto;display:flex}.uhuu-pagination.two_pages .uhuu-page-sheet{flex-shrink:0}.uhuu-pagination.two_pages .uhuu-page-sheet:first-child{margin-left:calc(var(--uhuu-page-width) + 2 * var(--uhuu-page-bleed))}.uhuu-pagination.two_pages .uhuu-page-sheet:nth-child(odd):not(:first-child){margin-right:0}.uhuu-pagination.two_pages .uhuu-page-sheet:nth-child(2n):not(:first-child){margin-left:0}}.uhuu-image-container{overflow:hidden;position:absolute!important}.uhuu-image-inner{width:100%;height:100%;position:relative;overflow:hidden}.uhuu-image-inner .cover-image{width:100%;height:100%;max-width:none!important;max-height:none!important}.uhuu-image-inner .cover-image.object-cover{-o-object-fit:cover;object-fit:cover}.uhuu-image-inner .cover-image.object-contain{-o-object-fit:contain;object-fit:contain}.uhuu-image-inner .cover-image.object-fill{-o-object-fit:fill;object-fit:fill}.uhuu-image-inner .cover-image.object-center{-o-object-position:center;object-position:center}.uhuu-image-inner .cover-image.object-top{-o-object-position:top;object-position:top}.uhuu-image-inner .cover-image.object-bottom{-o-object-position:bottom;object-position:bottom}.uhuu-image-inner .cover-image.object-left{-o-object-position:left;object-position:left}.uhuu-image-inner .cover-image.object-right{-o-object-position:right;object-position:right}.uhuu-image-inner .cover-image.object-left-top{-o-object-position:left top;object-position:left top}.uhuu-image-inner .cover-image.object-right-top{-o-object-position:right top;object-position:right top}.uhuu-image-inner .cover-image.object-left-bottom{-o-object-position:left bottom;object-position:left bottom}.uhuu-image-inner .cover-image.object-right-bottom{-o-object-position:right bottom;object-position:right bottom}@media screen{[data-uhuu-interactive] .uhuu-zoom-pane,[data-uhuu-portal] .uhuu-zoom-pane{overscroll-behavior:contain;max-height:100%;overflow:auto}[data-uhuu-interactive] .uhuu-zoom-pane-content,[data-uhuu-portal] .uhuu-zoom-pane-content{overflow-anchor:none;width:max-content;margin:auto;padding:0 24px 64px}}@media print{.uhuu-zoom-pane{height:auto;max-height:none;overflow:visible}.uhuu-zoom-pane-content{width:auto;padding:0}}@media screen{[data-uhuu-interactive] .group_two_pages,[data-uhuu-portal] .group_two_pages{flex-direction:column;align-items:center;gap:24px;width:max-content;margin:0 auto;display:flex}[data-uhuu-interactive] .group_two_pages>.two-pages-pair,[data-uhuu-portal] .group_two_pages>.two-pages-pair{width:var(--uhuu-group-pair-width,-moz-max-content);width:var(--uhuu-group-pair-width,max-content);grid-template-columns:1fr 1fr;gap:0;margin:0 auto;display:grid}[data-uhuu-interactive] .group_two_pages>.two-pages-pair>[class*=group\\/section],[data-uhuu-portal] .group_two_pages>.two-pages-pair>[class*=group\\/section]{flex-direction:column;flex-shrink:0;display:flex}[data-uhuu-interactive] .group_two_pages>.two-pages-pair--spread>[class*=group\\/section]:first-child,[data-uhuu-portal] .group_two_pages>.two-pages-pair--spread>[class*=group\\/section]:first-child{justify-self:end}[data-uhuu-interactive] .group_two_pages>.two-pages-pair--spread>[class*=group\\/section]:last-child,[data-uhuu-portal] .group_two_pages>.two-pages-pair--spread>[class*=group\\/section]:last-child{justify-self:start}[data-uhuu-interactive] .group_two_pages>.two-pages-pair--right>[class*=group\\/section],[data-uhuu-portal] .group_two_pages>.two-pages-pair--right>[class*=group\\/section]{grid-column:2;justify-self:start}[data-uhuu-interactive] .group_two_pages>.two-pages-pair--left>[class*=group\\/section],[data-uhuu-portal] .group_two_pages>.two-pages-pair--left>[class*=group\\/section]{grid-column:1;justify-self:end}}
3
3
  /*$vite$:1*/`,{styleId:`uhuu-components-styles`})})();(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("react"),require("react/jsx-runtime"),require("react-dom")):typeof define==`function`&&define.amd?define([`exports`,`react`,`react/jsx-runtime`,`react-dom`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.UhuuComponents={},e.React,e.jsxRuntime,e.ReactDOM))})(this,function(e,t,n,r){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t)=>{let n={};for(var r in e)a(n,r,{get:e[r],enumerable:!0});return t||a(n,Symbol.toStringTag,{value:`Module`}),n},d=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=s(t),c=0,u=i.length,d;c<u;c++)d=i[c],!l.call(e,d)&&d!==n&&a(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=o(t,d))||r.enumerable});return e},f=(e,t,n)=>(n=e==null?{}:i(c(e)),d(t||!e||!e.__esModule||!l.call(e,`default`)?a(n,`default`,{value:e,enumerable:!0}):n,e));let p=f(t,1);t=f(t),r=f(r,1);var m=class{static setupPageStyles(e){if(!e||typeof document>`u`)return;let t=document.createElement(`link`);return t.rel=`stylesheet`,t.href=e,document.head.appendChild(t),t}static removePageStyles(e){e&&typeof document<`u`&&document?.head.removeChild(e)}},h=400;function g(e){let t=typeof e==`string`&&e.trim()!==``?Number(e):e;return typeof t==`number`&&Number.isFinite(t)?t:null}function _(e){return Math.round(e*1e4)/1e4}function v(e){if(!e||typeof e!=`object`||e.type===`saddle`)return null;let t=g(e.spine);if(t===null||t<=0)return null;let n=g(e.glue);return{type:`perfect`,spine:_(t),glue:n===null||n<0?0:_(n)}}function y(e={}){let t=g(e.width),n=g(e.height);if(t===null||n===null||t<=0||n<=0)return null;let r=g(e.bleed);return{width:_(t),height:_(n),bleed:r===null?0:_(Math.min(Math.max(r,0),h))}}function b(e={}){let t=y(e);if(!t)return null;let n=v(e.binding),r=n?t.width*2+n.spine:t.width,i=t.height;return{trimWidth:_(r),trimHeight:_(i),width:_(r+t.bleed*2),height:_(i+t.bleed*2),spread:!!n}}function x(e){return Array.isArray(e)?e.length===2?[{sheet:`outer`,left:e[1],right:e[0]}]:e.length===4?[{sheet:`outer`,left:e[3],right:e[0]},{sheet:`inner`,left:e[1],right:e[2]}]:null:null}function S(e={}){let t=y(e),n=v(e.binding),r=x(e.coverPages);if(!t||!n||!r)return null;let{width:i,height:a,bleed:o}=t,{spine:s,glue:c}=n,l=_(a+o*2),u=_(i*2+s),d=_(u+o*2),f=_(o+i),p=_(o+i+s),m=e=>({side:`left`,page:e,trim:{x:o,y:o,width:i,height:a},bleedBox:{x:0,y:0,width:_(o+i),height:l}}),h=e=>({side:`right`,page:e,trim:{x:p,y:o,width:i,height:a},bleedBox:{x:p,y:0,width:_(i+o),height:l}}),g=r.map((e,t)=>{let n=e.sheet===`inner`,r=n&&c>0?[{side:`left`,x:_(f-c),y:0,width:c,height:l},{side:`right`,x:p,y:0,width:c,height:l}]:[];return{sheet:e.sheet,index:t,panels:[m(e.left),h(e.right)],spine:{x:f,y:0,width:s,height:l,blank:n},glueZones:r}});return{binding:n,page:t,sheet:{width:d,height:l,trimWidth:u,trimHeight:a},sheets:g}}function C(e={}){let t=b(e);if(!t)return null;let n=v(e.binding);return{"--uhuu-sheet-width":`${t.width}mm`,"--uhuu-sheet-height":`${t.height}mm`,"--uhuu-spine-width":`${n?n.spine:0}mm`,"--uhuu-glue-width":`${n?n.glue:0}mm`}}function w(e={}){let t=v(e.binding);if(!t)return[];let n=[],r=y(e),i=g(e.coverPageCount);return r||n.push(`binding.spine is set but the page format has no valid width/height; cover spread skipped.`),i!==null&&i!==1&&i!==2&&n.push(`binding.spine is set but pageFilter.coverPageCount is ${i}; a cover spread needs 1 (outer sheet only) or 2 (outer + inner). Rendering plain cover pages.`),Array.isArray(e.coverPages)&&!x(e.coverPages)&&n.push(`binding.spine is set but the cover filter produced ${e.coverPages.length} page(s); a cover spread needs 2 or 4. Rendering plain cover pages.`),r&&t.glue>0&&t.glue>=r.width/2&&n.push(`binding.glue (${t.glue}mm) is at least half the page width (${r.width}mm); the glue mask would hide most of the inside covers.`),r&&r.bleed>0&&t.spine<r.bleed&&n.push(`binding.spine (${t.spine}mm) is narrower than the bleed (${r.bleed}mm); panels are cut at the spine, so artwork will not run across it unless the spine component paints it.`),e.preview===`two_pages`&&n.push(`preview "two_pages" is ignored while a cover spread is active; each sheet is already a spread.`),g(e.flowCoverPages)>0&&n.push(`a cover page has hasFlow: true; only its first chunk is placed on the cover sheet.`),n}var T=class{static PAGE_SIZES={A0:{width:841,height:1189},A1:{width:594,height:841},A2:{width:420,height:594},A3:{width:297,height:420},A4:{width:210,height:297},A5:{width:148,height:210},A6:{width:105,height:148},B0:{width:1e3,height:1414},B1:{width:707,height:1e3},B2:{width:500,height:707},B3:{width:353,height:500},B4:{width:250,height:353},B5:{width:176,height:250},B6:{width:125,height:176},C0:{width:917,height:1297},C1:{width:648,height:917},C2:{width:458,height:648},C3:{width:324,height:458},C4:{width:229,height:324},C5:{width:162,height:229},C6:{width:114,height:162},LETTER:{width:216,height:279},LEGAL:{width:216,height:356},TABLOID:{width:279,height:432},LEDGER:{width:432,height:279}};static getStandardFormats(){return[`Custom`,`A3`,`A4`,`A5`,`LETTER`,`LEGAL`]}static getDimensions({format:e,orientation:t=`portrait`}){let n=this.PAGE_SIZES[e.toUpperCase()];return n?t===`landscape`?{width:n.height,height:n.width}:{width:n.width,height:n.height}:null}static mmToPx(e,t=72){return e*t/25.4}static getDimensionsInPx({format:e,orientation:t=`portrait`,dpi:n=72}){let r=this.getDimensions({format:e,orientation:t});return r?{width:this.mmToPx(r.width,n),height:this.mmToPx(r.height,n)}:null}static hasFormat(e){return e.toUpperCase()in this.PAGE_SIZES}static getAvailableFormats(){return Object.keys(this.PAGE_SIZES)}static toValidCustomDimension(e){let t=typeof e==`string`&&e.trim()!==``?Number(e):e;return typeof t==`number`&&Number.isFinite(t)&&t>10&&t<4e3?t:null}static resolveDimensions(e={}){let{format:t,orientation:n,width:r,height:i}=e,a=typeof t==`string`?t:``,o=!a||a.toLowerCase()===`custom`,s=this.toValidCustomDimension(r),c=this.toValidCustomDimension(i);if(o&&s!==null&&c!==null)return{width:s,height:c};let l=o?`A4`:a;return this.getDimensions({format:l||`A4`,orientation:n})??this.getDimensions({format:`A4`,orientation:n})??{width:210,height:297}}static clampBleed(e){return Math.min(Math.max(e??0,0),400)}static resolveCssVars(e={}){let t=this.resolveDimensions(e),n=this.clampBleed(e.bleed),r={"--uhuu-page-width":`${t.width}mm`,"--uhuu-page-height":`${t.height}mm`,"--uhuu-page-bleed":`${n}mm`},i=C({...t,bleed:n,binding:e.binding});return i?{...r,...i}:r}static pageParams(e,t={}){let{format:n,orientation:r,bleed:i,showBleed:a,printCssRaw:o,printCssUrl:s,preview:c,binding:l}=t,u=this.resolveDimensions(t),d=this.resolveCssVars(t);if(typeof document<`u`)for(let[e,t]of Object.entries(d))document.documentElement.style.setProperty(e,t);return{page:{paginationType:e,format:n,orientation:r,bleed:i,width:u?.width,height:u?.height,preview:c,showBleed:a,printCssRaw:o,printCssUrl:s,binding:v(l),sheet:b({...u,bleed:this.clampBleed(i),binding:l})}}}},E=(0,p.createContext)(null),D=({config:e,children:t})=>(0,n.jsx)(E.Provider,{value:e,children:t}),O=`data-uhuu-pagination`;function k(e,t){let n=Object.keys(t??{}).sort().map(e=>{let n=t[e]?.signatures??{};return`${e}=${Object.keys(n).sort().map(e=>`${e}:${n[e]}`).join(`,`)}`});return`${e.join(`|`)}#${n.join(`;`)}`}function A({doc:e,settleMs:t=50}={}){let n=new Map,r=new Set,i=()=>{let t=(e??(typeof document>`u`?void 0:document))?.documentElement;if(!t)return;let i=[...n.values()].map(e=>e.state);if(!i.length){t.removeAttribute(O);return}let a=r.size||i.includes(`measuring`)?`measuring`:i.includes(`error`)?`error`:`settled`;t.getAttribute(`data-uhuu-pagination`)!==a&&t.setAttribute(O,a)};return{hold({label:e=`A pagination hold`,waitMs:t}={}){let a=Symbol();r.add(a),i();let o=null,s=()=>{if(clearTimeout(o),r.delete(a)){for(let e of n.values())e.refresh();i()}};return Number.isFinite(t)&&(o=setTimeout(()=>{console.warn(`[uhuu-components] ${e} has held pagination for ${Math.round(t/1e3)} s; the document stops waiting for it.`),s()},t)),s},createScope(){let e=Symbol(),r=new Set,a=null,o=null,s=!1,c={state:`measuring`,refresh:()=>{for(let e of r)e.remeasure?.();d()}},l=t=>{s&&(c.state=t,n.set(e,c),i())},u=e=>!!e.measurement&&a.layouts[e.pageKey]?.signatures?.[e.measurement.flowId]===e.measurement.signature,d=()=>{if(clearTimeout(o),o=null,!s)return;let e=[...r].filter(e=>a?.pageKeys.has(e.pageKey)),n=new Set(e.map(e=>e.pageKey)),i=!a||e.some(e=>e.jobs.size>0)||[...a.pageKeys].some(e=>!n.has(e))||e.some(e=>!e.failure&&!u(e));l(`measuring`),!i&&(o=setTimeout(()=>{o=null,l(e.some(e=>e.failure)?`error`:`settled`)},t))};return{commit(e,t){let n=[...e],r=k(n,t);s&&a?.signature===r||(a={pageKeys:new Set(n),layouts:t,signature:r},s=!0,d())},suspend(){a=null,d()},unmount(){s=!1,a=null,clearTimeout(o),o=null,n.delete(e),i()},registerArea(e,{remeasure:t}={}){let n={pageKey:e,remeasure:t,jobs:new Set,measurement:null,failure:null};return r.add(n),d(),{begin(){let e=Symbol();return n.jobs.add(e),d(),()=>{n.jobs.delete(e)&&d()}},measured(e,t=null){let r=n.failure===t&&n.measurement?.flowId===e?.flowId&&n.measurement?.signature===e?.signature;n.measurement=e,n.failure=t,r||d()},fail(e){n.failure!==e&&(n.failure=e,d())},clear(){(n.measurement||n.failure)&&(n.measurement=null,n.failure=null,d())},dispose(){r.delete(n),d()}}}}}}}var j=A(),M=p.default.createContext(!1),N=typeof window>`u`?p.useEffect:p.useLayoutEffect;function P(e){let[t]=(0,p.useState)(()=>e?j.createScope():null);N(()=>(t?.commit([],{}),()=>t?.suspend()),[t]),(0,p.useEffect)(()=>()=>t?.unmount(),[t])}var F=({children:e,className:t,setup:r})=>{let i=T.pageParams(`static`,r);P(!p.default.useContext(M)),(0,p.useEffect)(()=>{let e=m.setupPageStyles(i?.page?.printCssUrl);return()=>{e&&m.removePageStyles(e)}},[r,i?.page?.printCssUrl]);let a=[`uhuu-pagination`,t,i?.page?.preview].filter(Boolean).join(` `);return(0,n.jsx)(D,{config:i,children:(0,n.jsx)(`div`,{className:a,children:e})})},I=(0,p.forwardRef)(({children:e,className:t=``,style:r,pageNo:i,overlay:a,showBleed:o,"data-page-key":s},c)=>{let l=(0,p.useContext)(E),u=o??l?.page?.showBleed??!1;return(0,n.jsxs)(`div`,{className:`uhuu-page-sheet ${t}`,style:r,ref:c,"data-page-key":s,children:[e,a&&a({pageNo:i}),u&&(0,n.jsx)(`div`,{className:`uhuu-bleed-area`})]})});I.displayName=`Sheet`;function L(){if(typeof window<`u`){let e=window.location.hostname;return e===`localhost`||e===`127.0.0.1`||e.endsWith(`.local`)||window.location.port!==``}return!1}function R(e,{fallbackMs:t=100,win:n}={}){let r=n??(typeof window>`u`?void 0:window),i=!1,a=null,o=null,s=()=>{a!==null&&r?.cancelAnimationFrame?.(a),o!==null&&clearTimeout(o),a=null,o=null},c=()=>{i||(i=!0,s(),e())};return r?.document?.visibilityState!==`hidden`&&typeof r?.requestAnimationFrame==`function`?(a=r.requestAnimationFrame(c),o=setTimeout(c,t)):o=setTimeout(c,0),()=>{i=!0,s()}}var ee=1e4;function te(e,{begin:t,onReady:n,doc:r=e.ownerDocument,waitMs:i=ee}){let a=new Map,o=r?.fonts,s=!1,c=null,l=e=>{let n=t(),r=setTimeout(()=>{n(),console.warn(`[uhuu-components] ${e} is still loading after ${Math.round(i/1e3)} s; pagination stops waiting for it and measures again if it arrives.`)},i);return()=>{clearTimeout(r),n()}},u=()=>{if(s||!o||o.status!==`loading`||c)return;c=l(`A web font`);let e=()=>{s||(n(),c?.(),c=null)};o.ready.then(e,e)};o?.addEventListener(`loading`,u),u();let d=()=>{for(let[t,n]of a)(!e.contains(t)||t.complete)&&n();for(let t of e.querySelectorAll(`img`)){if(t.loading===`lazy`&&(t.loading=`eager`),t.complete||a.has(t))continue;let e=l(`Image ${t.currentSrc||t.src||`(no src)`}`),r=()=>{t.removeEventListener(`load`,i),t.removeEventListener(`error`,i),a.delete(t),e()},i=()=>{s||n(),r()};a.set(t,r),t.addEventListener(`load`,i),t.addEventListener(`error`,i)}u()};return d(),{sync:d,disconnect(){s=!0,o?.removeEventListener(`loading`,u),c?.(),c=null;for(let e of a.values())e()}}}function z(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?e:0}function B(e){return typeof e==`string`&&e?e:null}function ne(e){return typeof e==`number`&&Number.isFinite(e)?Math.max(0,Math.floor(e)):+!!e}function re({itemIndex:e=-1,fragmentIndexes:t=[],groupKeys:n=[],pageIndex:r=0,pageCount:i=1,itemCount:a=0,previousSourceIndex:o,fragmentIndex:s}={}){let c=Number.isInteger(s)?s:t.indexOf(e),l=B(n[e]),u=c>0?t[c-1]:null,d=u===null?null:B(n[u]),f=c>0?t[c-1]:o??(e>0?e-1:null),p=f===null?null:B(n[f]),m=!!(l&&p!==l),h=!!(l&&d!==l);return{pageIndex:r,pageCount:i,itemIndex:e,fragmentIndex:c,groupKey:l??void 0,isFirst:e===0,isLast:a>0&&e===a-1,isFirstInFragment:c===0,isLastInFragment:c>=0&&c===t.length-1,isFirstInGroup:m,isFirstInGroupOnPage:h,isContinuation:r>0,isGroupContinuation:!(!h||m||p!==l)}}function V(){return{scannedItems:0,chunkerCalls:0,freshPageAttempts:0,pages:0}}function ie({heights:e=[],keys:t=[],metas:n=[],availableHeight:r=0,continuationHeight:i,headerGroupKeys:a=[],headerGroupHeights:o={},headerGroupRepeats:s={},previousHeaderGroupKey:c,onUnplaceableItem:l,window:u,maxChunks:d=0,metrics:f}={}){let p=u?.indexes,m=u?.offset??0,h=p?Math.max(0,p.length-m):e.length,g=p?e=>p[m+e]:e=>e,_=z(r)||1/0,v=z(i)||_,y=[{indexes:[],keys:[]}],b=0,x=()=>y.length>1?v:_,S=()=>y[y.length-1],C=()=>{let e=S().indexes;return e.length?e[e.length-1]:null},w=()=>S().indexes.length>0||!!S().unplaceable,T=e=>B(a[g(e)]),E=e=>z(o[e]??0),D=e=>s[e]!==!1,O=(e,t)=>{let n=T(e);return n?t==null?(e>0?T(e-1):B(c))!==n||D(n):T(t)!==n:!1},k=(t,n)=>{let r=T(t);return z(e[g(t)])+(r&&O(t,n)?E(r):0)},A=e=>{let t=n[g(e)]??{};return t.avoidBreakInside&&t.groupKey?t.groupKey:null},j=(e,t,n)=>{let r=0,i=n;for(let n=e;n<h&&A(n)===t;n+=1)f&&(f.scannedItems+=1),r+=k(n,i),i=n;return r},M=(e,t,{currentHeight:n,ownHeight:r,stopEarly:i}={})=>{let a=0,o=e;for(let s=1;s<=t;s+=1){let t=e+s;if(t>=h||(f&&(f.scannedItems+=1),a+=k(t,o),i&&n+(r+a)>x()))break;o=t}return a},N=()=>{w()&&(y.push({indexes:[],keys:[]}),b=0)},P=(e,n,r)=>{let i=t[g(e)]??String(g(e)),a=T(e)??void 0,o=a&&O(e,null)?E(a):0,s={index:e,key:i,height:n,headerHeight:o,requiredHeight:r,availableHeight:x(),groupKey:a,reason:o>0?`item-with-header-too-tall`:`item-too-tall`};S().unplaceable=s,l?.(s),y.push({indexes:[],keys:[]}),b=0};for(let r=0;r<h&&!(d&&y.length>d);r+=1){f&&(f.scannedItems+=1);let i=n[g(r)]??{},a=z(e[g(r)]),o=t[g(r)]??String(g(r));i.breakBefore&&N();let s=A(r),c=r>0?A(r-1):null;s&&s!==c&&w()&&b+j(r,s,C())>x()&&N();let l=C(),u=k(r,l);if(w()&&u>x()-b&&(N(),l=null,u=k(r,l)),u>x()){P(r,a,u);continue}let d=w(),p=d?M(r,ne(i.keepWithNext),{currentHeight:b,ownHeight:u,stopEarly:Number.isFinite(x())}):0,m=u+p;d&&b+m>x()&&(N(),l=null,u=k(r,l),u>x())?P(r,a,u):(S().indexes.push(r),S().keys.push(o),b+=u,i.breakAfter&&r<h-1&&N())}let F=y.filter(e=>e.indexes.length>0||!!e.unplaceable);if(!F.length)return f&&!d&&(f.pages=1),[{indexes:[],keys:[]}];let I=d?F.slice(0,d):F;return f&&!d&&(f.pages=I.length),I.map(e=>{if(!e.indexes.length)return e;let t=[];for(let n=0;n<e.indexes.length;n+=1){let r=e.indexes[n],i=T(r),a=n>0?e.indexes[n-1]:null;if(!i||!O(r,a))continue;let o=r>0?T(r-1):null;t.push({groupKey:i,itemIndex:r,isContinuation:o===i})}return t.length?{...e,groupHeaders:t}:e})}function ae(e,t,n){return(e.indexes??[]).reduce((e,n)=>e+z(t[n]),0)+(e.groupHeaders??[]).reduce((e,t)=>e+z(n[t.groupKey]),0)}function oe(e,t,n){return!t||!n?e:{...e,headerGroupHeights:e.columnHeaderGroupHeights?.[t]?.[n]??e.headerGroupHeights,headerGroupRepeats:e.columnHeaderGroupRepeats?.[t]?.[n]??e.headerGroupRepeats}}function se(e,t,n,r,i,a){let o=e=>t[n+e],s={indexes:(e.indexes??[]).map(o).filter(Number.isInteger),keys:[...e.keys??[]],...a===void 0?{}:{previousSourceIndex:a}};return e.groupHeaders?.length&&(s.groupHeaders=e.groupHeaders.map(e=>({...e,itemIndex:o(e.itemIndex),isContinuation:e.isContinuation||e.itemIndex===0&&a!==void 0&&i?.[a]===e.groupKey}))),e.unplaceable&&(s.unplaceable={...e.unplaceable,index:o(e.unplaceable.index),...r?{columnId:r}:{}}),s}function ce(e,t,n,r,i,a,o){if(n>=t.length)return{chunk:{indexes:[],keys:[]},consumed:0,height:0};let s=oe(e,i,a);e.metrics&&(e.metrics.chunkerCalls+=1);let c=se(ie({heights:e.heights,keys:e.keys,metas:e.metas,headerGroupKeys:e.headerGroupKeys,headerGroupHeights:s.headerGroupHeights,headerGroupRepeats:s.headerGroupRepeats,previousHeaderGroupKey:o===void 0?void 0:e.headerGroupKeys?.[o],availableHeight:r,window:{indexes:t,offset:n},maxChunks:1,metrics:e.metrics})[0]??{indexes:[],keys:[]},t,n,a,s.headerGroupKeys,o);return{chunk:c,consumed:c.unplaceable?1:c.indexes.length,height:ae(c,e.heights??[],s.headerGroupHeights??{})}}function le({nodes:e=[],itemCount:t=0}={}){let n=new Set,r=new Set,i=e=>{throw TypeError(`[uhuu-components] Invalid Static.FlowColumns layout: ${e}`)},a=(e,n)=>{(!Number.isInteger(e)||e<0||e>=t)&&i(`${n} references out-of-range item index ${String(e)}.`),r.has(e)&&i(`item index ${e} occurs more than once.`),r.add(e)};e.forEach((e,t)=>{if((!e||e.kind!==`item`&&e.kind!==`columns`)&&i(`node ${t} has an unsupported kind.`),e.kind===`item`){a(e.index,`node ${t}`);return}(typeof e.id!=`string`||!e.id)&&i(`column group ${t} needs a stable id.`),n.has(e.id)&&i(`column group id "${e.id}" occurs more than once.`),n.add(e.id);let r=new Set;(e.columns??[]).forEach((t,n)=>{(!t||typeof t.id!=`string`||!t.id)&&i(`column ${n} in group "${e.id}" needs a stable id.`),r.has(t.id)&&i(`column id "${t.id}" occurs more than once in group "${e.id}".`),r.add(t.id),(t.indexes??[]).forEach(n=>{a(n,`column "${t.id}" in group "${e.id}"`)})})});for(let e=0;e<t;e+=1)r.has(e)||i(`item index ${e} is omitted.`);return!0}function ue(e,t,n,r,i){let a=z(r.chunk.unplaceable?.requiredHeight);if(a>0&&a<=i)return`move`;let o=t[n];if(o===void 0)return`no`;let s=e.metas?.[o]??{};return ne(s.keepWithNext)>0||s.avoidBreakInside&&s.groupKey?`compare`:`no`}function de(e){return!!(e.layout?.length||e.unplaceable)}function fe({nodes:e=[],heights:t=[],keys:n=[],metas:r=[],availableHeight:i=0,continuationHeight:a,headerGroupKeys:o=[],headerGroupHeights:s={},headerGroupRepeats:c={},columnHeaderGroupHeights:l={},columnHeaderGroupRepeats:u={},onUnplaceableItem:d,metrics:f}={}){le({nodes:e,itemCount:t.length});let p=z(i)||1/0,m=z(a)||p,h={heights:t,keys:n,metas:r,headerGroupKeys:o,headerGroupHeights:s,headerGroupRepeats:c,columnHeaderGroupHeights:l,columnHeaderGroupRepeats:u,metrics:f},g=[{indexes:[],keys:[],layout:[]}],_=0,v=()=>g[g.length-1],y=()=>g.length>1?m:p,b=m,x=()=>{de(v())&&(g.push({indexes:[],keys:[],layout:[]}),_=0)},S=e=>{v().indexes.push(...e.indexes??[]),v().keys.push(...e.keys??[]),!v().unplaceable&&e.unplaceable&&(v().unplaceable=e.unplaceable),e.unplaceable&&d?.(e.unplaceable)};for(let n=0;n<e.length;n+=1){let i=e[n];if(!i||i.kind!==`item`&&i.kind!==`columns`)continue;if(i.kind===`item`){let i=[],a=n;for(;a<e.length&&e[a]?.kind===`item`;){let n=Number(e[a].index);Number.isInteger(n)&&n>=0&&n<t.length&&i.push(n),a+=1}n=a-1;let o=0;for(;o<i.length;){y()-_<=0&&de(v())&&x(),r[i[o]]?.breakBefore&&de(v())&&x();let e=o>0?i[o-1]:void 0,t=ce(h,i,o,y()-_,void 0,void 0,e);if(de(v())){let n=ue(h,i,o,t,b);if(n!==`no`){f&&(f.freshPageAttempts+=1);let r=ce(h,i,o,b,void 0,void 0,e);(n===`move`||r.consumed>t.consumed)&&(x(),t=r)}}v().layout.push({kind:`items`,chunk:t.chunk}),S(t.chunk),_+=t.height,o+=t.consumed,t.consumed===0&&(o+=1);let n=t.chunk.indexes?.at(-1)??t.chunk.unplaceable?.index;(o<i.length||t.chunk.unplaceable||n!==void 0&&r[n]?.breakAfter)&&x()}continue}let a=(i.columns??[]).map(e=>({id:String(e?.id??``),indexes:(e?.indexes??[]).filter(e=>Number.isInteger(e)&&e>=0&&e<t.length),cursor:0})).filter(e=>e.id&&e.indexes.length);if(a.length)for(;a.some(e=>e.cursor<e.indexes.length);){y()-_<=0&&de(v())&&x(),a.some(e=>{let t=e.indexes[e.cursor];return t!==void 0&&r[t]?.breakBefore})&&de(v())&&x();let e=y()-_,t=a.map(t=>ce(h,t.indexes,t.cursor,e,i.id,t.id,t.cursor>0?t.indexes[t.cursor-1]:void 0)),n,o=()=>n??=a.map(e=>(f&&(f.freshPageAttempts+=1),ce(h,e.indexes,e.cursor,b,i.id,e.id,e.cursor>0?e.indexes[e.cursor-1]:void 0)));if(de(v())&&a.some((e,n)=>{let r=ue(h,e.indexes,e.cursor,t[n],b);return r===`no`?!1:r===`move`||o()[n].consumed>t[n].consumed})&&(x(),t=o()),!t.some(e=>e.consumed>0)){let e=a.find(e=>e.cursor<e.indexes.length);throw TypeError(`[uhuu-components] Static.FlowColumns made no pagination progress${e?` in column "${e.id}"`:``}.`)}let s=a.map((e,n)=>({id:e.id,chunk:t[n].chunk}));v().layout.push({kind:`columns`,id:String(i.id??`columns`),columns:s});for(let{chunk:e}of s)S(e);let c=Math.max(0,...t.map(e=>e.height));_+=c,a.forEach((e,n)=>{e.cursor+=t[n].consumed});let l=a.some(e=>e.cursor<e.indexes.length),u=t.some(e=>{let t=e.chunk.indexes?.at(-1)??e.chunk.unplaceable?.index;return t!==void 0&&r[t]?.breakAfter}),d=t.some(e=>!!e.chunk.unplaceable);(l||u||d)&&x()}}let C=g.filter(de);return C.length?(f&&(f.pages=C.length),C):(f&&(f.pages=1),[{indexes:[],keys:[],layout:[]}])}var pe=u({getEffectiveScale:()=>me,getOuterHeight:()=>he,hashString:()=>we,parseKeepWithNext:()=>_e,readFlowItemElements:()=>Ce,readHeaderGroupHeights:()=>xe,readHeaderGroupKey:()=>ye,readHeaderGroupRepeats:()=>be,readItemMeta:()=>ge,readUnwrappedHeights:()=>Se,serializeKeepWithNext:()=>ve});function me(e){let t=e.getBoundingClientRect().width,n=e.offsetWidth;if(!(t>0)||!(n>0))return 1;let r=t/n;return Math.abs(r-1)<.002?1:r}function he(e,t=1){let n=e.getBoundingClientRect(),r=window.getComputedStyle(e),i=Number.parseFloat(r.marginTop||`0`)||0,a=Number.parseFloat(r.marginBottom||`0`)||0;return n.height/t+i+a}function ge(e){return{breakBefore:e.dataset.uhuuFlowBreakBefore===`true`,breakAfter:e.dataset.uhuuFlowBreakAfter===`true`,keepWithNext:_e(e.dataset.uhuuFlowKeepWithNext),avoidBreakInside:e.dataset.uhuuFlowAvoidBreakInside===`true`,groupKey:e.dataset.uhuuFlowGroupKey}}function _e(e){if(!e)return!1;if(e===`true`)return!0;let t=Number.parseInt(e,10);return Number.isFinite(t)&&t>0?t:!1}function ve(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?String(Math.floor(e)):e?`true`:void 0}function ye(e){return e.dataset.uhuuFlowHeaderGroupKey||void 0}function be(e){let t={};for(let n of e){let e=ye(n);e&&(n.dataset.uhuuFlowHeaderRepeat===`false`?t[e]=!1:e in t||(t[e]=!0))}return t}function xe(e,t=1,n){let r={};for(let i of Array.from(e.querySelectorAll(`[data-uhuu-flow-group-header="true"]`))){let e=i.dataset.uhuuFlowHeaderGroupKey;e&&(r[e]=Math.max(r[e]??0,n?.get(i)??he(i,t)))}return r}function Se(e,t,n=1){let r=new Map,i=e.getBoundingClientRect().top;for(let e of Array.from(t.children)){if(!(e instanceof HTMLElement)||!e.getClientRects().length)continue;let t=e.getBoundingClientRect().bottom,a=Math.max(0,t-i)/n;i=Math.max(i,t),e.dataset.uhuuFlowItem===`true`?r.set(e,a):e.dataset.uhuuFlowGroupHeader===`true`&&r.set(e,Math.max(a,he(e,n)))}return r}function Ce(e){return Array.from(e.querySelectorAll(`[data-uhuu-flow-item="true"]`))}function we(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return(t>>>0).toString(36)}var Te=ie,Ee=fe,De=`data-uhuu-flow-continuation-copy`,Oe=p.createContext(null),ke=typeof window>`u`?p.useEffect:p.useLayoutEffect;function Ae(e){let t=e.availableHeight-e.headerHeight;if(!(e.height>0)||!Number.isFinite(t))return;let n=Math.min(1,Math.max(t,1)/e.height);return n<1?{transform:`scale(${n})`,transformOrigin:`top left`}:void 0}var je=new Set;function Me(e){if(!e||typeof e!=`object`||!(`type`in e))return;let t=e.type;return typeof t==`string`||typeof t==`number`?String(t):void 0}function Ne(e,t){let n={...e??{}};for(let[e,r]of Object.entries(t??{}))r!==void 0&&(n[e]=r);return n}function Pe(e){return Number.parseFloat(e||`0`)||0}function Fe(e,t){let n=e=>{let t=window.getComputedStyle(e);return Pe(t.paddingTop)+Pe(t.paddingBottom)+Pe(t.borderTopWidth)+Pe(t.borderBottomWidth)};for(let r of Array.from(e.querySelectorAll(`:scope > [data-uhuu-flow-layout-node="columns"]`))){let e=window.getComputedStyle(r),i=Pe(e.marginTop)+Pe(e.marginBottom);if(n(r)>.01||i>.01)throw TypeError(`[uhuu-components] Static.FlowColumns group vertical margin, padding, and borders are unsupported; put measured vertical spacing on items with getColumnItemProps.`);let a=[];for(let e of Array.from(r.querySelectorAll(`:scope > [data-uhuu-flow-column]`))){let r=window.getComputedStyle(e),i=Pe(r.marginTop)+Pe(r.marginBottom);if(n(e)>.01||i>.01||Pe(r.rowGap)>.01||Pe(r.minHeight)>.01||r.maxHeight!==`none`)throw TypeError(`[uhuu-components] Static.FlowColumns column vertical margin, padding, borders, min/max height, and row-gap are unsupported; put measured vertical spacing on items with getColumnItemProps.`);let o=Array.from(e.querySelectorAll(`[data-uhuu-flow-item="true"], [data-uhuu-flow-group-header="true"]`)).reduce((e,n)=>e+he(n,t),0);a.push(o)}let o=Math.max(0,...a);if(he(r,t)>o+1)throw TypeError(`[uhuu-components] Static.FlowColumns group/column fixed height or wrapping adds unmeasured vertical extent.`)}}function Ie(e,t,n){let r=e.dataset.uhuuFlowItemCount;if(r===void 0)return;let i=Number.parseInt(r,10);Number.isInteger(i)&&i!==t.length&&n.onUnmarkedItems?.(t.length,i)}var Le=e=>e===void 0?void 0:Math.round(e*100)/100;function Re(e,t,n={}){let r=t.dataset.uhuuFlowId;if(!r)return null;if(t.dataset.uhuuFlowLayout===`columns`)return ze(e,t,n);let i=Ce(t);if(Ie(t,i,n),!i.length)return{flowId:r,chunks:[{indexes:[],keys:[]}],signature:`${r}:empty`,unplaceableItems:[]};let a=e.getBoundingClientRect(),o=me(e),s=a.height?a.height/o:e.clientHeight,c=Number.isFinite(s)&&s>0,l=t.dataset.uhuuFlowAsChild===`true`?Se(e,t,o):void 0,u=i.map(e=>l?.get(e)??he(e,o)),d=i.map(ge),f=i.map((e,t)=>e.dataset.uhuuFlowKey||String(t)),p=i.map(ye),m=be(i),h=xe(t,o,l),g=c?n.continuationHeight:void 0,_=[],v=c?s:u.reduce((e,t)=>e+t,0)+Object.values(h).reduce((e,t)=>e+t,0);return c||n.onZeroHeight?.(),{flowId:r,chunks:Te({heights:u,keys:f,metas:d,availableHeight:v,continuationHeight:g,headerGroupKeys:p,headerGroupHeights:h,headerGroupRepeats:m,onUnplaceableItem:e=>{_.push(e),n.onUnplaceableItem?.(e)}}),signature:we(JSON.stringify({version:2,flowId:r,availableHeight:Math.round(v*100)/100,continuationHeight:Le(g),heights:u.map(e=>Math.round(e*100)/100),keys:f,metas:d,headerGroupKeys:p,headerGroupHeights:h,headerGroupRepeats:m,unplaceableItems:_})),unplaceableItems:_}}function ze(e,t,n={}){let r=t.dataset.uhuuFlowId;if(!r)return null;let i=Ce(t);if(Ie(t,i,n),!i.length)return{flowId:r,chunks:[{indexes:[],keys:[],layout:[]}],signature:`${r}:columns:empty`,unplaceableItems:[]};let a=e.getBoundingClientRect(),o=me(e);Fe(t,o);let s=a.height?a.height/o:e.clientHeight,c=Number.isFinite(s)&&s>0,l=Math.max(-1,...i.map(e=>Number.parseInt(e.dataset.uhuuFlowIndex??`-1`,10))),u=Array.from({length:l+1},()=>0),d=Array.from({length:l+1},(e,t)=>String(t)),f=Array.from({length:l+1},()=>({})),p=Array.from({length:l+1},()=>void 0),m=t.dataset.uhuuFlowAsChild===`true`?Se(e,t,o):void 0;for(let e of i){let t=Number.parseInt(e.dataset.uhuuFlowIndex??`-1`,10);!Number.isInteger(t)||t<0||(u[t]=m?.get(e)??he(e,o),d[t]=e.dataset.uhuuFlowKey||String(t),f[t]=ge(e),p[t]=ye(e))}let h=Array.from(t.children).flatMap(e=>{if(!(e instanceof HTMLElement))return[];if(e.dataset.uhuuFlowLayoutNode===`item`){let t=e.matches(`[data-uhuu-flow-item="true"]`)?e:e.querySelector(`[data-uhuu-flow-item="true"]`),n=Number.parseInt(t?.dataset.uhuuFlowIndex??`-1`,10);return Number.isInteger(n)&&n>=0?[{kind:`item`,index:n}]:[]}if(e.dataset.uhuuFlowLayoutNode!==`columns`)return[];let t=Array.from(e.querySelectorAll(`:scope > [data-uhuu-flow-column]`)).flatMap(e=>{let t=e.dataset.uhuuFlowColumn;return t?[{id:t,indexes:Array.from(e.querySelectorAll(`[data-uhuu-flow-item="true"]`)).map(e=>Number.parseInt(e.dataset.uhuuFlowIndex??`-1`,10)).filter(e=>Number.isInteger(e)&&e>=0)}]:[]});return t.length?[{kind:`columns`,id:e.dataset.uhuuFlowLayoutId||`columns`,columns:t}]:[]}),g=be(i),_=xe(t,o,m),v=c?n.continuationHeight:void 0,y={},b={};for(let e of Array.from(t.querySelectorAll(`:scope > [data-uhuu-flow-layout-node="columns"]`))){let t=e.dataset.uhuuFlowLayoutId;if(t){y[t]={},b[t]={};for(let n of Array.from(e.querySelectorAll(`:scope > [data-uhuu-flow-column]`))){let e=n.dataset.uhuuFlowColumn;if(!e)continue;let r=Array.from(n.querySelectorAll(`[data-uhuu-flow-item="true"]`));y[t][e]=xe(n,o),b[t][e]=be(r)}}}let x=[],S=c?s:u.reduce((e,t)=>e+t,0)+Object.values(_).reduce((e,t)=>e+t,0);return c||n.onZeroHeight?.(),{flowId:r,chunks:Ee({nodes:h,heights:u,keys:d,metas:f,availableHeight:S,continuationHeight:v,headerGroupKeys:p,headerGroupHeights:_,headerGroupRepeats:g,columnHeaderGroupHeights:y,columnHeaderGroupRepeats:b,onUnplaceableItem:e=>{x.push(e),n.onUnplaceableItem?.(e)}}),signature:we(JSON.stringify({version:3,flowId:r,availableHeight:Math.round(S*100)/100,continuationHeight:Le(v),nodes:h,heights:u.map(e=>Math.round(e*100)/100),keys:d,metas:f,headerGroupKeys:p,headerGroupHeights:_,headerGroupRepeats:g,columnHeaderGroupHeights:y,columnHeaderGroupRepeats:b,unplaceableItems:x})),unplaceableItems:x}}function Be(e,t){for(let n of Array.from(e.querySelectorAll(`[${De}] [data-uhuu-flow="true"]`)))if(n.dataset.uhuuFlowId===t)return n.closest(`[data-uhuu-flow-area]`);return null}function Ve({children:e,className:t=``,style:r,onFlowMeasurement:i,measureContinuation:a=!1}){let o=p.useContext(Oe),s=p.useRef(null),c=p.useId(),l=p.useRef(null),u=p.useRef(o),d=p.useRef(``),f=p.useRef(!1),m=p.useRef(!1),h=p.useRef(new Set),g=p.useRef(``),_=p.useRef(``),v=p.useRef(``);return p.useEffect(()=>()=>{u.current?.unregisterMeasurement?.(l.current??``,c)},[c]),ke(()=>{if(a)return o?.requestContinuation?.()},[o,a]),ke(()=>{if(u.current=o,o?.mode!==`measure`||!o.registerMeasurement||!s.current)return;let e=s.current,t=e.closest(`[data-uhuu-flow-measurement]`)??e,n=a&&!!o.requestContinuation,r=null,p,y=null,b=null;d.current=``;let x=(t=!0)=>{t&&!p&&(p=S?.begin()),r===null&&(r=R(()=>{r=null;try{D()}catch(t){d.current=``,S?.fail(t),e.setAttribute(`data-uhuu-flow-error`,String(t)),console.error(`[uhuu-components] Flow measurement failed:`,t)}finally{p?.(),p=void 0}}))},S=o.readiness?.registerArea(o.pageKey??``,{remeasure:()=>x()}),C=new Set,w=()=>{if(y){for(let t of Array.from(C))e.contains(t)||(y.unobserve(t),C.delete(t));e.querySelectorAll(`[data-uhuu-flow-item="true"], [data-uhuu-flow-group-header="true"]`).forEach(e=>{C.has(e)||(C.add(e),y?.observe(e))})}},T=t=>{t?e.setAttribute(`data-uhuu-flow-error`,t):e.removeAttribute(`data-uhuu-flow-error`)},E=e=>{let n=Be(t,e);if(n!==b&&(b&&y?.unobserve(b),n&&y?.observe(n),b=n),!n)return{failure:`missing-continuation-flow`};let r=n.getBoundingClientRect(),i=r.height?r.height/me(n):n.clientHeight;return Number.isFinite(i)&&i>0?{height:i}:{failure:`unmeasurable-flow-area`}};function D(){w();let r=e.querySelectorAll(`[data-uhuu-flow="true"]`);r.length>1&&!f.current&&L()&&(f.current=!0,console.warn(`[uhuu-components] Static.FlowArea supports one Static.Flow child. Additional Static.Flow elements in the same area are ignored. Use one FlowArea per flow region.`));let a=r[0],s=a?.dataset.uhuuFlowId;if(l.current&&l.current!==s&&(o?.unregisterMeasurement?.(l.current,c),l.current=null,d.current=``),!a){T(`missing-flow`),S?.clear();return}let u=s?Array.from(t.querySelectorAll(`[data-uhuu-flow="true"]`)).filter(e=>e.dataset.uhuuFlowId===s&&!e.closest(`[data-uhuu-flow-continuation-copy]`)).length:0,p=s?u>1?`duplicate-flow-id`:null:`missing-flow-id`;if(p&&L()&&g.current!==`${p}:${s}`&&(g.current=`${p}:${s}`,console.warn(`[uhuu-components] Static.Flow ${s?`id "${s}" is used by more than one Flow`:`has no id`} on page "${o?.pageKey??``}". Give each Flow on a page a stable, unique id.`)),!s){d.current=``,T(`missing-flow-id`),S?.fail(`missing-flow-id`);return}let y=p??(r.length>1?`multiple-flows-in-area`:null),b=n?E(s):void 0,x=Re(e,a,{continuationHeight:b?.height,onUnmarkedItems:(e,t)=>{y??=`unmarked-flow-item`,L()&&v.current!==s&&(v.current=s,console.warn(`[uhuu-components] Static.Flow "${s}" asChild: ${t-e} of ${t} items carry no flow attributes, so the flow cannot be paginated. renderItem must return a DOM element, or a component that passes the props it receives on to its root DOM element.`))},onZeroHeight:()=>{a.getClientRects().length&&(y=`unmeasurable-flow-area`,!m.current&&L()&&(m.current=!0,console.warn(`[uhuu-components] Static.FlowArea has flow items but no measurable height. Give the area an explicit height or use a constrained flex layout such as flex-1 min-h-0.`)))},onUnplaceableItem:e=>{h.current.has(e.key)||(h.current.add(e.key),console.warn(`[uhuu-components] Static.Flow item "${e.key}" cannot fit in its FlowArea (${Math.round(e.requiredHeight)}px required > ${Math.round(e.availableHeight)}px available). It prints on a page of its own, scaled to fit. Split the item or reduce its height.`))}});if(!x)return;let C=x.chunks.length>1?b?.failure:void 0;if(C&&L()&&_.current!==`${C}:${s}`&&(_.current=`${C}:${s}`,console.warn(`[uhuu-components] Static.FlowArea measureContinuation: page "${o?.pageKey??``}" `+(C===`missing-continuation-flow`?`renders no Static.Flow "${s}" on a continuation sheet, so its continuation pages would lose its items. Render the FlowArea and its Flow on every sheet.`:`lays the FlowArea of "${s}" out at zero height on a continuation sheet. Give it a measurable height there too.`))),C===`missing-continuation-flow`)T(C),S?.clear();else if(y??=C??null,S?.measured(x,y),T(y),x.signature!==d.current){o?.registerMeasurement?.(x,c),d.current=x.signature,l.current=x.flowId;try{i?.(x)}catch(e){console.error(`[uhuu-components] FlowArea onFlowMeasurement threw:`,e)}}}let O=te(t,{begin:()=>S?.begin()??(()=>{}),onReady:()=>x()});typeof ResizeObserver<`u`&&(y=new ResizeObserver(()=>x()),y.observe(e)),w(),x();let k=new MutationObserver(t=>{O.sync(),x(t.some(t=>e.contains(t.target)))});return k.observe(t,{attributes:!0,attributeFilter:[`class`,`style`,`src`,`srcset`,`sizes`,`data-uhuu-flow`,`data-uhuu-flow-id`,`data-uhuu-flow-item`,`data-uhuu-flow-key`,`data-uhuu-flow-break-before`,`data-uhuu-flow-break-after`,`data-uhuu-flow-keep-with-next`,`data-uhuu-flow-avoid-break-inside`,`data-uhuu-flow-group-key`,`data-uhuu-flow-header-group-key`,`data-uhuu-flow-header-repeat`,`data-uhuu-flow-group-header`],characterData:!0,childList:!0,subtree:!0}),()=>{r!==null&&(r(),r=null,p?.()),y?.disconnect(),k.disconnect(),O.disconnect(),S?.dispose()}},[o,i,c,a]),(0,n.jsx)(`div`,{ref:s,className:t,style:r,"data-uhuu-flow-area":`true`,children:e})}function He({children:e,header:t,footer:r,className:i=``,style:a,flowAreaClassName:o=``,flowAreaStyle:s,onFlowMeasurement:c,measureContinuation:l}){return(0,n.jsxs)(`div`,{className:`uhuu-flow-page ${i}`,style:a,"data-uhuu-flow-page":`true`,children:[t,(0,n.jsx)(Ve,{className:`uhuu-flow-page-area ${o}`,style:s,onFlowMeasurement:c,measureContinuation:l,children:e}),r]})}function Ue(e){if(typeof e==`string`)return e?{key:e,repeatHeader:!0}:void 0;if(e?.key)return{key:e.key,repeatHeader:e.repeatHeader!==!1}}function We(e){let t=new Map;return e.forEach((e,n)=>{t.has(e)||t.set(e,n)}),t}function Ge(e){if(!e)return;let t=new Map;for(let n of e){let e=t.get(n.itemIndex);e||(e=new Set,t.set(n.itemIndex,e)),e.add(n.groupKey)}return t}var Ke=new Set;function qe(e){return e==null||typeof e==`boolean`?`nothing`:Array.isArray(e)?`several nodes`:p.isValidElement(e)?`a fragment`:`text`}function Je(e,t,n){if(p.isValidElement(e)&&e.type!==p.Fragment){let r=e.props,i=[t.className,typeof r.className==`string`?r.className:void 0].filter(Boolean).join(` `)||void 0,a=n.baseStyle||r.style||n.forcedStyle?{...n.baseStyle,...r.style,...n.forcedStyle}:void 0;return p.cloneElement(e,{...t,className:i,style:a})}let r=`${n.flowId}:${n.source}`;return L()&&!Ke.has(r)&&(Ke.add(r),console.warn(`[uhuu-components] Static.Flow "${n.flowId}" asChild: ${n.source} returned ${qe(e)}. asChild needs exactly one element to carry the flow's attributes, so it renders in a wrapper <div> instead.`)),null}function Ye({id:e,items:t,getKey:r,renderItem:i,getItemMeta:a,metaDefaults:o,getItemType:s,getItemGroup:c,renderGroupHeader:l,className:u=``,itemClassName:d,groupHeaderClassName:f,renderUnplaceableItem:m,asChild:h=!1,as:g=`div`}){let _=p.useContext(Oe),v=g,y=_?.chunksByFlowId?.[e],b=_?.mode===`visible`&&y?y[_.pageIndex]:void 0,x=_?.mode===`visible`?_.pageIndex:0,S=_?.mode===`visible`&&y?y.length:1,C=b?.unplaceable,w=C?m?.(C,{flowId:e,pageIndex:x,pageCount:S}):void 0,T=!!(C&&w==null),E=_?.copy===`continuation`?[]:_?.mode===`visible`&&y?b?.indexes??[]:_?.mode===`visible`&&_.pageIndex>0?[]:t.map((e,t)=>t),D=(T?[...new Set([...E,C.index])].sort((e,t)=>e-t):E).filter(e=>Number.isInteger(e)&&e>=0&&e<t.length),O=t.map((e,t)=>Ue(c?.(e,t))),k=O.map(e=>e?.key),A=We(D),j=l?Ge(b?.groupHeaders):void 0;return p.useEffect(()=>{if(!L()||!o||!Object.keys(o).length||!t.length)return;let n=`${e}:${Object.keys(o).join(`|`)}`;je.has(n)||t.some((e,t)=>!!(s?.(e,t)??Me(e)))||(je.add(n),console.warn(`[uhuu-components] Static.Flow "${e}" received metaDefaults, but no item type could be resolved. Add a type field to each item or pass getItemType so defaults can be applied.`))},[e,t,o,s]),(0,n.jsxs)(v,{className:u,"data-uhuu-flow":`true`,"data-uhuu-flow-id":e,"data-uhuu-flow-as-child":h?`true`:void 0,"data-uhuu-flow-item-count":h&&_?.mode!==`visible`?D.length:void 0,children:[C&&w!=null&&(h&&Je(w,{"data-uhuu-flow-unplaceable":`true`,"data-uhuu-flow-unplaceable-key":C.key},{flowId:e,source:`renderUnplaceableItem`})||(0,n.jsx)(`div`,{style:{display:`contents`},"data-uhuu-flow-unplaceable":`true`,"data-uhuu-flow-unplaceable-key":C.key,children:w})),D.map(c=>{let u=t[c];if(u===void 0)return null;let m=r(u,c),g=O[c],_={...re({itemIndex:c,fragmentIndexes:D,fragmentIndex:A.get(c)??-1,groupKeys:k,pageIndex:x,pageCount:S,itemCount:t.length}),flowId:e,itemKey:m,item:u},v=s?.(u,c)??Me(u),y=Ne(v?o?.[v]:void 0,a?.(u,c)),b=typeof d==`function`?d(u,c):d,w=!!(g&&j?.get(c)?.has(g.key)),E=!!(g&&l&&(w||!j&&_.isFirstInGroupOnPage&&(_.isFirstInGroup||g.repeatHeader!==!1))),M=typeof f==`function`?g?f(g,_):void 0:f,N=T&&c===C?.index,P=N?Ae(C):void 0,F=E&&g?l?.(g,_):void 0,I={"data-uhuu-flow-group-header":`true`,"data-uhuu-flow-header-group-key":g?.key},L=i(u,c,_),R={"data-uhuu-flow-item":`true`,"data-uhuu-flow-key":String(m),"data-uhuu-flow-index":c,"data-uhuu-flow-break-before":y.breakBefore?`true`:void 0,"data-uhuu-flow-break-after":y.breakAfter?`true`:void 0,"data-uhuu-flow-keep-with-next":ve(y.keepWithNext),"data-uhuu-flow-avoid-break-inside":y.avoidBreakInside?`true`:void 0,"data-uhuu-flow-group-key":y.groupKey,"data-uhuu-flow-header-group-key":g?.key,"data-uhuu-flow-header-repeat":g?g.repeatHeader===!1?`false`:`true`:void 0,"data-uhuu-flow-unplaceable":N?`true`:void 0,"data-uhuu-flow-unplaceable-key":N?C.key:void 0},ee=E&&g?h&&Je(F,{className:M,...I},{flowId:e,source:`renderGroupHeader`})||(0,n.jsx)(`div`,{className:M,style:{display:`flow-root`},...I,children:F}):null,te=h&&Je(L,{className:b,...R},{flowId:e,source:`renderItem`,forcedStyle:P})||(0,n.jsx)(`div`,{className:b,style:{display:`flow-root`,...P},...R,children:L});return(0,n.jsxs)(p.Fragment,{children:[ee,te]},m)})]})}function Xe({id:e,items:t,layout:r,getKey:i,renderItem:a,getItemMeta:o,metaDefaults:s,getItemType:c,getItemGroup:l,renderGroupHeader:u,className:d=``,itemClassName:f,groupHeaderClassName:m,renderUnplaceableItem:h,getColumnGroupProps:g,getColumnProps:_,getColumnItemProps:v,asChild:y=!1,as:b=`div`}){le({nodes:r,itemCount:t.length});let x=p.useContext(Oe),S=b,C=x?.copy===`continuation`,w=x?.chunksByFlowId?.[e],T=x?.mode===`visible`&&w?w[x.pageIndex]:void 0,E=x?.mode!==`visible`,D=x?.mode===`visible`?x.pageIndex:0,O=x?.mode===`visible`&&w?w.length:1,k=t.map((e,t)=>Ue(l?.(e,t))),A=k.map(e=>e?.key),j={flowId:e};p.useEffect(()=>{if(!L()||!s||!Object.keys(s).length||!t.length)return;let n=`${e}:columns:${Object.keys(s).join(`|`)}`;je.has(n)||t.some((e,t)=>!!(c?.(e,t)??Me(e)))||(je.add(n),console.warn(`[uhuu-components] Static.FlowColumns "${e}" received metaDefaults, but no item type could be resolved. Add a type field to each item or pass getItemType so defaults can be applied.`))},[e,t,s,c]);let M=(t,r)=>{if(!t)return null;let i=h?.(t,{flowId:e,pageIndex:D,pageCount:O});return i==null?r():y&&Je(i,{"data-uhuu-flow-unplaceable":`true`,"data-uhuu-flow-unplaceable-key":t.key,"data-uhuu-flow-column-id":t.columnId},{flowId:e,source:`renderUnplaceableItem`})||(0,n.jsx)(`div`,{style:{display:`contents`},"data-uhuu-flow-unplaceable":`true`,"data-uhuu-flow-unplaceable-key":t.key,"data-uhuu-flow-column-id":t.columnId,children:i})},N=(r,l,d,h=!1,g)=>{let _=r.filter(e=>Number.isInteger(e)&&e>=0&&e<t.length),v=We(_),b=g?We(g):void 0,x=u?Ge(l?.groupHeaders):void 0;return _.map(r=>{let S=t[r];if(S===void 0)return null;let C=i(S,r),w=k[r],T=v.get(r)??-1,E=b?.get(r)??-1,j={...re({itemIndex:r,fragmentIndexes:_,fragmentIndex:T,groupKeys:A,pageIndex:D,pageCount:O,itemCount:t.length,previousSourceIndex:l?.previousSourceIndex??(E>0?g?.[E-1]:void 0)}),flowId:e,itemKey:C,item:S},M=c?.(S,r)??Me(S),N=Ne(M?s?.[M]:void 0,o?.(S,r)),P=typeof f==`function`?f(S,r):f,F=d?.(r),I=!!(w&&x?.get(r)?.has(w.key)),L=!!(w&&u&&(I||!x&&j.isFirstInGroupOnPage&&(j.isFirstInGroup||w.repeatHeader!==!1))),R=typeof m==`function`?w?m(w,j):void 0:m,ee=l?.unplaceable?.index===r?l.unplaceable:void 0,te=ee?Ae(ee):void 0,z=[P,F?.className].filter(Boolean).join(` `),B=L&&w?u?.(w,j):void 0,ne={"data-uhuu-flow-group-header":`true`,"data-uhuu-flow-header-group-key":w?.key},V=a(S,r,j),ie={"data-uhuu-flow-item":`true`,"data-uhuu-flow-layout-node":h?`item`:void 0,"data-uhuu-flow-key":String(C),"data-uhuu-flow-index":r,"data-uhuu-flow-unplaceable":ee?`true`:void 0,"data-uhuu-flow-unplaceable-key":ee?.key,"data-uhuu-flow-column-id":ee?.columnId,"data-uhuu-flow-break-before":N.breakBefore?`true`:void 0,"data-uhuu-flow-break-after":N.breakAfter?`true`:void 0,"data-uhuu-flow-keep-with-next":ve(N.keepWithNext),"data-uhuu-flow-avoid-break-inside":N.avoidBreakInside?`true`:void 0,"data-uhuu-flow-group-key":N.groupKey,"data-uhuu-flow-header-group-key":w?.key,"data-uhuu-flow-header-repeat":w?w.repeatHeader===!1?`false`:`true`:void 0},ae=L&&w?y&&Je(B,{className:R,...ne},{flowId:e,source:`renderGroupHeader`})||(0,n.jsx)(`div`,{className:R,style:{display:`flow-root`},...ne,children:B}):null,oe=y&&Je(V,{className:z||void 0,...ie},{flowId:e,source:`renderItem`,baseStyle:F?.style,forcedStyle:te})||(0,n.jsx)(`div`,{className:z,style:{display:`flow-root`,...F?.style,...te},...ie,children:V});return(0,n.jsxs)(p.Fragment,{children:[ae,oe]},C)})},P=new Map(r.filter(e=>e.kind===`columns`).map(e=>[e.id,e])),F=C?[]:E?r:T?.layout??[];return(0,n.jsx)(S,{className:d,"data-uhuu-flow":`true`,"data-uhuu-flow-id":e,"data-uhuu-flow-layout":`columns`,"data-uhuu-flow-as-child":y?`true`:void 0,"data-uhuu-flow-item-count":y&&E?C?0:t.length:void 0,children:F.map((e,t)=>{if(e.kind===`item`)return(0,n.jsx)(p.Fragment,{children:N([e.index],void 0,void 0,!0)},`item:${e.index}:${t}`);if(e.kind===`items`)return(0,n.jsxs)(p.Fragment,{children:[M(e.chunk.unplaceable,()=>N([e.chunk.unplaceable.index],e.chunk,void 0,!0)),N(e.chunk.indexes,e.chunk,void 0,!0)]},`items:${t}`);let r=E?e:P.get(e.id);if(!r)return null;let i=new Map(r.columns.map(e=>[e.id,e])),a=E?r.columns.map(e=>({id:e.id})):e.columns,o=g?.(r,j);return(0,n.jsx)(`div`,{className:o?.className,style:{display:`flex`,width:`100%`,alignItems:`flex-start`,...o?.style},"data-uhuu-flow-layout-node":`columns`,"data-uhuu-flow-layout-id":r.id,children:a.map(e=>{let t=i.get(e.id);if(!t)return null;let a=_?.(r,t,j),o=e.chunk?.indexes??t.indexes;return(0,n.jsxs)(`div`,{className:a?.className,style:{minWidth:0,flex:`1 1 0%`,display:`flex`,flexDirection:`column`,...a?.style},"data-uhuu-flow-column":t.id,children:[M(e.chunk?.unplaceable,()=>N([e.chunk.unplaceable.index],e.chunk,e=>v?.(r,t,e,j),!1,t.indexes)),N(o,e.chunk,e=>v?.(r,t,e,j),!1,t.indexes)]},t.id)})},`columns:${r.id}:${t}`)})})}function Ze(e){let t=e?.dialog;if(!t)return{};let n={"data-uhuu":``,...t.type?{"data-uhuu-type":t.type}:{}};return typeof window<`u`&&window.$uhuu_renderer?n:{...n,onClick(e){typeof window>`u`||window.$uhuu_renderer||(e.stopPropagation(),window.$uhuu?.editDialog?.(t))}}}var Qe=`uhuu-text-empty`,$e=new Set([`text`,`textarea`,`markdown`]),et=e=>typeof e==`object`&&!!e&&`type`in e&&typeof e.type==`string`&&$e.has(e.type),tt=e=>e==null||typeof e==`boolean`?!0:typeof e==`string`?e.trim()===``:Array.isArray(e)?e.every(tt):!1,nt=e=>{let t=et(e.dialog)&&tt(e.children)?[e.className,Qe].filter(Boolean).join(` `):e.className;return(0,n.jsx)(`div`,{className:t,...Ze(e),children:e.children})};function rt(e){return String(e??``).replace(/[#*_`|>[\]()]/g,``).trim().toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-|-$/g,``).slice(0,36)}function it(e,t,n,r=``){return`${r}${e}-${n}-${rt(t)||`block`}`}var at=/\s*(page-break-before|break-before)\s*/i,ot=1,st=3,ct=8;function lt(e){return String(e??``).replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function ut(e){return String(e??``).replace(/<(script|style)\b[^>]*>[\s\S]*?<\/\1\s*>/gi,``).replace(/<\/?(script|style)\b[^>]*>/gi,``).replace(/\son\w+\s*=\s*"[^"]*"/gi,``).replace(/\son\w+\s*=\s*'[^']*'/gi,``).replace(/\son\w+\s*=\s*[^\s>]+/gi,``).replace(/\s(href|src|xlink:href)\s*=\s*"javascript:[^"]*"/gi,``).replace(/\s(href|src|xlink:href)\s*=\s*'javascript:[^']*'/gi,``)}function dt(e,t){if(typeof document>`u`)return[];let n=document.createElement(`template`);n.innerHTML=String(e??``);let r=[];return n.content.childNodes.forEach(e=>{if(e.nodeType===ct)t.test(e.textContent??``)&&r.push({kind:`break`});else if(e.nodeType===st){let t=(e.textContent??``).trim();t&&r.push({kind:`text`,html:lt(t),text:t})}else if(e.nodeType===ot){let t=e,n=t.hasAttribute(`data-flow-break-before`),i=t.hasAttribute(`data-flow-break-after`);t.removeAttribute(`data-flow-break-before`),t.removeAttribute(`data-flow-break-after`),r.push({kind:`element`,type:t.tagName.toLowerCase(),html:t.outerHTML,text:t.textContent??``,breakBefore:n,breakAfter:i})}}),r}function ft(e,t){let n=t.idPrefix??``,r=[],i=!1;for(let t of e){if(!t||t.kind===`break`){i=!0;continue}let e=t.type??`text`,a=t.html??``;a&&(r.push({id:it(e,t.text??a,r.length,n),type:e,html:a,breakBefore:i||!!t.breakBefore}),i=!!t.breakAfter)}return r}function pt(e=``,t={}){let n=t.breakComment??at,r=(t.parseHtml??(e=>dt(e,n)))(e);return ft(Array.isArray(r)?r:[],t)}var mt={h1:{keepWithNext:1},h2:{keepWithNext:1},h3:{keepWithNext:1},h4:{keepWithNext:1},h5:{keepWithNext:1},h6:{keepWithNext:1},table:{avoidBreakInside:!0},ul:{avoidBreakInside:!0},ol:{avoidBreakInside:!0},pre:{avoidBreakInside:!0},blockquote:{avoidBreakInside:!0},figure:{avoidBreakInside:!0},img:{avoidBreakInside:!0}},ht=!1;function gt(e){return p.useMemo(()=>e===!1?(L()&&!ht&&(ht=!0,console.warn(`[uhuu-components] Static.FlowDocument sanitize is disabled. Only pass sanitize={false} for trusted HTML.`)),e=>e):typeof e==`function`?e:ut,[e])}function _t({html:e,header:t,footer:r,className:i=``,style:a,flowAreaClassName:o=``,flowAreaStyle:s,measureContinuation:c,id:l=`flow-document`,idPrefix:u,flowClassName:d=`uhuu-flow-document`,itemClassName:f,metaDefaults:m,getItemMeta:h,renderItem:g,sanitize:_,editable:v,parseHtml:y}){let b=p.useMemo(()=>pt(e,{idPrefix:u,parseHtml:y}),[e,u,y]),x=p.useMemo(()=>({...mt,...m??{}}),[m]),S=gt(_),C=p.useCallback((e,t)=>({breakBefore:e.breakBefore,...h?.(e,t)??{}}),[h]),w=p.useCallback((e,t)=>g?g(e,t):(0,n.jsx)(`div`,{className:`uhuu-flow-html-block`,dangerouslySetInnerHTML:{__html:S(e.html)}}),[g,S]),T=(0,n.jsx)(Ye,{id:l,items:b,getKey:e=>e.id,className:d,itemClassName:f,metaDefaults:x,getItemMeta:C,renderItem:w});return(0,n.jsx)(He,{className:i,style:a,flowAreaClassName:o,flowAreaStyle:s,measureContinuation:c,header:t,footer:r,children:v?(0,n.jsx)(nt,{dialog:v,className:!b.length&&et(v)?Qe:void 0,children:T}):T})}var vt=/<!--\s*(page-break-before|break-before)\s*-->/i,yt=/^\s*\[[^\]]+\]:\s+\S+/,bt=/^\s*!\[[^\]]*]\([^)]+\)\s*$/;function xt(e){return e.trim()===``}function St(e){return/^#{1,6}\s+/.test(e.trim())}function Ct(e){return/^(\s*)([-*+]|\d+[.)])\s+/.test(e)}function wt(e){return/^(```|~~~)/.test(e.trim())}function Tt(e){return/^([-*_])(?:\s*\1){2,}\s*$/.test(e.trim())}function Et(e,t){let n=e[t]?.trim()??``,r=e[t+1]?.trim()??``;return n.includes(`|`)&&/^\|?\s*:?-{3,}:?\s*(\|\s*:?-{3,}:?\s*)+\|?$/.test(r)}function Dt(e){return vt.test(e.trim())}function Ot(e){return yt.test(e)}function kt(e,t){if(!t||e.length<=t)return[e];let n=e.split(/\s+/).filter(Boolean),r=[],i=``;for(let e of n){let n=i?`${i} ${e}`:e;i&&n.length>t?(r.push(i),i=e):i=n}return i&&r.push(i),r.length?r:[e]}function At(e,t){return t.length?`${e}\n\n${t.join(`
4
4
  `)}`:e}function jt(e,t,n,r,i,a){let o=n.join(`
5
5
  `).trim();if(!o)return!1;let s=Number.isFinite(i.maxParagraphLength)?Math.max(0,Math.floor(i.maxParagraphLength)):0,c=t===`paragraph`?kt(o,s):[o];for(let n=0;n<c.length;n+=1){let o=c[n],s=At(o,a);e.push({id:it(t,o,e.length,i.idPrefix??``),type:t,markdown:s,breakBefore:n===0&&r})}return!0}function Mt(e=``,t={}){let n=String(e??``).replace(/\r\n/g,`
@@ -49,9 +49,9 @@
49
49
  `),stylesheetUrls:r}}for(let t of Dh(e.fonts)){let e=Z(t.family),r=e?kh(e):void 0;if(!r||Eh.test(r))continue;let o=Oh(t);o&&a(Z(t.cssUrl)?t.cssUrl:o===`google`?jh(r,t):void 0);for(let e of Array.isArray(t.faces)?t.faces:[])a(e?.cssUrl);if(!o)for(let e of Mh(t)){let t=Fh(r,e,n);t&&!i.includes(t)&&i.push(t)}}return{fontFaceCss:i.join(`
50
50
  `),stylesheetUrls:r}}var Lh=(0,p.createContext)(null),Rh=typeof window>`u`?p.useEffect:p.useLayoutEffect,zh=1e4;function Bh(e){try{return typeof location>`u`?e:new URL(e,location.href).toString()}catch{return e}}function Vh({brandKit:e,src:t,defaults:r,sourceUrl:i,onLoad:a,onError:o,className:s,style:c,children:l}){let u=typeof t==`string`&&t.trim()!==``?t.trim():void 0,[d,f]=(0,p.useState)(null);(0,p.useEffect)(()=>{if(!u)return;let e=new AbortController;return ph(u,{signal:e.signal}).then(t=>{e.signal.aborted||(f({src:u,brandKit:t}),a?.(t))},t=>{e.signal.aborted||(f({src:u,brandKit:null}),o?o(t):console.error(t))}),()=>e.abort()},[u]);let m=u&&d?.src===u?d:null,h=m?.brandKit??e??null,g=m?.brandKit&&u?Bh(u):i,_=u?m?m.brandKit?`ready`:`error`:`loading`:`idle`,v=(0,p.useMemo)(()=>{let e=lh(h,g);return{brandKit:h,cssVars:oh(h,{defaults:r}),sourceUrl:g,status:_,logo:(e={})=>vh(h,{...e,sourceUrl:g}),collection:(e,t={})=>Sh(h,e,{...t,sourceUrl:g}),mapStyle:e=>Th(h,e),env:e=>wh(h,e),resolveUrl:t=>uh(t,e)}},[h,g,r,_]),y=(0,p.useMemo)(()=>Ih(h,{sourceUrl:g}),[h,g]),[b,x]=(0,p.useState)(()=>new Set),S=e=>x(t=>t.has(e)?t:new Set(t).add(e)),C=y.stylesheetUrls.filter(e=>!b.has(e)),w=C.join(`
51
51
  `),T=_===`loading`||C.length>0;return Rh(()=>T?j.hold():void 0,[T]),(0,p.useEffect)(()=>{if(!w)return;let e=setTimeout(()=>{for(let e of w.split(`
52
- `))S(e)},zh);return()=>clearTimeout(e)},[w]),(0,n.jsxs)(Lh.Provider,{value:v,children:[y.stylesheetUrls.map(e=>(0,n.jsx)(`link`,{rel:`stylesheet`,href:e,"data-uhuu-brand-kit-font":``,ref:t=>{t?.sheet&&S(e)},onLoad:()=>S(e),onError:()=>S(e)},e)),y.fontFaceCss?(0,n.jsx)(`style`,{"data-uhuu-brand-kit-font":``,children:y.fontFaceCss}):null,(0,n.jsx)(`div`,{"data-uhuu-brand-kit":typeof h?.id==`string`?h.id:``,"data-uhuu-brand-kit-status":_,className:s,style:{display:`contents`,...v.cssVars,...c},children:l})]})}function Hh(){return(0,p.useContext)(Lh)}var Uh=`uhuu_page_editor`;function Wh(e){return e.kind===`group`}function Gh(e){let t=[],n=1;for(let r of e)if(Wh(r))for(let e of r.pages)t.push({...e,kind:`page`,pageNum:n++});else t.push({...r,pageNum:n++});return t}function Kh(e){let t=[],n=1;for(let r of e)if(Wh(r)){let e=r.pages.map(e=>({...e,kind:`page`,pageNum:n++}));t.push({...r,pages:e})}else t.push({...r,pageNum:n++});return t}function qh(e){return Gh(e).length}function Jh(e){return e.map(e=>{let t=e.strictPosition;if(Wh(e)){let n=e.pages[0],r=n?.componentKey??n?.id;return{kind:`group`,id:e.id,groupId:e.id,firstPageId:n?.id,firstPageComponentKey:r,firstPageComponent:n?.component,pageCount:e.pages.length,label:e.label,strictPosition:t}}{let n=e.componentKey??e.id;return{kind:`page`,id:e.id,label:e.label,pageId:e.id,pageComponentKey:n,pageLabel:e.label,pageNum:e.pageNum,pageComponent:e.component,strictPosition:t}}})}function Yh(e,t){let n=new Map;t.forEach(e=>{n.set(e.id,e)});let r=[];for(let t of e){let e=n.get(t.id);e&&r.push(e)}return r}function Xh(e){return e.map(e=>{if(`kind`in e&&e.kind)return e;if(e.pages&&Array.isArray(e.pages))return{kind:`group`,...e,pages:(e.pages??[]).map(e=>{let{kind:t,...n}=e||{};return{kind:`page`,...n}})};let{kind:t,...n}=e;return{kind:`page`,...n}})}function Zh(e,t=Uh){let n=Xh(e);return{key:t,items:n,totalPages:qh(n),updatedAt:new Date().toISOString()}}function Qh(e,t=Uh){let n=e?.[t];if(!n?.items)return null;let r=Xh(n.items);return{key:t,items:r,totalPages:qh(r),updatedAt:n.updatedAt||new Date().toISOString()}}function $h(e,t,n=Uh){let r=Zh(t,n);return{...e??{},[n]:r}}function eg(){return Math.random().toString(36).slice(2,11)}function tg(e,t,n){return{kind:`page`,id:n?.repeatable?eg():e,componentKey:t,templateId:e,label:n?.label,repeatable:n?.repeatable,maxInstances:n?.maxInstances,...n}}function ng(e,t,n){let r=n?.repeatable?eg():e;return{kind:`group`,id:r,templateId:e,label:n?.label,repeatable:n?.repeatable??!1,maxInstances:n?.maxInstances??null,pages:t.map((e,t)=>{let n=typeof e==`string`?e:e.key,i=typeof e==`string`?void 0:e.dataKey,a=typeof e==`string`?void 0:e.hasFlow;return{id:`${r}__${i??n}__${t}`,componentKey:n,templateId:n,...i?{dataKey:i}:{},...a?{hasFlow:a}:{}}}),...n}}function rg(e,t){return e<0?t+e+1:e}function ig(e,t,n){for(let r of t){let t=rg(r.start,n),i=rg(r.end,n);if(e>=t&&e<=i)return!0}return!1}function ag(e,t,n=2){switch(e){case`all`:return[{start:1,end:t}];case`cover`:return[{start:1,end:n},{start:-n,end:-1}];case`text`:return t<=n*2?[]:[{start:n+1,end:-(n+1)}];default:return[]}}function og(e,t){if(!t||t.mode===`all`)return e;let n=qh(e),r=t.mode??`all`,i=t.coverPageCount??2,a=r===`custom`&&t.ranges?t.ranges:ag(r,n,i);if(a.length===0)return[];let o=[];for(let t of e)if(Wh(t)){let e=t.pages.filter(e=>e.pageNum&&ig(e.pageNum,a,n));e.length>0&&o.push({...t,pages:e})}else t.pageNum&&ig(t.pageNum,a,n)&&o.push(t);return o}function sg(e,t,n){if(!n||n.mode===`all`)return!0;let r=n.mode??`all`,i=n.coverPageCount??2,a=r===`custom`&&n.ranges?n.ranges:ag(r,t,i);return a.length!==0&&ig(e,a,t)}function cg(e,t){if(e?.integrations)return e.integrations[t]}function lg(e,t){return t&&Wh(t)?t.id:e?.id??null}function ug(e,t,n){let r=lg(t,n);return r?{instanceId:r,integration:cg(e,r)}:{instanceId:null,integration:void 0}}function dg(e,t,n){return ug(e,t,n).integration}function fg(e,t){if(!e)return null;let n=`integrations.${e}`;return t?`${n}.${t}`:n}function pg(e){if(!e)return{instanceId:null,fieldPath:e,isIntegrationPath:!1};if(e.startsWith(`integrations.`)){let t=e.slice(13),n=t.indexOf(`.`);return n>0?{instanceId:t.slice(0,n),fieldPath:t.slice(n+1),isIntegrationPath:!0}:{instanceId:t,fieldPath:``,isIntegrationPath:!0}}return{instanceId:null,fieldPath:e,isIntegrationPath:!1}}function mg(e,t,n){if(!t)return n;let r=t.split(`.`),i={...e},a=i;for(let e=0;e<r.length-1;e++){let t=r[e];!(t in a)||typeof a[t]!=`object`||a[t]===null?a[t]={}:a[t]={...a[t]},a=a[t]}let o=r[r.length-1];return a[o]=n,i}function hg(e,t,n){let r=pg(t);if(!r.isIntegrationPath||!r.instanceId)return e;let{instanceId:i,fieldPath:a}=r,o=mg(cg(e,i)||{},a,n);return{...e,integrations:{...e?.integrations||{},[i]:o}}}function gg(e,t){if(!e||!t)return;let n=typeof t==`string`?t:t?.id,r=typeof t==`string`?void 0:t?.templateId??t?.componentKey,i=typeof t==`string`?void 0:t?.componentKey,a=Array.from(new Set([n,r,i].filter(Boolean)));for(let t of a)if(e?.pages?.[t]!==void 0)return e.pages[t];for(let t of a)if(e?.groups?.[t]!==void 0)return e.groups[t];for(let t of a)if(e[t]!==void 0)return e[t]}var _g=p.createContext(null);function vg(e=Uh){return[e]}function yg(e,t,n){if(!t)return e;if(!e)return t;let r={...t};return n.forEach(t=>{e[t]!==void 0&&(r[t]=e[t])}),r}function bg({payload:e,onPayloadChange:t,children:r,stateKey:i=Uh}){let[a,o]=p.useState(e??{}),s=p.useRef(null),c=p.useRef(!1),l=p.useRef(null),u=p.useRef(0),d=p.useRef(!0),f=p.useCallback(e=>{try{return JSON.stringify(e)}catch{return String(e)}},[]),m=p.useMemo(()=>vg(i),[i]),h=p.useCallback((e,t)=>{if(!e)return null;let n={...e};return t.forEach(e=>{delete n[e]}),n},[]);p.useEffect(()=>{if(d.current)d.current=!1,e&&(s.current=e,o(e));else{if(c.current){c.current=!1;let t=l.current===null?null:f(h(l.current,m)),n=f(h(e,m));if(t!==null&&t===n){s.current=e;return}}if(e!==s.current){if(Date.now()-u.current<500&&l.current!==null){let t=h(e,m),n=h(l.current,m),r=t?f(t):null,i=n?f(n):null;if(r&&r===i){l.current=null,s.current=e;return}}s.current=e,o(t=>e?yg(t,e,m):t)}}},[e,m,f,h]);let g=p.useCallback(e=>{if(t?.(e),typeof window>`u`)return;let n=window.$uhuu;n?.emitPayload&&n.emitPayload(e)},[t]),_=p.useCallback(e=>{c.current=!0,o(t=>{let n=typeof e==`function`?e(t):e,r=n;return n&&typeof n==`object`&&Object.keys(n).filter(e=>e.startsWith(`integrations.`)||e===`integrations`).length>0&&n.integrations&&(r=n),l.current=r,u.current=Date.now(),queueMicrotask(()=>g(r)),r})},[g]),v=p.useCallback((e,t,n)=>{_(r=>({...r??{},pages:{...r?.pages??{},[e]:{...r?.pages?.[e]??{},[t]:n}}}))},[_]),y=p.useCallback((e,t)=>{_(n=>{let r=n?.integrations??{},i=r[e],a=typeof t==`function`?t(i):t;return{...n??{},integrations:{...r,[e]:a}}})},[_]),b=p.useCallback((e,t,n)=>{y(e,e=>({...e??{},[t]:n}))},[y]),x=p.useCallback(e=>{_(t=>{if(!t?.integrations||!t.integrations[e])return t;let{[e]:n,...r}=t.integrations;return{...t,integrations:Object.keys(r).length>0?r:void 0}})},[_]),S=p.useCallback((e,t)=>{_(n=>hg(n,e,t))},[_]),C=p.useCallback((e,t)=>{let n=t??i;_(t=>$h(t,e,n))},[_,i]),w=p.useCallback(e=>gg(a,e),[a]),T=p.useMemo(()=>({payload:a,setPayload:_,setPageOptionValue:v,setIntegrationPayload:y,setIntegrationPayloadValue:b,removeIntegrationPayload:x,updateIntegrationByDialogPath:S,mergePageEditorState:C,getPagePayload:w}),[a,_,v,y,b,x,S,C,w]);return(0,n.jsx)(_g.Provider,{value:T,children:r})}function xg(e){return e.defaultValue===void 0?e.type===`toggle`?!1:e.type===`slider`||e.type===`counter`?0:``:e.defaultValue}function Sg(e,t){return e.type===`toggle`?t===!0||t===`true`:e.type===`slider`||e.type===`counter`?Number(t):t}function Cg(e,t,n){let r=e.field??e.id;return{...e,getValue:n=>{let i=t?.pages?.[n.id]?.[r];return i===void 0?xg(e):e.type===`toggle`?!!i:i},onChange:(t,i)=>{n(t,r,Sg(e,i))}}}function wg(e){switch(e){case`fit-width`:return`width`;case`fit-height`:return`height`;case`fit-page`:return`both`;default:return`none`}}function Tg(e){let t=e.filter(({width:e,height:t})=>e>0&&t>0);return t.length?{width:t.reduce((e,t)=>e+t.width,0),height:Math.max(...t.map(e=>e.height))}:null}function Eg(e,t){if(e===`two_pages`)return Tg(t);let n=t.find(({width:e,height:t})=>e>0&&t>0);return n?{width:n.width,height:n.height}:null}function Dg({paneClientHeight:e,paneTop:t,viewportHeight:n}){let r=[e,n-Math.max(t,0)].filter(e=>e>0);return r.length?Math.min(...r):0}function Og({paneWidth:e,paneHeight:t,paddingX:n=0,paddingY:r=0,chromeHeight:i=0}){return{availableWidth:Math.max(e-n,0),availableHeight:Math.max(t-r-i,0)}}function kg({mode:e,contentWidth:t,contentHeight:n,availableWidth:r,availableHeight:i,minZoom:a,maxZoom:o}){if(e===`none`||t<=0||n<=0||r<=0||i<=0)return null;let s=r/t*100,c=i/n*100;return Math.min(Math.max(e===`width`?s:e===`height`?c:Math.min(s,c),a),o)}function Ag(e,t,n){return t>=e.left&&t<=e.left+e.width&&n>=e.top&&n<=e.top+e.height?{clientX:t,clientY:n}:{clientX:e.left+e.width/2,clientY:e.top+e.height/2}}function jg(e,t,n,r){if(e.width<=0||e.height<=0)return{deltaLeft:0,deltaTop:0};let i=n-e.left,a=r-e.top,o=t.left+i*(t.width/e.width),s=t.top+a*(t.height/e.height);return{deltaLeft:o-n,deltaTop:s-r}}function Mg(e){return{left:e.left,top:e.top,width:e.width,height:e.height}}function Ng(e,t,n){let r=-1,i=1/0;for(let a=0;a<e.length;a+=1){let o=e[a];if(o.width<=0||o.height<=0)continue;if(t>=o.left&&t<=o.left+o.width&&n>=o.top&&n<=o.top+o.height)return a;let s=t-(o.left+o.width/2),c=n-(o.top+o.height/2),l=s*s+c*c;l<i&&(i=l,r=a)}return r}function Pg(e){return e===`auto`||e===`scroll`||e===`overlay`}var Fg=24,Ig=64,Lg=1e3,Rg={width:`max-content`,margin:`auto`,padding:`0 ${Fg}px ${Ig}px`,overflowAnchor:`none`};function zg(e){let t=e,n=null,r=null;for(;t&&t!==document.documentElement;){let e=window.getComputedStyle(t);if(!n&&Pg(e.overflowX)&&(n=t),!r&&Pg(e.overflowY)&&(r=t),n&&r)return{x:n,y:r};t=t.parentElement}let i=document.scrollingElement;return{x:n??i,y:r??i}}function Bg(e){let t=Math.max(e.getBoundingClientRect().top,0),n=0,r=e.parentElement;for(;r&&r!==document.documentElement;){let e=window.getComputedStyle(r);e.display!==`contents`&&(n+=(Number.parseFloat(e.paddingBottom)||0)+(Number.parseFloat(e.borderBottomWidth)||0)+Math.max(Number.parseFloat(e.marginBottom)||0,0)),r=r.parentElement}return t+n}function Vg(e){let t=e.querySelector(`[data-section-content]`),n=t?.closest(`[class*="group/section"]`);if(!t||!n)return 0;let r=t.getBoundingClientRect().height;return r>0?Math.max(n.getBoundingClientRect().height-r,0):0}var Hg=(0,p.createContext)({zoom:100,scaleValue:1,hideUI:!1});function Ug({children:e,layout:t=`spread`,pageItemId:r}){let{scaleValue:i}=(0,p.useContext)(Hg),a=(0,p.useRef)(null);return(0,p.useEffect)(()=>{if(!a.current)return;let e=()=>{let e=a.current?.querySelectorAll(`[data-section-content]`);if(!e?.length)return;let t=Array.from(e).reduce((e,t)=>e+Number.parseInt(t.getAttribute(`data-natural-width`)||`0`),0);if(t>0){let e=t*i;a.current?.style.setProperty(`--uhuu-group-pair-width`,`${e}px`)}};e();let t=new ResizeObserver(e);return a.current.querySelectorAll(`[data-section-content]`).forEach(e=>t.observe(e)),()=>t.disconnect()},[e,i]),(0,n.jsx)(`div`,{ref:a,className:`two-pages-pair two-pages-pair--${t}`,"data-page-item-id":r,children:e})}function Wg(e){let t=Number.parseFloat(e.getAttribute(`data-natural-width`)||`0`),n=Number.parseFloat(e.getAttribute(`data-natural-height`)||`0`);return t>0&&n>0?{width:t,height:n}:null}function Gg(e,t){let n=t===`two_pages`?e.querySelector(`.two-pages-pair`):e;if(!n)return null;let r=t===`two_pages`?Array.from(n.querySelectorAll(`[data-section-content]`)):(()=>{let e=n.querySelector(`[data-section-content]`);return e?[e]:[]})();return r.length?Eg(t,r.map(Wg).filter(e=>e!==null)):null}function Kg({children:e,title:t,className:r=``,controls:i,origin:a=`center`}){let{scaleValue:o,hideUI:s}=(0,p.useContext)(Hg),c=(0,p.useRef)(null),[l,u]=(0,p.useState)(0),[d,f]=(0,p.useState)(0);(0,p.useEffect)(()=>{if(c.current){let e=()=>{let e=c.current;if(e){let t=e.style.transform;e.style.transform=`scale(1)`;let n=e.scrollHeight,r=e.scrollWidth;e.style.transform=t,u(n),f(r)}};e();let t=new ResizeObserver(e);return t.observe(c.current),()=>{t.disconnect()}}},[e]);let m=l*o,h=Math.max(d*o,150),{justify:g,origin:_}={left:{justify:`uhuu:justify-start`,origin:`top left`},right:{justify:`uhuu:justify-end`,origin:`top right`},center:{justify:`uhuu:justify-center`,origin:`top center`}}[a];return s?(0,n.jsx)(`div`,{className:r,children:e}):(0,n.jsxs)(`div`,{className:`uhuu:group/section ${r}`,style:{width:`${h}px`,minWidth:`150px`},children:[(0,n.jsx)(`div`,{children:i??(0,n.jsx)(`div`,{"data-uhuu-editor":!0,className:`uhuu:px-4 uhuu:py-2 uhuu:border-b uhuu:border-gray-200`,children:(0,n.jsxs)(`div`,{className:`uhuu:text-sm uhuu:font-medium uhuu:text-gray-700`,children:[t,` Controls`]})})}),(0,n.jsx)(`div`,{className:`uhuu:pt-1`,style:{height:m>0?`${m+32}px`:`auto`,minHeight:`100px`},children:(0,n.jsx)(`div`,{className:`uhuu:flex uhuu:items-start ${g}`,children:(0,n.jsx)(`div`,{ref:c,"data-section-content":!0,"data-natural-width":d,"data-natural-height":l,style:{transform:`scale(${o})`,transformOrigin:_},children:e})})})]})}function qg({children:e,className:t=``,defaultZoom:i=100,minZoom:a=25,maxZoom:o=200,onAddPage:s,menuItems:c,hideUI:l,preview:u=`single_page`,defaultZoomMode:d=`manual`,scrollMode:f=`pane`}){let m=_a(),h=l??m,{t:g}=Hi(),[_,v]=(0,p.useState)(i),[y,b]=(0,p.useState)(()=>wg(d)),[x,S]=(0,p.useState)(()=>wg(d)!==`none`),[C,w]=(0,p.useState)(0),T=(0,p.useRef)(null),E=(0,p.useRef)(null),D=(0,p.useRef)(null),O=(0,p.useRef)(null),k=(0,p.useRef)(_);(0,p.useEffect)(()=>{k.current=_},[_]);let A=(0,p.useCallback)(()=>f===`pane`&&E.current?{x:E.current,y:E.current}:zg(T.current),[f]),j=(0,p.useCallback)((e,t,n)=>{let i=Math.min(Math.max(e,a),o),s=O.current;if(!s){v(i),b(`none`);return}let c=A(),l=Array.from(s.querySelectorAll(`[data-section-content]`)),u=Ng(l.map(e=>Mg(e.getBoundingClientRect())),t,n),d=u>=0?l[u]:s,f=Mg(d.getBoundingClientRect()),p=Ag(f,t,n);(0,r.flushSync)(()=>{v(i),b(`none`)});let m=()=>{let e=Mg(d.getBoundingClientRect()),{deltaLeft:t,deltaTop:n}=jg(f,e,p.clientX,p.clientY);t!==0&&c.x&&(c.x.scrollLeft+=t),n!==0&&c.y&&(c.y.scrollTop+=n)};m(),window.requestAnimationFrame(m)},[o,a,A]),M=(0,p.useCallback)(()=>{let e=(f===`pane`?E.current:T.current)?.getBoundingClientRect();return e?{clientX:e.left+e.width/2,clientY:e.top+e.height/2}:{clientX:0,clientY:0}},[f]),N=(0,p.useCallback)(()=>{let e=O.current;if(y===`none`||!e)return;let t=Gg(e,u);if(!t)return;let n=f===`pane`?E.current:T.current;if(!n)return;let r=n.getBoundingClientRect(),i=n.ownerDocument.defaultView??window,s=i.visualViewport?.height??n.ownerDocument.documentElement.clientHeight??i.innerHeight,c=n.clientWidth||r.width,l=f===`pane`?Dg({paneClientHeight:n.clientHeight||r.height,paneTop:r.top,viewportHeight:s}):s-Math.max(r.top,0),d=D.current?window.getComputedStyle(D.current):null,{availableWidth:p,availableHeight:m}=Og({paneWidth:c,paneHeight:l,paddingX:d?Number.parseFloat(d.paddingLeft)+Number.parseFloat(d.paddingRight):0,paddingY:d?Number.parseFloat(d.paddingTop)+Number.parseFloat(d.paddingBottom):0,chromeHeight:Vg(e)}),h=kg({mode:y,contentWidth:t.width,contentHeight:t.height,availableWidth:p,availableHeight:m,minZoom:a,maxZoom:o});h!==null&&(v(e=>Math.abs(e-h)<.01?e:h),S(!1))},[y,o,a,u,f]),P=e=>{b(e)};(0,p.useEffect)(()=>{if(!x)return;if(y===`none`){S(!1);return}let e=window.setTimeout(()=>S(!1),Lg);return()=>window.clearTimeout(e)},[x,y]);let F=()=>{let e=M();j(_+25,e.clientX,e.clientY)},I=()=>{let e=M();j(_-25,e.clientX,e.clientY)};(0,p.useEffect)(()=>{if(y===`none`||!T.current||!O.current)return;let e=0,t=()=>{window.cancelAnimationFrame(e),e=window.requestAnimationFrame(N)},n=new ResizeObserver(t);n.observe(T.current),E.current&&n.observe(E.current),n.observe(O.current);let r=()=>{O.current?.querySelectorAll(`[data-section-content]`).forEach(e=>{n.observe(e)})};r();let i=new MutationObserver(()=>{r(),t()});return i.observe(O.current,{childList:!0,subtree:!0}),window.addEventListener(`resize`,t),window.visualViewport?.addEventListener(`resize`,t),t(),()=>{window.cancelAnimationFrame(e),n.disconnect(),i.disconnect(),window.removeEventListener(`resize`,t),window.visualViewport?.removeEventListener(`resize`,t)}},[y,N]),(0,p.useEffect)(()=>{if(h||f!==`pane`)return;let e=T.current;if(!e)return;let t=()=>{let t=Bg(e);w(e=>Math.abs(e-t)<.5?e:t)};t();let n=new ResizeObserver(t);return n.observe(e),window.addEventListener(`resize`,t),window.visualViewport?.addEventListener(`resize`,t),()=>{n.disconnect(),window.removeEventListener(`resize`,t),window.visualViewport?.removeEventListener(`resize`,t)}},[h,f]),(0,p.useEffect)(()=>{if(h)return;let e=null,t=null,n=null,r={clientX:0,clientY:0},i=null,s=!1,c=()=>{e=null;let t=n;n=null,t!==null&&j(t,r.clientX,r.clientY)},l=t=>{if(!t.ctrlKey&&!t.metaKey)return;t.preventDefault();let i=t.deltaMode===1?t.deltaY*16:t.deltaMode===2?t.deltaY*16*32:t.deltaY,s=n??k.current,l=Math.min(Math.max(s*1.003**-i,a),o);r={clientX:t.clientX,clientY:t.clientY},(l!==s||n!==null)&&(n=l,e===null&&(e=window.requestAnimationFrame(c)))},u=()=>{t=null,!s&&(i=f===`pane`?E.current:T.current,i?i.addEventListener(`wheel`,l,{passive:!1}):t=window.requestAnimationFrame(u))};return u(),()=>{s=!0,e!==null&&window.cancelAnimationFrame(e),t!==null&&window.cancelAnimationFrame(t),i?.removeEventListener(`wheel`,l)}},[j,h,o,a,f]);let L=_/100;return h?(0,n.jsx)(Hg.Provider,{value:{zoom:100,scaleValue:1,hideUI:!0},children:(0,n.jsx)(`div`,{className:t,children:e})}):(0,n.jsx)(Hg.Provider,{value:{zoom:_,scaleValue:L,hideUI:!1},children:(0,n.jsxs)(`div`,{ref:T,className:`uhuu:flex uhuu:flex-col uhuu:flex-1 uhuu:min-h-0 ${t}`,children:[(0,n.jsxs)(`div`,{"data-uhuu-editor":!0,className:`uhuu:fixed uhuu:right-4 uhuu:bottom-4 uhuu:z-50 uhuu:flex uhuu:items-center uhuu:gap-1.5 uhuu:px-2.5 uhuu:py-1.5 uhuu:bg-(--uhuu-shell-surface)/90 uhuu:backdrop-blur-md uhuu:border uhuu:border-gray-200/60 uhuu:rounded-lg uhuu:shadow-sm`,children:[c,(0,n.jsx)(`div`,{className:`uhuu:h-4 uhuu:w-px uhuu:bg-gray-200 uhuu:mx-0.5`}),(0,n.jsxs)(em,{modal:!1,children:[(0,n.jsx)(tm,{asChild:!0,children:(0,n.jsxs)(Ta,{variant:`ghost`,size:`sm`,title:g(`zoom.menu`),className:`uhuu:text-xs uhuu:font-medium uhuu:text-gray-700 uhuu:hover:bg-gray-100/80 uhuu:h-7 uhuu:px-2.5`,children:[Math.round(_),`%`,(0,n.jsx)(zr,{className:`uhuu:w-3 uhuu:h-3 uhuu:ml-1 uhuu:opacity-60`})]})}),(0,n.jsxs)(am,{className:`uhuu:w-52 uhuu:p-1.5`,align:`end`,children:[(0,n.jsxs)(om,{onClick:()=>P(`width`),className:`uhuu:cursor-pointer uhuu:flex uhuu:items-center ${y===`width`?`uhuu:bg-gray-100`:``}`,children:[(0,n.jsx)(Qr,{className:`uhuu:w-4 uhuu:h-4 uhuu:mr-2`}),(0,n.jsx)(`span`,{children:g(`zoom.fitWidth`)})]}),(0,n.jsxs)(om,{onClick:()=>P(`height`),className:`uhuu:cursor-pointer uhuu:flex uhuu:items-center ${y===`height`?`uhuu:bg-gray-100`:``}`,children:[(0,n.jsx)($r,{className:`uhuu:w-4 uhuu:h-4 uhuu:mr-2`}),(0,n.jsx)(`span`,{children:g(`zoom.fitHeight`)})]}),(0,n.jsxs)(om,{onClick:()=>P(`both`),className:`uhuu:cursor-pointer uhuu:flex uhuu:items-center ${y===`both`?`uhuu:bg-gray-100`:``}`,children:[(0,n.jsx)(Kr,{className:`uhuu:w-4 uhuu:h-4 uhuu:mr-2`}),(0,n.jsx)(`span`,{children:g(`zoom.fitPage`)})]}),(0,n.jsx)(um,{className:`uhuu:my-1.5`}),(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:justify-center uhuu:gap-2 uhuu:px-3 uhuu:py-2.5`,onClick:e=>e.stopPropagation(),children:[(0,n.jsx)(Ta,{variant:`ghost`,size:`sm`,onClick:e=>{e.stopPropagation(),I()},disabled:_<=a,className:`uhuu:h-8 uhuu:w-8 uhuu:p-0 uhuu:hover:bg-gray-100 uhuu:disabled:opacity-40`,title:g(`zoom.zoomOut`),children:(0,n.jsx)(ni,{className:`uhuu:w-4 uhuu:h-4`})}),(0,n.jsxs)(`div`,{className:`uhuu:relative`,children:[(0,n.jsx)(`input`,{type:`number`,value:Math.round(_),onChange:e=>{let t=Number.parseInt(e.target.value);if(!isNaN(t)){let e=M();j(t,e.clientX,e.clientY)}},onFocus:e=>e.target.select(),className:`uhuu:w-20 uhuu:pr-6 uhuu:text-center uhuu:text-sm uhuu:text-gray-700 uhuu:bg-(--uhuu-shell-surface) uhuu:border uhuu:border-gray-300 uhuu:rounded uhuu:px-2 uhuu:py-1.5 uhuu:focus:outline-none uhuu:focus:ring-2 uhuu:focus:ring-blue-500 uhuu:focus:border-transparent uhuu:transition-all`,min:a,max:o}),(0,n.jsx)(`span`,{className:`uhuu:absolute uhuu:right-2 uhuu:top-1/2 uhuu:-translate-y-1/2 uhuu:text-xs uhuu:text-gray-400 uhuu:pointer-events-none`,children:`%`})]}),(0,n.jsx)(Ta,{variant:`ghost`,size:`sm`,onClick:e=>{e.stopPropagation(),F()},disabled:_>=o,className:`uhuu:h-8 uhuu:w-8 uhuu:p-0 uhuu:hover:bg-gray-100 uhuu:disabled:opacity-40`,title:g(`zoom.zoomIn`),children:(0,n.jsx)(ti,{className:`uhuu:w-4 uhuu:h-4`})})]})]})]})]}),(0,n.jsx)(`div`,{ref:E,className:f===`pane`?`uhuu-zoom-pane`:void 0,style:f===`pane`?{height:`calc(100dvh - ${C}px)`,maxHeight:`100%`,overflow:`auto`,overscrollBehavior:`contain`}:void 0,children:(0,n.jsx)(`div`,{ref:D,className:`uhuu-zoom-pane-content`,style:x?{...Rg,visibility:`hidden`}:Rg,children:(0,n.jsx)(`div`,{ref:O,className:u===`two_pages`?`group_two_pages`:`uhuu:flex uhuu:flex-col uhuu:items-center`,children:e})})})]})})}var Jg=Object.defineProperty,Yg=(e,t)=>Jg(e,`name`,{value:t,configurable:!0}),Xg=`Dialog`,[Zg,Qg]=Ba(Xg),[$g,e_]=Zg(Xg),t_=Yg(e=>{let{__scopeDialog:t,children:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=p.useRef(null),l=p.useRef(null),{nodes:u,registry:d}=vs(),[f,m]=Za({prop:i,defaultProp:a??!1,onChange:o,caller:Xg}),[h,g]=p.useState(0),[_,v]=p.useState(0);return(0,n.jsx)($g,{scope:t,triggerRef:c,contentRef:l,contentId:Fs(),titleId:Fs(),descriptionId:Fs(),titlePresent:h>0,descriptionPresent:_>0,setTitleCount:g,setDescriptionCount:v,open:f,onOpenChange:m,onOpenToggle:p.useCallback(()=>m(e=>!e),[m]),modal:s,branchNodes:u,branchRegistry:d,children:r})},`Dialog`),n_=`DialogTrigger`,r_=p.forwardRef(Yg(function(e,t){let{__scopeDialog:r,...i}=e,a=e_(n_,r),o=q(t,a.triggerRef);return(0,n.jsx)(J.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":S_(a.open),...i,ref:o,onClick:K(e.onClick,a.onOpenToggle)})},`DialogTrigger`)),i_=`DialogPortal`,[a_,o_]=Zg(i_,{forceMount:void 0}),s_=Yg(e=>{let{__scopeDialog:t,forceMount:r,children:i,container:a}=e,o=e_(i_,t);return(0,n.jsx)(a_,{scope:t,forceMount:r,children:p.Children.map(i,e=>(0,n.jsx)(bu,{present:r||o.open,children:(0,n.jsx)(gu,{asChild:!0,container:a,children:e})}))})},`DialogPortal`),c_=`DialogOverlay`,l_=p.forwardRef(Yg(function(e,t){let r=o_(c_,e.__scopeDialog),{forceMount:i=r.forceMount,...a}=e,o=e_(c_,e.__scopeDialog);return o.modal?(0,n.jsx)(bu,{present:i||o.open,children:(0,n.jsx)(d_,{...a,ref:t})}):null},`DialogOverlay`)),u_=io(`DialogOverlay.RemoveScroll`),d_=p.forwardRef(Yg(function(e,t){let{__scopeDialog:r,...i}=e,a=e_(c_,r),o=q(t,Zo());return(0,n.jsx)(xf,{as:u_,allowPinchZoom:!0,shards:p.useMemo(()=>[a.contentRef,...a.branchNodes.map(e=>({current:e}))],[a.contentRef,a.branchNodes]),children:(0,n.jsx)(J.div,{"data-state":S_(a.open),...i,ref:o,style:{pointerEvents:`auto`,...i.style}})})},`DialogOverlayImpl`)),f_=`DialogContent`,p_=p.forwardRef(Yg(function(e,t){let r=o_(f_,e.__scopeDialog),{forceMount:i=r.forceMount,...a}=e,o=e_(f_,e.__scopeDialog);return(0,n.jsx)(bu,{present:i||o.open,children:o.modal?(0,n.jsx)(m_,{...a,ref:t}):(0,n.jsx)(h_,{...a,ref:t})})},`DialogContent`)),m_=p.forwardRef(Yg(function(e,t){let r=e_(f_,e.__scopeDialog),i=p.useRef(null),a=q(t,r.contentRef,i);return p.useEffect(()=>{let e=i.current;if(e)return dd(e)},[]),(0,n.jsx)(g_,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,onCloseAutoFocus:K(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:K(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:K(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),h_=p.forwardRef(Yg(function(e,t){let r=e_(f_,e.__scopeDialog),i=p.useRef(!1),a=p.useRef(!1);return(0,n.jsx)(g_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||r.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,t.detail.originalEvent.type===`pointerdown`&&(a.current=!0));let n=t.target;r.triggerRef.current?.contains(n)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&a.current&&t.preventDefault()}})},`DialogContentNonModal`)),g_=p.forwardRef(Yg(function(e,t){let{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,"aria-describedby":s,children:c,...l}=e,u=e_(f_,r);return cs(),(0,n.jsx)(_s,{registry:u.branchRegistry,children:(0,n.jsx)(hs,{asChild:!0,loop:!0,trapped:i,branches:u.branchNodes,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,n.jsx)(Xo,{role:`dialog`,id:u.contentId,"aria-labelledby":u.titlePresent?u.titleId:void 0,"aria-describedby":u.descriptionPresent?x_(s,u.descriptionId):s,"data-state":S_(u.open),...l,ref:t,deferPointerDownOutside:!0,onDismiss:()=>u.onOpenChange(!1),children:c})})})},`DialogContentImpl`)),__=p.forwardRef(Yg(function(e,t){let{__scopeDialog:r,...i}=e,a=e_(`DialogTitle`,r),{setTitleCount:o}=a;return Ha(()=>(o(e=>e+1),()=>o(e=>e-1)),[o]),(0,n.jsx)(J.h2,{id:a.titleId,...i,ref:t})},`DialogTitle`)),v_=p.forwardRef(Yg(function(e,t){let{__scopeDialog:r,...i}=e,a=e_(`DialogDescription`,r),{setDescriptionCount:o}=a;return Ha(()=>(o(e=>e+1),()=>o(e=>e-1)),[o]),(0,n.jsx)(J.p,{id:a.descriptionId,...i,ref:t})},`DialogDescription`)),y_=`DialogClose`,b_=p.forwardRef(Yg(function(e,t){let{__scopeDialog:r,...i}=e,a=e_(y_,r);return(0,n.jsx)(J.button,{type:`button`,...i,ref:t,onClick:K(e.onClick,()=>a.onOpenChange(!1))})},`DialogClose`));function x_(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}Yg(x_,`concatAriaDescribedby`);function S_(e){return e?`open`:`closed`}Yg(S_,`getState`);var C_=t_,w_=s_,T_=p.forwardRef(({className:e,...t},r)=>(0,n.jsx)(l_,{className:G(`uhuu:fixed uhuu:inset-0 uhuu:z-50 uhuu:bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t,ref:r}));T_.displayName=l_.displayName;var E_=p.forwardRef(({side:e=`right`,className:t,children:r,...i},a)=>{let{portalContainer:o}=ii(),s=Hi().t(`dialog.close`);return(0,n.jsxs)(w_,{container:o||void 0,children:[(0,n.jsx)(T_,{}),(0,n.jsxs)(p_,{ref:a,className:G(`uhuu:fixed uhuu:z-50 uhuu:gap-4 uhuu:bg-(--uhuu-shell-surface) uhuu:p-6 uhuu:shadow-lg uhuu:transition uhuu:ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out uhuu:data-[state=closed]:duration-300 uhuu:data-[state=open]:duration-500`,e===`top`&&`uhuu:inset-x-0 uhuu:top-0 uhuu:border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,e===`bottom`&&`uhuu:inset-x-0 uhuu:bottom-0 uhuu:border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,e===`left`&&`uhuu:inset-y-0 uhuu:left-0 uhuu:h-full uhuu:w-3/4 uhuu:border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left uhuu:sm:max-w-sm`,e===`right`&&`uhuu:inset-y-0 uhuu:right-0 uhuu:h-full uhuu:w-3/4 uhuu:border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right uhuu:sm:max-w-sm`,t),...i,children:[r,(0,n.jsxs)(b_,{className:`uhuu:absolute uhuu:right-4 uhuu:top-4 uhuu:rounded-sm uhuu:opacity-70 uhuu:ring-offset-(--uhuu-shell-surface) uhuu:transition-opacity uhuu:hover:opacity-100 uhuu:focus:outline-none uhuu:focus:ring-2 uhuu:focus:ring-gray-400 uhuu:focus:ring-offset-2 uhuu:disabled:pointer-events-none uhuu:data-[state=open]:bg-gray-100`,children:[(0,n.jsx)(ei,{className:`uhuu:h-4 uhuu:w-4`}),(0,n.jsx)(`span`,{className:`uhuu:sr-only`,children:s})]})]})]})});E_.displayName=p_.displayName;var D_=({className:e,...t})=>(0,n.jsx)(`div`,{className:G(`uhuu:flex uhuu:flex-col uhuu:space-y-2 uhuu:text-center uhuu:sm:text-left`,e),...t});D_.displayName=`SheetHeader`;var O_=({className:e,...t})=>(0,n.jsx)(`div`,{className:G(`uhuu:flex uhuu:flex-col-reverse uhuu:sm:flex-row uhuu:sm:justify-end uhuu:sm:space-x-2`,e),...t});O_.displayName=`SheetFooter`;var k_=p.forwardRef(({className:e,...t},r)=>(0,n.jsx)(__,{ref:r,className:G(`uhuu:text-lg uhuu:font-medium uhuu:text-gray-900`,e),...t}));k_.displayName=__.displayName;var A_=p.forwardRef(({className:e,...t},r)=>(0,n.jsx)(v_,{ref:r,className:G(`uhuu:text-sm uhuu:text-gray-500`,e),...t}));A_.displayName=v_.displayName;function j_(e){let{pageComponents:t,payload:r,setup:i={width:210,height:297},thumbnailWidth:a=200,thumbnailHeight:o,i18n:s}=e,{t:c,localize:l}=s,u=T.resolveDimensions(i),d=u.width,f=u.height,p=d/f,m=a,h=o??Math.round(m/p),g=d*3.779527559,_=f*3.779527559;return(e,i,a)=>{let o=e.strictPosition,s=o===`start`||o===`end`;if(e.kind===`group`){let i=e.firstPageId,u=e.firstPageComponentKey??i,d=gg(r,{id:i,componentKey:u}),f=e.firstPageComponent||(u?t[u]:null),p=r?.integrations?.[e.id];return(0,n.jsxs)(`div`,{"data-uhuu-paper":!0,className:`uhuu:relative uhuu:bg-white uhuu:border uhuu:transition-all ${a?`uhuu:border-blue-400 uhuu:shadow-2xl uhuu:scale-105`:s?`uhuu:border-(--uhuu-thumbnail-border-strong) uhuu:bg-gray-50`:`uhuu:border-(--uhuu-thumbnail-border) uhuu:hover:border-(--uhuu-thumbnail-border-strong) uhuu:hover:shadow-lg`}`,style:{width:`${m}px`,height:`${h}px`},title:e.id,children:[f?(0,n.jsx)(`div`,{className:`uhuu:w-full uhuu:h-full uhuu:flex uhuu:items-center uhuu:justify-center uhuu:bg-gray-50 uhuu:overflow-hidden uhuu:relative uhuu:pointer-events-none`,children:(0,n.jsx)(`div`,{style:{transform:`scale(${Math.min(m/g,h/_)})`,transformOrigin:`center`},children:(0,n.jsx)(`div`,{className:`uhuu:shrink-0!`,style:{width:`${g}px`,height:`${_}px`,backgroundColor:`white`,pointerEvents:`none`},children:(0,n.jsx)(f,{payload:r,pageId:i,templateId:u,pagePayload:d,componentKey:u,integration:p,parentGroup:e})})})}):(0,n.jsx)(`div`,{"data-uhuu-chrome":!0,className:`uhuu:w-full uhuu:h-full uhuu:flex uhuu:items-center uhuu:justify-center uhuu:bg-gray-50 uhuu:pointer-events-none`,children:(0,n.jsxs)(`div`,{className:`uhuu:text-center uhuu:p-4`,children:[(0,n.jsx)(`div`,{className:`uhuu:text-sm uhuu:font-medium uhuu:text-gray-700`,children:c(`thumbnail.groupFallbackName`,{id:e.id})}),(0,n.jsx)(`div`,{className:`uhuu:text-xs uhuu:text-gray-500 uhuu:mt-1`,children:i||c(`thumbnail.noPreview`)})]})}),(0,n.jsx)(`div`,{"data-uhuu-chrome":!0,className:`uhuu:absolute uhuu:top-2 uhuu:right-2 uhuu:px-2 uhuu:py-1 uhuu:bg-blue-600/80 uhuu:backdrop-blur-sm uhuu:text-white uhuu:text-xs uhuu:font-medium uhuu:rounded uhuu:shadow-lg uhuu:pointer-events-none`,children:c(`thumbnail.groupBadge`,{count:e.pageCount})}),s&&(0,n.jsxs)(`div`,{"data-uhuu-chrome":!0,className:`uhuu:absolute uhuu:top-2 uhuu:left-2 uhuu:px-2 uhuu:py-1 uhuu:bg-gray-600/80 uhuu:backdrop-blur-sm uhuu:text-white uhuu:text-xs uhuu:font-medium uhuu:rounded uhuu:shadow-lg uhuu:pointer-events-none uhuu:flex uhuu:items-center uhuu:gap-1`,children:[(0,n.jsx)(Gr,{className:`uhuu:size-3`}),(0,n.jsx)(`span`,{children:c(o===`start`?`thumbnail.start`:`thumbnail.end`)})]}),(0,n.jsx)(`div`,{"data-uhuu-chrome":!0,className:`uhuu:absolute uhuu:bottom-0 uhuu:left-0 uhuu:right-0 uhuu:bg-(--uhuu-thumbnail-caption) uhuu:backdrop-blur-sm uhuu:p-3 uhuu:pointer-events-none`,children:(0,n.jsx)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:justify-between uhuu:gap-2 uhuu:text-white`,children:(0,n.jsx)(`div`,{className:`uhuu:flex-1 uhuu:min-w-0`,children:(0,n.jsx)(`div`,{className:`uhuu:text-sm uhuu:font-medium uhuu:truncate`,children:l(e.label)||e.id})})})}),a&&(0,n.jsx)(`div`,{"data-uhuu-chrome":!0,className:`uhuu:absolute uhuu:inset-0 uhuu:flex uhuu:items-center uhuu:justify-center uhuu:bg-blue-500/10 uhuu:pointer-events-none`,children:(0,n.jsx)(`div`,{className:`uhuu:text-blue-600 uhuu:font-medium uhuu:text-sm uhuu:bg-white/90 uhuu:px-3 uhuu:py-1 uhuu:rounded-full uhuu:shadow-lg`,children:c(`thumbnail.draggingGroup`)})})]})}{let i=e.pageId,u=e.pageComponentKey??i,d=gg(r,{id:i,componentKey:u}),f=e.pageComponent||(u?t[u]:null),p=i?dg(r,{id:i}):void 0;return(0,n.jsxs)(`div`,{"data-uhuu-paper":!0,className:`uhuu:relative uhuu:bg-white uhuu:border uhuu:transition-all ${a?`uhuu:border-blue-400 uhuu:shadow-2xl uhuu:scale-105`:s?`uhuu:border-(--uhuu-thumbnail-border-strong) uhuu:bg-gray-50`:`uhuu:border-(--uhuu-thumbnail-border) uhuu:hover:border-(--uhuu-thumbnail-border-strong) uhuu:hover:shadow-lg`}`,style:{width:`${m}px`,height:`${h}px`},title:e.pageId,children:[f?(0,n.jsx)(`div`,{className:`uhuu:w-full uhuu:h-full uhuu:flex uhuu:items-center uhuu:justify-center uhuu:bg-gray-50 uhuu:overflow-hidden uhuu:relative uhuu:pointer-events-none`,children:(0,n.jsx)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:justify-center uhuu:pointer-events-none`,style:{transform:`scale(${Math.min(m/g,h/_)})`,transformOrigin:`center`},children:(0,n.jsx)(`div`,{className:`uhuu:shrink-0!`,style:{width:`${g}px`,height:`${_}px`,backgroundColor:`white`,pointerEvents:`none`},children:(0,n.jsx)(f,{payload:r,pageId:i,templateId:u,pagePayload:d,componentKey:u,integration:p})})})}):(0,n.jsx)(`div`,{"data-uhuu-chrome":!0,className:`uhuu:w-full uhuu:h-full uhuu:flex uhuu:items-center uhuu:justify-center uhuu:bg-gray-50 uhuu:pointer-events-none`,children:(0,n.jsxs)(`div`,{className:`uhuu:text-center uhuu:p-4`,children:[(0,n.jsx)(`div`,{className:`uhuu:text-sm uhuu:font-medium uhuu:text-gray-700`,children:c(`page.fallbackName`,{number:e.pageNum})}),(0,n.jsx)(`div`,{className:`uhuu:text-xs uhuu:text-gray-500 uhuu:mt-1`,children:i||c(`thumbnail.noPreview`)})]})}),s&&(0,n.jsxs)(`div`,{"data-uhuu-chrome":!0,className:`uhuu:absolute uhuu:top-2 uhuu:left-2 uhuu:px-2 uhuu:py-1 uhuu:bg-gray-600/80 uhuu:backdrop-blur-sm uhuu:text-white uhuu:text-xs uhuu:font-medium uhuu:rounded uhuu:shadow-lg uhuu:pointer-events-none uhuu:flex uhuu:items-center uhuu:gap-1`,children:[(0,n.jsx)(Gr,{className:`uhuu:size-3`}),(0,n.jsx)(`span`,{children:c(o===`start`?`thumbnail.start`:`thumbnail.end`)})]}),(0,n.jsx)(`div`,{"data-uhuu-chrome":!0,className:`uhuu:absolute uhuu:bottom-0 uhuu:left-0 uhuu:right-0 uhuu:bg-(--uhuu-thumbnail-caption) uhuu:backdrop-blur-sm uhuu:p-3 uhuu:pointer-events-none`,children:(0,n.jsx)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:justify-between uhuu:gap-2 uhuu:text-white`,children:(0,n.jsx)(`div`,{className:`uhuu:flex-1 uhuu:min-w-0`,children:(0,n.jsx)(`div`,{className:`uhuu:text-sm uhuu:font-medium uhuu:truncate`,children:l(e.pageLabel)||c(`page.fallbackName`,{number:e.pageNum})})})})}),a&&(0,n.jsx)(`div`,{"data-uhuu-chrome":!0,className:`uhuu:absolute uhuu:inset-0 uhuu:flex uhuu:items-center uhuu:justify-center uhuu:bg-blue-500/10 uhuu:pointer-events-none`,children:(0,n.jsx)(`div`,{className:`uhuu:text-blue-600 uhuu:font-medium uhuu:text-sm uhuu:bg-white/90 uhuu:px-3 uhuu:py-1 uhuu:rounded-full uhuu:shadow-lg`,children:c(`thumbnail.draggingPage`)})})]})}}}function M_({open:e,onOpenChange:t,availableItems:r,onSelectItem:i,pageComponents:a,payload:o,setup:s={width:210,height:297},gridColsClass:c=`uhuu-page-order-grid-cols`}){let l=Hi(),{t:u,localize:d}=l,[f,m]=p.useState(``),h=p.useMemo(()=>{if(!f.trim())return r;let e=f.toLowerCase();return r.filter(t=>(d(t.label)||``).toLowerCase().includes(e)||t.id.toLowerCase().includes(e))},[r,f,d]),g=e=>{t(!1),i(e)},_=T.resolveDimensions(s),v=_.width/_.height,y=Math.round(200/v),b={width:`200px`,height:`${y}px`},x=p.useMemo(()=>a?j_({pageComponents:a,payload:o,setup:s,thumbnailWidth:200,thumbnailHeight:y,i18n:l}):null,[a,o,s,200,y,l]),S=(e,t)=>{if(!e)return[];if(Array.isArray(e))return e;try{let n=e(t);if(!Array.isArray(n))return console.error(`[uhuu-components] pageComponentKeys function must return an array, got:`,typeof n),[];let r=n.filter(e=>typeof e==`string`);return r.length!==n.length&&console.warn(`[uhuu-components] pageComponentKeys returned non-string values, filtering them out`),r}catch(e){return console.error(`[uhuu-components] Error evaluating pageComponentKeys function:`,e),[]}},C=(e,t)=>{if(e.kind===`group`){let t=e,n={payload:o,item:void 0,parent:void 0},r=S(t.pageComponentKeys,n),i=r[0];return{kind:`group`,id:e.id,label:e.label,pageCount:r.length,firstPageId:i,firstPageComponentKey:i}}let n=e,r=n.componentKey??n.id;return{kind:`page`,id:n.id,pageId:n.id,pageComponentKey:r,pageLabel:n.label,pageNum:t+1}};return(0,n.jsx)(C_,{open:e,onOpenChange:t,children:(0,n.jsxs)(E_,{side:`bottom`,className:`uhuu:h-[90vh] uhuu:w-full uhuu:max-w-none uhuu:flex uhuu:flex-col uhuu:gap-0 uhuu:bg-gray-50 uhuu:p-0`,"data-uhuu-editor":!0,children:[(0,n.jsx)(D_,{className:`uhuu:border-b uhuu:border-gray-200 uhuu:p-4 uhuu:bg-(--uhuu-shell-surface)`,children:(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:items-end uhuu:gap-3`,children:[(0,n.jsx)(`div`,{className:`uhuu:w-8 uhuu:h-8 uhuu:bg-gray-100 uhuu:rounded-full uhuu:flex uhuu:items-center uhuu:justify-center uhuu:shrink-0 uhuu:mb-0.5`,children:(0,n.jsx)(Yr,{className:`uhuu:w-4 uhuu:h-4`})}),(0,n.jsxs)(`div`,{className:`uhuu:flex-1`,children:[(0,n.jsx)(k_,{className:`uhuu:text-base uhuu:font-medium uhuu:text-gray-900 uhuu:leading-tight`,children:u(`addDialog.title`)}),(0,n.jsx)(A_,{className:`uhuu:text-xs uhuu:text-gray-400 uhuu:mt-0.5`,children:u(`addDialog.description`)})]}),(0,n.jsxs)(`div`,{className:`uhuu:mb-0.5 uhuu:mr-8 uhuu:flex uhuu:items-center uhuu:gap-1.5 uhuu:rounded-md uhuu:border uhuu:border-gray-200 uhuu:bg-(--uhuu-shell-surface) uhuu:px-2 uhuu:py-1 uhuu:text-gray-400 uhuu:focus-within:border-gray-400 uhuu:focus-within:ring-2 uhuu:focus-within:ring-gray-200`,children:[(0,n.jsx)(Xr,{className:`uhuu:w-3.5 uhuu:h-3.5 uhuu:shrink-0`}),(0,n.jsx)(`label`,{className:`uhuu:sr-only`,htmlFor:`uhuu-add-page-filter`,children:u(`addDialog.filterLabel`)}),(0,n.jsx)(`input`,{id:`uhuu-add-page-filter`,type:`text`,placeholder:u(`addDialog.filterPlaceholder`),value:f,onChange:e=>m(e.target.value),className:`uhuu:w-24 uhuu:border-0 uhuu:bg-transparent uhuu:text-sm uhuu:text-gray-600 uhuu:placeholder:text-gray-400 uhuu:outline-none uhuu:transition-all uhuu:duration-150 uhuu:focus:w-40`})]})]})}),(0,n.jsx)(`div`,{className:`uhuu:min-h-0 uhuu:flex-1 uhuu:overflow-auto uhuu:bg-gray-50 uhuu:p-6`,children:h.length===0?(0,n.jsxs)(`div`,{className:`uhuu:text-center uhuu:py-16`,children:[(0,n.jsx)(`div`,{className:`uhuu:w-16 uhuu:h-16 uhuu:bg-gray-100 uhuu:rounded-full uhuu:flex uhuu:items-center uhuu:justify-center uhuu:mx-auto uhuu:mb-4`,children:(0,n.jsx)(Yr,{className:`uhuu:w-8 uhuu:h-8 uhuu:text-gray-400`})}),(0,n.jsx)(`div`,{className:`uhuu:text-lg uhuu:font-medium uhuu:text-gray-900 uhuu:mb-2`,children:u(`addDialog.emptyTitle`)}),(0,n.jsx)(`p`,{className:`uhuu:text-gray-500 uhuu:mb-4`,children:f.trim()?u(`addDialog.emptyFiltered`):u(`addDialog.emptyAdded`)})]}):(0,n.jsx)(`div`,{className:c,children:h.map((e,t)=>{let r=e.kind===`group`,i=e.id,a=r?d(e.label)||u(`addDialog.groupFallbackName`,{number:t+1}):d(e.label)||u(`addDialog.pageFallbackName`,{id:e.id}),s={payload:o,item:void 0,parent:void 0},c=r?S(e.pageComponentKeys,s).length:1,l=!!x;return(0,n.jsxs)(`div`,{onClick:()=>g(e),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),g(e))},role:`button`,tabIndex:0,"aria-label":u(`addDialog.addItem`,{name:a}),className:[`uhuu:group uhuu:relative uhuu:block uhuu:cursor-pointer uhuu:border-0 uhuu:bg-transparent uhuu:p-0 uhuu:text-left uhuu:transition-all uhuu:focus-visible:outline-none uhuu:focus-visible:ring-2 uhuu:focus-visible:ring-gray-900 uhuu:focus-visible:ring-offset-2`,!l&&`uhuu:bg-(--uhuu-shell-surface) uhuu:border-2 uhuu:border-gray-200`].filter(Boolean).join(` `),style:b,children:[(0,n.jsx)(`div`,{className:`uhuu:w-full uhuu:h-full uhuu:relative`,children:e.thumbnail?(0,n.jsx)(`div`,{"data-uhuu-paper":!0,className:`uhuu:absolute uhuu:inset-0 uhuu:bg-gray-100 uhuu:hover:bg-white`,children:(0,n.jsx)(`img`,{"data-uhuu-chrome":!0,src:e.thumbnail,className:`uhuu:w-full uhuu:h-full uhuu:object-contain uhuu:pointer-events-none uhuu:object-top uhuu:border uhuu:border-gray-200 uhuu:p-4`,alt:a})}):x?(0,n.jsx)(`div`,{className:`uhuu:absolute uhuu:inset-0 uhuu:flex uhuu:items-center uhuu:pointer-events-none`,children:x(C(e,t),t,!1)}):(0,n.jsx)(n.Fragment,{children:r?(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:h-full uhuu:flex-col uhuu:items-center uhuu:justify-center uhuu:p-4 uhuu:text-center`,children:[(0,n.jsx)(`div`,{className:`uhuu:w-16 uhuu:h-16 uhuu:bg-blue-100 uhuu:rounded-full uhuu:flex uhuu:items-center uhuu:justify-center uhuu:mx-auto uhuu:mb-3`,children:(0,n.jsx)(Yr,{className:`uhuu:w-8 uhuu:h-8 uhuu:text-blue-600`})}),(0,n.jsx)(`div`,{className:`uhuu:text-sm uhuu:font-medium uhuu:text-gray-700`,children:a}),(0,n.jsx)(`div`,{className:`uhuu:text-xs uhuu:text-gray-500 uhuu:mt-1`,children:u(`page.count`,{count:c})})]}):(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:h-full uhuu:flex-col uhuu:items-center uhuu:justify-center uhuu:p-4 uhuu:text-center`,children:[(0,n.jsx)(`div`,{className:`uhuu:w-16 uhuu:h-16 uhuu:bg-gray-100 uhuu:rounded-full uhuu:flex uhuu:items-center uhuu:justify-center uhuu:mx-auto uhuu:mb-3`,children:(0,n.jsx)(Yr,{className:`uhuu:w-8 uhuu:h-8 uhuu:text-gray-400`})}),(0,n.jsx)(`div`,{className:`uhuu:text-sm uhuu:font-medium uhuu:text-gray-700`,children:a}),(0,n.jsx)(`div`,{className:`uhuu:text-xs uhuu:text-gray-500 uhuu:mt-1`,children:i})]})})}),(!x||e?.thumbnail)&&(0,n.jsxs)(n.Fragment,{children:[r&&(0,n.jsx)(`div`,{className:`uhuu:absolute uhuu:top-2 uhuu:right-2 uhuu:px-2 uhuu:py-1 uhuu:bg-blue-600/80 uhuu:backdrop-blur-sm uhuu:text-white uhuu:text-xs uhuu:font-medium uhuu:rounded uhuu:shadow-lg uhuu:pointer-events-none`,children:u(`thumbnail.groupBadge`,{count:c})}),(0,n.jsx)(`div`,{className:`uhuu:absolute uhuu:bottom-0 uhuu:left-0 uhuu:right-0 uhuu:bg-(--uhuu-thumbnail-caption) uhuu:backdrop-blur-sm uhuu:p-3 uhuu:pointer-events-none`,"data-item-id":i,children:(0,n.jsx)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:justify-between uhuu:gap-2 uhuu:text-white`,children:(0,n.jsx)(`div`,{className:`uhuu:flex-1 uhuu:min-w-0`,children:(0,n.jsx)(`div`,{className:`uhuu:text-sm uhuu:font-medium uhuu:truncate`,children:a})})})})]}),(0,n.jsx)(`div`,{className:`uhuu:absolute uhuu:top-3 uhuu:left-3 uhuu:w-8 uhuu:h-8 uhuu:bg-black uhuu:rounded-full uhuu:flex uhuu:items-center uhuu:justify-center uhuu:shadow-lg uhuu:opacity-0 uhuu:group-hover:opacity-100 uhuu:transition-opacity uhuu:pointer-events-none uhuu:z-10`,children:(0,n.jsx)(Yr,{className:`uhuu:w-4 uhuu:h-4 uhuu:text-white`})})]},i)})})})]})})}function N_(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0,t.useMemo)(()=>e=>{n.forEach(t=>t(e))},n)}var P_=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function F_(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function I_(e){return`nodeType`in e}function L_(e){return e?F_(e)?e:I_(e)?e.ownerDocument?.defaultView??window:window:window}function R_(e){let{Document:t}=L_(e);return e instanceof t}function z_(e){return!F_(e)&&e instanceof L_(e).HTMLElement}function B_(e){return e instanceof L_(e).SVGElement}function V_(e){return e?F_(e)?e.document:I_(e)?R_(e)?e:z_(e)||B_(e)?e.ownerDocument:document:document:document}var H_=P_?t.useLayoutEffect:t.useEffect;function U_(e){let n=(0,t.useRef)(e);return H_(()=>{n.current=e}),(0,t.useCallback)(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.current==null?void 0:n.current(...t)},[])}function W_(){let e=(0,t.useRef)(null);return[(0,t.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,t.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[])]}function G_(e,n){n===void 0&&(n=[e]);let r=(0,t.useRef)(e);return H_(()=>{r.current!==e&&(r.current=e)},n),r}function K_(e,n){let r=(0,t.useRef)();return(0,t.useMemo)(()=>{let t=e(r.current);return r.current=t,t},[...n])}function q_(e){let n=U_(e),r=(0,t.useRef)(null);return[r,(0,t.useCallback)(e=>{e!==r.current&&n?.(e,r.current),r.current=e},[])]}function J_(e){let n=(0,t.useRef)();return(0,t.useEffect)(()=>{n.current=e},[e]),n.current}var Y_={};function X_(e,n){return(0,t.useMemo)(()=>{if(n)return n;let t=Y_[e]==null?0:Y_[e]+1;return Y_[e]=t,e+`-`+t},[e,n])}function Z_(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>{let r=Object.entries(n);for(let[n,i]of r){let r=t[n];r!=null&&(t[n]=r+e*i)}return t},{...t})}}var Q_=Z_(1),$_=Z_(-1);function ev(e){return`clientX`in e&&`clientY`in e}function tv(e){if(!e)return!1;let{KeyboardEvent:t}=L_(e.target);return t&&e instanceof t}function nv(e){if(!e)return!1;let{TouchEvent:t}=L_(e.target);return t&&e instanceof t}function rv(e){if(nv(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return ev(e)?{x:e.clientX,y:e.clientY}:null}var iv=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return`translate3d(`+(t?Math.round(t):0)+`px, `+(n?Math.round(n):0)+`px, 0)`}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return`scaleX(`+t+`) scaleY(`+n+`)`}},Transform:{toString(e){if(e)return[iv.Translate.toString(e),iv.Scale.toString(e)].join(` `)}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+` `+n+`ms `+r}}}),av=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function ov(e){return e.matches(av)?e:e.querySelector(av)}var sv={display:`none`};function cv(e){let{id:n,value:r}=e;return t.default.createElement(`div`,{id:n,style:sv},r)}function lv(e){let{id:n,announcement:r,ariaLiveType:i=`assertive`}=e;return t.default.createElement(`div`,{id:n,style:{position:`fixed`,top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(100%)`,whiteSpace:`nowrap`},role:`status`,"aria-live":i,"aria-atomic":!0},r)}function uv(){let[e,n]=(0,t.useState)(``);return{announce:(0,t.useCallback)(e=>{e!=null&&n(e)},[]),announcement:e}}var dv=(0,t.createContext)(null);function fv(e){let n=(0,t.useContext)(dv);(0,t.useEffect)(()=>{if(!n)throw Error(`useDndMonitor must be used within a children of <DndContext>`);return n(e)},[e,n])}function pv(){let[e]=(0,t.useState)(()=>new Set),n=(0,t.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,t.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>e[n]?.call(e,r))},[e]),n]}var mv={draggable:`
52
+ `))S(e)},zh);return()=>clearTimeout(e)},[w]),(0,n.jsxs)(Lh.Provider,{value:v,children:[y.stylesheetUrls.map(e=>(0,n.jsx)(`link`,{rel:`stylesheet`,href:e,"data-uhuu-brand-kit-font":``,ref:t=>{t?.sheet&&S(e)},onLoad:()=>S(e),onError:()=>S(e)},e)),y.fontFaceCss?(0,n.jsx)(`style`,{"data-uhuu-brand-kit-font":``,children:y.fontFaceCss}):null,(0,n.jsx)(`div`,{"data-uhuu-brand-kit":typeof h?.id==`string`?h.id:``,"data-uhuu-brand-kit-status":_,className:s,style:{display:`contents`,...v.cssVars,...c},children:l})]})}function Hh(){return(0,p.useContext)(Lh)}var Uh=`uhuu_page_editor`;function Wh(e){return e.kind===`group`}function Gh(e){let t=[],n=1;for(let r of e)if(Wh(r))for(let e of r.pages)t.push({...e,kind:`page`,pageNum:n++});else t.push({...r,pageNum:n++});return t}function Kh(e){let t=[],n=1;for(let r of e)if(Wh(r)){let e=r.pages.map(e=>({...e,kind:`page`,pageNum:n++}));t.push({...r,pages:e})}else t.push({...r,pageNum:n++});return t}function qh(e){return Gh(e).length}function Jh(e){return e.map(e=>{let t=e.strictPosition;if(Wh(e)){let n=e.pages[0],r=n?.componentKey??n?.id;return{kind:`group`,id:e.id,groupId:e.id,firstPageId:n?.id,firstPageComponentKey:r,firstPageComponent:n?.component,pageCount:e.pages.length,label:e.label,strictPosition:t}}{let n=e.componentKey??e.id;return{kind:`page`,id:e.id,label:e.label,pageId:e.id,pageComponentKey:n,pageLabel:e.label,pageNum:e.pageNum,pageComponent:e.component,strictPosition:t}}})}function Yh(e,t){let n=new Map;t.forEach(e=>{n.set(e.id,e)});let r=[];for(let t of e){let e=n.get(t.id);e&&r.push(e)}return r}function Xh(e){return e.map(e=>{if(`kind`in e&&e.kind)return e;if(e.pages&&Array.isArray(e.pages))return{kind:`group`,...e,pages:(e.pages??[]).map(e=>{let{kind:t,...n}=e||{};return{kind:`page`,...n}})};let{kind:t,...n}=e;return{kind:`page`,...n}})}function Zh(e,t=Uh){let n=Xh(e);return{key:t,items:n,totalPages:qh(n),updatedAt:new Date().toISOString()}}function Qh(e,t=Uh){let n=e?.[t];if(!n?.items)return null;let r=Xh(n.items);return{key:t,items:r,totalPages:qh(r),updatedAt:n.updatedAt||new Date().toISOString()}}function $h(e,t,n=Uh){let r=Zh(t,n);return{...e??{},[n]:r}}function eg(){return Math.random().toString(36).slice(2,11)}function tg(e,t,n){return{kind:`page`,id:n?.repeatable?eg():e,componentKey:t,templateId:e,label:n?.label,repeatable:n?.repeatable,maxInstances:n?.maxInstances,...n}}function ng(e,t,n){let r=n?.repeatable?eg():e;return{kind:`group`,id:r,templateId:e,label:n?.label,repeatable:n?.repeatable??!1,maxInstances:n?.maxInstances??null,pages:t.map((e,t)=>{let n=typeof e==`string`?e:e.key,i=typeof e==`string`?void 0:e.dataKey,a=typeof e==`string`?void 0:e.hasFlow;return{id:`${r}__${i??n}__${t}`,componentKey:n,templateId:n,...i?{dataKey:i}:{},...a?{hasFlow:a}:{}}}),...n}}function rg(e,t){return e<0?t+e+1:e}function ig(e,t,n){for(let r of t){let t=rg(r.start,n),i=rg(r.end,n);if(e>=t&&e<=i)return!0}return!1}function ag(e,t,n=2){switch(e){case`all`:return[{start:1,end:t}];case`cover`:return[{start:1,end:n},{start:-n,end:-1}];case`text`:return t<=n*2?[]:[{start:n+1,end:-(n+1)}];default:return[]}}function og(e,t){if(!t||t.mode===`all`)return e;let n=qh(e),r=t.mode??`all`,i=t.coverPageCount??2,a=r===`custom`&&t.ranges?t.ranges:ag(r,n,i);if(a.length===0)return[];let o=[];for(let t of e)if(Wh(t)){let e=t.pages.filter(e=>e.pageNum&&ig(e.pageNum,a,n));e.length>0&&o.push({...t,pages:e})}else t.pageNum&&ig(t.pageNum,a,n)&&o.push(t);return o}function sg(e,t,n){if(!n||n.mode===`all`)return!0;let r=n.mode??`all`,i=n.coverPageCount??2,a=r===`custom`&&n.ranges?n.ranges:ag(r,t,i);return a.length!==0&&ig(e,a,t)}function cg(e,t){if(e?.integrations)return e.integrations[t]}function lg(e,t){return t&&Wh(t)?t.id:e?.id??null}function ug(e,t,n){let r=lg(t,n);return r?{instanceId:r,integration:cg(e,r)}:{instanceId:null,integration:void 0}}function dg(e,t,n){return ug(e,t,n).integration}function fg(e,t){if(!e)return null;let n=`integrations.${e}`;return t?`${n}.${t}`:n}function pg(e){if(!e)return{instanceId:null,fieldPath:e,isIntegrationPath:!1};if(e.startsWith(`integrations.`)){let t=e.slice(13),n=t.indexOf(`.`);return n>0?{instanceId:t.slice(0,n),fieldPath:t.slice(n+1),isIntegrationPath:!0}:{instanceId:t,fieldPath:``,isIntegrationPath:!0}}return{instanceId:null,fieldPath:e,isIntegrationPath:!1}}function mg(e,t,n){if(!t)return n;let r=t.split(`.`),i={...e},a=i;for(let e=0;e<r.length-1;e++){let t=r[e];!(t in a)||typeof a[t]!=`object`||a[t]===null?a[t]={}:a[t]={...a[t]},a=a[t]}let o=r[r.length-1];return a[o]=n,i}function hg(e,t,n){let r=pg(t);if(!r.isIntegrationPath||!r.instanceId)return e;let{instanceId:i,fieldPath:a}=r,o=mg(cg(e,i)||{},a,n);return{...e,integrations:{...e?.integrations||{},[i]:o}}}function gg(e,t){if(!e||!t)return;let n=typeof t==`string`?t:t?.id,r=typeof t==`string`?void 0:t?.templateId??t?.componentKey,i=typeof t==`string`?void 0:t?.componentKey,a=Array.from(new Set([n,r,i].filter(Boolean)));for(let t of a)if(e?.pages?.[t]!==void 0)return e.pages[t];for(let t of a)if(e?.groups?.[t]!==void 0)return e.groups[t];for(let t of a)if(e[t]!==void 0)return e[t]}var _g=p.createContext(null);function vg(e=Uh){return[e]}function yg(e,t,n){if(!t)return e;if(!e)return t;let r={...t};return n.forEach(t=>{e[t]!==void 0&&(r[t]=e[t])}),r}function bg({payload:e,onPayloadChange:t,children:r,stateKey:i=Uh}){let[a,o]=p.useState(e??{}),s=p.useRef(null),c=p.useRef(!1),l=p.useRef(null),u=p.useRef(0),d=p.useRef(!0),f=p.useCallback(e=>{try{return JSON.stringify(e)}catch{return String(e)}},[]),m=p.useMemo(()=>vg(i),[i]),h=p.useCallback((e,t)=>{if(!e)return null;let n={...e};return t.forEach(e=>{delete n[e]}),n},[]);p.useEffect(()=>{if(d.current)d.current=!1,e&&(s.current=e,o(e));else{if(c.current){c.current=!1;let t=l.current===null?null:f(h(l.current,m)),n=f(h(e,m));if(t!==null&&t===n){s.current=e;return}}if(e!==s.current){if(Date.now()-u.current<500&&l.current!==null){let t=h(e,m),n=h(l.current,m),r=t?f(t):null,i=n?f(n):null;if(r&&r===i){l.current=null,s.current=e;return}}s.current=e,o(t=>e?yg(t,e,m):t)}}},[e,m,f,h]);let g=p.useCallback(e=>{if(t?.(e),typeof window>`u`)return;let n=window.$uhuu;n?.emitPayload&&n.emitPayload(e)},[t]),_=p.useCallback(e=>{c.current=!0,o(t=>{let n=typeof e==`function`?e(t):e,r=n;return n&&typeof n==`object`&&Object.keys(n).filter(e=>e.startsWith(`integrations.`)||e===`integrations`).length>0&&n.integrations&&(r=n),l.current=r,u.current=Date.now(),queueMicrotask(()=>g(r)),r})},[g]),v=p.useCallback((e,t,n)=>{_(r=>({...r??{},pages:{...r?.pages??{},[e]:{...r?.pages?.[e]??{},[t]:n}}}))},[_]),y=p.useCallback((e,t)=>{_(n=>{let r=n?.integrations??{},i=r[e],a=typeof t==`function`?t(i):t;return{...n??{},integrations:{...r,[e]:a}}})},[_]),b=p.useCallback((e,t,n)=>{y(e,e=>({...e??{},[t]:n}))},[y]),x=p.useCallback(e=>{_(t=>{if(!t?.integrations||!t.integrations[e])return t;let{[e]:n,...r}=t.integrations;return{...t,integrations:Object.keys(r).length>0?r:void 0}})},[_]),S=p.useCallback((e,t)=>{_(n=>hg(n,e,t))},[_]),C=p.useCallback((e,t)=>{let n=t??i;_(t=>$h(t,e,n))},[_,i]),w=p.useCallback(e=>gg(a,e),[a]),T=p.useMemo(()=>({payload:a,setPayload:_,setPageOptionValue:v,setIntegrationPayload:y,setIntegrationPayloadValue:b,removeIntegrationPayload:x,updateIntegrationByDialogPath:S,mergePageEditorState:C,getPagePayload:w}),[a,_,v,y,b,x,S,C,w]);return(0,n.jsx)(_g.Provider,{value:T,children:r})}function xg(e){return e.defaultValue===void 0?e.type===`toggle`?!1:e.type===`slider`||e.type===`counter`?0:``:e.defaultValue}function Sg(e,t){return e.type===`toggle`?t===!0||t===`true`:e.type===`slider`||e.type===`counter`?Number(t):t}function Cg(e,t,n){let r=e.field??e.id;return{...e,getValue:n=>{let i=t?.pages?.[n.id]?.[r];return i===void 0?xg(e):e.type===`toggle`?!!i:i},onChange:(t,i)=>{n(t,r,Sg(e,i))}}}function wg(e){switch(e){case`fit-width`:return`width`;case`fit-height`:return`height`;case`fit-page`:return`both`;default:return`none`}}function Tg(e){let t=e.filter(({width:e,height:t})=>e>0&&t>0);return t.length?{width:t.reduce((e,t)=>e+t.width,0),height:Math.max(...t.map(e=>e.height))}:null}function Eg(e,t){if(e===`two_pages`)return Tg(t);let n=t.find(({width:e,height:t})=>e>0&&t>0);return n?{width:n.width,height:n.height}:null}function Dg({paneClientHeight:e,paneTop:t,viewportHeight:n}){let r=[e,n-Math.max(t,0)].filter(e=>e>0);return r.length?Math.min(...r):0}function Og({paneWidth:e,paneHeight:t,paddingX:n=0,paddingY:r=0,chromeHeight:i=0}){return{availableWidth:Math.max(e-n,0),availableHeight:Math.max(t-r-i,0)}}function kg({mode:e,contentWidth:t,contentHeight:n,availableWidth:r,availableHeight:i,minZoom:a,maxZoom:o}){if(e===`none`||t<=0||n<=0||r<=0||i<=0)return null;let s=r/t*100,c=i/n*100;return Math.min(Math.max(e===`width`?s:e===`height`?c:Math.min(s,c),a),o)}function Ag(e,t,n){return t>=e.left&&t<=e.left+e.width&&n>=e.top&&n<=e.top+e.height?{clientX:t,clientY:n}:{clientX:e.left+e.width/2,clientY:e.top+e.height/2}}function jg(e,t,n,r){if(e.width<=0||e.height<=0)return{deltaLeft:0,deltaTop:0};let i=n-e.left,a=r-e.top,o=t.left+i*(t.width/e.width),s=t.top+a*(t.height/e.height);return{deltaLeft:o-n,deltaTop:s-r}}function Mg(e){return{left:e.left,top:e.top,width:e.width,height:e.height}}function Ng(e,t,n){let r=-1,i=1/0;for(let a=0;a<e.length;a+=1){let o=e[a];if(o.width<=0||o.height<=0)continue;if(t>=o.left&&t<=o.left+o.width&&n>=o.top&&n<=o.top+o.height)return a;let s=t-(o.left+o.width/2),c=n-(o.top+o.height/2),l=s*s+c*c;l<i&&(i=l,r=a)}return r}function Pg(e){return e===`auto`||e===`scroll`||e===`overlay`}var Fg=24,Ig=64,Lg=1e3,Rg={width:`max-content`,margin:`auto`,padding:`0 ${Fg}px ${Ig}px`,overflowAnchor:`none`};function zg(e){let t=e,n=null,r=null;for(;t&&t!==document.documentElement;){let e=window.getComputedStyle(t);if(!n&&Pg(e.overflowX)&&(n=t),!r&&Pg(e.overflowY)&&(r=t),n&&r)return{x:n,y:r};t=t.parentElement}let i=document.scrollingElement;return{x:n??i,y:r??i}}function Bg(e){let t=Math.max(e.getBoundingClientRect().top,0),n=0,r=e.parentElement;for(;r&&r!==document.documentElement;){let e=window.getComputedStyle(r);e.display!==`contents`&&(n+=(Number.parseFloat(e.paddingBottom)||0)+(Number.parseFloat(e.borderBottomWidth)||0)+Math.max(Number.parseFloat(e.marginBottom)||0,0)),r=r.parentElement}return t+n}function Vg(e){let t=e.querySelector(`[data-section-content]`),n=t?.closest(`[class*="group/section"]`);if(!t||!n)return 0;let r=t.getBoundingClientRect().height;return r>0?Math.max(n.getBoundingClientRect().height-r,0):0}var Hg=(0,p.createContext)({zoom:100,scaleValue:1,hideUI:!1});function Ug({children:e,layout:t=`spread`,pageItemId:r}){let{scaleValue:i}=(0,p.useContext)(Hg),a=(0,p.useRef)(null);return(0,p.useEffect)(()=>{if(!a.current)return;let e=()=>{let e=a.current?.querySelectorAll(`[data-section-content]`);if(!e?.length)return;let t=Array.from(e).reduce((e,t)=>e+Number.parseInt(t.getAttribute(`data-natural-width`)||`0`),0);if(t>0){let e=t*i;a.current?.style.setProperty(`--uhuu-group-pair-width`,`${e}px`)}};e();let t=new ResizeObserver(e);return a.current.querySelectorAll(`[data-section-content]`).forEach(e=>t.observe(e)),()=>t.disconnect()},[e,i]),(0,n.jsx)(`div`,{ref:a,className:`two-pages-pair two-pages-pair--${t}`,"data-page-item-id":r,children:e})}function Wg(e){let t=Number.parseFloat(e.getAttribute(`data-natural-width`)||`0`),n=Number.parseFloat(e.getAttribute(`data-natural-height`)||`0`);return t>0&&n>0?{width:t,height:n}:null}function Gg(e,t){let n=t===`two_pages`?e.querySelector(`.two-pages-pair`):e;if(!n)return null;let r=t===`two_pages`?Array.from(n.querySelectorAll(`[data-section-content]`)):(()=>{let e=n.querySelector(`[data-section-content]`);return e?[e]:[]})();return r.length?Eg(t,r.map(Wg).filter(e=>e!==null)):null}function Kg({children:e,title:t,className:r=``,controls:i,origin:a=`center`}){let{scaleValue:o,hideUI:s}=(0,p.useContext)(Hg),c=(0,p.useRef)(null),[l,u]=(0,p.useState)(0),[d,f]=(0,p.useState)(0);(0,p.useEffect)(()=>{if(c.current){let e=()=>{let e=c.current;if(e){let t=e.style.transform;e.style.transform=`scale(1)`;let n=e.scrollHeight,r=e.scrollWidth;e.style.transform=t,u(n),f(r)}};e();let t=new ResizeObserver(e);return t.observe(c.current),()=>{t.disconnect()}}},[e]);let m=l*o,h=Math.max(d*o,150),{justify:g,origin:_}={left:{justify:`uhuu:justify-start`,origin:`top left`},right:{justify:`uhuu:justify-end`,origin:`top right`},center:{justify:`uhuu:justify-center`,origin:`top center`}}[a];return s?(0,n.jsx)(`div`,{className:r,children:e}):(0,n.jsxs)(`div`,{className:`uhuu:group/section ${r}`,style:{width:`${h}px`,minWidth:`150px`},children:[(0,n.jsx)(`div`,{children:i??(0,n.jsx)(`div`,{"data-uhuu-editor":!0,className:`uhuu:px-4 uhuu:py-2 uhuu:border-b uhuu:border-gray-200`,children:(0,n.jsxs)(`div`,{className:`uhuu:text-sm uhuu:font-medium uhuu:text-gray-700`,children:[t,` Controls`]})})}),(0,n.jsx)(`div`,{className:`uhuu:pt-1`,style:{height:m>0?`${m+32}px`:`auto`,minHeight:`100px`},children:(0,n.jsx)(`div`,{className:`uhuu:flex uhuu:items-start ${g}`,children:(0,n.jsx)(`div`,{ref:c,"data-section-content":!0,"data-natural-width":d,"data-natural-height":l,style:{transform:`scale(${o})`,transformOrigin:_},children:e})})})]})}function qg({children:e,className:t=``,defaultZoom:i=100,minZoom:a=25,maxZoom:o=200,onAddPage:s,menuItems:c,hideUI:l,preview:u=`single_page`,defaultZoomMode:d=`manual`,scrollMode:f=`pane`}){let m=_a(),h=l??m,{t:g}=Hi(),[_,v]=(0,p.useState)(i),[y,b]=(0,p.useState)(()=>wg(d)),[x,S]=(0,p.useState)(()=>wg(d)!==`none`),[C,w]=(0,p.useState)(0),T=(0,p.useRef)(null),E=(0,p.useRef)(null),D=(0,p.useRef)(null),O=(0,p.useRef)(null),k=(0,p.useRef)(_);(0,p.useEffect)(()=>{k.current=_},[_]);let A=(0,p.useCallback)(()=>f===`pane`&&E.current?{x:E.current,y:E.current}:zg(T.current),[f]),j=(0,p.useCallback)((e,t,n)=>{let i=Math.min(Math.max(e,a),o),s=O.current;if(!s){v(i),b(`none`);return}let c=A(),l=Array.from(s.querySelectorAll(`[data-section-content]`)),u=Ng(l.map(e=>Mg(e.getBoundingClientRect())),t,n),d=u>=0?l[u]:s,f=Mg(d.getBoundingClientRect()),p=Ag(f,t,n);(0,r.flushSync)(()=>{v(i),b(`none`)});let m=()=>{let e=Mg(d.getBoundingClientRect()),{deltaLeft:t,deltaTop:n}=jg(f,e,p.clientX,p.clientY);t!==0&&c.x&&(c.x.scrollLeft+=t),n!==0&&c.y&&(c.y.scrollTop+=n)};m(),window.requestAnimationFrame(m)},[o,a,A]),M=(0,p.useCallback)(()=>{let e=(f===`pane`?E.current:T.current)?.getBoundingClientRect();return e?{clientX:e.left+e.width/2,clientY:e.top+e.height/2}:{clientX:0,clientY:0}},[f]),N=(0,p.useCallback)(()=>{let e=O.current;if(y===`none`||!e)return;let t=Gg(e,u);if(!t)return;let n=f===`pane`?E.current:T.current;if(!n)return;let r=n.getBoundingClientRect(),i=n.ownerDocument.defaultView??window,s=i.visualViewport?.height??n.ownerDocument.documentElement.clientHeight??i.innerHeight,c=n.clientWidth||r.width,l=f===`pane`?Dg({paneClientHeight:n.clientHeight||r.height,paneTop:r.top,viewportHeight:s}):s-Math.max(r.top,0),d=D.current?window.getComputedStyle(D.current):null,{availableWidth:p,availableHeight:m}=Og({paneWidth:c,paneHeight:l,paddingX:d?Number.parseFloat(d.paddingLeft)+Number.parseFloat(d.paddingRight):0,paddingY:d?Number.parseFloat(d.paddingTop)+Number.parseFloat(d.paddingBottom):0,chromeHeight:Vg(e)}),h=kg({mode:y,contentWidth:t.width,contentHeight:t.height,availableWidth:p,availableHeight:m,minZoom:a,maxZoom:o});h!==null&&(v(e=>Math.abs(e-h)<.01?e:h),S(!1))},[y,o,a,u,f]),P=e=>{b(e)};(0,p.useEffect)(()=>{if(!x)return;if(y===`none`){S(!1);return}let e=window.setTimeout(()=>S(!1),Lg);return()=>window.clearTimeout(e)},[x,y]);let F=()=>{let e=M();j(_+25,e.clientX,e.clientY)},I=()=>{let e=M();j(_-25,e.clientX,e.clientY)};(0,p.useEffect)(()=>{if(y===`none`||!T.current||!O.current)return;let e=0,t=()=>{window.cancelAnimationFrame(e),e=window.requestAnimationFrame(N)},n=new ResizeObserver(t);n.observe(T.current),E.current&&n.observe(E.current),n.observe(O.current);let r=()=>{O.current?.querySelectorAll(`[data-section-content]`).forEach(e=>{n.observe(e)})};r();let i=new MutationObserver(()=>{r(),t()});return i.observe(O.current,{childList:!0,subtree:!0}),window.addEventListener(`resize`,t),window.visualViewport?.addEventListener(`resize`,t),t(),()=>{window.cancelAnimationFrame(e),n.disconnect(),i.disconnect(),window.removeEventListener(`resize`,t),window.visualViewport?.removeEventListener(`resize`,t)}},[y,N]),(0,p.useEffect)(()=>{if(h||f!==`pane`)return;let e=T.current;if(!e)return;let t=()=>{let t=Bg(e);w(e=>Math.abs(e-t)<.5?e:t)};t();let n=new ResizeObserver(t);return n.observe(e),window.addEventListener(`resize`,t),window.visualViewport?.addEventListener(`resize`,t),()=>{n.disconnect(),window.removeEventListener(`resize`,t),window.visualViewport?.removeEventListener(`resize`,t)}},[h,f]),(0,p.useEffect)(()=>{if(h)return;let e=null,t=null,n=null,r={clientX:0,clientY:0},i=null,s=!1,c=()=>{e=null;let t=n;n=null,t!==null&&j(t,r.clientX,r.clientY)},l=t=>{if(!t.ctrlKey&&!t.metaKey)return;t.preventDefault();let i=t.deltaMode===1?t.deltaY*16:t.deltaMode===2?t.deltaY*16*32:t.deltaY,s=n??k.current,l=Math.min(Math.max(s*1.003**-i,a),o);r={clientX:t.clientX,clientY:t.clientY},(l!==s||n!==null)&&(n=l,e===null&&(e=window.requestAnimationFrame(c)))},u=()=>{t=null,!s&&(i=f===`pane`?E.current:T.current,i?i.addEventListener(`wheel`,l,{passive:!1}):t=window.requestAnimationFrame(u))};return u(),()=>{s=!0,e!==null&&window.cancelAnimationFrame(e),t!==null&&window.cancelAnimationFrame(t),i?.removeEventListener(`wheel`,l)}},[j,h,o,a,f]);let L=_/100;return h?(0,n.jsx)(Hg.Provider,{value:{zoom:100,scaleValue:1,hideUI:!0},children:(0,n.jsx)(`div`,{className:t,children:e})}):(0,n.jsx)(Hg.Provider,{value:{zoom:_,scaleValue:L,hideUI:!1},children:(0,n.jsxs)(`div`,{ref:T,className:`uhuu:flex uhuu:flex-col uhuu:flex-1 uhuu:min-h-0 ${t}`,children:[(0,n.jsxs)(`div`,{"data-uhuu-editor":!0,className:`uhuu:fixed uhuu:right-4 uhuu:bottom-4 uhuu:z-50 uhuu:flex uhuu:items-center uhuu:gap-1.5 uhuu:px-2.5 uhuu:py-1.5 uhuu:bg-(--uhuu-shell-surface)/90 uhuu:backdrop-blur-md uhuu:border uhuu:border-gray-200/60 uhuu:rounded-lg uhuu:shadow-sm`,children:[c,(0,n.jsx)(`div`,{className:`uhuu:h-4 uhuu:w-px uhuu:bg-gray-200 uhuu:mx-0.5`}),(0,n.jsxs)(em,{modal:!1,children:[(0,n.jsx)(tm,{asChild:!0,children:(0,n.jsxs)(Ta,{variant:`ghost`,size:`sm`,title:g(`zoom.menu`),className:`uhuu:text-xs uhuu:font-medium uhuu:text-gray-700 uhuu:hover:bg-gray-100/80 uhuu:h-7 uhuu:px-2.5`,children:[Math.round(_),`%`,(0,n.jsx)(zr,{className:`uhuu:w-3 uhuu:h-3 uhuu:ml-1 uhuu:opacity-60`})]})}),(0,n.jsxs)(am,{className:`uhuu:w-52 uhuu:p-1.5`,align:`end`,children:[(0,n.jsxs)(om,{onClick:()=>P(`width`),className:`uhuu:cursor-pointer uhuu:flex uhuu:items-center ${y===`width`?`uhuu:bg-gray-100`:``}`,children:[(0,n.jsx)(Qr,{className:`uhuu:w-4 uhuu:h-4 uhuu:mr-2`}),(0,n.jsx)(`span`,{children:g(`zoom.fitWidth`)})]}),(0,n.jsxs)(om,{onClick:()=>P(`height`),className:`uhuu:cursor-pointer uhuu:flex uhuu:items-center ${y===`height`?`uhuu:bg-gray-100`:``}`,children:[(0,n.jsx)($r,{className:`uhuu:w-4 uhuu:h-4 uhuu:mr-2`}),(0,n.jsx)(`span`,{children:g(`zoom.fitHeight`)})]}),(0,n.jsxs)(om,{onClick:()=>P(`both`),className:`uhuu:cursor-pointer uhuu:flex uhuu:items-center ${y===`both`?`uhuu:bg-gray-100`:``}`,children:[(0,n.jsx)(Kr,{className:`uhuu:w-4 uhuu:h-4 uhuu:mr-2`}),(0,n.jsx)(`span`,{children:g(`zoom.fitPage`)})]}),(0,n.jsx)(um,{className:`uhuu:my-1.5`}),(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:justify-center uhuu:gap-2 uhuu:px-3 uhuu:py-2.5`,onClick:e=>e.stopPropagation(),children:[(0,n.jsx)(Ta,{variant:`ghost`,size:`sm`,onClick:e=>{e.stopPropagation(),I()},disabled:_<=a,className:`uhuu:h-8 uhuu:w-8 uhuu:p-0 uhuu:hover:bg-gray-100 uhuu:disabled:opacity-40`,title:g(`zoom.zoomOut`),children:(0,n.jsx)(ni,{className:`uhuu:w-4 uhuu:h-4`})}),(0,n.jsxs)(`div`,{className:`uhuu:relative`,children:[(0,n.jsx)(`input`,{type:`number`,value:Math.round(_),onChange:e=>{let t=Number.parseInt(e.target.value);if(!isNaN(t)){let e=M();j(t,e.clientX,e.clientY)}},onFocus:e=>e.target.select(),className:`uhuu:w-20 uhuu:pr-6 uhuu:text-center uhuu:text-sm uhuu:text-gray-700 uhuu:bg-(--uhuu-shell-surface) uhuu:border uhuu:border-gray-300 uhuu:rounded uhuu:px-2 uhuu:py-1.5 uhuu:focus:outline-none uhuu:focus:ring-2 uhuu:focus:ring-blue-500 uhuu:focus:border-transparent uhuu:transition-all`,min:a,max:o}),(0,n.jsx)(`span`,{className:`uhuu:absolute uhuu:right-2 uhuu:top-1/2 uhuu:-translate-y-1/2 uhuu:text-xs uhuu:text-gray-400 uhuu:pointer-events-none`,children:`%`})]}),(0,n.jsx)(Ta,{variant:`ghost`,size:`sm`,onClick:e=>{e.stopPropagation(),F()},disabled:_>=o,className:`uhuu:h-8 uhuu:w-8 uhuu:p-0 uhuu:hover:bg-gray-100 uhuu:disabled:opacity-40`,title:g(`zoom.zoomIn`),children:(0,n.jsx)(ti,{className:`uhuu:w-4 uhuu:h-4`})})]})]})]})]}),(0,n.jsx)(`div`,{ref:E,className:f===`pane`?`uhuu-zoom-pane`:void 0,style:f===`pane`?{height:`calc(100dvh - ${C}px)`,maxHeight:`100%`,overflow:`auto`,overscrollBehavior:`contain`}:void 0,children:(0,n.jsx)(`div`,{ref:D,className:`uhuu-zoom-pane-content`,style:x?{...Rg,visibility:`hidden`}:Rg,children:(0,n.jsx)(`div`,{ref:O,className:u===`two_pages`?`group_two_pages`:`uhuu:flex uhuu:flex-col uhuu:items-center`,children:e})})})]})})}var Jg=Object.defineProperty,Yg=(e,t)=>Jg(e,`name`,{value:t,configurable:!0}),Xg=`Dialog`,[Zg,Qg]=Ba(Xg),[$g,e_]=Zg(Xg),t_=Yg(e=>{let{__scopeDialog:t,children:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=p.useRef(null),l=p.useRef(null),{nodes:u,registry:d}=vs(),[f,m]=Za({prop:i,defaultProp:a??!1,onChange:o,caller:Xg}),[h,g]=p.useState(0),[_,v]=p.useState(0);return(0,n.jsx)($g,{scope:t,triggerRef:c,contentRef:l,contentId:Fs(),titleId:Fs(),descriptionId:Fs(),titlePresent:h>0,descriptionPresent:_>0,setTitleCount:g,setDescriptionCount:v,open:f,onOpenChange:m,onOpenToggle:p.useCallback(()=>m(e=>!e),[m]),modal:s,branchNodes:u,branchRegistry:d,children:r})},`Dialog`),n_=`DialogTrigger`,r_=p.forwardRef(Yg(function(e,t){let{__scopeDialog:r,...i}=e,a=e_(n_,r),o=q(t,a.triggerRef);return(0,n.jsx)(J.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":S_(a.open),...i,ref:o,onClick:K(e.onClick,a.onOpenToggle)})},`DialogTrigger`)),i_=`DialogPortal`,[a_,o_]=Zg(i_,{forceMount:void 0}),s_=Yg(e=>{let{__scopeDialog:t,forceMount:r,children:i,container:a}=e,o=e_(i_,t);return(0,n.jsx)(a_,{scope:t,forceMount:r,children:p.Children.map(i,e=>(0,n.jsx)(bu,{present:r||o.open,children:(0,n.jsx)(gu,{asChild:!0,container:a,children:e})}))})},`DialogPortal`),c_=`DialogOverlay`,l_=p.forwardRef(Yg(function(e,t){let r=o_(c_,e.__scopeDialog),{forceMount:i=r.forceMount,...a}=e,o=e_(c_,e.__scopeDialog);return o.modal?(0,n.jsx)(bu,{present:i||o.open,children:(0,n.jsx)(d_,{...a,ref:t})}):null},`DialogOverlay`)),u_=io(`DialogOverlay.RemoveScroll`),d_=p.forwardRef(Yg(function(e,t){let{__scopeDialog:r,...i}=e,a=e_(c_,r),o=q(t,Zo());return(0,n.jsx)(xf,{as:u_,allowPinchZoom:!0,shards:p.useMemo(()=>[a.contentRef,...a.branchNodes.map(e=>({current:e}))],[a.contentRef,a.branchNodes]),children:(0,n.jsx)(J.div,{"data-state":S_(a.open),...i,ref:o,style:{pointerEvents:`auto`,...i.style}})})},`DialogOverlayImpl`)),f_=`DialogContent`,p_=p.forwardRef(Yg(function(e,t){let r=o_(f_,e.__scopeDialog),{forceMount:i=r.forceMount,...a}=e,o=e_(f_,e.__scopeDialog);return(0,n.jsx)(bu,{present:i||o.open,children:o.modal?(0,n.jsx)(m_,{...a,ref:t}):(0,n.jsx)(h_,{...a,ref:t})})},`DialogContent`)),m_=p.forwardRef(Yg(function(e,t){let r=e_(f_,e.__scopeDialog),i=p.useRef(null),a=q(t,r.contentRef,i);return p.useEffect(()=>{let e=i.current;if(e)return dd(e)},[]),(0,n.jsx)(g_,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,onCloseAutoFocus:K(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:K(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:K(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),h_=p.forwardRef(Yg(function(e,t){let r=e_(f_,e.__scopeDialog),i=p.useRef(!1),a=p.useRef(!1);return(0,n.jsx)(g_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||r.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,t.detail.originalEvent.type===`pointerdown`&&(a.current=!0));let n=t.target;r.triggerRef.current?.contains(n)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&a.current&&t.preventDefault()}})},`DialogContentNonModal`)),g_=p.forwardRef(Yg(function(e,t){let{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,"aria-describedby":s,children:c,...l}=e,u=e_(f_,r);return cs(),(0,n.jsx)(_s,{registry:u.branchRegistry,children:(0,n.jsx)(hs,{asChild:!0,loop:!0,trapped:i,branches:u.branchNodes,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,n.jsx)(Xo,{role:`dialog`,id:u.contentId,"aria-labelledby":u.titlePresent?u.titleId:void 0,"aria-describedby":u.descriptionPresent?x_(s,u.descriptionId):s,"data-state":S_(u.open),...l,ref:t,deferPointerDownOutside:!0,onDismiss:()=>u.onOpenChange(!1),children:c})})})},`DialogContentImpl`)),__=p.forwardRef(Yg(function(e,t){let{__scopeDialog:r,...i}=e,a=e_(`DialogTitle`,r),{setTitleCount:o}=a;return Ha(()=>(o(e=>e+1),()=>o(e=>e-1)),[o]),(0,n.jsx)(J.h2,{id:a.titleId,...i,ref:t})},`DialogTitle`)),v_=p.forwardRef(Yg(function(e,t){let{__scopeDialog:r,...i}=e,a=e_(`DialogDescription`,r),{setDescriptionCount:o}=a;return Ha(()=>(o(e=>e+1),()=>o(e=>e-1)),[o]),(0,n.jsx)(J.p,{id:a.descriptionId,...i,ref:t})},`DialogDescription`)),y_=`DialogClose`,b_=p.forwardRef(Yg(function(e,t){let{__scopeDialog:r,...i}=e,a=e_(y_,r);return(0,n.jsx)(J.button,{type:`button`,...i,ref:t,onClick:K(e.onClick,()=>a.onOpenChange(!1))})},`DialogClose`));function x_(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}Yg(x_,`concatAriaDescribedby`);function S_(e){return e?`open`:`closed`}Yg(S_,`getState`);var C_=t_,w_=s_,T_=p.forwardRef(({className:e,...t},r)=>(0,n.jsx)(l_,{className:G(`uhuu:fixed uhuu:inset-0 uhuu:z-50 uhuu:bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t,ref:r}));T_.displayName=l_.displayName;var E_=p.forwardRef(({side:e=`right`,className:t,children:r,...i},a)=>{let{portalContainer:o}=ii(),s=Hi().t(`dialog.close`);return(0,n.jsxs)(w_,{container:o||void 0,children:[(0,n.jsx)(T_,{}),(0,n.jsxs)(p_,{ref:a,className:G(`uhuu:fixed uhuu:z-50 uhuu:gap-4 uhuu:bg-(--uhuu-shell-surface) uhuu:p-6 uhuu:shadow-lg uhuu:transition uhuu:ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out uhuu:data-[state=closed]:duration-300 uhuu:data-[state=open]:duration-500`,e===`top`&&`uhuu:inset-x-0 uhuu:top-0 uhuu:border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,e===`bottom`&&`uhuu:inset-x-0 uhuu:bottom-0 uhuu:border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,e===`left`&&`uhuu:inset-y-0 uhuu:left-0 uhuu:h-full uhuu:w-3/4 uhuu:border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left uhuu:sm:max-w-sm`,e===`right`&&`uhuu:inset-y-0 uhuu:right-0 uhuu:h-full uhuu:w-3/4 uhuu:border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right uhuu:sm:max-w-sm`,t),...i,children:[r,(0,n.jsxs)(b_,{className:`uhuu:absolute uhuu:right-4 uhuu:top-4 uhuu:rounded-sm uhuu:opacity-70 uhuu:ring-offset-(--uhuu-shell-surface) uhuu:transition-opacity uhuu:hover:opacity-100 uhuu:focus:outline-none uhuu:focus:ring-2 uhuu:focus:ring-gray-400 uhuu:focus:ring-offset-2 uhuu:disabled:pointer-events-none uhuu:data-[state=open]:bg-gray-100`,children:[(0,n.jsx)(ei,{className:`uhuu:h-4 uhuu:w-4`}),(0,n.jsx)(`span`,{className:`uhuu:sr-only`,children:s})]})]})]})});E_.displayName=p_.displayName;var D_=({className:e,...t})=>(0,n.jsx)(`div`,{className:G(`uhuu:flex uhuu:flex-col uhuu:space-y-2 uhuu:text-center uhuu:sm:text-left`,e),...t});D_.displayName=`SheetHeader`;var O_=({className:e,...t})=>(0,n.jsx)(`div`,{className:G(`uhuu:flex uhuu:flex-col-reverse uhuu:sm:flex-row uhuu:sm:justify-end uhuu:sm:space-x-2`,e),...t});O_.displayName=`SheetFooter`;var k_=p.forwardRef(({className:e,...t},r)=>(0,n.jsx)(__,{ref:r,className:G(`uhuu:text-lg uhuu:font-medium uhuu:text-gray-900`,e),...t}));k_.displayName=__.displayName;var A_=p.forwardRef(({className:e,...t},r)=>(0,n.jsx)(v_,{ref:r,className:G(`uhuu:text-sm uhuu:text-gray-500`,e),...t}));A_.displayName=v_.displayName;var j_=[`font-family`,`font-size`,`font-weight`,`font-style`,`font-variant`,`font-stretch`,`font-feature-settings`,`font-variation-settings`,`line-height`,`letter-spacing`,`word-spacing`,`text-transform`,`text-indent`,`text-align`,`text-shadow`,`color`],M_=e=>e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase());function N_(e=typeof document>`u`?void 0:document){let t=e?.querySelector(`[data-uhuu-interactive]`)??e?.body,n=t?e.defaultView?.getComputedStyle(t):void 0;if(!n)return;let r={};for(let e of j_){let t=n.getPropertyValue(e);t&&(r[M_(e)]=t)}return r}function P_(e){let{pageComponents:t,payload:r,setup:i={width:210,height:297},thumbnailWidth:a=200,thumbnailHeight:o,i18n:s}=e,{t:c,localize:l}=s,u=T.resolveDimensions(i),d=u.width,f=u.height,p=d/f,m=a,h=o??Math.round(m/p),g=d*3.779527559,_=f*3.779527559,v,y=()=>(v??=N_()??{},{...v,width:`${g}px`,height:`${_}px`,backgroundColor:`white`,pointerEvents:`none`});return(e,i,a)=>{let o=e.strictPosition,s=o===`start`||o===`end`;if(e.kind===`group`){let i=e.firstPageId,u=e.firstPageComponentKey??i,d=gg(r,{id:i,componentKey:u}),f=e.firstPageComponent||(u?t[u]:null),p=r?.integrations?.[e.id];return(0,n.jsxs)(`div`,{"data-uhuu-paper":!0,className:`uhuu:relative uhuu:bg-white uhuu:border uhuu:transition-all ${a?`uhuu:border-blue-400 uhuu:shadow-2xl uhuu:scale-105`:s?`uhuu:border-(--uhuu-thumbnail-border-strong) uhuu:bg-gray-50`:`uhuu:border-(--uhuu-thumbnail-border) uhuu:hover:border-(--uhuu-thumbnail-border-strong) uhuu:hover:shadow-lg`}`,style:{width:`${m}px`,height:`${h}px`},title:e.id,children:[f?(0,n.jsx)(`div`,{className:`uhuu:w-full uhuu:h-full uhuu:flex uhuu:items-center uhuu:justify-center uhuu:bg-gray-50 uhuu:overflow-hidden uhuu:relative uhuu:pointer-events-none`,children:(0,n.jsx)(`div`,{style:{transform:`scale(${Math.min(m/g,h/_)})`,transformOrigin:`center`},children:(0,n.jsx)(`div`,{className:`uhuu:shrink-0!`,style:y(),children:(0,n.jsx)(f,{payload:r,pageId:i,templateId:u,pagePayload:d,componentKey:u,integration:p,parentGroup:e})})})}):(0,n.jsx)(`div`,{"data-uhuu-chrome":!0,className:`uhuu:w-full uhuu:h-full uhuu:flex uhuu:items-center uhuu:justify-center uhuu:bg-gray-50 uhuu:pointer-events-none`,children:(0,n.jsxs)(`div`,{className:`uhuu:text-center uhuu:p-4`,children:[(0,n.jsx)(`div`,{className:`uhuu:text-sm uhuu:font-medium uhuu:text-gray-700`,children:c(`thumbnail.groupFallbackName`,{id:e.id})}),(0,n.jsx)(`div`,{className:`uhuu:text-xs uhuu:text-gray-500 uhuu:mt-1`,children:i||c(`thumbnail.noPreview`)})]})}),(0,n.jsx)(`div`,{"data-uhuu-chrome":!0,className:`uhuu:absolute uhuu:top-2 uhuu:right-2 uhuu:px-2 uhuu:py-1 uhuu:bg-blue-600/80 uhuu:backdrop-blur-sm uhuu:text-white uhuu:text-xs uhuu:font-medium uhuu:rounded uhuu:shadow-lg uhuu:pointer-events-none`,children:c(`thumbnail.groupBadge`,{count:e.pageCount})}),s&&(0,n.jsxs)(`div`,{"data-uhuu-chrome":!0,className:`uhuu:absolute uhuu:top-2 uhuu:left-2 uhuu:px-2 uhuu:py-1 uhuu:bg-gray-600/80 uhuu:backdrop-blur-sm uhuu:text-white uhuu:text-xs uhuu:font-medium uhuu:rounded uhuu:shadow-lg uhuu:pointer-events-none uhuu:flex uhuu:items-center uhuu:gap-1`,children:[(0,n.jsx)(Gr,{className:`uhuu:size-3`}),(0,n.jsx)(`span`,{children:c(o===`start`?`thumbnail.start`:`thumbnail.end`)})]}),(0,n.jsx)(`div`,{"data-uhuu-chrome":!0,className:`uhuu:absolute uhuu:bottom-0 uhuu:left-0 uhuu:right-0 uhuu:bg-(--uhuu-thumbnail-caption) uhuu:backdrop-blur-sm uhuu:p-3 uhuu:pointer-events-none`,children:(0,n.jsx)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:justify-between uhuu:gap-2 uhuu:text-white`,children:(0,n.jsx)(`div`,{className:`uhuu:flex-1 uhuu:min-w-0`,children:(0,n.jsx)(`div`,{className:`uhuu:text-sm uhuu:font-medium uhuu:truncate`,children:l(e.label)||e.id})})})}),a&&(0,n.jsx)(`div`,{"data-uhuu-chrome":!0,className:`uhuu:absolute uhuu:inset-0 uhuu:flex uhuu:items-center uhuu:justify-center uhuu:bg-blue-500/10 uhuu:pointer-events-none`,children:(0,n.jsx)(`div`,{className:`uhuu:text-blue-600 uhuu:font-medium uhuu:text-sm uhuu:bg-white/90 uhuu:px-3 uhuu:py-1 uhuu:rounded-full uhuu:shadow-lg`,children:c(`thumbnail.draggingGroup`)})})]})}{let i=e.pageId,u=e.pageComponentKey??i,d=gg(r,{id:i,componentKey:u}),f=e.pageComponent||(u?t[u]:null),p=i?dg(r,{id:i}):void 0;return(0,n.jsxs)(`div`,{"data-uhuu-paper":!0,className:`uhuu:relative uhuu:bg-white uhuu:border uhuu:transition-all ${a?`uhuu:border-blue-400 uhuu:shadow-2xl uhuu:scale-105`:s?`uhuu:border-(--uhuu-thumbnail-border-strong) uhuu:bg-gray-50`:`uhuu:border-(--uhuu-thumbnail-border) uhuu:hover:border-(--uhuu-thumbnail-border-strong) uhuu:hover:shadow-lg`}`,style:{width:`${m}px`,height:`${h}px`},title:e.pageId,children:[f?(0,n.jsx)(`div`,{className:`uhuu:w-full uhuu:h-full uhuu:flex uhuu:items-center uhuu:justify-center uhuu:bg-gray-50 uhuu:overflow-hidden uhuu:relative uhuu:pointer-events-none`,children:(0,n.jsx)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:justify-center uhuu:pointer-events-none`,style:{transform:`scale(${Math.min(m/g,h/_)})`,transformOrigin:`center`},children:(0,n.jsx)(`div`,{className:`uhuu:shrink-0!`,style:y(),children:(0,n.jsx)(f,{payload:r,pageId:i,templateId:u,pagePayload:d,componentKey:u,integration:p})})})}):(0,n.jsx)(`div`,{"data-uhuu-chrome":!0,className:`uhuu:w-full uhuu:h-full uhuu:flex uhuu:items-center uhuu:justify-center uhuu:bg-gray-50 uhuu:pointer-events-none`,children:(0,n.jsxs)(`div`,{className:`uhuu:text-center uhuu:p-4`,children:[(0,n.jsx)(`div`,{className:`uhuu:text-sm uhuu:font-medium uhuu:text-gray-700`,children:c(`page.fallbackName`,{number:e.pageNum})}),(0,n.jsx)(`div`,{className:`uhuu:text-xs uhuu:text-gray-500 uhuu:mt-1`,children:i||c(`thumbnail.noPreview`)})]})}),s&&(0,n.jsxs)(`div`,{"data-uhuu-chrome":!0,className:`uhuu:absolute uhuu:top-2 uhuu:left-2 uhuu:px-2 uhuu:py-1 uhuu:bg-gray-600/80 uhuu:backdrop-blur-sm uhuu:text-white uhuu:text-xs uhuu:font-medium uhuu:rounded uhuu:shadow-lg uhuu:pointer-events-none uhuu:flex uhuu:items-center uhuu:gap-1`,children:[(0,n.jsx)(Gr,{className:`uhuu:size-3`}),(0,n.jsx)(`span`,{children:c(o===`start`?`thumbnail.start`:`thumbnail.end`)})]}),(0,n.jsx)(`div`,{"data-uhuu-chrome":!0,className:`uhuu:absolute uhuu:bottom-0 uhuu:left-0 uhuu:right-0 uhuu:bg-(--uhuu-thumbnail-caption) uhuu:backdrop-blur-sm uhuu:p-3 uhuu:pointer-events-none`,children:(0,n.jsx)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:justify-between uhuu:gap-2 uhuu:text-white`,children:(0,n.jsx)(`div`,{className:`uhuu:flex-1 uhuu:min-w-0`,children:(0,n.jsx)(`div`,{className:`uhuu:text-sm uhuu:font-medium uhuu:truncate`,children:l(e.pageLabel)||c(`page.fallbackName`,{number:e.pageNum})})})})}),a&&(0,n.jsx)(`div`,{"data-uhuu-chrome":!0,className:`uhuu:absolute uhuu:inset-0 uhuu:flex uhuu:items-center uhuu:justify-center uhuu:bg-blue-500/10 uhuu:pointer-events-none`,children:(0,n.jsx)(`div`,{className:`uhuu:text-blue-600 uhuu:font-medium uhuu:text-sm uhuu:bg-white/90 uhuu:px-3 uhuu:py-1 uhuu:rounded-full uhuu:shadow-lg`,children:c(`thumbnail.draggingPage`)})})]})}}}function F_({open:e,onOpenChange:t,availableItems:r,onSelectItem:i,pageComponents:a,payload:o,setup:s={width:210,height:297},gridColsClass:c=`uhuu-page-order-grid-cols`}){let l=Hi(),{t:u,localize:d}=l,[f,m]=p.useState(``),h=p.useMemo(()=>{if(!f.trim())return r;let e=f.toLowerCase();return r.filter(t=>(d(t.label)||``).toLowerCase().includes(e)||t.id.toLowerCase().includes(e))},[r,f,d]),g=e=>{t(!1),i(e)},_=T.resolveDimensions(s),v=_.width/_.height,y=Math.round(200/v),b={width:`200px`,height:`${y}px`},x=p.useMemo(()=>a?P_({pageComponents:a,payload:o,setup:s,thumbnailWidth:200,thumbnailHeight:y,i18n:l}):null,[a,o,s,200,y,l]),S=(e,t)=>{if(!e)return[];if(Array.isArray(e))return e;try{let n=e(t);if(!Array.isArray(n))return console.error(`[uhuu-components] pageComponentKeys function must return an array, got:`,typeof n),[];let r=n.filter(e=>typeof e==`string`);return r.length!==n.length&&console.warn(`[uhuu-components] pageComponentKeys returned non-string values, filtering them out`),r}catch(e){return console.error(`[uhuu-components] Error evaluating pageComponentKeys function:`,e),[]}},C=(e,t)=>{if(e.kind===`group`){let t=e,n={payload:o,item:void 0,parent:void 0},r=S(t.pageComponentKeys,n),i=r[0];return{kind:`group`,id:e.id,label:e.label,pageCount:r.length,firstPageId:i,firstPageComponentKey:i}}let n=e,r=n.componentKey??n.id;return{kind:`page`,id:n.id,pageId:n.id,pageComponentKey:r,pageLabel:n.label,pageNum:t+1}};return(0,n.jsx)(C_,{open:e,onOpenChange:t,children:(0,n.jsxs)(E_,{side:`bottom`,className:`uhuu:h-[90vh] uhuu:w-full uhuu:max-w-none uhuu:flex uhuu:flex-col uhuu:gap-0 uhuu:bg-gray-50 uhuu:p-0`,"data-uhuu-editor":!0,children:[(0,n.jsx)(D_,{className:`uhuu:border-b uhuu:border-gray-200 uhuu:p-4 uhuu:bg-(--uhuu-shell-surface)`,children:(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:items-end uhuu:gap-3`,children:[(0,n.jsx)(`div`,{className:`uhuu:w-8 uhuu:h-8 uhuu:bg-gray-100 uhuu:rounded-full uhuu:flex uhuu:items-center uhuu:justify-center uhuu:shrink-0 uhuu:mb-0.5`,children:(0,n.jsx)(Yr,{className:`uhuu:w-4 uhuu:h-4`})}),(0,n.jsxs)(`div`,{className:`uhuu:flex-1`,children:[(0,n.jsx)(k_,{className:`uhuu:text-base uhuu:font-medium uhuu:text-gray-900 uhuu:leading-tight`,children:u(`addDialog.title`)}),(0,n.jsx)(A_,{className:`uhuu:text-xs uhuu:text-gray-400 uhuu:mt-0.5`,children:u(`addDialog.description`)})]}),(0,n.jsxs)(`div`,{className:`uhuu:mb-0.5 uhuu:mr-8 uhuu:flex uhuu:items-center uhuu:gap-1.5 uhuu:rounded-md uhuu:border uhuu:border-gray-200 uhuu:bg-(--uhuu-shell-surface) uhuu:px-2 uhuu:py-1 uhuu:text-gray-400 uhuu:focus-within:border-gray-400 uhuu:focus-within:ring-2 uhuu:focus-within:ring-gray-200`,children:[(0,n.jsx)(Xr,{className:`uhuu:w-3.5 uhuu:h-3.5 uhuu:shrink-0`}),(0,n.jsx)(`label`,{className:`uhuu:sr-only`,htmlFor:`uhuu-add-page-filter`,children:u(`addDialog.filterLabel`)}),(0,n.jsx)(`input`,{id:`uhuu-add-page-filter`,type:`text`,placeholder:u(`addDialog.filterPlaceholder`),value:f,onChange:e=>m(e.target.value),className:`uhuu:w-24 uhuu:border-0 uhuu:bg-transparent uhuu:text-sm uhuu:text-gray-600 uhuu:placeholder:text-gray-400 uhuu:outline-none uhuu:transition-all uhuu:duration-150 uhuu:focus:w-40`})]})]})}),(0,n.jsx)(`div`,{className:`uhuu:min-h-0 uhuu:flex-1 uhuu:overflow-auto uhuu:bg-gray-50 uhuu:p-6`,children:h.length===0?(0,n.jsxs)(`div`,{className:`uhuu:text-center uhuu:py-16`,children:[(0,n.jsx)(`div`,{className:`uhuu:w-16 uhuu:h-16 uhuu:bg-gray-100 uhuu:rounded-full uhuu:flex uhuu:items-center uhuu:justify-center uhuu:mx-auto uhuu:mb-4`,children:(0,n.jsx)(Yr,{className:`uhuu:w-8 uhuu:h-8 uhuu:text-gray-400`})}),(0,n.jsx)(`div`,{className:`uhuu:text-lg uhuu:font-medium uhuu:text-gray-900 uhuu:mb-2`,children:u(`addDialog.emptyTitle`)}),(0,n.jsx)(`p`,{className:`uhuu:text-gray-500 uhuu:mb-4`,children:f.trim()?u(`addDialog.emptyFiltered`):u(`addDialog.emptyAdded`)})]}):(0,n.jsx)(`div`,{className:c,children:h.map((e,t)=>{let r=e.kind===`group`,i=e.id,a=r?d(e.label)||u(`addDialog.groupFallbackName`,{number:t+1}):d(e.label)||u(`addDialog.pageFallbackName`,{id:e.id}),s={payload:o,item:void 0,parent:void 0},c=r?S(e.pageComponentKeys,s).length:1,l=!!x;return(0,n.jsxs)(`div`,{onClick:()=>g(e),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),g(e))},role:`button`,tabIndex:0,"aria-label":u(`addDialog.addItem`,{name:a}),className:[`uhuu:group uhuu:relative uhuu:block uhuu:cursor-pointer uhuu:border-0 uhuu:bg-transparent uhuu:p-0 uhuu:text-left uhuu:transition-all uhuu:focus-visible:outline-none uhuu:focus-visible:ring-2 uhuu:focus-visible:ring-gray-900 uhuu:focus-visible:ring-offset-2`,!l&&`uhuu:bg-(--uhuu-shell-surface) uhuu:border-2 uhuu:border-gray-200`].filter(Boolean).join(` `),style:b,children:[(0,n.jsx)(`div`,{className:`uhuu:w-full uhuu:h-full uhuu:relative`,children:e.thumbnail?(0,n.jsx)(`div`,{"data-uhuu-paper":!0,className:`uhuu:absolute uhuu:inset-0 uhuu:bg-gray-100 uhuu:hover:bg-white`,children:(0,n.jsx)(`img`,{"data-uhuu-chrome":!0,src:e.thumbnail,className:`uhuu:w-full uhuu:h-full uhuu:object-contain uhuu:pointer-events-none uhuu:object-top uhuu:border uhuu:border-gray-200 uhuu:p-4`,alt:a})}):x?(0,n.jsx)(`div`,{className:`uhuu:absolute uhuu:inset-0 uhuu:flex uhuu:items-center uhuu:pointer-events-none`,children:x(C(e,t),t,!1)}):(0,n.jsx)(n.Fragment,{children:r?(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:h-full uhuu:flex-col uhuu:items-center uhuu:justify-center uhuu:p-4 uhuu:text-center`,children:[(0,n.jsx)(`div`,{className:`uhuu:w-16 uhuu:h-16 uhuu:bg-blue-100 uhuu:rounded-full uhuu:flex uhuu:items-center uhuu:justify-center uhuu:mx-auto uhuu:mb-3`,children:(0,n.jsx)(Yr,{className:`uhuu:w-8 uhuu:h-8 uhuu:text-blue-600`})}),(0,n.jsx)(`div`,{className:`uhuu:text-sm uhuu:font-medium uhuu:text-gray-700`,children:a}),(0,n.jsx)(`div`,{className:`uhuu:text-xs uhuu:text-gray-500 uhuu:mt-1`,children:u(`page.count`,{count:c})})]}):(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:h-full uhuu:flex-col uhuu:items-center uhuu:justify-center uhuu:p-4 uhuu:text-center`,children:[(0,n.jsx)(`div`,{className:`uhuu:w-16 uhuu:h-16 uhuu:bg-gray-100 uhuu:rounded-full uhuu:flex uhuu:items-center uhuu:justify-center uhuu:mx-auto uhuu:mb-3`,children:(0,n.jsx)(Yr,{className:`uhuu:w-8 uhuu:h-8 uhuu:text-gray-400`})}),(0,n.jsx)(`div`,{className:`uhuu:text-sm uhuu:font-medium uhuu:text-gray-700`,children:a}),(0,n.jsx)(`div`,{className:`uhuu:text-xs uhuu:text-gray-500 uhuu:mt-1`,children:i})]})})}),(!x||e?.thumbnail)&&(0,n.jsxs)(n.Fragment,{children:[r&&(0,n.jsx)(`div`,{className:`uhuu:absolute uhuu:top-2 uhuu:right-2 uhuu:px-2 uhuu:py-1 uhuu:bg-blue-600/80 uhuu:backdrop-blur-sm uhuu:text-white uhuu:text-xs uhuu:font-medium uhuu:rounded uhuu:shadow-lg uhuu:pointer-events-none`,children:u(`thumbnail.groupBadge`,{count:c})}),(0,n.jsx)(`div`,{className:`uhuu:absolute uhuu:bottom-0 uhuu:left-0 uhuu:right-0 uhuu:bg-(--uhuu-thumbnail-caption) uhuu:backdrop-blur-sm uhuu:p-3 uhuu:pointer-events-none`,"data-item-id":i,children:(0,n.jsx)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:justify-between uhuu:gap-2 uhuu:text-white`,children:(0,n.jsx)(`div`,{className:`uhuu:flex-1 uhuu:min-w-0`,children:(0,n.jsx)(`div`,{className:`uhuu:text-sm uhuu:font-medium uhuu:truncate`,children:a})})})})]}),(0,n.jsx)(`div`,{className:`uhuu:absolute uhuu:top-3 uhuu:left-3 uhuu:w-8 uhuu:h-8 uhuu:bg-black uhuu:rounded-full uhuu:flex uhuu:items-center uhuu:justify-center uhuu:shadow-lg uhuu:opacity-0 uhuu:group-hover:opacity-100 uhuu:transition-opacity uhuu:pointer-events-none uhuu:z-10`,children:(0,n.jsx)(Yr,{className:`uhuu:w-4 uhuu:h-4 uhuu:text-white`})})]},i)})})})]})})}function I_(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0,t.useMemo)(()=>e=>{n.forEach(t=>t(e))},n)}var L_=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function R_(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function z_(e){return`nodeType`in e}function B_(e){return e?R_(e)?e:z_(e)?e.ownerDocument?.defaultView??window:window:window}function V_(e){let{Document:t}=B_(e);return e instanceof t}function H_(e){return!R_(e)&&e instanceof B_(e).HTMLElement}function U_(e){return e instanceof B_(e).SVGElement}function W_(e){return e?R_(e)?e.document:z_(e)?V_(e)?e:H_(e)||U_(e)?e.ownerDocument:document:document:document}var G_=L_?t.useLayoutEffect:t.useEffect;function K_(e){let n=(0,t.useRef)(e);return G_(()=>{n.current=e}),(0,t.useCallback)(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.current==null?void 0:n.current(...t)},[])}function q_(){let e=(0,t.useRef)(null);return[(0,t.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,t.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[])]}function J_(e,n){n===void 0&&(n=[e]);let r=(0,t.useRef)(e);return G_(()=>{r.current!==e&&(r.current=e)},n),r}function Y_(e,n){let r=(0,t.useRef)();return(0,t.useMemo)(()=>{let t=e(r.current);return r.current=t,t},[...n])}function X_(e){let n=K_(e),r=(0,t.useRef)(null);return[r,(0,t.useCallback)(e=>{e!==r.current&&n?.(e,r.current),r.current=e},[])]}function Z_(e){let n=(0,t.useRef)();return(0,t.useEffect)(()=>{n.current=e},[e]),n.current}var Q_={};function $_(e,n){return(0,t.useMemo)(()=>{if(n)return n;let t=Q_[e]==null?0:Q_[e]+1;return Q_[e]=t,e+`-`+t},[e,n])}function ev(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>{let r=Object.entries(n);for(let[n,i]of r){let r=t[n];r!=null&&(t[n]=r+e*i)}return t},{...t})}}var tv=ev(1),nv=ev(-1);function rv(e){return`clientX`in e&&`clientY`in e}function iv(e){if(!e)return!1;let{KeyboardEvent:t}=B_(e.target);return t&&e instanceof t}function av(e){if(!e)return!1;let{TouchEvent:t}=B_(e.target);return t&&e instanceof t}function ov(e){if(av(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return rv(e)?{x:e.clientX,y:e.clientY}:null}var sv=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return`translate3d(`+(t?Math.round(t):0)+`px, `+(n?Math.round(n):0)+`px, 0)`}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return`scaleX(`+t+`) scaleY(`+n+`)`}},Transform:{toString(e){if(e)return[sv.Translate.toString(e),sv.Scale.toString(e)].join(` `)}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+` `+n+`ms `+r}}}),cv=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function lv(e){return e.matches(cv)?e:e.querySelector(cv)}var uv={display:`none`};function dv(e){let{id:n,value:r}=e;return t.default.createElement(`div`,{id:n,style:uv},r)}function fv(e){let{id:n,announcement:r,ariaLiveType:i=`assertive`}=e;return t.default.createElement(`div`,{id:n,style:{position:`fixed`,top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(100%)`,whiteSpace:`nowrap`},role:`status`,"aria-live":i,"aria-atomic":!0},r)}function pv(){let[e,n]=(0,t.useState)(``);return{announce:(0,t.useCallback)(e=>{e!=null&&n(e)},[]),announcement:e}}var mv=(0,t.createContext)(null);function hv(e){let n=(0,t.useContext)(mv);(0,t.useEffect)(()=>{if(!n)throw Error(`useDndMonitor must be used within a children of <DndContext>`);return n(e)},[e,n])}function gv(){let[e]=(0,t.useState)(()=>new Set),n=(0,t.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,t.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>e[n]?.call(e,r))},[e]),n]}var _v={draggable:`
53
53
  To pick up a draggable item, press the space bar.
54
54
  While dragging, use the arrow keys to move the item.
55
55
  Press space again to drop the item in its new position, or press escape to cancel.
56
- `},hv={onDragStart(e){let{active:t}=e;return`Picked up draggable item `+t.id+`.`},onDragOver(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was moved over droppable area `+n.id+`.`:`Draggable item `+t.id+` is no longer over a droppable area.`},onDragEnd(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was dropped over droppable area `+n.id:`Draggable item `+t.id+` was dropped.`},onDragCancel(e){let{active:t}=e;return`Dragging was cancelled. Draggable item `+t.id+` was dropped.`}};function gv(e){let{announcements:n=hv,container:i,hiddenTextDescribedById:a,screenReaderInstructions:o=mv}=e,{announce:s,announcement:c}=uv(),l=X_(`DndLiveRegion`),[u,d]=(0,t.useState)(!1);if((0,t.useEffect)(()=>{d(!0)},[]),fv((0,t.useMemo)(()=>({onDragStart(e){let{active:t}=e;s(n.onDragStart({active:t}))},onDragMove(e){let{active:t,over:r}=e;n.onDragMove&&s(n.onDragMove({active:t,over:r}))},onDragOver(e){let{active:t,over:r}=e;s(n.onDragOver({active:t,over:r}))},onDragEnd(e){let{active:t,over:r}=e;s(n.onDragEnd({active:t,over:r}))},onDragCancel(e){let{active:t,over:r}=e;s(n.onDragCancel({active:t,over:r}))}}),[s,n])),!u)return null;let f=t.default.createElement(t.default.Fragment,null,t.default.createElement(cv,{id:a,value:o.draggable}),t.default.createElement(lv,{id:l,announcement:c}));return i?(0,r.createPortal)(f,i):f}var _v;(function(e){e.DragStart=`dragStart`,e.DragMove=`dragMove`,e.DragEnd=`dragEnd`,e.DragCancel=`dragCancel`,e.DragOver=`dragOver`,e.RegisterDroppable=`registerDroppable`,e.SetDroppableDisabled=`setDroppableDisabled`,e.UnregisterDroppable=`unregisterDroppable`})(_v||={});function vv(){}function yv(e,n){return(0,t.useMemo)(()=>({sensor:e,options:n??{}}),[e,n])}function bv(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0,t.useMemo)(()=>[...n].filter(e=>e!=null),[...n])}var xv=Object.freeze({x:0,y:0});function Sv(e,t){return Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2)}function Cv(e,t){let n=rv(e);if(!n)return`0 0`;let r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+`% `+r.y+`%`}function wv(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Tv(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Ev(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function Dv(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function Ov(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}var kv=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=Ov(t,t.left,t.top),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=Sv(Ov(r),i);a.push({id:t,data:{droppableContainer:e,value:n}})}}return a.sort(wv)},Av=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=Ev(t),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=Ev(r),o=i.reduce((e,t,r)=>e+Sv(n[r],t),0),s=Number((o/4).toFixed(4));a.push({id:t,data:{droppableContainer:e,value:s}})}}return a.sort(wv)};function jv(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){let n=t.width*t.height,r=e.width*e.height,i=o*s,a=i/(n+r-i);return Number(a.toFixed(4))}return 0}var Mv=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=jv(a,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(Tv)};function Nv(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Pv(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:xv}function Fv(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}var Iv=Fv(1);function Lv(e){if(e.startsWith(`matrix3d(`)){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith(`matrix(`)){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Rv(e,t,n){let r=Lv(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:s}=r,c=e.left-o-(1-i)*parseFloat(n),l=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(` `)+1)),u=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c}}var zv={ignoreTransform:!1};function Bv(e,t){t===void 0&&(t=zv);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=L_(e).getComputedStyle(e);t&&(n=Rv(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:s,right:c}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:c}}function Vv(e){return Bv(e,{ignoreTransform:!0})}function Hv(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Uv(e,t){return t===void 0&&(t=L_(e).getComputedStyle(e)),t.position===`fixed`}function Wv(e,t){t===void 0&&(t=L_(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return[`overflow`,`overflowX`,`overflowY`].some(e=>{let r=t[e];return typeof r==`string`&&n.test(r)})}function Gv(e,t){let n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(R_(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!z_(i)||B_(i)||n.includes(i))return n;let a=L_(e).getComputedStyle(i);return i!==e&&Wv(i,a)&&n.push(i),Uv(i,a)?n:r(i.parentNode)}return e?r(e):n}function Kv(e){let[t]=Gv(e,1);return t??null}function qv(e){return!P_||!e?null:F_(e)?e:I_(e)?R_(e)||e===V_(e).scrollingElement?window:z_(e)?e:null:null}function Jv(e){return F_(e)?e.scrollX:e.scrollLeft}function Yv(e){return F_(e)?e.scrollY:e.scrollTop}function Xv(e){return{x:Jv(e),y:Yv(e)}}var Zv;(function(e){e[e.Forward=1]=`Forward`,e[e.Backward=-1]=`Backward`})(Zv||={});function Qv(e){return!P_||!e?!1:e===document.scrollingElement}function $v(e){let t={x:0,y:0},n=Qv(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}var ey={x:.2,y:.2};function ty(e,t,n,r,i){let{top:a,left:o,right:s,bottom:c}=n;r===void 0&&(r=10),i===void 0&&(i=ey);let{isTop:l,isBottom:u,isLeft:d,isRight:f}=$v(e),p={x:0,y:0},m={x:0,y:0},h={height:t.height*i.y,width:t.width*i.x};return!l&&a<=t.top+h.height?(p.y=Zv.Backward,m.y=r*Math.abs((t.top+h.height-a)/h.height)):!u&&c>=t.bottom-h.height&&(p.y=Zv.Forward,m.y=r*Math.abs((t.bottom-h.height-c)/h.height)),!f&&s>=t.right-h.width?(p.x=Zv.Forward,m.x=r*Math.abs((t.right-h.width-s)/h.width)):!d&&o<=t.left+h.width&&(p.x=Zv.Backward,m.x=r*Math.abs((t.left+h.width-o)/h.width)),{direction:p,speed:m}}function ny(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function ry(e){return e.reduce((e,t)=>Q_(e,Xv(t)),xv)}function iy(e){return e.reduce((e,t)=>e+Jv(t),0)}function ay(e){return e.reduce((e,t)=>e+Yv(t),0)}function oy(e,t){if(t===void 0&&(t=Bv),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);Kv(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:`center`,inline:`center`})}var sy=[[`x`,[`left`,`right`],iy],[`y`,[`top`,`bottom`],ay]],cy=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=Gv(t),r=ry(n);this.rect={...e},this.width=e.width,this.height=e.height;for(let[e,t,i]of sy)for(let a of t)Object.defineProperty(this,a,{get:()=>{let t=i(n),o=r[e]-t;return this.rect[a]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},ly=class{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>this.target?.removeEventListener(...e))},this.target=e}add(e,t,n){var r;(r=this.target)==null||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}};function uy(e){let{EventTarget:t}=L_(e);return e instanceof t?e:V_(e)}function dy(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return typeof t==`number`?Math.sqrt(n**2+r**2)>t:`x`in t&&`y`in t?n>t.x&&r>t.y:`x`in t?n>t.x:`y`in t&&r>t.y}var fy;(function(e){e.Click=`click`,e.DragStart=`dragstart`,e.Keydown=`keydown`,e.ContextMenu=`contextmenu`,e.Resize=`resize`,e.SelectionChange=`selectionchange`,e.VisibilityChange=`visibilitychange`})(fy||={});function py(e){e.preventDefault()}function my(e){e.stopPropagation()}var Q;(function(e){e.Space=`Space`,e.Down=`ArrowDown`,e.Right=`ArrowRight`,e.Left=`ArrowLeft`,e.Up=`ArrowUp`,e.Esc=`Escape`,e.Enter=`Enter`,e.Tab=`Tab`})(Q||={});var hy={start:[Q.Space,Q.Enter],cancel:[Q.Esc],end:[Q.Space,Q.Enter,Q.Tab]},gy=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Q.Right:return{...n,x:n.x+25};case Q.Left:return{...n,x:n.x-25};case Q.Down:return{...n,y:n.y+25};case Q.Up:return{...n,y:n.y-25}}},_y=class{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new ly(V_(t)),this.windowListeners=new ly(L_(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(fy.Resize,this.handleCancel),this.windowListeners.add(fy.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(fy.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&oy(n),t(xv)}handleKeyDown(e){if(tv(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=hy,coordinateGetter:a=gy,scrollBehavior:o=`smooth`}=r,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:c}=n.current,l=c?{x:c.left,y:c.top}:xv;this.referenceCoordinates||=l;let u=a(e,{active:t,context:n.current,currentCoordinates:l});if(u){let t=$_(u,l),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:s,isLeft:c,isBottom:l,maxScroll:d,minScroll:f}=$v(n),p=ny(n),m={x:Math.min(i===Q.Right?p.right-p.width/2:p.right,Math.max(i===Q.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(i===Q.Down?p.bottom-p.height/2:p.bottom,Math.max(i===Q.Down?p.top:p.top+p.height/2,u.y))},h=i===Q.Right&&!s||i===Q.Left&&!c,g=i===Q.Down&&!l||i===Q.Up&&!a;if(h&&m.x!==u.x){let e=n.scrollLeft+t.x,a=i===Q.Right&&e<=d.x||i===Q.Left&&e>=f.x;if(a&&!t.y){n.scrollTo({left:e,behavior:o});return}r.x=a?n.scrollLeft-e:i===Q.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}if(g&&m.y!==u.y){let e=n.scrollTop+t.y,a=i===Q.Down&&e<=d.y||i===Q.Up&&e>=f.y;if(a&&!t.x){n.scrollTo({top:e,behavior:o});return}r.y=a?n.scrollTop-e:i===Q.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,Q_($_(u,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};_y.activators=[{eventName:`onKeyDown`,handler:(e,t,n)=>{let{keyboardCodes:r=hy,onActivation:i}=t,{active:a}=n,{code:o}=e.nativeEvent;if(r.start.includes(o)){let t=a.activatorNode.current;return t&&e.target!==t?!1:(e.preventDefault(),i?.({event:e.nativeEvent}),!0)}return!1}}];function vy(e){return!!(e&&`distance`in e)}function yy(e){return!!(e&&`delay`in e)}var by=class{constructor(e,t,n){n===void 0&&(n=uy(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:r}=e,{target:i}=r;this.props=e,this.events=t,this.document=V_(i),this.documentListeners=new ly(this.document),this.listeners=new ly(n),this.windowListeners=new ly(L_(i)),this.initialCoordinates=rv(r)??xv,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(fy.Resize,this.handleCancel),this.windowListeners.add(fy.DragStart,py),this.windowListeners.add(fy.VisibilityChange,this.handleCancel),this.windowListeners.add(fy.ContextMenu,py),this.documentListeners.add(fy.Keydown,this.handleKeydown),t){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(yy(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(vy(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(fy.Click,my,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(fy.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){let{activated:t,initialCoordinates:n,props:r}=this,{onMove:i,options:{activationConstraint:a}}=r;if(!n)return;let o=rv(e)??xv,s=$_(n,o);if(!t&&a){if(vy(a)){if(a.tolerance!=null&&dy(s,a.tolerance))return this.handleCancel();if(dy(s,a.distance))return this.handleStart()}if(yy(a)&&dy(s,a.tolerance))return this.handleCancel();this.handlePending(a,s)}else e.cancelable&&e.preventDefault(),i(o)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===Q.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}},xy={cancel:{name:`pointercancel`},move:{name:`pointermove`},end:{name:`pointerup`}},Sy=class extends by{constructor(e){let{event:t}=e,n=V_(t.target);super(e,xy,n)}};Sy.activators=[{eventName:`onPointerDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var Cy={move:{name:`mousemove`},end:{name:`mouseup`}},wy;(function(e){e[e.RightClick=2]=`RightClick`})(wy||={});var Ty=class extends by{constructor(e){super(e,Cy,V_(e.event.target))}};Ty.activators=[{eventName:`onMouseDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==wy.RightClick&&(r?.({event:n}),!0)}}];var Ey={cancel:{name:`touchcancel`},move:{name:`touchmove`},end:{name:`touchend`}},Dy=class extends by{constructor(e){super(e,Ey)}static setup(){return window.addEventListener(Ey.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Ey.move.name,e)};function e(){}}};Dy.activators=[{eventName:`onTouchStart`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return i.length>1?!1:(r?.({event:n}),!0)}}];var Oy;(function(e){e[e.Pointer=0]=`Pointer`,e[e.DraggableRect=1]=`DraggableRect`})(Oy||={});var ky;(function(e){e[e.TreeOrder=0]=`TreeOrder`,e[e.ReversedTreeOrder=1]=`ReversedTreeOrder`})(ky||={});function Ay(e){let{acceleration:n,activator:r=Oy.Pointer,canScroll:i,draggingRect:a,enabled:o,interval:s=5,order:c=ky.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:p}=e,m=My({delta:f,disabled:!o}),[h,g]=W_(),_=(0,t.useRef)({x:0,y:0}),v=(0,t.useRef)({x:0,y:0}),y=(0,t.useMemo)(()=>{switch(r){case Oy.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Oy.DraggableRect:return a}},[r,a,l]),b=(0,t.useRef)(null),x=(0,t.useCallback)(()=>{let e=b.current;if(!e)return;let t=_.current.x*v.current.x,n=_.current.y*v.current.y;e.scrollBy(t,n)},[]),S=(0,t.useMemo)(()=>c===ky.TreeOrder?[...u].reverse():u,[c,u]);(0,t.useEffect)(()=>{if(!o||!u.length||!y)g();else{for(let e of S){if(i?.(e)===!1)continue;let t=u.indexOf(e),r=d[t];if(!r)continue;let{direction:a,speed:o}=ty(e,r,y,n,p);for(let e of[`x`,`y`])m[e][a[e]]||(o[e]=0,a[e]=0);if(o.x>0||o.y>0){g(),b.current=e,h(x,s),_.current=o,v.current=a;return}}_.current={x:0,y:0},v.current={x:0,y:0},g()}},[n,x,i,g,o,s,JSON.stringify(y),JSON.stringify(m),h,u,S,d,JSON.stringify(p)])}var jy={x:{[Zv.Backward]:!1,[Zv.Forward]:!1},y:{[Zv.Backward]:!1,[Zv.Forward]:!1}};function My(e){let{delta:t,disabled:n}=e,r=J_(t);return K_(e=>{if(n||!r||!e)return jy;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Zv.Backward]:e.x[Zv.Backward]||i.x===-1,[Zv.Forward]:e.x[Zv.Forward]||i.x===1},y:{[Zv.Backward]:e.y[Zv.Backward]||i.y===-1,[Zv.Forward]:e.y[Zv.Forward]||i.y===1}}},[n,t,r])}function Ny(e,t){let n=t==null?void 0:e.get(t),r=n?n.node.current:null;return K_(e=>t==null?null:r??e??null,[r,t])}function Py(e,n){return(0,t.useMemo)(()=>e.reduce((e,t)=>{let{sensor:r}=t,i=r.activators.map(e=>({eventName:e.eventName,handler:n(e.handler,t)}));return[...e,...i]},[]),[e,n])}var Fy;(function(e){e[e.Always=0]=`Always`,e[e.BeforeDragging=1]=`BeforeDragging`,e[e.WhileDragging=2]=`WhileDragging`})(Fy||={});var Iy;(function(e){e.Optimized=`optimized`})(Iy||={});var Ly=new Map;function Ry(e,n){let{dragging:r,dependencies:i,config:a}=n,[o,s]=(0,t.useState)(null),{frequency:c,measure:l,strategy:u}=a,d=(0,t.useRef)(e),f=_(),p=G_(f),m=(0,t.useCallback)(function(e){e===void 0&&(e=[]),!p.current&&s(t=>t===null?e:t.concat(e.filter(e=>!t.includes(e))))},[p]),h=(0,t.useRef)(null),g=K_(t=>{if(f&&!r)return Ly;if(!t||t===Ly||d.current!==e||o!=null){let t=new Map;for(let n of e){if(!n)continue;if(o&&o.length>0&&!o.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new cy(l(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,o,r,f,l]);return(0,t.useEffect)(()=>{d.current=e},[e]),(0,t.useEffect)(()=>{f||m()},[r,f]),(0,t.useEffect)(()=>{o&&o.length>0&&s(null)},[JSON.stringify(o)]),(0,t.useEffect)(()=>{f||typeof c!=`number`||h.current!==null||(h.current=setTimeout(()=>{m(),h.current=null},c))},[c,f,m,...i]),{droppableRects:g,measureDroppableContainers:m,measuringScheduled:o!=null};function _(){switch(u){case Fy.Always:return!1;case Fy.BeforeDragging:return r;default:return!r}}}function zy(e,t){return K_(n=>e?n||(typeof t==`function`?t(e):e):null,[t,e])}function By(e,t){return zy(e,t)}function Vy(e){let{callback:n,disabled:r}=e,i=U_(n),a=(0,t.useMemo)(()=>{if(r||typeof window>`u`||window.MutationObserver===void 0)return;let{MutationObserver:e}=window;return new e(i)},[i,r]);return(0,t.useEffect)(()=>()=>a?.disconnect(),[a]),a}function Hy(e){let{callback:n,disabled:r}=e,i=U_(n),a=(0,t.useMemo)(()=>{if(r||typeof window>`u`||window.ResizeObserver===void 0)return;let{ResizeObserver:e}=window;return new e(i)},[r]);return(0,t.useEffect)(()=>()=>a?.disconnect(),[a]),a}function Uy(e){return new cy(Bv(e),e)}function Wy(e,n,r){n===void 0&&(n=Uy);let[i,a]=(0,t.useState)(null);function o(){a(t=>{if(!e)return null;if(e.isConnected===!1)return t??r??null;let i=n(e);return JSON.stringify(t)===JSON.stringify(i)?t:i})}let s=Vy({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if(t===`childList`&&r instanceof HTMLElement&&r.contains(e)){o();break}}}}),c=Hy({callback:o});return H_(()=>{o(),e?(c?.observe(e),s?.observe(document.body,{childList:!0,subtree:!0})):(c?.disconnect(),s?.disconnect())},[e]),i}function Gy(e){return Pv(e,zy(e))}var Ky=[];function qy(e){let n=(0,t.useRef)(e),r=K_(t=>e?t&&t!==Ky&&e&&n.current&&e.parentNode===n.current.parentNode?t:Gv(e):Ky,[e]);return(0,t.useEffect)(()=>{n.current=e},[e]),r}function Jy(e){let[n,r]=(0,t.useState)(null),i=(0,t.useRef)(e),a=(0,t.useCallback)(e=>{let t=qv(e.target);t&&r(e=>e?(e.set(t,Xv(t)),new Map(e)):null)},[]);return(0,t.useEffect)(()=>{let t=i.current;if(e!==t){n(t);let o=e.map(e=>{let t=qv(e);return t?(t.addEventListener(`scroll`,a,{passive:!0}),[t,Xv(t)]):null}).filter(e=>e!=null);r(o.length?new Map(o):null),i.current=e}return()=>{n(e),n(t)};function n(e){e.forEach(e=>{qv(e)?.removeEventListener(`scroll`,a)})}},[a,e]),(0,t.useMemo)(()=>e.length?n?Array.from(n.values()).reduce((e,t)=>Q_(e,t),xv):ry(e):xv,[e,n])}function Yy(e,n){n===void 0&&(n=[]);let r=(0,t.useRef)(null);return(0,t.useEffect)(()=>{r.current=null},n),(0,t.useEffect)(()=>{let t=e!==xv;t&&!r.current&&(r.current=e),!t&&r.current&&(r.current=null)},[e]),r.current?$_(e,r.current):xv}function Xy(e){(0,t.useEffect)(()=>{if(!P_)return;let t=e.map(e=>{let{sensor:t}=e;return t.setup==null?void 0:t.setup()});return()=>{for(let e of t)e?.()}},e.map(e=>{let{sensor:t}=e;return t}))}function Zy(e,n){return(0,t.useMemo)(()=>e.reduce((e,t)=>{let{eventName:r,handler:i}=t;return e[r]=e=>{i(e,n)},e},{}),[e,n])}function Qy(e){return(0,t.useMemo)(()=>e?Hv(e):null,[e])}var $y=[];function eb(e,n){n===void 0&&(n=Bv);let[r]=e,i=Qy(r?L_(r):null),[a,o]=(0,t.useState)($y);function s(){o(()=>e.length?e.map(e=>Qv(e)?i:new cy(n(e),e)):$y)}let c=Hy({callback:s});return H_(()=>{c?.disconnect(),s(),e.forEach(e=>c?.observe(e))},[e]),a}function tb(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return z_(t)?t:e}function nb(e){let{measure:n}=e,[r,i]=(0,t.useState)(null),a=Hy({callback:(0,t.useCallback)(e=>{for(let{target:t}of e)if(z_(t)){i(e=>{let r=n(t);return e?{...e,width:r.width,height:r.height}:r});break}},[n])}),[o,s]=q_((0,t.useCallback)(e=>{let t=tb(e);a?.disconnect(),t&&a?.observe(t),i(t?n(t):null)},[n,a]));return(0,t.useMemo)(()=>({nodeRef:o,rect:r,setRef:s}),[r,o,s])}var rb=[{sensor:Sy,options:{}},{sensor:_y,options:{}}],ib={current:{}},ab={draggable:{measure:Vv},droppable:{measure:Vv,strategy:Fy.WhileDragging,frequency:Iy.Optimized},dragOverlay:{measure:Bv}},ob=class extends Map{get(e){return e==null?void 0:super.get(e)??void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){return this.get(e)?.node.current??void 0}},sb={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ob,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:vv},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ab,measureDroppableContainers:vv,windowRect:null,measuringScheduled:!1},cb={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:``},dispatch:vv,draggableNodes:new Map,over:null,measureDroppableContainers:vv},lb=(0,t.createContext)(cb),ub=(0,t.createContext)(sb);function db(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ob}}}function fb(e,t){switch(t.type){case _v.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case _v.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case _v.DragEnd:case _v.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case _v.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new ob(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case _v.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let o=new ob(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case _v.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new ob(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function pb(e){let{disabled:n}=e,{active:r,activatorEvent:i,draggableNodes:a}=(0,t.useContext)(lb),o=J_(i),s=J_(r?.id);return(0,t.useEffect)(()=>{if(!n&&!i&&o&&s!=null){if(!tv(o)||document.activeElement===o.target)return;let e=a.get(s);if(!e)return;let{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=ov(e);if(t){t.focus();break}}})}},[i,n,a,s,o]),null}function mb(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}function hb(e){return(0,t.useMemo)(()=>({draggable:{...ab.draggable,...e?.draggable},droppable:{...ab.droppable,...e?.droppable},dragOverlay:{...ab.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function gb(e){let{activeNode:n,measure:r,initialRect:i,config:a=!0}=e,o=(0,t.useRef)(!1),{x:s,y:c}=typeof a==`boolean`?{x:a,y:a}:a;H_(()=>{if(!s&&!c||!n){o.current=!1;return}if(o.current||!i)return;let e=n?.node.current;if(!e||e.isConnected===!1)return;let t=Pv(r(e),i);if(s||(t.x=0),c||(t.y=0),o.current=!0,Math.abs(t.x)>0||Math.abs(t.y)>0){let n=Kv(e);n&&n.scrollBy({top:t.y,left:t.x})}},[n,s,c,i,r])}var _b=(0,t.createContext)({...xv,scaleX:1,scaleY:1}),vb;(function(e){e[e.Uninitialized=0]=`Uninitialized`,e[e.Initializing=1]=`Initializing`,e[e.Initialized=2]=`Initialized`})(vb||={});var yb=(0,t.memo)(function(e){let{id:n,accessibility:i,autoScroll:a=!0,children:o,sensors:s=rb,collisionDetection:c=Mv,measuring:l,modifiers:u,...d}=e,[f,p]=(0,t.useReducer)(fb,void 0,db),[m,h]=pv(),[g,_]=(0,t.useState)(vb.Uninitialized),v=g===vb.Initialized,{draggable:{active:y,nodes:b,translate:x},droppable:{containers:S}}=f,C=y==null?null:b.get(y),w=(0,t.useRef)({initial:null,translated:null}),T=(0,t.useMemo)(()=>y==null?null:{id:y,data:C?.data??ib,rect:w},[y,C]),E=(0,t.useRef)(null),[D,O]=(0,t.useState)(null),[k,A]=(0,t.useState)(null),j=G_(d,Object.values(d)),M=X_(`DndDescribedBy`,n),N=(0,t.useMemo)(()=>S.getEnabled(),[S]),P=hb(l),{droppableRects:F,measureDroppableContainers:I,measuringScheduled:L}=Ry(N,{dragging:v,dependencies:[x.x,x.y],config:P.droppable}),R=Ny(b,y),ee=(0,t.useMemo)(()=>k?rv(k):null,[k]),te=ke(),z=By(R,P.draggable.measure);gb({activeNode:y==null?null:b.get(y),config:te.layoutShiftCompensation,initialRect:z,measure:P.draggable.measure});let B=Wy(R,P.draggable.measure,z),ne=Wy(R?R.parentElement:null),re=(0,t.useRef)({activatorEvent:null,active:null,activeNode:R,collisionRect:null,collisions:null,droppableRects:F,draggableNodes:b,draggingNode:null,draggingNodeRect:null,droppableContainers:S,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),V=S.getNodeFor(re.current.over?.id),ie=nb({measure:P.dragOverlay.measure}),ae=ie.nodeRef.current??R,oe=v?ie.rect??B:null,se=!!(ie.nodeRef.current&&ie.rect),ce=Gy(se?null:B),le=Qy(ae?L_(ae):null),ue=qy(v?V??R:null),de=eb(ue),fe=mb(u,{transform:{x:x.x-ce.x,y:x.y-ce.y,scaleX:1,scaleY:1},activatorEvent:k,active:T,activeNodeRect:B,containerNodeRect:ne,draggingNodeRect:oe,over:re.current.over,overlayNodeRect:ie.rect,scrollableAncestors:ue,scrollableAncestorRects:de,windowRect:le}),pe=ee?Q_(ee,x):null,me=Jy(ue),he=Yy(me),ge=Yy(me,[B]),_e=Q_(fe,he),ve=oe?Iv(oe,fe):null,ye=T&&ve?c({active:T,collisionRect:ve,droppableRects:F,droppableContainers:N,pointerCoordinates:pe}):null,be=Dv(ye,`id`),[xe,Se]=(0,t.useState)(null),Ce=Nv(se?fe:Q_(fe,ge),xe?.rect??null,B),we=(0,t.useRef)(null),Te=(0,t.useCallback)((e,t)=>{let{sensor:n,options:i}=t;if(E.current==null)return;let a=b.get(E.current);if(!a)return;let o=e.nativeEvent,s=new n({active:E.current,activeNode:a,event:o,options:i,context:re,onAbort(e){if(!b.get(e))return;let{onDragAbort:t}=j.current,n={id:e};t?.(n),m({type:`onDragAbort`,event:n})},onPending(e,t,n,r){if(!b.get(e))return;let{onDragPending:i}=j.current,a={id:e,constraint:t,initialCoordinates:n,offset:r};i?.(a),m({type:`onDragPending`,event:a})},onStart(e){let t=E.current;if(t==null)return;let n=b.get(t);if(!n)return;let{onDragStart:i}=j.current,a={activatorEvent:o,active:{id:t,data:n.data,rect:w}};(0,r.unstable_batchedUpdates)(()=>{i?.(a),_(vb.Initializing),p({type:_v.DragStart,initialCoordinates:e,active:t}),m({type:`onDragStart`,event:a}),O(we.current),A(o)})},onMove(e){p({type:_v.DragMove,coordinates:e})},onEnd:c(_v.DragEnd),onCancel:c(_v.DragCancel)});we.current=s;function c(e){return async function(){let{active:t,collisions:n,over:i,scrollAdjustedTranslate:a}=re.current,s=null;if(t&&a){let{cancelDrop:r}=j.current;s={activatorEvent:o,active:t,collisions:n,delta:a,over:i},e===_v.DragEnd&&typeof r==`function`&&await Promise.resolve(r(s))&&(e=_v.DragCancel)}E.current=null,(0,r.unstable_batchedUpdates)(()=>{p({type:e}),_(vb.Uninitialized),Se(null),O(null),A(null),we.current=null;let t=e===_v.DragEnd?`onDragEnd`:`onDragCancel`;if(s){let e=j.current[t];e?.(s),m({type:t,event:s})}})}}},[b]),Ee=Py(s,(0,t.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=b.get(r);if(E.current!==null||!a||i.dndKit||i.defaultPrevented)return;let o={active:a};e(n,t.options,o)===!0&&(i.dndKit={capturedBy:t.sensor},E.current=r,Te(n,t))},[b,Te]));Xy(s),H_(()=>{B&&g===vb.Initializing&&_(vb.Initialized)},[B,g]),(0,t.useEffect)(()=>{let{onDragMove:e}=j.current,{active:t,activatorEvent:n,collisions:i,over:a}=re.current;if(!t||!n)return;let o={active:t,activatorEvent:n,collisions:i,delta:{x:_e.x,y:_e.y},over:a};(0,r.unstable_batchedUpdates)(()=>{e?.(o),m({type:`onDragMove`,event:o})})},[_e.x,_e.y]),(0,t.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:i,scrollAdjustedTranslate:a}=re.current;if(!e||E.current==null||!t||!a)return;let{onDragOver:o}=j.current,s=i.get(be),c=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:a.x,y:a.y},over:c};(0,r.unstable_batchedUpdates)(()=>{Se(c),o?.(l),m({type:`onDragOver`,event:l})})},[be]),H_(()=>{re.current={activatorEvent:k,active:T,activeNode:R,collisionRect:ve,collisions:ye,droppableRects:F,draggableNodes:b,draggingNode:ae,draggingNodeRect:oe,droppableContainers:S,over:xe,scrollableAncestors:ue,scrollAdjustedTranslate:_e},w.current={initial:oe,translated:ve}},[T,R,ye,ve,b,ae,oe,F,S,xe,ue,_e]),Ay({...te,delta:x,draggingRect:ve,pointerCoordinates:pe,scrollableAncestors:ue,scrollableAncestorRects:de});let De=(0,t.useMemo)(()=>({active:T,activeNode:R,activeNodeRect:B,activatorEvent:k,collisions:ye,containerNodeRect:ne,dragOverlay:ie,draggableNodes:b,droppableContainers:S,droppableRects:F,over:xe,measureDroppableContainers:I,scrollableAncestors:ue,scrollableAncestorRects:de,measuringConfiguration:P,measuringScheduled:L,windowRect:le}),[T,R,B,k,ye,ne,ie,b,S,F,xe,I,ue,de,P,L,le]),Oe=(0,t.useMemo)(()=>({activatorEvent:k,activators:Ee,active:T,activeNodeRect:B,ariaDescribedById:{draggable:M},dispatch:p,draggableNodes:b,over:xe,measureDroppableContainers:I}),[k,Ee,T,B,p,M,b,xe,I]);return t.default.createElement(dv.Provider,{value:h},t.default.createElement(lb.Provider,{value:Oe},t.default.createElement(ub.Provider,{value:De},t.default.createElement(_b.Provider,{value:Ce},o)),t.default.createElement(pb,{disabled:i?.restoreFocus===!1})),t.default.createElement(gv,{...i,hiddenTextDescribedById:M}));function ke(){let e=D?.autoScrollEnabled===!1,t=typeof a==`object`?a.enabled===!1:a===!1,n=v&&!e&&!t;return typeof a==`object`?{...a,enabled:n}:{enabled:n}}}),bb=(0,t.createContext)(null),xb=`button`,Sb=`Draggable`;function Cb(e){let{id:n,data:r,disabled:i=!1,attributes:a}=e,o=X_(Sb),{activators:s,activatorEvent:c,active:l,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:p}=(0,t.useContext)(lb),{role:m=xb,roleDescription:h=`draggable`,tabIndex:g=0}=a??{},_=l?.id===n,v=(0,t.useContext)(_?_b:bb),[y,b]=q_(),[x,S]=q_(),C=Zy(s,n),w=G_(r);return H_(()=>(f.set(n,{id:n,key:o,node:y,activatorNode:x,data:w}),()=>{let e=f.get(n);e&&e.key===o&&f.delete(n)}),[f,n]),{active:l,activatorEvent:c,activeNodeRect:u,attributes:(0,t.useMemo)(()=>({role:m,tabIndex:g,"aria-disabled":i,"aria-pressed":_&&m===xb?!0:void 0,"aria-roledescription":h,"aria-describedby":d.draggable}),[i,m,g,_,h,d.draggable]),isDragging:_,listeners:i?void 0:C,node:y,over:p,setNodeRef:b,setActivatorNodeRef:S,transform:v}}function wb(){return(0,t.useContext)(ub)}var Tb=`Droppable`,Eb={timeout:25};function Db(e){let{data:n,disabled:r=!1,id:i,resizeObserverConfig:a}=e,o=X_(Tb),{active:s,dispatch:c,over:l,measureDroppableContainers:u}=(0,t.useContext)(lb),d=(0,t.useRef)({disabled:r}),f=(0,t.useRef)(!1),p=(0,t.useRef)(null),m=(0,t.useRef)(null),{disabled:h,updateMeasurementsFor:g,timeout:_}={...Eb,...a},v=G_(g??i),y=Hy({callback:(0,t.useCallback)(()=>{f.current?(m.current!=null&&clearTimeout(m.current),m.current=setTimeout(()=>{u(Array.isArray(v.current)?v.current:[v.current]),m.current=null},_)):f.current=!0},[_]),disabled:h||!s}),[b,x]=q_((0,t.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),f.current=!1),e&&y.observe(e))},[y])),S=G_(n);return(0,t.useEffect)(()=>{y&&b.current&&(y.disconnect(),f.current=!1,y.observe(b.current))},[b,y]),(0,t.useEffect)(()=>(c({type:_v.RegisterDroppable,element:{id:i,key:o,disabled:r,node:b,rect:p,data:S}}),()=>c({type:_v.UnregisterDroppable,key:o,id:i})),[i]),(0,t.useEffect)(()=>{r!==d.current.disabled&&(c({type:_v.SetDroppableDisabled,id:i,key:o,disabled:r}),d.current.disabled=r)},[i,o,r,c]),{active:s,rect:p,isOver:l?.id===i,node:b,over:l,setNodeRef:x}}function Ob(e){let{animation:n,children:r}=e,[i,a]=(0,t.useState)(null),[o,s]=(0,t.useState)(null),c=J_(r);return!r&&!i&&c&&a(c),H_(()=>{if(!o)return;let e=i?.key,t=i?.props.id;e==null||t==null?a(null):Promise.resolve(n(t,o)).then(()=>{a(null)})},[n,i,o]),t.default.createElement(t.default.Fragment,null,r,i?(0,t.cloneElement)(i,{ref:s}):null)}var kb={x:0,y:0,scaleX:1,scaleY:1};function Ab(e){let{children:n}=e;return t.default.createElement(lb.Provider,{value:cb},t.default.createElement(_b.Provider,{value:kb},n))}var jb={position:`fixed`,touchAction:`none`},Mb=e=>tv(e)?`transform 250ms ease`:void 0,Nb=(0,t.forwardRef)((e,n)=>{let{as:r,activatorEvent:i,adjustScale:a,children:o,className:s,rect:c,style:l,transform:u,transition:d=Mb}=e;if(!c)return null;let f=a?u:{...u,scaleX:1,scaleY:1},p={...jb,width:c.width,height:c.height,top:c.top,left:c.left,transform:iv.Transform.toString(f),transformOrigin:a&&i?Cv(i,c):void 0,transition:typeof d==`function`?d(i):d,...l};return t.default.createElement(r,{className:s,style:p,ref:n},o)}),Pb={duration:250,easing:`ease`,keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:iv.Transform.toString(t)},{transform:iv.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:r}=t,i={},{styles:a,className:o}=e;if(a!=null&&a.active)for(let[e,t]of Object.entries(a.active))t!==void 0&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(a!=null&&a.dragOverlay)for(let[e,t]of Object.entries(a.dragOverlay))t!==void 0&&r.node.style.setProperty(e,t);return o!=null&&o.active&&n.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(let[e,t]of Object.entries(i))n.node.style.setProperty(e,t);o!=null&&o.active&&n.node.classList.remove(o.active)}})({styles:{active:{opacity:`0`}}})};function Fb(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return U_((e,a)=>{if(t===null)return;let o=n.get(e);if(!o)return;let s=o.node.current;if(!s)return;let c=tb(a);if(!c)return;let{transform:l}=L_(a).getComputedStyle(a),u=Lv(l);if(!u)return;let d=typeof t==`function`?t:Ib(t);return oy(s,i.draggable.measure),d({active:{id:e,data:o.data,node:s,rect:i.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:a,rect:i.dragOverlay.measure(c)},droppableContainers:r,measuringConfiguration:i,transform:u})})}function Ib(e){let{duration:t,easing:n,sideEffects:r,keyframes:i}={...Pb,...e};return e=>{let{active:a,dragOverlay:o,transform:s,...c}=e;if(!t)return;let l={x:o.rect.left-a.rect.left,y:o.rect.top-a.rect.top},u={scaleX:s.scaleX===1?1:a.rect.width*s.scaleX/o.rect.width,scaleY:s.scaleY===1?1:a.rect.height*s.scaleY/o.rect.height},d={x:s.x-l.x,y:s.y-l.y,...u},f=i({...c,active:a,dragOverlay:o,transform:{initial:s,final:d}}),[p]=f,m=f[f.length-1];if(JSON.stringify(p)===JSON.stringify(m))return;let h=r?.({active:a,dragOverlay:o,...c}),g=o.node.animate(f,{duration:t,easing:n,fill:`forwards`});return new Promise(e=>{g.onfinish=()=>{h?.(),e()}})}}var Lb=0;function Rb(e){return(0,t.useMemo)(()=>{if(e!=null)return Lb++,Lb},[e])}var zb=t.default.memo(e=>{let{adjustScale:n=!1,children:r,dropAnimation:i,style:a,transition:o,modifiers:s,wrapperElement:c=`div`,className:l,zIndex:u=999}=e,{activatorEvent:d,active:f,activeNodeRect:p,containerNodeRect:m,draggableNodes:h,droppableContainers:g,dragOverlay:_,over:v,measuringConfiguration:y,scrollableAncestors:b,scrollableAncestorRects:x,windowRect:S}=wb(),C=(0,t.useContext)(_b),w=Rb(f?.id),T=mb(s,{activatorEvent:d,active:f,activeNodeRect:p,containerNodeRect:m,draggingNodeRect:_.rect,over:v,overlayNodeRect:_.rect,scrollableAncestors:b,scrollableAncestorRects:x,transform:C,windowRect:S}),E=zy(p),D=Fb({config:i,draggableNodes:h,droppableContainers:g,measuringConfiguration:y}),O=E?_.setRef:void 0;return t.default.createElement(Ab,null,t.default.createElement(Ob,{animation:D},f&&w?t.default.createElement(Nb,{key:w,id:f.id,ref:O,as:c,activatorEvent:d,adjustScale:n,className:l,transition:o,rect:E,style:{zIndex:u,...a},transform:T},r):null))});function Bb(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function Vb(e,t){return e.reduce((e,n,r)=>{let i=t.get(n);return i&&(e[r]=i),e},Array(e.length))}function Hb(e){return e!==null&&e>=0}function Ub(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Wb(e){return typeof e==`boolean`?{draggable:e,droppable:e}:e}var Gb=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e,a=Bb(t,r,n),o=t[i],s=a[i];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},Kb=`Sortable`,qb=t.default.createContext({activeIndex:-1,containerId:Kb,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Gb,disabled:{draggable:!1,droppable:!1}});function Jb(e){let{children:n,id:r,items:i,strategy:a=Gb,disabled:o=!1}=e,{active:s,dragOverlay:c,droppableRects:l,over:u,measureDroppableContainers:d}=wb(),f=X_(Kb,r),p=c.rect!==null,m=(0,t.useMemo)(()=>i.map(e=>typeof e==`object`&&`id`in e?e.id:e),[i]),h=s!=null,g=s?m.indexOf(s.id):-1,_=u?m.indexOf(u.id):-1,v=(0,t.useRef)(m),y=!Ub(m,v.current),b=_!==-1&&g===-1||y,x=Wb(o);H_(()=>{y&&h&&d(m)},[y,m,h,d]),(0,t.useEffect)(()=>{v.current=m},[m]);let S=(0,t.useMemo)(()=>({activeIndex:g,containerId:f,disabled:x,disableTransforms:b,items:m,overIndex:_,useDragOverlay:p,sortedRects:Vb(m,l),strategy:a}),[g,f,x.draggable,x.droppable,b,m,_,l,p,a]);return t.default.createElement(qb.Provider,{value:S},n)}var Yb=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return Bb(n,r,i).indexOf(t)},Xb=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:a,newIndex:o,previousItems:s,previousContainerId:c,transition:l}=e;return!l||!r||s!==a&&i===o?!1:n?!0:o!==i&&t===c},Zb={duration:200,easing:`ease`},Qb=`transform`,$b=iv.Transition.toString({property:Qb,duration:0,easing:`linear`}),ex={roleDescription:`sortable`};function tx(e){let{disabled:n,index:r,node:i,rect:a}=e,[o,s]=(0,t.useState)(null),c=(0,t.useRef)(r);return H_(()=>{if(!n&&r!==c.current&&i.current){let e=a.current;if(e){let t=Bv(i.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&s(n)}}r!==c.current&&(c.current=r)},[n,r,i,a]),(0,t.useEffect)(()=>{o&&s(null)},[o]),o}function nx(e){let{animateLayoutChanges:n=Xb,attributes:r,disabled:i,data:a,getNewIndex:o=Yb,id:s,strategy:c,resizeObserverConfig:l,transition:u=Zb}=e,{items:d,containerId:f,activeIndex:p,disabled:m,disableTransforms:h,sortedRects:g,overIndex:_,useDragOverlay:v,strategy:y}=(0,t.useContext)(qb),b=rx(i,m),x=d.indexOf(s),S=(0,t.useMemo)(()=>({sortable:{containerId:f,index:x,items:d},...a}),[f,a,x,d]),C=(0,t.useMemo)(()=>d.slice(d.indexOf(s)),[d,s]),{rect:w,node:T,isOver:E,setNodeRef:D}=Db({id:s,data:S,disabled:b.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...l}}),{active:O,activatorEvent:k,activeNodeRect:A,attributes:j,setNodeRef:M,listeners:N,isDragging:P,over:F,setActivatorNodeRef:I,transform:L}=Cb({id:s,data:S,attributes:{...ex,...r},disabled:b.draggable}),R=N_(D,M),ee=!!O,te=ee&&!h&&Hb(p)&&Hb(_),z=!v&&P,B=te?(z&&te?L:null)??(c??y)({rects:g,activeNodeRect:A,activeIndex:p,overIndex:_,index:x}):null,ne=Hb(p)&&Hb(_)?o({id:s,items:d,activeIndex:p,overIndex:_}):x,re=O?.id,V=(0,t.useRef)({activeId:re,items:d,newIndex:ne,containerId:f}),ie=d!==V.current.items,ae=n({active:O,containerId:f,isDragging:P,isSorting:ee,id:s,index:x,items:d,newIndex:V.current.newIndex,previousItems:V.current.items,previousContainerId:V.current.containerId,transition:u,wasDragging:V.current.activeId!=null}),oe=tx({disabled:!ae,index:x,node:T,rect:w});return(0,t.useEffect)(()=>{ee&&V.current.newIndex!==ne&&(V.current.newIndex=ne),f!==V.current.containerId&&(V.current.containerId=f),d!==V.current.items&&(V.current.items=d)},[ee,ne,f,d]),(0,t.useEffect)(()=>{if(re===V.current.activeId)return;if(re!=null&&V.current.activeId==null){V.current.activeId=re;return}let e=setTimeout(()=>{V.current.activeId=re},50);return()=>clearTimeout(e)},[re]),{active:O,activeIndex:p,attributes:j,data:S,rect:w,index:x,newIndex:ne,items:d,isOver:E,isSorting:ee,isDragging:P,listeners:N,node:T,overIndex:_,over:F,setNodeRef:R,setActivatorNodeRef:I,setDroppableNodeRef:D,setDraggableNodeRef:M,transform:oe??B,transition:se()};function se(){if(oe||ie&&V.current.newIndex===x)return $b;if(!(z&&!tv(k)||!u)&&(ee||ae))return iv.Transition.toString({...u,property:Qb})}}function rx(e,t){return typeof e==`boolean`?{draggable:e,droppable:!1}:{draggable:e?.draggable??t.draggable,droppable:e?.droppable??t.droppable}}function ix(e){if(!e)return!1;let t=e.data.current;return!!(t&&`sortable`in t&&typeof t.sortable==`object`&&`containerId`in t.sortable&&`items`in t.sortable&&`index`in t.sortable)}var ax=[Q.Down,Q.Right,Q.Up,Q.Left],ox=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:a,over:o,scrollableAncestors:s}}=t;if(ax.includes(e.code)){if(e.preventDefault(),!n||!r)return;let t=[];a.getEnabled().forEach(n=>{if(!n||n!=null&&n.disabled)return;let a=i.get(n.id);if(a)switch(e.code){case Q.Down:r.top<a.top&&t.push(n);break;case Q.Up:r.top>a.top&&t.push(n);break;case Q.Left:r.left>a.left&&t.push(n);break;case Q.Right:r.left<a.left&&t.push(n)}});let c=Av({active:n,collisionRect:r,droppableRects:i,droppableContainers:t,pointerCoordinates:null}),l=Dv(c,`id`);if(l===o?.id&&c.length>1&&(l=c[1].id),l!=null){let e=a.get(n.id),t=a.get(l),o=t?i.get(t.id):null,c=t?.node.current;if(c&&o&&e&&t){let n=Gv(c).some((e,t)=>s[t]!==e),i=sx(e,t),a=cx(e,t),l=n||!i?{x:0,y:0}:{x:a?r.width-o.width:0,y:a?r.height-o.height:0},u={x:o.left,y:o.top};return l.x&&l.y?u:$_(u,l)}}}};function sx(e,t){return!ix(e)||!ix(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function cx(e,t){return!ix(e)||!ix(t)||!sx(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}function lx({item:e,index:t,renderItem:r,renderDragIndicator:i,keyExtractor:a,disabled:o=!1}){let{attributes:s,listeners:c,setNodeRef:l,transform:u,transition:d,isDragging:f}=nx({id:a(e),disabled:o}),p={transform:iv.Transform.toString(u),transition:d};return(0,n.jsxs)(`div`,{ref:l,style:p,className:`uhuu:relative uhuu:group/drag-item ${f?`uhuu:opacity-50`:``} ${o?`uhuu:opacity-60`:``}`,children:[r(e,t,f),!o&&(i?(0,n.jsx)(`div`,{...s,...c,children:i(e,t)}):(0,n.jsx)(`div`,{...s,...c,className:`uhuu:absolute uhuu:inset-0 uhuu:cursor-grab uhuu:active:cursor-grabbing uhuu:outline-none uhuu:touch-none`}))]})}function ux({item:e,index:t,renderItem:r}){return(0,n.jsx)(`div`,{className:`uhuu:rotate-2`,children:r(e,t,!0)})}function dx({items:e,onChange:t,renderItem:r,renderDragIndicator:i,keyExtractor:a,gridColsClass:o=`uhuu-page-drag-drop-grid-cols`,className:s=``,renderToolbar:c,renderEmptyState:l,showDebugInfo:u=!1,renderDragOverlay:d,isItemDisabled:f,canDropAt:m}){let[h,g]=(0,p.useState)(e);(0,p.useEffect)(()=>{g(e)},[e]);let[_,v]=(0,p.useState)(null),y=bv(yv(Sy),yv(_y,{coordinateGetter:ox})),b=e=>{let t=h.find(t=>a(t)===e.active.id);t&&f&&f(t)||v(e.active.id)},x=e=>{let{active:n,over:r}=e;if(!r||n.id===r.id){v(null);return}let i=h.find(e=>a(e)===n.id),o=h.findIndex(e=>a(e)===n.id),s=h.findIndex(e=>a(e)===r.id);if(i&&f&&f(i))v(null);else if(m&&!m(i,s,h))v(null);else{if(o!==-1&&s!==-1){let e=Bb(h,o,s);g(e),t(e)}v(null)}},S=h.find(e=>a(e)===_),C=S?h.findIndex(e=>a(e)===_):-1;return(0,n.jsxs)(`div`,{className:`uhuu:w-full ${s}`,children:[c&&(0,n.jsx)(`div`,{className:`uhuu:mb-6`,children:c()}),h.length===0&&l?l():(0,n.jsx)(`div`,{className:`uhuu:mb-6`,children:(0,n.jsxs)(yb,{sensors:y,collisionDetection:kv,onDragStart:b,onDragEnd:x,children:[(0,n.jsx)(Jb,{items:h.map(a),strategy:Gb,children:(0,n.jsx)(`div`,{className:o,children:h.map((e,t)=>(0,n.jsx)(lx,{item:e,index:t,renderItem:r,renderDragIndicator:i,keyExtractor:a,disabled:f?f(e):!1},a(e)))})}),(0,n.jsx)(zb,{children:S?d?(0,n.jsx)(`div`,{className:`uhuu:rotate-2 uhuu:shadow-lg`,children:d(S,C)}):(0,n.jsx)(ux,{item:S,index:C,renderItem:r}):null})]})}),u&&(0,n.jsxs)(`div`,{"data-uhuu-editor":!0,className:`uhuu:fixed uhuu:top-4 uhuu:left-4 uhuu:bg-(--uhuu-shell-surface) uhuu:rounded-lg uhuu:border uhuu:shadow-lg uhuu:p-3 uhuu:text-sm uhuu:max-w-xs`,children:[(0,n.jsx)(`div`,{className:`uhuu:font-medium uhuu:mb-1`,children:`Debug Info`}),(0,n.jsxs)(`div`,{className:`uhuu:text-gray-600 uhuu:text-xs`,children:[`Items: `,h.length,` | Active: `,_||`none`]}),(0,n.jsxs)(`div`,{className:`uhuu:text-xs uhuu:text-gray-500 uhuu:mt-1 uhuu:break-all`,children:[`Order: `,h.map((e,t)=>`${t+1}:${a(e).slice(0,3)}`).join(` → `)]})]})]})}var fx=Ca(`uhuu:inline-flex uhuu:items-center uhuu:rounded-md uhuu:border uhuu:px-2.5 uhuu:py-0.5 uhuu:text-xs uhuu:font-medium uhuu:transition-colors uhuu:focus:outline-none uhuu:focus:ring-2 uhuu:focus:ring-offset-2`,{variants:{variant:{default:`uhuu:border-transparent uhuu:bg-gray-900 uhuu:text-(--uhuu-shell-on-inverse)`,secondary:`uhuu:border-transparent uhuu:bg-gray-100 uhuu:text-gray-900`,outline:`uhuu:border-gray-300 uhuu:text-gray-900 uhuu:bg-(--uhuu-shell-surface)`}},defaultVariants:{variant:`default`}});function px({className:e,variant:t,...r}){return(0,n.jsx)(`div`,{className:G(fx({variant:t}),e),...r})}function mx({page:e,index:t,isDragging:r}){let{t:i,localize:a}=Hi(),o=e.strictPosition,s=o===`start`||o===`end`;return(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:justify-center uhuu:border uhuu:relative uhuu:rounded-lg uhuu:bg-(--uhuu-shell-surface) uhuu:overflow-hidden uhuu:transition-all ${r?`uhuu:opacity-50 uhuu:border-gray-400 uhuu:shadow-xl uhuu:scale-105`:s?`uhuu:border-gray-300 uhuu:bg-gray-50`:`uhuu:border-gray-200 uhuu:group-hover/drag-item:border-gray-300 uhuu:group-hover/drag-item:shadow-md`}`,children:[(0,n.jsx)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:justify-center`,style:{width:`200px`,height:`280px`},children:e.content||(0,n.jsxs)(`div`,{className:`uhuu:text-center uhuu:p-4`,children:[(0,n.jsx)(`div`,{className:`uhuu:text-sm uhuu:font-medium uhuu:text-gray-700`,children:a(e.label)||i(`page.fallbackName`,{number:t+1})}),(0,n.jsx)(`div`,{className:`uhuu:text-xs uhuu:text-gray-400 uhuu:mt-1 uhuu:font-mono`,children:e.id})]})}),(0,n.jsx)(`div`,{className:`uhuu:absolute uhuu:top-2 uhuu:left-2 uhuu:z-20`,children:(0,n.jsx)(px,{variant:`secondary`,className:`uhuu:text-xs uhuu:min-w-[24px] uhuu:h-6 uhuu:font-medium uhuu:bg-(--uhuu-shell-surface)/95 uhuu:backdrop-blur-sm uhuu:flex uhuu:items-center uhuu:justify-center uhuu:shadow-sm uhuu:border uhuu:border-gray-200 ${s?`uhuu:opacity-75`:``}`,children:s?(0,n.jsx)(Gr,{className:`uhuu:size-3 uhuu:text-gray-500`}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`span`,{className:`uhuu:group-hover/drag-item:hidden`,children:t+1}),(0,n.jsx)(Wr,{className:`uhuu:size-4 uhuu:text-gray-400 uhuu:hidden uhuu:group-hover/drag-item:block`})]})})})]})}function hx({open:e,onOpenChange:t,pages:r,onReorder:i,onRemove:a,renderThumbnail:o,pageComponents:s,payload:c,setup:l,title:u,description:d,gridColsClass:f=`uhuu-page-order-grid-cols`}){let m=Hi(),{t:h,localize:g}=m,_=g(u)??h(`reorderDialog.title`),v=g(d)??h(`reorderDialog.description`),[y,b]=p.useState(r),[x,S]=p.useState(!1),C=p.useCallback(e=>e.id,[]);p.useEffect(()=>{if(!e)b(r),S(!1);else if(!x)b(r);else{let e=new Set(y.map(C));(e.size!==r.length||r.some(t=>!e.has(C(t))))&&b(r)}},[r,e,x,y,C]);let w=e=>{b(e),S(!0)},T=()=>{i(y),S(!1),t(!1)},E=()=>{b(r),S(!1),t(!1)},D=p.useMemo(()=>(!o||typeof o!=`function`)&&s?j_({pageComponents:s,payload:c,setup:l,i18n:m}):null,[o,s,c,l,m]),O=(e,t,r)=>{let i=e.strictPosition,s=!!a&&i!==`start`&&i!==`end`,c=t=>{t.preventDefault(),t.stopPropagation(),a&&(a(e),b(t=>t.filter(t=>C(t)!==C(e))),S(!0))},l=o&&typeof o==`function`?o(e,t,r):D?D(e,t,r):(0,n.jsx)(mx,{page:e,index:t,isDragging:r});return(0,n.jsxs)(`div`,{className:`uhuu:relative uhuu:inline-block uhuu:align-top`,children:[l,s&&(0,n.jsxs)(`button`,{type:`button`,title:h(`reorderDialog.remove`),onClick:c,onPointerDown:e=>e.stopPropagation(),className:`uhuu:group/remove-btn uhuu:absolute uhuu:-top-3 uhuu:-right-3 uhuu:z-30 uhuu:hidden uhuu:h-6 uhuu:w-6 uhuu:items-center uhuu:justify-center uhuu:rounded-full uhuu:bg-(--uhuu-shell-surface)/50 uhuu:hover:bg-(--uhuu-shell-surface) uhuu:text-gray-900 uhuu:backdrop-blur-md uhuu:group-hover/drag-item:flex uhuu:border uhuu:border-gray-200`,children:[(0,n.jsx)(Wr,{className:`uhuu:size-3.5 uhuu:opacity-60 uhuu:group-hover/remove-btn:hidden`}),(0,n.jsx)(Yr,{className:`uhuu:size-3.5 uhuu:rotate-45 uhuu:hidden uhuu:group-hover/remove-btn:block`})]})]})},k=()=>(0,n.jsxs)(`div`,{className:`uhuu:text-center uhuu:py-20`,children:[(0,n.jsx)(`div`,{className:`uhuu:w-12 uhuu:h-12 uhuu:bg-gray-50 uhuu:rounded-lg uhuu:flex uhuu:items-center uhuu:justify-center uhuu:mx-auto uhuu:mb-3`,children:(0,n.jsx)(Fr,{className:`uhuu:w-6 uhuu:h-6 uhuu:text-gray-400`})}),(0,n.jsx)(`div`,{className:`uhuu:text-base uhuu:font-medium uhuu:text-gray-900 uhuu:mb-1`,children:h(`reorderDialog.emptyTitle`)}),(0,n.jsx)(`p`,{className:`uhuu:text-sm uhuu:text-gray-500`,children:h(`reorderDialog.emptyDescription`)})]}),A=p.useCallback(e=>{let t=e.strictPosition;return t===`start`||t===`end`},[]),j=p.useCallback((e,t,n)=>{let r=e.strictPosition;if(r===`start`||r===`end`)return!1;let i=-1,a=n.length;for(let e=0;e<n.length;e++){let t=n[e].strictPosition;t===`start`?i=e:t===`end`&&a===n.length&&(a=e)}return!(t<=i||t>=a)},[]);return(0,n.jsx)(C_,{open:e,onOpenChange:e=>{e||E()},children:(0,n.jsxs)(E_,{side:`bottom`,className:`uhuu:h-[90vh] uhuu:p-0 uhuu:gap-0 uhuu:w-full uhuu:max-w-none uhuu:flex uhuu:flex-col uhuu:[&>button]:hidden`,onPointerDownOutside:e=>{e.preventDefault()},onEscapeKeyDown:e=>{e.preventDefault()},"data-uhuu-editor":!0,children:[(0,n.jsx)(D_,{className:`uhuu:border-b uhuu:border-gray-200 uhuu:p-4`,children:(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:items-end uhuu:gap-3`,children:[(0,n.jsx)(`div`,{className:`uhuu:w-8 uhuu:h-8 uhuu:bg-gray-100 uhuu:rounded-full uhuu:flex uhuu:items-center uhuu:justify-center uhuu:shrink-0 uhuu:mb-0.5`,children:(0,n.jsx)(Fr,{className:`uhuu:w-4 uhuu:h-4`})}),(0,n.jsxs)(`div`,{className:`uhuu:flex-1`,children:[(0,n.jsx)(k_,{className:`uhuu:text-base uhuu:font-medium uhuu:text-gray-900 uhuu:leading-tight`,children:_}),(0,n.jsx)(A_,{className:`uhuu:text-xs uhuu:text-gray-400 uhuu:mt-0.5`,children:v})]}),(0,n.jsx)(px,{variant:`outline`,className:`uhuu:text-xs uhuu:mb-0.5 uhuu:mr-8`,children:h(`page.count`,{count:y.length})})]})}),(0,n.jsx)(`div`,{className:`uhuu:flex-1 uhuu:overflow-hidden uhuu:flex uhuu:flex-col`,children:(0,n.jsx)(`div`,{className:`uhuu:flex-1 uhuu:overflow-auto uhuu:p-6 uhuu:bg-gray-50`,children:(0,n.jsx)(dx,{items:y,onChange:w,renderItem:O,keyExtractor:C,renderEmptyState:k,gridColsClass:f,className:`uhuu:pb-4`,isItemDisabled:A,canDropAt:j})})}),(0,n.jsxs)(O_,{className:`uhuu:border-t uhuu:border-gray-200 uhuu:px-4 uhuu:py-3 uhuu:gap-3`,children:[(0,n.jsx)(Ta,{variant:`outline`,onClick:E,children:h(`reorderDialog.cancel`)}),(0,n.jsx)(Ta,{variant:`default`,onClick:T,disabled:!x,children:h(`reorderDialog.save`)})]})]})})}var gx=typeof window>`u`?p.useEffect:p.useLayoutEffect,_x=1e3,vx=new Set;function yx(e,t){return Array.from(e.querySelectorAll(t)).filter(e=>!e.closest(`[${De}]`))}function bx({pageKey:e,version:t,readiness:r,onMeasurement:i,onPrune:a,children:o}){let[s]=p.useState(()=>({mounted:!0})),c=p.useRef(null),[l,u]=p.useState(0),d=p.useCallback(()=>{u(e=>e+1);let e=!1;return()=>{e||(e=!0,u(e=>e-1))}},[]);gx(()=>(s.mounted=!0,()=>{s.mounted=!1}),[s]);let f=p.useCallback(()=>{let t=c.current;if(!s.mounted||!t)return;let n=new Set(yx(t,`[data-uhuu-flow="true"]`).map(e=>e.dataset.uhuuFlowId??``));a?.(e,n)},[s,e,a]);gx(()=>{f();let t=c.current;if(!t||yx(t,`[data-uhuu-flow-area]`).length){t?.removeAttribute(`data-uhuu-flow-error`);return}if(t.setAttribute(`data-uhuu-flow-error`,`missing-flow-region`),!L()||vx.has(e))return;let n=setTimeout(()=>{t.isConnected&&!yx(t,`[data-uhuu-flow-area]`).length&&(vx.add(e),console.warn(`[uhuu-components] Page "${e}" is marked hasFlow but renders no Static.FlowArea, so data-uhuu-pagination stays "measuring". Render a FlowArea with one Static.Flow in every branch (an empty Flow is one page), or remove hasFlow.`))},_x);return()=>clearTimeout(n)});let m=p.useCallback((t,n)=>i(e,t,n),[e,i]),h=p.useCallback(()=>f(),[f]),g=p.useMemo(()=>({mode:`measure`,pageIndex:0,measurementVersion:t,pageKey:e,readiness:r,registerMeasurement:m,unregisterMeasurement:h,requestContinuation:d}),[t,e,r,m,h,d]),_=p.useMemo(()=>({mode:`measure`,pageIndex:1,measurementVersion:t,pageKey:e,copy:`continuation`}),[t,e]);return(0,n.jsxs)(`div`,{ref:c,style:{position:`fixed`,visibility:`hidden`,pointerEvents:`none`,left:`-100000px`,top:0,width:`calc(var(--uhuu-page-width) + 2 * var(--uhuu-page-bleed))`,height:`calc(var(--uhuu-page-height) + 2 * var(--uhuu-page-bleed))`,minWidth:`calc(var(--uhuu-page-width) + 2 * var(--uhuu-page-bleed))`,minHeight:`calc(var(--uhuu-page-height) + 2 * var(--uhuu-page-bleed))`,overflow:`hidden`,zIndex:-1},"aria-hidden":`true`,"data-uhuu-flow-measurement":`true`,children:[o(g),l>0&&(0,n.jsx)(`div`,{"data-uhuu-flow-continuation-copy":`true`,children:o(_)})]})}function xx({pageId:e,templateId:t,componentKey:r,component:i,payload:a,pagePayload:o,integration:s,page:c,parentGroup:l,setup:u,reference:d,overlay:f,className:m,pageNo:h=0,totalPages:g,measurementPageNo:_,measurementTotalPages:v,dataBinding:y,flowPageIndex:b=0,flowChunksByFlowId:x,measureFlow:S=!1,flowMeasurementKey:C,flowMeasurementVersion:w,flowReadiness:T,onFlowMeasurement:E,onFlowPrune:D,renderVisible:O=!0,renderMode:k=`sheet`,spread:A}){let j=typeof f==`function`?t=>f({pageNo:t,pageId:e}):()=>f,M=r||t||e,N=[M?`uhuu-page--${M}`:``,m].filter(Boolean).join(` `),P=(u=h,d=g,f=c)=>i?(0,n.jsx)(i,{payload:a,pagePayload:o,integration:s,pageId:e,templateId:t??r??e,pageNum:u,totalPages:d,page:f,parentGroup:l,componentKey:r,dataBinding:y,spread:A}):null,L=p.useMemo(()=>({mode:`visible`,pageIndex:b,chunksByFlowId:x}),[b,x]),R=p.useMemo(()=>c&&{first:{...c,virtualPageIndex:0,virtualPageCount:1},continuation:{...c,virtualPageIndex:1,virtualPageCount:2}},[c]);return k===`content`?(0,n.jsxs)(n.Fragment,{children:[d,(0,n.jsx)(Oe.Provider,{value:L,children:P(h,g)})]}):(0,n.jsxs)(n.Fragment,{children:[S&&E&&C&&(0,n.jsx)(bx,{pageKey:C,version:w,readiness:T,onMeasurement:E,onPrune:D,children:e=>{let t=e.copy===`continuation`,r=_??h,i=v??g;return(0,n.jsx)(F,{setup:u,children:(0,n.jsx)(I,{className:N,pageNo:h,"data-page-key":M,children:(0,n.jsx)(Oe.Provider,{value:e,children:t?P(r+1,i===void 0?void 0:i+1,R?.continuation):P(r,i,R?.first)})})})}}),O&&(0,n.jsx)(F,{setup:u,children:(0,n.jsxs)(I,{className:N,pageNo:h,overlay:({pageNo:e})=>j(e),"data-page-key":M,children:[d,(0,n.jsx)(Oe.Provider,{value:L,children:P(h,g)})]})})]})}var Sx=p.forwardRef(({className:e,children:t,...r},i)=>(0,n.jsx)(`select`,{className:G(`uhuu:flex uhuu:h-8 uhuu:w-full uhuu:rounded-md uhuu:border uhuu:border-gray-200 uhuu:bg-(--uhuu-shell-surface) uhuu:px-2.5 uhuu:py-1 uhuu:text-sm uhuu:text-gray-900 uhuu:outline-none uhuu:transition-colors uhuu:focus:border-gray-400 uhuu:focus:ring-2 uhuu:focus:ring-gray-200 uhuu:focus:ring-offset-0 uhuu:disabled:cursor-not-allowed uhuu:disabled:opacity-50`,e),ref:i,...r,children:t}));Sx.displayName=`Select`;var Cx=Object.defineProperty,wx=(e,t)=>Cx(e,`name`,{value:t,configurable:!0}),Tx=`Switch`,[Ex,Dx]=Ba(Tx),[Ox,kx]=Ex(Tx);function Ax(e){let{__scopeSwitch:t,checked:r,children:i,defaultChecked:a,disabled:o,form:s,name:c,onCheckedChange:l,required:u,value:d=`on`,internal_do_not_use_render:f}=e,[m,h]=Za({prop:r,defaultProp:a??!1,onChange:l,caller:Tx}),[g,_]=p.useState(null),[v,y]=p.useState(null),b=p.useRef(!1),[x,S]=p.useReducer(e=>e+1,0),C={checked:m,setChecked:h,disabled:o,control:g,setControl:_,name:c,form:s,value:d,hasConsumerStoppedPropagationRef:b,userInteractionCount:x,onUserInteraction:S,required:u,defaultChecked:a,isFormControl:!g||!!s||!!g.closest(`form`),bubbleInput:v,setBubbleInput:y};return(0,n.jsx)(Ox,{scope:t,...C,children:Rx(f)?f(C):i})}wx(Ax,`SwitchProvider`);var jx=`SwitchTrigger`,Mx=p.forwardRef(wx(function({__scopeSwitch:e,onClick:t,...r},i){let{control:a,form:o,value:s,disabled:c,checked:l,required:u,setControl:d,setChecked:f,hasConsumerStoppedPropagationRef:m,onUserInteraction:h,isFormControl:g,bubbleInput:_}=kx(jx,e),v=q(i,d),y=p.useRef(l);return p.useEffect(()=>{let e=o?a?.ownerDocument.getElementById(o):a?.form;if(e instanceof HTMLFormElement){let t=wx(()=>f(y.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,o,f]),(0,n.jsx)(J.button,{type:`button`,role:`switch`,"aria-checked":l,"aria-required":u,"data-state":zx(l),"data-disabled":c?``:void 0,disabled:c,value:s,...r,ref:v,onClick:K(t,e=>{h(),f(e=>!e),_&&g&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})},`SwitchTrigger`)),Nx=p.forwardRef(wx(function(e,t){let{__scopeSwitch:r,name:i,checked:a,defaultChecked:o,required:s,disabled:c,value:l,onCheckedChange:u,form:d,...f}=e;return(0,n.jsx)(Ax,{__scopeSwitch:r,checked:a,defaultChecked:o,disabled:c,required:s,onCheckedChange:u,name:i,form:d,value:l,internal_do_not_use_render:({isFormControl:e})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Mx,{...f,ref:t,__scopeSwitch:r}),e&&(0,n.jsx)(Lx,{__scopeSwitch:r})]})})},`Switch`)),Px=`SwitchThumb`,Fx=p.forwardRef(wx(function(e,t){let{__scopeSwitch:r,...i}=e,a=kx(Px,r);return(0,n.jsx)(J.span,{"data-state":zx(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t})},`SwitchThumb`)),Ix=`SwitchBubbleInput`,Lx=p.forwardRef(wx(function({__scopeSwitch:e,onClick:t,...r},i){let{control:a,hasConsumerStoppedPropagationRef:o,userInteractionCount:s,checked:c,defaultChecked:l,required:u,disabled:d,name:f,value:m,form:h,bubbleInput:g,setBubbleInput:_}=kx(Ix,e),v=q(i,_),y=Yl(a),b=p.useRef(!1),x=p.useRef(c),S=p.useRef(s);p.useEffect(()=>{let e=g;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=s!==S.current;S.current=s;let i=x.current!==c;x.current=c;let a=!(r&&o.current);if(i&&n){b.current=!r;let t=new Event(`click`,{bubbles:a});n.call(e,c),e.dispatchEvent(t),b.current=!1}},[g,c,o,s]);let C=p.useRef(c);return(0,n.jsx)(J.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:l??C.current,required:u,disabled:d,name:f,value:m,form:h,...r,tabIndex:-1,ref:v,onClick:K(t,e=>{b.current&&e.stopPropagation()}),style:{...r.style,...y,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})},`SwitchBubbleInput`));function Rx(e){return typeof e==`function`}wx(Rx,`isFunction`);function zx(e){return e?`checked`:`unchecked`}wx(zx,`getState`);var Bx=p.forwardRef(({className:e,...t},r)=>(0,n.jsx)(Nx,{ref:r,className:G(`uhuu:peer uhuu:inline-flex uhuu:h-5 uhuu:w-9 uhuu:shrink-0 uhuu:cursor-pointer uhuu:items-center uhuu:rounded-full uhuu:border-2 uhuu:border-transparent uhuu:bg-gray-200 uhuu:transition-colors uhuu:focus-visible:outline-none uhuu:focus-visible:ring-2 uhuu:focus-visible:ring-gray-400 uhuu:focus-visible:ring-offset-2 uhuu:focus-visible:ring-offset-(--uhuu-shell-surface) uhuu:disabled:cursor-not-allowed uhuu:disabled:opacity-50 uhuu:data-[state=checked]:bg-gray-900 uhuu:data-[state=unchecked]:bg-gray-200`,e),...t,children:(0,n.jsx)(Fx,{className:G(`uhuu:pointer-events-none uhuu:block uhuu:h-4 uhuu:w-4 uhuu:rounded-full uhuu:bg-white uhuu:shadow-lg uhuu:ring-0 uhuu:data-[state=checked]:bg-(--uhuu-shell-on-inverse) uhuu:transition-transform uhuu:data-[state=checked]:translate-x-4 uhuu:data-[state=unchecked]:translate-x-0`)})}));Bx.displayName=Nx.displayName;var Vx=Object.defineProperty,Hx=(e,t)=>Vx(e,`name`,{value:t,configurable:!0});function Ux(e,[t,n]){return Math.min(n,Math.max(t,e))}Hx(Ux,`clamp`);var Wx=Object.defineProperty,Gx=(e,t)=>Wx(e,`name`,{value:t,configurable:!0});function Kx(e){let t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}Gx(Kx,`usePrevious`);var qx=Object.defineProperty,$=(e,t)=>qx(e,`name`,{value:t,configurable:!0}),Jx={Vertical:`vertical`,Horizontal:`horizontal`},Yx={LTR:`ltr`,RTL:`rtl`},Xx=[`PageUp`,`PageDown`],Zx=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],Qx={"from-left":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-right":[`Home`,`PageDown`,`ArrowDown`,`ArrowRight`],"from-bottom":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-top":[`Home`,`PageDown`,`ArrowUp`,`ArrowLeft`]},$x=`Slider`,[eS,tS,nS]=wo($x),[rS,iS]=Ba($x,[nS]),[aS,oS]=rS($x),sS=p.forwardRef($(function(e,t){let{name:r,min:i=0,max:a=100,step:o=1,orientation:s=Jx.Horizontal,disabled:c=!1,minStepsBetweenThumbs:l=0,preserveThumbOrder:u=!1,defaultValue:d=[i],value:f,onValueChange:m=$(()=>{},`onValueChange`),onValueCommit:h=$(()=>{},`onValueCommit`),inverted:g=!1,form:_,...v}=e,y=p.useRef(new Set),b=p.useRef(0),x=p.useRef(!1),S=s===Jx.Horizontal?uS:dS,[C,w]=p.useState(null),T=q(t,w),[E=[],D]=Za({prop:f,defaultProp:d,onChange:$(e=>{[...y.current][b.current]?.focus({preventScroll:!0,focusVisible:x.current}),x.current=!1,m(e)},`onChange`)}),O=p.useRef(E),k=p.useRef(E);p.useEffect(()=>{let e=_?C?.ownerDocument.getElementById(_):C?.closest(`form`);if(e instanceof HTMLFormElement){let t=$(()=>D(k.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[C,_,D]);function A(e){N(e,kS(E,e))}$(A,`handleSlideStart`);function j(e){N(e,b.current)}$(j,`handleSlideMove`);function M(){String(E)!==String(O.current)&&h(E)}$(M,`handleSlideEnd`);function N(e,t,{commit:n}={commit:!1}){let r=PS(o),s=Ux(FS(Math.round((e-i)/o)*o+i,r),[i,a]);D((e=[])=>{let r=l*o,c=u?Ux(s,[e[t-1]===void 0?i:e[t-1]+r,e[t+1]===void 0?a:e[t+1]-r]):s,d=ES(e,c,t);if(MS(d,r)){b.current=u?t:d.indexOf(c);let r=String(d)!==String(e);return r&&n&&h(d),r?d:e}return e})}return $(N,`updateValues`),(0,n.jsx)(aS,{scope:e.__scopeSlider,name:r,disabled:c,min:i,max:a,valueIndexToChangeRef:b,thumbs:y.current,values:E,orientation:s,form:_,children:(0,n.jsx)(eS.Provider,{scope:e.__scopeSlider,children:(0,n.jsx)(eS.Slot,{scope:e.__scopeSlider,children:(0,n.jsx)(S,{"aria-disabled":c,"data-disabled":c?``:void 0,...v,ref:T,onPointerDown:K(v.onPointerDown,()=>{c||(O.current=E,x.current=!1)}),min:i,max:a,inverted:g,onSlideStart:c?void 0:A,onSlideMove:c?void 0:j,onSlideEnd:c?void 0:M,onHomeKeyDown:()=>{c||(x.current=!0,N(i,0,{commit:!0}))},onEndKeyDown:()=>{c||(x.current=!0,N(a,E.length-1,{commit:!0}))},onStepKeyDown:({event:e,direction:t})=>{if(!c){x.current=!0;let n=Xx.includes(e.key)||e.shiftKey&&Zx.includes(e.key)?10:1,r=b.current,a=E[r];N(IS(a,{min:i,step:o,direction:t,multiplier:n}),r,{commit:!0})}}})})})})},`Slider`)),[cS,lS]=rS($x,{startEdge:`left`,endEdge:`right`,size:`width`,direction:1}),uS=p.forwardRef($(function(e,t){let{min:r,max:i,dir:a,inverted:o,onSlideStart:s,onSlideMove:c,onSlideEnd:l,onStepKeyDown:u,...d}=e,[f,m]=p.useState(null),h=q(t,m),g=p.useRef(void 0),_=zo(a),v=_===Yx.LTR,y=v&&!o||!v&&o;function b(e){let t=g.current||f.getBoundingClientRect(),n=NS([0,t.width],y?[r,i]:[i,r]);return g.current=t,n(e-t.left)}return $(b,`getValueFromPointer`),(0,n.jsx)(cS,{scope:e.__scopeSlider,startEdge:y?`left`:`right`,endEdge:y?`right`:`left`,direction:y?1:-1,size:`width`,children:(0,n.jsx)(fS,{dir:_,"data-orientation":`horizontal`,...d,ref:h,style:{...d.style,"--radix-slider-thumb-transform":`translateX(-50%)`},onSlideStart:e=>{let t=b(e.clientX);s?.(t)},onSlideMove:e=>{let t=b(e.clientX);c?.(t)},onSlideEnd:()=>{g.current=void 0,l?.()},onStepKeyDown:e=>{let t=Qx[y?`from-left`:`from-right`].includes(e.key);u?.({event:e,direction:t?-1:1})}})})},`SliderHorizontal`)),dS=p.forwardRef($(function(e,t){let{min:r,max:i,inverted:a,onSlideStart:o,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...u}=e,d=p.useRef(null),f=q(t,d),m=p.useRef(void 0),h=!a;function g(e){let t=m.current||d.current.getBoundingClientRect(),n=NS([0,t.height],h?[i,r]:[r,i]);return m.current=t,n(e-t.top)}return $(g,`getValueFromPointer`),(0,n.jsx)(cS,{scope:e.__scopeSlider,startEdge:h?`bottom`:`top`,endEdge:h?`top`:`bottom`,size:`height`,direction:h?1:-1,children:(0,n.jsx)(fS,{"data-orientation":`vertical`,...u,ref:f,style:{...u.style,"--radix-slider-thumb-transform":`translateY(50%)`},onSlideStart:e=>{let t=g(e.clientY);o?.(t)},onSlideMove:e=>{let t=g(e.clientY);s?.(t)},onSlideEnd:()=>{m.current=void 0,c?.()},onStepKeyDown:e=>{let t=Qx[h?`from-bottom`:`from-top`].includes(e.key);l?.({event:e,direction:t?-1:1})}})})},`SliderVertical`)),fS=p.forwardRef($(function(e,t){let{__scopeSlider:r,onSlideStart:i,onSlideMove:a,onSlideEnd:o,onHomeKeyDown:s,onEndKeyDown:c,onStepKeyDown:l,...u}=e,d=oS($x,r);return(0,n.jsx)(J.span,{...u,ref:t,onKeyDown:K(e.onKeyDown,e=>{e.key===`Home`?(s(e),e.preventDefault()):e.key===`End`?(c(e),e.preventDefault()):Xx.concat(Zx).includes(e.key)&&(l(e),e.preventDefault())}),onPointerDown:K(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus({preventScroll:!0,focusVisible:!1}):i(e)}),onPointerMove:K(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&a(e)}),onPointerUp:K(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),o(e))})})},`SliderImpl`)),pS=`SliderTrack`,mS=p.forwardRef($(function(e,t){let{__scopeSlider:r,...i}=e,a=oS(pS,r);return(0,n.jsx)(J.span,{"data-disabled":a.disabled?``:void 0,"data-orientation":a.orientation,...i,ref:t})},`SliderTrack`)),hS=`SliderRange`,gS=p.forwardRef($(function(e,t){let{__scopeSlider:r,...i}=e,a=oS(hS,r),o=lS(hS,r),s=q(t,p.useRef(null)),c=a.values.length,l=a.values.map(e=>DS(e,a.min,a.max)),u=c>1?Math.min(...l):0,d=100-Math.max(...l);return(0,n.jsx)(J.span,{"data-orientation":a.orientation,"data-disabled":a.disabled?``:void 0,...i,ref:s,style:{...e.style,[o.startEdge]:u+`%`,[o.endEdge]:d+`%`}})},`SliderRange`)),[_S,vS]=rS(`SliderThumb`),yS=`SliderThumbProvider`;function bS(e){let{__scopeSlider:t,name:r,children:i,internal_do_not_use_render:a}=e,o=oS(yS,t),s=tS(t),[c,l]=p.useState(null),u=p.useMemo(()=>c?s().findIndex(e=>e.ref.current===c):-1,[s,c]),d=Yl(c),f=!c||!!o.form||!!c.closest(`form`),m=o.values[u],h=r??(o.name?o.name+(o.values.length>1?`[]`:``):void 0),g=m===void 0?0:DS(m,o.min,o.max);p.useEffect(()=>{if(c)return o.thumbs.add(c),()=>{o.thumbs.delete(c)}},[c,o.thumbs]);let _={value:m,name:h,form:o.form,isFormControl:f,index:u,thumb:c,onThumbChange:l,percent:g,size:d};return(0,n.jsx)(_S,{scope:t,..._,children:LS(a)?a(_):i})}$(bS,`SliderThumbProvider`);var xS=`SliderThumbTrigger`,SS=p.forwardRef($(function(e,t){let{__scopeSlider:r,...i}=e,a=oS(xS,r),o=lS(xS,r),{index:s,value:c,percent:l,size:u,onThumbChange:d}=vS(xS,r),f=q(t,d),p=OS(s,a.values.length),m=u?.[o.size],h=m?AS(m,l,o.direction):0;return(0,n.jsx)(`span`,{style:{transform:`var(--radix-slider-thumb-transform)`,position:`absolute`,[o.startEdge]:`calc(${l}% + ${h}px)`},children:(0,n.jsx)(eS.ItemSlot,{scope:r,children:(0,n.jsx)(J.span,{role:`slider`,"aria-label":e[`aria-label`]||p,"aria-valuemin":a.min,"aria-valuenow":c,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?``:void 0,tabIndex:a.disabled?void 0:0,...i,ref:f,style:c===void 0?{display:`none`}:e.style,onFocus:K(e.onFocus,()=>{a.valueIndexToChangeRef.current=s})})})})},`SliderThumbTrigger`)),CS=p.forwardRef($(function(e,t){let{__scopeSlider:r,name:i,...a}=e;return(0,n.jsx)(bS,{__scopeSlider:r,name:i,internal_do_not_use_render:({index:e,isFormControl:i})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(SS,{...a,ref:t,__scopeSlider:r}),i?(0,n.jsx)(TS,{__scopeSlider:r},e):null]})})},`SliderThumb`)),wS=`SliderBubbleInput`,TS=p.forwardRef($(function({__scopeSlider:e,...t},r){let{value:i,name:a,form:o}=vS(wS,e),s=p.useRef(null),c=q(s,r),l=Kx(i);return p.useEffect(()=>{let e=s.current;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(l!==i&&n){let t=new Event(`input`,{bubbles:!0});n.call(e,i),e.dispatchEvent(t)}},[l,i]),(0,n.jsx)(J.input,{style:{display:`none`},name:a,form:o,...t,ref:c,defaultValue:i})},`SliderBubbleInput`));function ES(e=[],t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}$(ES,`getNextSortedValues`);function DS(e,t,n){return Ux(100/(n-t)*(e-t),[0,100])}$(DS,`convertValueToPercentage`);function OS(e,t){if(t>2)return`Value ${e+1} of ${t}`;if(t===2)return[`Minimum`,`Maximum`][e]}$(OS,`getLabel`);function kS(e,t){if(e.length===1)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}$(kS,`getClosestValueIndex`);function AS(e,t,n){let r=e/2;return(r-NS([0,50],[0,r])(t)*n)*n}$(AS,`getThumbInBoundsOffset`);function jS(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}$(jS,`getStepsBetweenValues`);function MS(e,t){if(t>0){let n=jS(e);return Math.min(...n)>=t}return!0}$(MS,`hasMinStepsBetweenValues`);function NS(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}$(NS,`linearScale`);function PS(e){if(!Number.isFinite(e))return 0;let t=e.toString();if(t.includes(`e`)){let[e,n]=t.split(`e`),r=e.split(`.`)[1]||``,i=Number(n);return Math.max(0,r.length-i)}let n=t.split(`.`)[1];return n?n.length:0}$(PS,`getDecimalCount`);function FS(e,t){let n=10**t;return Math.round(e*n)/n}$(FS,`roundValue`);function IS(e,{min:t,step:n,direction:r,multiplier:i}){let a=PS(n),o=(e-t)/n,s=Math.round(o),c=FS(s*n+t,a)===FS(e,a),l;return l=c?s+i*r:r>0?Math.ceil(o):Math.floor(o),FS(l*n+t,a)}$(IS,`getNextStepValue`);function LS(e){return typeof e==`function`}$(LS,`isFunction`);var RS=p.forwardRef(({className:e,...t},r)=>(0,n.jsxs)(sS,{ref:r,className:G(`uhuu:relative uhuu:flex uhuu:w-full uhuu:touch-none uhuu:select-none uhuu:items-center uhuu:data-[disabled]:opacity-50`,e),...t,children:[(0,n.jsx)(mS,{className:`uhuu:relative uhuu:h-1.5 uhuu:w-full uhuu:grow uhuu:overflow-hidden uhuu:rounded-full uhuu:bg-gray-200`,children:(0,n.jsx)(gS,{className:`uhuu:absolute uhuu:h-full uhuu:bg-gray-900`})}),(0,n.jsx)(CS,{className:`uhuu:block uhuu:h-4 uhuu:w-4 uhuu:rounded-full uhuu:border-2 uhuu:border-gray-900 uhuu:bg-(--uhuu-shell-surface) uhuu:shadow uhuu:transition-colors uhuu:focus-visible:outline-none uhuu:focus-visible:ring-2 uhuu:focus-visible:ring-gray-400 uhuu:focus-visible:ring-offset-2 uhuu:disabled:pointer-events-none uhuu:disabled:opacity-50`})]}));RS.displayName=sS.displayName;var zS=Object.defineProperty,BS=p.forwardRef(((e,t)=>zS(e,`name`,{value:t,configurable:!0}))(function(e,t){return(0,n.jsx)(J.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},`Label`)),VS=p.forwardRef(({className:e,...t},r)=>(0,n.jsx)(BS,{ref:r,className:G(`uhuu:text-sm uhuu:font-medium uhuu:leading-none uhuu:text-gray-700 uhuu:peer-disabled:cursor-not-allowed uhuu:peer-disabled:opacity-70`,e),...t}));VS.displayName=BS.displayName;function HS(e,t){let n=(e,t)=>!e.appliesTo||(Array.isArray(e.appliesTo)?e.appliesTo:[e.appliesTo]).some(e=>typeof e==`function`?e(t):e===t.id||e===t.templateId||t.componentKey===e);return e.filter(e=>{if(!n(e,t))return!1;let r=e.getValue(t);return e.type===`select`||e.type===`color-series`?r!==``:!0})}function US({pageOptions:e,targetItem:t,onChange:r}){let{localize:i}=Hi(),a=HS(e,t),o=e=>{let a=e.getValue(t),o=i(e.label);switch(e.type){case`select`:return(0,n.jsxs)(`div`,{className:`uhuu:space-y-1.5`,children:[(0,n.jsx)(VS,{htmlFor:e.id,className:`uhuu:text-xs uhuu:font-medium uhuu:text-gray-500`,children:o}),(0,n.jsx)(Sx,{id:e.id,value:String(a),onChange:n=>r(e,t,n.target.value),className:`uhuu:w-full uhuu:text-sm`,children:e.options.map(e=>(0,n.jsx)(`option`,{value:e.value,children:i(e.label)},e.value))})]},e.id);case`toggle`:{let i=typeof a==`boolean`?a:a===`true`;return(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:justify-between uhuu:py-1.5`,children:[(0,n.jsx)(VS,{htmlFor:e.id,className:`uhuu:text-xs uhuu:font-medium uhuu:text-gray-500`,children:o}),(0,n.jsx)(Bx,{id:e.id,checked:i,onCheckedChange:n=>r(e,t,String(n))})]},e.id)}case`slider`:{let i=typeof a==`number`?a:Number(a)||e.min;return(0,n.jsxs)(`div`,{className:`uhuu:space-y-1.5`,children:[(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:justify-between`,children:[(0,n.jsx)(VS,{htmlFor:e.id,className:`uhuu:text-xs uhuu:font-medium uhuu:text-gray-500`,children:o}),(0,n.jsx)(`span`,{className:`uhuu:text-xs uhuu:font-mono uhuu:tabular-nums uhuu:text-gray-700`,children:i})]}),(0,n.jsx)(RS,{id:e.id,min:e.min,max:e.max,step:e.step,value:[i],onValueChange:n=>r(e,t,String(n[0]))})]},e.id)}case`counter`:{let i=typeof a==`number`?a:Number(a)||e.min;return(0,n.jsxs)(`div`,{className:`uhuu:space-y-1.5`,children:[(0,n.jsx)(VS,{className:`uhuu:text-xs uhuu:font-medium uhuu:text-gray-500`,children:o}),(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:gap-2`,children:[(0,n.jsx)(Ta,{variant:`outline`,size:`sm`,className:`uhuu:h-8 uhuu:w-8 uhuu:shrink-0 uhuu:p-0`,onClick:()=>{let n=Math.max(e.min,i-e.step);r(e,t,String(n))},disabled:i<=e.min,type:`button`,children:(0,n.jsx)(qr,{className:`uhuu:h-3.5 uhuu:w-3.5`})}),(0,n.jsx)(`div`,{className:`uhuu:flex-1 uhuu:text-center uhuu:px-3 uhuu:py-1.5 uhuu:bg-gray-50 uhuu:rounded-md uhuu:border uhuu:border-gray-200`,children:(0,n.jsx)(`span`,{className:`uhuu:text-sm uhuu:font-mono uhuu:tabular-nums uhuu:font-medium uhuu:text-gray-900`,children:i})}),(0,n.jsx)(Ta,{variant:`outline`,size:`sm`,className:`uhuu:h-8 uhuu:w-8 uhuu:shrink-0 uhuu:p-0`,onClick:()=>{let n=Math.min(e.max,i+e.step);r(e,t,String(n))},disabled:i>=e.max,type:`button`,children:(0,n.jsx)(Yr,{className:`uhuu:h-3.5 uhuu:w-3.5`})})]})]},e.id)}case`color-series`:{let s=String(a);return(0,n.jsxs)(`div`,{className:`uhuu:space-y-1.5`,children:[(0,n.jsx)(VS,{className:`uhuu:text-xs uhuu:font-medium uhuu:text-gray-500`,children:o}),(0,n.jsx)(`div`,{className:`uhuu:flex uhuu:flex-wrap uhuu:gap-1.5`,children:e.options.map(a=>{let o=s===a.value,c=i(a.label)??a.value;return(0,n.jsx)(`button`,{onClick:()=>r(e,t,a.value),className:`uhuu:h-7 uhuu:w-7 uhuu:rounded-md uhuu:border-2 uhuu:transition-all uhuu:flex uhuu:items-center uhuu:justify-center ${o?`uhuu:border-gray-900 uhuu:scale-110`:`uhuu:border-gray-200 uhuu:hover:border-gray-400 uhuu:hover:scale-105`}`,style:{backgroundColor:a.hex||a.value},type:`button`,title:`${c}${a.hex?` (${a.hex})`:``}`,children:o&&(0,n.jsx)(Rr,{className:`uhuu:h-4 uhuu:w-4 uhuu:text-white uhuu:drop-shadow-[0_1px_2px_rgba(0,0,0,0.8)]`,strokeWidth:3})},a.value)})})]},e.id)}default:return console.warn(`Unknown option type: ${e.type}`),null}};return(0,n.jsx)(`div`,{className:`uhuu:space-y-3`,children:a.map(e=>o(e))})}function WS({pageOptions:e,targetItem:t,onChange:r,title:i,triggerClassName:a}){let{t:o}=Hi(),s=i??o(`page.optionsMenu`);return!t||HS(e,t).length===0?null:(0,n.jsxs)(em,{modal:!1,children:[(0,n.jsx)(tm,{asChild:!0,className:a||`uhuu-page-options-trigger`,children:(0,n.jsxs)(Ta,{variant:`ghost`,size:`sm`,className:`uhuu:h-7 uhuu:w-7 uhuu:text-gray-400 uhuu:hover:text-gray-600 uhuu:border uhuu:border-transparent uhuu:hover:border-gray-200 uhuu:rounded-md`,title:s,children:[(0,n.jsx)(Ur,{className:`uhuu:w-3.5 uhuu:h-3.5`}),(0,n.jsx)(`span`,{className:`uhuu:sr-only`,children:s})]})}),(0,n.jsx)(am,{className:`uhuu:min-w-48 uhuu:p-3`,align:`center`,children:(0,n.jsx)(US,{pageOptions:e,targetItem:t,onChange:r})})]})}function GS({name:e,canRename:t,canMoveUp:r,canMoveDown:i,canAddPage:a,canDuplicate:o,canDelete:s,onRename:c,onMoveUp:l,onMoveDown:u,onAddPage:d,onDuplicate:f,onDelete:m}){let{t:h}=Hi(),[g,_]=(0,p.useState)(!1),[v,y]=(0,p.useState)(!1),[b,x]=(0,p.useState)(e),S=(0,p.useRef)(null);(0,p.useEffect)(()=>{x(e)},[e]),(0,p.useEffect)(()=>{v&&setTimeout(()=>{S.current?.focus(),S.current?.select()},10)},[v]);let C=()=>{let t=b.trim();t&&t!==e&&c?.(t),y(!1)},w=r||i||a||o||s;return v?(0,n.jsx)(`input`,{ref:S,value:b,onChange:e=>x(e.target.value),onKeyDown:t=>{t.key===`Enter`&&C(),t.key===`Escape`&&(x(e),y(!1)),t.stopPropagation()},onBlur:C,className:`uhuu:text-xs uhuu:font-medium uhuu:text-gray-800 uhuu:bg-(--uhuu-shell-surface) uhuu:border uhuu:border-blue-400 uhuu:rounded-md uhuu:px-2 uhuu:py-1 uhuu:focus:outline-none uhuu:focus:ring-2 uhuu:focus:ring-blue-400/30 uhuu:max-w-[140px] uhuu:h-7`,"data-uhuu-editor":!0}):t||w?(0,n.jsxs)(em,{open:g,onOpenChange:_,modal:!1,children:[(0,n.jsx)(tm,{asChild:!0,children:(0,n.jsxs)(`button`,{className:`uhuu:flex uhuu:items-center uhuu:gap-1 uhuu:text-xs uhuu:font-medium uhuu:text-gray-700 uhuu:hover:text-gray-900 uhuu:rounded-md uhuu:px-2 uhuu:h-7 uhuu:hover:bg-gray-100 uhuu:transition-colors uhuu:border uhuu:border-transparent uhuu:hover:border-gray-200`,"data-uhuu-editor":!0,children:[(0,n.jsx)(`span`,{className:`uhuu:truncate uhuu:max-w-[120px]`,children:e}),(0,n.jsx)(zr,{className:`uhuu:w-3.5 uhuu:h-3.5 uhuu:text-gray-500 uhuu:shrink-0`})]})}),(0,n.jsxs)(am,{className:`uhuu:min-w-44 uhuu:p-1`,align:`start`,children:[t&&(0,n.jsxs)(om,{onSelect:e=>{e.preventDefault(),_(!1),y(!0)},children:[(0,n.jsx)(Jr,{className:`uhuu:w-3.5 uhuu:h-3.5 uhuu:mr-2`}),h(`page.rename`)]}),t&&w&&(0,n.jsx)(um,{}),r&&(0,n.jsxs)(om,{onClick:l,children:[(0,n.jsx)(Ir,{className:`uhuu:w-3.5 uhuu:h-3.5 uhuu:mr-2`}),h(`page.moveUp`)]}),i&&(0,n.jsxs)(om,{onClick:u,children:[(0,n.jsx)(Pr,{className:`uhuu:w-3.5 uhuu:h-3.5 uhuu:mr-2`}),h(`page.moveDown`)]}),a&&(r||i)&&(0,n.jsx)(um,{}),a&&(0,n.jsxs)(om,{onClick:d,children:[(0,n.jsx)(Yr,{className:`uhuu:w-3.5 uhuu:h-3.5 uhuu:mr-2`}),h(`page.addPage`)]}),o&&(0,n.jsxs)(om,{onClick:f,children:[(0,n.jsx)(Hr,{className:`uhuu:w-3.5 uhuu:h-3.5 uhuu:mr-2`}),h(`page.duplicate`)]}),s&&(0,n.jsx)(um,{}),s&&(0,n.jsxs)(om,{onClick:m,className:`uhuu:text-red-600 uhuu:focus:text-red-700 uhuu:focus:bg-red-50`,children:[(0,n.jsx)(Zr,{className:`uhuu:w-3.5 uhuu:h-3.5 uhuu:mr-2`}),h(`page.delete`)]})]})]}):(0,n.jsx)(`span`,{className:`uhuu:text-xs uhuu:font-medium uhuu:text-gray-600 uhuu:truncate uhuu:max-w-[120px]`,children:e})}function KS(e){if(!e||typeof e!=`object`||!(`binding`in e))return e;let{binding:t,...n}=e;return n}function qS(e,t){return!!v(e?.binding)&&t?.mode===`cover`}function JS({pageFormat:e={},pageFilter:t,pages:n=[]}={}){let r={active:!1,plan:null,setup:KS(e),warnings:[]};if(!qS(e,t))return r;let i=v(e.binding),a={...T.resolveDimensions(e),bleed:T.clampBleed(e.bleed),binding:i},o=S({...a,coverPages:n}),s=w({...a,coverPageCount:t.coverPageCount??2,coverPages:n,flowCoverPages:n.filter(e=>e&&e.hasFlow).length});return o?{active:!0,plan:o,setup:{...e,binding:i,preview:`single_page`},warnings:s}:{...r,warnings:s}}function YS(e){let{initialItems:t,availableItems:n=[],onItemsChange:r,onStateChange:i,pageComponents:a,payload:o,setup:s,stateKey:c=Uh,resolveNewItem:l,notifyError:u,pageFilter:d}=e,[f,m]=(0,p.useState)(t),[h,g]=(0,p.useState)(!1),_=Hi(),{t:v}=_,y=(0,p.useRef)(t);(0,p.useEffect)(()=>{try{JSON.stringify(y.current)!==JSON.stringify(t)&&(y.current=t,m(t))}catch{y.current!==t&&(y.current=t,m(t))}},[t]);let b=(0,p.useContext)(_g),x=(0,p.useCallback)(e=>{m(e);let t=Zh(e,c);b?.mergePageEditorState&&b.mergePageEditorState(e,c),i?.(t),r?.(e,t)},[r,i,c,b]),S=(0,p.useMemo)(()=>{let e=new Map;return f.forEach(t=>{let n=t.templateId??t.id;e.set(n,(e.get(n)??0)+1),Wh(t)&&t.pages?.forEach(t=>{let n=t.templateId??t.id;e.set(n,(e.get(n)??0)+1)})}),e},[f]),C=(0,p.useMemo)(()=>n.filter(e=>{if(e.kind===`page`){let t=e,n=t.templateId??t.id,r=S.get(n)??0,i=t.repeatable??!1,a=t.maxInstances??null;return!(!i&&r>0||a!==null&&r>=a)}let t=e,n=t.templateId??t.id,r=S.get(n)??0,i=t.repeatable??!1,a=t.maxInstances??null;return!(!i&&r>0||i&&a!==null&&r>=a)}),[n,S]),w=(0,p.useMemo)(()=>qh(f),[f]),T=(0,p.useCallback)(async(e,t)=>{let n=e=>e?typeof e==`string`?e:e.mode??`optional`:`none`,r=(e,t)=>{if(!e)return[];if(Array.isArray(e))return e;try{let n=e(t);if(!Array.isArray(n))return console.error(`[uhuu-components] pageComponentKeys function must return an array, got:`,typeof n),[];let r=n.filter(e=>typeof e==`string`);return r.length!==n.length&&console.warn(`[uhuu-components] pageComponentKeys returned non-string values, filtering them out`),r}catch(e){return console.error(`[uhuu-components] Error evaluating pageComponentKeys function:`,e),[]}},i=(e=>{if(e.kind===`page`){let t=e;return tg(t.templateId??t.id,t.componentKey??t.id,{label:t.label,className:t.className,repeatable:t.repeatable,maxInstances:t.maxInstances,integration:t.integration,strictPosition:t.strictPosition})}let t=e,n=t.templateId??t.id,i={payload:o,item:void 0,parent:void 0};return ng(n,r(t.pageComponentKeys,i),{label:t.label,repeatable:t.repeatable??!1,maxInstances:t.maxInstances??null,integration:t.integration,strictPosition:t.strictPosition})})(e);typeof window<`u`&&window.$uhuu?.debug;let a,s=i;if(l)s=await l(i);else{let e=n(i.integration),t=!1;if(e!==`none`&&typeof window<`u`){let n=window.$uhuu?.requestIntegration?.bind(window.$uhuu);n&&(a=await n({item:i,mode:e}),a==null&&e===`required`&&(t=!0))}if(t)return{success:!1}}if(s===null)return{success:!1};let c=s??i;if(a!==void 0&&b?.setIntegrationPayload){let e=c.id;b.setIntegrationPayload(e,a)}return x(((e,t,n)=>{let r=t.strictPosition;if(r===`start`)return[t,...e];if(r===`end`)return[...e,t];let i=[],a=[],o=[];if(e.forEach(e=>{let t=e.strictPosition;t===`start`?i.push(e):t===`end`?o.push(e):a.push(e)}),!n||n.mode===`end`)return[...i,...a,t,...o];let s=a.findIndex(e=>e.id===n.anchorId);return s===-1?e.find(e=>e.id===n.anchorId)?.strictPosition===`start`?[...i,t,...a,...o]:[...i,...a,t,...o]:(n.mode===`before`?a.splice(s,0,t):a.splice(s+1,0,t),[...i,...a,...o])})(f,c,t)),{success:!0,insertedId:c.id}},[f,x,l,b,o]),E=(0,p.useCallback)(e=>{let t=e=>{u?u(e):alert(e)},n=f.find(t=>t.id===e);if(n){if(qh(f)<=1){t(v(`notice.lastPage`));return}if(b?.removeIntegrationPayload){let e=n.id;b.payload?.integrations?.[e]!==void 0&&b.removeIntegrationPayload(e)}x(f.filter(t=>t.id!==e))}else for(let n of f)if(Wh(n)&&n.pages.some(t=>t.id===e)){if(qh(f)<=1){t(v(`notice.lastPage`));return}if(n.pages.length===1){if(b?.removeIntegrationPayload){let e=n.id;b.payload?.integrations?.[e]!==void 0&&b.removeIntegrationPayload(e)}x(f.filter(e=>e.id!==n.id))}else x(f.map(t=>t.id===n.id&&Wh(t)?{...t,pages:t.pages.filter(t=>t.id!==e)}:t));return}},[f,u,x,b,v]),D=(0,p.useCallback)((e,t)=>{x(f.map(n=>n.id===e?(Wh(n),{...n,...t}):n))},[f,x]),O=(0,p.useCallback)(e=>{x(e)},[x]),k=(0,p.useMemo)(()=>{let e=Kh(f);return d?og(e,d):e},[f,d]),A=(0,p.useCallback)(e=>{let t=[];return k.forEach(n=>{Wh(n)?(n.pages??[]).forEach(r=>{t.push(e(r,n))}):t.push(e(n,n))}),t},[k]),j=(0,p.useMemo)(()=>Jh(k),[k]),M=(0,p.useCallback)(e=>{let t=Yh(e,f);x((e=>{let t=[],n=[],r=[];return e.forEach(e=>{let i=e.strictPosition;i===`start`?t.push(e):i===`end`?r.push(e):n.push(e)}),[...t,...n,...r]})(t))},[f,x]);return{items:f,itemsWithPageNum:k,totalPageCount:w,availableItemsToAdd:C,addItem:T,removeItem:E,updateItemFields:D,reorderItems:O,addDialogOpen:h,setAddDialogOpen:g,openAddDialog:(0,p.useCallback)(()=>{g(!0)},[]),renderItems:A,itemsForReorder:j,handleReorder:M,defaultRenderThumbnail:(0,p.useMemo)(()=>{if(a)return j_({pageComponents:a,payload:o,setup:s,i18n:_})},[a,o,s,_])}}function XS({items:e,reorderItems:t,availableItemsToAdd:n,setPendingInsertPosition:r,openAddDialog:i}){let a=(0,p.useMemo)(()=>e.filter(e=>!e.strictPosition),[e]);return(0,p.useCallback)((o,s)=>{if(!o)return{};let c=o.id,l=a.findIndex(e=>e.id===c),u=l!==-1,d=u&&l>0?()=>{let n=[...e],r=n.findIndex(e=>e.id===c);r<1||([n[r-1],n[r]]=[n[r],n[r-1]],t(n))}:void 0,f=u&&l<a.length-1?()=>{let n=[...e],r=n.findIndex(e=>e.id===c);r<0||r>=n.length-1||([n[r],n[r+1]]=[n[r+1],n[r]],t(n))}:void 0,p=u&&o.repeatable?()=>{let n={...e.find(e=>e.id===c)??o,id:`${c}_copy_${Date.now()}`},r=[...e],i=r.findIndex(e=>e.id===c);r.splice(i<0?r.length:i+1,0,n),t(r)}:void 0;return{onAddPage:s&&n.length>0?()=>{r({mode:`before`,anchorId:s}),i()}:void 0,onMoveUp:d,onMoveDown:f,onDuplicate:p}},[e,a,t,n,r,i])}function ZS(e=[],t={}){let n=[],r=1;for(let i of e){let e=i.hasFlow?t[i.flowKey]:void 0,a=Object.values(e?.flows??{}),o=Math.max(1,...a.map(e=>e.length));for(let t=0;t<o;t+=1)n.push({...i,pageNum:r++,virtualPageId:t===0?i.id:`${i.id}__flow_${t+1}`,virtualPageIndex:t,virtualPageCount:o,flowChunksByFlowId:e?.flows})}return n}function QS({logicalPages:e,pageFilter:t,layoutKey:n=``}){let[r,i]=(0,p.useState)({layoutKey:n,layouts:{}}),a=(0,p.useMemo)(()=>r.layoutKey===n?r.layouts:{},[r,n]),o=(0,p.useMemo)(()=>e.filter(e=>e.hasFlow).map(e=>e.flowKey).join(`|`),[e]),s=(0,p.useMemo)(()=>new Set(o?o.split(`|`):[]),[o]),c=(0,p.useMemo)(()=>{let t={};for(let n of e){if(!n.hasFlow)continue;let e=a[n.flowKey];e&&(t[n.flowKey]=e)}return t},[a,e]),l=(0,p.useCallback)((e,t,r)=>{s.has(e)&&i(i=>{let a=i.layoutKey===n?i.layouts:{},o={},c=!1;for(let[e,t]of Object.entries(a))s.has(e)?o[e]=t:c=!0;let l=o[e]??{flows:{},signatures:{},owners:{}},u=l.signatures?.[t.flowId];return i.layoutKey===n&&u===t.signature&&l.owners[t.flowId]===r&&!c?i:{layoutKey:n,layouts:{...o,[e]:{flows:{...l.flows,[t.flowId]:t.chunks},signatures:{...l.signatures,[t.flowId]:t.signature},owners:{...l.owners,[t.flowId]:r}}}}})},[s,n]),u=(0,p.useCallback)((e,t)=>{i(r=>{let i=r.layouts[e];if(r.layoutKey!==n||!i)return r;let a=Object.keys(i.flows).filter(e=>!t.has(e));if(!a.length)return r;let o={...i.flows},s={...i.signatures},c={...i.owners};for(let e of a)delete o[e],delete s[e],delete c[e];return{...r,layouts:{...r.layouts,[e]:{flows:o,signatures:s,owners:c}}}})},[n]),d=(0,p.useMemo)(()=>ZS(e,c),[e,c]),f=d.length;return{committedFlowLayouts:c,allVirtualPages:d,renderedVirtualPages:(0,p.useMemo)(()=>d.filter(e=>sg(e.pageNum,f,t??void 0)),[d,f,t]),virtualTotalPageCount:f,registerMeasurement:l,pruneMeasurements:u}}function $S(e,t){return e?t?`${e}.${t}`:e:null}function eC(e,t,n){return t?.meta?.imageGalleryPath??t?.config?.imageGalleryPath??t?.imageGalleryPath??e?.options?.imageGalleryPath??e?.templateSetup?.options?.imageGalleryPath??n?.imageGalleryPath}function tC({payload:e,page:t,parentGroup:n,pagePayload:r,defaults:i}){let a=ug(e,t,n),o=n&&Wh(n)?n.id:void 0,s=`pages.${t.id}`,c=o?`pages.${o}`:null;return{payload:e,pageId:t.id,pagePayload:r,parentGroupId:o,integration:{instanceId:a.instanceId,data:a.integration,path:e=>fg(a.instanceId,e)},paths:{integration:e=>fg(a.instanceId,e),page:e=>$S(s,e),group:e=>$S(c,e),document:e=>e??null},defaults:{imageGalleryPath:eC(e,a.integration,i)}}}var nC=(e,t,n=!1,r,i)=>{let a=typeof e==`string`?e:e.id,o=r?.[a],s=typeof e==`string`?o?.componentKey??a:e.componentKey??o?.componentKey??e.id,c=t??a,l=(typeof e==`string`?void 0:e.repeatable)??o?.repeatable??!1,u=(typeof e==`string`?void 0:e.maxInstances)??o?.maxInstances??null,d=(typeof e==`string`?void 0:e.label)??o?.label,f=(typeof e==`string`?void 0:e.className)??o?.className,p=(typeof e==`string`?void 0:e.component)??o?.component,m=(typeof e==`string`?void 0:e.integration)??o?.integration,h=(typeof e==`string`?void 0:e.strictPosition)??o?.strictPosition,g=(typeof e==`string`?void 0:e.hasFlow)??o?.hasFlow;return n?{kind:`page`,id:a,componentKey:s,templateId:c,label:d,className:f,repeatable:l,maxInstances:u,integration:m,component:p,strictPosition:h,hasFlow:g,...typeof e==`string`?{}:e,...i?{id:i}:{}}:tg(c,s,{label:d,className:f,repeatable:l,maxInstances:u,integration:m,component:p,strictPosition:h,hasFlow:g,...typeof e==`string`?{}:e})},rC=(e,t=!1,n,r,i)=>{let a={payload:n,item:void 0,parent:void 0},o=aC(e.pageComponentKeys,a).map(e=>{let t=r?.[e],n=t?.dataKey,i=t?.hasFlow;return n||i?{key:e,...n?{dataKey:n}:{},...i?{hasFlow:i}:{}}:e});if(t){let t=i??e.id;return{kind:`group`,id:t,templateId:e.id,label:e.label,repeatable:e.repeatable??!1,maxInstances:e.maxInstances??null,integration:e.integration,strictPosition:e.strictPosition,pages:o.map((e,n)=>{let i=typeof e==`string`?e:e.key,a=typeof e==`string`?void 0:e.dataKey;return{id:`${t}__${a??i}__${n}`,componentKey:i,templateId:i,...a?{dataKey:a}:{},...r?.[i]?.hasFlow?{hasFlow:!0}:{}}})}}return ng(e.id,o,{label:e.label,repeatable:e.repeatable??!1,maxInstances:e.maxInstances??null,integration:e.integration,strictPosition:e.strictPosition})},iC=e=>e?Array.isArray(e)?e:Object.entries(e).map(([e,t])=>({...t,id:e})):[],aC=(e,t)=>{if(!e)return[];if(Array.isArray(e))return e;try{let n=e(t);if(!Array.isArray(n))return console.error(`[uhuu-components] pageComponentKeys function must return an array, got:`,typeof n),[];let r=n.filter(e=>typeof e==`string`);return r.length!==n.length&&console.warn(`[uhuu-components] pageComponentKeys returned non-string values, filtering them out`),r}catch(e){return console.error(`[uhuu-components] Error evaluating pageComponentKeys function:`,e),[]}},oC=e=>{let{initial:t,groups:n,pageComponentKeys:r=[],pages:i={},pageComponents:a={},payload:o}=e,s=iC(n),c=new Map;s.forEach(e=>c.set(e.id,e));let l=r.length?r:Object.keys(i),u={...a};Object.entries(i).forEach(([e,t])=>{t.component&&(u[e]=t.component)});let d=new Set,f=e=>{let t=e;for(let n=2;d.has(t);n+=1)t=`${e}__${n}`;return d.add(t),t},p=t.map(e=>{if(typeof e==`string`){let t=c.get(e);return t?rC(t,!0,o,i,f(t.id)):nC(e,void 0,!0,i,f(e))}if(e.pageComponentKeys!==void 0){let t=e;return rC(t,!0,o,i,f(t.id))}let t=e;return nC(t,void 0,!0,i,f(t.id))}),m=s.map(e=>({kind:`group`,id:e.id,templateId:e.id,label:e.label,thumbnail:e.thumbnail,pageComponentKeys:e.pageComponentKeys,repeatable:e.repeatable??!1,maxInstances:e.maxInstances??null,integration:e.integration,strictPosition:e.strictPosition}));return{initialItems:p,availableItems:[...l.filter(e=>i?.[e]?.allowAsSinglePage!==!1).map(e=>{let t=i?.[e];return{kind:`page`,id:e,templateId:e,componentKey:t?.componentKey??e,label:t?.label,className:t?.className,repeatable:t?.repeatable??!1,maxInstances:t?.maxInstances??null,thumbnail:t?.thumbnail,integration:t?.integration,strictPosition:t?.strictPosition,hasFlow:t?.hasFlow}}),...m],pageComponents:u}},sC=Object.defineProperty,cC=(e,t)=>sC(e,`name`,{value:t,configurable:!0}),[lC,uC]=Ba(`AlertDialog`,[Qg]),dC=Qg(),fC=cC(e=>{let{__scopeAlertDialog:t,...r}=e,i=dC(t);return(0,n.jsx)(t_,{...i,...r,modal:!0})},`AlertDialog`);p.forwardRef(cC(function(e,t){let{__scopeAlertDialog:r,...i}=e,a=dC(r);return(0,n.jsx)(r_,{...a,...i,ref:t})},`AlertDialogTrigger`));var pC=cC(e=>{let{__scopeAlertDialog:t,...r}=e,i=dC(t);return(0,n.jsx)(s_,{...i,...r})},`AlertDialogPortal`),mC=p.forwardRef(cC(function(e,t){let{__scopeAlertDialog:r,...i}=e,a=dC(r);return(0,n.jsx)(l_,{...a,...i,ref:t})},`AlertDialogOverlay`)),[hC,gC]=lC(`AlertDialogContent`),_C=p.forwardRef(cC(function(e,t){let{__scopeAlertDialog:r,children:i,...a}=e,o=dC(r),s=q(t,p.useRef(null)),c=p.useRef(null);return(0,n.jsx)(hC,{scope:r,cancelRef:c,children:(0,n.jsx)(p_,{role:`alertdialog`,...o,...a,ref:s,onOpenAutoFocus:K(a.onOpenAutoFocus,e=>{e.preventDefault(),c.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:i})})},`AlertDialogContent`)),vC=p.forwardRef(cC(function(e,t){let{__scopeAlertDialog:r,...i}=e,a=dC(r);return(0,n.jsx)(__,{...a,...i,ref:t})},`AlertDialogTitle`)),yC=p.forwardRef(cC(function(e,t){let{__scopeAlertDialog:r,...i}=e,a=dC(r);return(0,n.jsx)(v_,{...a,...i,ref:t})},`AlertDialogDescription`)),bC=p.forwardRef(cC(function(e,t){let{__scopeAlertDialog:r,...i}=e,a=dC(r);return(0,n.jsx)(b_,{...a,...i,ref:t})},`AlertDialogAction`)),xC=`AlertDialogCancel`,SC=p.forwardRef(cC(function(e,t){let{__scopeAlertDialog:r,...i}=e,{cancelRef:a}=gC(xC,r),o=dC(r),s=q(t,a);return(0,n.jsx)(b_,{...o,...i,ref:s})},`AlertDialogCancel`)),CC=fC,wC=pC,TC=p.forwardRef(({className:e,...t},r)=>(0,n.jsx)(mC,{ref:r,className:G(`uhuu:fixed uhuu:inset-0 uhuu:z-50 uhuu:bg-black/40 uhuu:backdrop-blur-[1px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t}));TC.displayName=mC.displayName;var EC=p.forwardRef(({className:e,...t},r)=>{let{portalContainer:i}=ii();return(0,n.jsxs)(wC,{container:i||void 0,children:[(0,n.jsx)(TC,{}),(0,n.jsx)(_C,{ref:r,"data-uhuu-editor":!0,className:G(`uhuu:fixed uhuu:left-[50%] uhuu:top-[50%] uhuu:z-50 uhuu:w-full uhuu:max-w-md uhuu:translate-x-[-50%] uhuu:translate-y-[-50%] uhuu:rounded-md uhuu:border uhuu:border-gray-200 uhuu:bg-(--uhuu-shell-surface) uhuu:p-6 uhuu:shadow-lg uhuu:outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t})]})});EC.displayName=_C.displayName;var DC=({className:e,...t})=>(0,n.jsx)(`div`,{className:G(`uhuu:flex uhuu:flex-col uhuu:gap-2 uhuu:text-left`,e),...t});DC.displayName=`AlertDialogHeader`;var OC=({className:e,...t})=>(0,n.jsx)(`div`,{className:G(`uhuu:mt-6 uhuu:flex uhuu:flex-col-reverse uhuu:gap-2 uhuu:sm:flex-row uhuu:sm:justify-end`,e),...t});OC.displayName=`AlertDialogFooter`;var kC=p.forwardRef(({className:e,...t},r)=>(0,n.jsx)(vC,{ref:r,className:G(`uhuu:text-base uhuu:font-semibold uhuu:text-gray-900`,e),...t}));kC.displayName=vC.displayName;var AC=p.forwardRef(({className:e,...t},r)=>(0,n.jsx)(yC,{ref:r,className:G(`uhuu:text-sm uhuu:text-gray-600`,e),...t}));AC.displayName=yC.displayName;var jC=p.forwardRef(({className:e,...t},r)=>(0,n.jsx)(bC,{ref:r,className:G(`uhuu:inline-flex uhuu:h-9 uhuu:items-center uhuu:justify-center uhuu:rounded-md uhuu:bg-gray-900 uhuu:px-4 uhuu:text-sm uhuu:font-medium uhuu:text-(--uhuu-shell-on-inverse) uhuu:transition-colors uhuu:hover:bg-gray-800`,e),...t}));jC.displayName=bC.displayName;var MC=p.forwardRef(({className:e,...t},r)=>(0,n.jsx)(SC,{ref:r,className:G(`uhuu:inline-flex uhuu:h-9 uhuu:items-center uhuu:justify-center uhuu:rounded-md uhuu:border uhuu:border-gray-200 uhuu:bg-(--uhuu-shell-surface) uhuu:px-4 uhuu:text-sm uhuu:font-medium uhuu:text-gray-900 uhuu:transition-colors uhuu:hover:bg-gray-50`,e),...t}));MC.displayName=SC.displayName;var NC=`__edit__`,PC=`__print__`;function FC({checked:e,label:t,onSelect:r,keepOpen:i=!1}){return(0,n.jsxs)(om,{onSelect:e=>{i&&e.preventDefault(),r()},className:`uhuu:flex uhuu:items-center uhuu:gap-2`,children:[e?(0,n.jsx)(Rr,{className:`uhuu:w-3 uhuu:h-3 uhuu:text-gray-400`}):(0,n.jsx)(`span`,{className:`uhuu:w-3 uhuu:h-3`}),(0,n.jsx)(`span`,{className:`uhuu:flex-1 uhuu:truncate`,children:t})]})}function IC({label:e,value:t}){return(0,n.jsxs)(rm,{className:`uhuu:flex uhuu:items-center uhuu:justify-between uhuu:gap-4 uhuu:text-xs`,children:[(0,n.jsx)(`span`,{className:`uhuu:text-gray-700`,children:e}),(0,n.jsxs)(`span`,{className:`uhuu:flex uhuu:items-center uhuu:gap-1 uhuu:text-gray-400`,children:[t?(0,n.jsx)(`span`,{className:`uhuu:max-w-[110px] uhuu:truncate`,children:t}):null,(0,n.jsx)(Br,{className:`uhuu:w-3.5 uhuu:h-3.5`})]})]})}function LC({modes:e,selectedMode:t,onModeChange:r,interactive:i,onInteractiveChange:a,hasReferenceRenderer:o=!1,referenceOpacity:s=50,onReferenceOpacityChange:c,brandKits:l,activeBrandKitId:u,onSelectBrandKit:d,onAddBrandKit:f}){let p=e?Object.keys(e):[],m=[{value:NC,label:`Edit`},...p.length>0?p.map(t=>({value:t,label:e[t].label})):[{value:PC,label:`Print`}]],h=i?NC:t||p[0]||PC,g=m.find(e=>e.value===h)?.label??`Edit`,_=t=>{t===NC?a(!0):(a(!1),t!==PC&&e&&e[t]&&r?.(t,e[t]))},v=!!l&&l.length>0,y=l?.find(e=>e.id===u)?.name,b=()=>{let e=window.prompt(`Add a published brand kit to test — paste a brandkit.json URL, a kit id, or raw JSON:`);e&&e.trim()&&f?.(e.trim())};return(0,n.jsxs)(em,{modal:!1,children:[(0,n.jsx)(tm,{asChild:!0,children:(0,n.jsxs)(Ta,{variant:`ghost`,size:`sm`,className:`uhuu:text-xs uhuu:font-medium uhuu:text-gray-700 uhuu:hover:bg-gray-100/80 uhuu:h-7 uhuu:px-2.5 ${i?``:`uhuu:bg-gray-100/80`}`,children:[(0,n.jsx)(Lr,{className:`uhuu:w-3.5 uhuu:h-3.5`}),(0,n.jsx)(`span`,{className:`uhuu:text-[10px] uhuu:uppercase uhuu:tracking-wide`,children:`Dev`})]})}),(0,n.jsxs)(am,{align:`end`,className:`uhuu:min-w-[200px]`,children:[(0,n.jsxs)(nm,{children:[(0,n.jsx)(IC,{label:`Print Preview`,value:g}),(0,n.jsx)(im,{className:`uhuu:min-w-[180px]`,children:m.map(e=>(0,n.jsx)(FC,{checked:h===e.value,label:e.label,onSelect:()=>_(e.value)},e.value))})]}),v&&(0,n.jsxs)(nm,{children:[(0,n.jsx)(IC,{label:`Brand Kit`,value:y}),(0,n.jsxs)(im,{className:`uhuu:min-w-[200px]`,children:[l.map(e=>(0,n.jsx)(FC,{checked:u===e.id,label:e.name,keepOpen:!0,onSelect:()=>d?.(e.id)},e.id)),f&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(um,{}),(0,n.jsxs)(om,{onSelect:e=>{e.preventDefault(),b()},className:`uhuu:flex uhuu:items-center uhuu:gap-2`,children:[(0,n.jsx)(Yr,{className:`uhuu:w-3 uhuu:h-3 uhuu:text-gray-400`}),(0,n.jsx)(`span`,{className:`uhuu:flex-1`,children:`Add published kit…`})]})]})]})]}),o&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(um,{}),(0,n.jsx)(lm,{className:`uhuu:text-xs uhuu:text-gray-500`,children:`Reference Overlay`}),(0,n.jsxs)(`div`,{className:`uhuu:px-2 uhuu:py-2`,children:[(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:justify-between uhuu:text-xs uhuu:text-gray-600`,children:[(0,n.jsx)(`span`,{children:`Opacity`}),(0,n.jsxs)(`span`,{children:[s,`%`]})]}),(0,n.jsx)(`div`,{className:`uhuu:pt-2`,children:(0,n.jsx)(RS,{value:[s],min:0,max:100,step:5,onValueChange:e=>{let t=e[0]??s;c?.(t)}})}),(0,n.jsxs)(`div`,{className:`uhuu:pt-2 uhuu:flex uhuu:items-center uhuu:justify-between uhuu:text-xs uhuu:text-gray-500`,children:[(0,n.jsx)(`span`,{children:`Hidden`}),(0,n.jsx)(`span`,{children:`Solid`})]})]})]})]})]})}var RC=[`add`,`remove`,`reorder`,`duplicate`,`rename`];function zC(e){let t=e&&typeof e==`object`?e:{},n=t.locked!==!0,r=Object.fromEntries(RC.map(e=>[e,typeof t[e]==`boolean`?t[e]:n]));return{...r,templateOwnsPages:!r.add&&!r.remove&&!r.reorder&&!r.duplicate}}var BC={width:210,height:297},VC=typeof window>`u`?p.useEffect:p.useLayoutEffect;function HC(e,t){return t?`${t.id}/${e.id}`:e.id}function UC({label:e,onDone:t,onAddAnother:r}){let{t:i}=Hi();return e?(0,n.jsx)(`div`,{className:`uhuu:fixed uhuu:inset-0 uhuu:z-50 uhuu:flex uhuu:items-center uhuu:justify-center uhuu:bg-black/30`,children:(0,n.jsxs)(`div`,{"data-uhuu-editor":!0,className:`uhuu:bg-(--uhuu-shell-surface) uhuu:rounded-lg uhuu:border uhuu:border-gray-200/80 uhuu:shadow-xl uhuu:p-6 uhuu:w-full uhuu:max-w-sm uhuu:mx-4 uhuu:flex uhuu:flex-col uhuu:items-center uhuu:text-center`,children:[(0,n.jsx)(`div`,{className:`uhuu:rounded-full uhuu:bg-emerald-100 uhuu:p-3 uhuu:mb-4`,children:(0,n.jsx)(Rr,{className:`uhuu:h-6 uhuu:w-6 uhuu:text-emerald-600`,strokeWidth:2.5})}),(0,n.jsx)(`h2`,{className:`uhuu:text-base uhuu:font-medium uhuu:text-gray-900 uhuu:mb-5`,children:i(`addDialog.added`,{name:e})}),(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:gap-2 uhuu:w-full`,children:[(0,n.jsx)(Ta,{variant:`outline`,size:`sm`,onClick:r,className:`uhuu:flex-1`,children:i(`addDialog.addAnother`)}),(0,n.jsx)(Ta,{variant:`default`,size:`sm`,onClick:t,className:`uhuu:flex-1`,children:i(`addDialog.done`)})]})]})}):null}var WC=new Set;function GC({initialItems:e=[],availableItems:t=[],pageComponents:i={},spineComponent:a,payload:o,pageFormat:s,pageOptions:c=[],notifyError:l,referenceRenderer:u,renderOverlay:d,renderPage:f,menuItems:m,gridColsClass:h,reorderTitle:g,reorderDescription:_,stateKey:v=Uh,onItemsChange:y,onStateChange:b,resolveNewItem:x,pageFilter:S,printConfigs:C,defaultZoomMode:w=`fit-page`,brandKits:T,activeBrandKitId:E,onSelectBrandKit:D,onAddBrandKit:O,pageManagement:k=qC}){let[A]=(0,p.useState)(()=>j.createScope()),M=k,N=s??BC,{interactive:P,setInteractive:I,enableDevTools:R}=ga(),ee=_a(),{portalContainer:te}=ii(),{t:z,localize:B}=Hi(),[ne,re]=(0,p.useState)(null),[V,ie]=(0,p.useState)(null),[ae,oe]=(0,p.useState)(void 0),[se,ce]=(0,p.useState)(0),[le,ue]=(0,p.useState)(0),de=ne??S,fe=(0,p.useMemo)(()=>V?{...N,...V}:N,[N,V]),pe=(0,p.useContext)(_g),me=pe?.payload??o,[he,ge]=(0,p.useState)(!1),_e=!P&&qS(fe,de),ve=fe?.preview??`single_page`,ye=_e?`single_page`:ve,be=(0,p.useMemo)(()=>{let e=KS(fe);return ve===`two_pages`||_e?{...e,preview:`single_page`}:e},[ve,_e,fe]),xe=(0,p.useMemo)(()=>KS(N),[N]),Se=(0,p.useMemo)(()=>Xh(e),[e]),Ce=(0,p.useMemo)(()=>c?.length?c.map(e=>`getValue`in e?e:pe?.setPageOptionValue?Cg(e,pe.payload,pe.setPageOptionValue):((L()||R)&&console.warn(`PageEditor: payload-backed pageOptions require TemplateDataProvider or payload/onPayloadChange.`),null)).filter(Boolean):[],[c,pe,R]),[we,Te]=(0,p.useState)(null),[Ee,De]=(0,p.useState)({mode:`end`}),[Oe,ke]=(0,p.useState)(null),Ae=(0,p.useRef)(null),{items:je,itemsWithPageNum:Me,availableItemsToAdd:Ne,addItem:Pe,removeItem:Fe,reorderItems:Ie,updateItemFields:Le,addDialogOpen:Re,setAddDialogOpen:ze,openAddDialog:Be,itemsForReorder:Ve,handleReorder:He,defaultRenderThumbnail:Ue}=YS({initialItems:Se,availableItems:t,pageComponents:i,payload:me,setup:be,stateKey:v,onItemsChange:y,onStateChange:b,resolveNewItem:x,notifyError:l}),We=(0,p.useMemo)(()=>{let e=[];for(let t of Me){let n=Wh(t)?t.pages??[]:[t];for(let r of n){if(!r?.id)continue;let n=Wh(t)?t:void 0;e.push({...r,kind:`page`,id:r.id,pageNum:r.pageNum??e.length+1,basePageNum:r.pageNum??e.length+1,parentGroup:n,flowKey:HC(r,n)})}}return e.sort((e,t)=>(e.basePageNum??0)-(t.basePageNum??0))},[Me]),Ge=(0,p.useMemo)(()=>JSON.stringify({format:be?.format,orientation:be?.orientation,width:be?.width,height:be?.height,bleed:be?.bleed,showBleed:be?.showBleed,preview:be?.preview,flowPages:We.filter(e=>e.hasFlow).map(e=>e.flowKey).join(`|`)}),[be,We]),Ke=(0,p.useMemo)(()=>qh(je),[je]),{committedFlowLayouts:qe,allVirtualPages:Je,renderedVirtualPages:Ye,virtualTotalPageCount:Xe,registerMeasurement:Ze,pruneMeasurements:Qe}=QS({logicalPages:We,pageFilter:de,layoutKey:Ge});VC(()=>{A.commit(We.filter(e=>e.hasFlow).map(e=>e.flowKey),qe)}),VC(()=>()=>A.suspend(),[A]),p.useEffect(()=>()=>A.unmount(),[A]);let $e=(0,p.useMemo)(()=>new Set(Ye.map(e=>e.virtualPageId)),[Ye]),et=(0,p.useMemo)(()=>JS({pageFormat:_e?fe:KS(fe),pageFilter:de,pages:Ye}),[_e,fe,de,Ye]),tt=et.active?et.plan:null,nt=(0,p.useMemo)(()=>tt?{...be,binding:et.setup.binding}:be,[tt,be,et.setup]);p.useEffect(()=>{if(L()&&et.warnings.length)for(let e of et.warnings)WC.has(e)||(WC.add(e),console.warn(`[uhuu-components] PageEditor cover spread: ${e}`))},[et.warnings]);let rt=(0,p.useMemo)(()=>Je.filter(e=>e.hasFlow&&e.virtualPageIndex===0&&(f||!!tt||!$e.has(e.virtualPageId))),[Je,$e,f,tt]);p.useEffect(()=>{if(!Oe)return;let e=setTimeout(()=>{document.querySelector(`[data-page-item-id="${Oe}"]`)?.scrollIntoView({behavior:`smooth`,block:`start`})},300);return()=>clearTimeout(e)},[Oe]);let it=XS({items:je,reorderItems:Ie,availableItemsToAdd:Ne,setPendingInsertPosition:De,openAddDialog:Be}),at=(e,t)=>{let n=it(e,t);return{onAddPage:M.add?n.onAddPage:void 0,onMoveUp:M.reorder?n.onMoveUp:void 0,onMoveDown:M.reorder?n.onMoveDown:void 0,onDuplicate:M.duplicate?n.onDuplicate:void 0}},ot=(0,p.useCallback)(async e=>{let t=await Pe(e,Ee);t.success&&(ke(t.insertedId),Ae.current&&clearTimeout(Ae.current),Ae.current=setTimeout(()=>ke(null),1200),De({mode:`end`}),e.repeatable&&e.integration&&Te(e))},[Pe,Ee]),st=(0,p.useCallback)(()=>{let e=Array.from(document.querySelectorAll(`[data-page-item-id]`));if(!e.length)return{mode:`end`};let t=window.innerHeight/2,n=null,r=1/0;for(let i of e){let e=i.getBoundingClientRect(),a=Math.abs(e.top+e.height/2-t);a<r&&(r=a,n=i)}let i=n?.getAttribute(`data-page-item-id`);return i?{mode:`after`,anchorId:i}:{mode:`end`}},[]),ct=(0,p.useCallback)(()=>{De(st()),Be()},[st,Be]),lt=p.useCallback((e,t,n)=>{if(!t)return;let r=e.applyPatch?.(n,t);r&&Le(t.id,r),e.onChange?.(t.id,n,{item:t,updateItem:e=>Le(t.id,e)})},[Le]),ut=e=>(0,n.jsxs)(`div`,{className:`uhuu-page-overlay`,children:[(0,n.jsx)(`span`,{children:`Page`}),(0,n.jsxs)(`span`,{children:[e.pageNo,` / `,e.total]})]}),dt=(e,t,n)=>d===!1||d===null?null:d?d({pageNo:e,total:Xe,pageId:t,parent:n}):ut({pageNo:e,total:Xe}),ft=(e,t={})=>{let r=e.parentGroup;if(f&&t.renderVisible!==!1&&t.renderMode!==`content`)return f({page:e,parent:r});let a=e.componentKey??e.id,o=R&&u?u(e):null,s=R&&u?p.isValidElement(o)?p.cloneElement(o,{opacity:le}):o:null,c=e.templateId??a,l=i[a],d=pe?.getPagePayload?pe.getPagePayload(e):gg(me,{id:e.id,templateId:c,componentKey:a}),m=dg(me,e,r),h=tC({payload:me,page:e,parentGroup:r,pagePayload:d});return(0,n.jsx)(xx,{pageId:e.id,templateId:c,pageNo:e.pageNum,measurementPageNo:e.basePageNum,component:l,payload:me,pagePayload:d,integration:m,page:e,parentGroup:r,componentKey:a,setup:nt,reference:s,overlay:({pageNo:t})=>dt(t,e.id,r),className:e.className,dataBinding:h,totalPages:Xe,measurementTotalPages:Ke,flowPageIndex:e.virtualPageIndex,flowChunksByFlowId:e.flowChunksByFlowId,measureFlow:t.measureFlow??(!!e.hasFlow&&e.virtualPageIndex===0),flowMeasurementKey:e.flowKey,flowMeasurementVersion:Ge,flowReadiness:A,onFlowMeasurement:e.hasFlow?Ze:void 0,onFlowPrune:Qe,renderVisible:t.renderVisible??!0,renderMode:t.renderMode,spread:t.spread},`${t.renderVisible===!1?`measure-only`:`page`}-${e.virtualPageId}`)},pt=e=>{let t=e.componentKey??e.templateId??e.id;return[t?`uhuu-page--${t}`:``,e.className].filter(Boolean).join(` `)},mt=e=>{if(!tt)return null;let{binding:t,page:r}=tt,[i,o]=e.panels,s=i.page,c=o.page,l=n=>({sheet:e.sheet,side:n,spine:t.spine,glue:t.glue,bleed:r.bleed}),u=`Cover sheet ${e.index+1} · ${e.sheet} (pages ${s.pageNum} + ${c.pageNum})`;return(0,n.jsx)(`div`,{"data-page-item-id":c.parentGroup?.id??c.id,children:(0,n.jsx)(Kg,{title:u,controls:(0,n.jsxs)(`div`,{"data-uhuu-editor":!0,className:`uhuu:pl-0 uhuu:pr-3 uhuu:py-1.5 uhuu:flex uhuu:items-center uhuu:gap-2 uhuu:h-9`,children:[(0,n.jsxs)(`span`,{className:`uhuu-page-number`,children:[s.pageNum,` + `,c.pageNum]}),(0,n.jsx)(`span`,{className:`uhuu:text-xs uhuu:text-gray-500`,children:u})]}),children:(0,n.jsx)(F,{setup:nt,children:(0,n.jsx)(Ft,{sheet:e.sheet,pageNo:[s.pageNum,c.pageNum],left:ft(s,{renderMode:`content`,spread:l(`left`)}),right:ft(c,{renderMode:`content`,spread:l(`right`)}),spine:a&&e.sheet===`outer`?(0,n.jsx)(a,{payload:me,sheet:`outer`,spine:t.spine,glue:t.glue,bleed:r.bleed,height:r.height,totalPages:Xe,pages:{left:s,right:c}}):void 0,overlay:({pageNo:e,side:t})=>{let n=t===`left`?s:c;return dt(e,n.id,n.parentGroup)},leftClassName:pt(s),rightClassName:pt(c),leftPageKey:s.componentKey??s.templateId??s.id,rightPageKey:c.componentKey??c.templateId??c.id})})})},`cover-sheet-${e.sheet}`)},ht=(e,t,r)=>{let i=!!t&&Wh(t),a=i&&t.pages[0]?.id===e.id;if(e.virtualPageIndex>0)return(0,n.jsxs)(`div`,{"data-uhuu-editor":!0,className:`uhuu:pl-0 uhuu:pr-3 uhuu:py-1.5 uhuu:flex uhuu:items-center uhuu:gap-2 uhuu:h-9`,children:[(0,n.jsx)(`span`,{className:`uhuu-page-number`,children:e.pageNum}),(0,n.jsx)(`span`,{className:`uhuu:text-xs uhuu:text-gray-500`,children:z(`page.continued`,{name:B(e.label)||e.componentKey||e.id})})]});if(i&&!a)return(0,n.jsx)(`div`,{"data-uhuu-editor":!0,className:`uhuu:pl-0 uhuu:pr-3 uhuu:py-1.5 uhuu:flex uhuu:justify-between uhuu:items-center uhuu:h-9`,children:(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:gap-2`,children:[(0,n.jsx)(`span`,{className:`uhuu-page-number`,children:e.pageNum}),e.label&&(0,n.jsx)(`span`,{className:`uhuu:text-xs uhuu:text-gray-500`,children:B(e.label)}),(0,n.jsx)(`span`,{className:`uhuu:text-xs uhuu:text-gray-400`,children:`·`})]})});let o=i?t:e,s=i?B(t.label)||t.id:B(e.label)||z(`page.fallbackName`,{number:e.pageNum});return(0,n.jsxs)(`div`,{"data-uhuu-editor":!0,className:`uhuu:pl-0 uhuu:flex uhuu:items-center uhuu:h-9`,children:[(0,n.jsx)(`span`,{className:`uhuu-page-number uhuu:shrink-0 uhuu:text-xs uhuu:tabular-nums uhuu:text-gray-400 uhuu:font-medium uhuu:pr-1`,children:e.pageNum}),(0,n.jsx)(GS,{name:s,canRename:M.rename,canMoveUp:!!r?.onMoveUp,canMoveDown:!!r?.onMoveDown,canAddPage:!!r?.onAddPage,canDuplicate:!!r?.onDuplicate,canDelete:M.remove&&Ke>1,onRename:e=>Le(o.id,{label:e||void 0}),onMoveUp:r?.onMoveUp,onMoveDown:r?.onMoveDown,onAddPage:r?.onAddPage,onDuplicate:r?.onDuplicate,onDelete:()=>Fe(o.id)}),(0,n.jsx)(`span`,{className:`uhuu:pl-1`,children:Ce.length>0&&(0,n.jsx)(WS,{pageOptions:Ce,targetItem:o,onChange:lt,title:z(i?`page.groupOptions`:`page.options`)})})]})},gt=(0,p.useMemo)(()=>{if(ye!==`two_pages`)return[];let e=Ye;if(!e.length)return[];let t=[{left:void 0,right:e[0],layout:`right`}];for(let n=1;n<e.length;n+=2){let r=e[n],i=e[n+1];if(i)t.push({left:r,right:i,layout:`spread`});else{let e=r.pageNum%2==0;t.push({left:e?r:void 0,right:e?void 0:r,layout:e?`left`:`right`})}}return t},[ye,Ye]),_t=(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:gap-1`,children:[(0,n.jsx)(px,{variant:`secondary`,className:`uhuu:font-normal uhuu:text-xs uhuu:bg-gray-100/80 uhuu:text-gray-700 uhuu:border-0`,children:z(`toolbar.pages`,{count:Xe})}),R&&(0,n.jsx)(LC,{modes:C,selectedMode:ae,onModeChange:(e,t)=>{oe(e),re(t.filter??null),ie(t.pageFormat??null),ce(e=>e+1)},interactive:P,onInteractiveChange:e=>{I(e),e&&ie(null)},hasReferenceRenderer:!!u,referenceOpacity:le,onReferenceOpacityChange:ue,brandKits:T,activeBrandKitId:E,onSelectBrandKit:D,onAddBrandKit:O}),P&&(0,n.jsxs)(n.Fragment,{children:[M.add&&Ne.length>0&&(0,n.jsxs)(Ta,{variant:`ghost`,size:`sm`,onClick:ct,title:z(`toolbar.addHint`),className:`uhuu:text-xs uhuu:font-medium uhuu:text-gray-700 uhuu:hover:bg-gray-100/80 uhuu:h-7 uhuu:px-2.5`,children:[(0,n.jsx)(Yr,{className:`uhuu:w-3.5 uhuu:h-3.5`}),z(`toolbar.add`)]}),M.reorder&&(0,n.jsxs)(Ta,{variant:`ghost`,size:`sm`,onClick:()=>ge(!0),title:z(`toolbar.reorderHint`),className:`uhuu:text-xs uhuu:font-medium uhuu:text-gray-700 uhuu:hover:bg-gray-100/80 uhuu:h-7 uhuu:px-2.5`,children:[(0,n.jsx)(Vr,{className:`uhuu:w-3.5 uhuu:h-3.5`}),z(`toolbar.reorder`)]})]})]});return(0,n.jsxs)(n.Fragment,{children:[rt.map(e=>ft(e,{renderVisible:!1,measureFlow:!0})),R&&!P&&te&&(0,r.createPortal)((0,n.jsxs)(Ta,{onClick:()=>{I(!0),ie(null)},"data-uhuu-editor":!0,size:`sm`,className:`uhuu-screen-only uhuu:fixed uhuu:top-4 uhuu:right-4 uhuu:z-50 uhuu:flex uhuu:items-center uhuu:gap-1.5 uhuu:text-xs! uhuu:rounded-full`,title:`Back to Edit Mode`,children:[(0,n.jsx)(ei,{className:`uhuu:w-4 uhuu:h-4`}),`Back to Editor`]}),te),(0,n.jsx)(qg,{defaultZoom:80,defaultZoomMode:w,minZoom:25,maxZoom:200,menuItems:m??_t,onAddPage:M.add?ct:void 0,preview:ye,children:tt?tt.sheets.map(mt):ye===`two_pages`?gt.map((e,t)=>{let r=e.left??e.right,i=e.right??e.left,a=r?.parentGroup?.id??r?.id??null,o=i?.parentGroup?.id??i?.id??null,s=e.left?.parentGroup?.id??e.left?.id,c=e.right?.parentGroup?.id??e.right?.id,l=s===Oe,u=c===Oe,d=(e,t)=>at(e?e.parentGroup??e:void 0,t);return(0,n.jsxs)(Ug,{layout:e.layout,pageItemId:o??void 0,children:[e.left&&(0,n.jsx)(`div`,{"data-page-item-id":e.left.virtualPageIndex===0?s:void 0,className:l?`uhuu:outline uhuu:outline-2 uhuu:outline-offset-2 uhuu:outline-blue-100 uhuu:bg-blue-50`:void 0,children:(0,n.jsx)(Kg,{title:`Sheet ${e.left.pageNum}`,controls:ht(e.left,e.left.parentGroup,d(e.left,a)),origin:e.left.pageNum%2==0?`right`:`left`,children:ft(e.left)},e.left.virtualPageId)}),e.right&&(0,n.jsx)(`div`,{"data-page-item-id":e.right.virtualPageIndex===0?c:void 0,className:u?`uhuu:outline uhuu:outline-2 uhuu:outline-offset-2 uhuu:outline-blue-100 uhuu:bg-blue-50`:void 0,children:(0,n.jsx)(Kg,{title:`Sheet ${e.right.pageNum}`,controls:ht(e.right,e.right.parentGroup,d(e.right,o)),origin:e.right.pageNum%2==0?`right`:`left`,children:ft(e.right)},e.right.virtualPageId)})]},`pair-${t}`)}):Ye.map(e=>{let t=e.parentGroup??e,r=e.parentGroup?.id??e.id,i=at(t,r),a=e.parentGroup?.id??e.id,o=Oe===a;return(0,n.jsx)(`div`,{"data-page-item-id":e.virtualPageIndex===0?a:void 0,className:o?`uhuu:outline uhuu:outline-2 uhuu:outline-offset-2 uhuu:outline-blue-100 uhuu:bg-blue-50`:void 0,children:(0,n.jsx)(Kg,{title:`Sheet ${e.pageNum}`,controls:ht(e,e.parentGroup,i),children:ft(e)})},e.virtualPageId)})},`dev-mode-${se}-${ae??`default`}`),P&&!ee&&(0,n.jsxs)(n.Fragment,{children:[M.add&&(0,n.jsx)(M_,{open:Re,onOpenChange:ze,availableItems:Ne,onSelectItem:ot,pageComponents:i,payload:me,setup:xe,gridColsClass:h,"data-uhuu-editor":!0}),M.reorder&&(0,n.jsx)(hx,{open:he,onOpenChange:ge,pages:Ve,onReorder:e=>{He(e),ge(!1)},onRemove:M.remove?e=>Fe(e.id):void 0,pageComponents:i,payload:me,setup:xe,renderThumbnail:Ue,title:B(g)??z(`reorderDialog.title`),description:B(_)??z(`reorderDialog.description`),gridColsClass:h,"data-uhuu-editor":!0})]}),(0,n.jsx)(UC,{label:we?B(we.label)??we.id:null,onDone:()=>Te(null),onAddAnother:()=>{let e=we;Te(null),e&&ot(e)}})]})}function KC(e){let{templateConfig:t,...r}=e;return(0,p.useContext)(_g)||!e.payload&&!e.onPayloadChange?(0,n.jsx)(GC,{...r}):(0,n.jsx)(bg,{payload:e.payload,onPayloadChange:e.onPayloadChange,stateKey:e.stateKey,children:(0,n.jsx)(GC,{...r})})}var qC=zC(),JC=new Set([`kind`,`id`,`pages`,`templateId`,`componentKey`,`dataKey`,`hasFlow`,`strictPosition`,`label`,`className`,`repeatable`,`maxInstances`,`allowAsSinglePage`,`thumbnail`]);function YC(e,t){if(!t?.length)return e;let n=new Map,r=e=>e.forEach(e=>{e?.id&&n.set(e.id,e),Array.isArray(e?.pages)&&r(e.pages)});r(t);let i=e=>{let t=n.get(e.id),r=t?Object.fromEntries(Object.entries(t).filter(([e])=>!JC.has(e))):{},a={...e,...r};return Array.isArray(e.pages)?{...a,pages:e.pages.map(i)}:a};return e.map(i)}function XC(e){let t=(0,p.useContext)(_g),{t:r}=Hi(),i=t?.payload??e.payload,a=p.useMemo(()=>oC({...e.templateConfig,payload:i}),[e.templateConfig,i]),o=e.templateConfig?.spine?.component,[s,c]=p.useState({open:!1,message:``}),l=p.useCallback(e=>{c({open:!0,message:e})},[]),u=p.useMemo(()=>Qh(i,e.stateKey??`uhuu_page_editor`),[i,e.stateKey]),d=p.useMemo(()=>{let t=e.templateConfig.pageManagement;return t!=null&&typeof t!=`object`&&L()&&console.warn(`[uhuu-components] templateConfig.pageManagement takes an object, e.g. { locked: true }; ${JSON.stringify(t)} is ignored and every page-management control stays on.`),zC(t)},[e.templateConfig.pageManagement]),f=d.templateOwnsPages,m=p.useMemo(()=>{if(f)return YC(a.initialItems,u?.items);if(!u?.items)return a.initialItems;let t=e.templateConfig.groups??{},n=Array.isArray(t)?t:Object.entries(t).map(([e,t])=>({id:e,...t})),r=new Map(n.map(e=>[e.id,e])),o=e.templateConfig.pages??{},s=e=>{let t=e?.componentKey??e?.templateId??e?.id;return o[t]??o[e?.templateId]??o[e?.id]},c=e=>!s(e)?.hasFlow||e?.hasFlow?e:{...e,hasFlow:!0},l=(e,t)=>t===void 0||!yi(e?.label,t)||e.label===t?e:{...e,label:t},d=u.items.map(e=>{if(e.kind!==`group`)return l(c(e),s(e)?.label);let t=e.templateId??e.id,n=r.get(t),a=l(e,n?.label),u=n?.strictPosition!==void 0&&!a.strictPosition?{...a,strictPosition:n.strictPosition}:a,d={...u,pages:(u.pages??[]).map(c)};if(!n||typeof n.pageComponentKeys!=`function`)return d;try{let e=n.pageComponentKeys({payload:i,item:void 0,parent:void 0});return Array.isArray(e)?e.length===0?{...d,pages:[]}:{...d,pages:e.map((e,t)=>{let n=o[e],r=n?.dataKey;return{id:`${d.id}__${r??e}__${t}`,componentKey:e,templateId:e,...r?{dataKey:r}:{},...n?.hasFlow?{hasFlow:!0}:{}}})}:(console.error(`[PageEditor] pageComponentKeys for group ${u.id} must return an array, got:`,typeof e),u)}catch(e){return console.error(`[PageEditor] Error evaluating pageComponentKeys for group ${d.id}:`,e),d}}),p=new Set(a.initialItems.map(e=>e.id)),m=d.filter(e=>p.has(e.id)),h=qh(m),g=qh(a.initialItems);if(!Array.from(p).some(e=>!m.some(t=>t.id===e))&&h!==g){let e=d.filter(e=>{if(e.kind!==`group`)return!p.has(e.id);let t=e.templateId??e.id;return e.id!==t&&!p.has(e.id)});if(e.length===0)return a.initialItems;let t=[...a.initialItems,...e],n=t.filter(e=>e.strictPosition===`start`),r=t.filter(e=>e.strictPosition===`end`),i=t.filter(e=>!e.strictPosition);return[...n,...i,...r]}return d},[u?.items,a.initialItems,i,e.templateConfig.groups,e.templateConfig.pages,f]);return(0,n.jsxs)(M.Provider,{value:!0,children:[(0,n.jsx)(KC,{...e,payload:i,initialItems:m,availableItems:d.add||d.duplicate?a.availableItems:[],pageManagement:d,pageComponents:a.pageComponents,spineComponent:o,notifyError:l}),(0,n.jsx)(CC,{open:s.open,onOpenChange:e=>{e||c({open:!1,message:``})},children:(0,n.jsxs)(EC,{children:[(0,n.jsxs)(DC,{children:[(0,n.jsx)(kC,{children:r(`notice.cannotRemoveTitle`)}),(0,n.jsx)(AC,{children:s.message})]}),(0,n.jsx)(OC,{children:(0,n.jsx)(jC,{onClick:()=>c({open:!1,message:``}),children:r(`notice.ok`)})})]})})]})}function ZC(e,t){if(e&&t){if(e.includes(`??`)){let n=e.split(`??`).map(e=>e.trim());for(let e of n){let n=QC(t,e);if(n!=null)return n}}else return QC(t,e)}}function QC(e,t){if(!t)return e;let n=t.split(`.`),r=e;for(let e of n){if(r==null)return;r=r[e]}return r}function $C(e,t,n){let r={};for(let[n,i]of Object.entries(e))typeof i==`function`?r[n]=i(t):typeof i==`string`&&(r[n]=ZC(i.startsWith(`integration.`)?i.slice(12):i,t));return r}function ew(e,t,n){return e(t,n)}function tw(e,t,n){return typeof e==`function`?ew(e,t,n):$C(e,t,n)}function nw(e,t,n){if(e?.defaults?.imageGalleryPath)return e.defaults.imageGalleryPath;if(n){if(typeof n==`function`){let e=n(t);if(e)return e}else if(typeof n==`string`)return n}return t?.media?.images?`media.images`:t?.listing?.media?.images?`listing.media.images`:t?.pba_listing?.media?.images?`pba_listing.media.images`:t?.property?.media?.images?`property.media.images`:null}function rw(e,t,n={},r,i=null){let a=e?.integration?.path?.();if(!a)return null;let o=n.type===`assistant`,s=n.type===`image`||n.imagePath,c=o?e.integration.path(t)??[a,t].filter(Boolean).join(`.`):[a,t].filter(Boolean).join(`.`);if(s){let t=n.imageGalleryPath??(i?`${a}.${i}`:null)??e.defaults.imageGalleryPath;return{path:c,imagePath:n.imagePath||`url`,imageGalleryPath:t,type:n.type||`image`,ratio:n.ratio,value:r,payload:n.payload??e.payload,...n}}return o?{path:c,type:`assistant`,rows:n.rows,value:r,payload:n.payload??e.payload,...n}:{path:a,subPath:t,type:n.type||`text`,rows:n.rows,value:r,payload:n.payload??e.payload,...n}}function iw(e){let{dataBinding:t,integration:n,resolver:r,galleryPath:i,defaults:a}=e,o=p.useMemo(()=>tw(r,n,t?.payload),[r,n,t?.payload]),s=p.useMemo(()=>nw(t,n,i),[t,n,i]),c=p.useCallback((e,n={},r)=>rw(t,e,n,r,s),[t,s]),l=p.useCallback((e,t={},n)=>{let r=c(e,t,n);return r?Ze({dialog:r}):{}},[c]);return p.useMemo(()=>({data:o,dialog:c,dialogProps:l,galleryPath:s,instanceId:t?.integration?.instanceId??null,integration:n}),[o,c,l,s,t,n])}var aw={Pagination:F,Sheet:I,FlowArea:Ve,FlowPage:He,Flow:Ye,FlowColumns:Xe,planFlowChunks:ie,planFlowColumnChunks:fe,createFlowPlanMetrics:V,flowMeasure:pe,FlowDocument:_t,markdownToFlowItems:Mt,htmlToFlowItems:pt,planCoverSpread:S,resolveSheetSize:b,CoverSpread:Ft,usePaginationHold:Lt},ow={TemplateDataProvider:bg,PageEditor:XC,InteractiveModeProvider:ba,useInteractive:ga,useIntegrationAdapter:iw};e.BRAND_KIT_PUBLIC_BASE_URL=ch,e.BrandKitProvider=Vh,e.Editable=nt,e.EditorShell=ow,e.ImageBlock=bm,e.Static=aw,e.brandKitCollection=Sh,e.brandKitEnv=wh,e.brandKitLogo=vh,e.brandKitMapStyle=Th,e.brandKitSourceUrl=fh,e.getDialogProps=Ze,e.imageUrl=km,e.loadBrandKit=ph,e.useBrandKit=Hh});
56
+ `},vv={onDragStart(e){let{active:t}=e;return`Picked up draggable item `+t.id+`.`},onDragOver(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was moved over droppable area `+n.id+`.`:`Draggable item `+t.id+` is no longer over a droppable area.`},onDragEnd(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was dropped over droppable area `+n.id:`Draggable item `+t.id+` was dropped.`},onDragCancel(e){let{active:t}=e;return`Dragging was cancelled. Draggable item `+t.id+` was dropped.`}};function yv(e){let{announcements:n=vv,container:i,hiddenTextDescribedById:a,screenReaderInstructions:o=_v}=e,{announce:s,announcement:c}=pv(),l=$_(`DndLiveRegion`),[u,d]=(0,t.useState)(!1);if((0,t.useEffect)(()=>{d(!0)},[]),hv((0,t.useMemo)(()=>({onDragStart(e){let{active:t}=e;s(n.onDragStart({active:t}))},onDragMove(e){let{active:t,over:r}=e;n.onDragMove&&s(n.onDragMove({active:t,over:r}))},onDragOver(e){let{active:t,over:r}=e;s(n.onDragOver({active:t,over:r}))},onDragEnd(e){let{active:t,over:r}=e;s(n.onDragEnd({active:t,over:r}))},onDragCancel(e){let{active:t,over:r}=e;s(n.onDragCancel({active:t,over:r}))}}),[s,n])),!u)return null;let f=t.default.createElement(t.default.Fragment,null,t.default.createElement(dv,{id:a,value:o.draggable}),t.default.createElement(fv,{id:l,announcement:c}));return i?(0,r.createPortal)(f,i):f}var bv;(function(e){e.DragStart=`dragStart`,e.DragMove=`dragMove`,e.DragEnd=`dragEnd`,e.DragCancel=`dragCancel`,e.DragOver=`dragOver`,e.RegisterDroppable=`registerDroppable`,e.SetDroppableDisabled=`setDroppableDisabled`,e.UnregisterDroppable=`unregisterDroppable`})(bv||={});function xv(){}function Sv(e,n){return(0,t.useMemo)(()=>({sensor:e,options:n??{}}),[e,n])}function Cv(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0,t.useMemo)(()=>[...n].filter(e=>e!=null),[...n])}var wv=Object.freeze({x:0,y:0});function Tv(e,t){return Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2)}function Ev(e,t){let n=ov(e);if(!n)return`0 0`;let r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+`% `+r.y+`%`}function Dv(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Ov(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function kv(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function Av(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function jv(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}var Mv=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=jv(t,t.left,t.top),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=Tv(jv(r),i);a.push({id:t,data:{droppableContainer:e,value:n}})}}return a.sort(Dv)},Nv=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=kv(t),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=kv(r),o=i.reduce((e,t,r)=>e+Tv(n[r],t),0),s=Number((o/4).toFixed(4));a.push({id:t,data:{droppableContainer:e,value:s}})}}return a.sort(Dv)};function Pv(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){let n=t.width*t.height,r=e.width*e.height,i=o*s,a=i/(n+r-i);return Number(a.toFixed(4))}return 0}var Fv=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=Pv(a,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(Ov)};function Iv(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Lv(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:wv}function Rv(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}var zv=Rv(1);function Bv(e){if(e.startsWith(`matrix3d(`)){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith(`matrix(`)){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Vv(e,t,n){let r=Bv(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:s}=r,c=e.left-o-(1-i)*parseFloat(n),l=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(` `)+1)),u=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c}}var Hv={ignoreTransform:!1};function Uv(e,t){t===void 0&&(t=Hv);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=B_(e).getComputedStyle(e);t&&(n=Vv(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:s,right:c}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:c}}function Wv(e){return Uv(e,{ignoreTransform:!0})}function Gv(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Kv(e,t){return t===void 0&&(t=B_(e).getComputedStyle(e)),t.position===`fixed`}function qv(e,t){t===void 0&&(t=B_(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return[`overflow`,`overflowX`,`overflowY`].some(e=>{let r=t[e];return typeof r==`string`&&n.test(r)})}function Jv(e,t){let n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(V_(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!H_(i)||U_(i)||n.includes(i))return n;let a=B_(e).getComputedStyle(i);return i!==e&&qv(i,a)&&n.push(i),Kv(i,a)?n:r(i.parentNode)}return e?r(e):n}function Yv(e){let[t]=Jv(e,1);return t??null}function Xv(e){return!L_||!e?null:R_(e)?e:z_(e)?V_(e)||e===W_(e).scrollingElement?window:H_(e)?e:null:null}function Zv(e){return R_(e)?e.scrollX:e.scrollLeft}function Qv(e){return R_(e)?e.scrollY:e.scrollTop}function $v(e){return{x:Zv(e),y:Qv(e)}}var ey;(function(e){e[e.Forward=1]=`Forward`,e[e.Backward=-1]=`Backward`})(ey||={});function ty(e){return!L_||!e?!1:e===document.scrollingElement}function ny(e){let t={x:0,y:0},n=ty(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}var ry={x:.2,y:.2};function iy(e,t,n,r,i){let{top:a,left:o,right:s,bottom:c}=n;r===void 0&&(r=10),i===void 0&&(i=ry);let{isTop:l,isBottom:u,isLeft:d,isRight:f}=ny(e),p={x:0,y:0},m={x:0,y:0},h={height:t.height*i.y,width:t.width*i.x};return!l&&a<=t.top+h.height?(p.y=ey.Backward,m.y=r*Math.abs((t.top+h.height-a)/h.height)):!u&&c>=t.bottom-h.height&&(p.y=ey.Forward,m.y=r*Math.abs((t.bottom-h.height-c)/h.height)),!f&&s>=t.right-h.width?(p.x=ey.Forward,m.x=r*Math.abs((t.right-h.width-s)/h.width)):!d&&o<=t.left+h.width&&(p.x=ey.Backward,m.x=r*Math.abs((t.left+h.width-o)/h.width)),{direction:p,speed:m}}function ay(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function oy(e){return e.reduce((e,t)=>tv(e,$v(t)),wv)}function sy(e){return e.reduce((e,t)=>e+Zv(t),0)}function cy(e){return e.reduce((e,t)=>e+Qv(t),0)}function ly(e,t){if(t===void 0&&(t=Uv),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);Yv(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:`center`,inline:`center`})}var uy=[[`x`,[`left`,`right`],sy],[`y`,[`top`,`bottom`],cy]],dy=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=Jv(t),r=oy(n);this.rect={...e},this.width=e.width,this.height=e.height;for(let[e,t,i]of uy)for(let a of t)Object.defineProperty(this,a,{get:()=>{let t=i(n),o=r[e]-t;return this.rect[a]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},fy=class{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>this.target?.removeEventListener(...e))},this.target=e}add(e,t,n){var r;(r=this.target)==null||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}};function py(e){let{EventTarget:t}=B_(e);return e instanceof t?e:W_(e)}function my(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return typeof t==`number`?Math.sqrt(n**2+r**2)>t:`x`in t&&`y`in t?n>t.x&&r>t.y:`x`in t?n>t.x:`y`in t&&r>t.y}var hy;(function(e){e.Click=`click`,e.DragStart=`dragstart`,e.Keydown=`keydown`,e.ContextMenu=`contextmenu`,e.Resize=`resize`,e.SelectionChange=`selectionchange`,e.VisibilityChange=`visibilitychange`})(hy||={});function gy(e){e.preventDefault()}function _y(e){e.stopPropagation()}var Q;(function(e){e.Space=`Space`,e.Down=`ArrowDown`,e.Right=`ArrowRight`,e.Left=`ArrowLeft`,e.Up=`ArrowUp`,e.Esc=`Escape`,e.Enter=`Enter`,e.Tab=`Tab`})(Q||={});var vy={start:[Q.Space,Q.Enter],cancel:[Q.Esc],end:[Q.Space,Q.Enter,Q.Tab]},yy=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Q.Right:return{...n,x:n.x+25};case Q.Left:return{...n,x:n.x-25};case Q.Down:return{...n,y:n.y+25};case Q.Up:return{...n,y:n.y-25}}},by=class{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new fy(W_(t)),this.windowListeners=new fy(B_(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(hy.Resize,this.handleCancel),this.windowListeners.add(hy.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(hy.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&ly(n),t(wv)}handleKeyDown(e){if(iv(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=vy,coordinateGetter:a=yy,scrollBehavior:o=`smooth`}=r,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:c}=n.current,l=c?{x:c.left,y:c.top}:wv;this.referenceCoordinates||=l;let u=a(e,{active:t,context:n.current,currentCoordinates:l});if(u){let t=nv(u,l),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:s,isLeft:c,isBottom:l,maxScroll:d,minScroll:f}=ny(n),p=ay(n),m={x:Math.min(i===Q.Right?p.right-p.width/2:p.right,Math.max(i===Q.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(i===Q.Down?p.bottom-p.height/2:p.bottom,Math.max(i===Q.Down?p.top:p.top+p.height/2,u.y))},h=i===Q.Right&&!s||i===Q.Left&&!c,g=i===Q.Down&&!l||i===Q.Up&&!a;if(h&&m.x!==u.x){let e=n.scrollLeft+t.x,a=i===Q.Right&&e<=d.x||i===Q.Left&&e>=f.x;if(a&&!t.y){n.scrollTo({left:e,behavior:o});return}r.x=a?n.scrollLeft-e:i===Q.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}if(g&&m.y!==u.y){let e=n.scrollTop+t.y,a=i===Q.Down&&e<=d.y||i===Q.Up&&e>=f.y;if(a&&!t.x){n.scrollTo({top:e,behavior:o});return}r.y=a?n.scrollTop-e:i===Q.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,tv(nv(u,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};by.activators=[{eventName:`onKeyDown`,handler:(e,t,n)=>{let{keyboardCodes:r=vy,onActivation:i}=t,{active:a}=n,{code:o}=e.nativeEvent;if(r.start.includes(o)){let t=a.activatorNode.current;return t&&e.target!==t?!1:(e.preventDefault(),i?.({event:e.nativeEvent}),!0)}return!1}}];function xy(e){return!!(e&&`distance`in e)}function Sy(e){return!!(e&&`delay`in e)}var Cy=class{constructor(e,t,n){n===void 0&&(n=py(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:r}=e,{target:i}=r;this.props=e,this.events=t,this.document=W_(i),this.documentListeners=new fy(this.document),this.listeners=new fy(n),this.windowListeners=new fy(B_(i)),this.initialCoordinates=ov(r)??wv,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(hy.Resize,this.handleCancel),this.windowListeners.add(hy.DragStart,gy),this.windowListeners.add(hy.VisibilityChange,this.handleCancel),this.windowListeners.add(hy.ContextMenu,gy),this.documentListeners.add(hy.Keydown,this.handleKeydown),t){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Sy(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(xy(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(hy.Click,_y,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(hy.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){let{activated:t,initialCoordinates:n,props:r}=this,{onMove:i,options:{activationConstraint:a}}=r;if(!n)return;let o=ov(e)??wv,s=nv(n,o);if(!t&&a){if(xy(a)){if(a.tolerance!=null&&my(s,a.tolerance))return this.handleCancel();if(my(s,a.distance))return this.handleStart()}if(Sy(a)&&my(s,a.tolerance))return this.handleCancel();this.handlePending(a,s)}else e.cancelable&&e.preventDefault(),i(o)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===Q.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}},wy={cancel:{name:`pointercancel`},move:{name:`pointermove`},end:{name:`pointerup`}},Ty=class extends Cy{constructor(e){let{event:t}=e,n=W_(t.target);super(e,wy,n)}};Ty.activators=[{eventName:`onPointerDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var Ey={move:{name:`mousemove`},end:{name:`mouseup`}},Dy;(function(e){e[e.RightClick=2]=`RightClick`})(Dy||={});var Oy=class extends Cy{constructor(e){super(e,Ey,W_(e.event.target))}};Oy.activators=[{eventName:`onMouseDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==Dy.RightClick&&(r?.({event:n}),!0)}}];var ky={cancel:{name:`touchcancel`},move:{name:`touchmove`},end:{name:`touchend`}},Ay=class extends Cy{constructor(e){super(e,ky)}static setup(){return window.addEventListener(ky.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ky.move.name,e)};function e(){}}};Ay.activators=[{eventName:`onTouchStart`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return i.length>1?!1:(r?.({event:n}),!0)}}];var jy;(function(e){e[e.Pointer=0]=`Pointer`,e[e.DraggableRect=1]=`DraggableRect`})(jy||={});var My;(function(e){e[e.TreeOrder=0]=`TreeOrder`,e[e.ReversedTreeOrder=1]=`ReversedTreeOrder`})(My||={});function Ny(e){let{acceleration:n,activator:r=jy.Pointer,canScroll:i,draggingRect:a,enabled:o,interval:s=5,order:c=My.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:p}=e,m=Fy({delta:f,disabled:!o}),[h,g]=q_(),_=(0,t.useRef)({x:0,y:0}),v=(0,t.useRef)({x:0,y:0}),y=(0,t.useMemo)(()=>{switch(r){case jy.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case jy.DraggableRect:return a}},[r,a,l]),b=(0,t.useRef)(null),x=(0,t.useCallback)(()=>{let e=b.current;if(!e)return;let t=_.current.x*v.current.x,n=_.current.y*v.current.y;e.scrollBy(t,n)},[]),S=(0,t.useMemo)(()=>c===My.TreeOrder?[...u].reverse():u,[c,u]);(0,t.useEffect)(()=>{if(!o||!u.length||!y)g();else{for(let e of S){if(i?.(e)===!1)continue;let t=u.indexOf(e),r=d[t];if(!r)continue;let{direction:a,speed:o}=iy(e,r,y,n,p);for(let e of[`x`,`y`])m[e][a[e]]||(o[e]=0,a[e]=0);if(o.x>0||o.y>0){g(),b.current=e,h(x,s),_.current=o,v.current=a;return}}_.current={x:0,y:0},v.current={x:0,y:0},g()}},[n,x,i,g,o,s,JSON.stringify(y),JSON.stringify(m),h,u,S,d,JSON.stringify(p)])}var Py={x:{[ey.Backward]:!1,[ey.Forward]:!1},y:{[ey.Backward]:!1,[ey.Forward]:!1}};function Fy(e){let{delta:t,disabled:n}=e,r=Z_(t);return Y_(e=>{if(n||!r||!e)return Py;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[ey.Backward]:e.x[ey.Backward]||i.x===-1,[ey.Forward]:e.x[ey.Forward]||i.x===1},y:{[ey.Backward]:e.y[ey.Backward]||i.y===-1,[ey.Forward]:e.y[ey.Forward]||i.y===1}}},[n,t,r])}function Iy(e,t){let n=t==null?void 0:e.get(t),r=n?n.node.current:null;return Y_(e=>t==null?null:r??e??null,[r,t])}function Ly(e,n){return(0,t.useMemo)(()=>e.reduce((e,t)=>{let{sensor:r}=t,i=r.activators.map(e=>({eventName:e.eventName,handler:n(e.handler,t)}));return[...e,...i]},[]),[e,n])}var Ry;(function(e){e[e.Always=0]=`Always`,e[e.BeforeDragging=1]=`BeforeDragging`,e[e.WhileDragging=2]=`WhileDragging`})(Ry||={});var zy;(function(e){e.Optimized=`optimized`})(zy||={});var By=new Map;function Vy(e,n){let{dragging:r,dependencies:i,config:a}=n,[o,s]=(0,t.useState)(null),{frequency:c,measure:l,strategy:u}=a,d=(0,t.useRef)(e),f=_(),p=J_(f),m=(0,t.useCallback)(function(e){e===void 0&&(e=[]),!p.current&&s(t=>t===null?e:t.concat(e.filter(e=>!t.includes(e))))},[p]),h=(0,t.useRef)(null),g=Y_(t=>{if(f&&!r)return By;if(!t||t===By||d.current!==e||o!=null){let t=new Map;for(let n of e){if(!n)continue;if(o&&o.length>0&&!o.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new dy(l(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,o,r,f,l]);return(0,t.useEffect)(()=>{d.current=e},[e]),(0,t.useEffect)(()=>{f||m()},[r,f]),(0,t.useEffect)(()=>{o&&o.length>0&&s(null)},[JSON.stringify(o)]),(0,t.useEffect)(()=>{f||typeof c!=`number`||h.current!==null||(h.current=setTimeout(()=>{m(),h.current=null},c))},[c,f,m,...i]),{droppableRects:g,measureDroppableContainers:m,measuringScheduled:o!=null};function _(){switch(u){case Ry.Always:return!1;case Ry.BeforeDragging:return r;default:return!r}}}function Hy(e,t){return Y_(n=>e?n||(typeof t==`function`?t(e):e):null,[t,e])}function Uy(e,t){return Hy(e,t)}function Wy(e){let{callback:n,disabled:r}=e,i=K_(n),a=(0,t.useMemo)(()=>{if(r||typeof window>`u`||window.MutationObserver===void 0)return;let{MutationObserver:e}=window;return new e(i)},[i,r]);return(0,t.useEffect)(()=>()=>a?.disconnect(),[a]),a}function Gy(e){let{callback:n,disabled:r}=e,i=K_(n),a=(0,t.useMemo)(()=>{if(r||typeof window>`u`||window.ResizeObserver===void 0)return;let{ResizeObserver:e}=window;return new e(i)},[r]);return(0,t.useEffect)(()=>()=>a?.disconnect(),[a]),a}function Ky(e){return new dy(Uv(e),e)}function qy(e,n,r){n===void 0&&(n=Ky);let[i,a]=(0,t.useState)(null);function o(){a(t=>{if(!e)return null;if(e.isConnected===!1)return t??r??null;let i=n(e);return JSON.stringify(t)===JSON.stringify(i)?t:i})}let s=Wy({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if(t===`childList`&&r instanceof HTMLElement&&r.contains(e)){o();break}}}}),c=Gy({callback:o});return G_(()=>{o(),e?(c?.observe(e),s?.observe(document.body,{childList:!0,subtree:!0})):(c?.disconnect(),s?.disconnect())},[e]),i}function Jy(e){return Lv(e,Hy(e))}var Yy=[];function Xy(e){let n=(0,t.useRef)(e),r=Y_(t=>e?t&&t!==Yy&&e&&n.current&&e.parentNode===n.current.parentNode?t:Jv(e):Yy,[e]);return(0,t.useEffect)(()=>{n.current=e},[e]),r}function Zy(e){let[n,r]=(0,t.useState)(null),i=(0,t.useRef)(e),a=(0,t.useCallback)(e=>{let t=Xv(e.target);t&&r(e=>e?(e.set(t,$v(t)),new Map(e)):null)},[]);return(0,t.useEffect)(()=>{let t=i.current;if(e!==t){n(t);let o=e.map(e=>{let t=Xv(e);return t?(t.addEventListener(`scroll`,a,{passive:!0}),[t,$v(t)]):null}).filter(e=>e!=null);r(o.length?new Map(o):null),i.current=e}return()=>{n(e),n(t)};function n(e){e.forEach(e=>{Xv(e)?.removeEventListener(`scroll`,a)})}},[a,e]),(0,t.useMemo)(()=>e.length?n?Array.from(n.values()).reduce((e,t)=>tv(e,t),wv):oy(e):wv,[e,n])}function Qy(e,n){n===void 0&&(n=[]);let r=(0,t.useRef)(null);return(0,t.useEffect)(()=>{r.current=null},n),(0,t.useEffect)(()=>{let t=e!==wv;t&&!r.current&&(r.current=e),!t&&r.current&&(r.current=null)},[e]),r.current?nv(e,r.current):wv}function $y(e){(0,t.useEffect)(()=>{if(!L_)return;let t=e.map(e=>{let{sensor:t}=e;return t.setup==null?void 0:t.setup()});return()=>{for(let e of t)e?.()}},e.map(e=>{let{sensor:t}=e;return t}))}function eb(e,n){return(0,t.useMemo)(()=>e.reduce((e,t)=>{let{eventName:r,handler:i}=t;return e[r]=e=>{i(e,n)},e},{}),[e,n])}function tb(e){return(0,t.useMemo)(()=>e?Gv(e):null,[e])}var nb=[];function rb(e,n){n===void 0&&(n=Uv);let[r]=e,i=tb(r?B_(r):null),[a,o]=(0,t.useState)(nb);function s(){o(()=>e.length?e.map(e=>ty(e)?i:new dy(n(e),e)):nb)}let c=Gy({callback:s});return G_(()=>{c?.disconnect(),s(),e.forEach(e=>c?.observe(e))},[e]),a}function ib(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return H_(t)?t:e}function ab(e){let{measure:n}=e,[r,i]=(0,t.useState)(null),a=Gy({callback:(0,t.useCallback)(e=>{for(let{target:t}of e)if(H_(t)){i(e=>{let r=n(t);return e?{...e,width:r.width,height:r.height}:r});break}},[n])}),[o,s]=X_((0,t.useCallback)(e=>{let t=ib(e);a?.disconnect(),t&&a?.observe(t),i(t?n(t):null)},[n,a]));return(0,t.useMemo)(()=>({nodeRef:o,rect:r,setRef:s}),[r,o,s])}var ob=[{sensor:Ty,options:{}},{sensor:by,options:{}}],sb={current:{}},cb={draggable:{measure:Wv},droppable:{measure:Wv,strategy:Ry.WhileDragging,frequency:zy.Optimized},dragOverlay:{measure:Uv}},lb=class extends Map{get(e){return e==null?void 0:super.get(e)??void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){return this.get(e)?.node.current??void 0}},ub={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new lb,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:xv},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:cb,measureDroppableContainers:xv,windowRect:null,measuringScheduled:!1},db={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:``},dispatch:xv,draggableNodes:new Map,over:null,measureDroppableContainers:xv},fb=(0,t.createContext)(db),pb=(0,t.createContext)(ub);function mb(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new lb}}}function hb(e,t){switch(t.type){case bv.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case bv.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case bv.DragEnd:case bv.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case bv.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new lb(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case bv.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let o=new lb(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case bv.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new lb(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function gb(e){let{disabled:n}=e,{active:r,activatorEvent:i,draggableNodes:a}=(0,t.useContext)(fb),o=Z_(i),s=Z_(r?.id);return(0,t.useEffect)(()=>{if(!n&&!i&&o&&s!=null){if(!iv(o)||document.activeElement===o.target)return;let e=a.get(s);if(!e)return;let{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=lv(e);if(t){t.focus();break}}})}},[i,n,a,s,o]),null}function _b(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}function vb(e){return(0,t.useMemo)(()=>({draggable:{...cb.draggable,...e?.draggable},droppable:{...cb.droppable,...e?.droppable},dragOverlay:{...cb.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function yb(e){let{activeNode:n,measure:r,initialRect:i,config:a=!0}=e,o=(0,t.useRef)(!1),{x:s,y:c}=typeof a==`boolean`?{x:a,y:a}:a;G_(()=>{if(!s&&!c||!n){o.current=!1;return}if(o.current||!i)return;let e=n?.node.current;if(!e||e.isConnected===!1)return;let t=Lv(r(e),i);if(s||(t.x=0),c||(t.y=0),o.current=!0,Math.abs(t.x)>0||Math.abs(t.y)>0){let n=Yv(e);n&&n.scrollBy({top:t.y,left:t.x})}},[n,s,c,i,r])}var bb=(0,t.createContext)({...wv,scaleX:1,scaleY:1}),xb;(function(e){e[e.Uninitialized=0]=`Uninitialized`,e[e.Initializing=1]=`Initializing`,e[e.Initialized=2]=`Initialized`})(xb||={});var Sb=(0,t.memo)(function(e){let{id:n,accessibility:i,autoScroll:a=!0,children:o,sensors:s=ob,collisionDetection:c=Fv,measuring:l,modifiers:u,...d}=e,[f,p]=(0,t.useReducer)(hb,void 0,mb),[m,h]=gv(),[g,_]=(0,t.useState)(xb.Uninitialized),v=g===xb.Initialized,{draggable:{active:y,nodes:b,translate:x},droppable:{containers:S}}=f,C=y==null?null:b.get(y),w=(0,t.useRef)({initial:null,translated:null}),T=(0,t.useMemo)(()=>y==null?null:{id:y,data:C?.data??sb,rect:w},[y,C]),E=(0,t.useRef)(null),[D,O]=(0,t.useState)(null),[k,A]=(0,t.useState)(null),j=J_(d,Object.values(d)),M=$_(`DndDescribedBy`,n),N=(0,t.useMemo)(()=>S.getEnabled(),[S]),P=vb(l),{droppableRects:F,measureDroppableContainers:I,measuringScheduled:L}=Vy(N,{dragging:v,dependencies:[x.x,x.y],config:P.droppable}),R=Iy(b,y),ee=(0,t.useMemo)(()=>k?ov(k):null,[k]),te=ke(),z=Uy(R,P.draggable.measure);yb({activeNode:y==null?null:b.get(y),config:te.layoutShiftCompensation,initialRect:z,measure:P.draggable.measure});let B=qy(R,P.draggable.measure,z),ne=qy(R?R.parentElement:null),re=(0,t.useRef)({activatorEvent:null,active:null,activeNode:R,collisionRect:null,collisions:null,droppableRects:F,draggableNodes:b,draggingNode:null,draggingNodeRect:null,droppableContainers:S,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),V=S.getNodeFor(re.current.over?.id),ie=ab({measure:P.dragOverlay.measure}),ae=ie.nodeRef.current??R,oe=v?ie.rect??B:null,se=!!(ie.nodeRef.current&&ie.rect),ce=Jy(se?null:B),le=tb(ae?B_(ae):null),ue=Xy(v?V??R:null),de=rb(ue),fe=_b(u,{transform:{x:x.x-ce.x,y:x.y-ce.y,scaleX:1,scaleY:1},activatorEvent:k,active:T,activeNodeRect:B,containerNodeRect:ne,draggingNodeRect:oe,over:re.current.over,overlayNodeRect:ie.rect,scrollableAncestors:ue,scrollableAncestorRects:de,windowRect:le}),pe=ee?tv(ee,x):null,me=Zy(ue),he=Qy(me),ge=Qy(me,[B]),_e=tv(fe,he),ve=oe?zv(oe,fe):null,ye=T&&ve?c({active:T,collisionRect:ve,droppableRects:F,droppableContainers:N,pointerCoordinates:pe}):null,be=Av(ye,`id`),[xe,Se]=(0,t.useState)(null),Ce=Iv(se?fe:tv(fe,ge),xe?.rect??null,B),we=(0,t.useRef)(null),Te=(0,t.useCallback)((e,t)=>{let{sensor:n,options:i}=t;if(E.current==null)return;let a=b.get(E.current);if(!a)return;let o=e.nativeEvent,s=new n({active:E.current,activeNode:a,event:o,options:i,context:re,onAbort(e){if(!b.get(e))return;let{onDragAbort:t}=j.current,n={id:e};t?.(n),m({type:`onDragAbort`,event:n})},onPending(e,t,n,r){if(!b.get(e))return;let{onDragPending:i}=j.current,a={id:e,constraint:t,initialCoordinates:n,offset:r};i?.(a),m({type:`onDragPending`,event:a})},onStart(e){let t=E.current;if(t==null)return;let n=b.get(t);if(!n)return;let{onDragStart:i}=j.current,a={activatorEvent:o,active:{id:t,data:n.data,rect:w}};(0,r.unstable_batchedUpdates)(()=>{i?.(a),_(xb.Initializing),p({type:bv.DragStart,initialCoordinates:e,active:t}),m({type:`onDragStart`,event:a}),O(we.current),A(o)})},onMove(e){p({type:bv.DragMove,coordinates:e})},onEnd:c(bv.DragEnd),onCancel:c(bv.DragCancel)});we.current=s;function c(e){return async function(){let{active:t,collisions:n,over:i,scrollAdjustedTranslate:a}=re.current,s=null;if(t&&a){let{cancelDrop:r}=j.current;s={activatorEvent:o,active:t,collisions:n,delta:a,over:i},e===bv.DragEnd&&typeof r==`function`&&await Promise.resolve(r(s))&&(e=bv.DragCancel)}E.current=null,(0,r.unstable_batchedUpdates)(()=>{p({type:e}),_(xb.Uninitialized),Se(null),O(null),A(null),we.current=null;let t=e===bv.DragEnd?`onDragEnd`:`onDragCancel`;if(s){let e=j.current[t];e?.(s),m({type:t,event:s})}})}}},[b]),Ee=Ly(s,(0,t.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=b.get(r);if(E.current!==null||!a||i.dndKit||i.defaultPrevented)return;let o={active:a};e(n,t.options,o)===!0&&(i.dndKit={capturedBy:t.sensor},E.current=r,Te(n,t))},[b,Te]));$y(s),G_(()=>{B&&g===xb.Initializing&&_(xb.Initialized)},[B,g]),(0,t.useEffect)(()=>{let{onDragMove:e}=j.current,{active:t,activatorEvent:n,collisions:i,over:a}=re.current;if(!t||!n)return;let o={active:t,activatorEvent:n,collisions:i,delta:{x:_e.x,y:_e.y},over:a};(0,r.unstable_batchedUpdates)(()=>{e?.(o),m({type:`onDragMove`,event:o})})},[_e.x,_e.y]),(0,t.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:i,scrollAdjustedTranslate:a}=re.current;if(!e||E.current==null||!t||!a)return;let{onDragOver:o}=j.current,s=i.get(be),c=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:a.x,y:a.y},over:c};(0,r.unstable_batchedUpdates)(()=>{Se(c),o?.(l),m({type:`onDragOver`,event:l})})},[be]),G_(()=>{re.current={activatorEvent:k,active:T,activeNode:R,collisionRect:ve,collisions:ye,droppableRects:F,draggableNodes:b,draggingNode:ae,draggingNodeRect:oe,droppableContainers:S,over:xe,scrollableAncestors:ue,scrollAdjustedTranslate:_e},w.current={initial:oe,translated:ve}},[T,R,ye,ve,b,ae,oe,F,S,xe,ue,_e]),Ny({...te,delta:x,draggingRect:ve,pointerCoordinates:pe,scrollableAncestors:ue,scrollableAncestorRects:de});let De=(0,t.useMemo)(()=>({active:T,activeNode:R,activeNodeRect:B,activatorEvent:k,collisions:ye,containerNodeRect:ne,dragOverlay:ie,draggableNodes:b,droppableContainers:S,droppableRects:F,over:xe,measureDroppableContainers:I,scrollableAncestors:ue,scrollableAncestorRects:de,measuringConfiguration:P,measuringScheduled:L,windowRect:le}),[T,R,B,k,ye,ne,ie,b,S,F,xe,I,ue,de,P,L,le]),Oe=(0,t.useMemo)(()=>({activatorEvent:k,activators:Ee,active:T,activeNodeRect:B,ariaDescribedById:{draggable:M},dispatch:p,draggableNodes:b,over:xe,measureDroppableContainers:I}),[k,Ee,T,B,p,M,b,xe,I]);return t.default.createElement(mv.Provider,{value:h},t.default.createElement(fb.Provider,{value:Oe},t.default.createElement(pb.Provider,{value:De},t.default.createElement(bb.Provider,{value:Ce},o)),t.default.createElement(gb,{disabled:i?.restoreFocus===!1})),t.default.createElement(yv,{...i,hiddenTextDescribedById:M}));function ke(){let e=D?.autoScrollEnabled===!1,t=typeof a==`object`?a.enabled===!1:a===!1,n=v&&!e&&!t;return typeof a==`object`?{...a,enabled:n}:{enabled:n}}}),Cb=(0,t.createContext)(null),wb=`button`,Tb=`Draggable`;function Eb(e){let{id:n,data:r,disabled:i=!1,attributes:a}=e,o=$_(Tb),{activators:s,activatorEvent:c,active:l,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:p}=(0,t.useContext)(fb),{role:m=wb,roleDescription:h=`draggable`,tabIndex:g=0}=a??{},_=l?.id===n,v=(0,t.useContext)(_?bb:Cb),[y,b]=X_(),[x,S]=X_(),C=eb(s,n),w=J_(r);return G_(()=>(f.set(n,{id:n,key:o,node:y,activatorNode:x,data:w}),()=>{let e=f.get(n);e&&e.key===o&&f.delete(n)}),[f,n]),{active:l,activatorEvent:c,activeNodeRect:u,attributes:(0,t.useMemo)(()=>({role:m,tabIndex:g,"aria-disabled":i,"aria-pressed":_&&m===wb?!0:void 0,"aria-roledescription":h,"aria-describedby":d.draggable}),[i,m,g,_,h,d.draggable]),isDragging:_,listeners:i?void 0:C,node:y,over:p,setNodeRef:b,setActivatorNodeRef:S,transform:v}}function Db(){return(0,t.useContext)(pb)}var Ob=`Droppable`,kb={timeout:25};function Ab(e){let{data:n,disabled:r=!1,id:i,resizeObserverConfig:a}=e,o=$_(Ob),{active:s,dispatch:c,over:l,measureDroppableContainers:u}=(0,t.useContext)(fb),d=(0,t.useRef)({disabled:r}),f=(0,t.useRef)(!1),p=(0,t.useRef)(null),m=(0,t.useRef)(null),{disabled:h,updateMeasurementsFor:g,timeout:_}={...kb,...a},v=J_(g??i),y=Gy({callback:(0,t.useCallback)(()=>{f.current?(m.current!=null&&clearTimeout(m.current),m.current=setTimeout(()=>{u(Array.isArray(v.current)?v.current:[v.current]),m.current=null},_)):f.current=!0},[_]),disabled:h||!s}),[b,x]=X_((0,t.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),f.current=!1),e&&y.observe(e))},[y])),S=J_(n);return(0,t.useEffect)(()=>{y&&b.current&&(y.disconnect(),f.current=!1,y.observe(b.current))},[b,y]),(0,t.useEffect)(()=>(c({type:bv.RegisterDroppable,element:{id:i,key:o,disabled:r,node:b,rect:p,data:S}}),()=>c({type:bv.UnregisterDroppable,key:o,id:i})),[i]),(0,t.useEffect)(()=>{r!==d.current.disabled&&(c({type:bv.SetDroppableDisabled,id:i,key:o,disabled:r}),d.current.disabled=r)},[i,o,r,c]),{active:s,rect:p,isOver:l?.id===i,node:b,over:l,setNodeRef:x}}function jb(e){let{animation:n,children:r}=e,[i,a]=(0,t.useState)(null),[o,s]=(0,t.useState)(null),c=Z_(r);return!r&&!i&&c&&a(c),G_(()=>{if(!o)return;let e=i?.key,t=i?.props.id;e==null||t==null?a(null):Promise.resolve(n(t,o)).then(()=>{a(null)})},[n,i,o]),t.default.createElement(t.default.Fragment,null,r,i?(0,t.cloneElement)(i,{ref:s}):null)}var Mb={x:0,y:0,scaleX:1,scaleY:1};function Nb(e){let{children:n}=e;return t.default.createElement(fb.Provider,{value:db},t.default.createElement(bb.Provider,{value:Mb},n))}var Pb={position:`fixed`,touchAction:`none`},Fb=e=>iv(e)?`transform 250ms ease`:void 0,Ib=(0,t.forwardRef)((e,n)=>{let{as:r,activatorEvent:i,adjustScale:a,children:o,className:s,rect:c,style:l,transform:u,transition:d=Fb}=e;if(!c)return null;let f=a?u:{...u,scaleX:1,scaleY:1},p={...Pb,width:c.width,height:c.height,top:c.top,left:c.left,transform:sv.Transform.toString(f),transformOrigin:a&&i?Ev(i,c):void 0,transition:typeof d==`function`?d(i):d,...l};return t.default.createElement(r,{className:s,style:p,ref:n},o)}),Lb={duration:250,easing:`ease`,keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:sv.Transform.toString(t)},{transform:sv.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:r}=t,i={},{styles:a,className:o}=e;if(a!=null&&a.active)for(let[e,t]of Object.entries(a.active))t!==void 0&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(a!=null&&a.dragOverlay)for(let[e,t]of Object.entries(a.dragOverlay))t!==void 0&&r.node.style.setProperty(e,t);return o!=null&&o.active&&n.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(let[e,t]of Object.entries(i))n.node.style.setProperty(e,t);o!=null&&o.active&&n.node.classList.remove(o.active)}})({styles:{active:{opacity:`0`}}})};function Rb(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return K_((e,a)=>{if(t===null)return;let o=n.get(e);if(!o)return;let s=o.node.current;if(!s)return;let c=ib(a);if(!c)return;let{transform:l}=B_(a).getComputedStyle(a),u=Bv(l);if(!u)return;let d=typeof t==`function`?t:zb(t);return ly(s,i.draggable.measure),d({active:{id:e,data:o.data,node:s,rect:i.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:a,rect:i.dragOverlay.measure(c)},droppableContainers:r,measuringConfiguration:i,transform:u})})}function zb(e){let{duration:t,easing:n,sideEffects:r,keyframes:i}={...Lb,...e};return e=>{let{active:a,dragOverlay:o,transform:s,...c}=e;if(!t)return;let l={x:o.rect.left-a.rect.left,y:o.rect.top-a.rect.top},u={scaleX:s.scaleX===1?1:a.rect.width*s.scaleX/o.rect.width,scaleY:s.scaleY===1?1:a.rect.height*s.scaleY/o.rect.height},d={x:s.x-l.x,y:s.y-l.y,...u},f=i({...c,active:a,dragOverlay:o,transform:{initial:s,final:d}}),[p]=f,m=f[f.length-1];if(JSON.stringify(p)===JSON.stringify(m))return;let h=r?.({active:a,dragOverlay:o,...c}),g=o.node.animate(f,{duration:t,easing:n,fill:`forwards`});return new Promise(e=>{g.onfinish=()=>{h?.(),e()}})}}var Bb=0;function Vb(e){return(0,t.useMemo)(()=>{if(e!=null)return Bb++,Bb},[e])}var Hb=t.default.memo(e=>{let{adjustScale:n=!1,children:r,dropAnimation:i,style:a,transition:o,modifiers:s,wrapperElement:c=`div`,className:l,zIndex:u=999}=e,{activatorEvent:d,active:f,activeNodeRect:p,containerNodeRect:m,draggableNodes:h,droppableContainers:g,dragOverlay:_,over:v,measuringConfiguration:y,scrollableAncestors:b,scrollableAncestorRects:x,windowRect:S}=Db(),C=(0,t.useContext)(bb),w=Vb(f?.id),T=_b(s,{activatorEvent:d,active:f,activeNodeRect:p,containerNodeRect:m,draggingNodeRect:_.rect,over:v,overlayNodeRect:_.rect,scrollableAncestors:b,scrollableAncestorRects:x,transform:C,windowRect:S}),E=Hy(p),D=Rb({config:i,draggableNodes:h,droppableContainers:g,measuringConfiguration:y}),O=E?_.setRef:void 0;return t.default.createElement(Nb,null,t.default.createElement(jb,{animation:D},f&&w?t.default.createElement(Ib,{key:w,id:f.id,ref:O,as:c,activatorEvent:d,adjustScale:n,className:l,transition:o,rect:E,style:{zIndex:u,...a},transform:T},r):null))});function Ub(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function Wb(e,t){return e.reduce((e,n,r)=>{let i=t.get(n);return i&&(e[r]=i),e},Array(e.length))}function Gb(e){return e!==null&&e>=0}function Kb(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function qb(e){return typeof e==`boolean`?{draggable:e,droppable:e}:e}var Jb=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e,a=Ub(t,r,n),o=t[i],s=a[i];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},Yb=`Sortable`,Xb=t.default.createContext({activeIndex:-1,containerId:Yb,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Jb,disabled:{draggable:!1,droppable:!1}});function Zb(e){let{children:n,id:r,items:i,strategy:a=Jb,disabled:o=!1}=e,{active:s,dragOverlay:c,droppableRects:l,over:u,measureDroppableContainers:d}=Db(),f=$_(Yb,r),p=c.rect!==null,m=(0,t.useMemo)(()=>i.map(e=>typeof e==`object`&&`id`in e?e.id:e),[i]),h=s!=null,g=s?m.indexOf(s.id):-1,_=u?m.indexOf(u.id):-1,v=(0,t.useRef)(m),y=!Kb(m,v.current),b=_!==-1&&g===-1||y,x=qb(o);G_(()=>{y&&h&&d(m)},[y,m,h,d]),(0,t.useEffect)(()=>{v.current=m},[m]);let S=(0,t.useMemo)(()=>({activeIndex:g,containerId:f,disabled:x,disableTransforms:b,items:m,overIndex:_,useDragOverlay:p,sortedRects:Wb(m,l),strategy:a}),[g,f,x.draggable,x.droppable,b,m,_,l,p,a]);return t.default.createElement(Xb.Provider,{value:S},n)}var Qb=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return Ub(n,r,i).indexOf(t)},$b=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:a,newIndex:o,previousItems:s,previousContainerId:c,transition:l}=e;return!l||!r||s!==a&&i===o?!1:n?!0:o!==i&&t===c},ex={duration:200,easing:`ease`},tx=`transform`,nx=sv.Transition.toString({property:tx,duration:0,easing:`linear`}),rx={roleDescription:`sortable`};function ix(e){let{disabled:n,index:r,node:i,rect:a}=e,[o,s]=(0,t.useState)(null),c=(0,t.useRef)(r);return G_(()=>{if(!n&&r!==c.current&&i.current){let e=a.current;if(e){let t=Uv(i.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&s(n)}}r!==c.current&&(c.current=r)},[n,r,i,a]),(0,t.useEffect)(()=>{o&&s(null)},[o]),o}function ax(e){let{animateLayoutChanges:n=$b,attributes:r,disabled:i,data:a,getNewIndex:o=Qb,id:s,strategy:c,resizeObserverConfig:l,transition:u=ex}=e,{items:d,containerId:f,activeIndex:p,disabled:m,disableTransforms:h,sortedRects:g,overIndex:_,useDragOverlay:v,strategy:y}=(0,t.useContext)(Xb),b=ox(i,m),x=d.indexOf(s),S=(0,t.useMemo)(()=>({sortable:{containerId:f,index:x,items:d},...a}),[f,a,x,d]),C=(0,t.useMemo)(()=>d.slice(d.indexOf(s)),[d,s]),{rect:w,node:T,isOver:E,setNodeRef:D}=Ab({id:s,data:S,disabled:b.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...l}}),{active:O,activatorEvent:k,activeNodeRect:A,attributes:j,setNodeRef:M,listeners:N,isDragging:P,over:F,setActivatorNodeRef:I,transform:L}=Eb({id:s,data:S,attributes:{...rx,...r},disabled:b.draggable}),R=I_(D,M),ee=!!O,te=ee&&!h&&Gb(p)&&Gb(_),z=!v&&P,B=te?(z&&te?L:null)??(c??y)({rects:g,activeNodeRect:A,activeIndex:p,overIndex:_,index:x}):null,ne=Gb(p)&&Gb(_)?o({id:s,items:d,activeIndex:p,overIndex:_}):x,re=O?.id,V=(0,t.useRef)({activeId:re,items:d,newIndex:ne,containerId:f}),ie=d!==V.current.items,ae=n({active:O,containerId:f,isDragging:P,isSorting:ee,id:s,index:x,items:d,newIndex:V.current.newIndex,previousItems:V.current.items,previousContainerId:V.current.containerId,transition:u,wasDragging:V.current.activeId!=null}),oe=ix({disabled:!ae,index:x,node:T,rect:w});return(0,t.useEffect)(()=>{ee&&V.current.newIndex!==ne&&(V.current.newIndex=ne),f!==V.current.containerId&&(V.current.containerId=f),d!==V.current.items&&(V.current.items=d)},[ee,ne,f,d]),(0,t.useEffect)(()=>{if(re===V.current.activeId)return;if(re!=null&&V.current.activeId==null){V.current.activeId=re;return}let e=setTimeout(()=>{V.current.activeId=re},50);return()=>clearTimeout(e)},[re]),{active:O,activeIndex:p,attributes:j,data:S,rect:w,index:x,newIndex:ne,items:d,isOver:E,isSorting:ee,isDragging:P,listeners:N,node:T,overIndex:_,over:F,setNodeRef:R,setActivatorNodeRef:I,setDroppableNodeRef:D,setDraggableNodeRef:M,transform:oe??B,transition:se()};function se(){if(oe||ie&&V.current.newIndex===x)return nx;if(!(z&&!iv(k)||!u)&&(ee||ae))return sv.Transition.toString({...u,property:tx})}}function ox(e,t){return typeof e==`boolean`?{draggable:e,droppable:!1}:{draggable:e?.draggable??t.draggable,droppable:e?.droppable??t.droppable}}function sx(e){if(!e)return!1;let t=e.data.current;return!!(t&&`sortable`in t&&typeof t.sortable==`object`&&`containerId`in t.sortable&&`items`in t.sortable&&`index`in t.sortable)}var cx=[Q.Down,Q.Right,Q.Up,Q.Left],lx=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:a,over:o,scrollableAncestors:s}}=t;if(cx.includes(e.code)){if(e.preventDefault(),!n||!r)return;let t=[];a.getEnabled().forEach(n=>{if(!n||n!=null&&n.disabled)return;let a=i.get(n.id);if(a)switch(e.code){case Q.Down:r.top<a.top&&t.push(n);break;case Q.Up:r.top>a.top&&t.push(n);break;case Q.Left:r.left>a.left&&t.push(n);break;case Q.Right:r.left<a.left&&t.push(n)}});let c=Nv({active:n,collisionRect:r,droppableRects:i,droppableContainers:t,pointerCoordinates:null}),l=Av(c,`id`);if(l===o?.id&&c.length>1&&(l=c[1].id),l!=null){let e=a.get(n.id),t=a.get(l),o=t?i.get(t.id):null,c=t?.node.current;if(c&&o&&e&&t){let n=Jv(c).some((e,t)=>s[t]!==e),i=ux(e,t),a=dx(e,t),l=n||!i?{x:0,y:0}:{x:a?r.width-o.width:0,y:a?r.height-o.height:0},u={x:o.left,y:o.top};return l.x&&l.y?u:nv(u,l)}}}};function ux(e,t){return!sx(e)||!sx(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function dx(e,t){return!sx(e)||!sx(t)||!ux(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}function fx({item:e,index:t,renderItem:r,renderDragIndicator:i,keyExtractor:a,disabled:o=!1}){let{attributes:s,listeners:c,setNodeRef:l,transform:u,transition:d,isDragging:f}=ax({id:a(e),disabled:o}),p={transform:sv.Transform.toString(u),transition:d};return(0,n.jsxs)(`div`,{ref:l,style:p,className:`uhuu:relative uhuu:group/drag-item ${f?`uhuu:opacity-50`:``} ${o?`uhuu:opacity-60`:``}`,children:[r(e,t,f),!o&&(i?(0,n.jsx)(`div`,{...s,...c,children:i(e,t)}):(0,n.jsx)(`div`,{...s,...c,className:`uhuu:absolute uhuu:inset-0 uhuu:cursor-grab uhuu:active:cursor-grabbing uhuu:outline-none uhuu:touch-none`}))]})}function px({item:e,index:t,renderItem:r}){return(0,n.jsx)(`div`,{className:`uhuu:rotate-2`,children:r(e,t,!0)})}function mx({items:e,onChange:t,renderItem:r,renderDragIndicator:i,keyExtractor:a,gridColsClass:o=`uhuu-page-drag-drop-grid-cols`,className:s=``,renderToolbar:c,renderEmptyState:l,showDebugInfo:u=!1,renderDragOverlay:d,isItemDisabled:f,canDropAt:m}){let[h,g]=(0,p.useState)(e);(0,p.useEffect)(()=>{g(e)},[e]);let[_,v]=(0,p.useState)(null),y=Cv(Sv(Ty),Sv(by,{coordinateGetter:lx})),b=e=>{let t=h.find(t=>a(t)===e.active.id);t&&f&&f(t)||v(e.active.id)},x=e=>{let{active:n,over:r}=e;if(!r||n.id===r.id){v(null);return}let i=h.find(e=>a(e)===n.id),o=h.findIndex(e=>a(e)===n.id),s=h.findIndex(e=>a(e)===r.id);if(i&&f&&f(i))v(null);else if(m&&!m(i,s,h))v(null);else{if(o!==-1&&s!==-1){let e=Ub(h,o,s);g(e),t(e)}v(null)}},S=h.find(e=>a(e)===_),C=S?h.findIndex(e=>a(e)===_):-1;return(0,n.jsxs)(`div`,{className:`uhuu:w-full ${s}`,children:[c&&(0,n.jsx)(`div`,{className:`uhuu:mb-6`,children:c()}),h.length===0&&l?l():(0,n.jsx)(`div`,{className:`uhuu:mb-6`,children:(0,n.jsxs)(Sb,{sensors:y,collisionDetection:Mv,onDragStart:b,onDragEnd:x,children:[(0,n.jsx)(Zb,{items:h.map(a),strategy:Jb,children:(0,n.jsx)(`div`,{className:o,children:h.map((e,t)=>(0,n.jsx)(fx,{item:e,index:t,renderItem:r,renderDragIndicator:i,keyExtractor:a,disabled:f?f(e):!1},a(e)))})}),(0,n.jsx)(Hb,{children:S?d?(0,n.jsx)(`div`,{className:`uhuu:rotate-2 uhuu:shadow-lg`,children:d(S,C)}):(0,n.jsx)(px,{item:S,index:C,renderItem:r}):null})]})}),u&&(0,n.jsxs)(`div`,{"data-uhuu-editor":!0,className:`uhuu:fixed uhuu:top-4 uhuu:left-4 uhuu:bg-(--uhuu-shell-surface) uhuu:rounded-lg uhuu:border uhuu:shadow-lg uhuu:p-3 uhuu:text-sm uhuu:max-w-xs`,children:[(0,n.jsx)(`div`,{className:`uhuu:font-medium uhuu:mb-1`,children:`Debug Info`}),(0,n.jsxs)(`div`,{className:`uhuu:text-gray-600 uhuu:text-xs`,children:[`Items: `,h.length,` | Active: `,_||`none`]}),(0,n.jsxs)(`div`,{className:`uhuu:text-xs uhuu:text-gray-500 uhuu:mt-1 uhuu:break-all`,children:[`Order: `,h.map((e,t)=>`${t+1}:${a(e).slice(0,3)}`).join(` → `)]})]})]})}var hx=Ca(`uhuu:inline-flex uhuu:items-center uhuu:rounded-md uhuu:border uhuu:px-2.5 uhuu:py-0.5 uhuu:text-xs uhuu:font-medium uhuu:transition-colors uhuu:focus:outline-none uhuu:focus:ring-2 uhuu:focus:ring-offset-2`,{variants:{variant:{default:`uhuu:border-transparent uhuu:bg-gray-900 uhuu:text-(--uhuu-shell-on-inverse)`,secondary:`uhuu:border-transparent uhuu:bg-gray-100 uhuu:text-gray-900`,outline:`uhuu:border-gray-300 uhuu:text-gray-900 uhuu:bg-(--uhuu-shell-surface)`}},defaultVariants:{variant:`default`}});function gx({className:e,variant:t,...r}){return(0,n.jsx)(`div`,{className:G(hx({variant:t}),e),...r})}function _x({page:e,index:t,isDragging:r}){let{t:i,localize:a}=Hi(),o=e.strictPosition,s=o===`start`||o===`end`;return(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:justify-center uhuu:border uhuu:relative uhuu:rounded-lg uhuu:bg-(--uhuu-shell-surface) uhuu:overflow-hidden uhuu:transition-all ${r?`uhuu:opacity-50 uhuu:border-gray-400 uhuu:shadow-xl uhuu:scale-105`:s?`uhuu:border-gray-300 uhuu:bg-gray-50`:`uhuu:border-gray-200 uhuu:group-hover/drag-item:border-gray-300 uhuu:group-hover/drag-item:shadow-md`}`,children:[(0,n.jsx)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:justify-center`,style:{width:`200px`,height:`280px`},children:e.content||(0,n.jsxs)(`div`,{className:`uhuu:text-center uhuu:p-4`,children:[(0,n.jsx)(`div`,{className:`uhuu:text-sm uhuu:font-medium uhuu:text-gray-700`,children:a(e.label)||i(`page.fallbackName`,{number:t+1})}),(0,n.jsx)(`div`,{className:`uhuu:text-xs uhuu:text-gray-400 uhuu:mt-1 uhuu:font-mono`,children:e.id})]})}),(0,n.jsx)(`div`,{className:`uhuu:absolute uhuu:top-2 uhuu:left-2 uhuu:z-20`,children:(0,n.jsx)(gx,{variant:`secondary`,className:`uhuu:text-xs uhuu:min-w-[24px] uhuu:h-6 uhuu:font-medium uhuu:bg-(--uhuu-shell-surface)/95 uhuu:backdrop-blur-sm uhuu:flex uhuu:items-center uhuu:justify-center uhuu:shadow-sm uhuu:border uhuu:border-gray-200 ${s?`uhuu:opacity-75`:``}`,children:s?(0,n.jsx)(Gr,{className:`uhuu:size-3 uhuu:text-gray-500`}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`span`,{className:`uhuu:group-hover/drag-item:hidden`,children:t+1}),(0,n.jsx)(Wr,{className:`uhuu:size-4 uhuu:text-gray-400 uhuu:hidden uhuu:group-hover/drag-item:block`})]})})})]})}function vx({open:e,onOpenChange:t,pages:r,onReorder:i,onRemove:a,renderThumbnail:o,pageComponents:s,payload:c,setup:l,title:u,description:d,gridColsClass:f=`uhuu-page-order-grid-cols`}){let m=Hi(),{t:h,localize:g}=m,_=g(u)??h(`reorderDialog.title`),v=g(d)??h(`reorderDialog.description`),[y,b]=p.useState(r),[x,S]=p.useState(!1),C=p.useCallback(e=>e.id,[]);p.useEffect(()=>{if(!e)b(r),S(!1);else if(!x)b(r);else{let e=new Set(y.map(C));(e.size!==r.length||r.some(t=>!e.has(C(t))))&&b(r)}},[r,e,x,y,C]);let w=e=>{b(e),S(!0)},T=()=>{i(y),S(!1),t(!1)},E=()=>{b(r),S(!1),t(!1)},D=p.useMemo(()=>(!o||typeof o!=`function`)&&s?P_({pageComponents:s,payload:c,setup:l,i18n:m}):null,[o,s,c,l,m]),O=(e,t,r)=>{let i=e.strictPosition,s=!!a&&i!==`start`&&i!==`end`,c=t=>{t.preventDefault(),t.stopPropagation(),a&&(a(e),b(t=>t.filter(t=>C(t)!==C(e))),S(!0))},l=o&&typeof o==`function`?o(e,t,r):D?D(e,t,r):(0,n.jsx)(_x,{page:e,index:t,isDragging:r});return(0,n.jsxs)(`div`,{className:`uhuu:relative uhuu:inline-block uhuu:align-top`,children:[l,s&&(0,n.jsxs)(`button`,{type:`button`,title:h(`reorderDialog.remove`),onClick:c,onPointerDown:e=>e.stopPropagation(),className:`uhuu:group/remove-btn uhuu:absolute uhuu:-top-3 uhuu:-right-3 uhuu:z-30 uhuu:hidden uhuu:h-6 uhuu:w-6 uhuu:items-center uhuu:justify-center uhuu:rounded-full uhuu:bg-(--uhuu-shell-surface)/50 uhuu:hover:bg-(--uhuu-shell-surface) uhuu:text-gray-900 uhuu:backdrop-blur-md uhuu:group-hover/drag-item:flex uhuu:border uhuu:border-gray-200`,children:[(0,n.jsx)(Wr,{className:`uhuu:size-3.5 uhuu:opacity-60 uhuu:group-hover/remove-btn:hidden`}),(0,n.jsx)(Yr,{className:`uhuu:size-3.5 uhuu:rotate-45 uhuu:hidden uhuu:group-hover/remove-btn:block`})]})]})},k=()=>(0,n.jsxs)(`div`,{className:`uhuu:text-center uhuu:py-20`,children:[(0,n.jsx)(`div`,{className:`uhuu:w-12 uhuu:h-12 uhuu:bg-gray-50 uhuu:rounded-lg uhuu:flex uhuu:items-center uhuu:justify-center uhuu:mx-auto uhuu:mb-3`,children:(0,n.jsx)(Fr,{className:`uhuu:w-6 uhuu:h-6 uhuu:text-gray-400`})}),(0,n.jsx)(`div`,{className:`uhuu:text-base uhuu:font-medium uhuu:text-gray-900 uhuu:mb-1`,children:h(`reorderDialog.emptyTitle`)}),(0,n.jsx)(`p`,{className:`uhuu:text-sm uhuu:text-gray-500`,children:h(`reorderDialog.emptyDescription`)})]}),A=p.useCallback(e=>{let t=e.strictPosition;return t===`start`||t===`end`},[]),j=p.useCallback((e,t,n)=>{let r=e.strictPosition;if(r===`start`||r===`end`)return!1;let i=-1,a=n.length;for(let e=0;e<n.length;e++){let t=n[e].strictPosition;t===`start`?i=e:t===`end`&&a===n.length&&(a=e)}return!(t<=i||t>=a)},[]);return(0,n.jsx)(C_,{open:e,onOpenChange:e=>{e||E()},children:(0,n.jsxs)(E_,{side:`bottom`,className:`uhuu:h-[90vh] uhuu:p-0 uhuu:gap-0 uhuu:w-full uhuu:max-w-none uhuu:flex uhuu:flex-col uhuu:[&>button]:hidden`,onPointerDownOutside:e=>{e.preventDefault()},onEscapeKeyDown:e=>{e.preventDefault()},"data-uhuu-editor":!0,children:[(0,n.jsx)(D_,{className:`uhuu:border-b uhuu:border-gray-200 uhuu:p-4`,children:(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:items-end uhuu:gap-3`,children:[(0,n.jsx)(`div`,{className:`uhuu:w-8 uhuu:h-8 uhuu:bg-gray-100 uhuu:rounded-full uhuu:flex uhuu:items-center uhuu:justify-center uhuu:shrink-0 uhuu:mb-0.5`,children:(0,n.jsx)(Fr,{className:`uhuu:w-4 uhuu:h-4`})}),(0,n.jsxs)(`div`,{className:`uhuu:flex-1`,children:[(0,n.jsx)(k_,{className:`uhuu:text-base uhuu:font-medium uhuu:text-gray-900 uhuu:leading-tight`,children:_}),(0,n.jsx)(A_,{className:`uhuu:text-xs uhuu:text-gray-400 uhuu:mt-0.5`,children:v})]}),(0,n.jsx)(gx,{variant:`outline`,className:`uhuu:text-xs uhuu:mb-0.5 uhuu:mr-8`,children:h(`page.count`,{count:y.length})})]})}),(0,n.jsx)(`div`,{className:`uhuu:flex-1 uhuu:overflow-hidden uhuu:flex uhuu:flex-col`,children:(0,n.jsx)(`div`,{className:`uhuu:flex-1 uhuu:overflow-auto uhuu:p-6 uhuu:bg-gray-50`,children:(0,n.jsx)(mx,{items:y,onChange:w,renderItem:O,keyExtractor:C,renderEmptyState:k,gridColsClass:f,className:`uhuu:pb-4`,isItemDisabled:A,canDropAt:j})})}),(0,n.jsxs)(O_,{className:`uhuu:border-t uhuu:border-gray-200 uhuu:px-4 uhuu:py-3 uhuu:gap-3`,children:[(0,n.jsx)(Ta,{variant:`outline`,onClick:E,children:h(`reorderDialog.cancel`)}),(0,n.jsx)(Ta,{variant:`default`,onClick:T,disabled:!x,children:h(`reorderDialog.save`)})]})]})})}var yx=typeof window>`u`?p.useEffect:p.useLayoutEffect,bx=1e3,xx=new Set;function Sx(e,t){return Array.from(e.querySelectorAll(t)).filter(e=>!e.closest(`[${De}]`))}function Cx({pageKey:e,version:t,readiness:r,onMeasurement:i,onPrune:a,children:o}){let[s]=p.useState(()=>({mounted:!0})),c=p.useRef(null),[l,u]=p.useState(0),d=p.useCallback(()=>{u(e=>e+1);let e=!1;return()=>{e||(e=!0,u(e=>e-1))}},[]);yx(()=>(s.mounted=!0,()=>{s.mounted=!1}),[s]);let f=p.useCallback(()=>{let t=c.current;if(!s.mounted||!t)return;let n=new Set(Sx(t,`[data-uhuu-flow="true"]`).map(e=>e.dataset.uhuuFlowId??``));a?.(e,n)},[s,e,a]);yx(()=>{f();let t=c.current;if(!t||Sx(t,`[data-uhuu-flow-area]`).length){t?.removeAttribute(`data-uhuu-flow-error`);return}if(t.setAttribute(`data-uhuu-flow-error`,`missing-flow-region`),!L()||xx.has(e))return;let n=setTimeout(()=>{t.isConnected&&!Sx(t,`[data-uhuu-flow-area]`).length&&(xx.add(e),console.warn(`[uhuu-components] Page "${e}" is marked hasFlow but renders no Static.FlowArea, so data-uhuu-pagination stays "measuring". Render a FlowArea with one Static.Flow in every branch (an empty Flow is one page), or remove hasFlow.`))},bx);return()=>clearTimeout(n)});let m=p.useCallback((t,n)=>i(e,t,n),[e,i]),h=p.useCallback(()=>f(),[f]),g=p.useMemo(()=>({mode:`measure`,pageIndex:0,measurementVersion:t,pageKey:e,readiness:r,registerMeasurement:m,unregisterMeasurement:h,requestContinuation:d}),[t,e,r,m,h,d]),_=p.useMemo(()=>({mode:`measure`,pageIndex:1,measurementVersion:t,pageKey:e,copy:`continuation`}),[t,e]);return(0,n.jsxs)(`div`,{ref:c,style:{position:`fixed`,visibility:`hidden`,pointerEvents:`none`,left:`-100000px`,top:0,width:`calc(var(--uhuu-page-width) + 2 * var(--uhuu-page-bleed))`,height:`calc(var(--uhuu-page-height) + 2 * var(--uhuu-page-bleed))`,minWidth:`calc(var(--uhuu-page-width) + 2 * var(--uhuu-page-bleed))`,minHeight:`calc(var(--uhuu-page-height) + 2 * var(--uhuu-page-bleed))`,overflow:`hidden`,zIndex:-1},"aria-hidden":`true`,"data-uhuu-flow-measurement":`true`,children:[o(g),l>0&&(0,n.jsx)(`div`,{"data-uhuu-flow-continuation-copy":`true`,children:o(_)})]})}function wx({pageId:e,templateId:t,componentKey:r,component:i,payload:a,pagePayload:o,integration:s,page:c,parentGroup:l,setup:u,reference:d,overlay:f,className:m,pageNo:h=0,totalPages:g,measurementPageNo:_,measurementTotalPages:v,dataBinding:y,flowPageIndex:b=0,flowChunksByFlowId:x,measureFlow:S=!1,flowMeasurementKey:C,flowMeasurementVersion:w,flowReadiness:T,onFlowMeasurement:E,onFlowPrune:D,renderVisible:O=!0,renderMode:k=`sheet`,spread:A}){let j=typeof f==`function`?t=>f({pageNo:t,pageId:e}):()=>f,M=r||t||e,N=[M?`uhuu-page--${M}`:``,m].filter(Boolean).join(` `),P=(u=h,d=g,f=c)=>i?(0,n.jsx)(i,{payload:a,pagePayload:o,integration:s,pageId:e,templateId:t??r??e,pageNum:u,totalPages:d,page:f,parentGroup:l,componentKey:r,dataBinding:y,spread:A}):null,L=p.useMemo(()=>({mode:`visible`,pageIndex:b,chunksByFlowId:x}),[b,x]),R=p.useMemo(()=>c&&{first:{...c,virtualPageIndex:0,virtualPageCount:1},continuation:{...c,virtualPageIndex:1,virtualPageCount:2}},[c]);return k===`content`?(0,n.jsxs)(n.Fragment,{children:[d,(0,n.jsx)(Oe.Provider,{value:L,children:P(h,g)})]}):(0,n.jsxs)(n.Fragment,{children:[S&&E&&C&&(0,n.jsx)(Cx,{pageKey:C,version:w,readiness:T,onMeasurement:E,onPrune:D,children:e=>{let t=e.copy===`continuation`,r=_??h,i=v??g;return(0,n.jsx)(F,{setup:u,children:(0,n.jsx)(I,{className:N,pageNo:h,"data-page-key":M,children:(0,n.jsx)(Oe.Provider,{value:e,children:t?P(r+1,i===void 0?void 0:i+1,R?.continuation):P(r,i,R?.first)})})})}}),O&&(0,n.jsx)(F,{setup:u,children:(0,n.jsxs)(I,{className:N,pageNo:h,overlay:({pageNo:e})=>j(e),"data-page-key":M,children:[d,(0,n.jsx)(Oe.Provider,{value:L,children:P(h,g)})]})})]})}var Tx=p.forwardRef(({className:e,children:t,...r},i)=>(0,n.jsx)(`select`,{className:G(`uhuu:flex uhuu:h-8 uhuu:w-full uhuu:rounded-md uhuu:border uhuu:border-gray-200 uhuu:bg-(--uhuu-shell-surface) uhuu:px-2.5 uhuu:py-1 uhuu:text-sm uhuu:text-gray-900 uhuu:outline-none uhuu:transition-colors uhuu:focus:border-gray-400 uhuu:focus:ring-2 uhuu:focus:ring-gray-200 uhuu:focus:ring-offset-0 uhuu:disabled:cursor-not-allowed uhuu:disabled:opacity-50`,e),ref:i,...r,children:t}));Tx.displayName=`Select`;var Ex=Object.defineProperty,Dx=(e,t)=>Ex(e,`name`,{value:t,configurable:!0}),Ox=`Switch`,[kx,Ax]=Ba(Ox),[jx,Mx]=kx(Ox);function Nx(e){let{__scopeSwitch:t,checked:r,children:i,defaultChecked:a,disabled:o,form:s,name:c,onCheckedChange:l,required:u,value:d=`on`,internal_do_not_use_render:f}=e,[m,h]=Za({prop:r,defaultProp:a??!1,onChange:l,caller:Ox}),[g,_]=p.useState(null),[v,y]=p.useState(null),b=p.useRef(!1),[x,S]=p.useReducer(e=>e+1,0),C={checked:m,setChecked:h,disabled:o,control:g,setControl:_,name:c,form:s,value:d,hasConsumerStoppedPropagationRef:b,userInteractionCount:x,onUserInteraction:S,required:u,defaultChecked:a,isFormControl:!g||!!s||!!g.closest(`form`),bubbleInput:v,setBubbleInput:y};return(0,n.jsx)(jx,{scope:t,...C,children:Vx(f)?f(C):i})}Dx(Nx,`SwitchProvider`);var Px=`SwitchTrigger`,Fx=p.forwardRef(Dx(function({__scopeSwitch:e,onClick:t,...r},i){let{control:a,form:o,value:s,disabled:c,checked:l,required:u,setControl:d,setChecked:f,hasConsumerStoppedPropagationRef:m,onUserInteraction:h,isFormControl:g,bubbleInput:_}=Mx(Px,e),v=q(i,d),y=p.useRef(l);return p.useEffect(()=>{let e=o?a?.ownerDocument.getElementById(o):a?.form;if(e instanceof HTMLFormElement){let t=Dx(()=>f(y.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,o,f]),(0,n.jsx)(J.button,{type:`button`,role:`switch`,"aria-checked":l,"aria-required":u,"data-state":Hx(l),"data-disabled":c?``:void 0,disabled:c,value:s,...r,ref:v,onClick:K(t,e=>{h(),f(e=>!e),_&&g&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})},`SwitchTrigger`)),Ix=p.forwardRef(Dx(function(e,t){let{__scopeSwitch:r,name:i,checked:a,defaultChecked:o,required:s,disabled:c,value:l,onCheckedChange:u,form:d,...f}=e;return(0,n.jsx)(Nx,{__scopeSwitch:r,checked:a,defaultChecked:o,disabled:c,required:s,onCheckedChange:u,name:i,form:d,value:l,internal_do_not_use_render:({isFormControl:e})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Fx,{...f,ref:t,__scopeSwitch:r}),e&&(0,n.jsx)(Bx,{__scopeSwitch:r})]})})},`Switch`)),Lx=`SwitchThumb`,Rx=p.forwardRef(Dx(function(e,t){let{__scopeSwitch:r,...i}=e,a=Mx(Lx,r);return(0,n.jsx)(J.span,{"data-state":Hx(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t})},`SwitchThumb`)),zx=`SwitchBubbleInput`,Bx=p.forwardRef(Dx(function({__scopeSwitch:e,onClick:t,...r},i){let{control:a,hasConsumerStoppedPropagationRef:o,userInteractionCount:s,checked:c,defaultChecked:l,required:u,disabled:d,name:f,value:m,form:h,bubbleInput:g,setBubbleInput:_}=Mx(zx,e),v=q(i,_),y=Yl(a),b=p.useRef(!1),x=p.useRef(c),S=p.useRef(s);p.useEffect(()=>{let e=g;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=s!==S.current;S.current=s;let i=x.current!==c;x.current=c;let a=!(r&&o.current);if(i&&n){b.current=!r;let t=new Event(`click`,{bubbles:a});n.call(e,c),e.dispatchEvent(t),b.current=!1}},[g,c,o,s]);let C=p.useRef(c);return(0,n.jsx)(J.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:l??C.current,required:u,disabled:d,name:f,value:m,form:h,...r,tabIndex:-1,ref:v,onClick:K(t,e=>{b.current&&e.stopPropagation()}),style:{...r.style,...y,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})},`SwitchBubbleInput`));function Vx(e){return typeof e==`function`}Dx(Vx,`isFunction`);function Hx(e){return e?`checked`:`unchecked`}Dx(Hx,`getState`);var Ux=p.forwardRef(({className:e,...t},r)=>(0,n.jsx)(Ix,{ref:r,className:G(`uhuu:peer uhuu:inline-flex uhuu:h-5 uhuu:w-9 uhuu:shrink-0 uhuu:cursor-pointer uhuu:items-center uhuu:rounded-full uhuu:border-2 uhuu:border-transparent uhuu:bg-gray-200 uhuu:transition-colors uhuu:focus-visible:outline-none uhuu:focus-visible:ring-2 uhuu:focus-visible:ring-gray-400 uhuu:focus-visible:ring-offset-2 uhuu:focus-visible:ring-offset-(--uhuu-shell-surface) uhuu:disabled:cursor-not-allowed uhuu:disabled:opacity-50 uhuu:data-[state=checked]:bg-gray-900 uhuu:data-[state=unchecked]:bg-gray-200`,e),...t,children:(0,n.jsx)(Rx,{className:G(`uhuu:pointer-events-none uhuu:block uhuu:h-4 uhuu:w-4 uhuu:rounded-full uhuu:bg-white uhuu:shadow-lg uhuu:ring-0 uhuu:data-[state=checked]:bg-(--uhuu-shell-on-inverse) uhuu:transition-transform uhuu:data-[state=checked]:translate-x-4 uhuu:data-[state=unchecked]:translate-x-0`)})}));Ux.displayName=Ix.displayName;var Wx=Object.defineProperty,Gx=(e,t)=>Wx(e,`name`,{value:t,configurable:!0});function Kx(e,[t,n]){return Math.min(n,Math.max(t,e))}Gx(Kx,`clamp`);var qx=Object.defineProperty,Jx=(e,t)=>qx(e,`name`,{value:t,configurable:!0});function Yx(e){let t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}Jx(Yx,`usePrevious`);var Xx=Object.defineProperty,$=(e,t)=>Xx(e,`name`,{value:t,configurable:!0}),Zx={Vertical:`vertical`,Horizontal:`horizontal`},Qx={LTR:`ltr`,RTL:`rtl`},$x=[`PageUp`,`PageDown`],eS=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],tS={"from-left":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-right":[`Home`,`PageDown`,`ArrowDown`,`ArrowRight`],"from-bottom":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-top":[`Home`,`PageDown`,`ArrowUp`,`ArrowLeft`]},nS=`Slider`,[rS,iS,aS]=wo(nS),[oS,sS]=Ba(nS,[aS]),[cS,lS]=oS(nS),uS=p.forwardRef($(function(e,t){let{name:r,min:i=0,max:a=100,step:o=1,orientation:s=Zx.Horizontal,disabled:c=!1,minStepsBetweenThumbs:l=0,preserveThumbOrder:u=!1,defaultValue:d=[i],value:f,onValueChange:m=$(()=>{},`onValueChange`),onValueCommit:h=$(()=>{},`onValueCommit`),inverted:g=!1,form:_,...v}=e,y=p.useRef(new Set),b=p.useRef(0),x=p.useRef(!1),S=s===Zx.Horizontal?pS:mS,[C,w]=p.useState(null),T=q(t,w),[E=[],D]=Za({prop:f,defaultProp:d,onChange:$(e=>{[...y.current][b.current]?.focus({preventScroll:!0,focusVisible:x.current}),x.current=!1,m(e)},`onChange`)}),O=p.useRef(E),k=p.useRef(E);p.useEffect(()=>{let e=_?C?.ownerDocument.getElementById(_):C?.closest(`form`);if(e instanceof HTMLFormElement){let t=$(()=>D(k.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[C,_,D]);function A(e){N(e,MS(E,e))}$(A,`handleSlideStart`);function j(e){N(e,b.current)}$(j,`handleSlideMove`);function M(){String(E)!==String(O.current)&&h(E)}$(M,`handleSlideEnd`);function N(e,t,{commit:n}={commit:!1}){let r=LS(o),s=Kx(RS(Math.round((e-i)/o)*o+i,r),[i,a]);D((e=[])=>{let r=l*o,c=u?Kx(s,[e[t-1]===void 0?i:e[t-1]+r,e[t+1]===void 0?a:e[t+1]-r]):s,d=kS(e,c,t);if(FS(d,r)){b.current=u?t:d.indexOf(c);let r=String(d)!==String(e);return r&&n&&h(d),r?d:e}return e})}return $(N,`updateValues`),(0,n.jsx)(cS,{scope:e.__scopeSlider,name:r,disabled:c,min:i,max:a,valueIndexToChangeRef:b,thumbs:y.current,values:E,orientation:s,form:_,children:(0,n.jsx)(rS.Provider,{scope:e.__scopeSlider,children:(0,n.jsx)(rS.Slot,{scope:e.__scopeSlider,children:(0,n.jsx)(S,{"aria-disabled":c,"data-disabled":c?``:void 0,...v,ref:T,onPointerDown:K(v.onPointerDown,()=>{c||(O.current=E,x.current=!1)}),min:i,max:a,inverted:g,onSlideStart:c?void 0:A,onSlideMove:c?void 0:j,onSlideEnd:c?void 0:M,onHomeKeyDown:()=>{c||(x.current=!0,N(i,0,{commit:!0}))},onEndKeyDown:()=>{c||(x.current=!0,N(a,E.length-1,{commit:!0}))},onStepKeyDown:({event:e,direction:t})=>{if(!c){x.current=!0;let n=$x.includes(e.key)||e.shiftKey&&eS.includes(e.key)?10:1,r=b.current,a=E[r];N(zS(a,{min:i,step:o,direction:t,multiplier:n}),r,{commit:!0})}}})})})})},`Slider`)),[dS,fS]=oS(nS,{startEdge:`left`,endEdge:`right`,size:`width`,direction:1}),pS=p.forwardRef($(function(e,t){let{min:r,max:i,dir:a,inverted:o,onSlideStart:s,onSlideMove:c,onSlideEnd:l,onStepKeyDown:u,...d}=e,[f,m]=p.useState(null),h=q(t,m),g=p.useRef(void 0),_=zo(a),v=_===Qx.LTR,y=v&&!o||!v&&o;function b(e){let t=g.current||f.getBoundingClientRect(),n=IS([0,t.width],y?[r,i]:[i,r]);return g.current=t,n(e-t.left)}return $(b,`getValueFromPointer`),(0,n.jsx)(dS,{scope:e.__scopeSlider,startEdge:y?`left`:`right`,endEdge:y?`right`:`left`,direction:y?1:-1,size:`width`,children:(0,n.jsx)(hS,{dir:_,"data-orientation":`horizontal`,...d,ref:h,style:{...d.style,"--radix-slider-thumb-transform":`translateX(-50%)`},onSlideStart:e=>{let t=b(e.clientX);s?.(t)},onSlideMove:e=>{let t=b(e.clientX);c?.(t)},onSlideEnd:()=>{g.current=void 0,l?.()},onStepKeyDown:e=>{let t=tS[y?`from-left`:`from-right`].includes(e.key);u?.({event:e,direction:t?-1:1})}})})},`SliderHorizontal`)),mS=p.forwardRef($(function(e,t){let{min:r,max:i,inverted:a,onSlideStart:o,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...u}=e,d=p.useRef(null),f=q(t,d),m=p.useRef(void 0),h=!a;function g(e){let t=m.current||d.current.getBoundingClientRect(),n=IS([0,t.height],h?[i,r]:[r,i]);return m.current=t,n(e-t.top)}return $(g,`getValueFromPointer`),(0,n.jsx)(dS,{scope:e.__scopeSlider,startEdge:h?`bottom`:`top`,endEdge:h?`top`:`bottom`,size:`height`,direction:h?1:-1,children:(0,n.jsx)(hS,{"data-orientation":`vertical`,...u,ref:f,style:{...u.style,"--radix-slider-thumb-transform":`translateY(50%)`},onSlideStart:e=>{let t=g(e.clientY);o?.(t)},onSlideMove:e=>{let t=g(e.clientY);s?.(t)},onSlideEnd:()=>{m.current=void 0,c?.()},onStepKeyDown:e=>{let t=tS[h?`from-bottom`:`from-top`].includes(e.key);l?.({event:e,direction:t?-1:1})}})})},`SliderVertical`)),hS=p.forwardRef($(function(e,t){let{__scopeSlider:r,onSlideStart:i,onSlideMove:a,onSlideEnd:o,onHomeKeyDown:s,onEndKeyDown:c,onStepKeyDown:l,...u}=e,d=lS(nS,r);return(0,n.jsx)(J.span,{...u,ref:t,onKeyDown:K(e.onKeyDown,e=>{e.key===`Home`?(s(e),e.preventDefault()):e.key===`End`?(c(e),e.preventDefault()):$x.concat(eS).includes(e.key)&&(l(e),e.preventDefault())}),onPointerDown:K(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus({preventScroll:!0,focusVisible:!1}):i(e)}),onPointerMove:K(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&a(e)}),onPointerUp:K(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),o(e))})})},`SliderImpl`)),gS=`SliderTrack`,_S=p.forwardRef($(function(e,t){let{__scopeSlider:r,...i}=e,a=lS(gS,r);return(0,n.jsx)(J.span,{"data-disabled":a.disabled?``:void 0,"data-orientation":a.orientation,...i,ref:t})},`SliderTrack`)),vS=`SliderRange`,yS=p.forwardRef($(function(e,t){let{__scopeSlider:r,...i}=e,a=lS(vS,r),o=fS(vS,r),s=q(t,p.useRef(null)),c=a.values.length,l=a.values.map(e=>AS(e,a.min,a.max)),u=c>1?Math.min(...l):0,d=100-Math.max(...l);return(0,n.jsx)(J.span,{"data-orientation":a.orientation,"data-disabled":a.disabled?``:void 0,...i,ref:s,style:{...e.style,[o.startEdge]:u+`%`,[o.endEdge]:d+`%`}})},`SliderRange`)),[bS,xS]=oS(`SliderThumb`),SS=`SliderThumbProvider`;function CS(e){let{__scopeSlider:t,name:r,children:i,internal_do_not_use_render:a}=e,o=lS(SS,t),s=iS(t),[c,l]=p.useState(null),u=p.useMemo(()=>c?s().findIndex(e=>e.ref.current===c):-1,[s,c]),d=Yl(c),f=!c||!!o.form||!!c.closest(`form`),m=o.values[u],h=r??(o.name?o.name+(o.values.length>1?`[]`:``):void 0),g=m===void 0?0:AS(m,o.min,o.max);p.useEffect(()=>{if(c)return o.thumbs.add(c),()=>{o.thumbs.delete(c)}},[c,o.thumbs]);let _={value:m,name:h,form:o.form,isFormControl:f,index:u,thumb:c,onThumbChange:l,percent:g,size:d};return(0,n.jsx)(bS,{scope:t,..._,children:BS(a)?a(_):i})}$(CS,`SliderThumbProvider`);var wS=`SliderThumbTrigger`,TS=p.forwardRef($(function(e,t){let{__scopeSlider:r,...i}=e,a=lS(wS,r),o=fS(wS,r),{index:s,value:c,percent:l,size:u,onThumbChange:d}=xS(wS,r),f=q(t,d),p=jS(s,a.values.length),m=u?.[o.size],h=m?NS(m,l,o.direction):0;return(0,n.jsx)(`span`,{style:{transform:`var(--radix-slider-thumb-transform)`,position:`absolute`,[o.startEdge]:`calc(${l}% + ${h}px)`},children:(0,n.jsx)(rS.ItemSlot,{scope:r,children:(0,n.jsx)(J.span,{role:`slider`,"aria-label":e[`aria-label`]||p,"aria-valuemin":a.min,"aria-valuenow":c,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?``:void 0,tabIndex:a.disabled?void 0:0,...i,ref:f,style:c===void 0?{display:`none`}:e.style,onFocus:K(e.onFocus,()=>{a.valueIndexToChangeRef.current=s})})})})},`SliderThumbTrigger`)),ES=p.forwardRef($(function(e,t){let{__scopeSlider:r,name:i,...a}=e;return(0,n.jsx)(CS,{__scopeSlider:r,name:i,internal_do_not_use_render:({index:e,isFormControl:i})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(TS,{...a,ref:t,__scopeSlider:r}),i?(0,n.jsx)(OS,{__scopeSlider:r},e):null]})})},`SliderThumb`)),DS=`SliderBubbleInput`,OS=p.forwardRef($(function({__scopeSlider:e,...t},r){let{value:i,name:a,form:o}=xS(DS,e),s=p.useRef(null),c=q(s,r),l=Yx(i);return p.useEffect(()=>{let e=s.current;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(l!==i&&n){let t=new Event(`input`,{bubbles:!0});n.call(e,i),e.dispatchEvent(t)}},[l,i]),(0,n.jsx)(J.input,{style:{display:`none`},name:a,form:o,...t,ref:c,defaultValue:i})},`SliderBubbleInput`));function kS(e=[],t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}$(kS,`getNextSortedValues`);function AS(e,t,n){return Kx(100/(n-t)*(e-t),[0,100])}$(AS,`convertValueToPercentage`);function jS(e,t){if(t>2)return`Value ${e+1} of ${t}`;if(t===2)return[`Minimum`,`Maximum`][e]}$(jS,`getLabel`);function MS(e,t){if(e.length===1)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}$(MS,`getClosestValueIndex`);function NS(e,t,n){let r=e/2;return(r-IS([0,50],[0,r])(t)*n)*n}$(NS,`getThumbInBoundsOffset`);function PS(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}$(PS,`getStepsBetweenValues`);function FS(e,t){if(t>0){let n=PS(e);return Math.min(...n)>=t}return!0}$(FS,`hasMinStepsBetweenValues`);function IS(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}$(IS,`linearScale`);function LS(e){if(!Number.isFinite(e))return 0;let t=e.toString();if(t.includes(`e`)){let[e,n]=t.split(`e`),r=e.split(`.`)[1]||``,i=Number(n);return Math.max(0,r.length-i)}let n=t.split(`.`)[1];return n?n.length:0}$(LS,`getDecimalCount`);function RS(e,t){let n=10**t;return Math.round(e*n)/n}$(RS,`roundValue`);function zS(e,{min:t,step:n,direction:r,multiplier:i}){let a=LS(n),o=(e-t)/n,s=Math.round(o),c=RS(s*n+t,a)===RS(e,a),l;return l=c?s+i*r:r>0?Math.ceil(o):Math.floor(o),RS(l*n+t,a)}$(zS,`getNextStepValue`);function BS(e){return typeof e==`function`}$(BS,`isFunction`);var VS=p.forwardRef(({className:e,...t},r)=>(0,n.jsxs)(uS,{ref:r,className:G(`uhuu:relative uhuu:flex uhuu:w-full uhuu:touch-none uhuu:select-none uhuu:items-center uhuu:data-[disabled]:opacity-50`,e),...t,children:[(0,n.jsx)(_S,{className:`uhuu:relative uhuu:h-1.5 uhuu:w-full uhuu:grow uhuu:overflow-hidden uhuu:rounded-full uhuu:bg-gray-200`,children:(0,n.jsx)(yS,{className:`uhuu:absolute uhuu:h-full uhuu:bg-gray-900`})}),(0,n.jsx)(ES,{className:`uhuu:block uhuu:h-4 uhuu:w-4 uhuu:rounded-full uhuu:border-2 uhuu:border-gray-900 uhuu:bg-(--uhuu-shell-surface) uhuu:shadow uhuu:transition-colors uhuu:focus-visible:outline-none uhuu:focus-visible:ring-2 uhuu:focus-visible:ring-gray-400 uhuu:focus-visible:ring-offset-2 uhuu:disabled:pointer-events-none uhuu:disabled:opacity-50`})]}));VS.displayName=uS.displayName;var HS=Object.defineProperty,US=p.forwardRef(((e,t)=>HS(e,`name`,{value:t,configurable:!0}))(function(e,t){return(0,n.jsx)(J.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},`Label`)),WS=p.forwardRef(({className:e,...t},r)=>(0,n.jsx)(US,{ref:r,className:G(`uhuu:text-sm uhuu:font-medium uhuu:leading-none uhuu:text-gray-700 uhuu:peer-disabled:cursor-not-allowed uhuu:peer-disabled:opacity-70`,e),...t}));WS.displayName=US.displayName;function GS(e,t){let n=(e,t)=>!e.appliesTo||(Array.isArray(e.appliesTo)?e.appliesTo:[e.appliesTo]).some(e=>typeof e==`function`?e(t):e===t.id||e===t.templateId||t.componentKey===e);return e.filter(e=>{if(!n(e,t))return!1;let r=e.getValue(t);return e.type===`select`||e.type===`color-series`?r!==``:!0})}function KS({pageOptions:e,targetItem:t,onChange:r}){let{localize:i}=Hi(),a=GS(e,t),o=e=>{let a=e.getValue(t),o=i(e.label);switch(e.type){case`select`:return(0,n.jsxs)(`div`,{className:`uhuu:space-y-1.5`,children:[(0,n.jsx)(WS,{htmlFor:e.id,className:`uhuu:text-xs uhuu:font-medium uhuu:text-gray-500`,children:o}),(0,n.jsx)(Tx,{id:e.id,value:String(a),onChange:n=>r(e,t,n.target.value),className:`uhuu:w-full uhuu:text-sm`,children:e.options.map(e=>(0,n.jsx)(`option`,{value:e.value,children:i(e.label)},e.value))})]},e.id);case`toggle`:{let i=typeof a==`boolean`?a:a===`true`;return(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:justify-between uhuu:py-1.5`,children:[(0,n.jsx)(WS,{htmlFor:e.id,className:`uhuu:text-xs uhuu:font-medium uhuu:text-gray-500`,children:o}),(0,n.jsx)(Ux,{id:e.id,checked:i,onCheckedChange:n=>r(e,t,String(n))})]},e.id)}case`slider`:{let i=typeof a==`number`?a:Number(a)||e.min;return(0,n.jsxs)(`div`,{className:`uhuu:space-y-1.5`,children:[(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:justify-between`,children:[(0,n.jsx)(WS,{htmlFor:e.id,className:`uhuu:text-xs uhuu:font-medium uhuu:text-gray-500`,children:o}),(0,n.jsx)(`span`,{className:`uhuu:text-xs uhuu:font-mono uhuu:tabular-nums uhuu:text-gray-700`,children:i})]}),(0,n.jsx)(VS,{id:e.id,min:e.min,max:e.max,step:e.step,value:[i],onValueChange:n=>r(e,t,String(n[0]))})]},e.id)}case`counter`:{let i=typeof a==`number`?a:Number(a)||e.min;return(0,n.jsxs)(`div`,{className:`uhuu:space-y-1.5`,children:[(0,n.jsx)(WS,{className:`uhuu:text-xs uhuu:font-medium uhuu:text-gray-500`,children:o}),(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:gap-2`,children:[(0,n.jsx)(Ta,{variant:`outline`,size:`sm`,className:`uhuu:h-8 uhuu:w-8 uhuu:shrink-0 uhuu:p-0`,onClick:()=>{let n=Math.max(e.min,i-e.step);r(e,t,String(n))},disabled:i<=e.min,type:`button`,children:(0,n.jsx)(qr,{className:`uhuu:h-3.5 uhuu:w-3.5`})}),(0,n.jsx)(`div`,{className:`uhuu:flex-1 uhuu:text-center uhuu:px-3 uhuu:py-1.5 uhuu:bg-gray-50 uhuu:rounded-md uhuu:border uhuu:border-gray-200`,children:(0,n.jsx)(`span`,{className:`uhuu:text-sm uhuu:font-mono uhuu:tabular-nums uhuu:font-medium uhuu:text-gray-900`,children:i})}),(0,n.jsx)(Ta,{variant:`outline`,size:`sm`,className:`uhuu:h-8 uhuu:w-8 uhuu:shrink-0 uhuu:p-0`,onClick:()=>{let n=Math.min(e.max,i+e.step);r(e,t,String(n))},disabled:i>=e.max,type:`button`,children:(0,n.jsx)(Yr,{className:`uhuu:h-3.5 uhuu:w-3.5`})})]})]},e.id)}case`color-series`:{let s=String(a);return(0,n.jsxs)(`div`,{className:`uhuu:space-y-1.5`,children:[(0,n.jsx)(WS,{className:`uhuu:text-xs uhuu:font-medium uhuu:text-gray-500`,children:o}),(0,n.jsx)(`div`,{className:`uhuu:flex uhuu:flex-wrap uhuu:gap-1.5`,children:e.options.map(a=>{let o=s===a.value,c=i(a.label)??a.value;return(0,n.jsx)(`button`,{onClick:()=>r(e,t,a.value),className:`uhuu:h-7 uhuu:w-7 uhuu:rounded-md uhuu:border-2 uhuu:transition-all uhuu:flex uhuu:items-center uhuu:justify-center ${o?`uhuu:border-gray-900 uhuu:scale-110`:`uhuu:border-gray-200 uhuu:hover:border-gray-400 uhuu:hover:scale-105`}`,style:{backgroundColor:a.hex||a.value},type:`button`,title:`${c}${a.hex?` (${a.hex})`:``}`,children:o&&(0,n.jsx)(Rr,{className:`uhuu:h-4 uhuu:w-4 uhuu:text-white uhuu:drop-shadow-[0_1px_2px_rgba(0,0,0,0.8)]`,strokeWidth:3})},a.value)})})]},e.id)}default:return console.warn(`Unknown option type: ${e.type}`),null}};return(0,n.jsx)(`div`,{className:`uhuu:space-y-3`,children:a.map(e=>o(e))})}function qS({pageOptions:e,targetItem:t,onChange:r,title:i,triggerClassName:a}){let{t:o}=Hi(),s=i??o(`page.optionsMenu`);return!t||GS(e,t).length===0?null:(0,n.jsxs)(em,{modal:!1,children:[(0,n.jsx)(tm,{asChild:!0,className:a||`uhuu-page-options-trigger`,children:(0,n.jsxs)(Ta,{variant:`ghost`,size:`sm`,className:`uhuu:h-7 uhuu:w-7 uhuu:text-gray-400 uhuu:hover:text-gray-600 uhuu:border uhuu:border-transparent uhuu:hover:border-gray-200 uhuu:rounded-md`,title:s,children:[(0,n.jsx)(Ur,{className:`uhuu:w-3.5 uhuu:h-3.5`}),(0,n.jsx)(`span`,{className:`uhuu:sr-only`,children:s})]})}),(0,n.jsx)(am,{className:`uhuu:min-w-48 uhuu:p-3`,align:`center`,children:(0,n.jsx)(KS,{pageOptions:e,targetItem:t,onChange:r})})]})}function JS({name:e,canRename:t,canMoveUp:r,canMoveDown:i,canAddPage:a,canDuplicate:o,canDelete:s,onRename:c,onMoveUp:l,onMoveDown:u,onAddPage:d,onDuplicate:f,onDelete:m}){let{t:h}=Hi(),[g,_]=(0,p.useState)(!1),[v,y]=(0,p.useState)(!1),[b,x]=(0,p.useState)(e),S=(0,p.useRef)(null);(0,p.useEffect)(()=>{x(e)},[e]),(0,p.useEffect)(()=>{v&&setTimeout(()=>{S.current?.focus(),S.current?.select()},10)},[v]);let C=()=>{let t=b.trim();t&&t!==e&&c?.(t),y(!1)},w=r||i||a||o||s;return v?(0,n.jsx)(`input`,{ref:S,value:b,onChange:e=>x(e.target.value),onKeyDown:t=>{t.key===`Enter`&&C(),t.key===`Escape`&&(x(e),y(!1)),t.stopPropagation()},onBlur:C,className:`uhuu:text-xs uhuu:font-medium uhuu:text-gray-800 uhuu:bg-(--uhuu-shell-surface) uhuu:border uhuu:border-blue-400 uhuu:rounded-md uhuu:px-2 uhuu:py-1 uhuu:focus:outline-none uhuu:focus:ring-2 uhuu:focus:ring-blue-400/30 uhuu:max-w-[140px] uhuu:h-7`,"data-uhuu-editor":!0}):t||w?(0,n.jsxs)(em,{open:g,onOpenChange:_,modal:!1,children:[(0,n.jsx)(tm,{asChild:!0,children:(0,n.jsxs)(`button`,{className:`uhuu:flex uhuu:items-center uhuu:gap-1 uhuu:text-xs uhuu:font-medium uhuu:text-gray-700 uhuu:hover:text-gray-900 uhuu:rounded-md uhuu:px-2 uhuu:h-7 uhuu:hover:bg-gray-100 uhuu:transition-colors uhuu:border uhuu:border-transparent uhuu:hover:border-gray-200`,"data-uhuu-editor":!0,children:[(0,n.jsx)(`span`,{className:`uhuu:truncate uhuu:max-w-[120px]`,children:e}),(0,n.jsx)(zr,{className:`uhuu:w-3.5 uhuu:h-3.5 uhuu:text-gray-500 uhuu:shrink-0`})]})}),(0,n.jsxs)(am,{className:`uhuu:min-w-44 uhuu:p-1`,align:`start`,children:[t&&(0,n.jsxs)(om,{onSelect:e=>{e.preventDefault(),_(!1),y(!0)},children:[(0,n.jsx)(Jr,{className:`uhuu:w-3.5 uhuu:h-3.5 uhuu:mr-2`}),h(`page.rename`)]}),t&&w&&(0,n.jsx)(um,{}),r&&(0,n.jsxs)(om,{onClick:l,children:[(0,n.jsx)(Ir,{className:`uhuu:w-3.5 uhuu:h-3.5 uhuu:mr-2`}),h(`page.moveUp`)]}),i&&(0,n.jsxs)(om,{onClick:u,children:[(0,n.jsx)(Pr,{className:`uhuu:w-3.5 uhuu:h-3.5 uhuu:mr-2`}),h(`page.moveDown`)]}),a&&(r||i)&&(0,n.jsx)(um,{}),a&&(0,n.jsxs)(om,{onClick:d,children:[(0,n.jsx)(Yr,{className:`uhuu:w-3.5 uhuu:h-3.5 uhuu:mr-2`}),h(`page.addPage`)]}),o&&(0,n.jsxs)(om,{onClick:f,children:[(0,n.jsx)(Hr,{className:`uhuu:w-3.5 uhuu:h-3.5 uhuu:mr-2`}),h(`page.duplicate`)]}),s&&(0,n.jsx)(um,{}),s&&(0,n.jsxs)(om,{onClick:m,className:`uhuu:text-red-600 uhuu:focus:text-red-700 uhuu:focus:bg-red-50`,children:[(0,n.jsx)(Zr,{className:`uhuu:w-3.5 uhuu:h-3.5 uhuu:mr-2`}),h(`page.delete`)]})]})]}):(0,n.jsx)(`span`,{className:`uhuu:text-xs uhuu:font-medium uhuu:text-gray-600 uhuu:truncate uhuu:max-w-[120px]`,children:e})}function YS(e){if(!e||typeof e!=`object`||!(`binding`in e))return e;let{binding:t,...n}=e;return n}function XS(e,t){return!!v(e?.binding)&&t?.mode===`cover`}function ZS({pageFormat:e={},pageFilter:t,pages:n=[]}={}){let r={active:!1,plan:null,setup:YS(e),warnings:[]};if(!XS(e,t))return r;let i=v(e.binding),a={...T.resolveDimensions(e),bleed:T.clampBleed(e.bleed),binding:i},o=S({...a,coverPages:n}),s=w({...a,coverPageCount:t.coverPageCount??2,coverPages:n,flowCoverPages:n.filter(e=>e&&e.hasFlow).length});return o?{active:!0,plan:o,setup:{...e,binding:i,preview:`single_page`},warnings:s}:{...r,warnings:s}}function QS(e){let{initialItems:t,availableItems:n=[],onItemsChange:r,onStateChange:i,pageComponents:a,payload:o,setup:s,stateKey:c=Uh,resolveNewItem:l,notifyError:u,pageFilter:d}=e,[f,m]=(0,p.useState)(t),[h,g]=(0,p.useState)(!1),_=Hi(),{t:v}=_,y=(0,p.useRef)(t);(0,p.useEffect)(()=>{try{JSON.stringify(y.current)!==JSON.stringify(t)&&(y.current=t,m(t))}catch{y.current!==t&&(y.current=t,m(t))}},[t]);let b=(0,p.useContext)(_g),x=(0,p.useCallback)(e=>{m(e);let t=Zh(e,c);b?.mergePageEditorState&&b.mergePageEditorState(e,c),i?.(t),r?.(e,t)},[r,i,c,b]),S=(0,p.useMemo)(()=>{let e=new Map;return f.forEach(t=>{let n=t.templateId??t.id;e.set(n,(e.get(n)??0)+1),Wh(t)&&t.pages?.forEach(t=>{let n=t.templateId??t.id;e.set(n,(e.get(n)??0)+1)})}),e},[f]),C=(0,p.useMemo)(()=>n.filter(e=>{if(e.kind===`page`){let t=e,n=t.templateId??t.id,r=S.get(n)??0,i=t.repeatable??!1,a=t.maxInstances??null;return!(!i&&r>0||a!==null&&r>=a)}let t=e,n=t.templateId??t.id,r=S.get(n)??0,i=t.repeatable??!1,a=t.maxInstances??null;return!(!i&&r>0||i&&a!==null&&r>=a)}),[n,S]),w=(0,p.useMemo)(()=>qh(f),[f]),T=(0,p.useCallback)(async(e,t)=>{let n=e=>e?typeof e==`string`?e:e.mode??`optional`:`none`,r=(e,t)=>{if(!e)return[];if(Array.isArray(e))return e;try{let n=e(t);if(!Array.isArray(n))return console.error(`[uhuu-components] pageComponentKeys function must return an array, got:`,typeof n),[];let r=n.filter(e=>typeof e==`string`);return r.length!==n.length&&console.warn(`[uhuu-components] pageComponentKeys returned non-string values, filtering them out`),r}catch(e){return console.error(`[uhuu-components] Error evaluating pageComponentKeys function:`,e),[]}},i=(e=>{if(e.kind===`page`){let t=e;return tg(t.templateId??t.id,t.componentKey??t.id,{label:t.label,className:t.className,repeatable:t.repeatable,maxInstances:t.maxInstances,integration:t.integration,strictPosition:t.strictPosition})}let t=e,n=t.templateId??t.id,i={payload:o,item:void 0,parent:void 0};return ng(n,r(t.pageComponentKeys,i),{label:t.label,repeatable:t.repeatable??!1,maxInstances:t.maxInstances??null,integration:t.integration,strictPosition:t.strictPosition})})(e);typeof window<`u`&&window.$uhuu?.debug;let a,s=i;if(l)s=await l(i);else{let e=n(i.integration),t=!1;if(e!==`none`&&typeof window<`u`){let n=window.$uhuu?.requestIntegration?.bind(window.$uhuu);n&&(a=await n({item:i,mode:e}),a==null&&e===`required`&&(t=!0))}if(t)return{success:!1}}if(s===null)return{success:!1};let c=s??i;if(a!==void 0&&b?.setIntegrationPayload){let e=c.id;b.setIntegrationPayload(e,a)}return x(((e,t,n)=>{let r=t.strictPosition;if(r===`start`)return[t,...e];if(r===`end`)return[...e,t];let i=[],a=[],o=[];if(e.forEach(e=>{let t=e.strictPosition;t===`start`?i.push(e):t===`end`?o.push(e):a.push(e)}),!n||n.mode===`end`)return[...i,...a,t,...o];let s=a.findIndex(e=>e.id===n.anchorId);return s===-1?e.find(e=>e.id===n.anchorId)?.strictPosition===`start`?[...i,t,...a,...o]:[...i,...a,t,...o]:(n.mode===`before`?a.splice(s,0,t):a.splice(s+1,0,t),[...i,...a,...o])})(f,c,t)),{success:!0,insertedId:c.id}},[f,x,l,b,o]),E=(0,p.useCallback)(e=>{let t=e=>{u?u(e):alert(e)},n=f.find(t=>t.id===e);if(n){if(qh(f)<=1){t(v(`notice.lastPage`));return}if(b?.removeIntegrationPayload){let e=n.id;b.payload?.integrations?.[e]!==void 0&&b.removeIntegrationPayload(e)}x(f.filter(t=>t.id!==e))}else for(let n of f)if(Wh(n)&&n.pages.some(t=>t.id===e)){if(qh(f)<=1){t(v(`notice.lastPage`));return}if(n.pages.length===1){if(b?.removeIntegrationPayload){let e=n.id;b.payload?.integrations?.[e]!==void 0&&b.removeIntegrationPayload(e)}x(f.filter(e=>e.id!==n.id))}else x(f.map(t=>t.id===n.id&&Wh(t)?{...t,pages:t.pages.filter(t=>t.id!==e)}:t));return}},[f,u,x,b,v]),D=(0,p.useCallback)((e,t)=>{x(f.map(n=>n.id===e?(Wh(n),{...n,...t}):n))},[f,x]),O=(0,p.useCallback)(e=>{x(e)},[x]),k=(0,p.useMemo)(()=>{let e=Kh(f);return d?og(e,d):e},[f,d]),A=(0,p.useCallback)(e=>{let t=[];return k.forEach(n=>{Wh(n)?(n.pages??[]).forEach(r=>{t.push(e(r,n))}):t.push(e(n,n))}),t},[k]),j=(0,p.useMemo)(()=>Jh(k),[k]),M=(0,p.useCallback)(e=>{let t=Yh(e,f);x((e=>{let t=[],n=[],r=[];return e.forEach(e=>{let i=e.strictPosition;i===`start`?t.push(e):i===`end`?r.push(e):n.push(e)}),[...t,...n,...r]})(t))},[f,x]);return{items:f,itemsWithPageNum:k,totalPageCount:w,availableItemsToAdd:C,addItem:T,removeItem:E,updateItemFields:D,reorderItems:O,addDialogOpen:h,setAddDialogOpen:g,openAddDialog:(0,p.useCallback)(()=>{g(!0)},[]),renderItems:A,itemsForReorder:j,handleReorder:M,defaultRenderThumbnail:(0,p.useMemo)(()=>{if(a)return P_({pageComponents:a,payload:o,setup:s,i18n:_})},[a,o,s,_])}}function $S({items:e,reorderItems:t,availableItemsToAdd:n,setPendingInsertPosition:r,openAddDialog:i}){let a=(0,p.useMemo)(()=>e.filter(e=>!e.strictPosition),[e]);return(0,p.useCallback)((o,s)=>{if(!o)return{};let c=o.id,l=a.findIndex(e=>e.id===c),u=l!==-1,d=u&&l>0?()=>{let n=[...e],r=n.findIndex(e=>e.id===c);r<1||([n[r-1],n[r]]=[n[r],n[r-1]],t(n))}:void 0,f=u&&l<a.length-1?()=>{let n=[...e],r=n.findIndex(e=>e.id===c);r<0||r>=n.length-1||([n[r],n[r+1]]=[n[r+1],n[r]],t(n))}:void 0,p=u&&o.repeatable?()=>{let n={...e.find(e=>e.id===c)??o,id:`${c}_copy_${Date.now()}`},r=[...e],i=r.findIndex(e=>e.id===c);r.splice(i<0?r.length:i+1,0,n),t(r)}:void 0;return{onAddPage:s&&n.length>0?()=>{r({mode:`before`,anchorId:s}),i()}:void 0,onMoveUp:d,onMoveDown:f,onDuplicate:p}},[e,a,t,n,r,i])}function eC(e=[],t={}){let n=[],r=1;for(let i of e){let e=i.hasFlow?t[i.flowKey]:void 0,a=Object.values(e?.flows??{}),o=Math.max(1,...a.map(e=>e.length));for(let t=0;t<o;t+=1)n.push({...i,pageNum:r++,virtualPageId:t===0?i.id:`${i.id}__flow_${t+1}`,virtualPageIndex:t,virtualPageCount:o,flowChunksByFlowId:e?.flows})}return n}function tC({logicalPages:e,pageFilter:t,layoutKey:n=``}){let[r,i]=(0,p.useState)({layoutKey:n,layouts:{}}),a=(0,p.useMemo)(()=>r.layoutKey===n?r.layouts:{},[r,n]),o=(0,p.useMemo)(()=>e.filter(e=>e.hasFlow).map(e=>e.flowKey).join(`|`),[e]),s=(0,p.useMemo)(()=>new Set(o?o.split(`|`):[]),[o]),c=(0,p.useMemo)(()=>{let t={};for(let n of e){if(!n.hasFlow)continue;let e=a[n.flowKey];e&&(t[n.flowKey]=e)}return t},[a,e]),l=(0,p.useCallback)((e,t,r)=>{s.has(e)&&i(i=>{let a=i.layoutKey===n?i.layouts:{},o={},c=!1;for(let[e,t]of Object.entries(a))s.has(e)?o[e]=t:c=!0;let l=o[e]??{flows:{},signatures:{},owners:{}},u=l.signatures?.[t.flowId];return i.layoutKey===n&&u===t.signature&&l.owners[t.flowId]===r&&!c?i:{layoutKey:n,layouts:{...o,[e]:{flows:{...l.flows,[t.flowId]:t.chunks},signatures:{...l.signatures,[t.flowId]:t.signature},owners:{...l.owners,[t.flowId]:r}}}}})},[s,n]),u=(0,p.useCallback)((e,t)=>{i(r=>{let i=r.layouts[e];if(r.layoutKey!==n||!i)return r;let a=Object.keys(i.flows).filter(e=>!t.has(e));if(!a.length)return r;let o={...i.flows},s={...i.signatures},c={...i.owners};for(let e of a)delete o[e],delete s[e],delete c[e];return{...r,layouts:{...r.layouts,[e]:{flows:o,signatures:s,owners:c}}}})},[n]),d=(0,p.useMemo)(()=>eC(e,c),[e,c]),f=d.length;return{committedFlowLayouts:c,allVirtualPages:d,renderedVirtualPages:(0,p.useMemo)(()=>d.filter(e=>sg(e.pageNum,f,t??void 0)),[d,f,t]),virtualTotalPageCount:f,registerMeasurement:l,pruneMeasurements:u}}function nC(e,t){return e?t?`${e}.${t}`:e:null}function rC(e,t,n){return t?.meta?.imageGalleryPath??t?.config?.imageGalleryPath??t?.imageGalleryPath??e?.options?.imageGalleryPath??e?.templateSetup?.options?.imageGalleryPath??n?.imageGalleryPath}function iC({payload:e,page:t,parentGroup:n,pagePayload:r,defaults:i}){let a=ug(e,t,n),o=n&&Wh(n)?n.id:void 0,s=`pages.${t.id}`,c=o?`pages.${o}`:null;return{payload:e,pageId:t.id,pagePayload:r,parentGroupId:o,integration:{instanceId:a.instanceId,data:a.integration,path:e=>fg(a.instanceId,e)},paths:{integration:e=>fg(a.instanceId,e),page:e=>nC(s,e),group:e=>nC(c,e),document:e=>e??null},defaults:{imageGalleryPath:rC(e,a.integration,i)}}}var aC=(e,t,n=!1,r,i)=>{let a=typeof e==`string`?e:e.id,o=r?.[a],s=typeof e==`string`?o?.componentKey??a:e.componentKey??o?.componentKey??e.id,c=t??a,l=(typeof e==`string`?void 0:e.repeatable)??o?.repeatable??!1,u=(typeof e==`string`?void 0:e.maxInstances)??o?.maxInstances??null,d=(typeof e==`string`?void 0:e.label)??o?.label,f=(typeof e==`string`?void 0:e.className)??o?.className,p=(typeof e==`string`?void 0:e.component)??o?.component,m=(typeof e==`string`?void 0:e.integration)??o?.integration,h=(typeof e==`string`?void 0:e.strictPosition)??o?.strictPosition,g=(typeof e==`string`?void 0:e.hasFlow)??o?.hasFlow;return n?{kind:`page`,id:a,componentKey:s,templateId:c,label:d,className:f,repeatable:l,maxInstances:u,integration:m,component:p,strictPosition:h,hasFlow:g,...typeof e==`string`?{}:e,...i?{id:i}:{}}:tg(c,s,{label:d,className:f,repeatable:l,maxInstances:u,integration:m,component:p,strictPosition:h,hasFlow:g,...typeof e==`string`?{}:e})},oC=(e,t=!1,n,r,i)=>{let a={payload:n,item:void 0,parent:void 0},o=cC(e.pageComponentKeys,a).map(e=>{let t=r?.[e],n=t?.dataKey,i=t?.hasFlow;return n||i?{key:e,...n?{dataKey:n}:{},...i?{hasFlow:i}:{}}:e});if(t){let t=i??e.id;return{kind:`group`,id:t,templateId:e.id,label:e.label,repeatable:e.repeatable??!1,maxInstances:e.maxInstances??null,integration:e.integration,strictPosition:e.strictPosition,pages:o.map((e,n)=>{let i=typeof e==`string`?e:e.key,a=typeof e==`string`?void 0:e.dataKey;return{id:`${t}__${a??i}__${n}`,componentKey:i,templateId:i,...a?{dataKey:a}:{},...r?.[i]?.hasFlow?{hasFlow:!0}:{}}})}}return ng(e.id,o,{label:e.label,repeatable:e.repeatable??!1,maxInstances:e.maxInstances??null,integration:e.integration,strictPosition:e.strictPosition})},sC=e=>e?Array.isArray(e)?e:Object.entries(e).map(([e,t])=>({...t,id:e})):[],cC=(e,t)=>{if(!e)return[];if(Array.isArray(e))return e;try{let n=e(t);if(!Array.isArray(n))return console.error(`[uhuu-components] pageComponentKeys function must return an array, got:`,typeof n),[];let r=n.filter(e=>typeof e==`string`);return r.length!==n.length&&console.warn(`[uhuu-components] pageComponentKeys returned non-string values, filtering them out`),r}catch(e){return console.error(`[uhuu-components] Error evaluating pageComponentKeys function:`,e),[]}},lC=e=>{let{initial:t,groups:n,pageComponentKeys:r=[],pages:i={},pageComponents:a={},payload:o}=e,s=sC(n),c=new Map;s.forEach(e=>c.set(e.id,e));let l=r.length?r:Object.keys(i),u={...a};Object.entries(i).forEach(([e,t])=>{t.component&&(u[e]=t.component)});let d=new Set,f=e=>{let t=e;for(let n=2;d.has(t);n+=1)t=`${e}__${n}`;return d.add(t),t},p=t.map(e=>{if(typeof e==`string`){let t=c.get(e);return t?oC(t,!0,o,i,f(t.id)):aC(e,void 0,!0,i,f(e))}if(e.pageComponentKeys!==void 0){let t=e;return oC(t,!0,o,i,f(t.id))}let t=e;return aC(t,void 0,!0,i,f(t.id))}),m=s.map(e=>({kind:`group`,id:e.id,templateId:e.id,label:e.label,thumbnail:e.thumbnail,pageComponentKeys:e.pageComponentKeys,repeatable:e.repeatable??!1,maxInstances:e.maxInstances??null,integration:e.integration,strictPosition:e.strictPosition}));return{initialItems:p,availableItems:[...l.filter(e=>i?.[e]?.allowAsSinglePage!==!1).map(e=>{let t=i?.[e];return{kind:`page`,id:e,templateId:e,componentKey:t?.componentKey??e,label:t?.label,className:t?.className,repeatable:t?.repeatable??!1,maxInstances:t?.maxInstances??null,thumbnail:t?.thumbnail,integration:t?.integration,strictPosition:t?.strictPosition,hasFlow:t?.hasFlow}}),...m],pageComponents:u}},uC=Object.defineProperty,dC=(e,t)=>uC(e,`name`,{value:t,configurable:!0}),[fC,pC]=Ba(`AlertDialog`,[Qg]),mC=Qg(),hC=dC(e=>{let{__scopeAlertDialog:t,...r}=e,i=mC(t);return(0,n.jsx)(t_,{...i,...r,modal:!0})},`AlertDialog`);p.forwardRef(dC(function(e,t){let{__scopeAlertDialog:r,...i}=e,a=mC(r);return(0,n.jsx)(r_,{...a,...i,ref:t})},`AlertDialogTrigger`));var gC=dC(e=>{let{__scopeAlertDialog:t,...r}=e,i=mC(t);return(0,n.jsx)(s_,{...i,...r})},`AlertDialogPortal`),_C=p.forwardRef(dC(function(e,t){let{__scopeAlertDialog:r,...i}=e,a=mC(r);return(0,n.jsx)(l_,{...a,...i,ref:t})},`AlertDialogOverlay`)),[vC,yC]=fC(`AlertDialogContent`),bC=p.forwardRef(dC(function(e,t){let{__scopeAlertDialog:r,children:i,...a}=e,o=mC(r),s=q(t,p.useRef(null)),c=p.useRef(null);return(0,n.jsx)(vC,{scope:r,cancelRef:c,children:(0,n.jsx)(p_,{role:`alertdialog`,...o,...a,ref:s,onOpenAutoFocus:K(a.onOpenAutoFocus,e=>{e.preventDefault(),c.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:i})})},`AlertDialogContent`)),xC=p.forwardRef(dC(function(e,t){let{__scopeAlertDialog:r,...i}=e,a=mC(r);return(0,n.jsx)(__,{...a,...i,ref:t})},`AlertDialogTitle`)),SC=p.forwardRef(dC(function(e,t){let{__scopeAlertDialog:r,...i}=e,a=mC(r);return(0,n.jsx)(v_,{...a,...i,ref:t})},`AlertDialogDescription`)),CC=p.forwardRef(dC(function(e,t){let{__scopeAlertDialog:r,...i}=e,a=mC(r);return(0,n.jsx)(b_,{...a,...i,ref:t})},`AlertDialogAction`)),wC=`AlertDialogCancel`,TC=p.forwardRef(dC(function(e,t){let{__scopeAlertDialog:r,...i}=e,{cancelRef:a}=yC(wC,r),o=mC(r),s=q(t,a);return(0,n.jsx)(b_,{...o,...i,ref:s})},`AlertDialogCancel`)),EC=hC,DC=gC,OC=p.forwardRef(({className:e,...t},r)=>(0,n.jsx)(_C,{ref:r,className:G(`uhuu:fixed uhuu:inset-0 uhuu:z-50 uhuu:bg-black/40 uhuu:backdrop-blur-[1px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t}));OC.displayName=_C.displayName;var kC=p.forwardRef(({className:e,...t},r)=>{let{portalContainer:i}=ii();return(0,n.jsxs)(DC,{container:i||void 0,children:[(0,n.jsx)(OC,{}),(0,n.jsx)(bC,{ref:r,"data-uhuu-editor":!0,className:G(`uhuu:fixed uhuu:left-[50%] uhuu:top-[50%] uhuu:z-50 uhuu:w-full uhuu:max-w-md uhuu:translate-x-[-50%] uhuu:translate-y-[-50%] uhuu:rounded-md uhuu:border uhuu:border-gray-200 uhuu:bg-(--uhuu-shell-surface) uhuu:p-6 uhuu:shadow-lg uhuu:outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t})]})});kC.displayName=bC.displayName;var AC=({className:e,...t})=>(0,n.jsx)(`div`,{className:G(`uhuu:flex uhuu:flex-col uhuu:gap-2 uhuu:text-left`,e),...t});AC.displayName=`AlertDialogHeader`;var jC=({className:e,...t})=>(0,n.jsx)(`div`,{className:G(`uhuu:mt-6 uhuu:flex uhuu:flex-col-reverse uhuu:gap-2 uhuu:sm:flex-row uhuu:sm:justify-end`,e),...t});jC.displayName=`AlertDialogFooter`;var MC=p.forwardRef(({className:e,...t},r)=>(0,n.jsx)(xC,{ref:r,className:G(`uhuu:text-base uhuu:font-semibold uhuu:text-gray-900`,e),...t}));MC.displayName=xC.displayName;var NC=p.forwardRef(({className:e,...t},r)=>(0,n.jsx)(SC,{ref:r,className:G(`uhuu:text-sm uhuu:text-gray-600`,e),...t}));NC.displayName=SC.displayName;var PC=p.forwardRef(({className:e,...t},r)=>(0,n.jsx)(CC,{ref:r,className:G(`uhuu:inline-flex uhuu:h-9 uhuu:items-center uhuu:justify-center uhuu:rounded-md uhuu:bg-gray-900 uhuu:px-4 uhuu:text-sm uhuu:font-medium uhuu:text-(--uhuu-shell-on-inverse) uhuu:transition-colors uhuu:hover:bg-gray-800`,e),...t}));PC.displayName=CC.displayName;var FC=p.forwardRef(({className:e,...t},r)=>(0,n.jsx)(TC,{ref:r,className:G(`uhuu:inline-flex uhuu:h-9 uhuu:items-center uhuu:justify-center uhuu:rounded-md uhuu:border uhuu:border-gray-200 uhuu:bg-(--uhuu-shell-surface) uhuu:px-4 uhuu:text-sm uhuu:font-medium uhuu:text-gray-900 uhuu:transition-colors uhuu:hover:bg-gray-50`,e),...t}));FC.displayName=TC.displayName;var IC=`__edit__`,LC=`__print__`;function RC({checked:e,label:t,onSelect:r,keepOpen:i=!1}){return(0,n.jsxs)(om,{onSelect:e=>{i&&e.preventDefault(),r()},className:`uhuu:flex uhuu:items-center uhuu:gap-2`,children:[e?(0,n.jsx)(Rr,{className:`uhuu:w-3 uhuu:h-3 uhuu:text-gray-400`}):(0,n.jsx)(`span`,{className:`uhuu:w-3 uhuu:h-3`}),(0,n.jsx)(`span`,{className:`uhuu:flex-1 uhuu:truncate`,children:t})]})}function zC({label:e,value:t}){return(0,n.jsxs)(rm,{className:`uhuu:flex uhuu:items-center uhuu:justify-between uhuu:gap-4 uhuu:text-xs`,children:[(0,n.jsx)(`span`,{className:`uhuu:text-gray-700`,children:e}),(0,n.jsxs)(`span`,{className:`uhuu:flex uhuu:items-center uhuu:gap-1 uhuu:text-gray-400`,children:[t?(0,n.jsx)(`span`,{className:`uhuu:max-w-[110px] uhuu:truncate`,children:t}):null,(0,n.jsx)(Br,{className:`uhuu:w-3.5 uhuu:h-3.5`})]})]})}function BC({modes:e,selectedMode:t,onModeChange:r,interactive:i,onInteractiveChange:a,hasReferenceRenderer:o=!1,referenceOpacity:s=50,onReferenceOpacityChange:c,brandKits:l,activeBrandKitId:u,onSelectBrandKit:d,onAddBrandKit:f}){let p=e?Object.keys(e):[],m=[{value:IC,label:`Edit`},...p.length>0?p.map(t=>({value:t,label:e[t].label})):[{value:LC,label:`Print`}]],h=i?IC:t||p[0]||LC,g=m.find(e=>e.value===h)?.label??`Edit`,_=t=>{t===IC?a(!0):(a(!1),t!==LC&&e&&e[t]&&r?.(t,e[t]))},v=!!l&&l.length>0,y=l?.find(e=>e.id===u)?.name,b=()=>{let e=window.prompt(`Add a published brand kit to test — paste a brandkit.json URL, a kit id, or raw JSON:`);e&&e.trim()&&f?.(e.trim())};return(0,n.jsxs)(em,{modal:!1,children:[(0,n.jsx)(tm,{asChild:!0,children:(0,n.jsxs)(Ta,{variant:`ghost`,size:`sm`,className:`uhuu:text-xs uhuu:font-medium uhuu:text-gray-700 uhuu:hover:bg-gray-100/80 uhuu:h-7 uhuu:px-2.5 ${i?``:`uhuu:bg-gray-100/80`}`,children:[(0,n.jsx)(Lr,{className:`uhuu:w-3.5 uhuu:h-3.5`}),(0,n.jsx)(`span`,{className:`uhuu:text-[10px] uhuu:uppercase uhuu:tracking-wide`,children:`Dev`})]})}),(0,n.jsxs)(am,{align:`end`,className:`uhuu:min-w-[200px]`,children:[(0,n.jsxs)(nm,{children:[(0,n.jsx)(zC,{label:`Print Preview`,value:g}),(0,n.jsx)(im,{className:`uhuu:min-w-[180px]`,children:m.map(e=>(0,n.jsx)(RC,{checked:h===e.value,label:e.label,onSelect:()=>_(e.value)},e.value))})]}),v&&(0,n.jsxs)(nm,{children:[(0,n.jsx)(zC,{label:`Brand Kit`,value:y}),(0,n.jsxs)(im,{className:`uhuu:min-w-[200px]`,children:[l.map(e=>(0,n.jsx)(RC,{checked:u===e.id,label:e.name,keepOpen:!0,onSelect:()=>d?.(e.id)},e.id)),f&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(um,{}),(0,n.jsxs)(om,{onSelect:e=>{e.preventDefault(),b()},className:`uhuu:flex uhuu:items-center uhuu:gap-2`,children:[(0,n.jsx)(Yr,{className:`uhuu:w-3 uhuu:h-3 uhuu:text-gray-400`}),(0,n.jsx)(`span`,{className:`uhuu:flex-1`,children:`Add published kit…`})]})]})]})]}),o&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(um,{}),(0,n.jsx)(lm,{className:`uhuu:text-xs uhuu:text-gray-500`,children:`Reference Overlay`}),(0,n.jsxs)(`div`,{className:`uhuu:px-2 uhuu:py-2`,children:[(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:justify-between uhuu:text-xs uhuu:text-gray-600`,children:[(0,n.jsx)(`span`,{children:`Opacity`}),(0,n.jsxs)(`span`,{children:[s,`%`]})]}),(0,n.jsx)(`div`,{className:`uhuu:pt-2`,children:(0,n.jsx)(VS,{value:[s],min:0,max:100,step:5,onValueChange:e=>{let t=e[0]??s;c?.(t)}})}),(0,n.jsxs)(`div`,{className:`uhuu:pt-2 uhuu:flex uhuu:items-center uhuu:justify-between uhuu:text-xs uhuu:text-gray-500`,children:[(0,n.jsx)(`span`,{children:`Hidden`}),(0,n.jsx)(`span`,{children:`Solid`})]})]})]})]})]})}var VC=[`add`,`remove`,`reorder`,`duplicate`,`rename`];function HC(e){let t=e&&typeof e==`object`?e:{},n=t.locked!==!0,r=Object.fromEntries(VC.map(e=>[e,typeof t[e]==`boolean`?t[e]:n]));return{...r,templateOwnsPages:!r.add&&!r.remove&&!r.reorder&&!r.duplicate}}var UC={width:210,height:297},WC=typeof window>`u`?p.useEffect:p.useLayoutEffect;function GC(e,t){return t?`${t.id}/${e.id}`:e.id}function KC({label:e,onDone:t,onAddAnother:r}){let{t:i}=Hi();return e?(0,n.jsx)(`div`,{className:`uhuu:fixed uhuu:inset-0 uhuu:z-50 uhuu:flex uhuu:items-center uhuu:justify-center uhuu:bg-black/30`,children:(0,n.jsxs)(`div`,{"data-uhuu-editor":!0,className:`uhuu:bg-(--uhuu-shell-surface) uhuu:rounded-lg uhuu:border uhuu:border-gray-200/80 uhuu:shadow-xl uhuu:p-6 uhuu:w-full uhuu:max-w-sm uhuu:mx-4 uhuu:flex uhuu:flex-col uhuu:items-center uhuu:text-center`,children:[(0,n.jsx)(`div`,{className:`uhuu:rounded-full uhuu:bg-emerald-100 uhuu:p-3 uhuu:mb-4`,children:(0,n.jsx)(Rr,{className:`uhuu:h-6 uhuu:w-6 uhuu:text-emerald-600`,strokeWidth:2.5})}),(0,n.jsx)(`h2`,{className:`uhuu:text-base uhuu:font-medium uhuu:text-gray-900 uhuu:mb-5`,children:i(`addDialog.added`,{name:e})}),(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:gap-2 uhuu:w-full`,children:[(0,n.jsx)(Ta,{variant:`outline`,size:`sm`,onClick:r,className:`uhuu:flex-1`,children:i(`addDialog.addAnother`)}),(0,n.jsx)(Ta,{variant:`default`,size:`sm`,onClick:t,className:`uhuu:flex-1`,children:i(`addDialog.done`)})]})]})}):null}var qC=new Set;function JC({initialItems:e=[],availableItems:t=[],pageComponents:i={},spineComponent:a,payload:o,pageFormat:s,pageOptions:c=[],notifyError:l,referenceRenderer:u,renderOverlay:d,renderPage:f,menuItems:m,gridColsClass:h,reorderTitle:g,reorderDescription:_,stateKey:v=Uh,onItemsChange:y,onStateChange:b,resolveNewItem:x,pageFilter:S,printConfigs:C,defaultZoomMode:w=`fit-page`,brandKits:T,activeBrandKitId:E,onSelectBrandKit:D,onAddBrandKit:O,pageManagement:k=XC}){let[A]=(0,p.useState)(()=>j.createScope()),M=k,N=s??UC,{interactive:P,setInteractive:I,enableDevTools:R}=ga(),ee=_a(),{portalContainer:te}=ii(),{t:z,localize:B}=Hi(),[ne,re]=(0,p.useState)(null),[V,ie]=(0,p.useState)(null),[ae,oe]=(0,p.useState)(void 0),[se,ce]=(0,p.useState)(0),[le,ue]=(0,p.useState)(0),de=ne??S,fe=(0,p.useMemo)(()=>V?{...N,...V}:N,[N,V]),pe=(0,p.useContext)(_g),me=pe?.payload??o,[he,ge]=(0,p.useState)(!1),_e=!P&&XS(fe,de),ve=fe?.preview??`single_page`,ye=_e?`single_page`:ve,be=(0,p.useMemo)(()=>{let e=YS(fe);return ve===`two_pages`||_e?{...e,preview:`single_page`}:e},[ve,_e,fe]),xe=(0,p.useMemo)(()=>YS(N),[N]),Se=(0,p.useMemo)(()=>Xh(e),[e]),Ce=(0,p.useMemo)(()=>c?.length?c.map(e=>`getValue`in e?e:pe?.setPageOptionValue?Cg(e,pe.payload,pe.setPageOptionValue):((L()||R)&&console.warn(`PageEditor: payload-backed pageOptions require TemplateDataProvider or payload/onPayloadChange.`),null)).filter(Boolean):[],[c,pe,R]),[we,Te]=(0,p.useState)(null),[Ee,De]=(0,p.useState)({mode:`end`}),[Oe,ke]=(0,p.useState)(null),Ae=(0,p.useRef)(null),{items:je,itemsWithPageNum:Me,availableItemsToAdd:Ne,addItem:Pe,removeItem:Fe,reorderItems:Ie,updateItemFields:Le,addDialogOpen:Re,setAddDialogOpen:ze,openAddDialog:Be,itemsForReorder:Ve,handleReorder:He,defaultRenderThumbnail:Ue}=QS({initialItems:Se,availableItems:t,pageComponents:i,payload:me,setup:be,stateKey:v,onItemsChange:y,onStateChange:b,resolveNewItem:x,notifyError:l}),We=(0,p.useMemo)(()=>{let e=[];for(let t of Me){let n=Wh(t)?t.pages??[]:[t];for(let r of n){if(!r?.id)continue;let n=Wh(t)?t:void 0;e.push({...r,kind:`page`,id:r.id,pageNum:r.pageNum??e.length+1,basePageNum:r.pageNum??e.length+1,parentGroup:n,flowKey:GC(r,n)})}}return e.sort((e,t)=>(e.basePageNum??0)-(t.basePageNum??0))},[Me]),Ge=(0,p.useMemo)(()=>JSON.stringify({format:be?.format,orientation:be?.orientation,width:be?.width,height:be?.height,bleed:be?.bleed,showBleed:be?.showBleed,preview:be?.preview,flowPages:We.filter(e=>e.hasFlow).map(e=>e.flowKey).join(`|`)}),[be,We]),Ke=(0,p.useMemo)(()=>qh(je),[je]),{committedFlowLayouts:qe,allVirtualPages:Je,renderedVirtualPages:Ye,virtualTotalPageCount:Xe,registerMeasurement:Ze,pruneMeasurements:Qe}=tC({logicalPages:We,pageFilter:de,layoutKey:Ge});WC(()=>{A.commit(We.filter(e=>e.hasFlow).map(e=>e.flowKey),qe)}),WC(()=>()=>A.suspend(),[A]),p.useEffect(()=>()=>A.unmount(),[A]);let $e=(0,p.useMemo)(()=>new Set(Ye.map(e=>e.virtualPageId)),[Ye]),et=(0,p.useMemo)(()=>ZS({pageFormat:_e?fe:YS(fe),pageFilter:de,pages:Ye}),[_e,fe,de,Ye]),tt=et.active?et.plan:null,nt=(0,p.useMemo)(()=>tt?{...be,binding:et.setup.binding}:be,[tt,be,et.setup]);p.useEffect(()=>{if(L()&&et.warnings.length)for(let e of et.warnings)qC.has(e)||(qC.add(e),console.warn(`[uhuu-components] PageEditor cover spread: ${e}`))},[et.warnings]);let rt=(0,p.useMemo)(()=>Je.filter(e=>e.hasFlow&&e.virtualPageIndex===0&&(f||!!tt||!$e.has(e.virtualPageId))),[Je,$e,f,tt]);p.useEffect(()=>{if(!Oe)return;let e=setTimeout(()=>{document.querySelector(`[data-page-item-id="${Oe}"]`)?.scrollIntoView({behavior:`smooth`,block:`start`})},300);return()=>clearTimeout(e)},[Oe]);let it=$S({items:je,reorderItems:Ie,availableItemsToAdd:Ne,setPendingInsertPosition:De,openAddDialog:Be}),at=(e,t)=>{let n=it(e,t);return{onAddPage:M.add?n.onAddPage:void 0,onMoveUp:M.reorder?n.onMoveUp:void 0,onMoveDown:M.reorder?n.onMoveDown:void 0,onDuplicate:M.duplicate?n.onDuplicate:void 0}},ot=(0,p.useCallback)(async e=>{let t=await Pe(e,Ee);t.success&&(ke(t.insertedId),Ae.current&&clearTimeout(Ae.current),Ae.current=setTimeout(()=>ke(null),1200),De({mode:`end`}),e.repeatable&&e.integration&&Te(e))},[Pe,Ee]),st=(0,p.useCallback)(()=>{let e=Array.from(document.querySelectorAll(`[data-page-item-id]`));if(!e.length)return{mode:`end`};let t=window.innerHeight/2,n=null,r=1/0;for(let i of e){let e=i.getBoundingClientRect(),a=Math.abs(e.top+e.height/2-t);a<r&&(r=a,n=i)}let i=n?.getAttribute(`data-page-item-id`);return i?{mode:`after`,anchorId:i}:{mode:`end`}},[]),ct=(0,p.useCallback)(()=>{De(st()),Be()},[st,Be]),lt=p.useCallback((e,t,n)=>{if(!t)return;let r=e.applyPatch?.(n,t);r&&Le(t.id,r),e.onChange?.(t.id,n,{item:t,updateItem:e=>Le(t.id,e)})},[Le]),ut=e=>(0,n.jsxs)(`div`,{className:`uhuu-page-overlay`,children:[(0,n.jsx)(`span`,{children:`Page`}),(0,n.jsxs)(`span`,{children:[e.pageNo,` / `,e.total]})]}),dt=(e,t,n)=>d===!1||d===null?null:d?d({pageNo:e,total:Xe,pageId:t,parent:n}):ut({pageNo:e,total:Xe}),ft=(e,t={})=>{let r=e.parentGroup;if(f&&t.renderVisible!==!1&&t.renderMode!==`content`)return f({page:e,parent:r});let a=e.componentKey??e.id,o=R&&u?u(e):null,s=R&&u?p.isValidElement(o)?p.cloneElement(o,{opacity:le}):o:null,c=e.templateId??a,l=i[a],d=pe?.getPagePayload?pe.getPagePayload(e):gg(me,{id:e.id,templateId:c,componentKey:a}),m=dg(me,e,r),h=iC({payload:me,page:e,parentGroup:r,pagePayload:d});return(0,n.jsx)(wx,{pageId:e.id,templateId:c,pageNo:e.pageNum,measurementPageNo:e.basePageNum,component:l,payload:me,pagePayload:d,integration:m,page:e,parentGroup:r,componentKey:a,setup:nt,reference:s,overlay:({pageNo:t})=>dt(t,e.id,r),className:e.className,dataBinding:h,totalPages:Xe,measurementTotalPages:Ke,flowPageIndex:e.virtualPageIndex,flowChunksByFlowId:e.flowChunksByFlowId,measureFlow:t.measureFlow??(!!e.hasFlow&&e.virtualPageIndex===0),flowMeasurementKey:e.flowKey,flowMeasurementVersion:Ge,flowReadiness:A,onFlowMeasurement:e.hasFlow?Ze:void 0,onFlowPrune:Qe,renderVisible:t.renderVisible??!0,renderMode:t.renderMode,spread:t.spread},`${t.renderVisible===!1?`measure-only`:`page`}-${e.virtualPageId}`)},pt=e=>{let t=e.componentKey??e.templateId??e.id;return[t?`uhuu-page--${t}`:``,e.className].filter(Boolean).join(` `)},mt=e=>{if(!tt)return null;let{binding:t,page:r}=tt,[i,o]=e.panels,s=i.page,c=o.page,l=n=>({sheet:e.sheet,side:n,spine:t.spine,glue:t.glue,bleed:r.bleed}),u=`Cover sheet ${e.index+1} · ${e.sheet} (pages ${s.pageNum} + ${c.pageNum})`;return(0,n.jsx)(`div`,{"data-page-item-id":c.parentGroup?.id??c.id,children:(0,n.jsx)(Kg,{title:u,controls:(0,n.jsxs)(`div`,{"data-uhuu-editor":!0,className:`uhuu:pl-0 uhuu:pr-3 uhuu:py-1.5 uhuu:flex uhuu:items-center uhuu:gap-2 uhuu:h-9`,children:[(0,n.jsxs)(`span`,{className:`uhuu-page-number`,children:[s.pageNum,` + `,c.pageNum]}),(0,n.jsx)(`span`,{className:`uhuu:text-xs uhuu:text-gray-500`,children:u})]}),children:(0,n.jsx)(F,{setup:nt,children:(0,n.jsx)(Ft,{sheet:e.sheet,pageNo:[s.pageNum,c.pageNum],left:ft(s,{renderMode:`content`,spread:l(`left`)}),right:ft(c,{renderMode:`content`,spread:l(`right`)}),spine:a&&e.sheet===`outer`?(0,n.jsx)(a,{payload:me,sheet:`outer`,spine:t.spine,glue:t.glue,bleed:r.bleed,height:r.height,totalPages:Xe,pages:{left:s,right:c}}):void 0,overlay:({pageNo:e,side:t})=>{let n=t===`left`?s:c;return dt(e,n.id,n.parentGroup)},leftClassName:pt(s),rightClassName:pt(c),leftPageKey:s.componentKey??s.templateId??s.id,rightPageKey:c.componentKey??c.templateId??c.id})})})},`cover-sheet-${e.sheet}`)},ht=(e,t,r)=>{let i=!!t&&Wh(t),a=i&&t.pages[0]?.id===e.id;if(e.virtualPageIndex>0)return(0,n.jsxs)(`div`,{"data-uhuu-editor":!0,className:`uhuu:pl-0 uhuu:pr-3 uhuu:py-1.5 uhuu:flex uhuu:items-center uhuu:gap-2 uhuu:h-9`,children:[(0,n.jsx)(`span`,{className:`uhuu-page-number`,children:e.pageNum}),(0,n.jsx)(`span`,{className:`uhuu:text-xs uhuu:text-gray-500`,children:z(`page.continued`,{name:B(e.label)||e.componentKey||e.id})})]});if(i&&!a)return(0,n.jsx)(`div`,{"data-uhuu-editor":!0,className:`uhuu:pl-0 uhuu:pr-3 uhuu:py-1.5 uhuu:flex uhuu:justify-between uhuu:items-center uhuu:h-9`,children:(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:gap-2`,children:[(0,n.jsx)(`span`,{className:`uhuu-page-number`,children:e.pageNum}),e.label&&(0,n.jsx)(`span`,{className:`uhuu:text-xs uhuu:text-gray-500`,children:B(e.label)}),(0,n.jsx)(`span`,{className:`uhuu:text-xs uhuu:text-gray-400`,children:`·`})]})});let o=i?t:e,s=i?B(t.label)||t.id:B(e.label)||z(`page.fallbackName`,{number:e.pageNum});return(0,n.jsxs)(`div`,{"data-uhuu-editor":!0,className:`uhuu:pl-0 uhuu:flex uhuu:items-center uhuu:h-9`,children:[(0,n.jsx)(`span`,{className:`uhuu-page-number uhuu:shrink-0 uhuu:text-xs uhuu:tabular-nums uhuu:text-gray-400 uhuu:font-medium uhuu:pr-1`,children:e.pageNum}),(0,n.jsx)(JS,{name:s,canRename:M.rename,canMoveUp:!!r?.onMoveUp,canMoveDown:!!r?.onMoveDown,canAddPage:!!r?.onAddPage,canDuplicate:!!r?.onDuplicate,canDelete:M.remove&&Ke>1,onRename:e=>Le(o.id,{label:e||void 0}),onMoveUp:r?.onMoveUp,onMoveDown:r?.onMoveDown,onAddPage:r?.onAddPage,onDuplicate:r?.onDuplicate,onDelete:()=>Fe(o.id)}),(0,n.jsx)(`span`,{className:`uhuu:pl-1`,children:Ce.length>0&&(0,n.jsx)(qS,{pageOptions:Ce,targetItem:o,onChange:lt,title:z(i?`page.groupOptions`:`page.options`)})})]})},gt=(0,p.useMemo)(()=>{if(ye!==`two_pages`)return[];let e=Ye;if(!e.length)return[];let t=[{left:void 0,right:e[0],layout:`right`}];for(let n=1;n<e.length;n+=2){let r=e[n],i=e[n+1];if(i)t.push({left:r,right:i,layout:`spread`});else{let e=r.pageNum%2==0;t.push({left:e?r:void 0,right:e?void 0:r,layout:e?`left`:`right`})}}return t},[ye,Ye]),_t=(0,n.jsxs)(`div`,{className:`uhuu:flex uhuu:items-center uhuu:gap-1`,children:[(0,n.jsx)(gx,{variant:`secondary`,className:`uhuu:font-normal uhuu:text-xs uhuu:bg-gray-100/80 uhuu:text-gray-700 uhuu:border-0`,children:z(`toolbar.pages`,{count:Xe})}),R&&(0,n.jsx)(BC,{modes:C,selectedMode:ae,onModeChange:(e,t)=>{oe(e),re(t.filter??null),ie(t.pageFormat??null),ce(e=>e+1)},interactive:P,onInteractiveChange:e=>{I(e),e&&ie(null)},hasReferenceRenderer:!!u,referenceOpacity:le,onReferenceOpacityChange:ue,brandKits:T,activeBrandKitId:E,onSelectBrandKit:D,onAddBrandKit:O}),P&&(0,n.jsxs)(n.Fragment,{children:[M.add&&Ne.length>0&&(0,n.jsxs)(Ta,{variant:`ghost`,size:`sm`,onClick:ct,title:z(`toolbar.addHint`),className:`uhuu:text-xs uhuu:font-medium uhuu:text-gray-700 uhuu:hover:bg-gray-100/80 uhuu:h-7 uhuu:px-2.5`,children:[(0,n.jsx)(Yr,{className:`uhuu:w-3.5 uhuu:h-3.5`}),z(`toolbar.add`)]}),M.reorder&&(0,n.jsxs)(Ta,{variant:`ghost`,size:`sm`,onClick:()=>ge(!0),title:z(`toolbar.reorderHint`),className:`uhuu:text-xs uhuu:font-medium uhuu:text-gray-700 uhuu:hover:bg-gray-100/80 uhuu:h-7 uhuu:px-2.5`,children:[(0,n.jsx)(Vr,{className:`uhuu:w-3.5 uhuu:h-3.5`}),z(`toolbar.reorder`)]})]})]});return(0,n.jsxs)(n.Fragment,{children:[rt.map(e=>ft(e,{renderVisible:!1,measureFlow:!0})),R&&!P&&te&&(0,r.createPortal)((0,n.jsxs)(Ta,{onClick:()=>{I(!0),ie(null)},"data-uhuu-editor":!0,size:`sm`,className:`uhuu-screen-only uhuu:fixed uhuu:top-4 uhuu:right-4 uhuu:z-50 uhuu:flex uhuu:items-center uhuu:gap-1.5 uhuu:text-xs! uhuu:rounded-full`,title:`Back to Edit Mode`,children:[(0,n.jsx)(ei,{className:`uhuu:w-4 uhuu:h-4`}),`Back to Editor`]}),te),(0,n.jsx)(qg,{defaultZoom:80,defaultZoomMode:w,minZoom:25,maxZoom:200,menuItems:m??_t,onAddPage:M.add?ct:void 0,preview:ye,children:tt?tt.sheets.map(mt):ye===`two_pages`?gt.map((e,t)=>{let r=e.left??e.right,i=e.right??e.left,a=r?.parentGroup?.id??r?.id??null,o=i?.parentGroup?.id??i?.id??null,s=e.left?.parentGroup?.id??e.left?.id,c=e.right?.parentGroup?.id??e.right?.id,l=s===Oe,u=c===Oe,d=(e,t)=>at(e?e.parentGroup??e:void 0,t);return(0,n.jsxs)(Ug,{layout:e.layout,pageItemId:o??void 0,children:[e.left&&(0,n.jsx)(`div`,{"data-page-item-id":e.left.virtualPageIndex===0?s:void 0,className:l?`uhuu:outline uhuu:outline-2 uhuu:outline-offset-2 uhuu:outline-blue-100 uhuu:bg-blue-50`:void 0,children:(0,n.jsx)(Kg,{title:`Sheet ${e.left.pageNum}`,controls:ht(e.left,e.left.parentGroup,d(e.left,a)),origin:e.left.pageNum%2==0?`right`:`left`,children:ft(e.left)},e.left.virtualPageId)}),e.right&&(0,n.jsx)(`div`,{"data-page-item-id":e.right.virtualPageIndex===0?c:void 0,className:u?`uhuu:outline uhuu:outline-2 uhuu:outline-offset-2 uhuu:outline-blue-100 uhuu:bg-blue-50`:void 0,children:(0,n.jsx)(Kg,{title:`Sheet ${e.right.pageNum}`,controls:ht(e.right,e.right.parentGroup,d(e.right,o)),origin:e.right.pageNum%2==0?`right`:`left`,children:ft(e.right)},e.right.virtualPageId)})]},`pair-${t}`)}):Ye.map(e=>{let t=e.parentGroup??e,r=e.parentGroup?.id??e.id,i=at(t,r),a=e.parentGroup?.id??e.id,o=Oe===a;return(0,n.jsx)(`div`,{"data-page-item-id":e.virtualPageIndex===0?a:void 0,className:o?`uhuu:outline uhuu:outline-2 uhuu:outline-offset-2 uhuu:outline-blue-100 uhuu:bg-blue-50`:void 0,children:(0,n.jsx)(Kg,{title:`Sheet ${e.pageNum}`,controls:ht(e,e.parentGroup,i),children:ft(e)})},e.virtualPageId)})},`dev-mode-${se}-${ae??`default`}`),P&&!ee&&(0,n.jsxs)(n.Fragment,{children:[M.add&&(0,n.jsx)(F_,{open:Re,onOpenChange:ze,availableItems:Ne,onSelectItem:ot,pageComponents:i,payload:me,setup:xe,gridColsClass:h,"data-uhuu-editor":!0}),M.reorder&&(0,n.jsx)(vx,{open:he,onOpenChange:ge,pages:Ve,onReorder:e=>{He(e),ge(!1)},onRemove:M.remove?e=>Fe(e.id):void 0,pageComponents:i,payload:me,setup:xe,renderThumbnail:Ue,title:B(g)??z(`reorderDialog.title`),description:B(_)??z(`reorderDialog.description`),gridColsClass:h,"data-uhuu-editor":!0})]}),(0,n.jsx)(KC,{label:we?B(we.label)??we.id:null,onDone:()=>Te(null),onAddAnother:()=>{let e=we;Te(null),e&&ot(e)}})]})}function YC(e){let{templateConfig:t,...r}=e;return(0,p.useContext)(_g)||!e.payload&&!e.onPayloadChange?(0,n.jsx)(JC,{...r}):(0,n.jsx)(bg,{payload:e.payload,onPayloadChange:e.onPayloadChange,stateKey:e.stateKey,children:(0,n.jsx)(JC,{...r})})}var XC=HC(),ZC=new Set([`kind`,`id`,`pages`,`templateId`,`componentKey`,`dataKey`,`hasFlow`,`strictPosition`,`label`,`className`,`repeatable`,`maxInstances`,`allowAsSinglePage`,`thumbnail`]);function QC(e,t){if(!t?.length)return e;let n=new Map,r=e=>e.forEach(e=>{e?.id&&n.set(e.id,e),Array.isArray(e?.pages)&&r(e.pages)});r(t);let i=e=>{let t=n.get(e.id),r=t?Object.fromEntries(Object.entries(t).filter(([e])=>!ZC.has(e))):{},a={...e,...r};return Array.isArray(e.pages)?{...a,pages:e.pages.map(i)}:a};return e.map(i)}function $C(e){let t=(0,p.useContext)(_g),{t:r}=Hi(),i=t?.payload??e.payload,a=p.useMemo(()=>lC({...e.templateConfig,payload:i}),[e.templateConfig,i]),o=e.templateConfig?.spine?.component,[s,c]=p.useState({open:!1,message:``}),l=p.useCallback(e=>{c({open:!0,message:e})},[]),u=p.useMemo(()=>Qh(i,e.stateKey??`uhuu_page_editor`),[i,e.stateKey]),d=p.useMemo(()=>{let t=e.templateConfig.pageManagement;return t!=null&&typeof t!=`object`&&L()&&console.warn(`[uhuu-components] templateConfig.pageManagement takes an object, e.g. { locked: true }; ${JSON.stringify(t)} is ignored and every page-management control stays on.`),HC(t)},[e.templateConfig.pageManagement]),f=d.templateOwnsPages,m=p.useMemo(()=>{if(f)return QC(a.initialItems,u?.items);if(!u?.items)return a.initialItems;let t=e.templateConfig.groups??{},n=Array.isArray(t)?t:Object.entries(t).map(([e,t])=>({id:e,...t})),r=new Map(n.map(e=>[e.id,e])),o=e.templateConfig.pages??{},s=e=>{let t=e?.componentKey??e?.templateId??e?.id;return o[t]??o[e?.templateId]??o[e?.id]},c=e=>!s(e)?.hasFlow||e?.hasFlow?e:{...e,hasFlow:!0},l=(e,t)=>t===void 0||!yi(e?.label,t)||e.label===t?e:{...e,label:t},d=u.items.map(e=>{if(e.kind!==`group`)return l(c(e),s(e)?.label);let t=e.templateId??e.id,n=r.get(t),a=l(e,n?.label),u=n?.strictPosition!==void 0&&!a.strictPosition?{...a,strictPosition:n.strictPosition}:a,d={...u,pages:(u.pages??[]).map(c)};if(!n||typeof n.pageComponentKeys!=`function`)return d;try{let e=n.pageComponentKeys({payload:i,item:void 0,parent:void 0});return Array.isArray(e)?e.length===0?{...d,pages:[]}:{...d,pages:e.map((e,t)=>{let n=o[e],r=n?.dataKey;return{id:`${d.id}__${r??e}__${t}`,componentKey:e,templateId:e,...r?{dataKey:r}:{},...n?.hasFlow?{hasFlow:!0}:{}}})}:(console.error(`[PageEditor] pageComponentKeys for group ${u.id} must return an array, got:`,typeof e),u)}catch(e){return console.error(`[PageEditor] Error evaluating pageComponentKeys for group ${d.id}:`,e),d}}),p=new Set(a.initialItems.map(e=>e.id)),m=d.filter(e=>p.has(e.id)),h=qh(m),g=qh(a.initialItems);if(!Array.from(p).some(e=>!m.some(t=>t.id===e))&&h!==g){let e=d.filter(e=>{if(e.kind!==`group`)return!p.has(e.id);let t=e.templateId??e.id;return e.id!==t&&!p.has(e.id)});if(e.length===0)return a.initialItems;let t=[...a.initialItems,...e],n=t.filter(e=>e.strictPosition===`start`),r=t.filter(e=>e.strictPosition===`end`),i=t.filter(e=>!e.strictPosition);return[...n,...i,...r]}return d},[u?.items,a.initialItems,i,e.templateConfig.groups,e.templateConfig.pages,f]);return(0,n.jsxs)(M.Provider,{value:!0,children:[(0,n.jsx)(YC,{...e,payload:i,initialItems:m,availableItems:d.add||d.duplicate?a.availableItems:[],pageManagement:d,pageComponents:a.pageComponents,spineComponent:o,notifyError:l}),(0,n.jsx)(EC,{open:s.open,onOpenChange:e=>{e||c({open:!1,message:``})},children:(0,n.jsxs)(kC,{children:[(0,n.jsxs)(AC,{children:[(0,n.jsx)(MC,{children:r(`notice.cannotRemoveTitle`)}),(0,n.jsx)(NC,{children:s.message})]}),(0,n.jsx)(jC,{children:(0,n.jsx)(PC,{onClick:()=>c({open:!1,message:``}),children:r(`notice.ok`)})})]})})]})}function ew(e,t){if(e&&t){if(e.includes(`??`)){let n=e.split(`??`).map(e=>e.trim());for(let e of n){let n=tw(t,e);if(n!=null)return n}}else return tw(t,e)}}function tw(e,t){if(!t)return e;let n=t.split(`.`),r=e;for(let e of n){if(r==null)return;r=r[e]}return r}function nw(e,t,n){let r={};for(let[n,i]of Object.entries(e))typeof i==`function`?r[n]=i(t):typeof i==`string`&&(r[n]=ew(i.startsWith(`integration.`)?i.slice(12):i,t));return r}function rw(e,t,n){return e(t,n)}function iw(e,t,n){return typeof e==`function`?rw(e,t,n):nw(e,t,n)}function aw(e,t,n){if(e?.defaults?.imageGalleryPath)return e.defaults.imageGalleryPath;if(n){if(typeof n==`function`){let e=n(t);if(e)return e}else if(typeof n==`string`)return n}return t?.media?.images?`media.images`:t?.listing?.media?.images?`listing.media.images`:t?.pba_listing?.media?.images?`pba_listing.media.images`:t?.property?.media?.images?`property.media.images`:null}function ow(e,t,n={},r,i=null){let a=e?.integration?.path?.();if(!a)return null;let o=n.type===`assistant`,s=n.type===`image`||n.imagePath,c=o?e.integration.path(t)??[a,t].filter(Boolean).join(`.`):[a,t].filter(Boolean).join(`.`);if(s){let t=n.imageGalleryPath??(i?`${a}.${i}`:null)??e.defaults.imageGalleryPath;return{path:c,imagePath:n.imagePath||`url`,imageGalleryPath:t,type:n.type||`image`,ratio:n.ratio,value:r,payload:n.payload??e.payload,...n}}return o?{path:c,type:`assistant`,rows:n.rows,value:r,payload:n.payload??e.payload,...n}:{path:a,subPath:t,type:n.type||`text`,rows:n.rows,value:r,payload:n.payload??e.payload,...n}}function sw(e){let{dataBinding:t,integration:n,resolver:r,galleryPath:i,defaults:a}=e,o=p.useMemo(()=>iw(r,n,t?.payload),[r,n,t?.payload]),s=p.useMemo(()=>aw(t,n,i),[t,n,i]),c=p.useCallback((e,n={},r)=>ow(t,e,n,r,s),[t,s]),l=p.useCallback((e,t={},n)=>{let r=c(e,t,n);return r?Ze({dialog:r}):{}},[c]);return p.useMemo(()=>({data:o,dialog:c,dialogProps:l,galleryPath:s,instanceId:t?.integration?.instanceId??null,integration:n}),[o,c,l,s,t,n])}var cw={Pagination:F,Sheet:I,FlowArea:Ve,FlowPage:He,Flow:Ye,FlowColumns:Xe,planFlowChunks:ie,planFlowColumnChunks:fe,createFlowPlanMetrics:V,flowMeasure:pe,FlowDocument:_t,markdownToFlowItems:Mt,htmlToFlowItems:pt,planCoverSpread:S,resolveSheetSize:b,CoverSpread:Ft,usePaginationHold:Lt},lw={TemplateDataProvider:bg,PageEditor:$C,InteractiveModeProvider:ba,useInteractive:ga,useIntegrationAdapter:sw};e.BRAND_KIT_PUBLIC_BASE_URL=ch,e.BrandKitProvider=Vh,e.Editable=nt,e.EditorShell=lw,e.ImageBlock=bm,e.Static=cw,e.brandKitCollection=Sh,e.brandKitEnv=wh,e.brandKitLogo=vh,e.brandKitMapStyle=Th,e.brandKitSourceUrl=fh,e.getDialogProps=Ze,e.imageUrl=km,e.loadBrandKit=ph,e.useBrandKit=Hh});
57
57
  //# sourceMappingURL=uhuu-components.umd.cjs.map