caplink-saas-ui-shared-component-library 0.3.11 → 0.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:var(--font-sans),ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 240 10% 3.9%;--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--primary: 240 5.9% 10%;--primary-foreground: 0 0% 98%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 240 5.9% 90%;--input: 240 5.9% 90%;--ring: 240 5.9% 10%;--radius: .5rem}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-feature-settings:"rlig" 1,"calt" 1}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.cp-pointer-events-none{pointer-events:none}.cp-pointer-events-auto{pointer-events:auto}.cp-absolute{position:absolute}.cp-relative{position:relative}.cp-sticky{position:sticky}.-cp-left-0{left:-0px}.-cp-left-0\\.5{left:-.125rem}.-cp-right-\\[3px\\]{right:-3px}.-cp-top-0{top:-0px}.-cp-top-0\\.5{top:-.125rem}.-cp-top-1{top:-.25rem}.-cp-top-4{top:-1rem}.cp-left-2{left:.5rem}.cp-left-2\\.5{left:.625rem}.cp-left-4{left:1rem}.cp-right-2{right:.5rem}.cp-right-2\\.5{right:.625rem}.cp-top-0{top:0}.cp-top-1\\/2{top:50%}.cp-top-8{top:2rem}.cp-top-\\[58px\\]{top:58px}.cp-z-40{z-index:40}.cp-z-50{z-index:50}.-cp-mx-1{margin-left:-.25rem;margin-right:-.25rem}.cp-my-1{margin-top:.25rem;margin-bottom:.25rem}.cp-ml-auto{margin-left:auto}.cp-mr-1{margin-right:.25rem}.cp-mr-2{margin-right:.5rem}.cp-mt-\\[calc\\(28px\\+36px\\)\\]{margin-top:64px}.cp-line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.cp-line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.cp-flex{display:flex}.cp-inline-flex{display:inline-flex}.cp-h-10{height:2.5rem}.cp-h-3{height:.75rem}.cp-h-3\\.5{height:.875rem}.cp-h-4{height:1rem}.cp-h-5{height:1.25rem}.cp-h-7{height:1.75rem}.cp-h-8{height:2rem}.cp-h-9{height:2.25rem}.cp-h-\\[34px\\]{height:34px}.cp-h-\\[calc\\(100\\%-28px-28px\\)\\]{height:calc(100% - 56px)}.cp-h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.cp-h-fit{height:fit-content}.cp-h-full{height:100%}.cp-h-px{height:1px}.cp-max-h-96{max-height:24rem}.cp-min-h-\\[24px\\]{min-height:24px}.cp-min-h-\\[260px\\]{min-height:260px}.cp-w-1{width:.25rem}.cp-w-1\\.5{width:.375rem}.cp-w-12{width:3rem}.cp-w-3{width:.75rem}.cp-w-3\\.5{width:.875rem}.cp-w-32{width:8rem}.cp-w-4{width:1rem}.cp-w-5{width:1.25rem}.cp-w-56{width:14rem}.cp-w-9{width:2.25rem}.cp-w-fit{width:fit-content}.cp-w-full{width:100%}.cp-min-w-\\[8rem\\]{min-width:8rem}.cp-min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.cp-max-w-\\[220px\\]{max-width:220px}.cp-max-w-\\[240px\\]{max-width:240px}.cp-shrink-0{flex-shrink:0}.-cp-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes cp-spin{to{transform:rotate(360deg)}}.cp-animate-spin{animation:cp-spin 1s linear infinite}.cp-cursor-col-resize{cursor:col-resize}.cp-cursor-default{cursor:default}.cp-select-none{user-select:none}.cp-resize-none{resize:none}.cp-items-center{align-items:center}.cp-justify-start{justify-content:flex-start}.cp-justify-end{justify-content:flex-end}.cp-justify-center{justify-content:center}.cp-justify-between{justify-content:space-between}.cp-gap-1{gap:.25rem}.cp-gap-2{gap:.5rem}.cp-gap-4{gap:1rem}.cp-overflow-hidden{overflow:hidden}.cp-overflow-y-clip{overflow-y:clip}.cp-overflow-x-scroll{overflow-x:scroll}.cp-whitespace-nowrap{white-space:nowrap}.cp-break-words{overflow-wrap:break-word}.cp-break-all{word-break:break-all}.cp-rounded-full{border-radius:9999px}.cp-rounded-md{border-radius:4px}.cp-rounded-none{border-radius:0}.cp-rounded-sm{border-radius:2px}.cp-rounded-t-lg{border-top-left-radius:8px;border-top-right-radius:8px}.cp-border{border-width:1px}.cp-border-b{border-bottom-width:1px}.cp-border-b-0{border-bottom-width:0px}.cp-border-l{border-left-width:1px}.cp-border-l-0{border-left-width:0px}.cp-border-r{border-right-width:1px}.cp-border-r-0{border-right-width:0px}.cp-border-t{border-top-width:1px}.cp-border-t-0{border-top-width:0px}.cp-border-none{border-style:none}.cp-border-info-200{--tw-border-opacity: 1;border-color:rgb(99 115 255 / var(--tw-border-opacity))}.cp-border-input{border-color:hsl(var(--input))}.cp-border-primary-100{--tw-border-opacity: 1;border-color:rgb(229 229 244 / var(--tw-border-opacity))}.cp-border-primary-200{--tw-border-opacity: 1;border-color:rgb(220 220 237 / var(--tw-border-opacity))}.cp-border-primary-300{--tw-border-opacity: 1;border-color:rgb(193 193 217 / var(--tw-border-opacity))}.cp-border-transparent{border-color:transparent}.cp-border-l-transparent{border-left-color:transparent}.cp-border-t-transparent{border-top-color:transparent}.cp-bg-background{background-color:hsl(var(--background))}.cp-bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.cp-bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.cp-bg-destructive{background-color:hsl(var(--destructive))}.cp-bg-info-100{--tw-bg-opacity: 1;background-color:rgb(225 229 255 / var(--tw-bg-opacity))}.cp-bg-info-300{--tw-bg-opacity: 1;background-color:rgb(70 87 225 / var(--tw-bg-opacity))}.cp-bg-muted{background-color:hsl(var(--muted))}.cp-bg-neutral-300{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity))}.cp-bg-neutral-400{--tw-bg-opacity: 1;background-color:rgb(163 163 163 / var(--tw-bg-opacity))}.cp-bg-popover{background-color:hsl(var(--popover))}.cp-bg-primary-50{--tw-bg-opacity: 1;background-color:rgb(242 242 252 / var(--tw-bg-opacity))}.cp-bg-secondary{background-color:hsl(var(--secondary))}.cp-bg-transparent{background-color:transparent}.cp-bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.cp-bg-white\\/25{background-color:#ffffff40}.cp-fill-current{fill:currentColor}.cp-p-1{padding:.25rem}.cp-p-2{padding:.5rem}.cp-px-2{padding-left:.5rem;padding-right:.5rem}.cp-px-3{padding-left:.75rem;padding-right:.75rem}.cp-px-4{padding-left:1rem;padding-right:1rem}.cp-px-8{padding-left:2rem;padding-right:2rem}.cp-py-1{padding-top:.25rem;padding-bottom:.25rem}.cp-py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.cp-py-2{padding-top:.5rem;padding-bottom:.5rem}.cp-pl-1{padding-left:.25rem}.cp-pl-2{padding-left:.5rem}.cp-pl-3{padding-left:.75rem}.cp-pl-8{padding-left:2rem}.cp-pr-2{padding-right:.5rem}.cp-pr-3{padding-right:.75rem}.cp-pr-8{padding-right:2rem}.cp-pr-px{padding-right:1px}.cp-text-left{text-align:left}.cp-text-md{font-size:14px;line-height:18px}.cp-text-sm{font-size:12px;line-height:16px}.cp-text-xs{font-size:10px;line-height:14px}.cp-font-bold{font-weight:700}.cp-font-medium{font-weight:500}.cp-font-semibold{font-weight:600}.cp-tracking-widest{letter-spacing:.1em}.cp-text-current{color:currentColor}.cp-text-destructive-foreground{color:hsl(var(--destructive-foreground))}.cp-text-info-300{--tw-text-opacity: 1;color:rgb(70 87 225 / var(--tw-text-opacity))}.cp-text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.cp-text-popover-foreground{color:hsl(var(--popover-foreground))}.cp-text-primary-400{--tw-text-opacity: 1;color:rgb(174 174 206 / var(--tw-text-opacity))}.cp-text-primary-500{--tw-text-opacity: 1;color:rgb(146 146 186 / var(--tw-text-opacity))}.cp-text-primary-600{--tw-text-opacity: 1;color:rgb(99 99 143 / var(--tw-text-opacity))}.cp-text-primary-700{--tw-text-opacity: 1;color:rgb(71 71 114 / var(--tw-text-opacity))}.cp-text-secondary-foreground{color:hsl(var(--secondary-foreground))}.cp-text-success-400{--tw-text-opacity: 1;color:rgb(25 150 82 / var(--tw-text-opacity))}.cp-text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.cp-underline-offset-4{text-underline-offset:4px}.cp-opacity-0{opacity:0}.cp-opacity-100{opacity:1}.cp-opacity-50{opacity:.5}.cp-opacity-60{opacity:.6}.cp-shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.cp-shadow-lg{--tw-shadow: 0px 8px 8px -4px rgba(16, 24, 40, .03), 0px 20px 24px -6px rgba(16, 24, 40, .08);--tw-shadow-colored: 0px 8px 8px -4px var(--tw-shadow-color), 0px 20px 24px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.cp-shadow-md{--tw-shadow: 0px 4px 6px -2px rgba(16, 24, 40, .03), 0px 12px 16px -4px rgba(16, 24, 40, .08);--tw-shadow-colored: 0px 4px 6px -2px var(--tw-shadow-color), 0px 12px 16px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.cp-shadow-sm{--tw-shadow: 0px 2px 4px -2px rgba(16, 24, 40, .06), 0px 4px 8px -2px rgba(16, 24, 40, .1);--tw-shadow-colored: 0px 2px 4px -2px var(--tw-shadow-color), 0px 4px 8px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.cp-outline-none{outline:2px solid transparent;outline-offset:2px}.cp-outline{outline-style:solid}.cp-outline-sky-100{outline-color:#e0f2fe}.cp-ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.cp-drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));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)}.cp-backdrop-blur-sm{--tw-backdrop-blur: blur(4px);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)}.cp-transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.cp-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.cp-ease-linear{transition-timing-function:linear}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.cp-animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.cp-fade-in-0{--tw-enter-opacity: 0}.cp-zoom-in-95{--tw-enter-scale: .95}.cp-ease-linear{animation-timing-function:linear}*{position:relative;font-family:Inter,sans-serif;font-weight:400}h1,h2,h3,h4,h5{font-family:SF Pro Display,sans-serif}.file\\:cp-border-0::file-selector-button{border-width:0px}.file\\:cp-bg-transparent::file-selector-button{background-color:transparent}.file\\:cp-text-sm::file-selector-button{font-size:12px;line-height:16px}.file\\:cp-font-medium::file-selector-button{font-weight:500}.placeholder\\:cp-text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\\:cp-bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:cp-bg-danger-50:hover{--tw-bg-opacity: 1;background-color:rgb(255 246 246 / var(--tw-bg-opacity))}.hover\\:cp-bg-destructive\\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\\:cp-bg-info-50:hover{--tw-bg-opacity: 1;background-color:rgb(244 246 255 / var(--tw-bg-opacity))}.hover\\:cp-bg-secondary\\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\\:cp-text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:cp-text-danger-400:hover{--tw-text-opacity: 1;color:rgb(156 19 19 / var(--tw-text-opacity))}.hover\\:cp-text-info-400:hover{--tw-text-opacity: 1;color:rgb(0 19 183 / var(--tw-text-opacity))}.hover\\:cp-underline:hover{text-decoration-line:underline}.hover\\:cp-opacity-100:hover{opacity:1}.hover\\:cp-shadow-md:hover{--tw-shadow: 0px 4px 6px -2px rgba(16, 24, 40, .03), 0px 12px 16px -4px rgba(16, 24, 40, .08);--tw-shadow-colored: 0px 4px 6px -2px var(--tw-shadow-color), 0px 12px 16px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\\:cp-bg-accent:focus{background-color:hsl(var(--accent))}.focus\\:cp-text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\\:cp-text-primary-900:focus{--tw-text-opacity: 1;color:rgb(31 31 62 / var(--tw-text-opacity))}.focus\\:cp-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:cp-ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:cp-ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:cp-ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus-visible\\:cp-outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:cp-ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:cp-ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.active\\:cp-border-danger-400:active{--tw-border-opacity: 1;border-color:rgb(156 19 19 / var(--tw-border-opacity))}.active\\:cp-border-info-400:active{--tw-border-opacity: 1;border-color:rgb(0 19 183 / var(--tw-border-opacity))}.active\\:cp-bg-danger-50:active{--tw-bg-opacity: 1;background-color:rgb(255 246 246 / var(--tw-bg-opacity))}.active\\:cp-bg-info-50:active{--tw-bg-opacity: 1;background-color:rgb(244 246 255 / var(--tw-bg-opacity))}.active\\:cp-text-danger-400:active{--tw-text-opacity: 1;color:rgb(156 19 19 / var(--tw-text-opacity))}.active\\:cp-text-info-400:active{--tw-text-opacity: 1;color:rgb(0 19 183 / var(--tw-text-opacity))}.disabled\\:cp-pointer-events-none:disabled{pointer-events:none}.disabled\\:cp-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:cp-border-primary-100:disabled{--tw-border-opacity: 1;border-color:rgb(229 229 244 / var(--tw-border-opacity))}.disabled\\:cp-bg-primary-100:disabled{--tw-bg-opacity: 1;background-color:rgb(229 229 244 / var(--tw-bg-opacity))}.disabled\\:cp-text-primary-500:disabled{--tw-text-opacity: 1;color:rgb(146 146 186 / var(--tw-text-opacity))}.disabled\\:cp-opacity-50:disabled{opacity:.5}.disabled\\:cp-shadow-none:disabled{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\\[disabled\\]\\:cp-pointer-events-none[data-disabled]{pointer-events:none}.data-\\[side\\=bottom\\]\\:cp-translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=left\\]\\:-cp-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=right\\]\\:cp-translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:-cp-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=closed\\]\\:cp-transform-none[data-state=closed]{transform:none}.data-\\[side\\=bottom\\]\\:cp-animate-none[data-side=bottom],.data-\\[state\\=closed\\]\\:cp-animate-none[data-state=closed]{animation:none}.data-\\[state\\=open\\]\\:cp-bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\\[disabled\\]\\:cp-text-primary-500[data-disabled]{--tw-text-opacity: 1;color:rgb(146 146 186 / var(--tw-text-opacity))}.data-\\[disabled\\]\\:cp-opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=closed\\]\\:cp-transition-none[data-state=closed]{transition-property:none}.data-\\[state\\=open\\]\\:cp-animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:cp-animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:cp-fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:cp-fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:cp-zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:cp-zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:cp-slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:cp-slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:cp-slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:cp-slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.\\[\\&\\>span\\]\\:cp-line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
- (function(Ge,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],i):(Ge=typeof globalThis<"u"?globalThis:Ge||self,i(Ge["caplink-saas-ui-shared-component-library"]={},Ge.React,Ge.ReactDOM))})(this,function(Ge,i,vt){"use strict";var Rr=document.createElement("style");Rr.textContent=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:var(--font-sans),ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 240 10% 3.9%;--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--primary: 240 5.9% 10%;--primary-foreground: 0 0% 98%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 240 5.9% 90%;--input: 240 5.9% 90%;--ring: 240 5.9% 10%;--radius: .5rem}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-feature-settings:"rlig" 1,"calt" 1}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.cp-pointer-events-none{pointer-events:none}.cp-pointer-events-auto{pointer-events:auto}.cp-absolute{position:absolute}.cp-relative{position:relative}.cp-sticky{position:sticky}.-cp-left-0{left:-0px}.-cp-left-0\\.5{left:-.125rem}.-cp-right-\\[3px\\]{right:-3px}.-cp-top-0{top:-0px}.-cp-top-0\\.5{top:-.125rem}.-cp-top-1{top:-.25rem}.-cp-top-4{top:-1rem}.cp-left-2{left:.5rem}.cp-left-2\\.5{left:.625rem}.cp-left-4{left:1rem}.cp-right-2{right:.5rem}.cp-right-2\\.5{right:.625rem}.cp-top-0{top:0}.cp-top-1\\/2{top:50%}.cp-top-8{top:2rem}.cp-top-\\[58px\\]{top:58px}.cp-z-40{z-index:40}.cp-z-50{z-index:50}.-cp-mx-1{margin-left:-.25rem;margin-right:-.25rem}.cp-my-1{margin-top:.25rem;margin-bottom:.25rem}.cp-ml-auto{margin-left:auto}.cp-mr-1{margin-right:.25rem}.cp-mr-2{margin-right:.5rem}.cp-mt-\\[calc\\(28px\\+36px\\)\\]{margin-top:64px}.cp-line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.cp-line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.cp-flex{display:flex}.cp-inline-flex{display:inline-flex}.cp-h-10{height:2.5rem}.cp-h-3{height:.75rem}.cp-h-3\\.5{height:.875rem}.cp-h-4{height:1rem}.cp-h-5{height:1.25rem}.cp-h-7{height:1.75rem}.cp-h-8{height:2rem}.cp-h-9{height:2.25rem}.cp-h-\\[34px\\]{height:34px}.cp-h-\\[calc\\(100\\%-28px-28px\\)\\]{height:calc(100% - 56px)}.cp-h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.cp-h-fit{height:fit-content}.cp-h-full{height:100%}.cp-h-px{height:1px}.cp-max-h-96{max-height:24rem}.cp-min-h-\\[24px\\]{min-height:24px}.cp-min-h-\\[260px\\]{min-height:260px}.cp-w-1{width:.25rem}.cp-w-1\\.5{width:.375rem}.cp-w-12{width:3rem}.cp-w-3{width:.75rem}.cp-w-3\\.5{width:.875rem}.cp-w-32{width:8rem}.cp-w-4{width:1rem}.cp-w-5{width:1.25rem}.cp-w-56{width:14rem}.cp-w-9{width:2.25rem}.cp-w-fit{width:fit-content}.cp-w-full{width:100%}.cp-min-w-\\[8rem\\]{min-width:8rem}.cp-min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.cp-max-w-\\[220px\\]{max-width:220px}.cp-max-w-\\[240px\\]{max-width:240px}.cp-shrink-0{flex-shrink:0}.-cp-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes cp-spin{to{transform:rotate(360deg)}}.cp-animate-spin{animation:cp-spin 1s linear infinite}.cp-cursor-col-resize{cursor:col-resize}.cp-cursor-default{cursor:default}.cp-select-none{user-select:none}.cp-resize-none{resize:none}.cp-items-center{align-items:center}.cp-justify-start{justify-content:flex-start}.cp-justify-end{justify-content:flex-end}.cp-justify-center{justify-content:center}.cp-justify-between{justify-content:space-between}.cp-gap-1{gap:.25rem}.cp-gap-2{gap:.5rem}.cp-gap-4{gap:1rem}.cp-overflow-hidden{overflow:hidden}.cp-overflow-y-clip{overflow-y:clip}.cp-overflow-x-scroll{overflow-x:scroll}.cp-whitespace-nowrap{white-space:nowrap}.cp-break-words{overflow-wrap:break-word}.cp-break-all{word-break:break-all}.cp-rounded-full{border-radius:9999px}.cp-rounded-md{border-radius:4px}.cp-rounded-none{border-radius:0}.cp-rounded-sm{border-radius:2px}.cp-rounded-t-lg{border-top-left-radius:8px;border-top-right-radius:8px}.cp-border{border-width:1px}.cp-border-b{border-bottom-width:1px}.cp-border-b-0{border-bottom-width:0px}.cp-border-l{border-left-width:1px}.cp-border-l-0{border-left-width:0px}.cp-border-r{border-right-width:1px}.cp-border-r-0{border-right-width:0px}.cp-border-t{border-top-width:1px}.cp-border-t-0{border-top-width:0px}.cp-border-none{border-style:none}.cp-border-info-200{--tw-border-opacity: 1;border-color:rgb(99 115 255 / var(--tw-border-opacity))}.cp-border-input{border-color:hsl(var(--input))}.cp-border-primary-100{--tw-border-opacity: 1;border-color:rgb(229 229 244 / var(--tw-border-opacity))}.cp-border-primary-200{--tw-border-opacity: 1;border-color:rgb(220 220 237 / var(--tw-border-opacity))}.cp-border-primary-300{--tw-border-opacity: 1;border-color:rgb(193 193 217 / var(--tw-border-opacity))}.cp-border-transparent{border-color:transparent}.cp-border-l-transparent{border-left-color:transparent}.cp-border-t-transparent{border-top-color:transparent}.cp-bg-background{background-color:hsl(var(--background))}.cp-bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.cp-bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.cp-bg-destructive{background-color:hsl(var(--destructive))}.cp-bg-info-100{--tw-bg-opacity: 1;background-color:rgb(225 229 255 / var(--tw-bg-opacity))}.cp-bg-info-300{--tw-bg-opacity: 1;background-color:rgb(70 87 225 / var(--tw-bg-opacity))}.cp-bg-muted{background-color:hsl(var(--muted))}.cp-bg-neutral-300{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity))}.cp-bg-neutral-400{--tw-bg-opacity: 1;background-color:rgb(163 163 163 / var(--tw-bg-opacity))}.cp-bg-popover{background-color:hsl(var(--popover))}.cp-bg-primary-50{--tw-bg-opacity: 1;background-color:rgb(242 242 252 / var(--tw-bg-opacity))}.cp-bg-secondary{background-color:hsl(var(--secondary))}.cp-bg-transparent{background-color:transparent}.cp-bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.cp-bg-white\\/25{background-color:#ffffff40}.cp-fill-current{fill:currentColor}.cp-p-1{padding:.25rem}.cp-p-2{padding:.5rem}.cp-px-2{padding-left:.5rem;padding-right:.5rem}.cp-px-3{padding-left:.75rem;padding-right:.75rem}.cp-px-4{padding-left:1rem;padding-right:1rem}.cp-px-8{padding-left:2rem;padding-right:2rem}.cp-py-1{padding-top:.25rem;padding-bottom:.25rem}.cp-py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.cp-py-2{padding-top:.5rem;padding-bottom:.5rem}.cp-pl-1{padding-left:.25rem}.cp-pl-2{padding-left:.5rem}.cp-pl-3{padding-left:.75rem}.cp-pl-8{padding-left:2rem}.cp-pr-2{padding-right:.5rem}.cp-pr-3{padding-right:.75rem}.cp-pr-8{padding-right:2rem}.cp-pr-px{padding-right:1px}.cp-text-left{text-align:left}.cp-text-md{font-size:14px;line-height:18px}.cp-text-sm{font-size:12px;line-height:16px}.cp-text-xs{font-size:10px;line-height:14px}.cp-font-bold{font-weight:700}.cp-font-medium{font-weight:500}.cp-font-semibold{font-weight:600}.cp-tracking-widest{letter-spacing:.1em}.cp-text-current{color:currentColor}.cp-text-destructive-foreground{color:hsl(var(--destructive-foreground))}.cp-text-info-300{--tw-text-opacity: 1;color:rgb(70 87 225 / var(--tw-text-opacity))}.cp-text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.cp-text-popover-foreground{color:hsl(var(--popover-foreground))}.cp-text-primary-400{--tw-text-opacity: 1;color:rgb(174 174 206 / var(--tw-text-opacity))}.cp-text-primary-500{--tw-text-opacity: 1;color:rgb(146 146 186 / var(--tw-text-opacity))}.cp-text-primary-600{--tw-text-opacity: 1;color:rgb(99 99 143 / var(--tw-text-opacity))}.cp-text-primary-700{--tw-text-opacity: 1;color:rgb(71 71 114 / var(--tw-text-opacity))}.cp-text-secondary-foreground{color:hsl(var(--secondary-foreground))}.cp-text-success-400{--tw-text-opacity: 1;color:rgb(25 150 82 / var(--tw-text-opacity))}.cp-text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.cp-underline-offset-4{text-underline-offset:4px}.cp-opacity-0{opacity:0}.cp-opacity-100{opacity:1}.cp-opacity-50{opacity:.5}.cp-opacity-60{opacity:.6}.cp-shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.cp-shadow-lg{--tw-shadow: 0px 8px 8px -4px rgba(16, 24, 40, .03), 0px 20px 24px -6px rgba(16, 24, 40, .08);--tw-shadow-colored: 0px 8px 8px -4px var(--tw-shadow-color), 0px 20px 24px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.cp-shadow-md{--tw-shadow: 0px 4px 6px -2px rgba(16, 24, 40, .03), 0px 12px 16px -4px rgba(16, 24, 40, .08);--tw-shadow-colored: 0px 4px 6px -2px var(--tw-shadow-color), 0px 12px 16px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.cp-shadow-sm{--tw-shadow: 0px 2px 4px -2px rgba(16, 24, 40, .06), 0px 4px 8px -2px rgba(16, 24, 40, .1);--tw-shadow-colored: 0px 2px 4px -2px var(--tw-shadow-color), 0px 4px 8px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.cp-outline-none{outline:2px solid transparent;outline-offset:2px}.cp-outline{outline-style:solid}.cp-outline-sky-100{outline-color:#e0f2fe}.cp-ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.cp-drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));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)}.cp-backdrop-blur-sm{--tw-backdrop-blur: blur(4px);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)}.cp-transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.cp-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.cp-ease-linear{transition-timing-function:linear}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.cp-animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.cp-fade-in-0{--tw-enter-opacity: 0}.cp-zoom-in-95{--tw-enter-scale: .95}.cp-ease-linear{animation-timing-function:linear}*{position:relative;font-family:Inter,sans-serif;font-weight:400}h1,h2,h3,h4,h5{font-family:SF Pro Display,sans-serif}.file\\:cp-border-0::file-selector-button{border-width:0px}.file\\:cp-bg-transparent::file-selector-button{background-color:transparent}.file\\:cp-text-sm::file-selector-button{font-size:12px;line-height:16px}.file\\:cp-font-medium::file-selector-button{font-weight:500}.placeholder\\:cp-text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\\:cp-bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:cp-bg-danger-50:hover{--tw-bg-opacity: 1;background-color:rgb(255 246 246 / var(--tw-bg-opacity))}.hover\\:cp-bg-destructive\\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\\:cp-bg-info-50:hover{--tw-bg-opacity: 1;background-color:rgb(244 246 255 / var(--tw-bg-opacity))}.hover\\:cp-bg-secondary\\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\\:cp-text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:cp-text-danger-400:hover{--tw-text-opacity: 1;color:rgb(156 19 19 / var(--tw-text-opacity))}.hover\\:cp-text-info-400:hover{--tw-text-opacity: 1;color:rgb(0 19 183 / var(--tw-text-opacity))}.hover\\:cp-underline:hover{text-decoration-line:underline}.hover\\:cp-opacity-100:hover{opacity:1}.hover\\:cp-shadow-md:hover{--tw-shadow: 0px 4px 6px -2px rgba(16, 24, 40, .03), 0px 12px 16px -4px rgba(16, 24, 40, .08);--tw-shadow-colored: 0px 4px 6px -2px var(--tw-shadow-color), 0px 12px 16px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\\:cp-bg-accent:focus{background-color:hsl(var(--accent))}.focus\\:cp-text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\\:cp-text-primary-900:focus{--tw-text-opacity: 1;color:rgb(31 31 62 / var(--tw-text-opacity))}.focus\\:cp-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:cp-ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:cp-ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:cp-ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus-visible\\:cp-outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:cp-ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:cp-ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.active\\:cp-border-danger-400:active{--tw-border-opacity: 1;border-color:rgb(156 19 19 / var(--tw-border-opacity))}.active\\:cp-border-info-400:active{--tw-border-opacity: 1;border-color:rgb(0 19 183 / var(--tw-border-opacity))}.active\\:cp-bg-danger-50:active{--tw-bg-opacity: 1;background-color:rgb(255 246 246 / var(--tw-bg-opacity))}.active\\:cp-bg-info-50:active{--tw-bg-opacity: 1;background-color:rgb(244 246 255 / var(--tw-bg-opacity))}.active\\:cp-text-danger-400:active{--tw-text-opacity: 1;color:rgb(156 19 19 / var(--tw-text-opacity))}.active\\:cp-text-info-400:active{--tw-text-opacity: 1;color:rgb(0 19 183 / var(--tw-text-opacity))}.disabled\\:cp-pointer-events-none:disabled{pointer-events:none}.disabled\\:cp-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:cp-border-primary-100:disabled{--tw-border-opacity: 1;border-color:rgb(229 229 244 / var(--tw-border-opacity))}.disabled\\:cp-bg-primary-100:disabled{--tw-bg-opacity: 1;background-color:rgb(229 229 244 / var(--tw-bg-opacity))}.disabled\\:cp-text-primary-500:disabled{--tw-text-opacity: 1;color:rgb(146 146 186 / var(--tw-text-opacity))}.disabled\\:cp-opacity-50:disabled{opacity:.5}.disabled\\:cp-shadow-none:disabled{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\\[disabled\\]\\:cp-pointer-events-none[data-disabled]{pointer-events:none}.data-\\[side\\=bottom\\]\\:cp-translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=left\\]\\:-cp-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=right\\]\\:cp-translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:-cp-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=closed\\]\\:cp-transform-none[data-state=closed]{transform:none}.data-\\[side\\=bottom\\]\\:cp-animate-none[data-side=bottom],.data-\\[state\\=closed\\]\\:cp-animate-none[data-state=closed]{animation:none}.data-\\[state\\=open\\]\\:cp-bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\\[disabled\\]\\:cp-text-primary-500[data-disabled]{--tw-text-opacity: 1;color:rgb(146 146 186 / var(--tw-text-opacity))}.data-\\[disabled\\]\\:cp-opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=closed\\]\\:cp-transition-none[data-state=closed]{transition-property:none}.data-\\[state\\=open\\]\\:cp-animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:cp-animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:cp-fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:cp-fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:cp-zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:cp-zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:cp-slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:cp-slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:cp-slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:cp-slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.\\[\\&\\>span\\]\\:cp-line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}
3
- `,document.head.appendChild(Rr);function Hr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const L=Hr(i),Bi=Hr(vt);var Mn={exports:{}},jt={};/**
2
+ (function(Ge,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],i):(Ge=typeof globalThis<"u"?globalThis:Ge||self,i(Ge["caplink-saas-ui-shared-component-library"]={},Ge.React,Ge.ReactDOM))})(this,function(Ge,i,vt){"use strict";var Hr=document.createElement("style");Hr.textContent=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:var(--font-sans),ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 240 10% 3.9%;--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--primary: 240 5.9% 10%;--primary-foreground: 0 0% 98%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 240 5.9% 90%;--input: 240 5.9% 90%;--ring: 240 5.9% 10%;--radius: .5rem}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-feature-settings:"rlig" 1,"calt" 1}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.cp-pointer-events-none{pointer-events:none}.cp-pointer-events-auto{pointer-events:auto}.cp-absolute{position:absolute}.cp-relative{position:relative}.cp-sticky{position:sticky}.-cp-left-0{left:-0px}.-cp-left-0\\.5{left:-.125rem}.-cp-right-\\[3px\\]{right:-3px}.-cp-top-0{top:-0px}.-cp-top-0\\.5{top:-.125rem}.-cp-top-1{top:-.25rem}.-cp-top-4{top:-1rem}.cp-left-2{left:.5rem}.cp-left-2\\.5{left:.625rem}.cp-left-4{left:1rem}.cp-right-2{right:.5rem}.cp-right-2\\.5{right:.625rem}.cp-top-0{top:0}.cp-top-1\\/2{top:50%}.cp-top-8{top:2rem}.cp-top-\\[58px\\]{top:58px}.cp-z-40{z-index:40}.cp-z-50{z-index:50}.-cp-mx-1{margin-left:-.25rem;margin-right:-.25rem}.cp-my-1{margin-top:.25rem;margin-bottom:.25rem}.cp-ml-auto{margin-left:auto}.cp-mr-1{margin-right:.25rem}.cp-mr-2{margin-right:.5rem}.cp-mt-\\[calc\\(28px\\+36px\\)\\]{margin-top:64px}.cp-line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.cp-line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.cp-flex{display:flex}.cp-inline-flex{display:inline-flex}.cp-h-10{height:2.5rem}.cp-h-3{height:.75rem}.cp-h-3\\.5{height:.875rem}.cp-h-4{height:1rem}.cp-h-5{height:1.25rem}.cp-h-7{height:1.75rem}.cp-h-8{height:2rem}.cp-h-9{height:2.25rem}.cp-h-\\[34px\\]{height:34px}.cp-h-\\[calc\\(100\\%-28px-28px\\)\\]{height:calc(100% - 56px)}.cp-h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.cp-h-fit{height:fit-content}.cp-h-full{height:100%}.cp-h-px{height:1px}.cp-max-h-96{max-height:24rem}.cp-min-h-\\[24px\\]{min-height:24px}.cp-min-h-\\[260px\\]{min-height:260px}.cp-w-1{width:.25rem}.cp-w-1\\.5{width:.375rem}.cp-w-12{width:3rem}.cp-w-3{width:.75rem}.cp-w-3\\.5{width:.875rem}.cp-w-32{width:8rem}.cp-w-4{width:1rem}.cp-w-5{width:1.25rem}.cp-w-56{width:14rem}.cp-w-9{width:2.25rem}.cp-w-fit{width:fit-content}.cp-w-full{width:100%}.cp-min-w-\\[8rem\\]{min-width:8rem}.cp-min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.cp-max-w-\\[220px\\]{max-width:220px}.cp-max-w-\\[240px\\]{max-width:240px}.cp-shrink-0{flex-shrink:0}.-cp-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes cp-spin{to{transform:rotate(360deg)}}.cp-animate-spin{animation:cp-spin 1s linear infinite}.cp-cursor-col-resize{cursor:col-resize}.cp-cursor-default{cursor:default}.cp-select-none{user-select:none}.cp-resize-none{resize:none}.cp-items-center{align-items:center}.cp-justify-start{justify-content:flex-start}.cp-justify-end{justify-content:flex-end}.cp-justify-center{justify-content:center}.cp-justify-between{justify-content:space-between}.cp-gap-1{gap:.25rem}.cp-gap-2{gap:.5rem}.cp-gap-4{gap:1rem}.cp-overflow-hidden{overflow:hidden}.cp-overflow-y-clip{overflow-y:clip}.cp-overflow-x-scroll{overflow-x:scroll}.cp-whitespace-nowrap{white-space:nowrap}.cp-break-words{overflow-wrap:break-word}.cp-break-all{word-break:break-all}.cp-rounded-full{border-radius:9999px}.cp-rounded-md{border-radius:4px}.cp-rounded-none{border-radius:0}.cp-rounded-sm{border-radius:2px}.cp-rounded-t-lg{border-top-left-radius:8px;border-top-right-radius:8px}.cp-border{border-width:1px}.cp-border-b{border-bottom-width:1px}.cp-border-b-0{border-bottom-width:0px}.cp-border-l{border-left-width:1px}.cp-border-l-0{border-left-width:0px}.cp-border-r{border-right-width:1px}.cp-border-r-0{border-right-width:0px}.cp-border-t{border-top-width:1px}.cp-border-t-0{border-top-width:0px}.cp-border-none{border-style:none}.cp-border-info-200{--tw-border-opacity: 1;border-color:rgb(99 115 255 / var(--tw-border-opacity))}.cp-border-input{border-color:hsl(var(--input))}.cp-border-primary-100{--tw-border-opacity: 1;border-color:rgb(229 229 244 / var(--tw-border-opacity))}.cp-border-primary-200{--tw-border-opacity: 1;border-color:rgb(220 220 237 / var(--tw-border-opacity))}.cp-border-primary-300{--tw-border-opacity: 1;border-color:rgb(193 193 217 / var(--tw-border-opacity))}.cp-border-transparent{border-color:transparent}.cp-border-l-transparent{border-left-color:transparent}.cp-border-t-transparent{border-top-color:transparent}.cp-bg-background{background-color:hsl(var(--background))}.cp-bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.cp-bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.cp-bg-destructive{background-color:hsl(var(--destructive))}.cp-bg-info-100{--tw-bg-opacity: 1;background-color:rgb(225 229 255 / var(--tw-bg-opacity))}.cp-bg-info-300{--tw-bg-opacity: 1;background-color:rgb(70 87 225 / var(--tw-bg-opacity))}.cp-bg-muted{background-color:hsl(var(--muted))}.cp-bg-neutral-300{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity))}.cp-bg-neutral-400{--tw-bg-opacity: 1;background-color:rgb(163 163 163 / var(--tw-bg-opacity))}.cp-bg-popover{background-color:hsl(var(--popover))}.cp-bg-primary-50{--tw-bg-opacity: 1;background-color:rgb(242 242 252 / var(--tw-bg-opacity))}.cp-bg-secondary{background-color:hsl(var(--secondary))}.cp-bg-transparent{background-color:transparent}.cp-bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.cp-bg-white\\/25{background-color:#ffffff40}.cp-fill-current{fill:currentColor}.cp-p-1{padding:.25rem}.cp-p-2{padding:.5rem}.cp-px-2{padding-left:.5rem;padding-right:.5rem}.cp-px-3{padding-left:.75rem;padding-right:.75rem}.cp-px-4{padding-left:1rem;padding-right:1rem}.cp-px-8{padding-left:2rem;padding-right:2rem}.cp-py-1{padding-top:.25rem;padding-bottom:.25rem}.cp-py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.cp-py-2{padding-top:.5rem;padding-bottom:.5rem}.cp-pl-1{padding-left:.25rem}.cp-pl-2{padding-left:.5rem}.cp-pl-3{padding-left:.75rem}.cp-pl-8{padding-left:2rem}.cp-pr-2{padding-right:.5rem}.cp-pr-3{padding-right:.75rem}.cp-pr-8{padding-right:2rem}.cp-pr-px{padding-right:1px}.cp-text-left{text-align:left}.cp-text-md{font-size:14px;line-height:18px}.cp-text-sm{font-size:12px;line-height:16px}.cp-text-xs{font-size:10px;line-height:14px}.cp-font-bold{font-weight:700}.cp-font-medium{font-weight:500}.cp-font-semibold{font-weight:600}.cp-tracking-widest{letter-spacing:.1em}.cp-text-current{color:currentColor}.cp-text-destructive-foreground{color:hsl(var(--destructive-foreground))}.cp-text-info-300{--tw-text-opacity: 1;color:rgb(70 87 225 / var(--tw-text-opacity))}.cp-text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.cp-text-popover-foreground{color:hsl(var(--popover-foreground))}.cp-text-primary-400{--tw-text-opacity: 1;color:rgb(174 174 206 / var(--tw-text-opacity))}.cp-text-primary-500{--tw-text-opacity: 1;color:rgb(146 146 186 / var(--tw-text-opacity))}.cp-text-primary-600{--tw-text-opacity: 1;color:rgb(99 99 143 / var(--tw-text-opacity))}.cp-text-primary-700{--tw-text-opacity: 1;color:rgb(71 71 114 / var(--tw-text-opacity))}.cp-text-secondary-foreground{color:hsl(var(--secondary-foreground))}.cp-text-success-400{--tw-text-opacity: 1;color:rgb(25 150 82 / var(--tw-text-opacity))}.cp-text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.cp-underline-offset-4{text-underline-offset:4px}.cp-opacity-0{opacity:0}.cp-opacity-100{opacity:1}.cp-opacity-50{opacity:.5}.cp-opacity-60{opacity:.6}.cp-shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.cp-shadow-lg{--tw-shadow: 0px 8px 8px -4px rgba(16, 24, 40, .03), 0px 20px 24px -6px rgba(16, 24, 40, .08);--tw-shadow-colored: 0px 8px 8px -4px var(--tw-shadow-color), 0px 20px 24px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.cp-shadow-md{--tw-shadow: 0px 4px 6px -2px rgba(16, 24, 40, .03), 0px 12px 16px -4px rgba(16, 24, 40, .08);--tw-shadow-colored: 0px 4px 6px -2px var(--tw-shadow-color), 0px 12px 16px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.cp-shadow-sm{--tw-shadow: 0px 2px 4px -2px rgba(16, 24, 40, .06), 0px 4px 8px -2px rgba(16, 24, 40, .1);--tw-shadow-colored: 0px 2px 4px -2px var(--tw-shadow-color), 0px 4px 8px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.cp-outline-none{outline:2px solid transparent;outline-offset:2px}.cp-outline{outline-style:solid}.cp-outline-sky-100{outline-color:#e0f2fe}.cp-ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.cp-drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));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)}.cp-backdrop-blur-sm{--tw-backdrop-blur: blur(4px);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)}.cp-transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.cp-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.cp-ease-linear{transition-timing-function:linear}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.cp-animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.cp-fade-in-0{--tw-enter-opacity: 0}.cp-zoom-in-95{--tw-enter-scale: .95}.cp-ease-linear{animation-timing-function:linear}*{position:relative;font-family:Inter,sans-serif;font-weight:400}h1,h2,h3,h4,h5{font-family:SF Pro Display,sans-serif}.file\\:cp-border-0::file-selector-button{border-width:0px}.file\\:cp-bg-transparent::file-selector-button{background-color:transparent}.file\\:cp-text-sm::file-selector-button{font-size:12px;line-height:16px}.file\\:cp-font-medium::file-selector-button{font-weight:500}.placeholder\\:cp-text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\\:cp-bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:cp-bg-danger-50:hover{--tw-bg-opacity: 1;background-color:rgb(255 246 246 / var(--tw-bg-opacity))}.hover\\:cp-bg-destructive\\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\\:cp-bg-info-50:hover{--tw-bg-opacity: 1;background-color:rgb(244 246 255 / var(--tw-bg-opacity))}.hover\\:cp-bg-secondary\\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\\:cp-text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:cp-text-danger-400:hover{--tw-text-opacity: 1;color:rgb(156 19 19 / var(--tw-text-opacity))}.hover\\:cp-text-info-400:hover{--tw-text-opacity: 1;color:rgb(0 19 183 / var(--tw-text-opacity))}.hover\\:cp-underline:hover{text-decoration-line:underline}.hover\\:cp-opacity-100:hover{opacity:1}.hover\\:cp-shadow-md:hover{--tw-shadow: 0px 4px 6px -2px rgba(16, 24, 40, .03), 0px 12px 16px -4px rgba(16, 24, 40, .08);--tw-shadow-colored: 0px 4px 6px -2px var(--tw-shadow-color), 0px 12px 16px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\\:cp-bg-accent:focus{background-color:hsl(var(--accent))}.focus\\:cp-text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\\:cp-text-primary-900:focus{--tw-text-opacity: 1;color:rgb(31 31 62 / var(--tw-text-opacity))}.focus\\:cp-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:cp-ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:cp-ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:cp-ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus-visible\\:cp-outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:cp-ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:cp-ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.active\\:cp-border-danger-400:active{--tw-border-opacity: 1;border-color:rgb(156 19 19 / var(--tw-border-opacity))}.active\\:cp-border-info-400:active{--tw-border-opacity: 1;border-color:rgb(0 19 183 / var(--tw-border-opacity))}.active\\:cp-bg-danger-50:active{--tw-bg-opacity: 1;background-color:rgb(255 246 246 / var(--tw-bg-opacity))}.active\\:cp-bg-info-50:active{--tw-bg-opacity: 1;background-color:rgb(244 246 255 / var(--tw-bg-opacity))}.active\\:cp-text-danger-400:active{--tw-text-opacity: 1;color:rgb(156 19 19 / var(--tw-text-opacity))}.active\\:cp-text-info-400:active{--tw-text-opacity: 1;color:rgb(0 19 183 / var(--tw-text-opacity))}.disabled\\:cp-pointer-events-none:disabled{pointer-events:none}.disabled\\:cp-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:cp-border-primary-100:disabled{--tw-border-opacity: 1;border-color:rgb(229 229 244 / var(--tw-border-opacity))}.disabled\\:cp-bg-primary-100:disabled{--tw-bg-opacity: 1;background-color:rgb(229 229 244 / var(--tw-bg-opacity))}.disabled\\:cp-text-primary-500:disabled{--tw-text-opacity: 1;color:rgb(146 146 186 / var(--tw-text-opacity))}.disabled\\:cp-opacity-50:disabled{opacity:.5}.disabled\\:cp-shadow-none:disabled{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\\[disabled\\]\\:cp-pointer-events-none[data-disabled]{pointer-events:none}.data-\\[side\\=bottom\\]\\:cp-translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=left\\]\\:-cp-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=right\\]\\:cp-translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:-cp-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=closed\\]\\:cp-transform-none[data-state=closed]{transform:none}.data-\\[side\\=bottom\\]\\:cp-animate-none[data-side=bottom],.data-\\[state\\=closed\\]\\:cp-animate-none[data-state=closed]{animation:none}.data-\\[state\\=open\\]\\:cp-bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\\[disabled\\]\\:cp-text-primary-500[data-disabled]{--tw-text-opacity: 1;color:rgb(146 146 186 / var(--tw-text-opacity))}.data-\\[disabled\\]\\:cp-opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=closed\\]\\:cp-transition-none[data-state=closed]{transition-property:none}.data-\\[state\\=open\\]\\:cp-animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:cp-animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:cp-fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:cp-fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:cp-zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:cp-zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:cp-slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:cp-slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:cp-slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:cp-slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.\\[\\&\\>span\\]\\:cp-line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}
3
+ `,document.head.appendChild(Hr);function Ur(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const L=Ur(i),Ri=Ur(vt);var Dn={exports:{}},jt={};/**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.min.js
6
6
  *
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
- */var Ur;function zi(){if(Ur)return jt;Ur=1;var e=i,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(s,l,d){var f,u={},m=null,h=null;d!==void 0&&(m=""+d),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(h=l.ref);for(f in l)r.call(l,f)&&!a.hasOwnProperty(f)&&(u[f]=l[f]);if(s&&s.defaultProps)for(f in l=s.defaultProps,l)u[f]===void 0&&(u[f]=l[f]);return{$$typeof:t,type:s,key:m,ref:h,props:u,_owner:o.current}}return jt.Fragment=n,jt.jsx=c,jt.jsxs=c,jt}var Lt={};/**
11
+ */var Kr;function Hi(){if(Kr)return jt;Kr=1;var e=i,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(s,l,d){var f,u={},m=null,h=null;d!==void 0&&(m=""+d),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(h=l.ref);for(f in l)r.call(l,f)&&!a.hasOwnProperty(f)&&(u[f]=l[f]);if(s&&s.defaultProps)for(f in l=s.defaultProps,l)u[f]===void 0&&(u[f]=l[f]);return{$$typeof:t,type:s,key:m,ref:h,props:u,_owner:o.current}}return jt.Fragment=n,jt.jsx=c,jt.jsxs=c,jt}var Lt={};/**
12
12
  * @license React
13
13
  * react-jsx-runtime.development.js
14
14
  *
@@ -16,114 +16,114 @@
16
16
  *
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
- */var Kr;function Wi(){return Kr||(Kr=1,process.env.NODE_ENV!=="production"&&function(){var e=i,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),p=Symbol.iterator,v="@@iterator";function x(b){if(b===null||typeof b!="object")return null;var T=p&&b[p]||b[v];return typeof T=="function"?T:null}var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(b){{for(var T=arguments.length,V=new Array(T>1?T-1:0),q=1;q<T;q++)V[q-1]=arguments[q];$("error",b,V)}}function $(b,T,V){{var q=g.ReactDebugCurrentFrame,de=q.getStackAddendum();de!==""&&(T+="%s",V=V.concat([de]));var ue=V.map(function(ce){return String(ce)});ue.unshift("Warning: "+T),Function.prototype.apply.call(console[b],console,ue)}}var C=!1,E=!1,M=!1,k=!1,_=!1,B;B=Symbol.for("react.module.reference");function K(b){return!!(typeof b=="string"||typeof b=="function"||b===r||b===a||_||b===o||b===d||b===f||k||b===h||C||E||M||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===u||b.$$typeof===c||b.$$typeof===s||b.$$typeof===l||b.$$typeof===B||b.getModuleId!==void 0))}function D(b,T,V){var q=b.displayName;if(q)return q;var de=T.displayName||T.name||"";return de!==""?V+"("+de+")":V}function P(b){return b.displayName||"Context"}function G(b){if(b==null)return null;if(typeof b.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if(typeof b=="object")switch(b.$$typeof){case s:var T=b;return P(T)+".Consumer";case c:var V=b;return P(V._context)+".Provider";case l:return D(b,b.render,"ForwardRef");case u:var q=b.displayName||null;return q!==null?q:G(b.type)||"Memo";case m:{var de=b,ue=de._payload,ce=de._init;try{return G(ce(ue))}catch{return null}}}return null}var z=Object.assign,R=0,O,I,N,S,F,W,X;function ae(){}ae.__reactDisabledLog=!0;function be(){{if(R===0){O=console.log,I=console.info,N=console.warn,S=console.error,F=console.group,W=console.groupCollapsed,X=console.groupEnd;var b={configurable:!0,enumerable:!0,value:ae,writable:!0};Object.defineProperties(console,{info:b,log:b,warn:b,error:b,group:b,groupCollapsed:b,groupEnd:b})}R++}}function ge(){{if(R--,R===0){var b={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},b,{value:O}),info:z({},b,{value:I}),warn:z({},b,{value:N}),error:z({},b,{value:S}),group:z({},b,{value:F}),groupCollapsed:z({},b,{value:W}),groupEnd:z({},b,{value:X})})}R<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pe=g.ReactCurrentDispatcher,U;function Q(b,T,V){{if(U===void 0)try{throw Error()}catch(de){var q=de.stack.trim().match(/\n( *(at )?)/);U=q&&q[1]||""}return`
19
+ */var Gr;function Ui(){return Gr||(Gr=1,process.env.NODE_ENV!=="production"&&function(){var e=i,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),p=Symbol.iterator,v="@@iterator";function x(b){if(b===null||typeof b!="object")return null;var T=p&&b[p]||b[v];return typeof T=="function"?T:null}var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(b){{for(var T=arguments.length,V=new Array(T>1?T-1:0),q=1;q<T;q++)V[q-1]=arguments[q];$("error",b,V)}}function $(b,T,V){{var q=g.ReactDebugCurrentFrame,de=q.getStackAddendum();de!==""&&(T+="%s",V=V.concat([de]));var ue=V.map(function(ce){return String(ce)});ue.unshift("Warning: "+T),Function.prototype.apply.call(console[b],console,ue)}}var C=!1,E=!1,O=!1,k=!1,_=!1,B;B=Symbol.for("react.module.reference");function K(b){return!!(typeof b=="string"||typeof b=="function"||b===r||b===a||_||b===o||b===d||b===f||k||b===h||C||E||O||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===u||b.$$typeof===c||b.$$typeof===s||b.$$typeof===l||b.$$typeof===B||b.getModuleId!==void 0))}function D(b,T,V){var q=b.displayName;if(q)return q;var de=T.displayName||T.name||"";return de!==""?V+"("+de+")":V}function P(b){return b.displayName||"Context"}function G(b){if(b==null)return null;if(typeof b.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if(typeof b=="object")switch(b.$$typeof){case s:var T=b;return P(T)+".Consumer";case c:var V=b;return P(V._context)+".Provider";case l:return D(b,b.render,"ForwardRef");case u:var q=b.displayName||null;return q!==null?q:G(b.type)||"Memo";case m:{var de=b,ue=de._payload,ce=de._init;try{return G(ce(ue))}catch{return null}}}return null}var z=Object.assign,R=0,M,I,N,S,F,W,X;function ae(){}ae.__reactDisabledLog=!0;function be(){{if(R===0){M=console.log,I=console.info,N=console.warn,S=console.error,F=console.group,W=console.groupCollapsed,X=console.groupEnd;var b={configurable:!0,enumerable:!0,value:ae,writable:!0};Object.defineProperties(console,{info:b,log:b,warn:b,error:b,group:b,groupCollapsed:b,groupEnd:b})}R++}}function ge(){{if(R--,R===0){var b={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},b,{value:M}),info:z({},b,{value:I}),warn:z({},b,{value:N}),error:z({},b,{value:S}),group:z({},b,{value:F}),groupCollapsed:z({},b,{value:W}),groupEnd:z({},b,{value:X})})}R<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pe=g.ReactCurrentDispatcher,U;function Q(b,T,V){{if(U===void 0)try{throw Error()}catch(de){var q=de.stack.trim().match(/\n( *(at )?)/);U=q&&q[1]||""}return`
20
20
  `+U+b}}var te=!1,ne;{var ie=typeof WeakMap=="function"?WeakMap:Map;ne=new ie}function oe(b,T){if(!b||te)return"";{var V=ne.get(b);if(V!==void 0)return V}var q;te=!0;var de=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ue;ue=pe.current,pe.current=null,be();try{if(T){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(ke){q=ke}Reflect.construct(b,[],ce)}else{try{ce.call()}catch(ke){q=ke}b.call(ce.prototype)}}else{try{throw Error()}catch(ke){q=ke}b()}}catch(ke){if(ke&&q&&typeof ke.stack=="string"){for(var re=ke.stack.split(`
21
21
  `),Se=q.stack.split(`
22
- `),we=re.length-1,ye=Se.length-1;we>=1&&ye>=0&&re[we]!==Se[ye];)ye--;for(;we>=1&&ye>=0;we--,ye--)if(re[we]!==Se[ye]){if(we!==1||ye!==1)do if(we--,ye--,ye<0||re[we]!==Se[ye]){var Oe=`
23
- `+re[we].replace(" at new "," at ");return b.displayName&&Oe.includes("<anonymous>")&&(Oe=Oe.replace("<anonymous>",b.displayName)),typeof b=="function"&&ne.set(b,Oe),Oe}while(we>=1&&ye>=0);break}}}finally{te=!1,pe.current=ue,ge(),Error.prepareStackTrace=de}var At=b?b.displayName||b.name:"",ht=At?Q(At):"";return typeof b=="function"&&ne.set(b,ht),ht}function $e(b,T,V){return oe(b,!1)}function Ce(b){var T=b.prototype;return!!(T&&T.isReactComponent)}function A(b,T,V){if(b==null)return"";if(typeof b=="function")return oe(b,Ce(b));if(typeof b=="string")return Q(b);switch(b){case d:return Q("Suspense");case f:return Q("SuspenseList")}if(typeof b=="object")switch(b.$$typeof){case l:return $e(b.render);case u:return A(b.type,T,V);case m:{var q=b,de=q._payload,ue=q._init;try{return A(ue(de),T,V)}catch{}}}return""}var H=Object.prototype.hasOwnProperty,Z={},me=g.ReactDebugCurrentFrame;function xe(b){if(b){var T=b._owner,V=A(b.type,b._source,T?T.type:null);me.setExtraStackFrame(V)}else me.setExtraStackFrame(null)}function le(b,T,V,q,de){{var ue=Function.call.bind(H);for(var ce in b)if(ue(b,ce)){var re=void 0;try{if(typeof b[ce]!="function"){var Se=Error((q||"React class")+": "+V+" type `"+ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof b[ce]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Se.name="Invariant Violation",Se}re=b[ce](T,ce,q,V,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(we){re=we}re&&!(re instanceof Error)&&(xe(de),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",q||"React class",V,ce,typeof re),xe(null)),re instanceof Error&&!(re.message in Z)&&(Z[re.message]=!0,xe(de),w("Failed %s type: %s",V,re.message),xe(null))}}}var se=Array.isArray;function Ee(b){return se(b)}function mt(b){{var T=typeof Symbol=="function"&&Symbol.toStringTag,V=T&&b[Symbol.toStringTag]||b.constructor.name||"Object";return V}}function Lr(b){try{return Pi(b),!1}catch{return!0}}function Pi(b){return""+b}function Ni(b){if(Lr(b))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",mt(b)),Pi(b)}var Jt=g.ReactCurrentOwner,_m={key:!0,ref:!0,__self:!0,__source:!0},Ii,Oi,Fr;Fr={};function Tm(b){if(H.call(b,"ref")){var T=Object.getOwnPropertyDescriptor(b,"ref").get;if(T&&T.isReactWarning)return!1}return b.ref!==void 0}function km(b){if(H.call(b,"key")){var T=Object.getOwnPropertyDescriptor(b,"key").get;if(T&&T.isReactWarning)return!1}return b.key!==void 0}function Pm(b,T){if(typeof b.ref=="string"&&Jt.current&&T&&Jt.current.stateNode!==T){var V=G(Jt.current.type);Fr[V]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',G(Jt.current.type),b.ref),Fr[V]=!0)}}function Nm(b,T){{var V=function(){Ii||(Ii=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",T))};V.isReactWarning=!0,Object.defineProperty(b,"key",{get:V,configurable:!0})}}function Im(b,T){{var V=function(){Oi||(Oi=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",T))};V.isReactWarning=!0,Object.defineProperty(b,"ref",{get:V,configurable:!0})}}var Om=function(b,T,V,q,de,ue,ce){var re={$$typeof:t,type:b,key:T,ref:V,props:ce,_owner:ue};return re._store={},Object.defineProperty(re._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(re,"_self",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.defineProperty(re,"_source",{configurable:!1,enumerable:!1,writable:!1,value:de}),Object.freeze&&(Object.freeze(re.props),Object.freeze(re)),re};function Mm(b,T,V,q,de){{var ue,ce={},re=null,Se=null;V!==void 0&&(Ni(V),re=""+V),km(T)&&(Ni(T.key),re=""+T.key),Tm(T)&&(Se=T.ref,Pm(T,de));for(ue in T)H.call(T,ue)&&!_m.hasOwnProperty(ue)&&(ce[ue]=T[ue]);if(b&&b.defaultProps){var we=b.defaultProps;for(ue in we)ce[ue]===void 0&&(ce[ue]=we[ue])}if(re||Se){var ye=typeof b=="function"?b.displayName||b.name||"Unknown":b;re&&Nm(ce,ye),Se&&Im(ce,ye)}return Om(b,re,Se,de,q,Jt.current,ce)}}var Vr=g.ReactCurrentOwner,Mi=g.ReactDebugCurrentFrame;function Dt(b){if(b){var T=b._owner,V=A(b.type,b._source,T?T.type:null);Mi.setExtraStackFrame(V)}else Mi.setExtraStackFrame(null)}var Br;Br=!1;function zr(b){return typeof b=="object"&&b!==null&&b.$$typeof===t}function Di(){{if(Vr.current){var b=G(Vr.current.type);if(b)return`
22
+ `),we=re.length-1,ye=Se.length-1;we>=1&&ye>=0&&re[we]!==Se[ye];)ye--;for(;we>=1&&ye>=0;we--,ye--)if(re[we]!==Se[ye]){if(we!==1||ye!==1)do if(we--,ye--,ye<0||re[we]!==Se[ye]){var Me=`
23
+ `+re[we].replace(" at new "," at ");return b.displayName&&Me.includes("<anonymous>")&&(Me=Me.replace("<anonymous>",b.displayName)),typeof b=="function"&&ne.set(b,Me),Me}while(we>=1&&ye>=0);break}}}finally{te=!1,pe.current=ue,ge(),Error.prepareStackTrace=de}var At=b?b.displayName||b.name:"",ht=At?Q(At):"";return typeof b=="function"&&ne.set(b,ht),ht}function $e(b,T,V){return oe(b,!1)}function Ce(b){var T=b.prototype;return!!(T&&T.isReactComponent)}function A(b,T,V){if(b==null)return"";if(typeof b=="function")return oe(b,Ce(b));if(typeof b=="string")return Q(b);switch(b){case d:return Q("Suspense");case f:return Q("SuspenseList")}if(typeof b=="object")switch(b.$$typeof){case l:return $e(b.render);case u:return A(b.type,T,V);case m:{var q=b,de=q._payload,ue=q._init;try{return A(ue(de),T,V)}catch{}}}return""}var H=Object.prototype.hasOwnProperty,Z={},me=g.ReactDebugCurrentFrame;function xe(b){if(b){var T=b._owner,V=A(b.type,b._source,T?T.type:null);me.setExtraStackFrame(V)}else me.setExtraStackFrame(null)}function le(b,T,V,q,de){{var ue=Function.call.bind(H);for(var ce in b)if(ue(b,ce)){var re=void 0;try{if(typeof b[ce]!="function"){var Se=Error((q||"React class")+": "+V+" type `"+ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof b[ce]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Se.name="Invariant Violation",Se}re=b[ce](T,ce,q,V,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(we){re=we}re&&!(re instanceof Error)&&(xe(de),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",q||"React class",V,ce,typeof re),xe(null)),re instanceof Error&&!(re.message in Z)&&(Z[re.message]=!0,xe(de),w("Failed %s type: %s",V,re.message),xe(null))}}}var se=Array.isArray;function Ee(b){return se(b)}function mt(b){{var T=typeof Symbol=="function"&&Symbol.toStringTag,V=T&&b[Symbol.toStringTag]||b.constructor.name||"Object";return V}}function Fr(b){try{return Mi(b),!1}catch{return!0}}function Mi(b){return""+b}function Oi(b){if(Fr(b))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",mt(b)),Mi(b)}var Jt=g.ReactCurrentOwner,Im={key:!0,ref:!0,__self:!0,__source:!0},Di,Ai,Vr;Vr={};function Mm(b){if(H.call(b,"ref")){var T=Object.getOwnPropertyDescriptor(b,"ref").get;if(T&&T.isReactWarning)return!1}return b.ref!==void 0}function Om(b){if(H.call(b,"key")){var T=Object.getOwnPropertyDescriptor(b,"key").get;if(T&&T.isReactWarning)return!1}return b.key!==void 0}function Dm(b,T){if(typeof b.ref=="string"&&Jt.current&&T&&Jt.current.stateNode!==T){var V=G(Jt.current.type);Vr[V]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',G(Jt.current.type),b.ref),Vr[V]=!0)}}function Am(b,T){{var V=function(){Di||(Di=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",T))};V.isReactWarning=!0,Object.defineProperty(b,"key",{get:V,configurable:!0})}}function jm(b,T){{var V=function(){Ai||(Ai=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",T))};V.isReactWarning=!0,Object.defineProperty(b,"ref",{get:V,configurable:!0})}}var Lm=function(b,T,V,q,de,ue,ce){var re={$$typeof:t,type:b,key:T,ref:V,props:ce,_owner:ue};return re._store={},Object.defineProperty(re._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(re,"_self",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.defineProperty(re,"_source",{configurable:!1,enumerable:!1,writable:!1,value:de}),Object.freeze&&(Object.freeze(re.props),Object.freeze(re)),re};function Fm(b,T,V,q,de){{var ue,ce={},re=null,Se=null;V!==void 0&&(Oi(V),re=""+V),Om(T)&&(Oi(T.key),re=""+T.key),Mm(T)&&(Se=T.ref,Dm(T,de));for(ue in T)H.call(T,ue)&&!Im.hasOwnProperty(ue)&&(ce[ue]=T[ue]);if(b&&b.defaultProps){var we=b.defaultProps;for(ue in we)ce[ue]===void 0&&(ce[ue]=we[ue])}if(re||Se){var ye=typeof b=="function"?b.displayName||b.name||"Unknown":b;re&&Am(ce,ye),Se&&jm(ce,ye)}return Lm(b,re,Se,de,q,Jt.current,ce)}}var Br=g.ReactCurrentOwner,ji=g.ReactDebugCurrentFrame;function Dt(b){if(b){var T=b._owner,V=A(b.type,b._source,T?T.type:null);ji.setExtraStackFrame(V)}else ji.setExtraStackFrame(null)}var zr;zr=!1;function Wr(b){return typeof b=="object"&&b!==null&&b.$$typeof===t}function Li(){{if(Br.current){var b=G(Br.current.type);if(b)return`
24
24
 
25
- Check the render method of \``+b+"`."}return""}}function Dm(b){return""}var Ai={};function Am(b){{var T=Di();if(!T){var V=typeof b=="string"?b:b.displayName||b.name;V&&(T=`
25
+ Check the render method of \``+b+"`."}return""}}function Vm(b){return""}var Fi={};function Bm(b){{var T=Li();if(!T){var V=typeof b=="string"?b:b.displayName||b.name;V&&(T=`
26
26
 
27
- Check the top-level render call using <`+V+">.")}return T}}function ji(b,T){{if(!b._store||b._store.validated||b.key!=null)return;b._store.validated=!0;var V=Am(T);if(Ai[V])return;Ai[V]=!0;var q="";b&&b._owner&&b._owner!==Vr.current&&(q=" It was passed a child from "+G(b._owner.type)+"."),Dt(b),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',V,q),Dt(null)}}function Li(b,T){{if(typeof b!="object")return;if(Ee(b))for(var V=0;V<b.length;V++){var q=b[V];zr(q)&&ji(q,T)}else if(zr(b))b._store&&(b._store.validated=!0);else if(b){var de=x(b);if(typeof de=="function"&&de!==b.entries)for(var ue=de.call(b),ce;!(ce=ue.next()).done;)zr(ce.value)&&ji(ce.value,T)}}}function jm(b){{var T=b.type;if(T==null||typeof T=="string")return;var V;if(typeof T=="function")V=T.propTypes;else if(typeof T=="object"&&(T.$$typeof===l||T.$$typeof===u))V=T.propTypes;else return;if(V){var q=G(T);le(V,b.props,"prop",q,b)}else if(T.PropTypes!==void 0&&!Br){Br=!0;var de=G(T);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",de||"Unknown")}typeof T.getDefaultProps=="function"&&!T.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Lm(b){{for(var T=Object.keys(b.props),V=0;V<T.length;V++){var q=T[V];if(q!=="children"&&q!=="key"){Dt(b),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",q),Dt(null);break}}b.ref!==null&&(Dt(b),w("Invalid attribute `ref` supplied to `React.Fragment`."),Dt(null))}}var Fi={};function Vi(b,T,V,q,de,ue){{var ce=K(b);if(!ce){var re="";(b===void 0||typeof b=="object"&&b!==null&&Object.keys(b).length===0)&&(re+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Se=Dm();Se?re+=Se:re+=Di();var we;b===null?we="null":Ee(b)?we="array":b!==void 0&&b.$$typeof===t?(we="<"+(G(b.type)||"Unknown")+" />",re=" Did you accidentally export a JSX literal instead of a component?"):we=typeof b,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",we,re)}var ye=Mm(b,T,V,de,ue);if(ye==null)return ye;if(ce){var Oe=T.children;if(Oe!==void 0)if(q)if(Ee(Oe)){for(var At=0;At<Oe.length;At++)Li(Oe[At],b);Object.freeze&&Object.freeze(Oe)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Li(Oe,b)}if(H.call(T,"key")){var ht=G(b),ke=Object.keys(T).filter(function(Rm){return Rm!=="key"}),Wr=ke.length>0?"{key: someKey, "+ke.join(": ..., ")+": ...}":"{key: someKey}";if(!Fi[ht+Wr]){var Wm=ke.length>0?"{"+ke.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
27
+ Check the top-level render call using <`+V+">.")}return T}}function Vi(b,T){{if(!b._store||b._store.validated||b.key!=null)return;b._store.validated=!0;var V=Bm(T);if(Fi[V])return;Fi[V]=!0;var q="";b&&b._owner&&b._owner!==Br.current&&(q=" It was passed a child from "+G(b._owner.type)+"."),Dt(b),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',V,q),Dt(null)}}function Bi(b,T){{if(typeof b!="object")return;if(Ee(b))for(var V=0;V<b.length;V++){var q=b[V];Wr(q)&&Vi(q,T)}else if(Wr(b))b._store&&(b._store.validated=!0);else if(b){var de=x(b);if(typeof de=="function"&&de!==b.entries)for(var ue=de.call(b),ce;!(ce=ue.next()).done;)Wr(ce.value)&&Vi(ce.value,T)}}}function zm(b){{var T=b.type;if(T==null||typeof T=="string")return;var V;if(typeof T=="function")V=T.propTypes;else if(typeof T=="object"&&(T.$$typeof===l||T.$$typeof===u))V=T.propTypes;else return;if(V){var q=G(T);le(V,b.props,"prop",q,b)}else if(T.PropTypes!==void 0&&!zr){zr=!0;var de=G(T);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",de||"Unknown")}typeof T.getDefaultProps=="function"&&!T.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Wm(b){{for(var T=Object.keys(b.props),V=0;V<T.length;V++){var q=T[V];if(q!=="children"&&q!=="key"){Dt(b),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",q),Dt(null);break}}b.ref!==null&&(Dt(b),w("Invalid attribute `ref` supplied to `React.Fragment`."),Dt(null))}}var zi={};function Wi(b,T,V,q,de,ue){{var ce=K(b);if(!ce){var re="";(b===void 0||typeof b=="object"&&b!==null&&Object.keys(b).length===0)&&(re+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Se=Vm();Se?re+=Se:re+=Li();var we;b===null?we="null":Ee(b)?we="array":b!==void 0&&b.$$typeof===t?(we="<"+(G(b.type)||"Unknown")+" />",re=" Did you accidentally export a JSX literal instead of a component?"):we=typeof b,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",we,re)}var ye=Fm(b,T,V,de,ue);if(ye==null)return ye;if(ce){var Me=T.children;if(Me!==void 0)if(q)if(Ee(Me)){for(var At=0;At<Me.length;At++)Bi(Me[At],b);Object.freeze&&Object.freeze(Me)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Bi(Me,b)}if(H.call(T,"key")){var ht=G(b),ke=Object.keys(T).filter(function(Ym){return Ym!=="key"}),Rr=ke.length>0?"{key: someKey, "+ke.join(": ..., ")+": ...}":"{key: someKey}";if(!zi[ht+Rr]){var Gm=ke.length>0?"{"+ke.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
28
28
  let props = %s;
29
29
  <%s {...props} />
30
30
  React keys must be passed directly to JSX without using spread:
31
31
  let props = %s;
32
- <%s key={someKey} {...props} />`,Wr,ht,Wm,ht),Fi[ht+Wr]=!0}}return b===r?Lm(ye):jm(ye),ye}}function Fm(b,T,V){return Vi(b,T,V,!0)}function Vm(b,T,V){return Vi(b,T,V,!1)}var Bm=Vm,zm=Fm;Lt.Fragment=r,Lt.jsx=Bm,Lt.jsxs=zm}()),Lt}process.env.NODE_ENV==="production"?Mn.exports=zi():Mn.exports=Wi();var y=Mn.exports;function Gr(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Gr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ri(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Gr(e))&&(r&&(r+=" "),r+=t);return r}const Dn="-";function Hi(e){const t=Ki(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function o(c){const s=c.split(Dn);return s[0]===""&&s.length!==1&&s.shift(),Yr(s,t)||Ui(c)}function a(c,s){const l=n[c]||[];return s&&r[c]?[...l,...r[c]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:a}}function Yr(e,t){if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Yr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Dn);return t.validators.find(({validator:c})=>c(a))?.classGroupId}const Xr=/^\[(.+)\]$/;function Ui(e){if(Xr.test(e)){const t=Xr.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function Ki(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Yi(Object.entries(e.classGroups),n).forEach(([a,c])=>{An(c,r,a,t)}),r}function An(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:qr(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(Gi(o)){An(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,c])=>{An(c,qr(t,a),n,r)})})}function qr(e,t){let n=e;return t.split(Dn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Gi(e){return e.isThemeGetter}function Yi(e,t){return t?e.map(([n,r])=>{const o=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([c,s])=>[t+c,s])):a);return[n,o]}):e}function Xi(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(a,c){n.set(a,c),t++,t>e&&(t=0,r=n,n=new Map)}return{get(a){let c=n.get(a);if(c!==void 0)return c;if((c=r.get(a))!==void 0)return o(a,c),c},set(a,c){n.has(a)?n.set(a,c):o(a,c)}}}const Zr="!";function qi(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(c){const s=[];let l=0,d=0,f;for(let v=0;v<c.length;v++){let x=c[v];if(l===0){if(x===r&&(n||c.slice(v,v+o)===t)){s.push(c.slice(d,v)),d=v+o;continue}if(x==="/"){f=v;continue}}x==="["?l++:x==="]"&&l--}const u=s.length===0?c:c.substring(d),m=u.startsWith(Zr),h=m?u.substring(1):u,p=f&&f>d?f-d:void 0;return{modifiers:s,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:p}}}function Zi(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function Ji(e){return{cache:Xi(e.cacheSize),splitModifiers:qi(e),...Hi(e)}}const Qi=/\s+/;function ec(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=new Set;return e.trim().split(Qi).map(c=>{const{modifiers:s,hasImportantModifier:l,baseClassName:d,maybePostfixModifierPosition:f}=n(c);let u=r(f?d.substring(0,f):d),m=!!f;if(!u){if(!f)return{isTailwindClass:!1,originalClassName:c};if(u=r(d),!u)return{isTailwindClass:!1,originalClassName:c};m=!1}const h=Zi(s).join(":");return{isTailwindClass:!0,modifierId:l?h+Zr:h,classGroupId:u,originalClassName:c,hasPostfixModifier:m}}).reverse().filter(c=>{if(!c.isTailwindClass)return!0;const{modifierId:s,classGroupId:l,hasPostfixModifier:d}=c,f=s+l;return a.has(f)?!1:(a.add(f),o(l,d).forEach(u=>a.add(s+u)),!0)}).reverse().map(c=>c.originalClassName).join(" ")}function tc(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Jr(t))&&(r&&(r+=" "),r+=n);return r}function Jr(e){if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Jr(e[r]))&&(n&&(n+=" "),n+=t);return n}function nc(e,...t){let n,r,o,a=c;function c(l){const d=t.reduce((f,u)=>u(f),e());return n=Ji(d),r=n.cache.get,o=n.cache.set,a=s,s(l)}function s(l){const d=r(l);if(d)return d;const f=ec(l,n);return o(l,f),f}return function(){return a(tc.apply(null,arguments))}}function he(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const Qr=/^\[(?:([a-z-]+):)?(.+)\]$/i,rc=/^\d+\/\d+$/,oc=new Set(["px","full","screen"]),ac=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ic=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,cc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,sc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Be(e){return it(e)||oc.has(e)||rc.test(e)}function Ye(e){return gt(e,"length",gc)}function it(e){return!!e&&!Number.isNaN(Number(e))}function Qt(e){return gt(e,"number",it)}function Ft(e){return!!e&&Number.isInteger(Number(e))}function dc(e){return e.endsWith("%")&&it(e.slice(0,-1))}function J(e){return Qr.test(e)}function Xe(e){return ac.test(e)}const uc=new Set(["length","size","percentage"]);function fc(e){return gt(e,uc,eo)}function pc(e){return gt(e,"position",eo)}const mc=new Set(["image","url"]);function hc(e){return gt(e,mc,wc)}function vc(e){return gt(e,"",bc)}function Vt(){return!0}function gt(e,t,n){const r=Qr.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function gc(e){return ic.test(e)&&!cc.test(e)}function eo(){return!1}function bc(e){return sc.test(e)}function wc(e){return lc.test(e)}function xc(){const e=he("colors"),t=he("spacing"),n=he("blur"),r=he("brightness"),o=he("borderColor"),a=he("borderRadius"),c=he("borderSpacing"),s=he("borderWidth"),l=he("contrast"),d=he("grayscale"),f=he("hueRotate"),u=he("invert"),m=he("gap"),h=he("gradientColorStops"),p=he("gradientColorStopPositions"),v=he("inset"),x=he("margin"),g=he("opacity"),w=he("padding"),$=he("saturate"),C=he("scale"),E=he("sepia"),M=he("skew"),k=he("space"),_=he("translate"),B=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto",J,t],P=()=>[J,t],G=()=>["",Be,Ye],z=()=>["auto",it,J],R=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],I=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],S=()=>["","0",J],F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[it,Qt],X=()=>[it,J];return{cacheSize:500,separator:":",theme:{colors:[Vt],spacing:[Be,Ye],blur:["none","",Xe,J],brightness:W(),borderColor:[e],borderRadius:["none","","full",Xe,J],borderSpacing:P(),borderWidth:G(),contrast:W(),grayscale:S(),hueRotate:X(),invert:S(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[dc,Ye],inset:D(),margin:D(),opacity:W(),padding:P(),saturate:W(),scale:W(),sepia:S(),skew:X(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",J]}],container:["container"],columns:[{columns:[Xe]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...R(),J]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ft,J]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",J]}],grow:[{grow:S()}],shrink:[{shrink:S()}],order:[{order:["first","last","none",Ft,J]}],"grid-cols":[{"grid-cols":[Vt]}],"col-start-end":[{col:["auto",{span:["full",Ft,J]},J]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[Vt]}],"row-start-end":[{row:["auto",{span:[Ft,J]},J]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",J]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",J]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",J,t]}],"min-w":[{"min-w":[J,t,"min","max","fit"]}],"max-w":[{"max-w":[J,t,"none","full","min","max","fit","prose",{screen:[Xe]},Xe]}],h:[{h:[J,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[J,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[J,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[J,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Xe,Ye]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Qt]}],"font-family":[{font:[Vt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",J]}],"line-clamp":[{"line-clamp":["none",it,Qt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Be,J]}],"list-image":[{"list-image":["none",J]}],"list-style-type":[{list:["none","disc","decimal",J]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Be,Ye]}],"underline-offset":[{"underline-offset":["auto",Be,J]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",J]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...R(),pc]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",fc]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},hc]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:O()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[Be,J]}],"outline-w":[{outline:[Be,Ye]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Be,Ye]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Xe,vc]}],"shadow-color":[{shadow:[Vt]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...I(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":I()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Xe,J]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[u]}],saturate:[{saturate:[$]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[$]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",J]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",J]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",J]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Ft,J]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[M]}],"skew-y":[{"skew-y":[M]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",J]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",J]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",J]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Be,Ye,Qt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const yc=nc(xc);function ee(...e){return yc(Ri(e))}function to(e,t="600 12px Arial, Helvetica, sans-serif"){const n=document.createElement("canvas"),r=n.getContext("2d");if(r){r.font=t;const o=r.measureText(e);return n.remove(),o.width}return 0}function no(e){if(e<=0)return"";const t=65,n=(e-1)%26,r=Math.floor((e-1)/26);return no(r)+String.fromCharCode(t+n)}const $c=16,ro=8,oo=16;function en(e,t){let n=e;if(t){const{leftIcon:r=!0,paddingX:o=!0,rightIcon:a}=t;o&&(n+=$c),r&&(n+=oo+ro),a&&(n+=oo+ro)}return n}en(160);const qe=en(480),Ze=en(80),Cc=36,Bt=26,ao=["Decimal","Float","Integer","Percentage","Currency"];function Ec(e){return e.map((t,n)=>{const r=to(t.name)||0;let o=en(r,{rightIcon:!0})+1;return o=o<Ze?Ze:o,o>qe&&(o=qe),{...t,id:`spreadsheet__column__id__${t.id||t.name}`,alphabetLetter:no(n+1),position:n,state:{...t.state,width:o}}})}function jn({value:e,min:t,max:n}){const r=Number(e);if(e==="")return;let o=r;return typeof t=="number"&&r<t&&(o=t),typeof n=="number"&&r>n&&(o=n),o??""}function Sc(e){try{return e.includes("/")?new Date(e.split("/").reverse().join("-")).toISOString().split("T")[0].replace("+",""):new Date(e).toISOString().split("T")[0].replace("+","")}catch{return null}}const Je=".",Qe=",",_c=200;function Tc(e){const{value:t="",column:n}=e;if(n){const{dataEditorType:r,settings:o}=n;if(typeof t=="string"&&r){const a=ao.includes(r),c=r==="String",s=r==="Date",l=r==="Boolean";if(c)return t.length>200?t.substring(0,_c):t;if(s)return Sc(t)||"";if(l)return t==="true"?"true":"false";if(a){const d=t.match(/\./g)?.length||0,f=t.match(/,/g)?.length||0;let u=t;if(f===1&&d===0&&(u=t.replace(Qe,Je)),f===0&&d===1&&(u=t),f===1&&d===1){const m=t.indexOf(Qe),h=t.indexOf(Je);m>h&&(u=t.replace(Je,"").replace(Qe,Je)),u=t.replace(Qe,"")}if(f>1&&d===1&&(u=t.replaceAll(Qe,"")),d>1&&f===0&&(u=t.replaceAll(Je,"")),f>1&&d===0&&(u=t.replaceAll(Qe,"")),d>1&&f===1&&(u=t.replaceAll(Je,"").replace(Qe,Je)),f===0&&d===0&&(u=t),f>1&&d>1&&(u=t.replaceAll(Qe,"").replaceAll(Je,"")),o){const m=o.numeric?.min,h=o.numeric?.max,p=jn({value:u,min:m,max:h});p&&(u=p.toString())}return Number(u)}}}return t}function kc(e,t){return new Array(e.rows).fill(void 0).map(()=>new Array(e.columns).fill(t))}function Pc(e){return e?.length}function Ln(e){const t=e?.[0];return t?t.length:0}function Fn(e){return{columns:Ln(e),rows:Pc(e)}}function Nc(e,t){return e.column===t.column&&e.row===t.row}function Ic(e,t){return t.row>=e.start.row&&t.column>=e.start.column&&t.row<=e.end.row&&t.column<=e.end.column}function Vn(e){const{matrix:t,pointRange:n}=e;return n.start.column===0&&n.end.column===Ln(t)}function Oc(e){const{matrix:t,pointRange:n,row:r}=e;return r>=n.start.row&&r<=n.end.row&&Vn({matrix:t,pointRange:n})}function Mc(e){let t=e;return e.endsWith(`
32
+ <%s key={someKey} {...props} />`,Rr,ht,Gm,ht),zi[ht+Rr]=!0}}return b===r?Wm(ye):zm(ye),ye}}function Rm(b,T,V){return Wi(b,T,V,!0)}function Hm(b,T,V){return Wi(b,T,V,!1)}var Um=Hm,Km=Rm;Lt.Fragment=r,Lt.jsx=Um,Lt.jsxs=Km}()),Lt}process.env.NODE_ENV==="production"?Dn.exports=Hi():Dn.exports=Ui();var y=Dn.exports;function Yr(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Yr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ki(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Yr(e))&&(r&&(r+=" "),r+=t);return r}const An="-";function Gi(e){const t=Xi(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function o(c){const s=c.split(An);return s[0]===""&&s.length!==1&&s.shift(),Xr(s,t)||Yi(c)}function a(c,s){const l=n[c]||[];return s&&r[c]?[...l,...r[c]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:a}}function Xr(e,t){if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Xr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(An);return t.validators.find(({validator:c})=>c(a))?.classGroupId}const qr=/^\[(.+)\]$/;function Yi(e){if(qr.test(e)){const t=qr.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function Xi(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Zi(Object.entries(e.classGroups),n).forEach(([a,c])=>{jn(c,r,a,t)}),r}function jn(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Zr(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(qi(o)){jn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,c])=>{jn(c,Zr(t,a),n,r)})})}function Zr(e,t){let n=e;return t.split(An).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function qi(e){return e.isThemeGetter}function Zi(e,t){return t?e.map(([n,r])=>{const o=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([c,s])=>[t+c,s])):a);return[n,o]}):e}function Ji(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(a,c){n.set(a,c),t++,t>e&&(t=0,r=n,n=new Map)}return{get(a){let c=n.get(a);if(c!==void 0)return c;if((c=r.get(a))!==void 0)return o(a,c),c},set(a,c){n.has(a)?n.set(a,c):o(a,c)}}}const Jr="!";function Qi(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(c){const s=[];let l=0,d=0,f;for(let v=0;v<c.length;v++){let x=c[v];if(l===0){if(x===r&&(n||c.slice(v,v+o)===t)){s.push(c.slice(d,v)),d=v+o;continue}if(x==="/"){f=v;continue}}x==="["?l++:x==="]"&&l--}const u=s.length===0?c:c.substring(d),m=u.startsWith(Jr),h=m?u.substring(1):u,p=f&&f>d?f-d:void 0;return{modifiers:s,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:p}}}function ec(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function tc(e){return{cache:Ji(e.cacheSize),splitModifiers:Qi(e),...Gi(e)}}const nc=/\s+/;function rc(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=new Set;return e.trim().split(nc).map(c=>{const{modifiers:s,hasImportantModifier:l,baseClassName:d,maybePostfixModifierPosition:f}=n(c);let u=r(f?d.substring(0,f):d),m=!!f;if(!u){if(!f)return{isTailwindClass:!1,originalClassName:c};if(u=r(d),!u)return{isTailwindClass:!1,originalClassName:c};m=!1}const h=ec(s).join(":");return{isTailwindClass:!0,modifierId:l?h+Jr:h,classGroupId:u,originalClassName:c,hasPostfixModifier:m}}).reverse().filter(c=>{if(!c.isTailwindClass)return!0;const{modifierId:s,classGroupId:l,hasPostfixModifier:d}=c,f=s+l;return a.has(f)?!1:(a.add(f),o(l,d).forEach(u=>a.add(s+u)),!0)}).reverse().map(c=>c.originalClassName).join(" ")}function oc(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Qr(t))&&(r&&(r+=" "),r+=n);return r}function Qr(e){if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Qr(e[r]))&&(n&&(n+=" "),n+=t);return n}function eo(e,...t){let n,r,o,a=c;function c(l){const d=t.reduce((f,u)=>u(f),e());return n=tc(d),r=n.cache.get,o=n.cache.set,a=s,s(l)}function s(l){const d=r(l);if(d)return d;const f=rc(l,n);return o(l,f),f}return function(){return a(oc.apply(null,arguments))}}function he(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const to=/^\[(?:([a-z-]+):)?(.+)\]$/i,ac=/^\d+\/\d+$/,ic=new Set(["px","full","screen"]),cc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sc=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,lc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,dc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,uc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Be(e){return it(e)||ic.has(e)||ac.test(e)}function Ye(e){return gt(e,"length",wc)}function it(e){return!!e&&!Number.isNaN(Number(e))}function Qt(e){return gt(e,"number",it)}function Ft(e){return!!e&&Number.isInteger(Number(e))}function fc(e){return e.endsWith("%")&&it(e.slice(0,-1))}function J(e){return to.test(e)}function Xe(e){return cc.test(e)}const pc=new Set(["length","size","percentage"]);function mc(e){return gt(e,pc,no)}function hc(e){return gt(e,"position",no)}const vc=new Set(["image","url"]);function gc(e){return gt(e,vc,yc)}function bc(e){return gt(e,"",xc)}function Vt(){return!0}function gt(e,t,n){const r=to.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function wc(e){return sc.test(e)&&!lc.test(e)}function no(){return!1}function xc(e){return dc.test(e)}function yc(e){return uc.test(e)}function ro(){const e=he("colors"),t=he("spacing"),n=he("blur"),r=he("brightness"),o=he("borderColor"),a=he("borderRadius"),c=he("borderSpacing"),s=he("borderWidth"),l=he("contrast"),d=he("grayscale"),f=he("hueRotate"),u=he("invert"),m=he("gap"),h=he("gradientColorStops"),p=he("gradientColorStopPositions"),v=he("inset"),x=he("margin"),g=he("opacity"),w=he("padding"),$=he("saturate"),C=he("scale"),E=he("sepia"),O=he("skew"),k=he("space"),_=he("translate"),B=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto",J,t],P=()=>[J,t],G=()=>["",Be,Ye],z=()=>["auto",it,J],R=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],M=()=>["solid","dashed","dotted","double","none"],I=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],S=()=>["","0",J],F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[it,Qt],X=()=>[it,J];return{cacheSize:500,separator:":",theme:{colors:[Vt],spacing:[Be,Ye],blur:["none","",Xe,J],brightness:W(),borderColor:[e],borderRadius:["none","","full",Xe,J],borderSpacing:P(),borderWidth:G(),contrast:W(),grayscale:S(),hueRotate:X(),invert:S(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[fc,Ye],inset:D(),margin:D(),opacity:W(),padding:P(),saturate:W(),scale:W(),sepia:S(),skew:X(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",J]}],container:["container"],columns:[{columns:[Xe]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...R(),J]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ft,J]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",J]}],grow:[{grow:S()}],shrink:[{shrink:S()}],order:[{order:["first","last","none",Ft,J]}],"grid-cols":[{"grid-cols":[Vt]}],"col-start-end":[{col:["auto",{span:["full",Ft,J]},J]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[Vt]}],"row-start-end":[{row:["auto",{span:[Ft,J]},J]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",J]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",J]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",J,t]}],"min-w":[{"min-w":[J,t,"min","max","fit"]}],"max-w":[{"max-w":[J,t,"none","full","min","max","fit","prose",{screen:[Xe]},Xe]}],h:[{h:[J,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[J,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[J,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[J,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Xe,Ye]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Qt]}],"font-family":[{font:[Vt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",J]}],"line-clamp":[{"line-clamp":["none",it,Qt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Be,J]}],"list-image":[{"list-image":["none",J]}],"list-style-type":[{list:["none","disc","decimal",J]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...M(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Be,Ye]}],"underline-offset":[{"underline-offset":["auto",Be,J]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",J]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...R(),hc]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",mc]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},gc]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...M(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:M()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...M()]}],"outline-offset":[{"outline-offset":[Be,J]}],"outline-w":[{outline:[Be,Ye]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Be,Ye]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Xe,bc]}],"shadow-color":[{shadow:[Vt]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...I(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":I()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Xe,J]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[u]}],saturate:[{saturate:[$]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[$]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",J]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",J]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",J]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Ft,J]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",J]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",J]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",J]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Be,Ye,Qt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function $c(e,{cacheSize:t,prefix:n,separator:r,extend:o={},override:a={}}){en(e,"cacheSize",t),en(e,"prefix",n),en(e,"separator",r);for(const c in a)Cc(e[c],a[c]);for(const c in o)Ec(e[c],o[c]);return e}function en(e,t,n){n!==void 0&&(e[t]=n)}function Cc(e,t){if(t)for(const n in t)en(e,n,t[n])}function Ec(e,t){if(t)for(const n in t){const r=t[n];r!==void 0&&(e[n]=(e[n]||[]).concat(r))}}function Sc(e,...t){return typeof e=="function"?eo(ro,e,...t):eo(()=>$c(ro(),e),...t)}const _c=Sc({prefix:"cp-"});function ee(...e){return _c(Ki(e))}function oo(e,t="600 12px Arial, Helvetica, sans-serif"){const n=document.createElement("canvas"),r=n.getContext("2d");if(r){r.font=t;const o=r.measureText(e);return n.remove(),o.width}return 0}function ao(e){if(e<=0)return"";const t=65,n=(e-1)%26,r=Math.floor((e-1)/26);return ao(r)+String.fromCharCode(t+n)}const Tc=16,io=8,co=16;function tn(e,t){let n=e;if(t){const{leftIcon:r=!0,paddingX:o=!0,rightIcon:a}=t;o&&(n+=Tc),r&&(n+=co+io),a&&(n+=co+io)}return n}tn(160);const qe=tn(480),Ze=tn(80),kc=36,Bt=26,so=["Decimal","Float","Integer","Percentage","Currency"];function Pc(e){return e.map((t,n)=>{const r=oo(t.name)||0;let o=tn(r,{rightIcon:!0})+1;return o=o<Ze?Ze:o,o>qe&&(o=qe),{...t,id:`spreadsheet__column__id__${t.id||t.name}`,alphabetLetter:ao(n+1),position:n,state:{...t.state,width:o}}})}function Ln({value:e,min:t,max:n}){const r=Number(e);if(e==="")return;let o=r;return typeof t=="number"&&r<t&&(o=t),typeof n=="number"&&r>n&&(o=n),o??""}function Nc(e){try{return e.includes("/")?new Date(e.split("/").reverse().join("-")).toISOString().split("T")[0].replace("+",""):new Date(e).toISOString().split("T")[0].replace("+","")}catch{return null}}const Je=".",Qe=",",Ic=200;function Mc(e){const{value:t="",column:n}=e;if(n){const{dataEditorType:r,settings:o}=n;if(typeof t=="string"&&r){const a=so.includes(r),c=r==="String",s=r==="Date",l=r==="Boolean";if(c)return t.length>200?t.substring(0,Ic):t;if(s)return Nc(t)||"";if(l)return t==="true"?"true":"false";if(a){const d=t.match(/\./g)?.length||0,f=t.match(/,/g)?.length||0;let u=t;if(f===1&&d===0&&(u=t.replace(Qe,Je)),f===0&&d===1&&(u=t),f===1&&d===1){const m=t.indexOf(Qe),h=t.indexOf(Je);m>h&&(u=t.replace(Je,"").replace(Qe,Je)),u=t.replace(Qe,"")}if(f>1&&d===1&&(u=t.replaceAll(Qe,"")),d>1&&f===0&&(u=t.replaceAll(Je,"")),f>1&&d===0&&(u=t.replaceAll(Qe,"")),d>1&&f===1&&(u=t.replaceAll(Je,"").replace(Qe,Je)),f===0&&d===0&&(u=t),f>1&&d>1&&(u=t.replaceAll(Qe,"").replaceAll(Je,"")),o){const m=o.numeric?.min,h=o.numeric?.max,p=Ln({value:u,min:m,max:h});p&&(u=p.toString())}return Number(u)}}}return t}function Oc(e,t){return new Array(e.rows).fill(void 0).map(()=>new Array(e.columns).fill(t))}function Dc(e){return e?.length}function Fn(e){const t=e?.[0];return t?t.length:0}function Vn(e){return{columns:Fn(e),rows:Dc(e)}}function Ac(e,t){return e.column===t.column&&e.row===t.row}function jc(e,t){return t.row>=e.start.row&&t.column>=e.start.column&&t.row<=e.end.row&&t.column<=e.end.column}function Bn(e){const{matrix:t,pointRange:n}=e;return n.start.column===0&&n.end.column===Fn(t)}function Lc(e){const{matrix:t,pointRange:n,row:r}=e;return r>=n.start.row&&r<=n.end.row&&Bn({matrix:t,pointRange:n})}function Fc(e){let t=e;return e.endsWith(`
33
33
  `)&&(t=e.substring(0,e.length-1)),t.split(`
34
- `).map(n=>n.split(" ").map(r=>r.replaceAll("\r","")))}function Dc(e){const{mA:t,mB:n,point:r={column:0,row:0}}=e,o=Fn(t),a=Fn(n),c=r.row+a.rows>o.rows,s=r.column+a.columns>o.columns,l=c?r.row+a.rows:o.rows,d=s?r.column+a.columns:o.columns,f=kc({rows:l,columns:d});for(let u=0;u<o.rows;u+=1)for(let m=0;m<o.columns;m+=1)f[u][m]=t[u][m];for(let u=0;u<a.rows;u+=1)for(let m=0;m<a.columns;m+=1)f[u+r.row][m+r.column]=n[u][m];return f}let Bn;const io=i.createContext(null);function Ac(e){const{children:t,startingColumns:n,matrix:r=[],staticRows:o,onMatrixChange:a}=e,[c,s]=i.useState(r),l=i.useMemo(()=>Ec(n),[n]),d=i.useMemo(()=>Ln(c)||l.length,[c,l.length]),f=i.useMemo(()=>Fn(c),[c]),u=i.useMemo(()=>f.rows===0,[f.rows]),[m,h]=i.useState(l),[p,v]=i.useState(null),[x,g]=i.useState({height:0,width:0}),[w,$]=i.useState(!1),C=i.useCallback((N=2e3)=>{$(!0),Bn&&clearTimeout(Bn),Bn=setTimeout(()=>$(!1),N)},[]),E=i.useMemo(()=>!!(p&&Vn({matrix:c,pointRange:p})),[p,c]),M=i.useCallback(async N=>{const{state:S}=await navigator.permissions.query({name:"clipboard-read"});if(S==="denied"){console.log("denied");return}const F=await navigator.clipboard.readText(),W=Mc(F),ge=Dc({mA:c,mB:W,point:N}).map((U,Q)=>U.map((te,ne)=>{const ie=m[ne]?.state?.readonly,oe=c[Q]?c[Q][ne]:"";return ie?oe:te})).map(U=>U.map((Q,te)=>Tc({value:Q,column:m[te]}))).map(U=>U.slice(0,n.length)),pe=o?ge.slice(0,c.length):ge;s(pe),a?.(pe)},[m,c,n.length,o,a]),k=i.useCallback(N=>{const{data:S,point:F}=N,{column:W,row:X}=F,ae=structuredClone(c);ae[X][W]=S,s(ae),a?.(ae)},[c,a]),_=i.useCallback(()=>{if(p&&!o){const N=p.start.row,S=p.end.row,F=S-N+1;if(!E)return;const W=F>1?`Você irá excluir ${F} linhas, deseja continuar?
35
- Linha N° ${N+1} até N° ${S+1}`:`Você irá excluir a linha N° ${N+1}, deseja continuar?`;if(!confirm(W))return;const ae=c.filter((be,ge)=>ge<N||ge>S);v(null),s(ae),a?.(ae)}},[c,p,o,E,a]),B=i.useCallback((N,S)=>{if(p&&S&&S.shiftKey){const F=N<p.start.row?N:p.start.row,W=N<p.start.row?p.start.row:N;return v({start:{row:F,column:0},end:{row:W,column:d}})}v({start:{row:N,column:0},end:{row:N,column:d}})},[d,p]),K=i.useCallback(N=>{N.row===p?.start.row&&N.column===p.start.column||v({start:N,end:N})},[p?.start.row,p?.start.column]),D=i.useCallback(N=>!!(p&&Ic(p,N)),[p]),P=i.useCallback(N=>{const{position:S,width:F}=N;let W=F;F>qe&&(W=qe),F<Ze&&(W=Ze),h(X=>X.map((ae,be)=>({...ae,state:{...ae.state,width:be===S?W:ae.state.width}})))},[]),G=i.useCallback(()=>{if(o)return;const N=[...structuredClone(c),new Array(d).fill(null).map((S,F)=>{const{dataEditorType:W}=m[F];return ao.includes(W)?0:W==="Boolean"?!1:""})];s(N),a?.(N),C()},[o,c,m,d,C,a]),z=i.useCallback(()=>{const N={column:0,row:0},S={column:f.columns,row:f.rows-1};v({start:N,end:S})},[f]),R=i.useCallback(N=>{const{columnId:S,visible:F}=N,W=X=>X.id!==S?X:{...X,state:{...X.state,visible:F}};h(X=>X.map(ae=>W(ae)))},[]),O=i.useCallback(()=>{h(N=>N.map(S=>({...S,state:{...S.state,visible:!0}})))},[]);i.useEffect(()=>{s(r)},[r]),i.useEffect(()=>{h(N=>l.map((S,F)=>({...S,state:{visible:N[F].state.visible,width:N[F].state.width,readonly:S.state.readonly}})))},[l]),i.useEffect(()=>{if(!p||!Nc(p.start,p.end))return;const N=()=>{M(p.start)};return window.addEventListener("paste",N),()=>window.removeEventListener("paste",N)},[M,p]);const I=i.useMemo(()=>({size:f,matrix:c,columns:m,emptySize:u,staticRows:o,hasSomeEntireRow:E,highlightLastRow:w,pointRange:p,setPointRange:v,containerDimensions:x,setContainerDimensions:g,onPaste:M,onChange:k,onRemoveRow:_,onSelectRow:B,onSelectCell:K,isCellSelected:D,onInsertNewRow:G,onColumnResize:P,onSelectSpreadsheet:z,onColumnVisibilityChange:R,onRestoreColumnsVisibility:O}),[f,c,u,o,m,E,w,p,x,M,k,_,B,K,D,G,P,z,R,O]);return y.jsx(io.Provider,{value:I,children:t})}function je(){const e=i.useContext(io);if(!e)throw new Error("useSpreadsheet has to be used within <SpreadsheetContext.Provider>");return e}function jc(e){const{children:t,className:n}=e,{size:r,setContainerDimensions:o}=je(),a=i.useRef(null);return i.useEffect(()=>{const c=a.current;if(!c)return;const s=new ResizeObserver(l=>{const d=l[0];if(d){const f=d.contentRect.width,u=d.contentRect.height;o({height:u,width:f})}});return s.observe(c),()=>{s.disconnect()}},[o]),y.jsx("div",{ref:a,className:ee("cp-relative cp-min-h-[260px] cp-w-full cp-border cp-border-t-0 cp-border-r-0",r.rows>=7?"cp-border-b-0":"cp-border-b",n),children:t})}function Lc(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function Fc(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var Vc=function(e,t){return typeof t=="boolean"?t:!e},co=function(e){return i.useReducer(Vc,e)},Bc=["mousedown","touchstart"],so=function(e,t,n){n===void 0&&(n=Bc);var r=i.useRef(t);i.useEffect(function(){r.current=t},[t]),i.useEffect(function(){for(var o=function(l){var d=e.current;d&&!d.contains(l.target)&&r.current(l)},a=0,c=n;a<c.length;a++){var s=c[a];Lc(document,s,o)}return function(){for(var l=0,d=n;l<d.length;l++){var f=d[l];Fc(document,f,o)}}},[n,e])};function zc(e){const{children:t,className:n}=e,{setPointRange:r}=je(),o=i.useRef(null);return so(o,()=>r(null)),y.jsx("div",{ref:o,className:ee("",n),children:t})}const lo={Matrix:jc,Root:zc};function Wc(e){const{className:t,...n}=e;return y.jsx("button",{draggable:!0,className:ee("cp-h-9 cp-w-1.5 cp-cursor-col-resize cp-rounded-sm cp-bg-neutral-400 cp-drop-shadow-md",t),...n,children:y.jsxs("div",{className:"cp-relative",children:[y.jsx("span",{className:"-cp-translate-y-1/2 cp-absolute cp-top-1/2 cp-right-2.5 cp-h-3 cp-w-1 cp-rounded-full cp-bg-neutral-300"}),y.jsx("span",{className:"-cp-translate-y-1/2 cp-absolute cp-top-1/2 cp-left-2.5 cp-h-3 cp-w-1 cp-rounded-full cp-bg-neutral-300"})]})})}function Rc(e){const{className:t,column:n,visible:r,children:o,width:a}=e,{position:c,alphabetLetter:s}=n,{matrix:l,pointRange:d,containerDimensions:f,onColumnResize:u}=je(),m=i.useRef(null),h=i.useMemo(()=>(f?.height||0)+32,[f?.height]),[p,v]=i.useState(!1),[x,g]=i.useState(0),[w,$]=i.useState(0),C=i.useMemo(()=>p?w-x:0,[p,w,x]),E=i.useCallback(D=>{g(D.clientX),v(!0)},[]),M=i.useCallback(D=>{const P=m.current;if(!P)return;const G=D.clientX-x;let z=a+G;z>qe&&(z=qe),z<Ze&&(z=Ze),P.style.left=`${z}px`,$(D.clientX)},[x,a]),k=i.useCallback(D=>{const P=D.clientX-x,G=a+P;u({width:G,position:c}),v(!1)},[x,a,c,u]),_=i.useCallback(()=>{if(p)return`bg-neutral-100 font-bold text-neutral-700 ${t}`;if(d&&!p){const{start:D,end:P}=d,G=Vn({matrix:l,pointRange:d}),z=c>=D.column&&c<=P.column;if(G)return`bg-[#0085FF] font-bold text-white ${t}`;if(z)return`bg-blue-100 font-bold text-blue-700 ${t}`}return t},[p,t,l,d,c]),B=i.useCallback(()=>{let D=a+C;return D>qe&&(D=qe),D<Ze&&(D=Ze),`${Math.round(D)}px`},[a,C]),K=i.useMemo(()=>({onDragStart:E,onDrag:M,onDragEnd:k}),[E,M,k]);return i.useEffect(()=>{const D=m.current;D&&(D.style.left=`${a}px`)},[a]),r?y.jsxs("div",{style:{width:a},className:ee("cp-relative cp-flex cp-h-7 cp-shrink-0 cp-items-center cp-justify-start cp-border cp-border-t-0 cp-border-l-0 cp-text-primary-400 cp-text-sm cp-pl-2 cp-border-primary-100",_()),children:[y.jsx(Wc,{...K,className:ee("-cp-right-[3px] -cp-top-1 cp-absolute cp-z-50 cp-opacity-0 hover:cp-opacity-100",p&&"cp-opacity-0")}),y.jsx("div",{ref:m,style:{height:h},className:ee("-cp-top-4 cp-pointer-events-none cp-absolute cp-z-50 cp-w-1.5 cp-rounded-full cp-bg-blue-400 cp-shadow-lg cp-outline cp-outline-sky-100",p?"cp-opacity-100":"cp-opacity-0"),children:y.jsx("span",{className:"-cp-translate-y-1/2 cp-relative cp-top-8 cp-left-4 cp-z-50 cp-select-none cp-rounded-md cp-border cp-bg-white cp-p-1 cp-font-semibold cp-drop-shadow-md",children:B()})}),y.jsx("span",{children:o||s})]}):null}function et(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Hc=["color"],zn=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,Hc);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Uc=["color"],uo=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,Uc);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Kc=["color"],Gc=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,Kc);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Yc=["color"],Xc=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,Yc);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),qc=["color"],Zc=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,qc);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Jc=["color"],Qc=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,Jc);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:r}))}),es=["color"],ts=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,es);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M0.877075 7.49972C0.877075 3.84204 3.84222 0.876892 7.49991 0.876892C11.1576 0.876892 14.1227 3.84204 14.1227 7.49972C14.1227 11.1574 11.1576 14.1226 7.49991 14.1226C3.84222 14.1226 0.877075 11.1574 0.877075 7.49972ZM7.49991 1.82689C4.36689 1.82689 1.82708 4.36671 1.82708 7.49972C1.82708 10.6327 4.36689 13.1726 7.49991 13.1726C10.6329 13.1726 13.1727 10.6327 13.1727 7.49972C13.1727 4.36671 10.6329 1.82689 7.49991 1.82689ZM8.24993 10.5C8.24993 10.9142 7.91414 11.25 7.49993 11.25C7.08571 11.25 6.74993 10.9142 6.74993 10.5C6.74993 10.0858 7.08571 9.75 7.49993 9.75C7.91414 9.75 8.24993 10.0858 8.24993 10.5ZM6.05003 6.25C6.05003 5.57211 6.63511 4.925 7.50003 4.925C8.36496 4.925 8.95003 5.57211 8.95003 6.25C8.95003 6.74118 8.68002 6.99212 8.21447 7.27494C8.16251 7.30651 8.10258 7.34131 8.03847 7.37854L8.03841 7.37858C7.85521 7.48497 7.63788 7.61119 7.47449 7.73849C7.23214 7.92732 6.95003 8.23198 6.95003 8.7C6.95004 9.00376 7.19628 9.25 7.50004 9.25C7.8024 9.25 8.04778 9.00601 8.05002 8.70417L8.05056 8.7033C8.05924 8.6896 8.08493 8.65735 8.15058 8.6062C8.25207 8.52712 8.36508 8.46163 8.51567 8.37436L8.51571 8.37433C8.59422 8.32883 8.68296 8.27741 8.78559 8.21506C9.32004 7.89038 10.05 7.35382 10.05 6.25C10.05 4.92789 8.93511 3.825 7.50003 3.825C6.06496 3.825 4.95003 4.92789 4.95003 6.25C4.95003 6.55376 5.19628 6.8 5.50003 6.8C5.80379 6.8 6.05003 6.55376 6.05003 6.25Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),ns=["color"],rs=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,ns);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M3.94993 2.95002L3.94993 4.49998C3.94993 4.74851 3.74845 4.94998 3.49993 4.94998C3.2514 4.94998 3.04993 4.74851 3.04993 4.49998V2.50004C3.04993 2.45246 3.05731 2.40661 3.07099 2.36357C3.12878 2.18175 3.29897 2.05002 3.49993 2.05002H11.4999C11.6553 2.05002 11.7922 2.12872 11.8731 2.24842C11.9216 2.32024 11.9499 2.40682 11.9499 2.50002L11.9499 2.50004V4.49998C11.9499 4.74851 11.7485 4.94998 11.4999 4.94998C11.2514 4.94998 11.0499 4.74851 11.0499 4.49998V2.95002H8.04993V12.05H9.25428C9.50281 12.05 9.70428 12.2515 9.70428 12.5C9.70428 12.7486 9.50281 12.95 9.25428 12.95H5.75428C5.50575 12.95 5.30428 12.7486 5.30428 12.5C5.30428 12.2515 5.50575 12.05 5.75428 12.05H6.94993V2.95002H3.94993Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});/**
34
+ `).map(n=>n.split(" ").map(r=>r.replaceAll("\r","")))}function Vc(e){const{mA:t,mB:n,point:r={column:0,row:0}}=e,o=Vn(t),a=Vn(n),c=r.row+a.rows>o.rows,s=r.column+a.columns>o.columns,l=c?r.row+a.rows:o.rows,d=s?r.column+a.columns:o.columns,f=Oc({rows:l,columns:d});for(let u=0;u<o.rows;u+=1)for(let m=0;m<o.columns;m+=1)f[u][m]=t[u][m];for(let u=0;u<a.rows;u+=1)for(let m=0;m<a.columns;m+=1)f[u+r.row][m+r.column]=n[u][m];return f}let zn;const lo=i.createContext(null);function Bc(e){const{children:t,startingColumns:n,matrix:r=[],staticRows:o,onMatrixChange:a}=e,[c,s]=i.useState(r),l=i.useMemo(()=>Pc(n),[n]),d=i.useMemo(()=>Fn(c)||l.length,[c,l.length]),f=i.useMemo(()=>Vn(c),[c]),u=i.useMemo(()=>f.rows===0,[f.rows]),[m,h]=i.useState(l),[p,v]=i.useState(null),[x,g]=i.useState({height:0,width:0}),[w,$]=i.useState(!1),C=i.useCallback((N=2e3)=>{$(!0),zn&&clearTimeout(zn),zn=setTimeout(()=>$(!1),N)},[]),E=i.useMemo(()=>!!(p&&Bn({matrix:c,pointRange:p})),[p,c]),O=i.useCallback(async N=>{const{state:S}=await navigator.permissions.query({name:"clipboard-read"});if(S==="denied"){console.log("denied");return}const F=await navigator.clipboard.readText(),W=Fc(F),ge=Vc({mA:c,mB:W,point:N}).map((U,Q)=>U.map((te,ne)=>{const ie=m[ne]?.state?.readonly,oe=c[Q]?c[Q][ne]:"";return ie?oe:te})).map(U=>U.map((Q,te)=>Mc({value:Q,column:m[te]}))).map(U=>U.slice(0,n.length)),pe=o?ge.slice(0,c.length):ge;s(pe),a?.(pe)},[m,c,n.length,o,a]),k=i.useCallback(N=>{const{data:S,point:F}=N,{column:W,row:X}=F,ae=structuredClone(c);ae[X][W]=S,s(ae),a?.(ae)},[c,a]),_=i.useCallback(()=>{if(p&&!o){const N=p.start.row,S=p.end.row,F=S-N+1;if(!E)return;const W=F>1?`Você irá excluir ${F} linhas, deseja continuar?
35
+ Linha N° ${N+1} até N° ${S+1}`:`Você irá excluir a linha N° ${N+1}, deseja continuar?`;if(!confirm(W))return;const ae=c.filter((be,ge)=>ge<N||ge>S);v(null),s(ae),a?.(ae)}},[c,p,o,E,a]),B=i.useCallback((N,S)=>{if(p&&S&&S.shiftKey){const F=N<p.start.row?N:p.start.row,W=N<p.start.row?p.start.row:N;return v({start:{row:F,column:0},end:{row:W,column:d}})}v({start:{row:N,column:0},end:{row:N,column:d}})},[d,p]),K=i.useCallback(N=>{N.row===p?.start.row&&N.column===p.start.column||v({start:N,end:N})},[p?.start.row,p?.start.column]),D=i.useCallback(N=>!!(p&&jc(p,N)),[p]),P=i.useCallback(N=>{const{position:S,width:F}=N;let W=F;F>qe&&(W=qe),F<Ze&&(W=Ze),h(X=>X.map((ae,be)=>({...ae,state:{...ae.state,width:be===S?W:ae.state.width}})))},[]),G=i.useCallback(()=>{if(o)return;const N=[...structuredClone(c),new Array(d).fill(null).map((S,F)=>{const{dataEditorType:W}=m[F];return so.includes(W)?0:W==="Boolean"?!1:""})];s(N),a?.(N),C()},[o,c,m,d,C,a]),z=i.useCallback(()=>{const N={column:0,row:0},S={column:f.columns,row:f.rows-1};v({start:N,end:S})},[f]),R=i.useCallback(N=>{const{columnId:S,visible:F}=N,W=X=>X.id!==S?X:{...X,state:{...X.state,visible:F}};h(X=>X.map(ae=>W(ae)))},[]),M=i.useCallback(()=>{h(N=>N.map(S=>({...S,state:{...S.state,visible:!0}})))},[]);i.useEffect(()=>{s(r)},[r]),i.useEffect(()=>{h(N=>l.map((S,F)=>({...S,state:{visible:N[F].state.visible,width:N[F].state.width,readonly:S.state.readonly}})))},[l]),i.useEffect(()=>{if(!p||!Ac(p.start,p.end))return;const N=()=>{O(p.start)};return window.addEventListener("paste",N),()=>window.removeEventListener("paste",N)},[O,p]);const I=i.useMemo(()=>({size:f,matrix:c,columns:m,emptySize:u,staticRows:o,hasSomeEntireRow:E,highlightLastRow:w,pointRange:p,setPointRange:v,containerDimensions:x,setContainerDimensions:g,onPaste:O,onChange:k,onRemoveRow:_,onSelectRow:B,onSelectCell:K,isCellSelected:D,onInsertNewRow:G,onColumnResize:P,onSelectSpreadsheet:z,onColumnVisibilityChange:R,onRestoreColumnsVisibility:M}),[f,c,u,o,m,E,w,p,x,O,k,_,B,K,D,G,P,z,R,M]);return y.jsx(lo.Provider,{value:I,children:t})}function je(){const e=i.useContext(lo);if(!e)throw new Error("useSpreadsheet has to be used within <SpreadsheetContext.Provider>");return e}function zc(e){const{children:t,className:n}=e,{size:r,setContainerDimensions:o}=je(),a=i.useRef(null);return i.useEffect(()=>{const c=a.current;if(!c)return;const s=new ResizeObserver(l=>{const d=l[0];if(d){const f=d.contentRect.width,u=d.contentRect.height;o({height:u,width:f})}});return s.observe(c),()=>{s.disconnect()}},[o]),y.jsx("div",{ref:a,className:ee("cp-relative cp-min-h-[260px] cp-w-full cp-border cp-border-t-0 cp-border-r-0",r.rows>=7?"cp-border-b-0":"cp-border-b",n),children:t})}function Wc(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function Rc(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var Hc=function(e,t){return typeof t=="boolean"?t:!e},uo=function(e){return i.useReducer(Hc,e)},Uc=["mousedown","touchstart"],fo=function(e,t,n){n===void 0&&(n=Uc);var r=i.useRef(t);i.useEffect(function(){r.current=t},[t]),i.useEffect(function(){for(var o=function(l){var d=e.current;d&&!d.contains(l.target)&&r.current(l)},a=0,c=n;a<c.length;a++){var s=c[a];Wc(document,s,o)}return function(){for(var l=0,d=n;l<d.length;l++){var f=d[l];Rc(document,f,o)}}},[n,e])};function Kc(e){const{children:t,className:n}=e,{setPointRange:r}=je(),o=i.useRef(null);return fo(o,()=>r(null)),y.jsx("div",{ref:o,className:ee("",n),children:t})}const po={Matrix:zc,Root:Kc};function Gc(e){const{className:t,...n}=e;return y.jsx("button",{draggable:!0,className:ee("cp-h-9 cp-w-1.5 cp-cursor-col-resize cp-rounded-sm cp-bg-neutral-400 cp-drop-shadow-md",t),...n,children:y.jsxs("div",{className:"cp-relative",children:[y.jsx("span",{className:"-cp-translate-y-1/2 cp-absolute cp-top-1/2 cp-right-2.5 cp-h-3 cp-w-1 cp-rounded-full cp-bg-neutral-300"}),y.jsx("span",{className:"-cp-translate-y-1/2 cp-absolute cp-top-1/2 cp-left-2.5 cp-h-3 cp-w-1 cp-rounded-full cp-bg-neutral-300"})]})})}function Yc(e){const{className:t,column:n,visible:r,children:o,width:a}=e,{position:c,alphabetLetter:s}=n,{matrix:l,pointRange:d,containerDimensions:f,onColumnResize:u}=je(),m=i.useRef(null),h=i.useMemo(()=>(f?.height||0)+32,[f?.height]),[p,v]=i.useState(!1),[x,g]=i.useState(0),[w,$]=i.useState(0),C=i.useMemo(()=>p?w-x:0,[p,w,x]),E=i.useCallback(D=>{g(D.clientX),v(!0)},[]),O=i.useCallback(D=>{const P=m.current;if(!P)return;const G=D.clientX-x;let z=a+G;z>qe&&(z=qe),z<Ze&&(z=Ze),P.style.left=`${z}px`,$(D.clientX)},[x,a]),k=i.useCallback(D=>{const P=D.clientX-x,G=a+P;u({width:G,position:c}),v(!1)},[x,a,c,u]),_=i.useCallback(()=>{if(p)return`bg-neutral-100 font-bold text-neutral-700 ${t}`;if(d&&!p){const{start:D,end:P}=d,G=Bn({matrix:l,pointRange:d}),z=c>=D.column&&c<=P.column;if(G)return`bg-[#0085FF] font-bold text-white ${t}`;if(z)return`bg-blue-100 font-bold text-blue-700 ${t}`}return t},[p,t,l,d,c]),B=i.useCallback(()=>{let D=a+C;return D>qe&&(D=qe),D<Ze&&(D=Ze),`${Math.round(D)}px`},[a,C]),K=i.useMemo(()=>({onDragStart:E,onDrag:O,onDragEnd:k}),[E,O,k]);return i.useEffect(()=>{const D=m.current;D&&(D.style.left=`${a}px`)},[a]),r?y.jsxs("div",{style:{width:a},className:ee("cp-relative cp-flex cp-h-7 cp-shrink-0 cp-items-center cp-justify-start cp-border cp-border-t-0 cp-border-l-0 cp-text-primary-400 cp-text-sm cp-pl-2 cp-border-primary-100",_()),children:[y.jsx(Gc,{...K,className:ee("-cp-right-[3px] -cp-top-1 cp-absolute cp-z-50 cp-opacity-0 hover:cp-opacity-100",p&&"cp-opacity-0")}),y.jsx("div",{ref:m,style:{height:h},className:ee("-cp-top-4 cp-pointer-events-none cp-absolute cp-z-50 cp-w-1.5 cp-rounded-full cp-bg-blue-400 cp-shadow-lg cp-outline cp-outline-sky-100",p?"cp-opacity-100":"cp-opacity-0"),children:y.jsx("span",{className:"-cp-translate-y-1/2 cp-relative cp-top-8 cp-left-4 cp-z-50 cp-select-none cp-rounded-md cp-border cp-bg-white cp-p-1 cp-font-semibold cp-drop-shadow-md",children:B()})}),y.jsx("span",{children:o||s})]}):null}function et(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Xc=["color"],Wn=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,Xc);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),qc=["color"],mo=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,qc);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Zc=["color"],Jc=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,Zc);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Qc=["color"],es=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,Qc);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),ts=["color"],ns=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,ts);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),rs=["color"],os=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,rs);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:r}))}),as=["color"],is=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,as);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M0.877075 7.49972C0.877075 3.84204 3.84222 0.876892 7.49991 0.876892C11.1576 0.876892 14.1227 3.84204 14.1227 7.49972C14.1227 11.1574 11.1576 14.1226 7.49991 14.1226C3.84222 14.1226 0.877075 11.1574 0.877075 7.49972ZM7.49991 1.82689C4.36689 1.82689 1.82708 4.36671 1.82708 7.49972C1.82708 10.6327 4.36689 13.1726 7.49991 13.1726C10.6329 13.1726 13.1727 10.6327 13.1727 7.49972C13.1727 4.36671 10.6329 1.82689 7.49991 1.82689ZM8.24993 10.5C8.24993 10.9142 7.91414 11.25 7.49993 11.25C7.08571 11.25 6.74993 10.9142 6.74993 10.5C6.74993 10.0858 7.08571 9.75 7.49993 9.75C7.91414 9.75 8.24993 10.0858 8.24993 10.5ZM6.05003 6.25C6.05003 5.57211 6.63511 4.925 7.50003 4.925C8.36496 4.925 8.95003 5.57211 8.95003 6.25C8.95003 6.74118 8.68002 6.99212 8.21447 7.27494C8.16251 7.30651 8.10258 7.34131 8.03847 7.37854L8.03841 7.37858C7.85521 7.48497 7.63788 7.61119 7.47449 7.73849C7.23214 7.92732 6.95003 8.23198 6.95003 8.7C6.95004 9.00376 7.19628 9.25 7.50004 9.25C7.8024 9.25 8.04778 9.00601 8.05002 8.70417L8.05056 8.7033C8.05924 8.6896 8.08493 8.65735 8.15058 8.6062C8.25207 8.52712 8.36508 8.46163 8.51567 8.37436L8.51571 8.37433C8.59422 8.32883 8.68296 8.27741 8.78559 8.21506C9.32004 7.89038 10.05 7.35382 10.05 6.25C10.05 4.92789 8.93511 3.825 7.50003 3.825C6.06496 3.825 4.95003 4.92789 4.95003 6.25C4.95003 6.55376 5.19628 6.8 5.50003 6.8C5.80379 6.8 6.05003 6.55376 6.05003 6.25Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),cs=["color"],ss=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,cs);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M3.94993 2.95002L3.94993 4.49998C3.94993 4.74851 3.74845 4.94998 3.49993 4.94998C3.2514 4.94998 3.04993 4.74851 3.04993 4.49998V2.50004C3.04993 2.45246 3.05731 2.40661 3.07099 2.36357C3.12878 2.18175 3.29897 2.05002 3.49993 2.05002H11.4999C11.6553 2.05002 11.7922 2.12872 11.8731 2.24842C11.9216 2.32024 11.9499 2.40682 11.9499 2.50002L11.9499 2.50004V4.49998C11.9499 4.74851 11.7485 4.94998 11.4999 4.94998C11.2514 4.94998 11.0499 4.74851 11.0499 4.49998V2.95002H8.04993V12.05H9.25428C9.50281 12.05 9.70428 12.2515 9.70428 12.5C9.70428 12.7486 9.50281 12.95 9.25428 12.95H5.75428C5.50575 12.95 5.30428 12.7486 5.30428 12.5C5.30428 12.2515 5.50575 12.05 5.75428 12.05H6.94993V2.95002H3.94993Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});/**
36
36
  * @license lucide-react v0.376.0 - ISC
37
37
  *
38
38
  * This source code is licensed under the ISC license.
39
39
  * See the LICENSE file in the root directory of this source tree.
40
- */const os=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),fo=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
40
+ */const ls=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ho=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
41
41
  * @license lucide-react v0.376.0 - ISC
42
42
  *
43
43
  * This source code is licensed under the ISC license.
44
44
  * See the LICENSE file in the root directory of this source tree.
45
- */var as={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
45
+ */var ds={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
46
46
  * @license lucide-react v0.376.0 - ISC
47
47
  *
48
48
  * This source code is licensed under the ISC license.
49
49
  * See the LICENSE file in the root directory of this source tree.
50
- */const is=i.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:c,...s},l)=>i.createElement("svg",{ref:l,...as,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:fo("lucide",o),...s},[...c.map(([d,f])=>i.createElement(d,f)),...Array.isArray(a)?a:[a]]));/**
50
+ */const us=i.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:c,...s},l)=>i.createElement("svg",{ref:l,...ds,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ho("lucide",o),...s},[...c.map(([d,f])=>i.createElement(d,f)),...Array.isArray(a)?a:[a]]));/**
51
51
  * @license lucide-react v0.376.0 - ISC
52
52
  *
53
53
  * This source code is licensed under the ISC license.
54
54
  * See the LICENSE file in the root directory of this source tree.
55
- */const _e=(e,t)=>{const n=i.forwardRef(({className:r,...o},a)=>i.createElement(is,{ref:a,iconNode:t,className:fo(`lucide-${os(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
55
+ */const _e=(e,t)=>{const n=i.forwardRef(({className:r,...o},a)=>i.createElement(us,{ref:a,iconNode:t,className:ho(`lucide-${ls(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
56
56
  * @license lucide-react v0.376.0 - ISC
57
57
  *
58
58
  * This source code is licensed under the ISC license.
59
59
  * See the LICENSE file in the root directory of this source tree.
60
- */const po=_e("ArrowDownToLine",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]);/**
60
+ */const vo=_e("ArrowDownToLine",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]);/**
61
61
  * @license lucide-react v0.376.0 - ISC
62
62
  *
63
63
  * This source code is licensed under the ISC license.
64
64
  * See the LICENSE file in the root directory of this source tree.
65
- */const cs=_e("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
65
+ */const fs=_e("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
66
66
  * @license lucide-react v0.376.0 - ISC
67
67
  *
68
68
  * This source code is licensed under the ISC license.
69
69
  * See the LICENSE file in the root directory of this source tree.
70
- */const ss=_e("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
70
+ */const ps=_e("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
71
71
  * @license lucide-react v0.376.0 - ISC
72
72
  *
73
73
  * This source code is licensed under the ISC license.
74
74
  * See the LICENSE file in the root directory of this source tree.
75
- */const mo=_e("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
75
+ */const go=_e("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
76
76
  * @license lucide-react v0.376.0 - ISC
77
77
  *
78
78
  * This source code is licensed under the ISC license.
79
79
  * See the LICENSE file in the root directory of this source tree.
80
- */const ls=_e("CircleCheckBig",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
80
+ */const ms=_e("CircleCheckBig",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
81
81
  * @license lucide-react v0.376.0 - ISC
82
82
  *
83
83
  * This source code is licensed under the ISC license.
84
84
  * See the LICENSE file in the root directory of this source tree.
85
- */const ds=_e("CopyCheck",[["path",{d:"m12 15 2 2 4-4",key:"2c609p"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
85
+ */const hs=_e("CopyCheck",[["path",{d:"m12 15 2 2 4-4",key:"2c609p"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
86
86
  * @license lucide-react v0.376.0 - ISC
87
87
  *
88
88
  * This source code is licensed under the ISC license.
89
89
  * See the LICENSE file in the root directory of this source tree.
90
- */const ho=_e("Divide",[["circle",{cx:"12",cy:"6",r:"1",key:"1bh7o1"}],["line",{x1:"5",x2:"19",y1:"12",y2:"12",key:"13b5wn"}],["circle",{cx:"12",cy:"18",r:"1",key:"lqb9t5"}]]);/**
90
+ */const bo=_e("Divide",[["circle",{cx:"12",cy:"6",r:"1",key:"1bh7o1"}],["line",{x1:"5",x2:"19",y1:"12",y2:"12",key:"13b5wn"}],["circle",{cx:"12",cy:"18",r:"1",key:"lqb9t5"}]]);/**
91
91
  * @license lucide-react v0.376.0 - ISC
92
92
  *
93
93
  * This source code is licensed under the ISC license.
94
94
  * See the LICENSE file in the root directory of this source tree.
95
- */const us=_e("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
95
+ */const vs=_e("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
96
96
  * @license lucide-react v0.376.0 - ISC
97
97
  *
98
98
  * This source code is licensed under the ISC license.
99
99
  * See the LICENSE file in the root directory of this source tree.
100
- */const fs=_e("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
100
+ */const gs=_e("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
101
101
  * @license lucide-react v0.376.0 - ISC
102
102
  *
103
103
  * This source code is licensed under the ISC license.
104
104
  * See the LICENSE file in the root directory of this source tree.
105
- */const ps=_e("ListTodo",[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
105
+ */const bs=_e("ListTodo",[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
106
106
  * @license lucide-react v0.376.0 - ISC
107
107
  *
108
108
  * This source code is licensed under the ISC license.
109
109
  * See the LICENSE file in the root directory of this source tree.
110
- */const ms=_e("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
110
+ */const ws=_e("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
111
111
  * @license lucide-react v0.376.0 - ISC
112
112
  *
113
113
  * This source code is licensed under the ISC license.
114
114
  * See the LICENSE file in the root directory of this source tree.
115
- */const hs=_e("Percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]);/**
115
+ */const xs=_e("Percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]);/**
116
116
  * @license lucide-react v0.376.0 - ISC
117
117
  *
118
118
  * This source code is licensed under the ISC license.
119
119
  * See the LICENSE file in the root directory of this source tree.
120
- */const vs=_e("SquarePlus",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);/**
120
+ */const ys=_e("SquarePlus",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);/**
121
121
  * @license lucide-react v0.376.0 - ISC
122
122
  *
123
123
  * This source code is licensed under the ISC license.
124
124
  * See the LICENSE file in the root directory of this source tree.
125
- */const gs=_e("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j.apply(this,arguments)}function Y(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function bs(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function tn(...e){return t=>e.forEach(n=>bs(n,t))}function ve(...e){return i.useCallback(tn(...e),e)}function ct(e,t=[]){let n=[];function r(a,c){const s=i.createContext(c),l=n.length;n=[...n,c];function d(u){const{scope:m,children:h,...p}=u,v=m?.[e][l]||s,x=i.useMemo(()=>p,Object.values(p));return i.createElement(v.Provider,{value:x},h)}function f(u,m){const h=m?.[e][l]||s,p=i.useContext(h);if(p)return p;if(c!==void 0)return c;throw new Error(`\`${u}\` must be used within \`${a}\``)}return d.displayName=a+"Provider",[d,f]}const o=()=>{const a=n.map(c=>i.createContext(c));return function(s){const l=s?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,ws(o,...t)]}function ws(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const c=r.reduce((s,{useScope:l,scopeName:d})=>{const u=l(a)[`__scope${d}`];return{...s,...u}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}const bt=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),a=o.find(xs);if(a){const c=a.props.children,s=o.map(l=>l===a?i.Children.count(c)>1?i.Children.only(null):i.isValidElement(c)?c.props.children:null:l);return i.createElement(Wn,j({},r,{ref:t}),i.isValidElement(c)?i.cloneElement(c,void 0,s):null)}return i.createElement(Wn,j({},r,{ref:t}),n)});bt.displayName="Slot";const Wn=i.forwardRef((e,t)=>{const{children:n,...r}=e;return i.isValidElement(n)?i.cloneElement(n,{...ys(r,n.props),ref:t?tn(t,n.ref):n.ref}):i.Children.count(n)>1?i.Children.only(null):null});Wn.displayName="SlotClone";const vo=({children:e})=>i.createElement(i.Fragment,null,e);function xs(e){return i.isValidElement(e)&&e.type===vo}function ys(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const fe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:a,...c}=r,s=a?bt:t;return i.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),i.createElement(s,j({},c,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function go(e,t){e&&vt.flushSync(()=>e.dispatchEvent(t))}function Me(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function $s(e,t=globalThis?.document){const n=Me(e);i.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Rn="dismissableLayer.update",Cs="dismissableLayer.pointerDownOutside",Es="dismissableLayer.focusOutside";let bo;const Ss=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Hn=i.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:c,onInteractOutside:s,onDismiss:l,...d}=e,f=i.useContext(Ss),[u,m]=i.useState(null),h=(n=u?.ownerDocument)!==null&&n!==void 0?n:globalThis?.document,[,p]=i.useState({}),v=ve(t,_=>m(_)),x=Array.from(f.layers),[g]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=x.indexOf(g),$=u?x.indexOf(u):-1,C=f.layersWithOutsidePointerEventsDisabled.size>0,E=$>=w,M=_s(_=>{const B=_.target,K=[...f.branches].some(D=>D.contains(B));!E||K||(a?.(_),s?.(_),_.defaultPrevented||l?.())},h),k=Ts(_=>{const B=_.target;[...f.branches].some(D=>D.contains(B))||(c?.(_),s?.(_),_.defaultPrevented||l?.())},h);return $s(_=>{$===f.layers.size-1&&(o?.(_),!_.defaultPrevented&&l&&(_.preventDefault(),l()))},h),i.useEffect(()=>{if(u)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(bo=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),wo(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=bo)}},[u,h,r,f]),i.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),wo())},[u,f]),i.useEffect(()=>{const _=()=>p({});return document.addEventListener(Rn,_),()=>document.removeEventListener(Rn,_)},[]),i.createElement(fe.div,j({},d,{ref:v,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:Y(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Y(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Y(e.onPointerDownCapture,M.onPointerDownCapture)}))});function _s(e,t=globalThis?.document){const n=Me(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let d=function(){xo(Cs,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ts(e,t=globalThis?.document){const n=Me(e),r=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!r.current&&xo(Es,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function wo(){const e=new CustomEvent(Rn);document.dispatchEvent(e)}function xo(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?go(o,a):o.dispatchEvent(a)}const Te=globalThis?.document?i.useLayoutEffect:()=>{},ks=L.useId||(()=>{});let Ps=0;function wt(e){const[t,n]=L.useState(ks());return Te(()=>{n(r=>r??String(Ps++))},[e]),t?`radix-${t}`:""}const Ns=["top","right","bottom","left"],Le=Math.min,Pe=Math.max,nn=Math.round,rn=Math.floor,tt=e=>({x:e,y:e}),Is={left:"right",right:"left",bottom:"top",top:"bottom"},Os={start:"end",end:"start"};function Un(e,t,n){return Pe(e,Le(t,n))}function ze(e,t){return typeof e=="function"?e(t):e}function We(e){return e.split("-")[0]}function xt(e){return e.split("-")[1]}function Kn(e){return e==="x"?"y":"x"}function Gn(e){return e==="y"?"height":"width"}function yt(e){return["top","bottom"].includes(We(e))?"y":"x"}function Yn(e){return Kn(yt(e))}function Ms(e,t,n){n===void 0&&(n=!1);const r=xt(e),o=Yn(e),a=Gn(o);let c=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(c=on(c)),[c,on(c)]}function Ds(e){const t=on(e);return[Xn(e),t,Xn(t)]}function Xn(e){return e.replace(/start|end/g,t=>Os[t])}function As(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],c=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:c;default:return[]}}function js(e,t,n,r){const o=xt(e);let a=As(We(e),n==="start",r);return o&&(a=a.map(c=>c+"-"+o),t&&(a=a.concat(a.map(Xn)))),a}function on(e){return e.replace(/left|right|bottom|top/g,t=>Is[t])}function Ls(e){return{top:0,right:0,bottom:0,left:0,...e}}function yo(e){return typeof e!="number"?Ls(e):{top:e,right:e,bottom:e,left:e}}function an(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function $o(e,t,n){let{reference:r,floating:o}=e;const a=yt(t),c=Yn(t),s=Gn(c),l=We(t),d=a==="y",f=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,m=r[s]/2-o[s]/2;let h;switch(l){case"top":h={x:f,y:r.y-o.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:u};break;case"left":h={x:r.x-o.width,y:u};break;default:h={x:r.x,y:r.y}}switch(xt(t)){case"start":h[c]-=m*(n&&d?-1:1);break;case"end":h[c]+=m*(n&&d?-1:1);break}return h}const Fs=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:c}=n,s=a.filter(Boolean),l=await(c.isRTL==null?void 0:c.isRTL(t));let d=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:u}=$o(d,r,l),m=r,h={},p=0;for(let v=0;v<s.length;v++){const{name:x,fn:g}=s[v],{x:w,y:$,data:C,reset:E}=await g({x:f,y:u,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:d,platform:c,elements:{reference:e,floating:t}});f=w??f,u=$??u,h={...h,[x]:{...h[x],...C}},E&&p<=50&&(p++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(d=E.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:u}=$o(d,m,l)),v=-1)}return{x:f,y:u,placement:m,strategy:o,middlewareData:h}};async function zt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:c,elements:s,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:h=0}=ze(t,e),p=yo(h),x=s[m?u==="floating"?"reference":"floating":u],g=an(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(x)))==null||n?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:d,rootBoundary:f,strategy:l})),w=u==="floating"?{x:r,y:o,width:c.floating.width,height:c.floating.height}:c.reference,$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),C=await(a.isElement==null?void 0:a.isElement($))?await(a.getScale==null?void 0:a.getScale($))||{x:1,y:1}:{x:1,y:1},E=an(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:$,strategy:l}):w);return{top:(g.top-E.top+p.top)/C.y,bottom:(E.bottom-g.bottom+p.bottom)/C.y,left:(g.left-E.left+p.left)/C.x,right:(E.right-g.right+p.right)/C.x}}const Vs=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:c,elements:s,middlewareData:l}=t,{element:d,padding:f=0}=ze(e,t)||{};if(d==null)return{};const u=yo(f),m={x:n,y:r},h=Yn(o),p=Gn(h),v=await c.getDimensions(d),x=h==="y",g=x?"top":"left",w=x?"bottom":"right",$=x?"clientHeight":"clientWidth",C=a.reference[p]+a.reference[h]-m[h]-a.floating[p],E=m[h]-a.reference[h],M=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d));let k=M?M[$]:0;(!k||!await(c.isElement==null?void 0:c.isElement(M)))&&(k=s.floating[$]||a.floating[p]);const _=C/2-E/2,B=k/2-v[p]/2-1,K=Le(u[g],B),D=Le(u[w],B),P=K,G=k-v[p]-D,z=k/2-v[p]/2+_,R=Un(P,z,G),O=!l.arrow&&xt(o)!=null&&z!==R&&a.reference[p]/2-(z<P?K:D)-v[p]/2<0,I=O?z<P?z-P:z-G:0;return{[h]:m[h]+I,data:{[h]:R,centerOffset:z-R-I,...O&&{alignmentOffset:I}},reset:O}}}),Bs=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:c,initialPlacement:s,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:v=!0,...x}=ze(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const g=We(o),w=We(s)===s,$=await(l.isRTL==null?void 0:l.isRTL(d.floating)),C=m||(w||!v?[on(s)]:Ds(s));!m&&p!=="none"&&C.push(...js(s,v,p,$));const E=[s,...C],M=await zt(t,x),k=[];let _=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&k.push(M[g]),u){const P=Ms(o,c,$);k.push(M[P[0]],M[P[1]])}if(_=[..._,{placement:o,overflows:k}],!k.every(P=>P<=0)){var B,K;const P=(((B=a.flip)==null?void 0:B.index)||0)+1,G=E[P];if(G)return{data:{index:P,overflows:_},reset:{placement:G}};let z=(K=_.filter(R=>R.overflows[0]<=0).sort((R,O)=>R.overflows[1]-O.overflows[1])[0])==null?void 0:K.placement;if(!z)switch(h){case"bestFit":{var D;const R=(D=_.map(O=>[O.placement,O.overflows.filter(I=>I>0).reduce((I,N)=>I+N,0)]).sort((O,I)=>O[1]-I[1])[0])==null?void 0:D[0];R&&(z=R);break}case"initialPlacement":z=s;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function Co(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Eo(e){return Ns.some(t=>e[t]>=0)}const zs=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ze(e,t);switch(r){case"referenceHidden":{const a=await zt(t,{...o,elementContext:"reference"}),c=Co(a,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Eo(c)}}}case"escaped":{const a=await zt(t,{...o,altBoundary:!0}),c=Co(a,n.floating);return{data:{escapedOffsets:c,escaped:Eo(c)}}}default:return{}}}}};async function Ws(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),c=We(n),s=xt(n),l=yt(n)==="y",d=["left","top"].includes(c)?-1:1,f=a&&l?-1:1,u=ze(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return s&&typeof p=="number"&&(h=s==="end"?p*-1:p),l?{x:h*f,y:m*d}:{x:m*d,y:h*f}}const Rs=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:c,middlewareData:s}=t,l=await Ws(t,e);return c===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:c}}}}},Hs=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:s={fn:x=>{let{x:g,y:w}=x;return{x:g,y:w}}},...l}=ze(e,t),d={x:n,y:r},f=await zt(t,l),u=yt(We(o)),m=Kn(u);let h=d[m],p=d[u];if(a){const x=m==="y"?"top":"left",g=m==="y"?"bottom":"right",w=h+f[x],$=h-f[g];h=Un(w,h,$)}if(c){const x=u==="y"?"top":"left",g=u==="y"?"bottom":"right",w=p+f[x],$=p-f[g];p=Un(w,p,$)}const v=s.fn({...t,[m]:h,[u]:p});return{...v,data:{x:v.x-n,y:v.y-r}}}}},Us=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:c}=t,{offset:s=0,mainAxis:l=!0,crossAxis:d=!0}=ze(e,t),f={x:n,y:r},u=yt(o),m=Kn(u);let h=f[m],p=f[u];const v=ze(s,t),x=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const $=m==="y"?"height":"width",C=a.reference[m]-a.floating[$]+x.mainAxis,E=a.reference[m]+a.reference[$]-x.mainAxis;h<C?h=C:h>E&&(h=E)}if(d){var g,w;const $=m==="y"?"width":"height",C=["top","left"].includes(We(o)),E=a.reference[u]-a.floating[$]+(C&&((g=c.offset)==null?void 0:g[u])||0)+(C?0:x.crossAxis),M=a.reference[u]+a.reference[$]+(C?0:((w=c.offset)==null?void 0:w[u])||0)-(C?x.crossAxis:0);p<E?p=E:p>M&&(p=M)}return{[m]:h,[u]:p}}}},Ks=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:c=()=>{},...s}=ze(e,t),l=await zt(t,s),d=We(n),f=xt(n),u=yt(n)==="y",{width:m,height:h}=r.floating;let p,v;d==="top"||d==="bottom"?(p=d,v=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,p=f==="end"?"top":"bottom");const x=h-l.top-l.bottom,g=m-l.left-l.right,w=Le(h-l[p],x),$=Le(m-l[v],g),C=!t.middlewareData.shift;let E=w,M=$;if(u?M=f||C?Le($,g):g:E=f||C?Le(w,x):x,C&&!f){const _=Pe(l.left,0),B=Pe(l.right,0),K=Pe(l.top,0),D=Pe(l.bottom,0);u?M=m-2*(_!==0||B!==0?_+B:Pe(l.left,l.right)):E=h-2*(K!==0||D!==0?K+D:Pe(l.top,l.bottom))}await c({...t,availableWidth:M,availableHeight:E});const k=await o.getDimensions(a.floating);return m!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}};function $t(e){return So(e)?(e.nodeName||"").toLowerCase():"#document"}function Ne(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Re(e){var t;return(t=(So(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function So(e){return e instanceof Node||e instanceof Ne(e).Node}function Fe(e){return e instanceof Element||e instanceof Ne(e).Element}function Ve(e){return e instanceof HTMLElement||e instanceof Ne(e).HTMLElement}function _o(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ne(e).ShadowRoot}function Wt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=De(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Gs(e){return["table","td","th"].includes($t(e))}function qn(e){const t=Zn(),n=De(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Ys(e){let t=nt(e);for(;Ve(t)&&!Ct(t);){if(qn(t))return t;t=nt(t)}return null}function Zn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ct(e){return["html","body","#document"].includes($t(e))}function De(e){return Ne(e).getComputedStyle(e)}function cn(e){return Fe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function nt(e){if($t(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_o(e)&&e.host||Re(e);return _o(t)?t.host:t}function To(e){const t=nt(e);return Ct(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ve(t)&&Wt(t)?t:To(t)}function Rt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=To(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),c=Ne(o);return a?t.concat(c,c.visualViewport||[],Wt(o)?o:[],c.frameElement&&n?Rt(c.frameElement):[]):t.concat(o,Rt(o,[],n))}function ko(e){const t=De(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ve(e),a=o?e.offsetWidth:n,c=o?e.offsetHeight:r,s=nn(n)!==a||nn(r)!==c;return s&&(n=a,r=c),{width:n,height:r,$:s}}function Jn(e){return Fe(e)?e:e.contextElement}function Et(e){const t=Jn(e);if(!Ve(t))return tt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=ko(t);let c=(a?nn(n.width):n.width)/r,s=(a?nn(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!s||!Number.isFinite(s))&&(s=1),{x:c,y:s}}const Xs=tt(0);function Po(e){const t=Ne(e);return!Zn()||!t.visualViewport?Xs:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qs(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ne(e)?!1:t}function st(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Jn(e);let c=tt(1);t&&(r?Fe(r)&&(c=Et(r)):c=Et(e));const s=qs(a,n,r)?Po(a):tt(0);let l=(o.left+s.x)/c.x,d=(o.top+s.y)/c.y,f=o.width/c.x,u=o.height/c.y;if(a){const m=Ne(a),h=r&&Fe(r)?Ne(r):r;let p=m,v=p.frameElement;for(;v&&r&&h!==p;){const x=Et(v),g=v.getBoundingClientRect(),w=De(v),$=g.left+(v.clientLeft+parseFloat(w.paddingLeft))*x.x,C=g.top+(v.clientTop+parseFloat(w.paddingTop))*x.y;l*=x.x,d*=x.y,f*=x.x,u*=x.y,l+=$,d+=C,p=Ne(v),v=p.frameElement}}return an({width:f,height:u,x:l,y:d})}const Zs=[":popover-open",":modal"];function Qn(e){return Zs.some(t=>{try{return e.matches(t)}catch{return!1}})}function Js(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",c=Re(r),s=t?Qn(t.floating):!1;if(r===c||s&&a)return n;let l={scrollLeft:0,scrollTop:0},d=tt(1);const f=tt(0),u=Ve(r);if((u||!u&&!a)&&(($t(r)!=="body"||Wt(c))&&(l=cn(r)),Ve(r))){const m=st(r);d=Et(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+f.x,y:n.y*d.y-l.scrollTop*d.y+f.y}}function Qs(e){return Array.from(e.getClientRects())}function No(e){return st(Re(e)).left+cn(e).scrollLeft}function el(e){const t=Re(e),n=cn(e),r=e.ownerDocument.body,o=Pe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Pe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+No(e);const s=-n.scrollTop;return De(r).direction==="rtl"&&(c+=Pe(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:c,y:s}}function tl(e,t){const n=Ne(e),r=Re(e),o=n.visualViewport;let a=r.clientWidth,c=r.clientHeight,s=0,l=0;if(o){a=o.width,c=o.height;const d=Zn();(!d||d&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:c,x:s,y:l}}function nl(e,t){const n=st(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Ve(e)?Et(e):tt(1),c=e.clientWidth*a.x,s=e.clientHeight*a.y,l=o*a.x,d=r*a.y;return{width:c,height:s,x:l,y:d}}function Io(e,t,n){let r;if(t==="viewport")r=tl(e,n);else if(t==="document")r=el(Re(e));else if(Fe(t))r=nl(t,n);else{const o=Po(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return an(r)}function Oo(e,t){const n=nt(e);return n===t||!Fe(n)||Ct(n)?!1:De(n).position==="fixed"||Oo(n,t)}function rl(e,t){const n=t.get(e);if(n)return n;let r=Rt(e,[],!1).filter(s=>Fe(s)&&$t(s)!=="body"),o=null;const a=De(e).position==="fixed";let c=a?nt(e):e;for(;Fe(c)&&!Ct(c);){const s=De(c),l=qn(c);!l&&s.position==="fixed"&&(o=null),(a?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Wt(c)&&!l&&Oo(e,c))?r=r.filter(f=>f!==c):o=s,c=nt(c)}return t.set(e,r),r}function ol(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const c=[...n==="clippingAncestors"?Qn(t)?[]:rl(t,this._c):[].concat(n),r],s=c[0],l=c.reduce((d,f)=>{const u=Io(t,f,o);return d.top=Pe(u.top,d.top),d.right=Le(u.right,d.right),d.bottom=Le(u.bottom,d.bottom),d.left=Pe(u.left,d.left),d},Io(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function al(e){const{width:t,height:n}=ko(e);return{width:t,height:n}}function il(e,t,n){const r=Ve(t),o=Re(t),a=n==="fixed",c=st(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=tt(0);if(r||!r&&!a)if(($t(t)!=="body"||Wt(o))&&(s=cn(t)),r){const u=st(t,!0,a,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else o&&(l.x=No(o));const d=c.left+s.scrollLeft-l.x,f=c.top+s.scrollTop-l.y;return{x:d,y:f,width:c.width,height:c.height}}function er(e){return De(e).position==="static"}function Mo(e,t){return!Ve(e)||De(e).position==="fixed"?null:t?t(e):e.offsetParent}function Do(e,t){const n=Ne(e);if(Qn(e))return n;if(!Ve(e)){let o=nt(e);for(;o&&!Ct(o);){if(Fe(o)&&!er(o))return o;o=nt(o)}return n}let r=Mo(e,t);for(;r&&Gs(r)&&er(r);)r=Mo(r,t);return r&&Ct(r)&&er(r)&&!qn(r)?n:r||Ys(e)||n}const cl=async function(e){const t=this.getOffsetParent||Do,n=this.getDimensions,r=await n(e.floating);return{reference:il(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function sl(e){return De(e).direction==="rtl"}const ll={convertOffsetParentRelativeRectToViewportRelativeRect:Js,getDocumentElement:Re,getClippingRect:ol,getOffsetParent:Do,getElementRects:cl,getClientRects:Qs,getDimensions:al,getScale:Et,isElement:Fe,isRTL:sl};function dl(e,t){let n=null,r;const o=Re(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function c(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const{left:d,top:f,width:u,height:m}=e.getBoundingClientRect();if(s||t(),!u||!m)return;const h=rn(f),p=rn(o.clientWidth-(d+u)),v=rn(o.clientHeight-(f+m)),x=rn(d),w={rootMargin:-h+"px "+-p+"px "+-v+"px "+-x+"px",threshold:Pe(0,Le(1,l))||1};let $=!0;function C(E){const M=E[0].intersectionRatio;if(M!==l){if(!$)return c();M?c(!1,M):r=setTimeout(()=>{c(!1,1e-7)},1e3)}$=!1}try{n=new IntersectionObserver(C,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,w)}n.observe(e)}return c(!0),a}function ul(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=Jn(e),f=o||a?[...d?Rt(d):[],...Rt(t)]:[];f.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),a&&g.addEventListener("resize",n)});const u=d&&s?dl(d,n):null;let m=-1,h=null;c&&(h=new ResizeObserver(g=>{let[w]=g;w&&w.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var $;($=h)==null||$.observe(t)})),n()}),d&&!l&&h.observe(d),h.observe(t));let p,v=l?st(e):null;l&&x();function x(){const g=st(e);v&&(g.x!==v.x||g.y!==v.y||g.width!==v.width||g.height!==v.height)&&n(),v=g,p=requestAnimationFrame(x)}return n(),()=>{var g;f.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),u?.(),(g=h)==null||g.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const fl=Rs,pl=Hs,ml=Bs,hl=Ks,vl=zs,Ao=Vs,gl=Us,bl=(e,t,n)=>{const r=new Map,o={platform:ll,...n},a={...o.platform,_c:r};return Fs(e,t,{...o,platform:a})};var sn=typeof document<"u"?i.useLayoutEffect:i.useEffect;function ln(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ln(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!ln(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function jo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Lo(e,t){const n=jo(e);return Math.round(t*n)/n}function Fo(e){const t=L.useRef(e);return sn(()=>{t.current=e}),t}function wl(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:c}={},transform:s=!0,whileElementsMounted:l,open:d}=e,[f,u]=L.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=L.useState(r);ln(m,r)||h(r);const[p,v]=L.useState(null),[x,g]=L.useState(null),w=L.useCallback(I=>{I!==M.current&&(M.current=I,v(I))},[]),$=L.useCallback(I=>{I!==k.current&&(k.current=I,g(I))},[]),C=a||p,E=c||x,M=L.useRef(null),k=L.useRef(null),_=L.useRef(f),B=l!=null,K=Fo(l),D=Fo(o),P=L.useCallback(()=>{if(!M.current||!k.current)return;const I={placement:t,strategy:n,middleware:m};D.current&&(I.platform=D.current),bl(M.current,k.current,I).then(N=>{const S={...N,isPositioned:!0};G.current&&!ln(_.current,S)&&(_.current=S,Bi.flushSync(()=>{u(S)}))})},[m,t,n,D]);sn(()=>{d===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,u(I=>({...I,isPositioned:!1})))},[d]);const G=L.useRef(!1);sn(()=>(G.current=!0,()=>{G.current=!1}),[]),sn(()=>{if(C&&(M.current=C),E&&(k.current=E),C&&E){if(K.current)return K.current(C,E,P);P()}},[C,E,P,K,B]);const z=L.useMemo(()=>({reference:M,floating:k,setReference:w,setFloating:$}),[w,$]),R=L.useMemo(()=>({reference:C,floating:E}),[C,E]),O=L.useMemo(()=>{const I={position:n,left:0,top:0};if(!R.floating)return I;const N=Lo(R.floating,f.x),S=Lo(R.floating,f.y);return s?{...I,transform:"translate("+N+"px, "+S+"px)",...jo(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:S}},[n,s,R.floating,f.x,f.y]);return L.useMemo(()=>({...f,update:P,refs:z,elements:R,floatingStyles:O}),[f,P,z,R,O])}const xl=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ao({element:r.current,padding:o}).fn(n):{}:r?Ao({element:r,padding:o}).fn(n):{}}}},yl=(e,t)=>({...fl(e),options:[e,t]}),$l=(e,t)=>({...pl(e),options:[e,t]}),Cl=(e,t)=>({...gl(e),options:[e,t]}),El=(e,t)=>({...ml(e),options:[e,t]}),Sl=(e,t)=>({...hl(e),options:[e,t]}),_l=(e,t)=>({...vl(e),options:[e,t]}),Tl=(e,t)=>({...xl(e),options:[e,t]}),kl=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return i.createElement(fe.svg,j({},a,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:i.createElement("polygon",{points:"0,0 30,0 15,10"}))});function Pl(e){const[t,n]=i.useState(void 0);return Te(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let c,s;if("borderBoxSize"in a){const l=a.borderBoxSize,d=Array.isArray(l)?l[0]:l;c=d.inlineSize,s=d.blockSize}else c=e.offsetWidth,s=e.offsetHeight;n({width:c,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Vo="Popper",[Bo,St]=ct(Vo),[Nl,zo]=Bo(Vo),Il=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return i.createElement(Nl,{scope:t,anchor:r,onAnchorChange:o},n)},Ol="PopperAnchor",Ml=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=zo(Ol,n),c=i.useRef(null),s=ve(t,c);return i.useEffect(()=>{a.onAnchorChange(r?.current||c.current)}),r?null:i.createElement(fe.div,j({},o,{ref:s}))}),Wo="PopperContent",[Dl,Al]=Bo(Wo),jl=i.forwardRef((e,t)=>{var n,r,o,a,c,s,l,d;const{__scopePopper:f,side:u="bottom",sideOffset:m=0,align:h="center",alignOffset:p=0,arrowPadding:v=0,avoidCollisions:x=!0,collisionBoundary:g=[],collisionPadding:w=0,sticky:$="partial",hideWhenDetached:C=!1,updatePositionStrategy:E="optimized",onPlaced:M,...k}=e,_=zo(Wo,f),[B,K]=i.useState(null),D=ve(t,A=>K(A)),[P,G]=i.useState(null),z=Pl(P),R=(n=z?.width)!==null&&n!==void 0?n:0,O=(r=z?.height)!==null&&r!==void 0?r:0,I=u+(h!=="center"?"-"+h:""),N=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},S=Array.isArray(g)?g:[g],F=S.length>0,W={padding:N,boundary:S.filter(Vl),altBoundary:F},{refs:X,floatingStyles:ae,placement:be,isPositioned:ge,middlewareData:pe}=wl({strategy:"fixed",placement:I,whileElementsMounted:(...A)=>ul(...A,{animationFrame:E==="always"}),elements:{reference:_.anchor},middleware:[yl({mainAxis:m+O,alignmentAxis:p}),x&&$l({mainAxis:!0,crossAxis:!1,limiter:$==="partial"?Cl():void 0,...W}),x&&El({...W}),Sl({...W,apply:({elements:A,rects:H,availableWidth:Z,availableHeight:me})=>{const{width:xe,height:le}=H.reference,se=A.floating.style;se.setProperty("--radix-popper-available-width",`${Z}px`),se.setProperty("--radix-popper-available-height",`${me}px`),se.setProperty("--radix-popper-anchor-width",`${xe}px`),se.setProperty("--radix-popper-anchor-height",`${le}px`)}}),P&&Tl({element:P,padding:v}),Bl({arrowWidth:R,arrowHeight:O}),C&&_l({strategy:"referenceHidden",...W})]}),[U,Q]=Ho(be),te=Me(M);Te(()=>{ge&&te?.()},[ge,te]);const ne=(o=pe.arrow)===null||o===void 0?void 0:o.x,ie=(a=pe.arrow)===null||a===void 0?void 0:a.y,oe=((c=pe.arrow)===null||c===void 0?void 0:c.centerOffset)!==0,[$e,Ce]=i.useState();return Te(()=>{B&&Ce(window.getComputedStyle(B).zIndex)},[B]),i.createElement("div",{ref:X.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:ge?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$e,"--radix-popper-transform-origin":[(s=pe.transformOrigin)===null||s===void 0?void 0:s.x,(l=pe.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},i.createElement(Dl,{scope:f,placedSide:U,onArrowChange:G,arrowX:ne,arrowY:ie,shouldHideArrow:oe},i.createElement(fe.div,j({"data-side":U,"data-align":Q},k,{ref:D,style:{...k.style,animation:ge?void 0:"none",opacity:(d=pe.hide)!==null&&d!==void 0&&d.referenceHidden?0:void 0}}))))}),Ro="PopperArrow",Ll={top:"bottom",right:"left",bottom:"top",left:"right"},Fl=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Al(Ro,r),c=Ll[a.placedSide];return i.createElement("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},i.createElement(kl,j({},o,{ref:n,style:{...o.style,display:"block"}})))});function Vl(e){return e!==null}const Bl=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,c;const{placement:s,rects:l,middlewareData:d}=t,u=((n=d.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,m=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[p,v]=Ho(s),x={start:"0%",center:"50%",end:"100%"}[v],g=((r=(o=d.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+m/2,w=((a=(c=d.arrow)===null||c===void 0?void 0:c.y)!==null&&a!==void 0?a:0)+h/2;let $="",C="";return p==="bottom"?($=u?x:`${g}px`,C=`${-h}px`):p==="top"?($=u?x:`${g}px`,C=`${l.floating.height+h}px`):p==="right"?($=`${-h}px`,C=u?x:`${w}px`):p==="left"&&($=`${l.floating.width+h}px`,C=u?x:`${w}px`),{data:{x:$,y:C}}}});function Ho(e){const[t,n="center"]=e.split("-");return[t,n]}const tr=Il,nr=Ml,rr=jl,Uo=i.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?vt.createPortal(i.createElement(fe.div,j({},o,{ref:t})),r):null});function zl(e,t){return i.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const _t=e=>{const{present:t,children:n}=e,r=Wl(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),a=ve(r.ref,o.ref);return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:a}):null};_t.displayName="Presence";function Wl(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,l]=zl(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=dn(r.current);a.current=s==="mounted"?d:"none"},[s]),Te(()=>{const d=r.current,f=o.current;if(f!==e){const m=a.current,h=dn(d);e?l("MOUNT"):h==="none"||d?.display==="none"?l("UNMOUNT"):l(f&&m!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Te(()=>{if(t){const d=u=>{const h=dn(r.current).includes(u.animationName);u.target===t&&h&&vt.flushSync(()=>l("ANIMATION_END"))},f=u=>{u.target===t&&(a.current=dn(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function dn(e){return e?.animationName||"none"}function Ht({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Rl({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:r,s=Me(n),l=i.useCallback(d=>{if(a){const u=typeof d=="function"?d(e):d;u!==e&&s(u)}else o(d)},[a,e,o,s]);return[c,l]}function Rl({defaultProp:e,onChange:t}){const n=i.useState(e),[r]=n,o=i.useRef(r),a=Me(t);return i.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const Ko=i.forwardRef((e,t)=>i.createElement(fe.span,j({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Hl=Ko,[un,Km]=ct("Tooltip",[St]),or=St(),Ul="TooltipProvider",Kl=700,ar="tooltip.open",[Gl,ir]=un(Ul),Yl=e=>{const{__scopeTooltip:t,delayDuration:n=Kl,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[c,s]=i.useState(!0),l=i.useRef(!1),d=i.useRef(0);return i.useEffect(()=>{const f=d.current;return()=>window.clearTimeout(f)},[]),i.createElement(Gl,{scope:t,isOpenDelayed:c,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(d.current),s(!1)},[]),onClose:i.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:i.useCallback(f=>{l.current=f},[]),disableHoverableContent:o},a)},cr="Tooltip",[Xl,fn]=un(cr),ql=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:c,delayDuration:s}=e,l=ir(cr,e.__scopeTooltip),d=or(t),[f,u]=i.useState(null),m=wt(),h=i.useRef(0),p=c??l.disableHoverableContent,v=s??l.delayDuration,x=i.useRef(!1),[g=!1,w]=Ht({prop:r,defaultProp:o,onChange:k=>{k?(l.onOpen(),document.dispatchEvent(new CustomEvent(ar))):l.onClose(),a?.(k)}}),$=i.useMemo(()=>g?x.current?"delayed-open":"instant-open":"closed",[g]),C=i.useCallback(()=>{window.clearTimeout(h.current),x.current=!1,w(!0)},[w]),E=i.useCallback(()=>{window.clearTimeout(h.current),w(!1)},[w]),M=i.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{x.current=!0,w(!0)},v)},[v,w]);return i.useEffect(()=>()=>window.clearTimeout(h.current),[]),i.createElement(tr,d,i.createElement(Xl,{scope:t,contentId:m,open:g,stateAttribute:$,trigger:f,onTriggerChange:u,onTriggerEnter:i.useCallback(()=>{l.isOpenDelayed?M():C()},[l.isOpenDelayed,M,C]),onTriggerLeave:i.useCallback(()=>{p?E():window.clearTimeout(h.current)},[E,p]),onOpen:C,onClose:E,disableHoverableContent:p},n))},Go="TooltipTrigger",Zl=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=fn(Go,n),a=ir(Go,n),c=or(n),s=i.useRef(null),l=ve(t,s,o.onTriggerChange),d=i.useRef(!1),f=i.useRef(!1),u=i.useCallback(()=>d.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),i.createElement(nr,j({asChild:!0},c),i.createElement(fe.button,j({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:l,onPointerMove:Y(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:Y(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:Y(e.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:Y(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:Y(e.onBlur,o.onClose),onClick:Y(e.onClick,o.onClose)})))}),Jl="TooltipPortal",[Gm,Ql]=un(Jl,{forceMount:void 0}),Ut="TooltipContent",ed=i.forwardRef((e,t)=>{const n=Ql(Ut,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,c=fn(Ut,e.__scopeTooltip);return i.createElement(_t,{present:r||c.open},c.disableHoverableContent?i.createElement(Yo,j({side:o},a,{ref:t})):i.createElement(td,j({side:o},a,{ref:t})))}),td=i.forwardRef((e,t)=>{const n=fn(Ut,e.__scopeTooltip),r=ir(Ut,e.__scopeTooltip),o=i.useRef(null),a=ve(t,o),[c,s]=i.useState(null),{trigger:l,onClose:d}=n,f=o.current,{onPointerInTransitChange:u}=r,m=i.useCallback(()=>{s(null),u(!1)},[u]),h=i.useCallback((p,v)=>{const x=p.currentTarget,g={x:p.clientX,y:p.clientY},w=rd(g,x.getBoundingClientRect()),$=od(g,w),C=ad(v.getBoundingClientRect()),E=cd([...$,...C]);s(E),u(!0)},[u]);return i.useEffect(()=>()=>m(),[m]),i.useEffect(()=>{if(l&&f){const p=x=>h(x,f),v=x=>h(x,l);return l.addEventListener("pointerleave",p),f.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",p),f.removeEventListener("pointerleave",v)}}},[l,f,h,m]),i.useEffect(()=>{if(c){const p=v=>{const x=v.target,g={x:v.clientX,y:v.clientY},w=l?.contains(x)||f?.contains(x),$=!id(g,c);w?m():$&&(m(),d())};return document.addEventListener("pointermove",p),()=>document.removeEventListener("pointermove",p)}},[l,f,c,d,m]),i.createElement(Yo,j({},e,{ref:a}))}),[nd,Ym]=un(cr,{isInside:!1}),Yo=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:c,...s}=e,l=fn(Ut,n),d=or(n),{onClose:f}=l;return i.useEffect(()=>(document.addEventListener(ar,f),()=>document.removeEventListener(ar,f)),[f]),i.useEffect(()=>{if(l.trigger){const u=m=>{const h=m.target;h!=null&&h.contains(l.trigger)&&f()};return window.addEventListener("scroll",u,{capture:!0}),()=>window.removeEventListener("scroll",u,{capture:!0})}},[l.trigger,f]),i.createElement(Hn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:u=>u.preventDefault(),onDismiss:f},i.createElement(rr,j({"data-state":l.stateAttribute},d,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),i.createElement(vo,null,r),i.createElement(nd,{scope:n,isInside:!0},i.createElement(Hl,{id:l.contentId,role:"tooltip"},o||r))))});function rd(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function od(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function ad(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function id(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,c=t.length-1;a<t.length;c=a++){const s=t[a].x,l=t[a].y,d=t[c].x,f=t[c].y;l>r!=f>r&&n<(d-s)*(r-l)/(f-l)+s&&(o=!o)}return o}function cd(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),sd(t)}function sd(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],c=t[t.length-2];if((a.x-c.x)*(o.y-c.y)>=(a.y-c.y)*(o.x-c.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],c=n[n.length-2];if((a.x-c.x)*(o.y-c.y)>=(a.y-c.y)*(o.x-c.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const ld=Yl,dd=ql,ud=Zl,Xo=ed,pn=ld,mn=dd,hn=ud,Kt=L.forwardRef(({className:e,sideOffset:t=4,...n},r)=>y.jsx(Xo,{ref:r,sideOffset:t,className:ee("cp-fade-in-0 cp-zoom-in-95 data-[state=closed]:cp-fade-out-0 data-[state=closed]:cp-zoom-out-95 data-[side=bottom]:cp-slide-in-from-top-2 data-[side=left]:cp-slide-in-from-right-2 data-[side=right]:cp-slide-in-from-left-2 data-[side=top]:cp-slide-in-from-bottom-2 cp-z-50 cp-animate-in cp-overflow-hidden cp-rounded-md cp-bg-white cp-text-primary-700 cp-shadow-sm cp-p-2 cp-text-sm data-[state=closed]:cp-animate-out",e),...n}));Kt.displayName=Xo.displayName;function fd(e){return y.jsxs("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[y.jsx("title",{children:"Integer"}),y.jsx("path",{d:"M13.003 7.754a.75.75 0 0 1 .75-.75h5.232a.75.75 0 0 1 .53 1.28l-2.776 2.777c.55.097 1.057.253 1.492.483.905.477 1.504 1.284 1.504 2.418 0 .966-.471 1.75-1.172 2.27-.687.511-1.587.77-2.521.77-1.367 0-2.274-.528-2.667-.756a.75.75 0 0 1 .755-1.297c.331.193.953.553 1.912.553.673 0 1.243-.188 1.627-.473.37-.275.566-.635.566-1.067 0-.5-.219-.836-.703-1.091-.538-.284-1.375-.443-2.471-.443a.75.75 0 0 1-.53-1.28l2.643-2.644h-3.421a.75.75 0 0 1-.75-.75ZM7.88 15.215a1.4 1.4 0 0 0-1.446.83.75.75 0 0 1-1.37-.61 2.899 2.899 0 0 1 2.986-1.71c.589.06 1.139.323 1.557.743.434.446.685 1.058.685 1.778 0 1.641-1.254 2.437-2.12 2.986-.538.341-1.18.694-1.495 1.273H9.75a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.75-.75c0-1.799 1.337-2.63 2.243-3.21 1.032-.659 1.55-1.031 1.55-1.8 0-.355-.116-.584-.26-.732a1.071 1.071 0 0 0-.652-.298Zm.234-13.121a.75.75 0 0 1 .386.656V9h1.252a.75.75 0 0 1 0 1.5H5.75a.75.75 0 0 1 0-1.5H7V4.103l-.853.533a.749.749 0 1 1-.795-1.272l2-1.25a.749.749 0 0 1 .762-.02Z"})]})}function pd({column:e,width:t,visible:n}){const{name:r,dataEditorType:o,description:a}=e;return n?y.jsxs("div",{className:"cp-flex cp-shrink-0 cp-items-center cp-gap-2 cp-border cp-border-t-0 cp-border-l-0 cp-bg-primary-50 cp-px-2 cp-border-primary-100",style:{width:t,height:Cc},children:[y.jsxs("div",{className:"cp-w-4 cp-shrink-0 cp-text-primary-500",children:[o==="String"&&y.jsx(rs,{className:"cp-h-4 cp-w-4"}),o==="Date"&&y.jsx(cs,{className:"cp-h-4 cp-w-4"}),o==="Boolean"&&y.jsx(ds,{className:"cp-h-4 cp-w-4"}),o==="Select"&&y.jsx(ps,{className:"cp-h-4 cp-w-4"}),o==="Float"&&y.jsx(ho,{className:"cp-h-4 cp-w-4"}),o==="Decimal"&&y.jsx(ho,{className:"cp-h-4 cp-w-4"}),o==="Integer"&&y.jsx(fd,{className:"cp-h-4 cp-w-4"}),o==="Currency"&&y.jsx(us,{className:"cp-h-4 cp-w-4"}),o==="Percentage"&&y.jsx(hs,{className:"cp-h-4 cp-w-4"})]}),y.jsx("p",{title:r,className:"cp-line-clamp-2 cp-w-full cp-break-words cp-font-bold cp-text-primary-700 cp-text-sm",children:r}),a?y.jsx(pn,{children:y.jsxs(mn,{delayDuration:100,children:[y.jsx(hn,{children:y.jsx(ts,{className:"cp-h-4 cp-w-4 cp-text-primary-700"})}),y.jsx(Kt,{className:"cp-max-w-[240px]",children:y.jsx("p",{children:a})})]})}):y.jsx("div",{className:"cp-w-4 cp-shrink-0"})]}):null}function md({className:e}){const{emptySize:t,onSelectSpreadsheet:n}=je();return y.jsx("button",{type:"button",disabled:t,className:ee("cp-relative cp-flex cp-h-7 cp-w-12 cp-shrink-0 cp-items-center cp-justify-center cp-border cp-border-t cp-border-l cp-bg-white cp-text-sm",e),onClick:n})}function hd(){const{columns:e}=je();return y.jsxs("div",{children:[y.jsxs("div",{className:"cp-relative cp-flex cp-items-center cp-bg-white",children:[y.jsx(md,{className:"cp-border-t-0 cp-border-l-0"}),e.map(t=>y.jsx(Rc,{column:t,width:e[t.position].state.width,visible:e[t.position].state.visible},`spreadsheet__column__indicator__key__${t.name}__${t.position}`))]}),y.jsxs("div",{className:"cp-flex cp-items-center",children:[y.jsx("div",{className:"cp-h-9 cp-w-12 cp-shrink-0 cp-cursor-default cp-border cp-border-t-0 cp-border-l-0 cp-bg-white"}),e.map(t=>y.jsx(pd,{column:t,width:e[t.position].state.width,visible:e[t.position].state.visible},`spreadsheet__column__header__key__${t.name}__${t.position}`))]})]})}function qo(e,[t,n]){return Math.min(n,Math.max(t,e))}function sr(e){const t=e+"CollectionProvider",[n,r]=ct(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=h=>{const{scope:p,children:v}=h,x=i.useRef(null),g=i.useRef(new Map).current;return i.createElement(o,{scope:p,itemMap:g,collectionRef:x},v)},s=e+"CollectionSlot",l=i.forwardRef((h,p)=>{const{scope:v,children:x}=h,g=a(s,v),w=ve(p,g.collectionRef);return i.createElement(bt,{ref:w},x)}),d=e+"CollectionItemSlot",f="data-radix-collection-item",u=i.forwardRef((h,p)=>{const{scope:v,children:x,...g}=h,w=i.useRef(null),$=ve(p,w),C=a(d,v);return i.useEffect(()=>(C.itemMap.set(w,{ref:w,...g}),()=>void C.itemMap.delete(w))),i.createElement(bt,{[f]:"",ref:$},x)});function m(h){const p=a(e+"CollectionConsumer",h);return i.useCallback(()=>{const x=p.collectionRef.current;if(!x)return[];const g=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(p.itemMap.values()).sort((C,E)=>g.indexOf(C.ref.current)-g.indexOf(E.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:c,Slot:l,ItemSlot:u},m,r]}const vd=i.createContext(void 0);function lr(e){const t=i.useContext(vd);return e||t||"ltr"}let dr=0;function Zo(){i.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Jo()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Jo()),dr++,()=>{dr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),dr--}},[])}function Jo(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const ur="focusScope.autoFocusOnMount",fr="focusScope.autoFocusOnUnmount",Qo={bubbles:!1,cancelable:!0},ea=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,l]=i.useState(null),d=Me(o),f=Me(a),u=i.useRef(null),m=ve(t,v=>l(v)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let v=function($){if(h.paused||!s)return;const C=$.target;s.contains(C)?u.current=C:rt(u.current,{select:!0})},x=function($){if(h.paused||!s)return;const C=$.relatedTarget;C!==null&&(s.contains(C)||rt(u.current,{select:!0}))},g=function($){if(document.activeElement===document.body)for(const E of $)E.removedNodes.length>0&&rt(s)};document.addEventListener("focusin",v),document.addEventListener("focusout",x);const w=new MutationObserver(g);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",x),w.disconnect()}}},[r,s,h.paused]),i.useEffect(()=>{if(s){ra.add(h);const v=document.activeElement;if(!s.contains(v)){const g=new CustomEvent(ur,Qo);s.addEventListener(ur,d),s.dispatchEvent(g),g.defaultPrevented||(gd($d(ta(s)),{select:!0}),document.activeElement===v&&rt(s))}return()=>{s.removeEventListener(ur,d),setTimeout(()=>{const g=new CustomEvent(fr,Qo);s.addEventListener(fr,f),s.dispatchEvent(g),g.defaultPrevented||rt(v??document.body,{select:!0}),s.removeEventListener(fr,f),ra.remove(h)},0)}}},[s,d,f,h]);const p=i.useCallback(v=>{if(!n&&!r||h.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(x&&g){const w=v.currentTarget,[$,C]=bd(w);$&&C?!v.shiftKey&&g===C?(v.preventDefault(),n&&rt($,{select:!0})):v.shiftKey&&g===$&&(v.preventDefault(),n&&rt(C,{select:!0})):g===w&&v.preventDefault()}},[n,r,h.paused]);return i.createElement(fe.div,j({tabIndex:-1},c,{ref:m,onKeyDown:p}))});function gd(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(rt(r,{select:t}),document.activeElement!==n)return}function bd(e){const t=ta(e),n=na(t,e),r=na(t.reverse(),e);return[n,r]}function ta(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function na(e,t){for(const n of e)if(!wd(n,{upTo:t}))return n}function wd(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function xd(e){return e instanceof HTMLInputElement&&"select"in e}function rt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&xd(e)&&t&&e.select()}}const ra=yd();function yd(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=oa(e,t),e.unshift(t)},remove(t){var n;e=oa(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function oa(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function $d(e){return e.filter(t=>t.tagName!=="A")}function Cd(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ed=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Tt=new WeakMap,vn=new WeakMap,gn={},pr=0,aa=function(e){return e&&(e.host||aa(e.parentNode))},Sd=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=aa(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},_d=function(e,t,n,r){var o=Sd(t,Array.isArray(e)?e:[e]);gn[n]||(gn[n]=new WeakMap);var a=gn[n],c=[],s=new Set,l=new Set(o),d=function(u){!u||s.has(u)||(s.add(u),d(u.parentNode))};o.forEach(d);var f=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(m){if(s.has(m))f(m);else try{var h=m.getAttribute(r),p=h!==null&&h!=="false",v=(Tt.get(m)||0)+1,x=(a.get(m)||0)+1;Tt.set(m,v),a.set(m,x),c.push(m),v===1&&p&&vn.set(m,!0),x===1&&m.setAttribute(n,"true"),p||m.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",m,g)}})};return f(t),s.clear(),pr++,function(){c.forEach(function(u){var m=Tt.get(u)-1,h=a.get(u)-1;Tt.set(u,m),a.set(u,h),m||(vn.has(u)||u.removeAttribute(r),vn.delete(u)),h||u.removeAttribute(n)}),pr--,pr||(Tt=new WeakMap,Tt=new WeakMap,vn=new WeakMap,gn={})}},ia=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Ed(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),_d(r,o,n,"aria-hidden")):function(){return null}},ot=function(){return ot=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ot.apply(this,arguments)};function Td(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function kd(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var bn="right-scroll-bar-position",wn="width-before-scroll-bar",Pd="with-scroll-bars-hidden",Nd="--removed-body-scroll-bar-size";function mr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Id(e,t){var n=i.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Od=typeof window<"u"?L.useLayoutEffect:L.useEffect,ca=new WeakMap;function Md(e,t){var n=Id(null,function(r){return e.forEach(function(o){return mr(o,r)})});return Od(function(){var r=ca.get(n);if(r){var o=new Set(r),a=new Set(e),c=n.current;o.forEach(function(s){a.has(s)||mr(s,null)}),a.forEach(function(s){o.has(s)||mr(s,c)})}ca.set(n,e)},[e]),n}var xn=function(){return xn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},xn.apply(this,arguments)};function Dd(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}typeof SuppressedError=="function"&&SuppressedError;function Ad(e){return e}function jd(e,t){t===void 0&&(t=Ad);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var c=t(a,r);return n.push(c),function(){n=n.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(r=!0;n.length;){var c=n;n=[],c.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var c=[];if(n.length){var s=n;n=[],s.forEach(a),c=n}var l=function(){var f=c;c=[],f.forEach(a)},d=function(){return Promise.resolve().then(l)};d(),n={push:function(f){c.push(f),d()},filter:function(f){return c=c.filter(f),n}}}};return o}function Ld(e){e===void 0&&(e={});var t=jd(null);return t.options=xn({async:!0,ssr:!1},e),t}var sa=function(e){var t=e.sideCar,n=Dd(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return L.createElement(r,xn({},n))};sa.isSideCarExport=!0;function Fd(e,t){return e.useMedium(t),sa}var la=Ld(),hr=function(){},yn=L.forwardRef(function(e,t){var n=L.useRef(null),r=L.useState({onScrollCapture:hr,onWheelCapture:hr,onTouchMoveCapture:hr}),o=r[0],a=r[1],c=e.forwardProps,s=e.children,l=e.className,d=e.removeScrollBar,f=e.enabled,u=e.shards,m=e.sideCar,h=e.noIsolation,p=e.inert,v=e.allowPinchZoom,x=e.as,g=x===void 0?"div":x,w=Td(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),$=m,C=Md([n,t]),E=ot(ot({},w),o);return L.createElement(L.Fragment,null,f&&L.createElement($,{sideCar:la,removeScrollBar:d,shards:u,noIsolation:h,inert:p,setCallbacks:a,allowPinchZoom:!!v,lockRef:n}),c?L.cloneElement(L.Children.only(s),ot(ot({},E),{ref:C})):L.createElement(g,ot({},E,{className:l,ref:C}),s))});yn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},yn.classNames={fullWidth:wn,zeroRight:bn};var Vd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Bd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Vd();return t&&e.setAttribute("nonce",t),e}function zd(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Wd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Rd=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Bd())&&(zd(t,n),Wd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Hd=function(){var e=Rd();return function(t,n){L.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},da=function(){var e=Hd(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Ud={left:0,top:0,right:0,gap:0},vr=function(e){return parseInt(e||"",10)||0},Kd=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[vr(n),vr(r),vr(o)]},Gd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ud;var t=Kd(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Yd=da(),kt="data-scroll-locked",Xd=function(e,t,n,r){var o=e.left,a=e.top,c=e.right,s=e.gap;return n===void 0&&(n="margin"),`
126
- .`.concat(Pd,` {
125
+ */const $s=_e("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j.apply(this,arguments)}function Y(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function Cs(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function nn(...e){return t=>e.forEach(n=>Cs(n,t))}function ve(...e){return i.useCallback(nn(...e),e)}function ct(e,t=[]){let n=[];function r(a,c){const s=i.createContext(c),l=n.length;n=[...n,c];function d(u){const{scope:m,children:h,...p}=u,v=m?.[e][l]||s,x=i.useMemo(()=>p,Object.values(p));return i.createElement(v.Provider,{value:x},h)}function f(u,m){const h=m?.[e][l]||s,p=i.useContext(h);if(p)return p;if(c!==void 0)return c;throw new Error(`\`${u}\` must be used within \`${a}\``)}return d.displayName=a+"Provider",[d,f]}const o=()=>{const a=n.map(c=>i.createContext(c));return function(s){const l=s?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,Es(o,...t)]}function Es(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const c=r.reduce((s,{useScope:l,scopeName:d})=>{const u=l(a)[`__scope${d}`];return{...s,...u}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}const bt=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),a=o.find(Ss);if(a){const c=a.props.children,s=o.map(l=>l===a?i.Children.count(c)>1?i.Children.only(null):i.isValidElement(c)?c.props.children:null:l);return i.createElement(Rn,j({},r,{ref:t}),i.isValidElement(c)?i.cloneElement(c,void 0,s):null)}return i.createElement(Rn,j({},r,{ref:t}),n)});bt.displayName="Slot";const Rn=i.forwardRef((e,t)=>{const{children:n,...r}=e;return i.isValidElement(n)?i.cloneElement(n,{..._s(r,n.props),ref:t?nn(t,n.ref):n.ref}):i.Children.count(n)>1?i.Children.only(null):null});Rn.displayName="SlotClone";const wo=({children:e})=>i.createElement(i.Fragment,null,e);function Ss(e){return i.isValidElement(e)&&e.type===wo}function _s(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const fe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:a,...c}=r,s=a?bt:t;return i.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),i.createElement(s,j({},c,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function xo(e,t){e&&vt.flushSync(()=>e.dispatchEvent(t))}function Oe(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Ts(e,t=globalThis?.document){const n=Oe(e);i.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Hn="dismissableLayer.update",ks="dismissableLayer.pointerDownOutside",Ps="dismissableLayer.focusOutside";let yo;const Ns=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Un=i.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:c,onInteractOutside:s,onDismiss:l,...d}=e,f=i.useContext(Ns),[u,m]=i.useState(null),h=(n=u?.ownerDocument)!==null&&n!==void 0?n:globalThis?.document,[,p]=i.useState({}),v=ve(t,_=>m(_)),x=Array.from(f.layers),[g]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=x.indexOf(g),$=u?x.indexOf(u):-1,C=f.layersWithOutsidePointerEventsDisabled.size>0,E=$>=w,O=Is(_=>{const B=_.target,K=[...f.branches].some(D=>D.contains(B));!E||K||(a?.(_),s?.(_),_.defaultPrevented||l?.())},h),k=Ms(_=>{const B=_.target;[...f.branches].some(D=>D.contains(B))||(c?.(_),s?.(_),_.defaultPrevented||l?.())},h);return Ts(_=>{$===f.layers.size-1&&(o?.(_),!_.defaultPrevented&&l&&(_.preventDefault(),l()))},h),i.useEffect(()=>{if(u)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(yo=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),$o(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=yo)}},[u,h,r,f]),i.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),$o())},[u,f]),i.useEffect(()=>{const _=()=>p({});return document.addEventListener(Hn,_),()=>document.removeEventListener(Hn,_)},[]),i.createElement(fe.div,j({},d,{ref:v,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:Y(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Y(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Y(e.onPointerDownCapture,O.onPointerDownCapture)}))});function Is(e,t=globalThis?.document){const n=Oe(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let d=function(){Co(ks,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ms(e,t=globalThis?.document){const n=Oe(e),r=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!r.current&&Co(Ps,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function $o(){const e=new CustomEvent(Hn);document.dispatchEvent(e)}function Co(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?xo(o,a):o.dispatchEvent(a)}const Te=globalThis?.document?i.useLayoutEffect:()=>{},Os=L.useId||(()=>{});let Ds=0;function wt(e){const[t,n]=L.useState(Os());return Te(()=>{n(r=>r??String(Ds++))},[e]),t?`radix-${t}`:""}const As=["top","right","bottom","left"],Le=Math.min,Pe=Math.max,rn=Math.round,on=Math.floor,tt=e=>({x:e,y:e}),js={left:"right",right:"left",bottom:"top",top:"bottom"},Ls={start:"end",end:"start"};function Kn(e,t,n){return Pe(e,Le(t,n))}function ze(e,t){return typeof e=="function"?e(t):e}function We(e){return e.split("-")[0]}function xt(e){return e.split("-")[1]}function Gn(e){return e==="x"?"y":"x"}function Yn(e){return e==="y"?"height":"width"}function yt(e){return["top","bottom"].includes(We(e))?"y":"x"}function Xn(e){return Gn(yt(e))}function Fs(e,t,n){n===void 0&&(n=!1);const r=xt(e),o=Xn(e),a=Yn(o);let c=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(c=an(c)),[c,an(c)]}function Vs(e){const t=an(e);return[qn(e),t,qn(t)]}function qn(e){return e.replace(/start|end/g,t=>Ls[t])}function Bs(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],c=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:c;default:return[]}}function zs(e,t,n,r){const o=xt(e);let a=Bs(We(e),n==="start",r);return o&&(a=a.map(c=>c+"-"+o),t&&(a=a.concat(a.map(qn)))),a}function an(e){return e.replace(/left|right|bottom|top/g,t=>js[t])}function Ws(e){return{top:0,right:0,bottom:0,left:0,...e}}function Eo(e){return typeof e!="number"?Ws(e):{top:e,right:e,bottom:e,left:e}}function cn(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function So(e,t,n){let{reference:r,floating:o}=e;const a=yt(t),c=Xn(t),s=Yn(c),l=We(t),d=a==="y",f=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,m=r[s]/2-o[s]/2;let h;switch(l){case"top":h={x:f,y:r.y-o.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:u};break;case"left":h={x:r.x-o.width,y:u};break;default:h={x:r.x,y:r.y}}switch(xt(t)){case"start":h[c]-=m*(n&&d?-1:1);break;case"end":h[c]+=m*(n&&d?-1:1);break}return h}const Rs=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:c}=n,s=a.filter(Boolean),l=await(c.isRTL==null?void 0:c.isRTL(t));let d=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:u}=So(d,r,l),m=r,h={},p=0;for(let v=0;v<s.length;v++){const{name:x,fn:g}=s[v],{x:w,y:$,data:C,reset:E}=await g({x:f,y:u,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:d,platform:c,elements:{reference:e,floating:t}});f=w??f,u=$??u,h={...h,[x]:{...h[x],...C}},E&&p<=50&&(p++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(d=E.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:u}=So(d,m,l)),v=-1)}return{x:f,y:u,placement:m,strategy:o,middlewareData:h}};async function zt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:c,elements:s,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:h=0}=ze(t,e),p=Eo(h),x=s[m?u==="floating"?"reference":"floating":u],g=cn(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(x)))==null||n?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:d,rootBoundary:f,strategy:l})),w=u==="floating"?{x:r,y:o,width:c.floating.width,height:c.floating.height}:c.reference,$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),C=await(a.isElement==null?void 0:a.isElement($))?await(a.getScale==null?void 0:a.getScale($))||{x:1,y:1}:{x:1,y:1},E=cn(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:$,strategy:l}):w);return{top:(g.top-E.top+p.top)/C.y,bottom:(E.bottom-g.bottom+p.bottom)/C.y,left:(g.left-E.left+p.left)/C.x,right:(E.right-g.right+p.right)/C.x}}const Hs=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:c,elements:s,middlewareData:l}=t,{element:d,padding:f=0}=ze(e,t)||{};if(d==null)return{};const u=Eo(f),m={x:n,y:r},h=Xn(o),p=Yn(h),v=await c.getDimensions(d),x=h==="y",g=x?"top":"left",w=x?"bottom":"right",$=x?"clientHeight":"clientWidth",C=a.reference[p]+a.reference[h]-m[h]-a.floating[p],E=m[h]-a.reference[h],O=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d));let k=O?O[$]:0;(!k||!await(c.isElement==null?void 0:c.isElement(O)))&&(k=s.floating[$]||a.floating[p]);const _=C/2-E/2,B=k/2-v[p]/2-1,K=Le(u[g],B),D=Le(u[w],B),P=K,G=k-v[p]-D,z=k/2-v[p]/2+_,R=Kn(P,z,G),M=!l.arrow&&xt(o)!=null&&z!==R&&a.reference[p]/2-(z<P?K:D)-v[p]/2<0,I=M?z<P?z-P:z-G:0;return{[h]:m[h]+I,data:{[h]:R,centerOffset:z-R-I,...M&&{alignmentOffset:I}},reset:M}}}),Us=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:c,initialPlacement:s,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:v=!0,...x}=ze(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const g=We(o),w=We(s)===s,$=await(l.isRTL==null?void 0:l.isRTL(d.floating)),C=m||(w||!v?[an(s)]:Vs(s));!m&&p!=="none"&&C.push(...zs(s,v,p,$));const E=[s,...C],O=await zt(t,x),k=[];let _=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&k.push(O[g]),u){const P=Fs(o,c,$);k.push(O[P[0]],O[P[1]])}if(_=[..._,{placement:o,overflows:k}],!k.every(P=>P<=0)){var B,K;const P=(((B=a.flip)==null?void 0:B.index)||0)+1,G=E[P];if(G)return{data:{index:P,overflows:_},reset:{placement:G}};let z=(K=_.filter(R=>R.overflows[0]<=0).sort((R,M)=>R.overflows[1]-M.overflows[1])[0])==null?void 0:K.placement;if(!z)switch(h){case"bestFit":{var D;const R=(D=_.map(M=>[M.placement,M.overflows.filter(I=>I>0).reduce((I,N)=>I+N,0)]).sort((M,I)=>M[1]-I[1])[0])==null?void 0:D[0];R&&(z=R);break}case"initialPlacement":z=s;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function _o(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function To(e){return As.some(t=>e[t]>=0)}const Ks=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ze(e,t);switch(r){case"referenceHidden":{const a=await zt(t,{...o,elementContext:"reference"}),c=_o(a,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:To(c)}}}case"escaped":{const a=await zt(t,{...o,altBoundary:!0}),c=_o(a,n.floating);return{data:{escapedOffsets:c,escaped:To(c)}}}default:return{}}}}};async function Gs(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),c=We(n),s=xt(n),l=yt(n)==="y",d=["left","top"].includes(c)?-1:1,f=a&&l?-1:1,u=ze(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return s&&typeof p=="number"&&(h=s==="end"?p*-1:p),l?{x:h*f,y:m*d}:{x:m*d,y:h*f}}const Ys=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:c,middlewareData:s}=t,l=await Gs(t,e);return c===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:c}}}}},Xs=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:s={fn:x=>{let{x:g,y:w}=x;return{x:g,y:w}}},...l}=ze(e,t),d={x:n,y:r},f=await zt(t,l),u=yt(We(o)),m=Gn(u);let h=d[m],p=d[u];if(a){const x=m==="y"?"top":"left",g=m==="y"?"bottom":"right",w=h+f[x],$=h-f[g];h=Kn(w,h,$)}if(c){const x=u==="y"?"top":"left",g=u==="y"?"bottom":"right",w=p+f[x],$=p-f[g];p=Kn(w,p,$)}const v=s.fn({...t,[m]:h,[u]:p});return{...v,data:{x:v.x-n,y:v.y-r}}}}},qs=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:c}=t,{offset:s=0,mainAxis:l=!0,crossAxis:d=!0}=ze(e,t),f={x:n,y:r},u=yt(o),m=Gn(u);let h=f[m],p=f[u];const v=ze(s,t),x=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const $=m==="y"?"height":"width",C=a.reference[m]-a.floating[$]+x.mainAxis,E=a.reference[m]+a.reference[$]-x.mainAxis;h<C?h=C:h>E&&(h=E)}if(d){var g,w;const $=m==="y"?"width":"height",C=["top","left"].includes(We(o)),E=a.reference[u]-a.floating[$]+(C&&((g=c.offset)==null?void 0:g[u])||0)+(C?0:x.crossAxis),O=a.reference[u]+a.reference[$]+(C?0:((w=c.offset)==null?void 0:w[u])||0)-(C?x.crossAxis:0);p<E?p=E:p>O&&(p=O)}return{[m]:h,[u]:p}}}},Zs=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:c=()=>{},...s}=ze(e,t),l=await zt(t,s),d=We(n),f=xt(n),u=yt(n)==="y",{width:m,height:h}=r.floating;let p,v;d==="top"||d==="bottom"?(p=d,v=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,p=f==="end"?"top":"bottom");const x=h-l.top-l.bottom,g=m-l.left-l.right,w=Le(h-l[p],x),$=Le(m-l[v],g),C=!t.middlewareData.shift;let E=w,O=$;if(u?O=f||C?Le($,g):g:E=f||C?Le(w,x):x,C&&!f){const _=Pe(l.left,0),B=Pe(l.right,0),K=Pe(l.top,0),D=Pe(l.bottom,0);u?O=m-2*(_!==0||B!==0?_+B:Pe(l.left,l.right)):E=h-2*(K!==0||D!==0?K+D:Pe(l.top,l.bottom))}await c({...t,availableWidth:O,availableHeight:E});const k=await o.getDimensions(a.floating);return m!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}};function $t(e){return ko(e)?(e.nodeName||"").toLowerCase():"#document"}function Ne(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Re(e){var t;return(t=(ko(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ko(e){return e instanceof Node||e instanceof Ne(e).Node}function Fe(e){return e instanceof Element||e instanceof Ne(e).Element}function Ve(e){return e instanceof HTMLElement||e instanceof Ne(e).HTMLElement}function Po(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ne(e).ShadowRoot}function Wt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=De(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Js(e){return["table","td","th"].includes($t(e))}function Zn(e){const t=Jn(),n=De(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Qs(e){let t=nt(e);for(;Ve(t)&&!Ct(t);){if(Zn(t))return t;t=nt(t)}return null}function Jn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ct(e){return["html","body","#document"].includes($t(e))}function De(e){return Ne(e).getComputedStyle(e)}function sn(e){return Fe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function nt(e){if($t(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Po(e)&&e.host||Re(e);return Po(t)?t.host:t}function No(e){const t=nt(e);return Ct(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ve(t)&&Wt(t)?t:No(t)}function Rt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=No(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),c=Ne(o);return a?t.concat(c,c.visualViewport||[],Wt(o)?o:[],c.frameElement&&n?Rt(c.frameElement):[]):t.concat(o,Rt(o,[],n))}function Io(e){const t=De(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ve(e),a=o?e.offsetWidth:n,c=o?e.offsetHeight:r,s=rn(n)!==a||rn(r)!==c;return s&&(n=a,r=c),{width:n,height:r,$:s}}function Qn(e){return Fe(e)?e:e.contextElement}function Et(e){const t=Qn(e);if(!Ve(t))return tt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Io(t);let c=(a?rn(n.width):n.width)/r,s=(a?rn(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!s||!Number.isFinite(s))&&(s=1),{x:c,y:s}}const el=tt(0);function Mo(e){const t=Ne(e);return!Jn()||!t.visualViewport?el:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ne(e)?!1:t}function st(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Qn(e);let c=tt(1);t&&(r?Fe(r)&&(c=Et(r)):c=Et(e));const s=tl(a,n,r)?Mo(a):tt(0);let l=(o.left+s.x)/c.x,d=(o.top+s.y)/c.y,f=o.width/c.x,u=o.height/c.y;if(a){const m=Ne(a),h=r&&Fe(r)?Ne(r):r;let p=m,v=p.frameElement;for(;v&&r&&h!==p;){const x=Et(v),g=v.getBoundingClientRect(),w=De(v),$=g.left+(v.clientLeft+parseFloat(w.paddingLeft))*x.x,C=g.top+(v.clientTop+parseFloat(w.paddingTop))*x.y;l*=x.x,d*=x.y,f*=x.x,u*=x.y,l+=$,d+=C,p=Ne(v),v=p.frameElement}}return cn({width:f,height:u,x:l,y:d})}const nl=[":popover-open",":modal"];function er(e){return nl.some(t=>{try{return e.matches(t)}catch{return!1}})}function rl(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",c=Re(r),s=t?er(t.floating):!1;if(r===c||s&&a)return n;let l={scrollLeft:0,scrollTop:0},d=tt(1);const f=tt(0),u=Ve(r);if((u||!u&&!a)&&(($t(r)!=="body"||Wt(c))&&(l=sn(r)),Ve(r))){const m=st(r);d=Et(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+f.x,y:n.y*d.y-l.scrollTop*d.y+f.y}}function ol(e){return Array.from(e.getClientRects())}function Oo(e){return st(Re(e)).left+sn(e).scrollLeft}function al(e){const t=Re(e),n=sn(e),r=e.ownerDocument.body,o=Pe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Pe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+Oo(e);const s=-n.scrollTop;return De(r).direction==="rtl"&&(c+=Pe(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:c,y:s}}function il(e,t){const n=Ne(e),r=Re(e),o=n.visualViewport;let a=r.clientWidth,c=r.clientHeight,s=0,l=0;if(o){a=o.width,c=o.height;const d=Jn();(!d||d&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:c,x:s,y:l}}function cl(e,t){const n=st(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Ve(e)?Et(e):tt(1),c=e.clientWidth*a.x,s=e.clientHeight*a.y,l=o*a.x,d=r*a.y;return{width:c,height:s,x:l,y:d}}function Do(e,t,n){let r;if(t==="viewport")r=il(e,n);else if(t==="document")r=al(Re(e));else if(Fe(t))r=cl(t,n);else{const o=Mo(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return cn(r)}function Ao(e,t){const n=nt(e);return n===t||!Fe(n)||Ct(n)?!1:De(n).position==="fixed"||Ao(n,t)}function sl(e,t){const n=t.get(e);if(n)return n;let r=Rt(e,[],!1).filter(s=>Fe(s)&&$t(s)!=="body"),o=null;const a=De(e).position==="fixed";let c=a?nt(e):e;for(;Fe(c)&&!Ct(c);){const s=De(c),l=Zn(c);!l&&s.position==="fixed"&&(o=null),(a?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Wt(c)&&!l&&Ao(e,c))?r=r.filter(f=>f!==c):o=s,c=nt(c)}return t.set(e,r),r}function ll(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const c=[...n==="clippingAncestors"?er(t)?[]:sl(t,this._c):[].concat(n),r],s=c[0],l=c.reduce((d,f)=>{const u=Do(t,f,o);return d.top=Pe(u.top,d.top),d.right=Le(u.right,d.right),d.bottom=Le(u.bottom,d.bottom),d.left=Pe(u.left,d.left),d},Do(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function dl(e){const{width:t,height:n}=Io(e);return{width:t,height:n}}function ul(e,t,n){const r=Ve(t),o=Re(t),a=n==="fixed",c=st(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=tt(0);if(r||!r&&!a)if(($t(t)!=="body"||Wt(o))&&(s=sn(t)),r){const u=st(t,!0,a,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else o&&(l.x=Oo(o));const d=c.left+s.scrollLeft-l.x,f=c.top+s.scrollTop-l.y;return{x:d,y:f,width:c.width,height:c.height}}function tr(e){return De(e).position==="static"}function jo(e,t){return!Ve(e)||De(e).position==="fixed"?null:t?t(e):e.offsetParent}function Lo(e,t){const n=Ne(e);if(er(e))return n;if(!Ve(e)){let o=nt(e);for(;o&&!Ct(o);){if(Fe(o)&&!tr(o))return o;o=nt(o)}return n}let r=jo(e,t);for(;r&&Js(r)&&tr(r);)r=jo(r,t);return r&&Ct(r)&&tr(r)&&!Zn(r)?n:r||Qs(e)||n}const fl=async function(e){const t=this.getOffsetParent||Lo,n=this.getDimensions,r=await n(e.floating);return{reference:ul(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function pl(e){return De(e).direction==="rtl"}const ml={convertOffsetParentRelativeRectToViewportRelativeRect:rl,getDocumentElement:Re,getClippingRect:ll,getOffsetParent:Lo,getElementRects:fl,getClientRects:ol,getDimensions:dl,getScale:Et,isElement:Fe,isRTL:pl};function hl(e,t){let n=null,r;const o=Re(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function c(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const{left:d,top:f,width:u,height:m}=e.getBoundingClientRect();if(s||t(),!u||!m)return;const h=on(f),p=on(o.clientWidth-(d+u)),v=on(o.clientHeight-(f+m)),x=on(d),w={rootMargin:-h+"px "+-p+"px "+-v+"px "+-x+"px",threshold:Pe(0,Le(1,l))||1};let $=!0;function C(E){const O=E[0].intersectionRatio;if(O!==l){if(!$)return c();O?c(!1,O):r=setTimeout(()=>{c(!1,1e-7)},1e3)}$=!1}try{n=new IntersectionObserver(C,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,w)}n.observe(e)}return c(!0),a}function vl(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=Qn(e),f=o||a?[...d?Rt(d):[],...Rt(t)]:[];f.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),a&&g.addEventListener("resize",n)});const u=d&&s?hl(d,n):null;let m=-1,h=null;c&&(h=new ResizeObserver(g=>{let[w]=g;w&&w.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var $;($=h)==null||$.observe(t)})),n()}),d&&!l&&h.observe(d),h.observe(t));let p,v=l?st(e):null;l&&x();function x(){const g=st(e);v&&(g.x!==v.x||g.y!==v.y||g.width!==v.width||g.height!==v.height)&&n(),v=g,p=requestAnimationFrame(x)}return n(),()=>{var g;f.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),u?.(),(g=h)==null||g.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const gl=Ys,bl=Xs,wl=Us,xl=Zs,yl=Ks,Fo=Hs,$l=qs,Cl=(e,t,n)=>{const r=new Map,o={platform:ml,...n},a={...o.platform,_c:r};return Rs(e,t,{...o,platform:a})};var ln=typeof document<"u"?i.useLayoutEffect:i.useEffect;function dn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!dn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!dn(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Vo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bo(e,t){const n=Vo(e);return Math.round(t*n)/n}function zo(e){const t=L.useRef(e);return ln(()=>{t.current=e}),t}function El(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:c}={},transform:s=!0,whileElementsMounted:l,open:d}=e,[f,u]=L.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=L.useState(r);dn(m,r)||h(r);const[p,v]=L.useState(null),[x,g]=L.useState(null),w=L.useCallback(I=>{I!==O.current&&(O.current=I,v(I))},[]),$=L.useCallback(I=>{I!==k.current&&(k.current=I,g(I))},[]),C=a||p,E=c||x,O=L.useRef(null),k=L.useRef(null),_=L.useRef(f),B=l!=null,K=zo(l),D=zo(o),P=L.useCallback(()=>{if(!O.current||!k.current)return;const I={placement:t,strategy:n,middleware:m};D.current&&(I.platform=D.current),Cl(O.current,k.current,I).then(N=>{const S={...N,isPositioned:!0};G.current&&!dn(_.current,S)&&(_.current=S,Ri.flushSync(()=>{u(S)}))})},[m,t,n,D]);ln(()=>{d===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,u(I=>({...I,isPositioned:!1})))},[d]);const G=L.useRef(!1);ln(()=>(G.current=!0,()=>{G.current=!1}),[]),ln(()=>{if(C&&(O.current=C),E&&(k.current=E),C&&E){if(K.current)return K.current(C,E,P);P()}},[C,E,P,K,B]);const z=L.useMemo(()=>({reference:O,floating:k,setReference:w,setFloating:$}),[w,$]),R=L.useMemo(()=>({reference:C,floating:E}),[C,E]),M=L.useMemo(()=>{const I={position:n,left:0,top:0};if(!R.floating)return I;const N=Bo(R.floating,f.x),S=Bo(R.floating,f.y);return s?{...I,transform:"translate("+N+"px, "+S+"px)",...Vo(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:S}},[n,s,R.floating,f.x,f.y]);return L.useMemo(()=>({...f,update:P,refs:z,elements:R,floatingStyles:M}),[f,P,z,R,M])}const Sl=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Fo({element:r.current,padding:o}).fn(n):{}:r?Fo({element:r,padding:o}).fn(n):{}}}},_l=(e,t)=>({...gl(e),options:[e,t]}),Tl=(e,t)=>({...bl(e),options:[e,t]}),kl=(e,t)=>({...$l(e),options:[e,t]}),Pl=(e,t)=>({...wl(e),options:[e,t]}),Nl=(e,t)=>({...xl(e),options:[e,t]}),Il=(e,t)=>({...yl(e),options:[e,t]}),Ml=(e,t)=>({...Sl(e),options:[e,t]}),Ol=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return i.createElement(fe.svg,j({},a,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:i.createElement("polygon",{points:"0,0 30,0 15,10"}))});function Dl(e){const[t,n]=i.useState(void 0);return Te(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let c,s;if("borderBoxSize"in a){const l=a.borderBoxSize,d=Array.isArray(l)?l[0]:l;c=d.inlineSize,s=d.blockSize}else c=e.offsetWidth,s=e.offsetHeight;n({width:c,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Wo="Popper",[Ro,St]=ct(Wo),[Al,Ho]=Ro(Wo),jl=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return i.createElement(Al,{scope:t,anchor:r,onAnchorChange:o},n)},Ll="PopperAnchor",Fl=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Ho(Ll,n),c=i.useRef(null),s=ve(t,c);return i.useEffect(()=>{a.onAnchorChange(r?.current||c.current)}),r?null:i.createElement(fe.div,j({},o,{ref:s}))}),Uo="PopperContent",[Vl,Bl]=Ro(Uo),zl=i.forwardRef((e,t)=>{var n,r,o,a,c,s,l,d;const{__scopePopper:f,side:u="bottom",sideOffset:m=0,align:h="center",alignOffset:p=0,arrowPadding:v=0,avoidCollisions:x=!0,collisionBoundary:g=[],collisionPadding:w=0,sticky:$="partial",hideWhenDetached:C=!1,updatePositionStrategy:E="optimized",onPlaced:O,...k}=e,_=Ho(Uo,f),[B,K]=i.useState(null),D=ve(t,A=>K(A)),[P,G]=i.useState(null),z=Dl(P),R=(n=z?.width)!==null&&n!==void 0?n:0,M=(r=z?.height)!==null&&r!==void 0?r:0,I=u+(h!=="center"?"-"+h:""),N=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},S=Array.isArray(g)?g:[g],F=S.length>0,W={padding:N,boundary:S.filter(Hl),altBoundary:F},{refs:X,floatingStyles:ae,placement:be,isPositioned:ge,middlewareData:pe}=El({strategy:"fixed",placement:I,whileElementsMounted:(...A)=>vl(...A,{animationFrame:E==="always"}),elements:{reference:_.anchor},middleware:[_l({mainAxis:m+M,alignmentAxis:p}),x&&Tl({mainAxis:!0,crossAxis:!1,limiter:$==="partial"?kl():void 0,...W}),x&&Pl({...W}),Nl({...W,apply:({elements:A,rects:H,availableWidth:Z,availableHeight:me})=>{const{width:xe,height:le}=H.reference,se=A.floating.style;se.setProperty("--radix-popper-available-width",`${Z}px`),se.setProperty("--radix-popper-available-height",`${me}px`),se.setProperty("--radix-popper-anchor-width",`${xe}px`),se.setProperty("--radix-popper-anchor-height",`${le}px`)}}),P&&Ml({element:P,padding:v}),Ul({arrowWidth:R,arrowHeight:M}),C&&Il({strategy:"referenceHidden",...W})]}),[U,Q]=Go(be),te=Oe(O);Te(()=>{ge&&te?.()},[ge,te]);const ne=(o=pe.arrow)===null||o===void 0?void 0:o.x,ie=(a=pe.arrow)===null||a===void 0?void 0:a.y,oe=((c=pe.arrow)===null||c===void 0?void 0:c.centerOffset)!==0,[$e,Ce]=i.useState();return Te(()=>{B&&Ce(window.getComputedStyle(B).zIndex)},[B]),i.createElement("div",{ref:X.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:ge?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$e,"--radix-popper-transform-origin":[(s=pe.transformOrigin)===null||s===void 0?void 0:s.x,(l=pe.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},i.createElement(Vl,{scope:f,placedSide:U,onArrowChange:G,arrowX:ne,arrowY:ie,shouldHideArrow:oe},i.createElement(fe.div,j({"data-side":U,"data-align":Q},k,{ref:D,style:{...k.style,animation:ge?void 0:"none",opacity:(d=pe.hide)!==null&&d!==void 0&&d.referenceHidden?0:void 0}}))))}),Ko="PopperArrow",Wl={top:"bottom",right:"left",bottom:"top",left:"right"},Rl=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Bl(Ko,r),c=Wl[a.placedSide];return i.createElement("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},i.createElement(Ol,j({},o,{ref:n,style:{...o.style,display:"block"}})))});function Hl(e){return e!==null}const Ul=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,c;const{placement:s,rects:l,middlewareData:d}=t,u=((n=d.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,m=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[p,v]=Go(s),x={start:"0%",center:"50%",end:"100%"}[v],g=((r=(o=d.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+m/2,w=((a=(c=d.arrow)===null||c===void 0?void 0:c.y)!==null&&a!==void 0?a:0)+h/2;let $="",C="";return p==="bottom"?($=u?x:`${g}px`,C=`${-h}px`):p==="top"?($=u?x:`${g}px`,C=`${l.floating.height+h}px`):p==="right"?($=`${-h}px`,C=u?x:`${w}px`):p==="left"&&($=`${l.floating.width+h}px`,C=u?x:`${w}px`),{data:{x:$,y:C}}}});function Go(e){const[t,n="center"]=e.split("-");return[t,n]}const nr=jl,rr=Fl,or=zl,Yo=i.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?vt.createPortal(i.createElement(fe.div,j({},o,{ref:t})),r):null});function Kl(e,t){return i.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const _t=e=>{const{present:t,children:n}=e,r=Gl(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),a=ve(r.ref,o.ref);return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:a}):null};_t.displayName="Presence";function Gl(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,l]=Kl(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=un(r.current);a.current=s==="mounted"?d:"none"},[s]),Te(()=>{const d=r.current,f=o.current;if(f!==e){const m=a.current,h=un(d);e?l("MOUNT"):h==="none"||d?.display==="none"?l("UNMOUNT"):l(f&&m!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Te(()=>{if(t){const d=u=>{const h=un(r.current).includes(u.animationName);u.target===t&&h&&vt.flushSync(()=>l("ANIMATION_END"))},f=u=>{u.target===t&&(a.current=un(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function un(e){return e?.animationName||"none"}function Ht({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Yl({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:r,s=Oe(n),l=i.useCallback(d=>{if(a){const u=typeof d=="function"?d(e):d;u!==e&&s(u)}else o(d)},[a,e,o,s]);return[c,l]}function Yl({defaultProp:e,onChange:t}){const n=i.useState(e),[r]=n,o=i.useRef(r),a=Oe(t);return i.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const Xo=i.forwardRef((e,t)=>i.createElement(fe.span,j({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Xl=Xo,[fn,Zm]=ct("Tooltip",[St]),ar=St(),ql="TooltipProvider",Zl=700,ir="tooltip.open",[Jl,cr]=fn(ql),Ql=e=>{const{__scopeTooltip:t,delayDuration:n=Zl,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[c,s]=i.useState(!0),l=i.useRef(!1),d=i.useRef(0);return i.useEffect(()=>{const f=d.current;return()=>window.clearTimeout(f)},[]),i.createElement(Jl,{scope:t,isOpenDelayed:c,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(d.current),s(!1)},[]),onClose:i.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:i.useCallback(f=>{l.current=f},[]),disableHoverableContent:o},a)},sr="Tooltip",[ed,pn]=fn(sr),td=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:c,delayDuration:s}=e,l=cr(sr,e.__scopeTooltip),d=ar(t),[f,u]=i.useState(null),m=wt(),h=i.useRef(0),p=c??l.disableHoverableContent,v=s??l.delayDuration,x=i.useRef(!1),[g=!1,w]=Ht({prop:r,defaultProp:o,onChange:k=>{k?(l.onOpen(),document.dispatchEvent(new CustomEvent(ir))):l.onClose(),a?.(k)}}),$=i.useMemo(()=>g?x.current?"delayed-open":"instant-open":"closed",[g]),C=i.useCallback(()=>{window.clearTimeout(h.current),x.current=!1,w(!0)},[w]),E=i.useCallback(()=>{window.clearTimeout(h.current),w(!1)},[w]),O=i.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{x.current=!0,w(!0)},v)},[v,w]);return i.useEffect(()=>()=>window.clearTimeout(h.current),[]),i.createElement(nr,d,i.createElement(ed,{scope:t,contentId:m,open:g,stateAttribute:$,trigger:f,onTriggerChange:u,onTriggerEnter:i.useCallback(()=>{l.isOpenDelayed?O():C()},[l.isOpenDelayed,O,C]),onTriggerLeave:i.useCallback(()=>{p?E():window.clearTimeout(h.current)},[E,p]),onOpen:C,onClose:E,disableHoverableContent:p},n))},qo="TooltipTrigger",nd=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=pn(qo,n),a=cr(qo,n),c=ar(n),s=i.useRef(null),l=ve(t,s,o.onTriggerChange),d=i.useRef(!1),f=i.useRef(!1),u=i.useCallback(()=>d.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),i.createElement(rr,j({asChild:!0},c),i.createElement(fe.button,j({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:l,onPointerMove:Y(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:Y(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:Y(e.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:Y(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:Y(e.onBlur,o.onClose),onClick:Y(e.onClick,o.onClose)})))}),rd="TooltipPortal",[Jm,od]=fn(rd,{forceMount:void 0}),Ut="TooltipContent",ad=i.forwardRef((e,t)=>{const n=od(Ut,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,c=pn(Ut,e.__scopeTooltip);return i.createElement(_t,{present:r||c.open},c.disableHoverableContent?i.createElement(Zo,j({side:o},a,{ref:t})):i.createElement(id,j({side:o},a,{ref:t})))}),id=i.forwardRef((e,t)=>{const n=pn(Ut,e.__scopeTooltip),r=cr(Ut,e.__scopeTooltip),o=i.useRef(null),a=ve(t,o),[c,s]=i.useState(null),{trigger:l,onClose:d}=n,f=o.current,{onPointerInTransitChange:u}=r,m=i.useCallback(()=>{s(null),u(!1)},[u]),h=i.useCallback((p,v)=>{const x=p.currentTarget,g={x:p.clientX,y:p.clientY},w=sd(g,x.getBoundingClientRect()),$=ld(g,w),C=dd(v.getBoundingClientRect()),E=fd([...$,...C]);s(E),u(!0)},[u]);return i.useEffect(()=>()=>m(),[m]),i.useEffect(()=>{if(l&&f){const p=x=>h(x,f),v=x=>h(x,l);return l.addEventListener("pointerleave",p),f.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",p),f.removeEventListener("pointerleave",v)}}},[l,f,h,m]),i.useEffect(()=>{if(c){const p=v=>{const x=v.target,g={x:v.clientX,y:v.clientY},w=l?.contains(x)||f?.contains(x),$=!ud(g,c);w?m():$&&(m(),d())};return document.addEventListener("pointermove",p),()=>document.removeEventListener("pointermove",p)}},[l,f,c,d,m]),i.createElement(Zo,j({},e,{ref:a}))}),[cd,Qm]=fn(sr,{isInside:!1}),Zo=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:c,...s}=e,l=pn(Ut,n),d=ar(n),{onClose:f}=l;return i.useEffect(()=>(document.addEventListener(ir,f),()=>document.removeEventListener(ir,f)),[f]),i.useEffect(()=>{if(l.trigger){const u=m=>{const h=m.target;h!=null&&h.contains(l.trigger)&&f()};return window.addEventListener("scroll",u,{capture:!0}),()=>window.removeEventListener("scroll",u,{capture:!0})}},[l.trigger,f]),i.createElement(Un,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:u=>u.preventDefault(),onDismiss:f},i.createElement(or,j({"data-state":l.stateAttribute},d,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),i.createElement(wo,null,r),i.createElement(cd,{scope:n,isInside:!0},i.createElement(Xl,{id:l.contentId,role:"tooltip"},o||r))))});function sd(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function ld(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function dd(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function ud(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,c=t.length-1;a<t.length;c=a++){const s=t[a].x,l=t[a].y,d=t[c].x,f=t[c].y;l>r!=f>r&&n<(d-s)*(r-l)/(f-l)+s&&(o=!o)}return o}function fd(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),pd(t)}function pd(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],c=t[t.length-2];if((a.x-c.x)*(o.y-c.y)>=(a.y-c.y)*(o.x-c.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],c=n[n.length-2];if((a.x-c.x)*(o.y-c.y)>=(a.y-c.y)*(o.x-c.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const md=Ql,hd=td,vd=nd,Jo=ad,mn=md,hn=hd,vn=vd,Kt=L.forwardRef(({className:e,sideOffset:t=4,...n},r)=>y.jsx(Jo,{ref:r,sideOffset:t,className:ee("cp-fade-in-0 cp-zoom-in-95 data-[state=closed]:cp-fade-out-0 data-[state=closed]:cp-zoom-out-95 data-[side=bottom]:cp-slide-in-from-top-2 data-[side=left]:cp-slide-in-from-right-2 data-[side=right]:cp-slide-in-from-left-2 data-[side=top]:cp-slide-in-from-bottom-2 cp-z-50 cp-animate-in cp-overflow-hidden cp-rounded-md cp-bg-white cp-text-primary-700 cp-shadow-sm cp-p-2 cp-text-sm data-[state=closed]:cp-animate-out",e),...n}));Kt.displayName=Jo.displayName;function gd(e){return y.jsxs("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[y.jsx("title",{children:"Integer"}),y.jsx("path",{d:"M13.003 7.754a.75.75 0 0 1 .75-.75h5.232a.75.75 0 0 1 .53 1.28l-2.776 2.777c.55.097 1.057.253 1.492.483.905.477 1.504 1.284 1.504 2.418 0 .966-.471 1.75-1.172 2.27-.687.511-1.587.77-2.521.77-1.367 0-2.274-.528-2.667-.756a.75.75 0 0 1 .755-1.297c.331.193.953.553 1.912.553.673 0 1.243-.188 1.627-.473.37-.275.566-.635.566-1.067 0-.5-.219-.836-.703-1.091-.538-.284-1.375-.443-2.471-.443a.75.75 0 0 1-.53-1.28l2.643-2.644h-3.421a.75.75 0 0 1-.75-.75ZM7.88 15.215a1.4 1.4 0 0 0-1.446.83.75.75 0 0 1-1.37-.61 2.899 2.899 0 0 1 2.986-1.71c.589.06 1.139.323 1.557.743.434.446.685 1.058.685 1.778 0 1.641-1.254 2.437-2.12 2.986-.538.341-1.18.694-1.495 1.273H9.75a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.75-.75c0-1.799 1.337-2.63 2.243-3.21 1.032-.659 1.55-1.031 1.55-1.8 0-.355-.116-.584-.26-.732a1.071 1.071 0 0 0-.652-.298Zm.234-13.121a.75.75 0 0 1 .386.656V9h1.252a.75.75 0 0 1 0 1.5H5.75a.75.75 0 0 1 0-1.5H7V4.103l-.853.533a.749.749 0 1 1-.795-1.272l2-1.25a.749.749 0 0 1 .762-.02Z"})]})}function bd({column:e,width:t,visible:n}){const{name:r,dataEditorType:o,description:a}=e;return n?y.jsxs("div",{className:"cp-flex cp-shrink-0 cp-items-center cp-gap-2 cp-border cp-border-t-0 cp-border-l-0 cp-bg-primary-50 cp-px-2 cp-border-primary-100",style:{width:t,height:kc},children:[y.jsxs("div",{className:"cp-w-4 cp-shrink-0 cp-text-primary-500",children:[o==="String"&&y.jsx(ss,{className:"cp-h-4 cp-w-4"}),o==="Date"&&y.jsx(fs,{className:"cp-h-4 cp-w-4"}),o==="Boolean"&&y.jsx(hs,{className:"cp-h-4 cp-w-4"}),o==="Select"&&y.jsx(bs,{className:"cp-h-4 cp-w-4"}),o==="Float"&&y.jsx(bo,{className:"cp-h-4 cp-w-4"}),o==="Decimal"&&y.jsx(bo,{className:"cp-h-4 cp-w-4"}),o==="Integer"&&y.jsx(gd,{className:"cp-h-4 cp-w-4"}),o==="Currency"&&y.jsx(vs,{className:"cp-h-4 cp-w-4"}),o==="Percentage"&&y.jsx(xs,{className:"cp-h-4 cp-w-4"})]}),y.jsx("p",{title:r,className:"cp-line-clamp-2 cp-w-full cp-break-words cp-font-bold cp-text-primary-700 cp-text-sm",children:r}),a?y.jsx(mn,{children:y.jsxs(hn,{delayDuration:100,children:[y.jsx(vn,{children:y.jsx(is,{className:"cp-h-4 cp-w-4 cp-text-primary-700"})}),y.jsx(Kt,{className:"cp-max-w-[240px]",children:y.jsx("p",{children:a})})]})}):y.jsx("div",{className:"cp-w-4 cp-shrink-0"})]}):null}function wd({className:e}){const{emptySize:t,onSelectSpreadsheet:n}=je();return y.jsx("button",{type:"button",disabled:t,className:ee("cp-relative cp-flex cp-h-7 cp-w-12 cp-shrink-0 cp-items-center cp-justify-center cp-border cp-border-t cp-border-l cp-bg-white cp-text-sm",e),onClick:n})}function xd(){const{columns:e}=je();return y.jsxs("div",{children:[y.jsxs("div",{className:"cp-relative cp-flex cp-items-center cp-bg-white",children:[y.jsx(wd,{className:"cp-border-t-0 cp-border-l-0"}),e.map(t=>y.jsx(Yc,{column:t,width:e[t.position].state.width,visible:e[t.position].state.visible},`spreadsheet__column__indicator__key__${t.name}__${t.position}`))]}),y.jsxs("div",{className:"cp-flex cp-items-center",children:[y.jsx("div",{className:"cp-h-9 cp-w-12 cp-shrink-0 cp-cursor-default cp-border cp-border-t-0 cp-border-l-0 cp-bg-white"}),e.map(t=>y.jsx(bd,{column:t,width:e[t.position].state.width,visible:e[t.position].state.visible},`spreadsheet__column__header__key__${t.name}__${t.position}`))]})]})}function Qo(e,[t,n]){return Math.min(n,Math.max(t,e))}function lr(e){const t=e+"CollectionProvider",[n,r]=ct(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=h=>{const{scope:p,children:v}=h,x=i.useRef(null),g=i.useRef(new Map).current;return i.createElement(o,{scope:p,itemMap:g,collectionRef:x},v)},s=e+"CollectionSlot",l=i.forwardRef((h,p)=>{const{scope:v,children:x}=h,g=a(s,v),w=ve(p,g.collectionRef);return i.createElement(bt,{ref:w},x)}),d=e+"CollectionItemSlot",f="data-radix-collection-item",u=i.forwardRef((h,p)=>{const{scope:v,children:x,...g}=h,w=i.useRef(null),$=ve(p,w),C=a(d,v);return i.useEffect(()=>(C.itemMap.set(w,{ref:w,...g}),()=>void C.itemMap.delete(w))),i.createElement(bt,{[f]:"",ref:$},x)});function m(h){const p=a(e+"CollectionConsumer",h);return i.useCallback(()=>{const x=p.collectionRef.current;if(!x)return[];const g=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(p.itemMap.values()).sort((C,E)=>g.indexOf(C.ref.current)-g.indexOf(E.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:c,Slot:l,ItemSlot:u},m,r]}const yd=i.createContext(void 0);function dr(e){const t=i.useContext(yd);return e||t||"ltr"}let ur=0;function ea(){i.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:ta()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:ta()),ur++,()=>{ur===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),ur--}},[])}function ta(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const fr="focusScope.autoFocusOnMount",pr="focusScope.autoFocusOnUnmount",na={bubbles:!1,cancelable:!0},ra=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,l]=i.useState(null),d=Oe(o),f=Oe(a),u=i.useRef(null),m=ve(t,v=>l(v)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let v=function($){if(h.paused||!s)return;const C=$.target;s.contains(C)?u.current=C:rt(u.current,{select:!0})},x=function($){if(h.paused||!s)return;const C=$.relatedTarget;C!==null&&(s.contains(C)||rt(u.current,{select:!0}))},g=function($){if(document.activeElement===document.body)for(const E of $)E.removedNodes.length>0&&rt(s)};document.addEventListener("focusin",v),document.addEventListener("focusout",x);const w=new MutationObserver(g);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",x),w.disconnect()}}},[r,s,h.paused]),i.useEffect(()=>{if(s){ia.add(h);const v=document.activeElement;if(!s.contains(v)){const g=new CustomEvent(fr,na);s.addEventListener(fr,d),s.dispatchEvent(g),g.defaultPrevented||($d(Td(oa(s)),{select:!0}),document.activeElement===v&&rt(s))}return()=>{s.removeEventListener(fr,d),setTimeout(()=>{const g=new CustomEvent(pr,na);s.addEventListener(pr,f),s.dispatchEvent(g),g.defaultPrevented||rt(v??document.body,{select:!0}),s.removeEventListener(pr,f),ia.remove(h)},0)}}},[s,d,f,h]);const p=i.useCallback(v=>{if(!n&&!r||h.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(x&&g){const w=v.currentTarget,[$,C]=Cd(w);$&&C?!v.shiftKey&&g===C?(v.preventDefault(),n&&rt($,{select:!0})):v.shiftKey&&g===$&&(v.preventDefault(),n&&rt(C,{select:!0})):g===w&&v.preventDefault()}},[n,r,h.paused]);return i.createElement(fe.div,j({tabIndex:-1},c,{ref:m,onKeyDown:p}))});function $d(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(rt(r,{select:t}),document.activeElement!==n)return}function Cd(e){const t=oa(e),n=aa(t,e),r=aa(t.reverse(),e);return[n,r]}function oa(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function aa(e,t){for(const n of e)if(!Ed(n,{upTo:t}))return n}function Ed(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Sd(e){return e instanceof HTMLInputElement&&"select"in e}function rt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Sd(e)&&t&&e.select()}}const ia=_d();function _d(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=ca(e,t),e.unshift(t)},remove(t){var n;e=ca(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function ca(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Td(e){return e.filter(t=>t.tagName!=="A")}function kd(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Pd=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Tt=new WeakMap,gn=new WeakMap,bn={},mr=0,sa=function(e){return e&&(e.host||sa(e.parentNode))},Nd=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=sa(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Id=function(e,t,n,r){var o=Nd(t,Array.isArray(e)?e:[e]);bn[n]||(bn[n]=new WeakMap);var a=bn[n],c=[],s=new Set,l=new Set(o),d=function(u){!u||s.has(u)||(s.add(u),d(u.parentNode))};o.forEach(d);var f=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(m){if(s.has(m))f(m);else try{var h=m.getAttribute(r),p=h!==null&&h!=="false",v=(Tt.get(m)||0)+1,x=(a.get(m)||0)+1;Tt.set(m,v),a.set(m,x),c.push(m),v===1&&p&&gn.set(m,!0),x===1&&m.setAttribute(n,"true"),p||m.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",m,g)}})};return f(t),s.clear(),mr++,function(){c.forEach(function(u){var m=Tt.get(u)-1,h=a.get(u)-1;Tt.set(u,m),a.set(u,h),m||(gn.has(u)||u.removeAttribute(r),gn.delete(u)),h||u.removeAttribute(n)}),mr--,mr||(Tt=new WeakMap,Tt=new WeakMap,gn=new WeakMap,bn={})}},la=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Pd(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Id(r,o,n,"aria-hidden")):function(){return null}},ot=function(){return ot=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ot.apply(this,arguments)};function Md(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Od(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var wn="right-scroll-bar-position",xn="width-before-scroll-bar",Dd="with-scroll-bars-hidden",Ad="--removed-body-scroll-bar-size";function hr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function jd(e,t){var n=i.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Ld=typeof window<"u"?L.useLayoutEffect:L.useEffect,da=new WeakMap;function Fd(e,t){var n=jd(null,function(r){return e.forEach(function(o){return hr(o,r)})});return Ld(function(){var r=da.get(n);if(r){var o=new Set(r),a=new Set(e),c=n.current;o.forEach(function(s){a.has(s)||hr(s,null)}),a.forEach(function(s){o.has(s)||hr(s,c)})}da.set(n,e)},[e]),n}var yn=function(){return yn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},yn.apply(this,arguments)};function Vd(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}typeof SuppressedError=="function"&&SuppressedError;function Bd(e){return e}function zd(e,t){t===void 0&&(t=Bd);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var c=t(a,r);return n.push(c),function(){n=n.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(r=!0;n.length;){var c=n;n=[],c.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var c=[];if(n.length){var s=n;n=[],s.forEach(a),c=n}var l=function(){var f=c;c=[],f.forEach(a)},d=function(){return Promise.resolve().then(l)};d(),n={push:function(f){c.push(f),d()},filter:function(f){return c=c.filter(f),n}}}};return o}function Wd(e){e===void 0&&(e={});var t=zd(null);return t.options=yn({async:!0,ssr:!1},e),t}var ua=function(e){var t=e.sideCar,n=Vd(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return L.createElement(r,yn({},n))};ua.isSideCarExport=!0;function Rd(e,t){return e.useMedium(t),ua}var fa=Wd(),vr=function(){},$n=L.forwardRef(function(e,t){var n=L.useRef(null),r=L.useState({onScrollCapture:vr,onWheelCapture:vr,onTouchMoveCapture:vr}),o=r[0],a=r[1],c=e.forwardProps,s=e.children,l=e.className,d=e.removeScrollBar,f=e.enabled,u=e.shards,m=e.sideCar,h=e.noIsolation,p=e.inert,v=e.allowPinchZoom,x=e.as,g=x===void 0?"div":x,w=Md(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),$=m,C=Fd([n,t]),E=ot(ot({},w),o);return L.createElement(L.Fragment,null,f&&L.createElement($,{sideCar:fa,removeScrollBar:d,shards:u,noIsolation:h,inert:p,setCallbacks:a,allowPinchZoom:!!v,lockRef:n}),c?L.cloneElement(L.Children.only(s),ot(ot({},E),{ref:C})):L.createElement(g,ot({},E,{className:l,ref:C}),s))});$n.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},$n.classNames={fullWidth:xn,zeroRight:wn};var Hd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ud(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Hd();return t&&e.setAttribute("nonce",t),e}function Kd(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Gd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Yd=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ud())&&(Kd(t,n),Gd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Xd=function(){var e=Yd();return function(t,n){L.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},pa=function(){var e=Xd(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},qd={left:0,top:0,right:0,gap:0},gr=function(e){return parseInt(e||"",10)||0},Zd=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[gr(n),gr(r),gr(o)]},Jd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return qd;var t=Zd(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Qd=pa(),kt="data-scroll-locked",eu=function(e,t,n,r){var o=e.left,a=e.top,c=e.right,s=e.gap;return n===void 0&&(n="margin"),`
126
+ .`.concat(Dd,` {
127
127
  overflow: hidden `).concat(r,`;
128
128
  padding-right: `).concat(s,"px ").concat(r,`;
129
129
  }
@@ -140,29 +140,29 @@ Linha N° ${N+1} até N° ${S+1}`:`Você irá excluir a linha N° ${N+1}, deseja
140
140
  `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
141
141
  }
142
142
 
143
- .`).concat(bn,` {
143
+ .`).concat(wn,` {
144
144
  right: `).concat(s,"px ").concat(r,`;
145
145
  }
146
146
 
147
- .`).concat(wn,` {
147
+ .`).concat(xn,` {
148
148
  margin-right: `).concat(s,"px ").concat(r,`;
149
149
  }
150
150
 
151
- .`).concat(bn," .").concat(bn,` {
151
+ .`).concat(wn," .").concat(wn,` {
152
152
  right: 0 `).concat(r,`;
153
153
  }
154
154
 
155
- .`).concat(wn," .").concat(wn,` {
155
+ .`).concat(xn," .").concat(xn,` {
156
156
  margin-right: 0 `).concat(r,`;
157
157
  }
158
158
 
159
159
  body[`).concat(kt,`] {
160
- `).concat(Nd,": ").concat(s,`px;
160
+ `).concat(Ad,": ").concat(s,`px;
161
161
  }
162
- `)},ua=function(){var e=parseInt(document.body.getAttribute(kt)||"0",10);return isFinite(e)?e:0},qd=function(){L.useEffect(function(){return document.body.setAttribute(kt,(ua()+1).toString()),function(){var e=ua()-1;e<=0?document.body.removeAttribute(kt):document.body.setAttribute(kt,e.toString())}},[])},Zd=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;qd();var a=L.useMemo(function(){return Gd(o)},[o]);return L.createElement(Yd,{styles:Xd(a,!t,o,n?"":"!important")})},gr=!1;if(typeof window<"u")try{var $n=Object.defineProperty({},"passive",{get:function(){return gr=!0,!0}});window.addEventListener("test",$n,$n),window.removeEventListener("test",$n,$n)}catch{gr=!1}var Pt=gr?{passive:!1}:!1,Jd=function(e){return e.tagName==="TEXTAREA"},fa=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Jd(e)&&n[t]==="visible")},Qd=function(e){return fa(e,"overflowY")},eu=function(e){return fa(e,"overflowX")},pa=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=ma(e,n);if(r){var o=ha(e,n),a=o[1],c=o[2];if(a>c)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},tu=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},nu=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ma=function(e,t){return e==="v"?Qd(t):eu(t)},ha=function(e,t){return e==="v"?tu(t):nu(t)},ru=function(e,t){return e==="h"&&t==="rtl"?-1:1},ou=function(e,t,n,r,o){var a=ru(e,window.getComputedStyle(t).direction),c=a*r,s=n.target,l=t.contains(s),d=!1,f=c>0,u=0,m=0;do{var h=ha(e,s),p=h[0],v=h[1],x=h[2],g=v-x-a*p;(p||g)&&ma(e,s)&&(u+=g,m+=p),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(f&&(u===0||!o)||!f&&(m===0||!o))&&(d=!0),d},Cn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},va=function(e){return[e.deltaX,e.deltaY]},ga=function(e){return e&&"current"in e?e.current:e},au=function(e,t){return e[0]===t[0]&&e[1]===t[1]},iu=function(e){return`
162
+ `)},ma=function(){var e=parseInt(document.body.getAttribute(kt)||"0",10);return isFinite(e)?e:0},tu=function(){L.useEffect(function(){return document.body.setAttribute(kt,(ma()+1).toString()),function(){var e=ma()-1;e<=0?document.body.removeAttribute(kt):document.body.setAttribute(kt,e.toString())}},[])},nu=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;tu();var a=L.useMemo(function(){return Jd(o)},[o]);return L.createElement(Qd,{styles:eu(a,!t,o,n?"":"!important")})},br=!1;if(typeof window<"u")try{var Cn=Object.defineProperty({},"passive",{get:function(){return br=!0,!0}});window.addEventListener("test",Cn,Cn),window.removeEventListener("test",Cn,Cn)}catch{br=!1}var Pt=br?{passive:!1}:!1,ru=function(e){return e.tagName==="TEXTAREA"},ha=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ru(e)&&n[t]==="visible")},ou=function(e){return ha(e,"overflowY")},au=function(e){return ha(e,"overflowX")},va=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=ga(e,n);if(r){var o=ba(e,n),a=o[1],c=o[2];if(a>c)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},iu=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},cu=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ga=function(e,t){return e==="v"?ou(t):au(t)},ba=function(e,t){return e==="v"?iu(t):cu(t)},su=function(e,t){return e==="h"&&t==="rtl"?-1:1},lu=function(e,t,n,r,o){var a=su(e,window.getComputedStyle(t).direction),c=a*r,s=n.target,l=t.contains(s),d=!1,f=c>0,u=0,m=0;do{var h=ba(e,s),p=h[0],v=h[1],x=h[2],g=v-x-a*p;(p||g)&&ga(e,s)&&(u+=g,m+=p),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(f&&(u===0||!o)||!f&&(m===0||!o))&&(d=!0),d},En=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},wa=function(e){return[e.deltaX,e.deltaY]},xa=function(e){return e&&"current"in e?e.current:e},du=function(e,t){return e[0]===t[0]&&e[1]===t[1]},uu=function(e){return`
163
163
  .block-interactivity-`.concat(e,` {pointer-events: none;}
164
164
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
165
- `)},cu=0,Nt=[];function su(e){var t=L.useRef([]),n=L.useRef([0,0]),r=L.useRef(),o=L.useState(cu++)[0],a=L.useState(function(){return da()})[0],c=L.useRef(e);L.useEffect(function(){c.current=e},[e]),L.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=kd([e.lockRef.current],(e.shards||[]).map(ga),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=L.useCallback(function(v,x){if("touches"in v&&v.touches.length===2)return!c.current.allowPinchZoom;var g=Cn(v),w=n.current,$="deltaX"in v?v.deltaX:w[0]-g[0],C="deltaY"in v?v.deltaY:w[1]-g[1],E,M=v.target,k=Math.abs($)>Math.abs(C)?"h":"v";if("touches"in v&&k==="h"&&M.type==="range")return!1;var _=pa(k,M);if(!_)return!0;if(_?E=k:(E=k==="v"?"h":"v",_=pa(k,M)),!_)return!1;if(!r.current&&"changedTouches"in v&&($||C)&&(r.current=E),!E)return!0;var B=r.current||E;return ou(B,x,v,B==="h"?$:C,!0)},[]),l=L.useCallback(function(v){var x=v;if(!(!Nt.length||Nt[Nt.length-1]!==a)){var g="deltaY"in x?va(x):Cn(x),w=t.current.filter(function(E){return E.name===x.type&&E.target===x.target&&au(E.delta,g)})[0];if(w&&w.should){x.cancelable&&x.preventDefault();return}if(!w){var $=(c.current.shards||[]).map(ga).filter(Boolean).filter(function(E){return E.contains(x.target)}),C=$.length>0?s(x,$[0]):!c.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),d=L.useCallback(function(v,x,g,w){var $={name:v,delta:x,target:g,should:w};t.current.push($),setTimeout(function(){t.current=t.current.filter(function(C){return C!==$})},1)},[]),f=L.useCallback(function(v){n.current=Cn(v),r.current=void 0},[]),u=L.useCallback(function(v){d(v.type,va(v),v.target,s(v,e.lockRef.current))},[]),m=L.useCallback(function(v){d(v.type,Cn(v),v.target,s(v,e.lockRef.current))},[]);L.useEffect(function(){return Nt.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Pt),document.addEventListener("touchmove",l,Pt),document.addEventListener("touchstart",f,Pt),function(){Nt=Nt.filter(function(v){return v!==a}),document.removeEventListener("wheel",l,Pt),document.removeEventListener("touchmove",l,Pt),document.removeEventListener("touchstart",f,Pt)}},[]);var h=e.removeScrollBar,p=e.inert;return L.createElement(L.Fragment,null,p?L.createElement(a,{styles:iu(o)}):null,h?L.createElement(Zd,{gapMode:"margin"}):null)}const lu=Fd(la,su);var br=L.forwardRef(function(e,t){return L.createElement(yn,ot({},e,{ref:t,sideCar:lu}))});br.classNames=yn.classNames;const du=[" ","Enter","ArrowUp","ArrowDown"],uu=[" ","Enter"],En="Select",[Sn,_n,fu]=sr(En),[It,Xm]=ct(En,[fu,St]),wr=St(),[pu,lt]=It(En),[mu,hu]=It(En),vu=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:c,defaultValue:s,onValueChange:l,dir:d,name:f,autoComplete:u,disabled:m,required:h}=e,p=wr(t),[v,x]=i.useState(null),[g,w]=i.useState(null),[$,C]=i.useState(!1),E=lr(d),[M=!1,k]=Ht({prop:r,defaultProp:o,onChange:a}),[_,B]=Ht({prop:c,defaultProp:s,onChange:l}),K=i.useRef(null),D=v?!!v.closest("form"):!0,[P,G]=i.useState(new Set),z=Array.from(P).map(R=>R.props.value).join(";");return i.createElement(tr,p,i.createElement(pu,{required:h,scope:t,trigger:v,onTriggerChange:x,valueNode:g,onValueNodeChange:w,valueNodeHasChildren:$,onValueNodeHasChildrenChange:C,contentId:wt(),value:_,onValueChange:B,open:M,onOpenChange:k,dir:E,triggerPointerDownPosRef:K,disabled:m},i.createElement(Sn.Provider,{scope:t},i.createElement(mu,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(R=>{G(O=>new Set(O).add(R))},[]),onNativeOptionRemove:i.useCallback(R=>{G(O=>{const I=new Set(O);return I.delete(R),I})},[])},n)),D?i.createElement(_a,{key:z,"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:u,value:_,onChange:R=>B(R.target.value),disabled:m},_===void 0?i.createElement("option",{value:""}):null,Array.from(P)):null))},gu="SelectTrigger",bu=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=wr(n),c=lt(gu,n),s=c.disabled||r,l=ve(t,c.onTriggerChange),d=_n(n),[f,u,m]=Ta(p=>{const v=d().filter(w=>!w.disabled),x=v.find(w=>w.value===c.value),g=ka(v,p,x);g!==void 0&&c.onValueChange(g.value)}),h=()=>{s||(c.onOpenChange(!0),m())};return i.createElement(nr,j({asChild:!0},a),i.createElement(fe.button,j({type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Sa(c.value)?"":void 0},o,{ref:l,onClick:Y(o.onClick,p=>{p.currentTarget.focus()}),onPointerDown:Y(o.onPointerDown,p=>{const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&(h(),c.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)},p.preventDefault())}),onKeyDown:Y(o.onKeyDown,p=>{const v=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&u(p.key),!(v&&p.key===" ")&&du.includes(p.key)&&(h(),p.preventDefault())})})))}),wu="SelectValue",xu=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:c="",...s}=e,l=lt(wu,n),{onValueNodeHasChildrenChange:d}=l,f=a!==void 0,u=ve(t,l.onValueNodeChange);return Te(()=>{d(f)},[d,f]),i.createElement(fe.span,j({},s,{ref:u,style:{pointerEvents:"none"}}),Sa(l.value)?i.createElement(i.Fragment,null,c):a)}),yu=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return i.createElement(fe.span,j({"aria-hidden":!0},o,{ref:t}),r||"▼")}),$u=e=>i.createElement(Uo,j({asChild:!0},e)),Ot="SelectContent",Cu=i.forwardRef((e,t)=>{const n=lt(Ot,e.__scopeSelect),[r,o]=i.useState();if(Te(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?vt.createPortal(i.createElement(ba,{scope:e.__scopeSelect},i.createElement(Sn.Slot,{scope:e.__scopeSelect},i.createElement("div",null,e.children))),a):null}return i.createElement(Eu,j({},e,{ref:t}))}),He=10,[ba,dt]=It(Ot),Eu=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:c,side:s,sideOffset:l,align:d,alignOffset:f,arrowPadding:u,collisionBoundary:m,collisionPadding:h,sticky:p,hideWhenDetached:v,avoidCollisions:x,...g}=e,w=lt(Ot,n),[$,C]=i.useState(null),[E,M]=i.useState(null),k=ve(t,U=>C(U)),[_,B]=i.useState(null),[K,D]=i.useState(null),P=_n(n),[G,z]=i.useState(!1),R=i.useRef(!1);i.useEffect(()=>{if($)return ia($)},[$]),Zo();const O=i.useCallback(U=>{const[Q,...te]=P().map(oe=>oe.ref.current),[ne]=te.slice(-1),ie=document.activeElement;for(const oe of U)if(oe===ie||(oe?.scrollIntoView({block:"nearest"}),oe===Q&&E&&(E.scrollTop=0),oe===ne&&E&&(E.scrollTop=E.scrollHeight),oe?.focus(),document.activeElement!==ie))return},[P,E]),I=i.useCallback(()=>O([_,$]),[O,_,$]);i.useEffect(()=>{G&&I()},[G,I]);const{onOpenChange:N,triggerPointerDownPosRef:S}=w;i.useEffect(()=>{if($){let U={x:0,y:0};const Q=ne=>{var ie,oe,$e,Ce;U={x:Math.abs(Math.round(ne.pageX)-((ie=(oe=S.current)===null||oe===void 0?void 0:oe.x)!==null&&ie!==void 0?ie:0)),y:Math.abs(Math.round(ne.pageY)-(($e=(Ce=S.current)===null||Ce===void 0?void 0:Ce.y)!==null&&$e!==void 0?$e:0))}},te=ne=>{U.x<=10&&U.y<=10?ne.preventDefault():$.contains(ne.target)||N(!1),document.removeEventListener("pointermove",Q),S.current=null};return S.current!==null&&(document.addEventListener("pointermove",Q),document.addEventListener("pointerup",te,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Q),document.removeEventListener("pointerup",te,{capture:!0})}}},[$,N,S]),i.useEffect(()=>{const U=()=>N(!1);return window.addEventListener("blur",U),window.addEventListener("resize",U),()=>{window.removeEventListener("blur",U),window.removeEventListener("resize",U)}},[N]);const[F,W]=Ta(U=>{const Q=P().filter(ie=>!ie.disabled),te=Q.find(ie=>ie.ref.current===document.activeElement),ne=ka(Q,U,te);ne&&setTimeout(()=>ne.ref.current.focus())}),X=i.useCallback((U,Q,te)=>{const ne=!R.current&&!te;(w.value!==void 0&&w.value===Q||ne)&&(B(U),ne&&(R.current=!0))},[w.value]),ae=i.useCallback(()=>$?.focus(),[$]),be=i.useCallback((U,Q,te)=>{const ne=!R.current&&!te;(w.value!==void 0&&w.value===Q||ne)&&D(U)},[w.value]),ge=r==="popper"?wa:Su,pe=ge===wa?{side:s,sideOffset:l,align:d,alignOffset:f,arrowPadding:u,collisionBoundary:m,collisionPadding:h,sticky:p,hideWhenDetached:v,avoidCollisions:x}:{};return i.createElement(ba,{scope:n,content:$,viewport:E,onViewportChange:M,itemRefCallback:X,selectedItem:_,onItemLeave:ae,itemTextRefCallback:be,focusSelectedItem:I,selectedItemText:K,position:r,isPositioned:G,searchRef:F},i.createElement(br,{as:bt,allowPinchZoom:!0},i.createElement(ea,{asChild:!0,trapped:w.open,onMountAutoFocus:U=>{U.preventDefault()},onUnmountAutoFocus:Y(o,U=>{var Q;(Q=w.trigger)===null||Q===void 0||Q.focus({preventScroll:!0}),U.preventDefault()})},i.createElement(Hn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:U=>U.preventDefault(),onDismiss:()=>w.onOpenChange(!1)},i.createElement(ge,j({role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:U=>U.preventDefault()},g,pe,{onPlaced:()=>z(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:Y(g.onKeyDown,U=>{const Q=U.ctrlKey||U.altKey||U.metaKey;if(U.key==="Tab"&&U.preventDefault(),!Q&&U.key.length===1&&W(U.key),["ArrowUp","ArrowDown","Home","End"].includes(U.key)){let ne=P().filter(ie=>!ie.disabled).map(ie=>ie.ref.current);if(["ArrowUp","End"].includes(U.key)&&(ne=ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(U.key)){const ie=U.target,oe=ne.indexOf(ie);ne=ne.slice(oe+1)}setTimeout(()=>O(ne)),U.preventDefault()}})}))))))}),Su=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=lt(Ot,n),c=dt(Ot,n),[s,l]=i.useState(null),[d,f]=i.useState(null),u=ve(t,k=>f(k)),m=_n(n),h=i.useRef(!1),p=i.useRef(!0),{viewport:v,selectedItem:x,selectedItemText:g,focusSelectedItem:w}=c,$=i.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&d&&v&&x&&g){const k=a.trigger.getBoundingClientRect(),_=d.getBoundingClientRect(),B=a.valueNode.getBoundingClientRect(),K=g.getBoundingClientRect();if(a.dir!=="rtl"){const ie=K.left-_.left,oe=B.left-ie,$e=k.left-oe,Ce=k.width+$e,A=Math.max(Ce,_.width),H=window.innerWidth-He,Z=qo(oe,[He,H-A]);s.style.minWidth=Ce+"px",s.style.left=Z+"px"}else{const ie=_.right-K.right,oe=window.innerWidth-B.right-ie,$e=window.innerWidth-k.right-oe,Ce=k.width+$e,A=Math.max(Ce,_.width),H=window.innerWidth-He,Z=qo(oe,[He,H-A]);s.style.minWidth=Ce+"px",s.style.right=Z+"px"}const D=m(),P=window.innerHeight-He*2,G=v.scrollHeight,z=window.getComputedStyle(d),R=parseInt(z.borderTopWidth,10),O=parseInt(z.paddingTop,10),I=parseInt(z.borderBottomWidth,10),N=parseInt(z.paddingBottom,10),S=R+O+G+N+I,F=Math.min(x.offsetHeight*5,S),W=window.getComputedStyle(v),X=parseInt(W.paddingTop,10),ae=parseInt(W.paddingBottom,10),be=k.top+k.height/2-He,ge=P-be,pe=x.offsetHeight/2,U=x.offsetTop+pe,Q=R+O+U,te=S-Q;if(Q<=be){const ie=x===D[D.length-1].ref.current;s.style.bottom="0px";const oe=d.clientHeight-v.offsetTop-v.offsetHeight,$e=Math.max(ge,pe+(ie?ae:0)+oe+I),Ce=Q+$e;s.style.height=Ce+"px"}else{const ie=x===D[0].ref.current;s.style.top="0px";const $e=Math.max(be,R+v.offsetTop+(ie?X:0)+pe)+te;s.style.height=$e+"px",v.scrollTop=Q-be+v.offsetTop}s.style.margin=`${He}px 0`,s.style.minHeight=F+"px",s.style.maxHeight=P+"px",r?.(),requestAnimationFrame(()=>h.current=!0)}},[m,a.trigger,a.valueNode,s,d,v,x,g,a.dir,r]);Te(()=>$(),[$]);const[C,E]=i.useState();Te(()=>{d&&E(window.getComputedStyle(d).zIndex)},[d]);const M=i.useCallback(k=>{k&&p.current===!0&&($(),w?.(),p.current=!1)},[$,w]);return i.createElement(_u,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:M},i.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C}},i.createElement(fe.div,j({},o,{ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))}),wa=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=He,...a}=e,c=wr(n);return i.createElement(rr,j({},c,a,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[_u,xr]=It(Ot,{}),xa="SelectViewport",Tu=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=dt(xa,n),a=xr(xa,n),c=ve(t,o.onViewportChange),s=i.useRef(0);return i.createElement(i.Fragment,null,i.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),i.createElement(Sn.Slot,{scope:n},i.createElement(fe.div,j({"data-radix-select-viewport":"",role:"presentation"},r,{ref:c,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:Y(r.onScroll,l=>{const d=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:u}=a;if(u!=null&&u.current&&f){const m=Math.abs(s.current-d.scrollTop);if(m>0){const h=window.innerHeight-He*2,p=parseFloat(f.style.minHeight),v=parseFloat(f.style.height),x=Math.max(p,v);if(x<h){const g=x+m,w=Math.min(h,g),$=g-w;f.style.height=w+"px",f.style.bottom==="0px"&&(d.scrollTop=$>0?$:0,f.style.justifyContent="flex-end")}}}s.current=d.scrollTop})}))))}),ku="SelectGroup",[qm,Pu]=It(ku),Nu="SelectLabel",Iu=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Pu(Nu,n);return i.createElement(fe.div,j({id:o.id},r,{ref:t}))}),yr="SelectItem",[Ou,ya]=It(yr),Mu=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...c}=e,s=lt(yr,n),l=dt(yr,n),d=s.value===r,[f,u]=i.useState(a??""),[m,h]=i.useState(!1),p=ve(t,g=>{var w;return(w=l.itemRefCallback)===null||w===void 0?void 0:w.call(l,g,r,o)}),v=wt(),x=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return i.createElement(Ou,{scope:n,value:r,disabled:o,textId:v,isSelected:d,onItemTextChange:i.useCallback(g=>{u(w=>{var $;return w||(($=g?.textContent)!==null&&$!==void 0?$:"").trim()})},[])},i.createElement(Sn.ItemSlot,{scope:n,value:r,disabled:o,textValue:f},i.createElement(fe.div,j({role:"option","aria-labelledby":v,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},c,{ref:p,onFocus:Y(c.onFocus,()=>h(!0)),onBlur:Y(c.onBlur,()=>h(!1)),onPointerUp:Y(c.onPointerUp,x),onPointerMove:Y(c.onPointerMove,g=>{if(o){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}else g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Y(c.onPointerLeave,g=>{if(g.currentTarget===document.activeElement){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}}),onKeyDown:Y(c.onKeyDown,g=>{var w;((w=l.searchRef)===null||w===void 0?void 0:w.current)!==""&&g.key===" "||(uu.includes(g.key)&&x(),g.key===" "&&g.preventDefault())})}))))}),Tn="SelectItemText",Du=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,c=lt(Tn,n),s=dt(Tn,n),l=ya(Tn,n),d=hu(Tn,n),[f,u]=i.useState(null),m=ve(t,g=>u(g),l.onItemTextChange,g=>{var w;return(w=s.itemTextRefCallback)===null||w===void 0?void 0:w.call(s,g,l.value,l.disabled)}),h=f?.textContent,p=i.useMemo(()=>i.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},h),[l.disabled,l.value,h]),{onNativeOptionAdd:v,onNativeOptionRemove:x}=d;return Te(()=>(v(p),()=>x(p)),[v,x,p]),i.createElement(i.Fragment,null,i.createElement(fe.span,j({id:l.textId},a,{ref:m})),l.isSelected&&c.valueNode&&!c.valueNodeHasChildren?vt.createPortal(a.children,c.valueNode):null)}),Au="SelectItemIndicator",ju=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return ya(Au,n).isSelected?i.createElement(fe.span,j({"aria-hidden":!0},r,{ref:t})):null}),$a="SelectScrollUpButton",Lu=i.forwardRef((e,t)=>{const n=dt($a,e.__scopeSelect),r=xr($a,e.__scopeSelect),[o,a]=i.useState(!1),c=ve(t,r.onScrollButtonChange);return Te(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=s.scrollTop>0;a(d)};const s=n.viewport;return l(),s.addEventListener("scroll",l),()=>s.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?i.createElement(Ea,j({},e,{ref:c,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}})):null}),Ca="SelectScrollDownButton",Fu=i.forwardRef((e,t)=>{const n=dt(Ca,e.__scopeSelect),r=xr(Ca,e.__scopeSelect),[o,a]=i.useState(!1),c=ve(t,r.onScrollButtonChange);return Te(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=s.scrollHeight-s.clientHeight,f=Math.ceil(s.scrollTop)<d;a(f)};const s=n.viewport;return l(),s.addEventListener("scroll",l),()=>s.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?i.createElement(Ea,j({},e,{ref:c,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}})):null}),Ea=i.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=dt("SelectScrollButton",n),c=i.useRef(null),s=_n(n),l=i.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return i.useEffect(()=>()=>l(),[l]),Te(()=>{var d;const f=s().find(u=>u.ref.current===document.activeElement);f==null||(d=f.ref.current)===null||d===void 0||d.scrollIntoView({block:"nearest"})},[s]),i.createElement(fe.div,j({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:Y(o.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(r,50))}),onPointerMove:Y(o.onPointerMove,()=>{var d;(d=a.onItemLeave)===null||d===void 0||d.call(a),c.current===null&&(c.current=window.setInterval(r,50))}),onPointerLeave:Y(o.onPointerLeave,()=>{l()})}))}),Vu=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return i.createElement(fe.div,j({"aria-hidden":!0},r,{ref:t}))});function Sa(e){return e===""||e===void 0}const _a=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=i.useRef(null),a=ve(t,o),c=Cd(n);return i.useEffect(()=>{const s=o.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(c!==n&&f){const u=new Event("change",{bubbles:!0});f.call(s,n),s.dispatchEvent(u)}},[c,n]),i.createElement(Ko,{asChild:!0},i.createElement("select",j({},r,{ref:a,defaultValue:n})))});_a.displayName="BubbleSelect";function Ta(e){const t=Me(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(c=>{const s=n.current+c;t(s),function l(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),a=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function ka(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let c=Bu(e,Math.max(a,0));o.length===1&&(c=c.filter(d=>d!==n));const l=c.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Bu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const zu=vu,Pa=bu,Wu=xu,Ru=yu,Hu=$u,Na=Cu,Uu=Tu,Ia=Iu,Oa=Mu,Ku=Du,Gu=ju,Ma=Lu,Da=Fu,Aa=Vu,ja=zu,La=Wu,$r=L.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(Pa,{ref:r,className:ee("cp-flex cp-h-9 cp-w-full cp-items-center cp-justify-between cp-whitespace-nowrap cp-rounded-md cp-border cp-border-input cp-bg-transparent cp-py-2 cp-pr-px cp-pl-3 cp-text-sm cp-shadow-sm cp-ring-offset-background [&>span]:cp-line-clamp-1 disabled:cp-cursor-not-allowed placeholder:cp-text-muted-foreground disabled:cp-opacity-50 focus:cp-outline-none focus:cp-ring-1 focus:cp-ring-ring",e),...n,children:[t,y.jsx(Ru,{asChild:!0,children:y.jsx(zn,{className:"cp-h-4 cp-w-4 cp-opacity-50"})})]}));$r.displayName=Pa.displayName;const Fa=L.forwardRef(({className:e,...t},n)=>y.jsx(Ma,{ref:n,className:ee("cp-flex cp-cursor-default cp-items-center cp-justify-center cp-py-1",e),...t,children:y.jsx(Zc,{})}));Fa.displayName=Ma.displayName;const Va=L.forwardRef(({className:e,...t},n)=>y.jsx(Da,{ref:n,className:ee("cp-flex cp-cursor-default cp-items-center cp-justify-center cp-py-1",e),...t,children:y.jsx(Gc,{})}));Va.displayName=Da.displayName;const Cr=L.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>y.jsx(Hu,{children:y.jsxs(Na,{ref:o,className:ee("data-[state=closed]:cp-fade-out-0 data-[state=open]:cp-fade-in-0 data-[state=closed]:cp-zoom-out-95 data-[state=open]:cp-zoom-in-95 data-[side=bottom]:cp-slide-in-from-top-2 data-[side=left]:cp-slide-in-from-right-2 data-[side=right]:cp-slide-in-from-left-2 data-[side=top]:cp-slide-in-from-bottom-2 cp-relative cp-z-50 cp-max-h-96 cp-min-w-[8rem] cp-overflow-hidden cp-rounded-md cp-border cp-bg-popover cp-text-popover-foreground cp-shadow-md data-[state=closed]:cp-animate-out data-[state=open]:cp-animate-in",n==="popper"&&"data-[side=left]:-cp-translate-x-1 data-[side=top]:-cp-translate-y-1 data-[side=right]:cp-translate-x-1 data-[side=bottom]:cp-translate-y-1",e),position:n,...r,children:[y.jsx(Fa,{}),y.jsx(Uu,{className:ee("cp-p-1",n==="popper"&&"cp-h-[var(--radix-select-trigger-height)] cp-w-full cp-min-w-[var(--radix-select-trigger-width)]"),children:t}),y.jsx(Va,{})]})}));Cr.displayName=Na.displayName;const Yu=L.forwardRef(({className:e,...t},n)=>y.jsx(Ia,{ref:n,className:ee("cp-px-2 cp-py-1.5 cp-font-semibold cp-text-sm",e),...t}));Yu.displayName=Ia.displayName;const kn=L.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(Oa,{ref:r,className:ee("cp-relative cp-flex cp-w-full cp-cursor-default cp-select-none cp-items-center cp-rounded-sm cp-py-1.5 cp-pr-8 cp-pl-2 cp-text-sm cp-outline-none data-[disabled]:cp-pointer-events-none focus:cp-bg-accent focus:cp-text-accent-foreground data-[disabled]:cp-opacity-50",e),...n,children:[y.jsx("span",{className:"cp-absolute cp-right-2 cp-flex cp-h-3.5 cp-w-3.5 cp-items-center cp-justify-center",children:y.jsx(Gu,{children:y.jsx(uo,{className:"cp-h-4 cp-w-4"})})}),y.jsx(Ku,{children:t})]}));kn.displayName=Oa.displayName;const Xu=L.forwardRef(({className:e,...t},n)=>y.jsx(Aa,{ref:n,className:ee("-cp-mx-1 cp-my-1 cp-h-px cp-bg-muted",e),...t}));Xu.displayName=Aa.displayName;function qu(e){const{mode:t,value:n,onChange:r,onPaste:o,setMode:a,column:c,coordinates:s}=e,[l,d]=co(!0),f=i.useCallback(h=>{h.preventDefault(),o?.()},[o]),u=i.useCallback(()=>{l||(a?.("view"),d(!1))},[a,d,l]),m=i.useCallback(h=>{r?.({data:h}),u()},[r,u]);return y.jsxs(ja,{value:n,open:l,onOpenChange:d,onValueChange:m,children:[y.jsx($r,{onBlur:u,onPaste:f,className:ee("cp-h-full cp-w-full cp-rounded-none cp-border-none cp-pl-1 cp-text-sm cp-outline-none focus:cp-ring-0"),autoFocus:!0,"data-cypress":`table-cell-boolean-${c.id}-${s.row}`,"aria-readonly":t==="readonly",children:y.jsx(La,{placeholder:"Selecionar"})}),y.jsxs(Cr,{onBlur:u,children:[y.jsx(kn,{className:"cp-text-sm",value:"true","data-cypress":`table-cell-boolean-${c.id}-${s.row}-true`,children:"Sim"}),y.jsx(kn,{className:"cp-text-sm",value:"false","data-cypress":`table-cell-boolean-${c.id}-${s.row}-false`,children:"Não"})]})]})}function Zu(e){const{value:t,column:n,coordinates:r,mode:o}=e,c=t===""?"Selecionar":t==="true"?"Sim":"Não";return y.jsxs("div",{className:"cp-flex cp-h-full cp-w-full cp-items-center cp-justify-between cp-pr-px cp-pl-1","aria-readonly":o==="readonly","data-cypress":`table-cell-select-${n.id}-${r.row}`,children:[y.jsx("p",{className:"cp-line-clamp-1 cp-text-sm",children:c}),y.jsx(zn,{className:"cp-h-4 cp-w-4 cp-opacity-50"})]})}function Ju(e){const{mode:t,value:n,onBlur:r,onChange:o,onPaste:a,column:c,coordinates:s}=e,l=i.useCallback(d=>{d.preventDefault(),a?.()},[a]);return y.jsx("input",{type:"date",onBlur:r,onPaste:l,value:n,onChange:d=>o?.({data:d.target.value}),className:ee("cp-h-full cp-w-full cp-bg-transparent cp-pl-1 cp-text-sm cp-outline-none"),"data-cypress":`table-cell-date-${c.id}-${s.row}`,"aria-readonly":t==="readonly"})}function Qu(e){const{value:t,column:n,coordinates:r,mode:o}=e,a=t||"dd/mm/yyyy";return y.jsx("div",{className:"cp-flex cp-h-full cp-w-full cp-items-center","data-cypress":`table-cell-date-${n.id}-${r.row}`,"aria-readonly":o==="readonly",children:y.jsx("p",{className:"cp-line-clamp-1 cp-pl-1 cp-text-sm",children:a})})}function ef(e){const[t,n]=i.useState(!1);return i.useEffect(()=>{const r=e.current;let o=!1;r&&(r.contains(document.activeElement)&&document.activeElement instanceof HTMLInputElement?o=!0:o=!1),n(o)},[e.current]),t}function Er(e){const t=ef(e);i.useEffect(()=>{t&&e.current?.select()},[t,e.current])}function Ba(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var Gt;(function(e){e.event="event",e.props="prop"})(Gt||(Gt={}));function at(){}function tf(e){var t,n=void 0;return function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];return t&&r.length===t.length&&r.every(function(a,c){return a===t[c]})||(t=r,n=e.apply(void 0,r)),n}}function Yt(e){return!!(e||"").match(/\d/)}function Mt(e){return e==null}function nf(e){return typeof e=="number"&&isNaN(e)}function za(e){return Mt(e)||nf(e)||typeof e=="number"&&!isFinite(e)}function Wa(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function rf(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function of(e,t,n){var r=rf(n),o=e.search(/[1-9]/);return o=o===-1?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}function af(e){var t=i.useRef(e);t.current=e;var n=i.useRef(function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];return t.current.apply(t,r)});return n.current}function Sr(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var o=e.split("."),a=o[0],c=o[1]||"";return{beforeDecimal:a,afterDecimal:c,hasNegation:n,addNegation:r}}function cf(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}function Ra(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function Ha(e,t){return Array(t+1).join(e)}function Ua(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],a=r[1];if(a=Number(a),!a)return n+o;o=o.replace(".","");var c=1+a,s=o.length;return c<0?o="0."+Ha("0",Math.abs(c))+o:c>=s?o=o+Ha("0",c-s):o=(o.substring(0,c)||"0")+"."+o.substring(c),n+o}function Ka(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,o=Sr(e),a=o.beforeDecimal,c=o.afterDecimal,s=o.hasNegation,l=parseFloat("0."+(c||"0")),d=c.length<=t?"0."+c:l.toFixed(t),f=d.split("."),u=a;a&&Number(f[0])&&(u=a.split("").reverse().reduce(function(v,x,g){return v.length>g?(Number(v[0])+Number(x)).toString()+v.substring(1,v.length):x+v},f[0]));var m=Ra(f[1]||"",t,n),h=s?"-":"",p=r?".":"";return""+h+u+p+m}function ut(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var Ga=tf(function(e,t){for(var n=0,r=0,o=e.length,a=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[a-1-r]&&a-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:a-r}}});function sf(e,t,n){return Math.min(Math.max(e,t),n)}function _r(e){return Math.max(e.selectionStart,e.selectionEnd)}function lf(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function df(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function uf(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function ff(e,t,n,r,o,a,c){c===void 0&&(c=uf);var s=o.findIndex(function(C){return C}),l=e.slice(0,s);!t&&!n.startsWith(l)&&(t=l,n=l+n,r=r+l.length);for(var d=n.length,f=e.length,u={},m=new Array(d),h=0;h<d;h++){m[h]=-1;for(var p=0,v=f;p<v;p++){var x=c({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:h,formattedValueIndex:p});if(x&&u[p]!==!0){m[h]=p,u[p]=!0;break}}}for(var g=r;g<d&&(m[g]===-1||!a(n[g]));)g++;var w=g===d||m[g]===-1?f:m[g];for(g=r-1;g>0&&m[g]===-1;)g--;var $=g===-1||m[g]===-1?0:m[g]+1;return $>w?w:r-$<w-r?$:w}function Ya(e,t,n,r){var o=e.length;if(t=sf(t,0,o),r==="left"){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=o&&!n[t];)t++;t>o&&(t=n.lastIndexOf(!0))}return t===-1&&(t=o),t}function pf(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Yt(e[n])||Yt(e[n-1]));return t}function Xa(e,t,n,r,o,a){a===void 0&&(a=at);var c=af(function(p,v){var x,g;return za(p)?(g="",x=""):typeof p=="number"||v?(g=typeof p=="number"?Ua(p):p,x=r(g)):(g=o(p,void 0),x=r(g)),{formattedValue:x,numAsString:g}}),s=i.useState(function(){return c(Mt(e)?t:e,n)}),l=s[0],d=s[1],f=function(p,v){p.formattedValue!==l.formattedValue&&d({formattedValue:p.formattedValue,numAsString:p.value}),a(p,v)},u=e,m=n;Mt(e)&&(u=l.numAsString,m=!0);var h=c(u,m);return i.useMemo(function(){d(h)},[h.formattedValue]),[l,f]}function mf(e){return e.replace(/[^0-9]/g,"")}function hf(e){return e}function vf(e){var t=e.type;t===void 0&&(t="text");var n=e.displayType;n===void 0&&(n="input");var r=e.customInput,o=e.renderText,a=e.getInputRef,c=e.format;c===void 0&&(c=hf);var s=e.removeFormatting;s===void 0&&(s=mf);var l=e.defaultValue,d=e.valueIsNumericString,f=e.onValueChange,u=e.isAllowed,m=e.onChange;m===void 0&&(m=at);var h=e.onKeyDown;h===void 0&&(h=at);var p=e.onMouseUp;p===void 0&&(p=at);var v=e.onFocus;v===void 0&&(v=at);var x=e.onBlur;x===void 0&&(x=at);var g=e.value,w=e.getCaretBoundary;w===void 0&&(w=pf);var $=e.isValidInputCharacter;$===void 0&&($=Yt);var C=e.isCharacterSame,E=Ba(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),M=Xa(g,l,!!d,c,s,f),k=M[0],_=k.formattedValue,B=k.numAsString,K=M[1],D=i.useRef({formattedValue:_,numAsString:B}),P=function(A,H){D.current={formattedValue:A.formattedValue,numAsString:A.value},K(A,H)},G=i.useState(!1),z=G[0],R=G[1],O=i.useRef(null),I=i.useRef({setCaretTimeout:null,focusTimeout:null});i.useEffect(function(){return R(!0),function(){clearTimeout(I.current.setCaretTimeout),clearTimeout(I.current.focusTimeout)}},[]);var N=c,S=function(A,H){var Z=parseFloat(H);return{formattedValue:A,value:H,floatValue:isNaN(Z)?void 0:Z}},F=function(A,H,Z){A.selectionStart===0&&A.selectionEnd===A.value.length||(ut(A,H),I.current.setCaretTimeout=setTimeout(function(){A.value===Z&&A.selectionStart!==H&&ut(A,H)},0))},W=function(A,H,Z){return Ya(A,H,w(A),Z)},X=function(A,H,Z){var me=w(H),xe=ff(H,_,A,Z,me,$,C);return xe=Ya(H,xe,me),xe},ae=function(A){var H=A.formattedValue;H===void 0&&(H="");var Z=A.input,me=A.source,xe=A.event,le=A.numAsString,se;if(Z){var Ee=A.inputValue||Z.value,mt=_r(Z);Z.value=H,se=X(Ee,H,mt),se!==void 0&&F(Z,se,H)}H!==_&&P(S(H,le),{event:xe,source:me})};i.useEffect(function(){var A=D.current,H=A.formattedValue,Z=A.numAsString;_!==H&&(_!==B||H!==Z)&&P(S(_,B),{event:void 0,source:Gt.props})},[_,B]);var be=O.current?_r(O.current):void 0,ge=typeof window<"u"?i.useLayoutEffect:i.useEffect;ge(function(){var A=O.current;if(_!==D.current.formattedValue&&A){var H=X(D.current.formattedValue,_,be);A.value=_,F(A,H,_)}},[_]);var pe=function(A,H,Z){var me=Ga(_,A),xe=Object.assign(Object.assign({},me),{lastValue:_}),le=s(A,xe),se=N(le);if(le=s(se,void 0),u&&!u(S(se,le))){var Ee=H.target,mt=_r(Ee),Lr=X(A,_,mt);return Ee.value=_,F(Ee,Lr,_),!1}return ae({formattedValue:se,numAsString:le,inputValue:A,event:H,source:Z,input:H.target}),!0},U=function(A){var H=A.target,Z=H.value,me=pe(Z,A,Gt.event);me&&m(A)},Q=function(A){var H=A.target,Z=A.key,me=H.selectionStart,xe=H.selectionEnd,le=H.value;le===void 0&&(le="");var se;if(Z==="ArrowLeft"||Z==="Backspace"?se=Math.max(me-1,0):Z==="ArrowRight"?se=Math.min(me+1,le.length):Z==="Delete"&&(se=me),se===void 0||me!==xe){h(A);return}var Ee=se;if(Z==="ArrowLeft"||Z==="ArrowRight"){var mt=Z==="ArrowLeft"?"left":"right";Ee=W(le,se,mt),Ee!==se&&A.preventDefault()}else Z==="Delete"&&!$(le[se])?Ee=W(le,se,"right"):Z==="Backspace"&&!$(le[se])&&(Ee=W(le,se,"left"));Ee!==se&&F(H,Ee,le),A.isUnitTestRun&&F(H,Ee,le),h(A)},te=function(A){var H=A.target,Z=function(){var me=H.selectionStart,xe=H.selectionEnd,le=H.value;if(le===void 0&&(le=""),me===xe){var se=W(le,me);se!==me&&F(H,se,le)}};Z(),requestAnimationFrame(function(){Z()}),p(A)},ne=function(A){A.persist&&A.persist();var H=A.target,Z=A.currentTarget;O.current=H,I.current.focusTimeout=setTimeout(function(){var me=H.selectionStart,xe=H.selectionEnd,le=H.value;le===void 0&&(le="");var se=W(le,me);se!==me&&!(me===0&&xe===le.length)&&F(H,se,le),v(Object.assign(Object.assign({},A),{currentTarget:Z}))},0)},ie=function(A){O.current=null,clearTimeout(I.current.focusTimeout),clearTimeout(I.current.setCaretTimeout),x(A)},oe=z&&lf()?"numeric":void 0,$e=Object.assign({inputMode:oe},E,{type:t,value:_,onChange:U,onKeyDown:Q,onMouseUp:te,onFocus:ne,onBlur:ie});if(n==="text")return o?i.createElement(i.Fragment,null,o(_,E)||null):i.createElement("span",Object.assign({},E,{ref:a}),_);if(r){var Ce=r;return i.createElement(Ce,Object.assign({},$e,{ref:a}))}return i.createElement("input",Object.assign({},$e,{ref:a}))}function qa(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;o===void 0&&(o="");var a=t.suffix;a===void 0&&(a="");var c=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s="thousand"),e===""||e==="-")return e;var l=Pn(t),d=l.thousandSeparator,f=l.decimalSeparator,u=n!==0&&e.indexOf(".")!==-1||n&&r,m=Sr(e,c),h=m.beforeDecimal,p=m.afterDecimal,v=m.addNegation;return n!==void 0&&(p=Ra(p,n,!!r)),d&&(h=of(h,d,s)),o&&(h=o+h),a&&(p=p+a),v&&(h="-"+h),e=h+(u&&f||"")+p,e}function Pn(e){var t=e.decimalSeparator;t===void 0&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function gf(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&t&&(e="-"+e),e}function bf(e,t){return new RegExp("(^-)|[0-9]|"+Wa(e),"g")}function wf(e,t,n){return e===""?!0:!t?.match(/\d/)&&!n?.match(/\d/)&&typeof e=="string"&&!isNaN(Number(e))}function xf(e,t,n){var r;t===void 0&&(t=df(e));var o=n.allowNegative,a=n.prefix;a===void 0&&(a="");var c=n.suffix;c===void 0&&(c="");var s=n.decimalScale,l=t.from,d=t.to,f=d.start,u=d.end,m=Pn(n),h=m.allowedDecimalSeparators,p=m.decimalSeparator,v=e[u]===p;if(Yt(e)&&(e===a||e===c)&&t.lastValue==="")return e;if(u-f===1&&h.indexOf(e[f])!==-1){var x=s===0?"":p;e=e.substring(0,f)+x+e.substring(f+1,e.length)}var g=function(I,N,S){var F=!1,W=!1;a.startsWith("-")?F=!1:I.startsWith("--")?(F=!1,W=!0):c.startsWith("-")&&I.length===c.length?F=!1:I[0]==="-"&&(F=!0);var X=F?1:0;return W&&(X=2),X&&(I=I.substring(X),N-=X,S-=X),{value:I,start:N,end:S,hasNegation:F}},w=g(e,f,u),$=w.hasNegation;r=w,e=r.value,f=r.start,u=r.end;var C=g(t.lastValue,l.start,l.end),E=C.start,M=C.end,k=C.value,_=e.substring(f,u);e.length&&k.length&&(E>k.length-c.length||M<a.length)&&!(_&&c.startsWith(_))&&(e=k);var B=0;e.startsWith(a)?B+=a.length:f<a.length&&(B=f),e=e.substring(B),u-=B;var K=e.length,D=e.length-c.length;e.endsWith(c)?K=D:(u>D||u>e.length-c.length)&&(K=u),e=e.substring(0,K),e=gf($?"-"+e:e,o),e=(e.match(bf(p))||[]).join("");var P=e.indexOf(p);e=e.replace(new RegExp(Wa(p),"g"),function(I,N){return N===P?".":""});var G=Sr(e,o),z=G.beforeDecimal,R=G.afterDecimal,O=G.addNegation;return d.end-d.start<l.end-l.start&&z===""&&v&&!parseFloat(R)&&(e=O?"-":""),e}function yf(e,t){var n=t.prefix;n===void 0&&(n="");var r=t.suffix;r===void 0&&(r="");var o=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]==="-";o.fill(!1,0,n.length+(a?1:0));var c=e.length;return o.fill(!1,c-r.length+1,c+1),o}function $f(e){var t=Pn(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;o===void 0&&(o="");var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw new Error(`
165
+ `)},fu=0,Nt=[];function pu(e){var t=L.useRef([]),n=L.useRef([0,0]),r=L.useRef(),o=L.useState(fu++)[0],a=L.useState(function(){return pa()})[0],c=L.useRef(e);L.useEffect(function(){c.current=e},[e]),L.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=Od([e.lockRef.current],(e.shards||[]).map(xa),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=L.useCallback(function(v,x){if("touches"in v&&v.touches.length===2)return!c.current.allowPinchZoom;var g=En(v),w=n.current,$="deltaX"in v?v.deltaX:w[0]-g[0],C="deltaY"in v?v.deltaY:w[1]-g[1],E,O=v.target,k=Math.abs($)>Math.abs(C)?"h":"v";if("touches"in v&&k==="h"&&O.type==="range")return!1;var _=va(k,O);if(!_)return!0;if(_?E=k:(E=k==="v"?"h":"v",_=va(k,O)),!_)return!1;if(!r.current&&"changedTouches"in v&&($||C)&&(r.current=E),!E)return!0;var B=r.current||E;return lu(B,x,v,B==="h"?$:C,!0)},[]),l=L.useCallback(function(v){var x=v;if(!(!Nt.length||Nt[Nt.length-1]!==a)){var g="deltaY"in x?wa(x):En(x),w=t.current.filter(function(E){return E.name===x.type&&E.target===x.target&&du(E.delta,g)})[0];if(w&&w.should){x.cancelable&&x.preventDefault();return}if(!w){var $=(c.current.shards||[]).map(xa).filter(Boolean).filter(function(E){return E.contains(x.target)}),C=$.length>0?s(x,$[0]):!c.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),d=L.useCallback(function(v,x,g,w){var $={name:v,delta:x,target:g,should:w};t.current.push($),setTimeout(function(){t.current=t.current.filter(function(C){return C!==$})},1)},[]),f=L.useCallback(function(v){n.current=En(v),r.current=void 0},[]),u=L.useCallback(function(v){d(v.type,wa(v),v.target,s(v,e.lockRef.current))},[]),m=L.useCallback(function(v){d(v.type,En(v),v.target,s(v,e.lockRef.current))},[]);L.useEffect(function(){return Nt.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Pt),document.addEventListener("touchmove",l,Pt),document.addEventListener("touchstart",f,Pt),function(){Nt=Nt.filter(function(v){return v!==a}),document.removeEventListener("wheel",l,Pt),document.removeEventListener("touchmove",l,Pt),document.removeEventListener("touchstart",f,Pt)}},[]);var h=e.removeScrollBar,p=e.inert;return L.createElement(L.Fragment,null,p?L.createElement(a,{styles:uu(o)}):null,h?L.createElement(nu,{gapMode:"margin"}):null)}const mu=Rd(fa,pu);var wr=L.forwardRef(function(e,t){return L.createElement($n,ot({},e,{ref:t,sideCar:mu}))});wr.classNames=$n.classNames;const hu=[" ","Enter","ArrowUp","ArrowDown"],vu=[" ","Enter"],Sn="Select",[_n,Tn,gu]=lr(Sn),[It,eh]=ct(Sn,[gu,St]),xr=St(),[bu,lt]=It(Sn),[wu,xu]=It(Sn),yu=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:c,defaultValue:s,onValueChange:l,dir:d,name:f,autoComplete:u,disabled:m,required:h}=e,p=xr(t),[v,x]=i.useState(null),[g,w]=i.useState(null),[$,C]=i.useState(!1),E=dr(d),[O=!1,k]=Ht({prop:r,defaultProp:o,onChange:a}),[_,B]=Ht({prop:c,defaultProp:s,onChange:l}),K=i.useRef(null),D=v?!!v.closest("form"):!0,[P,G]=i.useState(new Set),z=Array.from(P).map(R=>R.props.value).join(";");return i.createElement(nr,p,i.createElement(bu,{required:h,scope:t,trigger:v,onTriggerChange:x,valueNode:g,onValueNodeChange:w,valueNodeHasChildren:$,onValueNodeHasChildrenChange:C,contentId:wt(),value:_,onValueChange:B,open:O,onOpenChange:k,dir:E,triggerPointerDownPosRef:K,disabled:m},i.createElement(_n.Provider,{scope:t},i.createElement(wu,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(R=>{G(M=>new Set(M).add(R))},[]),onNativeOptionRemove:i.useCallback(R=>{G(M=>{const I=new Set(M);return I.delete(R),I})},[])},n)),D?i.createElement(Pa,{key:z,"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:u,value:_,onChange:R=>B(R.target.value),disabled:m},_===void 0?i.createElement("option",{value:""}):null,Array.from(P)):null))},$u="SelectTrigger",Cu=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=xr(n),c=lt($u,n),s=c.disabled||r,l=ve(t,c.onTriggerChange),d=Tn(n),[f,u,m]=Na(p=>{const v=d().filter(w=>!w.disabled),x=v.find(w=>w.value===c.value),g=Ia(v,p,x);g!==void 0&&c.onValueChange(g.value)}),h=()=>{s||(c.onOpenChange(!0),m())};return i.createElement(rr,j({asChild:!0},a),i.createElement(fe.button,j({type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":ka(c.value)?"":void 0},o,{ref:l,onClick:Y(o.onClick,p=>{p.currentTarget.focus()}),onPointerDown:Y(o.onPointerDown,p=>{const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&(h(),c.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)},p.preventDefault())}),onKeyDown:Y(o.onKeyDown,p=>{const v=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&u(p.key),!(v&&p.key===" ")&&hu.includes(p.key)&&(h(),p.preventDefault())})})))}),Eu="SelectValue",Su=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:c="",...s}=e,l=lt(Eu,n),{onValueNodeHasChildrenChange:d}=l,f=a!==void 0,u=ve(t,l.onValueNodeChange);return Te(()=>{d(f)},[d,f]),i.createElement(fe.span,j({},s,{ref:u,style:{pointerEvents:"none"}}),ka(l.value)?i.createElement(i.Fragment,null,c):a)}),_u=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return i.createElement(fe.span,j({"aria-hidden":!0},o,{ref:t}),r||"▼")}),Tu=e=>i.createElement(Yo,j({asChild:!0},e)),Mt="SelectContent",ku=i.forwardRef((e,t)=>{const n=lt(Mt,e.__scopeSelect),[r,o]=i.useState();if(Te(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?vt.createPortal(i.createElement(ya,{scope:e.__scopeSelect},i.createElement(_n.Slot,{scope:e.__scopeSelect},i.createElement("div",null,e.children))),a):null}return i.createElement(Pu,j({},e,{ref:t}))}),He=10,[ya,dt]=It(Mt),Pu=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:c,side:s,sideOffset:l,align:d,alignOffset:f,arrowPadding:u,collisionBoundary:m,collisionPadding:h,sticky:p,hideWhenDetached:v,avoidCollisions:x,...g}=e,w=lt(Mt,n),[$,C]=i.useState(null),[E,O]=i.useState(null),k=ve(t,U=>C(U)),[_,B]=i.useState(null),[K,D]=i.useState(null),P=Tn(n),[G,z]=i.useState(!1),R=i.useRef(!1);i.useEffect(()=>{if($)return la($)},[$]),ea();const M=i.useCallback(U=>{const[Q,...te]=P().map(oe=>oe.ref.current),[ne]=te.slice(-1),ie=document.activeElement;for(const oe of U)if(oe===ie||(oe?.scrollIntoView({block:"nearest"}),oe===Q&&E&&(E.scrollTop=0),oe===ne&&E&&(E.scrollTop=E.scrollHeight),oe?.focus(),document.activeElement!==ie))return},[P,E]),I=i.useCallback(()=>M([_,$]),[M,_,$]);i.useEffect(()=>{G&&I()},[G,I]);const{onOpenChange:N,triggerPointerDownPosRef:S}=w;i.useEffect(()=>{if($){let U={x:0,y:0};const Q=ne=>{var ie,oe,$e,Ce;U={x:Math.abs(Math.round(ne.pageX)-((ie=(oe=S.current)===null||oe===void 0?void 0:oe.x)!==null&&ie!==void 0?ie:0)),y:Math.abs(Math.round(ne.pageY)-(($e=(Ce=S.current)===null||Ce===void 0?void 0:Ce.y)!==null&&$e!==void 0?$e:0))}},te=ne=>{U.x<=10&&U.y<=10?ne.preventDefault():$.contains(ne.target)||N(!1),document.removeEventListener("pointermove",Q),S.current=null};return S.current!==null&&(document.addEventListener("pointermove",Q),document.addEventListener("pointerup",te,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Q),document.removeEventListener("pointerup",te,{capture:!0})}}},[$,N,S]),i.useEffect(()=>{const U=()=>N(!1);return window.addEventListener("blur",U),window.addEventListener("resize",U),()=>{window.removeEventListener("blur",U),window.removeEventListener("resize",U)}},[N]);const[F,W]=Na(U=>{const Q=P().filter(ie=>!ie.disabled),te=Q.find(ie=>ie.ref.current===document.activeElement),ne=Ia(Q,U,te);ne&&setTimeout(()=>ne.ref.current.focus())}),X=i.useCallback((U,Q,te)=>{const ne=!R.current&&!te;(w.value!==void 0&&w.value===Q||ne)&&(B(U),ne&&(R.current=!0))},[w.value]),ae=i.useCallback(()=>$?.focus(),[$]),be=i.useCallback((U,Q,te)=>{const ne=!R.current&&!te;(w.value!==void 0&&w.value===Q||ne)&&D(U)},[w.value]),ge=r==="popper"?$a:Nu,pe=ge===$a?{side:s,sideOffset:l,align:d,alignOffset:f,arrowPadding:u,collisionBoundary:m,collisionPadding:h,sticky:p,hideWhenDetached:v,avoidCollisions:x}:{};return i.createElement(ya,{scope:n,content:$,viewport:E,onViewportChange:O,itemRefCallback:X,selectedItem:_,onItemLeave:ae,itemTextRefCallback:be,focusSelectedItem:I,selectedItemText:K,position:r,isPositioned:G,searchRef:F},i.createElement(wr,{as:bt,allowPinchZoom:!0},i.createElement(ra,{asChild:!0,trapped:w.open,onMountAutoFocus:U=>{U.preventDefault()},onUnmountAutoFocus:Y(o,U=>{var Q;(Q=w.trigger)===null||Q===void 0||Q.focus({preventScroll:!0}),U.preventDefault()})},i.createElement(Un,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:U=>U.preventDefault(),onDismiss:()=>w.onOpenChange(!1)},i.createElement(ge,j({role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:U=>U.preventDefault()},g,pe,{onPlaced:()=>z(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:Y(g.onKeyDown,U=>{const Q=U.ctrlKey||U.altKey||U.metaKey;if(U.key==="Tab"&&U.preventDefault(),!Q&&U.key.length===1&&W(U.key),["ArrowUp","ArrowDown","Home","End"].includes(U.key)){let ne=P().filter(ie=>!ie.disabled).map(ie=>ie.ref.current);if(["ArrowUp","End"].includes(U.key)&&(ne=ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(U.key)){const ie=U.target,oe=ne.indexOf(ie);ne=ne.slice(oe+1)}setTimeout(()=>M(ne)),U.preventDefault()}})}))))))}),Nu=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=lt(Mt,n),c=dt(Mt,n),[s,l]=i.useState(null),[d,f]=i.useState(null),u=ve(t,k=>f(k)),m=Tn(n),h=i.useRef(!1),p=i.useRef(!0),{viewport:v,selectedItem:x,selectedItemText:g,focusSelectedItem:w}=c,$=i.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&d&&v&&x&&g){const k=a.trigger.getBoundingClientRect(),_=d.getBoundingClientRect(),B=a.valueNode.getBoundingClientRect(),K=g.getBoundingClientRect();if(a.dir!=="rtl"){const ie=K.left-_.left,oe=B.left-ie,$e=k.left-oe,Ce=k.width+$e,A=Math.max(Ce,_.width),H=window.innerWidth-He,Z=Qo(oe,[He,H-A]);s.style.minWidth=Ce+"px",s.style.left=Z+"px"}else{const ie=_.right-K.right,oe=window.innerWidth-B.right-ie,$e=window.innerWidth-k.right-oe,Ce=k.width+$e,A=Math.max(Ce,_.width),H=window.innerWidth-He,Z=Qo(oe,[He,H-A]);s.style.minWidth=Ce+"px",s.style.right=Z+"px"}const D=m(),P=window.innerHeight-He*2,G=v.scrollHeight,z=window.getComputedStyle(d),R=parseInt(z.borderTopWidth,10),M=parseInt(z.paddingTop,10),I=parseInt(z.borderBottomWidth,10),N=parseInt(z.paddingBottom,10),S=R+M+G+N+I,F=Math.min(x.offsetHeight*5,S),W=window.getComputedStyle(v),X=parseInt(W.paddingTop,10),ae=parseInt(W.paddingBottom,10),be=k.top+k.height/2-He,ge=P-be,pe=x.offsetHeight/2,U=x.offsetTop+pe,Q=R+M+U,te=S-Q;if(Q<=be){const ie=x===D[D.length-1].ref.current;s.style.bottom="0px";const oe=d.clientHeight-v.offsetTop-v.offsetHeight,$e=Math.max(ge,pe+(ie?ae:0)+oe+I),Ce=Q+$e;s.style.height=Ce+"px"}else{const ie=x===D[0].ref.current;s.style.top="0px";const $e=Math.max(be,R+v.offsetTop+(ie?X:0)+pe)+te;s.style.height=$e+"px",v.scrollTop=Q-be+v.offsetTop}s.style.margin=`${He}px 0`,s.style.minHeight=F+"px",s.style.maxHeight=P+"px",r?.(),requestAnimationFrame(()=>h.current=!0)}},[m,a.trigger,a.valueNode,s,d,v,x,g,a.dir,r]);Te(()=>$(),[$]);const[C,E]=i.useState();Te(()=>{d&&E(window.getComputedStyle(d).zIndex)},[d]);const O=i.useCallback(k=>{k&&p.current===!0&&($(),w?.(),p.current=!1)},[$,w]);return i.createElement(Iu,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:O},i.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C}},i.createElement(fe.div,j({},o,{ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))}),$a=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=He,...a}=e,c=xr(n);return i.createElement(or,j({},c,a,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[Iu,yr]=It(Mt,{}),Ca="SelectViewport",Mu=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=dt(Ca,n),a=yr(Ca,n),c=ve(t,o.onViewportChange),s=i.useRef(0);return i.createElement(i.Fragment,null,i.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),i.createElement(_n.Slot,{scope:n},i.createElement(fe.div,j({"data-radix-select-viewport":"",role:"presentation"},r,{ref:c,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:Y(r.onScroll,l=>{const d=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:u}=a;if(u!=null&&u.current&&f){const m=Math.abs(s.current-d.scrollTop);if(m>0){const h=window.innerHeight-He*2,p=parseFloat(f.style.minHeight),v=parseFloat(f.style.height),x=Math.max(p,v);if(x<h){const g=x+m,w=Math.min(h,g),$=g-w;f.style.height=w+"px",f.style.bottom==="0px"&&(d.scrollTop=$>0?$:0,f.style.justifyContent="flex-end")}}}s.current=d.scrollTop})}))))}),Ou="SelectGroup",[th,Du]=It(Ou),Au="SelectLabel",ju=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Du(Au,n);return i.createElement(fe.div,j({id:o.id},r,{ref:t}))}),$r="SelectItem",[Lu,Ea]=It($r),Fu=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...c}=e,s=lt($r,n),l=dt($r,n),d=s.value===r,[f,u]=i.useState(a??""),[m,h]=i.useState(!1),p=ve(t,g=>{var w;return(w=l.itemRefCallback)===null||w===void 0?void 0:w.call(l,g,r,o)}),v=wt(),x=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return i.createElement(Lu,{scope:n,value:r,disabled:o,textId:v,isSelected:d,onItemTextChange:i.useCallback(g=>{u(w=>{var $;return w||(($=g?.textContent)!==null&&$!==void 0?$:"").trim()})},[])},i.createElement(_n.ItemSlot,{scope:n,value:r,disabled:o,textValue:f},i.createElement(fe.div,j({role:"option","aria-labelledby":v,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},c,{ref:p,onFocus:Y(c.onFocus,()=>h(!0)),onBlur:Y(c.onBlur,()=>h(!1)),onPointerUp:Y(c.onPointerUp,x),onPointerMove:Y(c.onPointerMove,g=>{if(o){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}else g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Y(c.onPointerLeave,g=>{if(g.currentTarget===document.activeElement){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}}),onKeyDown:Y(c.onKeyDown,g=>{var w;((w=l.searchRef)===null||w===void 0?void 0:w.current)!==""&&g.key===" "||(vu.includes(g.key)&&x(),g.key===" "&&g.preventDefault())})}))))}),kn="SelectItemText",Vu=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,c=lt(kn,n),s=dt(kn,n),l=Ea(kn,n),d=xu(kn,n),[f,u]=i.useState(null),m=ve(t,g=>u(g),l.onItemTextChange,g=>{var w;return(w=s.itemTextRefCallback)===null||w===void 0?void 0:w.call(s,g,l.value,l.disabled)}),h=f?.textContent,p=i.useMemo(()=>i.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},h),[l.disabled,l.value,h]),{onNativeOptionAdd:v,onNativeOptionRemove:x}=d;return Te(()=>(v(p),()=>x(p)),[v,x,p]),i.createElement(i.Fragment,null,i.createElement(fe.span,j({id:l.textId},a,{ref:m})),l.isSelected&&c.valueNode&&!c.valueNodeHasChildren?vt.createPortal(a.children,c.valueNode):null)}),Bu="SelectItemIndicator",zu=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Ea(Bu,n).isSelected?i.createElement(fe.span,j({"aria-hidden":!0},r,{ref:t})):null}),Sa="SelectScrollUpButton",Wu=i.forwardRef((e,t)=>{const n=dt(Sa,e.__scopeSelect),r=yr(Sa,e.__scopeSelect),[o,a]=i.useState(!1),c=ve(t,r.onScrollButtonChange);return Te(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=s.scrollTop>0;a(d)};const s=n.viewport;return l(),s.addEventListener("scroll",l),()=>s.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?i.createElement(Ta,j({},e,{ref:c,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}})):null}),_a="SelectScrollDownButton",Ru=i.forwardRef((e,t)=>{const n=dt(_a,e.__scopeSelect),r=yr(_a,e.__scopeSelect),[o,a]=i.useState(!1),c=ve(t,r.onScrollButtonChange);return Te(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=s.scrollHeight-s.clientHeight,f=Math.ceil(s.scrollTop)<d;a(f)};const s=n.viewport;return l(),s.addEventListener("scroll",l),()=>s.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?i.createElement(Ta,j({},e,{ref:c,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}})):null}),Ta=i.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=dt("SelectScrollButton",n),c=i.useRef(null),s=Tn(n),l=i.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return i.useEffect(()=>()=>l(),[l]),Te(()=>{var d;const f=s().find(u=>u.ref.current===document.activeElement);f==null||(d=f.ref.current)===null||d===void 0||d.scrollIntoView({block:"nearest"})},[s]),i.createElement(fe.div,j({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:Y(o.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(r,50))}),onPointerMove:Y(o.onPointerMove,()=>{var d;(d=a.onItemLeave)===null||d===void 0||d.call(a),c.current===null&&(c.current=window.setInterval(r,50))}),onPointerLeave:Y(o.onPointerLeave,()=>{l()})}))}),Hu=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return i.createElement(fe.div,j({"aria-hidden":!0},r,{ref:t}))});function ka(e){return e===""||e===void 0}const Pa=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=i.useRef(null),a=ve(t,o),c=kd(n);return i.useEffect(()=>{const s=o.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(c!==n&&f){const u=new Event("change",{bubbles:!0});f.call(s,n),s.dispatchEvent(u)}},[c,n]),i.createElement(Xo,{asChild:!0},i.createElement("select",j({},r,{ref:a,defaultValue:n})))});Pa.displayName="BubbleSelect";function Na(e){const t=Oe(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(c=>{const s=n.current+c;t(s),function l(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),a=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function Ia(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let c=Uu(e,Math.max(a,0));o.length===1&&(c=c.filter(d=>d!==n));const l=c.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Uu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Ku=yu,Ma=Cu,Gu=Su,Yu=_u,Xu=Tu,Oa=ku,qu=Mu,Da=ju,Aa=Fu,Zu=Vu,Ju=zu,ja=Wu,La=Ru,Fa=Hu,Va=Ku,Ba=Gu,Cr=L.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(Ma,{ref:r,className:ee("cp-flex cp-h-9 cp-w-full cp-items-center cp-justify-between cp-whitespace-nowrap cp-rounded-md cp-border cp-border-input cp-bg-transparent cp-py-2 cp-pr-px cp-pl-3 cp-text-sm cp-shadow-sm cp-ring-offset-background [&>span]:cp-line-clamp-1 disabled:cp-cursor-not-allowed placeholder:cp-text-muted-foreground disabled:cp-opacity-50 focus:cp-outline-none focus:cp-ring-1 focus:cp-ring-ring",e),...n,children:[t,y.jsx(Yu,{asChild:!0,children:y.jsx(Wn,{className:"cp-h-4 cp-w-4 cp-opacity-50"})})]}));Cr.displayName=Ma.displayName;const za=L.forwardRef(({className:e,...t},n)=>y.jsx(ja,{ref:n,className:ee("cp-flex cp-cursor-default cp-items-center cp-justify-center cp-py-1",e),...t,children:y.jsx(ns,{})}));za.displayName=ja.displayName;const Wa=L.forwardRef(({className:e,...t},n)=>y.jsx(La,{ref:n,className:ee("cp-flex cp-cursor-default cp-items-center cp-justify-center cp-py-1",e),...t,children:y.jsx(Jc,{})}));Wa.displayName=La.displayName;const Er=L.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>y.jsx(Xu,{children:y.jsxs(Oa,{ref:o,className:ee("data-[state=closed]:cp-fade-out-0 data-[state=open]:cp-fade-in-0 data-[state=closed]:cp-zoom-out-95 data-[state=open]:cp-zoom-in-95 data-[side=bottom]:cp-slide-in-from-top-2 data-[side=left]:cp-slide-in-from-right-2 data-[side=right]:cp-slide-in-from-left-2 data-[side=top]:cp-slide-in-from-bottom-2 cp-relative cp-z-50 cp-max-h-96 cp-min-w-[8rem] cp-overflow-hidden cp-rounded-md cp-border cp-bg-popover cp-text-popover-foreground cp-shadow-md data-[state=closed]:cp-animate-out data-[state=open]:cp-animate-in",n==="popper"&&"data-[side=left]:-cp-translate-x-1 data-[side=top]:-cp-translate-y-1 data-[side=right]:cp-translate-x-1 data-[side=bottom]:cp-translate-y-1",e),position:n,...r,children:[y.jsx(za,{}),y.jsx(qu,{className:ee("cp-p-1",n==="popper"&&"cp-h-[var(--radix-select-trigger-height)] cp-w-full cp-min-w-[var(--radix-select-trigger-width)]"),children:t}),y.jsx(Wa,{})]})}));Er.displayName=Oa.displayName;const Qu=L.forwardRef(({className:e,...t},n)=>y.jsx(Da,{ref:n,className:ee("cp-px-2 cp-py-1.5 cp-font-semibold cp-text-sm",e),...t}));Qu.displayName=Da.displayName;const Pn=L.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(Aa,{ref:r,className:ee("cp-relative cp-flex cp-w-full cp-cursor-default cp-select-none cp-items-center cp-rounded-sm cp-py-1.5 cp-pr-8 cp-pl-2 cp-text-sm cp-outline-none data-[disabled]:cp-pointer-events-none focus:cp-bg-accent focus:cp-text-accent-foreground data-[disabled]:cp-opacity-50",e),...n,children:[y.jsx("span",{className:"cp-absolute cp-right-2 cp-flex cp-h-3.5 cp-w-3.5 cp-items-center cp-justify-center",children:y.jsx(Ju,{children:y.jsx(mo,{className:"cp-h-4 cp-w-4"})})}),y.jsx(Zu,{children:t})]}));Pn.displayName=Aa.displayName;const ef=L.forwardRef(({className:e,...t},n)=>y.jsx(Fa,{ref:n,className:ee("-cp-mx-1 cp-my-1 cp-h-px cp-bg-muted",e),...t}));ef.displayName=Fa.displayName;function tf(e){const{mode:t,value:n,onChange:r,onPaste:o,setMode:a,column:c,coordinates:s}=e,[l,d]=uo(!0),f=i.useCallback(h=>{h.preventDefault(),o?.()},[o]),u=i.useCallback(()=>{l||(a?.("view"),d(!1))},[a,d,l]),m=i.useCallback(h=>{r?.({data:h}),u()},[r,u]);return y.jsxs(Va,{value:n,open:l,onOpenChange:d,onValueChange:m,children:[y.jsx(Cr,{onBlur:u,onPaste:f,className:ee("cp-h-full cp-w-full cp-rounded-none cp-border-none cp-pl-1 cp-text-sm cp-outline-none focus:cp-ring-0"),autoFocus:!0,"data-cypress":`table-cell-boolean-${c.id}-${s.row}`,"aria-readonly":t==="readonly",children:y.jsx(Ba,{placeholder:"Selecionar"})}),y.jsxs(Er,{onBlur:u,children:[y.jsx(Pn,{className:"cp-text-sm",value:"true","data-cypress":`table-cell-boolean-${c.id}-${s.row}-true`,children:"Sim"}),y.jsx(Pn,{className:"cp-text-sm",value:"false","data-cypress":`table-cell-boolean-${c.id}-${s.row}-false`,children:"Não"})]})]})}function nf(e){const{value:t,column:n,coordinates:r,mode:o}=e,c=t===""?"Selecionar":t==="true"?"Sim":"Não";return y.jsxs("div",{className:"cp-flex cp-h-full cp-w-full cp-items-center cp-justify-between cp-pr-px cp-pl-1","aria-readonly":o==="readonly","data-cypress":`table-cell-select-${n.id}-${r.row}`,children:[y.jsx("p",{className:"cp-line-clamp-1 cp-text-sm",children:c}),y.jsx(Wn,{className:"cp-h-4 cp-w-4 cp-opacity-50"})]})}function rf(e){const{mode:t,value:n,onBlur:r,onChange:o,onPaste:a,column:c,coordinates:s}=e,l=i.useCallback(d=>{d.preventDefault(),a?.()},[a]);return y.jsx("input",{type:"date",onBlur:r,onPaste:l,value:n,onChange:d=>o?.({data:d.target.value}),className:ee("cp-h-full cp-w-full cp-bg-transparent cp-pl-1 cp-text-sm cp-outline-none"),"data-cypress":`table-cell-date-${c.id}-${s.row}`,"aria-readonly":t==="readonly"})}function of(e){const{value:t,column:n,coordinates:r,mode:o}=e,a=t||"dd/mm/yyyy";return y.jsx("div",{className:"cp-flex cp-h-full cp-w-full cp-items-center","data-cypress":`table-cell-date-${n.id}-${r.row}`,"aria-readonly":o==="readonly",children:y.jsx("p",{className:"cp-line-clamp-1 cp-pl-1 cp-text-sm",children:a})})}function af(e){const[t,n]=i.useState(!1);return i.useEffect(()=>{const r=e.current;let o=!1;r&&(r.contains(document.activeElement)&&document.activeElement instanceof HTMLInputElement?o=!0:o=!1),n(o)},[e.current]),t}function Sr(e){const t=af(e);i.useEffect(()=>{t&&e.current?.select()},[t,e.current])}function Ra(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var Gt;(function(e){e.event="event",e.props="prop"})(Gt||(Gt={}));function at(){}function cf(e){var t,n=void 0;return function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];return t&&r.length===t.length&&r.every(function(a,c){return a===t[c]})||(t=r,n=e.apply(void 0,r)),n}}function Yt(e){return!!(e||"").match(/\d/)}function Ot(e){return e==null}function sf(e){return typeof e=="number"&&isNaN(e)}function Ha(e){return Ot(e)||sf(e)||typeof e=="number"&&!isFinite(e)}function Ua(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function lf(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function df(e,t,n){var r=lf(n),o=e.search(/[1-9]/);return o=o===-1?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}function uf(e){var t=i.useRef(e);t.current=e;var n=i.useRef(function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];return t.current.apply(t,r)});return n.current}function _r(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var o=e.split("."),a=o[0],c=o[1]||"";return{beforeDecimal:a,afterDecimal:c,hasNegation:n,addNegation:r}}function ff(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}function Ka(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function Ga(e,t){return Array(t+1).join(e)}function Ya(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],a=r[1];if(a=Number(a),!a)return n+o;o=o.replace(".","");var c=1+a,s=o.length;return c<0?o="0."+Ga("0",Math.abs(c))+o:c>=s?o=o+Ga("0",c-s):o=(o.substring(0,c)||"0")+"."+o.substring(c),n+o}function Xa(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,o=_r(e),a=o.beforeDecimal,c=o.afterDecimal,s=o.hasNegation,l=parseFloat("0."+(c||"0")),d=c.length<=t?"0."+c:l.toFixed(t),f=d.split("."),u=a;a&&Number(f[0])&&(u=a.split("").reverse().reduce(function(v,x,g){return v.length>g?(Number(v[0])+Number(x)).toString()+v.substring(1,v.length):x+v},f[0]));var m=Ka(f[1]||"",t,n),h=s?"-":"",p=r?".":"";return""+h+u+p+m}function ut(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var qa=cf(function(e,t){for(var n=0,r=0,o=e.length,a=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[a-1-r]&&a-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:a-r}}});function pf(e,t,n){return Math.min(Math.max(e,t),n)}function Tr(e){return Math.max(e.selectionStart,e.selectionEnd)}function mf(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function hf(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function vf(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function gf(e,t,n,r,o,a,c){c===void 0&&(c=vf);var s=o.findIndex(function(C){return C}),l=e.slice(0,s);!t&&!n.startsWith(l)&&(t=l,n=l+n,r=r+l.length);for(var d=n.length,f=e.length,u={},m=new Array(d),h=0;h<d;h++){m[h]=-1;for(var p=0,v=f;p<v;p++){var x=c({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:h,formattedValueIndex:p});if(x&&u[p]!==!0){m[h]=p,u[p]=!0;break}}}for(var g=r;g<d&&(m[g]===-1||!a(n[g]));)g++;var w=g===d||m[g]===-1?f:m[g];for(g=r-1;g>0&&m[g]===-1;)g--;var $=g===-1||m[g]===-1?0:m[g]+1;return $>w?w:r-$<w-r?$:w}function Za(e,t,n,r){var o=e.length;if(t=pf(t,0,o),r==="left"){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=o&&!n[t];)t++;t>o&&(t=n.lastIndexOf(!0))}return t===-1&&(t=o),t}function bf(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Yt(e[n])||Yt(e[n-1]));return t}function Ja(e,t,n,r,o,a){a===void 0&&(a=at);var c=uf(function(p,v){var x,g;return Ha(p)?(g="",x=""):typeof p=="number"||v?(g=typeof p=="number"?Ya(p):p,x=r(g)):(g=o(p,void 0),x=r(g)),{formattedValue:x,numAsString:g}}),s=i.useState(function(){return c(Ot(e)?t:e,n)}),l=s[0],d=s[1],f=function(p,v){p.formattedValue!==l.formattedValue&&d({formattedValue:p.formattedValue,numAsString:p.value}),a(p,v)},u=e,m=n;Ot(e)&&(u=l.numAsString,m=!0);var h=c(u,m);return i.useMemo(function(){d(h)},[h.formattedValue]),[l,f]}function wf(e){return e.replace(/[^0-9]/g,"")}function xf(e){return e}function yf(e){var t=e.type;t===void 0&&(t="text");var n=e.displayType;n===void 0&&(n="input");var r=e.customInput,o=e.renderText,a=e.getInputRef,c=e.format;c===void 0&&(c=xf);var s=e.removeFormatting;s===void 0&&(s=wf);var l=e.defaultValue,d=e.valueIsNumericString,f=e.onValueChange,u=e.isAllowed,m=e.onChange;m===void 0&&(m=at);var h=e.onKeyDown;h===void 0&&(h=at);var p=e.onMouseUp;p===void 0&&(p=at);var v=e.onFocus;v===void 0&&(v=at);var x=e.onBlur;x===void 0&&(x=at);var g=e.value,w=e.getCaretBoundary;w===void 0&&(w=bf);var $=e.isValidInputCharacter;$===void 0&&($=Yt);var C=e.isCharacterSame,E=Ra(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),O=Ja(g,l,!!d,c,s,f),k=O[0],_=k.formattedValue,B=k.numAsString,K=O[1],D=i.useRef({formattedValue:_,numAsString:B}),P=function(A,H){D.current={formattedValue:A.formattedValue,numAsString:A.value},K(A,H)},G=i.useState(!1),z=G[0],R=G[1],M=i.useRef(null),I=i.useRef({setCaretTimeout:null,focusTimeout:null});i.useEffect(function(){return R(!0),function(){clearTimeout(I.current.setCaretTimeout),clearTimeout(I.current.focusTimeout)}},[]);var N=c,S=function(A,H){var Z=parseFloat(H);return{formattedValue:A,value:H,floatValue:isNaN(Z)?void 0:Z}},F=function(A,H,Z){A.selectionStart===0&&A.selectionEnd===A.value.length||(ut(A,H),I.current.setCaretTimeout=setTimeout(function(){A.value===Z&&A.selectionStart!==H&&ut(A,H)},0))},W=function(A,H,Z){return Za(A,H,w(A),Z)},X=function(A,H,Z){var me=w(H),xe=gf(H,_,A,Z,me,$,C);return xe=Za(H,xe,me),xe},ae=function(A){var H=A.formattedValue;H===void 0&&(H="");var Z=A.input,me=A.source,xe=A.event,le=A.numAsString,se;if(Z){var Ee=A.inputValue||Z.value,mt=Tr(Z);Z.value=H,se=X(Ee,H,mt),se!==void 0&&F(Z,se,H)}H!==_&&P(S(H,le),{event:xe,source:me})};i.useEffect(function(){var A=D.current,H=A.formattedValue,Z=A.numAsString;_!==H&&(_!==B||H!==Z)&&P(S(_,B),{event:void 0,source:Gt.props})},[_,B]);var be=M.current?Tr(M.current):void 0,ge=typeof window<"u"?i.useLayoutEffect:i.useEffect;ge(function(){var A=M.current;if(_!==D.current.formattedValue&&A){var H=X(D.current.formattedValue,_,be);A.value=_,F(A,H,_)}},[_]);var pe=function(A,H,Z){var me=qa(_,A),xe=Object.assign(Object.assign({},me),{lastValue:_}),le=s(A,xe),se=N(le);if(le=s(se,void 0),u&&!u(S(se,le))){var Ee=H.target,mt=Tr(Ee),Fr=X(A,_,mt);return Ee.value=_,F(Ee,Fr,_),!1}return ae({formattedValue:se,numAsString:le,inputValue:A,event:H,source:Z,input:H.target}),!0},U=function(A){var H=A.target,Z=H.value,me=pe(Z,A,Gt.event);me&&m(A)},Q=function(A){var H=A.target,Z=A.key,me=H.selectionStart,xe=H.selectionEnd,le=H.value;le===void 0&&(le="");var se;if(Z==="ArrowLeft"||Z==="Backspace"?se=Math.max(me-1,0):Z==="ArrowRight"?se=Math.min(me+1,le.length):Z==="Delete"&&(se=me),se===void 0||me!==xe){h(A);return}var Ee=se;if(Z==="ArrowLeft"||Z==="ArrowRight"){var mt=Z==="ArrowLeft"?"left":"right";Ee=W(le,se,mt),Ee!==se&&A.preventDefault()}else Z==="Delete"&&!$(le[se])?Ee=W(le,se,"right"):Z==="Backspace"&&!$(le[se])&&(Ee=W(le,se,"left"));Ee!==se&&F(H,Ee,le),A.isUnitTestRun&&F(H,Ee,le),h(A)},te=function(A){var H=A.target,Z=function(){var me=H.selectionStart,xe=H.selectionEnd,le=H.value;if(le===void 0&&(le=""),me===xe){var se=W(le,me);se!==me&&F(H,se,le)}};Z(),requestAnimationFrame(function(){Z()}),p(A)},ne=function(A){A.persist&&A.persist();var H=A.target,Z=A.currentTarget;M.current=H,I.current.focusTimeout=setTimeout(function(){var me=H.selectionStart,xe=H.selectionEnd,le=H.value;le===void 0&&(le="");var se=W(le,me);se!==me&&!(me===0&&xe===le.length)&&F(H,se,le),v(Object.assign(Object.assign({},A),{currentTarget:Z}))},0)},ie=function(A){M.current=null,clearTimeout(I.current.focusTimeout),clearTimeout(I.current.setCaretTimeout),x(A)},oe=z&&mf()?"numeric":void 0,$e=Object.assign({inputMode:oe},E,{type:t,value:_,onChange:U,onKeyDown:Q,onMouseUp:te,onFocus:ne,onBlur:ie});if(n==="text")return o?i.createElement(i.Fragment,null,o(_,E)||null):i.createElement("span",Object.assign({},E,{ref:a}),_);if(r){var Ce=r;return i.createElement(Ce,Object.assign({},$e,{ref:a}))}return i.createElement("input",Object.assign({},$e,{ref:a}))}function Qa(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;o===void 0&&(o="");var a=t.suffix;a===void 0&&(a="");var c=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s="thousand"),e===""||e==="-")return e;var l=Nn(t),d=l.thousandSeparator,f=l.decimalSeparator,u=n!==0&&e.indexOf(".")!==-1||n&&r,m=_r(e,c),h=m.beforeDecimal,p=m.afterDecimal,v=m.addNegation;return n!==void 0&&(p=Ka(p,n,!!r)),d&&(h=df(h,d,s)),o&&(h=o+h),a&&(p=p+a),v&&(h="-"+h),e=h+(u&&f||"")+p,e}function Nn(e){var t=e.decimalSeparator;t===void 0&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function $f(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&t&&(e="-"+e),e}function Cf(e,t){return new RegExp("(^-)|[0-9]|"+Ua(e),"g")}function Ef(e,t,n){return e===""?!0:!t?.match(/\d/)&&!n?.match(/\d/)&&typeof e=="string"&&!isNaN(Number(e))}function Sf(e,t,n){var r;t===void 0&&(t=hf(e));var o=n.allowNegative,a=n.prefix;a===void 0&&(a="");var c=n.suffix;c===void 0&&(c="");var s=n.decimalScale,l=t.from,d=t.to,f=d.start,u=d.end,m=Nn(n),h=m.allowedDecimalSeparators,p=m.decimalSeparator,v=e[u]===p;if(Yt(e)&&(e===a||e===c)&&t.lastValue==="")return e;if(u-f===1&&h.indexOf(e[f])!==-1){var x=s===0?"":p;e=e.substring(0,f)+x+e.substring(f+1,e.length)}var g=function(I,N,S){var F=!1,W=!1;a.startsWith("-")?F=!1:I.startsWith("--")?(F=!1,W=!0):c.startsWith("-")&&I.length===c.length?F=!1:I[0]==="-"&&(F=!0);var X=F?1:0;return W&&(X=2),X&&(I=I.substring(X),N-=X,S-=X),{value:I,start:N,end:S,hasNegation:F}},w=g(e,f,u),$=w.hasNegation;r=w,e=r.value,f=r.start,u=r.end;var C=g(t.lastValue,l.start,l.end),E=C.start,O=C.end,k=C.value,_=e.substring(f,u);e.length&&k.length&&(E>k.length-c.length||O<a.length)&&!(_&&c.startsWith(_))&&(e=k);var B=0;e.startsWith(a)?B+=a.length:f<a.length&&(B=f),e=e.substring(B),u-=B;var K=e.length,D=e.length-c.length;e.endsWith(c)?K=D:(u>D||u>e.length-c.length)&&(K=u),e=e.substring(0,K),e=$f($?"-"+e:e,o),e=(e.match(Cf(p))||[]).join("");var P=e.indexOf(p);e=e.replace(new RegExp(Ua(p),"g"),function(I,N){return N===P?".":""});var G=_r(e,o),z=G.beforeDecimal,R=G.afterDecimal,M=G.addNegation;return d.end-d.start<l.end-l.start&&z===""&&v&&!parseFloat(R)&&(e=M?"-":""),e}function _f(e,t){var n=t.prefix;n===void 0&&(n="");var r=t.suffix;r===void 0&&(r="");var o=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]==="-";o.fill(!1,0,n.length+(a?1:0));var c=e.length;return o.fill(!1,c-r.length+1,c+1),o}function Tf(e){var t=Nn(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;o===void 0&&(o="");var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw new Error(`
166
166
  Decimal separator can't be same as thousand separator.
167
167
  thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
168
168
  decimalSeparator: `+r+` (default value for decimalSeparator is .)
@@ -170,6 +170,6 @@ Linha N° ${N+1} até N° ${S+1}`:`Você irá excluir a linha N° ${N+1}, deseja
170
170
  Prefix can't start with '-' when allowNegative is true.
171
171
  prefix: `+o+`
172
172
  allowNegative: `+a+`
173
- `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function Cf(e){e=$f(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;o===void 0&&(o=at);var a=e.onBlur;a===void 0&&(a=at);var c=e.thousandSeparator,s=e.decimalScale,l=e.fixedDecimalScale,d=e.prefix;d===void 0&&(d="");var f=e.defaultValue,u=e.value,m=e.valueIsNumericString,h=e.onValueChange,p=Ba(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),v=Pn(e),x=v.decimalSeparator,g=v.allowedDecimalSeparators,w=function(O){return qa(O,e)},$=function(O,I){return xf(O,I,e)},C=Mt(u)?f:u,E=m??wf(C,d,t);Mt(u)?Mt(f)||(E=E||typeof f=="number"):E=E||typeof u=="number";var M=function(O){return za(O)?O:(typeof O=="number"&&(O=Ua(O)),E&&typeof s=="number"?Ka(O,s,!!l):O)},k=Xa(M(u),M(f),!!E,w,$,h),_=k[0],B=_.numAsString,K=_.formattedValue,D=k[1],P=function(O){var I=O.target,N=O.key,S=I.selectionStart,F=I.selectionEnd,W=I.value;if(W===void 0&&(W=""),S!==F){o(O);return}N==="Backspace"&&W[0]==="-"&&S===d.length+1&&n&&ut(I,1),s&&l&&(N==="Backspace"&&W[S-1]===x?(ut(I,S-1),O.preventDefault()):N==="Delete"&&W[S]===x&&O.preventDefault()),g?.includes(N)&&W[S]===x&&ut(I,S+1);var X=c===!0?",":c;N==="Backspace"&&W[S-1]===X&&ut(I,S-1),N==="Delete"&&W[S]===X&&ut(I,S+1),o(O)},G=function(O){var I=B;if(I.match(/\d/g)||(I=""),r||(I=cf(I)),l&&s&&(I=Ka(I,s,l)),I!==B){var N=qa(I,e);D({formattedValue:N,value:I,floatValue:parseFloat(I)},{event:O,source:Gt.event})}a(O)},z=function(O){return O===x?!0:Yt(O)},R=function(O){var I=O.currentValue,N=O.lastValue,S=O.formattedValue,F=O.currentValueIndex,W=O.formattedValueIndex,X=I[F],ae=S[W],be=Ga(N,I),ge=be.to;return F>=ge.start&&F<ge.end&&g&&g.includes(X)&&ae===x?!0:X===ae};return Object.assign(Object.assign({},p),{value:K,valueIsNumericString:!1,isValidInputCharacter:z,isCharacterSame:R,onValueChange:D,format:w,removeFormatting:$,getCaretBoundary:function(O){return yf(O,e)},onKeyDown:P,onBlur:G})}function Ef(e){var t=Cf(e);return i.createElement(vf,Object.assign({},t))}function Sf(e,t){const{className:n,dataEditorType:r,onFocus:o,onBlur:a,onChange:c,onClick:s,onPaste:l,settings:d,testid:f,value:u,disabled:m,dataCypress:h,tabIndex:p,...v}=e,x=".",g=",",w=Tf({dataEditorType:r,decimalScale:d?.numeric?.decimalScale}),$=d?.numeric?.allowNegative,C=d?.numeric?.min,E=d?.numeric?.max,M=r==="Currency"?"R$ ":"",k=r==="Percentage"?"%":"",[_,B]=i.useState(u),K=i.useCallback(({value:D})=>{const P=jn({value:D,min:C,max:E});c?.(P),B(P)},[c,C,E]);return i.useEffect(()=>{const D=jn({value:u,min:C,max:E});B(D)},[u,C,E]),y.jsx(Ef,{...v,getInputRef:t,tabIndex:p,value:_,onPaste:l,prefix:M,suffix:k,fixedDecimalScale:!0,onBlur:a,"data-testid":f,valueIsNumericString:!0,onFocus:o,onClick:s,decimalScale:w,onValueChange:K,allowNegative:$,decimalSeparator:g,thousandSeparator:x,className:ee("cp-h-full cp-w-full cp-rounded-none cp-bg-transparent cp-pl-1 cp-text-sm cp-outline-none",n),disabled:m,"data-cypress":h,autoFocus:!0})}const _f=2;function Tf(e){const{dataEditorType:t,decimalScale:n}=e;let r=n;return t==="Percentage"&&(n?r=n>2?n-_f:0:r=0),n||(t==="Decimal"&&(r=2),t==="Float"&&(r=2),t==="Integer"&&(r=0),t==="Currency"&&(r=2)),r}const Za=i.forwardRef(Sf);function kf(e){const{mode:t,value:n,onBlur:r,onChange:o,onPaste:a,setMode:c,column:s,coordinates:l}=e,d=i.useRef(null),f=i.useCallback(m=>{m.preventDefault(),a?.()},[a]),u=i.useCallback(()=>{r?.(),c?.("view")},[r,c]);return Er(d),y.jsx(Za,{ref:d,dataEditorType:s.dataEditorType,value:n,onPaste:f,onBlur:u,onChange:m=>o?.({data:m}),settings:s.settings,dataCypress:`table-cell-numeric-${s.id}-${l.row}`,"aria-readonly":t==="readonly"})}function Pf(e){const{mode:t,value:n,column:r,coordinates:o}=e;return y.jsx(Za,{dataEditorType:r.dataEditorType,value:n,settings:r.settings,disabled:!0,className:"cp-pointer-events-none",dataCypress:`table-cell-numeric-${r.id}-${o.row}`,"aria-readonly":t==="readonly"})}function Nf(e){const{mode:t,value:n,onChange:r,onPaste:o,items:a,setMode:c,coordinates:s,column:l}=e,[d,f]=co(!0),u=i.useCallback(p=>{p.preventDefault(),o?.()},[o]),m=i.useCallback(()=>{d||(c?.("view"),f(!1))},[c,f,d]),h=i.useCallback(p=>{r?.({data:p}),m()},[r,m]);return y.jsxs(ja,{value:n,open:d,onOpenChange:f,onValueChange:h,children:[y.jsx($r,{onBlur:m,onPaste:u,className:ee("cp-h-full cp-w-full cp-rounded-none cp-border-none cp-pl-1 cp-text-sm cp-outline-none focus:cp-ring-0"),"data-cypress":`table-cell-select-${l.id}-${s.row}`,"aria-readonly":t==="readonly",children:y.jsx(La,{placeholder:"Selecionar"})}),y.jsx(Cr,{onBlur:m,children:a.map(({value:p,text:v})=>y.jsx(kn,{"data-cypress":`table-cell-select-${l.id}-${s.row}-${p}`,className:"cp-min-h-[24px] cp-text-sm",value:p,children:v},p))})]})}function If(e){const{mode:t,value:n,items:r,coordinates:o,column:a}=e,c=i.useMemo(()=>r.find(l=>l.value===n),[r,n]),s=i.useMemo(()=>c?c.text:"Selecionar",[c]);return y.jsxs("div",{className:"cp-flex cp-h-full cp-w-full cp-items-center cp-justify-between cp-pr-px cp-pl-1","data-cypress":`table-cell-select-${a.id}-${o.row}`,"aria-readonly":t==="readonly",children:[y.jsx("p",{className:"cp-line-clamp-1 cp-text-sm",children:s}),y.jsx(zn,{className:"cp-h-4 cp-w-4 cp-opacity-50"})]})}function Of(e){e.selectionStart=e.selectionEnd=e.value.length}const Mf="text/plain";function Df(e){return window.clipboardData?.getData?window.clipboardData.getData("Text"):e.clipboardData?.getData?e.clipboardData.getData(Mf):""}function Af(e){return[" ",`
174
- `,"\r"].every(t=>!e.includes(t))}function Ja(e,t){return to(e)>t-4}const Qa=200;function jf(e){const{mode:t,width:n,value:r,onBlur:o,onChange:a,onPaste:c,setMode:s,column:l,selected:d,coordinates:f}=e,u=r,m=i.useRef(null),h=i.useRef(null),[p,v]=i.useState(0),x=i.useMemo(()=>Ja(u,n),[u,n]),g=i.useCallback(()=>{const E=h.current;if(!E)return;const M=E.scrollHeight;E.style.height=`${M}px`,v(M)},[]),w=i.useCallback(E=>{const M=Df(E);Af(M)||(E.preventDefault(),c?.()),g()},[c,g]),$=i.useCallback(()=>{o?.(),s?.("view")},[o,s]),C=i.useCallback(E=>{a?.({data:E.target.value}),g()},[g,a]);return i.useEffect(()=>{g()},[g]),Er(m),Er(h),x?y.jsx("div",{style:{height:p||"fit-content"},className:ee("-cp-left-0.5 -cp-top-0.5 cp-absolute cp-z-40 cp-w-fit cp-border cp-bg-white",d?"cp-bg-blue-50":"cp-bg-white"),children:y.jsx("div",{style:{height:p-1},className:"cp-w-full cp-border cp-border-info-200",children:y.jsx("textarea",{ref:h,onBlur:$,onPaste:w,value:u,onChange:C,className:ee("cp-h-fit cp-resize-none cp-break-all cp-rounded-none cp-bg-transparent cp-py-1.5 cp-pr-3 cp-pl-1 cp-text-sm cp-outline-none cp-text-primary-700"),onFocus:E=>Of(E.target),maxLength:Qa,style:{width:n},"data-cypress":`table-cell-string-${l.id}-${f.row}`,"aria-readonly":t==="readonly",autoFocus:!0})})}):y.jsx("input",{ref:m,onBlur:o,onPaste:w,value:u,maxLength:Qa,onChange:C,className:ee("cp-h-full cp-w-full cp-bg-transparent cp-pl-1 cp-text-sm cp-outline-none"),"data-cypress":`table-cell-string-${l.id}-${f.row}`,"aria-readonly":t==="readonly",autoFocus:!0})}function Lf(e){const{mode:t,value:n,column:r,width:o,selected:a,coordinates:c}=e,s=n;return i.useMemo(()=>Ja(s,o),[s,o])?y.jsx(pn,{delayDuration:0,children:y.jsxs(mn,{children:[y.jsx(hn,{className:"cp-w-full",children:y.jsx("div",{className:"cp-flex cp-h-full cp-w-full cp-items-center cp-overflow-hidden","aria-readonly":t==="readonly","data-cypress":`table-cell-string-${r.id}-${c.row}`,children:y.jsx("p",{className:"cp-line-clamp-1 cp-break-all cp-pl-1 cp-text-left cp-text-sm",children:s})})}),y.jsx(Kt,{align:"start",side:"bottom",alignOffset:-2,sideOffset:-Bt,className:ee("cp-h-fit cp-break-all cp-rounded-none cp-border cp-bg-white cp-pl-1 cp-text-primary-700 cp-shadow-lg","data-[state=closed]:cp-transform-none data-[side=bottom]:cp-animate-none data-[state=closed]:cp-animate-none data-[state=closed]:cp-transition-none",a?"cp-bg-blue-50":"cp-bg-white"),style:{width:o},children:y.jsx("p",{"data-cypress":`table-cell-string-tooltip-${r.id}-${c.row}`,children:s})})]})}):y.jsx("div",{className:"cp-flex cp-h-full cp-w-full cp-items-center cp-overflow-hidden","data-cypress":`table-cell-string-${r.id}-${c.row}`,"aria-readonly":t==="readonly",children:y.jsx("p",{className:"cp-line-clamp-1 cp-break-all cp-pl-1 cp-text-left cp-text-sm",title:s,children:s})})}const Ue={Date:Ju,Text:jf,Boolean:qu,Numeric:kf,Select:Nf},Ke={Date:Qu,Text:Lf,Boolean:Zu,Numeric:Pf,Select:If},Ff=["Boolean","Select"];function Vf(e){const{value:t,width:n,coordinates:r}=e,{columns:o,isCellSelected:a,onChange:c,onPaste:s,onSelectCell:l}=je(),{dataEditorType:d,state:f,settings:u}=o[r.column],{readonly:m,visible:h}=f,[p,v]=i.useState(m?"readonly":"view"),x=i.useRef(null),g=i.useMemo(()=>o[r.column],[o,r.column]),w=i.useMemo(()=>a(r),[r,a]),$=i.useMemo(()=>u?.select?.items||[],[u?.select?.items]),C=i.useMemo(()=>({dataEditor:{coordinates:r,value:t,column:g,setMode:v,selected:w,mode:p,width:n,onPaste:()=>s(r),onChange:({data:K})=>c({data:K,point:r})},dataViewer:{coordinates:r,value:t,column:g,width:n,selected:w,mode:p}}),[r,n,p,t,g,w,s,c,r]),E=i.useMemo(()=>({Date:y.jsx(Ue.Date,{...C.dataEditor}),String:y.jsx(Ue.Text,{...C.dataEditor}),Currency:y.jsx(Ue.Numeric,{...C.dataEditor}),Decimal:y.jsx(Ue.Numeric,{...C.dataEditor}),Float:y.jsx(Ue.Numeric,{...C.dataEditor}),Integer:y.jsx(Ue.Numeric,{...C.dataEditor}),Percentage:y.jsx(Ue.Numeric,{...C.dataEditor}),Boolean:y.jsx(Ue.Boolean,{...C.dataEditor}),Select:y.jsx(Ue.Select,{...C.dataEditor,items:$})}),[C.dataEditor,$]),M=i.useMemo(()=>({Date:y.jsx(Ke.Date,{...C.dataViewer}),String:y.jsx(Ke.Text,{...C.dataViewer}),Currency:y.jsx(Ke.Numeric,{...C.dataViewer}),Decimal:y.jsx(Ke.Numeric,{...C.dataViewer}),Float:y.jsx(Ke.Numeric,{...C.dataViewer}),Integer:y.jsx(Ke.Numeric,{...C.dataViewer}),Percentage:y.jsx(Ke.Numeric,{...C.dataViewer}),Boolean:y.jsx(Ke.Boolean,{...C.dataViewer}),Select:y.jsx(Ke.Select,{...C.dataViewer,items:$})}),[C.dataViewer,$]),k=i.useMemo(()=>d?E[d]:null,[d,E]),_=i.useMemo(()=>d?M[d]:null,[d,M]),B=i.useCallback(()=>{Ff.includes(d)||v("view")},[d]);return i.useEffect(()=>{const K=D=>{const P=D.code==="Enter";P&&w&&p==="view"&&v("edit"),P&&w&&p==="edit"&&v("view")};return window.addEventListener("keydown",K),()=>window.removeEventListener("keydown",K)},[w,p]),so(x,B),i.useEffect(()=>{v(m?"readonly":"view")},[m]),h?p==="readonly"?y.jsx("div",{onClick:()=>l(r),className:ee("cp-flex cp-shrink-0 cp-cursor-default cp-select-none cp-border cp-border-t-transparent cp-border-l-transparent cp-bg-primary-50",w&&"cp-bg-primary-50"),style:{width:n,height:Bt},children:_}):p==="view"?y.jsx("div",{onClick:()=>l(r),onDoubleClick:()=>v("edit"),className:ee("cp-relative cp-flex cp-shrink-0 cp-cursor-default cp-select-none cp-border cp-border-t-transparent cp-border-l-transparent cp-border-primary-100",w&&"cp-bg-info-100"),style:{width:n,height:Bt},children:_}):y.jsx("div",{ref:x,"data-testid":"cell__testid",className:"cp-relative cp-shrink-0 cp-border cp-border-t-transparent cp-border-l-transparent cp-bg-white cp-shadow-lg",style:{width:n,height:Bt,top:r.row===0?"4px":"0px"},children:y.jsx("div",{className:"cp-h-full cp-w-full cp-border cp-border-info-200",children:k})}):y.jsx(i.Fragment,{})}function Bf({row:e}){const{onSelectRow:t,pointRange:n,matrix:r}=je(),o=i.useMemo(()=>n&&e>=n.start.row&&e<=n.end.row,[n,e]),a=i.useMemo(()=>!!(n&&Oc({matrix:r,pointRange:n,row:e})),[r,n,e]);return y.jsx("div",{className:ee("cp-flex cp-w-12 cp-shrink-0 cp-cursor-default cp-select-none cp-items-center cp-justify-center cp-border-r cp-border-b cp-text-sm",!o&&!a&&"cp-text-primary-400",o&&"cp-bg-info-300 cp-text-white",a&&"cp-bg-info-300 cp-text-white"),onClick:c=>t(e,c),style:{height:Bt},children:e+1})}function zf(){const e=i.useId(),{highlightLastRow:t,matrix:n,columns:r}=je();return y.jsx("div",{className:"cp-relative",children:n.map((o,a)=>y.jsxs("div",{className:ee("cp-flex cp-items-center cp-transition-all cp-ease-linear cp-text-primary-700",a===n.length-1&&t&&"cp-bg-info-100"),children:[y.jsx(Bf,{row:a}),o.map((c,s)=>y.jsx(Vf,{value:c,coordinates:{column:s,row:a},width:r[s].state.width},`spreadsheet__cell__key__${e}__${a}__${s}`))]},`spreadsheet__row__key__${e}__${a}}`))})}function Wf({className:e}){const{staticRows:t,emptySize:n,onInsertNewRow:r}=je();return t?null:y.jsx("div",{className:ee("cp-pointer-events-none cp-mt-[calc(28px+36px)] cp-flex cp-h-[calc(100%-28px-28px)] cp-w-full cp-items-center cp-justify-center",n&&"cp-pointer-events-auto cp-bg-white/25 cp-backdrop-blur-sm",e),children:n&&y.jsxs("p",{className:"cp-text-neutral-500",children:[y.jsx("span",{children:"Clique "}),y.jsx("button",{type:"button",onClick:r,className:"cp-font-bold",children:"AQUI"}),y.jsx("span",{children:" para começar a preencher a tabela."})]})})}const Tr="rovingFocusGroup.onEntryFocus",Rf={bubbles:!1,cancelable:!0},kr="RovingFocusGroup",[Pr,ei,Hf]=sr(kr),[Uf,ti]=ct(kr,[Hf]),[Kf,Gf]=Uf(kr),Yf=i.forwardRef((e,t)=>i.createElement(Pr.Provider,{scope:e.__scopeRovingFocusGroup},i.createElement(Pr.Slot,{scope:e.__scopeRovingFocusGroup},i.createElement(Xf,j({},e,{ref:t}))))),Xf=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:d,...f}=e,u=i.useRef(null),m=ve(t,u),h=lr(a),[p=null,v]=Ht({prop:c,defaultProp:s,onChange:l}),[x,g]=i.useState(!1),w=Me(d),$=ei(n),C=i.useRef(!1),[E,M]=i.useState(0);return i.useEffect(()=>{const k=u.current;if(k)return k.addEventListener(Tr,w),()=>k.removeEventListener(Tr,w)},[w]),i.createElement(Kf,{scope:n,orientation:r,dir:h,loop:o,currentTabStopId:p,onItemFocus:i.useCallback(k=>v(k),[v]),onItemShiftTab:i.useCallback(()=>g(!0),[]),onFocusableItemAdd:i.useCallback(()=>M(k=>k+1),[]),onFocusableItemRemove:i.useCallback(()=>M(k=>k-1),[])},i.createElement(fe.div,j({tabIndex:x||E===0?-1:0,"data-orientation":r},f,{ref:m,style:{outline:"none",...e.style},onMouseDown:Y(e.onMouseDown,()=>{C.current=!0}),onFocus:Y(e.onFocus,k=>{const _=!C.current;if(k.target===k.currentTarget&&_&&!x){const B=new CustomEvent(Tr,Rf);if(k.currentTarget.dispatchEvent(B),!B.defaultPrevented){const K=$().filter(R=>R.focusable),D=K.find(R=>R.active),P=K.find(R=>R.id===p),z=[D,P,...K].filter(Boolean).map(R=>R.ref.current);ni(z)}}C.current=!1}),onBlur:Y(e.onBlur,()=>g(!1))})))}),qf="RovingFocusGroupItem",Zf=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...c}=e,s=wt(),l=a||s,d=Gf(qf,n),f=d.currentTabStopId===l,u=ei(n),{onFocusableItemAdd:m,onFocusableItemRemove:h}=d;return i.useEffect(()=>{if(r)return m(),()=>h()},[r,m,h]),i.createElement(Pr.ItemSlot,{scope:n,id:l,focusable:r,active:o},i.createElement(fe.span,j({tabIndex:f?0:-1,"data-orientation":d.orientation},c,{ref:t,onMouseDown:Y(e.onMouseDown,p=>{r?d.onItemFocus(l):p.preventDefault()}),onFocus:Y(e.onFocus,()=>d.onItemFocus(l)),onKeyDown:Y(e.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){d.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const v=ep(p,d.orientation,d.dir);if(v!==void 0){p.preventDefault();let g=u().filter(w=>w.focusable).map(w=>w.ref.current);if(v==="last")g.reverse();else if(v==="prev"||v==="next"){v==="prev"&&g.reverse();const w=g.indexOf(p.currentTarget);g=d.loop?tp(g,w+1):g.slice(w+1)}setTimeout(()=>ni(g))}})})))}),Jf={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Qf(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ep(e,t,n){const r=Qf(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Jf[r]}function ni(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function tp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const np=Yf,rp=Zf,Nr=["Enter"," "],op=["ArrowDown","PageUp","Home"],ri=["ArrowUp","PageDown","End"],ap=[...op,...ri],ip={ltr:[...Nr,"ArrowRight"],rtl:[...Nr,"ArrowLeft"]},cp={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Nn="Menu",[Xt,sp,lp]=sr(Nn),[ft,oi]=ct(Nn,[lp,St,ti]),Ir=St(),ai=ti(),[dp,pt]=ft(Nn),[up,qt]=ft(Nn),fp=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:c=!0}=e,s=Ir(t),[l,d]=i.useState(null),f=i.useRef(!1),u=Me(a),m=lr(o);return i.useEffect(()=>{const h=()=>{f.current=!0,document.addEventListener("pointerdown",p,{capture:!0,once:!0}),document.addEventListener("pointermove",p,{capture:!0,once:!0})},p=()=>f.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",p,{capture:!0}),document.removeEventListener("pointermove",p,{capture:!0})}},[]),i.createElement(tr,s,i.createElement(dp,{scope:t,open:n,onOpenChange:u,content:l,onContentChange:d},i.createElement(up,{scope:t,onClose:i.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:f,dir:m,modal:c},r)))},ii=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Ir(n);return i.createElement(nr,j({},o,r,{ref:t}))}),ci="MenuPortal",[pp,si]=ft(ci,{forceMount:void 0}),mp=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=pt(ci,t);return i.createElement(pp,{scope:t,forceMount:n},i.createElement(_t,{present:n||a.open},i.createElement(Uo,{asChild:!0,container:o},r)))},Ae="MenuContent",[hp,Or]=ft(Ae),vp=i.forwardRef((e,t)=>{const n=si(Ae,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=pt(Ae,e.__scopeMenu),c=qt(Ae,e.__scopeMenu);return i.createElement(Xt.Provider,{scope:e.__scopeMenu},i.createElement(_t,{present:r||a.open},i.createElement(Xt.Slot,{scope:e.__scopeMenu},c.modal?i.createElement(gp,j({},o,{ref:t})):i.createElement(bp,j({},o,{ref:t})))))}),gp=i.forwardRef((e,t)=>{const n=pt(Ae,e.__scopeMenu),r=i.useRef(null),o=ve(t,r);return i.useEffect(()=>{const a=r.current;if(a)return ia(a)},[]),i.createElement(Mr,j({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Y(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),bp=i.forwardRef((e,t)=>{const n=pt(Ae,e.__scopeMenu);return i.createElement(Mr,j({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),Mr=i.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:c,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:u,onInteractOutside:m,onDismiss:h,disableOutsideScroll:p,...v}=e,x=pt(Ae,n),g=qt(Ae,n),w=Ir(n),$=ai(n),C=sp(n),[E,M]=i.useState(null),k=i.useRef(null),_=ve(t,k,x.onContentChange),B=i.useRef(0),K=i.useRef(""),D=i.useRef(0),P=i.useRef(null),G=i.useRef("right"),z=i.useRef(0),R=p?br:i.Fragment,O=p?{as:bt,allowPinchZoom:!0}:void 0,I=S=>{var F,W;const X=K.current+S,ae=C().filter(te=>!te.disabled),be=document.activeElement,ge=(F=ae.find(te=>te.ref.current===be))===null||F===void 0?void 0:F.textValue,pe=ae.map(te=>te.textValue),U=Dp(pe,X,ge),Q=(W=ae.find(te=>te.textValue===U))===null||W===void 0?void 0:W.ref.current;(function te(ne){K.current=ne,window.clearTimeout(B.current),ne!==""&&(B.current=window.setTimeout(()=>te(""),1e3))})(X),Q&&setTimeout(()=>Q.focus())};i.useEffect(()=>()=>window.clearTimeout(B.current),[]),Zo();const N=i.useCallback(S=>{var F,W;return G.current===((F=P.current)===null||F===void 0?void 0:F.side)&&jp(S,(W=P.current)===null||W===void 0?void 0:W.area)},[]);return i.createElement(hp,{scope:n,searchRef:K,onItemEnter:i.useCallback(S=>{N(S)&&S.preventDefault()},[N]),onItemLeave:i.useCallback(S=>{var F;N(S)||((F=k.current)===null||F===void 0||F.focus(),M(null))},[N]),onTriggerLeave:i.useCallback(S=>{N(S)&&S.preventDefault()},[N]),pointerGraceTimerRef:D,onPointerGraceIntentChange:i.useCallback(S=>{P.current=S},[])},i.createElement(R,O,i.createElement(ea,{asChild:!0,trapped:o,onMountAutoFocus:Y(a,S=>{var F;S.preventDefault(),(F=k.current)===null||F===void 0||F.focus()}),onUnmountAutoFocus:c},i.createElement(Hn,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:u,onInteractOutside:m,onDismiss:h},i.createElement(np,j({asChild:!0},$,{dir:g.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:M,onEntryFocus:Y(l,S=>{g.isUsingKeyboardRef.current||S.preventDefault()})}),i.createElement(rr,j({role:"menu","aria-orientation":"vertical","data-state":mi(x.open),"data-radix-menu-content":"",dir:g.dir},w,v,{ref:_,style:{outline:"none",...v.style},onKeyDown:Y(v.onKeyDown,S=>{const W=S.target.closest("[data-radix-menu-content]")===S.currentTarget,X=S.ctrlKey||S.altKey||S.metaKey,ae=S.key.length===1;W&&(S.key==="Tab"&&S.preventDefault(),!X&&ae&&I(S.key));const be=k.current;if(S.target!==be||!ap.includes(S.key))return;S.preventDefault();const pe=C().filter(U=>!U.disabled).map(U=>U.ref.current);ri.includes(S.key)&&pe.reverse(),Op(pe)}),onBlur:Y(e.onBlur,S=>{S.currentTarget.contains(S.target)||(window.clearTimeout(B.current),K.current="")}),onPointerMove:Y(e.onPointerMove,Zt(S=>{const F=S.target,W=z.current!==S.clientX;if(S.currentTarget.contains(F)&&W){const X=S.clientX>z.current?"right":"left";G.current=X,z.current=S.clientX}}))})))))))}),wp=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.createElement(fe.div,j({},r,{ref:t}))}),Dr="MenuItem",li="menu.itemSelect",Ar=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=i.useRef(null),c=qt(Dr,e.__scopeMenu),s=Or(Dr,e.__scopeMenu),l=ve(t,a),d=i.useRef(!1),f=()=>{const u=a.current;if(!n&&u){const m=new CustomEvent(li,{bubbles:!0,cancelable:!0});u.addEventListener(li,h=>r?.(h),{once:!0}),go(u,m),m.defaultPrevented?d.current=!1:c.onClose()}};return i.createElement(di,j({},o,{ref:l,disabled:n,onClick:Y(e.onClick,f),onPointerDown:u=>{var m;(m=e.onPointerDown)===null||m===void 0||m.call(e,u),d.current=!0},onPointerUp:Y(e.onPointerUp,u=>{var m;d.current||(m=u.currentTarget)===null||m===void 0||m.click()}),onKeyDown:Y(e.onKeyDown,u=>{const m=s.searchRef.current!=="";n||m&&u.key===" "||Nr.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})}))}),di=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,c=Or(Dr,n),s=ai(n),l=i.useRef(null),d=ve(t,l),[f,u]=i.useState(!1),[m,h]=i.useState("");return i.useEffect(()=>{const p=l.current;if(p){var v;h(((v=p.textContent)!==null&&v!==void 0?v:"").trim())}},[a.children]),i.createElement(Xt.ItemSlot,{scope:n,disabled:r,textValue:o??m},i.createElement(rp,j({asChild:!0},s,{focusable:!r}),i.createElement(fe.div,j({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:d,onPointerMove:Y(e.onPointerMove,Zt(p=>{r?c.onItemLeave(p):(c.onItemEnter(p),p.defaultPrevented||p.currentTarget.focus())})),onPointerLeave:Y(e.onPointerLeave,Zt(p=>c.onItemLeave(p))),onFocus:Y(e.onFocus,()=>u(!0)),onBlur:Y(e.onBlur,()=>u(!1))}))))}),xp=i.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return i.createElement(fi,{scope:e.__scopeMenu,checked:n},i.createElement(Ar,j({role:"menuitemcheckbox","aria-checked":On(n)?"mixed":n},o,{ref:t,"data-state":jr(n),onSelect:Y(o.onSelect,()=>r?.(On(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),yp="MenuRadioGroup",[Zm,$p]=ft(yp,{value:void 0,onValueChange:()=>{}}),Cp="MenuRadioItem",Ep=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=$p(Cp,e.__scopeMenu),a=n===o.value;return i.createElement(fi,{scope:e.__scopeMenu,checked:a},i.createElement(Ar,j({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":jr(a),onSelect:Y(r.onSelect,()=>{var c;return(c=o.onValueChange)===null||c===void 0?void 0:c.call(o,n)},{checkForDefaultPrevented:!1})})))}),ui="MenuItemIndicator",[fi,Sp]=ft(ui,{checked:!1}),_p=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=Sp(ui,n);return i.createElement(_t,{present:r||On(a.checked)||a.checked===!0},i.createElement(fe.span,j({},o,{ref:t,"data-state":jr(a.checked)})))}),Tp=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.createElement(fe.div,j({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),kp="MenuSub",[Jm,pi]=ft(kp),In="MenuSubTrigger",Pp=i.forwardRef((e,t)=>{const n=pt(In,e.__scopeMenu),r=qt(In,e.__scopeMenu),o=pi(In,e.__scopeMenu),a=Or(In,e.__scopeMenu),c=i.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,d={__scopeMenu:e.__scopeMenu},f=i.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return i.useEffect(()=>f,[f]),i.useEffect(()=>{const u=s.current;return()=>{window.clearTimeout(u),l(null)}},[s,l]),i.createElement(ii,j({asChild:!0},d),i.createElement(di,j({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":mi(n.open)},e,{ref:tn(t,o.onTriggerChange),onClick:u=>{var m;(m=e.onClick)===null||m===void 0||m.call(e,u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Y(e.onPointerMove,Zt(u=>{a.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!c.current&&(a.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:Y(e.onPointerLeave,Zt(u=>{var m;f();const h=(m=n.content)===null||m===void 0?void 0:m.getBoundingClientRect();if(h){var p;const v=(p=n.content)===null||p===void 0?void 0:p.dataset.side,x=v==="right",g=x?-5:5,w=h[x?"left":"right"],$=h[x?"right":"left"];a.onPointerGraceIntentChange({area:[{x:u.clientX+g,y:u.clientY},{x:w,y:h.top},{x:$,y:h.top},{x:$,y:h.bottom},{x:w,y:h.bottom}],side:v}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(u),u.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:Y(e.onKeyDown,u=>{const m=a.searchRef.current!=="";if(!(e.disabled||m&&u.key===" ")&&ip[r.dir].includes(u.key)){var h;n.onOpenChange(!0),(h=n.content)===null||h===void 0||h.focus(),u.preventDefault()}})})))}),Np="MenuSubContent",Ip=i.forwardRef((e,t)=>{const n=si(Ae,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=pt(Ae,e.__scopeMenu),c=qt(Ae,e.__scopeMenu),s=pi(Np,e.__scopeMenu),l=i.useRef(null),d=ve(t,l);return i.createElement(Xt.Provider,{scope:e.__scopeMenu},i.createElement(_t,{present:r||a.open},i.createElement(Xt.Slot,{scope:e.__scopeMenu},i.createElement(Mr,j({id:s.contentId,"aria-labelledby":s.triggerId},o,{ref:d,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var u;c.isUsingKeyboardRef.current&&((u=l.current)===null||u===void 0||u.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:Y(e.onFocusOutside,f=>{f.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:Y(e.onEscapeKeyDown,f=>{c.onClose(),f.preventDefault()}),onKeyDown:Y(e.onKeyDown,f=>{const u=f.currentTarget.contains(f.target),m=cp[c.dir].includes(f.key);if(u&&m){var h;a.onOpenChange(!1),(h=s.trigger)===null||h===void 0||h.focus(),f.preventDefault()}})})))))});function mi(e){return e?"open":"closed"}function On(e){return e==="indeterminate"}function jr(e){return On(e)?"indeterminate":e?"checked":"unchecked"}function Op(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Mp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Dp(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let c=Mp(e,Math.max(a,0));o.length===1&&(c=c.filter(d=>d!==n));const l=c.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Ap(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,c=t.length-1;a<t.length;c=a++){const s=t[a].x,l=t[a].y,d=t[c].x,f=t[c].y;l>r!=f>r&&n<(d-s)*(r-l)/(f-l)+s&&(o=!o)}return o}function jp(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Ap(n,t)}function Zt(e){return t=>t.pointerType==="mouse"?e(t):void 0}const Lp=fp,Fp=ii,Vp=mp,Bp=vp,zp=wp,Wp=Ar,Rp=xp,Hp=Ep,Up=_p,Kp=Tp,Gp=Pp,Yp=Ip,hi="DropdownMenu",[Xp,Qm]=ct(hi,[oi]),Ie=oi(),[qp,vi]=Xp(hi),Zp=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:c,modal:s=!0}=e,l=Ie(t),d=i.useRef(null),[f=!1,u]=Ht({prop:o,defaultProp:a,onChange:c});return i.createElement(qp,{scope:t,triggerId:wt(),triggerRef:d,contentId:wt(),open:f,onOpenChange:u,onOpenToggle:i.useCallback(()=>u(m=>!m),[u]),modal:s},i.createElement(Lp,j({},l,{open:f,onOpenChange:u,dir:r,modal:s}),n))},Jp="DropdownMenuTrigger",Qp=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=vi(Jp,n),c=Ie(n);return i.createElement(Fp,j({asChild:!0},c),i.createElement(fe.button,j({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:tn(t,a.triggerRef),onPointerDown:Y(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:Y(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})))}),em=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Ie(t);return i.createElement(Vp,j({},r,n))},tm="DropdownMenuContent",nm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=vi(tm,n),a=Ie(n),c=i.useRef(!1);return i.createElement(Bp,j({id:o.contentId,"aria-labelledby":o.triggerId},a,r,{ref:t,onCloseAutoFocus:Y(e.onCloseAutoFocus,s=>{var l;c.current||(l=o.triggerRef.current)===null||l===void 0||l.focus(),c.current=!1,s.preventDefault()}),onInteractOutside:Y(e.onInteractOutside,s=>{const l=s.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0,f=l.button===2||d;(!o.modal||f)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),rm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(zp,j({},o,r,{ref:t}))}),om=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(Wp,j({},o,r,{ref:t}))}),am=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(Rp,j({},o,r,{ref:t}))}),im=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(Hp,j({},o,r,{ref:t}))}),cm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(Up,j({},o,r,{ref:t}))}),sm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(Kp,j({},o,r,{ref:t}))}),lm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(Gp,j({},o,r,{ref:t}))}),dm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(Yp,j({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),um=Zp,fm=Qp,pm=em,gi=nm,bi=rm,wi=om,xi=am,yi=im,$i=cm,Ci=sm,Ei=lm,Si=dm,mm=um,hm=fm,vm=L.forwardRef(({className:e,inset:t,children:n,...r},o)=>y.jsxs(Ei,{ref:o,className:ee("cp-flex cp-cursor-default cp-select-none cp-items-center cp-rounded-sm cp-px-2 cp-py-1.5 cp-text-sm cp-outline-none data-[state=open]:cp-bg-accent focus:cp-bg-accent",t&&"cp-pl-8",e),...r,children:[n,y.jsx(Xc,{className:"cp-ml-auto cp-h-4 cp-w-4"})]}));vm.displayName=Ei.displayName;const gm=L.forwardRef(({className:e,...t},n)=>y.jsx(Si,{ref:n,className:ee("data-[state=closed]:cp-fade-out-0 data-[state=open]:cp-fade-in-0 data-[state=closed]:cp-zoom-out-95 data-[state=open]:cp-zoom-in-95 data-[side=bottom]:cp-slide-in-from-top-2 data-[side=left]:cp-slide-in-from-right-2 data-[side=right]:cp-slide-in-from-left-2 data-[side=top]:cp-slide-in-from-bottom-2 cp-z-50 cp-min-w-[8rem] cp-overflow-hidden cp-rounded-md cp-border cp-bg-popover cp-p-1 cp-text-popover-foreground cp-shadow-lg data-[state=closed]:cp-animate-out data-[state=open]:cp-animate-in",e),...t}));gm.displayName=Si.displayName;const _i=L.forwardRef(({className:e,sideOffset:t=4,...n},r)=>y.jsx(pm,{children:y.jsx(gi,{ref:r,sideOffset:t,className:ee("cp-z-50 cp-min-w-[8rem] cp-overflow-hidden cp-rounded-md cp-border cp-bg-popover cp-p-1 cp-text-popover-foreground cp-shadow-md","data-[state=closed]:cp-fade-out-0 data-[state=open]:cp-fade-in-0 data-[state=closed]:cp-zoom-out-95 data-[state=open]:cp-zoom-in-95 data-[side=bottom]:cp-slide-in-from-top-2 data-[side=left]:cp-slide-in-from-right-2 data-[side=right]:cp-slide-in-from-left-2 data-[side=top]:cp-slide-in-from-bottom-2 data-[state=closed]:cp-animate-out data-[state=open]:cp-animate-in",e),...n})}));_i.displayName=gi.displayName;const Ti=L.forwardRef(({className:e,inset:t,...n},r)=>y.jsx(wi,{ref:r,className:ee("cp-text-primary-700 cp-relative cp-flex cp-cursor-default cp-select-none cp-items-center cp-rounded-sm cp-px-2 cp-py-1.5 cp-text-sm cp-outline-none cp-transition-colors data-[disabled]:cp-pointer-events-none focus:cp-bg-accent focus:cp-text-primary-900 data-[disabled]:cp-text-primary-500",t&&"cp-pl-8",e),...n}));Ti.displayName=wi.displayName;const ki=L.forwardRef(({className:e,children:t,checked:n,...r},o)=>y.jsxs(xi,{ref:o,className:ee("cp-text-primary-700 cp-relative cp-flex cp-cursor-default cp-select-none cp-items-center cp-rounded-sm cp-py-1.5 cp-pr-2 cp-pl-8 cp-text-sm cp-outline-none cp-transition-colors data-[disabled]:cp-pointer-events-none focus:cp-bg-accent focus:cp-text-accent-foreground",e),checked:n,...r,children:[y.jsx("span",{className:"cp-absolute cp-left-2 cp-flex cp-h-3.5 cp-w-3.5 cp-items-center cp-justify-center",children:y.jsx($i,{children:y.jsx(uo,{className:"cp-h-4 cp-w-4"})})}),t]}));ki.displayName=xi.displayName;const bm=L.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(yi,{ref:r,className:ee("cp-text-primary-700 cp-relative cp-flex cp-cursor-default cp-select-none cp-items-center cp-rounded-sm cp-py-1.5 cp-pr-2 cp-pl-8 cp-text-sm cp-outline-none cp-transition-colors data-[disabled]:cp-pointer-events-none focus:cp-bg-accent focus:cp-text-accent-foreground data-[disabled]:cp-text-primary-500",e),...n,children:[y.jsx("span",{className:"cp-absolute cp-left-2 cp-flex cp-h-3.5 cp-w-3.5 cp-items-center cp-justify-center",children:y.jsx($i,{children:y.jsx(Qc,{className:"cp-h-4 cp-w-4 cp-fill-current"})})}),t]}));bm.displayName=yi.displayName;const wm=L.forwardRef(({className:e,inset:t,...n},r)=>y.jsx(bi,{ref:r,className:ee("cp-px-2 cp-py-1.5 cp-font-semibold cp-text-sm",t&&"cp-pl-8",e),...n}));wm.displayName=bi.displayName;const xm=L.forwardRef(({className:e,...t},n)=>y.jsx(Ci,{ref:n,className:ee("-cp-mx-1 cp-my-1 cp-h-px cp-bg-muted",e),...t}));xm.displayName=Ci.displayName;function ym(){const{hasSomeEntireRow:e,emptySize:t,staticRows:n,columns:r,onInsertNewRow:o,onRemoveRow:a,onColumnVisibilityChange:c,onRestoreColumnsVisibility:s}=je(),l=i.useMemo(()=>r.filter(({state:h})=>h.visible),[r]),d=i.useMemo(()=>r.length===l.length,[r.length,l.length]),f="Exibindo todas as colunas",u=`Exibindo ${l.length} de ${r.length} colunas`,m=d?f:u;return y.jsxs("div",{className:"cp-sticky cp-top-0 cp-z-50 cp-flex cp-w-full cp-items-center cp-justify-between cp-rounded-t-lg cp-border cp-border-primary-200 cp-bg-info-100 cp-px-4 cp-py-2",children:[y.jsxs("div",{className:"cp-flex cp-items-center cp-gap-2",children:[y.jsx(pn,{delayDuration:25,children:y.jsxs(mn,{children:[y.jsx(hn,{asChild:!0,children:y.jsx("button",{type:"button",disabled:n,onClick:o,className:"cp-flex cp-items-center cp-justify-center cp-w-9 cp-h-9 cp-rounded-md cp-border cp-border-transparent hover:cp-bg-info-50 hover:cp-text-info-400 active:cp-bg-info-50 active:cp-border-info-400 active:cp-text-info-400 cp-text-primary-700","data-cypress":"table-add-new-row",children:y.jsx(vs,{className:"cp-w-5 cp-h-5",color:"currentColor"})})}),y.jsx(Kt,{children:y.jsx("p",{children:"Inserir linha"})})]})}),y.jsx(pn,{delayDuration:25,children:y.jsxs(mn,{children:[y.jsx(hn,{asChild:!0,children:y.jsx("button",{type:"button",disabled:n||t||!e,onClick:a,className:"cp-flex cp-items-center cp-justify-center cp-w-9 cp-h-9 cp-rounded-md cp-border cp-border-transparent hover:cp-bg-danger-50 hover:cp-text-danger-400 active:cp-bg-danger-50 active:cp-border-danger-400 active:cp-text-danger-400 cp-text-primary-700","data-cypress":"table-delete-selected-row",children:y.jsx(gs,{className:"cp-w-5 cp-h-5",color:"currentColor"})})}),y.jsx(Kt,{children:y.jsx("p",{children:"Excluir linha(s)"})})]})})]}),y.jsx("div",{className:"cp-flex cp-items-center cp-gap-4",children:y.jsxs(mm,{children:[y.jsx(hm,{"data-cypress":"table-hide-columns-button",asChild:!0,className:"cp-w-56 cp-bg-white",children:y.jsxs("button",{type:"button",className:"cp-flex cp-items-center cp-justify-between cp-p-2 cp-bg-white cp-border cp-border-primary-300 cp-rounded-md cp-text-md cp-text-primary-600 cp-max-w-[220px]",children:[y.jsx("span",{children:m}),y.jsx(ss,{className:"cp-h-4 cp-w-4 cp-text-primary-500",color:"currentColor"})]})}),y.jsxs(_i,{className:"cp-w-56",children:[y.jsx(Ti,{disabled:d,onClick:s,className:"cp-justify-between cp-text-sm","data-cypress":"table-restore-columns",children:y.jsx("span",{children:"Reexibir todas as colunas"})}),r.map(({name:h,id:p,alphabetLetter:v,position:x,state:g})=>y.jsxs(ki,{checked:g.visible,onCheckedChange:w=>c({columnId:p,visible:w}),onSelect:w=>w.preventDefault(),className:"cp-justify-between cp-text-sm","data-cypress":`table-hide-column-${p}`,children:[y.jsx("span",{children:h}),y.jsx("span",{className:"cp-text-sm cp-text-neutral-500",children:v})]},`spreadsheet__column__dropdown_checkbox__key__${p}__${x}`))]})]})})]})}function $m(e){const{className:t,...n}=e;return y.jsx(Ac,{...n,children:y.jsxs(lo.Root,{className:ee(t,"cp-h-full"),children:[y.jsx(ym,{}),y.jsxs(lo.Matrix,{className:"cp-scrollbar-thin cp-overflow-y-clip cp-overflow-x-scroll",children:[y.jsx(Wf,{className:"cp-absolute cp-z-50"}),y.jsx(hd,{}),y.jsx(zf,{})]})]})})}function Cm(e){const{fileName:t="Declaração de viabilidade - Esgoto.pdf",fileSizeInMb:n="8.15MB • Versão 1",onDownload:r,onClick:o,state:a,...c}=e,s=d=>{(a==="Idle"||a==="Finished")&&r(),o?.(d)},l=a==="Disabled";return y.jsxs("button",{className:ee("cp-flex cp-h-[34px] cp-items-center cp-gap-1 cp-rounded-md cp-border cp-border-primary-100 cp-px-4 cp-text-primary-700 cp-transition-all cp-ease-linear hover:cp-shadow-md","disabled:cp-border-primary-100 disabled:cp-bg-primary-100 disabled:cp-text-primary-500 disabled:cp-shadow-none"),type:"button",onClick:s,disabled:l,"aria-disabled":l,...c,children:[y.jsxs("div",{className:"cp-flex cp-items-center cp-gap-2",children:[y.jsx(fs,{className:"cp-h-4 cp-w-4 cp-shrink-0"}),y.jsx("p",{className:"cp-whitespace-nowrap cp-font-bold cp-text-md",children:t}),y.jsx("p",{className:"cp-whitespace-nowrap cp-text-xs",children:n})]}),a==="Finished"&&y.jsx("div",{className:"cp-flex cp-w-32 cp-items-center cp-justify-end",children:y.jsx(ls,{className:"cp-h-4 cp-w-4 cp-text-success-400"})}),a==="Loading"&&y.jsx("div",{className:"cp-flex cp-w-32 cp-items-center cp-justify-end",children:y.jsx(ms,{className:"cp-h-4 cp-w-4 cp-shrink-0 cp-animate-spin cp-text-success-400"})}),y.jsx(Em,{state:a})]})}function Em({state:e}){return e==="Disabled"?y.jsxs("div",{className:"cp-flex cp-w-32 cp-items-center cp-text-primary-500",children:[y.jsx(mo,{className:"cp-mr-1 cp-h-4 cp-w-4 cp-shrink-0 cp-text-current"}),y.jsx("p",{className:"cp-mr-2 cp-whitespace-nowrap cp-font-bold cp-text-sm cp-text-current",children:"Novo Arquivo"}),y.jsx(po,{className:"cp-h-4 cp-w-4 cp-text-primary-500"})]}):e==="Idle"?y.jsxs("div",{className:"cp-flex cp-w-32 cp-items-center cp-text-info-300",children:[y.jsx(mo,{className:"cp-mr-1 cp-h-4 cp-w-4 cp-shrink-0 cp-text-current"}),y.jsx("p",{className:"cp-mr-2 cp-whitespace-nowrap cp-font-bold cp-text-sm cp-text-current",children:"Novo Arquivo"}),y.jsx(po,{className:"cp-h-4 cp-w-4 cp-text-primary-700"})]}):null}const Sm={Spreadsheet:$m,FileUploader:Cm};Ge.CapLink=Sm,Object.defineProperty(Ge,Symbol.toStringTag,{value:"Module"})});
173
+ `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function kf(e){e=Tf(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;o===void 0&&(o=at);var a=e.onBlur;a===void 0&&(a=at);var c=e.thousandSeparator,s=e.decimalScale,l=e.fixedDecimalScale,d=e.prefix;d===void 0&&(d="");var f=e.defaultValue,u=e.value,m=e.valueIsNumericString,h=e.onValueChange,p=Ra(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),v=Nn(e),x=v.decimalSeparator,g=v.allowedDecimalSeparators,w=function(M){return Qa(M,e)},$=function(M,I){return Sf(M,I,e)},C=Ot(u)?f:u,E=m??Ef(C,d,t);Ot(u)?Ot(f)||(E=E||typeof f=="number"):E=E||typeof u=="number";var O=function(M){return Ha(M)?M:(typeof M=="number"&&(M=Ya(M)),E&&typeof s=="number"?Xa(M,s,!!l):M)},k=Ja(O(u),O(f),!!E,w,$,h),_=k[0],B=_.numAsString,K=_.formattedValue,D=k[1],P=function(M){var I=M.target,N=M.key,S=I.selectionStart,F=I.selectionEnd,W=I.value;if(W===void 0&&(W=""),S!==F){o(M);return}N==="Backspace"&&W[0]==="-"&&S===d.length+1&&n&&ut(I,1),s&&l&&(N==="Backspace"&&W[S-1]===x?(ut(I,S-1),M.preventDefault()):N==="Delete"&&W[S]===x&&M.preventDefault()),g?.includes(N)&&W[S]===x&&ut(I,S+1);var X=c===!0?",":c;N==="Backspace"&&W[S-1]===X&&ut(I,S-1),N==="Delete"&&W[S]===X&&ut(I,S+1),o(M)},G=function(M){var I=B;if(I.match(/\d/g)||(I=""),r||(I=ff(I)),l&&s&&(I=Xa(I,s,l)),I!==B){var N=Qa(I,e);D({formattedValue:N,value:I,floatValue:parseFloat(I)},{event:M,source:Gt.event})}a(M)},z=function(M){return M===x?!0:Yt(M)},R=function(M){var I=M.currentValue,N=M.lastValue,S=M.formattedValue,F=M.currentValueIndex,W=M.formattedValueIndex,X=I[F],ae=S[W],be=qa(N,I),ge=be.to;return F>=ge.start&&F<ge.end&&g&&g.includes(X)&&ae===x?!0:X===ae};return Object.assign(Object.assign({},p),{value:K,valueIsNumericString:!1,isValidInputCharacter:z,isCharacterSame:R,onValueChange:D,format:w,removeFormatting:$,getCaretBoundary:function(M){return _f(M,e)},onKeyDown:P,onBlur:G})}function Pf(e){var t=kf(e);return i.createElement(yf,Object.assign({},t))}function Nf(e,t){const{className:n,dataEditorType:r,onFocus:o,onBlur:a,onChange:c,onClick:s,onPaste:l,settings:d,testid:f,value:u,disabled:m,dataCypress:h,tabIndex:p,...v}=e,x=".",g=",",w=Mf({dataEditorType:r,decimalScale:d?.numeric?.decimalScale}),$=d?.numeric?.allowNegative,C=d?.numeric?.min,E=d?.numeric?.max,O=r==="Currency"?"R$ ":"",k=r==="Percentage"?"%":"",[_,B]=i.useState(u),K=i.useCallback(({value:D})=>{const P=Ln({value:D,min:C,max:E});c?.(P),B(P)},[c,C,E]);return i.useEffect(()=>{const D=Ln({value:u,min:C,max:E});B(D)},[u,C,E]),y.jsx(Pf,{...v,getInputRef:t,tabIndex:p,value:_,onPaste:l,prefix:O,suffix:k,fixedDecimalScale:!0,onBlur:a,"data-testid":f,valueIsNumericString:!0,onFocus:o,onClick:s,decimalScale:w,onValueChange:K,allowNegative:$,decimalSeparator:g,thousandSeparator:x,className:ee("cp-h-full cp-w-full cp-rounded-none cp-bg-transparent cp-pl-1 cp-text-sm cp-outline-none",n),disabled:m,"data-cypress":h,autoFocus:!0})}const If=2;function Mf(e){const{dataEditorType:t,decimalScale:n}=e;let r=n;return t==="Percentage"&&(n?r=n>2?n-If:0:r=0),n||(t==="Decimal"&&(r=2),t==="Float"&&(r=2),t==="Integer"&&(r=0),t==="Currency"&&(r=2)),r}const ei=i.forwardRef(Nf);function Of(e){const{mode:t,value:n,onBlur:r,onChange:o,onPaste:a,setMode:c,column:s,coordinates:l}=e,d=i.useRef(null),f=i.useCallback(m=>{m.preventDefault(),a?.()},[a]),u=i.useCallback(()=>{r?.(),c?.("view")},[r,c]);return Sr(d),y.jsx(ei,{ref:d,dataEditorType:s.dataEditorType,value:n,onPaste:f,onBlur:u,onChange:m=>o?.({data:m}),settings:s.settings,dataCypress:`table-cell-numeric-${s.id}-${l.row}`,"aria-readonly":t==="readonly"})}function Df(e){const{mode:t,value:n,column:r,coordinates:o}=e;return y.jsx(ei,{dataEditorType:r.dataEditorType,value:n,settings:r.settings,disabled:!0,className:"cp-pointer-events-none",dataCypress:`table-cell-numeric-${r.id}-${o.row}`,"aria-readonly":t==="readonly"})}function Af(e){const{mode:t,value:n,onChange:r,onPaste:o,items:a,setMode:c,coordinates:s,column:l}=e,[d,f]=uo(!0),u=i.useCallback(p=>{p.preventDefault(),o?.()},[o]),m=i.useCallback(()=>{d||(c?.("view"),f(!1))},[c,f,d]),h=i.useCallback(p=>{r?.({data:p}),m()},[r,m]);return y.jsxs(Va,{value:n,open:d,onOpenChange:f,onValueChange:h,children:[y.jsx(Cr,{onBlur:m,onPaste:u,className:ee("cp-h-full cp-w-full cp-rounded-none cp-border-none cp-pl-1 cp-text-sm cp-outline-none focus:cp-ring-0"),"data-cypress":`table-cell-select-${l.id}-${s.row}`,"aria-readonly":t==="readonly",children:y.jsx(Ba,{placeholder:"Selecionar"})}),y.jsx(Er,{onBlur:m,children:a.map(({value:p,text:v})=>y.jsx(Pn,{"data-cypress":`table-cell-select-${l.id}-${s.row}-${p}`,className:"cp-min-h-[24px] cp-text-sm",value:p,children:v},p))})]})}function jf(e){const{mode:t,value:n,items:r,coordinates:o,column:a}=e,c=i.useMemo(()=>r.find(l=>l.value===n),[r,n]),s=i.useMemo(()=>c?c.text:"Selecionar",[c]);return y.jsxs("div",{className:"cp-flex cp-h-full cp-w-full cp-items-center cp-justify-between cp-pr-px cp-pl-1","data-cypress":`table-cell-select-${a.id}-${o.row}`,"aria-readonly":t==="readonly",children:[y.jsx("p",{className:"cp-line-clamp-1 cp-text-sm",children:s}),y.jsx(Wn,{className:"cp-h-4 cp-w-4 cp-opacity-50"})]})}function Lf(e){e.selectionStart=e.selectionEnd=e.value.length}const Ff="text/plain";function Vf(e){return window.clipboardData?.getData?window.clipboardData.getData("Text"):e.clipboardData?.getData?e.clipboardData.getData(Ff):""}function Bf(e){return[" ",`
174
+ `,"\r"].every(t=>!e.includes(t))}function ti(e,t){return oo(e)>t-4}const ni=200;function zf(e){const{mode:t,width:n,value:r,onBlur:o,onChange:a,onPaste:c,setMode:s,column:l,selected:d,coordinates:f}=e,u=r,m=i.useRef(null),h=i.useRef(null),[p,v]=i.useState(0),x=i.useMemo(()=>ti(u,n),[u,n]),g=i.useCallback(()=>{const E=h.current;if(!E)return;const O=E.scrollHeight;E.style.height=`${O}px`,v(O)},[]),w=i.useCallback(E=>{const O=Vf(E);Bf(O)||(E.preventDefault(),c?.()),g()},[c,g]),$=i.useCallback(()=>{o?.(),s?.("view")},[o,s]),C=i.useCallback(E=>{a?.({data:E.target.value}),g()},[g,a]);return i.useEffect(()=>{g()},[g]),Sr(m),Sr(h),x?y.jsx("div",{style:{height:p||"fit-content"},className:ee("-cp-left-0.5 -cp-top-0.5 cp-absolute cp-z-40 cp-w-fit cp-border cp-bg-white",d?"cp-bg-blue-50":"cp-bg-white"),children:y.jsx("div",{style:{height:p-1},className:"cp-w-full cp-border cp-border-info-200",children:y.jsx("textarea",{ref:h,onBlur:$,onPaste:w,value:u,onChange:C,className:ee("cp-h-fit cp-resize-none cp-break-all cp-rounded-none cp-bg-transparent cp-py-1.5 cp-pr-3 cp-pl-1 cp-text-sm cp-outline-none cp-text-primary-700"),onFocus:E=>Lf(E.target),maxLength:ni,style:{width:n},"data-cypress":`table-cell-string-${l.id}-${f.row}`,"aria-readonly":t==="readonly",autoFocus:!0})})}):y.jsx("input",{ref:m,onBlur:o,onPaste:w,value:u,maxLength:ni,onChange:C,className:ee("cp-h-full cp-w-full cp-bg-transparent cp-pl-1 cp-text-sm cp-outline-none"),"data-cypress":`table-cell-string-${l.id}-${f.row}`,"aria-readonly":t==="readonly",autoFocus:!0})}function Wf(e){const{mode:t,value:n,column:r,width:o,selected:a,coordinates:c}=e,s=n;return i.useMemo(()=>ti(s,o),[s,o])?y.jsx(mn,{delayDuration:0,children:y.jsxs(hn,{children:[y.jsx(vn,{className:"cp-w-full",children:y.jsx("div",{className:"cp-flex cp-h-full cp-w-full cp-items-center cp-overflow-hidden","aria-readonly":t==="readonly","data-cypress":`table-cell-string-${r.id}-${c.row}`,children:y.jsx("p",{className:"cp-line-clamp-1 cp-break-all cp-pl-1 cp-text-left cp-text-sm",children:s})})}),y.jsx(Kt,{align:"start",side:"bottom",alignOffset:-2,sideOffset:-Bt,className:ee("cp-h-fit cp-break-all cp-rounded-none cp-border cp-bg-white cp-pl-1 cp-text-primary-700 cp-shadow-lg","data-[state=closed]:cp-transform-none data-[side=bottom]:cp-animate-none data-[state=closed]:cp-animate-none data-[state=closed]:cp-transition-none",a?"cp-bg-blue-50":"cp-bg-white"),style:{width:o},children:y.jsx("p",{"data-cypress":`table-cell-string-tooltip-${r.id}-${c.row}`,children:s})})]})}):y.jsx("div",{className:"cp-flex cp-h-full cp-w-full cp-items-center cp-overflow-hidden","data-cypress":`table-cell-string-${r.id}-${c.row}`,"aria-readonly":t==="readonly",children:y.jsx("p",{className:"cp-line-clamp-1 cp-break-all cp-pl-1 cp-text-left cp-text-sm",title:s,children:s})})}const Ue={Date:rf,Text:zf,Boolean:tf,Numeric:Of,Select:Af},Ke={Date:of,Text:Wf,Boolean:nf,Numeric:Df,Select:jf},Rf=["Boolean","Select"];function Hf(e){const{value:t,width:n,coordinates:r}=e,{columns:o,isCellSelected:a,onChange:c,onPaste:s,onSelectCell:l}=je(),{dataEditorType:d,state:f,settings:u}=o[r.column],{readonly:m,visible:h}=f,[p,v]=i.useState(m?"readonly":"view"),x=i.useRef(null),g=i.useMemo(()=>o[r.column],[o,r.column]),w=i.useMemo(()=>a(r),[r,a]),$=i.useMemo(()=>u?.select?.items||[],[u?.select?.items]),C=i.useMemo(()=>({dataEditor:{coordinates:r,value:t,column:g,setMode:v,selected:w,mode:p,width:n,onPaste:()=>s(r),onChange:({data:K})=>c({data:K,point:r})},dataViewer:{coordinates:r,value:t,column:g,width:n,selected:w,mode:p}}),[r,n,p,t,g,w,s,c,r]),E=i.useMemo(()=>({Date:y.jsx(Ue.Date,{...C.dataEditor}),String:y.jsx(Ue.Text,{...C.dataEditor}),Currency:y.jsx(Ue.Numeric,{...C.dataEditor}),Decimal:y.jsx(Ue.Numeric,{...C.dataEditor}),Float:y.jsx(Ue.Numeric,{...C.dataEditor}),Integer:y.jsx(Ue.Numeric,{...C.dataEditor}),Percentage:y.jsx(Ue.Numeric,{...C.dataEditor}),Boolean:y.jsx(Ue.Boolean,{...C.dataEditor}),Select:y.jsx(Ue.Select,{...C.dataEditor,items:$})}),[C.dataEditor,$]),O=i.useMemo(()=>({Date:y.jsx(Ke.Date,{...C.dataViewer}),String:y.jsx(Ke.Text,{...C.dataViewer}),Currency:y.jsx(Ke.Numeric,{...C.dataViewer}),Decimal:y.jsx(Ke.Numeric,{...C.dataViewer}),Float:y.jsx(Ke.Numeric,{...C.dataViewer}),Integer:y.jsx(Ke.Numeric,{...C.dataViewer}),Percentage:y.jsx(Ke.Numeric,{...C.dataViewer}),Boolean:y.jsx(Ke.Boolean,{...C.dataViewer}),Select:y.jsx(Ke.Select,{...C.dataViewer,items:$})}),[C.dataViewer,$]),k=i.useMemo(()=>d?E[d]:null,[d,E]),_=i.useMemo(()=>d?O[d]:null,[d,O]),B=i.useCallback(()=>{Rf.includes(d)||v("view")},[d]);return i.useEffect(()=>{const K=D=>{const P=D.code==="Enter";P&&w&&p==="view"&&v("edit"),P&&w&&p==="edit"&&v("view")};return window.addEventListener("keydown",K),()=>window.removeEventListener("keydown",K)},[w,p]),fo(x,B),i.useEffect(()=>{v(m?"readonly":"view")},[m]),h?p==="readonly"?y.jsx("div",{onClick:()=>l(r),className:ee("cp-flex cp-shrink-0 cp-cursor-default cp-select-none cp-border cp-border-t-transparent cp-border-l-transparent cp-bg-primary-50",w&&"cp-bg-primary-50"),style:{width:n,height:Bt},children:_}):p==="view"?y.jsx("div",{onClick:()=>l(r),onDoubleClick:()=>v("edit"),className:ee("cp-relative cp-flex cp-shrink-0 cp-cursor-default cp-select-none cp-border cp-border-t-transparent cp-border-l-transparent cp-border-primary-100",w&&"cp-bg-info-100"),style:{width:n,height:Bt},children:_}):y.jsx("div",{ref:x,"data-testid":"cell__testid",className:"cp-relative cp-shrink-0 cp-border cp-border-t-transparent cp-border-l-transparent cp-bg-white cp-shadow-lg",style:{width:n,height:Bt,top:r.row===0?"4px":"0px"},children:y.jsx("div",{className:"cp-h-full cp-w-full cp-border cp-border-info-200",children:k})}):y.jsx(i.Fragment,{})}function Uf({row:e}){const{onSelectRow:t,pointRange:n,matrix:r}=je(),o=i.useMemo(()=>n&&e>=n.start.row&&e<=n.end.row,[n,e]),a=i.useMemo(()=>!!(n&&Lc({matrix:r,pointRange:n,row:e})),[r,n,e]);return y.jsx("div",{className:ee("cp-flex cp-w-12 cp-shrink-0 cp-cursor-default cp-select-none cp-items-center cp-justify-center cp-border-r cp-border-b cp-text-sm",!o&&!a&&"cp-text-primary-400",o&&"cp-bg-info-300 cp-text-white",a&&"cp-bg-info-300 cp-text-white"),onClick:c=>t(e,c),style:{height:Bt},children:e+1})}function Kf(){const e=i.useId(),{highlightLastRow:t,matrix:n,columns:r}=je();return y.jsx("div",{className:"cp-relative",children:n.map((o,a)=>y.jsxs("div",{className:ee("cp-flex cp-items-center cp-transition-all cp-ease-linear cp-text-primary-700",a===n.length-1&&t&&"cp-bg-info-100"),children:[y.jsx(Uf,{row:a}),o.map((c,s)=>y.jsx(Hf,{value:c,coordinates:{column:s,row:a},width:r[s].state.width},`spreadsheet__cell__key__${e}__${a}__${s}`))]},`spreadsheet__row__key__${e}__${a}}`))})}function Gf({className:e}){const{staticRows:t,emptySize:n,onInsertNewRow:r}=je();return t?null:y.jsx("div",{className:ee("cp-pointer-events-none cp-mt-[calc(28px+36px)] cp-flex cp-h-[calc(100%-28px-28px)] cp-w-full cp-items-center cp-justify-center",n&&"cp-pointer-events-auto cp-bg-white/25 cp-backdrop-blur-sm",e),children:n&&y.jsxs("p",{className:"cp-text-neutral-500",children:[y.jsx("span",{children:"Clique "}),y.jsx("button",{type:"button",onClick:r,className:"cp-font-bold",children:"AQUI"}),y.jsx("span",{children:" para começar a preencher a tabela."})]})})}const kr="rovingFocusGroup.onEntryFocus",Yf={bubbles:!1,cancelable:!0},Pr="RovingFocusGroup",[Nr,ri,Xf]=lr(Pr),[qf,oi]=ct(Pr,[Xf]),[Zf,Jf]=qf(Pr),Qf=i.forwardRef((e,t)=>i.createElement(Nr.Provider,{scope:e.__scopeRovingFocusGroup},i.createElement(Nr.Slot,{scope:e.__scopeRovingFocusGroup},i.createElement(ep,j({},e,{ref:t}))))),ep=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:d,...f}=e,u=i.useRef(null),m=ve(t,u),h=dr(a),[p=null,v]=Ht({prop:c,defaultProp:s,onChange:l}),[x,g]=i.useState(!1),w=Oe(d),$=ri(n),C=i.useRef(!1),[E,O]=i.useState(0);return i.useEffect(()=>{const k=u.current;if(k)return k.addEventListener(kr,w),()=>k.removeEventListener(kr,w)},[w]),i.createElement(Zf,{scope:n,orientation:r,dir:h,loop:o,currentTabStopId:p,onItemFocus:i.useCallback(k=>v(k),[v]),onItemShiftTab:i.useCallback(()=>g(!0),[]),onFocusableItemAdd:i.useCallback(()=>O(k=>k+1),[]),onFocusableItemRemove:i.useCallback(()=>O(k=>k-1),[])},i.createElement(fe.div,j({tabIndex:x||E===0?-1:0,"data-orientation":r},f,{ref:m,style:{outline:"none",...e.style},onMouseDown:Y(e.onMouseDown,()=>{C.current=!0}),onFocus:Y(e.onFocus,k=>{const _=!C.current;if(k.target===k.currentTarget&&_&&!x){const B=new CustomEvent(kr,Yf);if(k.currentTarget.dispatchEvent(B),!B.defaultPrevented){const K=$().filter(R=>R.focusable),D=K.find(R=>R.active),P=K.find(R=>R.id===p),z=[D,P,...K].filter(Boolean).map(R=>R.ref.current);ai(z)}}C.current=!1}),onBlur:Y(e.onBlur,()=>g(!1))})))}),tp="RovingFocusGroupItem",np=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...c}=e,s=wt(),l=a||s,d=Jf(tp,n),f=d.currentTabStopId===l,u=ri(n),{onFocusableItemAdd:m,onFocusableItemRemove:h}=d;return i.useEffect(()=>{if(r)return m(),()=>h()},[r,m,h]),i.createElement(Nr.ItemSlot,{scope:n,id:l,focusable:r,active:o},i.createElement(fe.span,j({tabIndex:f?0:-1,"data-orientation":d.orientation},c,{ref:t,onMouseDown:Y(e.onMouseDown,p=>{r?d.onItemFocus(l):p.preventDefault()}),onFocus:Y(e.onFocus,()=>d.onItemFocus(l)),onKeyDown:Y(e.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){d.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const v=ap(p,d.orientation,d.dir);if(v!==void 0){p.preventDefault();let g=u().filter(w=>w.focusable).map(w=>w.ref.current);if(v==="last")g.reverse();else if(v==="prev"||v==="next"){v==="prev"&&g.reverse();const w=g.indexOf(p.currentTarget);g=d.loop?ip(g,w+1):g.slice(w+1)}setTimeout(()=>ai(g))}})})))}),rp={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function op(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ap(e,t,n){const r=op(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return rp[r]}function ai(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function ip(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const cp=Qf,sp=np,Ir=["Enter"," "],lp=["ArrowDown","PageUp","Home"],ii=["ArrowUp","PageDown","End"],dp=[...lp,...ii],up={ltr:[...Ir,"ArrowRight"],rtl:[...Ir,"ArrowLeft"]},fp={ltr:["ArrowLeft"],rtl:["ArrowRight"]},In="Menu",[Xt,pp,mp]=lr(In),[ft,ci]=ct(In,[mp,St,oi]),Mr=St(),si=oi(),[hp,pt]=ft(In),[vp,qt]=ft(In),gp=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:c=!0}=e,s=Mr(t),[l,d]=i.useState(null),f=i.useRef(!1),u=Oe(a),m=dr(o);return i.useEffect(()=>{const h=()=>{f.current=!0,document.addEventListener("pointerdown",p,{capture:!0,once:!0}),document.addEventListener("pointermove",p,{capture:!0,once:!0})},p=()=>f.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",p,{capture:!0}),document.removeEventListener("pointermove",p,{capture:!0})}},[]),i.createElement(nr,s,i.createElement(hp,{scope:t,open:n,onOpenChange:u,content:l,onContentChange:d},i.createElement(vp,{scope:t,onClose:i.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:f,dir:m,modal:c},r)))},li=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Mr(n);return i.createElement(rr,j({},o,r,{ref:t}))}),di="MenuPortal",[bp,ui]=ft(di,{forceMount:void 0}),wp=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=pt(di,t);return i.createElement(bp,{scope:t,forceMount:n},i.createElement(_t,{present:n||a.open},i.createElement(Yo,{asChild:!0,container:o},r)))},Ae="MenuContent",[xp,Or]=ft(Ae),yp=i.forwardRef((e,t)=>{const n=ui(Ae,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=pt(Ae,e.__scopeMenu),c=qt(Ae,e.__scopeMenu);return i.createElement(Xt.Provider,{scope:e.__scopeMenu},i.createElement(_t,{present:r||a.open},i.createElement(Xt.Slot,{scope:e.__scopeMenu},c.modal?i.createElement($p,j({},o,{ref:t})):i.createElement(Cp,j({},o,{ref:t})))))}),$p=i.forwardRef((e,t)=>{const n=pt(Ae,e.__scopeMenu),r=i.useRef(null),o=ve(t,r);return i.useEffect(()=>{const a=r.current;if(a)return la(a)},[]),i.createElement(Dr,j({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Y(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),Cp=i.forwardRef((e,t)=>{const n=pt(Ae,e.__scopeMenu);return i.createElement(Dr,j({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),Dr=i.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:c,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:u,onInteractOutside:m,onDismiss:h,disableOutsideScroll:p,...v}=e,x=pt(Ae,n),g=qt(Ae,n),w=Mr(n),$=si(n),C=pp(n),[E,O]=i.useState(null),k=i.useRef(null),_=ve(t,k,x.onContentChange),B=i.useRef(0),K=i.useRef(""),D=i.useRef(0),P=i.useRef(null),G=i.useRef("right"),z=i.useRef(0),R=p?wr:i.Fragment,M=p?{as:bt,allowPinchZoom:!0}:void 0,I=S=>{var F,W;const X=K.current+S,ae=C().filter(te=>!te.disabled),be=document.activeElement,ge=(F=ae.find(te=>te.ref.current===be))===null||F===void 0?void 0:F.textValue,pe=ae.map(te=>te.textValue),U=Vp(pe,X,ge),Q=(W=ae.find(te=>te.textValue===U))===null||W===void 0?void 0:W.ref.current;(function te(ne){K.current=ne,window.clearTimeout(B.current),ne!==""&&(B.current=window.setTimeout(()=>te(""),1e3))})(X),Q&&setTimeout(()=>Q.focus())};i.useEffect(()=>()=>window.clearTimeout(B.current),[]),ea();const N=i.useCallback(S=>{var F,W;return G.current===((F=P.current)===null||F===void 0?void 0:F.side)&&zp(S,(W=P.current)===null||W===void 0?void 0:W.area)},[]);return i.createElement(xp,{scope:n,searchRef:K,onItemEnter:i.useCallback(S=>{N(S)&&S.preventDefault()},[N]),onItemLeave:i.useCallback(S=>{var F;N(S)||((F=k.current)===null||F===void 0||F.focus(),O(null))},[N]),onTriggerLeave:i.useCallback(S=>{N(S)&&S.preventDefault()},[N]),pointerGraceTimerRef:D,onPointerGraceIntentChange:i.useCallback(S=>{P.current=S},[])},i.createElement(R,M,i.createElement(ra,{asChild:!0,trapped:o,onMountAutoFocus:Y(a,S=>{var F;S.preventDefault(),(F=k.current)===null||F===void 0||F.focus()}),onUnmountAutoFocus:c},i.createElement(Un,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:u,onInteractOutside:m,onDismiss:h},i.createElement(cp,j({asChild:!0},$,{dir:g.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:O,onEntryFocus:Y(l,S=>{g.isUsingKeyboardRef.current||S.preventDefault()})}),i.createElement(or,j({role:"menu","aria-orientation":"vertical","data-state":gi(x.open),"data-radix-menu-content":"",dir:g.dir},w,v,{ref:_,style:{outline:"none",...v.style},onKeyDown:Y(v.onKeyDown,S=>{const W=S.target.closest("[data-radix-menu-content]")===S.currentTarget,X=S.ctrlKey||S.altKey||S.metaKey,ae=S.key.length===1;W&&(S.key==="Tab"&&S.preventDefault(),!X&&ae&&I(S.key));const be=k.current;if(S.target!==be||!dp.includes(S.key))return;S.preventDefault();const pe=C().filter(U=>!U.disabled).map(U=>U.ref.current);ii.includes(S.key)&&pe.reverse(),Lp(pe)}),onBlur:Y(e.onBlur,S=>{S.currentTarget.contains(S.target)||(window.clearTimeout(B.current),K.current="")}),onPointerMove:Y(e.onPointerMove,Zt(S=>{const F=S.target,W=z.current!==S.clientX;if(S.currentTarget.contains(F)&&W){const X=S.clientX>z.current?"right":"left";G.current=X,z.current=S.clientX}}))})))))))}),Ep=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.createElement(fe.div,j({},r,{ref:t}))}),Ar="MenuItem",fi="menu.itemSelect",jr=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=i.useRef(null),c=qt(Ar,e.__scopeMenu),s=Or(Ar,e.__scopeMenu),l=ve(t,a),d=i.useRef(!1),f=()=>{const u=a.current;if(!n&&u){const m=new CustomEvent(fi,{bubbles:!0,cancelable:!0});u.addEventListener(fi,h=>r?.(h),{once:!0}),xo(u,m),m.defaultPrevented?d.current=!1:c.onClose()}};return i.createElement(pi,j({},o,{ref:l,disabled:n,onClick:Y(e.onClick,f),onPointerDown:u=>{var m;(m=e.onPointerDown)===null||m===void 0||m.call(e,u),d.current=!0},onPointerUp:Y(e.onPointerUp,u=>{var m;d.current||(m=u.currentTarget)===null||m===void 0||m.click()}),onKeyDown:Y(e.onKeyDown,u=>{const m=s.searchRef.current!=="";n||m&&u.key===" "||Ir.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})}))}),pi=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,c=Or(Ar,n),s=si(n),l=i.useRef(null),d=ve(t,l),[f,u]=i.useState(!1),[m,h]=i.useState("");return i.useEffect(()=>{const p=l.current;if(p){var v;h(((v=p.textContent)!==null&&v!==void 0?v:"").trim())}},[a.children]),i.createElement(Xt.ItemSlot,{scope:n,disabled:r,textValue:o??m},i.createElement(sp,j({asChild:!0},s,{focusable:!r}),i.createElement(fe.div,j({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:d,onPointerMove:Y(e.onPointerMove,Zt(p=>{r?c.onItemLeave(p):(c.onItemEnter(p),p.defaultPrevented||p.currentTarget.focus())})),onPointerLeave:Y(e.onPointerLeave,Zt(p=>c.onItemLeave(p))),onFocus:Y(e.onFocus,()=>u(!0)),onBlur:Y(e.onBlur,()=>u(!1))}))))}),Sp=i.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return i.createElement(hi,{scope:e.__scopeMenu,checked:n},i.createElement(jr,j({role:"menuitemcheckbox","aria-checked":On(n)?"mixed":n},o,{ref:t,"data-state":Lr(n),onSelect:Y(o.onSelect,()=>r?.(On(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),_p="MenuRadioGroup",[nh,Tp]=ft(_p,{value:void 0,onValueChange:()=>{}}),kp="MenuRadioItem",Pp=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=Tp(kp,e.__scopeMenu),a=n===o.value;return i.createElement(hi,{scope:e.__scopeMenu,checked:a},i.createElement(jr,j({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":Lr(a),onSelect:Y(r.onSelect,()=>{var c;return(c=o.onValueChange)===null||c===void 0?void 0:c.call(o,n)},{checkForDefaultPrevented:!1})})))}),mi="MenuItemIndicator",[hi,Np]=ft(mi,{checked:!1}),Ip=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=Np(mi,n);return i.createElement(_t,{present:r||On(a.checked)||a.checked===!0},i.createElement(fe.span,j({},o,{ref:t,"data-state":Lr(a.checked)})))}),Mp=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.createElement(fe.div,j({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),Op="MenuSub",[rh,vi]=ft(Op),Mn="MenuSubTrigger",Dp=i.forwardRef((e,t)=>{const n=pt(Mn,e.__scopeMenu),r=qt(Mn,e.__scopeMenu),o=vi(Mn,e.__scopeMenu),a=Or(Mn,e.__scopeMenu),c=i.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,d={__scopeMenu:e.__scopeMenu},f=i.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return i.useEffect(()=>f,[f]),i.useEffect(()=>{const u=s.current;return()=>{window.clearTimeout(u),l(null)}},[s,l]),i.createElement(li,j({asChild:!0},d),i.createElement(pi,j({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":gi(n.open)},e,{ref:nn(t,o.onTriggerChange),onClick:u=>{var m;(m=e.onClick)===null||m===void 0||m.call(e,u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Y(e.onPointerMove,Zt(u=>{a.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!c.current&&(a.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:Y(e.onPointerLeave,Zt(u=>{var m;f();const h=(m=n.content)===null||m===void 0?void 0:m.getBoundingClientRect();if(h){var p;const v=(p=n.content)===null||p===void 0?void 0:p.dataset.side,x=v==="right",g=x?-5:5,w=h[x?"left":"right"],$=h[x?"right":"left"];a.onPointerGraceIntentChange({area:[{x:u.clientX+g,y:u.clientY},{x:w,y:h.top},{x:$,y:h.top},{x:$,y:h.bottom},{x:w,y:h.bottom}],side:v}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(u),u.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:Y(e.onKeyDown,u=>{const m=a.searchRef.current!=="";if(!(e.disabled||m&&u.key===" ")&&up[r.dir].includes(u.key)){var h;n.onOpenChange(!0),(h=n.content)===null||h===void 0||h.focus(),u.preventDefault()}})})))}),Ap="MenuSubContent",jp=i.forwardRef((e,t)=>{const n=ui(Ae,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=pt(Ae,e.__scopeMenu),c=qt(Ae,e.__scopeMenu),s=vi(Ap,e.__scopeMenu),l=i.useRef(null),d=ve(t,l);return i.createElement(Xt.Provider,{scope:e.__scopeMenu},i.createElement(_t,{present:r||a.open},i.createElement(Xt.Slot,{scope:e.__scopeMenu},i.createElement(Dr,j({id:s.contentId,"aria-labelledby":s.triggerId},o,{ref:d,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var u;c.isUsingKeyboardRef.current&&((u=l.current)===null||u===void 0||u.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:Y(e.onFocusOutside,f=>{f.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:Y(e.onEscapeKeyDown,f=>{c.onClose(),f.preventDefault()}),onKeyDown:Y(e.onKeyDown,f=>{const u=f.currentTarget.contains(f.target),m=fp[c.dir].includes(f.key);if(u&&m){var h;a.onOpenChange(!1),(h=s.trigger)===null||h===void 0||h.focus(),f.preventDefault()}})})))))});function gi(e){return e?"open":"closed"}function On(e){return e==="indeterminate"}function Lr(e){return On(e)?"indeterminate":e?"checked":"unchecked"}function Lp(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Fp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Vp(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let c=Fp(e,Math.max(a,0));o.length===1&&(c=c.filter(d=>d!==n));const l=c.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Bp(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,c=t.length-1;a<t.length;c=a++){const s=t[a].x,l=t[a].y,d=t[c].x,f=t[c].y;l>r!=f>r&&n<(d-s)*(r-l)/(f-l)+s&&(o=!o)}return o}function zp(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Bp(n,t)}function Zt(e){return t=>t.pointerType==="mouse"?e(t):void 0}const Wp=gp,Rp=li,Hp=wp,Up=yp,Kp=Ep,Gp=jr,Yp=Sp,Xp=Pp,qp=Ip,Zp=Mp,Jp=Dp,Qp=jp,bi="DropdownMenu",[em,oh]=ct(bi,[ci]),Ie=ci(),[tm,wi]=em(bi),nm=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:c,modal:s=!0}=e,l=Ie(t),d=i.useRef(null),[f=!1,u]=Ht({prop:o,defaultProp:a,onChange:c});return i.createElement(tm,{scope:t,triggerId:wt(),triggerRef:d,contentId:wt(),open:f,onOpenChange:u,onOpenToggle:i.useCallback(()=>u(m=>!m),[u]),modal:s},i.createElement(Wp,j({},l,{open:f,onOpenChange:u,dir:r,modal:s}),n))},rm="DropdownMenuTrigger",om=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=wi(rm,n),c=Ie(n);return i.createElement(Rp,j({asChild:!0},c),i.createElement(fe.button,j({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:nn(t,a.triggerRef),onPointerDown:Y(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:Y(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})))}),am=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Ie(t);return i.createElement(Hp,j({},r,n))},im="DropdownMenuContent",cm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=wi(im,n),a=Ie(n),c=i.useRef(!1);return i.createElement(Up,j({id:o.contentId,"aria-labelledby":o.triggerId},a,r,{ref:t,onCloseAutoFocus:Y(e.onCloseAutoFocus,s=>{var l;c.current||(l=o.triggerRef.current)===null||l===void 0||l.focus(),c.current=!1,s.preventDefault()}),onInteractOutside:Y(e.onInteractOutside,s=>{const l=s.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0,f=l.button===2||d;(!o.modal||f)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),sm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(Kp,j({},o,r,{ref:t}))}),lm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(Gp,j({},o,r,{ref:t}))}),dm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(Yp,j({},o,r,{ref:t}))}),um=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(Xp,j({},o,r,{ref:t}))}),fm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(qp,j({},o,r,{ref:t}))}),pm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(Zp,j({},o,r,{ref:t}))}),mm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(Jp,j({},o,r,{ref:t}))}),hm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(Qp,j({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),vm=nm,gm=om,bm=am,xi=cm,yi=sm,$i=lm,Ci=dm,Ei=um,Si=fm,_i=pm,Ti=mm,ki=hm,wm=vm,xm=gm,ym=L.forwardRef(({className:e,inset:t,children:n,...r},o)=>y.jsxs(Ti,{ref:o,className:ee("cp-flex cp-cursor-default cp-select-none cp-items-center cp-rounded-sm cp-px-2 cp-py-1.5 cp-text-sm cp-outline-none data-[state=open]:cp-bg-accent focus:cp-bg-accent",t&&"cp-pl-8",e),...r,children:[n,y.jsx(es,{className:"cp-ml-auto cp-h-4 cp-w-4"})]}));ym.displayName=Ti.displayName;const $m=L.forwardRef(({className:e,...t},n)=>y.jsx(ki,{ref:n,className:ee("data-[state=closed]:cp-fade-out-0 data-[state=open]:cp-fade-in-0 data-[state=closed]:cp-zoom-out-95 data-[state=open]:cp-zoom-in-95 data-[side=bottom]:cp-slide-in-from-top-2 data-[side=left]:cp-slide-in-from-right-2 data-[side=right]:cp-slide-in-from-left-2 data-[side=top]:cp-slide-in-from-bottom-2 cp-z-50 cp-min-w-[8rem] cp-overflow-hidden cp-rounded-md cp-border cp-bg-popover cp-p-1 cp-text-popover-foreground cp-shadow-lg data-[state=closed]:cp-animate-out data-[state=open]:cp-animate-in",e),...t}));$m.displayName=ki.displayName;const Pi=L.forwardRef(({className:e,sideOffset:t=4,...n},r)=>y.jsx(bm,{children:y.jsx(xi,{ref:r,sideOffset:t,className:ee("cp-z-50 cp-min-w-[8rem] cp-overflow-hidden cp-rounded-md cp-border cp-bg-popover cp-p-1 cp-text-popover-foreground cp-shadow-md","data-[state=closed]:cp-fade-out-0 data-[state=open]:cp-fade-in-0 data-[state=closed]:cp-zoom-out-95 data-[state=open]:cp-zoom-in-95 data-[side=bottom]:cp-slide-in-from-top-2 data-[side=left]:cp-slide-in-from-right-2 data-[side=right]:cp-slide-in-from-left-2 data-[side=top]:cp-slide-in-from-bottom-2 data-[state=closed]:cp-animate-out data-[state=open]:cp-animate-in",e),...n})}));Pi.displayName=xi.displayName;const Ni=L.forwardRef(({className:e,inset:t,...n},r)=>y.jsx($i,{ref:r,className:ee("cp-text-primary-700 cp-relative cp-flex cp-cursor-default cp-select-none cp-items-center cp-rounded-sm cp-px-2 cp-py-1.5 cp-text-sm cp-outline-none cp-transition-colors data-[disabled]:cp-pointer-events-none focus:cp-bg-accent focus:cp-text-primary-900 data-[disabled]:cp-text-primary-500",t&&"cp-pl-8",e),...n}));Ni.displayName=$i.displayName;const Ii=L.forwardRef(({className:e,children:t,checked:n,...r},o)=>y.jsxs(Ci,{ref:o,className:ee("cp-text-primary-700 cp-relative cp-flex cp-cursor-default cp-select-none cp-items-center cp-rounded-sm cp-py-1.5 cp-pr-2 cp-pl-8 cp-text-sm cp-outline-none cp-transition-colors data-[disabled]:cp-pointer-events-none focus:cp-bg-accent focus:cp-text-accent-foreground",e),checked:n,...r,children:[y.jsx("span",{className:"cp-absolute cp-left-2 cp-flex cp-h-3.5 cp-w-3.5 cp-items-center cp-justify-center",children:y.jsx(Si,{children:y.jsx(mo,{className:"cp-h-4 cp-w-4"})})}),t]}));Ii.displayName=Ci.displayName;const Cm=L.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(Ei,{ref:r,className:ee("cp-text-primary-700 cp-relative cp-flex cp-cursor-default cp-select-none cp-items-center cp-rounded-sm cp-py-1.5 cp-pr-2 cp-pl-8 cp-text-sm cp-outline-none cp-transition-colors data-[disabled]:cp-pointer-events-none focus:cp-bg-accent focus:cp-text-accent-foreground data-[disabled]:cp-text-primary-500",e),...n,children:[y.jsx("span",{className:"cp-absolute cp-left-2 cp-flex cp-h-3.5 cp-w-3.5 cp-items-center cp-justify-center",children:y.jsx(Si,{children:y.jsx(os,{className:"cp-h-4 cp-w-4 cp-fill-current"})})}),t]}));Cm.displayName=Ei.displayName;const Em=L.forwardRef(({className:e,inset:t,...n},r)=>y.jsx(yi,{ref:r,className:ee("cp-px-2 cp-py-1.5 cp-font-semibold cp-text-sm",t&&"cp-pl-8",e),...n}));Em.displayName=yi.displayName;const Sm=L.forwardRef(({className:e,...t},n)=>y.jsx(_i,{ref:n,className:ee("-cp-mx-1 cp-my-1 cp-h-px cp-bg-muted",e),...t}));Sm.displayName=_i.displayName;function _m(){const{hasSomeEntireRow:e,emptySize:t,staticRows:n,columns:r,onInsertNewRow:o,onRemoveRow:a,onColumnVisibilityChange:c,onRestoreColumnsVisibility:s}=je(),l=i.useMemo(()=>r.filter(({state:h})=>h.visible),[r]),d=i.useMemo(()=>r.length===l.length,[r.length,l.length]),f="Exibindo todas as colunas",u=`Exibindo ${l.length} de ${r.length} colunas`,m=d?f:u;return y.jsxs("div",{className:"cp-sticky cp-top-0 cp-z-50 cp-flex cp-w-full cp-items-center cp-justify-between cp-rounded-t-lg cp-border cp-border-primary-200 cp-bg-info-100 cp-px-4 cp-py-2",children:[y.jsxs("div",{className:"cp-flex cp-items-center cp-gap-2",children:[y.jsx(mn,{delayDuration:25,children:y.jsxs(hn,{children:[y.jsx(vn,{asChild:!0,children:y.jsx("button",{type:"button",disabled:n,onClick:o,className:"cp-flex cp-items-center cp-justify-center cp-w-9 cp-h-9 cp-rounded-md cp-border cp-border-transparent hover:cp-bg-info-50 hover:cp-text-info-400 active:cp-bg-info-50 active:cp-border-info-400 active:cp-text-info-400 cp-text-primary-700","data-cypress":"table-add-new-row",children:y.jsx(ys,{className:"cp-w-5 cp-h-5",color:"currentColor"})})}),y.jsx(Kt,{children:y.jsx("p",{children:"Inserir linha"})})]})}),y.jsx(mn,{delayDuration:25,children:y.jsxs(hn,{children:[y.jsx(vn,{asChild:!0,children:y.jsx("button",{type:"button",disabled:n||t||!e,onClick:a,className:"cp-flex cp-items-center cp-justify-center cp-w-9 cp-h-9 cp-rounded-md cp-border cp-border-transparent hover:cp-bg-danger-50 hover:cp-text-danger-400 active:cp-bg-danger-50 active:cp-border-danger-400 active:cp-text-danger-400 cp-text-primary-700","data-cypress":"table-delete-selected-row",children:y.jsx($s,{className:"cp-w-5 cp-h-5",color:"currentColor"})})}),y.jsx(Kt,{children:y.jsx("p",{children:"Excluir linha(s)"})})]})})]}),y.jsx("div",{className:"cp-flex cp-items-center cp-gap-4",children:y.jsxs(wm,{children:[y.jsx(xm,{"data-cypress":"table-hide-columns-button",asChild:!0,className:"cp-w-56 cp-bg-white",children:y.jsxs("button",{type:"button",className:"cp-flex cp-items-center cp-justify-between cp-p-2 cp-bg-white cp-border cp-border-primary-300 cp-rounded-md cp-text-md cp-text-primary-600 cp-max-w-[220px]",children:[y.jsx("span",{children:m}),y.jsx(ps,{className:"cp-h-4 cp-w-4 cp-text-primary-500",color:"currentColor"})]})}),y.jsxs(Pi,{className:"cp-w-56",children:[y.jsx(Ni,{disabled:d,onClick:s,className:"cp-justify-between cp-text-sm","data-cypress":"table-restore-columns",children:y.jsx("span",{children:"Reexibir todas as colunas"})}),r.map(({name:h,id:p,alphabetLetter:v,position:x,state:g})=>y.jsxs(Ii,{checked:g.visible,onCheckedChange:w=>c({columnId:p,visible:w}),onSelect:w=>w.preventDefault(),className:"cp-justify-between cp-text-sm","data-cypress":`table-hide-column-${p}`,children:[y.jsx("span",{children:h}),y.jsx("span",{className:"cp-text-sm cp-text-neutral-500",children:v})]},`spreadsheet__column__dropdown_checkbox__key__${p}__${x}`))]})]})})]})}function Tm(e){const{className:t,...n}=e;return y.jsx(Bc,{...n,children:y.jsxs(po.Root,{className:ee(t,"cp-h-full"),children:[y.jsx(_m,{}),y.jsxs(po.Matrix,{className:"cp-scrollbar-thin cp-overflow-y-clip cp-overflow-x-scroll",children:[y.jsx(Gf,{className:"cp-absolute cp-z-50"}),y.jsx(xd,{}),y.jsx(Kf,{})]})]})})}function km(e){const{fileName:t="Declaração de viabilidade - Esgoto.pdf",fileSizeInMb:n="8.15MB • Versão 1",onDownload:r,onClick:o,state:a,...c}=e,s=d=>{(a==="Idle"||a==="Finished")&&r(),o?.(d)},l=a==="Disabled";return y.jsxs("button",{className:ee("cp-flex cp-h-[34px] cp-items-center cp-gap-1 cp-rounded-md cp-border cp-border-primary-100 cp-px-4 cp-text-primary-700 cp-transition-all cp-ease-linear hover:cp-shadow-md","disabled:cp-border-primary-100 disabled:cp-bg-primary-100 disabled:cp-text-primary-500 disabled:cp-shadow-none"),type:"button",onClick:s,disabled:l,"aria-disabled":l,...c,children:[y.jsxs("div",{className:"cp-flex cp-items-center cp-gap-2",children:[y.jsx(gs,{className:"cp-h-4 cp-w-4 cp-shrink-0"}),y.jsx("p",{className:"cp-whitespace-nowrap cp-font-bold cp-text-md",children:t}),y.jsx("p",{className:"cp-whitespace-nowrap cp-text-xs",children:n})]}),a==="Finished"&&y.jsx("div",{className:"cp-flex cp-w-32 cp-items-center cp-justify-end",children:y.jsx(ms,{className:"cp-h-4 cp-w-4 cp-text-success-400"})}),a==="Loading"&&y.jsx("div",{className:"cp-flex cp-w-32 cp-items-center cp-justify-end",children:y.jsx(ws,{className:"cp-h-4 cp-w-4 cp-shrink-0 cp-animate-spin cp-text-success-400"})}),y.jsx(Pm,{state:a})]})}function Pm({state:e}){return e==="Disabled"?y.jsxs("div",{className:"cp-flex cp-w-32 cp-items-center cp-text-primary-500",children:[y.jsx(go,{className:"cp-mr-1 cp-h-4 cp-w-4 cp-shrink-0 cp-text-current"}),y.jsx("p",{className:"cp-mr-2 cp-whitespace-nowrap cp-font-bold cp-text-sm cp-text-current",children:"Novo Arquivo"}),y.jsx(vo,{className:"cp-h-4 cp-w-4 cp-text-primary-500"})]}):e==="Idle"?y.jsxs("div",{className:"cp-flex cp-w-32 cp-items-center cp-text-info-300",children:[y.jsx(go,{className:"cp-mr-1 cp-h-4 cp-w-4 cp-shrink-0 cp-text-current"}),y.jsx("p",{className:"cp-mr-2 cp-whitespace-nowrap cp-font-bold cp-text-sm cp-text-current",children:"Novo Arquivo"}),y.jsx(vo,{className:"cp-h-4 cp-w-4 cp-text-primary-700"})]}):null}const Nm={Spreadsheet:Tm,FileUploader:km};Ge.CapLink=Nm,Object.defineProperty(Ge,Symbol.toStringTag,{value:"Module"})});
175
175
  //# sourceMappingURL=index.umd.js.map