caplink-saas-ui-shared-component-library 0.3.2 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,6 +1,6 @@
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: }.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-left-0{left:-0px}.-left-0\\.5{left:-.125rem}.-right-\\[3px\\]{right:-3px}.-top-0{top:-0px}.-top-0\\.5{top:-.125rem}.-top-1{top:-.25rem}.-top-4{top:-1rem}.bottom-0{bottom:0}.left-0{left:0}.left-2{left:.5rem}.left-2\\.5{left:.625rem}.left-4{left:1rem}.right-0{right:0}.right-2{right:.5rem}.right-2\\.5{right:.625rem}.top-0{top:0}.top-1\\/2{top:50%}.top-8{top:2rem}.top-\\[58px\\]{top:58px}.z-40{z-index:40}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.ml-auto{margin-left:auto}.mt-\\[calc\\(28px\\+36px\\)\\]{margin-top:64px}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.flex{display:flex}.inline-flex{display:inline-flex}.h-0{height:0px}.h-0\\.5{height:.125rem}.h-10{height:2.5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[calc\\(100\\%-28px-28px\\)\\]{height:calc(100% - 56px)}.h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.max-h-96{max-height:24rem}.min-h-\\[24px\\]{min-height:24px}.min-h-\\[260px\\]{min-height:260px}.w-0{width:0px}.w-0\\.5{width:.125rem}.w-1{width:.25rem}.w-1\\.5{width:.375rem}.w-12{width:3rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-32{width:8rem}.w-4{width:1rem}.w-56{width:14rem}.w-9{width:2.25rem}.w-fit{width:fit-content}.w-full{width:100%}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.max-w-\\[240px\\]{max-width:240px}.shrink-0{flex-shrink:0}.-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))}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.select-none{user-select:none}.resize-none{resize:none}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.overflow-hidden{overflow:hidden}.overflow-y-clip{overflow-y:clip}.overflow-x-scroll{overflow-x:scroll}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-t-md{border-top-left-radius:calc(var(--radius) - 2px);border-top-right-radius:calc(var(--radius) - 2px)}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0px}.border-r{border-right-width:1px}.border-r-0{border-right-width:0px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0px}.border-none{border-style:none}.border-input{border-color:hsl(var(--input))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\\[\\#0085FF\\]{--tw-bg-opacity: 1;background-color:rgb(0 133 255 / var(--tw-bg-opacity))}.bg-\\[\\#EAF5FF\\]{--tw-bg-opacity: 1;background-color:rgb(234 245 255 / var(--tw-bg-opacity))}.bg-\\[\\#F6F6F9\\]{--tw-bg-opacity: 1;background-color:rgb(246 246 249 / var(--tw-bg-opacity))}.bg-background{background-color:hsl(var(--background))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-neutral-100{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.bg-neutral-300{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity))}.bg-neutral-400{--tw-bg-opacity: 1;background-color:rgb(163 163 163 / var(--tw-bg-opacity))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\\/25{background-color:#ffffff40}.fill-current{fill:currentColor}.p-1{padding:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-8{padding-right:2rem}.pr-px{padding-right:1px}.text-left{text-align:left}.text-\\[10px\\]{font-size:10px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.tracking-widest{letter-spacing:.1em}.text-\\[\\#4A4A6A\\]{--tw-text-opacity: 1;color:rgb(74 74 106 / var(--tw-text-opacity))}.text-\\[\\#8E8EA9\\]{--tw-text-opacity: 1;color:rgb(142 142 169 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.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)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -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)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -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)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-2{outline-width:2px}.outline-\\[3px\\]{outline-width:3px}.outline-offset-2{outline-offset:2px}.outline-blue-500{outline-color:#3b82f6}.outline-sky-100{outline-color:#e0f2fe}.outline-sky-200{outline-color:#bae6fd}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.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)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(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)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.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}.transition-none{transition-property:none}.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))}}.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}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-linear{animation-timing-function:linear}*{font-family:Arial,Helvetica,sans-serif}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\\:bg-\\[\\#8FD6FF\\]:hover{--tw-bg-opacity: 1;background-color:rgb(143 214 255 / var(--tw-bg-opacity))}.hover\\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:bg-destructive\\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\\:bg-primary\\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\\:bg-secondary\\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\: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\\: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\\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\: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\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.active\\:bg-\\[\\#0085FF\\]:active{--tw-bg-opacity: 1;background-color:rgb(0 133 255 / var(--tw-bg-opacity))}.active\\:text-white:active{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[side\\=bottom\\]\\: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\\]\\:-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\\]\\: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\\]\\:-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\\]\\:transform-none[data-state=closed]{transform:none}.data-\\[side\\=bottom\\]\\:animate-none[data-side=bottom],.data-\\[state\\=closed\\]\\:animate-none[data-state=closed]{animation:none}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=closed\\]\\:transition-none[data-state=closed]{transition-property:none}.data-\\[state\\=open\\]\\: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\\]\\: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\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.\\[\\&\\>span\\]\\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- (function(Ke,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):(Ke=typeof globalThis<"u"?globalThis:Ke||self,i(Ke["caplink-saas-ui-shared-component-library"]={},Ke.React,Ke.ReactDOM))})(this,function(Ke,i,gt){"use strict";var Br=document.createElement("style");Br.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: }.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-left-0{left:-0px}.-left-0\\.5{left:-.125rem}.-right-\\[3px\\]{right:-3px}.-top-0{top:-0px}.-top-0\\.5{top:-.125rem}.-top-1{top:-.25rem}.-top-4{top:-1rem}.bottom-0{bottom:0}.left-0{left:0}.left-2{left:.5rem}.left-2\\.5{left:.625rem}.left-4{left:1rem}.right-0{right:0}.right-2{right:.5rem}.right-2\\.5{right:.625rem}.top-0{top:0}.top-1\\/2{top:50%}.top-8{top:2rem}.top-\\[58px\\]{top:58px}.z-40{z-index:40}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.ml-auto{margin-left:auto}.mt-\\[calc\\(28px\\+36px\\)\\]{margin-top:64px}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.flex{display:flex}.inline-flex{display:inline-flex}.h-0{height:0px}.h-0\\.5{height:.125rem}.h-10{height:2.5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[calc\\(100\\%-28px-28px\\)\\]{height:calc(100% - 56px)}.h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.max-h-96{max-height:24rem}.min-h-\\[24px\\]{min-height:24px}.min-h-\\[260px\\]{min-height:260px}.w-0{width:0px}.w-0\\.5{width:.125rem}.w-1{width:.25rem}.w-1\\.5{width:.375rem}.w-12{width:3rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-32{width:8rem}.w-4{width:1rem}.w-56{width:14rem}.w-9{width:2.25rem}.w-fit{width:fit-content}.w-full{width:100%}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.max-w-\\[240px\\]{max-width:240px}.shrink-0{flex-shrink:0}.-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))}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.select-none{user-select:none}.resize-none{resize:none}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.overflow-hidden{overflow:hidden}.overflow-y-clip{overflow-y:clip}.overflow-x-scroll{overflow-x:scroll}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-t-md{border-top-left-radius:calc(var(--radius) - 2px);border-top-right-radius:calc(var(--radius) - 2px)}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0px}.border-r{border-right-width:1px}.border-r-0{border-right-width:0px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0px}.border-none{border-style:none}.border-input{border-color:hsl(var(--input))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\\[\\#0085FF\\]{--tw-bg-opacity: 1;background-color:rgb(0 133 255 / var(--tw-bg-opacity))}.bg-\\[\\#EAF5FF\\]{--tw-bg-opacity: 1;background-color:rgb(234 245 255 / var(--tw-bg-opacity))}.bg-\\[\\#F6F6F9\\]{--tw-bg-opacity: 1;background-color:rgb(246 246 249 / var(--tw-bg-opacity))}.bg-background{background-color:hsl(var(--background))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-neutral-100{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.bg-neutral-300{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity))}.bg-neutral-400{--tw-bg-opacity: 1;background-color:rgb(163 163 163 / var(--tw-bg-opacity))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\\/25{background-color:#ffffff40}.fill-current{fill:currentColor}.p-1{padding:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-8{padding-right:2rem}.pr-px{padding-right:1px}.text-left{text-align:left}.text-\\[10px\\]{font-size:10px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.tracking-widest{letter-spacing:.1em}.text-\\[\\#4A4A6A\\]{--tw-text-opacity: 1;color:rgb(74 74 106 / var(--tw-text-opacity))}.text-\\[\\#8E8EA9\\]{--tw-text-opacity: 1;color:rgb(142 142 169 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.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)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -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)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -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)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-2{outline-width:2px}.outline-\\[3px\\]{outline-width:3px}.outline-offset-2{outline-offset:2px}.outline-blue-500{outline-color:#3b82f6}.outline-sky-100{outline-color:#e0f2fe}.outline-sky-200{outline-color:#bae6fd}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.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)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(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)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.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}.transition-none{transition-property:none}.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))}}.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}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-linear{animation-timing-function:linear}*{font-family:Arial,Helvetica,sans-serif}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\\:bg-\\[\\#8FD6FF\\]:hover{--tw-bg-opacity: 1;background-color:rgb(143 214 255 / var(--tw-bg-opacity))}.hover\\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:bg-destructive\\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\\:bg-primary\\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\\:bg-secondary\\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\: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\\: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\\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\: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\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.active\\:bg-\\[\\#0085FF\\]:active{--tw-bg-opacity: 1;background-color:rgb(0 133 255 / var(--tw-bg-opacity))}.active\\:text-white:active{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[side\\=bottom\\]\\: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\\]\\:-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\\]\\: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\\]\\:-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\\]\\:transform-none[data-state=closed]{transform:none}.data-\\[side\\=bottom\\]\\:animate-none[data-side=bottom],.data-\\[state\\=closed\\]\\:animate-none[data-state=closed]{animation:none}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=closed\\]\\:transition-none[data-state=closed]{transition-property:none}.data-\\[state\\=open\\]\\: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\\]\\: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\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.\\[\\&\\>span\\]\\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}
3
- `,document.head.appendChild(Br);function zr(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 D=zr(i),Bi=zr(gt);var Mn={exports:{}},Dt={};/**
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: }.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-left-0{left:-0px}.-left-0\\.5{left:-.125rem}.-right-\\[3px\\]{right:-3px}.-top-0{top:-0px}.-top-0\\.5{top:-.125rem}.-top-1{top:-.25rem}.-top-4{top:-1rem}.bottom-0{bottom:0}.left-0{left:0}.left-2{left:.5rem}.left-2\\.5{left:.625rem}.left-4{left:1rem}.right-0{right:0}.right-2{right:.5rem}.right-2\\.5{right:.625rem}.top-0{top:0}.top-1\\/2{top:50%}.top-8{top:2rem}.top-\\[58px\\]{top:58px}.z-40{z-index:40}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-\\[calc\\(28px\\+36px\\)\\]{margin-top:64px}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.flex{display:flex}.inline-flex{display:inline-flex}.h-0{height:0px}.h-0\\.5{height:.125rem}.h-10{height:2.5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[34px\\]{height:34px}.h-\\[calc\\(100\\%-28px-28px\\)\\]{height:calc(100% - 56px)}.h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.max-h-96{max-height:24rem}.min-h-\\[24px\\]{min-height:24px}.min-h-\\[260px\\]{min-height:260px}.w-0{width:0px}.w-0\\.5{width:.125rem}.w-1{width:.25rem}.w-1\\.5{width:.375rem}.w-12{width:3rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-32{width:8rem}.w-4{width:1rem}.w-56{width:14rem}.w-9{width:2.25rem}.w-\\[110px\\]{width:110px}.w-fit{width:fit-content}.w-full{width:100%}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.max-w-\\[240px\\]{max-width:240px}.shrink-0{flex-shrink:0}.-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 spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.select-none{user-select:none}.resize-none{resize:none}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.overflow-hidden{overflow:hidden}.overflow-y-clip{overflow-y:clip}.overflow-x-scroll{overflow-x:scroll}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-t-md{border-top-left-radius:calc(var(--radius) - 2px);border-top-right-radius:calc(var(--radius) - 2px)}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0px}.border-r{border-right-width:1px}.border-r-0{border-right-width:0px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0px}.border-none{border-style:none}.border-\\[\\#E5E5F4\\]{--tw-border-opacity: 1;border-color:rgb(229 229 244 / var(--tw-border-opacity))}.border-input{border-color:hsl(var(--input))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\\[\\#0085FF\\]{--tw-bg-opacity: 1;background-color:rgb(0 133 255 / var(--tw-bg-opacity))}.bg-\\[\\#EAF5FF\\]{--tw-bg-opacity: 1;background-color:rgb(234 245 255 / var(--tw-bg-opacity))}.bg-\\[\\#F6F6F9\\]{--tw-bg-opacity: 1;background-color:rgb(246 246 249 / var(--tw-bg-opacity))}.bg-background{background-color:hsl(var(--background))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-neutral-100{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.bg-neutral-300{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity))}.bg-neutral-400{--tw-bg-opacity: 1;background-color:rgb(163 163 163 / var(--tw-bg-opacity))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\\/25{background-color:#ffffff40}.fill-current{fill:currentColor}.p-1{padding:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-8{padding-right:2rem}.pr-px{padding-right:1px}.text-left{text-align:left}.text-\\[10px\\]{font-size:10px}.text-\\[14px\\]{font-size:14px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.tracking-widest{letter-spacing:.1em}.text-\\[\\#199652\\]{--tw-text-opacity: 1;color:rgb(25 150 82 / var(--tw-text-opacity))}.text-\\[\\#4657E1\\]{--tw-text-opacity: 1;color:rgb(70 87 225 / var(--tw-text-opacity))}.text-\\[\\#474772\\]{--tw-text-opacity: 1;color:rgb(71 71 114 / var(--tw-text-opacity))}.text-\\[\\#4A4A6A\\]{--tw-text-opacity: 1;color:rgb(74 74 106 / var(--tw-text-opacity))}.text-\\[\\#8E8EA9\\]{--tw-text-opacity: 1;color:rgb(142 142 169 / var(--tw-text-opacity))}.text-\\[\\#9292BA\\]{--tw-text-opacity: 1;color:rgb(146 146 186 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity))}.text-current{color:currentColor}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.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)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -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)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -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)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-2{outline-width:2px}.outline-\\[3px\\]{outline-width:3px}.outline-offset-2{outline-offset:2px}.outline-blue-500{outline-color:#3b82f6}.outline-sky-100{outline-color:#e0f2fe}.outline-sky-200{outline-color:#bae6fd}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.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)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(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)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.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}.transition-none{transition-property:none}.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))}}.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}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-linear{animation-timing-function:linear}*{font-family:Arial,Helvetica,sans-serif}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\\:bg-\\[\\#8FD6FF\\]:hover{--tw-bg-opacity: 1;background-color:rgb(143 214 255 / var(--tw-bg-opacity))}.hover\\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:bg-destructive\\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\\:bg-primary\\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\\:bg-secondary\\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -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)}.focus\\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\: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\\: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\\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\: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\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.active\\:bg-\\[\\#0085FF\\]:active{--tw-bg-opacity: 1;background-color:rgb(0 133 255 / var(--tw-bg-opacity))}.active\\:text-white:active{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-\\[\\#E5E5F4\\]:disabled{--tw-border-opacity: 1;border-color:rgb(229 229 244 / var(--tw-border-opacity))}.disabled\\:bg-\\[\\#E5E5F4\\]:disabled{--tw-bg-opacity: 1;background-color:rgb(229 229 244 / var(--tw-bg-opacity))}.disabled\\:text-\\[\\#9292BA\\]:disabled{--tw-text-opacity: 1;color:rgb(146 146 186 / var(--tw-text-opacity))}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\: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\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[side\\=bottom\\]\\: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\\]\\:-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\\]\\: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\\]\\:-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\\]\\:transform-none[data-state=closed]{transform:none}.data-\\[side\\=bottom\\]\\:animate-none[data-side=bottom],.data-\\[state\\=closed\\]\\:animate-none[data-state=closed]{animation:none}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=closed\\]\\:transition-none[data-state=closed]{transition-property:none}.data-\\[state\\=open\\]\\: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\\]\\: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\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.\\[\\&\\>span\\]\\: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(Ke,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):(Ke=typeof globalThis<"u"?globalThis:Ke||self,i(Ke["caplink-saas-ui-shared-component-library"]={},Ke.React,Ke.ReactDOM))})(this,function(Ke,i,gt){"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: }.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-left-0{left:-0px}.-left-0\\.5{left:-.125rem}.-right-\\[3px\\]{right:-3px}.-top-0{top:-0px}.-top-0\\.5{top:-.125rem}.-top-1{top:-.25rem}.-top-4{top:-1rem}.bottom-0{bottom:0}.left-0{left:0}.left-2{left:.5rem}.left-2\\.5{left:.625rem}.left-4{left:1rem}.right-0{right:0}.right-2{right:.5rem}.right-2\\.5{right:.625rem}.top-0{top:0}.top-1\\/2{top:50%}.top-8{top:2rem}.top-\\[58px\\]{top:58px}.z-40{z-index:40}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-\\[calc\\(28px\\+36px\\)\\]{margin-top:64px}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.flex{display:flex}.inline-flex{display:inline-flex}.h-0{height:0px}.h-0\\.5{height:.125rem}.h-10{height:2.5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[34px\\]{height:34px}.h-\\[calc\\(100\\%-28px-28px\\)\\]{height:calc(100% - 56px)}.h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.max-h-96{max-height:24rem}.min-h-\\[24px\\]{min-height:24px}.min-h-\\[260px\\]{min-height:260px}.w-0{width:0px}.w-0\\.5{width:.125rem}.w-1{width:.25rem}.w-1\\.5{width:.375rem}.w-12{width:3rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-32{width:8rem}.w-4{width:1rem}.w-56{width:14rem}.w-9{width:2.25rem}.w-\\[110px\\]{width:110px}.w-fit{width:fit-content}.w-full{width:100%}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.max-w-\\[240px\\]{max-width:240px}.shrink-0{flex-shrink:0}.-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 spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.select-none{user-select:none}.resize-none{resize:none}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.overflow-hidden{overflow:hidden}.overflow-y-clip{overflow-y:clip}.overflow-x-scroll{overflow-x:scroll}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-t-md{border-top-left-radius:calc(var(--radius) - 2px);border-top-right-radius:calc(var(--radius) - 2px)}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0px}.border-r{border-right-width:1px}.border-r-0{border-right-width:0px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0px}.border-none{border-style:none}.border-\\[\\#E5E5F4\\]{--tw-border-opacity: 1;border-color:rgb(229 229 244 / var(--tw-border-opacity))}.border-input{border-color:hsl(var(--input))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\\[\\#0085FF\\]{--tw-bg-opacity: 1;background-color:rgb(0 133 255 / var(--tw-bg-opacity))}.bg-\\[\\#EAF5FF\\]{--tw-bg-opacity: 1;background-color:rgb(234 245 255 / var(--tw-bg-opacity))}.bg-\\[\\#F6F6F9\\]{--tw-bg-opacity: 1;background-color:rgb(246 246 249 / var(--tw-bg-opacity))}.bg-background{background-color:hsl(var(--background))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-neutral-100{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.bg-neutral-300{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity))}.bg-neutral-400{--tw-bg-opacity: 1;background-color:rgb(163 163 163 / var(--tw-bg-opacity))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\\/25{background-color:#ffffff40}.fill-current{fill:currentColor}.p-1{padding:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-8{padding-right:2rem}.pr-px{padding-right:1px}.text-left{text-align:left}.text-\\[10px\\]{font-size:10px}.text-\\[14px\\]{font-size:14px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.tracking-widest{letter-spacing:.1em}.text-\\[\\#199652\\]{--tw-text-opacity: 1;color:rgb(25 150 82 / var(--tw-text-opacity))}.text-\\[\\#4657E1\\]{--tw-text-opacity: 1;color:rgb(70 87 225 / var(--tw-text-opacity))}.text-\\[\\#474772\\]{--tw-text-opacity: 1;color:rgb(71 71 114 / var(--tw-text-opacity))}.text-\\[\\#4A4A6A\\]{--tw-text-opacity: 1;color:rgb(74 74 106 / var(--tw-text-opacity))}.text-\\[\\#8E8EA9\\]{--tw-text-opacity: 1;color:rgb(142 142 169 / var(--tw-text-opacity))}.text-\\[\\#9292BA\\]{--tw-text-opacity: 1;color:rgb(146 146 186 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity))}.text-current{color:currentColor}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.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)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -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)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -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)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-2{outline-width:2px}.outline-\\[3px\\]{outline-width:3px}.outline-offset-2{outline-offset:2px}.outline-blue-500{outline-color:#3b82f6}.outline-sky-100{outline-color:#e0f2fe}.outline-sky-200{outline-color:#bae6fd}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.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)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(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)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.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}.transition-none{transition-property:none}.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))}}.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}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-linear{animation-timing-function:linear}*{font-family:Arial,Helvetica,sans-serif}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\\:bg-\\[\\#8FD6FF\\]:hover{--tw-bg-opacity: 1;background-color:rgb(143 214 255 / var(--tw-bg-opacity))}.hover\\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:bg-destructive\\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\\:bg-primary\\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\\:bg-secondary\\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -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)}.focus\\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\: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\\: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\\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\: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\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.active\\:bg-\\[\\#0085FF\\]:active{--tw-bg-opacity: 1;background-color:rgb(0 133 255 / var(--tw-bg-opacity))}.active\\:text-white:active{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-\\[\\#E5E5F4\\]:disabled{--tw-border-opacity: 1;border-color:rgb(229 229 244 / var(--tw-border-opacity))}.disabled\\:bg-\\[\\#E5E5F4\\]:disabled{--tw-bg-opacity: 1;background-color:rgb(229 229 244 / var(--tw-bg-opacity))}.disabled\\:text-\\[\\#9292BA\\]:disabled{--tw-text-opacity: 1;color:rgb(146 146 186 / var(--tw-text-opacity))}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\: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\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[side\\=bottom\\]\\: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\\]\\:-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\\]\\: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\\]\\:-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\\]\\:transform-none[data-state=closed]{transform:none}.data-\\[side\\=bottom\\]\\:animate-none[data-side=bottom],.data-\\[state\\=closed\\]\\:animate-none[data-state=closed]{animation:none}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=closed\\]\\:transition-none[data-state=closed]{transition-property:none}.data-\\[state\\=open\\]\\: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\\]\\: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\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.\\[\\&\\>span\\]\\: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 D=Hr(i),zi=Hr(gt);var An={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 Wr;function zi(){if(Wr)return Dt;Wr=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 s(c,l,u){var f,d={},m=null,v=null;u!==void 0&&(m=""+u),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(v=l.ref);for(f in l)r.call(l,f)&&!a.hasOwnProperty(f)&&(d[f]=l[f]);if(c&&c.defaultProps)for(f in l=c.defaultProps,l)d[f]===void 0&&(d[f]=l[f]);return{$$typeof:t,type:c,key:m,ref:v,props:d,_owner:o.current}}return Dt.Fragment=n,Dt.jsx=s,Dt.jsxs=s,Dt}var jt={};/**
11
+ */var Ur;function Wi(){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 s(c,l,d){var f,u={},m=null,v=null;d!==void 0&&(m=""+d),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(v=l.ref);for(f in l)r.call(l,f)&&!a.hasOwnProperty(f)&&(u[f]=l[f]);if(c&&c.defaultProps)for(f in l=c.defaultProps,l)u[f]===void 0&&(u[f]=l[f]);return{$$typeof:t,type:c,key:m,ref:v,props:u,_owner:o.current}}return jt.Fragment=n,jt.jsx=s,jt.jsxs=s,jt}var Lt={};/**
12
12
  * @license React
13
13
  * react-jsx-runtime.development.js
14
14
  *
@@ -16,27 +16,28 @@
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 Rr;function Wi(){return Rr||(Rr=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"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),p=Symbol.iterator,h="@@iterator";function x(b){if(b===null||typeof b!="object")return null;var T=p&&b[p]||b[h];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,ue=q.getStackAddendum();ue!==""&&(T+="%s",V=V.concat([ue]));var fe=V.map(function(ae){return String(ae)});fe.unshift("Warning: "+T),Function.prototype.apply.call(console[b],console,fe)}}var C=!1,E=!1,O=!1,k=!1,_=!1,z;z=Symbol.for("react.module.reference");function K(b){return!!(typeof b=="string"||typeof b=="function"||b===r||b===a||_||b===o||b===u||b===f||k||b===v||C||E||O||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===d||b.$$typeof===s||b.$$typeof===c||b.$$typeof===l||b.$$typeof===z||b.getModuleId!==void 0))}function B(b,T,V){var q=b.displayName;if(q)return q;var ue=T.displayName||T.name||"";return ue!==""?V+"("+ue+")":V}function P(b){return b.displayName||"Context"}function H(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 u:return"Suspense";case f:return"SuspenseList"}if(typeof b=="object")switch(b.$$typeof){case c:var T=b;return P(T)+".Consumer";case s:var V=b;return P(V._context)+".Provider";case l:return B(b,b.render,"ForwardRef");case d:var q=b.displayName||null;return q!==null?q:H(b.type)||"Memo";case m:{var ue=b,fe=ue._payload,ae=ue._init;try{return H(ae(fe))}catch{return null}}}return null}var L=Object.assign,R=0,M,I,N,S,F,W,X;function re(){}re.__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:re,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:L({},b,{value:M}),info:L({},b,{value:I}),warn:L({},b,{value:N}),error:L({},b,{value:S}),group:L({},b,{value:F}),groupCollapsed:L({},b,{value:W}),groupEnd:L({},b,{value:X})})}R<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var de=g.ReactCurrentDispatcher,G;function ee(b,T,V){{if(G===void 0)try{throw Error()}catch(ue){var q=ue.stack.trim().match(/\n( *(at )?)/);G=q&&q[1]||""}return`
20
- `+G+b}}var oe=!1,ne;{var ce=typeof WeakMap=="function"?WeakMap:Map;ne=new ce}function ie(b,T){if(!b||oe)return"";{var V=ne.get(b);if(V!==void 0)return V}var q;oe=!0;var ue=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var fe;fe=de.current,de.current=null,be();try{if(T){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(Te){q=Te}Reflect.construct(b,[],ae)}else{try{ae.call()}catch(Te){q=Te}b.call(ae.prototype)}}else{try{throw Error()}catch(Te){q=Te}b()}}catch(Te){if(Te&&q&&typeof Te.stack=="string"){for(var te=Te.stack.split(`
19
+ */var Kr;function Ri(){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"),s=Symbol.for("react.provider"),c=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"),v=Symbol.for("react.offscreen"),p=Symbol.iterator,h="@@iterator";function x(b){if(b===null||typeof b!="object")return null;var T=p&&b[p]||b[h];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,B=new Array(T>1?T-1:0),q=1;q<T;q++)B[q-1]=arguments[q];$("error",b,B)}}function $(b,T,B){{var q=g.ReactDebugCurrentFrame,ue=q.getStackAddendum();ue!==""&&(T+="%s",B=B.concat([ue]));var fe=B.map(function(ae){return String(ae)});fe.unshift("Warning: "+T),Function.prototype.apply.call(console[b],console,fe)}}var C=!1,E=!1,M=!1,k=!1,_=!1,z;z=Symbol.for("react.module.reference");function R(b){return!!(typeof b=="string"||typeof b=="function"||b===r||b===a||_||b===o||b===d||b===f||k||b===v||C||E||M||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===u||b.$$typeof===s||b.$$typeof===c||b.$$typeof===l||b.$$typeof===z||b.getModuleId!==void 0))}function L(b,T,B){var q=b.displayName;if(q)return q;var ue=T.displayName||T.name||"";return ue!==""?B+"("+ue+")":B}function P(b){return b.displayName||"Context"}function U(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 c:var T=b;return P(T)+".Consumer";case s:var B=b;return P(B._context)+".Provider";case l:return L(b,b.render,"ForwardRef");case u:var q=b.displayName||null;return q!==null?q:U(b.type)||"Memo";case m:{var ue=b,fe=ue._payload,ae=ue._init;try{return U(ae(fe))}catch{return null}}}return null}var F=Object.assign,H=0,I,O,N,S,V,W,X;function oe(){}oe.__reactDisabledLog=!0;function be(){{if(H===0){I=console.log,O=console.info,N=console.warn,S=console.error,V=console.group,W=console.groupCollapsed,X=console.groupEnd;var b={configurable:!0,enumerable:!0,value:oe,writable:!0};Object.defineProperties(console,{info:b,log:b,warn:b,error:b,group:b,groupCollapsed:b,groupEnd:b})}H++}}function ge(){{if(H--,H===0){var b={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},b,{value:I}),info:F({},b,{value:O}),warn:F({},b,{value:N}),error:F({},b,{value:S}),group:F({},b,{value:V}),groupCollapsed:F({},b,{value:W}),groupEnd:F({},b,{value:X})})}H<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var de=g.ReactCurrentDispatcher,G;function Q(b,T,B){{if(G===void 0)try{throw Error()}catch(ue){var q=ue.stack.trim().match(/\n( *(at )?)/);G=q&&q[1]||""}return`
20
+ `+G+b}}var ne=!1,te;{var ce=typeof WeakMap=="function"?WeakMap:Map;te=new ce}function ie(b,T){if(!b||ne)return"";{var B=te.get(b);if(B!==void 0)return B}var q;ne=!0;var ue=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var fe;fe=de.current,de.current=null,be();try{if(T){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(Te){q=Te}Reflect.construct(b,[],ae)}else{try{ae.call()}catch(Te){q=Te}b.call(ae.prototype)}}else{try{throw Error()}catch(Te){q=Te}b()}}catch(Te){if(Te&&q&&typeof Te.stack=="string"){for(var re=Te.stack.split(`
21
21
  `),Se=q.stack.split(`
22
- `),we=te.length-1,ye=Se.length-1;we>=1&&ye>=0&&te[we]!==Se[ye];)ye--;for(;we>=1&&ye>=0;we--,ye--)if(te[we]!==Se[ye]){if(we!==1||ye!==1)do if(we--,ye--,ye<0||te[we]!==Se[ye]){var Oe=`
23
- `+te[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{oe=!1,de.current=fe,ge(),Error.prepareStackTrace=ue}var At=b?b.displayName||b.name:"",vt=At?ee(At):"";return typeof b=="function"&&ne.set(b,vt),vt}function $e(b,T,V){return ie(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 ie(b,Ce(b));if(typeof b=="string")return ee(b);switch(b){case u:return ee("Suspense");case f:return ee("SuspenseList")}if(typeof b=="object")switch(b.$$typeof){case l:return $e(b.render);case d:return A(b.type,T,V);case m:{var q=b,ue=q._payload,fe=q._init;try{return A(fe(ue),T,V)}catch{}}}return""}var U=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,ue){{var fe=Function.call.bind(U);for(var ae in b)if(fe(b,ae)){var te=void 0;try{if(typeof b[ae]!="function"){var Se=Error((q||"React class")+": "+V+" type `"+ae+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof b[ae]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Se.name="Invariant Violation",Se}te=b[ae](T,ae,q,V,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(we){te=we}te&&!(te instanceof Error)&&(xe(ue),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,ae,typeof te),xe(null)),te instanceof Error&&!(te.message in Z)&&(Z[te.message]=!0,xe(ue),w("Failed %s type: %s",V,te.message),xe(null))}}}var se=Array.isArray;function Ee(b){return se(b)}function ht(b){{var T=typeof Symbol=="function"&&Symbol.toStringTag,V=T&&b[Symbol.toStringTag]||b.constructor.name||"Object";return V}}function Ar(b){try{return Pi(b),!1}catch{return!0}}function Pi(b){return""+b}function Ni(b){if(Ar(b))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ht(b)),Pi(b)}var Zt=g.ReactCurrentOwner,pm={key:!0,ref:!0,__self:!0,__source:!0},Ii,Oi,Dr;Dr={};function mm(b){if(U.call(b,"ref")){var T=Object.getOwnPropertyDescriptor(b,"ref").get;if(T&&T.isReactWarning)return!1}return b.ref!==void 0}function hm(b){if(U.call(b,"key")){var T=Object.getOwnPropertyDescriptor(b,"key").get;if(T&&T.isReactWarning)return!1}return b.key!==void 0}function vm(b,T){if(typeof b.ref=="string"&&Zt.current&&T&&Zt.current.stateNode!==T){var V=H(Zt.current.type);Dr[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',H(Zt.current.type),b.ref),Dr[V]=!0)}}function gm(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 bm(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 wm=function(b,T,V,q,ue,fe,ae){var te={$$typeof:t,type:b,key:T,ref:V,props:ae,_owner:fe};return te._store={},Object.defineProperty(te._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(te,"_self",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.defineProperty(te,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ue}),Object.freeze&&(Object.freeze(te.props),Object.freeze(te)),te};function xm(b,T,V,q,ue){{var fe,ae={},te=null,Se=null;V!==void 0&&(Ni(V),te=""+V),hm(T)&&(Ni(T.key),te=""+T.key),mm(T)&&(Se=T.ref,vm(T,ue));for(fe in T)U.call(T,fe)&&!pm.hasOwnProperty(fe)&&(ae[fe]=T[fe]);if(b&&b.defaultProps){var we=b.defaultProps;for(fe in we)ae[fe]===void 0&&(ae[fe]=we[fe])}if(te||Se){var ye=typeof b=="function"?b.displayName||b.name||"Unknown":b;te&&gm(ae,ye),Se&&bm(ae,ye)}return wm(b,te,Se,ue,q,Zt.current,ae)}}var jr=g.ReactCurrentOwner,Mi=g.ReactDebugCurrentFrame;function Mt(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 Lr;Lr=!1;function Fr(b){return typeof b=="object"&&b!==null&&b.$$typeof===t}function Ai(){{if(jr.current){var b=H(jr.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 Oe=`
23
+ `+re[we].replace(" at new "," at ");return b.displayName&&Oe.includes("<anonymous>")&&(Oe=Oe.replace("<anonymous>",b.displayName)),typeof b=="function"&&te.set(b,Oe),Oe}while(we>=1&&ye>=0);break}}}finally{ne=!1,de.current=fe,ge(),Error.prepareStackTrace=ue}var Dt=b?b.displayName||b.name:"",vt=Dt?Q(Dt):"";return typeof b=="function"&&te.set(b,vt),vt}function $e(b,T,B){return ie(b,!1)}function Ce(b){var T=b.prototype;return!!(T&&T.isReactComponent)}function A(b,T,B){if(b==null)return"";if(typeof b=="function")return ie(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,B);case m:{var q=b,ue=q._payload,fe=q._init;try{return A(fe(ue),T,B)}catch{}}}return""}var K=Object.prototype.hasOwnProperty,Z={},me=g.ReactDebugCurrentFrame;function xe(b){if(b){var T=b._owner,B=A(b.type,b._source,T?T.type:null);me.setExtraStackFrame(B)}else me.setExtraStackFrame(null)}function le(b,T,B,q,ue){{var fe=Function.call.bind(K);for(var ae in b)if(fe(b,ae)){var re=void 0;try{if(typeof b[ae]!="function"){var Se=Error((q||"React class")+": "+B+" type `"+ae+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof b[ae]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Se.name="Invariant Violation",Se}re=b[ae](T,ae,q,B,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(we){re=we}re&&!(re instanceof Error)&&(xe(ue),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",B,ae,typeof re),xe(null)),re instanceof Error&&!(re.message in Z)&&(Z[re.message]=!0,xe(ue),w("Failed %s type: %s",B,re.message),xe(null))}}}var se=Array.isArray;function Ee(b){return se(b)}function ht(b){{var T=typeof Symbol=="function"&&Symbol.toStringTag,B=T&&b[Symbol.toStringTag]||b.constructor.name||"Object";return B}}function Lr(b){try{return Ni(b),!1}catch{return!0}}function Ni(b){return""+b}function Oi(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.",ht(b)),Ni(b)}var Jt=g.ReactCurrentOwner,Em={key:!0,ref:!0,__self:!0,__source:!0},Ii,Mi,Fr;Fr={};function Sm(b){if(K.call(b,"ref")){var T=Object.getOwnPropertyDescriptor(b,"ref").get;if(T&&T.isReactWarning)return!1}return b.ref!==void 0}function _m(b){if(K.call(b,"key")){var T=Object.getOwnPropertyDescriptor(b,"key").get;if(T&&T.isReactWarning)return!1}return b.key!==void 0}function Tm(b,T){if(typeof b.ref=="string"&&Jt.current&&T&&Jt.current.stateNode!==T){var B=U(Jt.current.type);Fr[B]||(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',U(Jt.current.type),b.ref),Fr[B]=!0)}}function km(b,T){{var B=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))};B.isReactWarning=!0,Object.defineProperty(b,"key",{get:B,configurable:!0})}}function Pm(b,T){{var B=function(){Mi||(Mi=!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))};B.isReactWarning=!0,Object.defineProperty(b,"ref",{get:B,configurable:!0})}}var Nm=function(b,T,B,q,ue,fe,ae){var re={$$typeof:t,type:b,key:T,ref:B,props:ae,_owner:fe};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:ue}),Object.freeze&&(Object.freeze(re.props),Object.freeze(re)),re};function Om(b,T,B,q,ue){{var fe,ae={},re=null,Se=null;B!==void 0&&(Oi(B),re=""+B),_m(T)&&(Oi(T.key),re=""+T.key),Sm(T)&&(Se=T.ref,Tm(T,ue));for(fe in T)K.call(T,fe)&&!Em.hasOwnProperty(fe)&&(ae[fe]=T[fe]);if(b&&b.defaultProps){var we=b.defaultProps;for(fe in we)ae[fe]===void 0&&(ae[fe]=we[fe])}if(re||Se){var ye=typeof b=="function"?b.displayName||b.name||"Unknown":b;re&&km(ae,ye),Se&&Pm(ae,ye)}return Nm(b,re,Se,ue,q,Jt.current,ae)}}var Vr=g.ReactCurrentOwner,Ai=g.ReactDebugCurrentFrame;function At(b){if(b){var T=b._owner,B=A(b.type,b._source,T?T.type:null);Ai.setExtraStackFrame(B)}else Ai.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=U(Vr.current.type);if(b)return`
24
24
 
25
- Check the render method of \``+b+"`."}return""}}function ym(b){return""}var Di={};function $m(b){{var T=Ai();if(!T){var V=typeof b=="string"?b:b.displayName||b.name;V&&(T=`
25
+ Check the render method of \``+b+"`."}return""}}function Im(b){return""}var ji={};function Mm(b){{var T=Di();if(!T){var B=typeof b=="string"?b:b.displayName||b.name;B&&(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=$m(T);if(Di[V])return;Di[V]=!0;var q="";b&&b._owner&&b._owner!==jr.current&&(q=" It was passed a child from "+H(b._owner.type)+"."),Mt(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),Mt(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];Fr(q)&&ji(q,T)}else if(Fr(b))b._store&&(b._store.validated=!0);else if(b){var ue=x(b);if(typeof ue=="function"&&ue!==b.entries)for(var fe=ue.call(b),ae;!(ae=fe.next()).done;)Fr(ae.value)&&ji(ae.value,T)}}}function Cm(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===d))V=T.propTypes;else return;if(V){var q=H(T);le(V,b.props,"prop",q,b)}else if(T.PropTypes!==void 0&&!Lr){Lr=!0;var ue=H(T);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ue||"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 Em(b){{for(var T=Object.keys(b.props),V=0;V<T.length;V++){var q=T[V];if(q!=="children"&&q!=="key"){Mt(b),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",q),Mt(null);break}}b.ref!==null&&(Mt(b),w("Invalid attribute `ref` supplied to `React.Fragment`."),Mt(null))}}var Fi={};function Vi(b,T,V,q,ue,fe){{var ae=K(b);if(!ae){var te="";(b===void 0||typeof b=="object"&&b!==null&&Object.keys(b).length===0)&&(te+=" 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=ym();Se?te+=Se:te+=Ai();var we;b===null?we="null":Ee(b)?we="array":b!==void 0&&b.$$typeof===t?(we="<"+(H(b.type)||"Unknown")+" />",te=" 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,te)}var ye=xm(b,T,V,ue,fe);if(ye==null)return ye;if(ae){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(U.call(T,"key")){var vt=H(b),Te=Object.keys(T).filter(function(Nm){return Nm!=="key"}),Vr=Te.length>0?"{key: someKey, "+Te.join(": ..., ")+": ...}":"{key: someKey}";if(!Fi[vt+Vr]){var Pm=Te.length>0?"{"+Te.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
27
+ Check the top-level render call using <`+B+">.")}return T}}function Li(b,T){{if(!b._store||b._store.validated||b.key!=null)return;b._store.validated=!0;var B=Mm(T);if(ji[B])return;ji[B]=!0;var q="";b&&b._owner&&b._owner!==Vr.current&&(q=" It was passed a child from "+U(b._owner.type)+"."),At(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.',B,q),At(null)}}function Fi(b,T){{if(typeof b!="object")return;if(Ee(b))for(var B=0;B<b.length;B++){var q=b[B];zr(q)&&Li(q,T)}else if(zr(b))b._store&&(b._store.validated=!0);else if(b){var ue=x(b);if(typeof ue=="function"&&ue!==b.entries)for(var fe=ue.call(b),ae;!(ae=fe.next()).done;)zr(ae.value)&&Li(ae.value,T)}}}function Am(b){{var T=b.type;if(T==null||typeof T=="string")return;var B;if(typeof T=="function")B=T.propTypes;else if(typeof T=="object"&&(T.$$typeof===l||T.$$typeof===u))B=T.propTypes;else return;if(B){var q=U(T);le(B,b.props,"prop",q,b)}else if(T.PropTypes!==void 0&&!Br){Br=!0;var ue=U(T);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ue||"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 Dm(b){{for(var T=Object.keys(b.props),B=0;B<T.length;B++){var q=T[B];if(q!=="children"&&q!=="key"){At(b),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",q),At(null);break}}b.ref!==null&&(At(b),w("Invalid attribute `ref` supplied to `React.Fragment`."),At(null))}}var Vi={};function Bi(b,T,B,q,ue,fe){{var ae=R(b);if(!ae){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=Im();Se?re+=Se:re+=Di();var we;b===null?we="null":Ee(b)?we="array":b!==void 0&&b.$$typeof===t?(we="<"+(U(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=Om(b,T,B,ue,fe);if(ye==null)return ye;if(ae){var Oe=T.children;if(Oe!==void 0)if(q)if(Ee(Oe)){for(var Dt=0;Dt<Oe.length;Dt++)Fi(Oe[Dt],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 Fi(Oe,b)}if(K.call(T,"key")){var vt=U(b),Te=Object.keys(T).filter(function(zm){return zm!=="key"}),Wr=Te.length>0?"{key: someKey, "+Te.join(": ..., ")+": ...}":"{key: someKey}";if(!Vi[vt+Wr]){var Bm=Te.length>0?"{"+Te.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} />`,Vr,vt,Pm,vt),Fi[vt+Vr]=!0}}return b===r?Em(ye):Cm(ye),ye}}function Sm(b,T,V){return Vi(b,T,V,!0)}function _m(b,T,V){return Vi(b,T,V,!1)}var Tm=_m,km=Sm;jt.Fragment=r,jt.jsx=Tm,jt.jsxs=km}()),jt}process.env.NODE_ENV==="production"?Mn.exports=zi():Mn.exports=Wi();var y=Mn.exports;function Hr(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=Hr(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=Hr(e))&&(r&&(r+=" "),r+=t);return r}const An="-";function Hi(e){const t=Ki(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function o(s){const c=s.split(An);return c[0]===""&&c.length!==1&&c.shift(),Ur(c,t)||Ui(s)}function a(s,c){const l=n[s]||[];return c&&r[s]?[...l,...r[s]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:a}}function Ur(e,t){if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Ur(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:s})=>s(a))?.classGroupId}const Kr=/^\[(.+)\]$/;function Ui(e){if(Kr.test(e)){const t=Kr.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,s])=>{Dn(s,r,a,t)}),r}function Dn(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Gr(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(Gi(o)){Dn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{Dn(s,Gr(t,a),n,r)})})}function Gr(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 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(([s,c])=>[t+s,c])):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,s){n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)}return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}}const Yr="!";function qi(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(s){const c=[];let l=0,u=0,f;for(let h=0;h<s.length;h++){let x=s[h];if(l===0){if(x===r&&(n||s.slice(h,h+o)===t)){c.push(s.slice(u,h)),u=h+o;continue}if(x==="/"){f=h;continue}}x==="["?l++:x==="]"&&l--}const d=c.length===0?s:s.substring(u),m=d.startsWith(Yr),v=m?d.substring(1):d,p=f&&f>u?f-u:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:v,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 es(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=new Set;return e.trim().split(Qi).map(s=>{const{modifiers:c,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:f}=n(s);let d=r(f?u.substring(0,f):u),m=!!f;if(!d){if(!f)return{isTailwindClass:!1,originalClassName:s};if(d=r(u),!d)return{isTailwindClass:!1,originalClassName:s};m=!1}const v=Zi(c).join(":");return{isTailwindClass:!0,modifierId:l?v+Yr:v,classGroupId:d,originalClassName:s,hasPostfixModifier:m}}).reverse().filter(s=>{if(!s.isTailwindClass)return!0;const{modifierId:c,classGroupId:l,hasPostfixModifier:u}=s,f=c+l;return a.has(f)?!1:(a.add(f),o(l,u).forEach(d=>a.add(c+d)),!0)}).reverse().map(s=>s.originalClassName).join(" ")}function ts(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Xr(t))&&(r&&(r+=" "),r+=n);return r}function Xr(e){if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Xr(e[r]))&&(n&&(n+=" "),n+=t);return n}function ns(e,...t){let n,r,o,a=s;function s(l){const u=t.reduce((f,d)=>d(f),e());return n=Ji(u),r=n.cache.get,o=n.cache.set,a=c,c(l)}function c(l){const u=r(l);if(u)return u;const f=es(l,n);return o(l,f),f}return function(){return a(ts.apply(null,arguments))}}function he(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const qr=/^\[(?:([a-z-]+):)?(.+)\]$/i,rs=/^\d+\/\d+$/,os=new Set(["px","full","screen"]),as=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,is=/\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$/,ss=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,cs=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ls=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Fe(e){return at(e)||os.has(e)||rs.test(e)}function Ge(e){return bt(e,"length",gs)}function at(e){return!!e&&!Number.isNaN(Number(e))}function Jt(e){return bt(e,"number",at)}function Lt(e){return!!e&&Number.isInteger(Number(e))}function us(e){return e.endsWith("%")&&at(e.slice(0,-1))}function J(e){return qr.test(e)}function Ye(e){return as.test(e)}const ds=new Set(["length","size","percentage"]);function fs(e){return bt(e,ds,Zr)}function ps(e){return bt(e,"position",Zr)}const ms=new Set(["image","url"]);function hs(e){return bt(e,ms,ws)}function vs(e){return bt(e,"",bs)}function Ft(){return!0}function bt(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 gs(e){return is.test(e)&&!ss.test(e)}function Zr(){return!1}function bs(e){return cs.test(e)}function ws(e){return ls.test(e)}function xs(){const e=he("colors"),t=he("spacing"),n=he("blur"),r=he("brightness"),o=he("borderColor"),a=he("borderRadius"),s=he("borderSpacing"),c=he("borderWidth"),l=he("contrast"),u=he("grayscale"),f=he("hueRotate"),d=he("invert"),m=he("gap"),v=he("gradientColorStops"),p=he("gradientColorStopPositions"),h=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"),z=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",J,t],P=()=>[J,t],H=()=>["",Fe,Ge],L=()=>["auto",at,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=()=>[at,Jt],X=()=>[at,J];return{cacheSize:500,separator:":",theme:{colors:[Ft],spacing:[Fe,Ge],blur:["none","",Ye,J],brightness:W(),borderColor:[e],borderRadius:["none","","full",Ye,J],borderSpacing:P(),borderWidth:H(),contrast:W(),grayscale:S(),hueRotate:X(),invert:S(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[us,Ge],inset:B(),margin:B(),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:[Ye]}],"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:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Lt,J]}],basis:[{basis:B()}],"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",Lt,J]}],"grid-cols":[{"grid-cols":[Ft]}],"col-start-end":[{col:["auto",{span:["full",Lt,J]},J]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[Ft]}],"row-start-end":[{row:["auto",{span:[Lt,J]},J]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"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:[Ye]},Ye]}],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",Ye,Ge]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Jt]}],"font-family":[{font:[Ft]}],"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",at,Jt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Fe,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",Fe,Ge]}],"underline-offset":[{"underline-offset":["auto",Fe,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(),ps]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",fs]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},hs]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],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:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...M(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"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":[Fe,J]}],"outline-w":[{outline:[Fe,Ge]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Fe,Ge]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ye,vs]}],"shadow-color":[{shadow:[Ft]}],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",Ye,J]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[d]}],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":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[$]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"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:[Lt,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:[Fe,Ge,Jt]}],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 ys=ns(xs);function Q(...e){return ys(Ri(e))}function Jr(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 Qr(e){if(e<=0)return"";const t=65,n=(e-1)%26,r=Math.floor((e-1)/26);return Qr(r)+String.fromCharCode(t+n)}const $s=16,eo=8,to=16;function Qt(e,t){let n=e;if(t){const{leftIcon:r=!0,paddingX:o=!0,rightIcon:a}=t;o&&(n+=$s),r&&(n+=to+eo),a&&(n+=to+eo)}return n}Qt(160);const Xe=Qt(480),qe=Qt(80),Cs=36,Vt=26,no=["Decimal","Float","Integer","Percentage","Currency"];function Es(e){return e.map((t,n)=>{const r=Jr(t.name)||0;let o=Qt(r,{rightIcon:!0})+1;return o=o<qe?qe:o,o>Xe&&(o=Xe),{...t,id:`spreadsheet__column__id__${t.id||t.name}`,alphabetLetter:Qr(n+1),position:n,state:{...t.state,width:o}}})}function Ss(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 Ze=".",Je=",",_s=200;function Ts(e){const{value:t="",dataEditorType:n}=e;if(typeof t=="string"){if(n==="String")return t.length>200?t.substring(0,_s):t;if(n==="Date")return Ss(t)||"";if(n==="Boolean")return t==="true"?"true":"false";if(no.includes(n)){const o=t.match(/\./g)?.length||0,a=t.match(/,/g)?.length||0;if(a===1&&o===0)return t.replace(Je,Ze);if(a===0&&o===1)return t;if(a===1&&o===1){const s=t.indexOf(Je),c=t.indexOf(Ze);return console.log({commaPosition:s,dotPosition:c}),s>c?t.replace(Ze,"").replace(Je,Ze):t.replace(Je,"")}return a>1&&o===1?t.replaceAll(Je,""):o>1&&a===0?t.replaceAll(Ze,""):a>1&&o===0?t.replaceAll(Je,""):o>1&&a===1?t.replaceAll(Ze,"").replace(Je,Ze):a===0&&o===0?t:a>1&&o>1?t.replaceAll(Je,"").replaceAll(Ze,""):t}}return t}function ks(e,t){return new Array(e.rows).fill(void 0).map(()=>new Array(e.columns).fill(t))}function Ps(e){return e?.length}function jn(e){const t=e?.[0];return t?t.length:0}function Ln(e){return{columns:jn(e),rows:Ps(e)}}function Ns(e,t){return e.column===t.column&&e.row===t.row}function Is(e,t){return t.row>=e.start.row&&t.column>=e.start.column&&t.row<=e.end.row&&t.column<=e.end.column}function Fn(e){const{matrix:t,pointRange:n}=e;return n.start.column===0&&n.end.column===jn(t)}function Os(e){const{matrix:t,pointRange:n,row:r}=e;return r>=n.start.row&&r<=n.end.row&&Fn({matrix:t,pointRange:n})}function Ms(e){return e.split(`
33
- `).map(t=>t.split(" ").map(n=>n.replaceAll("\r","")))}function As(e){const{mA:t,mB:n,point:r={column:0,row:0}}=e,o=Ln(t),a=Ln(n),s=r.row+a.rows>o.rows,c=r.column+a.columns>o.columns,l=s?r.row+a.rows:o.rows,u=c?r.column+a.columns:o.columns,f=ks({rows:l,columns:u});for(let d=0;d<o.rows;d+=1)for(let m=0;m<o.columns;m+=1)f[d][m]=t[d][m];for(let d=0;d<a.rows;d+=1)for(let m=0;m<a.columns;m+=1)f[d+r.row][m+r.column]=n[d][m];return f}let Vn;const ro=i.createContext(null);function Ds(e){const{children:t,startingColumns:n,matrix:r=[],staticRows:o,onMatrixChange:a}=e,[s,c]=i.useState(r),l=i.useMemo(()=>Es(n),[n]),u=i.useMemo(()=>jn(s)||l.length,[s,l.length]),f=i.useMemo(()=>Ln(s),[s]),d=i.useMemo(()=>f.rows===0,[f.rows]),[m,v]=i.useState(l),[p,h]=i.useState(null),[x,g]=i.useState({height:0,width:0}),[w,$]=i.useState(!1),C=i.useCallback((N=2e3)=>{$(!0),Vn&&clearTimeout(Vn),Vn=setTimeout(()=>$(!1),N)},[]),E=i.useMemo(()=>!!(p&&Fn({matrix:s,pointRange:p})),[p,s]),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=Ms(F),be=As({mA:s,mB:W,point:N}).map(de=>de.map((G,ee)=>m[ee]?.state?.readonly?"":G)).map(de=>de.map((G,ee)=>Ts({value:G,dataEditorType:m[ee]?.dataEditorType}))).map(de=>de.slice(0,n.length)),ge=o?be.slice(0,s.length):be;c(ge),a?.(ge)},[m,s,n.length,o,a]),k=i.useCallback(N=>{const{data:S,point:F}=N,{column:W,row:X}=F,re=structuredClone(s);re[X][W]=S,c(re),a?.(re)},[s,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?
34
- Linha N° ${N+1} até N° ${S+1}`:`Você irá excluir a linha N° ${N+1}, deseja continuar?`;if(!confirm(W))return;const re=s.filter((be,ge)=>ge<N||ge>S);h(null),c(re),a?.(re)}},[s,p,o,E,a]),z=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 h({start:{row:F,column:0},end:{row:W,column:u}})}h({start:{row:N,column:0},end:{row:N,column:u}})},[u,p]),K=i.useCallback(N=>{N.row===p?.start.row&&N.column===p.start.column||h({start:N,end:N})},[p?.start.row,p?.start.column]),B=i.useCallback(N=>!!(p&&Is(p,N)),[p]),P=i.useCallback(N=>{const{position:S,width:F}=N;let W=F;F>Xe&&(W=Xe),F<qe&&(W=qe),v(X=>X.map((re,be)=>({...re,state:{...re.state,width:be===S?W:re.state.width}})))},[]),H=i.useCallback(()=>{if(o)return;const N=[...structuredClone(s),new Array(u).fill(null).map((S,F)=>{const{dataEditorType:W}=m[F];return no.includes(W)?0:W==="Boolean"?!1:""})];c(N),a?.(N),C()},[o,s,m,u,C,a]),L=i.useCallback(()=>{const N={column:0,row:0},S={column:f.columns,row:f.rows-1};h({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}};v(X=>X.map(re=>W(re)))},[]),M=i.useCallback(()=>{v(N=>N.map(S=>({...S,state:{...S.state,visible:!0}})))},[]);i.useEffect(()=>{c(r)},[r]),i.useEffect(()=>{v(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||!Ns(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:s,columns:m,emptySize:d,staticRows:o,hasSomeEntireRow:E,highlightLastRow:w,pointRange:p,setPointRange:h,containerDimensions:x,setContainerDimensions:g,onPaste:O,onChange:k,onRemoveRow:_,onSelectRow:z,onSelectCell:K,isCellSelected:B,onInsertNewRow:H,onColumnResize:P,onSelectSpreadsheet:L,onColumnVisibilityChange:R,onRestoreColumnsVisibility:M}),[f,s,d,o,m,E,w,p,x,O,k,_,z,K,B,H,P,L,R,M]);return y.jsx(ro.Provider,{value:I,children:t})}function De(){const e=i.useContext(ro);if(!e)throw new Error("useSpreadsheet has to be used within <SpreadsheetContext.Provider>");return e}function js(e){const{children:t,className:n}=e,{size:r,setContainerDimensions:o}=De(),a=i.useRef(null);return i.useEffect(()=>{const s=a.current;if(!s)return;const c=new ResizeObserver(l=>{const u=l[0];if(u){const f=u.contentRect.width,d=u.contentRect.height;o({height:d,width:f})}});return c.observe(s),()=>{c.disconnect()}},[o]),y.jsx("div",{ref:a,className:Q("relative min-h-[260px] w-full border border-t-0 border-r-0",r.rows>=7?"border-b-0":"border-b",n),children:t})}var je=function(){return je=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},je.apply(this,arguments)};function oo(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 Ls(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;function Fs(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function Vs(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var Bs=function(e,t){return typeof t=="boolean"?t:!e},ao=function(e){return i.useReducer(Bs,e)},zs=["mousedown","touchstart"],io=function(e,t,n){n===void 0&&(n=zs);var r=i.useRef(t);i.useEffect(function(){r.current=t},[t]),i.useEffect(function(){for(var o=function(l){var u=e.current;u&&!u.contains(l.target)&&r.current(l)},a=0,s=n;a<s.length;a++){var c=s[a];Fs(document,c,o)}return function(){for(var l=0,u=n;l<u.length;l++){var f=u[l];Vs(document,f,o)}}},[n,e])};function Ws(e){const{children:t,className:n}=e,{setPointRange:r}=De(),o=i.useRef(null);return io(o,()=>r(null)),y.jsx("div",{ref:o,className:Q("",n),children:t})}const so={Matrix:js,Root:Ws};function Rs(e){const{className:t,...n}=e;return y.jsx("button",{draggable:!0,className:Q("h-9 w-1.5 cursor-col-resize rounded-sm bg-neutral-400 drop-shadow-md",t),...n,children:y.jsxs("div",{className:"relative",children:[y.jsx("span",{className:"-translate-y-1/2 absolute top-1/2 right-2.5 h-3 w-1 rounded-full bg-neutral-300"}),y.jsx("span",{className:"-translate-y-1/2 absolute top-1/2 left-2.5 h-3 w-1 rounded-full bg-neutral-300"})]})})}function Hs(e){const{className:t,column:n,visible:r,children:o,width:a}=e,{position:s,alphabetLetter:c}=n,{matrix:l,pointRange:u,containerDimensions:f,onColumnResize:d}=De(),m=i.useRef(null),v=i.useMemo(()=>(f?.height||0)+32,[f?.height]),[p,h]=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(B=>{g(B.clientX),h(!0)},[]),O=i.useCallback(B=>{const P=m.current;if(!P)return;const H=B.clientX-x;let L=a+H;L>Xe&&(L=Xe),L<qe&&(L=qe),P.style.left=`${L}px`,$(B.clientX)},[x,a]),k=i.useCallback(B=>{const P=B.clientX-x,H=a+P;d({width:H,position:s}),h(!1)},[x,a,s,d]),_=i.useCallback(()=>{if(p)return`bg-neutral-100 font-bold text-neutral-700 ${t}`;if(u&&!p){const{start:B,end:P}=u,H=Fn({matrix:l,pointRange:u}),L=s>=B.column&&s<=P.column;if(H)return`bg-[#0085FF] font-bold text-white ${t}`;if(L)return`bg-blue-100 font-bold text-blue-700 ${t}`}return t},[p,t,l,u,s]),z=i.useCallback(()=>{let B=a+C;return B>Xe&&(B=Xe),B<qe&&(B=qe),`${B}px`},[a,C]),K=i.useMemo(()=>({onDragStart:E,onDrag:O,onDragEnd:k}),[E,O,k]);return i.useEffect(()=>{const B=m.current;B&&(B.style.left=`${a}px`)},[a]),r?y.jsxs("div",{style:{width:a},className:Q("relative flex h-7 w-32 shrink-0 items-center justify-center border border-t-0 border-l-0 text-[#8E8EA9] text-xs",_()),children:[y.jsx(Rs,{...K,className:Q("-right-[3px] -top-1 absolute z-50 opacity-0 hover:opacity-100",p&&"opacity-0")}),y.jsx("div",{ref:m,style:{height:v},className:Q("-top-4 pointer-events-none absolute z-50 h-full w-1.5 rounded-full bg-blue-400 shadow-lg outline outline-sky-100",p?"opacity-100":"opacity-0"),children:y.jsx("span",{className:"-translate-y-1/2 relative top-8 left-4 z-50 select-none rounded-md border bg-white p-1 font-semibold drop-shadow-md",children:z()})}),y.jsx("span",{children:o||c})]}):null}function Qe(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 Us=["color"],Bn=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Qe(e,Us);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"}))}),Ks=["color"],co=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Qe(e,Ks);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"}))}),Gs=["color"],Ys=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Qe(e,Gs);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"}))}),Xs=["color"],qs=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Qe(e,Xs);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"}))}),Zs=["color"],Js=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Qe(e,Zs);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"}))}),Qs=["color"],ec=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Qe(e,Qs);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}))}),tc=["color"],nc=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Qe(e,tc);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"}))}),rc=["color"],oc=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Qe(e,rc);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"}))});/**
32
+ <%s key={someKey} {...props} />`,Wr,vt,Bm,vt),Vi[vt+Wr]=!0}}return b===r?Dm(ye):Am(ye),ye}}function jm(b,T,B){return Bi(b,T,B,!0)}function Lm(b,T,B){return Bi(b,T,B,!1)}var Fm=Lm,Vm=jm;Lt.Fragment=r,Lt.jsx=Fm,Lt.jsxs=Vm}()),Lt}process.env.NODE_ENV==="production"?An.exports=Wi():An.exports=Ri();var y=An.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 Hi(){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 Ui(e){const t=Gi(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function o(s){const c=s.split(Dn);return c[0]===""&&c.length!==1&&c.shift(),Yr(c,t)||Ki(s)}function a(s,c){const l=n[s]||[];return c&&r[s]?[...l,...r[s]]: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:s})=>s(a))?.classGroupId}const Xr=/^\[(.+)\]$/;function Ki(e){if(Xr.test(e)){const t=Xr.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function Gi(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Xi(Object.entries(e.classGroups),n).forEach(([a,s])=>{jn(s,r,a,t)}),r}function jn(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(Yi(o)){jn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{jn(s,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 Yi(e){return e.isThemeGetter}function Xi(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(([s,c])=>[t+s,c])):a);return[n,o]}):e}function qi(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(a,s){n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)}return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}}const Zr="!";function Zi(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(s){const c=[];let l=0,d=0,f;for(let h=0;h<s.length;h++){let x=s[h];if(l===0){if(x===r&&(n||s.slice(h,h+o)===t)){c.push(s.slice(d,h)),d=h+o;continue}if(x==="/"){f=h;continue}}x==="["?l++:x==="]"&&l--}const u=c.length===0?s:s.substring(d),m=u.startsWith(Zr),v=m?u.substring(1):u,p=f&&f>d?f-d:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:p}}}function Ji(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 Qi(e){return{cache:qi(e.cacheSize),splitModifiers:Zi(e),...Ui(e)}}const es=/\s+/;function ts(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=new Set;return e.trim().split(es).map(s=>{const{modifiers:c,hasImportantModifier:l,baseClassName:d,maybePostfixModifierPosition:f}=n(s);let u=r(f?d.substring(0,f):d),m=!!f;if(!u){if(!f)return{isTailwindClass:!1,originalClassName:s};if(u=r(d),!u)return{isTailwindClass:!1,originalClassName:s};m=!1}const v=Ji(c).join(":");return{isTailwindClass:!0,modifierId:l?v+Zr:v,classGroupId:u,originalClassName:s,hasPostfixModifier:m}}).reverse().filter(s=>{if(!s.isTailwindClass)return!0;const{modifierId:c,classGroupId:l,hasPostfixModifier:d}=s,f=c+l;return a.has(f)?!1:(a.add(f),o(l,d).forEach(u=>a.add(c+u)),!0)}).reverse().map(s=>s.originalClassName).join(" ")}function ns(){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 rs(e,...t){let n,r,o,a=s;function s(l){const d=t.reduce((f,u)=>u(f),e());return n=Qi(d),r=n.cache.get,o=n.cache.set,a=c,c(l)}function c(l){const d=r(l);if(d)return d;const f=ts(l,n);return o(l,f),f}return function(){return a(ns.apply(null,arguments))}}function he(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const Qr=/^\[(?:([a-z-]+):)?(.+)\]$/i,os=/^\d+\/\d+$/,as=new Set(["px","full","screen"]),is=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ss=/\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$/,cs=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ls=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ds=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Ve(e){return at(e)||as.has(e)||os.test(e)}function Ge(e){return bt(e,"length",bs)}function at(e){return!!e&&!Number.isNaN(Number(e))}function Qt(e){return bt(e,"number",at)}function Ft(e){return!!e&&Number.isInteger(Number(e))}function us(e){return e.endsWith("%")&&at(e.slice(0,-1))}function J(e){return Qr.test(e)}function Ye(e){return is.test(e)}const fs=new Set(["length","size","percentage"]);function ps(e){return bt(e,fs,eo)}function ms(e){return bt(e,"position",eo)}const hs=new Set(["image","url"]);function vs(e){return bt(e,hs,xs)}function gs(e){return bt(e,"",ws)}function Vt(){return!0}function bt(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 bs(e){return ss.test(e)&&!cs.test(e)}function eo(){return!1}function ws(e){return ls.test(e)}function xs(e){return ds.test(e)}function ys(){const e=he("colors"),t=he("spacing"),n=he("blur"),r=he("brightness"),o=he("borderColor"),a=he("borderRadius"),s=he("borderSpacing"),c=he("borderWidth"),l=he("contrast"),d=he("grayscale"),f=he("hueRotate"),u=he("invert"),m=he("gap"),v=he("gradientColorStops"),p=he("gradientColorStopPositions"),h=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"),z=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",J,t],P=()=>[J,t],U=()=>["",Ve,Ge],F=()=>["auto",at,J],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],I=()=>["solid","dashed","dotted","double","none"],O=()=>["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],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[at,Qt],X=()=>[at,J];return{cacheSize:500,separator:":",theme:{colors:[Vt],spacing:[Ve,Ge],blur:["none","",Ye,J],brightness:W(),borderColor:[e],borderRadius:["none","","full",Ye,J],borderSpacing:P(),borderWidth:U(),contrast:W(),grayscale:S(),hueRotate:X(),invert:S(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[us,Ge],inset:L(),margin:L(),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:[Ye]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"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:[...H(),J]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ft,J]}],basis:[{basis:L()}],"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":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[Vt]}],"row-start-end":[{row:["auto",{span:[Ft,J]},J]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"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:[Ye]},Ye]}],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",Ye,Ge]}],"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",at,Qt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ve,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:[...I(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ve,Ge]}],"underline-offset":[{"underline-offset":["auto",Ve,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:[...H(),ms]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ps]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vs]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],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:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...I(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:I()}],"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:["",...I()]}],"outline-offset":[{"outline-offset":[Ve,J]}],"outline-w":[{outline:[Ve,Ge]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Ve,Ge]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ye,gs]}],"shadow-color":[{shadow:[Vt]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...O(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":O()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ye,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":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"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:[Ve,Ge,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 $s=rs(ys);function ee(...e){return $s(Hi(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 Cs=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+=Cs),r&&(n+=oo+ro),a&&(n+=oo+ro)}return n}en(160);const Xe=en(480),qe=en(80),Es=36,Bt=26,ao=["Decimal","Float","Integer","Percentage","Currency"];function Ss(e){return e.map((t,n)=>{const r=to(t.name)||0;let o=en(r,{rightIcon:!0})+1;return o=o<qe?qe:o,o>Xe&&(o=Xe),{...t,id:`spreadsheet__column__id__${t.id||t.name}`,alphabetLetter:no(n+1),position:n,state:{...t.state,width:o}}})}function _s(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 Ze=".",Je=",",Ts=200;function ks(e){const{value:t="",dataEditorType:n}=e;if(typeof t=="string"){if(n==="String")return t.length>200?t.substring(0,Ts):t;if(n==="Date")return _s(t)||"";if(n==="Boolean")return t==="true"?"true":"false";if(ao.includes(n)){const o=t.match(/\./g)?.length||0,a=t.match(/,/g)?.length||0;let s=t;if(a===1&&o===0&&(s=t.replace(Je,Ze)),a===0&&o===1&&(s=t),a===1&&o===1){const c=t.indexOf(Je),l=t.indexOf(Ze);c>l&&(s=t.replace(Ze,"").replace(Je,Ze)),s=t.replace(Je,"")}return a>1&&o===1&&(s=t.replaceAll(Je,"")),o>1&&a===0&&(s=t.replaceAll(Ze,"")),a>1&&o===0&&(s=t.replaceAll(Je,"")),o>1&&a===1&&(s=t.replaceAll(Ze,"").replace(Je,Ze)),a===0&&o===0&&(s=t),a>1&&o>1&&(s=t.replaceAll(Je,"").replaceAll(Ze,"")),Number(s)}}return t}function Ps(e,t){return new Array(e.rows).fill(void 0).map(()=>new Array(e.columns).fill(t))}function Ns(e){return e?.length}function Ln(e){const t=e?.[0];return t?t.length:0}function Fn(e){return{columns:Ln(e),rows:Ns(e)}}function Os(e,t){return e.column===t.column&&e.row===t.row}function Is(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 Ms(e){const{matrix:t,pointRange:n,row:r}=e;return r>=n.start.row&&r<=n.end.row&&Vn({matrix:t,pointRange:n})}function As(e){let t=e;return e.endsWith(`
33
+ `)&&(t=e.substring(0,e.length-1)),t.split(`
34
+ `).map(n=>n.split(" ").map(r=>r.replaceAll("\r","")))}function Ds(e){const{mA:t,mB:n,point:r={column:0,row:0}}=e,o=Fn(t),a=Fn(n),s=r.row+a.rows>o.rows,c=r.column+a.columns>o.columns,l=s?r.row+a.rows:o.rows,d=c?r.column+a.columns:o.columns,f=Ps({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 js(e){const{children:t,startingColumns:n,matrix:r=[],staticRows:o,onMatrixChange:a}=e,[s,c]=i.useState(r),l=i.useMemo(()=>Ss(n),[n]),d=i.useMemo(()=>Ln(s)||l.length,[s,l.length]),f=i.useMemo(()=>Fn(s),[s]),u=i.useMemo(()=>f.rows===0,[f.rows]),[m,v]=i.useState(l),[p,h]=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:s,pointRange:p})),[p,s]),M=i.useCallback(async N=>{const{state:S}=await navigator.permissions.query({name:"clipboard-read"});if(S==="denied"){console.log("denied");return}const V=await navigator.clipboard.readText(),W=As(V),be=Ds({mA:s,mB:W,point:N}).map(de=>de.map((G,Q)=>{const ne=m[Q]?.state?.readonly,te=de[Q];return ne?te:G})).map(de=>de.map((G,Q)=>ks({value:G,dataEditorType:m[Q]?.dataEditorType}))).map(de=>de.slice(0,n.length)),ge=o?be.slice(0,s.length):be;c(ge),a?.(ge)},[m,s,n.length,o,a]),k=i.useCallback(N=>{const{data:S,point:V}=N,{column:W,row:X}=V,oe=structuredClone(s);oe[X][W]=S,c(oe),a?.(oe)},[s,a]),_=i.useCallback(()=>{if(p&&!o){const N=p.start.row,S=p.end.row,V=S-N+1;if(!E)return;const W=V>1?`Você irá excluir ${V} 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 oe=s.filter((be,ge)=>ge<N||ge>S);h(null),c(oe),a?.(oe)}},[s,p,o,E,a]),z=i.useCallback((N,S)=>{if(p&&S&&S.shiftKey){const V=N<p.start.row?N:p.start.row,W=N<p.start.row?p.start.row:N;return h({start:{row:V,column:0},end:{row:W,column:d}})}h({start:{row:N,column:0},end:{row:N,column:d}})},[d,p]),R=i.useCallback(N=>{N.row===p?.start.row&&N.column===p.start.column||h({start:N,end:N})},[p?.start.row,p?.start.column]),L=i.useCallback(N=>!!(p&&Is(p,N)),[p]),P=i.useCallback(N=>{const{position:S,width:V}=N;let W=V;V>Xe&&(W=Xe),V<qe&&(W=qe),v(X=>X.map((oe,be)=>({...oe,state:{...oe.state,width:be===S?W:oe.state.width}})))},[]),U=i.useCallback(()=>{if(o)return;const N=[...structuredClone(s),new Array(d).fill(null).map((S,V)=>{const{dataEditorType:W}=m[V];return ao.includes(W)?0:W==="Boolean"?!1:""})];c(N),a?.(N),C()},[o,s,m,d,C,a]),F=i.useCallback(()=>{const N={column:0,row:0},S={column:f.columns,row:f.rows-1};h({start:N,end:S})},[f]),H=i.useCallback(N=>{const{columnId:S,visible:V}=N,W=X=>X.id!==S?X:{...X,state:{...X.state,visible:V}};v(X=>X.map(oe=>W(oe)))},[]),I=i.useCallback(()=>{v(N=>N.map(S=>({...S,state:{...S.state,visible:!0}})))},[]);i.useEffect(()=>{c(r)},[r]),i.useEffect(()=>{v(N=>l.map((S,V)=>({...S,state:{visible:N[V].state.visible,width:N[V].state.width,readonly:S.state.readonly}})))},[l]),i.useEffect(()=>{if(!p||!Os(p.start,p.end))return;const N=()=>{M(p.start)};return window.addEventListener("paste",N),()=>window.removeEventListener("paste",N)},[M,p]);const O=i.useMemo(()=>({size:f,matrix:s,columns:m,emptySize:u,staticRows:o,hasSomeEntireRow:E,highlightLastRow:w,pointRange:p,setPointRange:h,containerDimensions:x,setContainerDimensions:g,onPaste:M,onChange:k,onRemoveRow:_,onSelectRow:z,onSelectCell:R,isCellSelected:L,onInsertNewRow:U,onColumnResize:P,onSelectSpreadsheet:F,onColumnVisibilityChange:H,onRestoreColumnsVisibility:I}),[f,s,u,o,m,E,w,p,x,M,k,_,z,R,L,U,P,F,H,I]);return y.jsx(io.Provider,{value:O,children:t})}function De(){const e=i.useContext(io);if(!e)throw new Error("useSpreadsheet has to be used within <SpreadsheetContext.Provider>");return e}function Ls(e){const{children:t,className:n}=e,{size:r,setContainerDimensions:o}=De(),a=i.useRef(null);return i.useEffect(()=>{const s=a.current;if(!s)return;const c=new ResizeObserver(l=>{const d=l[0];if(d){const f=d.contentRect.width,u=d.contentRect.height;o({height:u,width:f})}});return c.observe(s),()=>{c.disconnect()}},[o]),y.jsx("div",{ref:a,className:ee("relative min-h-[260px] w-full border border-t-0 border-r-0",r.rows>=7?"border-b-0":"border-b",n),children:t})}function Fs(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function Vs(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var Bs=function(e,t){return typeof t=="boolean"?t:!e},so=function(e){return i.useReducer(Bs,e)},zs=["mousedown","touchstart"],co=function(e,t,n){n===void 0&&(n=zs);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,s=n;a<s.length;a++){var c=s[a];Fs(document,c,o)}return function(){for(var l=0,d=n;l<d.length;l++){var f=d[l];Vs(document,f,o)}}},[n,e])};function Ws(e){const{children:t,className:n}=e,{setPointRange:r}=De(),o=i.useRef(null);return co(o,()=>r(null)),y.jsx("div",{ref:o,className:ee("",n),children:t})}const lo={Matrix:Ls,Root:Ws};function Rs(e){const{className:t,...n}=e;return y.jsx("button",{draggable:!0,className:ee("h-9 w-1.5 cursor-col-resize rounded-sm bg-neutral-400 drop-shadow-md",t),...n,children:y.jsxs("div",{className:"relative",children:[y.jsx("span",{className:"-translate-y-1/2 absolute top-1/2 right-2.5 h-3 w-1 rounded-full bg-neutral-300"}),y.jsx("span",{className:"-translate-y-1/2 absolute top-1/2 left-2.5 h-3 w-1 rounded-full bg-neutral-300"})]})})}function Hs(e){const{className:t,column:n,visible:r,children:o,width:a}=e,{position:s,alphabetLetter:c}=n,{matrix:l,pointRange:d,containerDimensions:f,onColumnResize:u}=De(),m=i.useRef(null),v=i.useMemo(()=>(f?.height||0)+32,[f?.height]),[p,h]=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(L=>{g(L.clientX),h(!0)},[]),M=i.useCallback(L=>{const P=m.current;if(!P)return;const U=L.clientX-x;let F=a+U;F>Xe&&(F=Xe),F<qe&&(F=qe),P.style.left=`${F}px`,$(L.clientX)},[x,a]),k=i.useCallback(L=>{const P=L.clientX-x,U=a+P;u({width:U,position:s}),h(!1)},[x,a,s,u]),_=i.useCallback(()=>{if(p)return`bg-neutral-100 font-bold text-neutral-700 ${t}`;if(d&&!p){const{start:L,end:P}=d,U=Vn({matrix:l,pointRange:d}),F=s>=L.column&&s<=P.column;if(U)return`bg-[#0085FF] font-bold text-white ${t}`;if(F)return`bg-blue-100 font-bold text-blue-700 ${t}`}return t},[p,t,l,d,s]),z=i.useCallback(()=>{let L=a+C;return L>Xe&&(L=Xe),L<qe&&(L=qe),`${L}px`},[a,C]),R=i.useMemo(()=>({onDragStart:E,onDrag:M,onDragEnd:k}),[E,M,k]);return i.useEffect(()=>{const L=m.current;L&&(L.style.left=`${a}px`)},[a]),r?y.jsxs("div",{style:{width:a},className:ee("relative flex h-7 w-32 shrink-0 items-center justify-center border border-t-0 border-l-0 text-[#8E8EA9] text-xs",_()),children:[y.jsx(Rs,{...R,className:ee("-right-[3px] -top-1 absolute z-50 opacity-0 hover:opacity-100",p&&"opacity-0")}),y.jsx("div",{ref:m,style:{height:v},className:ee("-top-4 pointer-events-none absolute z-50 h-full w-1.5 rounded-full bg-blue-400 shadow-lg outline outline-sky-100",p?"opacity-100":"opacity-0"),children:y.jsx("span",{className:"-translate-y-1/2 relative top-8 left-4 z-50 select-none rounded-md border bg-white p-1 font-semibold drop-shadow-md",children:z()})}),y.jsx("span",{children:o||c})]}):null}function Qe(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 Us=["color"],zn=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Qe(e,Us);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"}))}),Ks=["color"],uo=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Qe(e,Ks);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"}))}),Gs=["color"],Ys=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Qe(e,Gs);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"}))}),Xs=["color"],qs=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Qe(e,Xs);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"}))}),Zs=["color"],Js=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Qe(e,Zs);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"}))}),Qs=["color"],ec=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Qe(e,Qs);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}))}),tc=["color"],nc=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Qe(e,tc);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"}))}),rc=["color"],oc=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Qe(e,rc);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"}))});/**
35
36
  * @license lucide-react v0.376.0 - ISC
36
37
  *
37
38
  * This source code is licensed under the ISC license.
38
39
  * See the LICENSE file in the root directory of this source tree.
39
- */const ac=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),lo=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
40
+ */const ac=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
41
  * @license lucide-react v0.376.0 - ISC
41
42
  *
42
43
  * This source code is licensed under the ISC license.
@@ -46,12 +47,12 @@ Linha N° ${N+1} até N° ${S+1}`:`Você irá excluir a linha N° ${N+1}, deseja
46
47
  *
47
48
  * This source code is licensed under the ISC license.
48
49
  * See the LICENSE file in the root directory of this source tree.
49
- */const sc=i.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...c},l)=>i.createElement("svg",{ref:l,...ic,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:lo("lucide",o),...c},[...s.map(([u,f])=>i.createElement(u,f)),...Array.isArray(a)?a:[a]]));/**
50
+ */const sc=i.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...c},l)=>i.createElement("svg",{ref:l,...ic,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:fo("lucide",o),...c},[...s.map(([d,f])=>i.createElement(d,f)),...Array.isArray(a)?a:[a]]));/**
50
51
  * @license lucide-react v0.376.0 - ISC
51
52
  *
52
53
  * This source code is licensed under the ISC license.
53
54
  * See the LICENSE file in the root directory of this source tree.
54
- */const it=(e,t)=>{const n=i.forwardRef(({className:r,...o},a)=>i.createElement(sc,{ref:a,iconNode:t,className:lo(`lucide-${ac(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
55
+ */const it=(e,t)=>{const n=i.forwardRef(({className:r,...o},a)=>i.createElement(sc,{ref:a,iconNode:t,className:fo(`lucide-${ac(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
55
56
  * @license lucide-react v0.376.0 - ISC
56
57
  *
57
58
  * This source code is licensed under the ISC license.
@@ -66,17 +67,17 @@ Linha N° ${N+1} até N° ${S+1}`:`Você irá excluir a linha N° ${N+1}, deseja
66
67
  *
67
68
  * This source code is licensed under the ISC license.
68
69
  * See the LICENSE file in the root directory of this source tree.
69
- */const uc=it("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"}]]);/**
70
+ */const dc=it("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"}]]);/**
70
71
  * @license lucide-react v0.376.0 - ISC
71
72
  *
72
73
  * This source code is licensed under the ISC license.
73
74
  * See the LICENSE file in the root directory of this source tree.
74
- */const uo=it("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"}]]);/**
75
+ */const po=it("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"}]]);/**
75
76
  * @license lucide-react v0.376.0 - ISC
76
77
  *
77
78
  * This source code is licensed under the ISC license.
78
79
  * See the LICENSE file in the root directory of this source tree.
79
- */const dc=it("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"}]]);/**
80
+ */const uc=it("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"}]]);/**
80
81
  * @license lucide-react v0.376.0 - ISC
81
82
  *
82
83
  * This source code is licensed under the ISC license.
@@ -86,12 +87,12 @@ Linha N° ${N+1} até N° ${S+1}`:`Você irá excluir a linha N° ${N+1}, deseja
86
87
  *
87
88
  * This source code is licensed under the ISC license.
88
89
  * See the LICENSE file in the root directory of this source tree.
89
- */const pc=it("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"}]]);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 mc(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function en(...e){return t=>e.forEach(n=>mc(n,t))}function ve(...e){return i.useCallback(en(...e),e)}function st(e,t=[]){let n=[];function r(a,s){const c=i.createContext(s),l=n.length;n=[...n,s];function u(d){const{scope:m,children:v,...p}=d,h=m?.[e][l]||c,x=i.useMemo(()=>p,Object.values(p));return i.createElement(h.Provider,{value:x},v)}function f(d,m){const v=m?.[e][l]||c,p=i.useContext(v);if(p)return p;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${a}\``)}return u.displayName=a+"Provider",[u,f]}const o=()=>{const a=n.map(s=>i.createContext(s));return function(c){const l=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,hc(o,...t)]}function hc(...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 s=r.reduce((c,{useScope:l,scopeName:u})=>{const d=l(a)[`__scope${u}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}const ct=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),a=o.find(vc);if(a){const s=a.props.children,c=o.map(l=>l===a?i.Children.count(s)>1?i.Children.only(null):i.isValidElement(s)?s.props.children:null:l);return i.createElement(zn,j({},r,{ref:t}),i.isValidElement(s)?i.cloneElement(s,void 0,c):null)}return i.createElement(zn,j({},r,{ref:t}),n)});ct.displayName="Slot";const zn=i.forwardRef((e,t)=>{const{children:n,...r}=e;return i.isValidElement(n)?i.cloneElement(n,{...gc(r,n.props),ref:t?en(t,n.ref):n.ref}):i.Children.count(n)>1?i.Children.only(null):null});zn.displayName="SlotClone";const fo=({children:e})=>i.createElement(i.Fragment,null,e);function vc(e){return i.isValidElement(e)&&e.type===fo}function gc(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]=(...c)=>{a(...c),o(...c)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const pe=["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,...s}=r,c=a?ct:t;return i.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),i.createElement(c,j({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function po(e,t){e&&gt.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 bc(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 Wn="dismissableLayer.update",wc="dismissableLayer.pointerDownOutside",xc="dismissableLayer.focusOutside";let mo;const yc=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Rn=i.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:c,onDismiss:l,...u}=e,f=i.useContext(yc),[d,m]=i.useState(null),v=(n=d?.ownerDocument)!==null&&n!==void 0?n:globalThis?.document,[,p]=i.useState({}),h=ve(t,_=>m(_)),x=Array.from(f.layers),[g]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=x.indexOf(g),$=d?x.indexOf(d):-1,C=f.layersWithOutsidePointerEventsDisabled.size>0,E=$>=w,O=$c(_=>{const z=_.target,K=[...f.branches].some(B=>B.contains(z));!E||K||(a?.(_),c?.(_),_.defaultPrevented||l?.())},v),k=Cc(_=>{const z=_.target;[...f.branches].some(B=>B.contains(z))||(s?.(_),c?.(_),_.defaultPrevented||l?.())},v);return bc(_=>{$===f.layers.size-1&&(o?.(_),!_.defaultPrevented&&l&&(_.preventDefault(),l()))},v),i.useEffect(()=>{if(d)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(mo=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),ho(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=mo)}},[d,v,r,f]),i.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),ho())},[d,f]),i.useEffect(()=>{const _=()=>p({});return document.addEventListener(Wn,_),()=>document.removeEventListener(Wn,_)},[]),i.createElement(pe.div,j({},u,{ref:h,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 $c(e,t=globalThis?.document){const n=Me(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=c=>{if(c.target&&!r.current){let u=function(){vo(wc,n,l,{discrete:!0})};const l={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Cc(e,t=globalThis?.document){const n=Me(e),r=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!r.current&&vo(xc,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 ho(){const e=new CustomEvent(Wn);document.dispatchEvent(e)}function vo(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?po(o,a):o.dispatchEvent(a)}const _e=globalThis?.document?i.useLayoutEffect:()=>{},Ec=D.useId||(()=>{});let Sc=0;function wt(e){const[t,n]=D.useState(Ec());return _e(()=>{n(r=>r??String(Sc++))},[e]),t?`radix-${t}`:""}const _c=["top","right","bottom","left"],et=Math.min,ke=Math.max,tn=Math.round,nn=Math.floor,tt=e=>({x:e,y:e}),Tc={left:"right",right:"left",bottom:"top",top:"bottom"},kc={start:"end",end:"start"};function Hn(e,t,n){return ke(e,et(t,n))}function Ve(e,t){return typeof e=="function"?e(t):e}function Be(e){return e.split("-")[0]}function xt(e){return e.split("-")[1]}function Un(e){return e==="x"?"y":"x"}function Kn(e){return e==="y"?"height":"width"}function yt(e){return["top","bottom"].includes(Be(e))?"y":"x"}function Gn(e){return Un(yt(e))}function Pc(e,t,n){n===void 0&&(n=!1);const r=xt(e),o=Gn(e),a=Kn(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=rn(s)),[s,rn(s)]}function Nc(e){const t=rn(e);return[Yn(e),t,Yn(t)]}function Yn(e){return e.replace(/start|end/g,t=>kc[t])}function Ic(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function Oc(e,t,n,r){const o=xt(e);let a=Ic(Be(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Yn)))),a}function rn(e){return e.replace(/left|right|bottom|top/g,t=>Tc[t])}function Mc(e){return{top:0,right:0,bottom:0,left:0,...e}}function go(e){return typeof e!="number"?Mc(e):{top:e,right:e,bottom:e,left:e}}function on(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function bo(e,t,n){let{reference:r,floating:o}=e;const a=yt(t),s=Gn(t),c=Kn(s),l=Be(t),u=a==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[c]/2-o[c]/2;let v;switch(l){case"top":v={x:f,y:r.y-o.height};break;case"bottom":v={x:f,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:d};break;case"left":v={x:r.x-o.width,y:d};break;default:v={x:r.x,y:r.y}}switch(xt(t)){case"start":v[s]-=m*(n&&u?-1:1);break;case"end":v[s]+=m*(n&&u?-1:1);break}return v}const Ac=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,c=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=bo(u,r,l),m=r,v={},p=0;for(let h=0;h<c.length;h++){const{name:x,fn:g}=c[h],{x:w,y:$,data:C,reset:E}=await g({x:f,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:v,rects:u,platform:s,elements:{reference:e,floating:t}});f=w??f,d=$??d,v={...v,[x]:{...v[x],...C}},E&&p<=50&&(p++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(u=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:d}=bo(u,m,l)),h=-1)}return{x:f,y:d,placement:m,strategy:o,middlewareData:v}};async function Bt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:c,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:v=0}=Ve(t,e),p=go(v),x=c[m?d==="floating"?"reference":"floating":d],g=on(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(c.floating)),boundary:u,rootBoundary:f,strategy:l})),w=d==="floating"?{...s.floating,x:r,y:o}:s.reference,$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.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=on(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,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 Dc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:c,middlewareData:l}=t,{element:u,padding:f=0}=Ve(e,t)||{};if(u==null)return{};const d=go(f),m={x:n,y:r},v=Gn(o),p=Kn(v),h=await s.getDimensions(u),x=v==="y",g=x?"top":"left",w=x?"bottom":"right",$=x?"clientHeight":"clientWidth",C=a.reference[p]+a.reference[v]-m[v]-a.floating[p],E=m[v]-a.reference[v],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let k=O?O[$]:0;(!k||!await(s.isElement==null?void 0:s.isElement(O)))&&(k=c.floating[$]||a.floating[p]);const _=C/2-E/2,z=k/2-h[p]/2-1,K=et(d[g],z),B=et(d[w],z),P=K,H=k-h[p]-B,L=k/2-h[p]/2+_,R=Hn(P,L,H),M=!l.arrow&&xt(o)!=null&&L!==R&&a.reference[p]/2-(L<P?K:B)-h[p]/2<0,I=M?L<P?L-P:L-H:0;return{[v]:m[v]+I,data:{[v]:R,centerOffset:L-R-I,...M&&{alignmentOffset:I}},reset:M}}}),jc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:c,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...x}=Ve(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const g=Be(o),w=Be(c)===c,$=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=m||(w||!h?[rn(c)]:Nc(c));!m&&p!=="none"&&C.push(...Oc(c,h,p,$));const E=[c,...C],O=await Bt(t,x),k=[];let _=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&k.push(O[g]),d){const P=Pc(o,s,$);k.push(O[P[0]],O[P[1]])}if(_=[..._,{placement:o,overflows:k}],!k.every(P=>P<=0)){var z,K;const P=(((z=a.flip)==null?void 0:z.index)||0)+1,H=E[P];if(H)return{data:{index:P,overflows:_},reset:{placement:H}};let L=(K=_.filter(R=>R.overflows[0]<=0).sort((R,M)=>R.overflows[1]-M.overflows[1])[0])==null?void 0:K.placement;if(!L)switch(v){case"bestFit":{var B;const R=(B=_.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:B[0];R&&(L=R);break}case"initialPlacement":L=c;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function wo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xo(e){return _c.some(t=>e[t]>=0)}const Lc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ve(e,t);switch(r){case"referenceHidden":{const a=await Bt(t,{...o,elementContext:"reference"}),s=wo(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:xo(s)}}}case"escaped":{const a=await Bt(t,{...o,altBoundary:!0}),s=wo(a,n.floating);return{data:{escapedOffsets:s,escaped:xo(s)}}}default:return{}}}}};async function Fc(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Be(n),c=xt(n),l=yt(n)==="y",u=["left","top"].includes(s)?-1:1,f=a&&l?-1:1,d=Ve(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return c&&typeof p=="number"&&(v=c==="end"?p*-1:p),l?{x:v*f,y:m*u}:{x:m*u,y:v*f}}const Vc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:c}=t,l=await Fc(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},Bc=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:s=!1,limiter:c={fn:x=>{let{x:g,y:w}=x;return{x:g,y:w}}},...l}=Ve(e,t),u={x:n,y:r},f=await Bt(t,l),d=yt(Be(o)),m=Un(d);let v=u[m],p=u[d];if(a){const x=m==="y"?"top":"left",g=m==="y"?"bottom":"right",w=v+f[x],$=v-f[g];v=Hn(w,v,$)}if(s){const x=d==="y"?"top":"left",g=d==="y"?"bottom":"right",w=p+f[x],$=p-f[g];p=Hn(w,p,$)}const h=c.fn({...t,[m]:v,[d]:p});return{...h,data:{x:h.x-n,y:h.y-r}}}}},zc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:c=0,mainAxis:l=!0,crossAxis:u=!0}=Ve(e,t),f={x:n,y:r},d=yt(o),m=Un(d);let v=f[m],p=f[d];const h=Ve(c,t),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const $=m==="y"?"height":"width",C=a.reference[m]-a.floating[$]+x.mainAxis,E=a.reference[m]+a.reference[$]-x.mainAxis;v<C?v=C:v>E&&(v=E)}if(u){var g,w;const $=m==="y"?"width":"height",C=["top","left"].includes(Be(o)),E=a.reference[d]-a.floating[$]+(C&&((g=s.offset)==null?void 0:g[d])||0)+(C?0:x.crossAxis),O=a.reference[d]+a.reference[$]+(C?0:((w=s.offset)==null?void 0:w[d])||0)-(C?x.crossAxis:0);p<E?p=E:p>O&&(p=O)}return{[m]:v,[d]:p}}}},Wc=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:s=()=>{},...c}=Ve(e,t),l=await Bt(t,c),u=Be(n),f=xt(n),d=yt(n)==="y",{width:m,height:v}=r.floating;let p,h;u==="top"||u==="bottom"?(p=u,h=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(h=u,p=f==="end"?"top":"bottom");const x=v-l[p],g=m-l[h],w=!t.middlewareData.shift;let $=x,C=g;if(d){const O=m-l.left-l.right;C=f||w?et(g,O):O}else{const O=v-l.top-l.bottom;$=f||w?et(x,O):O}if(w&&!f){const O=ke(l.left,0),k=ke(l.right,0),_=ke(l.top,0),z=ke(l.bottom,0);d?C=m-2*(O!==0||k!==0?O+k:ke(l.left,l.right)):$=v-2*(_!==0||z!==0?_+z:ke(l.top,l.bottom))}await s({...t,availableWidth:C,availableHeight:$});const E=await o.getDimensions(a.floating);return m!==E.width||v!==E.height?{reset:{rects:!0}}:{}}}};function nt(e){return yo(e)?(e.nodeName||"").toLowerCase():"#document"}function Pe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ze(e){var t;return(t=(yo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function yo(e){return e instanceof Node||e instanceof Pe(e).Node}function We(e){return e instanceof Element||e instanceof Pe(e).Element}function Le(e){return e instanceof HTMLElement||e instanceof Pe(e).HTMLElement}function $o(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pe(e).ShadowRoot}function zt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ne(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Rc(e){return["table","td","th"].includes(nt(e))}function Xn(e){const t=qn(),n=Ne(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 Hc(e){let t=$t(e);for(;Le(t)&&!an(t);){if(Xn(t))return t;t=$t(t)}return null}function qn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function an(e){return["html","body","#document"].includes(nt(e))}function Ne(e){return Pe(e).getComputedStyle(e)}function sn(e){return We(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function $t(e){if(nt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$o(e)&&e.host||ze(e);return $o(t)?t.host:t}function Co(e){const t=$t(e);return an(t)?e.ownerDocument?e.ownerDocument.body:e.body:Le(t)&&zt(t)?t:Co(t)}function Wt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Co(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=Pe(o);return a?t.concat(s,s.visualViewport||[],zt(o)?o:[],s.frameElement&&n?Wt(s.frameElement):[]):t.concat(o,Wt(o,[],n))}function Eo(e){const t=Ne(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Le(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=tn(n)!==a||tn(r)!==s;return c&&(n=a,r=s),{width:n,height:r,$:c}}function Zn(e){return We(e)?e:e.contextElement}function Ct(e){const t=Zn(e);if(!Le(t))return tt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Eo(t);let s=(a?tn(n.width):n.width)/r,c=(a?tn(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Uc=tt(0);function So(e){const t=Pe(e);return!qn()||!t.visualViewport?Uc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Kc(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pe(e)?!1:t}function lt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Zn(e);let s=tt(1);t&&(r?We(r)&&(s=Ct(r)):s=Ct(e));const c=Kc(a,n,r)?So(a):tt(0);let l=(o.left+c.x)/s.x,u=(o.top+c.y)/s.y,f=o.width/s.x,d=o.height/s.y;if(a){const m=Pe(a),v=r&&We(r)?Pe(r):r;let p=m,h=p.frameElement;for(;h&&r&&v!==p;){const x=Ct(h),g=h.getBoundingClientRect(),w=Ne(h),$=g.left+(h.clientLeft+parseFloat(w.paddingLeft))*x.x,C=g.top+(h.clientTop+parseFloat(w.paddingTop))*x.y;l*=x.x,u*=x.y,f*=x.x,d*=x.y,l+=$,u+=C,p=Pe(h),h=p.frameElement}}return on({width:f,height:d,x:l,y:u})}const Gc=[":popover-open",":modal"];function _o(e){return Gc.some(t=>{try{return e.matches(t)}catch{return!1}})}function Yc(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=ze(r),c=t?_o(t.floating):!1;if(r===s||c&&a)return n;let l={scrollLeft:0,scrollTop:0},u=tt(1);const f=tt(0),d=Le(r);if((d||!d&&!a)&&((nt(r)!=="body"||zt(s))&&(l=sn(r)),Le(r))){const m=lt(r);u=Ct(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x,y:n.y*u.y-l.scrollTop*u.y+f.y}}function Xc(e){return Array.from(e.getClientRects())}function To(e){return lt(ze(e)).left+sn(e).scrollLeft}function qc(e){const t=ze(e),n=sn(e),r=e.ownerDocument.body,o=ke(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ke(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+To(e);const c=-n.scrollTop;return Ne(r).direction==="rtl"&&(s+=ke(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:c}}function Zc(e,t){const n=Pe(e),r=ze(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,c=0,l=0;if(o){a=o.width,s=o.height;const u=qn();(!u||u&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:c,y:l}}function Jc(e,t){const n=lt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Le(e)?Ct(e):tt(1),s=e.clientWidth*a.x,c=e.clientHeight*a.y,l=o*a.x,u=r*a.y;return{width:s,height:c,x:l,y:u}}function ko(e,t,n){let r;if(t==="viewport")r=Zc(e,n);else if(t==="document")r=qc(ze(e));else if(We(t))r=Jc(t,n);else{const o=So(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return on(r)}function Po(e,t){const n=$t(e);return n===t||!We(n)||an(n)?!1:Ne(n).position==="fixed"||Po(n,t)}function Qc(e,t){const n=t.get(e);if(n)return n;let r=Wt(e,[],!1).filter(c=>We(c)&&nt(c)!=="body"),o=null;const a=Ne(e).position==="fixed";let s=a?$t(e):e;for(;We(s)&&!an(s);){const c=Ne(s),l=Xn(s);!l&&c.position==="fixed"&&(o=null),(a?!l&&!o:!l&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||zt(s)&&!l&&Po(e,s))?r=r.filter(f=>f!==s):o=c,s=$t(s)}return t.set(e,r),r}function el(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Qc(t,this._c):[].concat(n),r],c=s[0],l=s.reduce((u,f)=>{const d=ko(t,f,o);return u.top=ke(d.top,u.top),u.right=et(d.right,u.right),u.bottom=et(d.bottom,u.bottom),u.left=ke(d.left,u.left),u},ko(t,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function tl(e){const{width:t,height:n}=Eo(e);return{width:t,height:n}}function nl(e,t,n){const r=Le(t),o=ze(t),a=n==="fixed",s=lt(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const l=tt(0);if(r||!r&&!a)if((nt(t)!=="body"||zt(o))&&(c=sn(t)),r){const d=lt(t,!0,a,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else o&&(l.x=To(o));const u=s.left+c.scrollLeft-l.x,f=s.top+c.scrollTop-l.y;return{x:u,y:f,width:s.width,height:s.height}}function No(e,t){return!Le(e)||Ne(e).position==="fixed"?null:t?t(e):e.offsetParent}function Io(e,t){const n=Pe(e);if(!Le(e)||_o(e))return n;let r=No(e,t);for(;r&&Rc(r)&&Ne(r).position==="static";)r=No(r,t);return r&&(nt(r)==="html"||nt(r)==="body"&&Ne(r).position==="static"&&!Xn(r))?n:r||Hc(e)||n}const rl=async function(e){const t=this.getOffsetParent||Io,n=this.getDimensions;return{reference:nl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function ol(e){return Ne(e).direction==="rtl"}const al={convertOffsetParentRelativeRectToViewportRelativeRect:Yc,getDocumentElement:ze,getClippingRect:el,getOffsetParent:Io,getElementRects:rl,getClientRects:Xc,getDimensions:tl,getScale:Ct,isElement:We,isRTL:ol};function il(e,t){let n=null,r;const o=ze(e);function a(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),a();const{left:u,top:f,width:d,height:m}=e.getBoundingClientRect();if(c||t(),!d||!m)return;const v=nn(f),p=nn(o.clientWidth-(u+d)),h=nn(o.clientHeight-(f+m)),x=nn(u),w={rootMargin:-v+"px "+-p+"px "+-h+"px "+-x+"px",threshold:ke(0,et(1,l))||1};let $=!0;function C(E){const O=E[0].intersectionRatio;if(O!==l){if(!$)return s();O?s(!1,O):r=setTimeout(()=>{s(!1,1e-7)},100)}$=!1}try{n=new IntersectionObserver(C,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,w)}n.observe(e)}return s(!0),a}function sl(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Zn(e),f=o||a?[...u?Wt(u):[],...Wt(t)]:[];f.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),a&&g.addEventListener("resize",n)});const d=u&&c?il(u,n):null;let m=-1,v=null;s&&(v=new ResizeObserver(g=>{let[w]=g;w&&w.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var $;($=v)==null||$.observe(t)})),n()}),u&&!l&&v.observe(u),v.observe(t));let p,h=l?lt(e):null;l&&x();function x(){const g=lt(e);h&&(g.x!==h.x||g.y!==h.y||g.width!==h.width||g.height!==h.height)&&n(),h=g,p=requestAnimationFrame(x)}return n(),()=>{var g;f.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),d?.(),(g=v)==null||g.disconnect(),v=null,l&&cancelAnimationFrame(p)}}const cl=Bc,ll=jc,ul=Wc,dl=Lc,Oo=Dc,fl=zc,pl=(e,t,n)=>{const r=new Map,o={platform:al,...n},a={...o.platform,_c:r};return Ac(e,t,{...o,platform:a})},ml=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?Oo({element:r.current,padding:o}).fn(n):{}:r?Oo({element:r,padding:o}).fn(n):{}}}};var cn=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 Mo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ao(e,t){const n=Mo(e);return Math.round(t*n)/n}function Do(e){const t=D.useRef(e);return cn(()=>{t.current=e}),t}function hl(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[f,d]=D.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,v]=D.useState(r);ln(m,r)||v(r);const[p,h]=D.useState(null),[x,g]=D.useState(null),w=D.useCallback(I=>{I!==O.current&&(O.current=I,h(I))},[]),$=D.useCallback(I=>{I!==k.current&&(k.current=I,g(I))},[]),C=a||p,E=s||x,O=D.useRef(null),k=D.useRef(null),_=D.useRef(f),z=l!=null,K=Do(l),B=Do(o),P=D.useCallback(()=>{if(!O.current||!k.current)return;const I={placement:t,strategy:n,middleware:m};B.current&&(I.platform=B.current),pl(O.current,k.current,I).then(N=>{const S={...N,isPositioned:!0};H.current&&!ln(_.current,S)&&(_.current=S,Bi.flushSync(()=>{d(S)}))})},[m,t,n,B]);cn(()=>{u===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,d(I=>({...I,isPositioned:!1})))},[u]);const H=D.useRef(!1);cn(()=>(H.current=!0,()=>{H.current=!1}),[]),cn(()=>{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,z]);const L=D.useMemo(()=>({reference:O,floating:k,setReference:w,setFloating:$}),[w,$]),R=D.useMemo(()=>({reference:C,floating:E}),[C,E]),M=D.useMemo(()=>{const I={position:n,left:0,top:0};if(!R.floating)return I;const N=Ao(R.floating,f.x),S=Ao(R.floating,f.y);return c?{...I,transform:"translate("+N+"px, "+S+"px)",...Mo(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:S}},[n,c,R.floating,f.x,f.y]);return D.useMemo(()=>({...f,update:P,refs:L,elements:R,floatingStyles:M}),[f,P,L,R,M])}const vl=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return i.createElement(pe.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 gl(e){const[t,n]=i.useState(void 0);return _e(()=>{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 s,c;if("borderBoxSize"in a){const l=a.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,c=u.blockSize}else s=e.offsetWidth,c=e.offsetHeight;n({width:s,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const jo="Popper",[Lo,Et]=st(jo),[bl,Fo]=Lo(jo),wl=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return i.createElement(bl,{scope:t,anchor:r,onAnchorChange:o},n)},xl="PopperAnchor",yl=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Fo(xl,n),s=i.useRef(null),c=ve(t,s);return i.useEffect(()=>{a.onAnchorChange(r?.current||s.current)}),r?null:i.createElement(pe.div,j({},o,{ref:c}))}),Vo="PopperContent",[$l,Cl]=Lo(Vo),El=i.forwardRef((e,t)=>{var n,r,o,a,s,c,l,u;const{__scopePopper:f,side:d="bottom",sideOffset:m=0,align:v="center",alignOffset:p=0,arrowPadding:h=0,avoidCollisions:x=!0,collisionBoundary:g=[],collisionPadding:w=0,sticky:$="partial",hideWhenDetached:C=!1,updatePositionStrategy:E="optimized",onPlaced:O,...k}=e,_=Fo(Vo,f),[z,K]=i.useState(null),B=ve(t,A=>K(A)),[P,H]=i.useState(null),L=gl(P),R=(n=L?.width)!==null&&n!==void 0?n:0,M=(r=L?.height)!==null&&r!==void 0?r:0,I=d+(v!=="center"?"-"+v:""),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(Tl),altBoundary:F},{refs:X,floatingStyles:re,placement:be,isPositioned:ge,middlewareData:de}=hl({strategy:"fixed",placement:I,whileElementsMounted:(...A)=>sl(...A,{animationFrame:E==="always"}),elements:{reference:_.anchor},middleware:[Vc({mainAxis:m+M,alignmentAxis:p}),x&&cl({mainAxis:!0,crossAxis:!1,limiter:$==="partial"?fl():void 0,...W}),x&&ll({...W}),ul({...W,apply:({elements:A,rects:U,availableWidth:Z,availableHeight:me})=>{const{width:xe,height:le}=U.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:h}),kl({arrowWidth:R,arrowHeight:M}),C&&dl({strategy:"referenceHidden",...W})]}),[G,ee]=zo(be),oe=Me(O);_e(()=>{ge&&oe?.()},[ge,oe]);const ne=(o=de.arrow)===null||o===void 0?void 0:o.x,ce=(a=de.arrow)===null||a===void 0?void 0:a.y,ie=((s=de.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[$e,Ce]=i.useState();return _e(()=>{z&&Ce(window.getComputedStyle(z).zIndex)},[z]),i.createElement("div",{ref:X.setFloating,"data-radix-popper-content-wrapper":"",style:{...re,transform:ge?re.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$e,"--radix-popper-transform-origin":[(c=de.transformOrigin)===null||c===void 0?void 0:c.x,(l=de.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},i.createElement($l,{scope:f,placedSide:G,onArrowChange:H,arrowX:ne,arrowY:ce,shouldHideArrow:ie},i.createElement(pe.div,j({"data-side":G,"data-align":ee},k,{ref:B,style:{...k.style,animation:ge?void 0:"none",opacity:(u=de.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))}),Bo="PopperArrow",Sl={top:"bottom",right:"left",bottom:"top",left:"right"},_l=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Cl(Bo,r),s=Sl[a.placedSide];return i.createElement("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]: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(vl,j({},o,{ref:n,style:{...o.style,display:"block"}})))});function Tl(e){return e!==null}const kl=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,s;const{placement:c,rects:l,middlewareData:u}=t,d=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,m=d?0:e.arrowWidth,v=d?0:e.arrowHeight,[p,h]=zo(c),x={start:"0%",center:"50%",end:"100%"}[h],g=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+m/2,w=((a=(s=u.arrow)===null||s===void 0?void 0:s.y)!==null&&a!==void 0?a:0)+v/2;let $="",C="";return p==="bottom"?($=d?x:`${g}px`,C=`${-v}px`):p==="top"?($=d?x:`${g}px`,C=`${l.floating.height+v}px`):p==="right"?($=`${-v}px`,C=d?x:`${w}px`):p==="left"&&($=`${l.floating.width+v}px`,C=d?x:`${w}px`),{data:{x:$,y:C}}}});function zo(e){const[t,n="center"]=e.split("-");return[t,n]}const Jn=wl,Qn=yl,er=El,Wo=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?gt.createPortal(i.createElement(pe.div,j({},o,{ref:t})),r):null});function Pl(e,t){return i.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const St=e=>{const{present:t,children:n}=e,r=Nl(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};St.displayName="Presence";function Nl(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),a=i.useRef("none"),s=e?"mounted":"unmounted",[c,l]=Pl(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=un(r.current);a.current=c==="mounted"?u:"none"},[c]),_e(()=>{const u=r.current,f=o.current;if(f!==e){const m=a.current,v=un(u);e?l("MOUNT"):v==="none"||u?.display==="none"?l("UNMOUNT"):l(f&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),_e(()=>{if(t){const u=d=>{const v=un(r.current).includes(d.animationName);d.target===t&&v&&gt.flushSync(()=>l("ANIMATION_END"))},f=d=>{d.target===t&&(a.current=un(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function un(e){return e?.animationName||"none"}function Rt({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Il({defaultProp:t,onChange:n}),a=e!==void 0,s=a?e:r,c=Me(n),l=i.useCallback(u=>{if(a){const d=typeof u=="function"?u(e):u;d!==e&&c(d)}else o(u)},[a,e,o,c]);return[s,l]}function Il({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 Ro=i.forwardRef((e,t)=>i.createElement(pe.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}}))),Ol=Ro,[dn,Mm]=st("Tooltip",[Et]),tr=Et(),Ml="TooltipProvider",Al=700,nr="tooltip.open",[Dl,rr]=dn(Ml),jl=e=>{const{__scopeTooltip:t,delayDuration:n=Al,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[s,c]=i.useState(!0),l=i.useRef(!1),u=i.useRef(0);return i.useEffect(()=>{const f=u.current;return()=>window.clearTimeout(f)},[]),i.createElement(Dl,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(u.current),c(!1)},[]),onClose:i.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>c(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:i.useCallback(f=>{l.current=f},[]),disableHoverableContent:o},a)},or="Tooltip",[Ll,fn]=dn(or),Fl=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,l=rr(or,e.__scopeTooltip),u=tr(t),[f,d]=i.useState(null),m=wt(),v=i.useRef(0),p=s??l.disableHoverableContent,h=c??l.delayDuration,x=i.useRef(!1),[g=!1,w]=Rt({prop:r,defaultProp:o,onChange:k=>{k?(l.onOpen(),document.dispatchEvent(new CustomEvent(nr))):l.onClose(),a?.(k)}}),$=i.useMemo(()=>g?x.current?"delayed-open":"instant-open":"closed",[g]),C=i.useCallback(()=>{window.clearTimeout(v.current),x.current=!1,w(!0)},[w]),E=i.useCallback(()=>{window.clearTimeout(v.current),w(!1)},[w]),O=i.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{x.current=!0,w(!0)},h)},[h,w]);return i.useEffect(()=>()=>window.clearTimeout(v.current),[]),i.createElement(Jn,u,i.createElement(Ll,{scope:t,contentId:m,open:g,stateAttribute:$,trigger:f,onTriggerChange:d,onTriggerEnter:i.useCallback(()=>{l.isOpenDelayed?O():C()},[l.isOpenDelayed,O,C]),onTriggerLeave:i.useCallback(()=>{p?E():window.clearTimeout(v.current)},[E,p]),onOpen:C,onClose:E,disableHoverableContent:p},n))},Ho="TooltipTrigger",Vl=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=fn(Ho,n),a=rr(Ho,n),s=tr(n),c=i.useRef(null),l=ve(t,c,o.onTriggerChange),u=i.useRef(!1),f=i.useRef(!1),d=i.useCallback(()=>u.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),i.createElement(Qn,j({asChild:!0},s),i.createElement(pe.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,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Y(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Y(e.onBlur,o.onClose),onClick:Y(e.onClick,o.onClose)})))}),Bl="TooltipPortal",[Am,zl]=dn(Bl,{forceMount:void 0}),Ht="TooltipContent",Wl=i.forwardRef((e,t)=>{const n=zl(Ht,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=fn(Ht,e.__scopeTooltip);return i.createElement(St,{present:r||s.open},s.disableHoverableContent?i.createElement(Uo,j({side:o},a,{ref:t})):i.createElement(Rl,j({side:o},a,{ref:t})))}),Rl=i.forwardRef((e,t)=>{const n=fn(Ht,e.__scopeTooltip),r=rr(Ht,e.__scopeTooltip),o=i.useRef(null),a=ve(t,o),[s,c]=i.useState(null),{trigger:l,onClose:u}=n,f=o.current,{onPointerInTransitChange:d}=r,m=i.useCallback(()=>{c(null),d(!1)},[d]),v=i.useCallback((p,h)=>{const x=p.currentTarget,g={x:p.clientX,y:p.clientY},w=Ul(g,x.getBoundingClientRect()),$=Kl(g,w),C=Gl(h.getBoundingClientRect()),E=Xl([...$,...C]);c(E),d(!0)},[d]);return i.useEffect(()=>()=>m(),[m]),i.useEffect(()=>{if(l&&f){const p=x=>v(x,f),h=x=>v(x,l);return l.addEventListener("pointerleave",p),f.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",p),f.removeEventListener("pointerleave",h)}}},[l,f,v,m]),i.useEffect(()=>{if(s){const p=h=>{const x=h.target,g={x:h.clientX,y:h.clientY},w=l?.contains(x)||f?.contains(x),$=!Yl(g,s);w?m():$&&(m(),u())};return document.addEventListener("pointermove",p),()=>document.removeEventListener("pointermove",p)}},[l,f,s,u,m]),i.createElement(Uo,j({},e,{ref:a}))}),[Hl,Dm]=dn(or,{isInside:!1}),Uo=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...c}=e,l=fn(Ht,n),u=tr(n),{onClose:f}=l;return i.useEffect(()=>(document.addEventListener(nr,f),()=>document.removeEventListener(nr,f)),[f]),i.useEffect(()=>{if(l.trigger){const d=m=>{const v=m.target;v!=null&&v.contains(l.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,f]),i.createElement(Rn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:f},i.createElement(er,j({"data-state":l.stateAttribute},u,c,{ref:t,style:{...c.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(fo,null,r),i.createElement(Hl,{scope:n,isInside:!0},i.createElement(Ol,{id:l.contentId,role:"tooltip"},o||r))))});function Ul(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 Kl(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 Gl(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 Yl(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const c=t[a].x,l=t[a].y,u=t[s].x,f=t[s].y;l>r!=f>r&&n<(u-c)*(r-l)/(f-l)+c&&(o=!o)}return o}function Xl(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),ql(t)}function ql(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],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.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],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.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 Zl=jl,Jl=Fl,Ql=Vl,Ko=Wl,pn=Zl,mn=Jl,hn=Ql,Ut=D.forwardRef(({className:e,sideOffset:t=4,...n},r)=>y.jsx(Ko,{ref:r,sideOffset:t,className:Q("fade-in-0 zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 animate-in overflow-hidden rounded-md bg-primary px-3 py-1.5 text-primary-foreground text-xs data-[state=closed]:animate-out",e),...n}));Ut.displayName=Ko.displayName;function eu(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 tu({column:e,width:t,visible:n}){const{name:r,dataEditorType:o,description:a}=e;return n?y.jsxs("div",{className:"flex h-9 w-32 shrink-0 items-center gap-2 border border-t-0 border-l-0 bg-[#F6F6F9] px-2",style:{width:t,height:Cs},children:[y.jsxs("div",{className:"w-4 shrink-0 text-[#8E8EA9]",children:[o==="String"&&y.jsx(oc,{className:"h-4 w-4"}),o==="Date"&&y.jsx(cc,{className:"h-4 w-4"}),o==="Boolean"&&y.jsx(uc,{className:"h-4 w-4"}),o==="Select"&&y.jsx(fc,{className:"h-4 w-4"}),o==="Float"&&y.jsx(uo,{className:"h-4 w-4"}),o==="Decimal"&&y.jsx(uo,{className:"h-4 w-4"}),o==="Integer"&&y.jsx(eu,{className:"h-4 w-4"}),o==="Currency"&&y.jsx(dc,{className:"h-4 w-4"}),o==="Percentage"&&y.jsx(pc,{className:"h-4 w-4"})]}),y.jsx("p",{title:r,className:"line-clamp-2 w-full break-words font-semibold text-[#4A4A6A] text-xs",children:r}),a?y.jsx(pn,{children:y.jsxs(mn,{delayDuration:100,children:[y.jsx(hn,{children:y.jsx(nc,{className:"h-4 w-4 text-[#4A4A6A]"})}),y.jsx(Ut,{className:"max-w-[240px]",children:y.jsx("p",{children:a})})]})}):y.jsx("div",{className:"w-4 shrink-0"})]}):null}function nu({className:e}){const{emptySize:t,onSelectSpreadsheet:n}=De();return y.jsxs("button",{type:"button",disabled:t,className:Q("relative flex h-7 w-12 shrink-0 items-center justify-center border border-t border-l bg-white text-xs",e),onClick:n,children:[y.jsx("span",{className:"absolute top-0 right-0 h-full w-0.5 bg-gray-300"}),y.jsx("span",{className:"absolute bottom-0 left-0 h-0.5 w-full bg-gray-300"})]})}function ru(){const{columns:e}=De();return y.jsxs("div",{children:[y.jsxs("div",{className:"relative flex items-center bg-white",children:[y.jsx(nu,{className:"border-t-0 border-l-0"}),e.map(t=>y.jsx(Hs,{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:"flex items-center",children:[y.jsx("div",{className:"h-9 w-12 shrink-0 cursor-default border border-t-0 border-l-0 bg-[#F6F6F9]"}),e.map(t=>y.jsx(tu,{column:t,width:e[t.position].state.width,visible:e[t.position].state.visible},`spreadsheet__column__header__key__${t.name}__${t.position}`))]})]})}function Go(e,[t,n]){return Math.min(n,Math.max(t,e))}function ar(e){const t=e+"CollectionProvider",[n,r]=st(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:p,children:h}=v,x=i.useRef(null),g=i.useRef(new Map).current;return i.createElement(o,{scope:p,itemMap:g,collectionRef:x},h)},c=e+"CollectionSlot",l=i.forwardRef((v,p)=>{const{scope:h,children:x}=v,g=a(c,h),w=ve(p,g.collectionRef);return i.createElement(ct,{ref:w},x)}),u=e+"CollectionItemSlot",f="data-radix-collection-item",d=i.forwardRef((v,p)=>{const{scope:h,children:x,...g}=v,w=i.useRef(null),$=ve(p,w),C=a(u,h);return i.useEffect(()=>(C.itemMap.set(w,{ref:w,...g}),()=>void C.itemMap.delete(w))),i.createElement(ct,{[f]:"",ref:$},x)});function m(v){const p=a(e+"CollectionConsumer",v);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:s,Slot:l,ItemSlot:d},m,r]}const ou=i.createContext(void 0);function ir(e){const t=i.useContext(ou);return e||t||"ltr"}let sr=0;function Yo(){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:Xo()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Xo()),sr++,()=>{sr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),sr--}},[])}function Xo(){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 cr="focusScope.autoFocusOnMount",lr="focusScope.autoFocusOnUnmount",qo={bubbles:!1,cancelable:!0},Zo=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[c,l]=i.useState(null),u=Me(o),f=Me(a),d=i.useRef(null),m=ve(t,h=>l(h)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let h=function($){if(v.paused||!c)return;const C=$.target;c.contains(C)?d.current=C:rt(d.current,{select:!0})},x=function($){if(v.paused||!c)return;const C=$.relatedTarget;C!==null&&(c.contains(C)||rt(d.current,{select:!0}))},g=function($){if(document.activeElement===document.body)for(const E of $)E.removedNodes.length>0&&rt(c)};document.addEventListener("focusin",h),document.addEventListener("focusout",x);const w=new MutationObserver(g);return c&&w.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",x),w.disconnect()}}},[r,c,v.paused]),i.useEffect(()=>{if(c){ea.add(v);const h=document.activeElement;if(!c.contains(h)){const g=new CustomEvent(cr,qo);c.addEventListener(cr,u),c.dispatchEvent(g),g.defaultPrevented||(au(uu(Jo(c)),{select:!0}),document.activeElement===h&&rt(c))}return()=>{c.removeEventListener(cr,u),setTimeout(()=>{const g=new CustomEvent(lr,qo);c.addEventListener(lr,f),c.dispatchEvent(g),g.defaultPrevented||rt(h??document.body,{select:!0}),c.removeEventListener(lr,f),ea.remove(v)},0)}}},[c,u,f,v]);const p=i.useCallback(h=>{if(!n&&!r||v.paused)return;const x=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,g=document.activeElement;if(x&&g){const w=h.currentTarget,[$,C]=iu(w);$&&C?!h.shiftKey&&g===C?(h.preventDefault(),n&&rt($,{select:!0})):h.shiftKey&&g===$&&(h.preventDefault(),n&&rt(C,{select:!0})):g===w&&h.preventDefault()}},[n,r,v.paused]);return i.createElement(pe.div,j({tabIndex:-1},s,{ref:m,onKeyDown:p}))});function au(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(rt(r,{select:t}),document.activeElement!==n)return}function iu(e){const t=Jo(e),n=Qo(t,e),r=Qo(t.reverse(),e);return[n,r]}function Jo(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 Qo(e,t){for(const n of e)if(!su(n,{upTo:t}))return n}function su(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 cu(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&&cu(e)&&t&&e.select()}}const ea=lu();function lu(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=ta(e,t),e.unshift(t)},remove(t){var n;e=ta(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function ta(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function uu(e){return e.filter(t=>t.tagName!=="A")}function du(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 fu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},_t=new WeakMap,vn=new WeakMap,gn={},ur=0,na=function(e){return e&&(e.host||na(e.parentNode))},pu=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=na(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})},mu=function(e,t,n,r){var o=pu(t,Array.isArray(e)?e:[e]);gn[n]||(gn[n]=new WeakMap);var a=gn[n],s=[],c=new Set,l=new Set(o),u=function(d){!d||c.has(d)||(c.add(d),u(d.parentNode))};o.forEach(u);var f=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(m){if(c.has(m))f(m);else try{var v=m.getAttribute(r),p=v!==null&&v!=="false",h=(_t.get(m)||0)+1,x=(a.get(m)||0)+1;_t.set(m,h),a.set(m,x),s.push(m),h===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),c.clear(),ur++,function(){s.forEach(function(d){var m=_t.get(d)-1,v=a.get(d)-1;_t.set(d,m),a.set(d,v),m||(vn.has(d)||d.removeAttribute(r),vn.delete(d)),v||d.removeAttribute(n)}),ur--,ur||(_t=new WeakMap,_t=new WeakMap,vn=new WeakMap,gn={})}},ra=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=fu(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),mu(r,o,n,"aria-hidden")):function(){return null}},bn="right-scroll-bar-position",wn="width-before-scroll-bar",hu="with-scroll-bars-hidden",vu="--removed-body-scroll-bar-size";function dr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function gu(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 bu=typeof window<"u"?D.useLayoutEffect:D.useEffect,oa=new WeakMap;function wu(e,t){var n=gu(null,function(r){return e.forEach(function(o){return dr(o,r)})});return bu(function(){var r=oa.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(c){a.has(c)||dr(c,null)}),a.forEach(function(c){o.has(c)||dr(c,s)})}oa.set(n,e)},[e]),n}function xu(e){return e}function yu(e,t){t===void 0&&(t=xu);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 s=t(a,r);return n.push(s),function(){n=n.filter(function(c){return c!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(c){return a(c)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var c=n;n=[],c.forEach(a),s=n}var l=function(){var f=s;s=[],f.forEach(a)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){s.push(f),u()},filter:function(f){return s=s.filter(f),n}}}};return o}function $u(e){e===void 0&&(e={});var t=yu(null);return t.options=je({async:!0,ssr:!1},e),t}var aa=function(e){var t=e.sideCar,n=oo(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 D.createElement(r,je({},n))};aa.isSideCarExport=!0;function Cu(e,t){return e.useMedium(t),aa}var ia=$u(),fr=function(){},xn=D.forwardRef(function(e,t){var n=D.useRef(null),r=D.useState({onScrollCapture:fr,onWheelCapture:fr,onTouchMoveCapture:fr}),o=r[0],a=r[1],s=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,m=e.sideCar,v=e.noIsolation,p=e.inert,h=e.allowPinchZoom,x=e.as,g=x===void 0?"div":x,w=oo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),$=m,C=wu([n,t]),E=je(je({},w),o);return D.createElement(D.Fragment,null,f&&D.createElement($,{sideCar:ia,removeScrollBar:u,shards:d,noIsolation:v,inert:p,setCallbacks:a,allowPinchZoom:!!h,lockRef:n}),s?D.cloneElement(D.Children.only(c),je(je({},E),{ref:C})):D.createElement(g,je({},E,{className:l,ref:C}),c))});xn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},xn.classNames={fullWidth:wn,zeroRight:bn};var Eu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Su(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Eu();return t&&e.setAttribute("nonce",t),e}function _u(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Tu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ku=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Su())&&(_u(t,n),Tu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Pu=function(){var e=ku();return function(t,n){D.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},sa=function(){var e=Pu(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Nu={left:0,top:0,right:0,gap:0},pr=function(e){return parseInt(e||"",10)||0},Iu=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[pr(n),pr(r),pr(o)]},Ou=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Nu;var t=Iu(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])}},Mu=sa(),Tt="data-scroll-locked",Au=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),`
90
- .`.concat(hu,` {
90
+ */const pc=it("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"}]]);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 mc(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function tn(...e){return t=>e.forEach(n=>mc(n,t))}function ve(...e){return i.useCallback(tn(...e),e)}function st(e,t=[]){let n=[];function r(a,s){const c=i.createContext(s),l=n.length;n=[...n,s];function d(u){const{scope:m,children:v,...p}=u,h=m?.[e][l]||c,x=i.useMemo(()=>p,Object.values(p));return i.createElement(h.Provider,{value:x},v)}function f(u,m){const v=m?.[e][l]||c,p=i.useContext(v);if(p)return p;if(s!==void 0)return s;throw new Error(`\`${u}\` must be used within \`${a}\``)}return d.displayName=a+"Provider",[d,f]}const o=()=>{const a=n.map(s=>i.createContext(s));return function(c){const l=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,hc(o,...t)]}function hc(...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 s=r.reduce((c,{useScope:l,scopeName:d})=>{const u=l(a)[`__scope${d}`];return{...c,...u}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}const ct=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),a=o.find(vc);if(a){const s=a.props.children,c=o.map(l=>l===a?i.Children.count(s)>1?i.Children.only(null):i.isValidElement(s)?s.props.children:null:l);return i.createElement(Wn,j({},r,{ref:t}),i.isValidElement(s)?i.cloneElement(s,void 0,c):null)}return i.createElement(Wn,j({},r,{ref:t}),n)});ct.displayName="Slot";const Wn=i.forwardRef((e,t)=>{const{children:n,...r}=e;return i.isValidElement(n)?i.cloneElement(n,{...gc(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 mo=({children:e})=>i.createElement(i.Fragment,null,e);function vc(e){return i.isValidElement(e)&&e.type===mo}function gc(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]=(...c)=>{a(...c),o(...c)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const pe=["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,...s}=r,c=a?ct:t;return i.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),i.createElement(c,j({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ho(e,t){e&&gt.flushSync(()=>e.dispatchEvent(t))}function Ie(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 bc(e,t=globalThis?.document){const n=Ie(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",wc="dismissableLayer.pointerDownOutside",xc="dismissableLayer.focusOutside";let vo;const yc=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:s,onInteractOutside:c,onDismiss:l,...d}=e,f=i.useContext(yc),[u,m]=i.useState(null),v=(n=u?.ownerDocument)!==null&&n!==void 0?n:globalThis?.document,[,p]=i.useState({}),h=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=$c(_=>{const z=_.target,R=[...f.branches].some(L=>L.contains(z));!E||R||(a?.(_),c?.(_),_.defaultPrevented||l?.())},v),k=Cc(_=>{const z=_.target;[...f.branches].some(L=>L.contains(z))||(s?.(_),c?.(_),_.defaultPrevented||l?.())},v);return bc(_=>{$===f.layers.size-1&&(o?.(_),!_.defaultPrevented&&l&&(_.preventDefault(),l()))},v),i.useEffect(()=>{if(u)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(vo=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),go(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=vo)}},[u,v,r,f]),i.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),go())},[u,f]),i.useEffect(()=>{const _=()=>p({});return document.addEventListener(Rn,_),()=>document.removeEventListener(Rn,_)},[]),i.createElement(pe.div,j({},d,{ref:h,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 $c(e,t=globalThis?.document){const n=Ie(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=c=>{if(c.target&&!r.current){let d=function(){bo(wc,n,l,{discrete:!0})};const l={originalEvent:c};c.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},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Cc(e,t=globalThis?.document){const n=Ie(e),r=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!r.current&&bo(xc,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 go(){const e=new CustomEvent(Rn);document.dispatchEvent(e)}function bo(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?ho(o,a):o.dispatchEvent(a)}const _e=globalThis?.document?i.useLayoutEffect:()=>{},Ec=D.useId||(()=>{});let Sc=0;function wt(e){const[t,n]=D.useState(Ec());return _e(()=>{n(r=>r??String(Sc++))},[e]),t?`radix-${t}`:""}const _c=["top","right","bottom","left"],je=Math.min,ke=Math.max,nn=Math.round,rn=Math.floor,et=e=>({x:e,y:e}),Tc={left:"right",right:"left",bottom:"top",top:"bottom"},kc={start:"end",end:"start"};function Un(e,t,n){return ke(e,je(t,n))}function Be(e,t){return typeof e=="function"?e(t):e}function ze(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(ze(e))?"y":"x"}function Yn(e){return Kn(yt(e))}function Pc(e,t,n){n===void 0&&(n=!1);const r=xt(e),o=Yn(e),a=Gn(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=on(s)),[s,on(s)]}function Nc(e){const t=on(e);return[Xn(e),t,Xn(t)]}function Xn(e){return e.replace(/start|end/g,t=>kc[t])}function Oc(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function Ic(e,t,n,r){const o=xt(e);let a=Oc(ze(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Xn)))),a}function on(e){return e.replace(/left|right|bottom|top/g,t=>Tc[t])}function Mc(e){return{top:0,right:0,bottom:0,left:0,...e}}function wo(e){return typeof e!="number"?Mc(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 xo(e,t,n){let{reference:r,floating:o}=e;const a=yt(t),s=Yn(t),c=Gn(s),l=ze(t),d=a==="y",f=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,m=r[c]/2-o[c]/2;let v;switch(l){case"top":v={x:f,y:r.y-o.height};break;case"bottom":v={x:f,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:u};break;case"left":v={x:r.x-o.width,y:u};break;default:v={x:r.x,y:r.y}}switch(xt(t)){case"start":v[s]-=m*(n&&d?-1:1);break;case"end":v[s]+=m*(n&&d?-1:1);break}return v}const Ac=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,c=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:u}=xo(d,r,l),m=r,v={},p=0;for(let h=0;h<c.length;h++){const{name:x,fn:g}=c[h],{x:w,y:$,data:C,reset:E}=await g({x:f,y:u,initialPlacement:r,placement:m,strategy:o,middlewareData:v,rects:d,platform:s,elements:{reference:e,floating:t}});f=w??f,u=$??u,v={...v,[x]:{...v[x],...C}},E&&p<=50&&(p++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(d=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:u}=xo(d,m,l)),h=-1)}return{x:f,y:u,placement:m,strategy:o,middlewareData:v}};async function zt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:c,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:v=0}=Be(t,e),p=wo(v),x=c[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(c.floating)),boundary:d,rootBoundary:f,strategy:l})),w=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.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:c,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 Dc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:c,middlewareData:l}=t,{element:d,padding:f=0}=Be(e,t)||{};if(d==null)return{};const u=wo(f),m={x:n,y:r},v=Yn(o),p=Gn(v),h=await s.getDimensions(d),x=v==="y",g=x?"top":"left",w=x?"bottom":"right",$=x?"clientHeight":"clientWidth",C=a.reference[p]+a.reference[v]-m[v]-a.floating[p],E=m[v]-a.reference[v],M=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let k=M?M[$]:0;(!k||!await(s.isElement==null?void 0:s.isElement(M)))&&(k=c.floating[$]||a.floating[p]);const _=C/2-E/2,z=k/2-h[p]/2-1,R=je(u[g],z),L=je(u[w],z),P=R,U=k-h[p]-L,F=k/2-h[p]/2+_,H=Un(P,F,U),I=!l.arrow&&xt(o)!=null&&F!==H&&a.reference[p]/2-(F<P?R:L)-h[p]/2<0,O=I?F<P?F-P:F-U:0;return{[v]:m[v]+O,data:{[v]:H,centerOffset:F-H-O,...I&&{alignmentOffset:O}},reset:I}}}),jc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:c,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...x}=Be(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const g=ze(o),w=ze(c)===c,$=await(l.isRTL==null?void 0:l.isRTL(d.floating)),C=m||(w||!h?[on(c)]:Nc(c));!m&&p!=="none"&&C.push(...Ic(c,h,p,$));const E=[c,...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=Pc(o,s,$);k.push(M[P[0]],M[P[1]])}if(_=[..._,{placement:o,overflows:k}],!k.every(P=>P<=0)){var z,R;const P=(((z=a.flip)==null?void 0:z.index)||0)+1,U=E[P];if(U)return{data:{index:P,overflows:_},reset:{placement:U}};let F=(R=_.filter(H=>H.overflows[0]<=0).sort((H,I)=>H.overflows[1]-I.overflows[1])[0])==null?void 0:R.placement;if(!F)switch(v){case"bestFit":{var L;const H=(L=_.map(I=>[I.placement,I.overflows.filter(O=>O>0).reduce((O,N)=>O+N,0)]).sort((I,O)=>I[1]-O[1])[0])==null?void 0:L[0];H&&(F=H);break}case"initialPlacement":F=c;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function yo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $o(e){return _c.some(t=>e[t]>=0)}const Lc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Be(e,t);switch(r){case"referenceHidden":{const a=await zt(t,{...o,elementContext:"reference"}),s=yo(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:$o(s)}}}case"escaped":{const a=await zt(t,{...o,altBoundary:!0}),s=yo(a,n.floating);return{data:{escapedOffsets:s,escaped:$o(s)}}}default:return{}}}}};async function Fc(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=ze(n),c=xt(n),l=yt(n)==="y",d=["left","top"].includes(s)?-1:1,f=a&&l?-1:1,u=Be(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return c&&typeof p=="number"&&(v=c==="end"?p*-1:p),l?{x:v*f,y:m*d}:{x:m*d,y:v*f}}const Vc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:c}=t,l=await Fc(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},Bc=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:s=!1,limiter:c={fn:x=>{let{x:g,y:w}=x;return{x:g,y:w}}},...l}=Be(e,t),d={x:n,y:r},f=await zt(t,l),u=yt(ze(o)),m=Kn(u);let v=d[m],p=d[u];if(a){const x=m==="y"?"top":"left",g=m==="y"?"bottom":"right",w=v+f[x],$=v-f[g];v=Un(w,v,$)}if(s){const x=u==="y"?"top":"left",g=u==="y"?"bottom":"right",w=p+f[x],$=p-f[g];p=Un(w,p,$)}const h=c.fn({...t,[m]:v,[u]:p});return{...h,data:{x:h.x-n,y:h.y-r}}}}},zc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:c=0,mainAxis:l=!0,crossAxis:d=!0}=Be(e,t),f={x:n,y:r},u=yt(o),m=Kn(u);let v=f[m],p=f[u];const h=Be(c,t),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const $=m==="y"?"height":"width",C=a.reference[m]-a.floating[$]+x.mainAxis,E=a.reference[m]+a.reference[$]-x.mainAxis;v<C?v=C:v>E&&(v=E)}if(d){var g,w;const $=m==="y"?"width":"height",C=["top","left"].includes(ze(o)),E=a.reference[u]-a.floating[$]+(C&&((g=s.offset)==null?void 0:g[u])||0)+(C?0:x.crossAxis),M=a.reference[u]+a.reference[$]+(C?0:((w=s.offset)==null?void 0:w[u])||0)-(C?x.crossAxis:0);p<E?p=E:p>M&&(p=M)}return{[m]:v,[u]:p}}}},Wc=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:s=()=>{},...c}=Be(e,t),l=await zt(t,c),d=ze(n),f=xt(n),u=yt(n)==="y",{width:m,height:v}=r.floating;let p,h;d==="top"||d==="bottom"?(p=d,h=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(h=d,p=f==="end"?"top":"bottom");const x=v-l.top-l.bottom,g=m-l.left-l.right,w=je(v-l[p],x),$=je(m-l[h],g),C=!t.middlewareData.shift;let E=w,M=$;if(u?M=f||C?je($,g):g:E=f||C?je(w,x):x,C&&!f){const _=ke(l.left,0),z=ke(l.right,0),R=ke(l.top,0),L=ke(l.bottom,0);u?M=m-2*(_!==0||z!==0?_+z:ke(l.left,l.right)):E=v-2*(R!==0||L!==0?R+L:ke(l.top,l.bottom))}await s({...t,availableWidth:M,availableHeight:E});const k=await o.getDimensions(a.floating);return m!==k.width||v!==k.height?{reset:{rects:!0}}:{}}}};function $t(e){return Co(e)?(e.nodeName||"").toLowerCase():"#document"}function Pe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function We(e){var t;return(t=(Co(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Co(e){return e instanceof Node||e instanceof Pe(e).Node}function Le(e){return e instanceof Element||e instanceof Pe(e).Element}function Fe(e){return e instanceof HTMLElement||e instanceof Pe(e).HTMLElement}function Eo(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pe(e).ShadowRoot}function Wt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Me(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Rc(e){return["table","td","th"].includes($t(e))}function qn(e){const t=Zn(),n=Me(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 Hc(e){let t=tt(e);for(;Fe(t)&&!Ct(t);){if(qn(t))return t;t=tt(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 Me(e){return Pe(e).getComputedStyle(e)}function sn(e){return Le(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function tt(e){if($t(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Eo(e)&&e.host||We(e);return Eo(t)?t.host:t}function So(e){const t=tt(e);return Ct(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fe(t)&&Wt(t)?t:So(t)}function Rt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=So(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=Pe(o);return a?t.concat(s,s.visualViewport||[],Wt(o)?o:[],s.frameElement&&n?Rt(s.frameElement):[]):t.concat(o,Rt(o,[],n))}function _o(e){const t=Me(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Fe(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=nn(n)!==a||nn(r)!==s;return c&&(n=a,r=s),{width:n,height:r,$:c}}function Jn(e){return Le(e)?e:e.contextElement}function Et(e){const t=Jn(e);if(!Fe(t))return et(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=_o(t);let s=(a?nn(n.width):n.width)/r,c=(a?nn(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Uc=et(0);function To(e){const t=Pe(e);return!Zn()||!t.visualViewport?Uc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Kc(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pe(e)?!1:t}function lt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Jn(e);let s=et(1);t&&(r?Le(r)&&(s=Et(r)):s=Et(e));const c=Kc(a,n,r)?To(a):et(0);let l=(o.left+c.x)/s.x,d=(o.top+c.y)/s.y,f=o.width/s.x,u=o.height/s.y;if(a){const m=Pe(a),v=r&&Le(r)?Pe(r):r;let p=m,h=p.frameElement;for(;h&&r&&v!==p;){const x=Et(h),g=h.getBoundingClientRect(),w=Me(h),$=g.left+(h.clientLeft+parseFloat(w.paddingLeft))*x.x,C=g.top+(h.clientTop+parseFloat(w.paddingTop))*x.y;l*=x.x,d*=x.y,f*=x.x,u*=x.y,l+=$,d+=C,p=Pe(h),h=p.frameElement}}return an({width:f,height:u,x:l,y:d})}const Gc=[":popover-open",":modal"];function Qn(e){return Gc.some(t=>{try{return e.matches(t)}catch{return!1}})}function Yc(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=We(r),c=t?Qn(t.floating):!1;if(r===s||c&&a)return n;let l={scrollLeft:0,scrollTop:0},d=et(1);const f=et(0),u=Fe(r);if((u||!u&&!a)&&(($t(r)!=="body"||Wt(s))&&(l=sn(r)),Fe(r))){const m=lt(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 Xc(e){return Array.from(e.getClientRects())}function ko(e){return lt(We(e)).left+sn(e).scrollLeft}function qc(e){const t=We(e),n=sn(e),r=e.ownerDocument.body,o=ke(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ke(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ko(e);const c=-n.scrollTop;return Me(r).direction==="rtl"&&(s+=ke(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:c}}function Zc(e,t){const n=Pe(e),r=We(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,c=0,l=0;if(o){a=o.width,s=o.height;const d=Zn();(!d||d&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:c,y:l}}function Jc(e,t){const n=lt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Fe(e)?Et(e):et(1),s=e.clientWidth*a.x,c=e.clientHeight*a.y,l=o*a.x,d=r*a.y;return{width:s,height:c,x:l,y:d}}function Po(e,t,n){let r;if(t==="viewport")r=Zc(e,n);else if(t==="document")r=qc(We(e));else if(Le(t))r=Jc(t,n);else{const o=To(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return an(r)}function No(e,t){const n=tt(e);return n===t||!Le(n)||Ct(n)?!1:Me(n).position==="fixed"||No(n,t)}function Qc(e,t){const n=t.get(e);if(n)return n;let r=Rt(e,[],!1).filter(c=>Le(c)&&$t(c)!=="body"),o=null;const a=Me(e).position==="fixed";let s=a?tt(e):e;for(;Le(s)&&!Ct(s);){const c=Me(s),l=qn(s);!l&&c.position==="fixed"&&(o=null),(a?!l&&!o:!l&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Wt(s)&&!l&&No(e,s))?r=r.filter(f=>f!==s):o=c,s=tt(s)}return t.set(e,r),r}function el(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Qn(t)?[]:Qc(t,this._c):[].concat(n),r],c=s[0],l=s.reduce((d,f)=>{const u=Po(t,f,o);return d.top=ke(u.top,d.top),d.right=je(u.right,d.right),d.bottom=je(u.bottom,d.bottom),d.left=ke(u.left,d.left),d},Po(t,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function tl(e){const{width:t,height:n}=_o(e);return{width:t,height:n}}function nl(e,t,n){const r=Fe(t),o=We(t),a=n==="fixed",s=lt(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const l=et(0);if(r||!r&&!a)if(($t(t)!=="body"||Wt(o))&&(c=sn(t)),r){const u=lt(t,!0,a,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else o&&(l.x=ko(o));const d=s.left+c.scrollLeft-l.x,f=s.top+c.scrollTop-l.y;return{x:d,y:f,width:s.width,height:s.height}}function er(e){return Me(e).position==="static"}function Oo(e,t){return!Fe(e)||Me(e).position==="fixed"?null:t?t(e):e.offsetParent}function Io(e,t){const n=Pe(e);if(Qn(e))return n;if(!Fe(e)){let o=tt(e);for(;o&&!Ct(o);){if(Le(o)&&!er(o))return o;o=tt(o)}return n}let r=Oo(e,t);for(;r&&Rc(r)&&er(r);)r=Oo(r,t);return r&&Ct(r)&&er(r)&&!qn(r)?n:r||Hc(e)||n}const rl=async function(e){const t=this.getOffsetParent||Io,n=this.getDimensions,r=await n(e.floating);return{reference:nl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ol(e){return Me(e).direction==="rtl"}const al={convertOffsetParentRelativeRectToViewportRelativeRect:Yc,getDocumentElement:We,getClippingRect:el,getOffsetParent:Io,getElementRects:rl,getClientRects:Xc,getDimensions:tl,getScale:Et,isElement:Le,isRTL:ol};function il(e,t){let n=null,r;const o=We(e);function a(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),a();const{left:d,top:f,width:u,height:m}=e.getBoundingClientRect();if(c||t(),!u||!m)return;const v=rn(f),p=rn(o.clientWidth-(d+u)),h=rn(o.clientHeight-(f+m)),x=rn(d),w={rootMargin:-v+"px "+-p+"px "+-h+"px "+-x+"px",threshold:ke(0,je(1,l))||1};let $=!0;function C(E){const M=E[0].intersectionRatio;if(M!==l){if(!$)return s();M?s(!1,M):r=setTimeout(()=>{s(!1,1e-7)},1e3)}$=!1}try{n=new IntersectionObserver(C,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,w)}n.observe(e)}return s(!0),a}function sl(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=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&&c?il(d,n):null;let m=-1,v=null;s&&(v=new ResizeObserver(g=>{let[w]=g;w&&w.target===d&&v&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var $;($=v)==null||$.observe(t)})),n()}),d&&!l&&v.observe(d),v.observe(t));let p,h=l?lt(e):null;l&&x();function x(){const g=lt(e);h&&(g.x!==h.x||g.y!==h.y||g.width!==h.width||g.height!==h.height)&&n(),h=g,p=requestAnimationFrame(x)}return n(),()=>{var g;f.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),u?.(),(g=v)==null||g.disconnect(),v=null,l&&cancelAnimationFrame(p)}}const cl=Vc,ll=Bc,dl=jc,ul=Wc,fl=Lc,Mo=Dc,pl=zc,ml=(e,t,n)=>{const r=new Map,o={platform:al,...n},a={...o.platform,_c:r};return Ac(e,t,{...o,platform:a})};var cn=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 Ao(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Do(e,t){const n=Ao(e);return Math.round(t*n)/n}function jo(e){const t=D.useRef(e);return cn(()=>{t.current=e}),t}function hl(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:l,open:d}=e,[f,u]=D.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,v]=D.useState(r);ln(m,r)||v(r);const[p,h]=D.useState(null),[x,g]=D.useState(null),w=D.useCallback(O=>{O!==M.current&&(M.current=O,h(O))},[]),$=D.useCallback(O=>{O!==k.current&&(k.current=O,g(O))},[]),C=a||p,E=s||x,M=D.useRef(null),k=D.useRef(null),_=D.useRef(f),z=l!=null,R=jo(l),L=jo(o),P=D.useCallback(()=>{if(!M.current||!k.current)return;const O={placement:t,strategy:n,middleware:m};L.current&&(O.platform=L.current),ml(M.current,k.current,O).then(N=>{const S={...N,isPositioned:!0};U.current&&!ln(_.current,S)&&(_.current=S,zi.flushSync(()=>{u(S)}))})},[m,t,n,L]);cn(()=>{d===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,u(O=>({...O,isPositioned:!1})))},[d]);const U=D.useRef(!1);cn(()=>(U.current=!0,()=>{U.current=!1}),[]),cn(()=>{if(C&&(M.current=C),E&&(k.current=E),C&&E){if(R.current)return R.current(C,E,P);P()}},[C,E,P,R,z]);const F=D.useMemo(()=>({reference:M,floating:k,setReference:w,setFloating:$}),[w,$]),H=D.useMemo(()=>({reference:C,floating:E}),[C,E]),I=D.useMemo(()=>{const O={position:n,left:0,top:0};if(!H.floating)return O;const N=Do(H.floating,f.x),S=Do(H.floating,f.y);return c?{...O,transform:"translate("+N+"px, "+S+"px)",...Ao(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:S}},[n,c,H.floating,f.x,f.y]);return D.useMemo(()=>({...f,update:P,refs:F,elements:H,floatingStyles:I}),[f,P,F,H,I])}const vl=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?Mo({element:r.current,padding:o}).fn(n):{}:r?Mo({element:r,padding:o}).fn(n):{}}}},gl=(e,t)=>({...cl(e),options:[e,t]}),bl=(e,t)=>({...ll(e),options:[e,t]}),wl=(e,t)=>({...pl(e),options:[e,t]}),xl=(e,t)=>({...dl(e),options:[e,t]}),yl=(e,t)=>({...ul(e),options:[e,t]}),$l=(e,t)=>({...fl(e),options:[e,t]}),Cl=(e,t)=>({...vl(e),options:[e,t]}),El=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return i.createElement(pe.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 Sl(e){const[t,n]=i.useState(void 0);return _e(()=>{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 s,c;if("borderBoxSize"in a){const l=a.borderBoxSize,d=Array.isArray(l)?l[0]:l;s=d.inlineSize,c=d.blockSize}else s=e.offsetWidth,c=e.offsetHeight;n({width:s,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Lo="Popper",[Fo,St]=st(Lo),[_l,Vo]=Fo(Lo),Tl=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return i.createElement(_l,{scope:t,anchor:r,onAnchorChange:o},n)},kl="PopperAnchor",Pl=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Vo(kl,n),s=i.useRef(null),c=ve(t,s);return i.useEffect(()=>{a.onAnchorChange(r?.current||s.current)}),r?null:i.createElement(pe.div,j({},o,{ref:c}))}),Bo="PopperContent",[Nl,Ol]=Fo(Bo),Il=i.forwardRef((e,t)=>{var n,r,o,a,s,c,l,d;const{__scopePopper:f,side:u="bottom",sideOffset:m=0,align:v="center",alignOffset:p=0,arrowPadding:h=0,avoidCollisions:x=!0,collisionBoundary:g=[],collisionPadding:w=0,sticky:$="partial",hideWhenDetached:C=!1,updatePositionStrategy:E="optimized",onPlaced:M,...k}=e,_=Vo(Bo,f),[z,R]=i.useState(null),L=ve(t,A=>R(A)),[P,U]=i.useState(null),F=Sl(P),H=(n=F?.width)!==null&&n!==void 0?n:0,I=(r=F?.height)!==null&&r!==void 0?r:0,O=u+(v!=="center"?"-"+v:""),N=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},S=Array.isArray(g)?g:[g],V=S.length>0,W={padding:N,boundary:S.filter(Dl),altBoundary:V},{refs:X,floatingStyles:oe,placement:be,isPositioned:ge,middlewareData:de}=hl({strategy:"fixed",placement:O,whileElementsMounted:(...A)=>sl(...A,{animationFrame:E==="always"}),elements:{reference:_.anchor},middleware:[gl({mainAxis:m+I,alignmentAxis:p}),x&&bl({mainAxis:!0,crossAxis:!1,limiter:$==="partial"?wl():void 0,...W}),x&&xl({...W}),yl({...W,apply:({elements:A,rects:K,availableWidth:Z,availableHeight:me})=>{const{width:xe,height:le}=K.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&&Cl({element:P,padding:h}),jl({arrowWidth:H,arrowHeight:I}),C&&$l({strategy:"referenceHidden",...W})]}),[G,Q]=Wo(be),ne=Ie(M);_e(()=>{ge&&ne?.()},[ge,ne]);const te=(o=de.arrow)===null||o===void 0?void 0:o.x,ce=(a=de.arrow)===null||a===void 0?void 0:a.y,ie=((s=de.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[$e,Ce]=i.useState();return _e(()=>{z&&Ce(window.getComputedStyle(z).zIndex)},[z]),i.createElement("div",{ref:X.setFloating,"data-radix-popper-content-wrapper":"",style:{...oe,transform:ge?oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$e,"--radix-popper-transform-origin":[(c=de.transformOrigin)===null||c===void 0?void 0:c.x,(l=de.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},i.createElement(Nl,{scope:f,placedSide:G,onArrowChange:U,arrowX:te,arrowY:ce,shouldHideArrow:ie},i.createElement(pe.div,j({"data-side":G,"data-align":Q},k,{ref:L,style:{...k.style,animation:ge?void 0:"none",opacity:(d=de.hide)!==null&&d!==void 0&&d.referenceHidden?0:void 0}}))))}),zo="PopperArrow",Ml={top:"bottom",right:"left",bottom:"top",left:"right"},Al=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Ol(zo,r),s=Ml[a.placedSide];return i.createElement("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]: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(El,j({},o,{ref:n,style:{...o.style,display:"block"}})))});function Dl(e){return e!==null}const jl=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,s;const{placement:c,rects:l,middlewareData:d}=t,u=((n=d.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,m=u?0:e.arrowWidth,v=u?0:e.arrowHeight,[p,h]=Wo(c),x={start:"0%",center:"50%",end:"100%"}[h],g=((r=(o=d.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+m/2,w=((a=(s=d.arrow)===null||s===void 0?void 0:s.y)!==null&&a!==void 0?a:0)+v/2;let $="",C="";return p==="bottom"?($=u?x:`${g}px`,C=`${-v}px`):p==="top"?($=u?x:`${g}px`,C=`${l.floating.height+v}px`):p==="right"?($=`${-v}px`,C=u?x:`${w}px`):p==="left"&&($=`${l.floating.width+v}px`,C=u?x:`${w}px`),{data:{x:$,y:C}}}});function Wo(e){const[t,n="center"]=e.split("-");return[t,n]}const tr=Tl,nr=Pl,rr=Il,Ro=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?gt.createPortal(i.createElement(pe.div,j({},o,{ref:t})),r):null});function Ll(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=Fl(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 Fl(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),a=i.useRef("none"),s=e?"mounted":"unmounted",[c,l]=Ll(s,{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=c==="mounted"?d:"none"},[c]),_e(()=>{const d=r.current,f=o.current;if(f!==e){const m=a.current,v=dn(d);e?l("MOUNT"):v==="none"||d?.display==="none"?l("UNMOUNT"):l(f&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),_e(()=>{if(t){const d=u=>{const v=dn(r.current).includes(u.animationName);u.target===t&&v&&gt.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(c),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]=Vl({defaultProp:t,onChange:n}),a=e!==void 0,s=a?e:r,c=Ie(n),l=i.useCallback(d=>{if(a){const u=typeof d=="function"?d(e):d;u!==e&&c(u)}else o(d)},[a,e,o,c]);return[s,l]}function Vl({defaultProp:e,onChange:t}){const n=i.useState(e),[r]=n,o=i.useRef(r),a=Ie(t);return i.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const Ho=i.forwardRef((e,t)=>i.createElement(pe.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}}))),Bl=Ho,[un,Hm]=st("Tooltip",[St]),or=St(),zl="TooltipProvider",Wl=700,ar="tooltip.open",[Rl,ir]=un(zl),Hl=e=>{const{__scopeTooltip:t,delayDuration:n=Wl,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[s,c]=i.useState(!0),l=i.useRef(!1),d=i.useRef(0);return i.useEffect(()=>{const f=d.current;return()=>window.clearTimeout(f)},[]),i.createElement(Rl,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(d.current),c(!1)},[]),onClose:i.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>c(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:i.useCallback(f=>{l.current=f},[]),disableHoverableContent:o},a)},sr="Tooltip",[Ul,fn]=un(sr),Kl=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,l=ir(sr,e.__scopeTooltip),d=or(t),[f,u]=i.useState(null),m=wt(),v=i.useRef(0),p=s??l.disableHoverableContent,h=c??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(v.current),x.current=!1,w(!0)},[w]),E=i.useCallback(()=>{window.clearTimeout(v.current),w(!1)},[w]),M=i.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{x.current=!0,w(!0)},h)},[h,w]);return i.useEffect(()=>()=>window.clearTimeout(v.current),[]),i.createElement(tr,d,i.createElement(Ul,{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(v.current)},[E,p]),onOpen:C,onClose:E,disableHoverableContent:p},n))},Uo="TooltipTrigger",Gl=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=fn(Uo,n),a=ir(Uo,n),s=or(n),c=i.useRef(null),l=ve(t,c,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},s),i.createElement(pe.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)})))}),Yl="TooltipPortal",[Um,Xl]=un(Yl,{forceMount:void 0}),Ut="TooltipContent",ql=i.forwardRef((e,t)=>{const n=Xl(Ut,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=fn(Ut,e.__scopeTooltip);return i.createElement(_t,{present:r||s.open},s.disableHoverableContent?i.createElement(Ko,j({side:o},a,{ref:t})):i.createElement(Zl,j({side:o},a,{ref:t})))}),Zl=i.forwardRef((e,t)=>{const n=fn(Ut,e.__scopeTooltip),r=ir(Ut,e.__scopeTooltip),o=i.useRef(null),a=ve(t,o),[s,c]=i.useState(null),{trigger:l,onClose:d}=n,f=o.current,{onPointerInTransitChange:u}=r,m=i.useCallback(()=>{c(null),u(!1)},[u]),v=i.useCallback((p,h)=>{const x=p.currentTarget,g={x:p.clientX,y:p.clientY},w=Ql(g,x.getBoundingClientRect()),$=ed(g,w),C=td(h.getBoundingClientRect()),E=rd([...$,...C]);c(E),u(!0)},[u]);return i.useEffect(()=>()=>m(),[m]),i.useEffect(()=>{if(l&&f){const p=x=>v(x,f),h=x=>v(x,l);return l.addEventListener("pointerleave",p),f.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",p),f.removeEventListener("pointerleave",h)}}},[l,f,v,m]),i.useEffect(()=>{if(s){const p=h=>{const x=h.target,g={x:h.clientX,y:h.clientY},w=l?.contains(x)||f?.contains(x),$=!nd(g,s);w?m():$&&(m(),d())};return document.addEventListener("pointermove",p),()=>document.removeEventListener("pointermove",p)}},[l,f,s,d,m]),i.createElement(Ko,j({},e,{ref:a}))}),[Jl,Km]=un(sr,{isInside:!1}),Ko=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...c}=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 v=m.target;v!=null&&v.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:s,onFocusOutside:u=>u.preventDefault(),onDismiss:f},i.createElement(rr,j({"data-state":l.stateAttribute},d,c,{ref:t,style:{...c.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(mo,null,r),i.createElement(Jl,{scope:n,isInside:!0},i.createElement(Bl,{id:l.contentId,role:"tooltip"},o||r))))});function Ql(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 ed(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 td(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 nd(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const c=t[a].x,l=t[a].y,d=t[s].x,f=t[s].y;l>r!=f>r&&n<(d-c)*(r-l)/(f-l)+c&&(o=!o)}return o}function rd(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),od(t)}function od(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],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.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],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.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 ad=Hl,id=Kl,sd=Gl,Go=ql,pn=ad,mn=id,hn=sd,Kt=D.forwardRef(({className:e,sideOffset:t=4,...n},r)=>y.jsx(Go,{ref:r,sideOffset:t,className:ee("fade-in-0 zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 animate-in overflow-hidden rounded-md bg-primary px-3 py-1.5 text-primary-foreground text-xs data-[state=closed]:animate-out",e),...n}));Kt.displayName=Go.displayName;function cd(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 ld({column:e,width:t,visible:n}){const{name:r,dataEditorType:o,description:a}=e;return n?y.jsxs("div",{className:"flex h-9 w-32 shrink-0 items-center gap-2 border border-t-0 border-l-0 bg-[#F6F6F9] px-2",style:{width:t,height:Es},children:[y.jsxs("div",{className:"w-4 shrink-0 text-[#8E8EA9]",children:[o==="String"&&y.jsx(oc,{className:"h-4 w-4"}),o==="Date"&&y.jsx(cc,{className:"h-4 w-4"}),o==="Boolean"&&y.jsx(dc,{className:"h-4 w-4"}),o==="Select"&&y.jsx(fc,{className:"h-4 w-4"}),o==="Float"&&y.jsx(po,{className:"h-4 w-4"}),o==="Decimal"&&y.jsx(po,{className:"h-4 w-4"}),o==="Integer"&&y.jsx(cd,{className:"h-4 w-4"}),o==="Currency"&&y.jsx(uc,{className:"h-4 w-4"}),o==="Percentage"&&y.jsx(pc,{className:"h-4 w-4"})]}),y.jsx("p",{title:r,className:"line-clamp-2 w-full break-words font-semibold text-[#4A4A6A] text-xs",children:r}),a?y.jsx(pn,{children:y.jsxs(mn,{delayDuration:100,children:[y.jsx(hn,{children:y.jsx(nc,{className:"h-4 w-4 text-[#4A4A6A]"})}),y.jsx(Kt,{className:"max-w-[240px]",children:y.jsx("p",{children:a})})]})}):y.jsx("div",{className:"w-4 shrink-0"})]}):null}function dd({className:e}){const{emptySize:t,onSelectSpreadsheet:n}=De();return y.jsxs("button",{type:"button",disabled:t,className:ee("relative flex h-7 w-12 shrink-0 items-center justify-center border border-t border-l bg-white text-xs",e),onClick:n,children:[y.jsx("span",{className:"absolute top-0 right-0 h-full w-0.5 bg-gray-300"}),y.jsx("span",{className:"absolute bottom-0 left-0 h-0.5 w-full bg-gray-300"})]})}function ud(){const{columns:e}=De();return y.jsxs("div",{children:[y.jsxs("div",{className:"relative flex items-center bg-white",children:[y.jsx(dd,{className:"border-t-0 border-l-0"}),e.map(t=>y.jsx(Hs,{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:"flex items-center",children:[y.jsx("div",{className:"h-9 w-12 shrink-0 cursor-default border border-t-0 border-l-0 bg-[#F6F6F9]"}),e.map(t=>y.jsx(ld,{column:t,width:e[t.position].state.width,visible:e[t.position].state.visible},`spreadsheet__column__header__key__${t.name}__${t.position}`))]})]})}function Yo(e,[t,n]){return Math.min(n,Math.max(t,e))}function cr(e){const t=e+"CollectionProvider",[n,r]=st(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:p,children:h}=v,x=i.useRef(null),g=i.useRef(new Map).current;return i.createElement(o,{scope:p,itemMap:g,collectionRef:x},h)},c=e+"CollectionSlot",l=i.forwardRef((v,p)=>{const{scope:h,children:x}=v,g=a(c,h),w=ve(p,g.collectionRef);return i.createElement(ct,{ref:w},x)}),d=e+"CollectionItemSlot",f="data-radix-collection-item",u=i.forwardRef((v,p)=>{const{scope:h,children:x,...g}=v,w=i.useRef(null),$=ve(p,w),C=a(d,h);return i.useEffect(()=>(C.itemMap.set(w,{ref:w,...g}),()=>void C.itemMap.delete(w))),i.createElement(ct,{[f]:"",ref:$},x)});function m(v){const p=a(e+"CollectionConsumer",v);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:s,Slot:l,ItemSlot:u},m,r]}const fd=i.createContext(void 0);function lr(e){const t=i.useContext(fd);return e||t||"ltr"}let dr=0;function Xo(){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:qo()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:qo()),dr++,()=>{dr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),dr--}},[])}function qo(){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",Zo={bubbles:!1,cancelable:!0},Jo=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[c,l]=i.useState(null),d=Ie(o),f=Ie(a),u=i.useRef(null),m=ve(t,h=>l(h)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let h=function($){if(v.paused||!c)return;const C=$.target;c.contains(C)?u.current=C:nt(u.current,{select:!0})},x=function($){if(v.paused||!c)return;const C=$.relatedTarget;C!==null&&(c.contains(C)||nt(u.current,{select:!0}))},g=function($){if(document.activeElement===document.body)for(const E of $)E.removedNodes.length>0&&nt(c)};document.addEventListener("focusin",h),document.addEventListener("focusout",x);const w=new MutationObserver(g);return c&&w.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",x),w.disconnect()}}},[r,c,v.paused]),i.useEffect(()=>{if(c){ta.add(v);const h=document.activeElement;if(!c.contains(h)){const g=new CustomEvent(ur,Zo);c.addEventListener(ur,d),c.dispatchEvent(g),g.defaultPrevented||(pd(bd(Qo(c)),{select:!0}),document.activeElement===h&&nt(c))}return()=>{c.removeEventListener(ur,d),setTimeout(()=>{const g=new CustomEvent(fr,Zo);c.addEventListener(fr,f),c.dispatchEvent(g),g.defaultPrevented||nt(h??document.body,{select:!0}),c.removeEventListener(fr,f),ta.remove(v)},0)}}},[c,d,f,v]);const p=i.useCallback(h=>{if(!n&&!r||v.paused)return;const x=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,g=document.activeElement;if(x&&g){const w=h.currentTarget,[$,C]=md(w);$&&C?!h.shiftKey&&g===C?(h.preventDefault(),n&&nt($,{select:!0})):h.shiftKey&&g===$&&(h.preventDefault(),n&&nt(C,{select:!0})):g===w&&h.preventDefault()}},[n,r,v.paused]);return i.createElement(pe.div,j({tabIndex:-1},s,{ref:m,onKeyDown:p}))});function pd(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(nt(r,{select:t}),document.activeElement!==n)return}function md(e){const t=Qo(e),n=ea(t,e),r=ea(t.reverse(),e);return[n,r]}function Qo(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 ea(e,t){for(const n of e)if(!hd(n,{upTo:t}))return n}function hd(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 vd(e){return e instanceof HTMLInputElement&&"select"in e}function nt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&vd(e)&&t&&e.select()}}const ta=gd();function gd(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=na(e,t),e.unshift(t)},remove(t){var n;e=na(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function na(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function bd(e){return e.filter(t=>t.tagName!=="A")}function wd(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 xd=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,ra=function(e){return e&&(e.host||ra(e.parentNode))},yd=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ra(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=yd(t,Array.isArray(e)?e:[e]);gn[n]||(gn[n]=new WeakMap);var a=gn[n],s=[],c=new Set,l=new Set(o),d=function(u){!u||c.has(u)||(c.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(c.has(m))f(m);else try{var v=m.getAttribute(r),p=v!==null&&v!=="false",h=(Tt.get(m)||0)+1,x=(a.get(m)||0)+1;Tt.set(m,h),a.set(m,x),s.push(m),h===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),c.clear(),pr++,function(){s.forEach(function(u){var m=Tt.get(u)-1,v=a.get(u)-1;Tt.set(u,m),a.set(u,v),m||(vn.has(u)||u.removeAttribute(r),vn.delete(u)),v||u.removeAttribute(n)}),pr--,pr||(Tt=new WeakMap,Tt=new WeakMap,vn=new WeakMap,gn={})}},oa=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=xd(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),$d(r,o,n,"aria-hidden")):function(){return null}},rt=function(){return rt=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},rt.apply(this,arguments)};function Cd(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 Ed(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",Sd="with-scroll-bars-hidden",_d="--removed-body-scroll-bar-size";function mr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Td(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 kd=typeof window<"u"?D.useLayoutEffect:D.useEffect,aa=new WeakMap;function Pd(e,t){var n=Td(null,function(r){return e.forEach(function(o){return mr(o,r)})});return kd(function(){var r=aa.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(c){a.has(c)||mr(c,null)}),a.forEach(function(c){o.has(c)||mr(c,s)})}aa.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 Nd(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 Od(e){return e}function Id(e,t){t===void 0&&(t=Od);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 s=t(a,r);return n.push(s),function(){n=n.filter(function(c){return c!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(c){return a(c)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var c=n;n=[],c.forEach(a),s=n}var l=function(){var f=s;s=[],f.forEach(a)},d=function(){return Promise.resolve().then(l)};d(),n={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),n}}}};return o}function Md(e){e===void 0&&(e={});var t=Id(null);return t.options=xn({async:!0,ssr:!1},e),t}var ia=function(e){var t=e.sideCar,n=Nd(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 D.createElement(r,xn({},n))};ia.isSideCarExport=!0;function Ad(e,t){return e.useMedium(t),ia}var sa=Md(),hr=function(){},yn=D.forwardRef(function(e,t){var n=D.useRef(null),r=D.useState({onScrollCapture:hr,onWheelCapture:hr,onTouchMoveCapture:hr}),o=r[0],a=r[1],s=e.forwardProps,c=e.children,l=e.className,d=e.removeScrollBar,f=e.enabled,u=e.shards,m=e.sideCar,v=e.noIsolation,p=e.inert,h=e.allowPinchZoom,x=e.as,g=x===void 0?"div":x,w=Cd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),$=m,C=Pd([n,t]),E=rt(rt({},w),o);return D.createElement(D.Fragment,null,f&&D.createElement($,{sideCar:sa,removeScrollBar:d,shards:u,noIsolation:v,inert:p,setCallbacks:a,allowPinchZoom:!!h,lockRef:n}),s?D.cloneElement(D.Children.only(c),rt(rt({},E),{ref:C})):D.createElement(g,rt({},E,{className:l,ref:C}),c))});yn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},yn.classNames={fullWidth:wn,zeroRight:bn};var Dd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function jd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Dd();return t&&e.setAttribute("nonce",t),e}function Ld(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Fd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Vd=function(){var e=0,t=null;return{add:function(n){e==0&&(t=jd())&&(Ld(t,n),Fd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Bd=function(){var e=Vd();return function(t,n){D.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ca=function(){var e=Bd(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},zd={left:0,top:0,right:0,gap:0},vr=function(e){return parseInt(e||"",10)||0},Wd=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)]},Rd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return zd;var t=Wd(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])}},Hd=ca(),kt="data-scroll-locked",Ud=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),`
91
+ .`.concat(Sd,` {
91
92
  overflow: hidden `).concat(r,`;
92
93
  padding-right: `).concat(c,"px ").concat(r,`;
93
94
  }
94
- body[`).concat(Tt,`] {
95
+ body[`).concat(kt,`] {
95
96
  overflow: hidden `).concat(r,`;
96
97
  overscroll-behavior: contain;
97
98
  `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
@@ -120,13 +121,13 @@ Linha N° ${N+1} até N° ${S+1}`:`Você irá excluir a linha N° ${N+1}, deseja
120
121
  margin-right: 0 `).concat(r,`;
121
122
  }
122
123
 
123
- body[`).concat(Tt,`] {
124
- `).concat(vu,": ").concat(c,`px;
124
+ body[`).concat(kt,`] {
125
+ `).concat(_d,": ").concat(c,`px;
125
126
  }
126
- `)},ca=function(){var e=parseInt(document.body.getAttribute(Tt)||"0",10);return isFinite(e)?e:0},Du=function(){D.useEffect(function(){return document.body.setAttribute(Tt,(ca()+1).toString()),function(){var e=ca()-1;e<=0?document.body.removeAttribute(Tt):document.body.setAttribute(Tt,e.toString())}},[])},ju=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Du();var a=D.useMemo(function(){return Ou(o)},[o]);return D.createElement(Mu,{styles:Au(a,!t,o,n?"":"!important")})},mr=!1;if(typeof window<"u")try{var yn=Object.defineProperty({},"passive",{get:function(){return mr=!0,!0}});window.addEventListener("test",yn,yn),window.removeEventListener("test",yn,yn)}catch{mr=!1}var kt=mr?{passive:!1}:!1,Lu=function(e){return e.tagName==="TEXTAREA"},la=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Lu(e)&&n[t]==="visible")},Fu=function(e){return la(e,"overflowY")},Vu=function(e){return la(e,"overflowX")},ua=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=da(e,n);if(r){var o=fa(e,n),a=o[1],s=o[2];if(a>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Bu=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},zu=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},da=function(e,t){return e==="v"?Fu(t):Vu(t)},fa=function(e,t){return e==="v"?Bu(t):zu(t)},Wu=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ru=function(e,t,n,r,o){var a=Wu(e,window.getComputedStyle(t).direction),s=a*r,c=n.target,l=t.contains(c),u=!1,f=s>0,d=0,m=0;do{var v=fa(e,c),p=v[0],h=v[1],x=v[2],g=h-x-a*p;(p||g)&&da(e,c)&&(d+=g,m+=p),c=c.parentNode}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(f&&(d===0||!o)||!f&&(m===0||!o))&&(u=!0),u},$n=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},pa=function(e){return[e.deltaX,e.deltaY]},ma=function(e){return e&&"current"in e?e.current:e},Hu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Uu=function(e){return`
127
+ `)},la=function(){var e=parseInt(document.body.getAttribute(kt)||"0",10);return isFinite(e)?e:0},Kd=function(){D.useEffect(function(){return document.body.setAttribute(kt,(la()+1).toString()),function(){var e=la()-1;e<=0?document.body.removeAttribute(kt):document.body.setAttribute(kt,e.toString())}},[])},Gd=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Kd();var a=D.useMemo(function(){return Rd(o)},[o]);return D.createElement(Hd,{styles:Ud(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,Yd=function(e){return e.tagName==="TEXTAREA"},da=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Yd(e)&&n[t]==="visible")},Xd=function(e){return da(e,"overflowY")},qd=function(e){return da(e,"overflowX")},ua=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=fa(e,n);if(r){var o=pa(e,n),a=o[1],s=o[2];if(a>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Zd=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Jd=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},fa=function(e,t){return e==="v"?Xd(t):qd(t)},pa=function(e,t){return e==="v"?Zd(t):Jd(t)},Qd=function(e,t){return e==="h"&&t==="rtl"?-1:1},eu=function(e,t,n,r,o){var a=Qd(e,window.getComputedStyle(t).direction),s=a*r,c=n.target,l=t.contains(c),d=!1,f=s>0,u=0,m=0;do{var v=pa(e,c),p=v[0],h=v[1],x=v[2],g=h-x-a*p;(p||g)&&fa(e,c)&&(u+=g,m+=p),c=c.parentNode}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));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]},ma=function(e){return[e.deltaX,e.deltaY]},ha=function(e){return e&&"current"in e?e.current:e},tu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},nu=function(e){return`
127
128
  .block-interactivity-`.concat(e,` {pointer-events: none;}
128
129
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
129
- `)},Ku=0,Pt=[];function Gu(e){var t=D.useRef([]),n=D.useRef([0,0]),r=D.useRef(),o=D.useState(Ku++)[0],a=D.useState(function(){return sa()})[0],s=D.useRef(e);D.useEffect(function(){s.current=e},[e]),D.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Ls([e.lockRef.current],(e.shards||[]).map(ma),!0).filter(Boolean);return h.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=D.useCallback(function(h,x){if("touches"in h&&h.touches.length===2)return!s.current.allowPinchZoom;var g=$n(h),w=n.current,$="deltaX"in h?h.deltaX:w[0]-g[0],C="deltaY"in h?h.deltaY:w[1]-g[1],E,O=h.target,k=Math.abs($)>Math.abs(C)?"h":"v";if("touches"in h&&k==="h"&&O.type==="range")return!1;var _=ua(k,O);if(!_)return!0;if(_?E=k:(E=k==="v"?"h":"v",_=ua(k,O)),!_)return!1;if(!r.current&&"changedTouches"in h&&($||C)&&(r.current=E),!E)return!0;var z=r.current||E;return Ru(z,x,h,z==="h"?$:C,!0)},[]),l=D.useCallback(function(h){var x=h;if(!(!Pt.length||Pt[Pt.length-1]!==a)){var g="deltaY"in x?pa(x):$n(x),w=t.current.filter(function(E){return E.name===x.type&&E.target===x.target&&Hu(E.delta,g)})[0];if(w&&w.should){x.cancelable&&x.preventDefault();return}if(!w){var $=(s.current.shards||[]).map(ma).filter(Boolean).filter(function(E){return E.contains(x.target)}),C=$.length>0?c(x,$[0]):!s.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),u=D.useCallback(function(h,x,g,w){var $={name:h,delta:x,target:g,should:w};t.current.push($),setTimeout(function(){t.current=t.current.filter(function(C){return C!==$})},1)},[]),f=D.useCallback(function(h){n.current=$n(h),r.current=void 0},[]),d=D.useCallback(function(h){u(h.type,pa(h),h.target,c(h,e.lockRef.current))},[]),m=D.useCallback(function(h){u(h.type,$n(h),h.target,c(h,e.lockRef.current))},[]);D.useEffect(function(){return Pt.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:m}),document.addEventListener("wheel",l,kt),document.addEventListener("touchmove",l,kt),document.addEventListener("touchstart",f,kt),function(){Pt=Pt.filter(function(h){return h!==a}),document.removeEventListener("wheel",l,kt),document.removeEventListener("touchmove",l,kt),document.removeEventListener("touchstart",f,kt)}},[]);var v=e.removeScrollBar,p=e.inert;return D.createElement(D.Fragment,null,p?D.createElement(a,{styles:Uu(o)}):null,v?D.createElement(ju,{gapMode:"margin"}):null)}const Yu=Cu(ia,Gu);var hr=D.forwardRef(function(e,t){return D.createElement(xn,je({},e,{ref:t,sideCar:Yu}))});hr.classNames=xn.classNames;const Xu=[" ","Enter","ArrowUp","ArrowDown"],qu=[" ","Enter"],Cn="Select",[En,Sn,Zu]=ar(Cn),[Nt,jm]=st(Cn,[Zu,Et]),vr=Et(),[Ju,ut]=Nt(Cn),[Qu,ed]=Nt(Cn),td=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:s,defaultValue:c,onValueChange:l,dir:u,name:f,autoComplete:d,disabled:m,required:v}=e,p=vr(t),[h,x]=i.useState(null),[g,w]=i.useState(null),[$,C]=i.useState(!1),E=ir(u),[O=!1,k]=Rt({prop:r,defaultProp:o,onChange:a}),[_,z]=Rt({prop:s,defaultProp:c,onChange:l}),K=i.useRef(null),B=h?!!h.closest("form"):!0,[P,H]=i.useState(new Set),L=Array.from(P).map(R=>R.props.value).join(";");return i.createElement(Jn,p,i.createElement(Ju,{required:v,scope:t,trigger:h,onTriggerChange:x,valueNode:g,onValueNodeChange:w,valueNodeHasChildren:$,onValueNodeHasChildrenChange:C,contentId:wt(),value:_,onValueChange:z,open:O,onOpenChange:k,dir:E,triggerPointerDownPosRef:K,disabled:m},i.createElement(En.Provider,{scope:t},i.createElement(Qu,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(R=>{H(M=>new Set(M).add(R))},[]),onNativeOptionRemove:i.useCallback(R=>{H(M=>{const I=new Set(M);return I.delete(R),I})},[])},n)),B?i.createElement(Ca,{key:L,"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:d,value:_,onChange:R=>z(R.target.value),disabled:m},_===void 0?i.createElement("option",{value:""}):null,Array.from(P)):null))},nd="SelectTrigger",rd=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=vr(n),s=ut(nd,n),c=s.disabled||r,l=ve(t,s.onTriggerChange),u=Sn(n),[f,d,m]=Ea(p=>{const h=u().filter(w=>!w.disabled),x=h.find(w=>w.value===s.value),g=Sa(h,p,x);g!==void 0&&s.onValueChange(g.value)}),v=()=>{c||(s.onOpenChange(!0),m())};return i.createElement(Qn,j({asChild:!0},a),i.createElement(pe.button,j({type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":$a(s.value)?"":void 0},o,{ref:l,onClick:Y(o.onClick,p=>{p.currentTarget.focus()}),onPointerDown:Y(o.onPointerDown,p=>{const h=p.target;h.hasPointerCapture(p.pointerId)&&h.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&(v(),s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)},p.preventDefault())}),onKeyDown:Y(o.onKeyDown,p=>{const h=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&d(p.key),!(h&&p.key===" ")&&Xu.includes(p.key)&&(v(),p.preventDefault())})})))}),od="SelectValue",ad=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:s="",...c}=e,l=ut(od,n),{onValueNodeHasChildrenChange:u}=l,f=a!==void 0,d=ve(t,l.onValueNodeChange);return _e(()=>{u(f)},[u,f]),i.createElement(pe.span,j({},c,{ref:d,style:{pointerEvents:"none"}}),$a(l.value)?i.createElement(i.Fragment,null,s):a)}),id=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return i.createElement(pe.span,j({"aria-hidden":!0},o,{ref:t}),r||"▼")}),sd=e=>i.createElement(Wo,j({asChild:!0},e)),It="SelectContent",cd=i.forwardRef((e,t)=>{const n=ut(It,e.__scopeSelect),[r,o]=i.useState();if(_e(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?gt.createPortal(i.createElement(ha,{scope:e.__scopeSelect},i.createElement(En.Slot,{scope:e.__scopeSelect},i.createElement("div",null,e.children))),a):null}return i.createElement(ld,j({},e,{ref:t}))}),Re=10,[ha,dt]=Nt(It),ld=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:c,sideOffset:l,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:m,collisionPadding:v,sticky:p,hideWhenDetached:h,avoidCollisions:x,...g}=e,w=ut(It,n),[$,C]=i.useState(null),[E,O]=i.useState(null),k=ve(t,G=>C(G)),[_,z]=i.useState(null),[K,B]=i.useState(null),P=Sn(n),[H,L]=i.useState(!1),R=i.useRef(!1);i.useEffect(()=>{if($)return ra($)},[$]),Yo();const M=i.useCallback(G=>{const[ee,...oe]=P().map(ie=>ie.ref.current),[ne]=oe.slice(-1),ce=document.activeElement;for(const ie of G)if(ie===ce||(ie?.scrollIntoView({block:"nearest"}),ie===ee&&E&&(E.scrollTop=0),ie===ne&&E&&(E.scrollTop=E.scrollHeight),ie?.focus(),document.activeElement!==ce))return},[P,E]),I=i.useCallback(()=>M([_,$]),[M,_,$]);i.useEffect(()=>{H&&I()},[H,I]);const{onOpenChange:N,triggerPointerDownPosRef:S}=w;i.useEffect(()=>{if($){let G={x:0,y:0};const ee=ne=>{var ce,ie,$e,Ce;G={x:Math.abs(Math.round(ne.pageX)-((ce=(ie=S.current)===null||ie===void 0?void 0:ie.x)!==null&&ce!==void 0?ce: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))}},oe=ne=>{G.x<=10&&G.y<=10?ne.preventDefault():$.contains(ne.target)||N(!1),document.removeEventListener("pointermove",ee),S.current=null};return S.current!==null&&(document.addEventListener("pointermove",ee),document.addEventListener("pointerup",oe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ee),document.removeEventListener("pointerup",oe,{capture:!0})}}},[$,N,S]),i.useEffect(()=>{const G=()=>N(!1);return window.addEventListener("blur",G),window.addEventListener("resize",G),()=>{window.removeEventListener("blur",G),window.removeEventListener("resize",G)}},[N]);const[F,W]=Ea(G=>{const ee=P().filter(ce=>!ce.disabled),oe=ee.find(ce=>ce.ref.current===document.activeElement),ne=Sa(ee,G,oe);ne&&setTimeout(()=>ne.ref.current.focus())}),X=i.useCallback((G,ee,oe)=>{const ne=!R.current&&!oe;(w.value!==void 0&&w.value===ee||ne)&&(z(G),ne&&(R.current=!0))},[w.value]),re=i.useCallback(()=>$?.focus(),[$]),be=i.useCallback((G,ee,oe)=>{const ne=!R.current&&!oe;(w.value!==void 0&&w.value===ee||ne)&&B(G)},[w.value]),ge=r==="popper"?va:ud,de=ge===va?{side:c,sideOffset:l,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:m,collisionPadding:v,sticky:p,hideWhenDetached:h,avoidCollisions:x}:{};return i.createElement(ha,{scope:n,content:$,viewport:E,onViewportChange:O,itemRefCallback:X,selectedItem:_,onItemLeave:re,itemTextRefCallback:be,focusSelectedItem:I,selectedItemText:K,position:r,isPositioned:H,searchRef:F},i.createElement(hr,{as:ct,allowPinchZoom:!0},i.createElement(Zo,{asChild:!0,trapped:w.open,onMountAutoFocus:G=>{G.preventDefault()},onUnmountAutoFocus:Y(o,G=>{var ee;(ee=w.trigger)===null||ee===void 0||ee.focus({preventScroll:!0}),G.preventDefault()})},i.createElement(Rn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:G=>G.preventDefault(),onDismiss:()=>w.onOpenChange(!1)},i.createElement(ge,j({role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:G=>G.preventDefault()},g,de,{onPlaced:()=>L(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:Y(g.onKeyDown,G=>{const ee=G.ctrlKey||G.altKey||G.metaKey;if(G.key==="Tab"&&G.preventDefault(),!ee&&G.key.length===1&&W(G.key),["ArrowUp","ArrowDown","Home","End"].includes(G.key)){let ne=P().filter(ce=>!ce.disabled).map(ce=>ce.ref.current);if(["ArrowUp","End"].includes(G.key)&&(ne=ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(G.key)){const ce=G.target,ie=ne.indexOf(ce);ne=ne.slice(ie+1)}setTimeout(()=>M(ne)),G.preventDefault()}})}))))))}),ud=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=ut(It,n),s=dt(It,n),[c,l]=i.useState(null),[u,f]=i.useState(null),d=ve(t,k=>f(k)),m=Sn(n),v=i.useRef(!1),p=i.useRef(!0),{viewport:h,selectedItem:x,selectedItemText:g,focusSelectedItem:w}=s,$=i.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&u&&h&&x&&g){const k=a.trigger.getBoundingClientRect(),_=u.getBoundingClientRect(),z=a.valueNode.getBoundingClientRect(),K=g.getBoundingClientRect();if(a.dir!=="rtl"){const ce=K.left-_.left,ie=z.left-ce,$e=k.left-ie,Ce=k.width+$e,A=Math.max(Ce,_.width),U=window.innerWidth-Re,Z=Go(ie,[Re,U-A]);c.style.minWidth=Ce+"px",c.style.left=Z+"px"}else{const ce=_.right-K.right,ie=window.innerWidth-z.right-ce,$e=window.innerWidth-k.right-ie,Ce=k.width+$e,A=Math.max(Ce,_.width),U=window.innerWidth-Re,Z=Go(ie,[Re,U-A]);c.style.minWidth=Ce+"px",c.style.right=Z+"px"}const B=m(),P=window.innerHeight-Re*2,H=h.scrollHeight,L=window.getComputedStyle(u),R=parseInt(L.borderTopWidth,10),M=parseInt(L.paddingTop,10),I=parseInt(L.borderBottomWidth,10),N=parseInt(L.paddingBottom,10),S=R+M+H+N+I,F=Math.min(x.offsetHeight*5,S),W=window.getComputedStyle(h),X=parseInt(W.paddingTop,10),re=parseInt(W.paddingBottom,10),be=k.top+k.height/2-Re,ge=P-be,de=x.offsetHeight/2,G=x.offsetTop+de,ee=R+M+G,oe=S-ee;if(ee<=be){const ce=x===B[B.length-1].ref.current;c.style.bottom="0px";const ie=u.clientHeight-h.offsetTop-h.offsetHeight,$e=Math.max(ge,de+(ce?re:0)+ie+I),Ce=ee+$e;c.style.height=Ce+"px"}else{const ce=x===B[0].ref.current;c.style.top="0px";const $e=Math.max(be,R+h.offsetTop+(ce?X:0)+de)+oe;c.style.height=$e+"px",h.scrollTop=ee-be+h.offsetTop}c.style.margin=`${Re}px 0`,c.style.minHeight=F+"px",c.style.maxHeight=P+"px",r?.(),requestAnimationFrame(()=>v.current=!0)}},[m,a.trigger,a.valueNode,c,u,h,x,g,a.dir,r]);_e(()=>$(),[$]);const[C,E]=i.useState();_e(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const O=i.useCallback(k=>{k&&p.current===!0&&($(),w?.(),p.current=!1)},[$,w]);return i.createElement(dd,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:v,onScrollButtonChange:O},i.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C}},i.createElement(pe.div,j({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))}),va=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Re,...a}=e,s=vr(n);return i.createElement(er,j({},s,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)"}}))}),[dd,gr]=Nt(It,{}),ga="SelectViewport",fd=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=dt(ga,n),a=gr(ga,n),s=ve(t,o.onViewportChange),c=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(En.Slot,{scope:n},i.createElement(pe.div,j({"data-radix-select-viewport":"",role:"presentation"},r,{ref:s,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:Y(r.onScroll,l=>{const u=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=a;if(d!=null&&d.current&&f){const m=Math.abs(c.current-u.scrollTop);if(m>0){const v=window.innerHeight-Re*2,p=parseFloat(f.style.minHeight),h=parseFloat(f.style.height),x=Math.max(p,h);if(x<v){const g=x+m,w=Math.min(v,g),$=g-w;f.style.height=w+"px",f.style.bottom==="0px"&&(u.scrollTop=$>0?$:0,f.style.justifyContent="flex-end")}}}c.current=u.scrollTop})}))))}),pd="SelectGroup",[Lm,md]=Nt(pd),hd="SelectLabel",vd=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=md(hd,n);return i.createElement(pe.div,j({id:o.id},r,{ref:t}))}),br="SelectItem",[gd,ba]=Nt(br),bd=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...s}=e,c=ut(br,n),l=dt(br,n),u=c.value===r,[f,d]=i.useState(a??""),[m,v]=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)}),h=wt(),x=()=>{o||(c.onValueChange(r),c.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(gd,{scope:n,value:r,disabled:o,textId:h,isSelected:u,onItemTextChange:i.useCallback(g=>{d(w=>{var $;return w||(($=g?.textContent)!==null&&$!==void 0?$:"").trim()})},[])},i.createElement(En.ItemSlot,{scope:n,value:r,disabled:o,textValue:f},i.createElement(pe.div,j({role:"option","aria-labelledby":h,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},s,{ref:p,onFocus:Y(s.onFocus,()=>v(!0)),onBlur:Y(s.onBlur,()=>v(!1)),onPointerUp:Y(s.onPointerUp,x),onPointerMove:Y(s.onPointerMove,g=>{if(o){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}else g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Y(s.onPointerLeave,g=>{if(g.currentTarget===document.activeElement){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}}),onKeyDown:Y(s.onKeyDown,g=>{var w;((w=l.searchRef)===null||w===void 0?void 0:w.current)!==""&&g.key===" "||(qu.includes(g.key)&&x(),g.key===" "&&g.preventDefault())})}))))}),_n="SelectItemText",wd=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,s=ut(_n,n),c=dt(_n,n),l=ba(_n,n),u=ed(_n,n),[f,d]=i.useState(null),m=ve(t,g=>d(g),l.onItemTextChange,g=>{var w;return(w=c.itemTextRefCallback)===null||w===void 0?void 0:w.call(c,g,l.value,l.disabled)}),v=f?.textContent,p=i.useMemo(()=>i.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},v),[l.disabled,l.value,v]),{onNativeOptionAdd:h,onNativeOptionRemove:x}=u;return _e(()=>(h(p),()=>x(p)),[h,x,p]),i.createElement(i.Fragment,null,i.createElement(pe.span,j({id:l.textId},a,{ref:m})),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?gt.createPortal(a.children,s.valueNode):null)}),xd="SelectItemIndicator",yd=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return ba(xd,n).isSelected?i.createElement(pe.span,j({"aria-hidden":!0},r,{ref:t})):null}),wa="SelectScrollUpButton",$d=i.forwardRef((e,t)=>{const n=dt(wa,e.__scopeSelect),r=gr(wa,e.__scopeSelect),[o,a]=i.useState(!1),s=ve(t,r.onScrollButtonChange);return _e(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollTop>0;a(u)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?i.createElement(ya,j({},e,{ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop-l.offsetHeight)}})):null}),xa="SelectScrollDownButton",Cd=i.forwardRef((e,t)=>{const n=dt(xa,e.__scopeSelect),r=gr(xa,e.__scopeSelect),[o,a]=i.useState(!1),s=ve(t,r.onScrollButtonChange);return _e(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<u;a(f)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?i.createElement(ya,j({},e,{ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop+l.offsetHeight)}})):null}),ya=i.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=dt("SelectScrollButton",n),s=i.useRef(null),c=Sn(n),l=i.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return i.useEffect(()=>()=>l(),[l]),_e(()=>{var u;const f=c().find(d=>d.ref.current===document.activeElement);f==null||(u=f.ref.current)===null||u===void 0||u.scrollIntoView({block:"nearest"})},[c]),i.createElement(pe.div,j({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:Y(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:Y(o.onPointerMove,()=>{var u;(u=a.onItemLeave)===null||u===void 0||u.call(a),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:Y(o.onPointerLeave,()=>{l()})}))}),Ed=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return i.createElement(pe.div,j({"aria-hidden":!0},r,{ref:t}))});function $a(e){return e===""||e===void 0}const Ca=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=i.useRef(null),a=ve(t,o),s=du(n);return i.useEffect(()=>{const c=o.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==n&&f){const d=new Event("change",{bubbles:!0});f.call(c,n),c.dispatchEvent(d)}},[s,n]),i.createElement(Ro,{asChild:!0},i.createElement("select",j({},r,{ref:a,defaultValue:n})))});Ca.displayName="BubbleSelect";function Ea(e){const t=Me(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(s=>{const c=n.current+s;t(c),function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(c)},[t]),a=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function Sa(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=Sd(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==n));const l=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Sd(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const _d=td,_a=rd,Td=ad,kd=id,Pd=sd,Ta=cd,Nd=fd,ka=vd,Pa=bd,Id=wd,Od=yd,Na=$d,Ia=Cd,Oa=Ed,Ma=_d,Aa=Td,wr=D.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(_a,{ref:r,className:Q("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent py-2 pr-px pl-3 text-sm shadow-sm ring-offset-background [&>span]:line-clamp-1 disabled:cursor-not-allowed placeholder:text-muted-foreground disabled:opacity-50 focus:outline-none focus:ring-1 focus:ring-ring",e),...n,children:[t,y.jsx(kd,{asChild:!0,children:y.jsx(Bn,{className:"h-4 w-4 opacity-50"})})]}));wr.displayName=_a.displayName;const Da=D.forwardRef(({className:e,...t},n)=>y.jsx(Na,{ref:n,className:Q("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx(Js,{})}));Da.displayName=Na.displayName;const ja=D.forwardRef(({className:e,...t},n)=>y.jsx(Ia,{ref:n,className:Q("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx(Ys,{})}));ja.displayName=Ia.displayName;const xr=D.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>y.jsx(Pd,{children:y.jsxs(Ta,{ref:o,className:Q("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",n==="popper"&&"data-[side=left]:-translate-x-1 data-[side=top]:-translate-y-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1",e),position:n,...r,children:[y.jsx(Da,{}),y.jsx(Nd,{className:Q("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),y.jsx(ja,{})]})}));xr.displayName=Ta.displayName;const Md=D.forwardRef(({className:e,...t},n)=>y.jsx(ka,{ref:n,className:Q("px-2 py-1.5 font-semibold text-sm",e),...t}));Md.displayName=ka.displayName;const Tn=D.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(Pa,{ref:r,className:Q("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[disabled]:pointer-events-none focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50",e),...n,children:[y.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(Od,{children:y.jsx(co,{className:"h-4 w-4"})})}),y.jsx(Id,{children:t})]}));Tn.displayName=Pa.displayName;const Ad=D.forwardRef(({className:e,...t},n)=>y.jsx(Oa,{ref:n,className:Q("-mx-1 my-1 h-px bg-muted",e),...t}));Ad.displayName=Oa.displayName;function Dd(e){const{mode:t,value:n,onChange:r,onPaste:o,setMode:a,column:s,coordinates:c}=e,[l,u]=ao(!0),f=i.useCallback(v=>{v.preventDefault(),o?.()},[o]),d=i.useCallback(()=>{l||(a?.("view"),u(!1))},[a,u,l]),m=i.useCallback(v=>{r?.({data:v}),d()},[r,d]);return y.jsxs(Ma,{value:n,open:l,onOpenChange:u,onValueChange:m,children:[y.jsx(wr,{onBlur:d,onPaste:f,className:Q("h-full w-full rounded-none border-none pl-1 text-xs outline-none focus:ring-0"),autoFocus:!0,"data-cypress":`table-cell-boolean-${s.id}-${c.row}`,"aria-readonly":t==="readonly",children:y.jsx(Aa,{placeholder:"Selecionar"})}),y.jsxs(xr,{onBlur:d,children:[y.jsx(Tn,{className:"text-xs",value:"true","data-cypress":`table-cell-boolean-${s.id}-${c.row}-true`,children:"Sim"}),y.jsx(Tn,{className:"text-xs",value:"false","data-cypress":`table-cell-boolean-${s.id}-${c.row}-false`,children:"Não"})]})]})}function jd(e){const{value:t,column:n,coordinates:r,mode:o}=e,s=t===""?"Selecionar":t==="true"?"Sim":"Não";return y.jsxs("div",{className:"flex h-full w-full items-center justify-between pr-px pl-1","aria-readonly":o==="readonly","data-cypress":`table-cell-select-${n.id}-${r.row}`,children:[y.jsx("p",{className:"line-clamp-1 text-xs",children:s}),y.jsx(Bn,{className:"h-4 w-4 opacity-50"})]})}function Ld(e){const{mode:t,value:n,onBlur:r,onChange:o,onPaste:a,column:s,coordinates:c}=e,l=i.useCallback(u=>{u.preventDefault(),a?.()},[a]);return y.jsx("input",{type:"date",onBlur:r,onPaste:l,value:n,onChange:u=>o?.({data:u.target.value}),className:Q("h-full w-full bg-transparent pl-1 text-xs outline-none"),"data-cypress":`table-cell-date-${s.id}-${c.row}`,"aria-readonly":t==="readonly"})}function Fd(e){const{value:t,column:n,coordinates:r,mode:o}=e,a=t||"dd/mm/yyyy";return y.jsx("div",{className:"flex h-full w-full items-center","data-cypress":`table-cell-date-${n.id}-${r.row}`,"aria-readonly":o==="readonly",children:y.jsx("p",{className:"line-clamp-1 pl-1 text-xs",children:a})})}function Vd(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 yr(e){const t=Vd(e);i.useEffect(()=>{t&&e.current?.select()},[t,e.current])}function La(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 Kt;(function(e){e.event="event",e.props="prop"})(Kt||(Kt={}));function ot(){}function Bd(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,s){return a===t[s]})||(t=r,n=e.apply(void 0,r)),n}}function Gt(e){return!!(e||"").match(/\d/)}function Ot(e){return e==null}function zd(e){return typeof e=="number"&&isNaN(e)}function Fa(e){return Ot(e)||zd(e)||typeof e=="number"&&!isFinite(e)}function Va(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Wd(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 Rd(e,t,n){var r=Wd(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 Hd(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],s=o[1]||"";return{beforeDecimal:a,afterDecimal:s,hasNegation:n,addNegation:r}}function Ud(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 Ba(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function za(e,t){return Array(t+1).join(e)}function Wa(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 s=1+a,c=o.length;return s<0?o="0."+za("0",Math.abs(s))+o:s>=c?o=o+za("0",s-c):o=(o.substring(0,s)||"0")+"."+o.substring(s),n+o}function Ra(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,o=$r(e),a=o.beforeDecimal,s=o.afterDecimal,c=o.hasNegation,l=parseFloat("0."+(s||"0")),u=s.length<=t?"0."+s:l.toFixed(t),f=u.split("."),d=a;a&&Number(f[0])&&(d=a.split("").reverse().reduce(function(h,x,g){return h.length>g?(Number(h[0])+Number(x)).toString()+h.substring(1,h.length):x+h},f[0]));var m=Ba(f[1]||"",t,n),v=c?"-":"",p=r?".":"";return""+v+d+p+m}function ft(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 Ha=Bd(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 Kd(e,t,n){return Math.min(Math.max(e,t),n)}function Cr(e){return Math.max(e.selectionStart,e.selectionEnd)}function Gd(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function Yd(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Xd(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function qd(e,t,n,r,o,a,s){s===void 0&&(s=Xd);var c=o.findIndex(function(C){return C}),l=e.slice(0,c);!t&&!n.startsWith(l)&&(t=l,n=l+n,r=r+l.length);for(var u=n.length,f=e.length,d={},m=new Array(u),v=0;v<u;v++){m[v]=-1;for(var p=0,h=f;p<h;p++){var x=s({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:v,formattedValueIndex:p});if(x&&d[p]!==!0){m[v]=p,d[p]=!0;break}}}for(var g=r;g<u&&(m[g]===-1||!a(n[g]));)g++;var w=g===u||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 Ua(e,t,n,r){var o=e.length;if(t=Kd(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 Zd(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Gt(e[n])||Gt(e[n-1]));return t}function Ka(e,t,n,r,o,a){a===void 0&&(a=ot);var s=Hd(function(p,h){var x,g;return Fa(p)?(g="",x=""):typeof p=="number"||h?(g=typeof p=="number"?Wa(p):p,x=r(g)):(g=o(p,void 0),x=r(g)),{formattedValue:x,numAsString:g}}),c=i.useState(function(){return s(Ot(e)?t:e,n)}),l=c[0],u=c[1],f=function(p,h){p.formattedValue!==l.formattedValue&&u({formattedValue:p.formattedValue,numAsString:p.value}),a(p,h)},d=e,m=n;Ot(e)&&(d=l.numAsString,m=!0);var v=s(d,m);return i.useMemo(function(){u(v)},[v.formattedValue]),[l,f]}function Jd(e){return e.replace(/[^0-9]/g,"")}function Qd(e){return e}function ef(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,s=e.format;s===void 0&&(s=Qd);var c=e.removeFormatting;c===void 0&&(c=Jd);var l=e.defaultValue,u=e.valueIsNumericString,f=e.onValueChange,d=e.isAllowed,m=e.onChange;m===void 0&&(m=ot);var v=e.onKeyDown;v===void 0&&(v=ot);var p=e.onMouseUp;p===void 0&&(p=ot);var h=e.onFocus;h===void 0&&(h=ot);var x=e.onBlur;x===void 0&&(x=ot);var g=e.value,w=e.getCaretBoundary;w===void 0&&(w=Zd);var $=e.isValidInputCharacter;$===void 0&&($=Gt);var C=e.isCharacterSame,E=La(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),O=Ka(g,l,!!u,s,c,f),k=O[0],_=k.formattedValue,z=k.numAsString,K=O[1],B=i.useRef({formattedValue:_,numAsString:z}),P=function(A,U){B.current={formattedValue:A.formattedValue,numAsString:A.value},K(A,U)},H=i.useState(!1),L=H[0],R=H[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=s,S=function(A,U){var Z=parseFloat(U);return{formattedValue:A,value:U,floatValue:isNaN(Z)?void 0:Z}},F=function(A,U,Z){A.selectionStart===0&&A.selectionEnd===A.value.length||(ft(A,U),I.current.setCaretTimeout=setTimeout(function(){A.value===Z&&A.selectionStart!==U&&ft(A,U)},0))},W=function(A,U,Z){return Ua(A,U,w(A),Z)},X=function(A,U,Z){var me=w(U),xe=qd(U,_,A,Z,me,$,C);return xe=Ua(U,xe,me),xe},re=function(A){var U=A.formattedValue;U===void 0&&(U="");var Z=A.input,me=A.source,xe=A.event,le=A.numAsString,se;if(Z){var Ee=A.inputValue||Z.value,ht=Cr(Z);Z.value=U,se=X(Ee,U,ht),se!==void 0&&F(Z,se,U)}U!==_&&P(S(U,le),{event:xe,source:me})};i.useEffect(function(){var A=B.current,U=A.formattedValue,Z=A.numAsString;_!==U&&(_!==z||U!==Z)&&P(S(_,z),{event:void 0,source:Kt.props})},[_,z]);var be=M.current?Cr(M.current):void 0,ge=typeof window<"u"?i.useLayoutEffect:i.useEffect;ge(function(){var A=M.current;if(_!==B.current.formattedValue&&A){var U=X(B.current.formattedValue,_,be);A.value=_,F(A,U,_)}},[_]);var de=function(A,U,Z){var me=Ha(_,A),xe=Object.assign(Object.assign({},me),{lastValue:_}),le=c(A,xe),se=N(le);if(le=c(se,void 0),d&&!d(S(se,le))){var Ee=U.target,ht=Cr(Ee),Ar=X(A,_,ht);return Ee.value=_,F(Ee,Ar,_),!1}return re({formattedValue:se,numAsString:le,inputValue:A,event:U,source:Z,input:U.target}),!0},G=function(A){var U=A.target,Z=U.value,me=de(Z,A,Kt.event);me&&m(A)},ee=function(A){var U=A.target,Z=A.key,me=U.selectionStart,xe=U.selectionEnd,le=U.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){v(A);return}var Ee=se;if(Z==="ArrowLeft"||Z==="ArrowRight"){var ht=Z==="ArrowLeft"?"left":"right";Ee=W(le,se,ht),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(U,Ee,le),A.isUnitTestRun&&F(U,Ee,le),v(A)},oe=function(A){var U=A.target,Z=function(){var me=U.selectionStart,xe=U.selectionEnd,le=U.value;if(le===void 0&&(le=""),me===xe){var se=W(le,me);se!==me&&F(U,se,le)}};Z(),requestAnimationFrame(function(){Z()}),p(A)},ne=function(A){A.persist&&A.persist();var U=A.target,Z=A.currentTarget;M.current=U,I.current.focusTimeout=setTimeout(function(){var me=U.selectionStart,xe=U.selectionEnd,le=U.value;le===void 0&&(le="");var se=W(le,me);se!==me&&!(me===0&&xe===le.length)&&F(U,se,le),h(Object.assign(Object.assign({},A),{currentTarget:Z}))},0)},ce=function(A){M.current=null,clearTimeout(I.current.focusTimeout),clearTimeout(I.current.setCaretTimeout),x(A)},ie=L&&Gd()?"numeric":void 0,$e=Object.assign({inputMode:ie},E,{type:t,value:_,onChange:G,onKeyDown:ee,onMouseUp:oe,onFocus:ne,onBlur:ce});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 Ga(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 s=t.allowNegative,c=t.thousandsGroupStyle;if(c===void 0&&(c="thousand"),e===""||e==="-")return e;var l=kn(t),u=l.thousandSeparator,f=l.decimalSeparator,d=n!==0&&e.indexOf(".")!==-1||n&&r,m=$r(e,s),v=m.beforeDecimal,p=m.afterDecimal,h=m.addNegation;return n!==void 0&&(p=Ba(p,n,!!r)),u&&(v=Rd(v,u,c)),o&&(v=o+v),a&&(p=p+a),h&&(v="-"+v),e=v+(d&&f||"")+p,e}function kn(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 tf(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 nf(e,t){return new RegExp("(^-)|[0-9]|"+Va(e),"g")}function rf(e,t,n){return e===""?!0:!t?.match(/\d/)&&!n?.match(/\d/)&&typeof e=="string"&&!isNaN(Number(e))}function of(e,t,n){var r;t===void 0&&(t=Yd(e));var o=n.allowNegative,a=n.prefix;a===void 0&&(a="");var s=n.suffix;s===void 0&&(s="");var c=n.decimalScale,l=t.from,u=t.to,f=u.start,d=u.end,m=kn(n),v=m.allowedDecimalSeparators,p=m.decimalSeparator,h=e[d]===p;if(Gt(e)&&(e===a||e===s)&&t.lastValue==="")return e;if(d-f===1&&v.indexOf(e[f])!==-1){var x=c===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):s.startsWith("-")&&I.length===s.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,d),$=w.hasNegation;r=w,e=r.value,f=r.start,d=r.end;var C=g(t.lastValue,l.start,l.end),E=C.start,O=C.end,k=C.value,_=e.substring(f,d);e.length&&k.length&&(E>k.length-s.length||O<a.length)&&!(_&&s.startsWith(_))&&(e=k);var z=0;e.startsWith(a)?z+=a.length:f<a.length&&(z=f),e=e.substring(z),d-=z;var K=e.length,B=e.length-s.length;e.endsWith(s)?K=B:(d>B||d>e.length-s.length)&&(K=d),e=e.substring(0,K),e=tf($?"-"+e:e,o),e=(e.match(nf(p))||[]).join("");var P=e.indexOf(p);e=e.replace(new RegExp(Va(p),"g"),function(I,N){return N===P?".":""});var H=$r(e,o),L=H.beforeDecimal,R=H.afterDecimal,M=H.addNegation;return u.end-u.start<l.end-l.start&&L===""&&h&&!parseFloat(R)&&(e=M?"-":""),e}function af(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 s=e.length;return o.fill(!1,s-r.length+1,s+1),o}function sf(e){var t=kn(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(`
130
+ `)},ru=0,Nt=[];function ou(e){var t=D.useRef([]),n=D.useRef([0,0]),r=D.useRef(),o=D.useState(ru++)[0],a=D.useState(function(){return ca()})[0],s=D.useRef(e);D.useEffect(function(){s.current=e},[e]),D.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Ed([e.lockRef.current],(e.shards||[]).map(ha),!0).filter(Boolean);return h.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=D.useCallback(function(h,x){if("touches"in h&&h.touches.length===2)return!s.current.allowPinchZoom;var g=Cn(h),w=n.current,$="deltaX"in h?h.deltaX:w[0]-g[0],C="deltaY"in h?h.deltaY:w[1]-g[1],E,M=h.target,k=Math.abs($)>Math.abs(C)?"h":"v";if("touches"in h&&k==="h"&&M.type==="range")return!1;var _=ua(k,M);if(!_)return!0;if(_?E=k:(E=k==="v"?"h":"v",_=ua(k,M)),!_)return!1;if(!r.current&&"changedTouches"in h&&($||C)&&(r.current=E),!E)return!0;var z=r.current||E;return eu(z,x,h,z==="h"?$:C,!0)},[]),l=D.useCallback(function(h){var x=h;if(!(!Nt.length||Nt[Nt.length-1]!==a)){var g="deltaY"in x?ma(x):Cn(x),w=t.current.filter(function(E){return E.name===x.type&&E.target===x.target&&tu(E.delta,g)})[0];if(w&&w.should){x.cancelable&&x.preventDefault();return}if(!w){var $=(s.current.shards||[]).map(ha).filter(Boolean).filter(function(E){return E.contains(x.target)}),C=$.length>0?c(x,$[0]):!s.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),d=D.useCallback(function(h,x,g,w){var $={name:h,delta:x,target:g,should:w};t.current.push($),setTimeout(function(){t.current=t.current.filter(function(C){return C!==$})},1)},[]),f=D.useCallback(function(h){n.current=Cn(h),r.current=void 0},[]),u=D.useCallback(function(h){d(h.type,ma(h),h.target,c(h,e.lockRef.current))},[]),m=D.useCallback(function(h){d(h.type,Cn(h),h.target,c(h,e.lockRef.current))},[]);D.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(h){return h!==a}),document.removeEventListener("wheel",l,Pt),document.removeEventListener("touchmove",l,Pt),document.removeEventListener("touchstart",f,Pt)}},[]);var v=e.removeScrollBar,p=e.inert;return D.createElement(D.Fragment,null,p?D.createElement(a,{styles:nu(o)}):null,v?D.createElement(Gd,{gapMode:"margin"}):null)}const au=Ad(sa,ou);var br=D.forwardRef(function(e,t){return D.createElement(yn,rt({},e,{ref:t,sideCar:au}))});br.classNames=yn.classNames;const iu=[" ","Enter","ArrowUp","ArrowDown"],su=[" ","Enter"],En="Select",[Sn,_n,cu]=cr(En),[Ot,Gm]=st(En,[cu,St]),wr=St(),[lu,dt]=Ot(En),[du,uu]=Ot(En),fu=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:s,defaultValue:c,onValueChange:l,dir:d,name:f,autoComplete:u,disabled:m,required:v}=e,p=wr(t),[h,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}),[_,z]=Ht({prop:s,defaultProp:c,onChange:l}),R=i.useRef(null),L=h?!!h.closest("form"):!0,[P,U]=i.useState(new Set),F=Array.from(P).map(H=>H.props.value).join(";");return i.createElement(tr,p,i.createElement(lu,{required:v,scope:t,trigger:h,onTriggerChange:x,valueNode:g,onValueNodeChange:w,valueNodeHasChildren:$,onValueNodeHasChildrenChange:C,contentId:wt(),value:_,onValueChange:z,open:M,onOpenChange:k,dir:E,triggerPointerDownPosRef:R,disabled:m},i.createElement(Sn.Provider,{scope:t},i.createElement(du,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(H=>{U(I=>new Set(I).add(H))},[]),onNativeOptionRemove:i.useCallback(H=>{U(I=>{const O=new Set(I);return O.delete(H),O})},[])},n)),L?i.createElement(Ea,{key:F,"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:u,value:_,onChange:H=>z(H.target.value),disabled:m},_===void 0?i.createElement("option",{value:""}):null,Array.from(P)):null))},pu="SelectTrigger",mu=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=wr(n),s=dt(pu,n),c=s.disabled||r,l=ve(t,s.onTriggerChange),d=_n(n),[f,u,m]=Sa(p=>{const h=d().filter(w=>!w.disabled),x=h.find(w=>w.value===s.value),g=_a(h,p,x);g!==void 0&&s.onValueChange(g.value)}),v=()=>{c||(s.onOpenChange(!0),m())};return i.createElement(nr,j({asChild:!0},a),i.createElement(pe.button,j({type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":Ca(s.value)?"":void 0},o,{ref:l,onClick:Y(o.onClick,p=>{p.currentTarget.focus()}),onPointerDown:Y(o.onPointerDown,p=>{const h=p.target;h.hasPointerCapture(p.pointerId)&&h.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&(v(),s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)},p.preventDefault())}),onKeyDown:Y(o.onKeyDown,p=>{const h=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&u(p.key),!(h&&p.key===" ")&&iu.includes(p.key)&&(v(),p.preventDefault())})})))}),hu="SelectValue",vu=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:s="",...c}=e,l=dt(hu,n),{onValueNodeHasChildrenChange:d}=l,f=a!==void 0,u=ve(t,l.onValueNodeChange);return _e(()=>{d(f)},[d,f]),i.createElement(pe.span,j({},c,{ref:u,style:{pointerEvents:"none"}}),Ca(l.value)?i.createElement(i.Fragment,null,s):a)}),gu=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return i.createElement(pe.span,j({"aria-hidden":!0},o,{ref:t}),r||"▼")}),bu=e=>i.createElement(Ro,j({asChild:!0},e)),It="SelectContent",wu=i.forwardRef((e,t)=>{const n=dt(It,e.__scopeSelect),[r,o]=i.useState();if(_e(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?gt.createPortal(i.createElement(va,{scope:e.__scopeSelect},i.createElement(Sn.Slot,{scope:e.__scopeSelect},i.createElement("div",null,e.children))),a):null}return i.createElement(xu,j({},e,{ref:t}))}),Re=10,[va,ut]=Ot(It),xu=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:c,sideOffset:l,align:d,alignOffset:f,arrowPadding:u,collisionBoundary:m,collisionPadding:v,sticky:p,hideWhenDetached:h,avoidCollisions:x,...g}=e,w=dt(It,n),[$,C]=i.useState(null),[E,M]=i.useState(null),k=ve(t,G=>C(G)),[_,z]=i.useState(null),[R,L]=i.useState(null),P=_n(n),[U,F]=i.useState(!1),H=i.useRef(!1);i.useEffect(()=>{if($)return oa($)},[$]),Xo();const I=i.useCallback(G=>{const[Q,...ne]=P().map(ie=>ie.ref.current),[te]=ne.slice(-1),ce=document.activeElement;for(const ie of G)if(ie===ce||(ie?.scrollIntoView({block:"nearest"}),ie===Q&&E&&(E.scrollTop=0),ie===te&&E&&(E.scrollTop=E.scrollHeight),ie?.focus(),document.activeElement!==ce))return},[P,E]),O=i.useCallback(()=>I([_,$]),[I,_,$]);i.useEffect(()=>{U&&O()},[U,O]);const{onOpenChange:N,triggerPointerDownPosRef:S}=w;i.useEffect(()=>{if($){let G={x:0,y:0};const Q=te=>{var ce,ie,$e,Ce;G={x:Math.abs(Math.round(te.pageX)-((ce=(ie=S.current)===null||ie===void 0?void 0:ie.x)!==null&&ce!==void 0?ce:0)),y:Math.abs(Math.round(te.pageY)-(($e=(Ce=S.current)===null||Ce===void 0?void 0:Ce.y)!==null&&$e!==void 0?$e:0))}},ne=te=>{G.x<=10&&G.y<=10?te.preventDefault():$.contains(te.target)||N(!1),document.removeEventListener("pointermove",Q),S.current=null};return S.current!==null&&(document.addEventListener("pointermove",Q),document.addEventListener("pointerup",ne,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Q),document.removeEventListener("pointerup",ne,{capture:!0})}}},[$,N,S]),i.useEffect(()=>{const G=()=>N(!1);return window.addEventListener("blur",G),window.addEventListener("resize",G),()=>{window.removeEventListener("blur",G),window.removeEventListener("resize",G)}},[N]);const[V,W]=Sa(G=>{const Q=P().filter(ce=>!ce.disabled),ne=Q.find(ce=>ce.ref.current===document.activeElement),te=_a(Q,G,ne);te&&setTimeout(()=>te.ref.current.focus())}),X=i.useCallback((G,Q,ne)=>{const te=!H.current&&!ne;(w.value!==void 0&&w.value===Q||te)&&(z(G),te&&(H.current=!0))},[w.value]),oe=i.useCallback(()=>$?.focus(),[$]),be=i.useCallback((G,Q,ne)=>{const te=!H.current&&!ne;(w.value!==void 0&&w.value===Q||te)&&L(G)},[w.value]),ge=r==="popper"?ga:yu,de=ge===ga?{side:c,sideOffset:l,align:d,alignOffset:f,arrowPadding:u,collisionBoundary:m,collisionPadding:v,sticky:p,hideWhenDetached:h,avoidCollisions:x}:{};return i.createElement(va,{scope:n,content:$,viewport:E,onViewportChange:M,itemRefCallback:X,selectedItem:_,onItemLeave:oe,itemTextRefCallback:be,focusSelectedItem:O,selectedItemText:R,position:r,isPositioned:U,searchRef:V},i.createElement(br,{as:ct,allowPinchZoom:!0},i.createElement(Jo,{asChild:!0,trapped:w.open,onMountAutoFocus:G=>{G.preventDefault()},onUnmountAutoFocus:Y(o,G=>{var Q;(Q=w.trigger)===null||Q===void 0||Q.focus({preventScroll:!0}),G.preventDefault()})},i.createElement(Hn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:G=>G.preventDefault(),onDismiss:()=>w.onOpenChange(!1)},i.createElement(ge,j({role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:G=>G.preventDefault()},g,de,{onPlaced:()=>F(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:Y(g.onKeyDown,G=>{const Q=G.ctrlKey||G.altKey||G.metaKey;if(G.key==="Tab"&&G.preventDefault(),!Q&&G.key.length===1&&W(G.key),["ArrowUp","ArrowDown","Home","End"].includes(G.key)){let te=P().filter(ce=>!ce.disabled).map(ce=>ce.ref.current);if(["ArrowUp","End"].includes(G.key)&&(te=te.slice().reverse()),["ArrowUp","ArrowDown"].includes(G.key)){const ce=G.target,ie=te.indexOf(ce);te=te.slice(ie+1)}setTimeout(()=>I(te)),G.preventDefault()}})}))))))}),yu=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=dt(It,n),s=ut(It,n),[c,l]=i.useState(null),[d,f]=i.useState(null),u=ve(t,k=>f(k)),m=_n(n),v=i.useRef(!1),p=i.useRef(!0),{viewport:h,selectedItem:x,selectedItemText:g,focusSelectedItem:w}=s,$=i.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&d&&h&&x&&g){const k=a.trigger.getBoundingClientRect(),_=d.getBoundingClientRect(),z=a.valueNode.getBoundingClientRect(),R=g.getBoundingClientRect();if(a.dir!=="rtl"){const ce=R.left-_.left,ie=z.left-ce,$e=k.left-ie,Ce=k.width+$e,A=Math.max(Ce,_.width),K=window.innerWidth-Re,Z=Yo(ie,[Re,K-A]);c.style.minWidth=Ce+"px",c.style.left=Z+"px"}else{const ce=_.right-R.right,ie=window.innerWidth-z.right-ce,$e=window.innerWidth-k.right-ie,Ce=k.width+$e,A=Math.max(Ce,_.width),K=window.innerWidth-Re,Z=Yo(ie,[Re,K-A]);c.style.minWidth=Ce+"px",c.style.right=Z+"px"}const L=m(),P=window.innerHeight-Re*2,U=h.scrollHeight,F=window.getComputedStyle(d),H=parseInt(F.borderTopWidth,10),I=parseInt(F.paddingTop,10),O=parseInt(F.borderBottomWidth,10),N=parseInt(F.paddingBottom,10),S=H+I+U+N+O,V=Math.min(x.offsetHeight*5,S),W=window.getComputedStyle(h),X=parseInt(W.paddingTop,10),oe=parseInt(W.paddingBottom,10),be=k.top+k.height/2-Re,ge=P-be,de=x.offsetHeight/2,G=x.offsetTop+de,Q=H+I+G,ne=S-Q;if(Q<=be){const ce=x===L[L.length-1].ref.current;c.style.bottom="0px";const ie=d.clientHeight-h.offsetTop-h.offsetHeight,$e=Math.max(ge,de+(ce?oe:0)+ie+O),Ce=Q+$e;c.style.height=Ce+"px"}else{const ce=x===L[0].ref.current;c.style.top="0px";const $e=Math.max(be,H+h.offsetTop+(ce?X:0)+de)+ne;c.style.height=$e+"px",h.scrollTop=Q-be+h.offsetTop}c.style.margin=`${Re}px 0`,c.style.minHeight=V+"px",c.style.maxHeight=P+"px",r?.(),requestAnimationFrame(()=>v.current=!0)}},[m,a.trigger,a.valueNode,c,d,h,x,g,a.dir,r]);_e(()=>$(),[$]);const[C,E]=i.useState();_e(()=>{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:c,shouldExpandOnScrollRef:v,onScrollButtonChange:M},i.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C}},i.createElement(pe.div,j({},o,{ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))}),ga=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Re,...a}=e,s=wr(n);return i.createElement(rr,j({},s,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]=Ot(It,{}),ba="SelectViewport",Cu=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ut(ba,n),a=xr(ba,n),s=ve(t,o.onViewportChange),c=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(pe.div,j({"data-radix-select-viewport":"",role:"presentation"},r,{ref:s,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(c.current-d.scrollTop);if(m>0){const v=window.innerHeight-Re*2,p=parseFloat(f.style.minHeight),h=parseFloat(f.style.height),x=Math.max(p,h);if(x<v){const g=x+m,w=Math.min(v,g),$=g-w;f.style.height=w+"px",f.style.bottom==="0px"&&(d.scrollTop=$>0?$:0,f.style.justifyContent="flex-end")}}}c.current=d.scrollTop})}))))}),Eu="SelectGroup",[Ym,Su]=Ot(Eu),_u="SelectLabel",Tu=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Su(_u,n);return i.createElement(pe.div,j({id:o.id},r,{ref:t}))}),yr="SelectItem",[ku,wa]=Ot(yr),Pu=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...s}=e,c=dt(yr,n),l=ut(yr,n),d=c.value===r,[f,u]=i.useState(a??""),[m,v]=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)}),h=wt(),x=()=>{o||(c.onValueChange(r),c.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(ku,{scope:n,value:r,disabled:o,textId:h,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(pe.div,j({role:"option","aria-labelledby":h,"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},s,{ref:p,onFocus:Y(s.onFocus,()=>v(!0)),onBlur:Y(s.onBlur,()=>v(!1)),onPointerUp:Y(s.onPointerUp,x),onPointerMove:Y(s.onPointerMove,g=>{if(o){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}else g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Y(s.onPointerLeave,g=>{if(g.currentTarget===document.activeElement){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}}),onKeyDown:Y(s.onKeyDown,g=>{var w;((w=l.searchRef)===null||w===void 0?void 0:w.current)!==""&&g.key===" "||(su.includes(g.key)&&x(),g.key===" "&&g.preventDefault())})}))))}),Tn="SelectItemText",Nu=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,s=dt(Tn,n),c=ut(Tn,n),l=wa(Tn,n),d=uu(Tn,n),[f,u]=i.useState(null),m=ve(t,g=>u(g),l.onItemTextChange,g=>{var w;return(w=c.itemTextRefCallback)===null||w===void 0?void 0:w.call(c,g,l.value,l.disabled)}),v=f?.textContent,p=i.useMemo(()=>i.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},v),[l.disabled,l.value,v]),{onNativeOptionAdd:h,onNativeOptionRemove:x}=d;return _e(()=>(h(p),()=>x(p)),[h,x,p]),i.createElement(i.Fragment,null,i.createElement(pe.span,j({id:l.textId},a,{ref:m})),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?gt.createPortal(a.children,s.valueNode):null)}),Ou="SelectItemIndicator",Iu=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return wa(Ou,n).isSelected?i.createElement(pe.span,j({"aria-hidden":!0},r,{ref:t})):null}),xa="SelectScrollUpButton",Mu=i.forwardRef((e,t)=>{const n=ut(xa,e.__scopeSelect),r=xr(xa,e.__scopeSelect),[o,a]=i.useState(!1),s=ve(t,r.onScrollButtonChange);return _e(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollTop>0;a(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?i.createElement($a,j({},e,{ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop-l.offsetHeight)}})):null}),ya="SelectScrollDownButton",Au=i.forwardRef((e,t)=>{const n=ut(ya,e.__scopeSelect),r=xr(ya,e.__scopeSelect),[o,a]=i.useState(!1),s=ve(t,r.onScrollButtonChange);return _e(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<d;a(f)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?i.createElement($a,j({},e,{ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop+l.offsetHeight)}})):null}),$a=i.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=ut("SelectScrollButton",n),s=i.useRef(null),c=_n(n),l=i.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return i.useEffect(()=>()=>l(),[l]),_e(()=>{var d;const f=c().find(u=>u.ref.current===document.activeElement);f==null||(d=f.ref.current)===null||d===void 0||d.scrollIntoView({block:"nearest"})},[c]),i.createElement(pe.div,j({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:Y(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:Y(o.onPointerMove,()=>{var d;(d=a.onItemLeave)===null||d===void 0||d.call(a),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:Y(o.onPointerLeave,()=>{l()})}))}),Du=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return i.createElement(pe.div,j({"aria-hidden":!0},r,{ref:t}))});function Ca(e){return e===""||e===void 0}const Ea=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=i.useRef(null),a=ve(t,o),s=wd(n);return i.useEffect(()=>{const c=o.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==n&&f){const u=new Event("change",{bubbles:!0});f.call(c,n),c.dispatchEvent(u)}},[s,n]),i.createElement(Ho,{asChild:!0},i.createElement("select",j({},r,{ref:a,defaultValue:n})))});Ea.displayName="BubbleSelect";function Sa(e){const t=Ie(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(s=>{const c=n.current+s;t(c),function l(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(c)},[t]),a=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function _a(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 s=ju(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==n));const l=s.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function ju(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Lu=fu,Ta=mu,Fu=vu,Vu=gu,Bu=bu,ka=wu,zu=Cu,Pa=Tu,Na=Pu,Wu=Nu,Ru=Iu,Oa=Mu,Ia=Au,Ma=Du,Aa=Lu,Da=Fu,$r=D.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(Ta,{ref:r,className:ee("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent py-2 pr-px pl-3 text-sm shadow-sm ring-offset-background [&>span]:line-clamp-1 disabled:cursor-not-allowed placeholder:text-muted-foreground disabled:opacity-50 focus:outline-none focus:ring-1 focus:ring-ring",e),...n,children:[t,y.jsx(Vu,{asChild:!0,children:y.jsx(zn,{className:"h-4 w-4 opacity-50"})})]}));$r.displayName=Ta.displayName;const ja=D.forwardRef(({className:e,...t},n)=>y.jsx(Oa,{ref:n,className:ee("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx(Js,{})}));ja.displayName=Oa.displayName;const La=D.forwardRef(({className:e,...t},n)=>y.jsx(Ia,{ref:n,className:ee("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx(Ys,{})}));La.displayName=Ia.displayName;const Cr=D.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>y.jsx(Bu,{children:y.jsxs(ka,{ref:o,className:ee("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",n==="popper"&&"data-[side=left]:-translate-x-1 data-[side=top]:-translate-y-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1",e),position:n,...r,children:[y.jsx(ja,{}),y.jsx(zu,{className:ee("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),y.jsx(La,{})]})}));Cr.displayName=ka.displayName;const Hu=D.forwardRef(({className:e,...t},n)=>y.jsx(Pa,{ref:n,className:ee("px-2 py-1.5 font-semibold text-sm",e),...t}));Hu.displayName=Pa.displayName;const kn=D.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(Na,{ref:r,className:ee("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[disabled]:pointer-events-none focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50",e),...n,children:[y.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(Ru,{children:y.jsx(uo,{className:"h-4 w-4"})})}),y.jsx(Wu,{children:t})]}));kn.displayName=Na.displayName;const Uu=D.forwardRef(({className:e,...t},n)=>y.jsx(Ma,{ref:n,className:ee("-mx-1 my-1 h-px bg-muted",e),...t}));Uu.displayName=Ma.displayName;function Ku(e){const{mode:t,value:n,onChange:r,onPaste:o,setMode:a,column:s,coordinates:c}=e,[l,d]=so(!0),f=i.useCallback(v=>{v.preventDefault(),o?.()},[o]),u=i.useCallback(()=>{l||(a?.("view"),d(!1))},[a,d,l]),m=i.useCallback(v=>{r?.({data:v}),u()},[r,u]);return y.jsxs(Aa,{value:n,open:l,onOpenChange:d,onValueChange:m,children:[y.jsx($r,{onBlur:u,onPaste:f,className:ee("h-full w-full rounded-none border-none pl-1 text-xs outline-none focus:ring-0"),autoFocus:!0,"data-cypress":`table-cell-boolean-${s.id}-${c.row}`,"aria-readonly":t==="readonly",children:y.jsx(Da,{placeholder:"Selecionar"})}),y.jsxs(Cr,{onBlur:u,children:[y.jsx(kn,{className:"text-xs",value:"true","data-cypress":`table-cell-boolean-${s.id}-${c.row}-true`,children:"Sim"}),y.jsx(kn,{className:"text-xs",value:"false","data-cypress":`table-cell-boolean-${s.id}-${c.row}-false`,children:"Não"})]})]})}function Gu(e){const{value:t,column:n,coordinates:r,mode:o}=e,s=t===""?"Selecionar":t==="true"?"Sim":"Não";return y.jsxs("div",{className:"flex h-full w-full items-center justify-between pr-px pl-1","aria-readonly":o==="readonly","data-cypress":`table-cell-select-${n.id}-${r.row}`,children:[y.jsx("p",{className:"line-clamp-1 text-xs",children:s}),y.jsx(zn,{className:"h-4 w-4 opacity-50"})]})}function Yu(e){const{mode:t,value:n,onBlur:r,onChange:o,onPaste:a,column:s,coordinates:c}=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("h-full w-full bg-transparent pl-1 text-xs outline-none"),"data-cypress":`table-cell-date-${s.id}-${c.row}`,"aria-readonly":t==="readonly"})}function Xu(e){const{value:t,column:n,coordinates:r,mode:o}=e,a=t||"dd/mm/yyyy";return y.jsx("div",{className:"flex h-full w-full items-center","data-cypress":`table-cell-date-${n.id}-${r.row}`,"aria-readonly":o==="readonly",children:y.jsx("p",{className:"line-clamp-1 pl-1 text-xs",children:a})})}function qu(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=qu(e);i.useEffect(()=>{t&&e.current?.select()},[t,e.current])}function Fa(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 ot(){}function Zu(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,s){return a===t[s]})||(t=r,n=e.apply(void 0,r)),n}}function Yt(e){return!!(e||"").match(/\d/)}function Mt(e){return e==null}function Ju(e){return typeof e=="number"&&isNaN(e)}function Va(e){return Mt(e)||Ju(e)||typeof e=="number"&&!isFinite(e)}function Ba(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Qu(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 ef(e,t,n){var r=Qu(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 tf(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],s=o[1]||"";return{beforeDecimal:a,afterDecimal:s,hasNegation:n,addNegation:r}}function nf(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 za(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function Wa(e,t){return Array(t+1).join(e)}function Ra(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 s=1+a,c=o.length;return s<0?o="0."+Wa("0",Math.abs(s))+o:s>=c?o=o+Wa("0",s-c):o=(o.substring(0,s)||"0")+"."+o.substring(s),n+o}function Ha(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,o=Sr(e),a=o.beforeDecimal,s=o.afterDecimal,c=o.hasNegation,l=parseFloat("0."+(s||"0")),d=s.length<=t?"0."+s:l.toFixed(t),f=d.split("."),u=a;a&&Number(f[0])&&(u=a.split("").reverse().reduce(function(h,x,g){return h.length>g?(Number(h[0])+Number(x)).toString()+h.substring(1,h.length):x+h},f[0]));var m=za(f[1]||"",t,n),v=c?"-":"",p=r?".":"";return""+v+u+p+m}function ft(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 Ua=Zu(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 rf(e,t,n){return Math.min(Math.max(e,t),n)}function _r(e){return Math.max(e.selectionStart,e.selectionEnd)}function of(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function af(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function sf(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function cf(e,t,n,r,o,a,s){s===void 0&&(s=sf);var c=o.findIndex(function(C){return C}),l=e.slice(0,c);!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),v=0;v<d;v++){m[v]=-1;for(var p=0,h=f;p<h;p++){var x=s({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:v,formattedValueIndex:p});if(x&&u[p]!==!0){m[v]=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 Ka(e,t,n,r){var o=e.length;if(t=rf(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 lf(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 Ga(e,t,n,r,o,a){a===void 0&&(a=ot);var s=tf(function(p,h){var x,g;return Va(p)?(g="",x=""):typeof p=="number"||h?(g=typeof p=="number"?Ra(p):p,x=r(g)):(g=o(p,void 0),x=r(g)),{formattedValue:x,numAsString:g}}),c=i.useState(function(){return s(Mt(e)?t:e,n)}),l=c[0],d=c[1],f=function(p,h){p.formattedValue!==l.formattedValue&&d({formattedValue:p.formattedValue,numAsString:p.value}),a(p,h)},u=e,m=n;Mt(e)&&(u=l.numAsString,m=!0);var v=s(u,m);return i.useMemo(function(){d(v)},[v.formattedValue]),[l,f]}function df(e){return e.replace(/[^0-9]/g,"")}function uf(e){return e}function ff(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,s=e.format;s===void 0&&(s=uf);var c=e.removeFormatting;c===void 0&&(c=df);var l=e.defaultValue,d=e.valueIsNumericString,f=e.onValueChange,u=e.isAllowed,m=e.onChange;m===void 0&&(m=ot);var v=e.onKeyDown;v===void 0&&(v=ot);var p=e.onMouseUp;p===void 0&&(p=ot);var h=e.onFocus;h===void 0&&(h=ot);var x=e.onBlur;x===void 0&&(x=ot);var g=e.value,w=e.getCaretBoundary;w===void 0&&(w=lf);var $=e.isValidInputCharacter;$===void 0&&($=Yt);var C=e.isCharacterSame,E=Fa(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),M=Ga(g,l,!!d,s,c,f),k=M[0],_=k.formattedValue,z=k.numAsString,R=M[1],L=i.useRef({formattedValue:_,numAsString:z}),P=function(A,K){L.current={formattedValue:A.formattedValue,numAsString:A.value},R(A,K)},U=i.useState(!1),F=U[0],H=U[1],I=i.useRef(null),O=i.useRef({setCaretTimeout:null,focusTimeout:null});i.useEffect(function(){return H(!0),function(){clearTimeout(O.current.setCaretTimeout),clearTimeout(O.current.focusTimeout)}},[]);var N=s,S=function(A,K){var Z=parseFloat(K);return{formattedValue:A,value:K,floatValue:isNaN(Z)?void 0:Z}},V=function(A,K,Z){A.selectionStart===0&&A.selectionEnd===A.value.length||(ft(A,K),O.current.setCaretTimeout=setTimeout(function(){A.value===Z&&A.selectionStart!==K&&ft(A,K)},0))},W=function(A,K,Z){return Ka(A,K,w(A),Z)},X=function(A,K,Z){var me=w(K),xe=cf(K,_,A,Z,me,$,C);return xe=Ka(K,xe,me),xe},oe=function(A){var K=A.formattedValue;K===void 0&&(K="");var Z=A.input,me=A.source,xe=A.event,le=A.numAsString,se;if(Z){var Ee=A.inputValue||Z.value,ht=_r(Z);Z.value=K,se=X(Ee,K,ht),se!==void 0&&V(Z,se,K)}K!==_&&P(S(K,le),{event:xe,source:me})};i.useEffect(function(){var A=L.current,K=A.formattedValue,Z=A.numAsString;_!==K&&(_!==z||K!==Z)&&P(S(_,z),{event:void 0,source:Gt.props})},[_,z]);var be=I.current?_r(I.current):void 0,ge=typeof window<"u"?i.useLayoutEffect:i.useEffect;ge(function(){var A=I.current;if(_!==L.current.formattedValue&&A){var K=X(L.current.formattedValue,_,be);A.value=_,V(A,K,_)}},[_]);var de=function(A,K,Z){var me=Ua(_,A),xe=Object.assign(Object.assign({},me),{lastValue:_}),le=c(A,xe),se=N(le);if(le=c(se,void 0),u&&!u(S(se,le))){var Ee=K.target,ht=_r(Ee),Lr=X(A,_,ht);return Ee.value=_,V(Ee,Lr,_),!1}return oe({formattedValue:se,numAsString:le,inputValue:A,event:K,source:Z,input:K.target}),!0},G=function(A){var K=A.target,Z=K.value,me=de(Z,A,Gt.event);me&&m(A)},Q=function(A){var K=A.target,Z=A.key,me=K.selectionStart,xe=K.selectionEnd,le=K.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){v(A);return}var Ee=se;if(Z==="ArrowLeft"||Z==="ArrowRight"){var ht=Z==="ArrowLeft"?"left":"right";Ee=W(le,se,ht),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&&V(K,Ee,le),A.isUnitTestRun&&V(K,Ee,le),v(A)},ne=function(A){var K=A.target,Z=function(){var me=K.selectionStart,xe=K.selectionEnd,le=K.value;if(le===void 0&&(le=""),me===xe){var se=W(le,me);se!==me&&V(K,se,le)}};Z(),requestAnimationFrame(function(){Z()}),p(A)},te=function(A){A.persist&&A.persist();var K=A.target,Z=A.currentTarget;I.current=K,O.current.focusTimeout=setTimeout(function(){var me=K.selectionStart,xe=K.selectionEnd,le=K.value;le===void 0&&(le="");var se=W(le,me);se!==me&&!(me===0&&xe===le.length)&&V(K,se,le),h(Object.assign(Object.assign({},A),{currentTarget:Z}))},0)},ce=function(A){I.current=null,clearTimeout(O.current.focusTimeout),clearTimeout(O.current.setCaretTimeout),x(A)},ie=F&&of()?"numeric":void 0,$e=Object.assign({inputMode:ie},E,{type:t,value:_,onChange:G,onKeyDown:Q,onMouseUp:ne,onFocus:te,onBlur:ce});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 Ya(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 s=t.allowNegative,c=t.thousandsGroupStyle;if(c===void 0&&(c="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,s),v=m.beforeDecimal,p=m.afterDecimal,h=m.addNegation;return n!==void 0&&(p=za(p,n,!!r)),d&&(v=ef(v,d,c)),o&&(v=o+v),a&&(p=p+a),h&&(v="-"+v),e=v+(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 pf(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 mf(e,t){return new RegExp("(^-)|[0-9]|"+Ba(e),"g")}function hf(e,t,n){return e===""?!0:!t?.match(/\d/)&&!n?.match(/\d/)&&typeof e=="string"&&!isNaN(Number(e))}function vf(e,t,n){var r;t===void 0&&(t=af(e));var o=n.allowNegative,a=n.prefix;a===void 0&&(a="");var s=n.suffix;s===void 0&&(s="");var c=n.decimalScale,l=t.from,d=t.to,f=d.start,u=d.end,m=Pn(n),v=m.allowedDecimalSeparators,p=m.decimalSeparator,h=e[u]===p;if(Yt(e)&&(e===a||e===s)&&t.lastValue==="")return e;if(u-f===1&&v.indexOf(e[f])!==-1){var x=c===0?"":p;e=e.substring(0,f)+x+e.substring(f+1,e.length)}var g=function(O,N,S){var V=!1,W=!1;a.startsWith("-")?V=!1:O.startsWith("--")?(V=!1,W=!0):s.startsWith("-")&&O.length===s.length?V=!1:O[0]==="-"&&(V=!0);var X=V?1:0;return W&&(X=2),X&&(O=O.substring(X),N-=X,S-=X),{value:O,start:N,end:S,hasNegation:V}},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-s.length||M<a.length)&&!(_&&s.startsWith(_))&&(e=k);var z=0;e.startsWith(a)?z+=a.length:f<a.length&&(z=f),e=e.substring(z),u-=z;var R=e.length,L=e.length-s.length;e.endsWith(s)?R=L:(u>L||u>e.length-s.length)&&(R=u),e=e.substring(0,R),e=pf($?"-"+e:e,o),e=(e.match(mf(p))||[]).join("");var P=e.indexOf(p);e=e.replace(new RegExp(Ba(p),"g"),function(O,N){return N===P?".":""});var U=Sr(e,o),F=U.beforeDecimal,H=U.afterDecimal,I=U.addNegation;return d.end-d.start<l.end-l.start&&F===""&&h&&!parseFloat(H)&&(e=I?"-":""),e}function gf(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 s=e.length;return o.fill(!1,s-r.length+1,s+1),o}function bf(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(`
130
131
  Decimal separator can't be same as thousand separator.
131
132
  thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
132
133
  decimalSeparator: `+r+` (default value for decimalSeparator is .)
@@ -134,6 +135,6 @@ Linha N° ${N+1} até N° ${S+1}`:`Você irá excluir a linha N° ${N+1}, deseja
134
135
  Prefix can't start with '-' when allowNegative is true.
135
136
  prefix: `+o+`
136
137
  allowNegative: `+a+`
137
- `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function cf(e){e=sf(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;o===void 0&&(o=ot);var a=e.onBlur;a===void 0&&(a=ot);var s=e.thousandSeparator,c=e.decimalScale,l=e.fixedDecimalScale,u=e.prefix;u===void 0&&(u="");var f=e.defaultValue,d=e.value,m=e.valueIsNumericString,v=e.onValueChange,p=La(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),h=kn(e),x=h.decimalSeparator,g=h.allowedDecimalSeparators,w=function(M){return Ga(M,e)},$=function(M,I){return of(M,I,e)},C=Ot(d)?f:d,E=m??rf(C,u,t);Ot(d)?Ot(f)||(E=E||typeof f=="number"):E=E||typeof d=="number";var O=function(M){return Fa(M)?M:(typeof M=="number"&&(M=Wa(M)),E&&typeof c=="number"?Ra(M,c,!!l):M)},k=Ka(O(d),O(f),!!E,w,$,v),_=k[0],z=_.numAsString,K=_.formattedValue,B=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===u.length+1&&n&&ft(I,1),c&&l&&(N==="Backspace"&&W[S-1]===x?(ft(I,S-1),M.preventDefault()):N==="Delete"&&W[S]===x&&M.preventDefault()),g?.includes(N)&&W[S]===x&&ft(I,S+1);var X=s===!0?",":s;N==="Backspace"&&W[S-1]===X&&ft(I,S-1),N==="Delete"&&W[S]===X&&ft(I,S+1),o(M)},H=function(M){var I=z;if(I.match(/\d/g)||(I=""),r||(I=Ud(I)),l&&c&&(I=Ra(I,c,l)),I!==z){var N=Ga(I,e);B({formattedValue:N,value:I,floatValue:parseFloat(I)},{event:M,source:Kt.event})}a(M)},L=function(M){return M===x?!0:Gt(M)},R=function(M){var I=M.currentValue,N=M.lastValue,S=M.formattedValue,F=M.currentValueIndex,W=M.formattedValueIndex,X=I[F],re=S[W],be=Ha(N,I),ge=be.to;return F>=ge.start&&F<ge.end&&g&&g.includes(X)&&re===x?!0:X===re};return Object.assign(Object.assign({},p),{value:K,valueIsNumericString:!1,isValidInputCharacter:L,isCharacterSame:R,onValueChange:B,format:w,removeFormatting:$,getCaretBoundary:function(M){return af(M,e)},onKeyDown:P,onBlur:H})}function lf(e){var t=cf(e);return i.createElement(ef,Object.assign({},t))}function uf(e,t){const{className:n,dataEditorType:r,onFocus:o,onBlur:a,onChange:s,onClick:c,onPaste:l,settings:u,testid:f,value:d,disabled:m,dataCypress:v,tabIndex:p,...h}=e,x=".",g=",",w=ff({dataEditorType:r,decimalScale:u?.numeric?.decimalScale}),$=u?.numeric?.allowNegative,C=u?.numeric?.min,E=u?.numeric?.max,O=r==="Currency"?"R$ ":"",k=r==="Percentage"?"%":"",[_,z]=i.useState(d),K=i.useCallback(P=>{const H=Number(P);if(P==="")return;let L=H;return typeof C=="number"&&H<C&&(L=C),typeof E=="number"&&H>E&&(L=E),L??""},[C,E]),B=i.useCallback(({value:P})=>{const H=K(P||"");s?.(H),z(H)},[s,K]);return i.useEffect(()=>{const P=K(d);z(P)},[d,K]),y.jsx(lf,{...h,getInputRef:t,tabIndex:p,value:_,onPaste:l,prefix:O,suffix:k,fixedDecimalScale:!0,onBlur:a,"data-testid":f,valueIsNumericString:!0,onFocus:o,onClick:c,decimalScale:w,onValueChange:B,allowNegative:$,decimalSeparator:g,thousandSeparator:x,className:Q("h-full w-full rounded-none bg-transparent pl-1 text-xs outline-none",n),disabled:m,"data-cypress":v,autoFocus:!0})}const df=2;function ff(e){const{dataEditorType:t,decimalScale:n}=e;let r=n;return t==="Percentage"&&(n?r=n>2?n-df:0:r=0),n||(t==="Decimal"&&(r=2),t==="Float"&&(r=2),t==="Integer"&&(r=0),t==="Currency"&&(r=2)),r}const Ya=i.forwardRef(uf);function pf(e){const{mode:t,value:n,onBlur:r,onChange:o,onPaste:a,setMode:s,column:c,coordinates:l}=e,u=i.useRef(null),f=i.useCallback(m=>{m.preventDefault(),a?.()},[a]),d=i.useCallback(()=>{r?.(),s?.("view")},[r,s]);return yr(u),y.jsx(Ya,{ref:u,dataEditorType:c.dataEditorType,value:n,onPaste:f,onBlur:d,onChange:m=>o?.({data:m}),settings:c.settings,dataCypress:`table-cell-numeric-${c.id}-${l.row}`,"aria-readonly":t==="readonly"})}function mf(e){const{mode:t,value:n,column:r,coordinates:o}=e;return y.jsx(Ya,{dataEditorType:r.dataEditorType,value:n,settings:r.settings,disabled:!0,className:"pointer-events-none",dataCypress:`table-cell-numeric-${r.id}-${o.row}`,"aria-readonly":t==="readonly"})}function hf(e){const{mode:t,value:n,onChange:r,onPaste:o,items:a,setMode:s,coordinates:c,column:l}=e,[u,f]=ao(!0),d=i.useCallback(p=>{p.preventDefault(),o?.()},[o]),m=i.useCallback(()=>{u||(s?.("view"),f(!1))},[s,f,u]),v=i.useCallback(p=>{r?.({data:p}),m()},[r,m]);return y.jsxs(Ma,{value:n,open:u,onOpenChange:f,onValueChange:v,children:[y.jsx(wr,{onBlur:m,onPaste:d,className:Q("h-full w-full rounded-none border-none pl-1 text-xs outline-none focus:ring-0"),"data-cypress":`table-cell-select-${l.id}-${c.row}`,"aria-readonly":t==="readonly",children:y.jsx(Aa,{placeholder:"Selecionar"})}),y.jsx(xr,{onBlur:m,children:a.map(({value:p,text:h})=>y.jsx(Tn,{"data-cypress":`table-cell-select-${l.id}-${c.row}-${p}`,className:"min-h-[24px] text-xs",value:p,children:h},p))})]})}function vf(e){const{mode:t,value:n,items:r,coordinates:o,column:a}=e,s=i.useMemo(()=>r.find(l=>l.value===n),[r,n]),c=i.useMemo(()=>s?s.text:"Selecionar",[s]);return y.jsxs("div",{className:"flex h-full w-full items-center justify-between pr-px pl-1","data-cypress":`table-cell-select-${a.id}-${o.row}`,"aria-readonly":t==="readonly",children:[y.jsx("p",{className:"line-clamp-1 text-xs",children:c}),y.jsx(Bn,{className:"h-4 w-4 opacity-50"})]})}function gf(e){e.selectionStart=e.selectionEnd=e.value.length}const bf="text/plain";function wf(e){return window.clipboardData?.getData?window.clipboardData.getData("Text"):e.clipboardData?.getData?e.clipboardData.getData(bf):""}function xf(e){return[" ",`
138
- `,"\r"].every(t=>!e.includes(t))}function Xa(e,t){return Jr(e)>t-4}const qa=200;function yf(e){const{mode:t,width:n,value:r,onBlur:o,onChange:a,onPaste:s,setMode:c,column:l,selected:u,coordinates:f}=e,d=r,m=i.useRef(null),v=i.useRef(null),[p,h]=i.useState(0),x=i.useMemo(()=>Xa(d,n),[d,n]),g=i.useCallback(()=>{const E=v.current;if(!E)return;const O=E.scrollHeight;E.style.height=`${O}px`,h(O)},[]),w=i.useCallback(E=>{const O=wf(E);xf(O)||(E.preventDefault(),s?.()),g()},[s,g]),$=i.useCallback(()=>{o?.(),c?.("view")},[o,c]),C=i.useCallback(E=>{a?.({data:E.target.value}),g()},[g,a]);return i.useEffect(()=>{g()},[g]),yr(m),yr(v),x?y.jsx("div",{style:{height:p||"fit-content"},className:Q("-left-0.5 -top-0.5 absolute z-40 h-fit w-fit border bg-white shadow-lg outline outline-2 outline-blue-500",u?"bg-blue-50":"bg-white"),children:y.jsx("div",{style:{height:p-1},className:"h-full w-full outline outline-[3px] outline-sky-200 outline-offset-2",children:y.jsx("textarea",{ref:v,onBlur:$,onPaste:w,value:d,onChange:C,className:Q("h-fit resize-none break-all rounded-none bg-transparent py-1.5 pr-3 pl-1 text-xs outline-none"),onFocus:E=>gf(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:d,maxLength:qa,onChange:C,className:Q("h-full w-full bg-transparent pl-1 text-xs outline-none"),"data-cypress":`table-cell-string-${l.id}-${f.row}`,"aria-readonly":t==="readonly",autoFocus:!0})}function $f(e){const{mode:t,value:n,column:r,width:o,selected:a,coordinates:s}=e,c=n;return i.useMemo(()=>Xa(c,o),[c,o])?y.jsx(pn,{delayDuration:0,children:y.jsxs(mn,{children:[y.jsx(hn,{className:"w-full",children:y.jsx("div",{className:"flex h-full w-full items-center overflow-hidden","aria-readonly":t==="readonly","data-cypress":`table-cell-string-${r.id}-${s.row}`,children:y.jsx("p",{className:"line-clamp-1 break-all pl-1 text-left text-xs",children:c})})}),y.jsx(Ut,{align:"start",side:"bottom",alignOffset:-2,sideOffset:-Vt,className:Q("h-fit w-full break-all rounded-none border bg-white pl-1 text-black shadow-lg","data-[state=closed]:transform-none data-[side=bottom]:animate-none data-[state=closed]:animate-none data-[state=closed]:transition-none",a?"bg-blue-50":"bg-white"),style:{width:o},children:y.jsx("p",{"data-cypress":`table-cell-string-tooltip-${r.id}-${s.row}`,children:c})})]})}):y.jsx("div",{className:"flex h-full w-full items-center overflow-hidden","data-cypress":`table-cell-string-${r.id}-${s.row}`,"aria-readonly":t==="readonly",children:y.jsx("p",{className:"line-clamp-1 break-all pl-1 text-left text-xs",title:c,children:c})})}const He={Date:Ld,Text:yf,Boolean:Dd,Numeric:pf,Select:hf},Ue={Date:Fd,Text:$f,Boolean:jd,Numeric:mf,Select:vf},Cf=["Boolean","Select"];function Ef(e){const{value:t,width:n,coordinates:r}=e,{columns:o,isCellSelected:a,onChange:s,onPaste:c,onSelectCell:l}=De(),{dataEditorType:u,state:f,settings:d}=o[r.column],{readonly:m,visible:v}=f,[p,h]=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(()=>d?.select?.items||[],[d?.select?.items]),C=i.useMemo(()=>({dataEditor:{coordinates:r,value:t,column:g,setMode:h,selected:w,mode:p,width:n,onPaste:()=>c(r),onChange:({data:K})=>s({data:K,point:r})},dataViewer:{coordinates:r,value:t,column:g,width:n,selected:w,mode:p}}),[r,n,p,t,g,w,c,s,r]),E=i.useMemo(()=>({Date:y.jsx(He.Date,{...C.dataEditor}),String:y.jsx(He.Text,{...C.dataEditor}),Currency:y.jsx(He.Numeric,{...C.dataEditor}),Decimal:y.jsx(He.Numeric,{...C.dataEditor}),Float:y.jsx(He.Numeric,{...C.dataEditor}),Integer:y.jsx(He.Numeric,{...C.dataEditor}),Percentage:y.jsx(He.Numeric,{...C.dataEditor}),Boolean:y.jsx(He.Boolean,{...C.dataEditor}),Select:y.jsx(He.Select,{...C.dataEditor,items:$})}),[C.dataEditor,$]),O=i.useMemo(()=>({Date:y.jsx(Ue.Date,{...C.dataViewer}),String:y.jsx(Ue.Text,{...C.dataViewer}),Currency:y.jsx(Ue.Numeric,{...C.dataViewer}),Decimal:y.jsx(Ue.Numeric,{...C.dataViewer}),Float:y.jsx(Ue.Numeric,{...C.dataViewer}),Integer:y.jsx(Ue.Numeric,{...C.dataViewer}),Percentage:y.jsx(Ue.Numeric,{...C.dataViewer}),Boolean:y.jsx(Ue.Boolean,{...C.dataViewer}),Select:y.jsx(Ue.Select,{...C.dataViewer,items:$})}),[C.dataViewer,$]),k=i.useMemo(()=>u?E[u]:null,[u,E]),_=i.useMemo(()=>u?O[u]:null,[u,O]),z=i.useCallback(()=>{Cf.includes(u)||h("view")},[u]);return i.useEffect(()=>{const K=B=>{const P=B.code==="Enter";P&&w&&p==="view"&&h("edit"),P&&w&&p==="edit"&&h("view")};return window.addEventListener("keydown",K),()=>window.removeEventListener("keydown",K)},[w,p]),io(x,z),i.useEffect(()=>{h(m?"readonly":"view")},[m]),v?p==="readonly"?y.jsx("div",{onClick:()=>l(r),className:Q("flex h-7 shrink-0 cursor-default select-none border border-t-transparent border-l-transparent bg-[#F6F6F9]",w&&"bg-[#EAF5FF]"),style:{width:n,height:Vt},children:_}):p==="view"?y.jsx("div",{onClick:()=>l(r),onDoubleClick:()=>h("edit"),className:Q("relative flex h-7 shrink-0 cursor-default select-none border border-t-transparent border-l-transparent",w&&"bg-[#EAF5FF]"),style:{width:n,height:Vt},children:_}):y.jsx("div",{ref:x,"data-testid":"cell__testid",className:"relative h-7 w-32 shrink-0 border border-t-transparent border-l-transparent bg-[#EAF5FF] shadow-lg outline outline-2 outline-blue-500",style:{width:n,height:Vt,top:r.row===0?"4px":"0px"},children:y.jsx("div",{className:"h-full w-full outline outline-[3px] outline-sky-200 outline-offset-2",children:k})}):y.jsx(i.Fragment,{})}function Sf({row:e}){const{onSelectRow:t,pointRange:n,matrix:r}=De(),o=i.useMemo(()=>n&&e>=n.start.row&&e<=n.end.row,[n,e]),a=i.useMemo(()=>!!(n&&Os({matrix:r,pointRange:n,row:e})),[r,n,e]);return y.jsx("div",{className:Q("flex h-7 w-12 shrink-0 cursor-default select-none items-center justify-center border-r border-b text-[#8E8EA9] text-xs",o&&"bg-blue-100 font-bold text-blue-700",a&&"bg-[#0085FF] font-bold text-white"),onClick:s=>t(e,s),style:{height:Vt},children:e+1})}function _f(){const e=i.useId(),{highlightLastRow:t,matrix:n,columns:r}=De();return y.jsx("div",{className:"relative",children:n.map((o,a)=>y.jsxs("div",{className:Q("flex items-center transition-all ease-linear",a===n.length-1&&t&&"bg-blue-50"),children:[y.jsx(Sf,{row:a}),o.map((s,c)=>y.jsx(Ef,{value:s,coordinates:{column:c,row:a},width:r[c].state.width},`spreadsheet__cell__key__${e}__${a}__${c}`))]},`spreadsheet__row__key__${e}__${a}}`))})}function Tf({className:e}){const{staticRows:t,emptySize:n,onInsertNewRow:r}=De();return t?null:y.jsx("div",{className:Q("pointer-events-none mt-[calc(28px+36px)] flex h-[calc(100%-28px-28px)] w-full items-center justify-center",n&&"pointer-events-auto bg-white/25 backdrop-blur-sm",e),children:n&&y.jsxs("p",{className:"text-neutral-500",children:[y.jsx("span",{children:"Clique "}),y.jsx("button",{type:"button",onClick:r,className:"font-bold",children:"AQUI"}),y.jsx("span",{children:" para começar a preencher a tabela."})]})})}function Za(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Za(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function kf(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Za(e))&&(r&&(r+=" "),r+=t);return r}const Ja=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,Qa=kf,Pf=((e,t)=>n=>{var r;if(t?.variants==null)return Qa(e,n?.class,n?.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(u=>{const f=n?.[u],d=a?.[u];if(f===null)return null;const m=Ja(f)||Ja(d);return o[u][m]}),c=n&&Object.entries(n).reduce((u,f)=>{let[d,m]=f;return m===void 0||(u[d]=m),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:d,className:m,...v}=f;return Object.entries(v).every(p=>{let[h,x]=p;return Array.isArray(x)?x.includes({...a,...c}[h]):{...a,...c}[h]===x})?[...u,d,m]:u},[]);return Qa(e,s,l,n?.class,n?.className)})("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Pn=D.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const s=r?ct:"button";return y.jsx(s,{className:Q(Pf({variant:t,size:n,className:e})),ref:a,...o})});Pn.displayName="Button";const Er="rovingFocusGroup.onEntryFocus",Nf={bubbles:!1,cancelable:!0},Sr="RovingFocusGroup",[_r,ei,If]=ar(Sr),[Of,ti]=st(Sr,[If]),[Mf,Af]=Of(Sr),Df=i.forwardRef((e,t)=>i.createElement(_r.Provider,{scope:e.__scopeRovingFocusGroup},i.createElement(_r.Slot,{scope:e.__scopeRovingFocusGroup},i.createElement(jf,j({},e,{ref:t}))))),jf=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,...f}=e,d=i.useRef(null),m=ve(t,d),v=ir(a),[p=null,h]=Rt({prop:s,defaultProp:c,onChange:l}),[x,g]=i.useState(!1),w=Me(u),$=ei(n),C=i.useRef(!1),[E,O]=i.useState(0);return i.useEffect(()=>{const k=d.current;if(k)return k.addEventListener(Er,w),()=>k.removeEventListener(Er,w)},[w]),i.createElement(Mf,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:p,onItemFocus:i.useCallback(k=>h(k),[h]),onItemShiftTab:i.useCallback(()=>g(!0),[]),onFocusableItemAdd:i.useCallback(()=>O(k=>k+1),[]),onFocusableItemRemove:i.useCallback(()=>O(k=>k-1),[])},i.createElement(pe.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 z=new CustomEvent(Er,Nf);if(k.currentTarget.dispatchEvent(z),!z.defaultPrevented){const K=$().filter(R=>R.focusable),B=K.find(R=>R.active),P=K.find(R=>R.id===p),L=[B,P,...K].filter(Boolean).map(R=>R.ref.current);ni(L)}}C.current=!1}),onBlur:Y(e.onBlur,()=>g(!1))})))}),Lf="RovingFocusGroupItem",Ff=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...s}=e,c=wt(),l=a||c,u=Af(Lf,n),f=u.currentTabStopId===l,d=ei(n),{onFocusableItemAdd:m,onFocusableItemRemove:v}=u;return i.useEffect(()=>{if(r)return m(),()=>v()},[r,m,v]),i.createElement(_r.ItemSlot,{scope:n,id:l,focusable:r,active:o},i.createElement(pe.span,j({tabIndex:f?0:-1,"data-orientation":u.orientation},s,{ref:t,onMouseDown:Y(e.onMouseDown,p=>{r?u.onItemFocus(l):p.preventDefault()}),onFocus:Y(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Y(e.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){u.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const h=zf(p,u.orientation,u.dir);if(h!==void 0){p.preventDefault();let g=d().filter(w=>w.focusable).map(w=>w.ref.current);if(h==="last")g.reverse();else if(h==="prev"||h==="next"){h==="prev"&&g.reverse();const w=g.indexOf(p.currentTarget);g=u.loop?Wf(g,w+1):g.slice(w+1)}setTimeout(()=>ni(g))}})})))}),Vf={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Bf(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function zf(e,t,n){const r=Bf(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Vf[r]}function ni(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Wf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Rf=Df,Hf=Ff,Tr=["Enter"," "],Uf=["ArrowDown","PageUp","Home"],ri=["ArrowUp","PageDown","End"],Kf=[...Uf,...ri],Gf={ltr:[...Tr,"ArrowRight"],rtl:[...Tr,"ArrowLeft"]},Yf={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Nn="Menu",[Yt,Xf,qf]=ar(Nn),[pt,oi]=st(Nn,[qf,Et,ti]),kr=Et(),ai=ti(),[Zf,mt]=pt(Nn),[Jf,Xt]=pt(Nn),Qf=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,c=kr(t),[l,u]=i.useState(null),f=i.useRef(!1),d=Me(a),m=ir(o);return i.useEffect(()=>{const v=()=>{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",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",p,{capture:!0}),document.removeEventListener("pointermove",p,{capture:!0})}},[]),i.createElement(Jn,c,i.createElement(Zf,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u},i.createElement(Jf,{scope:t,onClose:i.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:m,modal:s},r)))},ii=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=kr(n);return i.createElement(Qn,j({},o,r,{ref:t}))}),si="MenuPortal",[ep,ci]=pt(si,{forceMount:void 0}),tp=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=mt(si,t);return i.createElement(ep,{scope:t,forceMount:n},i.createElement(St,{present:n||a.open},i.createElement(Wo,{asChild:!0,container:o},r)))},Ae="MenuContent",[np,Pr]=pt(Ae),rp=i.forwardRef((e,t)=>{const n=ci(Ae,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=mt(Ae,e.__scopeMenu),s=Xt(Ae,e.__scopeMenu);return i.createElement(Yt.Provider,{scope:e.__scopeMenu},i.createElement(St,{present:r||a.open},i.createElement(Yt.Slot,{scope:e.__scopeMenu},s.modal?i.createElement(op,j({},o,{ref:t})):i.createElement(ap,j({},o,{ref:t})))))}),op=i.forwardRef((e,t)=>{const n=mt(Ae,e.__scopeMenu),r=i.useRef(null),o=ve(t,r);return i.useEffect(()=>{const a=r.current;if(a)return ra(a)},[]),i.createElement(Nr,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)}))}),ap=i.forwardRef((e,t)=>{const n=mt(Ae,e.__scopeMenu);return i.createElement(Nr,j({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),Nr=i.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:m,onDismiss:v,disableOutsideScroll:p,...h}=e,x=mt(Ae,n),g=Xt(Ae,n),w=kr(n),$=ai(n),C=Xf(n),[E,O]=i.useState(null),k=i.useRef(null),_=ve(t,k,x.onContentChange),z=i.useRef(0),K=i.useRef(""),B=i.useRef(0),P=i.useRef(null),H=i.useRef("right"),L=i.useRef(0),R=p?hr:i.Fragment,M=p?{as:ct,allowPinchZoom:!0}:void 0,I=S=>{var F,W;const X=K.current+S,re=C().filter(oe=>!oe.disabled),be=document.activeElement,ge=(F=re.find(oe=>oe.ref.current===be))===null||F===void 0?void 0:F.textValue,de=re.map(oe=>oe.textValue),G=yp(de,X,ge),ee=(W=re.find(oe=>oe.textValue===G))===null||W===void 0?void 0:W.ref.current;(function oe(ne){K.current=ne,window.clearTimeout(z.current),ne!==""&&(z.current=window.setTimeout(()=>oe(""),1e3))})(X),ee&&setTimeout(()=>ee.focus())};i.useEffect(()=>()=>window.clearTimeout(z.current),[]),Yo();const N=i.useCallback(S=>{var F,W;return H.current===((F=P.current)===null||F===void 0?void 0:F.side)&&Cp(S,(W=P.current)===null||W===void 0?void 0:W.area)},[]);return i.createElement(np,{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:B,onPointerGraceIntentChange:i.useCallback(S=>{P.current=S},[])},i.createElement(R,M,i.createElement(Zo,{asChild:!0,trapped:o,onMountAutoFocus:Y(a,S=>{var F;S.preventDefault(),(F=k.current)===null||F===void 0||F.focus()}),onUnmountAutoFocus:s},i.createElement(Rn,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:m,onDismiss:v},i.createElement(Rf,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(er,j({role:"menu","aria-orientation":"vertical","data-state":mi(x.open),"data-radix-menu-content":"",dir:g.dir},w,h,{ref:_,style:{outline:"none",...h.style},onKeyDown:Y(h.onKeyDown,S=>{const W=S.target.closest("[data-radix-menu-content]")===S.currentTarget,X=S.ctrlKey||S.altKey||S.metaKey,re=S.key.length===1;W&&(S.key==="Tab"&&S.preventDefault(),!X&&re&&I(S.key));const be=k.current;if(S.target!==be||!Kf.includes(S.key))return;S.preventDefault();const de=C().filter(G=>!G.disabled).map(G=>G.ref.current);ri.includes(S.key)&&de.reverse(),wp(de)}),onBlur:Y(e.onBlur,S=>{S.currentTarget.contains(S.target)||(window.clearTimeout(z.current),K.current="")}),onPointerMove:Y(e.onPointerMove,qt(S=>{const F=S.target,W=L.current!==S.clientX;if(S.currentTarget.contains(F)&&W){const X=S.clientX>L.current?"right":"left";H.current=X,L.current=S.clientX}}))})))))))}),ip=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.createElement(pe.div,j({},r,{ref:t}))}),Ir="MenuItem",li="menu.itemSelect",Or=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=i.useRef(null),s=Xt(Ir,e.__scopeMenu),c=Pr(Ir,e.__scopeMenu),l=ve(t,a),u=i.useRef(!1),f=()=>{const d=a.current;if(!n&&d){const m=new CustomEvent(li,{bubbles:!0,cancelable:!0});d.addEventListener(li,v=>r?.(v),{once:!0}),po(d,m),m.defaultPrevented?u.current=!1:s.onClose()}};return i.createElement(ui,j({},o,{ref:l,disabled:n,onClick:Y(e.onClick,f),onPointerDown:d=>{var m;(m=e.onPointerDown)===null||m===void 0||m.call(e,d),u.current=!0},onPointerUp:Y(e.onPointerUp,d=>{var m;u.current||(m=d.currentTarget)===null||m===void 0||m.click()}),onKeyDown:Y(e.onKeyDown,d=>{const m=c.searchRef.current!=="";n||m&&d.key===" "||Tr.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})}))}),ui=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=Pr(Ir,n),c=ai(n),l=i.useRef(null),u=ve(t,l),[f,d]=i.useState(!1),[m,v]=i.useState("");return i.useEffect(()=>{const p=l.current;if(p){var h;v(((h=p.textContent)!==null&&h!==void 0?h:"").trim())}},[a.children]),i.createElement(Yt.ItemSlot,{scope:n,disabled:r,textValue:o??m},i.createElement(Hf,j({asChild:!0},c,{focusable:!r}),i.createElement(pe.div,j({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:u,onPointerMove:Y(e.onPointerMove,qt(p=>{r?s.onItemLeave(p):(s.onItemEnter(p),p.defaultPrevented||p.currentTarget.focus())})),onPointerLeave:Y(e.onPointerLeave,qt(p=>s.onItemLeave(p))),onFocus:Y(e.onFocus,()=>d(!0)),onBlur:Y(e.onBlur,()=>d(!1))}))))}),sp=i.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return i.createElement(fi,{scope:e.__scopeMenu,checked:n},i.createElement(Or,j({role:"menuitemcheckbox","aria-checked":On(n)?"mixed":n},o,{ref:t,"data-state":Mr(n),onSelect:Y(o.onSelect,()=>r?.(On(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),cp="MenuRadioGroup",[Vm,lp]=pt(cp,{value:void 0,onValueChange:()=>{}}),up="MenuRadioItem",dp=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=lp(up,e.__scopeMenu),a=n===o.value;return i.createElement(fi,{scope:e.__scopeMenu,checked:a},i.createElement(Or,j({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":Mr(a),onSelect:Y(r.onSelect,()=>{var s;return(s=o.onValueChange)===null||s===void 0?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})))}),di="MenuItemIndicator",[fi,fp]=pt(di,{checked:!1}),pp=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=fp(di,n);return i.createElement(St,{present:r||On(a.checked)||a.checked===!0},i.createElement(pe.span,j({},o,{ref:t,"data-state":Mr(a.checked)})))}),mp=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.createElement(pe.div,j({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),hp="MenuSub",[Bm,pi]=pt(hp),In="MenuSubTrigger",vp=i.forwardRef((e,t)=>{const n=mt(In,e.__scopeMenu),r=Xt(In,e.__scopeMenu),o=pi(In,e.__scopeMenu),a=Pr(In,e.__scopeMenu),s=i.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=a,u={__scopeMenu:e.__scopeMenu},f=i.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return i.useEffect(()=>f,[f]),i.useEffect(()=>{const d=c.current;return()=>{window.clearTimeout(d),l(null)}},[c,l]),i.createElement(ii,j({asChild:!0},u),i.createElement(ui,j({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":mi(n.open)},e,{ref:en(t,o.onTriggerChange),onClick:d=>{var m;(m=e.onClick)===null||m===void 0||m.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Y(e.onPointerMove,qt(d=>{a.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:Y(e.onPointerLeave,qt(d=>{var m;f();const v=(m=n.content)===null||m===void 0?void 0:m.getBoundingClientRect();if(v){var p;const h=(p=n.content)===null||p===void 0?void 0:p.dataset.side,x=h==="right",g=x?-5:5,w=v[x?"left":"right"],$=v[x?"right":"left"];a.onPointerGraceIntentChange({area:[{x:d.clientX+g,y:d.clientY},{x:w,y:v.top},{x:$,y:v.top},{x:$,y:v.bottom},{x:w,y:v.bottom}],side:h}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(d),d.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:Y(e.onKeyDown,d=>{const m=a.searchRef.current!=="";if(!(e.disabled||m&&d.key===" ")&&Gf[r.dir].includes(d.key)){var v;n.onOpenChange(!0),(v=n.content)===null||v===void 0||v.focus(),d.preventDefault()}})})))}),gp="MenuSubContent",bp=i.forwardRef((e,t)=>{const n=ci(Ae,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=mt(Ae,e.__scopeMenu),s=Xt(Ae,e.__scopeMenu),c=pi(gp,e.__scopeMenu),l=i.useRef(null),u=ve(t,l);return i.createElement(Yt.Provider,{scope:e.__scopeMenu},i.createElement(St,{present:r||a.open},i.createElement(Yt.Slot,{scope:e.__scopeMenu},i.createElement(Nr,j({id:c.contentId,"aria-labelledby":c.triggerId},o,{ref:u,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var d;s.isUsingKeyboardRef.current&&((d=l.current)===null||d===void 0||d.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:Y(e.onFocusOutside,f=>{f.target!==c.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:Y(e.onEscapeKeyDown,f=>{s.onClose(),f.preventDefault()}),onKeyDown:Y(e.onKeyDown,f=>{const d=f.currentTarget.contains(f.target),m=Yf[s.dir].includes(f.key);if(d&&m){var v;a.onOpenChange(!1),(v=c.trigger)===null||v===void 0||v.focus(),f.preventDefault()}})})))))});function mi(e){return e?"open":"closed"}function On(e){return e==="indeterminate"}function Mr(e){return On(e)?"indeterminate":e?"checked":"unchecked"}function wp(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function xp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function yp(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=xp(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==n));const l=s.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function $p(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const c=t[a].x,l=t[a].y,u=t[s].x,f=t[s].y;l>r!=f>r&&n<(u-c)*(r-l)/(f-l)+c&&(o=!o)}return o}function Cp(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return $p(n,t)}function qt(e){return t=>t.pointerType==="mouse"?e(t):void 0}const Ep=Qf,Sp=ii,_p=tp,Tp=rp,kp=ip,Pp=Or,Np=sp,Ip=dp,Op=pp,Mp=mp,Ap=vp,Dp=bp,hi="DropdownMenu",[jp,zm]=st(hi,[oi]),Ie=oi(),[Lp,vi]=jp(hi),Fp=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:c=!0}=e,l=Ie(t),u=i.useRef(null),[f=!1,d]=Rt({prop:o,defaultProp:a,onChange:s});return i.createElement(Lp,{scope:t,triggerId:wt(),triggerRef:u,contentId:wt(),open:f,onOpenChange:d,onOpenToggle:i.useCallback(()=>d(m=>!m),[d]),modal:c},i.createElement(Ep,j({},l,{open:f,onOpenChange:d,dir:r,modal:c}),n))},Vp="DropdownMenuTrigger",Bp=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=vi(Vp,n),s=Ie(n);return i.createElement(Sp,j({asChild:!0},s),i.createElement(pe.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:en(t,a.triggerRef),onPointerDown:Y(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(a.onOpenToggle(),a.open||c.preventDefault())}),onKeyDown:Y(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&a.onOpenToggle(),c.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})))}),zp=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Ie(t);return i.createElement(_p,j({},r,n))},Wp="DropdownMenuContent",Rp=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=vi(Wp,n),a=Ie(n),s=i.useRef(!1);return i.createElement(Tp,j({id:o.contentId,"aria-labelledby":o.triggerId},a,r,{ref:t,onCloseAutoFocus:Y(e.onCloseAutoFocus,c=>{var l;s.current||(l=o.triggerRef.current)===null||l===void 0||l.focus(),s.current=!1,c.preventDefault()}),onInteractOutside:Y(e.onInteractOutside,c=>{const l=c.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,f=l.button===2||u;(!o.modal||f)&&(s.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)"}}))}),Hp=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(kp,j({},o,r,{ref:t}))}),Up=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(Pp,j({},o,r,{ref:t}))}),Kp=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(Np,j({},o,r,{ref:t}))}),Gp=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(Ip,j({},o,r,{ref:t}))}),Yp=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(Op,j({},o,r,{ref:t}))}),Xp=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(Mp,j({},o,r,{ref:t}))}),qp=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(Ap,j({},o,r,{ref:t}))}),Zp=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ie(n);return i.createElement(Dp,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)"}}))}),Jp=Fp,Qp=Bp,em=zp,gi=Rp,bi=Hp,wi=Up,xi=Kp,yi=Gp,$i=Yp,Ci=Xp,Ei=qp,Si=Zp,tm=Jp,nm=Qp,rm=D.forwardRef(({className:e,inset:t,children:n,...r},o)=>y.jsxs(Ei,{ref:o,className:Q("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",t&&"pl-8",e),...r,children:[n,y.jsx(qs,{className:"ml-auto h-4 w-4"})]}));rm.displayName=Ei.displayName;const om=D.forwardRef(({className:e,...t},n)=>y.jsx(Si,{ref:n,className:Q("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in",e),...t}));om.displayName=Si.displayName;const _i=D.forwardRef(({className:e,sideOffset:t=4,...n},r)=>y.jsx(em,{children:y.jsx(gi,{ref:r,sideOffset:t,className:Q("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=open]:animate-in",e),...n})}));_i.displayName=gi.displayName;const Ti=D.forwardRef(({className:e,inset:t,...n},r)=>y.jsx(wi,{ref:r,className:Q("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50",t&&"pl-8",e),...n}));Ti.displayName=wi.displayName;const ki=D.forwardRef(({className:e,children:t,checked:n,...r},o)=>y.jsxs(xi,{ref:o,className:Q("relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none transition-colors data-[disabled]:pointer-events-none focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50",e),checked:n,...r,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx($i,{children:y.jsx(co,{className:"h-4 w-4"})})}),t]}));ki.displayName=xi.displayName;const am=D.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(yi,{ref:r,className:Q("relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none transition-colors data-[disabled]:pointer-events-none focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50",e),...n,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx($i,{children:y.jsx(ec,{className:"h-4 w-4 fill-current"})})}),t]}));am.displayName=yi.displayName;const im=D.forwardRef(({className:e,inset:t,...n},r)=>y.jsx(bi,{ref:r,className:Q("px-2 py-1.5 font-semibold text-sm",t&&"pl-8",e),...n}));im.displayName=bi.displayName;const sm=D.forwardRef(({className:e,...t},n)=>y.jsx(Ci,{ref:n,className:Q("-mx-1 my-1 h-px bg-muted",e),...t}));sm.displayName=Ci.displayName;function cm(e){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20",...e,children:[y.jsx("title",{children:"Add Row"}),y.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M10 6.667v6.666M6.667 10h6.666M6.5 17.5h7c1.4 0 2.1 0 2.635-.273a2.5 2.5 0 001.092-1.092c.273-.535.273-1.235.273-2.635v-7c0-1.4 0-2.1-.273-2.635a2.5 2.5 0 00-1.092-1.093C15.6 2.5 14.9 2.5 13.5 2.5h-7c-1.4 0-2.1 0-2.635.272a2.5 2.5 0 00-1.093 1.093C2.5 4.4 2.5 5.1 2.5 6.5v7c0 1.4 0 2.1.272 2.635a2.5 2.5 0 001.093 1.092C4.4 17.5 5.1 17.5 6.5 17.5z"})]})}function lm(e){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20",...e,children:[y.jsx("title",{children:"Remove Row"}),y.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M13.333 5v-.667c0-.933 0-1.4-.181-1.756a1.667 1.667 0 00-.729-.729c-.356-.181-.823-.181-1.756-.181H9.333c-.933 0-1.4 0-1.756.181-.314.16-.569.415-.729.729-.181.356-.181.823-.181 1.756V5m1.666 4.583v4.167m3.334-4.167v4.167M2.5 5h15m-1.667 0v9.333c0 1.4 0 2.1-.272 2.635a2.5 2.5 0 01-1.093 1.093c-.534.272-1.235.272-2.635.272H8.167c-1.4 0-2.1 0-2.635-.272a2.5 2.5 0 01-1.093-1.093c-.272-.535-.272-1.235-.272-2.635V5"})]})}function um(){const{hasSomeEntireRow:e,emptySize:t,staticRows:n,columns:r,onInsertNewRow:o,onRemoveRow:a,onColumnVisibilityChange:s,onRestoreColumnsVisibility:c}=De(),l=i.useMemo(()=>r.filter(({state:v})=>v.visible),[r]),u=i.useMemo(()=>r.length===l.length,[r.length,l.length]),f="Exibindo todas as colunas",d=`Exibindo ${l.length} de ${r.length} colunas`,m=u?f:d;return y.jsxs("div",{className:"sticky top-0 z-50 flex w-full items-center justify-between rounded-t-md border bg-[#EAF5FF] px-4 py-2.5",children:[y.jsxs("div",{className:"flex items-center gap-6",children:[y.jsx(pn,{delayDuration:25,children:y.jsxs(mn,{children:[y.jsx(hn,{asChild:!0,children:y.jsx(Pn,{disabled:n,size:"icon",variant:"ghost",onClick:o,className:"text-[#4A4A6A] transition-none active:bg-[#0085FF] hover:bg-[#8FD6FF] active:text-white","data-cypress":"table-add-new-row",children:y.jsx(cm,{})})}),y.jsx(Ut,{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(Pn,{disabled:n||t||!e,size:"icon",variant:"ghost",onClick:a,className:"text-[#4A4A6A] transition-none active:bg-[#0085FF] hover:bg-[#8FD6FF] active:text-white","data-cypress":"table-delete-selected-row",children:y.jsx(lm,{})})}),y.jsx(Ut,{children:y.jsx("p",{children:"Excluir linha(s)"})})]})})]}),y.jsx("div",{className:"flex items-center gap-4",children:y.jsxs(tm,{children:[y.jsx(nm,{"data-cypress":"table-hide-columns-button",asChild:!0,className:"w-56 bg-white",children:y.jsxs(Pn,{variant:"outline",className:"justify-between px-2",children:[y.jsx("span",{className:"text-xs",children:m}),y.jsx(lc,{className:"h-4 w-4"})]})}),y.jsxs(_i,{className:"w-56",children:[y.jsx(Ti,{onClick:c,className:"justify-between text-xs","data-cypress":"table-restore-columns",children:y.jsx("span",{children:"Reexibir todas as colunas"})}),r.map(({name:v,id:p,alphabetLetter:h,position:x,state:g})=>y.jsxs(ki,{checked:g.visible,onCheckedChange:w=>s({columnId:p,visible:w}),onSelect:w=>w.preventDefault(),className:"justify-between text-xs","data-cypress":`table-hide-column-${p}`,children:[y.jsx("span",{children:v}),y.jsx("span",{className:"text-[10px] text-neutral-500",children:h})]},`spreadsheet__column__dropdown_checkbox__key__${p}__${x}`))]})]})})]})}function dm(e){const{className:t,...n}=e;return y.jsx(Ds,{...n,children:y.jsxs(so.Root,{className:Q(t,"h-full"),children:[y.jsx(um,{}),y.jsxs(so.Matrix,{className:"scrollbar-thin overflow-y-clip overflow-x-scroll",children:[y.jsx(Tf,{className:"absolute z-50"}),y.jsx(ru,{}),y.jsx(_f,{})]})]})})}const fm={Spreadsheet:dm};Ke.CapLink=fm,Object.defineProperty(Ke,Symbol.toStringTag,{value:"Module"})});
138
+ `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function wf(e){e=bf(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;o===void 0&&(o=ot);var a=e.onBlur;a===void 0&&(a=ot);var s=e.thousandSeparator,c=e.decimalScale,l=e.fixedDecimalScale,d=e.prefix;d===void 0&&(d="");var f=e.defaultValue,u=e.value,m=e.valueIsNumericString,v=e.onValueChange,p=Fa(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),h=Pn(e),x=h.decimalSeparator,g=h.allowedDecimalSeparators,w=function(I){return Ya(I,e)},$=function(I,O){return vf(I,O,e)},C=Mt(u)?f:u,E=m??hf(C,d,t);Mt(u)?Mt(f)||(E=E||typeof f=="number"):E=E||typeof u=="number";var M=function(I){return Va(I)?I:(typeof I=="number"&&(I=Ra(I)),E&&typeof c=="number"?Ha(I,c,!!l):I)},k=Ga(M(u),M(f),!!E,w,$,v),_=k[0],z=_.numAsString,R=_.formattedValue,L=k[1],P=function(I){var O=I.target,N=I.key,S=O.selectionStart,V=O.selectionEnd,W=O.value;if(W===void 0&&(W=""),S!==V){o(I);return}N==="Backspace"&&W[0]==="-"&&S===d.length+1&&n&&ft(O,1),c&&l&&(N==="Backspace"&&W[S-1]===x?(ft(O,S-1),I.preventDefault()):N==="Delete"&&W[S]===x&&I.preventDefault()),g?.includes(N)&&W[S]===x&&ft(O,S+1);var X=s===!0?",":s;N==="Backspace"&&W[S-1]===X&&ft(O,S-1),N==="Delete"&&W[S]===X&&ft(O,S+1),o(I)},U=function(I){var O=z;if(O.match(/\d/g)||(O=""),r||(O=nf(O)),l&&c&&(O=Ha(O,c,l)),O!==z){var N=Ya(O,e);L({formattedValue:N,value:O,floatValue:parseFloat(O)},{event:I,source:Gt.event})}a(I)},F=function(I){return I===x?!0:Yt(I)},H=function(I){var O=I.currentValue,N=I.lastValue,S=I.formattedValue,V=I.currentValueIndex,W=I.formattedValueIndex,X=O[V],oe=S[W],be=Ua(N,O),ge=be.to;return V>=ge.start&&V<ge.end&&g&&g.includes(X)&&oe===x?!0:X===oe};return Object.assign(Object.assign({},p),{value:R,valueIsNumericString:!1,isValidInputCharacter:F,isCharacterSame:H,onValueChange:L,format:w,removeFormatting:$,getCaretBoundary:function(I){return gf(I,e)},onKeyDown:P,onBlur:U})}function xf(e){var t=wf(e);return i.createElement(ff,Object.assign({},t))}function yf(e,t){const{className:n,dataEditorType:r,onFocus:o,onBlur:a,onChange:s,onClick:c,onPaste:l,settings:d,testid:f,value:u,disabled:m,dataCypress:v,tabIndex:p,...h}=e,x=".",g=",",w=Cf({dataEditorType:r,decimalScale:d?.numeric?.decimalScale}),$=d?.numeric?.allowNegative,C=d?.numeric?.min,E=d?.numeric?.max,M=r==="Currency"?"R$ ":"",k=r==="Percentage"?"%":"",[_,z]=i.useState(u),R=i.useCallback(P=>{const U=Number(P);if(P==="")return;let F=U;return typeof C=="number"&&U<C&&(F=C),typeof E=="number"&&U>E&&(F=E),F??""},[C,E]),L=i.useCallback(({value:P})=>{const U=R(P||"");s?.(U),z(U)},[s,R]);return i.useEffect(()=>{const P=R(u);z(P)},[u,R]),y.jsx(xf,{...h,getInputRef:t,tabIndex:p,value:_,onPaste:l,prefix:M,suffix:k,fixedDecimalScale:!0,onBlur:a,"data-testid":f,valueIsNumericString:!0,onFocus:o,onClick:c,decimalScale:w,onValueChange:L,allowNegative:$,decimalSeparator:g,thousandSeparator:x,className:ee("h-full w-full rounded-none bg-transparent pl-1 text-xs outline-none",n),disabled:m,"data-cypress":v,autoFocus:!0})}const $f=2;function Cf(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 Xa=i.forwardRef(yf);function Ef(e){const{mode:t,value:n,onBlur:r,onChange:o,onPaste:a,setMode:s,column:c,coordinates:l}=e,d=i.useRef(null),f=i.useCallback(m=>{m.preventDefault(),a?.()},[a]),u=i.useCallback(()=>{r?.(),s?.("view")},[r,s]);return Er(d),y.jsx(Xa,{ref:d,dataEditorType:c.dataEditorType,value:n,onPaste:f,onBlur:u,onChange:m=>o?.({data:m}),settings:c.settings,dataCypress:`table-cell-numeric-${c.id}-${l.row}`,"aria-readonly":t==="readonly"})}function Sf(e){const{mode:t,value:n,column:r,coordinates:o}=e;return y.jsx(Xa,{dataEditorType:r.dataEditorType,value:n,settings:r.settings,disabled:!0,className:"pointer-events-none",dataCypress:`table-cell-numeric-${r.id}-${o.row}`,"aria-readonly":t==="readonly"})}function _f(e){const{mode:t,value:n,onChange:r,onPaste:o,items:a,setMode:s,coordinates:c,column:l}=e,[d,f]=so(!0),u=i.useCallback(p=>{p.preventDefault(),o?.()},[o]),m=i.useCallback(()=>{d||(s?.("view"),f(!1))},[s,f,d]),v=i.useCallback(p=>{r?.({data:p}),m()},[r,m]);return y.jsxs(Aa,{value:n,open:d,onOpenChange:f,onValueChange:v,children:[y.jsx($r,{onBlur:m,onPaste:u,className:ee("h-full w-full rounded-none border-none pl-1 text-xs outline-none focus:ring-0"),"data-cypress":`table-cell-select-${l.id}-${c.row}`,"aria-readonly":t==="readonly",children:y.jsx(Da,{placeholder:"Selecionar"})}),y.jsx(Cr,{onBlur:m,children:a.map(({value:p,text:h})=>y.jsx(kn,{"data-cypress":`table-cell-select-${l.id}-${c.row}-${p}`,className:"min-h-[24px] text-xs",value:p,children:h},p))})]})}function Tf(e){const{mode:t,value:n,items:r,coordinates:o,column:a}=e,s=i.useMemo(()=>r.find(l=>l.value===n),[r,n]),c=i.useMemo(()=>s?s.text:"Selecionar",[s]);return y.jsxs("div",{className:"flex h-full w-full items-center justify-between pr-px pl-1","data-cypress":`table-cell-select-${a.id}-${o.row}`,"aria-readonly":t==="readonly",children:[y.jsx("p",{className:"line-clamp-1 text-xs",children:c}),y.jsx(zn,{className:"h-4 w-4 opacity-50"})]})}function kf(e){e.selectionStart=e.selectionEnd=e.value.length}const Pf="text/plain";function Nf(e){return window.clipboardData?.getData?window.clipboardData.getData("Text"):e.clipboardData?.getData?e.clipboardData.getData(Pf):""}function Of(e){return[" ",`
139
+ `,"\r"].every(t=>!e.includes(t))}function qa(e,t){return to(e)>t-4}const Za=200;function If(e){const{mode:t,width:n,value:r,onBlur:o,onChange:a,onPaste:s,setMode:c,column:l,selected:d,coordinates:f}=e,u=r,m=i.useRef(null),v=i.useRef(null),[p,h]=i.useState(0),x=i.useMemo(()=>qa(u,n),[u,n]),g=i.useCallback(()=>{const E=v.current;if(!E)return;const M=E.scrollHeight;E.style.height=`${M}px`,h(M)},[]),w=i.useCallback(E=>{const M=Nf(E);Of(M)||(E.preventDefault(),s?.()),g()},[s,g]),$=i.useCallback(()=>{o?.(),c?.("view")},[o,c]),C=i.useCallback(E=>{a?.({data:E.target.value}),g()},[g,a]);return i.useEffect(()=>{g()},[g]),Er(m),Er(v),x?y.jsx("div",{style:{height:p||"fit-content"},className:ee("-left-0.5 -top-0.5 absolute z-40 h-fit w-fit border bg-white shadow-lg outline outline-2 outline-blue-500",d?"bg-blue-50":"bg-white"),children:y.jsx("div",{style:{height:p-1},className:"h-full w-full outline outline-[3px] outline-sky-200 outline-offset-2",children:y.jsx("textarea",{ref:v,onBlur:$,onPaste:w,value:u,onChange:C,className:ee("h-fit resize-none break-all rounded-none bg-transparent py-1.5 pr-3 pl-1 text-xs outline-none"),onFocus:E=>kf(E.target),maxLength:Za,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:Za,onChange:C,className:ee("h-full w-full bg-transparent pl-1 text-xs outline-none"),"data-cypress":`table-cell-string-${l.id}-${f.row}`,"aria-readonly":t==="readonly",autoFocus:!0})}function Mf(e){const{mode:t,value:n,column:r,width:o,selected:a,coordinates:s}=e,c=n;return i.useMemo(()=>qa(c,o),[c,o])?y.jsx(pn,{delayDuration:0,children:y.jsxs(mn,{children:[y.jsx(hn,{className:"w-full",children:y.jsx("div",{className:"flex h-full w-full items-center overflow-hidden","aria-readonly":t==="readonly","data-cypress":`table-cell-string-${r.id}-${s.row}`,children:y.jsx("p",{className:"line-clamp-1 break-all pl-1 text-left text-xs",children:c})})}),y.jsx(Kt,{align:"start",side:"bottom",alignOffset:-2,sideOffset:-Bt,className:ee("h-fit w-full break-all rounded-none border bg-white pl-1 text-black shadow-lg","data-[state=closed]:transform-none data-[side=bottom]:animate-none data-[state=closed]:animate-none data-[state=closed]:transition-none",a?"bg-blue-50":"bg-white"),style:{width:o},children:y.jsx("p",{"data-cypress":`table-cell-string-tooltip-${r.id}-${s.row}`,children:c})})]})}):y.jsx("div",{className:"flex h-full w-full items-center overflow-hidden","data-cypress":`table-cell-string-${r.id}-${s.row}`,"aria-readonly":t==="readonly",children:y.jsx("p",{className:"line-clamp-1 break-all pl-1 text-left text-xs",title:c,children:c})})}const He={Date:Yu,Text:If,Boolean:Ku,Numeric:Ef,Select:_f},Ue={Date:Xu,Text:Mf,Boolean:Gu,Numeric:Sf,Select:Tf},Af=["Boolean","Select"];function Df(e){const{value:t,width:n,coordinates:r}=e,{columns:o,isCellSelected:a,onChange:s,onPaste:c,onSelectCell:l}=De(),{dataEditorType:d,state:f,settings:u}=o[r.column],{readonly:m,visible:v}=f,[p,h]=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:h,selected:w,mode:p,width:n,onPaste:()=>c(r),onChange:({data:R})=>s({data:R,point:r})},dataViewer:{coordinates:r,value:t,column:g,width:n,selected:w,mode:p}}),[r,n,p,t,g,w,c,s,r]),E=i.useMemo(()=>({Date:y.jsx(He.Date,{...C.dataEditor}),String:y.jsx(He.Text,{...C.dataEditor}),Currency:y.jsx(He.Numeric,{...C.dataEditor}),Decimal:y.jsx(He.Numeric,{...C.dataEditor}),Float:y.jsx(He.Numeric,{...C.dataEditor}),Integer:y.jsx(He.Numeric,{...C.dataEditor}),Percentage:y.jsx(He.Numeric,{...C.dataEditor}),Boolean:y.jsx(He.Boolean,{...C.dataEditor}),Select:y.jsx(He.Select,{...C.dataEditor,items:$})}),[C.dataEditor,$]),M=i.useMemo(()=>({Date:y.jsx(Ue.Date,{...C.dataViewer}),String:y.jsx(Ue.Text,{...C.dataViewer}),Currency:y.jsx(Ue.Numeric,{...C.dataViewer}),Decimal:y.jsx(Ue.Numeric,{...C.dataViewer}),Float:y.jsx(Ue.Numeric,{...C.dataViewer}),Integer:y.jsx(Ue.Numeric,{...C.dataViewer}),Percentage:y.jsx(Ue.Numeric,{...C.dataViewer}),Boolean:y.jsx(Ue.Boolean,{...C.dataViewer}),Select:y.jsx(Ue.Select,{...C.dataViewer,items:$})}),[C.dataViewer,$]),k=i.useMemo(()=>d?E[d]:null,[d,E]),_=i.useMemo(()=>d?M[d]:null,[d,M]),z=i.useCallback(()=>{Af.includes(d)||h("view")},[d]);return i.useEffect(()=>{const R=L=>{const P=L.code==="Enter";P&&w&&p==="view"&&h("edit"),P&&w&&p==="edit"&&h("view")};return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[w,p]),co(x,z),i.useEffect(()=>{h(m?"readonly":"view")},[m]),v?p==="readonly"?y.jsx("div",{onClick:()=>l(r),className:ee("flex h-7 shrink-0 cursor-default select-none border border-t-transparent border-l-transparent bg-[#F6F6F9]",w&&"bg-[#EAF5FF]"),style:{width:n,height:Bt},children:_}):p==="view"?y.jsx("div",{onClick:()=>l(r),onDoubleClick:()=>h("edit"),className:ee("relative flex h-7 shrink-0 cursor-default select-none border border-t-transparent border-l-transparent",w&&"bg-[#EAF5FF]"),style:{width:n,height:Bt},children:_}):y.jsx("div",{ref:x,"data-testid":"cell__testid",className:"relative h-7 w-32 shrink-0 border border-t-transparent border-l-transparent bg-[#EAF5FF] shadow-lg outline outline-2 outline-blue-500",style:{width:n,height:Bt,top:r.row===0?"4px":"0px"},children:y.jsx("div",{className:"h-full w-full outline outline-[3px] outline-sky-200 outline-offset-2",children:k})}):y.jsx(i.Fragment,{})}function jf({row:e}){const{onSelectRow:t,pointRange:n,matrix:r}=De(),o=i.useMemo(()=>n&&e>=n.start.row&&e<=n.end.row,[n,e]),a=i.useMemo(()=>!!(n&&Ms({matrix:r,pointRange:n,row:e})),[r,n,e]);return y.jsx("div",{className:ee("flex h-7 w-12 shrink-0 cursor-default select-none items-center justify-center border-r border-b text-[#8E8EA9] text-xs",o&&"bg-blue-100 font-bold text-blue-700",a&&"bg-[#0085FF] font-bold text-white"),onClick:s=>t(e,s),style:{height:Bt},children:e+1})}function Lf(){const e=i.useId(),{highlightLastRow:t,matrix:n,columns:r}=De();return y.jsx("div",{className:"relative",children:n.map((o,a)=>y.jsxs("div",{className:ee("flex items-center transition-all ease-linear",a===n.length-1&&t&&"bg-blue-50"),children:[y.jsx(jf,{row:a}),o.map((s,c)=>y.jsx(Df,{value:s,coordinates:{column:c,row:a},width:r[c].state.width},`spreadsheet__cell__key__${e}__${a}__${c}`))]},`spreadsheet__row__key__${e}__${a}}`))})}function Ff({className:e}){const{staticRows:t,emptySize:n,onInsertNewRow:r}=De();return t?null:y.jsx("div",{className:ee("pointer-events-none mt-[calc(28px+36px)] flex h-[calc(100%-28px-28px)] w-full items-center justify-center",n&&"pointer-events-auto bg-white/25 backdrop-blur-sm",e),children:n&&y.jsxs("p",{className:"text-neutral-500",children:[y.jsx("span",{children:"Clique "}),y.jsx("button",{type:"button",onClick:r,className:"font-bold",children:"AQUI"}),y.jsx("span",{children:" para começar a preencher a tabela."})]})})}function Ja(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ja(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Vf(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ja(e))&&(r&&(r+=" "),r+=t);return r}const Qa=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,ei=Vf,Bf=((e,t)=>n=>{var r;if(t?.variants==null)return ei(e,n?.class,n?.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(d=>{const f=n?.[d],u=a?.[d];if(f===null)return null;const m=Qa(f)||Qa(u);return o[d][m]}),c=n&&Object.entries(n).reduce((d,f)=>{let[u,m]=f;return m===void 0||(d[u]=m),d},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:u,className:m,...v}=f;return Object.entries(v).every(p=>{let[h,x]=p;return Array.isArray(x)?x.includes({...a,...c}[h]):{...a,...c}[h]===x})?[...d,u,m]:d},[]);return ei(e,s,l,n?.class,n?.className)})("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Nn=D.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const s=r?ct:"button";return y.jsx(s,{className:ee(Bf({variant:t,size:n,className:e})),ref:a,...o})});Nn.displayName="Button";const Tr="rovingFocusGroup.onEntryFocus",zf={bubbles:!1,cancelable:!0},kr="RovingFocusGroup",[Pr,ti,Wf]=cr(kr),[Rf,ni]=st(kr,[Wf]),[Hf,Uf]=Rf(kr),Kf=i.forwardRef((e,t)=>i.createElement(Pr.Provider,{scope:e.__scopeRovingFocusGroup},i.createElement(Pr.Slot,{scope:e.__scopeRovingFocusGroup},i.createElement(Gf,j({},e,{ref:t}))))),Gf=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:d,...f}=e,u=i.useRef(null),m=ve(t,u),v=lr(a),[p=null,h]=Ht({prop:s,defaultProp:c,onChange:l}),[x,g]=i.useState(!1),w=Ie(d),$=ti(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(Hf,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:p,onItemFocus:i.useCallback(k=>h(k),[h]),onItemShiftTab:i.useCallback(()=>g(!0),[]),onFocusableItemAdd:i.useCallback(()=>M(k=>k+1),[]),onFocusableItemRemove:i.useCallback(()=>M(k=>k-1),[])},i.createElement(pe.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 z=new CustomEvent(Tr,zf);if(k.currentTarget.dispatchEvent(z),!z.defaultPrevented){const R=$().filter(H=>H.focusable),L=R.find(H=>H.active),P=R.find(H=>H.id===p),F=[L,P,...R].filter(Boolean).map(H=>H.ref.current);ri(F)}}C.current=!1}),onBlur:Y(e.onBlur,()=>g(!1))})))}),Yf="RovingFocusGroupItem",Xf=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...s}=e,c=wt(),l=a||c,d=Uf(Yf,n),f=d.currentTabStopId===l,u=ti(n),{onFocusableItemAdd:m,onFocusableItemRemove:v}=d;return i.useEffect(()=>{if(r)return m(),()=>v()},[r,m,v]),i.createElement(Pr.ItemSlot,{scope:n,id:l,focusable:r,active:o},i.createElement(pe.span,j({tabIndex:f?0:-1,"data-orientation":d.orientation},s,{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 h=Jf(p,d.orientation,d.dir);if(h!==void 0){p.preventDefault();let g=u().filter(w=>w.focusable).map(w=>w.ref.current);if(h==="last")g.reverse();else if(h==="prev"||h==="next"){h==="prev"&&g.reverse();const w=g.indexOf(p.currentTarget);g=d.loop?Qf(g,w+1):g.slice(w+1)}setTimeout(()=>ri(g))}})})))}),qf={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Zf(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Jf(e,t,n){const r=Zf(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return qf[r]}function ri(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Qf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const ep=Kf,tp=Xf,Nr=["Enter"," "],np=["ArrowDown","PageUp","Home"],oi=["ArrowUp","PageDown","End"],rp=[...np,...oi],op={ltr:[...Nr,"ArrowRight"],rtl:[...Nr,"ArrowLeft"]},ap={ltr:["ArrowLeft"],rtl:["ArrowRight"]},On="Menu",[Xt,ip,sp]=cr(On),[pt,ai]=st(On,[sp,St,ni]),Or=St(),ii=ni(),[cp,mt]=pt(On),[lp,qt]=pt(On),dp=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,c=Or(t),[l,d]=i.useState(null),f=i.useRef(!1),u=Ie(a),m=lr(o);return i.useEffect(()=>{const v=()=>{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",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",p,{capture:!0}),document.removeEventListener("pointermove",p,{capture:!0})}},[]),i.createElement(tr,c,i.createElement(cp,{scope:t,open:n,onOpenChange:u,content:l,onContentChange:d},i.createElement(lp,{scope:t,onClose:i.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:f,dir:m,modal:s},r)))},si=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Or(n);return i.createElement(nr,j({},o,r,{ref:t}))}),ci="MenuPortal",[up,li]=pt(ci,{forceMount:void 0}),fp=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=mt(ci,t);return i.createElement(up,{scope:t,forceMount:n},i.createElement(_t,{present:n||a.open},i.createElement(Ro,{asChild:!0,container:o},r)))},Ae="MenuContent",[pp,Ir]=pt(Ae),mp=i.forwardRef((e,t)=>{const n=li(Ae,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=mt(Ae,e.__scopeMenu),s=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},s.modal?i.createElement(hp,j({},o,{ref:t})):i.createElement(vp,j({},o,{ref:t})))))}),hp=i.forwardRef((e,t)=>{const n=mt(Ae,e.__scopeMenu),r=i.useRef(null),o=ve(t,r);return i.useEffect(()=>{const a=r.current;if(a)return oa(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)}))}),vp=i.forwardRef((e,t)=>{const n=mt(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:s,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:u,onInteractOutside:m,onDismiss:v,disableOutsideScroll:p,...h}=e,x=mt(Ae,n),g=qt(Ae,n),w=Or(n),$=ii(n),C=ip(n),[E,M]=i.useState(null),k=i.useRef(null),_=ve(t,k,x.onContentChange),z=i.useRef(0),R=i.useRef(""),L=i.useRef(0),P=i.useRef(null),U=i.useRef("right"),F=i.useRef(0),H=p?br:i.Fragment,I=p?{as:ct,allowPinchZoom:!0}:void 0,O=S=>{var V,W;const X=R.current+S,oe=C().filter(ne=>!ne.disabled),be=document.activeElement,ge=(V=oe.find(ne=>ne.ref.current===be))===null||V===void 0?void 0:V.textValue,de=oe.map(ne=>ne.textValue),G=Ip(de,X,ge),Q=(W=oe.find(ne=>ne.textValue===G))===null||W===void 0?void 0:W.ref.current;(function ne(te){R.current=te,window.clearTimeout(z.current),te!==""&&(z.current=window.setTimeout(()=>ne(""),1e3))})(X),Q&&setTimeout(()=>Q.focus())};i.useEffect(()=>()=>window.clearTimeout(z.current),[]),Xo();const N=i.useCallback(S=>{var V,W;return U.current===((V=P.current)===null||V===void 0?void 0:V.side)&&Ap(S,(W=P.current)===null||W===void 0?void 0:W.area)},[]);return i.createElement(pp,{scope:n,searchRef:R,onItemEnter:i.useCallback(S=>{N(S)&&S.preventDefault()},[N]),onItemLeave:i.useCallback(S=>{var V;N(S)||((V=k.current)===null||V===void 0||V.focus(),M(null))},[N]),onTriggerLeave:i.useCallback(S=>{N(S)&&S.preventDefault()},[N]),pointerGraceTimerRef:L,onPointerGraceIntentChange:i.useCallback(S=>{P.current=S},[])},i.createElement(H,I,i.createElement(Jo,{asChild:!0,trapped:o,onMountAutoFocus:Y(a,S=>{var V;S.preventDefault(),(V=k.current)===null||V===void 0||V.focus()}),onUnmountAutoFocus:s},i.createElement(Hn,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:u,onInteractOutside:m,onDismiss:v},i.createElement(ep,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":hi(x.open),"data-radix-menu-content":"",dir:g.dir},w,h,{ref:_,style:{outline:"none",...h.style},onKeyDown:Y(h.onKeyDown,S=>{const W=S.target.closest("[data-radix-menu-content]")===S.currentTarget,X=S.ctrlKey||S.altKey||S.metaKey,oe=S.key.length===1;W&&(S.key==="Tab"&&S.preventDefault(),!X&&oe&&O(S.key));const be=k.current;if(S.target!==be||!rp.includes(S.key))return;S.preventDefault();const de=C().filter(G=>!G.disabled).map(G=>G.ref.current);oi.includes(S.key)&&de.reverse(),Np(de)}),onBlur:Y(e.onBlur,S=>{S.currentTarget.contains(S.target)||(window.clearTimeout(z.current),R.current="")}),onPointerMove:Y(e.onPointerMove,Zt(S=>{const V=S.target,W=F.current!==S.clientX;if(S.currentTarget.contains(V)&&W){const X=S.clientX>F.current?"right":"left";U.current=X,F.current=S.clientX}}))})))))))}),gp=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.createElement(pe.div,j({},r,{ref:t}))}),Ar="MenuItem",di="menu.itemSelect",Dr=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=i.useRef(null),s=qt(Ar,e.__scopeMenu),c=Ir(Ar,e.__scopeMenu),l=ve(t,a),d=i.useRef(!1),f=()=>{const u=a.current;if(!n&&u){const m=new CustomEvent(di,{bubbles:!0,cancelable:!0});u.addEventListener(di,v=>r?.(v),{once:!0}),ho(u,m),m.defaultPrevented?d.current=!1:s.onClose()}};return i.createElement(ui,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=c.searchRef.current!=="";n||m&&u.key===" "||Nr.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})}))}),ui=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=Ir(Ar,n),c=ii(n),l=i.useRef(null),d=ve(t,l),[f,u]=i.useState(!1),[m,v]=i.useState("");return i.useEffect(()=>{const p=l.current;if(p){var h;v(((h=p.textContent)!==null&&h!==void 0?h:"").trim())}},[a.children]),i.createElement(Xt.ItemSlot,{scope:n,disabled:r,textValue:o??m},i.createElement(tp,j({asChild:!0},c,{focusable:!r}),i.createElement(pe.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?s.onItemLeave(p):(s.onItemEnter(p),p.defaultPrevented||p.currentTarget.focus())})),onPointerLeave:Y(e.onPointerLeave,Zt(p=>s.onItemLeave(p))),onFocus:Y(e.onFocus,()=>u(!0)),onBlur:Y(e.onBlur,()=>u(!1))}))))}),bp=i.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return i.createElement(pi,{scope:e.__scopeMenu,checked:n},i.createElement(Dr,j({role:"menuitemcheckbox","aria-checked":Mn(n)?"mixed":n},o,{ref:t,"data-state":jr(n),onSelect:Y(o.onSelect,()=>r?.(Mn(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),wp="MenuRadioGroup",[qm,xp]=pt(wp,{value:void 0,onValueChange:()=>{}}),yp="MenuRadioItem",$p=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=xp(yp,e.__scopeMenu),a=n===o.value;return i.createElement(pi,{scope:e.__scopeMenu,checked:a},i.createElement(Dr,j({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":jr(a),onSelect:Y(r.onSelect,()=>{var s;return(s=o.onValueChange)===null||s===void 0?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})))}),fi="MenuItemIndicator",[pi,Cp]=pt(fi,{checked:!1}),Ep=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=Cp(fi,n);return i.createElement(_t,{present:r||Mn(a.checked)||a.checked===!0},i.createElement(pe.span,j({},o,{ref:t,"data-state":jr(a.checked)})))}),Sp=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.createElement(pe.div,j({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),_p="MenuSub",[Zm,mi]=pt(_p),In="MenuSubTrigger",Tp=i.forwardRef((e,t)=>{const n=mt(In,e.__scopeMenu),r=qt(In,e.__scopeMenu),o=mi(In,e.__scopeMenu),a=Ir(In,e.__scopeMenu),s=i.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=a,d={__scopeMenu:e.__scopeMenu},f=i.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return i.useEffect(()=>f,[f]),i.useEffect(()=>{const u=c.current;return()=>{window.clearTimeout(u),l(null)}},[c,l]),i.createElement(si,j({asChild:!0},d),i.createElement(ui,j({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":hi(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&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:Y(e.onPointerLeave,Zt(u=>{var m;f();const v=(m=n.content)===null||m===void 0?void 0:m.getBoundingClientRect();if(v){var p;const h=(p=n.content)===null||p===void 0?void 0:p.dataset.side,x=h==="right",g=x?-5:5,w=v[x?"left":"right"],$=v[x?"right":"left"];a.onPointerGraceIntentChange({area:[{x:u.clientX+g,y:u.clientY},{x:w,y:v.top},{x:$,y:v.top},{x:$,y:v.bottom},{x:w,y:v.bottom}],side:h}),window.clearTimeout(c.current),c.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===" ")&&op[r.dir].includes(u.key)){var v;n.onOpenChange(!0),(v=n.content)===null||v===void 0||v.focus(),u.preventDefault()}})})))}),kp="MenuSubContent",Pp=i.forwardRef((e,t)=>{const n=li(Ae,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=mt(Ae,e.__scopeMenu),s=qt(Ae,e.__scopeMenu),c=mi(kp,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:c.contentId,"aria-labelledby":c.triggerId},o,{ref:d,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var u;s.isUsingKeyboardRef.current&&((u=l.current)===null||u===void 0||u.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:Y(e.onFocusOutside,f=>{f.target!==c.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:Y(e.onEscapeKeyDown,f=>{s.onClose(),f.preventDefault()}),onKeyDown:Y(e.onKeyDown,f=>{const u=f.currentTarget.contains(f.target),m=ap[s.dir].includes(f.key);if(u&&m){var v;a.onOpenChange(!1),(v=c.trigger)===null||v===void 0||v.focus(),f.preventDefault()}})})))))});function hi(e){return e?"open":"closed"}function Mn(e){return e==="indeterminate"}function jr(e){return Mn(e)?"indeterminate":e?"checked":"unchecked"}function Np(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Op(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Ip(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 s=Op(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==n));const l=s.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Mp(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const c=t[a].x,l=t[a].y,d=t[s].x,f=t[s].y;l>r!=f>r&&n<(d-c)*(r-l)/(f-l)+c&&(o=!o)}return o}function Ap(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Mp(n,t)}function Zt(e){return t=>t.pointerType==="mouse"?e(t):void 0}const Dp=dp,jp=si,Lp=fp,Fp=mp,Vp=gp,Bp=Dr,zp=bp,Wp=$p,Rp=Ep,Hp=Sp,Up=Tp,Kp=Pp,vi="DropdownMenu",[Gp,Jm]=st(vi,[ai]),Ne=ai(),[Yp,gi]=Gp(vi),Xp=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:c=!0}=e,l=Ne(t),d=i.useRef(null),[f=!1,u]=Ht({prop:o,defaultProp:a,onChange:s});return i.createElement(Yp,{scope:t,triggerId:wt(),triggerRef:d,contentId:wt(),open:f,onOpenChange:u,onOpenToggle:i.useCallback(()=>u(m=>!m),[u]),modal:c},i.createElement(Dp,j({},l,{open:f,onOpenChange:u,dir:r,modal:c}),n))},qp="DropdownMenuTrigger",Zp=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=gi(qp,n),s=Ne(n);return i.createElement(jp,j({asChild:!0},s),i.createElement(pe.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,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(a.onOpenToggle(),a.open||c.preventDefault())}),onKeyDown:Y(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&a.onOpenToggle(),c.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})))}),Jp=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Ne(t);return i.createElement(Lp,j({},r,n))},Qp="DropdownMenuContent",em=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gi(Qp,n),a=Ne(n),s=i.useRef(!1);return i.createElement(Fp,j({id:o.contentId,"aria-labelledby":o.triggerId},a,r,{ref:t,onCloseAutoFocus:Y(e.onCloseAutoFocus,c=>{var l;s.current||(l=o.triggerRef.current)===null||l===void 0||l.focus(),s.current=!1,c.preventDefault()}),onInteractOutside:Y(e.onInteractOutside,c=>{const l=c.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0,f=l.button===2||d;(!o.modal||f)&&(s.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)"}}))}),tm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ne(n);return i.createElement(Vp,j({},o,r,{ref:t}))}),nm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ne(n);return i.createElement(Bp,j({},o,r,{ref:t}))}),rm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ne(n);return i.createElement(zp,j({},o,r,{ref:t}))}),om=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ne(n);return i.createElement(Wp,j({},o,r,{ref:t}))}),am=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ne(n);return i.createElement(Rp,j({},o,r,{ref:t}))}),im=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ne(n);return i.createElement(Hp,j({},o,r,{ref:t}))}),sm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ne(n);return i.createElement(Up,j({},o,r,{ref:t}))}),cm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ne(n);return i.createElement(Kp,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)"}}))}),lm=Xp,dm=Zp,um=Jp,bi=em,wi=tm,xi=nm,yi=rm,$i=om,Ci=am,Ei=im,Si=sm,_i=cm,fm=lm,pm=dm,mm=D.forwardRef(({className:e,inset:t,children:n,...r},o)=>y.jsxs(Si,{ref:o,className:ee("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",t&&"pl-8",e),...r,children:[n,y.jsx(qs,{className:"ml-auto h-4 w-4"})]}));mm.displayName=Si.displayName;const hm=D.forwardRef(({className:e,...t},n)=>y.jsx(_i,{ref:n,className:ee("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in",e),...t}));hm.displayName=_i.displayName;const Ti=D.forwardRef(({className:e,sideOffset:t=4,...n},r)=>y.jsx(um,{children:y.jsx(bi,{ref:r,sideOffset:t,className:ee("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=open]:animate-in",e),...n})}));Ti.displayName=bi.displayName;const ki=D.forwardRef(({className:e,inset:t,...n},r)=>y.jsx(xi,{ref:r,className:ee("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50",t&&"pl-8",e),...n}));ki.displayName=xi.displayName;const Pi=D.forwardRef(({className:e,children:t,checked:n,...r},o)=>y.jsxs(yi,{ref:o,className:ee("relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none transition-colors data-[disabled]:pointer-events-none focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50",e),checked:n,...r,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(Ci,{children:y.jsx(uo,{className:"h-4 w-4"})})}),t]}));Pi.displayName=yi.displayName;const vm=D.forwardRef(({className:e,children:t,...n},r)=>y.jsxs($i,{ref:r,className:ee("relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none transition-colors data-[disabled]:pointer-events-none focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50",e),...n,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(Ci,{children:y.jsx(ec,{className:"h-4 w-4 fill-current"})})}),t]}));vm.displayName=$i.displayName;const gm=D.forwardRef(({className:e,inset:t,...n},r)=>y.jsx(wi,{ref:r,className:ee("px-2 py-1.5 font-semibold text-sm",t&&"pl-8",e),...n}));gm.displayName=wi.displayName;const bm=D.forwardRef(({className:e,...t},n)=>y.jsx(Ei,{ref:n,className:ee("-mx-1 my-1 h-px bg-muted",e),...t}));bm.displayName=Ei.displayName;function wm(e){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20",...e,children:[y.jsx("title",{children:"Add Row"}),y.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M10 6.667v6.666M6.667 10h6.666M6.5 17.5h7c1.4 0 2.1 0 2.635-.273a2.5 2.5 0 001.092-1.092c.273-.535.273-1.235.273-2.635v-7c0-1.4 0-2.1-.273-2.635a2.5 2.5 0 00-1.092-1.093C15.6 2.5 14.9 2.5 13.5 2.5h-7c-1.4 0-2.1 0-2.635.272a2.5 2.5 0 00-1.093 1.093C2.5 4.4 2.5 5.1 2.5 6.5v7c0 1.4 0 2.1.272 2.635a2.5 2.5 0 001.093 1.092C4.4 17.5 5.1 17.5 6.5 17.5z"})]})}function xm(e){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20",...e,children:[y.jsx("title",{children:"Remove Row"}),y.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M13.333 5v-.667c0-.933 0-1.4-.181-1.756a1.667 1.667 0 00-.729-.729c-.356-.181-.823-.181-1.756-.181H9.333c-.933 0-1.4 0-1.756.181-.314.16-.569.415-.729.729-.181.356-.181.823-.181 1.756V5m1.666 4.583v4.167m3.334-4.167v4.167M2.5 5h15m-1.667 0v9.333c0 1.4 0 2.1-.272 2.635a2.5 2.5 0 01-1.093 1.093c-.534.272-1.235.272-2.635.272H8.167c-1.4 0-2.1 0-2.635-.272a2.5 2.5 0 01-1.093-1.093c-.272-.535-.272-1.235-.272-2.635V5"})]})}function ym(){const{hasSomeEntireRow:e,emptySize:t,staticRows:n,columns:r,onInsertNewRow:o,onRemoveRow:a,onColumnVisibilityChange:s,onRestoreColumnsVisibility:c}=De(),l=i.useMemo(()=>r.filter(({state:v})=>v.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:"sticky top-0 z-50 flex w-full items-center justify-between rounded-t-md border bg-[#EAF5FF] px-4 py-2.5",children:[y.jsxs("div",{className:"flex items-center gap-6",children:[y.jsx(pn,{delayDuration:25,children:y.jsxs(mn,{children:[y.jsx(hn,{asChild:!0,children:y.jsx(Nn,{disabled:n,size:"icon",variant:"ghost",onClick:o,className:"text-[#4A4A6A] transition-none active:bg-[#0085FF] hover:bg-[#8FD6FF] active:text-white","data-cypress":"table-add-new-row",children:y.jsx(wm,{})})}),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(Nn,{disabled:n||t||!e,size:"icon",variant:"ghost",onClick:a,className:"text-[#4A4A6A] transition-none active:bg-[#0085FF] hover:bg-[#8FD6FF] active:text-white","data-cypress":"table-delete-selected-row",children:y.jsx(xm,{})})}),y.jsx(Kt,{children:y.jsx("p",{children:"Excluir linha(s)"})})]})})]}),y.jsx("div",{className:"flex items-center gap-4",children:y.jsxs(fm,{children:[y.jsx(pm,{"data-cypress":"table-hide-columns-button",asChild:!0,className:"w-56 bg-white",children:y.jsxs(Nn,{variant:"outline",className:"justify-between px-2",children:[y.jsx("span",{className:"text-xs",children:m}),y.jsx(lc,{className:"h-4 w-4"})]})}),y.jsxs(Ti,{className:"w-56",children:[y.jsx(ki,{onClick:c,className:"justify-between text-xs","data-cypress":"table-restore-columns",children:y.jsx("span",{children:"Reexibir todas as colunas"})}),r.map(({name:v,id:p,alphabetLetter:h,position:x,state:g})=>y.jsxs(Pi,{checked:g.visible,onCheckedChange:w=>s({columnId:p,visible:w}),onSelect:w=>w.preventDefault(),className:"justify-between text-xs","data-cypress":`table-hide-column-${p}`,children:[y.jsx("span",{children:v}),y.jsx("span",{className:"text-[10px] text-neutral-500",children:h})]},`spreadsheet__column__dropdown_checkbox__key__${p}__${x}`))]})]})})]})}function $m(e){const{className:t,...n}=e;return y.jsx(js,{...n,children:y.jsxs(lo.Root,{className:ee(t,"h-full"),children:[y.jsx(ym,{}),y.jsxs(lo.Matrix,{className:"scrollbar-thin overflow-y-clip overflow-x-scroll",children:[y.jsx(Ff,{className:"absolute z-50"}),y.jsx(ud,{}),y.jsx(Lf,{})]})]})})}const Cm={Spreadsheet:$m};Ke.CapLink=Cm,Object.defineProperty(Ke,Symbol.toStringTag,{value:"Module"})});
139
140
  //# sourceMappingURL=index.umd.js.map