diff --git a/assets/index-DldyhXfo.css b/assets/index-DldyhXfo.css new file mode 100644 index 0000000..514ff63 --- /dev/null +++ b/assets/index-DldyhXfo.css @@ -0,0 +1 @@ +*,: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;-o-tab-size:4;tab-size:4;font-family: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]){-webkit-text-decoration:underline dotted;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::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}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% 87%;--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% 80%;--input: 240 5.9% 80%;--link: 198, 100%, 16%;--ring: 240 5.9% 10%;--radius: .5rem}.dark{--background: 0 0% 5.9%;--foreground: 0 0% 98%;--card: 0 0% 3.9%;--card-foreground: 0 0% 98%;--popover: 0 0% 3.9%;--popover-foreground: 0 0% 98%;--primary: 0 0% 98%;--primary-foreground: 0 0% 9%;--secondary: 0 0% 14.9%;--secondary-foreground: 0 0% 98%;--muted: 0 0% 14.9%;--muted-foreground: 0 0% 63.9%;--accent: 0 0% 14.9%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--border: 0 0% 14.9%;--input: 0 0% 14.9%;--link: 198, 100%, 60%;--ring: 0 0% 83.1%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}*,: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: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.bottom-\[8px\]{bottom:8px}.left-0{left:0}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-0{right:0}.top-\[50\%\]{top:50%}.z-10{z-index:10}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-4{margin-top:1rem}.mt-auto{margin-top:auto}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-2{height:.5rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.max-h-96{max-height:24rem}.w-10{width:2.5rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-64{width:16rem}.w-\[100px\]{width:100px}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[270px\]{width:270px}.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-\[200px\]{max-width:200px}.max-w-\[250px\]{max-width:250px}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.shrink-0{flex-shrink:0}.caption-bottom{caption-side:bottom}.translate-x-\[-50\%\]{--tw-translate-x: -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))}.translate-y-\[-50\%\]{--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-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-balance{text-wrap:balance}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-black\/80{background-color:#000c}.bg-border{background-color:hsl(var(--border))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[6px\]{padding:6px}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.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-0\.5{padding-top:.125rem;padding-bottom:.125rem}.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-24{padding-top:6rem;padding-bottom:6rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pb-1{padding-bottom:.25rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-link{color:hsl(var(--link))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.underline-offset-4{text-underline-offset:4px}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.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)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.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}.duration-200{transition-duration:.2s}@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))}}.duration-200{animation-duration:.2s}.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::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary) / .8)}.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}.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-2: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(2px + 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\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2: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(2px + 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))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.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\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.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}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:block{display:block}.sm\:hidden{display:none}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}}@media (min-width: 768px){.md\:w-\[300px\]{width:300px}.md\:text-2xl{font-size:1.5rem;line-height:2rem}}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0px}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px} diff --git a/assets/index-U-diqNez.js b/assets/index-f0_PGacH.js similarity index 76% rename from assets/index-U-diqNez.js rename to assets/index-f0_PGacH.js index dc11144..5610aa5 100644 --- a/assets/index-U-diqNez.js +++ b/assets/index-f0_PGacH.js @@ -1,4 +1,4 @@ -function r1(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var ii=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o1(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Nm={exports:{}},Gs={},Am={exports:{}},xe={};/** +function r1(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var ii=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o1(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Tm={exports:{}},Gs={},Am={exports:{}},xe={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function r1(e,t){for(var n=0;n>>1,ue=z[se];if(0>>1;seo(Xe,ee))_eo(J,Xe)?(z[se]=J,z[_e]=ee,se=_e):(z[se]=Xe,z[ve]=ee,se=ve);else if(_eo(J,ee))z[se]=J,z[_e]=ee,se=_e;else break e}}return V}function o(z,V){var ee=z.sortIndex-V.sortIndex;return ee!==0?ee:z.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var f=[],u=[],p=1,m=null,h=3,w=!1,C=!1,E=!1,R=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(z){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=z)r(u),V.sortIndex=V.expirationTime,t(f,V);else break;V=n(u)}}function _(z){if(E=!1,b(z),!C)if(n(f)!==null)C=!0,le(P);else{var V=n(u);V!==null&&ne(_,V.startTime-z)}}function P(z,V){C=!1,E&&(E=!1,y(O),O=-1),w=!0;var ee=h;try{for(b(V),m=n(f);m!==null&&(!(m.expirationTime>V)||z&&!$());){var se=m.callback;if(typeof se=="function"){m.callback=null,h=m.priorityLevel;var ue=se(m.expirationTime<=V);V=e.unstable_now(),typeof ue=="function"?m.callback=ue:m===n(f)&&r(f),b(V)}else r(f);m=n(f)}if(m!==null)var qe=!0;else{var ve=n(u);ve!==null&&ne(_,ve.startTime-V),qe=!1}return qe}finally{m=null,h=ee,w=!1}}var A=!1,T=null,O=-1,I=5,j=-1;function $(){return!(e.unstable_now()-jz||125se?(z.sortIndex=ee,t(u,z),n(f)===null&&z===n(u)&&(E?(y(O),O=-1):E=!0,ne(_,ee-se))):(z.sortIndex=ue,t(f,z),C||w||(C=!0,le(P))),z},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(z){var V=h;return function(){var ee=h;h=V;try{return z.apply(this,arguments)}finally{h=ee}}}})(Bm);Um.exports=Bm;var R1=Um.exports;/** + */(function(e){function t(z,V){var ee=z.length;z.push(V);e:for(;0>>1,ue=z[se];if(0>>1;seo(Xe,ee))_eo(J,Xe)?(z[se]=J,z[_e]=ee,se=_e):(z[se]=Xe,z[ve]=ee,se=ve);else if(_eo(J,ee))z[se]=J,z[_e]=ee,se=_e;else break e}}return V}function o(z,V){var ee=z.sortIndex-V.sortIndex;return ee!==0?ee:z.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var f=[],u=[],p=1,m=null,h=3,w=!1,C=!1,b=!1,R=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(z){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=z)r(u),V.sortIndex=V.expirationTime,t(f,V);else break;V=n(u)}}function _(z){if(b=!1,E(z),!C)if(n(f)!==null)C=!0,le(P);else{var V=n(u);V!==null&&ne(_,V.startTime-z)}}function P(z,V){C=!1,b&&(b=!1,y(O),O=-1),w=!0;var ee=h;try{for(E(V),m=n(f);m!==null&&(!(m.expirationTime>V)||z&&!H());){var se=m.callback;if(typeof se=="function"){m.callback=null,h=m.priorityLevel;var ue=se(m.expirationTime<=V);V=e.unstable_now(),typeof ue=="function"?m.callback=ue:m===n(f)&&r(f),E(V)}else r(f);m=n(f)}if(m!==null)var qe=!0;else{var ve=n(u);ve!==null&&ne(_,ve.startTime-V),qe=!1}return qe}finally{m=null,h=ee,w=!1}}var A=!1,N=null,O=-1,I=5,j=-1;function H(){return!(e.unstable_now()-jz||125se?(z.sortIndex=ee,t(u,z),n(f)===null&&z===n(u)&&(b?(y(O),O=-1):b=!0,ne(_,ee-se))):(z.sortIndex=ue,t(f,z),C||w||(C=!0,le(P))),z},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(z){var V=h;return function(){var ee=h;h=V;try{return z.apply(this,arguments)}finally{h=ee}}}})(Bm);Um.exports=Bm;var R1=Um.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function r1(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gu=Object.prototype.hasOwnProperty,T1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,jd={},Md={};function N1(e){return gu.call(Md,e)?!0:gu.call(jd,e)?!1:T1.test(e)?Md[e]=!0:(jd[e]=!0,!1)}function A1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function D1(e,t,n,r){if(t===null||typeof t>"u"||A1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Pt(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var ht={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ht[e]=new Pt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ht[t]=new Pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ht[e]=new Pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ht[e]=new Pt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ht[e]=new Pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ht[e]=new Pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ht[e]=new Pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ht[e]=new Pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ht[e]=new Pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var jc=/[\-:]([a-z])/g;function Mc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(jc,Mc);ht[t]=new Pt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(jc,Mc);ht[t]=new Pt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(jc,Mc);ht[t]=new Pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ht[e]=new Pt(e,1,!1,e.toLowerCase(),null,!1,!1)});ht.xlinkHref=new Pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ht[e]=new Pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ic(e,t,n,r){var o=ht.hasOwnProperty(t)?ht[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gu=Object.prototype.hasOwnProperty,N1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,jd={},Md={};function T1(e){return gu.call(Md,e)?!0:gu.call(jd,e)?!1:N1.test(e)?Md[e]=!0:(jd[e]=!0,!1)}function A1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function D1(e,t,n,r){if(t===null||typeof t>"u"||A1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Pt(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var ht={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ht[e]=new Pt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ht[t]=new Pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ht[e]=new Pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ht[e]=new Pt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ht[e]=new Pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ht[e]=new Pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ht[e]=new Pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ht[e]=new Pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ht[e]=new Pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var jc=/[\-:]([a-z])/g;function Mc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(jc,Mc);ht[t]=new Pt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(jc,Mc);ht[t]=new Pt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(jc,Mc);ht[t]=new Pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ht[e]=new Pt(e,1,!1,e.toLowerCase(),null,!1,!1)});ht.xlinkHref=new Pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ht[e]=new Pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ic(e,t,n,r){var o=ht.hasOwnProperty(t)?ht[t]:null;(o!==null?o.type!==0:r||!(2a||o[l]!==i[a]){var f=` -`+o[l].replace(" at new "," at ");return e.displayName&&f.includes("")&&(f=f.replace("",e.displayName)),f}while(1<=l&&0<=a);break}}}finally{Aa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?yi(e):""}function O1(e){switch(e.tag){case 5:return yi(e.type);case 16:return yi("Lazy");case 13:return yi("Suspense");case 19:return yi("SuspenseList");case 0:case 2:case 15:return e=Da(e.type,!1),e;case 11:return e=Da(e.type.render,!1),e;case 1:return e=Da(e.type,!0),e;default:return""}}function Su(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case uo:return"Fragment";case ao:return"Portal";case yu:return"Profiler";case Lc:return"StrictMode";case wu:return"Suspense";case xu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qm:return(e.displayName||"Context")+".Consumer";case Vm:return(e._context.displayName||"Context")+".Provider";case Fc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case zc:return t=e.displayName||null,t!==null?t:Su(e.type)||"Memo";case or:t=e._payload,e=e._init;try{return Su(e(t))}catch{}}return null}function j1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Su(t);case 8:return t===Lc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function yr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Km(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function M1(e){var t=Km(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bl(e){e._valueTracker||(e._valueTracker=M1(e))}function Qm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Km(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function cs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Eu(e,t){var n=t.checked;return Ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ld(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=yr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ym(e,t){t=t.checked,t!=null&&Ic(e,"checked",t,!1)}function bu(e,t){Ym(e,t);var n=yr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Cu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Cu(e,t.type,yr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Fd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Cu(e,t,n){(t!=="number"||cs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wi=Array.isArray;function So(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Cl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Oi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var bi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},I1=["Webkit","ms","Moz","O"];Object.keys(bi).forEach(function(e){I1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bi[t]=bi[e]})});function eh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||bi.hasOwnProperty(e)&&bi[e]?(""+t).trim():t+"px"}function th(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=eh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var L1=Ye({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ru(e,t){if(t){if(L1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(H(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(H(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(H(61))}if(t.style!=null&&typeof t.style!="object")throw Error(H(62))}}function Pu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Tu=null;function $c(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Nu=null,Eo=null,bo=null;function Hd(e){if(e=nl(e)){if(typeof Nu!="function")throw Error(H(280));var t=e.stateNode;t&&(t=Zs(t),Nu(e.stateNode,e.type,t))}}function nh(e){Eo?bo?bo.push(e):bo=[e]:Eo=e}function rh(){if(Eo){var e=Eo,t=bo;if(bo=Eo=null,Hd(e),t)for(e=0;e>>=0,e===0?32:31-(K1(e)/Q1|0)|0}var _l=64,kl=4194304;function xi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ms(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~o;a!==0?r=xi(a):(i&=l,i!==0&&(r=xi(i)))}else l=n&~o,l!==0?r=xi(l):i!==0&&(r=xi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function el(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dn(t),e[t]=n}function J1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=_i),Yd=" ",Xd=!1;function bh(e,t){switch(e){case"keyup":return Rx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ch(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var co=!1;function Tx(e,t){switch(e){case"compositionend":return Ch(t);case"keypress":return t.which!==32?null:(Xd=!0,Yd);case"textInput":return e=t.data,e===Yd&&Xd?null:e;default:return null}}function Nx(e,t){if(co)return e==="compositionend"||!Kc&&bh(e,t)?(e=Sh(),Zl=Vc=ar=null,co=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=tp(n)}}function Ph(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ph(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Th(){for(var e=window,t=cs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=cs(e.document)}return t}function Qc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function zx(e){var t=Th(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ph(n.ownerDocument.documentElement,n)){if(r!==null&&Qc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=np(n,i);var l=np(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,fo=null,Iu=null,Ri=null,Lu=!1;function rp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lu||fo==null||fo!==cs(r)||(r=fo,"selectionStart"in r&&Qc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ri&&zi(Ri,r)||(Ri=r,r=gs(Iu,"onSelect"),0ho||(e.current=Bu[ho],Bu[ho]=null,ho--)}function je(e,t){ho++,Bu[ho]=e.current,e.current=t}var wr={},xt=br(wr),jt=br(!1),Hr=wr;function Do(e,t){var n=e.type.contextTypes;if(!n)return wr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Mt(e){return e=e.childContextTypes,e!=null}function ws(){Ue(jt),Ue(xt)}function cp(e,t,n){if(xt.current!==wr)throw Error(H(168));je(xt,t),je(jt,n)}function Fh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(H(108,j1(e)||"Unknown",o));return Ye({},n,r)}function xs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wr,Hr=xt.current,je(xt,e),je(jt,jt.current),!0}function fp(e,t,n){var r=e.stateNode;if(!r)throw Error(H(169));n?(e=Fh(e,t,Hr),r.__reactInternalMemoizedMergedChildContext=e,Ue(jt),Ue(xt),je(xt,e)):Ue(jt),je(jt,n)}var In=null,Js=!1,qa=!1;function zh(e){In===null?In=[e]:In.push(e)}function Xx(e){Js=!0,zh(e)}function Cr(){if(!qa&&In!==null){qa=!0;var e=0,t=Te;try{var n=In;for(Te=1;e>=l,o-=l,Ln=1<<32-dn(t)+o|n<O?(I=T,T=null):I=T.sibling;var j=h(y,T,b[O],_);if(j===null){T===null&&(T=I);break}e&&T&&j.alternate===null&&t(y,T),g=i(j,g,O),A===null?P=j:A.sibling=j,A=j,T=I}if(O===b.length)return n(y,T),We&&Dr(y,O),P;if(T===null){for(;OO?(I=T,T=null):I=T.sibling;var $=h(y,T,j.value,_);if($===null){T===null&&(T=I);break}e&&T&&$.alternate===null&&t(y,T),g=i($,g,O),A===null?P=$:A.sibling=$,A=$,T=I}if(j.done)return n(y,T),We&&Dr(y,O),P;if(T===null){for(;!j.done;O++,j=b.next())j=m(y,j.value,_),j!==null&&(g=i(j,g,O),A===null?P=j:A.sibling=j,A=j);return We&&Dr(y,O),P}for(T=r(y,T);!j.done;O++,j=b.next())j=w(T,y,O,j.value,_),j!==null&&(e&&j.alternate!==null&&T.delete(j.key===null?O:j.key),g=i(j,g,O),A===null?P=j:A.sibling=j,A=j);return e&&T.forEach(function(U){return t(y,U)}),We&&Dr(y,O),P}function R(y,g,b,_){if(typeof b=="object"&&b!==null&&b.type===uo&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case El:e:{for(var P=b.key,A=g;A!==null;){if(A.key===P){if(P=b.type,P===uo){if(A.tag===7){n(y,A.sibling),g=o(A,b.props.children),g.return=y,y=g;break e}}else if(A.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===or&&mp(P)===A.type){n(y,A.sibling),g=o(A,b.props),g.ref=fi(y,A,b),g.return=y,y=g;break e}n(y,A);break}else t(y,A);A=A.sibling}b.type===uo?(g=$r(b.props.children,y.mode,_,b.key),g.return=y,y=g):(_=ls(b.type,b.key,b.props,null,y.mode,_),_.ref=fi(y,g,b),_.return=y,y=_)}return l(y);case ao:e:{for(A=b.key;g!==null;){if(g.key===A)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){n(y,g.sibling),g=o(g,b.children||[]),g.return=y,y=g;break e}else{n(y,g);break}else t(y,g);g=g.sibling}g=eu(b,y.mode,_),g.return=y,y=g}return l(y);case or:return A=b._init,R(y,g,A(b._payload),_)}if(wi(b))return C(y,g,b,_);if(li(b))return E(y,g,b,_);Ol(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,g!==null&&g.tag===6?(n(y,g.sibling),g=o(g,b),g.return=y,y=g):(n(y,g),g=Ja(b,y.mode,_),g.return=y,y=g),l(y)):n(y,g)}return R}var jo=Bh(!0),Wh=Bh(!1),bs=br(null),Cs=null,yo=null,Jc=null;function ef(){Jc=yo=Cs=null}function tf(e){var t=bs.current;Ue(bs),e._currentValue=t}function qu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function _o(e,t){Cs=e,Jc=yo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ot=!0),e.firstContext=null)}function tn(e){var t=e._currentValue;if(Jc!==e)if(e={context:e,memoizedValue:t,next:null},yo===null){if(Cs===null)throw Error(H(308));yo=e,Cs.dependencies={lanes:0,firstContext:e}}else yo=yo.next=e;return t}var Ir=null;function nf(e){Ir===null?Ir=[e]:Ir.push(e)}function Vh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,nf(t)):(n.next=o.next,o.next=n),t.interleaved=n,Un(e,r)}function Un(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ir=!1;function rf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ce&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Un(e,n)}return o=r.interleaved,o===null?(t.next=t,nf(r)):(t.next=o.next,o.next=t),r.interleaved=t,Un(e,n)}function es(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Uc(e,n)}}function hp(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function _s(e,t,n,r){var o=e.updateQueue;ir=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var f=a,u=f.next;f.next=null,l===null?i=u:l.next=u,l=f;var p=e.alternate;p!==null&&(p=p.updateQueue,a=p.lastBaseUpdate,a!==l&&(a===null?p.firstBaseUpdate=u:a.next=u,p.lastBaseUpdate=f))}if(i!==null){var m=o.baseState;l=0,p=u=f=null,a=i;do{var h=a.lane,w=a.eventTime;if((r&h)===h){p!==null&&(p=p.next={eventTime:w,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var C=e,E=a;switch(h=t,w=n,E.tag){case 1:if(C=E.payload,typeof C=="function"){m=C.call(w,m,h);break e}m=C;break e;case 3:C.flags=C.flags&-65537|128;case 0:if(C=E.payload,h=typeof C=="function"?C.call(w,m,h):C,h==null)break e;m=Ye({},m,h);break e;case 2:ir=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[a]:h.push(a))}else w={eventTime:w,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(u=p=w,f=m):p=p.next=w,l|=h;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;h=a,a=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(p===null&&(f=m),o.baseState=f,o.firstBaseUpdate=u,o.lastBaseUpdate=p,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Wr|=l,e.lanes=l,e.memoizedState=m}}function vp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ka.transition;Ka.transition={};try{e(!1),t()}finally{Te=n,Ka.transition=r}}function uv(){return nn().memoizedState}function tS(e,t,n){var r=vr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},cv(e))fv(t,n);else if(n=Vh(e,t,n,r),n!==null){var o=_t();pn(n,e,r,o),dv(n,t,r)}}function nS(e,t,n){var r=vr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(cv(e))fv(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,mn(a,l)){var f=t.interleaved;f===null?(o.next=o,nf(t)):(o.next=f.next,f.next=o),t.interleaved=o;return}}catch{}finally{}n=Vh(e,t,o,r),n!==null&&(o=_t(),pn(n,e,r,o),dv(n,t,r))}}function cv(e){var t=e.alternate;return e===Qe||t!==null&&t===Qe}function fv(e,t){Pi=Rs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Uc(e,n)}}var Ps={readContext:tn,useCallback:gt,useContext:gt,useEffect:gt,useImperativeHandle:gt,useInsertionEffect:gt,useLayoutEffect:gt,useMemo:gt,useReducer:gt,useRef:gt,useState:gt,useDebugValue:gt,useDeferredValue:gt,useTransition:gt,useMutableSource:gt,useSyncExternalStore:gt,useId:gt,unstable_isNewReconciler:!1},rS={readContext:tn,useCallback:function(e,t){return Cn().memoizedState=[e,t===void 0?null:t],e},useContext:tn,useEffect:yp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ns(4194308,4,ov.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){return ns(4,2,e,t)},useMemo:function(e,t){var n=Cn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Cn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tS.bind(null,Qe,e),[r.memoizedState,e]},useRef:function(e){var t=Cn();return e={current:e},t.memoizedState=e},useState:gp,useDebugValue:df,useDeferredValue:function(e){return Cn().memoizedState=e},useTransition:function(){var e=gp(!1),t=e[0];return e=eS.bind(null,e[1]),Cn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Qe,o=Cn();if(We){if(n===void 0)throw Error(H(407));n=n()}else{if(n=t(),dt===null)throw Error(H(349));Br&30||Yh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,yp(Zh.bind(null,r,i,e),[e]),r.flags|=2048,Gi(9,Xh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Cn(),t=dt.identifierPrefix;if(We){var n=Fn,r=Ln;n=(r&~(1<<32-dn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Vi++,0")&&(f=f.replace("",e.displayName)),f}while(1<=l&&0<=a);break}}}finally{Aa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?yi(e):""}function O1(e){switch(e.tag){case 5:return yi(e.type);case 16:return yi("Lazy");case 13:return yi("Suspense");case 19:return yi("SuspenseList");case 0:case 2:case 15:return e=Da(e.type,!1),e;case 11:return e=Da(e.type.render,!1),e;case 1:return e=Da(e.type,!0),e;default:return""}}function Su(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case uo:return"Fragment";case ao:return"Portal";case yu:return"Profiler";case Lc:return"StrictMode";case wu:return"Suspense";case xu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qm:return(e.displayName||"Context")+".Consumer";case Vm:return(e._context.displayName||"Context")+".Provider";case Fc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case zc:return t=e.displayName||null,t!==null?t:Su(e.type)||"Memo";case or:t=e._payload,e=e._init;try{return Su(e(t))}catch{}}return null}function j1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Su(t);case 8:return t===Lc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function yr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Km(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function M1(e){var t=Km(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bl(e){e._valueTracker||(e._valueTracker=M1(e))}function Qm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Km(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function cs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Eu(e,t){var n=t.checked;return Ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ld(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=yr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ym(e,t){t=t.checked,t!=null&&Ic(e,"checked",t,!1)}function bu(e,t){Ym(e,t);var n=yr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Cu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Cu(e,t.type,yr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Fd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Cu(e,t,n){(t!=="number"||cs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wi=Array.isArray;function So(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Cl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Oi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var bi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},I1=["Webkit","ms","Moz","O"];Object.keys(bi).forEach(function(e){I1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bi[t]=bi[e]})});function eh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||bi.hasOwnProperty(e)&&bi[e]?(""+t).trim():t+"px"}function th(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=eh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var L1=Ye({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ru(e,t){if(t){if(L1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error($(61))}if(t.style!=null&&typeof t.style!="object")throw Error($(62))}}function Pu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Nu=null;function $c(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tu=null,Eo=null,bo=null;function Hd(e){if(e=nl(e)){if(typeof Tu!="function")throw Error($(280));var t=e.stateNode;t&&(t=Zs(t),Tu(e.stateNode,e.type,t))}}function nh(e){Eo?bo?bo.push(e):bo=[e]:Eo=e}function rh(){if(Eo){var e=Eo,t=bo;if(bo=Eo=null,Hd(e),t)for(e=0;e>>=0,e===0?32:31-(K1(e)/Q1|0)|0}var _l=64,kl=4194304;function xi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ms(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~o;a!==0?r=xi(a):(i&=l,i!==0&&(r=xi(i)))}else l=n&~o,l!==0?r=xi(l):i!==0&&(r=xi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function el(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dn(t),e[t]=n}function J1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=_i),Yd=" ",Xd=!1;function bh(e,t){switch(e){case"keyup":return Rx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ch(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var co=!1;function Nx(e,t){switch(e){case"compositionend":return Ch(t);case"keypress":return t.which!==32?null:(Xd=!0,Yd);case"textInput":return e=t.data,e===Yd&&Xd?null:e;default:return null}}function Tx(e,t){if(co)return e==="compositionend"||!Kc&&bh(e,t)?(e=Sh(),Zl=Vc=ar=null,co=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=tp(n)}}function Ph(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ph(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nh(){for(var e=window,t=cs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=cs(e.document)}return t}function Qc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function zx(e){var t=Nh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ph(n.ownerDocument.documentElement,n)){if(r!==null&&Qc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=np(n,i);var l=np(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,fo=null,Iu=null,Ri=null,Lu=!1;function rp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lu||fo==null||fo!==cs(r)||(r=fo,"selectionStart"in r&&Qc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ri&&zi(Ri,r)||(Ri=r,r=gs(Iu,"onSelect"),0ho||(e.current=Bu[ho],Bu[ho]=null,ho--)}function je(e,t){ho++,Bu[ho]=e.current,e.current=t}var wr={},xt=br(wr),jt=br(!1),Hr=wr;function Do(e,t){var n=e.type.contextTypes;if(!n)return wr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Mt(e){return e=e.childContextTypes,e!=null}function ws(){Ue(jt),Ue(xt)}function cp(e,t,n){if(xt.current!==wr)throw Error($(168));je(xt,t),je(jt,n)}function Fh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error($(108,j1(e)||"Unknown",o));return Ye({},n,r)}function xs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wr,Hr=xt.current,je(xt,e),je(jt,jt.current),!0}function fp(e,t,n){var r=e.stateNode;if(!r)throw Error($(169));n?(e=Fh(e,t,Hr),r.__reactInternalMemoizedMergedChildContext=e,Ue(jt),Ue(xt),je(xt,e)):Ue(jt),je(jt,n)}var In=null,Js=!1,qa=!1;function zh(e){In===null?In=[e]:In.push(e)}function Xx(e){Js=!0,zh(e)}function Cr(){if(!qa&&In!==null){qa=!0;var e=0,t=Ne;try{var n=In;for(Ne=1;e>=l,o-=l,Ln=1<<32-dn(t)+o|n<O?(I=N,N=null):I=N.sibling;var j=h(y,N,E[O],_);if(j===null){N===null&&(N=I);break}e&&N&&j.alternate===null&&t(y,N),g=i(j,g,O),A===null?P=j:A.sibling=j,A=j,N=I}if(O===E.length)return n(y,N),We&&Dr(y,O),P;if(N===null){for(;OO?(I=N,N=null):I=N.sibling;var H=h(y,N,j.value,_);if(H===null){N===null&&(N=I);break}e&&N&&H.alternate===null&&t(y,N),g=i(H,g,O),A===null?P=H:A.sibling=H,A=H,N=I}if(j.done)return n(y,N),We&&Dr(y,O),P;if(N===null){for(;!j.done;O++,j=E.next())j=m(y,j.value,_),j!==null&&(g=i(j,g,O),A===null?P=j:A.sibling=j,A=j);return We&&Dr(y,O),P}for(N=r(y,N);!j.done;O++,j=E.next())j=w(N,y,O,j.value,_),j!==null&&(e&&j.alternate!==null&&N.delete(j.key===null?O:j.key),g=i(j,g,O),A===null?P=j:A.sibling=j,A=j);return e&&N.forEach(function(U){return t(y,U)}),We&&Dr(y,O),P}function R(y,g,E,_){if(typeof E=="object"&&E!==null&&E.type===uo&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case El:e:{for(var P=E.key,A=g;A!==null;){if(A.key===P){if(P=E.type,P===uo){if(A.tag===7){n(y,A.sibling),g=o(A,E.props.children),g.return=y,y=g;break e}}else if(A.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===or&&mp(P)===A.type){n(y,A.sibling),g=o(A,E.props),g.ref=fi(y,A,E),g.return=y,y=g;break e}n(y,A);break}else t(y,A);A=A.sibling}E.type===uo?(g=$r(E.props.children,y.mode,_,E.key),g.return=y,y=g):(_=ls(E.type,E.key,E.props,null,y.mode,_),_.ref=fi(y,g,E),_.return=y,y=_)}return l(y);case ao:e:{for(A=E.key;g!==null;){if(g.key===A)if(g.tag===4&&g.stateNode.containerInfo===E.containerInfo&&g.stateNode.implementation===E.implementation){n(y,g.sibling),g=o(g,E.children||[]),g.return=y,y=g;break e}else{n(y,g);break}else t(y,g);g=g.sibling}g=eu(E,y.mode,_),g.return=y,y=g}return l(y);case or:return A=E._init,R(y,g,A(E._payload),_)}if(wi(E))return C(y,g,E,_);if(li(E))return b(y,g,E,_);Ol(y,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,g!==null&&g.tag===6?(n(y,g.sibling),g=o(g,E),g.return=y,y=g):(n(y,g),g=Ja(E,y.mode,_),g.return=y,y=g),l(y)):n(y,g)}return R}var jo=Bh(!0),Wh=Bh(!1),bs=br(null),Cs=null,yo=null,Jc=null;function ef(){Jc=yo=Cs=null}function tf(e){var t=bs.current;Ue(bs),e._currentValue=t}function qu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function _o(e,t){Cs=e,Jc=yo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ot=!0),e.firstContext=null)}function tn(e){var t=e._currentValue;if(Jc!==e)if(e={context:e,memoizedValue:t,next:null},yo===null){if(Cs===null)throw Error($(308));yo=e,Cs.dependencies={lanes:0,firstContext:e}}else yo=yo.next=e;return t}var Ir=null;function nf(e){Ir===null?Ir=[e]:Ir.push(e)}function Vh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,nf(t)):(n.next=o.next,o.next=n),t.interleaved=n,Un(e,r)}function Un(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ir=!1;function rf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ce&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Un(e,n)}return o=r.interleaved,o===null?(t.next=t,nf(r)):(t.next=o.next,o.next=t),r.interleaved=t,Un(e,n)}function es(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Uc(e,n)}}function hp(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function _s(e,t,n,r){var o=e.updateQueue;ir=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var f=a,u=f.next;f.next=null,l===null?i=u:l.next=u,l=f;var p=e.alternate;p!==null&&(p=p.updateQueue,a=p.lastBaseUpdate,a!==l&&(a===null?p.firstBaseUpdate=u:a.next=u,p.lastBaseUpdate=f))}if(i!==null){var m=o.baseState;l=0,p=u=f=null,a=i;do{var h=a.lane,w=a.eventTime;if((r&h)===h){p!==null&&(p=p.next={eventTime:w,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var C=e,b=a;switch(h=t,w=n,b.tag){case 1:if(C=b.payload,typeof C=="function"){m=C.call(w,m,h);break e}m=C;break e;case 3:C.flags=C.flags&-65537|128;case 0:if(C=b.payload,h=typeof C=="function"?C.call(w,m,h):C,h==null)break e;m=Ye({},m,h);break e;case 2:ir=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[a]:h.push(a))}else w={eventTime:w,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(u=p=w,f=m):p=p.next=w,l|=h;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;h=a,a=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(p===null&&(f=m),o.baseState=f,o.firstBaseUpdate=u,o.lastBaseUpdate=p,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Wr|=l,e.lanes=l,e.memoizedState=m}}function vp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ka.transition;Ka.transition={};try{e(!1),t()}finally{Ne=n,Ka.transition=r}}function uv(){return nn().memoizedState}function tS(e,t,n){var r=vr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},cv(e))fv(t,n);else if(n=Vh(e,t,n,r),n!==null){var o=_t();pn(n,e,r,o),dv(n,t,r)}}function nS(e,t,n){var r=vr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(cv(e))fv(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,mn(a,l)){var f=t.interleaved;f===null?(o.next=o,nf(t)):(o.next=f.next,f.next=o),t.interleaved=o;return}}catch{}finally{}n=Vh(e,t,o,r),n!==null&&(o=_t(),pn(n,e,r,o),dv(n,t,r))}}function cv(e){var t=e.alternate;return e===Qe||t!==null&&t===Qe}function fv(e,t){Pi=Rs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Uc(e,n)}}var Ps={readContext:tn,useCallback:gt,useContext:gt,useEffect:gt,useImperativeHandle:gt,useInsertionEffect:gt,useLayoutEffect:gt,useMemo:gt,useReducer:gt,useRef:gt,useState:gt,useDebugValue:gt,useDeferredValue:gt,useTransition:gt,useMutableSource:gt,useSyncExternalStore:gt,useId:gt,unstable_isNewReconciler:!1},rS={readContext:tn,useCallback:function(e,t){return Cn().memoizedState=[e,t===void 0?null:t],e},useContext:tn,useEffect:yp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ns(4194308,4,ov.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){return ns(4,2,e,t)},useMemo:function(e,t){var n=Cn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Cn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tS.bind(null,Qe,e),[r.memoizedState,e]},useRef:function(e){var t=Cn();return e={current:e},t.memoizedState=e},useState:gp,useDebugValue:df,useDeferredValue:function(e){return Cn().memoizedState=e},useTransition:function(){var e=gp(!1),t=e[0];return e=eS.bind(null,e[1]),Cn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Qe,o=Cn();if(We){if(n===void 0)throw Error($(407));n=n()}else{if(n=t(),dt===null)throw Error($(349));Br&30||Yh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,yp(Zh.bind(null,r,i,e),[e]),r.flags|=2048,Gi(9,Xh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Cn(),t=dt.identifierPrefix;if(We){var n=Fn,r=Ln;n=(r&~(1<<32-dn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Vi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[_n]=t,e[Ui]=r,Ev(e,t,!1,!1),t.stateNode=e;e:{switch(l=Pu(n,r),n){case"dialog":$e("cancel",e),$e("close",e),o=r;break;case"iframe":case"object":case"embed":$e("load",e),o=r;break;case"video":case"audio":for(o=0;oLo&&(t.flags|=128,r=!0,di(i,!1),t.lanes=4194304)}else{if(!r)if(e=ks(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),di(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!We)return yt(t),null}else 2*et()-i.renderingStartTime>Lo&&n!==1073741824&&(t.flags|=128,r=!0,di(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=et(),t.sibling=null,n=Ke.current,je(Ke,r?n&1|2:n&1),t):(yt(t),null);case 22:case 23:return yf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?$t&1073741824&&(yt(t),t.subtreeFlags&6&&(t.flags|=8192)):yt(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function fS(e,t){switch(Xc(t),t.tag){case 1:return Mt(t.type)&&ws(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mo(),Ue(jt),Ue(xt),sf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return lf(t),null;case 13:if(Ue(Ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));Oo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ue(Ke),null;case 4:return Mo(),null;case 10:return tf(t.type._context),null;case 22:case 23:return yf(),null;case 24:return null;default:return null}}var Ml=!1,wt=!1,dS=typeof WeakSet=="function"?WeakSet:Set,X=null;function wo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ze(e,t,r)}else n.current=null}function tc(e,t,n){try{n()}catch(r){Ze(e,t,r)}}var Tp=!1;function pS(e,t){if(Fu=hs,e=Th(),Qc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,a=-1,f=-1,u=0,p=0,m=e,h=null;t:for(;;){for(var w;m!==n||o!==0&&m.nodeType!==3||(a=l+o),m!==i||r!==0&&m.nodeType!==3||(f=l+r),m.nodeType===3&&(l+=m.nodeValue.length),(w=m.firstChild)!==null;)h=m,m=w;for(;;){if(m===e)break t;if(h===n&&++u===o&&(a=l),h===i&&++p===r&&(f=l),(w=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=w}n=a===-1||f===-1?null:{start:a,end:f}}else n=null}n=n||{start:0,end:0}}else n=null;for(zu={focusedElem:e,selectionRange:n},hs=!1,X=t;X!==null;)if(t=X,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;try{var C=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(C!==null){var E=C.memoizedProps,R=C.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?E:un(t.type,E),R);y.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(H(163))}}catch(_){Ze(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return C=Tp,Tp=!1,C}function Ti(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&tc(t,n,i)}o=o.next}while(o!==r)}}function na(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function nc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function _v(e){var t=e.alternate;t!==null&&(e.alternate=null,_v(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_n],delete t[Ui],delete t[Uu],delete t[Qx],delete t[Yx])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function kv(e){return e.tag===5||e.tag===3||e.tag===4}function Np(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function rc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ys));else if(r!==4&&(e=e.child,e!==null))for(rc(e,t,n),e=e.sibling;e!==null;)rc(e,t,n),e=e.sibling}function oc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(oc(e,t,n),e=e.sibling;e!==null;)oc(e,t,n),e=e.sibling}var pt=null,cn=!1;function er(e,t,n){for(n=n.child;n!==null;)Rv(e,t,n),n=n.sibling}function Rv(e,t,n){if(Pn&&typeof Pn.onCommitFiberUnmount=="function")try{Pn.onCommitFiberUnmount(Ks,n)}catch{}switch(n.tag){case 5:wt||wo(n,t);case 6:var r=pt,o=cn;pt=null,er(e,t,n),pt=r,cn=o,pt!==null&&(cn?(e=pt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pt.removeChild(n.stateNode));break;case 18:pt!==null&&(cn?(e=pt,n=n.stateNode,e.nodeType===8?Va(e.parentNode,n):e.nodeType===1&&Va(e,n),Li(e)):Va(pt,n.stateNode));break;case 4:r=pt,o=cn,pt=n.stateNode.containerInfo,cn=!0,er(e,t,n),pt=r,cn=o;break;case 0:case 11:case 14:case 15:if(!wt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&tc(n,t,l),o=o.next}while(o!==r)}er(e,t,n);break;case 1:if(!wt&&(wo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ze(n,t,a)}er(e,t,n);break;case 21:er(e,t,n);break;case 22:n.mode&1?(wt=(r=wt)||n.memoizedState!==null,er(e,t,n),wt=r):er(e,t,n);break;default:er(e,t,n)}}function Ap(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new dS),t.forEach(function(r){var o=ES.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function an(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=et()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hS(r/1960))-r,10e?16:e,ur===null)var r=!1;else{if(e=ur,ur=null,As=0,Ce&6)throw Error(H(331));var o=Ce;for(Ce|=4,X=e.current;X!==null;){var i=X,l=i.child;if(X.flags&16){var a=i.deletions;if(a!==null){for(var f=0;fet()-vf?zr(e,0):hf|=n),It(e,t)}function Mv(e,t){t===0&&(e.mode&1?(t=kl,kl<<=1,!(kl&130023424)&&(kl=4194304)):t=1);var n=_t();e=Un(e,t),e!==null&&(el(e,t,n),It(e,n))}function SS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Mv(e,n)}function ES(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(H(314))}r!==null&&r.delete(t),Mv(e,n)}var Iv;Iv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||jt.current)Ot=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ot=!1,uS(e,t,n);Ot=!!(e.flags&131072)}else Ot=!1,We&&t.flags&1048576&&$h(t,Es,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rs(e,t),e=t.pendingProps;var o=Do(t,xt.current);_o(t,n),o=uf(null,t,r,e,o,n);var i=cf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mt(r)?(i=!0,xs(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,rf(t),o.updater=ta,t.stateNode=o,o._reactInternals=t,Ku(t,r,e,n),t=Xu(null,t,r,!0,i,n)):(t.tag=0,We&&i&&Yc(t),Ct(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rs(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=CS(r),e=un(r,e),o){case 0:t=Yu(null,t,r,e,n);break e;case 1:t=kp(null,t,r,e,n);break e;case 11:t=Cp(null,t,r,e,n);break e;case 14:t=_p(null,t,r,un(r.type,e),n);break e}throw Error(H(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:un(r,o),Yu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:un(r,o),kp(e,t,r,o,n);case 3:e:{if(wv(t),e===null)throw Error(H(387));r=t.pendingProps,i=t.memoizedState,o=i.element,qh(e,t),_s(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Io(Error(H(423)),t),t=Rp(e,t,r,n,o);break e}else if(r!==o){o=Io(Error(H(424)),t),t=Rp(e,t,r,n,o);break e}else for(Ut=pr(t.stateNode.containerInfo.firstChild),Bt=t,We=!0,fn=null,n=Wh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Oo(),r===o){t=Bn(e,t,n);break e}Ct(e,t,r,n)}t=t.child}return t;case 5:return Gh(t),e===null&&Vu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,$u(r,o)?l=null:i!==null&&$u(r,i)&&(t.flags|=32),yv(e,t),Ct(e,t,l,n),t.child;case 6:return e===null&&Vu(t),null;case 13:return xv(e,t,n);case 4:return of(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=jo(t,null,r,n):Ct(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:un(r,o),Cp(e,t,r,o,n);case 7:return Ct(e,t,t.pendingProps,n),t.child;case 8:return Ct(e,t,t.pendingProps.children,n),t.child;case 12:return Ct(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,je(bs,r._currentValue),r._currentValue=l,i!==null)if(mn(i.value,l)){if(i.children===o.children&&!jt.current){t=Bn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var f=a.firstContext;f!==null;){if(f.context===r){if(i.tag===1){f=zn(-1,n&-n),f.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var p=u.pending;p===null?f.next=f:(f.next=p.next,p.next=f),u.pending=f}}i.lanes|=n,f=i.alternate,f!==null&&(f.lanes|=n),qu(i.return,n,t),a.lanes|=n;break}f=f.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(H(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),qu(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Ct(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,_o(t,n),o=tn(o),r=r(o),t.flags|=1,Ct(e,t,r,n),t.child;case 14:return r=t.type,o=un(r,t.pendingProps),o=un(r.type,o),_p(e,t,r,o,n);case 15:return vv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:un(r,o),rs(e,t),t.tag=1,Mt(r)?(e=!0,xs(t)):e=!1,_o(t,n),pv(t,r,o),Ku(t,r,o,n),Xu(null,t,r,!0,e,n);case 19:return Sv(e,t,n);case 22:return gv(e,t,n)}throw Error(H(156,t.tag))};function Lv(e,t){return ch(e,t)}function bS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jt(e,t,n,r){return new bS(e,t,n,r)}function xf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function CS(e){if(typeof e=="function")return xf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fc)return 11;if(e===zc)return 14}return 2}function gr(e,t){var n=e.alternate;return n===null?(n=Jt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ls(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")xf(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case uo:return $r(n.children,o,i,t);case Lc:l=8,o|=8;break;case yu:return e=Jt(12,n,t,o|2),e.elementType=yu,e.lanes=i,e;case wu:return e=Jt(13,n,t,o),e.elementType=wu,e.lanes=i,e;case xu:return e=Jt(19,n,t,o),e.elementType=xu,e.lanes=i,e;case Gm:return oa(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vm:l=10;break e;case qm:l=9;break e;case Fc:l=11;break e;case zc:l=14;break e;case or:l=16,r=null;break e}throw Error(H(130,e==null?e:typeof e,""))}return t=Jt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function $r(e,t,n,r){return e=Jt(7,e,r,t),e.lanes=n,e}function oa(e,t,n,r){return e=Jt(22,e,r,t),e.elementType=Gm,e.lanes=n,e.stateNode={isHidden:!1},e}function Ja(e,t,n){return e=Jt(6,e,null,t),e.lanes=n,e}function eu(e,t,n){return t=Jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _S(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ja(0),this.expirationTimes=ja(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ja(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Sf(e,t,n,r,o,i,l,a,f){return e=new _S(e,t,n,a,f),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Jt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rf(i),e}function kS(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hv)}catch(e){console.error(e)}}Hv(),Hm.exports=qt;var Zr=Hm.exports;const AS=Zi(Zr);var zp=Zr;vu.createRoot=zp.createRoot,vu.hydrateRoot=zp.hydrateRoot;var DS={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const $p=e=>{let t;const n=new Set,r=(p,m)=>{const h=typeof p=="function"?p(t):p;if(!Object.is(h,t)){const w=t;t=m??(typeof h!="object"||h===null)?h:Object.assign({},t,h),n.forEach(C=>C(t,w))}},o=()=>t,f={setState:r,getState:o,getInitialState:()=>u,subscribe:p=>(n.add(p),()=>n.delete(p)),destroy:()=>{(DS?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,o,f);return f},OS=e=>e?$p(e):$p;var Uv={exports:{}},Bv={},Wv={exports:{}},Vv={};/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Xa(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Qu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var lS=typeof WeakMap=="function"?WeakMap:Map;function mv(e,t,n){n=zn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ts||(Ts=!0,ic=r),Qu(e,t)},n}function hv(e,t,n){n=zn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Qu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Qu(e,t),typeof r!="function"&&(hr===null?hr=new Set([this]):hr.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Sp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new lS;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=xS.bind(null,e,t,n),t.then(e,e))}function Ep(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function bp(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=zn(-1,1),t.tag=2,mr(n,t,1))),n.lanes|=1),e)}var sS=Gn.ReactCurrentOwner,Ot=!1;function Ct(e,t,n,r){t.child=e===null?Wh(t,null,n,r):jo(t,e.child,n,r)}function Cp(e,t,n,r,o){n=n.render;var i=t.ref;return _o(t,o),r=uf(e,t,n,r,i,o),n=cf(),e!==null&&!Ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Bn(e,t,o)):(We&&n&&Yc(t),t.flags|=1,Ct(e,t,r,o),t.child)}function _p(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!xf(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,vv(e,t,i,r,o)):(e=ls(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:zi,n(l,r)&&e.ref===t.ref)return Bn(e,t,o)}return t.flags|=1,e=gr(i,r),e.ref=t.ref,e.return=t,t.child=e}function vv(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(zi(i,r)&&e.ref===t.ref)if(Ot=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Ot=!0);else return t.lanes=e.lanes,Bn(e,t,o)}return Yu(e,t,n,r,o)}function gv(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},je(xo,$t),$t|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,je(xo,$t),$t|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,je(xo,$t),$t|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,je(xo,$t),$t|=r;return Ct(e,t,o,n),t.child}function yv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,o){var i=Mt(n)?Hr:xt.current;return i=Do(t,i),_o(t,o),n=uf(e,t,n,r,i,o),r=cf(),e!==null&&!Ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Bn(e,t,o)):(We&&r&&Yc(t),t.flags|=1,Ct(e,t,n,o),t.child)}function kp(e,t,n,r,o){if(Mt(n)){var i=!0;xs(t)}else i=!1;if(_o(t,o),t.stateNode===null)rs(e,t),pv(t,n,r),Ku(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,a=t.memoizedProps;l.props=a;var f=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=tn(u):(u=Mt(n)?Hr:xt.current,u=Do(t,u));var p=n.getDerivedStateFromProps,m=typeof p=="function"||typeof l.getSnapshotBeforeUpdate=="function";m||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==r||f!==u)&&xp(t,l,r,u),ir=!1;var h=t.memoizedState;l.state=h,_s(t,r,l,o),f=t.memoizedState,a!==r||h!==f||jt.current||ir?(typeof p=="function"&&(Gu(t,n,p,r),f=t.memoizedState),(a=ir||wp(t,n,a,r,h,f,u))?(m||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=f),l.props=r,l.state=f,l.context=u,r=a):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,qh(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:un(t.type,a),l.props=u,m=t.pendingProps,h=l.context,f=n.contextType,typeof f=="object"&&f!==null?f=tn(f):(f=Mt(n)?Hr:xt.current,f=Do(t,f));var w=n.getDerivedStateFromProps;(p=typeof w=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==m||h!==f)&&xp(t,l,r,f),ir=!1,h=t.memoizedState,l.state=h,_s(t,r,l,o);var C=t.memoizedState;a!==m||h!==C||jt.current||ir?(typeof w=="function"&&(Gu(t,n,w,r),C=t.memoizedState),(u=ir||wp(t,n,u,r,h,C,f)||!1)?(p||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,C,f),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,C,f)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=C),l.props=r,l.state=C,l.context=f,r=u):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Xu(e,t,n,r,i,o)}function Xu(e,t,n,r,o,i){yv(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&fp(t,n,!1),Bn(e,t,i);r=t.stateNode,sS.current=t;var a=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=jo(t,e.child,null,i),t.child=jo(t,null,a,i)):Ct(e,t,a,i),t.memoizedState=r.state,o&&fp(t,n,!0),t.child}function wv(e){var t=e.stateNode;t.pendingContext?cp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&cp(e,t.context,!1),of(e,t.containerInfo)}function Rp(e,t,n,r,o){return Oo(),Zc(o),t.flags|=256,Ct(e,t,n,r),t.child}var Zu={dehydrated:null,treeContext:null,retryLane:0};function Ju(e){return{baseLanes:e,cachePool:null,transitions:null}}function xv(e,t,n){var r=t.pendingProps,o=Ke.current,i=!1,l=(t.flags&128)!==0,a;if((a=l)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),je(Ke,o&1),e===null)return Vu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=oa(l,r,0,null),e=$r(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Ju(n),t.memoizedState=Zu,e):pf(t,l));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return aS(e,t,l,r,a,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,a=o.sibling;var f={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=f,t.deletions=null):(r=gr(o,f),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=gr(a,i):(i=$r(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?Ju(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Zu,r}return i=e.child,e=i.sibling,r=gr(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function pf(e,t){return t=oa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function jl(e,t,n,r){return r!==null&&Zc(r),jo(t,e.child,null,n),e=pf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function aS(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=Xa(Error($(422))),jl(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=oa({mode:"visible",children:r.children},o,0,null),i=$r(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&jo(t,e.child,null,l),t.child.memoizedState=Ju(l),t.memoizedState=Zu,i);if(!(t.mode&1))return jl(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error($(419)),r=Xa(i,r,void 0),jl(e,t,l,r)}if(a=(l&e.childLanes)!==0,Ot||a){if(r=dt,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Un(e,o),pn(r,e,o,-1))}return wf(),r=Xa(Error($(421))),jl(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=SS.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Ut=pr(o.nextSibling),Bt=t,We=!0,fn=null,e!==null&&(Yt[Xt++]=Ln,Yt[Xt++]=Fn,Yt[Xt++]=Ur,Ln=e.id,Fn=e.overflow,Ur=t),t=pf(t,r.children),t.flags|=4096,t)}function Pp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),qu(e.return,t,n)}function Za(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Sv(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ct(e,t,r.children,n),r=Ke.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Pp(e,n,t);else if(e.tag===19)Pp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(je(Ke,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&ks(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Za(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&ks(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Za(t,!0,n,null,i);break;case"together":Za(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rs(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Bn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error($(153));if(t.child!==null){for(e=t.child,n=gr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=gr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function uS(e,t,n){switch(t.tag){case 3:wv(t),Oo();break;case 5:Gh(t);break;case 1:Mt(t.type)&&xs(t);break;case 4:of(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;je(bs,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(je(Ke,Ke.current&1),t.flags|=128,null):n&t.child.childLanes?xv(e,t,n):(je(Ke,Ke.current&1),e=Bn(e,t,n),e!==null?e.sibling:null);je(Ke,Ke.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Sv(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),je(Ke,Ke.current),r)break;return null;case 22:case 23:return t.lanes=0,gv(e,t,n)}return Bn(e,t,n)}var Ev,ec,bv,Cv;Ev=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ec=function(){};bv=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Lr(Nn.current);var i=null;switch(n){case"input":o=Eu(e,o),r=Eu(e,r),i=[];break;case"select":o=Ye({},o,{value:void 0}),r=Ye({},r,{value:void 0}),i=[];break;case"textarea":o=_u(e,o),r=_u(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ys)}Ru(n,r);var l;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(l in a)a.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Di.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var f=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&f!==a&&(f!=null||a!=null))if(u==="style")if(a){for(l in a)!a.hasOwnProperty(l)||f&&f.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in f)f.hasOwnProperty(l)&&a[l]!==f[l]&&(n||(n={}),n[l]=f[l])}else n||(i||(i=[]),i.push(u,n)),n=f;else u==="dangerouslySetInnerHTML"?(f=f?f.__html:void 0,a=a?a.__html:void 0,f!=null&&a!==f&&(i=i||[]).push(u,f)):u==="children"?typeof f!="string"&&typeof f!="number"||(i=i||[]).push(u,""+f):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Di.hasOwnProperty(u)?(f!=null&&u==="onScroll"&&$e("scroll",e),i||a===f||(i=[])):(i=i||[]).push(u,f))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Cv=function(e,t,n,r){n!==r&&(t.flags|=4)};function di(e,t){if(!We)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function yt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function cS(e,t,n){var r=t.pendingProps;switch(Xc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yt(t),null;case 1:return Mt(t.type)&&ws(),yt(t),null;case 3:return r=t.stateNode,Mo(),Ue(jt),Ue(xt),sf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Dl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,fn!==null&&(ac(fn),fn=null))),ec(e,t),yt(t),null;case 5:lf(t);var o=Lr(Wi.current);if(n=t.type,e!==null&&t.stateNode!=null)bv(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error($(166));return yt(t),null}if(e=Lr(Nn.current),Dl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[_n]=t,r[Ui]=i,e=(t.mode&1)!==0,n){case"dialog":$e("cancel",r),$e("close",r);break;case"iframe":case"object":case"embed":$e("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[_n]=t,e[Ui]=r,Ev(e,t,!1,!1),t.stateNode=e;e:{switch(l=Pu(n,r),n){case"dialog":$e("cancel",e),$e("close",e),o=r;break;case"iframe":case"object":case"embed":$e("load",e),o=r;break;case"video":case"audio":for(o=0;oLo&&(t.flags|=128,r=!0,di(i,!1),t.lanes=4194304)}else{if(!r)if(e=ks(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),di(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!We)return yt(t),null}else 2*et()-i.renderingStartTime>Lo&&n!==1073741824&&(t.flags|=128,r=!0,di(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=et(),t.sibling=null,n=Ke.current,je(Ke,r?n&1|2:n&1),t):(yt(t),null);case 22:case 23:return yf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?$t&1073741824&&(yt(t),t.subtreeFlags&6&&(t.flags|=8192)):yt(t),null;case 24:return null;case 25:return null}throw Error($(156,t.tag))}function fS(e,t){switch(Xc(t),t.tag){case 1:return Mt(t.type)&&ws(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mo(),Ue(jt),Ue(xt),sf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return lf(t),null;case 13:if(Ue(Ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($(340));Oo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ue(Ke),null;case 4:return Mo(),null;case 10:return tf(t.type._context),null;case 22:case 23:return yf(),null;case 24:return null;default:return null}}var Ml=!1,wt=!1,dS=typeof WeakSet=="function"?WeakSet:Set,X=null;function wo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ze(e,t,r)}else n.current=null}function tc(e,t,n){try{n()}catch(r){Ze(e,t,r)}}var Np=!1;function pS(e,t){if(Fu=hs,e=Nh(),Qc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,a=-1,f=-1,u=0,p=0,m=e,h=null;t:for(;;){for(var w;m!==n||o!==0&&m.nodeType!==3||(a=l+o),m!==i||r!==0&&m.nodeType!==3||(f=l+r),m.nodeType===3&&(l+=m.nodeValue.length),(w=m.firstChild)!==null;)h=m,m=w;for(;;){if(m===e)break t;if(h===n&&++u===o&&(a=l),h===i&&++p===r&&(f=l),(w=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=w}n=a===-1||f===-1?null:{start:a,end:f}}else n=null}n=n||{start:0,end:0}}else n=null;for(zu={focusedElem:e,selectionRange:n},hs=!1,X=t;X!==null;)if(t=X,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;try{var C=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(C!==null){var b=C.memoizedProps,R=C.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:un(t.type,b),R);y.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var E=t.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($(163))}}catch(_){Ze(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return C=Np,Np=!1,C}function Ni(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&tc(t,n,i)}o=o.next}while(o!==r)}}function na(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function nc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function _v(e){var t=e.alternate;t!==null&&(e.alternate=null,_v(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_n],delete t[Ui],delete t[Uu],delete t[Qx],delete t[Yx])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function kv(e){return e.tag===5||e.tag===3||e.tag===4}function Tp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function rc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ys));else if(r!==4&&(e=e.child,e!==null))for(rc(e,t,n),e=e.sibling;e!==null;)rc(e,t,n),e=e.sibling}function oc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(oc(e,t,n),e=e.sibling;e!==null;)oc(e,t,n),e=e.sibling}var pt=null,cn=!1;function er(e,t,n){for(n=n.child;n!==null;)Rv(e,t,n),n=n.sibling}function Rv(e,t,n){if(Pn&&typeof Pn.onCommitFiberUnmount=="function")try{Pn.onCommitFiberUnmount(Ks,n)}catch{}switch(n.tag){case 5:wt||wo(n,t);case 6:var r=pt,o=cn;pt=null,er(e,t,n),pt=r,cn=o,pt!==null&&(cn?(e=pt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pt.removeChild(n.stateNode));break;case 18:pt!==null&&(cn?(e=pt,n=n.stateNode,e.nodeType===8?Va(e.parentNode,n):e.nodeType===1&&Va(e,n),Li(e)):Va(pt,n.stateNode));break;case 4:r=pt,o=cn,pt=n.stateNode.containerInfo,cn=!0,er(e,t,n),pt=r,cn=o;break;case 0:case 11:case 14:case 15:if(!wt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&tc(n,t,l),o=o.next}while(o!==r)}er(e,t,n);break;case 1:if(!wt&&(wo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ze(n,t,a)}er(e,t,n);break;case 21:er(e,t,n);break;case 22:n.mode&1?(wt=(r=wt)||n.memoizedState!==null,er(e,t,n),wt=r):er(e,t,n);break;default:er(e,t,n)}}function Ap(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new dS),t.forEach(function(r){var o=ES.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function an(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=et()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hS(r/1960))-r,10e?16:e,ur===null)var r=!1;else{if(e=ur,ur=null,As=0,Ce&6)throw Error($(331));var o=Ce;for(Ce|=4,X=e.current;X!==null;){var i=X,l=i.child;if(X.flags&16){var a=i.deletions;if(a!==null){for(var f=0;fet()-vf?zr(e,0):hf|=n),It(e,t)}function Mv(e,t){t===0&&(e.mode&1?(t=kl,kl<<=1,!(kl&130023424)&&(kl=4194304)):t=1);var n=_t();e=Un(e,t),e!==null&&(el(e,t,n),It(e,n))}function SS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Mv(e,n)}function ES(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error($(314))}r!==null&&r.delete(t),Mv(e,n)}var Iv;Iv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||jt.current)Ot=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ot=!1,uS(e,t,n);Ot=!!(e.flags&131072)}else Ot=!1,We&&t.flags&1048576&&$h(t,Es,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rs(e,t),e=t.pendingProps;var o=Do(t,xt.current);_o(t,n),o=uf(null,t,r,e,o,n);var i=cf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mt(r)?(i=!0,xs(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,rf(t),o.updater=ta,t.stateNode=o,o._reactInternals=t,Ku(t,r,e,n),t=Xu(null,t,r,!0,i,n)):(t.tag=0,We&&i&&Yc(t),Ct(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rs(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=CS(r),e=un(r,e),o){case 0:t=Yu(null,t,r,e,n);break e;case 1:t=kp(null,t,r,e,n);break e;case 11:t=Cp(null,t,r,e,n);break e;case 14:t=_p(null,t,r,un(r.type,e),n);break e}throw Error($(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:un(r,o),Yu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:un(r,o),kp(e,t,r,o,n);case 3:e:{if(wv(t),e===null)throw Error($(387));r=t.pendingProps,i=t.memoizedState,o=i.element,qh(e,t),_s(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Io(Error($(423)),t),t=Rp(e,t,r,n,o);break e}else if(r!==o){o=Io(Error($(424)),t),t=Rp(e,t,r,n,o);break e}else for(Ut=pr(t.stateNode.containerInfo.firstChild),Bt=t,We=!0,fn=null,n=Wh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Oo(),r===o){t=Bn(e,t,n);break e}Ct(e,t,r,n)}t=t.child}return t;case 5:return Gh(t),e===null&&Vu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,$u(r,o)?l=null:i!==null&&$u(r,i)&&(t.flags|=32),yv(e,t),Ct(e,t,l,n),t.child;case 6:return e===null&&Vu(t),null;case 13:return xv(e,t,n);case 4:return of(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=jo(t,null,r,n):Ct(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:un(r,o),Cp(e,t,r,o,n);case 7:return Ct(e,t,t.pendingProps,n),t.child;case 8:return Ct(e,t,t.pendingProps.children,n),t.child;case 12:return Ct(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,je(bs,r._currentValue),r._currentValue=l,i!==null)if(mn(i.value,l)){if(i.children===o.children&&!jt.current){t=Bn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var f=a.firstContext;f!==null;){if(f.context===r){if(i.tag===1){f=zn(-1,n&-n),f.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var p=u.pending;p===null?f.next=f:(f.next=p.next,p.next=f),u.pending=f}}i.lanes|=n,f=i.alternate,f!==null&&(f.lanes|=n),qu(i.return,n,t),a.lanes|=n;break}f=f.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error($(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),qu(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Ct(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,_o(t,n),o=tn(o),r=r(o),t.flags|=1,Ct(e,t,r,n),t.child;case 14:return r=t.type,o=un(r,t.pendingProps),o=un(r.type,o),_p(e,t,r,o,n);case 15:return vv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:un(r,o),rs(e,t),t.tag=1,Mt(r)?(e=!0,xs(t)):e=!1,_o(t,n),pv(t,r,o),Ku(t,r,o,n),Xu(null,t,r,!0,e,n);case 19:return Sv(e,t,n);case 22:return gv(e,t,n)}throw Error($(156,t.tag))};function Lv(e,t){return ch(e,t)}function bS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jt(e,t,n,r){return new bS(e,t,n,r)}function xf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function CS(e){if(typeof e=="function")return xf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fc)return 11;if(e===zc)return 14}return 2}function gr(e,t){var n=e.alternate;return n===null?(n=Jt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ls(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")xf(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case uo:return $r(n.children,o,i,t);case Lc:l=8,o|=8;break;case yu:return e=Jt(12,n,t,o|2),e.elementType=yu,e.lanes=i,e;case wu:return e=Jt(13,n,t,o),e.elementType=wu,e.lanes=i,e;case xu:return e=Jt(19,n,t,o),e.elementType=xu,e.lanes=i,e;case Gm:return oa(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vm:l=10;break e;case qm:l=9;break e;case Fc:l=11;break e;case zc:l=14;break e;case or:l=16,r=null;break e}throw Error($(130,e==null?e:typeof e,""))}return t=Jt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function $r(e,t,n,r){return e=Jt(7,e,r,t),e.lanes=n,e}function oa(e,t,n,r){return e=Jt(22,e,r,t),e.elementType=Gm,e.lanes=n,e.stateNode={isHidden:!1},e}function Ja(e,t,n){return e=Jt(6,e,null,t),e.lanes=n,e}function eu(e,t,n){return t=Jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _S(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ja(0),this.expirationTimes=ja(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ja(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Sf(e,t,n,r,o,i,l,a,f){return e=new _S(e,t,n,a,f),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Jt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rf(i),e}function kS(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hv)}catch(e){console.error(e)}}Hv(),Hm.exports=qt;var Zr=Hm.exports;const AS=Zi(Zr);var zp=Zr;vu.createRoot=zp.createRoot,vu.hydrateRoot=zp.hydrateRoot;var DS={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const $p=e=>{let t;const n=new Set,r=(p,m)=>{const h=typeof p=="function"?p(t):p;if(!Object.is(h,t)){const w=t;t=m??(typeof h!="object"||h===null)?h:Object.assign({},t,h),n.forEach(C=>C(t,w))}},o=()=>t,f={setState:r,getState:o,getInitialState:()=>u,subscribe:p=>(n.add(p),()=>n.delete(p)),destroy:()=>{(DS?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,o,f);return f},OS=e=>e?$p(e):$p;var Uv={exports:{}},Bv={},Wv={exports:{}},Vv={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -53,130 +53,130 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ua=v,WS=BS;function VS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qS=typeof Object.is=="function"?Object.is:VS,GS=WS.useSyncExternalStore,KS=ua.useRef,QS=ua.useEffect,YS=ua.useMemo,XS=ua.useDebugValue;Bv.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=KS(null);if(i.current===null){var l={hasValue:!1,value:null};i.current=l}else l=i.current;i=YS(function(){function f(w){if(!u){if(u=!0,p=w,w=r(w),o!==void 0&&l.hasValue){var C=l.value;if(o(C,w))return m=C}return m=w}if(C=m,qS(p,w))return C;var E=r(w);return o!==void 0&&o(C,E)?C:(p=w,m=E)}var u=!1,p,m,h=n===void 0?null:n;return[function(){return f(t())},h===null?void 0:function(){return f(h())}]},[t,n,r,o]);var a=GS(e,i[0],i[1]);return QS(function(){l.hasValue=!0,l.value=a},[a]),XS(a),a};Uv.exports=Bv;var ZS=Uv.exports;const JS=Zi(ZS);var qv={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:eE}=Q,{useSyncExternalStoreWithSelector:tE}=JS;let Hp=!1;const nE=e=>e;function rE(e,t=nE,n){(qv?"production":void 0)!=="production"&&n&&!Hp&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Hp=!0);const r=tE(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return eE(r),r}const Up=e=>{(qv?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?OS(e):e,n=(r,o)=>rE(t,r,o);return Object.assign(n,t),n},oE=e=>e?Up(e):Up;var Gv={exports:{}};const iE={},lE=Object.freeze(Object.defineProperty({__proto__:null,default:iE},Symbol.toStringTag,{value:"Module"})),nu=o1(lE);(function(e,t){var n=void 0,r=function(o){return n||(n=new Promise(function(i,l){var a=typeof o<"u"?o:{},f=a.onAbort;a.onAbort=function(s){l(new Error(s)),f&&f(s)},a.postRun=a.postRun||[],a.postRun.push(function(){i(a)}),e=void 0;var u;u||(u=typeof a<"u"?a:{}),u.onRuntimeInitialized=function(){function s(N,L){switch(typeof L){case"boolean":t1(N,L?1:0);break;case"number":Zw(N,L);break;case"string":Jw(N,L,-1,-1);break;case"object":if(L===null)Pd(N);else if(L.length!=null){var te=hl(L,ml);e1(N,te,L.length,-1),yl(te)}else xl(N,"Wrong API use : tried to return a value of an unknown type ("+L+").",-1);break;default:Pd(N)}}function c(N,L){for(var te=[],ce=0;ce>>0),N!=null){var L=this.filename,te="/",ce=L;if(te&&(te=typeof te=="string"?te:Zo(te),ce=L?Lt(te+"/"+L):te),L=De(!0,!0),ce=al(ce,(L!==void 0?L:438)&4095|32768,0),N){if(typeof N=="string"){te=Array(N.length);for(var we=0,Oe=N.length;we(s=_e(s)?new URL(s):_.normalize(s),b.readFileSync(s,c?void 0:"utf8")),g=s=>(s=R(s,!0),s.buffer||(s=new Uint8Array(s)),s),y=(s,c,d,S=!0)=>{s=_e(s)?new URL(s):_.normalize(s),b.readFile(s,S?void 0:"utf8",(k,D)=>{k?d(k):c(S?D.buffer:D)})},!u.thisProgram&&1"[Emscripten Module object]"}else(h||w)&&(w?E=self.location.href:typeof document<"u"&&document.currentScript&&(E=document.currentScript.src),E=E.indexOf("blob:")!==0?E.substr(0,E.replace(/[?#].*/,"").lastIndexOf("/")+1):"",R=s=>{var c=new XMLHttpRequest;return c.open("GET",s,!1),c.send(null),c.responseText},w&&(g=s=>{var c=new XMLHttpRequest;return c.open("GET",s,!1),c.responseType="arraybuffer",c.send(null),new Uint8Array(c.response)}),y=(s,c,d)=>{var S=new XMLHttpRequest;S.open("GET",s,!0),S.responseType="arraybuffer",S.onload=()=>{S.status==200||S.status==0&&S.response?c(S.response):d()},S.onerror=d,S.send(null)});var P=u.print||console.log.bind(console),A=u.printErr||console.error.bind(console);Object.assign(u,p),p=null,u.thisProgram&&(m=u.thisProgram);var T;u.wasmBinary&&(T=u.wasmBinary),typeof WebAssembly!="object"&&ve("no native wasm support detected");var O,I=!1,j,$,U,F,W,Z,le;function ne(){var s=O.buffer;u.HEAP8=j=new Int8Array(s),u.HEAP16=U=new Int16Array(s),u.HEAPU8=$=new Uint8Array(s),u.HEAPU16=new Uint16Array(s),u.HEAP32=F=new Int32Array(s),u.HEAPU32=W=new Uint32Array(s),u.HEAPF32=Z=new Float32Array(s),u.HEAPF64=le=new Float64Array(s)}var z=[],V=[],ee=[];function se(){var s=u.preRun.shift();z.unshift(s)}var ue=0,qe=null;function ve(s){var c;throw(c=u.onAbort)==null||c.call(u,s),s="Aborted("+s+")",A(s),I=!0,new WebAssembly.RuntimeError(s+". Build with -sASSERTIONS for more info.")}var Xe=s=>s.startsWith("data:application/octet-stream;base64,"),_e=s=>s.startsWith("file://"),J;if(J="sql-wasm.wasm",!Xe(J)){var ye=J;J=u.locateFile?u.locateFile(ye,E):E+ye}function Ie(s){if(s==J&&T)return new Uint8Array(T);if(g)return g(s);throw"both async and sync fetching of the wasm failed"}function K(s){if(!T&&(h||w)){if(typeof fetch=="function"&&!_e(s))return fetch(s,{credentials:"same-origin"}).then(c=>{if(!c.ok)throw"failed to load wasm binary file at '"+s+"'";return c.arrayBuffer()}).catch(()=>Ie(s));if(y)return new Promise((c,d)=>{y(s,S=>c(new Uint8Array(S)),d)})}return Promise.resolve().then(()=>Ie(s))}function ge(s,c,d){return K(s).then(S=>WebAssembly.instantiate(S,c)).then(S=>S).then(d,S=>{A(`failed to asynchronously prepare wasm: ${S}`),ve(S)})}function de(s,c){var d=J;T||typeof WebAssembly.instantiateStreaming!="function"||Xe(d)||_e(d)||C||typeof fetch!="function"?ge(d,s,c):fetch(d,{credentials:"same-origin"}).then(S=>WebAssembly.instantiateStreaming(S,s).then(c,function(k){return A(`wasm streaming compile failed: ${k}`),A("falling back to ArrayBuffer instantiation"),ge(d,s,c)}))}var Y,me,ut=s=>{for(;0>0];case"i8":return j[s>>0];case"i16":return U[s>>1];case"i32":return F[s>>2];case"i64":ve("to do getValue(i64) use WASM_BIGINT");case"float":return Z[s>>2];case"double":return le[s>>3];case"*":return W[s>>2];default:ve(`invalid type for getValue: ${c}`)}}function tt(s){var c="i32";switch(c.endsWith("*")&&(c="*"),c){case"i1":j[s>>0]=0;break;case"i8":j[s>>0]=0;break;case"i16":U[s>>1]=0;break;case"i32":F[s>>2]=0;break;case"i64":ve("to do setValue(i64) use WASM_BIGINT");case"float":Z[s>>2]=0;break;case"double":le[s>>3]=0;break;case"*":W[s>>2]=0;break;default:ve(`invalid type for setValue: ${c}`)}}var Tt=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,ke=(s,c,d)=>{var S=c+d;for(d=c;s[d]&&!(d>=S);)++d;if(16k?S+=String.fromCharCode(k):(k-=65536,S+=String.fromCharCode(55296|k>>10,56320|k&1023))}}else S+=String.fromCharCode(k)}return S},rn=(s,c)=>s?ke($,s,c):"",Jr=(s,c)=>{for(var d=0,S=s.length-1;0<=S;S--){var k=s[S];k==="."?s.splice(S,1):k===".."?(s.splice(S,1),d++):d&&(s.splice(S,1),d--)}if(c)for(;d;d--)s.unshift("..");return s},Lt=s=>{var c=s.charAt(0)==="/",d=s.substr(-1)==="/";return(s=Jr(s.split("/").filter(S=>!!S),!c).join("/"))||c||(s="."),s&&d&&(s+="/"),(c?"/":"")+s},yn=s=>{var c=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(s).slice(1);return s=c[0],c=c[1],!s&&!c?".":(c&&(c=c.substr(0,c.length-1)),s+c)},G=s=>{if(s==="/")return"/";s=Lt(s),s=s.replace(/\/$/,"");var c=s.lastIndexOf("/");return c===-1?s:s.substr(c+1)},oe=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return d=>crypto.getRandomValues(d);if(C)try{var s=nu;if(s.randomFillSync)return d=>s.randomFillSync(d);var c=s.randomBytes;return d=>(d.set(c(d.byteLength)),d)}catch{}ve("initRandomDevice")},Le=s=>(Le=oe())(s);function Pe(){for(var s="",c=!1,d=arguments.length-1;-1<=d&&!c;d--){if(c=0<=d?arguments[d]:"/",typeof c!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!c)return"";s=c+"/"+s,c=c.charAt(0)==="/"}return s=Jr(s.split("/").filter(S=>!!S),!c).join("/"),(c?"/":"")+s||"."}var nt=[],Nt=s=>{for(var c=0,d=0;d=S?c++:2047>=S?c+=2:55296<=S&&57343>=S?(c+=4,++d):c+=3}return c},St=(s,c,d,S)=>{if(!(0=M){var ae=s.charCodeAt(++D);M=65536+((M&1023)<<10)|ae&1023}if(127>=M){if(d>=S)break;c[d++]=M}else{if(2047>=M){if(d+1>=S)break;c[d++]=192|M>>6}else{if(65535>=M){if(d+2>=S)break;c[d++]=224|M>>12}else{if(d+3>=S)break;c[d++]=240|M>>18,c[d++]=128|M>>12&63}c[d++]=128|M>>6&63}c[d++]=128|M&63}}return c[d]=0,d-k};function on(s,c){var d=Array(Nt(s)+1);return s=St(s,d,0,d.length),c&&(d.length=s),d}var Yn=[];function Xn(s,c){Yn[s]={input:[],output:[],Xa:c},xa(s,Zn)}var Zn={open(s){var c=Yn[s.node.rdev];if(!c)throw new B(43);s.tty=c,s.seekable=!1},close(s){s.tty.Xa.fsync(s.tty)},fsync(s){s.tty.Xa.fsync(s.tty)},read(s,c,d,S){if(!s.tty||!s.tty.Xa.sb)throw new B(60);for(var k=0,D=0;De;function rE(e,t=nE,n){(qv?"production":void 0)!=="production"&&n&&!Hp&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Hp=!0);const r=tE(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return eE(r),r}const Up=e=>{(qv?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?OS(e):e,n=(r,o)=>rE(t,r,o);return Object.assign(n,t),n},oE=e=>e?Up(e):Up;var Gv={exports:{}};const iE={},lE=Object.freeze(Object.defineProperty({__proto__:null,default:iE},Symbol.toStringTag,{value:"Module"})),nu=o1(lE);(function(e,t){var n=void 0,r=function(o){return n||(n=new Promise(function(i,l){var a=typeof o<"u"?o:{},f=a.onAbort;a.onAbort=function(s){l(new Error(s)),f&&f(s)},a.postRun=a.postRun||[],a.postRun.push(function(){i(a)}),e=void 0;var u;u||(u=typeof a<"u"?a:{}),u.onRuntimeInitialized=function(){function s(T,L){switch(typeof L){case"boolean":t1(T,L?1:0);break;case"number":Zw(T,L);break;case"string":Jw(T,L,-1,-1);break;case"object":if(L===null)Pd(T);else if(L.length!=null){var te=hl(L,ml);e1(T,te,L.length,-1),yl(te)}else xl(T,"Wrong API use : tried to return a value of an unknown type ("+L+").",-1);break;default:Pd(T)}}function c(T,L){for(var te=[],ce=0;ce>>0),T!=null){var L=this.filename,te="/",ce=L;if(te&&(te=typeof te=="string"?te:Zo(te),ce=L?Lt(te+"/"+L):te),L=De(!0,!0),ce=al(ce,(L!==void 0?L:438)&4095|32768,0),T){if(typeof T=="string"){te=Array(T.length);for(var we=0,Oe=T.length;we(s=_e(s)?new URL(s):_.normalize(s),E.readFileSync(s,c?void 0:"utf8")),g=s=>(s=R(s,!0),s.buffer||(s=new Uint8Array(s)),s),y=(s,c,d,S=!0)=>{s=_e(s)?new URL(s):_.normalize(s),E.readFile(s,S?void 0:"utf8",(k,D)=>{k?d(k):c(S?D.buffer:D)})},!u.thisProgram&&1"[Emscripten Module object]"}else(h||w)&&(w?b=self.location.href:typeof document<"u"&&document.currentScript&&(b=document.currentScript.src),b=b.indexOf("blob:")!==0?b.substr(0,b.replace(/[?#].*/,"").lastIndexOf("/")+1):"",R=s=>{var c=new XMLHttpRequest;return c.open("GET",s,!1),c.send(null),c.responseText},w&&(g=s=>{var c=new XMLHttpRequest;return c.open("GET",s,!1),c.responseType="arraybuffer",c.send(null),new Uint8Array(c.response)}),y=(s,c,d)=>{var S=new XMLHttpRequest;S.open("GET",s,!0),S.responseType="arraybuffer",S.onload=()=>{S.status==200||S.status==0&&S.response?c(S.response):d()},S.onerror=d,S.send(null)});var P=u.print||console.log.bind(console),A=u.printErr||console.error.bind(console);Object.assign(u,p),p=null,u.thisProgram&&(m=u.thisProgram);var N;u.wasmBinary&&(N=u.wasmBinary),typeof WebAssembly!="object"&&ve("no native wasm support detected");var O,I=!1,j,H,U,F,W,Z,le;function ne(){var s=O.buffer;u.HEAP8=j=new Int8Array(s),u.HEAP16=U=new Int16Array(s),u.HEAPU8=H=new Uint8Array(s),u.HEAPU16=new Uint16Array(s),u.HEAP32=F=new Int32Array(s),u.HEAPU32=W=new Uint32Array(s),u.HEAPF32=Z=new Float32Array(s),u.HEAPF64=le=new Float64Array(s)}var z=[],V=[],ee=[];function se(){var s=u.preRun.shift();z.unshift(s)}var ue=0,qe=null;function ve(s){var c;throw(c=u.onAbort)==null||c.call(u,s),s="Aborted("+s+")",A(s),I=!0,new WebAssembly.RuntimeError(s+". Build with -sASSERTIONS for more info.")}var Xe=s=>s.startsWith("data:application/octet-stream;base64,"),_e=s=>s.startsWith("file://"),J;if(J="sql-wasm.wasm",!Xe(J)){var ye=J;J=u.locateFile?u.locateFile(ye,b):b+ye}function Ie(s){if(s==J&&N)return new Uint8Array(N);if(g)return g(s);throw"both async and sync fetching of the wasm failed"}function K(s){if(!N&&(h||w)){if(typeof fetch=="function"&&!_e(s))return fetch(s,{credentials:"same-origin"}).then(c=>{if(!c.ok)throw"failed to load wasm binary file at '"+s+"'";return c.arrayBuffer()}).catch(()=>Ie(s));if(y)return new Promise((c,d)=>{y(s,S=>c(new Uint8Array(S)),d)})}return Promise.resolve().then(()=>Ie(s))}function ge(s,c,d){return K(s).then(S=>WebAssembly.instantiate(S,c)).then(S=>S).then(d,S=>{A(`failed to asynchronously prepare wasm: ${S}`),ve(S)})}function de(s,c){var d=J;N||typeof WebAssembly.instantiateStreaming!="function"||Xe(d)||_e(d)||C||typeof fetch!="function"?ge(d,s,c):fetch(d,{credentials:"same-origin"}).then(S=>WebAssembly.instantiateStreaming(S,s).then(c,function(k){return A(`wasm streaming compile failed: ${k}`),A("falling back to ArrayBuffer instantiation"),ge(d,s,c)}))}var Y,me,ut=s=>{for(;0>0];case"i8":return j[s>>0];case"i16":return U[s>>1];case"i32":return F[s>>2];case"i64":ve("to do getValue(i64) use WASM_BIGINT");case"float":return Z[s>>2];case"double":return le[s>>3];case"*":return W[s>>2];default:ve(`invalid type for getValue: ${c}`)}}function tt(s){var c="i32";switch(c.endsWith("*")&&(c="*"),c){case"i1":j[s>>0]=0;break;case"i8":j[s>>0]=0;break;case"i16":U[s>>1]=0;break;case"i32":F[s>>2]=0;break;case"i64":ve("to do setValue(i64) use WASM_BIGINT");case"float":Z[s>>2]=0;break;case"double":le[s>>3]=0;break;case"*":W[s>>2]=0;break;default:ve(`invalid type for setValue: ${c}`)}}var Nt=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,ke=(s,c,d)=>{var S=c+d;for(d=c;s[d]&&!(d>=S);)++d;if(16k?S+=String.fromCharCode(k):(k-=65536,S+=String.fromCharCode(55296|k>>10,56320|k&1023))}}else S+=String.fromCharCode(k)}return S},rn=(s,c)=>s?ke(H,s,c):"",Jr=(s,c)=>{for(var d=0,S=s.length-1;0<=S;S--){var k=s[S];k==="."?s.splice(S,1):k===".."?(s.splice(S,1),d++):d&&(s.splice(S,1),d--)}if(c)for(;d;d--)s.unshift("..");return s},Lt=s=>{var c=s.charAt(0)==="/",d=s.substr(-1)==="/";return(s=Jr(s.split("/").filter(S=>!!S),!c).join("/"))||c||(s="."),s&&d&&(s+="/"),(c?"/":"")+s},yn=s=>{var c=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(s).slice(1);return s=c[0],c=c[1],!s&&!c?".":(c&&(c=c.substr(0,c.length-1)),s+c)},G=s=>{if(s==="/")return"/";s=Lt(s),s=s.replace(/\/$/,"");var c=s.lastIndexOf("/");return c===-1?s:s.substr(c+1)},oe=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return d=>crypto.getRandomValues(d);if(C)try{var s=nu;if(s.randomFillSync)return d=>s.randomFillSync(d);var c=s.randomBytes;return d=>(d.set(c(d.byteLength)),d)}catch{}ve("initRandomDevice")},Le=s=>(Le=oe())(s);function Pe(){for(var s="",c=!1,d=arguments.length-1;-1<=d&&!c;d--){if(c=0<=d?arguments[d]:"/",typeof c!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!c)return"";s=c+"/"+s,c=c.charAt(0)==="/"}return s=Jr(s.split("/").filter(S=>!!S),!c).join("/"),(c?"/":"")+s||"."}var nt=[],Tt=s=>{for(var c=0,d=0;d=S?c++:2047>=S?c+=2:55296<=S&&57343>=S?(c+=4,++d):c+=3}return c},St=(s,c,d,S)=>{if(!(0=M){var ae=s.charCodeAt(++D);M=65536+((M&1023)<<10)|ae&1023}if(127>=M){if(d>=S)break;c[d++]=M}else{if(2047>=M){if(d+1>=S)break;c[d++]=192|M>>6}else{if(65535>=M){if(d+2>=S)break;c[d++]=224|M>>12}else{if(d+3>=S)break;c[d++]=240|M>>18,c[d++]=128|M>>12&63}c[d++]=128|M>>6&63}c[d++]=128|M&63}}return c[d]=0,d-k};function on(s,c){var d=Array(Tt(s)+1);return s=St(s,d,0,d.length),c&&(d.length=s),d}var Yn=[];function Xn(s,c){Yn[s]={input:[],output:[],Xa:c},xa(s,Zn)}var Zn={open(s){var c=Yn[s.node.rdev];if(!c)throw new B(43);s.tty=c,s.seekable=!1},close(s){s.tty.Xa.fsync(s.tty)},fsync(s){s.tty.Xa.fsync(s.tty)},read(s,c,d,S){if(!s.tty||!s.tty.Xa.sb)throw new B(60);for(var k=0,D=0;D=c||(c=Math.max(c,d*(1048576>d?2:1.125)>>>0),d!=0&&(c=Math.max(c,256)),d=s.Ia,s.Ia=new Uint8Array(c),0=s.node.Ma)return 0;if(s=Math.min(s.node.Ma-k,S),8c)throw new B(28);return c},lb(s,c,d){Re(s.node,c+d),s.node.Ma=Math.max(s.node.Ma,c+d)},bb(s,c,d,S,k){if((s.node.mode&61440)!==32768)throw new B(43);if(s=s.node.Ia,k&2||s.buffer!==j.buffer){if((0{var d=0;return s&&(d|=365),c&&(d|=146),d},Be=null,Et={},vt=[],wn=1,Ft=null,xn=!0,B=null,eo={};function At(s,c={}){if(s=Pe(s),!s)return{path:"",node:null};if(c=Object.assign({qb:!0,kb:0},c),8!!M);for(var d=Be,S="/",k=0;k>>0)%Ft.length}function Jf(s){var c=wa(s.parent.id,s.name);if(Ft[c]===s)Ft[c]=s.Wa;else for(c=Ft[c];c;){if(c.Wa===s){c.Wa=s.Wa;break}c=c.Wa}}function Rr(s,c){var d;if(d=(d=to(s,"x"))?d:s.Ga.lookup?0:2)throw new B(d,s);for(d=Ft[wa(s.id,c)];d;d=d.Wa){var S=d.name;if(d.parent.id===s.id&&S===c)return d}return s.Ga.lookup(s,c)}function ed(s,c,d,S){return s=new wd(s,c,d,S),c=wa(s.parent.id,s.name),s.Wa=Ft[c],Ft[c]=s}function Kt(s){return(s&61440)===16384}function td(s){var c=["r","w","rw"][s&3];return s&512&&(c+="w"),c}function to(s,c){if(xn)return 0;if(!c.includes("r")||s.mode&292){if(c.includes("w")&&!(s.mode&146)||c.includes("x")&&!(s.mode&73))return 2}else return 2;return 0}function nd(s,c){try{return Rr(s,c),20}catch{}return to(s,"wx")}function rd(s,c,d){try{var S=Rr(s,c)}catch(k){return k.Ka}if(s=to(s,"wx"))return s;if(d){if(!Kt(S.mode))return 54;if(S===S.parent||Zo(S)==="/")return 10}else if(Kt(S.mode))return 31;return 0}function bw(){for(var s=0;4096>=s;s++)if(!vt[s])return s;throw new B(33)}function bt(s){if(s=vt[s],!s)throw new B(8);return s}function od(s,c=-1){return ti||(ti=function(){this.$a={}},ti.prototype={},Object.defineProperties(ti.prototype,{object:{get(){return this.node},set(d){this.node=d}},flags:{get(){return this.$a.flags},set(d){this.$a.flags=d}},position:{get(){return this.$a.position},set(d){this.$a.position=d}}})),s=Object.assign(new ti,s),c==-1&&(c=bw()),s.fd=c,vt[c]=s}var Cw={open(s){var c,d;s.Ha=Et[s.node.rdev].Ha,(d=(c=s.Ha).open)==null||d.call(c,s)},Ta(){throw new B(70)}};function xa(s,c){Et[s]={Ha:c}}function id(s,c){var d=c==="/",S=!c;if(d&&Be)throw new B(10);if(!d&&!S){var k=At(c,{qb:!1});if(c=k.path,k=k.node,k.Va)throw new B(10);if(!Kt(k.mode))throw new B(54)}c={type:s,Pb:{},tb:c,Cb:[]},s=s.Ra(c),s.Ra=c,c.root=s,d?Be=s:k&&(k.Va=c,k.Ra&&k.Ra.Cb.push(c))}function al(s,c,d){var S=At(s,{parent:!0}).node;if(s=G(s),!s||s==="."||s==="..")throw new B(28);var k=nd(S,s);if(k)throw new B(k);if(!S.Ga.ab)throw new B(63);return S.Ga.ab(S,s,c,d)}function Sn(s,c){return al(s,(c!==void 0?c:511)&1023|16384,0)}function ul(s,c,d){typeof d>"u"&&(d=c,c=438),al(s,c|8192,d)}function Sa(s,c){if(!Pe(s))throw new B(44);var d=At(c,{parent:!0}).node;if(!d)throw new B(44);c=G(c);var S=nd(d,c);if(S)throw new B(S);if(!d.Ga.symlink)throw new B(63);d.Ga.symlink(d,c,s)}function ld(s){var c=At(s,{parent:!0}).node;s=G(s);var d=Rr(c,s),S=rd(c,s,!0);if(S)throw new B(S);if(!c.Ga.rmdir)throw new B(63);if(d.Va)throw new B(10);c.Ga.rmdir(c,s),Jf(d)}function sd(s){var c=At(s,{parent:!0}).node;if(!c)throw new B(44);s=G(s);var d=Rr(c,s),S=rd(c,s,!1);if(S)throw new B(S);if(!c.Ga.unlink)throw new B(63);if(d.Va)throw new B(10);c.Ga.unlink(c,s),Jf(d)}function ad(s){if(s=At(s).node,!s)throw new B(44);if(!s.Ga.readlink)throw new B(28);return Pe(Zo(s.parent),s.Ga.readlink(s))}function Jo(s,c){if(s=At(s,{Sa:!c}).node,!s)throw new B(44);if(!s.Ga.Pa)throw new B(63);return s.Ga.Pa(s)}function ud(s){return Jo(s,!0)}function cl(s,c){if(s=typeof s=="string"?At(s,{Sa:!0}).node:s,!s.Ga.Oa)throw new B(63);s.Ga.Oa(s,{mode:c&4095|s.mode&-4096,timestamp:Date.now()})}function cd(s,c){if(0>c)throw new B(28);if(s=typeof s=="string"?At(s,{Sa:!0}).node:s,!s.Ga.Oa)throw new B(63);if(Kt(s.mode))throw new B(31);if((s.mode&61440)!==32768)throw new B(28);var d=to(s,"w");if(d)throw new B(d);s.Ga.Oa(s,{size:c,timestamp:Date.now()})}function no(s,c,d){if(s==="")throw new B(44);if(typeof c=="string"){var S={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[c];if(typeof S>"u")throw Error(`Unknown file open mode: ${c}`);c=S}if(d=c&64?(typeof d>"u"?438:d)&4095|32768:0,typeof s=="object")var k=s;else{s=Lt(s);try{k=At(s,{Sa:!(c&131072)}).node}catch{}}if(S=!1,c&64)if(k){if(c&128)throw new B(20)}else k=al(s,d,0),S=!0;if(!k)throw new B(44);if((k.mode&61440)===8192&&(c&=-513),c&65536&&!Kt(k.mode))throw new B(54);if(!S&&(d=k?(k.mode&61440)===40960?32:Kt(k.mode)&&(td(c)!=="r"||c&512)?31:to(k,td(c)):44))throw new B(d);return c&512&&!S&&cd(k,0),c&=-131713,k=od({node:k,path:Zo(k),flags:c,seekable:!0,position:0,Ha:k.Ha,Fb:[],error:!1}),k.Ha.open&&k.Ha.open(k),!u.logReadFiles||c&1||(ba||(ba={}),s in ba||(ba[s]=1)),k}function Ea(s){if(s.fd===null)throw new B(8);s.hb&&(s.hb=null);try{s.Ha.close&&s.Ha.close(s)}catch(c){throw c}finally{vt[s.fd]=null}s.fd=null}function fd(s,c,d){if(s.fd===null)throw new B(8);if(!s.seekable||!s.Ha.Ta)throw new B(70);if(d!=0&&d!=1&&d!=2)throw new B(28);s.position=s.Ha.Ta(s,c,d),s.Fb=[]}function dd(s,c,d,S,k){if(0>S||0>k)throw new B(28);if(s.fd===null)throw new B(8);if((s.flags&2097155)===1)throw new B(8);if(Kt(s.node.mode))throw new B(31);if(!s.Ha.read)throw new B(28);var D=typeof k<"u";if(!D)k=s.position;else if(!s.seekable)throw new B(70);return c=s.Ha.read(s,c,d,S,k),D||(s.position+=c),c}function pd(s,c,d,S,k){if(0>S||0>k)throw new B(28);if(s.fd===null)throw new B(8);if(!(s.flags&2097155))throw new B(8);if(Kt(s.node.mode))throw new B(31);if(!s.Ha.write)throw new B(28);s.seekable&&s.flags&1024&&fd(s,0,2);var D=typeof k<"u";if(!D)k=s.position;else if(!s.seekable)throw new B(70);return c=s.Ha.write(s,c,d,S,k,void 0),D||(s.position+=c),c}function _w(s){var c,d=no(s,d||0);s=Jo(s).size;var S=new Uint8Array(s);return dd(d,S,0,s,0),c=S,Ea(d),c}function md(){B||(B=function(s,c){this.name="ErrnoError",this.node=c,this.Eb=function(d){this.Ka=d},this.Eb(s),this.message="FS error"},B.prototype=Error(),B.prototype.constructor=B,[44].forEach(s=>{eo[s]=new B(s),eo[s].stack=""}))}var hd;function ei(s,c,d){s=Lt("/dev/"+s);var S=De(!!c,!!d);vd||(vd=64);var k=vd++<<8|0;xa(k,{open(D){D.seekable=!1},close(){var D;(D=d==null?void 0:d.buffer)!=null&&D.length&&d(10)},read(D,M,ae,Ee){for(var he=0,rt=0;rt>2]=S.dev,F[d+4>>2]=S.mode,W[d+8>>2]=S.nlink,F[d+12>>2]=S.uid,F[d+16>>2]=S.gid,F[d+20>>2]=S.rdev,me=[S.size>>>0,(Y=S.size,1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[d+24>>2]=me[0],F[d+28>>2]=me[1],F[d+32>>2]=4096,F[d+36>>2]=S.blocks,s=S.atime.getTime(),c=S.mtime.getTime();var k=S.ctime.getTime();return me=[Math.floor(s/1e3)>>>0,(Y=Math.floor(s/1e3),1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[d+40>>2]=me[0],F[d+44>>2]=me[1],W[d+48>>2]=s%1e3*1e3,me=[Math.floor(c/1e3)>>>0,(Y=Math.floor(c/1e3),1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[d+56>>2]=me[0],F[d+60>>2]=me[1],W[d+64>>2]=c%1e3*1e3,me=[Math.floor(k/1e3)>>>0,(Y=Math.floor(k/1e3),1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[d+72>>2]=me[0],F[d+76>>2]=me[1],W[d+80>>2]=k%1e3*1e3,me=[S.ino>>>0,(Y=S.ino,1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[d+88>>2]=me[0],F[d+92>>2]=me[1],0}var dl=void 0;function pl(){var s=F[+dl>>2];return dl+=4,s}var ni=(s,c)=>c+2097152>>>0<4194305-!!s?(s>>>0)+4294967296*c:NaN,kw=[0,31,60,91,121,152,182,213,244,274,305,335],Rw=[0,31,59,90,120,151,181,212,243,273,304,334],gd=s=>{var c=Nt(s)+1,d=gl(c);return d&&St(s,$,d,c),d},Ca={},yd=()=>{if(!_a){var s={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:m||"./this.program"},c;for(c in Ca)Ca[c]===void 0?delete s[c]:s[c]=Ca[c];var d=[];for(c in s)d.push(`${c}=${s[c]}`);_a=d}return _a},_a,ka=s=>{var c=Nt(s)+1,d=Jn(c);return St(s,$,d,c),d},Pw=(s,c,d,S)=>{var k={string:he=>{var rt=0;return he!=null&&he!==0&&(rt=ka(he)),rt},array:he=>{var rt=Jn(he.length);return j.set(he,rt),rt}};s=u["_"+s];var D=[],M=0;if(S)for(var ae=0;ae(c=c==1?Jn(s.length):gl(s.length),s.subarray||s.slice||(s=new Uint8Array(s)),$.set(s,c),c),Tr,Ra=[],Dn,ro=s=>{Tr.delete(Dn.get(s)),Dn.set(s,null),Ra.push(s)},vl=(s,c)=>{if(!Tr){Tr=new WeakMap;var d=Dn.length;if(Tr)for(var S=0;S<0+d;S++){var k=Dn.get(S);k&&Tr.set(k,S)}}if(d=Tr.get(s)||0)return d;if(Ra.length)d=Ra.pop();else{try{Dn.grow(1)}catch(ae){throw ae instanceof RangeError?"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.":ae}d=Dn.length-1}try{Dn.set(d,s)}catch(ae){if(!(ae instanceof TypeError))throw ae;if(typeof WebAssembly.Function=="function"){S=WebAssembly.Function,k={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"};for(var D={parameters:[],results:c[0]=="v"?[]:[k[c[0]]]},M=1;MM?S.push(M):S.push(M%128|128,M>>7),M=0;Mk?c.push(k):c.push(k%128|128,k>>7),c.push.apply(c,S),c.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),c=new WebAssembly.Module(new Uint8Array(c)),c=new WebAssembly.Instance(c,{e:{f:s}}).exports.f}Dn.set(d,c)}return Tr.set(s,d),d};function wd(s,c,d,S){s||(s=this),this.parent=s,this.Ra=s.Ra,this.Va=null,this.id=wn++,this.name=c,this.mode=d,this.Ga={},this.Ha={},this.rdev=S}Object.defineProperties(wd.prototype,{read:{get:function(){return(this.mode&365)===365},set:function(s){s?this.mode|=365:this.mode&=-366}},write:{get:function(){return(this.mode&146)===146},set:function(s){s?this.mode|=146:this.mode&=-147}}}),md(),Ft=Array(4096),id(q,"/"),Sn("/tmp"),Sn("/home"),Sn("/home/web_user"),function(){Sn("/dev"),xa(259,{read:()=>0,write:(S,k,D,M)=>M}),ul("/dev/null",259),Xn(1280,ie),Xn(1536,fe),ul("/dev/tty",1280),ul("/dev/tty1",1536);var s=new Uint8Array(1024),c=0,d=()=>(c===0&&(c=Le(s).byteLength),s[--c]);ei("random",d),ei("urandom",d),Sn("/dev/shm"),Sn("/dev/shm/tmp")}(),function(){Sn("/proc");var s=Sn("/proc/self");Sn("/proc/self/fd"),id({Ra(){var c=ed(s,"fd",16895,73);return c.Ga={lookup(d,S){var k=bt(+S);return d={parent:null,Ra:{tb:"fake"},Ga:{readlink:()=>k.path}},d.parent=d}},c}},"/proc/self/fd")}();var Tw={a:(s,c,d,S)=>{ve(`Assertion failed: ${s?ke($,s):""}, at: `+[c?c?ke($,c):"":"unknown filename",d,S?S?ke($,S):"":"unknown function"])},h:function(s,c){try{return s=s?ke($,s):"",cl(s,c),0}catch(d){if(typeof Fe>"u"||d.name!=="ErrnoError")throw d;return-d.Ka}},H:function(s,c,d){try{if(c=c?ke($,c):"",c=Pr(s,c),d&-8)return-28;var S=At(c,{Sa:!0}).node;return S?(s="",d&4&&(s+="r"),d&2&&(s+="w"),d&1&&(s+="x"),s&&to(S,s)?-2:0):-44}catch(k){if(typeof Fe>"u"||k.name!=="ErrnoError")throw k;return-k.Ka}},i:function(s,c){try{var d=bt(s);return cl(d.node,c),0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},g:function(s){try{var c=bt(s).node,d=typeof c=="string"?At(c,{Sa:!0}).node:c;if(!d.Ga.Oa)throw new B(63);return d.Ga.Oa(d,{timestamp:Date.now()}),0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},b:function(s,c,d){dl=d;try{var S=bt(s);switch(c){case 0:var k=pl();if(0>k)return-28;for(;vt[k];)k++;return od(S,k).fd;case 1:case 2:return 0;case 3:return S.flags;case 4:return k=pl(),S.flags|=k,0;case 5:return k=pl(),U[k+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return F[xd()>>2]=28,-1;default:return-28}}catch(D){if(typeof Fe>"u"||D.name!=="ErrnoError")throw D;return-D.Ka}},f:function(s,c){try{var d=bt(s);return fl(Jo,d.path,c)}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},n:function(s,c,d){c=ni(c,d);try{if(isNaN(c))return 61;var S=bt(s);if(!(S.flags&2097155))throw new B(28);return cd(S.node,c),0}catch(k){if(typeof Fe>"u"||k.name!=="ErrnoError")throw k;return-k.Ka}},C:function(s,c){try{if(c===0)return-28;var d=Nt("/")+1;return c"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},F:function(s,c){try{return s=s?ke($,s):"",fl(ud,s,c)}catch(d){if(typeof Fe>"u"||d.name!=="ErrnoError")throw d;return-d.Ka}},z:function(s,c,d){try{return c=c?ke($,c):"",c=Pr(s,c),c=Lt(c),c[c.length-1]==="/"&&(c=c.substr(0,c.length-1)),Sn(c,d),0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},E:function(s,c,d,S){try{c=c?ke($,c):"";var k=S&256;return c=Pr(s,c,S&4096),fl(k?ud:Jo,c,d)}catch(D){if(typeof Fe>"u"||D.name!=="ErrnoError")throw D;return-D.Ka}},y:function(s,c,d,S){dl=S;try{c=c?ke($,c):"",c=Pr(s,c);var k=S?pl():0;return no(c,d,k).fd}catch(D){if(typeof Fe>"u"||D.name!=="ErrnoError")throw D;return-D.Ka}},w:function(s,c,d,S){try{if(c=c?ke($,c):"",c=Pr(s,c),0>=S)return-28;var k=ad(c),D=Math.min(S,Nt(k)),M=j[d+D];return St(k,$,d,S+1),j[d+D]=M,D}catch(ae){if(typeof Fe>"u"||ae.name!=="ErrnoError")throw ae;return-ae.Ka}},v:function(s){try{return s=s?ke($,s):"",ld(s),0}catch(c){if(typeof Fe>"u"||c.name!=="ErrnoError")throw c;return-c.Ka}},G:function(s,c){try{return s=s?ke($,s):"",fl(Jo,s,c)}catch(d){if(typeof Fe>"u"||d.name!=="ErrnoError")throw d;return-d.Ka}},r:function(s,c,d){try{return c=c?ke($,c):"",c=Pr(s,c),d===0?sd(c):d===512?ld(c):ve("Invalid flags passed to unlinkat"),0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},q:function(s,c,d){try{if(c=c?ke($,c):"",c=Pr(s,c,!0),d){var S=W[d>>2]+4294967296*F[d+4>>2],k=F[d+8>>2];D=1e3*S+k/1e6,d+=16,S=W[d>>2]+4294967296*F[d+4>>2],k=F[d+8>>2],M=1e3*S+k/1e6}else var D=Date.now(),M=D;s=D;var ae=At(c,{Sa:!0}).node;return ae.Ga.Oa(ae,{timestamp:Math.max(s,M)}),0}catch(Ee){if(typeof Fe>"u"||Ee.name!=="ErrnoError")throw Ee;return-Ee.Ka}},l:function(s,c,d){s=new Date(1e3*ni(s,c)),F[d>>2]=s.getSeconds(),F[d+4>>2]=s.getMinutes(),F[d+8>>2]=s.getHours(),F[d+12>>2]=s.getDate(),F[d+16>>2]=s.getMonth(),F[d+20>>2]=s.getFullYear()-1900,F[d+24>>2]=s.getDay(),c=s.getFullYear(),F[d+28>>2]=(c%4!==0||c%100===0&&c%400!==0?Rw:kw)[s.getMonth()]+s.getDate()-1|0,F[d+36>>2]=-(60*s.getTimezoneOffset()),c=new Date(s.getFullYear(),6,1).getTimezoneOffset();var S=new Date(s.getFullYear(),0,1).getTimezoneOffset();F[d+32>>2]=(c!=S&&s.getTimezoneOffset()==Math.min(S,c))|0},j:function(s,c,d,S,k,D,M,ae){k=ni(k,D);try{if(isNaN(k))return 61;var Ee=bt(S);if(c&2&&!(d&2)&&(Ee.flags&2097155)!==2)throw new B(2);if((Ee.flags&2097155)===1)throw new B(2);if(!Ee.Ha.bb)throw new B(43);var he=Ee.Ha.bb(Ee,s,k,c,d),rt=he.Db;return F[M>>2]=he.ub,W[ae>>2]=rt,0}catch(ct){if(typeof Fe>"u"||ct.name!=="ErrnoError")throw ct;return-ct.Ka}},k:function(s,c,d,S,k,D,M){D=ni(D,M);try{if(isNaN(D))return 61;var ae=bt(k);if(d&2){if((ae.node.mode&61440)!==32768)throw new B(43);if(!(S&2)){var Ee=$.slice(s,s+c);ae.Ha.cb&&ae.Ha.cb(ae,Ee,D,c,S)}}}catch(he){if(typeof Fe>"u"||he.name!=="ErrnoError")throw he;return-he.Ka}},s:(s,c,d)=>{function S(Ee){return(Ee=Ee.toTimeString().match(/\(([A-Za-z ]+)\)$/))?Ee[1]:"GMT"}var k=new Date().getFullYear(),D=new Date(k,0,1),M=new Date(k,6,1);k=D.getTimezoneOffset();var ae=M.getTimezoneOffset();W[s>>2]=60*Math.max(k,ae),F[c>>2]=+(k!=ae),s=S(D),c=S(M),s=gd(s),c=gd(c),ae>2]=s,W[d+4>>2]=c):(W[d>>2]=c,W[d+4>>2]=s)},d:()=>Date.now(),t:()=>2147483648,c:()=>performance.now(),o:s=>{var c=$.length;if(s>>>=0,2147483648=d;d*=2){var S=c*(1+.2/d);S=Math.min(S,s+100663296);var k=Math;S=Math.max(s,S);e:{k=(k.min.call(k,2147483648,S+(65536-S%65536)%65536)-O.buffer.byteLength+65535)/65536;try{O.grow(k),ne();var D=1;break e}catch{}D=void 0}if(D)return!0}return!1},A:(s,c)=>{var d=0;return yd().forEach((S,k)=>{var D=c+d;for(k=W[s+4*k>>2]=D,D=0;D>0]=S.charCodeAt(D);j[k>>0]=0,d+=S.length+1}),0},B:(s,c)=>{var d=yd();W[s>>2]=d.length;var S=0;return d.forEach(k=>S+=k.length+1),W[c>>2]=S,0},e:function(s){try{var c=bt(s);return Ea(c),0}catch(d){if(typeof Fe>"u"||d.name!=="ErrnoError")throw d;return d.Ka}},p:function(s,c){try{var d=bt(s);return j[c>>0]=d.tty?2:Kt(d.mode)?3:(d.mode&61440)===40960?7:4,U[c+2>>1]=0,me=[0,(Y=0,1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[c+8>>2]=me[0],F[c+12>>2]=me[1],me=[0,(Y=0,1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[c+16>>2]=me[0],F[c+20>>2]=me[1],0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return S.Ka}},x:function(s,c,d,S){try{e:{var k=bt(s);s=c;for(var D,M=c=0;M>2],Ee=W[s+4>>2];s+=8;var he=dd(k,j,ae,Ee,D);if(0>he){var rt=-1;break e}if(c+=he,he>2]=rt,0}catch(ct){if(typeof Fe>"u"||ct.name!=="ErrnoError")throw ct;return ct.Ka}},m:function(s,c,d,S,k){c=ni(c,d);try{if(isNaN(c))return 61;var D=bt(s);return fd(D,c,S),me=[D.position>>>0,(Y=D.position,1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[k>>2]=me[0],F[k+4>>2]=me[1],D.hb&&c===0&&S===0&&(D.hb=null),0}catch(M){if(typeof Fe>"u"||M.name!=="ErrnoError")throw M;return M.Ka}},D:function(s){var d;try{var c=bt(s);return(d=c.Ha)!=null&&d.fsync?c.Ha.fsync(c):0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return S.Ka}},u:function(s,c,d,S){try{e:{var k=bt(s);s=c;for(var D,M=c=0;M>2],Ee=W[s+4>>2];s+=8;var he=pd(k,j,ae,Ee,D);if(0>he){var rt=-1;break e}c+=he,typeof D<"u"&&(D+=he)}rt=c}return W[S>>2]=rt,0}catch(ct){if(typeof Fe>"u"||ct.name!=="ErrnoError")throw ct;return ct.Ka}}},re=function(){var d;function s(S){var k;return re=S.exports,O=re.I,ne(),Dn=re.Aa,V.unshift(re.J),ue--,(k=u.monitorRunDependencies)==null||k.call(u,ue),ue==0&&qe&&(S=qe,qe=null,S()),re}var c={a:Tw};if(ue++,(d=u.monitorRunDependencies)==null||d.call(u,ue),u.instantiateWasm)try{return u.instantiateWasm(c,s)}catch(S){return A(`Module.instantiateWasm callback failed with error: ${S}`),!1}return de(c,function(S){s(S.instance)}),{}}();u._sqlite3_free=s=>(u._sqlite3_free=re.K)(s),u._sqlite3_value_text=s=>(u._sqlite3_value_text=re.L)(s);var xd=()=>(xd=re.M)();u._sqlite3_prepare_v2=(s,c,d,S,k)=>(u._sqlite3_prepare_v2=re.N)(s,c,d,S,k),u._sqlite3_step=s=>(u._sqlite3_step=re.O)(s),u._sqlite3_reset=s=>(u._sqlite3_reset=re.P)(s),u._sqlite3_exec=(s,c,d,S,k)=>(u._sqlite3_exec=re.Q)(s,c,d,S,k),u._sqlite3_finalize=s=>(u._sqlite3_finalize=re.R)(s),u._sqlite3_column_name=(s,c)=>(u._sqlite3_column_name=re.S)(s,c),u._sqlite3_column_text=(s,c)=>(u._sqlite3_column_text=re.T)(s,c),u._sqlite3_column_type=(s,c)=>(u._sqlite3_column_type=re.U)(s,c),u._sqlite3_errmsg=s=>(u._sqlite3_errmsg=re.V)(s),u._sqlite3_clear_bindings=s=>(u._sqlite3_clear_bindings=re.W)(s),u._sqlite3_value_blob=s=>(u._sqlite3_value_blob=re.X)(s),u._sqlite3_value_bytes=s=>(u._sqlite3_value_bytes=re.Y)(s),u._sqlite3_value_double=s=>(u._sqlite3_value_double=re.Z)(s),u._sqlite3_value_int=s=>(u._sqlite3_value_int=re._)(s),u._sqlite3_value_type=s=>(u._sqlite3_value_type=re.$)(s),u._sqlite3_result_blob=(s,c,d,S)=>(u._sqlite3_result_blob=re.aa)(s,c,d,S),u._sqlite3_result_double=(s,c)=>(u._sqlite3_result_double=re.ba)(s,c),u._sqlite3_result_error=(s,c,d)=>(u._sqlite3_result_error=re.ca)(s,c,d),u._sqlite3_result_int=(s,c)=>(u._sqlite3_result_int=re.da)(s,c),u._sqlite3_result_int64=(s,c,d)=>(u._sqlite3_result_int64=re.ea)(s,c,d),u._sqlite3_result_null=s=>(u._sqlite3_result_null=re.fa)(s),u._sqlite3_result_text=(s,c,d,S)=>(u._sqlite3_result_text=re.ga)(s,c,d,S),u._sqlite3_aggregate_context=(s,c)=>(u._sqlite3_aggregate_context=re.ha)(s,c),u._sqlite3_column_count=s=>(u._sqlite3_column_count=re.ia)(s),u._sqlite3_data_count=s=>(u._sqlite3_data_count=re.ja)(s),u._sqlite3_column_blob=(s,c)=>(u._sqlite3_column_blob=re.ka)(s,c),u._sqlite3_column_bytes=(s,c)=>(u._sqlite3_column_bytes=re.la)(s,c),u._sqlite3_column_double=(s,c)=>(u._sqlite3_column_double=re.ma)(s,c),u._sqlite3_bind_blob=(s,c,d,S,k)=>(u._sqlite3_bind_blob=re.na)(s,c,d,S,k),u._sqlite3_bind_double=(s,c,d)=>(u._sqlite3_bind_double=re.oa)(s,c,d),u._sqlite3_bind_int=(s,c,d)=>(u._sqlite3_bind_int=re.pa)(s,c,d),u._sqlite3_bind_text=(s,c,d,S,k)=>(u._sqlite3_bind_text=re.qa)(s,c,d,S,k),u._sqlite3_bind_parameter_index=(s,c)=>(u._sqlite3_bind_parameter_index=re.ra)(s,c),u._sqlite3_sql=s=>(u._sqlite3_sql=re.sa)(s),u._sqlite3_normalized_sql=s=>(u._sqlite3_normalized_sql=re.ta)(s),u._sqlite3_changes=s=>(u._sqlite3_changes=re.ua)(s),u._sqlite3_close_v2=s=>(u._sqlite3_close_v2=re.va)(s),u._sqlite3_create_function_v2=(s,c,d,S,k,D,M,ae,Ee)=>(u._sqlite3_create_function_v2=re.wa)(s,c,d,S,k,D,M,ae,Ee),u._sqlite3_open=(s,c)=>(u._sqlite3_open=re.xa)(s,c);var gl=u._malloc=s=>(gl=u._malloc=re.ya)(s),yl=u._free=s=>(yl=u._free=re.za)(s);u._RegisterExtensionFunctions=s=>(u._RegisterExtensionFunctions=re.Ba)(s);var Sd=(s,c)=>(Sd=re.Ca)(s,c),ri=()=>(ri=re.Da)(),oi=s=>(oi=re.Ea)(s),Jn=s=>(Jn=re.Fa)(s);u.stackAlloc=Jn,u.stackSave=ri,u.stackRestore=oi,u.cwrap=(s,c,d,S)=>{var k=!d||d.every(D=>D==="number"||D==="boolean");return c!=="string"&&k&&!S?u["_"+s]:function(){return Pw(s,c,d,arguments)}},u.addFunction=vl,u.removeFunction=ro,u.UTF8ToString=rn,u.ALLOC_NORMAL=ml,u.allocate=hl,u.allocateUTF8OnStack=ka;var wl;qe=function s(){wl||Ed(),wl||(qe=s)};function Ed(){function s(){if(!wl&&(wl=!0,u.calledRun=!0,!I)){if(u.noFSInit||hd||(hd=!0,md(),u.stdin=u.stdin,u.stdout=u.stdout,u.stderr=u.stderr,u.stdin?ei("stdin",u.stdin):Sa("/dev/tty","/dev/stdin"),u.stdout?ei("stdout",null,u.stdout):Sa("/dev/tty","/dev/stdout"),u.stderr?ei("stderr",null,u.stderr):Sa("/dev/tty1","/dev/stderr"),no("/dev/stdin",0),no("/dev/stdout",1),no("/dev/stderr",1)),xn=!1,ut(V),u.onRuntimeInitialized&&u.onRuntimeInitialized(),u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;){var c=u.postRun.shift();ee.unshift(c)}ut(ee)}}if(!(0"u"?p={autoBom:!1}:typeof p!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),p={autoBom:!p}),p.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type)?new Blob(["\uFEFF",u],{type:u.type}):u}function r(u,p,m){var h=new XMLHttpRequest;h.open("GET",u),h.responseType="blob",h.onload=function(){f(h.response,p,m)},h.onerror=function(){console.error("could not download file")},h.send()}function o(u){var p=new XMLHttpRequest;p.open("HEAD",u,!1);try{p.send()}catch{}return 200<=p.status&&299>=p.status}function i(u){try{u.dispatchEvent(new MouseEvent("click"))}catch{var p=document.createEvent("MouseEvents");p.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),u.dispatchEvent(p)}}var l=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof ii=="object"&&ii.global===ii?ii:void 0,a=l.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),f=l.saveAs||(typeof window!="object"||window!==l?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(u,p,m){var h=l.URL||l.webkitURL,w=document.createElement("a");p=p||u.name||"download",w.download=p,w.rel="noopener",typeof u=="string"?(w.href=u,w.origin===location.origin?i(w):o(w.href)?r(u,p,m):i(w,w.target="_blank")):(w.href=h.createObjectURL(u),setTimeout(function(){h.revokeObjectURL(w.href)},4e4),setTimeout(function(){i(w)},0))}:"msSaveOrOpenBlob"in navigator?function(u,p,m){if(p=p||u.name||"download",typeof u!="string")navigator.msSaveOrOpenBlob(n(u,m),p);else if(o(u))r(u,p,m);else{var h=document.createElement("a");h.href=u,h.target="_blank",setTimeout(function(){i(h)})}}:function(u,p,m,h){if(h=h||open("","_blank"),h&&(h.document.title=h.document.body.innerText="downloading..."),typeof u=="string")return r(u,p,m);var w=u.type==="application/octet-stream",C=/constructor/i.test(l.HTMLElement)||l.safari,E=/CriOS\/[\d]+/.test(navigator.userAgent);if((E||w&&C||a)&&typeof FileReader<"u"){var R=new FileReader;R.onloadend=function(){var b=R.result;b=E?b:b.replace(/^data:[^;]*;/,"data:attachment/file;"),h?h.location.href=b:location=b,h=null},R.readAsDataURL(u)}else{var y=l.URL||l.webkitURL,g=y.createObjectURL(u);h?h.location=g:location.href=g,h=null,setTimeout(function(){y.revokeObjectURL(g)},4e4)}});l.saveAs=f.saveAs=f,e.exports=f})})(Kv);var Qv=Kv.exports;const uE=async e=>{try{const t=await e.arrayBuffer(),n=await aE({locateFile:r=>`https://sql.js.org/dist/${r}`});return new n.Database(new Uint8Array(t))}catch(t){throw console.error("Failed to load database:",t),t}},_f=e=>{var t;try{return((t=e.exec("SELECT name FROM sqlite_master WHERE type='table';")[0])==null?void 0:t.values.map(r=>r[0]))||[]}catch(n){return console.error("Failed to get table names:",n),[]}},cE=async(e,t)=>{try{const r=e.exec(`PRAGMA table_info("${t}")`)[0].values.reduce((i,l)=>(i[l[1]]={type:l[2],isPrimaryKey:l[5]===1,isForeignKey:!1},i),{}),o=e.exec(`PRAGMA foreign_key_list("${t}")`);return o.length>0&&o[0].values.forEach(i=>{const l=i[3];r[l]&&(r[l].isForeignKey=!0)}),r}catch(n){throw console.error(`Failed to get schema for table "${t}":`,n),n}};function js(e){if(e.length>0){const t=e[0].columns;return{data:e[0].values.map(r=>t.reduce((o,i,l)=>(o[i]=r[l],o),{})),columns:t}}return{data:[],columns:[]}}const fE=e=>{try{return e.export()}catch(t){throw console.error("Failed to export database:",t),t}},dE=e=>{const t=fE(e),n=new Blob([t],{type:"application/octet-stream"}),r=URL.createObjectURL(n),o=document.createElement("a");o.href=r,o.download="database.sqlite",o.click(),URL.revokeObjectURL(r)},Yv=(e,t)=>{const n=e.join(","),r=t.map(o=>e.map(i=>`"${o[i]}"`).join(","));return[n,...r].join(` -`)},pE=(e,t)=>{const r=_f(e)[t];try{const o=e.exec(`SELECT * FROM ${r}`);if(o.length===0)throw new Error(`Table ${r} is empty or does not exist.`);const{data:i,columns:l}=js(o),a=Yv(l,i),f=new Blob([a],{type:"text/csv;charset=utf-8;"});Qv.saveAs(f,`${r}.csv`)}catch(o){throw console.error(`Failed to export table "${r}" as CSV:`,o),o}},mE=e=>{_f(e).forEach(n=>{try{const r=e.exec(`SELECT * FROM ${n}`);if(r.length===0)throw new Error(`Table ${n} is empty or does not exist.`);const{data:o,columns:i}=js(r),l=Yv(i,o),a=new Blob([l],{type:"text/csv;charset=utf-8;"});Qv.saveAs(a,`${n}.csv`)}catch(r){console.error(`Failed to export table "${n}" as CSV:`,r)}})},Bo=oE((e,t)=>({db:null,isLoading:!1,queryError:null,tables:[],selectedTable:"0",tableSchemas:{},rowPerPageOrAuto:"auto",isCustomQuery:!1,loadDatabase:async n=>{e({isLoading:!0,queryError:null});try{const r=await uE(n),o=_f(r),i=await Promise.all(o.map(async f=>{const u=r.exec(`SELECT COUNT(*) FROM "${f}"`),p=parseInt(u[0].values[0][0],10),m=await cE(r,f);return{name:f,count:p,schema:m}})),l=i.map(({name:f,count:u})=>({name:f,count:u})),a=i.reduce((f,{name:u,schema:p})=>(f[u]=p,f),{});e({db:r,tables:l,tableSchemas:a,isLoading:!1})}catch(r){console.error("Failed to load database:",r),e({isLoading:!1,queryError:"Failed to load database"})}},query:n=>{const{db:r}=t();return r?r.exec(n):(console.warn("Database is not loaded."),[])},setQueryError:n=>e({queryError:n}),setTables:n=>e({tables:n}),setSelectedTable:n=>e({selectedTable:n}),setTableSchemas:n=>e({tableSchemas:n}),setRowPerPageOrAuto:n=>e({rowPerPageOrAuto:n}),setIsCustomQuery:n=>e({isCustomQuery:n})}));function Xv(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;ta(i)))==null?void 0:l.classGroupId}const Bp=/^\[(.+)\]$/;function gE(e){if(Bp.test(e)){const t=Bp.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function yE(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return xE(Object.entries(e.classGroups),n).forEach(([i,l])=>{uc(l,r,i,t)}),r}function uc(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Wp(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(wE(o)){uc(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,l])=>{uc(l,Wp(t,i),n,r)})})}function Wp(e,t){let n=e;return t.split(kf).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function wE(e){return e.isThemeGetter}function xE(e,t){return t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,a])=>[t+l,a])):i);return[n,o]}):e}function SE(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(i,l){n.set(i,l),t++,t>e&&(t=0,r=n,n=new Map)}return{get(i){let l=n.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return o(i,l),l},set(i,l){n.has(i)?n.set(i,l):o(i,l)}}}const Jv="!";function EE(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(l){const a=[];let f=0,u=0,p;for(let E=0;Eu?p-u:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:w,maybePostfixModifierPosition:C}}}function bE(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 CE(e){return{cache:SE(e.cacheSize),splitModifiers:EE(e),...vE(e)}}const _E=/\s+/;function kE(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(_E).map(l=>{const{modifiers:a,hasImportantModifier:f,baseClassName:u,maybePostfixModifierPosition:p}=n(l);let m=r(p?u.substring(0,p):u),h=!!p;if(!m){if(!p)return{isTailwindClass:!1,originalClassName:l};if(m=r(u),!m)return{isTailwindClass:!1,originalClassName:l};h=!1}const w=bE(a).join(":");return{isTailwindClass:!0,modifierId:f?w+Jv:w,classGroupId:m,originalClassName:l,hasPostfixModifier:h}}).reverse().filter(l=>{if(!l.isTailwindClass)return!0;const{modifierId:a,classGroupId:f,hasPostfixModifier:u}=l,p=a+f;return i.has(p)?!1:(i.add(p),o(f,u).forEach(m=>i.add(a+m)),!0)}).reverse().map(l=>l.originalClassName).join(" ")}function RE(){let e=0,t,n,r="";for(;em(p),e());return n=CE(u),r=n.cache.get,o=n.cache.set,i=a,a(f)}function a(f){const u=r(f);if(u)return u;const p=kE(f,n);return o(f,p),p}return function(){return i(RE.apply(null,arguments))}}function ze(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const tg=/^\[(?:([a-z-]+):)?(.+)\]$/i,TE=/^\d+\/\d+$/,NE=new Set(["px","full","screen"]),AE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,DE=/\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$/,OE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,jE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ME=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function On(e){return Fr(e)||NE.has(e)||TE.test(e)}function tr(e){return Wo(e,"length",BE)}function Fr(e){return!!e&&!Number.isNaN(Number(e))}function Fl(e){return Wo(e,"number",Fr)}function mi(e){return!!e&&Number.isInteger(Number(e))}function IE(e){return e.endsWith("%")&&Fr(e.slice(0,-1))}function pe(e){return tg.test(e)}function nr(e){return AE.test(e)}const LE=new Set(["length","size","percentage"]);function FE(e){return Wo(e,LE,ng)}function zE(e){return Wo(e,"position",ng)}const $E=new Set(["image","url"]);function HE(e){return Wo(e,$E,VE)}function UE(e){return Wo(e,"",WE)}function hi(){return!0}function Wo(e,t,n){const r=tg.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function BE(e){return DE.test(e)&&!OE.test(e)}function ng(){return!1}function WE(e){return jE.test(e)}function VE(e){return ME.test(e)}function qE(){const e=ze("colors"),t=ze("spacing"),n=ze("blur"),r=ze("brightness"),o=ze("borderColor"),i=ze("borderRadius"),l=ze("borderSpacing"),a=ze("borderWidth"),f=ze("contrast"),u=ze("grayscale"),p=ze("hueRotate"),m=ze("invert"),h=ze("gap"),w=ze("gradientColorStops"),C=ze("gradientColorStopPositions"),E=ze("inset"),R=ze("margin"),y=ze("opacity"),g=ze("padding"),b=ze("saturate"),_=ze("scale"),P=ze("sepia"),A=ze("skew"),T=ze("space"),O=ze("translate"),I=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",pe,t],U=()=>[pe,t],F=()=>["",On,tr],W=()=>["auto",Fr,pe],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],le=()=>["solid","dashed","dotted","double","none"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["start","end","center","between","around","evenly","stretch"],V=()=>["","0",pe],ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],se=()=>[Fr,Fl],ue=()=>[Fr,pe];return{cacheSize:500,separator:":",theme:{colors:[hi],spacing:[On,tr],blur:["none","",nr,pe],brightness:se(),borderColor:[e],borderRadius:["none","","full",nr,pe],borderSpacing:U(),borderWidth:F(),contrast:se(),grayscale:V(),hueRotate:ue(),invert:V(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[IE,tr],inset:$(),margin:$(),opacity:se(),padding:U(),saturate:se(),scale:se(),sepia:V(),skew:ue(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",pe]}],container:["container"],columns:[{columns:[nr]}],"break-after":[{"break-after":ee()}],"break-before":[{"break-before":ee()}],"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:[...Z(),pe]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",mi,pe]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",pe]}],grow:[{grow:V()}],shrink:[{shrink:V()}],order:[{order:["first","last","none",mi,pe]}],"grid-cols":[{"grid-cols":[hi]}],"col-start-end":[{col:["auto",{span:["full",mi,pe]},pe]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[hi]}],"row-start-end":[{row:["auto",{span:[mi,pe]},pe]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",pe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",pe]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[R]}],mx:[{mx:[R]}],my:[{my:[R]}],ms:[{ms:[R]}],me:[{me:[R]}],mt:[{mt:[R]}],mr:[{mr:[R]}],mb:[{mb:[R]}],ml:[{ml:[R]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",pe,t]}],"min-w":[{"min-w":[pe,t,"min","max","fit"]}],"max-w":[{"max-w":[pe,t,"none","full","min","max","fit","prose",{screen:[nr]},nr]}],h:[{h:[pe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[pe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[pe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[pe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",nr,tr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Fl]}],"font-family":[{font:[hi]}],"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",pe]}],"line-clamp":[{"line-clamp":["none",Fr,Fl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",On,pe]}],"list-image":[{"list-image":["none",pe]}],"list-style-type":[{list:["none","disc","decimal",pe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",On,tr]}],"underline-offset":[{"underline-offset":["auto",On,pe]}],"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:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe]}],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",pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),zE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",FE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},HE]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...le(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:le()}],"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:["",...le()]}],"outline-offset":[{"outline-offset":[On,pe]}],"outline-w":[{outline:[On,tr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[On,tr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",nr,UE]}],"shadow-color":[{shadow:[hi]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...ne(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ne()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",nr,pe]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[m]}],saturate:[{saturate:[b]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",pe]}],duration:[{duration:ue()}],ease:[{ease:["linear","in","out","in-out",pe]}],delay:[{delay:ue()}],animate:[{animate:["none","spin","ping","pulse","bounce",pe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[mi,pe]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",pe]}],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",pe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"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",pe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[On,tr,Fl]}],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 GE=PE(qE);function Se(...e){return GE(hE(e))}const Rf=v.forwardRef(({className:e,type:t,...n},r)=>x.jsx("input",{type:t,className:Se("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));Rf.displayName="Input";function KE(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function rg(...e){return t=>e.forEach(n=>KE(n,t))}function Ve(...e){return v.useCallback(rg(...e),e)}var qr=v.forwardRef((e,t)=>{const{children:n,...r}=e,o=v.Children.toArray(n),i=o.find(QE);if(i){const l=i.props.children,a=o.map(f=>f===i?v.Children.count(l)>1?v.Children.only(null):v.isValidElement(l)?l.props.children:null:f);return x.jsx(cc,{...r,ref:t,children:v.isValidElement(l)?v.cloneElement(l,void 0,a):null})}return x.jsx(cc,{...r,ref:t,children:n})});qr.displayName="Slot";var cc=v.forwardRef((e,t)=>{const{children:n,...r}=e;if(v.isValidElement(n)){const o=XE(n);return v.cloneElement(n,{...YE(r,n.props),ref:t?rg(t,o):o})}return v.Children.count(n)>1?v.Children.only(null):null});cc.displayName="SlotClone";var og=({children:e})=>x.jsx(x.Fragment,{children:e});function QE(e){return v.isValidElement(e)&&e.type===og}function YE(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function XE(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ig(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;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,qp=ZE,lg=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return qp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,l=Object.keys(o).map(u=>{const p=n==null?void 0:n[u],m=i==null?void 0:i[u];if(p===null)return null;const h=Vp(p)||Vp(m);return o[u][h]}),a=n&&Object.entries(n).reduce((u,p)=>{let[m,h]=p;return h===void 0||(u[m]=h),u},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,p)=>{let{class:m,className:h,...w}=p;return Object.entries(w).every(C=>{let[E,R]=C;return Array.isArray(R)?R.includes({...i,...a}[E]):{...i,...a}[E]===R})?[...u,m,h]:u},[]);return qp(e,l,f,n==null?void 0:n.class,n==null?void 0:n.className)},Pf=lg("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Zt=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const l=r?qr:"button";return x.jsx(l,{className:Se(Pf({variant:t,size:n,className:e})),ref:i,...o})});Zt.displayName="Button";/** - * @license lucide-react v0.396.0 - ISC +`));if(!s){s=null;break e}nt=on(s,!0)}s=nt.shift()}return s},jb(s,c){c===null||c===10?(P(ke(s.output,0)),s.output=[]):c!=0&&s.output.push(c)},fsync(s){s.output&&0=c||(c=Math.max(c,d*(1048576>d?2:1.125)>>>0),d!=0&&(c=Math.max(c,256)),d=s.Ia,s.Ia=new Uint8Array(c),0=s.node.Ma)return 0;if(s=Math.min(s.node.Ma-k,S),8c)throw new B(28);return c},lb(s,c,d){Re(s.node,c+d),s.node.Ma=Math.max(s.node.Ma,c+d)},bb(s,c,d,S,k){if((s.node.mode&61440)!==32768)throw new B(43);if(s=s.node.Ia,k&2||s.buffer!==j.buffer){if((0{var d=0;return s&&(d|=365),c&&(d|=146),d},Be=null,Et={},vt=[],wn=1,Ft=null,xn=!0,B=null,eo={};function At(s,c={}){if(s=Pe(s),!s)return{path:"",node:null};if(c=Object.assign({qb:!0,kb:0},c),8!!M);for(var d=Be,S="/",k=0;k>>0)%Ft.length}function Jf(s){var c=wa(s.parent.id,s.name);if(Ft[c]===s)Ft[c]=s.Wa;else for(c=Ft[c];c;){if(c.Wa===s){c.Wa=s.Wa;break}c=c.Wa}}function Rr(s,c){var d;if(d=(d=to(s,"x"))?d:s.Ga.lookup?0:2)throw new B(d,s);for(d=Ft[wa(s.id,c)];d;d=d.Wa){var S=d.name;if(d.parent.id===s.id&&S===c)return d}return s.Ga.lookup(s,c)}function ed(s,c,d,S){return s=new wd(s,c,d,S),c=wa(s.parent.id,s.name),s.Wa=Ft[c],Ft[c]=s}function Kt(s){return(s&61440)===16384}function td(s){var c=["r","w","rw"][s&3];return s&512&&(c+="w"),c}function to(s,c){if(xn)return 0;if(!c.includes("r")||s.mode&292){if(c.includes("w")&&!(s.mode&146)||c.includes("x")&&!(s.mode&73))return 2}else return 2;return 0}function nd(s,c){try{return Rr(s,c),20}catch{}return to(s,"wx")}function rd(s,c,d){try{var S=Rr(s,c)}catch(k){return k.Ka}if(s=to(s,"wx"))return s;if(d){if(!Kt(S.mode))return 54;if(S===S.parent||Zo(S)==="/")return 10}else if(Kt(S.mode))return 31;return 0}function bw(){for(var s=0;4096>=s;s++)if(!vt[s])return s;throw new B(33)}function bt(s){if(s=vt[s],!s)throw new B(8);return s}function od(s,c=-1){return ti||(ti=function(){this.$a={}},ti.prototype={},Object.defineProperties(ti.prototype,{object:{get(){return this.node},set(d){this.node=d}},flags:{get(){return this.$a.flags},set(d){this.$a.flags=d}},position:{get(){return this.$a.position},set(d){this.$a.position=d}}})),s=Object.assign(new ti,s),c==-1&&(c=bw()),s.fd=c,vt[c]=s}var Cw={open(s){var c,d;s.Ha=Et[s.node.rdev].Ha,(d=(c=s.Ha).open)==null||d.call(c,s)},Ta(){throw new B(70)}};function xa(s,c){Et[s]={Ha:c}}function id(s,c){var d=c==="/",S=!c;if(d&&Be)throw new B(10);if(!d&&!S){var k=At(c,{qb:!1});if(c=k.path,k=k.node,k.Va)throw new B(10);if(!Kt(k.mode))throw new B(54)}c={type:s,Pb:{},tb:c,Cb:[]},s=s.Ra(c),s.Ra=c,c.root=s,d?Be=s:k&&(k.Va=c,k.Ra&&k.Ra.Cb.push(c))}function al(s,c,d){var S=At(s,{parent:!0}).node;if(s=G(s),!s||s==="."||s==="..")throw new B(28);var k=nd(S,s);if(k)throw new B(k);if(!S.Ga.ab)throw new B(63);return S.Ga.ab(S,s,c,d)}function Sn(s,c){return al(s,(c!==void 0?c:511)&1023|16384,0)}function ul(s,c,d){typeof d>"u"&&(d=c,c=438),al(s,c|8192,d)}function Sa(s,c){if(!Pe(s))throw new B(44);var d=At(c,{parent:!0}).node;if(!d)throw new B(44);c=G(c);var S=nd(d,c);if(S)throw new B(S);if(!d.Ga.symlink)throw new B(63);d.Ga.symlink(d,c,s)}function ld(s){var c=At(s,{parent:!0}).node;s=G(s);var d=Rr(c,s),S=rd(c,s,!0);if(S)throw new B(S);if(!c.Ga.rmdir)throw new B(63);if(d.Va)throw new B(10);c.Ga.rmdir(c,s),Jf(d)}function sd(s){var c=At(s,{parent:!0}).node;if(!c)throw new B(44);s=G(s);var d=Rr(c,s),S=rd(c,s,!1);if(S)throw new B(S);if(!c.Ga.unlink)throw new B(63);if(d.Va)throw new B(10);c.Ga.unlink(c,s),Jf(d)}function ad(s){if(s=At(s).node,!s)throw new B(44);if(!s.Ga.readlink)throw new B(28);return Pe(Zo(s.parent),s.Ga.readlink(s))}function Jo(s,c){if(s=At(s,{Sa:!c}).node,!s)throw new B(44);if(!s.Ga.Pa)throw new B(63);return s.Ga.Pa(s)}function ud(s){return Jo(s,!0)}function cl(s,c){if(s=typeof s=="string"?At(s,{Sa:!0}).node:s,!s.Ga.Oa)throw new B(63);s.Ga.Oa(s,{mode:c&4095|s.mode&-4096,timestamp:Date.now()})}function cd(s,c){if(0>c)throw new B(28);if(s=typeof s=="string"?At(s,{Sa:!0}).node:s,!s.Ga.Oa)throw new B(63);if(Kt(s.mode))throw new B(31);if((s.mode&61440)!==32768)throw new B(28);var d=to(s,"w");if(d)throw new B(d);s.Ga.Oa(s,{size:c,timestamp:Date.now()})}function no(s,c,d){if(s==="")throw new B(44);if(typeof c=="string"){var S={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[c];if(typeof S>"u")throw Error(`Unknown file open mode: ${c}`);c=S}if(d=c&64?(typeof d>"u"?438:d)&4095|32768:0,typeof s=="object")var k=s;else{s=Lt(s);try{k=At(s,{Sa:!(c&131072)}).node}catch{}}if(S=!1,c&64)if(k){if(c&128)throw new B(20)}else k=al(s,d,0),S=!0;if(!k)throw new B(44);if((k.mode&61440)===8192&&(c&=-513),c&65536&&!Kt(k.mode))throw new B(54);if(!S&&(d=k?(k.mode&61440)===40960?32:Kt(k.mode)&&(td(c)!=="r"||c&512)?31:to(k,td(c)):44))throw new B(d);return c&512&&!S&&cd(k,0),c&=-131713,k=od({node:k,path:Zo(k),flags:c,seekable:!0,position:0,Ha:k.Ha,Fb:[],error:!1}),k.Ha.open&&k.Ha.open(k),!u.logReadFiles||c&1||(ba||(ba={}),s in ba||(ba[s]=1)),k}function Ea(s){if(s.fd===null)throw new B(8);s.hb&&(s.hb=null);try{s.Ha.close&&s.Ha.close(s)}catch(c){throw c}finally{vt[s.fd]=null}s.fd=null}function fd(s,c,d){if(s.fd===null)throw new B(8);if(!s.seekable||!s.Ha.Ta)throw new B(70);if(d!=0&&d!=1&&d!=2)throw new B(28);s.position=s.Ha.Ta(s,c,d),s.Fb=[]}function dd(s,c,d,S,k){if(0>S||0>k)throw new B(28);if(s.fd===null)throw new B(8);if((s.flags&2097155)===1)throw new B(8);if(Kt(s.node.mode))throw new B(31);if(!s.Ha.read)throw new B(28);var D=typeof k<"u";if(!D)k=s.position;else if(!s.seekable)throw new B(70);return c=s.Ha.read(s,c,d,S,k),D||(s.position+=c),c}function pd(s,c,d,S,k){if(0>S||0>k)throw new B(28);if(s.fd===null)throw new B(8);if(!(s.flags&2097155))throw new B(8);if(Kt(s.node.mode))throw new B(31);if(!s.Ha.write)throw new B(28);s.seekable&&s.flags&1024&&fd(s,0,2);var D=typeof k<"u";if(!D)k=s.position;else if(!s.seekable)throw new B(70);return c=s.Ha.write(s,c,d,S,k,void 0),D||(s.position+=c),c}function _w(s){var c,d=no(s,d||0);s=Jo(s).size;var S=new Uint8Array(s);return dd(d,S,0,s,0),c=S,Ea(d),c}function md(){B||(B=function(s,c){this.name="ErrnoError",this.node=c,this.Eb=function(d){this.Ka=d},this.Eb(s),this.message="FS error"},B.prototype=Error(),B.prototype.constructor=B,[44].forEach(s=>{eo[s]=new B(s),eo[s].stack=""}))}var hd;function ei(s,c,d){s=Lt("/dev/"+s);var S=De(!!c,!!d);vd||(vd=64);var k=vd++<<8|0;xa(k,{open(D){D.seekable=!1},close(){var D;(D=d==null?void 0:d.buffer)!=null&&D.length&&d(10)},read(D,M,ae,Ee){for(var he=0,rt=0;rt>2]=S.dev,F[d+4>>2]=S.mode,W[d+8>>2]=S.nlink,F[d+12>>2]=S.uid,F[d+16>>2]=S.gid,F[d+20>>2]=S.rdev,me=[S.size>>>0,(Y=S.size,1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[d+24>>2]=me[0],F[d+28>>2]=me[1],F[d+32>>2]=4096,F[d+36>>2]=S.blocks,s=S.atime.getTime(),c=S.mtime.getTime();var k=S.ctime.getTime();return me=[Math.floor(s/1e3)>>>0,(Y=Math.floor(s/1e3),1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[d+40>>2]=me[0],F[d+44>>2]=me[1],W[d+48>>2]=s%1e3*1e3,me=[Math.floor(c/1e3)>>>0,(Y=Math.floor(c/1e3),1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[d+56>>2]=me[0],F[d+60>>2]=me[1],W[d+64>>2]=c%1e3*1e3,me=[Math.floor(k/1e3)>>>0,(Y=Math.floor(k/1e3),1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[d+72>>2]=me[0],F[d+76>>2]=me[1],W[d+80>>2]=k%1e3*1e3,me=[S.ino>>>0,(Y=S.ino,1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[d+88>>2]=me[0],F[d+92>>2]=me[1],0}var dl=void 0;function pl(){var s=F[+dl>>2];return dl+=4,s}var ni=(s,c)=>c+2097152>>>0<4194305-!!s?(s>>>0)+4294967296*c:NaN,kw=[0,31,60,91,121,152,182,213,244,274,305,335],Rw=[0,31,59,90,120,151,181,212,243,273,304,334],gd=s=>{var c=Tt(s)+1,d=gl(c);return d&&St(s,H,d,c),d},Ca={},yd=()=>{if(!_a){var s={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:m||"./this.program"},c;for(c in Ca)Ca[c]===void 0?delete s[c]:s[c]=Ca[c];var d=[];for(c in s)d.push(`${c}=${s[c]}`);_a=d}return _a},_a,ka=s=>{var c=Tt(s)+1,d=Jn(c);return St(s,H,d,c),d},Pw=(s,c,d,S)=>{var k={string:he=>{var rt=0;return he!=null&&he!==0&&(rt=ka(he)),rt},array:he=>{var rt=Jn(he.length);return j.set(he,rt),rt}};s=u["_"+s];var D=[],M=0;if(S)for(var ae=0;ae(c=c==1?Jn(s.length):gl(s.length),s.subarray||s.slice||(s=new Uint8Array(s)),H.set(s,c),c),Nr,Ra=[],Dn,ro=s=>{Nr.delete(Dn.get(s)),Dn.set(s,null),Ra.push(s)},vl=(s,c)=>{if(!Nr){Nr=new WeakMap;var d=Dn.length;if(Nr)for(var S=0;S<0+d;S++){var k=Dn.get(S);k&&Nr.set(k,S)}}if(d=Nr.get(s)||0)return d;if(Ra.length)d=Ra.pop();else{try{Dn.grow(1)}catch(ae){throw ae instanceof RangeError?"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.":ae}d=Dn.length-1}try{Dn.set(d,s)}catch(ae){if(!(ae instanceof TypeError))throw ae;if(typeof WebAssembly.Function=="function"){S=WebAssembly.Function,k={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"};for(var D={parameters:[],results:c[0]=="v"?[]:[k[c[0]]]},M=1;MM?S.push(M):S.push(M%128|128,M>>7),M=0;Mk?c.push(k):c.push(k%128|128,k>>7),c.push.apply(c,S),c.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),c=new WebAssembly.Module(new Uint8Array(c)),c=new WebAssembly.Instance(c,{e:{f:s}}).exports.f}Dn.set(d,c)}return Nr.set(s,d),d};function wd(s,c,d,S){s||(s=this),this.parent=s,this.Ra=s.Ra,this.Va=null,this.id=wn++,this.name=c,this.mode=d,this.Ga={},this.Ha={},this.rdev=S}Object.defineProperties(wd.prototype,{read:{get:function(){return(this.mode&365)===365},set:function(s){s?this.mode|=365:this.mode&=-366}},write:{get:function(){return(this.mode&146)===146},set:function(s){s?this.mode|=146:this.mode&=-147}}}),md(),Ft=Array(4096),id(q,"/"),Sn("/tmp"),Sn("/home"),Sn("/home/web_user"),function(){Sn("/dev"),xa(259,{read:()=>0,write:(S,k,D,M)=>M}),ul("/dev/null",259),Xn(1280,ie),Xn(1536,fe),ul("/dev/tty",1280),ul("/dev/tty1",1536);var s=new Uint8Array(1024),c=0,d=()=>(c===0&&(c=Le(s).byteLength),s[--c]);ei("random",d),ei("urandom",d),Sn("/dev/shm"),Sn("/dev/shm/tmp")}(),function(){Sn("/proc");var s=Sn("/proc/self");Sn("/proc/self/fd"),id({Ra(){var c=ed(s,"fd",16895,73);return c.Ga={lookup(d,S){var k=bt(+S);return d={parent:null,Ra:{tb:"fake"},Ga:{readlink:()=>k.path}},d.parent=d}},c}},"/proc/self/fd")}();var Nw={a:(s,c,d,S)=>{ve(`Assertion failed: ${s?ke(H,s):""}, at: `+[c?c?ke(H,c):"":"unknown filename",d,S?S?ke(H,S):"":"unknown function"])},h:function(s,c){try{return s=s?ke(H,s):"",cl(s,c),0}catch(d){if(typeof Fe>"u"||d.name!=="ErrnoError")throw d;return-d.Ka}},H:function(s,c,d){try{if(c=c?ke(H,c):"",c=Pr(s,c),d&-8)return-28;var S=At(c,{Sa:!0}).node;return S?(s="",d&4&&(s+="r"),d&2&&(s+="w"),d&1&&(s+="x"),s&&to(S,s)?-2:0):-44}catch(k){if(typeof Fe>"u"||k.name!=="ErrnoError")throw k;return-k.Ka}},i:function(s,c){try{var d=bt(s);return cl(d.node,c),0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},g:function(s){try{var c=bt(s).node,d=typeof c=="string"?At(c,{Sa:!0}).node:c;if(!d.Ga.Oa)throw new B(63);return d.Ga.Oa(d,{timestamp:Date.now()}),0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},b:function(s,c,d){dl=d;try{var S=bt(s);switch(c){case 0:var k=pl();if(0>k)return-28;for(;vt[k];)k++;return od(S,k).fd;case 1:case 2:return 0;case 3:return S.flags;case 4:return k=pl(),S.flags|=k,0;case 5:return k=pl(),U[k+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return F[xd()>>2]=28,-1;default:return-28}}catch(D){if(typeof Fe>"u"||D.name!=="ErrnoError")throw D;return-D.Ka}},f:function(s,c){try{var d=bt(s);return fl(Jo,d.path,c)}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},n:function(s,c,d){c=ni(c,d);try{if(isNaN(c))return 61;var S=bt(s);if(!(S.flags&2097155))throw new B(28);return cd(S.node,c),0}catch(k){if(typeof Fe>"u"||k.name!=="ErrnoError")throw k;return-k.Ka}},C:function(s,c){try{if(c===0)return-28;var d=Tt("/")+1;return c"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},F:function(s,c){try{return s=s?ke(H,s):"",fl(ud,s,c)}catch(d){if(typeof Fe>"u"||d.name!=="ErrnoError")throw d;return-d.Ka}},z:function(s,c,d){try{return c=c?ke(H,c):"",c=Pr(s,c),c=Lt(c),c[c.length-1]==="/"&&(c=c.substr(0,c.length-1)),Sn(c,d),0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},E:function(s,c,d,S){try{c=c?ke(H,c):"";var k=S&256;return c=Pr(s,c,S&4096),fl(k?ud:Jo,c,d)}catch(D){if(typeof Fe>"u"||D.name!=="ErrnoError")throw D;return-D.Ka}},y:function(s,c,d,S){dl=S;try{c=c?ke(H,c):"",c=Pr(s,c);var k=S?pl():0;return no(c,d,k).fd}catch(D){if(typeof Fe>"u"||D.name!=="ErrnoError")throw D;return-D.Ka}},w:function(s,c,d,S){try{if(c=c?ke(H,c):"",c=Pr(s,c),0>=S)return-28;var k=ad(c),D=Math.min(S,Tt(k)),M=j[d+D];return St(k,H,d,S+1),j[d+D]=M,D}catch(ae){if(typeof Fe>"u"||ae.name!=="ErrnoError")throw ae;return-ae.Ka}},v:function(s){try{return s=s?ke(H,s):"",ld(s),0}catch(c){if(typeof Fe>"u"||c.name!=="ErrnoError")throw c;return-c.Ka}},G:function(s,c){try{return s=s?ke(H,s):"",fl(Jo,s,c)}catch(d){if(typeof Fe>"u"||d.name!=="ErrnoError")throw d;return-d.Ka}},r:function(s,c,d){try{return c=c?ke(H,c):"",c=Pr(s,c),d===0?sd(c):d===512?ld(c):ve("Invalid flags passed to unlinkat"),0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return-S.Ka}},q:function(s,c,d){try{if(c=c?ke(H,c):"",c=Pr(s,c,!0),d){var S=W[d>>2]+4294967296*F[d+4>>2],k=F[d+8>>2];D=1e3*S+k/1e6,d+=16,S=W[d>>2]+4294967296*F[d+4>>2],k=F[d+8>>2],M=1e3*S+k/1e6}else var D=Date.now(),M=D;s=D;var ae=At(c,{Sa:!0}).node;return ae.Ga.Oa(ae,{timestamp:Math.max(s,M)}),0}catch(Ee){if(typeof Fe>"u"||Ee.name!=="ErrnoError")throw Ee;return-Ee.Ka}},l:function(s,c,d){s=new Date(1e3*ni(s,c)),F[d>>2]=s.getSeconds(),F[d+4>>2]=s.getMinutes(),F[d+8>>2]=s.getHours(),F[d+12>>2]=s.getDate(),F[d+16>>2]=s.getMonth(),F[d+20>>2]=s.getFullYear()-1900,F[d+24>>2]=s.getDay(),c=s.getFullYear(),F[d+28>>2]=(c%4!==0||c%100===0&&c%400!==0?Rw:kw)[s.getMonth()]+s.getDate()-1|0,F[d+36>>2]=-(60*s.getTimezoneOffset()),c=new Date(s.getFullYear(),6,1).getTimezoneOffset();var S=new Date(s.getFullYear(),0,1).getTimezoneOffset();F[d+32>>2]=(c!=S&&s.getTimezoneOffset()==Math.min(S,c))|0},j:function(s,c,d,S,k,D,M,ae){k=ni(k,D);try{if(isNaN(k))return 61;var Ee=bt(S);if(c&2&&!(d&2)&&(Ee.flags&2097155)!==2)throw new B(2);if((Ee.flags&2097155)===1)throw new B(2);if(!Ee.Ha.bb)throw new B(43);var he=Ee.Ha.bb(Ee,s,k,c,d),rt=he.Db;return F[M>>2]=he.ub,W[ae>>2]=rt,0}catch(ct){if(typeof Fe>"u"||ct.name!=="ErrnoError")throw ct;return-ct.Ka}},k:function(s,c,d,S,k,D,M){D=ni(D,M);try{if(isNaN(D))return 61;var ae=bt(k);if(d&2){if((ae.node.mode&61440)!==32768)throw new B(43);if(!(S&2)){var Ee=H.slice(s,s+c);ae.Ha.cb&&ae.Ha.cb(ae,Ee,D,c,S)}}}catch(he){if(typeof Fe>"u"||he.name!=="ErrnoError")throw he;return-he.Ka}},s:(s,c,d)=>{function S(Ee){return(Ee=Ee.toTimeString().match(/\(([A-Za-z ]+)\)$/))?Ee[1]:"GMT"}var k=new Date().getFullYear(),D=new Date(k,0,1),M=new Date(k,6,1);k=D.getTimezoneOffset();var ae=M.getTimezoneOffset();W[s>>2]=60*Math.max(k,ae),F[c>>2]=+(k!=ae),s=S(D),c=S(M),s=gd(s),c=gd(c),ae>2]=s,W[d+4>>2]=c):(W[d>>2]=c,W[d+4>>2]=s)},d:()=>Date.now(),t:()=>2147483648,c:()=>performance.now(),o:s=>{var c=H.length;if(s>>>=0,2147483648=d;d*=2){var S=c*(1+.2/d);S=Math.min(S,s+100663296);var k=Math;S=Math.max(s,S);e:{k=(k.min.call(k,2147483648,S+(65536-S%65536)%65536)-O.buffer.byteLength+65535)/65536;try{O.grow(k),ne();var D=1;break e}catch{}D=void 0}if(D)return!0}return!1},A:(s,c)=>{var d=0;return yd().forEach((S,k)=>{var D=c+d;for(k=W[s+4*k>>2]=D,D=0;D>0]=S.charCodeAt(D);j[k>>0]=0,d+=S.length+1}),0},B:(s,c)=>{var d=yd();W[s>>2]=d.length;var S=0;return d.forEach(k=>S+=k.length+1),W[c>>2]=S,0},e:function(s){try{var c=bt(s);return Ea(c),0}catch(d){if(typeof Fe>"u"||d.name!=="ErrnoError")throw d;return d.Ka}},p:function(s,c){try{var d=bt(s);return j[c>>0]=d.tty?2:Kt(d.mode)?3:(d.mode&61440)===40960?7:4,U[c+2>>1]=0,me=[0,(Y=0,1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[c+8>>2]=me[0],F[c+12>>2]=me[1],me=[0,(Y=0,1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[c+16>>2]=me[0],F[c+20>>2]=me[1],0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return S.Ka}},x:function(s,c,d,S){try{e:{var k=bt(s);s=c;for(var D,M=c=0;M>2],Ee=W[s+4>>2];s+=8;var he=dd(k,j,ae,Ee,D);if(0>he){var rt=-1;break e}if(c+=he,he>2]=rt,0}catch(ct){if(typeof Fe>"u"||ct.name!=="ErrnoError")throw ct;return ct.Ka}},m:function(s,c,d,S,k){c=ni(c,d);try{if(isNaN(c))return 61;var D=bt(s);return fd(D,c,S),me=[D.position>>>0,(Y=D.position,1<=+Math.abs(Y)?0>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],F[k>>2]=me[0],F[k+4>>2]=me[1],D.hb&&c===0&&S===0&&(D.hb=null),0}catch(M){if(typeof Fe>"u"||M.name!=="ErrnoError")throw M;return M.Ka}},D:function(s){var d;try{var c=bt(s);return(d=c.Ha)!=null&&d.fsync?c.Ha.fsync(c):0}catch(S){if(typeof Fe>"u"||S.name!=="ErrnoError")throw S;return S.Ka}},u:function(s,c,d,S){try{e:{var k=bt(s);s=c;for(var D,M=c=0;M>2],Ee=W[s+4>>2];s+=8;var he=pd(k,j,ae,Ee,D);if(0>he){var rt=-1;break e}c+=he,typeof D<"u"&&(D+=he)}rt=c}return W[S>>2]=rt,0}catch(ct){if(typeof Fe>"u"||ct.name!=="ErrnoError")throw ct;return ct.Ka}}},re=function(){var d;function s(S){var k;return re=S.exports,O=re.I,ne(),Dn=re.Aa,V.unshift(re.J),ue--,(k=u.monitorRunDependencies)==null||k.call(u,ue),ue==0&&qe&&(S=qe,qe=null,S()),re}var c={a:Nw};if(ue++,(d=u.monitorRunDependencies)==null||d.call(u,ue),u.instantiateWasm)try{return u.instantiateWasm(c,s)}catch(S){return A(`Module.instantiateWasm callback failed with error: ${S}`),!1}return de(c,function(S){s(S.instance)}),{}}();u._sqlite3_free=s=>(u._sqlite3_free=re.K)(s),u._sqlite3_value_text=s=>(u._sqlite3_value_text=re.L)(s);var xd=()=>(xd=re.M)();u._sqlite3_prepare_v2=(s,c,d,S,k)=>(u._sqlite3_prepare_v2=re.N)(s,c,d,S,k),u._sqlite3_step=s=>(u._sqlite3_step=re.O)(s),u._sqlite3_reset=s=>(u._sqlite3_reset=re.P)(s),u._sqlite3_exec=(s,c,d,S,k)=>(u._sqlite3_exec=re.Q)(s,c,d,S,k),u._sqlite3_finalize=s=>(u._sqlite3_finalize=re.R)(s),u._sqlite3_column_name=(s,c)=>(u._sqlite3_column_name=re.S)(s,c),u._sqlite3_column_text=(s,c)=>(u._sqlite3_column_text=re.T)(s,c),u._sqlite3_column_type=(s,c)=>(u._sqlite3_column_type=re.U)(s,c),u._sqlite3_errmsg=s=>(u._sqlite3_errmsg=re.V)(s),u._sqlite3_clear_bindings=s=>(u._sqlite3_clear_bindings=re.W)(s),u._sqlite3_value_blob=s=>(u._sqlite3_value_blob=re.X)(s),u._sqlite3_value_bytes=s=>(u._sqlite3_value_bytes=re.Y)(s),u._sqlite3_value_double=s=>(u._sqlite3_value_double=re.Z)(s),u._sqlite3_value_int=s=>(u._sqlite3_value_int=re._)(s),u._sqlite3_value_type=s=>(u._sqlite3_value_type=re.$)(s),u._sqlite3_result_blob=(s,c,d,S)=>(u._sqlite3_result_blob=re.aa)(s,c,d,S),u._sqlite3_result_double=(s,c)=>(u._sqlite3_result_double=re.ba)(s,c),u._sqlite3_result_error=(s,c,d)=>(u._sqlite3_result_error=re.ca)(s,c,d),u._sqlite3_result_int=(s,c)=>(u._sqlite3_result_int=re.da)(s,c),u._sqlite3_result_int64=(s,c,d)=>(u._sqlite3_result_int64=re.ea)(s,c,d),u._sqlite3_result_null=s=>(u._sqlite3_result_null=re.fa)(s),u._sqlite3_result_text=(s,c,d,S)=>(u._sqlite3_result_text=re.ga)(s,c,d,S),u._sqlite3_aggregate_context=(s,c)=>(u._sqlite3_aggregate_context=re.ha)(s,c),u._sqlite3_column_count=s=>(u._sqlite3_column_count=re.ia)(s),u._sqlite3_data_count=s=>(u._sqlite3_data_count=re.ja)(s),u._sqlite3_column_blob=(s,c)=>(u._sqlite3_column_blob=re.ka)(s,c),u._sqlite3_column_bytes=(s,c)=>(u._sqlite3_column_bytes=re.la)(s,c),u._sqlite3_column_double=(s,c)=>(u._sqlite3_column_double=re.ma)(s,c),u._sqlite3_bind_blob=(s,c,d,S,k)=>(u._sqlite3_bind_blob=re.na)(s,c,d,S,k),u._sqlite3_bind_double=(s,c,d)=>(u._sqlite3_bind_double=re.oa)(s,c,d),u._sqlite3_bind_int=(s,c,d)=>(u._sqlite3_bind_int=re.pa)(s,c,d),u._sqlite3_bind_text=(s,c,d,S,k)=>(u._sqlite3_bind_text=re.qa)(s,c,d,S,k),u._sqlite3_bind_parameter_index=(s,c)=>(u._sqlite3_bind_parameter_index=re.ra)(s,c),u._sqlite3_sql=s=>(u._sqlite3_sql=re.sa)(s),u._sqlite3_normalized_sql=s=>(u._sqlite3_normalized_sql=re.ta)(s),u._sqlite3_changes=s=>(u._sqlite3_changes=re.ua)(s),u._sqlite3_close_v2=s=>(u._sqlite3_close_v2=re.va)(s),u._sqlite3_create_function_v2=(s,c,d,S,k,D,M,ae,Ee)=>(u._sqlite3_create_function_v2=re.wa)(s,c,d,S,k,D,M,ae,Ee),u._sqlite3_open=(s,c)=>(u._sqlite3_open=re.xa)(s,c);var gl=u._malloc=s=>(gl=u._malloc=re.ya)(s),yl=u._free=s=>(yl=u._free=re.za)(s);u._RegisterExtensionFunctions=s=>(u._RegisterExtensionFunctions=re.Ba)(s);var Sd=(s,c)=>(Sd=re.Ca)(s,c),ri=()=>(ri=re.Da)(),oi=s=>(oi=re.Ea)(s),Jn=s=>(Jn=re.Fa)(s);u.stackAlloc=Jn,u.stackSave=ri,u.stackRestore=oi,u.cwrap=(s,c,d,S)=>{var k=!d||d.every(D=>D==="number"||D==="boolean");return c!=="string"&&k&&!S?u["_"+s]:function(){return Pw(s,c,d,arguments)}},u.addFunction=vl,u.removeFunction=ro,u.UTF8ToString=rn,u.ALLOC_NORMAL=ml,u.allocate=hl,u.allocateUTF8OnStack=ka;var wl;qe=function s(){wl||Ed(),wl||(qe=s)};function Ed(){function s(){if(!wl&&(wl=!0,u.calledRun=!0,!I)){if(u.noFSInit||hd||(hd=!0,md(),u.stdin=u.stdin,u.stdout=u.stdout,u.stderr=u.stderr,u.stdin?ei("stdin",u.stdin):Sa("/dev/tty","/dev/stdin"),u.stdout?ei("stdout",null,u.stdout):Sa("/dev/tty","/dev/stdout"),u.stderr?ei("stderr",null,u.stderr):Sa("/dev/tty1","/dev/stderr"),no("/dev/stdin",0),no("/dev/stdout",1),no("/dev/stderr",1)),xn=!1,ut(V),u.onRuntimeInitialized&&u.onRuntimeInitialized(),u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;){var c=u.postRun.shift();ee.unshift(c)}ut(ee)}}if(!(0"u"?p={autoBom:!1}:typeof p!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),p={autoBom:!p}),p.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type)?new Blob(["\uFEFF",u],{type:u.type}):u}function r(u,p,m){var h=new XMLHttpRequest;h.open("GET",u),h.responseType="blob",h.onload=function(){f(h.response,p,m)},h.onerror=function(){console.error("could not download file")},h.send()}function o(u){var p=new XMLHttpRequest;p.open("HEAD",u,!1);try{p.send()}catch{}return 200<=p.status&&299>=p.status}function i(u){try{u.dispatchEvent(new MouseEvent("click"))}catch{var p=document.createEvent("MouseEvents");p.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),u.dispatchEvent(p)}}var l=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof ii=="object"&&ii.global===ii?ii:void 0,a=l.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),f=l.saveAs||(typeof window!="object"||window!==l?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(u,p,m){var h=l.URL||l.webkitURL,w=document.createElement("a");p=p||u.name||"download",w.download=p,w.rel="noopener",typeof u=="string"?(w.href=u,w.origin===location.origin?i(w):o(w.href)?r(u,p,m):i(w,w.target="_blank")):(w.href=h.createObjectURL(u),setTimeout(function(){h.revokeObjectURL(w.href)},4e4),setTimeout(function(){i(w)},0))}:"msSaveOrOpenBlob"in navigator?function(u,p,m){if(p=p||u.name||"download",typeof u!="string")navigator.msSaveOrOpenBlob(n(u,m),p);else if(o(u))r(u,p,m);else{var h=document.createElement("a");h.href=u,h.target="_blank",setTimeout(function(){i(h)})}}:function(u,p,m,h){if(h=h||open("","_blank"),h&&(h.document.title=h.document.body.innerText="downloading..."),typeof u=="string")return r(u,p,m);var w=u.type==="application/octet-stream",C=/constructor/i.test(l.HTMLElement)||l.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||w&&C||a)&&typeof FileReader<"u"){var R=new FileReader;R.onloadend=function(){var E=R.result;E=b?E:E.replace(/^data:[^;]*;/,"data:attachment/file;"),h?h.location.href=E:location=E,h=null},R.readAsDataURL(u)}else{var y=l.URL||l.webkitURL,g=y.createObjectURL(u);h?h.location=g:location.href=g,h=null,setTimeout(function(){y.revokeObjectURL(g)},4e4)}});l.saveAs=f.saveAs=f,e.exports=f})})(Kv);var Qv=Kv.exports;const uE=async e=>{try{const t=await e.arrayBuffer(),n=await aE({locateFile:r=>`https://sql.js.org/dist/${r}`});return new n.Database(new Uint8Array(t))}catch(t){throw console.error("Failed to load database:",t),t}},_f=e=>{var t;try{return((t=e.exec("SELECT name FROM sqlite_master WHERE type='table';")[0])==null?void 0:t.values.map(r=>r[0]))||[]}catch(n){return console.error("Failed to get table names:",n),[]}},cE=async(e,t)=>{try{const r=e.exec(`PRAGMA table_info("${t}")`)[0].values.reduce((i,l)=>(i[l[1]]={type:l[2],isPrimaryKey:l[5]===1,isForeignKey:!1},i),{}),o=e.exec(`PRAGMA foreign_key_list("${t}")`);return o.length>0&&o[0].values.forEach(i=>{const l=i[3];r[l]&&(r[l].isForeignKey=!0)}),r}catch(n){throw console.error(`Failed to get schema for table "${t}":`,n),n}};function js(e){if(e.length>0){const t=e[0].columns;return{data:e[0].values.map(r=>t.reduce((o,i,l)=>(o[i]=r[l],o),{})),columns:t}}return{data:[],columns:[]}}const fE=e=>{try{return e.export()}catch(t){throw console.error("Failed to export database:",t),t}},dE=e=>{const t=fE(e),n=new Blob([t],{type:"application/octet-stream"}),r=URL.createObjectURL(n),o=document.createElement("a");o.href=r,o.download="database.sqlite",o.click(),URL.revokeObjectURL(r)},Yv=(e,t)=>{const n=e.join(","),r=t.map(o=>e.map(i=>`"${o[i]}"`).join(","));return[n,...r].join(` +`)},pE=(e,t)=>{const r=_f(e)[t];try{const o=e.exec(`SELECT * FROM ${r}`);if(o.length===0)throw new Error(`Table ${r} is empty or does not exist.`);const{data:i,columns:l}=js(o),a=Yv(l,i),f=new Blob([a],{type:"text/csv;charset=utf-8;"});Qv.saveAs(f,`${r}.csv`)}catch(o){throw console.error(`Failed to export table "${r}" as CSV:`,o),o}},mE=e=>{_f(e).forEach(n=>{try{const r=e.exec(`SELECT * FROM ${n}`);if(r.length===0)throw new Error(`Table ${n} is empty or does not exist.`);const{data:o,columns:i}=js(r),l=Yv(i,o),a=new Blob([l],{type:"text/csv;charset=utf-8;"});Qv.saveAs(a,`${n}.csv`)}catch(r){console.error(`Failed to export table "${n}" as CSV:`,r)}})},Bo=oE((e,t)=>({db:null,isLoading:!1,queryError:null,tables:[],selectedTable:"0",tableSchemas:{},rowPerPageOrAuto:"auto",isCustomQuery:!1,loadDatabase:async n=>{e({isLoading:!0,queryError:null});try{const r=await uE(n),o=_f(r),i=await Promise.all(o.map(async f=>{const u=r.exec(`SELECT COUNT(*) FROM "${f}"`),p=parseInt(u[0].values[0][0],10),m=await cE(r,f);return{name:f,count:p,schema:m}})),l=i.map(({name:f,count:u})=>({name:f,count:u})),a=i.reduce((f,{name:u,schema:p})=>(f[u]=p,f),{});e({db:r,tables:l,tableSchemas:a,isLoading:!1})}catch(r){console.error("Failed to load database:",r),e({isLoading:!1,queryError:"Failed to load database"})}},query:n=>{const{db:r}=t();return r?r.exec(n):(console.warn("Database is not loaded."),[])},setQueryError:n=>e({queryError:n}),setTables:n=>e({tables:n}),setSelectedTable:n=>e({selectedTable:n}),setTableSchemas:n=>e({tableSchemas:n}),setRowPerPageOrAuto:n=>e({rowPerPageOrAuto:n}),setIsCustomQuery:n=>e({isCustomQuery:n})}));function Xv(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;ta(i)))==null?void 0:l.classGroupId}const Bp=/^\[(.+)\]$/;function gE(e){if(Bp.test(e)){const t=Bp.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function yE(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return xE(Object.entries(e.classGroups),n).forEach(([i,l])=>{uc(l,r,i,t)}),r}function uc(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Wp(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(wE(o)){uc(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,l])=>{uc(l,Wp(t,i),n,r)})})}function Wp(e,t){let n=e;return t.split(kf).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function wE(e){return e.isThemeGetter}function xE(e,t){return t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,a])=>[t+l,a])):i);return[n,o]}):e}function SE(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(i,l){n.set(i,l),t++,t>e&&(t=0,r=n,n=new Map)}return{get(i){let l=n.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return o(i,l),l},set(i,l){n.has(i)?n.set(i,l):o(i,l)}}}const Jv="!";function EE(e){const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length;function l(a){const f=[];let u=0,p=0,m;for(let R=0;Rp?m-p:void 0;return{modifiers:f,hasImportantModifier:w,baseClassName:C,maybePostfixModifierPosition:b}}return n?function(f){return n({className:f,parseClassName:l})}:l}function bE(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 CE(e){return{cache:SE(e.cacheSize),parseClassName:EE(e),...vE(e)}}const _E=/\s+/;function kE(e,t){const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(_E).map(l=>{const{modifiers:a,hasImportantModifier:f,baseClassName:u,maybePostfixModifierPosition:p}=n(l);let m=!!p,h=r(m?u.substring(0,p):u);if(!h){if(!m)return{isTailwindClass:!1,originalClassName:l};if(h=r(u),!h)return{isTailwindClass:!1,originalClassName:l};m=!1}const w=bE(a).join(":");return{isTailwindClass:!0,modifierId:f?w+Jv:w,classGroupId:h,originalClassName:l,hasPostfixModifier:m}}).reverse().filter(l=>{if(!l.isTailwindClass)return!0;const{modifierId:a,classGroupId:f,hasPostfixModifier:u}=l,p=a+f;return i.has(p)?!1:(i.add(p),o(f,u).forEach(m=>i.add(a+m)),!0)}).reverse().map(l=>l.originalClassName).join(" ")}function RE(){let e=0,t,n,r="";for(;em(p),e());return n=CE(u),r=n.cache.get,o=n.cache.set,i=a,a(f)}function a(f){const u=r(f);if(u)return u;const p=kE(f,n);return o(f,p),p}return function(){return i(RE.apply(null,arguments))}}function ze(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const tg=/^\[(?:([a-z-]+):)?(.+)\]$/i,NE=/^\d+\/\d+$/,TE=new Set(["px","full","screen"]),AE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,DE=/\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$/,OE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,jE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ME=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function On(e){return Fr(e)||TE.has(e)||NE.test(e)}function tr(e){return Wo(e,"length",BE)}function Fr(e){return!!e&&!Number.isNaN(Number(e))}function Fl(e){return Wo(e,"number",Fr)}function mi(e){return!!e&&Number.isInteger(Number(e))}function IE(e){return e.endsWith("%")&&Fr(e.slice(0,-1))}function pe(e){return tg.test(e)}function nr(e){return AE.test(e)}const LE=new Set(["length","size","percentage"]);function FE(e){return Wo(e,LE,ng)}function zE(e){return Wo(e,"position",ng)}const $E=new Set(["image","url"]);function HE(e){return Wo(e,$E,VE)}function UE(e){return Wo(e,"",WE)}function hi(){return!0}function Wo(e,t,n){const r=tg.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function BE(e){return DE.test(e)&&!OE.test(e)}function ng(){return!1}function WE(e){return jE.test(e)}function VE(e){return ME.test(e)}function qE(){const e=ze("colors"),t=ze("spacing"),n=ze("blur"),r=ze("brightness"),o=ze("borderColor"),i=ze("borderRadius"),l=ze("borderSpacing"),a=ze("borderWidth"),f=ze("contrast"),u=ze("grayscale"),p=ze("hueRotate"),m=ze("invert"),h=ze("gap"),w=ze("gradientColorStops"),C=ze("gradientColorStopPositions"),b=ze("inset"),R=ze("margin"),y=ze("opacity"),g=ze("padding"),E=ze("saturate"),_=ze("scale"),P=ze("sepia"),A=ze("skew"),N=ze("space"),O=ze("translate"),I=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",pe,t],U=()=>[pe,t],F=()=>["",On,tr],W=()=>["auto",Fr,pe],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],le=()=>["solid","dashed","dotted","double","none"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["start","end","center","between","around","evenly","stretch"],V=()=>["","0",pe],ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],se=()=>[Fr,Fl],ue=()=>[Fr,pe];return{cacheSize:500,separator:":",theme:{colors:[hi],spacing:[On,tr],blur:["none","",nr,pe],brightness:se(),borderColor:[e],borderRadius:["none","","full",nr,pe],borderSpacing:U(),borderWidth:F(),contrast:se(),grayscale:V(),hueRotate:ue(),invert:V(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[IE,tr],inset:H(),margin:H(),opacity:se(),padding:U(),saturate:se(),scale:se(),sepia:V(),skew:ue(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",pe]}],container:["container"],columns:[{columns:[nr]}],"break-after":[{"break-after":ee()}],"break-before":[{"break-before":ee()}],"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:[...Z(),pe]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",mi,pe]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",pe]}],grow:[{grow:V()}],shrink:[{shrink:V()}],order:[{order:["first","last","none",mi,pe]}],"grid-cols":[{"grid-cols":[hi]}],"col-start-end":[{col:["auto",{span:["full",mi,pe]},pe]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[hi]}],"row-start-end":[{row:["auto",{span:[mi,pe]},pe]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",pe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",pe]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[R]}],mx:[{mx:[R]}],my:[{my:[R]}],ms:[{ms:[R]}],me:[{me:[R]}],mt:[{mt:[R]}],mr:[{mr:[R]}],mb:[{mb:[R]}],ml:[{ml:[R]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",pe,t]}],"min-w":[{"min-w":[pe,t,"min","max","fit"]}],"max-w":[{"max-w":[pe,t,"none","full","min","max","fit","prose",{screen:[nr]},nr]}],h:[{h:[pe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[pe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[pe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[pe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",nr,tr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Fl]}],"font-family":[{font:[hi]}],"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",pe]}],"line-clamp":[{"line-clamp":["none",Fr,Fl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",On,pe]}],"list-image":[{"list-image":["none",pe]}],"list-style-type":[{list:["none","disc","decimal",pe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",On,tr]}],"underline-offset":[{"underline-offset":["auto",On,pe]}],"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:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe]}],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",pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),zE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",FE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},HE]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...le(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:le()}],"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:["",...le()]}],"outline-offset":[{"outline-offset":[On,pe]}],"outline-w":[{outline:[On,tr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[On,tr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",nr,UE]}],"shadow-color":[{shadow:[hi]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...ne(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ne()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",nr,pe]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[m]}],saturate:[{saturate:[E]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",pe]}],duration:[{duration:ue()}],ease:[{ease:["linear","in","out","in-out",pe]}],delay:[{delay:ue()}],animate:[{animate:["none","spin","ping","pulse","bounce",pe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[mi,pe]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",pe]}],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",pe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"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",pe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[On,tr,Fl]}],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 GE=PE(qE);function Se(...e){return GE(hE(e))}const Rf=v.forwardRef(({className:e,type:t,...n},r)=>x.jsx("input",{type:t,className:Se("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));Rf.displayName="Input";function KE(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function rg(...e){return t=>e.forEach(n=>KE(n,t))}function Ve(...e){return v.useCallback(rg(...e),e)}var qr=v.forwardRef((e,t)=>{const{children:n,...r}=e,o=v.Children.toArray(n),i=o.find(QE);if(i){const l=i.props.children,a=o.map(f=>f===i?v.Children.count(l)>1?v.Children.only(null):v.isValidElement(l)?l.props.children:null:f);return x.jsx(cc,{...r,ref:t,children:v.isValidElement(l)?v.cloneElement(l,void 0,a):null})}return x.jsx(cc,{...r,ref:t,children:n})});qr.displayName="Slot";var cc=v.forwardRef((e,t)=>{const{children:n,...r}=e;if(v.isValidElement(n)){const o=XE(n);return v.cloneElement(n,{...YE(r,n.props),ref:t?rg(t,o):o})}return v.Children.count(n)>1?v.Children.only(null):null});cc.displayName="SlotClone";var og=({children:e})=>x.jsx(x.Fragment,{children:e});function QE(e){return v.isValidElement(e)&&e.type===og}function YE(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function XE(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ig(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;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,qp=ZE,lg=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return qp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,l=Object.keys(o).map(u=>{const p=n==null?void 0:n[u],m=i==null?void 0:i[u];if(p===null)return null;const h=Vp(p)||Vp(m);return o[u][h]}),a=n&&Object.entries(n).reduce((u,p)=>{let[m,h]=p;return h===void 0||(u[m]=h),u},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,p)=>{let{class:m,className:h,...w}=p;return Object.entries(w).every(C=>{let[b,R]=C;return Array.isArray(R)?R.includes({...i,...a}[b]):{...i,...a}[b]===R})?[...u,m,h]:u},[]);return qp(e,l,f,n==null?void 0:n.class,n==null?void 0:n.className)},Pf=lg("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Zt=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const l=r?qr:"button";return x.jsx(l,{className:Se(Pf({variant:t,size:n,className:e})),ref:i,...o})});Zt.displayName="Button";/** + * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const JE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sg=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/** - * @license lucide-react v0.396.0 - ISC + * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var eb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** - * @license lucide-react v0.396.0 - ISC + * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tb=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:l,...a},f)=>v.createElement("svg",{ref:f,...eb,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:sg("lucide",o),...a},[...l.map(([u,p])=>v.createElement(u,p)),...Array.isArray(i)?i:[i]]));/** - * @license lucide-react v0.396.0 - ISC + * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const at=(e,t)=>{const n=v.forwardRef(({className:r,...o},i)=>v.createElement(tb,{ref:i,iconNode:t,className:sg(`lucide-${JE(e)}`,r),...o}));return n.displayName=`${e}`,n};/** - * @license lucide-react v0.396.0 - ISC + * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const nb=at("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** - * @license lucide-react v0.396.0 - ISC + * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ag=at("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** - * @license lucide-react v0.396.0 - ISC + * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const rb=at("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** - * @license lucide-react v0.396.0 - ISC + * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ob=at("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** - * @license lucide-react v0.396.0 - ISC + * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ib=at("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** - * @license lucide-react v0.396.0 - ISC + * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const lb=at("Clock9",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 7.5 12",key:"1k60p0"}]]);/** - * @license lucide-react v0.396.0 - ISC + * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const sb=at("Cuboid",[["path",{d:"m21.12 6.4-6.05-4.06a2 2 0 0 0-2.17-.05L2.95 8.41a2 2 0 0 0-.95 1.7v5.82a2 2 0 0 0 .88 1.66l6.05 4.07a2 2 0 0 0 2.17.05l9.95-6.12a2 2 0 0 0 .95-1.7V8.06a2 2 0 0 0-.88-1.66Z",key:"1u2ovd"}],["path",{d:"M10 22v-8L2.25 9.15",key:"11pn4q"}],["path",{d:"m10 14 11.77-6.87",key:"1kt1wh"}]]);/** - * @license lucide-react v0.396.0 - ISC + * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ab=at("FileCheck",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]);/** - * @license lucide-react v0.396.0 - ISC + * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ub=at("FileWarning",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** - * @license lucide-react v0.396.0 - ISC + * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const cb=at("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/** - * @license lucide-react v0.396.0 - ISC + * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const fb=at("KeyRound",[["path",{d:"M2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4a6.5 6.5 0 1 0-4-4Z",key:"167ctg"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/** - * @license lucide-react v0.396.0 - ISC + */const fb=at("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/** + * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const db=at("KeySquare",[["path",{d:"M12.4 2.7c.9-.9 2.5-.9 3.4 0l5.5 5.5c.9.9.9 2.5 0 3.4l-3.7 3.7c-.9.9-2.5.9-3.4 0L8.7 9.8c-.9-.9-.9-2.5 0-3.4Z",key:"9li5bk"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M9.4 10.6 2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4",key:"1ym3zm"}]]);/** - * @license lucide-react v0.396.0 - ISC + */const db=at("KeySquare",[["path",{d:"M12.4 2.7a2.5 2.5 0 0 1 3.4 0l5.5 5.5a2.5 2.5 0 0 1 0 3.4l-3.7 3.7a2.5 2.5 0 0 1-3.4 0L8.7 9.8a2.5 2.5 0 0 1 0-3.4z",key:"165ttr"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"m9.4 10.6-6.814 6.814A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814",key:"1ubxi2"}]]);/** + * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const pb=at("ListRestart",[["path",{d:"M21 6H3",key:"1jwq7v"}],["path",{d:"M7 12H3",key:"13ou7f"}],["path",{d:"M7 18H3",key:"1sijw9"}],["path",{d:"M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14",key:"qth677"}],["path",{d:"M11 10v4h4",key:"172dkj"}]]);/** - * @license lucide-react v0.396.0 - ISC + * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const mb=at("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);/** - * @license lucide-react v0.396.0 - ISC + * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const hb=at("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/** - * @license lucide-react v0.396.0 - ISC + * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const vb=at("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** - * @license lucide-react v0.396.0 - ISC + * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const gb=at("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/** - * @license lucide-react v0.396.0 - ISC + * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const yb=at("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** - * @license lucide-react v0.396.0 - ISC + * @license lucide-react v0.414.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const wb=at("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]);function xb({page:e,setPage:t,rowsPerPage:n,rowCount:r}){const o=Math.ceil(r/n),i=Math.floor(e/n)+1,l=()=>{i{i>1&&t(e-n)};return x.jsx("section",{className:"fixed bottom-[8px] left-0 right-0 w-[270px] mx-auto z-10",children:x.jsxs("div",{className:"flex justify-between gap-2 bg-secondary p-[6px] border rounded",children:[x.jsx(Zt,{onClick:a,disabled:i===1,children:x.jsx(rb,{className:"h-4 w-4"})}),x.jsxs("span",{className:"text-sm flex items-center justify-center",children:["Page ",i," of ",o]}),x.jsx(Zt,{onClick:l,disabled:i>=o,children:x.jsx(ob,{className:"h-4 w-4"})})]})})}function Gp(e,[t,n]){return Math.min(n,Math.max(t,e))}function be(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Sb(e,t){const n=v.createContext(t);function r(i){const{children:l,...a}=i,f=v.useMemo(()=>a,Object.values(a));return x.jsx(n.Provider,{value:f,children:l})}function o(i){const l=v.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,o]}function Vo(e,t=[]){let n=[];function r(i,l){const a=v.createContext(l),f=n.length;n=[...n,l];function u(m){const{scope:h,children:w,...C}=m,E=(h==null?void 0:h[e][f])||a,R=v.useMemo(()=>C,Object.values(C));return x.jsx(E.Provider,{value:R,children:w})}function p(m,h){const w=(h==null?void 0:h[e][f])||a,C=v.useContext(w);if(C)return C;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,p]}const o=()=>{const i=n.map(l=>v.createContext(l));return function(a){const f=(a==null?void 0:a[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:f}}),[a,f])}};return o.scopeName=e,[r,Eb(o,...t)]}function Eb(...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(i){const l=r.reduce((a,{useScope:f,scopeName:u})=>{const m=f(i)[`__scope${u}`];return{...a,...m}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function bb(e){const t=e+"CollectionProvider",[n,r]=Vo(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=w=>{const{scope:C,children:E}=w,R=Q.useRef(null),y=Q.useRef(new Map).current;return x.jsx(o,{scope:C,itemMap:y,collectionRef:R,children:E})};l.displayName=t;const a=e+"CollectionSlot",f=Q.forwardRef((w,C)=>{const{scope:E,children:R}=w,y=i(a,E),g=Ve(C,y.collectionRef);return x.jsx(qr,{ref:g,children:R})});f.displayName=a;const u=e+"CollectionItemSlot",p="data-radix-collection-item",m=Q.forwardRef((w,C)=>{const{scope:E,children:R,...y}=w,g=Q.useRef(null),b=Ve(C,g),_=i(u,E);return Q.useEffect(()=>(_.itemMap.set(g,{ref:g,...y}),()=>void _.itemMap.delete(g))),x.jsx(qr,{[p]:"",ref:b,children:R})});m.displayName=u;function h(w){const C=i(e+"CollectionConsumer",w);return Q.useCallback(()=>{const R=C.collectionRef.current;if(!R)return[];const y=Array.from(R.querySelectorAll(`[${p}]`));return Array.from(C.itemMap.values()).sort((_,P)=>y.indexOf(_.ref.current)-y.indexOf(P.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:l,Slot:f,ItemSlot:m},h,r]}var Cb=v.createContext(void 0);function _b(e){const t=v.useContext(Cb);return e||t||"ltr"}var kb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Me=kb.reduce((e,t)=>{const n=v.forwardRef((r,o)=>{const{asChild:i,...l}=r,a=i?qr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(a,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Rb(e,t){e&&Zr.flushSync(()=>e.dispatchEvent(t))}function Wn(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Pb(e,t=globalThis==null?void 0:globalThis.document){const n=Wn(e);v.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Tb="DismissableLayer",fc="dismissableLayer.update",Nb="dismissableLayer.pointerDownOutside",Ab="dismissableLayer.focusOutside",Kp,ug=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ca=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:a,...f}=e,u=v.useContext(ug),[p,m]=v.useState(null),h=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=v.useState({}),C=Ve(t,T=>m(T)),E=Array.from(u.layers),[R]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=E.indexOf(R),g=p?E.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,_=g>=y,P=jb(T=>{const O=T.target,I=[...u.branches].some(j=>j.contains(O));!_||I||(o==null||o(T),l==null||l(T),T.defaultPrevented||a==null||a())},h),A=Mb(T=>{const O=T.target;[...u.branches].some(j=>j.contains(O))||(i==null||i(T),l==null||l(T),T.defaultPrevented||a==null||a())},h);return Pb(T=>{g===u.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},h),v.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Kp=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),Qp(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Kp)}},[p,h,n,u]),v.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),Qp())},[p,u]),v.useEffect(()=>{const T=()=>w({});return document.addEventListener(fc,T),()=>document.removeEventListener(fc,T)},[]),x.jsx(Me.div,{...f,ref:C,style:{pointerEvents:b?_?"auto":"none":void 0,...e.style},onFocusCapture:be(e.onFocusCapture,A.onFocusCapture),onBlurCapture:be(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:be(e.onPointerDownCapture,P.onPointerDownCapture)})});ca.displayName=Tb;var Db="DismissableLayerBranch",Ob=v.forwardRef((e,t)=>{const n=v.useContext(ug),r=v.useRef(null),o=Ve(t,r);return v.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),x.jsx(Me.div,{...e,ref:o})});Ob.displayName=Db;function jb(e,t=globalThis==null?void 0:globalThis.document){const n=Wn(e),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let f=function(){cg(Nb,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=f,t.addEventListener("click",o.current,{once:!0})):f()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Mb(e,t=globalThis==null?void 0:globalThis.document){const n=Wn(e),r=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!r.current&&cg(Ab,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Qp(){const e=new CustomEvent(fc);document.dispatchEvent(e)}function cg(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Rb(o,i):o.dispatchEvent(i)}var ru=0;function fg(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Yp()),document.body.insertAdjacentElement("beforeend",e[1]??Yp()),ru++,()=>{ru===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ru--}},[])}function Yp(){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}var ou="focusScope.autoFocusOnMount",iu="focusScope.autoFocusOnUnmount",Xp={bubbles:!1,cancelable:!0},Ib="FocusScope",Tf=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[a,f]=v.useState(null),u=Wn(o),p=Wn(i),m=v.useRef(null),h=Ve(t,E=>f(E)),w=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let E=function(b){if(w.paused||!a)return;const _=b.target;a.contains(_)?m.current=_:rr(m.current,{select:!0})},R=function(b){if(w.paused||!a)return;const _=b.relatedTarget;_!==null&&(a.contains(_)||rr(m.current,{select:!0}))},y=function(b){if(document.activeElement===document.body)for(const P of b)P.removedNodes.length>0&&rr(a)};document.addEventListener("focusin",E),document.addEventListener("focusout",R);const g=new MutationObserver(y);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",R),g.disconnect()}}},[r,a,w.paused]),v.useEffect(()=>{if(a){Jp.add(w);const E=document.activeElement;if(!a.contains(E)){const y=new CustomEvent(ou,Xp);a.addEventListener(ou,u),a.dispatchEvent(y),y.defaultPrevented||(Lb(Ub(dg(a)),{select:!0}),document.activeElement===E&&rr(a))}return()=>{a.removeEventListener(ou,u),setTimeout(()=>{const y=new CustomEvent(iu,Xp);a.addEventListener(iu,p),a.dispatchEvent(y),y.defaultPrevented||rr(E??document.body,{select:!0}),a.removeEventListener(iu,p),Jp.remove(w)},0)}}},[a,u,p,w]);const C=v.useCallback(E=>{if(!n&&!r||w.paused)return;const R=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,y=document.activeElement;if(R&&y){const g=E.currentTarget,[b,_]=Fb(g);b&&_?!E.shiftKey&&y===_?(E.preventDefault(),n&&rr(b,{select:!0})):E.shiftKey&&y===b&&(E.preventDefault(),n&&rr(_,{select:!0})):y===g&&E.preventDefault()}},[n,r,w.paused]);return x.jsx(Me.div,{tabIndex:-1,...l,ref:h,onKeyDown:C})});Tf.displayName=Ib;function Lb(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(rr(r,{select:t}),document.activeElement!==n)return}function Fb(e){const t=dg(e),n=Zp(t,e),r=Zp(t.reverse(),e);return[n,r]}function dg(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 Zp(e,t){for(const n of e)if(!zb(n,{upTo:t}))return n}function zb(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 $b(e){return e instanceof HTMLInputElement&&"select"in e}function rr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$b(e)&&t&&e.select()}}var Jp=Hb();function Hb(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=em(e,t),e.unshift(t)},remove(t){var n;e=em(e,t),(n=e[0])==null||n.resume()}}}function em(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ub(e){return e.filter(t=>t.tagName!=="A")}var kt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},Bb=x1.useId||(()=>{}),Wb=0;function Ro(e){const[t,n]=v.useState(Bb());return kt(()=>{n(r=>r??String(Wb++))},[e]),t?`radix-${t}`:""}const Vb=["top","right","bottom","left"],Rn=Math.min,Ht=Math.max,Ms=Math.round,zl=Math.floor,xr=e=>({x:e,y:e}),qb={left:"right",right:"left",bottom:"top",top:"bottom"},Gb={start:"end",end:"start"};function dc(e,t,n){return Ht(e,Rn(t,n))}function Vn(e,t){return typeof e=="function"?e(t):e}function qn(e){return e.split("-")[0]}function qo(e){return e.split("-")[1]}function Nf(e){return e==="x"?"y":"x"}function Af(e){return e==="y"?"height":"width"}function Go(e){return["top","bottom"].includes(qn(e))?"y":"x"}function Df(e){return Nf(Go(e))}function Kb(e,t,n){n===void 0&&(n=!1);const r=qo(e),o=Df(e),i=Af(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Is(l)),[l,Is(l)]}function Qb(e){const t=Is(e);return[pc(e),t,pc(t)]}function pc(e){return e.replace(/start|end/g,t=>Gb[t])}function Yb(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}function Xb(e,t,n,r){const o=qo(e);let i=Yb(qn(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(pc)))),i}function Is(e){return e.replace(/left|right|bottom|top/g,t=>qb[t])}function Zb(e){return{top:0,right:0,bottom:0,left:0,...e}}function pg(e){return typeof e!="number"?Zb(e):{top:e,right:e,bottom:e,left:e}}function Ls(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 tm(e,t,n){let{reference:r,floating:o}=e;const i=Go(t),l=Df(t),a=Af(l),f=qn(t),u=i==="y",p=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let w;switch(f){case"top":w={x:p,y:r.y-o.height};break;case"bottom":w={x:p,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:m};break;case"left":w={x:r.x-o.width,y:m};break;default:w={x:r.x,y:r.y}}switch(qo(t)){case"start":w[l]-=h*(n&&u?-1:1);break;case"end":w[l]+=h*(n&&u?-1:1);break}return w}const Jb=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:m}=tm(u,r,f),h=r,w={},C=0;for(let E=0;E({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:f}=t,{element:u,padding:p=0}=Vn(e,t)||{};if(u==null)return{};const m=pg(p),h={x:n,y:r},w=Df(o),C=Af(w),E=await l.getDimensions(u),R=w==="y",y=R?"top":"left",g=R?"bottom":"right",b=R?"clientHeight":"clientWidth",_=i.reference[C]+i.reference[w]-h[w]-i.floating[C],P=h[w]-i.reference[w],A=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let T=A?A[b]:0;(!T||!await(l.isElement==null?void 0:l.isElement(A)))&&(T=a.floating[b]||i.floating[C]);const O=_/2-P/2,I=T/2-E[C]/2-1,j=Rn(m[y],I),$=Rn(m[g],I),U=j,F=T-E[C]-$,W=T/2-E[C]/2+O,Z=dc(U,W,F),le=!f.arrow&&qo(o)!=null&&W!==Z&&i.reference[C]/2-(WU<=0)){var I,j;const U=(((I=i.flip)==null?void 0:I.index)||0)+1,F=P[U];if(F)return{data:{index:U,overflows:O},reset:{placement:F}};let W=(j=O.filter(Z=>Z.overflows[0]<=0).sort((Z,le)=>Z.overflows[1]-le.overflows[1])[0])==null?void 0:j.placement;if(!W)switch(w){case"bestFit":{var $;const Z=($=O.map(le=>[le.placement,le.overflows.filter(ne=>ne>0).reduce((ne,z)=>ne+z,0)]).sort((le,ne)=>le[1]-ne[1])[0])==null?void 0:$[0];Z&&(W=Z);break}case"initialPlacement":W=a;break}if(o!==W)return{reset:{placement:W}}}return{}}}};function nm(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function rm(e){return Vb.some(t=>e[t]>=0)}const n2=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Vn(e,t);switch(r){case"referenceHidden":{const i=await Qi(t,{...o,elementContext:"reference"}),l=nm(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:rm(l)}}}case"escaped":{const i=await Qi(t,{...o,altBoundary:!0}),l=nm(i,n.floating);return{data:{escapedOffsets:l,escaped:rm(l)}}}default:return{}}}}};async function r2(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=qn(n),a=qo(n),f=Go(n)==="y",u=["left","top"].includes(l)?-1:1,p=i&&f?-1:1,m=Vn(t,e);let{mainAxis:h,crossAxis:w,alignmentAxis:C}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return a&&typeof C=="number"&&(w=a==="end"?C*-1:C),f?{x:w*p,y:h*u}:{x:h*u,y:w*p}}const o2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:a}=t,f=await r2(t,e);return l===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+f.x,y:i+f.y,data:{...f,placement:l}}}}},i2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:R=>{let{x:y,y:g}=R;return{x:y,y:g}}},...f}=Vn(e,t),u={x:n,y:r},p=await Qi(t,f),m=Go(qn(o)),h=Nf(m);let w=u[h],C=u[m];if(i){const R=h==="y"?"top":"left",y=h==="y"?"bottom":"right",g=w+p[R],b=w-p[y];w=dc(g,w,b)}if(l){const R=m==="y"?"top":"left",y=m==="y"?"bottom":"right",g=C+p[R],b=C-p[y];C=dc(g,C,b)}const E=a.fn({...t,[h]:w,[m]:C});return{...E,data:{x:E.x-n,y:E.y-r}}}}},l2=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:f=!0,crossAxis:u=!0}=Vn(e,t),p={x:n,y:r},m=Go(o),h=Nf(m);let w=p[h],C=p[m];const E=Vn(a,t),R=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(f){const b=h==="y"?"height":"width",_=i.reference[h]-i.floating[b]+R.mainAxis,P=i.reference[h]+i.reference[b]-R.mainAxis;w<_?w=_:w>P&&(w=P)}if(u){var y,g;const b=h==="y"?"width":"height",_=["top","left"].includes(qn(o)),P=i.reference[m]-i.floating[b]+(_&&((y=l.offset)==null?void 0:y[m])||0)+(_?0:R.crossAxis),A=i.reference[m]+i.reference[b]+(_?0:((g=l.offset)==null?void 0:g[m])||0)-(_?R.crossAxis:0);CA&&(C=A)}return{[h]:w,[m]:C}}}},s2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:l=()=>{},...a}=Vn(e,t),f=await Qi(t,a),u=qn(n),p=qo(n),m=Go(n)==="y",{width:h,height:w}=r.floating;let C,E;u==="top"||u==="bottom"?(C=u,E=p===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(E=u,C=p==="end"?"top":"bottom");const R=w-f.top-f.bottom,y=h-f.left-f.right,g=Rn(w-f[C],R),b=Rn(h-f[E],y),_=!t.middlewareData.shift;let P=g,A=b;if(m?A=p||_?Rn(b,y):y:P=p||_?Rn(g,R):R,_&&!p){const O=Ht(f.left,0),I=Ht(f.right,0),j=Ht(f.top,0),$=Ht(f.bottom,0);m?A=h-2*(O!==0||I!==0?O+I:Ht(f.left,f.right)):P=w-2*(j!==0||$!==0?j+$:Ht(f.top,f.bottom))}await l({...t,availableWidth:A,availableHeight:P});const T=await o.getDimensions(i.floating);return h!==T.width||w!==T.height?{reset:{rects:!0}}:{}}}};function Ko(e){return mg(e)?(e.nodeName||"").toLowerCase():"#document"}function Wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Kn(e){var t;return(t=(mg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function mg(e){return e instanceof Node||e instanceof Wt(e).Node}function Nn(e){return e instanceof Element||e instanceof Wt(e).Element}function An(e){return e instanceof HTMLElement||e instanceof Wt(e).HTMLElement}function om(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wt(e).ShadowRoot}function ol(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=hn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function a2(e){return["table","td","th"].includes(Ko(e))}function Of(e){const t=jf(),n=hn(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 u2(e){let t=Sr(e);for(;An(t)&&!zo(t);){if(Of(t))return t;t=Sr(t)}return null}function jf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function zo(e){return["html","body","#document"].includes(Ko(e))}function hn(e){return Wt(e).getComputedStyle(e)}function fa(e){return Nn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Sr(e){if(Ko(e)==="html")return e;const t=e.assignedSlot||e.parentNode||om(e)&&e.host||Kn(e);return om(t)?t.host:t}function hg(e){const t=Sr(e);return zo(t)?e.ownerDocument?e.ownerDocument.body:e.body:An(t)&&ol(t)?t:hg(t)}function Yi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=hg(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=Wt(o);return i?t.concat(l,l.visualViewport||[],ol(o)?o:[],l.frameElement&&n?Yi(l.frameElement):[]):t.concat(o,Yi(o,[],n))}function vg(e){const t=hn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=An(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=Ms(n)!==i||Ms(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function Mf(e){return Nn(e)?e:e.contextElement}function Po(e){const t=Mf(e);if(!An(t))return xr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=vg(t);let l=(i?Ms(n.width):n.width)/r,a=(i?Ms(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}const c2=xr(0);function gg(e){const t=Wt(e);return!jf()||!t.visualViewport?c2:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function f2(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Wt(e)?!1:t}function Gr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Mf(e);let l=xr(1);t&&(r?Nn(r)&&(l=Po(r)):l=Po(e));const a=f2(i,n,r)?gg(i):xr(0);let f=(o.left+a.x)/l.x,u=(o.top+a.y)/l.y,p=o.width/l.x,m=o.height/l.y;if(i){const h=Wt(i),w=r&&Nn(r)?Wt(r):r;let C=h,E=C.frameElement;for(;E&&r&&w!==C;){const R=Po(E),y=E.getBoundingClientRect(),g=hn(E),b=y.left+(E.clientLeft+parseFloat(g.paddingLeft))*R.x,_=y.top+(E.clientTop+parseFloat(g.paddingTop))*R.y;f*=R.x,u*=R.y,p*=R.x,m*=R.y,f+=b,u+=_,C=Wt(E),E=C.frameElement}}return Ls({width:p,height:m,x:f,y:u})}const d2=[":popover-open",":modal"];function If(e){return d2.some(t=>{try{return e.matches(t)}catch{return!1}})}function p2(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",l=Kn(r),a=t?If(t.floating):!1;if(r===l||a&&i)return n;let f={scrollLeft:0,scrollTop:0},u=xr(1);const p=xr(0),m=An(r);if((m||!m&&!i)&&((Ko(r)!=="body"||ol(l))&&(f=fa(r)),An(r))){const h=Gr(r);u=Po(r),p.x=h.x+r.clientLeft,p.y=h.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-f.scrollLeft*u.x+p.x,y:n.y*u.y-f.scrollTop*u.y+p.y}}function m2(e){return Array.from(e.getClientRects())}function yg(e){return Gr(Kn(e)).left+fa(e).scrollLeft}function h2(e){const t=Kn(e),n=fa(e),r=e.ownerDocument.body,o=Ht(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ht(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+yg(e);const a=-n.scrollTop;return hn(r).direction==="rtl"&&(l+=Ht(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}function v2(e,t){const n=Wt(e),r=Kn(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,a=0,f=0;if(o){i=o.width,l=o.height;const u=jf();(!u||u&&t==="fixed")&&(a=o.offsetLeft,f=o.offsetTop)}return{width:i,height:l,x:a,y:f}}function g2(e,t){const n=Gr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=An(e)?Po(e):xr(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y,f=o*i.x,u=r*i.y;return{width:l,height:a,x:f,y:u}}function im(e,t,n){let r;if(t==="viewport")r=v2(e,n);else if(t==="document")r=h2(Kn(e));else if(Nn(t))r=g2(t,n);else{const o=gg(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Ls(r)}function wg(e,t){const n=Sr(e);return n===t||!Nn(n)||zo(n)?!1:hn(n).position==="fixed"||wg(n,t)}function y2(e,t){const n=t.get(e);if(n)return n;let r=Yi(e,[],!1).filter(a=>Nn(a)&&Ko(a)!=="body"),o=null;const i=hn(e).position==="fixed";let l=i?Sr(e):e;for(;Nn(l)&&!zo(l);){const a=hn(l),f=Of(l);!f&&a.position==="fixed"&&(o=null),(i?!f&&!o:!f&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ol(l)&&!f&&wg(e,l))?r=r.filter(p=>p!==l):o=a,l=Sr(l)}return t.set(e,r),r}function w2(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?If(t)?[]:y2(t,this._c):[].concat(n),r],a=l[0],f=l.reduce((u,p)=>{const m=im(t,p,o);return u.top=Ht(m.top,u.top),u.right=Rn(m.right,u.right),u.bottom=Rn(m.bottom,u.bottom),u.left=Ht(m.left,u.left),u},im(t,a,o));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function x2(e){const{width:t,height:n}=vg(e);return{width:t,height:n}}function S2(e,t,n){const r=An(t),o=Kn(t),i=n==="fixed",l=Gr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const f=xr(0);if(r||!r&&!i)if((Ko(t)!=="body"||ol(o))&&(a=fa(t)),r){const m=Gr(t,!0,i,t);f.x=m.x+t.clientLeft,f.y=m.y+t.clientTop}else o&&(f.x=yg(o));const u=l.left+a.scrollLeft-f.x,p=l.top+a.scrollTop-f.y;return{x:u,y:p,width:l.width,height:l.height}}function lu(e){return hn(e).position==="static"}function lm(e,t){return!An(e)||hn(e).position==="fixed"?null:t?t(e):e.offsetParent}function xg(e,t){const n=Wt(e);if(If(e))return n;if(!An(e)){let o=Sr(e);for(;o&&!zo(o);){if(Nn(o)&&!lu(o))return o;o=Sr(o)}return n}let r=lm(e,t);for(;r&&a2(r)&&lu(r);)r=lm(r,t);return r&&zo(r)&&lu(r)&&!Of(r)?n:r||u2(e)||n}const E2=async function(e){const t=this.getOffsetParent||xg,n=this.getDimensions,r=await n(e.floating);return{reference:S2(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function b2(e){return hn(e).direction==="rtl"}const C2={convertOffsetParentRelativeRectToViewportRelativeRect:p2,getDocumentElement:Kn,getClippingRect:w2,getOffsetParent:xg,getElementRects:E2,getClientRects:m2,getDimensions:x2,getScale:Po,isElement:Nn,isRTL:b2};function _2(e,t){let n=null,r;const o=Kn(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function l(a,f){a===void 0&&(a=!1),f===void 0&&(f=1),i();const{left:u,top:p,width:m,height:h}=e.getBoundingClientRect();if(a||t(),!m||!h)return;const w=zl(p),C=zl(o.clientWidth-(u+m)),E=zl(o.clientHeight-(p+h)),R=zl(u),g={rootMargin:-w+"px "+-C+"px "+-E+"px "+-R+"px",threshold:Ht(0,Rn(1,f))||1};let b=!0;function _(P){const A=P[0].intersectionRatio;if(A!==f){if(!b)return l();A?l(!1,A):r=setTimeout(()=>{l(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(_,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,g)}n.observe(e)}return l(!0),i}function k2(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,u=Mf(e),p=o||i?[...u?Yi(u):[],...Yi(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const m=u&&a?_2(u,n):null;let h=-1,w=null;l&&(w=new ResizeObserver(y=>{let[g]=y;g&&g.target===u&&w&&(w.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=w)==null||b.observe(t)})),n()}),u&&!f&&w.observe(u),w.observe(t));let C,E=f?Gr(e):null;f&&R();function R(){const y=Gr(e);E&&(y.x!==E.x||y.y!==E.y||y.width!==E.width||y.height!==E.height)&&n(),E=y,C=requestAnimationFrame(R)}return n(),()=>{var y;p.forEach(g=>{o&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),m==null||m(),(y=w)==null||y.disconnect(),w=null,f&&cancelAnimationFrame(C)}}const R2=o2,P2=i2,T2=t2,N2=s2,A2=n2,sm=e2,D2=l2,O2=(e,t,n)=>{const r=new Map,o={platform:C2,...n},i={...o.platform,_c:r};return Jb(e,t,{...o,platform:i})};var ss=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Fs(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(!Fs(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 i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Fs(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Sg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function am(e,t){const n=Sg(e);return Math.round(t*n)/n}function um(e){const t=v.useRef(e);return ss(()=>{t.current=e}),t}function j2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:a=!0,whileElementsMounted:f,open:u}=e,[p,m]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,w]=v.useState(r);Fs(h,r)||w(r);const[C,E]=v.useState(null),[R,y]=v.useState(null),g=v.useCallback(ne=>{ne!==A.current&&(A.current=ne,E(ne))},[]),b=v.useCallback(ne=>{ne!==T.current&&(T.current=ne,y(ne))},[]),_=i||C,P=l||R,A=v.useRef(null),T=v.useRef(null),O=v.useRef(p),I=f!=null,j=um(f),$=um(o),U=v.useCallback(()=>{if(!A.current||!T.current)return;const ne={placement:t,strategy:n,middleware:h};$.current&&(ne.platform=$.current),O2(A.current,T.current,ne).then(z=>{const V={...z,isPositioned:!0};F.current&&!Fs(O.current,V)&&(O.current=V,Zr.flushSync(()=>{m(V)}))})},[h,t,n,$]);ss(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,m(ne=>({...ne,isPositioned:!1})))},[u]);const F=v.useRef(!1);ss(()=>(F.current=!0,()=>{F.current=!1}),[]),ss(()=>{if(_&&(A.current=_),P&&(T.current=P),_&&P){if(j.current)return j.current(_,P,U);U()}},[_,P,U,j,I]);const W=v.useMemo(()=>({reference:A,floating:T,setReference:g,setFloating:b}),[g,b]),Z=v.useMemo(()=>({reference:_,floating:P}),[_,P]),le=v.useMemo(()=>{const ne={position:n,left:0,top:0};if(!Z.floating)return ne;const z=am(Z.floating,p.x),V=am(Z.floating,p.y);return a?{...ne,transform:"translate("+z+"px, "+V+"px)",...Sg(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:V}},[n,a,Z.floating,p.x,p.y]);return v.useMemo(()=>({...p,update:U,refs:W,elements:Z,floatingStyles:le}),[p,U,W,Z,le])}const M2=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?sm({element:r.current,padding:o}).fn(n):{}:r?sm({element:r,padding:o}).fn(n):{}}}},I2=(e,t)=>({...R2(e),options:[e,t]}),L2=(e,t)=>({...P2(e),options:[e,t]}),F2=(e,t)=>({...D2(e),options:[e,t]}),z2=(e,t)=>({...T2(e),options:[e,t]}),$2=(e,t)=>({...N2(e),options:[e,t]}),H2=(e,t)=>({...A2(e),options:[e,t]}),U2=(e,t)=>({...M2(e),options:[e,t]});var B2="Arrow",Eg=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return x.jsx(Me.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});Eg.displayName=B2;var W2=Eg;function V2(e){const[t,n]=v.useState(void 0);return kt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,a;if("borderBoxSize"in i){const f=i.borderBoxSize,u=Array.isArray(f)?f[0]:f;l=u.inlineSize,a=u.blockSize}else l=e.offsetWidth,a=e.offsetHeight;n({width:l,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Lf="Popper",[bg,da]=Vo(Lf),[q2,Cg]=bg(Lf),_g=e=>{const{__scopePopper:t,children:n}=e,[r,o]=v.useState(null);return x.jsx(q2,{scope:t,anchor:r,onAnchorChange:o,children:n})};_g.displayName=Lf;var kg="PopperAnchor",Rg=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Cg(kg,n),l=v.useRef(null),a=Ve(t,l);return v.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:x.jsx(Me.div,{...o,ref:a})});Rg.displayName=kg;var Ff="PopperContent",[G2,K2]=bg(Ff),Pg=v.forwardRef((e,t)=>{var J,ye,Ie,K,ge,de;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:l=0,arrowPadding:a=0,avoidCollisions:f=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:w="optimized",onPlaced:C,...E}=e,R=Cg(Ff,n),[y,g]=v.useState(null),b=Ve(t,Y=>g(Y)),[_,P]=v.useState(null),A=V2(_),T=(A==null?void 0:A.width)??0,O=(A==null?void 0:A.height)??0,I=r+(i!=="center"?"-"+i:""),j=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},$=Array.isArray(u)?u:[u],U=$.length>0,F={padding:j,boundary:$.filter(Y2),altBoundary:U},{refs:W,floatingStyles:Z,placement:le,isPositioned:ne,middlewareData:z}=j2({strategy:"fixed",placement:I,whileElementsMounted:(...Y)=>k2(...Y,{animationFrame:w==="always"}),elements:{reference:R.anchor},middleware:[I2({mainAxis:o+O,alignmentAxis:l}),f&&L2({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?F2():void 0,...F}),f&&z2({...F}),$2({...F,apply:({elements:Y,rects:me,availableWidth:ut,availableHeight:Je})=>{const{width:tt,height:Tt}=me.reference,ke=Y.floating.style;ke.setProperty("--radix-popper-available-width",`${ut}px`),ke.setProperty("--radix-popper-available-height",`${Je}px`),ke.setProperty("--radix-popper-anchor-width",`${tt}px`),ke.setProperty("--radix-popper-anchor-height",`${Tt}px`)}}),_&&U2({element:_,padding:a}),X2({arrowWidth:T,arrowHeight:O}),h&&H2({strategy:"referenceHidden",...F})]}),[V,ee]=Ag(le),se=Wn(C);kt(()=>{ne&&(se==null||se())},[ne,se]);const ue=(J=z.arrow)==null?void 0:J.x,qe=(ye=z.arrow)==null?void 0:ye.y,ve=((Ie=z.arrow)==null?void 0:Ie.centerOffset)!==0,[Xe,_e]=v.useState();return kt(()=>{y&&_e(window.getComputedStyle(y).zIndex)},[y]),x.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:ne?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Xe,"--radix-popper-transform-origin":[(K=z.transformOrigin)==null?void 0:K.x,(ge=z.transformOrigin)==null?void 0:ge.y].join(" "),...((de=z.hide)==null?void 0:de.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:x.jsx(G2,{scope:n,placedSide:V,onArrowChange:P,arrowX:ue,arrowY:qe,shouldHideArrow:ve,children:x.jsx(Me.div,{"data-side":V,"data-align":ee,...E,ref:b,style:{...E.style,animation:ne?void 0:"none"}})})})});Pg.displayName=Ff;var Tg="PopperArrow",Q2={top:"bottom",right:"left",bottom:"top",left:"right"},Ng=v.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=K2(Tg,r),l=Q2[i.placedSide];return x.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:x.jsx(W2,{...o,ref:n,style:{...o.style,display:"block"}})})});Ng.displayName=Tg;function Y2(e){return e!==null}var X2=e=>({name:"transformOrigin",options:e,fn(t){var R,y,g;const{placement:n,rects:r,middlewareData:o}=t,l=((R=o.arrow)==null?void 0:R.centerOffset)!==0,a=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[u,p]=Ag(n),m={start:"0%",center:"50%",end:"100%"}[p],h=(((y=o.arrow)==null?void 0:y.x)??0)+a/2,w=(((g=o.arrow)==null?void 0:g.y)??0)+f/2;let C="",E="";return u==="bottom"?(C=l?m:`${h}px`,E=`${-f}px`):u==="top"?(C=l?m:`${h}px`,E=`${r.floating.height+f}px`):u==="right"?(C=`${-f}px`,E=l?m:`${w}px`):u==="left"&&(C=`${r.floating.width+f}px`,E=l?m:`${w}px`),{data:{x:C,y:E}}}});function Ag(e){const[t,n="center"]=e.split("-");return[t,n]}var Dg=_g,Og=Rg,jg=Pg,Mg=Ng,Z2="Portal",zf=v.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=v.useState(!1);kt(()=>i(!0),[]);const l=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return l?AS.createPortal(x.jsx(Me.div,{...r,ref:t}),l):null});zf.displayName=Z2;function zs({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=J2({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,a=Wn(n),f=v.useCallback(u=>{if(i){const m=typeof u=="function"?u(e):u;m!==e&&a(m)}else o(u)},[i,e,o,a]);return[l,f]}function J2({defaultProp:e,onChange:t}){const n=v.useState(e),[r]=n,o=v.useRef(r),i=Wn(t);return v.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function eC(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var tC="VisuallyHidden",Ig=v.forwardRef((e,t)=>x.jsx(Me.span,{...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}}));Ig.displayName=tC;var nC=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},io=new WeakMap,$l=new WeakMap,Hl={},su=0,Lg=function(e){return e&&(e.host||Lg(e.parentNode))},rC=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Lg(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})},oC=function(e,t,n,r){var o=rC(t,Array.isArray(e)?e:[e]);Hl[n]||(Hl[n]=new WeakMap);var i=Hl[n],l=[],a=new Set,f=new Set(o),u=function(m){!m||a.has(m)||(a.add(m),u(m.parentNode))};o.forEach(u);var p=function(m){!m||f.has(m)||Array.prototype.forEach.call(m.children,function(h){if(a.has(h))p(h);else try{var w=h.getAttribute(r),C=w!==null&&w!=="false",E=(io.get(h)||0)+1,R=(i.get(h)||0)+1;io.set(h,E),i.set(h,R),l.push(h),E===1&&C&&$l.set(h,!0),R===1&&h.setAttribute(n,"true"),C||h.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return p(t),a.clear(),su++,function(){l.forEach(function(m){var h=io.get(m)-1,w=i.get(m)-1;io.set(m,h),i.set(m,w),h||($l.has(m)||m.removeAttribute(r),$l.delete(m)),w||m.removeAttribute(n)}),su--,su||(io=new WeakMap,io=new WeakMap,$l=new WeakMap,Hl={})}},Fg=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=nC(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),oC(r,o,n,"aria-hidden")):function(){return null}},kn=function(){return kn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){l={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return i}function mc(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r"u")return xC;var t=SC(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])}},bC=Ug(),To="data-scroll-locked",CC=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,a=e.gap;return n===void 0&&(n="margin"),` + */const wb=at("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]);function xb({page:e,setPage:t,rowsPerPage:n,rowCount:r}){const o=Math.ceil(r/n),i=Math.floor(e/n)+1,l=()=>{i{i>1&&t(e-n)};return x.jsx("section",{className:"fixed bottom-[8px] left-0 right-0 w-[270px] mx-auto z-10",children:x.jsxs("div",{className:"flex justify-between gap-2 bg-secondary p-[6px] border rounded",children:[x.jsx(Zt,{onClick:a,disabled:i===1,children:x.jsx(rb,{className:"h-4 w-4"})}),x.jsxs("span",{className:"text-sm flex items-center justify-center",children:["Page ",i," of ",o]}),x.jsx(Zt,{onClick:l,disabled:i>=o,children:x.jsx(ob,{className:"h-4 w-4"})})]})})}function Gp(e,[t,n]){return Math.min(n,Math.max(t,e))}function be(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Sb(e,t){const n=v.createContext(t);function r(i){const{children:l,...a}=i,f=v.useMemo(()=>a,Object.values(a));return x.jsx(n.Provider,{value:f,children:l})}function o(i){const l=v.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,o]}function Vo(e,t=[]){let n=[];function r(i,l){const a=v.createContext(l),f=n.length;n=[...n,l];function u(m){const{scope:h,children:w,...C}=m,b=(h==null?void 0:h[e][f])||a,R=v.useMemo(()=>C,Object.values(C));return x.jsx(b.Provider,{value:R,children:w})}function p(m,h){const w=(h==null?void 0:h[e][f])||a,C=v.useContext(w);if(C)return C;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,p]}const o=()=>{const i=n.map(l=>v.createContext(l));return function(a){const f=(a==null?void 0:a[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:f}}),[a,f])}};return o.scopeName=e,[r,Eb(o,...t)]}function Eb(...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(i){const l=r.reduce((a,{useScope:f,scopeName:u})=>{const m=f(i)[`__scope${u}`];return{...a,...m}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function bb(e){const t=e+"CollectionProvider",[n,r]=Vo(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=w=>{const{scope:C,children:b}=w,R=Q.useRef(null),y=Q.useRef(new Map).current;return x.jsx(o,{scope:C,itemMap:y,collectionRef:R,children:b})};l.displayName=t;const a=e+"CollectionSlot",f=Q.forwardRef((w,C)=>{const{scope:b,children:R}=w,y=i(a,b),g=Ve(C,y.collectionRef);return x.jsx(qr,{ref:g,children:R})});f.displayName=a;const u=e+"CollectionItemSlot",p="data-radix-collection-item",m=Q.forwardRef((w,C)=>{const{scope:b,children:R,...y}=w,g=Q.useRef(null),E=Ve(C,g),_=i(u,b);return Q.useEffect(()=>(_.itemMap.set(g,{ref:g,...y}),()=>void _.itemMap.delete(g))),x.jsx(qr,{[p]:"",ref:E,children:R})});m.displayName=u;function h(w){const C=i(e+"CollectionConsumer",w);return Q.useCallback(()=>{const R=C.collectionRef.current;if(!R)return[];const y=Array.from(R.querySelectorAll(`[${p}]`));return Array.from(C.itemMap.values()).sort((_,P)=>y.indexOf(_.ref.current)-y.indexOf(P.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:l,Slot:f,ItemSlot:m},h,r]}var Cb=v.createContext(void 0);function _b(e){const t=v.useContext(Cb);return e||t||"ltr"}var kb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Me=kb.reduce((e,t)=>{const n=v.forwardRef((r,o)=>{const{asChild:i,...l}=r,a=i?qr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(a,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Rb(e,t){e&&Zr.flushSync(()=>e.dispatchEvent(t))}function Wn(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Pb(e,t=globalThis==null?void 0:globalThis.document){const n=Wn(e);v.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Nb="DismissableLayer",fc="dismissableLayer.update",Tb="dismissableLayer.pointerDownOutside",Ab="dismissableLayer.focusOutside",Kp,ug=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ca=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:a,...f}=e,u=v.useContext(ug),[p,m]=v.useState(null),h=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=v.useState({}),C=Ve(t,N=>m(N)),b=Array.from(u.layers),[R]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=b.indexOf(R),g=p?b.indexOf(p):-1,E=u.layersWithOutsidePointerEventsDisabled.size>0,_=g>=y,P=jb(N=>{const O=N.target,I=[...u.branches].some(j=>j.contains(O));!_||I||(o==null||o(N),l==null||l(N),N.defaultPrevented||a==null||a())},h),A=Mb(N=>{const O=N.target;[...u.branches].some(j=>j.contains(O))||(i==null||i(N),l==null||l(N),N.defaultPrevented||a==null||a())},h);return Pb(N=>{g===u.layers.size-1&&(r==null||r(N),!N.defaultPrevented&&a&&(N.preventDefault(),a()))},h),v.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Kp=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),Qp(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Kp)}},[p,h,n,u]),v.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),Qp())},[p,u]),v.useEffect(()=>{const N=()=>w({});return document.addEventListener(fc,N),()=>document.removeEventListener(fc,N)},[]),x.jsx(Me.div,{...f,ref:C,style:{pointerEvents:E?_?"auto":"none":void 0,...e.style},onFocusCapture:be(e.onFocusCapture,A.onFocusCapture),onBlurCapture:be(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:be(e.onPointerDownCapture,P.onPointerDownCapture)})});ca.displayName=Nb;var Db="DismissableLayerBranch",Ob=v.forwardRef((e,t)=>{const n=v.useContext(ug),r=v.useRef(null),o=Ve(t,r);return v.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),x.jsx(Me.div,{...e,ref:o})});Ob.displayName=Db;function jb(e,t=globalThis==null?void 0:globalThis.document){const n=Wn(e),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let f=function(){cg(Tb,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=f,t.addEventListener("click",o.current,{once:!0})):f()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Mb(e,t=globalThis==null?void 0:globalThis.document){const n=Wn(e),r=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!r.current&&cg(Ab,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Qp(){const e=new CustomEvent(fc);document.dispatchEvent(e)}function cg(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Rb(o,i):o.dispatchEvent(i)}var ru=0;function fg(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Yp()),document.body.insertAdjacentElement("beforeend",e[1]??Yp()),ru++,()=>{ru===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ru--}},[])}function Yp(){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}var ou="focusScope.autoFocusOnMount",iu="focusScope.autoFocusOnUnmount",Xp={bubbles:!1,cancelable:!0},Ib="FocusScope",Nf=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[a,f]=v.useState(null),u=Wn(o),p=Wn(i),m=v.useRef(null),h=Ve(t,b=>f(b)),w=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let b=function(E){if(w.paused||!a)return;const _=E.target;a.contains(_)?m.current=_:rr(m.current,{select:!0})},R=function(E){if(w.paused||!a)return;const _=E.relatedTarget;_!==null&&(a.contains(_)||rr(m.current,{select:!0}))},y=function(E){if(document.activeElement===document.body)for(const P of E)P.removedNodes.length>0&&rr(a)};document.addEventListener("focusin",b),document.addEventListener("focusout",R);const g=new MutationObserver(y);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",R),g.disconnect()}}},[r,a,w.paused]),v.useEffect(()=>{if(a){Jp.add(w);const b=document.activeElement;if(!a.contains(b)){const y=new CustomEvent(ou,Xp);a.addEventListener(ou,u),a.dispatchEvent(y),y.defaultPrevented||(Lb(Ub(dg(a)),{select:!0}),document.activeElement===b&&rr(a))}return()=>{a.removeEventListener(ou,u),setTimeout(()=>{const y=new CustomEvent(iu,Xp);a.addEventListener(iu,p),a.dispatchEvent(y),y.defaultPrevented||rr(b??document.body,{select:!0}),a.removeEventListener(iu,p),Jp.remove(w)},0)}}},[a,u,p,w]);const C=v.useCallback(b=>{if(!n&&!r||w.paused)return;const R=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,y=document.activeElement;if(R&&y){const g=b.currentTarget,[E,_]=Fb(g);E&&_?!b.shiftKey&&y===_?(b.preventDefault(),n&&rr(E,{select:!0})):b.shiftKey&&y===E&&(b.preventDefault(),n&&rr(_,{select:!0})):y===g&&b.preventDefault()}},[n,r,w.paused]);return x.jsx(Me.div,{tabIndex:-1,...l,ref:h,onKeyDown:C})});Nf.displayName=Ib;function Lb(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(rr(r,{select:t}),document.activeElement!==n)return}function Fb(e){const t=dg(e),n=Zp(t,e),r=Zp(t.reverse(),e);return[n,r]}function dg(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 Zp(e,t){for(const n of e)if(!zb(n,{upTo:t}))return n}function zb(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 $b(e){return e instanceof HTMLInputElement&&"select"in e}function rr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$b(e)&&t&&e.select()}}var Jp=Hb();function Hb(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=em(e,t),e.unshift(t)},remove(t){var n;e=em(e,t),(n=e[0])==null||n.resume()}}}function em(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ub(e){return e.filter(t=>t.tagName!=="A")}var kt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},Bb=x1.useId||(()=>{}),Wb=0;function Ro(e){const[t,n]=v.useState(Bb());return kt(()=>{n(r=>r??String(Wb++))},[e]),t?`radix-${t}`:""}const Vb=["top","right","bottom","left"],Rn=Math.min,Ht=Math.max,Ms=Math.round,zl=Math.floor,xr=e=>({x:e,y:e}),qb={left:"right",right:"left",bottom:"top",top:"bottom"},Gb={start:"end",end:"start"};function dc(e,t,n){return Ht(e,Rn(t,n))}function Vn(e,t){return typeof e=="function"?e(t):e}function qn(e){return e.split("-")[0]}function qo(e){return e.split("-")[1]}function Tf(e){return e==="x"?"y":"x"}function Af(e){return e==="y"?"height":"width"}function Go(e){return["top","bottom"].includes(qn(e))?"y":"x"}function Df(e){return Tf(Go(e))}function Kb(e,t,n){n===void 0&&(n=!1);const r=qo(e),o=Df(e),i=Af(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Is(l)),[l,Is(l)]}function Qb(e){const t=Is(e);return[pc(e),t,pc(t)]}function pc(e){return e.replace(/start|end/g,t=>Gb[t])}function Yb(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}function Xb(e,t,n,r){const o=qo(e);let i=Yb(qn(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(pc)))),i}function Is(e){return e.replace(/left|right|bottom|top/g,t=>qb[t])}function Zb(e){return{top:0,right:0,bottom:0,left:0,...e}}function pg(e){return typeof e!="number"?Zb(e):{top:e,right:e,bottom:e,left:e}}function Ls(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 tm(e,t,n){let{reference:r,floating:o}=e;const i=Go(t),l=Df(t),a=Af(l),f=qn(t),u=i==="y",p=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let w;switch(f){case"top":w={x:p,y:r.y-o.height};break;case"bottom":w={x:p,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:m};break;case"left":w={x:r.x-o.width,y:m};break;default:w={x:r.x,y:r.y}}switch(qo(t)){case"start":w[l]-=h*(n&&u?-1:1);break;case"end":w[l]+=h*(n&&u?-1:1);break}return w}const Jb=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:m}=tm(u,r,f),h=r,w={},C=0;for(let b=0;b({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:f}=t,{element:u,padding:p=0}=Vn(e,t)||{};if(u==null)return{};const m=pg(p),h={x:n,y:r},w=Df(o),C=Af(w),b=await l.getDimensions(u),R=w==="y",y=R?"top":"left",g=R?"bottom":"right",E=R?"clientHeight":"clientWidth",_=i.reference[C]+i.reference[w]-h[w]-i.floating[C],P=h[w]-i.reference[w],A=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let N=A?A[E]:0;(!N||!await(l.isElement==null?void 0:l.isElement(A)))&&(N=a.floating[E]||i.floating[C]);const O=_/2-P/2,I=N/2-b[C]/2-1,j=Rn(m[y],I),H=Rn(m[g],I),U=j,F=N-b[C]-H,W=N/2-b[C]/2+O,Z=dc(U,W,F),le=!f.arrow&&qo(o)!=null&&W!==Z&&i.reference[C]/2-(WU<=0)){var I,j;const U=(((I=i.flip)==null?void 0:I.index)||0)+1,F=P[U];if(F)return{data:{index:U,overflows:O},reset:{placement:F}};let W=(j=O.filter(Z=>Z.overflows[0]<=0).sort((Z,le)=>Z.overflows[1]-le.overflows[1])[0])==null?void 0:j.placement;if(!W)switch(w){case"bestFit":{var H;const Z=(H=O.map(le=>[le.placement,le.overflows.filter(ne=>ne>0).reduce((ne,z)=>ne+z,0)]).sort((le,ne)=>le[1]-ne[1])[0])==null?void 0:H[0];Z&&(W=Z);break}case"initialPlacement":W=a;break}if(o!==W)return{reset:{placement:W}}}return{}}}};function nm(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function rm(e){return Vb.some(t=>e[t]>=0)}const n2=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Vn(e,t);switch(r){case"referenceHidden":{const i=await Qi(t,{...o,elementContext:"reference"}),l=nm(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:rm(l)}}}case"escaped":{const i=await Qi(t,{...o,altBoundary:!0}),l=nm(i,n.floating);return{data:{escapedOffsets:l,escaped:rm(l)}}}default:return{}}}}};async function r2(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=qn(n),a=qo(n),f=Go(n)==="y",u=["left","top"].includes(l)?-1:1,p=i&&f?-1:1,m=Vn(t,e);let{mainAxis:h,crossAxis:w,alignmentAxis:C}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return a&&typeof C=="number"&&(w=a==="end"?C*-1:C),f?{x:w*p,y:h*u}:{x:h*u,y:w*p}}const o2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:a}=t,f=await r2(t,e);return l===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+f.x,y:i+f.y,data:{...f,placement:l}}}}},i2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:R=>{let{x:y,y:g}=R;return{x:y,y:g}}},...f}=Vn(e,t),u={x:n,y:r},p=await Qi(t,f),m=Go(qn(o)),h=Tf(m);let w=u[h],C=u[m];if(i){const R=h==="y"?"top":"left",y=h==="y"?"bottom":"right",g=w+p[R],E=w-p[y];w=dc(g,w,E)}if(l){const R=m==="y"?"top":"left",y=m==="y"?"bottom":"right",g=C+p[R],E=C-p[y];C=dc(g,C,E)}const b=a.fn({...t,[h]:w,[m]:C});return{...b,data:{x:b.x-n,y:b.y-r}}}}},l2=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:f=!0,crossAxis:u=!0}=Vn(e,t),p={x:n,y:r},m=Go(o),h=Tf(m);let w=p[h],C=p[m];const b=Vn(a,t),R=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(f){const E=h==="y"?"height":"width",_=i.reference[h]-i.floating[E]+R.mainAxis,P=i.reference[h]+i.reference[E]-R.mainAxis;w<_?w=_:w>P&&(w=P)}if(u){var y,g;const E=h==="y"?"width":"height",_=["top","left"].includes(qn(o)),P=i.reference[m]-i.floating[E]+(_&&((y=l.offset)==null?void 0:y[m])||0)+(_?0:R.crossAxis),A=i.reference[m]+i.reference[E]+(_?0:((g=l.offset)==null?void 0:g[m])||0)-(_?R.crossAxis:0);CA&&(C=A)}return{[h]:w,[m]:C}}}},s2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:l=()=>{},...a}=Vn(e,t),f=await Qi(t,a),u=qn(n),p=qo(n),m=Go(n)==="y",{width:h,height:w}=r.floating;let C,b;u==="top"||u==="bottom"?(C=u,b=p===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(b=u,C=p==="end"?"top":"bottom");const R=w-f.top-f.bottom,y=h-f.left-f.right,g=Rn(w-f[C],R),E=Rn(h-f[b],y),_=!t.middlewareData.shift;let P=g,A=E;if(m?A=p||_?Rn(E,y):y:P=p||_?Rn(g,R):R,_&&!p){const O=Ht(f.left,0),I=Ht(f.right,0),j=Ht(f.top,0),H=Ht(f.bottom,0);m?A=h-2*(O!==0||I!==0?O+I:Ht(f.left,f.right)):P=w-2*(j!==0||H!==0?j+H:Ht(f.top,f.bottom))}await l({...t,availableWidth:A,availableHeight:P});const N=await o.getDimensions(i.floating);return h!==N.width||w!==N.height?{reset:{rects:!0}}:{}}}};function Ko(e){return mg(e)?(e.nodeName||"").toLowerCase():"#document"}function Wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Kn(e){var t;return(t=(mg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function mg(e){return e instanceof Node||e instanceof Wt(e).Node}function Tn(e){return e instanceof Element||e instanceof Wt(e).Element}function An(e){return e instanceof HTMLElement||e instanceof Wt(e).HTMLElement}function om(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wt(e).ShadowRoot}function ol(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=hn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function a2(e){return["table","td","th"].includes(Ko(e))}function Of(e){const t=jf(),n=hn(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 u2(e){let t=Sr(e);for(;An(t)&&!zo(t);){if(Of(t))return t;t=Sr(t)}return null}function jf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function zo(e){return["html","body","#document"].includes(Ko(e))}function hn(e){return Wt(e).getComputedStyle(e)}function fa(e){return Tn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Sr(e){if(Ko(e)==="html")return e;const t=e.assignedSlot||e.parentNode||om(e)&&e.host||Kn(e);return om(t)?t.host:t}function hg(e){const t=Sr(e);return zo(t)?e.ownerDocument?e.ownerDocument.body:e.body:An(t)&&ol(t)?t:hg(t)}function Yi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=hg(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=Wt(o);return i?t.concat(l,l.visualViewport||[],ol(o)?o:[],l.frameElement&&n?Yi(l.frameElement):[]):t.concat(o,Yi(o,[],n))}function vg(e){const t=hn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=An(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=Ms(n)!==i||Ms(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function Mf(e){return Tn(e)?e:e.contextElement}function Po(e){const t=Mf(e);if(!An(t))return xr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=vg(t);let l=(i?Ms(n.width):n.width)/r,a=(i?Ms(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}const c2=xr(0);function gg(e){const t=Wt(e);return!jf()||!t.visualViewport?c2:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function f2(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Wt(e)?!1:t}function Gr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Mf(e);let l=xr(1);t&&(r?Tn(r)&&(l=Po(r)):l=Po(e));const a=f2(i,n,r)?gg(i):xr(0);let f=(o.left+a.x)/l.x,u=(o.top+a.y)/l.y,p=o.width/l.x,m=o.height/l.y;if(i){const h=Wt(i),w=r&&Tn(r)?Wt(r):r;let C=h,b=C.frameElement;for(;b&&r&&w!==C;){const R=Po(b),y=b.getBoundingClientRect(),g=hn(b),E=y.left+(b.clientLeft+parseFloat(g.paddingLeft))*R.x,_=y.top+(b.clientTop+parseFloat(g.paddingTop))*R.y;f*=R.x,u*=R.y,p*=R.x,m*=R.y,f+=E,u+=_,C=Wt(b),b=C.frameElement}}return Ls({width:p,height:m,x:f,y:u})}const d2=[":popover-open",":modal"];function If(e){return d2.some(t=>{try{return e.matches(t)}catch{return!1}})}function p2(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",l=Kn(r),a=t?If(t.floating):!1;if(r===l||a&&i)return n;let f={scrollLeft:0,scrollTop:0},u=xr(1);const p=xr(0),m=An(r);if((m||!m&&!i)&&((Ko(r)!=="body"||ol(l))&&(f=fa(r)),An(r))){const h=Gr(r);u=Po(r),p.x=h.x+r.clientLeft,p.y=h.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-f.scrollLeft*u.x+p.x,y:n.y*u.y-f.scrollTop*u.y+p.y}}function m2(e){return Array.from(e.getClientRects())}function yg(e){return Gr(Kn(e)).left+fa(e).scrollLeft}function h2(e){const t=Kn(e),n=fa(e),r=e.ownerDocument.body,o=Ht(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ht(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+yg(e);const a=-n.scrollTop;return hn(r).direction==="rtl"&&(l+=Ht(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}function v2(e,t){const n=Wt(e),r=Kn(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,a=0,f=0;if(o){i=o.width,l=o.height;const u=jf();(!u||u&&t==="fixed")&&(a=o.offsetLeft,f=o.offsetTop)}return{width:i,height:l,x:a,y:f}}function g2(e,t){const n=Gr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=An(e)?Po(e):xr(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y,f=o*i.x,u=r*i.y;return{width:l,height:a,x:f,y:u}}function im(e,t,n){let r;if(t==="viewport")r=v2(e,n);else if(t==="document")r=h2(Kn(e));else if(Tn(t))r=g2(t,n);else{const o=gg(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Ls(r)}function wg(e,t){const n=Sr(e);return n===t||!Tn(n)||zo(n)?!1:hn(n).position==="fixed"||wg(n,t)}function y2(e,t){const n=t.get(e);if(n)return n;let r=Yi(e,[],!1).filter(a=>Tn(a)&&Ko(a)!=="body"),o=null;const i=hn(e).position==="fixed";let l=i?Sr(e):e;for(;Tn(l)&&!zo(l);){const a=hn(l),f=Of(l);!f&&a.position==="fixed"&&(o=null),(i?!f&&!o:!f&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ol(l)&&!f&&wg(e,l))?r=r.filter(p=>p!==l):o=a,l=Sr(l)}return t.set(e,r),r}function w2(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?If(t)?[]:y2(t,this._c):[].concat(n),r],a=l[0],f=l.reduce((u,p)=>{const m=im(t,p,o);return u.top=Ht(m.top,u.top),u.right=Rn(m.right,u.right),u.bottom=Rn(m.bottom,u.bottom),u.left=Ht(m.left,u.left),u},im(t,a,o));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function x2(e){const{width:t,height:n}=vg(e);return{width:t,height:n}}function S2(e,t,n){const r=An(t),o=Kn(t),i=n==="fixed",l=Gr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const f=xr(0);if(r||!r&&!i)if((Ko(t)!=="body"||ol(o))&&(a=fa(t)),r){const m=Gr(t,!0,i,t);f.x=m.x+t.clientLeft,f.y=m.y+t.clientTop}else o&&(f.x=yg(o));const u=l.left+a.scrollLeft-f.x,p=l.top+a.scrollTop-f.y;return{x:u,y:p,width:l.width,height:l.height}}function lu(e){return hn(e).position==="static"}function lm(e,t){return!An(e)||hn(e).position==="fixed"?null:t?t(e):e.offsetParent}function xg(e,t){const n=Wt(e);if(If(e))return n;if(!An(e)){let o=Sr(e);for(;o&&!zo(o);){if(Tn(o)&&!lu(o))return o;o=Sr(o)}return n}let r=lm(e,t);for(;r&&a2(r)&&lu(r);)r=lm(r,t);return r&&zo(r)&&lu(r)&&!Of(r)?n:r||u2(e)||n}const E2=async function(e){const t=this.getOffsetParent||xg,n=this.getDimensions,r=await n(e.floating);return{reference:S2(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function b2(e){return hn(e).direction==="rtl"}const C2={convertOffsetParentRelativeRectToViewportRelativeRect:p2,getDocumentElement:Kn,getClippingRect:w2,getOffsetParent:xg,getElementRects:E2,getClientRects:m2,getDimensions:x2,getScale:Po,isElement:Tn,isRTL:b2};function _2(e,t){let n=null,r;const o=Kn(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function l(a,f){a===void 0&&(a=!1),f===void 0&&(f=1),i();const{left:u,top:p,width:m,height:h}=e.getBoundingClientRect();if(a||t(),!m||!h)return;const w=zl(p),C=zl(o.clientWidth-(u+m)),b=zl(o.clientHeight-(p+h)),R=zl(u),g={rootMargin:-w+"px "+-C+"px "+-b+"px "+-R+"px",threshold:Ht(0,Rn(1,f))||1};let E=!0;function _(P){const A=P[0].intersectionRatio;if(A!==f){if(!E)return l();A?l(!1,A):r=setTimeout(()=>{l(!1,1e-7)},1e3)}E=!1}try{n=new IntersectionObserver(_,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,g)}n.observe(e)}return l(!0),i}function k2(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,u=Mf(e),p=o||i?[...u?Yi(u):[],...Yi(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const m=u&&a?_2(u,n):null;let h=-1,w=null;l&&(w=new ResizeObserver(y=>{let[g]=y;g&&g.target===u&&w&&(w.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var E;(E=w)==null||E.observe(t)})),n()}),u&&!f&&w.observe(u),w.observe(t));let C,b=f?Gr(e):null;f&&R();function R(){const y=Gr(e);b&&(y.x!==b.x||y.y!==b.y||y.width!==b.width||y.height!==b.height)&&n(),b=y,C=requestAnimationFrame(R)}return n(),()=>{var y;p.forEach(g=>{o&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),m==null||m(),(y=w)==null||y.disconnect(),w=null,f&&cancelAnimationFrame(C)}}const R2=o2,P2=i2,N2=t2,T2=s2,A2=n2,sm=e2,D2=l2,O2=(e,t,n)=>{const r=new Map,o={platform:C2,...n},i={...o.platform,_c:r};return Jb(e,t,{...o,platform:i})};var ss=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Fs(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(!Fs(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 i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Fs(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Sg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function am(e,t){const n=Sg(e);return Math.round(t*n)/n}function um(e){const t=v.useRef(e);return ss(()=>{t.current=e}),t}function j2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:a=!0,whileElementsMounted:f,open:u}=e,[p,m]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,w]=v.useState(r);Fs(h,r)||w(r);const[C,b]=v.useState(null),[R,y]=v.useState(null),g=v.useCallback(ne=>{ne!==A.current&&(A.current=ne,b(ne))},[]),E=v.useCallback(ne=>{ne!==N.current&&(N.current=ne,y(ne))},[]),_=i||C,P=l||R,A=v.useRef(null),N=v.useRef(null),O=v.useRef(p),I=f!=null,j=um(f),H=um(o),U=v.useCallback(()=>{if(!A.current||!N.current)return;const ne={placement:t,strategy:n,middleware:h};H.current&&(ne.platform=H.current),O2(A.current,N.current,ne).then(z=>{const V={...z,isPositioned:!0};F.current&&!Fs(O.current,V)&&(O.current=V,Zr.flushSync(()=>{m(V)}))})},[h,t,n,H]);ss(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,m(ne=>({...ne,isPositioned:!1})))},[u]);const F=v.useRef(!1);ss(()=>(F.current=!0,()=>{F.current=!1}),[]),ss(()=>{if(_&&(A.current=_),P&&(N.current=P),_&&P){if(j.current)return j.current(_,P,U);U()}},[_,P,U,j,I]);const W=v.useMemo(()=>({reference:A,floating:N,setReference:g,setFloating:E}),[g,E]),Z=v.useMemo(()=>({reference:_,floating:P}),[_,P]),le=v.useMemo(()=>{const ne={position:n,left:0,top:0};if(!Z.floating)return ne;const z=am(Z.floating,p.x),V=am(Z.floating,p.y);return a?{...ne,transform:"translate("+z+"px, "+V+"px)",...Sg(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:V}},[n,a,Z.floating,p.x,p.y]);return v.useMemo(()=>({...p,update:U,refs:W,elements:Z,floatingStyles:le}),[p,U,W,Z,le])}const M2=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?sm({element:r.current,padding:o}).fn(n):{}:r?sm({element:r,padding:o}).fn(n):{}}}},I2=(e,t)=>({...R2(e),options:[e,t]}),L2=(e,t)=>({...P2(e),options:[e,t]}),F2=(e,t)=>({...D2(e),options:[e,t]}),z2=(e,t)=>({...N2(e),options:[e,t]}),$2=(e,t)=>({...T2(e),options:[e,t]}),H2=(e,t)=>({...A2(e),options:[e,t]}),U2=(e,t)=>({...M2(e),options:[e,t]});var B2="Arrow",Eg=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return x.jsx(Me.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});Eg.displayName=B2;var W2=Eg;function V2(e){const[t,n]=v.useState(void 0);return kt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,a;if("borderBoxSize"in i){const f=i.borderBoxSize,u=Array.isArray(f)?f[0]:f;l=u.inlineSize,a=u.blockSize}else l=e.offsetWidth,a=e.offsetHeight;n({width:l,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Lf="Popper",[bg,da]=Vo(Lf),[q2,Cg]=bg(Lf),_g=e=>{const{__scopePopper:t,children:n}=e,[r,o]=v.useState(null);return x.jsx(q2,{scope:t,anchor:r,onAnchorChange:o,children:n})};_g.displayName=Lf;var kg="PopperAnchor",Rg=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Cg(kg,n),l=v.useRef(null),a=Ve(t,l);return v.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:x.jsx(Me.div,{...o,ref:a})});Rg.displayName=kg;var Ff="PopperContent",[G2,K2]=bg(Ff),Pg=v.forwardRef((e,t)=>{var J,ye,Ie,K,ge,de;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:l=0,arrowPadding:a=0,avoidCollisions:f=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:w="optimized",onPlaced:C,...b}=e,R=Cg(Ff,n),[y,g]=v.useState(null),E=Ve(t,Y=>g(Y)),[_,P]=v.useState(null),A=V2(_),N=(A==null?void 0:A.width)??0,O=(A==null?void 0:A.height)??0,I=r+(i!=="center"?"-"+i:""),j=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},H=Array.isArray(u)?u:[u],U=H.length>0,F={padding:j,boundary:H.filter(Y2),altBoundary:U},{refs:W,floatingStyles:Z,placement:le,isPositioned:ne,middlewareData:z}=j2({strategy:"fixed",placement:I,whileElementsMounted:(...Y)=>k2(...Y,{animationFrame:w==="always"}),elements:{reference:R.anchor},middleware:[I2({mainAxis:o+O,alignmentAxis:l}),f&&L2({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?F2():void 0,...F}),f&&z2({...F}),$2({...F,apply:({elements:Y,rects:me,availableWidth:ut,availableHeight:Je})=>{const{width:tt,height:Nt}=me.reference,ke=Y.floating.style;ke.setProperty("--radix-popper-available-width",`${ut}px`),ke.setProperty("--radix-popper-available-height",`${Je}px`),ke.setProperty("--radix-popper-anchor-width",`${tt}px`),ke.setProperty("--radix-popper-anchor-height",`${Nt}px`)}}),_&&U2({element:_,padding:a}),X2({arrowWidth:N,arrowHeight:O}),h&&H2({strategy:"referenceHidden",...F})]}),[V,ee]=Ag(le),se=Wn(C);kt(()=>{ne&&(se==null||se())},[ne,se]);const ue=(J=z.arrow)==null?void 0:J.x,qe=(ye=z.arrow)==null?void 0:ye.y,ve=((Ie=z.arrow)==null?void 0:Ie.centerOffset)!==0,[Xe,_e]=v.useState();return kt(()=>{y&&_e(window.getComputedStyle(y).zIndex)},[y]),x.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:ne?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Xe,"--radix-popper-transform-origin":[(K=z.transformOrigin)==null?void 0:K.x,(ge=z.transformOrigin)==null?void 0:ge.y].join(" "),...((de=z.hide)==null?void 0:de.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:x.jsx(G2,{scope:n,placedSide:V,onArrowChange:P,arrowX:ue,arrowY:qe,shouldHideArrow:ve,children:x.jsx(Me.div,{"data-side":V,"data-align":ee,...b,ref:E,style:{...b.style,animation:ne?void 0:"none"}})})})});Pg.displayName=Ff;var Ng="PopperArrow",Q2={top:"bottom",right:"left",bottom:"top",left:"right"},Tg=v.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=K2(Ng,r),l=Q2[i.placedSide];return x.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:x.jsx(W2,{...o,ref:n,style:{...o.style,display:"block"}})})});Tg.displayName=Ng;function Y2(e){return e!==null}var X2=e=>({name:"transformOrigin",options:e,fn(t){var R,y,g;const{placement:n,rects:r,middlewareData:o}=t,l=((R=o.arrow)==null?void 0:R.centerOffset)!==0,a=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[u,p]=Ag(n),m={start:"0%",center:"50%",end:"100%"}[p],h=(((y=o.arrow)==null?void 0:y.x)??0)+a/2,w=(((g=o.arrow)==null?void 0:g.y)??0)+f/2;let C="",b="";return u==="bottom"?(C=l?m:`${h}px`,b=`${-f}px`):u==="top"?(C=l?m:`${h}px`,b=`${r.floating.height+f}px`):u==="right"?(C=`${-f}px`,b=l?m:`${w}px`):u==="left"&&(C=`${r.floating.width+f}px`,b=l?m:`${w}px`),{data:{x:C,y:b}}}});function Ag(e){const[t,n="center"]=e.split("-");return[t,n]}var Dg=_g,Og=Rg,jg=Pg,Mg=Tg,Z2="Portal",zf=v.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=v.useState(!1);kt(()=>i(!0),[]);const l=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return l?AS.createPortal(x.jsx(Me.div,{...r,ref:t}),l):null});zf.displayName=Z2;function zs({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=J2({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,a=Wn(n),f=v.useCallback(u=>{if(i){const m=typeof u=="function"?u(e):u;m!==e&&a(m)}else o(u)},[i,e,o,a]);return[l,f]}function J2({defaultProp:e,onChange:t}){const n=v.useState(e),[r]=n,o=v.useRef(r),i=Wn(t);return v.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function eC(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var tC="VisuallyHidden",Ig=v.forwardRef((e,t)=>x.jsx(Me.span,{...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}}));Ig.displayName=tC;var nC=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},io=new WeakMap,$l=new WeakMap,Hl={},su=0,Lg=function(e){return e&&(e.host||Lg(e.parentNode))},rC=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Lg(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})},oC=function(e,t,n,r){var o=rC(t,Array.isArray(e)?e:[e]);Hl[n]||(Hl[n]=new WeakMap);var i=Hl[n],l=[],a=new Set,f=new Set(o),u=function(m){!m||a.has(m)||(a.add(m),u(m.parentNode))};o.forEach(u);var p=function(m){!m||f.has(m)||Array.prototype.forEach.call(m.children,function(h){if(a.has(h))p(h);else try{var w=h.getAttribute(r),C=w!==null&&w!=="false",b=(io.get(h)||0)+1,R=(i.get(h)||0)+1;io.set(h,b),i.set(h,R),l.push(h),b===1&&C&&$l.set(h,!0),R===1&&h.setAttribute(n,"true"),C||h.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return p(t),a.clear(),su++,function(){l.forEach(function(m){var h=io.get(m)-1,w=i.get(m)-1;io.set(m,h),i.set(m,w),h||($l.has(m)||m.removeAttribute(r),$l.delete(m)),w||m.removeAttribute(n)}),su--,su||(io=new WeakMap,io=new WeakMap,$l=new WeakMap,Hl={})}},Fg=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=nC(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),oC(r,o,n,"aria-hidden")):function(){return null}},kn=function(){return kn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){l={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return i}function mc(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r"u")return xC;var t=SC(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])}},bC=Ug(),No="data-scroll-locked",CC=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,a=e.gap;return n===void 0&&(n="margin"),` .`.concat(iC,` { overflow: hidden `).concat(r,`; padding-right: `).concat(a,"px ").concat(r,`; } - body[`).concat(To,`] { + body[`).concat(No,`] { overflow: hidden `).concat(r,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` @@ -205,24 +205,24 @@ Error generating stack: `+i.message+` margin-right: 0 `).concat(r,`; } - body[`).concat(To,`] { + body[`).concat(No,`] { `).concat(lC,": ").concat(a,`px; } -`)},dm=function(){var e=parseInt(document.body.getAttribute(To)||"0",10);return isFinite(e)?e:0},_C=function(){v.useEffect(function(){return document.body.setAttribute(To,(dm()+1).toString()),function(){var e=dm()-1;e<=0?document.body.removeAttribute(To):document.body.setAttribute(To,e.toString())}},[])},kC=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;_C();var i=v.useMemo(function(){return EC(o)},[o]);return v.createElement(bC,{styles:CC(i,!t,o,n?"":"!important")})},hc=!1;if(typeof window<"u")try{var Ul=Object.defineProperty({},"passive",{get:function(){return hc=!0,!0}});window.addEventListener("test",Ul,Ul),window.removeEventListener("test",Ul,Ul)}catch{hc=!1}var lo=hc?{passive:!1}:!1,RC=function(e){return e.tagName==="TEXTAREA"},Bg=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!RC(e)&&n[t]==="visible")},PC=function(e){return Bg(e,"overflowY")},TC=function(e){return Bg(e,"overflowX")},pm=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Wg(e,r);if(o){var i=Vg(e,r),l=i[1],a=i[2];if(l>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},NC=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},AC=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Wg=function(e,t){return e==="v"?PC(t):TC(t)},Vg=function(e,t){return e==="v"?NC(t):AC(t)},DC=function(e,t){return e==="h"&&t==="rtl"?-1:1},OC=function(e,t,n,r,o){var i=DC(e,window.getComputedStyle(t).direction),l=i*r,a=n.target,f=t.contains(a),u=!1,p=l>0,m=0,h=0;do{var w=Vg(e,a),C=w[0],E=w[1],R=w[2],y=E-R-i*C;(C||y)&&Wg(e,a)&&(m+=y,h+=C),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!f&&a!==document.body||f&&(t.contains(a)||t===a));return(p&&(Math.abs(m)<1||!o)||!p&&(Math.abs(h)<1||!o))&&(u=!0),u},Bl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mm=function(e){return[e.deltaX,e.deltaY]},hm=function(e){return e&&"current"in e?e.current:e},jC=function(e,t){return e[0]===t[0]&&e[1]===t[1]},MC=function(e){return` +`)},dm=function(){var e=parseInt(document.body.getAttribute(No)||"0",10);return isFinite(e)?e:0},_C=function(){v.useEffect(function(){return document.body.setAttribute(No,(dm()+1).toString()),function(){var e=dm()-1;e<=0?document.body.removeAttribute(No):document.body.setAttribute(No,e.toString())}},[])},kC=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;_C();var i=v.useMemo(function(){return EC(o)},[o]);return v.createElement(bC,{styles:CC(i,!t,o,n?"":"!important")})},hc=!1;if(typeof window<"u")try{var Ul=Object.defineProperty({},"passive",{get:function(){return hc=!0,!0}});window.addEventListener("test",Ul,Ul),window.removeEventListener("test",Ul,Ul)}catch{hc=!1}var lo=hc?{passive:!1}:!1,RC=function(e){return e.tagName==="TEXTAREA"},Bg=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!RC(e)&&n[t]==="visible")},PC=function(e){return Bg(e,"overflowY")},NC=function(e){return Bg(e,"overflowX")},pm=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Wg(e,r);if(o){var i=Vg(e,r),l=i[1],a=i[2];if(l>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},TC=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},AC=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Wg=function(e,t){return e==="v"?PC(t):NC(t)},Vg=function(e,t){return e==="v"?TC(t):AC(t)},DC=function(e,t){return e==="h"&&t==="rtl"?-1:1},OC=function(e,t,n,r,o){var i=DC(e,window.getComputedStyle(t).direction),l=i*r,a=n.target,f=t.contains(a),u=!1,p=l>0,m=0,h=0;do{var w=Vg(e,a),C=w[0],b=w[1],R=w[2],y=b-R-i*C;(C||y)&&Wg(e,a)&&(m+=y,h+=C),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!f&&a!==document.body||f&&(t.contains(a)||t===a));return(p&&(Math.abs(m)<1||!o)||!p&&(Math.abs(h)<1||!o))&&(u=!0),u},Bl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mm=function(e){return[e.deltaX,e.deltaY]},hm=function(e){return e&&"current"in e?e.current:e},jC=function(e,t){return e[0]===t[0]&&e[1]===t[1]},MC=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},IC=0,so=[];function LC(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(IC++)[0],i=v.useState(Ug)[0],l=v.useRef(e);v.useEffect(function(){l.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var E=mc([e.lockRef.current],(e.shards||[]).map(hm),!0).filter(Boolean);return E.forEach(function(R){return R.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),E.forEach(function(R){return R.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=v.useCallback(function(E,R){if("touches"in E&&E.touches.length===2)return!l.current.allowPinchZoom;var y=Bl(E),g=n.current,b="deltaX"in E?E.deltaX:g[0]-y[0],_="deltaY"in E?E.deltaY:g[1]-y[1],P,A=E.target,T=Math.abs(b)>Math.abs(_)?"h":"v";if("touches"in E&&T==="h"&&A.type==="range")return!1;var O=pm(T,A);if(!O)return!0;if(O?P=T:(P=T==="v"?"h":"v",O=pm(T,A)),!O)return!1;if(!r.current&&"changedTouches"in E&&(b||_)&&(r.current=P),!P)return!0;var I=r.current||P;return OC(I,R,E,I==="h"?b:_,!0)},[]),f=v.useCallback(function(E){var R=E;if(!(!so.length||so[so.length-1]!==i)){var y="deltaY"in R?mm(R):Bl(R),g=t.current.filter(function(P){return P.name===R.type&&(P.target===R.target||R.target===P.shadowParent)&&jC(P.delta,y)})[0];if(g&&g.should){R.cancelable&&R.preventDefault();return}if(!g){var b=(l.current.shards||[]).map(hm).filter(Boolean).filter(function(P){return P.contains(R.target)}),_=b.length>0?a(R,b[0]):!l.current.noIsolation;_&&R.cancelable&&R.preventDefault()}}},[]),u=v.useCallback(function(E,R,y,g){var b={name:E,delta:R,target:y,should:g,shadowParent:FC(y)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(_){return _!==b})},1)},[]),p=v.useCallback(function(E){n.current=Bl(E),r.current=void 0},[]),m=v.useCallback(function(E){u(E.type,mm(E),E.target,a(E,e.lockRef.current))},[]),h=v.useCallback(function(E){u(E.type,Bl(E),E.target,a(E,e.lockRef.current))},[]);v.useEffect(function(){return so.push(i),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:h}),document.addEventListener("wheel",f,lo),document.addEventListener("touchmove",f,lo),document.addEventListener("touchstart",p,lo),function(){so=so.filter(function(E){return E!==i}),document.removeEventListener("wheel",f,lo),document.removeEventListener("touchmove",f,lo),document.removeEventListener("touchstart",p,lo)}},[]);var w=e.removeScrollBar,C=e.inert;return v.createElement(v.Fragment,null,C?v.createElement(i,{styles:MC(o)}):null,w?v.createElement(kC,{gapMode:e.gapMode}):null)}function FC(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const zC=pC(Hg,LC);var $f=v.forwardRef(function(e,t){return v.createElement(pa,kn({},e,{ref:t,sideCar:zC}))});$f.classNames=pa.classNames;var $C=[" ","Enter","ArrowUp","ArrowDown"],HC=[" ","Enter"],il="Select",[ma,ha,UC]=bb(il),[Xo,FR]=Vo(il,[UC,da]),va=da(),[BC,_r]=Xo(il),[WC,VC]=Xo(il),qg=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:l,defaultValue:a,onValueChange:f,dir:u,name:p,autoComplete:m,disabled:h,required:w}=e,C=va(t),[E,R]=v.useState(null),[y,g]=v.useState(null),[b,_]=v.useState(!1),P=_b(u),[A=!1,T]=zs({prop:r,defaultProp:o,onChange:i}),[O,I]=zs({prop:l,defaultProp:a,onChange:f}),j=v.useRef(null),$=E?!!E.closest("form"):!0,[U,F]=v.useState(new Set),W=Array.from(U).map(Z=>Z.props.value).join(";");return x.jsx(Dg,{...C,children:x.jsxs(BC,{required:w,scope:t,trigger:E,onTriggerChange:R,valueNode:y,onValueNodeChange:g,valueNodeHasChildren:b,onValueNodeHasChildrenChange:_,contentId:Ro(),value:O,onValueChange:I,open:A,onOpenChange:T,dir:P,triggerPointerDownPosRef:j,disabled:h,children:[x.jsx(ma.Provider,{scope:t,children:x.jsx(WC,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(Z=>{F(le=>new Set(le).add(Z))},[]),onNativeOptionRemove:v.useCallback(Z=>{F(le=>{const ne=new Set(le);return ne.delete(Z),ne})},[]),children:n})}),$?x.jsxs(yy,{"aria-hidden":!0,required:w,tabIndex:-1,name:p,autoComplete:m,value:O,onChange:Z=>I(Z.target.value),disabled:h,children:[O===void 0?x.jsx("option",{value:""}):null,Array.from(U)]},W):null]})})};qg.displayName=il;var Gg="SelectTrigger",Kg=v.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=va(n),l=_r(Gg,n),a=l.disabled||r,f=Ve(t,l.onTriggerChange),u=ha(n),[p,m,h]=wy(C=>{const E=u().filter(g=>!g.disabled),R=E.find(g=>g.value===l.value),y=xy(E,C,R);y!==void 0&&l.onValueChange(y.value)}),w=()=>{a||(l.onOpenChange(!0),h())};return x.jsx(Og,{asChild:!0,...i,children:x.jsx(Me.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":gy(l.value)?"":void 0,...o,ref:f,onClick:be(o.onClick,C=>{C.currentTarget.focus()}),onPointerDown:be(o.onPointerDown,C=>{const E=C.target;E.hasPointerCapture(C.pointerId)&&E.releasePointerCapture(C.pointerId),C.button===0&&C.ctrlKey===!1&&(w(),l.triggerPointerDownPosRef.current={x:Math.round(C.pageX),y:Math.round(C.pageY)},C.preventDefault())}),onKeyDown:be(o.onKeyDown,C=>{const E=p.current!=="";!(C.ctrlKey||C.altKey||C.metaKey)&&C.key.length===1&&m(C.key),!(E&&C.key===" ")&&$C.includes(C.key)&&(w(),C.preventDefault())})})})});Kg.displayName=Gg;var Qg="SelectValue",Yg=v.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...a}=e,f=_r(Qg,n),{onValueNodeHasChildrenChange:u}=f,p=i!==void 0,m=Ve(t,f.onValueNodeChange);return kt(()=>{u(p)},[u,p]),x.jsx(Me.span,{...a,ref:m,style:{pointerEvents:"none"},children:gy(f.value)?x.jsx(x.Fragment,{children:l}):i})});Yg.displayName=Qg;var qC="SelectIcon",Xg=v.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return x.jsx(Me.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Xg.displayName=qC;var GC="SelectPortal",Zg=e=>x.jsx(zf,{asChild:!0,...e});Zg.displayName=GC;var Kr="SelectContent",Jg=v.forwardRef((e,t)=>{const n=_r(Kr,e.__scopeSelect),[r,o]=v.useState();if(kt(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?Zr.createPortal(x.jsx(ey,{scope:e.__scopeSelect,children:x.jsx(ma.Slot,{scope:e.__scopeSelect,children:x.jsx("div",{children:e.children})})}),i):null}return x.jsx(ty,{...e,ref:t})});Jg.displayName=Kr;var Mn=10,[ey,kr]=Xo(Kr),KC="SelectContentImpl",ty=v.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:l,side:a,sideOffset:f,align:u,alignOffset:p,arrowPadding:m,collisionBoundary:h,collisionPadding:w,sticky:C,hideWhenDetached:E,avoidCollisions:R,...y}=e,g=_r(Kr,n),[b,_]=v.useState(null),[P,A]=v.useState(null),T=Ve(t,J=>_(J)),[O,I]=v.useState(null),[j,$]=v.useState(null),U=ha(n),[F,W]=v.useState(!1),Z=v.useRef(!1);v.useEffect(()=>{if(b)return Fg(b)},[b]),fg();const le=v.useCallback(J=>{const[ye,...Ie]=U().map(de=>de.ref.current),[K]=Ie.slice(-1),ge=document.activeElement;for(const de of J)if(de===ge||(de==null||de.scrollIntoView({block:"nearest"}),de===ye&&P&&(P.scrollTop=0),de===K&&P&&(P.scrollTop=P.scrollHeight),de==null||de.focus(),document.activeElement!==ge))return},[U,P]),ne=v.useCallback(()=>le([O,b]),[le,O,b]);v.useEffect(()=>{F&&ne()},[F,ne]);const{onOpenChange:z,triggerPointerDownPosRef:V}=g;v.useEffect(()=>{if(b){let J={x:0,y:0};const ye=K=>{var ge,de;J={x:Math.abs(Math.round(K.pageX)-(((ge=V.current)==null?void 0:ge.x)??0)),y:Math.abs(Math.round(K.pageY)-(((de=V.current)==null?void 0:de.y)??0))}},Ie=K=>{J.x<=10&&J.y<=10?K.preventDefault():b.contains(K.target)||z(!1),document.removeEventListener("pointermove",ye),V.current=null};return V.current!==null&&(document.addEventListener("pointermove",ye),document.addEventListener("pointerup",Ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ye),document.removeEventListener("pointerup",Ie,{capture:!0})}}},[b,z,V]),v.useEffect(()=>{const J=()=>z(!1);return window.addEventListener("blur",J),window.addEventListener("resize",J),()=>{window.removeEventListener("blur",J),window.removeEventListener("resize",J)}},[z]);const[ee,se]=wy(J=>{const ye=U().filter(ge=>!ge.disabled),Ie=ye.find(ge=>ge.ref.current===document.activeElement),K=xy(ye,J,Ie);K&&setTimeout(()=>K.ref.current.focus())}),ue=v.useCallback((J,ye,Ie)=>{const K=!Z.current&&!Ie;(g.value!==void 0&&g.value===ye||K)&&(I(J),K&&(Z.current=!0))},[g.value]),qe=v.useCallback(()=>b==null?void 0:b.focus(),[b]),ve=v.useCallback((J,ye,Ie)=>{const K=!Z.current&&!Ie;(g.value!==void 0&&g.value===ye||K)&&$(J)},[g.value]),Xe=r==="popper"?vc:ny,_e=Xe===vc?{side:a,sideOffset:f,align:u,alignOffset:p,arrowPadding:m,collisionBoundary:h,collisionPadding:w,sticky:C,hideWhenDetached:E,avoidCollisions:R}:{};return x.jsx(ey,{scope:n,content:b,viewport:P,onViewportChange:A,itemRefCallback:ue,selectedItem:O,onItemLeave:qe,itemTextRefCallback:ve,focusSelectedItem:ne,selectedItemText:j,position:r,isPositioned:F,searchRef:ee,children:x.jsx($f,{as:qr,allowPinchZoom:!0,children:x.jsx(Tf,{asChild:!0,trapped:g.open,onMountAutoFocus:J=>{J.preventDefault()},onUnmountAutoFocus:be(o,J=>{var ye;(ye=g.trigger)==null||ye.focus({preventScroll:!0}),J.preventDefault()}),children:x.jsx(ca,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:J=>J.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:x.jsx(Xe,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:J=>J.preventDefault(),...y,..._e,onPlaced:()=>W(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:be(y.onKeyDown,J=>{const ye=J.ctrlKey||J.altKey||J.metaKey;if(J.key==="Tab"&&J.preventDefault(),!ye&&J.key.length===1&&se(J.key),["ArrowUp","ArrowDown","Home","End"].includes(J.key)){let K=U().filter(ge=>!ge.disabled).map(ge=>ge.ref.current);if(["ArrowUp","End"].includes(J.key)&&(K=K.slice().reverse()),["ArrowUp","ArrowDown"].includes(J.key)){const ge=J.target,de=K.indexOf(ge);K=K.slice(de+1)}setTimeout(()=>le(K)),J.preventDefault()}})})})})})})});ty.displayName=KC;var QC="SelectItemAlignedPosition",ny=v.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=_r(Kr,n),l=kr(Kr,n),[a,f]=v.useState(null),[u,p]=v.useState(null),m=Ve(t,T=>p(T)),h=ha(n),w=v.useRef(!1),C=v.useRef(!0),{viewport:E,selectedItem:R,selectedItemText:y,focusSelectedItem:g}=l,b=v.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&u&&E&&R&&y){const T=i.trigger.getBoundingClientRect(),O=u.getBoundingClientRect(),I=i.valueNode.getBoundingClientRect(),j=y.getBoundingClientRect();if(i.dir!=="rtl"){const ge=j.left-O.left,de=I.left-ge,Y=T.left-de,me=T.width+Y,ut=Math.max(me,O.width),Je=window.innerWidth-Mn,tt=Gp(de,[Mn,Je-ut]);a.style.minWidth=me+"px",a.style.left=tt+"px"}else{const ge=O.right-j.right,de=window.innerWidth-I.right-ge,Y=window.innerWidth-T.right-de,me=T.width+Y,ut=Math.max(me,O.width),Je=window.innerWidth-Mn,tt=Gp(de,[Mn,Je-ut]);a.style.minWidth=me+"px",a.style.right=tt+"px"}const $=h(),U=window.innerHeight-Mn*2,F=E.scrollHeight,W=window.getComputedStyle(u),Z=parseInt(W.borderTopWidth,10),le=parseInt(W.paddingTop,10),ne=parseInt(W.borderBottomWidth,10),z=parseInt(W.paddingBottom,10),V=Z+le+F+z+ne,ee=Math.min(R.offsetHeight*5,V),se=window.getComputedStyle(E),ue=parseInt(se.paddingTop,10),qe=parseInt(se.paddingBottom,10),ve=T.top+T.height/2-Mn,Xe=U-ve,_e=R.offsetHeight/2,J=R.offsetTop+_e,ye=Z+le+J,Ie=V-ye;if(ye<=ve){const ge=R===$[$.length-1].ref.current;a.style.bottom="0px";const de=u.clientHeight-E.offsetTop-E.offsetHeight,Y=Math.max(Xe,_e+(ge?qe:0)+de+ne),me=ye+Y;a.style.height=me+"px"}else{const ge=R===$[0].ref.current;a.style.top="0px";const Y=Math.max(ve,Z+E.offsetTop+(ge?ue:0)+_e)+Ie;a.style.height=Y+"px",E.scrollTop=ye-ve+E.offsetTop}a.style.margin=`${Mn}px 0`,a.style.minHeight=ee+"px",a.style.maxHeight=U+"px",r==null||r(),requestAnimationFrame(()=>w.current=!0)}},[h,i.trigger,i.valueNode,a,u,E,R,y,i.dir,r]);kt(()=>b(),[b]);const[_,P]=v.useState();kt(()=>{u&&P(window.getComputedStyle(u).zIndex)},[u]);const A=v.useCallback(T=>{T&&C.current===!0&&(b(),g==null||g(),C.current=!1)},[b,g]);return x.jsx(XC,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:w,onScrollButtonChange:A,children:x.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:x.jsx(Me.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});ny.displayName=QC;var YC="SelectPopperPosition",vc=v.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Mn,...i}=e,l=va(n);return x.jsx(jg,{...l,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.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)"}})});vc.displayName=YC;var[XC,Hf]=Xo(Kr,{}),gc="SelectViewport",ry=v.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=kr(gc,n),l=Hf(gc,n),a=Ve(t,i.onViewportChange),f=v.useRef(0);return x.jsxs(x.Fragment,{children:[x.jsx("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}"},nonce:r}),x.jsx(ma.Slot,{scope:n,children:x.jsx(Me.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:be(o.onScroll,u=>{const p=u.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:h}=l;if(h!=null&&h.current&&m){const w=Math.abs(f.current-p.scrollTop);if(w>0){const C=window.innerHeight-Mn*2,E=parseFloat(m.style.minHeight),R=parseFloat(m.style.height),y=Math.max(E,R);if(y0?_:0,m.style.justifyContent="flex-end")}}}f.current=p.scrollTop})})})]})});ry.displayName=gc;var oy="SelectGroup",[ZC,JC]=Xo(oy),iy=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ro();return x.jsx(ZC,{scope:n,id:o,children:x.jsx(Me.div,{role:"group","aria-labelledby":o,...r,ref:t})})});iy.displayName=oy;var ly="SelectLabel",sy=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=JC(ly,n);return x.jsx(Me.div,{id:o.id,...r,ref:t})});sy.displayName=ly;var $s="SelectItem",[e_,ay]=Xo($s),uy=v.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...l}=e,a=_r($s,n),f=kr($s,n),u=a.value===r,[p,m]=v.useState(i??""),[h,w]=v.useState(!1),C=Ve(t,y=>{var g;return(g=f.itemRefCallback)==null?void 0:g.call(f,y,r,o)}),E=Ro(),R=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A 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 x.jsx(e_,{scope:n,value:r,disabled:o,textId:E,isSelected:u,onItemTextChange:v.useCallback(y=>{m(g=>g||((y==null?void 0:y.textContent)??"").trim())},[]),children:x.jsx(ma.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:x.jsx(Me.div,{role:"option","aria-labelledby":E,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...l,ref:C,onFocus:be(l.onFocus,()=>w(!0)),onBlur:be(l.onBlur,()=>w(!1)),onPointerUp:be(l.onPointerUp,R),onPointerMove:be(l.onPointerMove,y=>{var g;o?(g=f.onItemLeave)==null||g.call(f):y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:be(l.onPointerLeave,y=>{var g;y.currentTarget===document.activeElement&&((g=f.onItemLeave)==null||g.call(f))}),onKeyDown:be(l.onKeyDown,y=>{var b;((b=f.searchRef)==null?void 0:b.current)!==""&&y.key===" "||(HC.includes(y.key)&&R(),y.key===" "&&y.preventDefault())})})})})});uy.displayName=$s;var Ei="SelectItemText",cy=v.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,l=_r(Ei,n),a=kr(Ei,n),f=ay(Ei,n),u=VC(Ei,n),[p,m]=v.useState(null),h=Ve(t,y=>m(y),f.onItemTextChange,y=>{var g;return(g=a.itemTextRefCallback)==null?void 0:g.call(a,y,f.value,f.disabled)}),w=p==null?void 0:p.textContent,C=v.useMemo(()=>x.jsx("option",{value:f.value,disabled:f.disabled,children:w},f.value),[f.disabled,f.value,w]),{onNativeOptionAdd:E,onNativeOptionRemove:R}=u;return kt(()=>(E(C),()=>R(C)),[E,R,C]),x.jsxs(x.Fragment,{children:[x.jsx(Me.span,{id:f.textId,...i,ref:h}),f.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Zr.createPortal(i.children,l.valueNode):null]})});cy.displayName=Ei;var fy="SelectItemIndicator",dy=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return ay(fy,n).isSelected?x.jsx(Me.span,{"aria-hidden":!0,...r,ref:t}):null});dy.displayName=fy;var yc="SelectScrollUpButton",py=v.forwardRef((e,t)=>{const n=kr(yc,e.__scopeSelect),r=Hf(yc,e.__scopeSelect),[o,i]=v.useState(!1),l=Ve(t,r.onScrollButtonChange);return kt(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=f.scrollTop>0;i(u)};const f=n.viewport;return a(),f.addEventListener("scroll",a),()=>f.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?x.jsx(hy,{...e,ref:l,onAutoScroll:()=>{const{viewport:a,selectedItem:f}=n;a&&f&&(a.scrollTop=a.scrollTop-f.offsetHeight)}}):null});py.displayName=yc;var wc="SelectScrollDownButton",my=v.forwardRef((e,t)=>{const n=kr(wc,e.__scopeSelect),r=Hf(wc,e.__scopeSelect),[o,i]=v.useState(!1),l=Ve(t,r.onScrollButtonChange);return kt(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=f.scrollHeight-f.clientHeight,p=Math.ceil(f.scrollTop)f.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?x.jsx(hy,{...e,ref:l,onAutoScroll:()=>{const{viewport:a,selectedItem:f}=n;a&&f&&(a.scrollTop=a.scrollTop+f.offsetHeight)}}):null});my.displayName=wc;var hy=v.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=kr("SelectScrollButton",n),l=v.useRef(null),a=ha(n),f=v.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return v.useEffect(()=>()=>f(),[f]),kt(()=>{var p;const u=a().find(m=>m.ref.current===document.activeElement);(p=u==null?void 0:u.ref.current)==null||p.scrollIntoView({block:"nearest"})},[a]),x.jsx(Me.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:be(o.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:be(o.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:be(o.onPointerLeave,()=>{f()})})}),t_="SelectSeparator",vy=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return x.jsx(Me.div,{"aria-hidden":!0,...r,ref:t})});vy.displayName=t_;var xc="SelectArrow",n_=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=va(n),i=_r(xc,n),l=kr(xc,n);return i.open&&l.position==="popper"?x.jsx(Mg,{...o,...r,ref:t}):null});n_.displayName=xc;function gy(e){return e===""||e===void 0}var yy=v.forwardRef((e,t)=>{const{value:n,...r}=e,o=v.useRef(null),i=Ve(t,o),l=eC(n);return v.useEffect(()=>{const a=o.current,f=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(f,"value").set;if(l!==n&&p){const m=new Event("change",{bubbles:!0});p.call(a,n),a.dispatchEvent(m)}},[l,n]),x.jsx(Ig,{asChild:!0,children:x.jsx("select",{...r,ref:i,defaultValue:n})})});yy.displayName="BubbleSelect";function wy(e){const t=Wn(e),n=v.useRef(""),r=v.useRef(0),o=v.useCallback(l=>{const a=n.current+l;t(a),function f(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>f(""),1e3))}(a)},[t]),i=v.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function xy(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let l=r_(e,Math.max(i,0));o.length===1&&(l=l.filter(u=>u!==n));const f=l.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return f!==n?f:void 0}function r_(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var o_=qg,Sy=Kg,i_=Yg,l_=Xg,s_=Zg,Ey=Jg,a_=ry,u_=iy,by=sy,Cy=uy,c_=cy,f_=dy,_y=py,ky=my,Ry=vy;const d_=o_,p_=u_,m_=i_,Py=v.forwardRef(({className:e,children:t,...n},r)=>x.jsxs(Sy,{ref:r,className:Se("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,x.jsx(l_,{asChild:!0,children:x.jsx(ag,{className:"h-4 w-4 opacity-50"})})]}));Py.displayName=Sy.displayName;const Ty=v.forwardRef(({className:e,...t},n)=>x.jsx(_y,{ref:n,className:Se("flex cursor-default items-center justify-center py-1",e),...t,children:x.jsx(ib,{className:"h-4 w-4"})}));Ty.displayName=_y.displayName;const Ny=v.forwardRef(({className:e,...t},n)=>x.jsx(ky,{ref:n,className:Se("flex cursor-default items-center justify-center py-1",e),...t,children:x.jsx(ag,{className:"h-4 w-4"})}));Ny.displayName=ky.displayName;const Ay=v.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>x.jsx(s_,{children:x.jsxs(Ey,{ref:o,className:Se("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out 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",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[x.jsx(Ty,{}),x.jsx(a_,{className:Se("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),x.jsx(Ny,{})]})}));Ay.displayName=Ey.displayName;const Dy=v.forwardRef(({className:e,...t},n)=>x.jsx(by,{ref:n,className:Se("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Dy.displayName=by.displayName;const Oy=v.forwardRef(({className:e,children:t,...n},r)=>x.jsxs(Cy,{ref:r,className:Se("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[x.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:x.jsx(f_,{children:x.jsx(nb,{className:"h-4 w-4"})})}),x.jsx(c_,{children:t})]}));Oy.displayName=Cy.displayName;const h_=v.forwardRef(({className:e,...t},n)=>x.jsx(Ry,{ref:n,className:Se("-mx-1 my-1 h-px bg-muted",e),...t}));h_.displayName=Ry.displayName;const v_=lg("inline-flex items-center rounded border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function jy({className:e,variant:t,...n}){return x.jsx("div",{className:Se(v_({variant:t}),e),...n})}function g_(){const{tables:e,selectedTable:t,setSelectedTable:n}=Bo();return x.jsxs("section",{className:"flex justify-center items-center gap-2",children:[x.jsxs(d_,{value:t,onValueChange:n,children:[x.jsx(Py,{className:"w-[200px] md:w-[300px]",children:x.jsx(m_,{placeholder:"Select a table"})}),x.jsx(Ay,{children:x.jsxs(p_,{children:[x.jsx(Dy,{children:"Tables"}),e.map((r,o)=>x.jsx(Oy,{value:`${o}`,children:r.name},r.name))]})})]}),x.jsxs(jy,{className:"text-sm",children:[e[parseInt(t)].count," rows"]})]})}function y_(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var ll=e=>{const{present:t,children:n}=e,r=w_(t),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),i=Ve(r.ref,x_(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:i}):null};ll.displayName="Presence";function w_(e){const[t,n]=v.useState(),r=v.useRef({}),o=v.useRef(e),i=v.useRef("none"),l=e?"mounted":"unmounted",[a,f]=y_(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=Wl(r.current);i.current=a==="mounted"?u:"none"},[a]),kt(()=>{const u=r.current,p=o.current;if(p!==e){const h=i.current,w=Wl(u);e?f("MOUNT"):w==="none"||(u==null?void 0:u.display)==="none"?f("UNMOUNT"):f(p&&h!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,f]),kt(()=>{if(t){const u=m=>{const w=Wl(r.current).includes(m.animationName);m.target===t&&w&&Zr.flushSync(()=>f("ANIMATION_END"))},p=m=>{m.target===t&&(i.current=Wl(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Wl(e){return(e==null?void 0:e.animationName)||"none"}function x_(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var fu,Uf="HoverCard",[My,zR]=Vo(Uf,[da]),ga=da(),[S_,Bf]=My(Uf),Iy=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:i,openDelay:l=700,closeDelay:a=300}=e,f=ga(t),u=v.useRef(0),p=v.useRef(0),m=v.useRef(!1),h=v.useRef(!1),[w=!1,C]=zs({prop:r,defaultProp:o,onChange:i}),E=v.useCallback(()=>{clearTimeout(p.current),u.current=window.setTimeout(()=>C(!0),l)},[l,C]),R=v.useCallback(()=>{clearTimeout(u.current),!m.current&&!h.current&&(p.current=window.setTimeout(()=>C(!1),a))},[a,C]),y=v.useCallback(()=>C(!1),[C]);return v.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(p.current)},[]),x.jsx(S_,{scope:t,open:w,onOpenChange:C,onOpen:E,onClose:R,onDismiss:y,hasSelectionRef:m,isPointerDownOnContentRef:h,children:x.jsx(Dg,{...f,children:n})})};Iy.displayName=Uf;var Ly="HoverCardTrigger",Fy=v.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Bf(Ly,n),i=ga(n);return x.jsx(Og,{asChild:!0,...i,children:x.jsx(Me.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:be(e.onPointerEnter,Us(o.onOpen)),onPointerLeave:be(e.onPointerLeave,Us(o.onClose)),onFocus:be(e.onFocus,o.onOpen),onBlur:be(e.onBlur,o.onClose),onTouchStart:be(e.onTouchStart,l=>l.preventDefault())})})});Fy.displayName=Ly;var E_="HoverCardPortal",[$R,b_]=My(E_,{forceMount:void 0}),Hs="HoverCardContent",zy=v.forwardRef((e,t)=>{const n=b_(Hs,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,i=Bf(Hs,e.__scopeHoverCard);return x.jsx(ll,{present:r||i.open,children:x.jsx(C_,{"data-state":i.open?"open":"closed",...o,onPointerEnter:be(e.onPointerEnter,Us(i.onOpen)),onPointerLeave:be(e.onPointerLeave,Us(i.onClose)),ref:t})})});zy.displayName=Hs;var C_=v.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,...a}=e,f=Bf(Hs,n),u=ga(n),p=v.useRef(null),m=Ve(t,p),[h,w]=v.useState(!1);return v.useEffect(()=>{if(h){const C=document.body;return fu=C.style.userSelect||C.style.webkitUserSelect,C.style.userSelect="none",C.style.webkitUserSelect="none",()=>{C.style.userSelect=fu,C.style.webkitUserSelect=fu}}},[h]),v.useEffect(()=>{if(p.current){const C=()=>{w(!1),f.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var R;((R=document.getSelection())==null?void 0:R.toString())!==""&&(f.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",C),()=>{document.removeEventListener("pointerup",C),f.hasSelectionRef.current=!1,f.isPointerDownOnContentRef.current=!1}}},[f.isPointerDownOnContentRef,f.hasSelectionRef]),v.useEffect(()=>{p.current&&R_(p.current).forEach(E=>E.setAttribute("tabindex","-1"))}),x.jsx(ca,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:l,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:be(i,C=>{C.preventDefault()}),onDismiss:f.onDismiss,children:x.jsx(jg,{...u,...a,onPointerDown:be(a.onPointerDown,C=>{C.currentTarget.contains(C.target)&&w(!0),f.hasSelectionRef.current=!1,f.isPointerDownOnContentRef.current=!0}),ref:m,style:{...a.style,userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),__="HoverCardArrow",k_=v.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=ga(n);return x.jsx(Mg,{...o,...r,ref:t})});k_.displayName=__;function Us(e){return t=>t.pointerType==="touch"?void 0:e()}function R_(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var P_=Iy,T_=Fy,$y=zy;const Hy=P_,Uy=T_,Wf=v.forwardRef(({className:e,align:t="start",side:n="bottom",sideOffset:r=4,...o},i)=>x.jsx($y,{ref:i,align:t,side:n,sideOffset:r,className:Se("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out 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 text-balance break-words",e),...o}));Wf.displayName=$y.displayName;const By=v.forwardRef(({className:e,...t},n)=>x.jsx("div",{className:"relative w-full overflow-auto",children:x.jsx("table",{ref:n,className:Se("w-full caption-bottom text-sm",e),...t})}));By.displayName="Table";const Wy=v.forwardRef(({className:e,...t},n)=>x.jsx("thead",{ref:n,className:Se("[&_tr]:border-b",e),...t}));Wy.displayName="TableHeader";const Vy=v.forwardRef(({className:e,...t},n)=>x.jsx("tbody",{ref:n,className:Se("[&_tr:last-child]:border-0",e),...t}));Vy.displayName="TableBody";const N_=v.forwardRef(({className:e,...t},n)=>x.jsx("tfoot",{ref:n,className:Se("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));N_.displayName="TableFooter";const Vf=v.forwardRef(({className:e,...t},n)=>x.jsx("tr",{ref:n,className:Se("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Vf.displayName="TableRow";const qy=v.forwardRef(({className:e,...t},n)=>x.jsx("th",{ref:n,className:Se("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));qy.displayName="TableHead";const Gy=v.forwardRef(({className:e,children:t,dataType:n,...r},o)=>x.jsx("td",{ref:o,className:Se("p-4 align-middle [&:has([role=checkbox])]:pr-0 truncate max-w-[200px] overflow-hidden text-ellipsis whitespace-nowrap",e),...r,children:x.jsxs(Hy,{children:[x.jsx(Uy,{asChild:!0,children:x.jsx("span",{className:"hover:underline cursor-pointer",children:t})}),x.jsx(Wf,{side:"bottom",align:"start",children:x.jsxs("div",{className:"flex flex-col gap-1",children:[n==="BLOB"?x.jsx("span",{className:"truncate max-w-[200px] overflow-hidden text-ellipsis whitespace-nowrap",children:t}):t,n&&x.jsx(jy,{className:"text-xs",children:n})]})})]})}));Gy.displayName="TableCell";const A_=v.forwardRef(({className:e,...t},n)=>x.jsx("caption",{ref:n,className:Se("mt-4 text-sm text-muted-foreground",e),...t}));A_.displayName="TableCaption";const D_=e=>e!=null&&e.isPrimaryKey?x.jsx(fb,{className:"h-4 w-4"}):e!=null&&e.isForeignKey?x.jsx(db,{className:"h-4 w-4"}):(e==null?void 0:e.type)==="BLOB"?x.jsx(sb,{className:"h-4 w-4"}):(e==null?void 0:e.type)==="DATETIME"?x.jsx(lb,{className:"h-4 w-4"}):null,O_=(e,t,n)=>x.jsx(Wy,{children:x.jsx(Vf,{children:e.map((r,o)=>{var i;return x.jsx(qy,{children:x.jsxs(Hy,{children:[x.jsx(Uy,{asChild:!0,children:x.jsx("span",{className:"hover:underline cursor-pointer",children:x.jsxs("div",{className:"flex gap-1",children:[r,D_(t[n][r])]})})}),x.jsx(Wf,{side:"bottom",align:"start",children:((i=t[n][r])==null?void 0:i.type)||"Unknown"})]})},o)})})}),j_=(e,t,n,r)=>x.jsx(Vy,{children:e.map((o,i)=>x.jsx(Vf,{children:t.map((l,a)=>{var f;return x.jsx(Gy,{dataType:(f=n[r][l])==null?void 0:f.type,children:o[l]?o[l]:x.jsx("span",{className:"italic opacity-40",children:"NULL"})},a)})},i))});function M_({data:e,columns:t,tableName:n,tableSchemas:r}){return x.jsxs(By,{children:[O_(t,r,n),j_(e,t,r,n)]})}function Sc({children:e}){return x.jsx("div",{className:"text-center text-red-400 font-semibold md:text-2xl p-10 border rounded mb-2",children:e})}function Ec({children:e}){return x.jsxs("div",{className:"flex items-center justify-center mb-2 font-semibold p-4 border rounded",children:[x.jsx(mb,{className:"w-5 h-5 animate-spin"}),x.jsx("span",{className:"ml-2",children:e})]})}function I_(){const{query:e,db:t,tables:n,selectedTable:r,tableSchemas:o,queryError:i,setQueryError:l,rowPerPageOrAuto:a,isCustomQuery:f,setIsCustomQuery:u}=Bo(),[p,m]=v.useState([]),[h,w]=v.useState([]),[C,E]=v.useState(0),[R,y]=v.useState(""),[g,b]=v.useState(!0),_=v.useMemo(()=>{var j;return(j=n[parseInt(r)])==null?void 0:j.name},[n,r]),P=v.useMemo(()=>{var j;return((j=n[parseInt(r)])==null?void 0:j.count)||0},[n,r]);v.useEffect(()=>{E(0),u(!1)},[_]),v.useEffect(()=>{if(t&&_&&!f){b(!0);const j=`SELECT * FROM "${_}" LIMIT ${I} OFFSET ${C};`;(async()=>{try{const $=e(j),{data:U,columns:F}=js($);w(F),m(U),l(null),y(j)}catch($){$ instanceof Error&&l($.message)}finally{b(!1)}})()}},[t,_,C]);const A=v.useCallback(()=>{l(null),y(""),u(!1)},[u,l]),T=v.useCallback(()=>{E(0),A()},[A]),O=v.useCallback(()=>{if(R.trim()===""){l(null);return}b(!0),(async()=>{try{const j=e(R),{data:$,columns:U}=js(j);w(U),m($),u(!0),l(null)}catch(j){j instanceof Error&&l(j.message)}finally{b(!1)}})()},[R,t,e,l,u]);let I=30;if(a==="auto"){let j=110;const $=window.innerHeight;console.log($),$>1500?j=75:$>1e3?j=90:$<750&&(j=150),I=Math.max(1,Math.floor($/j))}return x.jsxs("div",{className:"flex flex-col gap-3 mb-2",children:[x.jsxs("section",{className:"flex flex-col gap-2 p-3 pb-1 border rounded",children:[x.jsx(g_,{}),x.jsxs("div",{className:"flex gap-1 mb-1",children:[x.jsx(Rf,{type:"text",value:R,onChange:j=>y(j.target.value),placeholder:"Enter your custom query",className:"w-full"}),x.jsx(Zt,{onClick:O,title:"Run custom query",children:x.jsx(vb,{className:"h-5 w-5"})}),x.jsx(Zt,{onClick:A,title:"Reset query",children:x.jsx(wb,{className:"h-5 w-5"})}),x.jsx(Zt,{onClick:T,title:"Reset to first page",disabled:C===0,children:x.jsx(pb,{className:"h-5 w-5"})})]}),i&&x.jsx("p",{className:"text-xs text-red-500 capitalize text-center",children:i})]}),g?x.jsxs(Ec,{children:["Loading ",_]}):p.length>0?x.jsx("div",{className:"border rounded",children:x.jsx(M_,{data:p,columns:h,tableName:_,tableSchemas:o})}):x.jsxs(Sc,{children:["Table ",_," is empty"]}),!f&&x.jsx(xb,{page:C,setPage:E,rowsPerPage:I,rowCount:P})]})}var Ky={exports:{}},L_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",F_=L_,z_=F_;function Qy(){}function Yy(){}Yy.resetWarningCache=Qy;var $_=function(){function e(r,o,i,l,a,f){if(f!==z_){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Yy,resetWarningCache:Qy};return n.PropTypes=n,n};Ky.exports=$_();var H_=Ky.exports;const Ne=Zi(H_);var U_=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function sl(e,t){var n=B_(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function B_(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=U_.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var W_=[".DS_Store","Thumbs.db"];function V_(e){return Qo(this,void 0,void 0,function(){return Yo(this,function(t){return Bs(e)&&q_(e.dataTransfer)?[2,Y_(e.dataTransfer,e.type)]:G_(e)?[2,K_(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,Q_(e)]:[2,[]]})})}function q_(e){return Bs(e)}function G_(e){return Bs(e)&&Bs(e.target)}function Bs(e){return typeof e=="object"&&e!==null}function K_(e){return bc(e.target.files).map(function(t){return sl(t)})}function Q_(e){return Qo(this,void 0,void 0,function(){var t;return Yo(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return sl(r)})]}})})}function Y_(e,t){return Qo(this,void 0,void 0,function(){var n,r;return Yo(this,function(o){switch(o.label){case 0:return e.items?(n=bc(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(X_))]):[3,2];case 1:return r=o.sent(),[2,vm(Xy(r))];case 2:return[2,vm(bc(e.files).map(function(i){return sl(i)}))]}})})}function vm(e){return e.filter(function(t){return W_.indexOf(t.name)===-1})}function bc(e){if(e===null)return[];for(var t=[],n=0;nMath.abs(_)?"h":"v";if("touches"in b&&N==="h"&&A.type==="range")return!1;var O=pm(N,A);if(!O)return!0;if(O?P=N:(P=N==="v"?"h":"v",O=pm(N,A)),!O)return!1;if(!r.current&&"changedTouches"in b&&(E||_)&&(r.current=P),!P)return!0;var I=r.current||P;return OC(I,R,b,I==="h"?E:_,!0)},[]),f=v.useCallback(function(b){var R=b;if(!(!so.length||so[so.length-1]!==i)){var y="deltaY"in R?mm(R):Bl(R),g=t.current.filter(function(P){return P.name===R.type&&(P.target===R.target||R.target===P.shadowParent)&&jC(P.delta,y)})[0];if(g&&g.should){R.cancelable&&R.preventDefault();return}if(!g){var E=(l.current.shards||[]).map(hm).filter(Boolean).filter(function(P){return P.contains(R.target)}),_=E.length>0?a(R,E[0]):!l.current.noIsolation;_&&R.cancelable&&R.preventDefault()}}},[]),u=v.useCallback(function(b,R,y,g){var E={name:b,delta:R,target:y,should:g,shadowParent:FC(y)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(_){return _!==E})},1)},[]),p=v.useCallback(function(b){n.current=Bl(b),r.current=void 0},[]),m=v.useCallback(function(b){u(b.type,mm(b),b.target,a(b,e.lockRef.current))},[]),h=v.useCallback(function(b){u(b.type,Bl(b),b.target,a(b,e.lockRef.current))},[]);v.useEffect(function(){return so.push(i),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:h}),document.addEventListener("wheel",f,lo),document.addEventListener("touchmove",f,lo),document.addEventListener("touchstart",p,lo),function(){so=so.filter(function(b){return b!==i}),document.removeEventListener("wheel",f,lo),document.removeEventListener("touchmove",f,lo),document.removeEventListener("touchstart",p,lo)}},[]);var w=e.removeScrollBar,C=e.inert;return v.createElement(v.Fragment,null,C?v.createElement(i,{styles:MC(o)}):null,w?v.createElement(kC,{gapMode:e.gapMode}):null)}function FC(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const zC=pC(Hg,LC);var $f=v.forwardRef(function(e,t){return v.createElement(pa,kn({},e,{ref:t,sideCar:zC}))});$f.classNames=pa.classNames;var $C=[" ","Enter","ArrowUp","ArrowDown"],HC=[" ","Enter"],il="Select",[ma,ha,UC]=bb(il),[Xo,FR]=Vo(il,[UC,da]),va=da(),[BC,_r]=Xo(il),[WC,VC]=Xo(il),qg=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:l,defaultValue:a,onValueChange:f,dir:u,name:p,autoComplete:m,disabled:h,required:w}=e,C=va(t),[b,R]=v.useState(null),[y,g]=v.useState(null),[E,_]=v.useState(!1),P=_b(u),[A=!1,N]=zs({prop:r,defaultProp:o,onChange:i}),[O,I]=zs({prop:l,defaultProp:a,onChange:f}),j=v.useRef(null),H=b?!!b.closest("form"):!0,[U,F]=v.useState(new Set),W=Array.from(U).map(Z=>Z.props.value).join(";");return x.jsx(Dg,{...C,children:x.jsxs(BC,{required:w,scope:t,trigger:b,onTriggerChange:R,valueNode:y,onValueNodeChange:g,valueNodeHasChildren:E,onValueNodeHasChildrenChange:_,contentId:Ro(),value:O,onValueChange:I,open:A,onOpenChange:N,dir:P,triggerPointerDownPosRef:j,disabled:h,children:[x.jsx(ma.Provider,{scope:t,children:x.jsx(WC,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(Z=>{F(le=>new Set(le).add(Z))},[]),onNativeOptionRemove:v.useCallback(Z=>{F(le=>{const ne=new Set(le);return ne.delete(Z),ne})},[]),children:n})}),H?x.jsxs(yy,{"aria-hidden":!0,required:w,tabIndex:-1,name:p,autoComplete:m,value:O,onChange:Z=>I(Z.target.value),disabled:h,children:[O===void 0?x.jsx("option",{value:""}):null,Array.from(U)]},W):null]})})};qg.displayName=il;var Gg="SelectTrigger",Kg=v.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=va(n),l=_r(Gg,n),a=l.disabled||r,f=Ve(t,l.onTriggerChange),u=ha(n),[p,m,h]=wy(C=>{const b=u().filter(g=>!g.disabled),R=b.find(g=>g.value===l.value),y=xy(b,C,R);y!==void 0&&l.onValueChange(y.value)}),w=()=>{a||(l.onOpenChange(!0),h())};return x.jsx(Og,{asChild:!0,...i,children:x.jsx(Me.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":gy(l.value)?"":void 0,...o,ref:f,onClick:be(o.onClick,C=>{C.currentTarget.focus()}),onPointerDown:be(o.onPointerDown,C=>{const b=C.target;b.hasPointerCapture(C.pointerId)&&b.releasePointerCapture(C.pointerId),C.button===0&&C.ctrlKey===!1&&(w(),l.triggerPointerDownPosRef.current={x:Math.round(C.pageX),y:Math.round(C.pageY)},C.preventDefault())}),onKeyDown:be(o.onKeyDown,C=>{const b=p.current!=="";!(C.ctrlKey||C.altKey||C.metaKey)&&C.key.length===1&&m(C.key),!(b&&C.key===" ")&&$C.includes(C.key)&&(w(),C.preventDefault())})})})});Kg.displayName=Gg;var Qg="SelectValue",Yg=v.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...a}=e,f=_r(Qg,n),{onValueNodeHasChildrenChange:u}=f,p=i!==void 0,m=Ve(t,f.onValueNodeChange);return kt(()=>{u(p)},[u,p]),x.jsx(Me.span,{...a,ref:m,style:{pointerEvents:"none"},children:gy(f.value)?x.jsx(x.Fragment,{children:l}):i})});Yg.displayName=Qg;var qC="SelectIcon",Xg=v.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return x.jsx(Me.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Xg.displayName=qC;var GC="SelectPortal",Zg=e=>x.jsx(zf,{asChild:!0,...e});Zg.displayName=GC;var Kr="SelectContent",Jg=v.forwardRef((e,t)=>{const n=_r(Kr,e.__scopeSelect),[r,o]=v.useState();if(kt(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?Zr.createPortal(x.jsx(ey,{scope:e.__scopeSelect,children:x.jsx(ma.Slot,{scope:e.__scopeSelect,children:x.jsx("div",{children:e.children})})}),i):null}return x.jsx(ty,{...e,ref:t})});Jg.displayName=Kr;var Mn=10,[ey,kr]=Xo(Kr),KC="SelectContentImpl",ty=v.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:l,side:a,sideOffset:f,align:u,alignOffset:p,arrowPadding:m,collisionBoundary:h,collisionPadding:w,sticky:C,hideWhenDetached:b,avoidCollisions:R,...y}=e,g=_r(Kr,n),[E,_]=v.useState(null),[P,A]=v.useState(null),N=Ve(t,J=>_(J)),[O,I]=v.useState(null),[j,H]=v.useState(null),U=ha(n),[F,W]=v.useState(!1),Z=v.useRef(!1);v.useEffect(()=>{if(E)return Fg(E)},[E]),fg();const le=v.useCallback(J=>{const[ye,...Ie]=U().map(de=>de.ref.current),[K]=Ie.slice(-1),ge=document.activeElement;for(const de of J)if(de===ge||(de==null||de.scrollIntoView({block:"nearest"}),de===ye&&P&&(P.scrollTop=0),de===K&&P&&(P.scrollTop=P.scrollHeight),de==null||de.focus(),document.activeElement!==ge))return},[U,P]),ne=v.useCallback(()=>le([O,E]),[le,O,E]);v.useEffect(()=>{F&&ne()},[F,ne]);const{onOpenChange:z,triggerPointerDownPosRef:V}=g;v.useEffect(()=>{if(E){let J={x:0,y:0};const ye=K=>{var ge,de;J={x:Math.abs(Math.round(K.pageX)-(((ge=V.current)==null?void 0:ge.x)??0)),y:Math.abs(Math.round(K.pageY)-(((de=V.current)==null?void 0:de.y)??0))}},Ie=K=>{J.x<=10&&J.y<=10?K.preventDefault():E.contains(K.target)||z(!1),document.removeEventListener("pointermove",ye),V.current=null};return V.current!==null&&(document.addEventListener("pointermove",ye),document.addEventListener("pointerup",Ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ye),document.removeEventListener("pointerup",Ie,{capture:!0})}}},[E,z,V]),v.useEffect(()=>{const J=()=>z(!1);return window.addEventListener("blur",J),window.addEventListener("resize",J),()=>{window.removeEventListener("blur",J),window.removeEventListener("resize",J)}},[z]);const[ee,se]=wy(J=>{const ye=U().filter(ge=>!ge.disabled),Ie=ye.find(ge=>ge.ref.current===document.activeElement),K=xy(ye,J,Ie);K&&setTimeout(()=>K.ref.current.focus())}),ue=v.useCallback((J,ye,Ie)=>{const K=!Z.current&&!Ie;(g.value!==void 0&&g.value===ye||K)&&(I(J),K&&(Z.current=!0))},[g.value]),qe=v.useCallback(()=>E==null?void 0:E.focus(),[E]),ve=v.useCallback((J,ye,Ie)=>{const K=!Z.current&&!Ie;(g.value!==void 0&&g.value===ye||K)&&H(J)},[g.value]),Xe=r==="popper"?vc:ny,_e=Xe===vc?{side:a,sideOffset:f,align:u,alignOffset:p,arrowPadding:m,collisionBoundary:h,collisionPadding:w,sticky:C,hideWhenDetached:b,avoidCollisions:R}:{};return x.jsx(ey,{scope:n,content:E,viewport:P,onViewportChange:A,itemRefCallback:ue,selectedItem:O,onItemLeave:qe,itemTextRefCallback:ve,focusSelectedItem:ne,selectedItemText:j,position:r,isPositioned:F,searchRef:ee,children:x.jsx($f,{as:qr,allowPinchZoom:!0,children:x.jsx(Nf,{asChild:!0,trapped:g.open,onMountAutoFocus:J=>{J.preventDefault()},onUnmountAutoFocus:be(o,J=>{var ye;(ye=g.trigger)==null||ye.focus({preventScroll:!0}),J.preventDefault()}),children:x.jsx(ca,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:J=>J.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:x.jsx(Xe,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:J=>J.preventDefault(),...y,..._e,onPlaced:()=>W(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:be(y.onKeyDown,J=>{const ye=J.ctrlKey||J.altKey||J.metaKey;if(J.key==="Tab"&&J.preventDefault(),!ye&&J.key.length===1&&se(J.key),["ArrowUp","ArrowDown","Home","End"].includes(J.key)){let K=U().filter(ge=>!ge.disabled).map(ge=>ge.ref.current);if(["ArrowUp","End"].includes(J.key)&&(K=K.slice().reverse()),["ArrowUp","ArrowDown"].includes(J.key)){const ge=J.target,de=K.indexOf(ge);K=K.slice(de+1)}setTimeout(()=>le(K)),J.preventDefault()}})})})})})})});ty.displayName=KC;var QC="SelectItemAlignedPosition",ny=v.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=_r(Kr,n),l=kr(Kr,n),[a,f]=v.useState(null),[u,p]=v.useState(null),m=Ve(t,N=>p(N)),h=ha(n),w=v.useRef(!1),C=v.useRef(!0),{viewport:b,selectedItem:R,selectedItemText:y,focusSelectedItem:g}=l,E=v.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&u&&b&&R&&y){const N=i.trigger.getBoundingClientRect(),O=u.getBoundingClientRect(),I=i.valueNode.getBoundingClientRect(),j=y.getBoundingClientRect();if(i.dir!=="rtl"){const ge=j.left-O.left,de=I.left-ge,Y=N.left-de,me=N.width+Y,ut=Math.max(me,O.width),Je=window.innerWidth-Mn,tt=Gp(de,[Mn,Je-ut]);a.style.minWidth=me+"px",a.style.left=tt+"px"}else{const ge=O.right-j.right,de=window.innerWidth-I.right-ge,Y=window.innerWidth-N.right-de,me=N.width+Y,ut=Math.max(me,O.width),Je=window.innerWidth-Mn,tt=Gp(de,[Mn,Je-ut]);a.style.minWidth=me+"px",a.style.right=tt+"px"}const H=h(),U=window.innerHeight-Mn*2,F=b.scrollHeight,W=window.getComputedStyle(u),Z=parseInt(W.borderTopWidth,10),le=parseInt(W.paddingTop,10),ne=parseInt(W.borderBottomWidth,10),z=parseInt(W.paddingBottom,10),V=Z+le+F+z+ne,ee=Math.min(R.offsetHeight*5,V),se=window.getComputedStyle(b),ue=parseInt(se.paddingTop,10),qe=parseInt(se.paddingBottom,10),ve=N.top+N.height/2-Mn,Xe=U-ve,_e=R.offsetHeight/2,J=R.offsetTop+_e,ye=Z+le+J,Ie=V-ye;if(ye<=ve){const ge=R===H[H.length-1].ref.current;a.style.bottom="0px";const de=u.clientHeight-b.offsetTop-b.offsetHeight,Y=Math.max(Xe,_e+(ge?qe:0)+de+ne),me=ye+Y;a.style.height=me+"px"}else{const ge=R===H[0].ref.current;a.style.top="0px";const Y=Math.max(ve,Z+b.offsetTop+(ge?ue:0)+_e)+Ie;a.style.height=Y+"px",b.scrollTop=ye-ve+b.offsetTop}a.style.margin=`${Mn}px 0`,a.style.minHeight=ee+"px",a.style.maxHeight=U+"px",r==null||r(),requestAnimationFrame(()=>w.current=!0)}},[h,i.trigger,i.valueNode,a,u,b,R,y,i.dir,r]);kt(()=>E(),[E]);const[_,P]=v.useState();kt(()=>{u&&P(window.getComputedStyle(u).zIndex)},[u]);const A=v.useCallback(N=>{N&&C.current===!0&&(E(),g==null||g(),C.current=!1)},[E,g]);return x.jsx(XC,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:w,onScrollButtonChange:A,children:x.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:x.jsx(Me.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});ny.displayName=QC;var YC="SelectPopperPosition",vc=v.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Mn,...i}=e,l=va(n);return x.jsx(jg,{...l,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.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)"}})});vc.displayName=YC;var[XC,Hf]=Xo(Kr,{}),gc="SelectViewport",ry=v.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=kr(gc,n),l=Hf(gc,n),a=Ve(t,i.onViewportChange),f=v.useRef(0);return x.jsxs(x.Fragment,{children:[x.jsx("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}"},nonce:r}),x.jsx(ma.Slot,{scope:n,children:x.jsx(Me.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:be(o.onScroll,u=>{const p=u.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:h}=l;if(h!=null&&h.current&&m){const w=Math.abs(f.current-p.scrollTop);if(w>0){const C=window.innerHeight-Mn*2,b=parseFloat(m.style.minHeight),R=parseFloat(m.style.height),y=Math.max(b,R);if(y0?_:0,m.style.justifyContent="flex-end")}}}f.current=p.scrollTop})})})]})});ry.displayName=gc;var oy="SelectGroup",[ZC,JC]=Xo(oy),iy=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ro();return x.jsx(ZC,{scope:n,id:o,children:x.jsx(Me.div,{role:"group","aria-labelledby":o,...r,ref:t})})});iy.displayName=oy;var ly="SelectLabel",sy=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=JC(ly,n);return x.jsx(Me.div,{id:o.id,...r,ref:t})});sy.displayName=ly;var $s="SelectItem",[e_,ay]=Xo($s),uy=v.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...l}=e,a=_r($s,n),f=kr($s,n),u=a.value===r,[p,m]=v.useState(i??""),[h,w]=v.useState(!1),C=Ve(t,y=>{var g;return(g=f.itemRefCallback)==null?void 0:g.call(f,y,r,o)}),b=Ro(),R=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A 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 x.jsx(e_,{scope:n,value:r,disabled:o,textId:b,isSelected:u,onItemTextChange:v.useCallback(y=>{m(g=>g||((y==null?void 0:y.textContent)??"").trim())},[]),children:x.jsx(ma.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:x.jsx(Me.div,{role:"option","aria-labelledby":b,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...l,ref:C,onFocus:be(l.onFocus,()=>w(!0)),onBlur:be(l.onBlur,()=>w(!1)),onPointerUp:be(l.onPointerUp,R),onPointerMove:be(l.onPointerMove,y=>{var g;o?(g=f.onItemLeave)==null||g.call(f):y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:be(l.onPointerLeave,y=>{var g;y.currentTarget===document.activeElement&&((g=f.onItemLeave)==null||g.call(f))}),onKeyDown:be(l.onKeyDown,y=>{var E;((E=f.searchRef)==null?void 0:E.current)!==""&&y.key===" "||(HC.includes(y.key)&&R(),y.key===" "&&y.preventDefault())})})})})});uy.displayName=$s;var Ei="SelectItemText",cy=v.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,l=_r(Ei,n),a=kr(Ei,n),f=ay(Ei,n),u=VC(Ei,n),[p,m]=v.useState(null),h=Ve(t,y=>m(y),f.onItemTextChange,y=>{var g;return(g=a.itemTextRefCallback)==null?void 0:g.call(a,y,f.value,f.disabled)}),w=p==null?void 0:p.textContent,C=v.useMemo(()=>x.jsx("option",{value:f.value,disabled:f.disabled,children:w},f.value),[f.disabled,f.value,w]),{onNativeOptionAdd:b,onNativeOptionRemove:R}=u;return kt(()=>(b(C),()=>R(C)),[b,R,C]),x.jsxs(x.Fragment,{children:[x.jsx(Me.span,{id:f.textId,...i,ref:h}),f.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Zr.createPortal(i.children,l.valueNode):null]})});cy.displayName=Ei;var fy="SelectItemIndicator",dy=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return ay(fy,n).isSelected?x.jsx(Me.span,{"aria-hidden":!0,...r,ref:t}):null});dy.displayName=fy;var yc="SelectScrollUpButton",py=v.forwardRef((e,t)=>{const n=kr(yc,e.__scopeSelect),r=Hf(yc,e.__scopeSelect),[o,i]=v.useState(!1),l=Ve(t,r.onScrollButtonChange);return kt(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=f.scrollTop>0;i(u)};const f=n.viewport;return a(),f.addEventListener("scroll",a),()=>f.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?x.jsx(hy,{...e,ref:l,onAutoScroll:()=>{const{viewport:a,selectedItem:f}=n;a&&f&&(a.scrollTop=a.scrollTop-f.offsetHeight)}}):null});py.displayName=yc;var wc="SelectScrollDownButton",my=v.forwardRef((e,t)=>{const n=kr(wc,e.__scopeSelect),r=Hf(wc,e.__scopeSelect),[o,i]=v.useState(!1),l=Ve(t,r.onScrollButtonChange);return kt(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=f.scrollHeight-f.clientHeight,p=Math.ceil(f.scrollTop)f.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?x.jsx(hy,{...e,ref:l,onAutoScroll:()=>{const{viewport:a,selectedItem:f}=n;a&&f&&(a.scrollTop=a.scrollTop+f.offsetHeight)}}):null});my.displayName=wc;var hy=v.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=kr("SelectScrollButton",n),l=v.useRef(null),a=ha(n),f=v.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return v.useEffect(()=>()=>f(),[f]),kt(()=>{var p;const u=a().find(m=>m.ref.current===document.activeElement);(p=u==null?void 0:u.ref.current)==null||p.scrollIntoView({block:"nearest"})},[a]),x.jsx(Me.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:be(o.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:be(o.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:be(o.onPointerLeave,()=>{f()})})}),t_="SelectSeparator",vy=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return x.jsx(Me.div,{"aria-hidden":!0,...r,ref:t})});vy.displayName=t_;var xc="SelectArrow",n_=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=va(n),i=_r(xc,n),l=kr(xc,n);return i.open&&l.position==="popper"?x.jsx(Mg,{...o,...r,ref:t}):null});n_.displayName=xc;function gy(e){return e===""||e===void 0}var yy=v.forwardRef((e,t)=>{const{value:n,...r}=e,o=v.useRef(null),i=Ve(t,o),l=eC(n);return v.useEffect(()=>{const a=o.current,f=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(f,"value").set;if(l!==n&&p){const m=new Event("change",{bubbles:!0});p.call(a,n),a.dispatchEvent(m)}},[l,n]),x.jsx(Ig,{asChild:!0,children:x.jsx("select",{...r,ref:i,defaultValue:n})})});yy.displayName="BubbleSelect";function wy(e){const t=Wn(e),n=v.useRef(""),r=v.useRef(0),o=v.useCallback(l=>{const a=n.current+l;t(a),function f(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>f(""),1e3))}(a)},[t]),i=v.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function xy(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let l=r_(e,Math.max(i,0));o.length===1&&(l=l.filter(u=>u!==n));const f=l.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return f!==n?f:void 0}function r_(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var o_=qg,Sy=Kg,i_=Yg,l_=Xg,s_=Zg,Ey=Jg,a_=ry,u_=iy,by=sy,Cy=uy,c_=cy,f_=dy,_y=py,ky=my,Ry=vy;const d_=o_,p_=u_,m_=i_,Py=v.forwardRef(({className:e,children:t,...n},r)=>x.jsxs(Sy,{ref:r,className:Se("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,x.jsx(l_,{asChild:!0,children:x.jsx(ag,{className:"h-4 w-4 opacity-50"})})]}));Py.displayName=Sy.displayName;const Ny=v.forwardRef(({className:e,...t},n)=>x.jsx(_y,{ref:n,className:Se("flex cursor-default items-center justify-center py-1",e),...t,children:x.jsx(ib,{className:"h-4 w-4"})}));Ny.displayName=_y.displayName;const Ty=v.forwardRef(({className:e,...t},n)=>x.jsx(ky,{ref:n,className:Se("flex cursor-default items-center justify-center py-1",e),...t,children:x.jsx(ag,{className:"h-4 w-4"})}));Ty.displayName=ky.displayName;const Ay=v.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>x.jsx(s_,{children:x.jsxs(Ey,{ref:o,className:Se("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out 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",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[x.jsx(Ny,{}),x.jsx(a_,{className:Se("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),x.jsx(Ty,{})]})}));Ay.displayName=Ey.displayName;const Dy=v.forwardRef(({className:e,...t},n)=>x.jsx(by,{ref:n,className:Se("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Dy.displayName=by.displayName;const Oy=v.forwardRef(({className:e,children:t,...n},r)=>x.jsxs(Cy,{ref:r,className:Se("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[x.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:x.jsx(f_,{children:x.jsx(nb,{className:"h-4 w-4"})})}),x.jsx(c_,{children:t})]}));Oy.displayName=Cy.displayName;const h_=v.forwardRef(({className:e,...t},n)=>x.jsx(Ry,{ref:n,className:Se("-mx-1 my-1 h-px bg-muted",e),...t}));h_.displayName=Ry.displayName;const v_=lg("inline-flex items-center rounded border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function jy({className:e,variant:t,...n}){return x.jsx("div",{className:Se(v_({variant:t}),e),...n})}function g_(){const{tables:e,selectedTable:t,setSelectedTable:n}=Bo();return x.jsxs("section",{className:"flex justify-center items-center gap-2",children:[x.jsxs(d_,{value:t,onValueChange:n,children:[x.jsx(Py,{className:"w-[200px] md:w-[300px]",children:x.jsx(m_,{placeholder:"Select a table"})}),x.jsx(Ay,{children:x.jsxs(p_,{children:[x.jsx(Dy,{children:"Tables"}),e.map((r,o)=>x.jsx(Oy,{value:`${o}`,children:r.name},r.name))]})})]}),x.jsxs(jy,{className:"text-sm",children:[e[parseInt(t)].count," rows"]})]})}function y_(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var ll=e=>{const{present:t,children:n}=e,r=w_(t),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),i=Ve(r.ref,x_(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:i}):null};ll.displayName="Presence";function w_(e){const[t,n]=v.useState(),r=v.useRef({}),o=v.useRef(e),i=v.useRef("none"),l=e?"mounted":"unmounted",[a,f]=y_(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=Wl(r.current);i.current=a==="mounted"?u:"none"},[a]),kt(()=>{const u=r.current,p=o.current;if(p!==e){const h=i.current,w=Wl(u);e?f("MOUNT"):w==="none"||(u==null?void 0:u.display)==="none"?f("UNMOUNT"):f(p&&h!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,f]),kt(()=>{if(t){const u=m=>{const w=Wl(r.current).includes(m.animationName);m.target===t&&w&&Zr.flushSync(()=>f("ANIMATION_END"))},p=m=>{m.target===t&&(i.current=Wl(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Wl(e){return(e==null?void 0:e.animationName)||"none"}function x_(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var fu,Uf="HoverCard",[My,zR]=Vo(Uf,[da]),ga=da(),[S_,Bf]=My(Uf),Iy=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:i,openDelay:l=700,closeDelay:a=300}=e,f=ga(t),u=v.useRef(0),p=v.useRef(0),m=v.useRef(!1),h=v.useRef(!1),[w=!1,C]=zs({prop:r,defaultProp:o,onChange:i}),b=v.useCallback(()=>{clearTimeout(p.current),u.current=window.setTimeout(()=>C(!0),l)},[l,C]),R=v.useCallback(()=>{clearTimeout(u.current),!m.current&&!h.current&&(p.current=window.setTimeout(()=>C(!1),a))},[a,C]),y=v.useCallback(()=>C(!1),[C]);return v.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(p.current)},[]),x.jsx(S_,{scope:t,open:w,onOpenChange:C,onOpen:b,onClose:R,onDismiss:y,hasSelectionRef:m,isPointerDownOnContentRef:h,children:x.jsx(Dg,{...f,children:n})})};Iy.displayName=Uf;var Ly="HoverCardTrigger",Fy=v.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Bf(Ly,n),i=ga(n);return x.jsx(Og,{asChild:!0,...i,children:x.jsx(Me.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:be(e.onPointerEnter,Us(o.onOpen)),onPointerLeave:be(e.onPointerLeave,Us(o.onClose)),onFocus:be(e.onFocus,o.onOpen),onBlur:be(e.onBlur,o.onClose),onTouchStart:be(e.onTouchStart,l=>l.preventDefault())})})});Fy.displayName=Ly;var E_="HoverCardPortal",[$R,b_]=My(E_,{forceMount:void 0}),Hs="HoverCardContent",zy=v.forwardRef((e,t)=>{const n=b_(Hs,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,i=Bf(Hs,e.__scopeHoverCard);return x.jsx(ll,{present:r||i.open,children:x.jsx(C_,{"data-state":i.open?"open":"closed",...o,onPointerEnter:be(e.onPointerEnter,Us(i.onOpen)),onPointerLeave:be(e.onPointerLeave,Us(i.onClose)),ref:t})})});zy.displayName=Hs;var C_=v.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,...a}=e,f=Bf(Hs,n),u=ga(n),p=v.useRef(null),m=Ve(t,p),[h,w]=v.useState(!1);return v.useEffect(()=>{if(h){const C=document.body;return fu=C.style.userSelect||C.style.webkitUserSelect,C.style.userSelect="none",C.style.webkitUserSelect="none",()=>{C.style.userSelect=fu,C.style.webkitUserSelect=fu}}},[h]),v.useEffect(()=>{if(p.current){const C=()=>{w(!1),f.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var R;((R=document.getSelection())==null?void 0:R.toString())!==""&&(f.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",C),()=>{document.removeEventListener("pointerup",C),f.hasSelectionRef.current=!1,f.isPointerDownOnContentRef.current=!1}}},[f.isPointerDownOnContentRef,f.hasSelectionRef]),v.useEffect(()=>{p.current&&R_(p.current).forEach(b=>b.setAttribute("tabindex","-1"))}),x.jsx(ca,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:l,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:be(i,C=>{C.preventDefault()}),onDismiss:f.onDismiss,children:x.jsx(jg,{...u,...a,onPointerDown:be(a.onPointerDown,C=>{C.currentTarget.contains(C.target)&&w(!0),f.hasSelectionRef.current=!1,f.isPointerDownOnContentRef.current=!0}),ref:m,style:{...a.style,userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),__="HoverCardArrow",k_=v.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=ga(n);return x.jsx(Mg,{...o,...r,ref:t})});k_.displayName=__;function Us(e){return t=>t.pointerType==="touch"?void 0:e()}function R_(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var P_=Iy,N_=Fy,$y=zy;const Hy=P_,Uy=N_,Wf=v.forwardRef(({className:e,align:t="start",side:n="bottom",sideOffset:r=4,...o},i)=>x.jsx($y,{ref:i,align:t,side:n,sideOffset:r,className:Se("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out 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 text-balance break-words",e),...o}));Wf.displayName=$y.displayName;const By=v.forwardRef(({className:e,...t},n)=>x.jsx("div",{className:"relative w-full overflow-auto",children:x.jsx("table",{ref:n,className:Se("w-full caption-bottom text-sm",e),...t})}));By.displayName="Table";const Wy=v.forwardRef(({className:e,...t},n)=>x.jsx("thead",{ref:n,className:Se("[&_tr]:border-b",e),...t}));Wy.displayName="TableHeader";const Vy=v.forwardRef(({className:e,...t},n)=>x.jsx("tbody",{ref:n,className:Se("[&_tr:last-child]:border-0",e),...t}));Vy.displayName="TableBody";const T_=v.forwardRef(({className:e,...t},n)=>x.jsx("tfoot",{ref:n,className:Se("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));T_.displayName="TableFooter";const Vf=v.forwardRef(({className:e,...t},n)=>x.jsx("tr",{ref:n,className:Se("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Vf.displayName="TableRow";const qy=v.forwardRef(({className:e,...t},n)=>x.jsx("th",{ref:n,className:Se("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));qy.displayName="TableHead";const Gy=v.forwardRef(({className:e,children:t,dataType:n,...r},o)=>x.jsx("td",{ref:o,className:Se("p-4 align-middle [&:has([role=checkbox])]:pr-0 truncate max-w-[200px] overflow-hidden text-ellipsis whitespace-nowrap",e),...r,children:x.jsxs(Hy,{children:[x.jsx(Uy,{asChild:!0,children:x.jsx("span",{className:"hover:underline cursor-pointer",children:t})}),x.jsx(Wf,{side:"bottom",align:"start",children:x.jsxs("div",{className:"flex flex-col gap-1",children:[n==="BLOB"?x.jsx("span",{className:"truncate max-w-[200px] overflow-hidden text-ellipsis whitespace-nowrap",children:t}):t,n&&x.jsx(jy,{className:"text-xs",children:n})]})})]})}));Gy.displayName="TableCell";const A_=v.forwardRef(({className:e,...t},n)=>x.jsx("caption",{ref:n,className:Se("mt-4 text-sm text-muted-foreground",e),...t}));A_.displayName="TableCaption";const D_=e=>e!=null&&e.isPrimaryKey?x.jsx(fb,{className:"h-4 w-4"}):e!=null&&e.isForeignKey?x.jsx(db,{className:"h-4 w-4"}):(e==null?void 0:e.type)==="BLOB"?x.jsx(sb,{className:"h-4 w-4"}):(e==null?void 0:e.type)==="DATETIME"?x.jsx(lb,{className:"h-4 w-4"}):null,O_=(e,t,n)=>x.jsx(Wy,{children:x.jsx(Vf,{children:e.map((r,o)=>{var i;return x.jsx(qy,{children:x.jsxs(Hy,{children:[x.jsx(Uy,{asChild:!0,children:x.jsx("span",{className:"hover:underline cursor-pointer",children:x.jsxs("div",{className:"flex gap-1",children:[r,D_(t[n][r])]})})}),x.jsx(Wf,{side:"bottom",align:"start",children:((i=t[n][r])==null?void 0:i.type)||"Unknown"})]})},o)})})}),j_=(e,t,n,r)=>x.jsx(Vy,{children:e.map((o,i)=>x.jsx(Vf,{children:t.map((l,a)=>{var f;return x.jsx(Gy,{dataType:(f=n[r][l])==null?void 0:f.type,children:o[l]?o[l]:x.jsx("span",{className:"italic opacity-40",children:"NULL"})},a)})},i))});function M_({data:e,columns:t,tableName:n,tableSchemas:r}){return x.jsxs(By,{children:[O_(t,r,n),j_(e,t,r,n)]})}function Sc({children:e}){return x.jsx("div",{className:"text-center text-red-400 font-semibold md:text-2xl p-10 border rounded mb-2",children:e})}function Ec({children:e}){return x.jsxs("div",{className:"flex items-center justify-center mb-2 font-semibold p-4 border rounded",children:[x.jsx(mb,{className:"w-5 h-5 animate-spin"}),x.jsx("span",{className:"ml-2",children:e})]})}function I_(){const{query:e,db:t,tables:n,selectedTable:r,tableSchemas:o,queryError:i,setQueryError:l,rowPerPageOrAuto:a,isCustomQuery:f,setIsCustomQuery:u}=Bo(),[p,m]=v.useState([]),[h,w]=v.useState([]),[C,b]=v.useState(0),[R,y]=v.useState(""),[g,E]=v.useState(!0),_=v.useMemo(()=>{var j;return(j=n[parseInt(r)])==null?void 0:j.name},[n,r]),P=v.useMemo(()=>{var j;return((j=n[parseInt(r)])==null?void 0:j.count)||0},[n,r]);v.useEffect(()=>{b(0),u(!1)},[_]),v.useEffect(()=>{if(t&&_&&!f){E(!0);const j=`SELECT * FROM "${_}" LIMIT ${I} OFFSET ${C};`;(async()=>{try{const H=e(j),{data:U,columns:F}=js(H);w(F),m(U),l(null),y(j)}catch(H){H instanceof Error&&l(H.message)}finally{E(!1)}})()}},[t,_,C,a]);const A=v.useCallback(()=>{l(null),y(""),u(!1)},[u,l]),N=v.useCallback(()=>{b(0),A()},[A]),O=v.useCallback(()=>{if(R.trim()===""){l(null);return}E(!0),(async()=>{try{const j=e(R),{data:H,columns:U}=js(j);w(U),m(H),u(!0),l(null)}catch(j){j instanceof Error&&l(j.message)}finally{E(!1)}})()},[R,t,e,l,u]);let I=30;if(a==="auto"){let j=110;const H=window.innerHeight;H>1500?j=75:H>1e3?j=90:H<750&&(j=150),I=Math.max(1,Math.floor(H/j))}else I=a;return x.jsxs("div",{className:"flex flex-col gap-3 mb-2",children:[x.jsxs("section",{className:"flex flex-col gap-2 p-3 pb-1 border rounded",children:[x.jsx(g_,{}),x.jsxs("div",{className:"flex gap-1 mb-1",children:[x.jsx(Rf,{type:"text",value:R,onChange:j=>y(j.target.value),placeholder:"Enter your custom query",className:"w-full"}),x.jsx(Zt,{onClick:O,title:"Run custom query",children:x.jsx(vb,{className:"h-5 w-5"})}),x.jsx(Zt,{onClick:A,title:"Reset query",children:x.jsx(wb,{className:"h-5 w-5"})}),x.jsx(Zt,{onClick:N,title:"Reset to first page",disabled:C===0,children:x.jsx(pb,{className:"h-5 w-5"})})]}),i&&x.jsx("p",{className:"text-xs text-red-500 capitalize text-center",children:i})]}),g?x.jsxs(Ec,{children:["Loading ",_]}):p.length>0?x.jsx("div",{className:"border rounded",children:x.jsx(M_,{data:p,columns:h,tableName:_,tableSchemas:o})}):x.jsxs(Sc,{children:["Table ",_," is empty"]}),!f&&x.jsx(xb,{page:C,setPage:b,rowsPerPage:I,rowCount:P})]})}var Ky={exports:{}},L_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",F_=L_,z_=F_;function Qy(){}function Yy(){}Yy.resetWarningCache=Qy;var $_=function(){function e(r,o,i,l,a,f){if(f!==z_){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Yy,resetWarningCache:Qy};return n.PropTypes=n,n};Ky.exports=$_();var H_=Ky.exports;const Te=Zi(H_);var U_=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function sl(e,t){var n=B_(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function B_(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=U_.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var W_=[".DS_Store","Thumbs.db"];function V_(e){return Qo(this,void 0,void 0,function(){return Yo(this,function(t){return Bs(e)&&q_(e.dataTransfer)?[2,Y_(e.dataTransfer,e.type)]:G_(e)?[2,K_(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,Q_(e)]:[2,[]]})})}function q_(e){return Bs(e)}function G_(e){return Bs(e)&&Bs(e.target)}function Bs(e){return typeof e=="object"&&e!==null}function K_(e){return bc(e.target.files).map(function(t){return sl(t)})}function Q_(e){return Qo(this,void 0,void 0,function(){var t;return Yo(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return sl(r)})]}})})}function Y_(e,t){return Qo(this,void 0,void 0,function(){var n,r;return Yo(this,function(o){switch(o.label){case 0:return e.items?(n=bc(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(X_))]):[3,2];case 1:return r=o.sent(),[2,vm(Xy(r))];case 2:return[2,vm(bc(e.files).map(function(i){return sl(i)}))]}})})}function vm(e){return e.filter(function(t){return W_.indexOf(t.name)===-1})}function bc(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,Sm(n)];if(e.sizen)return[!1,Sm(n)]}return[!0,null]}function jr(e){return e!=null}function pk(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,l=e.maxFiles,a=e.validator;return!i&&t.length>1||i&&l>=1&&t.length>l?!1:t.every(function(f){var u=t0(f,n),p=Xi(u,1),m=p[0],h=n0(f,r,o),w=Xi(h,1),C=w[0],E=a?a(f):null;return m&&C&&!E})}function Ws(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Vl(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function bm(e){e.preventDefault()}function mk(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function hk(e){return e.indexOf("Edge/")!==-1}function vk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return mk(e)||hk(e)}function bn(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),l=1;le.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ok(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var qf=v.forwardRef(function(e,t){var n=e.children,r=Vs(e,Ek),o=s0(r),i=o.open,l=Vs(o,bk);return v.useImperativeHandle(t,function(){return{open:i}},[i]),Q.createElement(v.Fragment,null,n(Ge(Ge({},l),{},{open:i})))});qf.displayName="Dropzone";var l0={disabled:!1,getFilesFromEvent:V_,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};qf.defaultProps=l0;qf.propTypes={children:Ne.func,accept:Ne.objectOf(Ne.arrayOf(Ne.string)),multiple:Ne.bool,preventDropOnDocument:Ne.bool,noClick:Ne.bool,noKeyboard:Ne.bool,noDrag:Ne.bool,noDragEventsBubbling:Ne.bool,minSize:Ne.number,maxSize:Ne.number,maxFiles:Ne.number,disabled:Ne.bool,getFilesFromEvent:Ne.func,onFileDialogCancel:Ne.func,onFileDialogOpen:Ne.func,useFsAccessApi:Ne.bool,autoFocus:Ne.bool,onDragEnter:Ne.func,onDragLeave:Ne.func,onDragOver:Ne.func,onDrop:Ne.func,onDropAccepted:Ne.func,onDropRejected:Ne.func,onError:Ne.func,validator:Ne.func};var Rc={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function s0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ge(Ge({},l0),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,l=t.minSize,a=t.multiple,f=t.maxFiles,u=t.onDragEnter,p=t.onDragLeave,m=t.onDragOver,h=t.onDrop,w=t.onDropAccepted,C=t.onDropRejected,E=t.onFileDialogCancel,R=t.onFileDialogOpen,y=t.useFsAccessApi,g=t.autoFocus,b=t.preventDropOnDocument,_=t.noClick,P=t.noKeyboard,A=t.noDrag,T=t.noDragEventsBubbling,O=t.onError,I=t.validator,j=v.useMemo(function(){return wk(n)},[n]),$=v.useMemo(function(){return yk(n)},[n]),U=v.useMemo(function(){return typeof R=="function"?R:_m},[R]),F=v.useMemo(function(){return typeof E=="function"?E:_m},[E]),W=v.useRef(null),Z=v.useRef(null),le=v.useReducer(jk,Rc),ne=du(le,2),z=ne[0],V=ne[1],ee=z.isFocused,se=z.isFileDialogActive,ue=v.useRef(typeof window<"u"&&window.isSecureContext&&y&&gk()),qe=function(){!ue.current&&se&&setTimeout(function(){if(Z.current){var oe=Z.current.files;oe.length||(V({type:"closeDialog"}),F())}},300)};v.useEffect(function(){return window.addEventListener("focus",qe,!1),function(){window.removeEventListener("focus",qe,!1)}},[Z,se,F,ue]);var ve=v.useRef([]),Xe=function(oe){W.current&&W.current.contains(oe.target)||(oe.preventDefault(),ve.current=[])};v.useEffect(function(){return b&&(document.addEventListener("dragover",bm,!1),document.addEventListener("drop",Xe,!1)),function(){b&&(document.removeEventListener("dragover",bm),document.removeEventListener("drop",Xe))}},[W,b]),v.useEffect(function(){return!r&&g&&W.current&&W.current.focus(),function(){}},[W,g,r]);var _e=v.useCallback(function(G){O?O(G):console.error(G)},[O]),J=v.useCallback(function(G){G.preventDefault(),G.persist(),rn(G),ve.current=[].concat(kk(ve.current),[G.target]),Vl(G)&&Promise.resolve(o(G)).then(function(oe){if(!(Ws(G)&&!T)){var Le=oe.length,Pe=Le>0&&pk({files:oe,accept:j,minSize:l,maxSize:i,multiple:a,maxFiles:f,validator:I}),nt=Le>0&&!Pe;V({isDragAccept:Pe,isDragReject:nt,isDragActive:!0,type:"setDraggedFiles"}),u&&u(G)}}).catch(function(oe){return _e(oe)})},[o,u,_e,T,j,l,i,a,f,I]),ye=v.useCallback(function(G){G.preventDefault(),G.persist(),rn(G);var oe=Vl(G);if(oe&&G.dataTransfer)try{G.dataTransfer.dropEffect="copy"}catch{}return oe&&m&&m(G),!1},[m,T]),Ie=v.useCallback(function(G){G.preventDefault(),G.persist(),rn(G);var oe=ve.current.filter(function(Pe){return W.current&&W.current.contains(Pe)}),Le=oe.indexOf(G.target);Le!==-1&&oe.splice(Le,1),ve.current=oe,!(oe.length>0)&&(V({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Vl(G)&&p&&p(G))},[W,p,T]),K=v.useCallback(function(G,oe){var Le=[],Pe=[];G.forEach(function(nt){var Nt=t0(nt,j),St=du(Nt,2),on=St[0],Yn=St[1],Xn=n0(nt,l,i),Zn=du(Xn,2),ie=Zn[0],fe=Zn[1],Re=I?I(nt):null;if(on&&ie&&!Re)Le.push(nt);else{var q=[Yn,fe];Re&&(q=q.concat(Re)),Pe.push({file:nt,errors:q.filter(function(De){return De})})}}),(!a&&Le.length>1||a&&f>=1&&Le.length>f)&&(Le.forEach(function(nt){Pe.push({file:nt,errors:[dk]})}),Le.splice(0)),V({acceptedFiles:Le,fileRejections:Pe,type:"setFiles"}),h&&h(Le,Pe,oe),Pe.length>0&&C&&C(Pe,oe),Le.length>0&&w&&w(Le,oe)},[V,a,j,l,i,f,h,w,C,I]),ge=v.useCallback(function(G){G.preventDefault(),G.persist(),rn(G),ve.current=[],Vl(G)&&Promise.resolve(o(G)).then(function(oe){Ws(G)&&!T||K(oe,G)}).catch(function(oe){return _e(oe)}),V({type:"reset"})},[o,K,_e,T]),de=v.useCallback(function(){if(ue.current){V({type:"openDialog"}),U();var G={multiple:a,types:$};window.showOpenFilePicker(G).then(function(oe){return o(oe)}).then(function(oe){K(oe,null),V({type:"closeDialog"})}).catch(function(oe){xk(oe)?(F(oe),V({type:"closeDialog"})):Sk(oe)?(ue.current=!1,Z.current?(Z.current.value=null,Z.current.click()):_e(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):_e(oe)});return}Z.current&&(V({type:"openDialog"}),U(),Z.current.value=null,Z.current.click())},[V,U,F,y,K,_e,$,a]),Y=v.useCallback(function(G){!W.current||!W.current.isEqualNode(G.target)||(G.key===" "||G.key==="Enter"||G.keyCode===32||G.keyCode===13)&&(G.preventDefault(),de())},[W,de]),me=v.useCallback(function(){V({type:"focus"})},[]),ut=v.useCallback(function(){V({type:"blur"})},[]),Je=v.useCallback(function(){_||(vk()?setTimeout(de,0):de())},[_,de]),tt=function(oe){return r?null:oe},Tt=function(oe){return P?null:tt(oe)},ke=function(oe){return A?null:tt(oe)},rn=function(oe){T&&oe.stopPropagation()},Jr=v.useMemo(function(){return function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=G.refKey,Le=oe===void 0?"ref":oe,Pe=G.role,nt=G.onKeyDown,Nt=G.onFocus,St=G.onBlur,on=G.onClick,Yn=G.onDragEnter,Xn=G.onDragOver,Zn=G.onDragLeave,ie=G.onDrop,fe=Vs(G,Ck);return Ge(Ge(kc({onKeyDown:Tt(bn(nt,Y)),onFocus:Tt(bn(Nt,me)),onBlur:Tt(bn(St,ut)),onClick:tt(bn(on,Je)),onDragEnter:ke(bn(Yn,J)),onDragOver:ke(bn(Xn,ye)),onDragLeave:ke(bn(Zn,Ie)),onDrop:ke(bn(ie,ge)),role:typeof Pe=="string"&&Pe!==""?Pe:"presentation"},Le,W),!r&&!P?{tabIndex:0}:{}),fe)}},[W,Y,me,ut,Je,J,ye,Ie,ge,P,A,r]),Lt=v.useCallback(function(G){G.stopPropagation()},[]),yn=v.useMemo(function(){return function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=G.refKey,Le=oe===void 0?"ref":oe,Pe=G.onChange,nt=G.onClick,Nt=Vs(G,_k),St=kc({accept:j,multiple:a,type:"file",style:{display:"none"},onChange:tt(bn(Pe,ge)),onClick:tt(bn(nt,Lt)),tabIndex:-1},Le,Z);return Ge(Ge({},St),Nt)}},[Z,n,a,ge,r]);return Ge(Ge({},z),{},{isFocused:ee&&!r,getRootProps:Jr,getInputProps:yn,rootRef:W,inputRef:Z,open:tt(de)})}function jk(e,t){switch(t.type){case"focus":return Ge(Ge({},e),{},{isFocused:!0});case"blur":return Ge(Ge({},e),{},{isFocused:!1});case"openDialog":return Ge(Ge({},Rc),{},{isFileDialogActive:!0});case"closeDialog":return Ge(Ge({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ge(Ge({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ge(Ge({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Ge({},Rc);default:return e}}function _m(){}const Mk=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"];function Ik(e){if(e===0)return"0 Byte";const t=Math.floor(Math.log(e)/Math.log(1024)),n=Mk[t];return`${(e/Math.pow(1024,t)).toFixed(2)} ${n}`}function Lk({file:e}){return x.jsxs("li",{className:"flex w-full items-center justify-center gap-2 font-mono text-sm",title:e.name,children:[x.jsx("p",{className:"max-w-[250px] truncate",children:e.name}),x.jsx("span",{className:"text-xs font-semibold",children:Ik(e.size)})]})}function Fk({errors:e}){return e?x.jsx(x.Fragment,{children:e.map(t=>x.jsxs("div",{className:"flex items-center justify-center text-sm text-red-600 gap-2 rounded border border-red-600 p-4 mb-2",children:[x.jsx(ub,{}),t.message]},t.code))}):x.jsxs("li",{className:"flex w-full items-center justify-center text-sm text-green-600",children:[x.jsx(ab,{className:"mr-2"}),"Uploaded successfully"]})}function zk(){const{loadDatabase:e,setTables:t,setSelectedTable:n,db:r}=Bo(),[o,i]=v.useState(null),[l,a]=v.useState([]),f=v.useCallback(async(h,w)=>{if(a([]),t([]),n("0"),h.length>0){const C=h[0];i(C),await e(C)}if(w.length>0){const C=w.flatMap(E=>E.errors);a(C)}},[e,t,n]),{getRootProps:u,getInputProps:p}=s0({onDrop:f,multiple:!1,accept:{"application/vnd.sqlite3":[".sqlite",".sqlite3"],"application/x-sqlite3":[".sqlite",".sqlite3"],"application/octet-stream":[".db"],"application/sql":[".sql"]}}),m=h=>x.jsxs("div",{...u(),className:`border p-6 rounded cursor-pointer text-center ${h?"":"py-24"}`,children:[x.jsx("input",{id:"file-upload",...p()}),x.jsx("label",{htmlFor:"file-upload",className:"sr-only",children:"Upload SQLite File"}),x.jsx("p",{className:"hidden sm:block",children:"Drag and drop a SQLite file here, or click to select one"}),x.jsx("p",{className:"block sm:hidden",children:"Click to select a SQLite file"}),!h&&x.jsx("a",{href:"https://github.com/vwh/sqlite-viewer/raw/main/examples/chinook.db",className:"text-sm text-link hover:underline",title:"Download sample file",children:"Or download & try this sample file"})]});return x.jsxs("section",{children:[m(!!r),x.jsxs("div",{className:"mt-2",children:[o&&x.jsx(Lk,{file:o}),x.jsx(Fk,{errors:l})]})]})}function $k(){const e=v.useRef(null);return v.useEffect(()=>{const t=e.current;if(!t)return;const n=()=>{document.body.classList.contains("dark")?t.src="/sqlite-dark.webp":t.src="/sqlite-light.webp"};n();const r=new MutationObserver(n);return r.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>r.disconnect()},[]),x.jsx("section",{className:"flex justify-center border rounded py-3",children:x.jsxs("div",{className:"flex flex-col items-center gap-3",children:[x.jsx("img",{ref:e,id:"logo",title:"SQLite Logo",src:"./sqlite-light.webp",alt:"SQLite Logo",width:"160",height:"80",draggable:"false"}),x.jsx("p",{className:"text-sm",children:"View SQLite file online"})]})})}var Gf="Dialog",[a0,u0]=Vo(Gf),[Hk,vn]=a0(Gf),c0=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:l=!0}=e,a=v.useRef(null),f=v.useRef(null),[u=!1,p]=zs({prop:r,defaultProp:o,onChange:i});return x.jsx(Hk,{scope:t,triggerRef:a,contentRef:f,contentId:Ro(),titleId:Ro(),descriptionId:Ro(),open:u,onOpenChange:p,onOpenToggle:v.useCallback(()=>p(m=>!m),[p]),modal:l,children:n})};c0.displayName=Gf;var f0="DialogTrigger",d0=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vn(f0,n),i=Ve(t,o.triggerRef);return x.jsx(Me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Yf(o.open),...r,ref:i,onClick:be(e.onClick,o.onOpenToggle)})});d0.displayName=f0;var Kf="DialogPortal",[Uk,p0]=a0(Kf,{forceMount:void 0}),m0=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=vn(Kf,t);return x.jsx(Uk,{scope:t,forceMount:n,children:v.Children.map(r,l=>x.jsx(ll,{present:n||i.open,children:x.jsx(zf,{asChild:!0,container:o,children:l})}))})};m0.displayName=Kf;var qs="DialogOverlay",h0=v.forwardRef((e,t)=>{const n=p0(qs,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=vn(qs,e.__scopeDialog);return i.modal?x.jsx(ll,{present:r||i.open,children:x.jsx(Bk,{...o,ref:t})}):null});h0.displayName=qs;var Bk=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vn(qs,n);return x.jsx($f,{as:qr,allowPinchZoom:!0,shards:[o.contentRef],children:x.jsx(Me.div,{"data-state":Yf(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Qr="DialogContent",v0=v.forwardRef((e,t)=>{const n=p0(Qr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=vn(Qr,e.__scopeDialog);return x.jsx(ll,{present:r||i.open,children:i.modal?x.jsx(Wk,{...o,ref:t}):x.jsx(Vk,{...o,ref:t})})});v0.displayName=Qr;var Wk=v.forwardRef((e,t)=>{const n=vn(Qr,e.__scopeDialog),r=v.useRef(null),o=Ve(t,n.contentRef,r);return v.useEffect(()=>{const i=r.current;if(i)return Fg(i)},[]),x.jsx(g0,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:be(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:be(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,a=l.button===0&&l.ctrlKey===!0;(l.button===2||a)&&i.preventDefault()}),onFocusOutside:be(e.onFocusOutside,i=>i.preventDefault())})}),Vk=v.forwardRef((e,t)=>{const n=vn(Qr,e.__scopeDialog),r=v.useRef(!1),o=v.useRef(!1);return x.jsx(g0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,a;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var f,u;(f=e.onInteractOutside)==null||f.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),g0=v.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=e,a=vn(Qr,n),f=v.useRef(null),u=Ve(t,f);return fg(),x.jsxs(x.Fragment,{children:[x.jsx(Tf,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:x.jsx(ca,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Yf(a.open),...l,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),x.jsxs(x.Fragment,{children:[x.jsx(Gk,{titleId:a.titleId}),x.jsx(Qk,{contentRef:f,descriptionId:a.descriptionId})]})]})}),Qf="DialogTitle",y0=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vn(Qf,n);return x.jsx(Me.h2,{id:o.titleId,...r,ref:t})});y0.displayName=Qf;var w0="DialogDescription",x0=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vn(w0,n);return x.jsx(Me.p,{id:o.descriptionId,...r,ref:t})});x0.displayName=w0;var S0="DialogClose",E0=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vn(S0,n);return x.jsx(Me.button,{type:"button",...r,ref:t,onClick:be(e.onClick,()=>o.onOpenChange(!1))})});E0.displayName=S0;function Yf(e){return e?"open":"closed"}var b0="DialogTitleWarning",[qk,C0]=Sb(b0,{contentName:Qr,titleName:Qf,docsSlug:"dialog"}),Gk=({titleId:e})=>{const t=C0(b0),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e0(e,t){if(e){if(typeof e=="string")return Cc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cc(e,t)}}function Cc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,Sm(n)];if(e.sizen)return[!1,Sm(n)]}return[!0,null]}function jr(e){return e!=null}function pk(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,l=e.maxFiles,a=e.validator;return!i&&t.length>1||i&&l>=1&&t.length>l?!1:t.every(function(f){var u=t0(f,n),p=Xi(u,1),m=p[0],h=n0(f,r,o),w=Xi(h,1),C=w[0],b=a?a(f):null;return m&&C&&!b})}function Ws(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Vl(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function bm(e){e.preventDefault()}function mk(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function hk(e){return e.indexOf("Edge/")!==-1}function vk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return mk(e)||hk(e)}function bn(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),l=1;le.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ok(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var qf=v.forwardRef(function(e,t){var n=e.children,r=Vs(e,Ek),o=s0(r),i=o.open,l=Vs(o,bk);return v.useImperativeHandle(t,function(){return{open:i}},[i]),Q.createElement(v.Fragment,null,n(Ge(Ge({},l),{},{open:i})))});qf.displayName="Dropzone";var l0={disabled:!1,getFilesFromEvent:V_,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};qf.defaultProps=l0;qf.propTypes={children:Te.func,accept:Te.objectOf(Te.arrayOf(Te.string)),multiple:Te.bool,preventDropOnDocument:Te.bool,noClick:Te.bool,noKeyboard:Te.bool,noDrag:Te.bool,noDragEventsBubbling:Te.bool,minSize:Te.number,maxSize:Te.number,maxFiles:Te.number,disabled:Te.bool,getFilesFromEvent:Te.func,onFileDialogCancel:Te.func,onFileDialogOpen:Te.func,useFsAccessApi:Te.bool,autoFocus:Te.bool,onDragEnter:Te.func,onDragLeave:Te.func,onDragOver:Te.func,onDrop:Te.func,onDropAccepted:Te.func,onDropRejected:Te.func,onError:Te.func,validator:Te.func};var Rc={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function s0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ge(Ge({},l0),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,l=t.minSize,a=t.multiple,f=t.maxFiles,u=t.onDragEnter,p=t.onDragLeave,m=t.onDragOver,h=t.onDrop,w=t.onDropAccepted,C=t.onDropRejected,b=t.onFileDialogCancel,R=t.onFileDialogOpen,y=t.useFsAccessApi,g=t.autoFocus,E=t.preventDropOnDocument,_=t.noClick,P=t.noKeyboard,A=t.noDrag,N=t.noDragEventsBubbling,O=t.onError,I=t.validator,j=v.useMemo(function(){return wk(n)},[n]),H=v.useMemo(function(){return yk(n)},[n]),U=v.useMemo(function(){return typeof R=="function"?R:_m},[R]),F=v.useMemo(function(){return typeof b=="function"?b:_m},[b]),W=v.useRef(null),Z=v.useRef(null),le=v.useReducer(jk,Rc),ne=du(le,2),z=ne[0],V=ne[1],ee=z.isFocused,se=z.isFileDialogActive,ue=v.useRef(typeof window<"u"&&window.isSecureContext&&y&&gk()),qe=function(){!ue.current&&se&&setTimeout(function(){if(Z.current){var oe=Z.current.files;oe.length||(V({type:"closeDialog"}),F())}},300)};v.useEffect(function(){return window.addEventListener("focus",qe,!1),function(){window.removeEventListener("focus",qe,!1)}},[Z,se,F,ue]);var ve=v.useRef([]),Xe=function(oe){W.current&&W.current.contains(oe.target)||(oe.preventDefault(),ve.current=[])};v.useEffect(function(){return E&&(document.addEventListener("dragover",bm,!1),document.addEventListener("drop",Xe,!1)),function(){E&&(document.removeEventListener("dragover",bm),document.removeEventListener("drop",Xe))}},[W,E]),v.useEffect(function(){return!r&&g&&W.current&&W.current.focus(),function(){}},[W,g,r]);var _e=v.useCallback(function(G){O?O(G):console.error(G)},[O]),J=v.useCallback(function(G){G.preventDefault(),G.persist(),rn(G),ve.current=[].concat(kk(ve.current),[G.target]),Vl(G)&&Promise.resolve(o(G)).then(function(oe){if(!(Ws(G)&&!N)){var Le=oe.length,Pe=Le>0&&pk({files:oe,accept:j,minSize:l,maxSize:i,multiple:a,maxFiles:f,validator:I}),nt=Le>0&&!Pe;V({isDragAccept:Pe,isDragReject:nt,isDragActive:!0,type:"setDraggedFiles"}),u&&u(G)}}).catch(function(oe){return _e(oe)})},[o,u,_e,N,j,l,i,a,f,I]),ye=v.useCallback(function(G){G.preventDefault(),G.persist(),rn(G);var oe=Vl(G);if(oe&&G.dataTransfer)try{G.dataTransfer.dropEffect="copy"}catch{}return oe&&m&&m(G),!1},[m,N]),Ie=v.useCallback(function(G){G.preventDefault(),G.persist(),rn(G);var oe=ve.current.filter(function(Pe){return W.current&&W.current.contains(Pe)}),Le=oe.indexOf(G.target);Le!==-1&&oe.splice(Le,1),ve.current=oe,!(oe.length>0)&&(V({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Vl(G)&&p&&p(G))},[W,p,N]),K=v.useCallback(function(G,oe){var Le=[],Pe=[];G.forEach(function(nt){var Tt=t0(nt,j),St=du(Tt,2),on=St[0],Yn=St[1],Xn=n0(nt,l,i),Zn=du(Xn,2),ie=Zn[0],fe=Zn[1],Re=I?I(nt):null;if(on&&ie&&!Re)Le.push(nt);else{var q=[Yn,fe];Re&&(q=q.concat(Re)),Pe.push({file:nt,errors:q.filter(function(De){return De})})}}),(!a&&Le.length>1||a&&f>=1&&Le.length>f)&&(Le.forEach(function(nt){Pe.push({file:nt,errors:[dk]})}),Le.splice(0)),V({acceptedFiles:Le,fileRejections:Pe,type:"setFiles"}),h&&h(Le,Pe,oe),Pe.length>0&&C&&C(Pe,oe),Le.length>0&&w&&w(Le,oe)},[V,a,j,l,i,f,h,w,C,I]),ge=v.useCallback(function(G){G.preventDefault(),G.persist(),rn(G),ve.current=[],Vl(G)&&Promise.resolve(o(G)).then(function(oe){Ws(G)&&!N||K(oe,G)}).catch(function(oe){return _e(oe)}),V({type:"reset"})},[o,K,_e,N]),de=v.useCallback(function(){if(ue.current){V({type:"openDialog"}),U();var G={multiple:a,types:H};window.showOpenFilePicker(G).then(function(oe){return o(oe)}).then(function(oe){K(oe,null),V({type:"closeDialog"})}).catch(function(oe){xk(oe)?(F(oe),V({type:"closeDialog"})):Sk(oe)?(ue.current=!1,Z.current?(Z.current.value=null,Z.current.click()):_e(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):_e(oe)});return}Z.current&&(V({type:"openDialog"}),U(),Z.current.value=null,Z.current.click())},[V,U,F,y,K,_e,H,a]),Y=v.useCallback(function(G){!W.current||!W.current.isEqualNode(G.target)||(G.key===" "||G.key==="Enter"||G.keyCode===32||G.keyCode===13)&&(G.preventDefault(),de())},[W,de]),me=v.useCallback(function(){V({type:"focus"})},[]),ut=v.useCallback(function(){V({type:"blur"})},[]),Je=v.useCallback(function(){_||(vk()?setTimeout(de,0):de())},[_,de]),tt=function(oe){return r?null:oe},Nt=function(oe){return P?null:tt(oe)},ke=function(oe){return A?null:tt(oe)},rn=function(oe){N&&oe.stopPropagation()},Jr=v.useMemo(function(){return function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=G.refKey,Le=oe===void 0?"ref":oe,Pe=G.role,nt=G.onKeyDown,Tt=G.onFocus,St=G.onBlur,on=G.onClick,Yn=G.onDragEnter,Xn=G.onDragOver,Zn=G.onDragLeave,ie=G.onDrop,fe=Vs(G,Ck);return Ge(Ge(kc({onKeyDown:Nt(bn(nt,Y)),onFocus:Nt(bn(Tt,me)),onBlur:Nt(bn(St,ut)),onClick:tt(bn(on,Je)),onDragEnter:ke(bn(Yn,J)),onDragOver:ke(bn(Xn,ye)),onDragLeave:ke(bn(Zn,Ie)),onDrop:ke(bn(ie,ge)),role:typeof Pe=="string"&&Pe!==""?Pe:"presentation"},Le,W),!r&&!P?{tabIndex:0}:{}),fe)}},[W,Y,me,ut,Je,J,ye,Ie,ge,P,A,r]),Lt=v.useCallback(function(G){G.stopPropagation()},[]),yn=v.useMemo(function(){return function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=G.refKey,Le=oe===void 0?"ref":oe,Pe=G.onChange,nt=G.onClick,Tt=Vs(G,_k),St=kc({accept:j,multiple:a,type:"file",style:{display:"none"},onChange:tt(bn(Pe,ge)),onClick:tt(bn(nt,Lt)),tabIndex:-1},Le,Z);return Ge(Ge({},St),Tt)}},[Z,n,a,ge,r]);return Ge(Ge({},z),{},{isFocused:ee&&!r,getRootProps:Jr,getInputProps:yn,rootRef:W,inputRef:Z,open:tt(de)})}function jk(e,t){switch(t.type){case"focus":return Ge(Ge({},e),{},{isFocused:!0});case"blur":return Ge(Ge({},e),{},{isFocused:!1});case"openDialog":return Ge(Ge({},Rc),{},{isFileDialogActive:!0});case"closeDialog":return Ge(Ge({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ge(Ge({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ge(Ge({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Ge({},Rc);default:return e}}function _m(){}const Mk=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"];function Ik(e){if(e===0)return"0 Byte";const t=Math.floor(Math.log(e)/Math.log(1024)),n=Mk[t];return`${(e/Math.pow(1024,t)).toFixed(2)} ${n}`}function Lk({file:e}){return x.jsxs("li",{className:"flex w-full items-center justify-center gap-2 font-mono text-sm",title:e.name,children:[x.jsx("p",{className:"max-w-[250px] truncate",children:e.name}),x.jsx("span",{className:"text-xs font-semibold",children:Ik(e.size)})]})}function Fk({errors:e}){return e?x.jsx(x.Fragment,{children:e.map(t=>x.jsxs("div",{className:"flex items-center justify-center text-sm text-red-600 gap-2 rounded border border-red-600 p-4 mb-2",children:[x.jsx(ub,{}),t.message]},t.code))}):x.jsxs("li",{className:"flex w-full items-center justify-center text-sm text-green-600",children:[x.jsx(ab,{className:"mr-2"}),"Uploaded successfully"]})}function zk(){const{loadDatabase:e,setTables:t,setSelectedTable:n,db:r}=Bo(),[o,i]=v.useState(null),[l,a]=v.useState([]),f=v.useCallback(async(h,w)=>{if(a([]),t([]),n("0"),h.length>0){const C=h[0];i(C),await e(C)}if(w.length>0){const C=w.flatMap(b=>b.errors);a(C)}},[e,t,n]),{getRootProps:u,getInputProps:p}=s0({onDrop:f,multiple:!1,accept:{"application/vnd.sqlite3":[".sqlite",".sqlite3"],"application/x-sqlite3":[".sqlite",".sqlite3"],"application/octet-stream":[".db"],"application/sql":[".sql"]}}),m=h=>x.jsxs("div",{...u(),className:`border p-6 rounded cursor-pointer text-center ${h?"":"py-24"}`,children:[x.jsx("input",{id:"file-upload",...p()}),x.jsx("label",{htmlFor:"file-upload",className:"sr-only",children:"Upload SQLite File"}),x.jsx("p",{className:"hidden sm:block",children:"Drag and drop a SQLite file here, or click to select one"}),x.jsx("p",{className:"block sm:hidden",children:"Click to select a SQLite file"}),!h&&x.jsx("a",{href:"https://github.com/vwh/sqlite-viewer/raw/main/db_examples/chinook.db",className:"text-sm text-link hover:underline",title:"Download sample file",children:"Or download & try this sample file"})]});return x.jsxs("section",{children:[m(!!r),x.jsxs("div",{className:"mt-2",children:[o&&x.jsx(Lk,{file:o}),x.jsx(Fk,{errors:l})]})]})}function $k(){const e=v.useRef(null);return v.useEffect(()=>{const t=e.current;if(!t)return;const n=()=>{document.body.classList.contains("dark")?t.src="/sqlite-dark.webp":t.src="/sqlite-light.webp"};n();const r=new MutationObserver(n);return r.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>r.disconnect()},[]),x.jsx("section",{className:"flex justify-center border rounded py-3",children:x.jsxs("div",{className:"flex flex-col items-center gap-3",children:[x.jsx("img",{ref:e,id:"logo",title:"SQLite Logo",src:"./sqlite-light.webp",alt:"SQLite Logo",width:"160",height:"80",draggable:"false"}),x.jsx("p",{className:"text-sm",children:"View SQLite file online"})]})})}var Gf="Dialog",[a0,u0]=Vo(Gf),[Hk,vn]=a0(Gf),c0=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:l=!0}=e,a=v.useRef(null),f=v.useRef(null),[u=!1,p]=zs({prop:r,defaultProp:o,onChange:i});return x.jsx(Hk,{scope:t,triggerRef:a,contentRef:f,contentId:Ro(),titleId:Ro(),descriptionId:Ro(),open:u,onOpenChange:p,onOpenToggle:v.useCallback(()=>p(m=>!m),[p]),modal:l,children:n})};c0.displayName=Gf;var f0="DialogTrigger",d0=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vn(f0,n),i=Ve(t,o.triggerRef);return x.jsx(Me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Yf(o.open),...r,ref:i,onClick:be(e.onClick,o.onOpenToggle)})});d0.displayName=f0;var Kf="DialogPortal",[Uk,p0]=a0(Kf,{forceMount:void 0}),m0=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=vn(Kf,t);return x.jsx(Uk,{scope:t,forceMount:n,children:v.Children.map(r,l=>x.jsx(ll,{present:n||i.open,children:x.jsx(zf,{asChild:!0,container:o,children:l})}))})};m0.displayName=Kf;var qs="DialogOverlay",h0=v.forwardRef((e,t)=>{const n=p0(qs,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=vn(qs,e.__scopeDialog);return i.modal?x.jsx(ll,{present:r||i.open,children:x.jsx(Bk,{...o,ref:t})}):null});h0.displayName=qs;var Bk=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vn(qs,n);return x.jsx($f,{as:qr,allowPinchZoom:!0,shards:[o.contentRef],children:x.jsx(Me.div,{"data-state":Yf(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Qr="DialogContent",v0=v.forwardRef((e,t)=>{const n=p0(Qr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=vn(Qr,e.__scopeDialog);return x.jsx(ll,{present:r||i.open,children:i.modal?x.jsx(Wk,{...o,ref:t}):x.jsx(Vk,{...o,ref:t})})});v0.displayName=Qr;var Wk=v.forwardRef((e,t)=>{const n=vn(Qr,e.__scopeDialog),r=v.useRef(null),o=Ve(t,n.contentRef,r);return v.useEffect(()=>{const i=r.current;if(i)return Fg(i)},[]),x.jsx(g0,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:be(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:be(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,a=l.button===0&&l.ctrlKey===!0;(l.button===2||a)&&i.preventDefault()}),onFocusOutside:be(e.onFocusOutside,i=>i.preventDefault())})}),Vk=v.forwardRef((e,t)=>{const n=vn(Qr,e.__scopeDialog),r=v.useRef(!1),o=v.useRef(!1);return x.jsx(g0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,a;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var f,u;(f=e.onInteractOutside)==null||f.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),g0=v.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=e,a=vn(Qr,n),f=v.useRef(null),u=Ve(t,f);return fg(),x.jsxs(x.Fragment,{children:[x.jsx(Nf,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:x.jsx(ca,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Yf(a.open),...l,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),x.jsxs(x.Fragment,{children:[x.jsx(Gk,{titleId:a.titleId}),x.jsx(Qk,{contentRef:f,descriptionId:a.descriptionId})]})]})}),Qf="DialogTitle",y0=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vn(Qf,n);return x.jsx(Me.h2,{id:o.titleId,...r,ref:t})});y0.displayName=Qf;var w0="DialogDescription",x0=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vn(w0,n);return x.jsx(Me.p,{id:o.descriptionId,...r,ref:t})});x0.displayName=w0;var S0="DialogClose",E0=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vn(S0,n);return x.jsx(Me.button,{type:"button",...r,ref:t,onClick:be(e.onClick,()=>o.onOpenChange(!1))})});E0.displayName=S0;function Yf(e){return e?"open":"closed"}var b0="DialogTitleWarning",[qk,C0]=Sb(b0,{contentName:Qr,titleName:Qf,docsSlug:"dialog"}),Gk=({titleId:e})=>{const t=C0(b0),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. -For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Kk="DialogDescriptionWarning",Qk=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${C0(Kk).contentName}}.`;return v.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},_0=c0,k0=d0,R0=m0,P0=h0,T0=v0,N0=y0,A0=x0,Xf=E0,D0="AlertDialog",[Yk,HR]=Vo(D0,[u0]),Qn=u0(),O0=e=>{const{__scopeAlertDialog:t,...n}=e,r=Qn(t);return x.jsx(_0,{...r,...n,modal:!0})};O0.displayName=D0;var Xk="AlertDialogTrigger",Zk=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Qn(n);return x.jsx(k0,{...o,...r,ref:t})});Zk.displayName=Xk;var Jk="AlertDialogPortal",j0=e=>{const{__scopeAlertDialog:t,...n}=e,r=Qn(t);return x.jsx(R0,{...r,...n})};j0.displayName=Jk;var eR="AlertDialogOverlay",M0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Qn(n);return x.jsx(P0,{...o,...r,ref:t})});M0.displayName=eR;var No="AlertDialogContent",[tR,nR]=Yk(No),I0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=Qn(n),l=v.useRef(null),a=Ve(t,l),f=v.useRef(null);return x.jsx(qk,{contentName:No,titleName:L0,docsSlug:"alert-dialog",children:x.jsx(tR,{scope:n,cancelRef:f,children:x.jsxs(T0,{role:"alertdialog",...i,...o,ref:a,onOpenAutoFocus:be(o.onOpenAutoFocus,u=>{var p;u.preventDefault(),(p=f.current)==null||p.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[x.jsx(og,{children:r}),x.jsx(oR,{contentRef:l})]})})})});I0.displayName=No;var L0="AlertDialogTitle",F0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Qn(n);return x.jsx(N0,{...o,...r,ref:t})});F0.displayName=L0;var z0="AlertDialogDescription",$0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Qn(n);return x.jsx(A0,{...o,...r,ref:t})});$0.displayName=z0;var rR="AlertDialogAction",H0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Qn(n);return x.jsx(Xf,{...o,...r,ref:t})});H0.displayName=rR;var U0="AlertDialogCancel",B0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=nR(U0,n),i=Qn(n),l=Ve(t,o);return x.jsx(Xf,{...i,...r,ref:l})});B0.displayName=U0;var oR=({contentRef:e})=>{const t=`\`${No}\` requires a description for the component to be accessible for screen reader users. +For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Kk="DialogDescriptionWarning",Qk=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${C0(Kk).contentName}}.`;return v.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},_0=c0,k0=d0,R0=m0,P0=h0,N0=v0,T0=y0,A0=x0,Xf=E0,D0="AlertDialog",[Yk,HR]=Vo(D0,[u0]),Qn=u0(),O0=e=>{const{__scopeAlertDialog:t,...n}=e,r=Qn(t);return x.jsx(_0,{...r,...n,modal:!0})};O0.displayName=D0;var Xk="AlertDialogTrigger",Zk=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Qn(n);return x.jsx(k0,{...o,...r,ref:t})});Zk.displayName=Xk;var Jk="AlertDialogPortal",j0=e=>{const{__scopeAlertDialog:t,...n}=e,r=Qn(t);return x.jsx(R0,{...r,...n})};j0.displayName=Jk;var eR="AlertDialogOverlay",M0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Qn(n);return x.jsx(P0,{...o,...r,ref:t})});M0.displayName=eR;var To="AlertDialogContent",[tR,nR]=Yk(To),I0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=Qn(n),l=v.useRef(null),a=Ve(t,l),f=v.useRef(null);return x.jsx(qk,{contentName:To,titleName:L0,docsSlug:"alert-dialog",children:x.jsx(tR,{scope:n,cancelRef:f,children:x.jsxs(N0,{role:"alertdialog",...i,...o,ref:a,onOpenAutoFocus:be(o.onOpenAutoFocus,u=>{var p;u.preventDefault(),(p=f.current)==null||p.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[x.jsx(og,{children:r}),x.jsx(oR,{contentRef:l})]})})})});I0.displayName=To;var L0="AlertDialogTitle",F0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Qn(n);return x.jsx(T0,{...o,...r,ref:t})});F0.displayName=L0;var z0="AlertDialogDescription",$0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Qn(n);return x.jsx(A0,{...o,...r,ref:t})});$0.displayName=z0;var rR="AlertDialogAction",H0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Qn(n);return x.jsx(Xf,{...o,...r,ref:t})});H0.displayName=rR;var U0="AlertDialogCancel",B0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=nR(U0,n),i=Qn(n),l=Ve(t,o);return x.jsx(Xf,{...i,...r,ref:l})});B0.displayName=U0;var oR=({contentRef:e})=>{const t=`\`${To}\` requires a description for the component to be accessible for screen reader users. -You can add a description to the \`${No}\` by passing a \`${z0}\` component as a child, which also benefits sighted users by adding visible context to the dialog. +You can add a description to the \`${To}\` by passing a \`${z0}\` component as a child, which also benefits sighted users by adding visible context to the dialog. -Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${No}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. +Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${To}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. -For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return v.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},iR=O0,lR=j0,W0=M0,V0=I0,q0=H0,G0=B0,K0=F0,Q0=$0;const sR=iR,aR=lR,Y0=v.forwardRef(({className:e,...t},n)=>x.jsx(W0,{className:Se("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Y0.displayName=W0.displayName;const X0=v.forwardRef(({className:e,...t},n)=>x.jsxs(aR,{children:[x.jsx(Y0,{}),x.jsx(V0,{ref:n,className:Se("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));X0.displayName=V0.displayName;const Z0=({className:e,...t})=>x.jsx("div",{className:Se("flex flex-col space-y-2 text-left",e),...t});Z0.displayName="AlertDialogHeader";const J0=({className:e,...t})=>x.jsx("div",{className:Se("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});J0.displayName="AlertDialogFooter";const ew=v.forwardRef(({className:e,...t},n)=>x.jsx(K0,{ref:n,className:Se("text-lg font-semibold",e),...t}));ew.displayName=K0.displayName;const tw=v.forwardRef(({className:e,...t},n)=>x.jsx(Q0,{ref:n,className:Se("text-sm",e),...t}));tw.displayName=Q0.displayName;const nw=v.forwardRef(({className:e,...t},n)=>x.jsx(q0,{ref:n,className:Se(Pf(),e),...t}));nw.displayName=q0.displayName;const rw=v.forwardRef(({className:e,...t},n)=>x.jsx(G0,{ref:n,className:Se(Pf({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));rw.displayName=G0.displayName;function uR({showDialog:e,setShowDialog:t,fn:n}){return x.jsx(sR,{open:e,onOpenChange:t,children:x.jsxs(X0,{children:[x.jsxs(Z0,{children:[x.jsx(ew,{children:"Retry using a proxy?"}),x.jsx(tw,{children:"Failed to load the database from the provided URL due to possible CORS restrictions."})]}),x.jsx("div",{className:"text-sm font-semibold",children:"Using the proxy may expose your database to corsproxy.io services."}),x.jsxs(J0,{children:[x.jsx(rw,{onClick:()=>t(!1),children:"Cancel"}),x.jsx(nw,{onClick:n,children:"Confirm"})]})]})})}function cR(){const{db:e,tables:t,isLoading:n,loadDatabase:r}=Bo(),[o,i]=v.useState(null),[l,a]=v.useState(!1),[f,u]=v.useState(null),[p,m]=v.useState(!1),h=v.useRef(!1),w=async(E,R=!1)=>{try{m(!0);const y=R?`https://corsproxy.io/?${E}`:E,g=await fetch(y);if(!g.ok)i(`URL not found or invalid: ( ${g.status} )`);else{const b=await g.blob(),_=new File([b],"database.sqlite");await r(_),i(null)}}catch(y){y instanceof Error&&(R?i(`Error fetching database from URL (with proxy): ${E} - ${y.message}`):(u(E),a(!0)))}finally{m(!1)}};v.useEffect(()=>{if(h.current)return;const E=new URLSearchParams(window.location.search),R=decodeURIComponent(E.get("url")||"");R&&(w(R),h.current=!0)},[]);const C=()=>{f&&(w(f,!0),a(!1))};return x.jsxs("div",{className:"flex flex-col gap-3",children:[!e&&x.jsx($k,{}),x.jsx(zk,{}),n?x.jsx(Ec,{children:"Loading SQLite file"}):p?x.jsx(Ec,{children:"Fetching SQLite file"}):null,o&&!e&&x.jsx(Sc,{children:o}),!n&&e&&(t.length>0?x.jsx(I_,{}):x.jsx(Sc,{children:"Your database is empty, no tables found"})),x.jsx(uR,{showDialog:l,setShowDialog:a,fn:C})]})}function fR(){const[e,t]=v.useState(!1),n=v.useCallback(r=>{t(r),document.body.classList.toggle("dark",r),localStorage.setItem("darkMode",r.toString())},[]);return v.useEffect(()=>{const r=window.matchMedia("(prefers-color-scheme: dark)").matches,o=localStorage.getItem("darkMode");n(o!==null?o==="true":r);const i=a=>{n(a.matches)},l=window.matchMedia("(prefers-color-scheme: dark)");return l.addEventListener("change",i),()=>{l.removeEventListener("change",i)}},[]),x.jsx(Zt,{title:e?"Enable light mode":"Enable dark mode",onClick:()=>{n(!e)},className:"relative",variant:"outline",children:e?x.jsx(yb,{className:"h-5 w-5"}):x.jsx(hb,{className:"h-5 w-5"})})}function dR(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const ow=Q.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,handleOnly:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{},direction:"bottom"}),ya=()=>{const e=Q.useContext(ow);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};dR("[vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1)}[vaul-drawer][vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[vaul-drawer][vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[vaul-drawer][vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[vaul-drawer][vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}.vaul-dragging .vaul-scrollable [vault-drawer-direction=top]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=bottom]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=left]{overflow-x:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=right]{overflow-x:hidden!important}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]::after{content:'';position:absolute;background:inherit;background-color:inherit}[vaul-drawer][vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[vaul-drawer][vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[vaul-handle]{display:block;position:relative;opacity:.8;margin-left:auto;margin-right:auto;height:5px;width:56px;border-radius:1rem;touch-action:pan-y;cursor:grab}[vaul-handle]:active,[vaul-handle]:hover{opacity:1}[vaul-handle]:active{cursor:grabbing}[vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay=true]):not([data-state=closed]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible=false]){opacity:1}@media (hover:hover) and (pointer:fine){[vaul-drawer]{user-select:none}}@media (pointer:fine){[vaul-handle-hitarea]:{width:100%;height:100%}}");const pR=typeof window<"u"?v.useLayoutEffect:v.useEffect;function Pc(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function mR(){return Zf(/^Mac/)}function hR(){return Zf(/^iPhone/)}function vR(){return Zf(/^iPad/)||mR()&&navigator.maxTouchPoints>1}function iw(){return hR()||vR()}function Zf(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const pu=typeof document<"u"&&window.visualViewport;function km(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function lw(e){for(km(e)&&(e=e.parentElement);e&&!km(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const gR=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ql=0,mu;function yR(e={}){let{isDisabled:t}=e;pR(()=>{if(!t)return ql++,ql===1&&(iw()?mu=xR():mu=wR()),()=>{ql--,ql===0&&mu()}},[t])}function wR(){return Pc(sw(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`))}function xR(){let e,t=0,n=m=>{e=lw(m.target),!(e===document.documentElement&&e===document.body)&&(t=m.changedTouches[0].pageY)},r=m=>{if(!e||e===document.documentElement||e===document.body){m.preventDefault();return}let h=m.changedTouches[0].pageY,w=e.scrollTop,C=e.scrollHeight-e.clientHeight;C!==0&&((w<=0&&h>t||w>=C&&h{let h=m.target;Tc(h)&&h!==document.activeElement&&(m.preventDefault(),h.style.transform="translateY(-2000px)",h.focus(),requestAnimationFrame(()=>{h.style.transform=""}))},i=m=>{let h=m.target;Tc(h)&&(h.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{h.style.transform="",pu&&(pu.height{Rm(h)}):pu.addEventListener("resize",()=>Rm(h),{once:!0}))}))},l=()=>{window.scrollTo(0,0)},a=window.pageXOffset,f=window.pageYOffset,u=Pc(sw(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let p=Pc(vi(document,"touchstart",n,{passive:!1,capture:!0}),vi(document,"touchmove",r,{passive:!1,capture:!0}),vi(document,"touchend",o,{passive:!1,capture:!0}),vi(document,"focus",i,!0),vi(window,"scroll",l));return()=>{u(),p(),window.scrollTo(a,f)}}function sw(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function vi(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Rm(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=lw(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,i=e.getBoundingClientRect().bottom;const l=n.getBoundingClientRect().bottom;i>l&&(n.scrollTop+=o-r)}e=n.parentElement}}function Tc(e){return e instanceof HTMLInputElement&&!gR.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function SR(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ER(...e){return t=>e.forEach(n=>SR(n,t))}function aw(...e){return v.useCallback(ER(...e),e)}let gi=null;function bR({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:i}){const[l,a]=Q.useState(()=>typeof window<"u"?window.location.href:""),f=Q.useRef(0),u=Q.useCallback(()=>{if(gi===null&&e&&!i){gi={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:m,innerHeight:h}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-f.current}px`,left:`${-m}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const w=h-window.innerHeight;w&&f.current>=h&&(document.body.style.top=`${-(f.current+w)}px`)}),300)}},[e]),p=Q.useCallback(()=>{if(gi!==null&&!i){const m=-parseInt(document.body.style.top,10),h=-parseInt(document.body.style.left,10);Object.assign(document.body.style,gi),window.requestAnimationFrame(()=>{if(o&&l!==window.location.href){a(window.location.href);return}window.scrollTo(h,m)}),gi=null}},[l]);return Q.useEffect(()=>{function m(){f.current=window.scrollY}return m(),window.addEventListener("scroll",m),()=>{window.removeEventListener("scroll",m)}},[]),Q.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&u(),t||window.setTimeout(()=>{p()},500)):p())},[e,r,l,t,n,u,p]),{restorePositionSetting:p}}const uw=new WeakMap;function He(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([o,i])=>{if(o.startsWith("--")){e.style.setProperty(o,i);return}r[o]=e.style[o],e.style[o]=i}),!n&&uw.set(e,r)}function Gl(e,t){if(!e||!(e instanceof HTMLElement))return;let n=uw.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([r,o])=>{e.style[r]=o}))}const ot=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Kl(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[ot(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[ot(t)?5:4]):null)}function CR(e){return 8*(Math.log(e+1)-2)}const Ae={DURATION:.5,EASE:[.32,.72,0,1]},cw=.4;function fw(e){const t=Q.useRef(e);return Q.useEffect(()=>{t.current=e}),Q.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function _R({defaultProp:e,onChange:t}){const n=Q.useState(e),[r]=n,o=Q.useRef(r),i=fw(t);return Q.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function kR({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=_R({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,a=fw(n),f=Q.useCallback(u=>{if(i){const m=typeof u=="function"?u(e):u;m!==e&&a(m)}else o(u)},[i,e,o,a]);return[l,f]}function RR({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:i,onSnapPointChange:l,direction:a="bottom"}){const[f,u]=kR({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),p=Q.useMemo(()=>f===(n==null?void 0:n[n.length-1])||null,[n,f]),m=n&&n.length>0&&(i||i===0)&&!Number.isNaN(i)&&n[i]===f||!n,h=Q.useMemo(()=>n==null?void 0:n.findIndex(b=>b===f),[n,f]),w=Q.useMemo(()=>{var b;return(b=n==null?void 0:n.map(_=>{const P=typeof window<"u",A=typeof _=="string";let T=0;if(A&&(T=parseInt(_,10)),ot(a)){const I=A?T:P?_*window.innerHeight:0;return P?a==="bottom"?window.innerHeight-I:-window.innerHeight+I:I}const O=A?T:P?_*window.innerWidth:0;return P?a==="right"?window.innerWidth-O:-window.innerWidth+O:O}))!=null?b:[]},[n]),C=Q.useMemo(()=>h!==null?w==null?void 0:w[h]:null,[w,h]),E=Q.useCallback(b=>{var _;const P=(_=w==null?void 0:w.findIndex(A=>A===b))!=null?_:null;l(P),He(r.current,{transition:`transform ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,transform:ot(a)?`translate3d(0, ${b}px, 0)`:`translate3d(${b}px, 0, 0)`}),w&&P!==w.length-1&&P!==i?He(o.current,{transition:`opacity ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,opacity:"0"}):He(o.current,{transition:`opacity ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,opacity:"1"}),u(P!==null?n==null?void 0:n[P]:null)},[r.current,n,w,i,o,u]);Q.useEffect(()=>{if(f||e){var b;const _=(b=n==null?void 0:n.findIndex(P=>P===e||P===f))!=null?b:-1;w&&_!==-1&&typeof w[_]=="number"&&E(w[_])}},[f,e,n,w,E]);function R({draggedDistance:b,closeDrawer:_,velocity:P,dismissible:A}){if(i===void 0)return;const T=a==="bottom"||a==="right"?(C??0)-b:(C??0)+b,O=h===i-1,I=h===0,j=b>0;if(O&&He(o.current,{transition:`opacity ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`}),P>2&&!j){A?_():E(w[0]);return}if(P>2&&j&&w&&n){E(w[n.length-1]);return}const $=w==null?void 0:w.reduce((F,W)=>typeof F!="number"||typeof W!="number"?F:Math.abs(W-T)cw&&Math.abs(b)0&&p){E(w[n.length-1]);return}if(I&&F<0&&A&&_(),h===null)return;E(w[h+F]);return}E($)}function y({draggedDistance:b}){if(C===null)return;const _=a==="bottom"||a==="right"?C-b:C+b;(a==="bottom"||a==="right")&&_w[w.length-1]||He(r.current,{transform:ot(a)?`translate3d(0, ${_}px, 0)`:`translate3d(${_}px, 0, 0)`})}function g(b,_){if(!n||typeof h!="number"||!w||i===void 0)return null;const P=h===i-1;if(h>=i&&_)return 0;if(P&&!_)return 1;if(!m&&!P)return null;const T=P?h+1:h-1,O=P?w[T]-w[T-1]:w[T+1]-w[T],I=b/Math.abs(O);return P?1-I:I}return{isLastSnapPoint:p,activeSnapPoint:f,shouldFade:m,getPercentageDragged:g,setActiveSnapPoint:u,activeSnapPointIndex:h,onRelease:R,onDrag:y,snapPointsOffset:w}}const PR=.25,TR=100,Pm=8,Ar=16,Tm=26,hu="vaul-dragging";function dw({open:e,onOpenChange:t,children:n,shouldScaleBackground:r,onDrag:o,onRelease:i,snapPoints:l,nested:a=!1,setBackgroundColorOnScale:f=!0,closeThreshold:u=PR,scrollLockTimeout:p=TR,dismissible:m=!0,handleOnly:h=!1,fadeFromIndex:w=l&&l.length-1,activeSnapPoint:C,setActiveSnapPoint:E,fixed:R,modal:y=!0,onClose:g,noBodyStyles:b,direction:_="bottom",preventScrollRestoration:P=!0,disablePreventScroll:A=!1}){var T;const[O=!1,I]=Q.useState(!1),[j,$]=Q.useState(!1),[U,F]=Q.useState(!1),[W,Z]=Q.useState(!1),[le,ne]=Q.useState(!1),[z,V]=Q.useState(!1),ee=Q.useRef(null),se=Q.useRef(null),ue=Q.useRef(null),qe=Q.useRef(null),ve=Q.useRef(null),Xe=Q.useRef(!1),_e=Q.useRef(null),J=Q.useRef(0),ye=Q.useRef(!1),Ie=Q.useRef(0),K=Q.useRef(null),ge=Q.useRef(((T=K.current)==null?void 0:T.getBoundingClientRect().height)||0),de=Q.useRef(0),Y=Q.useCallback(ie=>{l&&ie===Tt.length-1&&(se.current=new Date)},[]),{activeSnapPoint:me,activeSnapPointIndex:ut,setActiveSnapPoint:Je,onRelease:tt,snapPointsOffset:Tt,onDrag:ke,shouldFade:rn,getPercentageDragged:Jr}=RR({snapPoints:l,activeSnapPointProp:C,setActiveSnapPointProp:E,drawerRef:K,fadeFromIndex:w,overlayRef:ee,onSnapPointChange:Y,direction:_});yR({isDisabled:!O||le||!y||z||!j||A});const{restorePositionSetting:Lt}=bR({isOpen:O,modal:y,nested:a,hasBeenOpened:j,preventScrollRestoration:P,noBodyStyles:b});function yn(){return(window.innerWidth-Tm)/window.innerWidth}function G(ie){var fe;!m&&!l||K.current&&!K.current.contains(ie.target)||(ge.current=((fe=K.current)==null?void 0:fe.getBoundingClientRect().height)||0,ne(!0),ue.current=new Date,iw()&&window.addEventListener("touchend",()=>Xe.current=!1,{once:!0}),ie.target.setPointerCapture(ie.pointerId),J.current=ot(_)?ie.clientY:ie.clientX)}function oe(ie,fe){var Re;let q=ie;const De=(Re=window.getSelection())==null?void 0:Re.toString(),Be=K.current?Kl(K.current,_):null,Et=new Date;if(q.hasAttribute("data-vaul-no-drag")||q.closest("[data-vaul-no-drag]"))return!1;if(_==="right"||_==="left")return!0;if(se.current&&Et.getTime()-se.current.getTime()<500)return!1;if(Be!==null&&(_==="bottom"?Be>0:Be<0))return!0;if(De&&De.length>0)return!1;if(ve.current&&Et.getTime()-ve.current.getTime()q.clientHeight){if(q.scrollTop!==0)return ve.current=new Date,!1;if(q.getAttribute("role")==="dialog")return!0}q=q.parentNode}return!0}function Le(ie){if(K.current&&le){const fe=_==="bottom"||_==="right"?1:-1,Re=(J.current-(ot(_)?ie.clientY:ie.clientX))*fe,q=Re>0,De=l&&!m&&!q;if(De&&ut===0)return;const Be=Math.abs(Re),Et=document.querySelector("[vaul-drawer-wrapper]");let vt=Be/ge.current;const wn=Jr(Be,q);if(wn!==null&&(vt=wn),De&&vt>=1||!Xe.current&&!oe(ie.target,q))return;if(K.current.classList.add(hu),Xe.current=!0,He(K.current,{transition:"none"}),He(ee.current,{transition:"none"}),l&&ke({draggedDistance:Re}),q&&!l){const xn=CR(Re),B=Math.min(xn*-1,0)*fe;He(K.current,{transform:ot(_)?`translate3d(0, ${B}px, 0)`:`translate3d(${B}px, 0, 0)`});return}const Ft=1-vt;if((rn||w&&ut===w-1)&&(o==null||o(ie,vt),He(ee.current,{opacity:`${Ft}`,transition:"none"},!0)),Et&&ee.current&&r){const xn=Math.min(yn()+vt*(1-yn()),1),B=8-vt*8,eo=Math.max(0,14-vt*14);He(Et,{borderRadius:`${B}px`,transform:ot(_)?`scale(${xn}) translate3d(0, ${eo}px, 0)`:`scale(${xn}) translate3d(${eo}px, 0, 0)`,transition:"none"},!0)}if(!l){const xn=Be*fe;He(K.current,{transform:ot(_)?`translate3d(0, ${xn}px, 0)`:`translate3d(${xn}px, 0, 0)`})}}}Q.useEffect(()=>()=>{on(!1),Lt()},[]),Q.useEffect(()=>{var ie;function fe(){if(!K.current)return;const Re=document.activeElement;if(Tc(Re)||ye.current){var q;const De=((q=window.visualViewport)==null?void 0:q.height)||0;let Be=window.innerHeight-De;const Et=K.current.getBoundingClientRect().height||0;de.current||(de.current=Et);const vt=K.current.getBoundingClientRect().top;if(Math.abs(Ie.current-Be)>60&&(ye.current=!ye.current),l&&l.length>0&&Tt&&ut){const wn=Tt[ut]||0;Be+=wn}if(Ie.current=Be,Et>De||ye.current){const wn=K.current.getBoundingClientRect().height;let Ft=wn;wn>De&&(Ft=De-Tm),R?K.current.style.height=`${wn-Math.max(Be,0)}px`:K.current.style.height=`${Math.max(Ft,De-vt)}px`}else K.current.style.height=`${de.current}px`;l&&l.length>0&&!ye.current?K.current.style.bottom="0px":K.current.style.bottom=`${Math.max(Be,0)}px`}}return(ie=window.visualViewport)==null||ie.addEventListener("resize",fe),()=>{var Re;return(Re=window.visualViewport)==null?void 0:Re.removeEventListener("resize",fe)}},[ut,l,Tt]);function Pe(){K.current&&(Nt(),g==null||g(),He(K.current,{transform:ot(_)?`translate3d(0, ${_==="bottom"?"100%":"-100%"}, 0)`:`translate3d(${_==="right"?"100%":"-100%"}, 0, 0)`,transition:`transform ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`}),He(ee.current,{opacity:"0",transition:`opacity ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`}),on(!1),setTimeout(()=>{F(!1),I(!1)},300),setTimeout(()=>{l&&Je(l[0])},Ae.DURATION*1e3))}Q.useEffect(()=>{if(!O&&r){const ie=setTimeout(()=>{Gl(document.body)},200);return()=>clearTimeout(ie)}},[O,r]),Q.useLayoutEffect(()=>{e?(I(!0),$(!0)):Pe()},[e]),Q.useEffect(()=>{W&&(t==null||t(O))},[O]),Q.useEffect(()=>{Z(!0)},[]);function nt(){if(!K.current)return;const ie=document.querySelector("[vaul-drawer-wrapper]"),fe=Kl(K.current,_);He(K.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`}),He(ee.current,{transition:`opacity ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,opacity:"1"}),r&&fe&&fe>0&&O&&He(ie,{borderRadius:`${Pm}px`,overflow:"hidden",...ot(_)?{transform:`scale(${yn()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${yn()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Ae.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ae.EASE.join(",")})`},!0)}function Nt(){!le||!K.current||(K.current.classList.remove(hu),Xe.current=!1,ne(!1),qe.current=new Date)}function St(ie){if(!le||!K.current)return;K.current.classList.remove(hu),Xe.current=!1,ne(!1),qe.current=new Date;const fe=Kl(K.current,_);if(!oe(ie.target,!1)||!fe||Number.isNaN(fe)||ue.current===null)return;const Re=qe.current.getTime()-ue.current.getTime(),q=J.current-(ot(_)?ie.clientY:ie.clientX),De=Math.abs(q)/Re;if(De>.05&&(V(!0),setTimeout(()=>{V(!1)},200)),l){tt({draggedDistance:q*(_==="bottom"||_==="right"?1:-1),closeDrawer:Pe,velocity:De,dismissible:m}),i==null||i(ie,!0);return}if(_==="bottom"||_==="right"?q>0:q<0){nt(),i==null||i(ie,!0);return}if(De>cw){Pe(),i==null||i(ie,!1);return}var Be;const Et=Math.min((Be=K.current.getBoundingClientRect().height)!=null?Be:0,window.innerHeight);if(fe>=Et*u){Pe(),i==null||i(ie,!1);return}i==null||i(ie,!0),nt()}Q.useEffect(()=>{O&&(He(document.documentElement,{scrollBehavior:"auto"}),se.current=new Date,on(!0))},[O]),Q.useEffect(()=>{if(K.current&&U){var ie;const fe=K==null||(ie=K.current)==null?void 0:ie.querySelectorAll("*");fe==null||fe.forEach(Re=>{const q=Re;(q.scrollHeight>q.clientHeight||q.scrollWidth>q.clientWidth)&&q.classList.add("vaul-scrollable")})}},[U]);function on(ie){const fe=document.querySelector("[vaul-drawer-wrapper]");!fe||!r||(ie?(f&&(b||(He(document.body,{background:document.body.style.backgroundColor||document.body.style.background}),He(document.body,{background:"black"},!0))),He(fe,{borderRadius:`${Pm}px`,overflow:"hidden",...ot(_)?{transform:`scale(${yn()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${yn()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Ae.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ae.EASE.join(",")})`})):(Gl(fe,"overflow"),Gl(fe,"transform"),Gl(fe,"borderRadius"),He(fe,{transitionProperty:"transform, border-radius",transitionDuration:`${Ae.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ae.EASE.join(",")})`})))}function Yn(ie){const fe=ie?(window.innerWidth-Ar)/window.innerWidth:1,Re=ie?-Ar:0;_e.current&&window.clearTimeout(_e.current),He(K.current,{transition:`transform ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,transform:`scale(${fe}) translate3d(0, ${Re}px, 0)`}),!ie&&K.current&&(_e.current=setTimeout(()=>{const q=Kl(K.current,_);He(K.current,{transition:"none",transform:ot(_)?`translate3d(0, ${q}px, 0)`:`translate3d(${q}px, 0, 0)`})},500))}function Xn(ie,fe){if(fe<0)return;const Re=ot(_)?window.innerHeight:window.innerWidth,q=(Re-Ar)/Re,De=q+fe*(1-q),Be=-Ar+fe*Ar;He(K.current,{transform:ot(_)?`scale(${De}) translate3d(0, ${Be}px, 0)`:`scale(${De}) translate3d(${Be}px, 0, 0)`,transition:"none"})}function Zn(ie,fe){const Re=ot(_)?window.innerHeight:window.innerWidth,q=fe?(Re-Ar)/Re:1,De=fe?-Ar:0;fe&&He(K.current,{transition:`transform ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,transform:ot(_)?`scale(${q}) translate3d(0, ${De}px, 0)`:`scale(${q}) translate3d(${De}px, 0, 0)`})}return Q.createElement(_0,{modal:y,onOpenChange:ie=>{if(e!==void 0){t==null||t(ie);return}ie?($(!0),I(ie)):Pe()},open:O},Q.createElement(ow.Provider,{value:{visible:U,activeSnapPoint:me,snapPoints:l,setActiveSnapPoint:Je,drawerRef:K,overlayRef:ee,scaleBackground:on,onOpenChange:t,onPress:G,setVisible:F,onRelease:St,onDrag:Le,dismissible:m,handleOnly:h,isOpen:O,isDragging:le,shouldFade:rn,closeDrawer:Pe,onNestedDrag:Xn,onNestedOpenChange:Yn,onNestedRelease:Zn,keyboardIsOpen:ye,openProp:e,modal:y,snapPointsOffset:Tt,direction:_}},n))}const NR=250,AR=120,pw=Q.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{visible:o,closeDrawer:i,isDragging:l,snapPoints:a,activeSnapPoint:f,setActiveSnapPoint:u,dismissible:p,handleOnly:m,onPress:h,onDrag:w}=ya(),C=Q.useRef(null),E=Q.useRef(!1);function R(){if(E.current){b();return}window.setTimeout(()=>{y()},AR)}function y(){if(l||e||E.current){b();return}if(b(),(!a||a.length===0)&&p){i();return}if(f===a[a.length-1]&&p){i();return}const P=a.findIndex(T=>T===f);if(P===-1)return;const A=a[P+1];u(A)}function g(){C.current=window.setTimeout(()=>{E.current=!0},NR)}function b(){window.clearTimeout(C.current),E.current=!1}return Q.createElement("div",{onClick:R,onDoubleClick:()=>{E.current=!0,i()},onPointerCancel:b,onPointerDown:_=>{m&&h(_),g()},onPointerMove:_=>{m&&w(_)},ref:r,"vaul-drawer-visible":o?"true":"false","vaul-handle":"","aria-hidden":"true",...n},Q.createElement("span",{"vaul-handle-hitarea":"","aria-hidden":"true"},t))});pw.displayName="Drawer.Handle";const mw=Q.forwardRef(function({children:e,...t},n){const{overlayRef:r,snapPoints:o,onRelease:i,shouldFade:l,isOpen:a,visible:f}=ya(),u=aw(n,r),p=o&&o.length>0;return Q.createElement(P0,{onMouseUp:i,ref:u,"vaul-drawer-visible":f?"true":"false","vaul-overlay":"","vaul-snap-points":a&&p?"true":"false","vaul-snap-points-overlay":a&&l?"true":"false",...t})});mw.displayName="Drawer.Overlay";const hw=Q.forwardRef(function({onOpenAutoFocus:e,onPointerDownOutside:t,onAnimationEnd:n,style:r,...o},i){const{drawerRef:l,onPress:a,onRelease:f,onDrag:u,dismissible:p,keyboardIsOpen:m,snapPointsOffset:h,visible:w,closeDrawer:C,modal:E,openProp:R,onOpenChange:y,setVisible:g,handleOnly:b,direction:_}=ya(),P=aw(i,l),A=Q.useRef(null),T=Q.useRef(!1),O=(I,j,$=0)=>{if(T.current)return!0;const U=Math.abs(I.y),F=Math.abs(I.x),W=F>U,Z=["bottom","right"].includes(j)?1:-1;if(j==="left"||j==="right"){if(!(I.x*Z<0)&&F>=0&&F<=$)return W}else if(!(I.y*Z<0)&&U>=0&&U<=$)return!W;return T.current=!0,!0};return Q.useEffect(()=>{g(!0)},[]),Q.createElement(T0,{"vaul-drawer":"","vaul-drawer-direction":_,"vaul-drawer-visible":w?"true":"false",...o,ref:P,style:h&&h.length>0?{"--snap-point-height":`${h[0]}px`,...r}:r,onOpenAutoFocus:I=>{if(e)e(I);else{var j;I.preventDefault(),(j=l.current)==null||j.focus()}},onPointerDown:I=>{b||(o.onPointerDown==null||o.onPointerDown.call(o,I),A.current={x:I.clientX,y:I.clientY},a(I))},onPointerDownOutside:I=>{if(t==null||t(I),!E||I.defaultPrevented){I.preventDefault();return}m.current&&(m.current=!1),I.preventDefault(),y==null||y(!1),!(!p||R!==void 0)&&C()},onFocusOutside:I=>{if(!E){I.preventDefault();return}},onEscapeKeyDown:I=>{if(!E){I.preventDefault();return}},onPointerMove:I=>{if(b||(o.onPointerMove==null||o.onPointerMove.call(o,I),!A.current))return;const j=I.clientY-A.current.y,$=I.clientX-A.current.x,U=I.pointerType==="touch"?10:2;O({x:$,y:j},_,U)?u(I):(Math.abs($)>U||Math.abs(j)>U)&&(A.current=null)},onPointerUp:I=>{o.onPointerUp==null||o.onPointerUp.call(o,I),A.current=null,T.current=!1,f(I)}})});hw.displayName="Drawer.Content";function DR({onDrag:e,onOpenChange:t,...n}){const{onNestedDrag:r,onNestedOpenChange:o,onNestedRelease:i}=ya();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return Q.createElement(dw,{nested:!0,onClose:()=>{o(!1)},onDrag:(l,a)=>{r(l,a),e==null||e(l,a)},onOpenChange:l=>{l&&o(l),t==null||t(l)},onRelease:i,...n})}const gn={Root:dw,NestedRoot:DR,Content:hw,Handle:pw,Overlay:mw,Trigger:k0,Portal:R0,Close:Xf,Title:N0,Description:A0},vw=({shouldScaleBackground:e=!0,...t})=>x.jsx(gn.Root,{shouldScaleBackground:e,...t});vw.displayName="Drawer";const OR=gn.Trigger,jR=gn.Portal,MR=gn.Close,gw=v.forwardRef(({className:e,...t},n)=>x.jsx(gn.Overlay,{ref:n,className:Se("fixed inset-0 z-50 bg-black/80",e),...t}));gw.displayName=gn.Overlay.displayName;const yw=v.forwardRef(({className:e,children:t,...n},r)=>x.jsxs(jR,{children:[x.jsx(gw,{}),x.jsxs(gn.Content,{ref:r,className:Se("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...n,children:[x.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));yw.displayName="DrawerContent";const ww=({className:e,...t})=>x.jsx("div",{className:Se("grid gap-1.5 p-4 text-center sm:text-left",e),...t});ww.displayName="DrawerHeader";const xw=({className:e,...t})=>x.jsx("div",{className:Se("mt-auto flex flex-col gap-2 p-4",e),...t});xw.displayName="DrawerFooter";const Sw=v.forwardRef(({className:e,...t},n)=>x.jsx(gn.Title,{ref:n,className:Se("text-lg font-semibold leading-none tracking-tight",e),...t}));Sw.displayName=gn.Title.displayName;const Ew=v.forwardRef(({className:e,...t},n)=>x.jsx(gn.Description,{ref:n,className:Se("text-sm text-muted-foreground",e),...t}));Ew.displayName=gn.Description.displayName;function IR(){const{setRowPerPageOrAuto:e,selectedTable:t,setIsCustomQuery:n,db:r}=Bo(),[o,i]=v.useState(30),[l,a]=v.useState(!1),f=h=>{const w=Number(h.target.value);isNaN(w)||(i(w),a(!1))},u=()=>{a(h=>!h)},p=()=>{n(!1),e(l?"auto":o)},m=(h,w,C)=>x.jsx(Zt,{variant:"outline",onClick:h,className:C,children:x.jsx("span",{className:"ml-2",children:w})});return x.jsxs(vw,{children:[x.jsx(OR,{asChild:!0,children:x.jsx(Zt,{variant:"outline",children:x.jsx(gb,{className:"h-5 w-5"})})}),x.jsx(yw,{children:x.jsxs("div",{className:"mx-auto w-full max-w-md",children:[x.jsxs(ww,{children:[x.jsx(Sw,{children:"Settings"}),x.jsx(Ew,{children:"Personalize your site experience here."})]}),x.jsxs("div",{className:"p-4 pb-0 flex flex-col gap-4",children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Rows Per Page"}),x.jsxs("div",{className:"border rounded p-2 flex gap-1 justify-center items-center",children:[x.jsx(Rf,{min:"3",max:"500",value:o,onChange:f,disabled:l,placeholder:"30",type:"number",name:"rowsPerPage"}),x.jsx("span",{className:"text-sm text-muted-foreground h-full text-center",children:"OR"}),x.jsx(Zt,{onClick:u,variant:"outline",className:l?"border border-primary":void 0,children:"Auto calculate"})]}),x.jsx(Zt,{className:"w-full mt-2",onClick:p,variant:"outline",children:x.jsx("span",{children:"Save"})})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Exports Settings"}),r&&x.jsxs("div",{className:"border rounded p-2 flex flex-col gap-1",children:[m(()=>dE(r),"Export as SQLite"),m(()=>pE(r,parseInt(t)),"Export selected table as CSV"),m(()=>mE(r),"Export all tables as CSV")]})]})]}),x.jsx(xw,{children:x.jsx(MR,{asChild:!0,children:x.jsx(Zt,{variant:"outline",children:"Close"})})})]})})]})}function LR(){const{db:e}=Bo();return x.jsxs("footer",{className:"flex items-center justify-between my-1 p-4 border rounded",children:[x.jsxs("div",{children:[x.jsx("p",{className:"hidden sm:block text-xs",children:"No file will be uploaded to server. using JavaScript, sql.js"}),x.jsx("p",{className:"block sm:hidden text-xs",children:"No file uploads to server."}),x.jsxs("a",{href:"https://github.com/vwh/sqlite-viewer",target:"_blank",className:"text-sm text-link hover:underline flex gap-1 items-center",title:"Star on GitHub",children:[x.jsx(cb,{className:"h-4 w-4"}),x.jsx("span",{children:"Star us on GitHub"})]})]}),x.jsxs("div",{className:"flex gap-1",children:[x.jsx(fR,{}),e&&x.jsx(IR,{})]})]})}vu.createRoot(document.getElementById("root")).render(x.jsx(Q.StrictMode,{children:x.jsxs("main",{className:"container mx-auto p-4",children:[x.jsx(cR,{}),x.jsx(LR,{})]})})); +For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return v.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},iR=O0,lR=j0,W0=M0,V0=I0,q0=H0,G0=B0,K0=F0,Q0=$0;const sR=iR,aR=lR,Y0=v.forwardRef(({className:e,...t},n)=>x.jsx(W0,{className:Se("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Y0.displayName=W0.displayName;const X0=v.forwardRef(({className:e,...t},n)=>x.jsxs(aR,{children:[x.jsx(Y0,{}),x.jsx(V0,{ref:n,className:Se("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));X0.displayName=V0.displayName;const Z0=({className:e,...t})=>x.jsx("div",{className:Se("flex flex-col space-y-2 text-left",e),...t});Z0.displayName="AlertDialogHeader";const J0=({className:e,...t})=>x.jsx("div",{className:Se("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});J0.displayName="AlertDialogFooter";const ew=v.forwardRef(({className:e,...t},n)=>x.jsx(K0,{ref:n,className:Se("text-lg font-semibold",e),...t}));ew.displayName=K0.displayName;const tw=v.forwardRef(({className:e,...t},n)=>x.jsx(Q0,{ref:n,className:Se("text-sm",e),...t}));tw.displayName=Q0.displayName;const nw=v.forwardRef(({className:e,...t},n)=>x.jsx(q0,{ref:n,className:Se(Pf(),e),...t}));nw.displayName=q0.displayName;const rw=v.forwardRef(({className:e,...t},n)=>x.jsx(G0,{ref:n,className:Se(Pf({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));rw.displayName=G0.displayName;function uR({showDialog:e,setShowDialog:t,fn:n}){return x.jsx(sR,{open:e,onOpenChange:t,children:x.jsxs(X0,{children:[x.jsxs(Z0,{children:[x.jsx(ew,{children:"Retry using a proxy?"}),x.jsx(tw,{children:"Failed to load the database from the provided URL due to possible CORS restrictions."})]}),x.jsx("div",{className:"text-sm font-semibold",children:"Using the proxy may expose your database to corsproxy.io services."}),x.jsxs(J0,{children:[x.jsx(rw,{onClick:()=>t(!1),children:"Cancel"}),x.jsx(nw,{onClick:n,children:"Confirm"})]})]})})}function cR(){const{db:e,tables:t,isLoading:n,loadDatabase:r}=Bo(),[o,i]=v.useState(null),[l,a]=v.useState(!1),[f,u]=v.useState(null),[p,m]=v.useState(!1),h=v.useRef(!1),w=async(b,R=!1)=>{try{m(!0);const y=R?`https://corsproxy.io/?${b}`:b,g=await fetch(y);if(!g.ok)i(`URL not found or invalid: ( ${g.status} )`);else{const E=await g.blob(),_=new File([E],"database.sqlite");await r(_),i(null)}}catch(y){y instanceof Error&&(R?i(`Error fetching database from URL (with proxy): ${b} - ${y.message}`):(u(b),a(!0)))}finally{m(!1)}};v.useEffect(()=>{if(h.current)return;const b=new URLSearchParams(window.location.search),R=decodeURIComponent(b.get("url")||"");R&&(w(R),h.current=!0)},[]);const C=()=>{f&&(w(f,!0),a(!1))};return x.jsxs("div",{className:"flex flex-col gap-3",children:[!e&&x.jsx($k,{}),x.jsx(zk,{}),n?x.jsx(Ec,{children:"Loading SQLite file"}):p?x.jsx(Ec,{children:"Fetching SQLite file"}):null,o&&!e&&x.jsx(Sc,{children:o}),!n&&e&&(t.length>0?x.jsx(I_,{}):x.jsx(Sc,{children:"Your database is empty, no tables found"})),x.jsx(uR,{showDialog:l,setShowDialog:a,fn:C})]})}function fR(){const[e,t]=v.useState(!1),n=v.useCallback(r=>{t(r),document.body.classList.toggle("dark",r),localStorage.setItem("darkMode",r.toString())},[]);return v.useEffect(()=>{const r=window.matchMedia("(prefers-color-scheme: dark)").matches,o=localStorage.getItem("darkMode");n(o!==null?o==="true":r);const i=a=>{n(a.matches)},l=window.matchMedia("(prefers-color-scheme: dark)");return l.addEventListener("change",i),()=>{l.removeEventListener("change",i)}},[]),x.jsx(Zt,{title:e?"Enable light mode":"Enable dark mode",onClick:()=>{n(!e)},className:"relative",variant:"outline",children:e?x.jsx(yb,{className:"h-5 w-5"}):x.jsx(hb,{className:"h-5 w-5"})})}function dR(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const ow=Q.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,handleOnly:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{},direction:"bottom"}),ya=()=>{const e=Q.useContext(ow);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};dR("[vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1)}[vaul-drawer][vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[vaul-drawer][vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[vaul-drawer][vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[vaul-drawer][vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}.vaul-dragging .vaul-scrollable [vault-drawer-direction=top]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=bottom]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=left]{overflow-x:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=right]{overflow-x:hidden!important}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]::after{content:'';position:absolute;background:inherit;background-color:inherit}[vaul-drawer][vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[vaul-drawer][vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[vaul-handle]{display:block;position:relative;opacity:.8;margin-left:auto;margin-right:auto;height:5px;width:56px;border-radius:1rem;touch-action:pan-y;cursor:grab}[vaul-handle]:active,[vaul-handle]:hover{opacity:1}[vaul-handle]:active{cursor:grabbing}[vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay=true]):not([data-state=closed]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible=false]){opacity:1}@media (hover:hover) and (pointer:fine){[vaul-drawer]{user-select:none}}@media (pointer:fine){[vaul-handle-hitarea]:{width:100%;height:100%}}");const pR=typeof window<"u"?v.useLayoutEffect:v.useEffect;function Pc(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function mR(){return Zf(/^Mac/)}function hR(){return Zf(/^iPhone/)}function vR(){return Zf(/^iPad/)||mR()&&navigator.maxTouchPoints>1}function iw(){return hR()||vR()}function Zf(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const pu=typeof document<"u"&&window.visualViewport;function km(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function lw(e){for(km(e)&&(e=e.parentElement);e&&!km(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const gR=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ql=0,mu;function yR(e={}){let{isDisabled:t}=e;pR(()=>{if(!t)return ql++,ql===1&&(iw()?mu=xR():mu=wR()),()=>{ql--,ql===0&&mu()}},[t])}function wR(){return Pc(sw(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`))}function xR(){let e,t=0,n=m=>{e=lw(m.target),!(e===document.documentElement&&e===document.body)&&(t=m.changedTouches[0].pageY)},r=m=>{if(!e||e===document.documentElement||e===document.body){m.preventDefault();return}let h=m.changedTouches[0].pageY,w=e.scrollTop,C=e.scrollHeight-e.clientHeight;C!==0&&((w<=0&&h>t||w>=C&&h{let h=m.target;Nc(h)&&h!==document.activeElement&&(m.preventDefault(),h.style.transform="translateY(-2000px)",h.focus(),requestAnimationFrame(()=>{h.style.transform=""}))},i=m=>{let h=m.target;Nc(h)&&(h.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{h.style.transform="",pu&&(pu.height{Rm(h)}):pu.addEventListener("resize",()=>Rm(h),{once:!0}))}))},l=()=>{window.scrollTo(0,0)},a=window.pageXOffset,f=window.pageYOffset,u=Pc(sw(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let p=Pc(vi(document,"touchstart",n,{passive:!1,capture:!0}),vi(document,"touchmove",r,{passive:!1,capture:!0}),vi(document,"touchend",o,{passive:!1,capture:!0}),vi(document,"focus",i,!0),vi(window,"scroll",l));return()=>{u(),p(),window.scrollTo(a,f)}}function sw(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function vi(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Rm(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=lw(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,i=e.getBoundingClientRect().bottom;const l=n.getBoundingClientRect().bottom;i>l&&(n.scrollTop+=o-r)}e=n.parentElement}}function Nc(e){return e instanceof HTMLInputElement&&!gR.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function SR(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ER(...e){return t=>e.forEach(n=>SR(n,t))}function aw(...e){return v.useCallback(ER(...e),e)}let gi=null;function bR({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:i}){const[l,a]=Q.useState(()=>typeof window<"u"?window.location.href:""),f=Q.useRef(0),u=Q.useCallback(()=>{if(gi===null&&e&&!i){gi={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:m,innerHeight:h}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-f.current}px`,left:`${-m}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const w=h-window.innerHeight;w&&f.current>=h&&(document.body.style.top=`${-(f.current+w)}px`)}),300)}},[e]),p=Q.useCallback(()=>{if(gi!==null&&!i){const m=-parseInt(document.body.style.top,10),h=-parseInt(document.body.style.left,10);Object.assign(document.body.style,gi),window.requestAnimationFrame(()=>{if(o&&l!==window.location.href){a(window.location.href);return}window.scrollTo(h,m)}),gi=null}},[l]);return Q.useEffect(()=>{function m(){f.current=window.scrollY}return m(),window.addEventListener("scroll",m),()=>{window.removeEventListener("scroll",m)}},[]),Q.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&u(),t||window.setTimeout(()=>{p()},500)):p())},[e,r,l,t,n,u,p]),{restorePositionSetting:p}}const uw=new WeakMap;function He(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([o,i])=>{if(o.startsWith("--")){e.style.setProperty(o,i);return}r[o]=e.style[o],e.style[o]=i}),!n&&uw.set(e,r)}function Gl(e,t){if(!e||!(e instanceof HTMLElement))return;let n=uw.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([r,o])=>{e.style[r]=o}))}const ot=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Kl(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[ot(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[ot(t)?5:4]):null)}function CR(e){return 8*(Math.log(e+1)-2)}const Ae={DURATION:.5,EASE:[.32,.72,0,1]},cw=.4;function fw(e){const t=Q.useRef(e);return Q.useEffect(()=>{t.current=e}),Q.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function _R({defaultProp:e,onChange:t}){const n=Q.useState(e),[r]=n,o=Q.useRef(r),i=fw(t);return Q.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function kR({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=_R({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,a=fw(n),f=Q.useCallback(u=>{if(i){const m=typeof u=="function"?u(e):u;m!==e&&a(m)}else o(u)},[i,e,o,a]);return[l,f]}function RR({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:i,onSnapPointChange:l,direction:a="bottom"}){const[f,u]=kR({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),p=Q.useMemo(()=>f===(n==null?void 0:n[n.length-1])||null,[n,f]),m=n&&n.length>0&&(i||i===0)&&!Number.isNaN(i)&&n[i]===f||!n,h=Q.useMemo(()=>n==null?void 0:n.findIndex(E=>E===f),[n,f]),w=Q.useMemo(()=>{var E;return(E=n==null?void 0:n.map(_=>{const P=typeof window<"u",A=typeof _=="string";let N=0;if(A&&(N=parseInt(_,10)),ot(a)){const I=A?N:P?_*window.innerHeight:0;return P?a==="bottom"?window.innerHeight-I:-window.innerHeight+I:I}const O=A?N:P?_*window.innerWidth:0;return P?a==="right"?window.innerWidth-O:-window.innerWidth+O:O}))!=null?E:[]},[n]),C=Q.useMemo(()=>h!==null?w==null?void 0:w[h]:null,[w,h]),b=Q.useCallback(E=>{var _;const P=(_=w==null?void 0:w.findIndex(A=>A===E))!=null?_:null;l(P),He(r.current,{transition:`transform ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,transform:ot(a)?`translate3d(0, ${E}px, 0)`:`translate3d(${E}px, 0, 0)`}),w&&P!==w.length-1&&P!==i?He(o.current,{transition:`opacity ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,opacity:"0"}):He(o.current,{transition:`opacity ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,opacity:"1"}),u(P!==null?n==null?void 0:n[P]:null)},[r.current,n,w,i,o,u]);Q.useEffect(()=>{if(f||e){var E;const _=(E=n==null?void 0:n.findIndex(P=>P===e||P===f))!=null?E:-1;w&&_!==-1&&typeof w[_]=="number"&&b(w[_])}},[f,e,n,w,b]);function R({draggedDistance:E,closeDrawer:_,velocity:P,dismissible:A}){if(i===void 0)return;const N=a==="bottom"||a==="right"?(C??0)-E:(C??0)+E,O=h===i-1,I=h===0,j=E>0;if(O&&He(o.current,{transition:`opacity ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`}),P>2&&!j){A?_():b(w[0]);return}if(P>2&&j&&w&&n){b(w[n.length-1]);return}const H=w==null?void 0:w.reduce((F,W)=>typeof F!="number"||typeof W!="number"?F:Math.abs(W-N)cw&&Math.abs(E)0&&p){b(w[n.length-1]);return}if(I&&F<0&&A&&_(),h===null)return;b(w[h+F]);return}b(H)}function y({draggedDistance:E}){if(C===null)return;const _=a==="bottom"||a==="right"?C-E:C+E;(a==="bottom"||a==="right")&&_w[w.length-1]||He(r.current,{transform:ot(a)?`translate3d(0, ${_}px, 0)`:`translate3d(${_}px, 0, 0)`})}function g(E,_){if(!n||typeof h!="number"||!w||i===void 0)return null;const P=h===i-1;if(h>=i&&_)return 0;if(P&&!_)return 1;if(!m&&!P)return null;const N=P?h+1:h-1,O=P?w[N]-w[N-1]:w[N+1]-w[N],I=E/Math.abs(O);return P?1-I:I}return{isLastSnapPoint:p,activeSnapPoint:f,shouldFade:m,getPercentageDragged:g,setActiveSnapPoint:u,activeSnapPointIndex:h,onRelease:R,onDrag:y,snapPointsOffset:w}}const PR=.25,NR=100,Pm=8,Ar=16,Nm=26,hu="vaul-dragging";function dw({open:e,onOpenChange:t,children:n,shouldScaleBackground:r,onDrag:o,onRelease:i,snapPoints:l,nested:a=!1,setBackgroundColorOnScale:f=!0,closeThreshold:u=PR,scrollLockTimeout:p=NR,dismissible:m=!0,handleOnly:h=!1,fadeFromIndex:w=l&&l.length-1,activeSnapPoint:C,setActiveSnapPoint:b,fixed:R,modal:y=!0,onClose:g,noBodyStyles:E,direction:_="bottom",preventScrollRestoration:P=!0,disablePreventScroll:A=!1}){var N;const[O=!1,I]=Q.useState(!1),[j,H]=Q.useState(!1),[U,F]=Q.useState(!1),[W,Z]=Q.useState(!1),[le,ne]=Q.useState(!1),[z,V]=Q.useState(!1),ee=Q.useRef(null),se=Q.useRef(null),ue=Q.useRef(null),qe=Q.useRef(null),ve=Q.useRef(null),Xe=Q.useRef(!1),_e=Q.useRef(null),J=Q.useRef(0),ye=Q.useRef(!1),Ie=Q.useRef(0),K=Q.useRef(null),ge=Q.useRef(((N=K.current)==null?void 0:N.getBoundingClientRect().height)||0),de=Q.useRef(0),Y=Q.useCallback(ie=>{l&&ie===Nt.length-1&&(se.current=new Date)},[]),{activeSnapPoint:me,activeSnapPointIndex:ut,setActiveSnapPoint:Je,onRelease:tt,snapPointsOffset:Nt,onDrag:ke,shouldFade:rn,getPercentageDragged:Jr}=RR({snapPoints:l,activeSnapPointProp:C,setActiveSnapPointProp:b,drawerRef:K,fadeFromIndex:w,overlayRef:ee,onSnapPointChange:Y,direction:_});yR({isDisabled:!O||le||!y||z||!j||A});const{restorePositionSetting:Lt}=bR({isOpen:O,modal:y,nested:a,hasBeenOpened:j,preventScrollRestoration:P,noBodyStyles:E});function yn(){return(window.innerWidth-Nm)/window.innerWidth}function G(ie){var fe;!m&&!l||K.current&&!K.current.contains(ie.target)||(ge.current=((fe=K.current)==null?void 0:fe.getBoundingClientRect().height)||0,ne(!0),ue.current=new Date,iw()&&window.addEventListener("touchend",()=>Xe.current=!1,{once:!0}),ie.target.setPointerCapture(ie.pointerId),J.current=ot(_)?ie.clientY:ie.clientX)}function oe(ie,fe){var Re;let q=ie;const De=(Re=window.getSelection())==null?void 0:Re.toString(),Be=K.current?Kl(K.current,_):null,Et=new Date;if(q.hasAttribute("data-vaul-no-drag")||q.closest("[data-vaul-no-drag]"))return!1;if(_==="right"||_==="left")return!0;if(se.current&&Et.getTime()-se.current.getTime()<500)return!1;if(Be!==null&&(_==="bottom"?Be>0:Be<0))return!0;if(De&&De.length>0)return!1;if(ve.current&&Et.getTime()-ve.current.getTime()q.clientHeight){if(q.scrollTop!==0)return ve.current=new Date,!1;if(q.getAttribute("role")==="dialog")return!0}q=q.parentNode}return!0}function Le(ie){if(K.current&&le){const fe=_==="bottom"||_==="right"?1:-1,Re=(J.current-(ot(_)?ie.clientY:ie.clientX))*fe,q=Re>0,De=l&&!m&&!q;if(De&&ut===0)return;const Be=Math.abs(Re),Et=document.querySelector("[vaul-drawer-wrapper]");let vt=Be/ge.current;const wn=Jr(Be,q);if(wn!==null&&(vt=wn),De&&vt>=1||!Xe.current&&!oe(ie.target,q))return;if(K.current.classList.add(hu),Xe.current=!0,He(K.current,{transition:"none"}),He(ee.current,{transition:"none"}),l&&ke({draggedDistance:Re}),q&&!l){const xn=CR(Re),B=Math.min(xn*-1,0)*fe;He(K.current,{transform:ot(_)?`translate3d(0, ${B}px, 0)`:`translate3d(${B}px, 0, 0)`});return}const Ft=1-vt;if((rn||w&&ut===w-1)&&(o==null||o(ie,vt),He(ee.current,{opacity:`${Ft}`,transition:"none"},!0)),Et&&ee.current&&r){const xn=Math.min(yn()+vt*(1-yn()),1),B=8-vt*8,eo=Math.max(0,14-vt*14);He(Et,{borderRadius:`${B}px`,transform:ot(_)?`scale(${xn}) translate3d(0, ${eo}px, 0)`:`scale(${xn}) translate3d(${eo}px, 0, 0)`,transition:"none"},!0)}if(!l){const xn=Be*fe;He(K.current,{transform:ot(_)?`translate3d(0, ${xn}px, 0)`:`translate3d(${xn}px, 0, 0)`})}}}Q.useEffect(()=>()=>{on(!1),Lt()},[]),Q.useEffect(()=>{var ie;function fe(){if(!K.current)return;const Re=document.activeElement;if(Nc(Re)||ye.current){var q;const De=((q=window.visualViewport)==null?void 0:q.height)||0;let Be=window.innerHeight-De;const Et=K.current.getBoundingClientRect().height||0;de.current||(de.current=Et);const vt=K.current.getBoundingClientRect().top;if(Math.abs(Ie.current-Be)>60&&(ye.current=!ye.current),l&&l.length>0&&Nt&&ut){const wn=Nt[ut]||0;Be+=wn}if(Ie.current=Be,Et>De||ye.current){const wn=K.current.getBoundingClientRect().height;let Ft=wn;wn>De&&(Ft=De-Nm),R?K.current.style.height=`${wn-Math.max(Be,0)}px`:K.current.style.height=`${Math.max(Ft,De-vt)}px`}else K.current.style.height=`${de.current}px`;l&&l.length>0&&!ye.current?K.current.style.bottom="0px":K.current.style.bottom=`${Math.max(Be,0)}px`}}return(ie=window.visualViewport)==null||ie.addEventListener("resize",fe),()=>{var Re;return(Re=window.visualViewport)==null?void 0:Re.removeEventListener("resize",fe)}},[ut,l,Nt]);function Pe(){K.current&&(Tt(),g==null||g(),He(K.current,{transform:ot(_)?`translate3d(0, ${_==="bottom"?"100%":"-100%"}, 0)`:`translate3d(${_==="right"?"100%":"-100%"}, 0, 0)`,transition:`transform ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`}),He(ee.current,{opacity:"0",transition:`opacity ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`}),on(!1),setTimeout(()=>{F(!1),I(!1)},300),setTimeout(()=>{l&&Je(l[0])},Ae.DURATION*1e3))}Q.useEffect(()=>{if(!O&&r){const ie=setTimeout(()=>{Gl(document.body)},200);return()=>clearTimeout(ie)}},[O,r]),Q.useLayoutEffect(()=>{e?(I(!0),H(!0)):Pe()},[e]),Q.useEffect(()=>{W&&(t==null||t(O))},[O]),Q.useEffect(()=>{Z(!0)},[]);function nt(){if(!K.current)return;const ie=document.querySelector("[vaul-drawer-wrapper]"),fe=Kl(K.current,_);He(K.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`}),He(ee.current,{transition:`opacity ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,opacity:"1"}),r&&fe&&fe>0&&O&&He(ie,{borderRadius:`${Pm}px`,overflow:"hidden",...ot(_)?{transform:`scale(${yn()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${yn()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Ae.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ae.EASE.join(",")})`},!0)}function Tt(){!le||!K.current||(K.current.classList.remove(hu),Xe.current=!1,ne(!1),qe.current=new Date)}function St(ie){if(!le||!K.current)return;K.current.classList.remove(hu),Xe.current=!1,ne(!1),qe.current=new Date;const fe=Kl(K.current,_);if(!oe(ie.target,!1)||!fe||Number.isNaN(fe)||ue.current===null)return;const Re=qe.current.getTime()-ue.current.getTime(),q=J.current-(ot(_)?ie.clientY:ie.clientX),De=Math.abs(q)/Re;if(De>.05&&(V(!0),setTimeout(()=>{V(!1)},200)),l){tt({draggedDistance:q*(_==="bottom"||_==="right"?1:-1),closeDrawer:Pe,velocity:De,dismissible:m}),i==null||i(ie,!0);return}if(_==="bottom"||_==="right"?q>0:q<0){nt(),i==null||i(ie,!0);return}if(De>cw){Pe(),i==null||i(ie,!1);return}var Be;const Et=Math.min((Be=K.current.getBoundingClientRect().height)!=null?Be:0,window.innerHeight);if(fe>=Et*u){Pe(),i==null||i(ie,!1);return}i==null||i(ie,!0),nt()}Q.useEffect(()=>{O&&(He(document.documentElement,{scrollBehavior:"auto"}),se.current=new Date,on(!0))},[O]),Q.useEffect(()=>{if(K.current&&U){var ie;const fe=K==null||(ie=K.current)==null?void 0:ie.querySelectorAll("*");fe==null||fe.forEach(Re=>{const q=Re;(q.scrollHeight>q.clientHeight||q.scrollWidth>q.clientWidth)&&q.classList.add("vaul-scrollable")})}},[U]);function on(ie){const fe=document.querySelector("[vaul-drawer-wrapper]");!fe||!r||(ie?(f&&(E||(He(document.body,{background:document.body.style.backgroundColor||document.body.style.background}),He(document.body,{background:"black"},!0))),He(fe,{borderRadius:`${Pm}px`,overflow:"hidden",...ot(_)?{transform:`scale(${yn()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${yn()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Ae.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ae.EASE.join(",")})`})):(Gl(fe,"overflow"),Gl(fe,"transform"),Gl(fe,"borderRadius"),He(fe,{transitionProperty:"transform, border-radius",transitionDuration:`${Ae.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ae.EASE.join(",")})`})))}function Yn(ie){const fe=ie?(window.innerWidth-Ar)/window.innerWidth:1,Re=ie?-Ar:0;_e.current&&window.clearTimeout(_e.current),He(K.current,{transition:`transform ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,transform:`scale(${fe}) translate3d(0, ${Re}px, 0)`}),!ie&&K.current&&(_e.current=setTimeout(()=>{const q=Kl(K.current,_);He(K.current,{transition:"none",transform:ot(_)?`translate3d(0, ${q}px, 0)`:`translate3d(${q}px, 0, 0)`})},500))}function Xn(ie,fe){if(fe<0)return;const Re=ot(_)?window.innerHeight:window.innerWidth,q=(Re-Ar)/Re,De=q+fe*(1-q),Be=-Ar+fe*Ar;He(K.current,{transform:ot(_)?`scale(${De}) translate3d(0, ${Be}px, 0)`:`scale(${De}) translate3d(${Be}px, 0, 0)`,transition:"none"})}function Zn(ie,fe){const Re=ot(_)?window.innerHeight:window.innerWidth,q=fe?(Re-Ar)/Re:1,De=fe?-Ar:0;fe&&He(K.current,{transition:`transform ${Ae.DURATION}s cubic-bezier(${Ae.EASE.join(",")})`,transform:ot(_)?`scale(${q}) translate3d(0, ${De}px, 0)`:`scale(${q}) translate3d(${De}px, 0, 0)`})}return Q.createElement(_0,{modal:y,onOpenChange:ie=>{if(e!==void 0){t==null||t(ie);return}ie?(H(!0),I(ie)):Pe()},open:O},Q.createElement(ow.Provider,{value:{visible:U,activeSnapPoint:me,snapPoints:l,setActiveSnapPoint:Je,drawerRef:K,overlayRef:ee,scaleBackground:on,onOpenChange:t,onPress:G,setVisible:F,onRelease:St,onDrag:Le,dismissible:m,handleOnly:h,isOpen:O,isDragging:le,shouldFade:rn,closeDrawer:Pe,onNestedDrag:Xn,onNestedOpenChange:Yn,onNestedRelease:Zn,keyboardIsOpen:ye,openProp:e,modal:y,snapPointsOffset:Nt,direction:_}},n))}const TR=250,AR=120,pw=Q.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{visible:o,closeDrawer:i,isDragging:l,snapPoints:a,activeSnapPoint:f,setActiveSnapPoint:u,dismissible:p,handleOnly:m,onPress:h,onDrag:w}=ya(),C=Q.useRef(null),b=Q.useRef(!1);function R(){if(b.current){E();return}window.setTimeout(()=>{y()},AR)}function y(){if(l||e||b.current){E();return}if(E(),(!a||a.length===0)&&p){i();return}if(f===a[a.length-1]&&p){i();return}const P=a.findIndex(N=>N===f);if(P===-1)return;const A=a[P+1];u(A)}function g(){C.current=window.setTimeout(()=>{b.current=!0},TR)}function E(){window.clearTimeout(C.current),b.current=!1}return Q.createElement("div",{onClick:R,onDoubleClick:()=>{b.current=!0,i()},onPointerCancel:E,onPointerDown:_=>{m&&h(_),g()},onPointerMove:_=>{m&&w(_)},ref:r,"vaul-drawer-visible":o?"true":"false","vaul-handle":"","aria-hidden":"true",...n},Q.createElement("span",{"vaul-handle-hitarea":"","aria-hidden":"true"},t))});pw.displayName="Drawer.Handle";const mw=Q.forwardRef(function({children:e,...t},n){const{overlayRef:r,snapPoints:o,onRelease:i,shouldFade:l,isOpen:a,visible:f}=ya(),u=aw(n,r),p=o&&o.length>0;return Q.createElement(P0,{onMouseUp:i,ref:u,"vaul-drawer-visible":f?"true":"false","vaul-overlay":"","vaul-snap-points":a&&p?"true":"false","vaul-snap-points-overlay":a&&l?"true":"false",...t})});mw.displayName="Drawer.Overlay";const hw=Q.forwardRef(function({onOpenAutoFocus:e,onPointerDownOutside:t,onAnimationEnd:n,style:r,...o},i){const{drawerRef:l,onPress:a,onRelease:f,onDrag:u,dismissible:p,keyboardIsOpen:m,snapPointsOffset:h,visible:w,closeDrawer:C,modal:b,openProp:R,onOpenChange:y,setVisible:g,handleOnly:E,direction:_}=ya(),P=aw(i,l),A=Q.useRef(null),N=Q.useRef(!1),O=(I,j,H=0)=>{if(N.current)return!0;const U=Math.abs(I.y),F=Math.abs(I.x),W=F>U,Z=["bottom","right"].includes(j)?1:-1;if(j==="left"||j==="right"){if(!(I.x*Z<0)&&F>=0&&F<=H)return W}else if(!(I.y*Z<0)&&U>=0&&U<=H)return!W;return N.current=!0,!0};return Q.useEffect(()=>{g(!0)},[]),Q.createElement(N0,{"vaul-drawer":"","vaul-drawer-direction":_,"vaul-drawer-visible":w?"true":"false",...o,ref:P,style:h&&h.length>0?{"--snap-point-height":`${h[0]}px`,...r}:r,onOpenAutoFocus:I=>{if(e)e(I);else{var j;I.preventDefault(),(j=l.current)==null||j.focus()}},onPointerDown:I=>{E||(o.onPointerDown==null||o.onPointerDown.call(o,I),A.current={x:I.clientX,y:I.clientY},a(I))},onPointerDownOutside:I=>{if(t==null||t(I),!b||I.defaultPrevented){I.preventDefault();return}m.current&&(m.current=!1),I.preventDefault(),y==null||y(!1),!(!p||R!==void 0)&&C()},onFocusOutside:I=>{if(!b){I.preventDefault();return}},onEscapeKeyDown:I=>{if(!b){I.preventDefault();return}},onPointerMove:I=>{if(E||(o.onPointerMove==null||o.onPointerMove.call(o,I),!A.current))return;const j=I.clientY-A.current.y,H=I.clientX-A.current.x,U=I.pointerType==="touch"?10:2;O({x:H,y:j},_,U)?u(I):(Math.abs(H)>U||Math.abs(j)>U)&&(A.current=null)},onPointerUp:I=>{o.onPointerUp==null||o.onPointerUp.call(o,I),A.current=null,N.current=!1,f(I)}})});hw.displayName="Drawer.Content";function DR({onDrag:e,onOpenChange:t,...n}){const{onNestedDrag:r,onNestedOpenChange:o,onNestedRelease:i}=ya();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return Q.createElement(dw,{nested:!0,onClose:()=>{o(!1)},onDrag:(l,a)=>{r(l,a),e==null||e(l,a)},onOpenChange:l=>{l&&o(l),t==null||t(l)},onRelease:i,...n})}const gn={Root:dw,NestedRoot:DR,Content:hw,Handle:pw,Overlay:mw,Trigger:k0,Portal:R0,Close:Xf,Title:T0,Description:A0},vw=({shouldScaleBackground:e=!0,...t})=>x.jsx(gn.Root,{shouldScaleBackground:e,...t});vw.displayName="Drawer";const OR=gn.Trigger,jR=gn.Portal,MR=gn.Close,gw=v.forwardRef(({className:e,...t},n)=>x.jsx(gn.Overlay,{ref:n,className:Se("fixed inset-0 z-50 bg-black/80",e),...t}));gw.displayName=gn.Overlay.displayName;const yw=v.forwardRef(({className:e,children:t,...n},r)=>x.jsxs(jR,{children:[x.jsx(gw,{}),x.jsxs(gn.Content,{ref:r,className:Se("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...n,children:[x.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));yw.displayName="DrawerContent";const ww=({className:e,...t})=>x.jsx("div",{className:Se("grid gap-1.5 p-4 text-center sm:text-left",e),...t});ww.displayName="DrawerHeader";const xw=({className:e,...t})=>x.jsx("div",{className:Se("mt-auto flex flex-col gap-2 p-4",e),...t});xw.displayName="DrawerFooter";const Sw=v.forwardRef(({className:e,...t},n)=>x.jsx(gn.Title,{ref:n,className:Se("text-lg font-semibold leading-none tracking-tight",e),...t}));Sw.displayName=gn.Title.displayName;const Ew=v.forwardRef(({className:e,...t},n)=>x.jsx(gn.Description,{ref:n,className:Se("text-sm text-muted-foreground",e),...t}));Ew.displayName=gn.Description.displayName;function IR(){const{setRowPerPageOrAuto:e,selectedTable:t,setIsCustomQuery:n,db:r}=Bo(),[o,i]=v.useState(30),[l,a]=v.useState(!1),f=h=>{const w=Number(h.target.value);isNaN(w)||(i(w),a(!1))},u=()=>{a(h=>!h)},p=()=>{n(!1),e(l?"auto":o)},m=(h,w,C)=>x.jsx(Zt,{variant:"outline",onClick:h,className:C,children:x.jsx("span",{className:"ml-2",children:w})});return x.jsxs(vw,{children:[x.jsx(OR,{asChild:!0,children:x.jsx(Zt,{variant:"outline",children:x.jsx(gb,{className:"h-5 w-5"})})}),x.jsx(yw,{children:x.jsxs("div",{className:"mx-auto w-full max-w-md",children:[x.jsxs(ww,{children:[x.jsx(Sw,{children:"Settings"}),x.jsx(Ew,{children:"Personalize your site experience here."})]}),x.jsxs("div",{className:"p-4 pb-0 flex flex-col gap-4",children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Rows Per Page"}),x.jsxs("div",{className:"border rounded p-2 flex gap-1 justify-center items-center",children:[x.jsx(Rf,{min:"3",max:"500",value:o,onChange:f,disabled:l,placeholder:"30",type:"number",name:"rowsPerPage"}),x.jsx("span",{className:"text-sm text-muted-foreground h-full text-center",children:"OR"}),x.jsx(Zt,{onClick:u,variant:"outline",className:l?"border border-primary":void 0,children:"Auto calculate"})]}),x.jsx(Zt,{className:"w-full mt-2",onClick:p,variant:"outline",children:x.jsx("span",{children:"Save"})})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Exports Settings"}),r&&x.jsxs("div",{className:"border rounded p-2 flex flex-col gap-1",children:[m(()=>dE(r),"Export as SQLite"),m(()=>pE(r,parseInt(t)),"Export selected table as CSV"),m(()=>mE(r),"Export all tables as CSV")]})]})]}),x.jsx(xw,{children:x.jsx(MR,{asChild:!0,children:x.jsx(Zt,{variant:"outline",children:"Close"})})})]})})]})}function LR(){const{db:e}=Bo();return x.jsxs("footer",{className:"flex items-center justify-between my-1 p-4 border rounded",children:[x.jsxs("div",{children:[x.jsx("p",{className:"hidden sm:block text-xs",children:"No file will be uploaded to server. using JavaScript, sql.js"}),x.jsx("p",{className:"block sm:hidden text-xs",children:"No file uploads to server."}),x.jsxs("a",{href:"https://github.com/vwh/sqlite-viewer",target:"_blank",className:"text-sm text-link hover:underline flex gap-1 items-center",title:"Star on GitHub",children:[x.jsx(cb,{className:"h-4 w-4"}),x.jsx("span",{children:"Star us on GitHub"})]})]}),x.jsxs("div",{className:"flex gap-1",children:[x.jsx(fR,{}),e&&x.jsx(IR,{})]})]})}vu.createRoot(document.getElementById("root")).render(x.jsx(Q.StrictMode,{children:x.jsxs("main",{className:"container mx-auto p-4",children:[x.jsx(cR,{}),x.jsx(LR,{})]})})); diff --git a/assets/index-t-7PKtx9.css b/assets/index-t-7PKtx9.css deleted file mode 100644 index cdc5cf1..0000000 --- a/assets/index-t-7PKtx9.css +++ /dev/null @@ -1 +0,0 @@ -*,: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;-o-tab-size:4;tab-size:4;font-family: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]){-webkit-text-decoration:underline dotted;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::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}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% 87%;--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% 80%;--input: 240 5.9% 80%;--link: 198, 100%, 16%;--ring: 240 5.9% 10%;--radius: .5rem}.dark{--background: 0 0% 5.9%;--foreground: 0 0% 98%;--card: 0 0% 3.9%;--card-foreground: 0 0% 98%;--popover: 0 0% 3.9%;--popover-foreground: 0 0% 98%;--primary: 0 0% 98%;--primary-foreground: 0 0% 9%;--secondary: 0 0% 14.9%;--secondary-foreground: 0 0% 98%;--muted: 0 0% 14.9%;--muted-foreground: 0 0% 63.9%;--accent: 0 0% 14.9%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--border: 0 0% 14.9%;--input: 0 0% 14.9%;--link: 198, 100%, 60%;--ring: 0 0% 83.1%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}*,: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: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.bottom-\[8px\]{bottom:8px}.left-0{left:0}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-0{right:0}.top-\[50\%\]{top:50%}.z-10{z-index:10}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-4{margin-top:1rem}.mt-auto{margin-top:auto}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.max-h-96{max-height:24rem}.w-10{width:2.5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-64{width:16rem}.w-\[100px\]{width:100px}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[270px\]{width:270px}.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-\[200px\]{max-width:200px}.max-w-\[250px\]{max-width:250px}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.shrink-0{flex-shrink:0}.caption-bottom{caption-side:bottom}.translate-x-\[-50\%\]{--tw-translate-x: -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))}.translate-y-\[-50\%\]{--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-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-balance{text-wrap:balance}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-black\/80{background-color:#000c}.bg-border{background-color:hsl(var(--border))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[6px\]{padding:6px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.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-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.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-24{padding-top:6rem;padding-bottom:6rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pb-1{padding-bottom:.25rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-link{color:hsl(var(--link))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.underline-offset-4{text-underline-offset:4px}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.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)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.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}.duration-200{transition-duration:.2s}@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))}}.duration-200{animation-duration:.2s}.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::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary) / .8)}.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}.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-2: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(2px + 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\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2: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(2px + 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))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.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\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.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}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:block{display:block}.sm\:hidden{display:none}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}}@media (min-width: 768px){.md\:w-\[300px\]{width:300px}.md\:text-2xl{font-size:1.5rem;line-height:2rem}}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0px}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px} diff --git a/index.html b/index.html index 3d305bb..a373b43 100644 --- a/index.html +++ b/index.html @@ -56,8 +56,8 @@ font-size: 2rem; } - - + + diff --git a/sw.js b/sw.js index f046c58..ff7becf 100644 --- a/sw.js +++ b/sw.js @@ -1 +1 @@ -if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,t)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(s[r])return;let o={};const l=e=>i(e,r),c={module:{uri:r},exports:o,require:l};s[r]=Promise.all(n.map((e=>c[e]||l(e)))).then((e=>(t(...e),o)))}}define(["./workbox-7cfec069"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"assets/index-t-7PKtx9.css",revision:null},{url:"assets/index-U-diqNez.js",revision:null},{url:"index.html",revision:"bad563122cf72fa38f4db52c6bc61aea"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"manifest.webmanifest",revision:"662c9ac5fe5300a257a596b0ad6130ea"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))})); +if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let o={};const l=e=>i(e,t),d={module:{uri:t},exports:o,require:l};s[t]=Promise.all(n.map((e=>d[e]||l(e)))).then((e=>(r(...e),o)))}}define(["./workbox-7cfec069"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"assets/index-DldyhXfo.css",revision:null},{url:"assets/index-f0_PGacH.js",revision:null},{url:"index.html",revision:"bd2a34408262a3d290555a223680e6df"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"manifest.webmanifest",revision:"662c9ac5fe5300a257a596b0ad6130ea"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))}));