rechtspilot-ui 1.1.16 → 1.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(`@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lora:ital,wght@0,400..700;1,400..700&display=swap";*,: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: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:Inter,sans-serif;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::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}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.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}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-1\\/2,.left-\\[50\\%\\]{left:50%}.right-0{right:0}.right-4{right:1rem}.right-6{right:1.5rem}.top-1\\/2{top:50%}.top-4{top:1rem}.top-\\[50\\%\\]{top:50%}.z-50{z-index:50}.z-\\[100\\]{z-index:100}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.ml-auto{margin-left:auto}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-1{height:.25rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.h-full{height:100%}.h-px{height:1px}.max-h-96{max-height:24rem}.max-h-\\[300px\\]{max-height:300px}.max-h-screen{max-height:100vh}.w-1{width:.25rem}.w-2{width:.5rem}.w-3\\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-72{width:18rem}.w-9{width:2.25rem}.w-full{width:100%}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.shrink-0{flex-shrink:0}.origin-\\[--radix-popover-content-transform-origin\\]{transform-origin:var(--radix-popover-content-transform-origin)}.-translate-x-1\\/2{--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-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.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))}.rotate-45{--tw-rotate: 45deg;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))}.transform{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 pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize{resize:both}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\\.5{gap:.625rem}.space-y-1\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-r-2{border-right-width:2px}.border-t-2{border-top-width:2px}.border-neutral-200{border-color:#bfc5c2}.border-neutral-300{border-color:#9fa8a3}.border-neutral-400{border-color:#7c8882}.bg-black\\/30{background-color:#0000004d}.bg-black\\/80{background-color:#000c}.bg-neutral-100{background-color:#cfd3d2}.bg-neutral-200{background-color:#bfc5c2}.bg-neutral-400{background-color:#7c8882}.bg-neutral-800{background-color:#262c29}.bg-primary-700{background-color:#3b872c}.bg-transparent{background-color:transparent}.bg-white{background-color:#fff}.p-0{padding:0}.p-1{padding:.25rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-8{padding-right:2rem}.text-center{text-align:center}.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-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-neutral-300{color:#9fa8a3}.text-neutral-500{color:#5b6b63}.text-neutral-950{color:#121614}.text-primary-700{color:#3b872c}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.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-white{--tw-ring-offset-color: hsla(0, 0%, 100%, 1)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;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))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.duration-200{animation-duration:.2s}.placeholder\\:text-neutral-100::placeholder{color:#cfd3d2}.placeholder\\:text-neutral-500::placeholder{color:#5b6b63}.hover\\:bg-neutral-100:hover{background-color:#cfd3d2}.hover\\:text-neutral-950:hover{color:#121614}.hover\\:opacity-100:hover{opacity:1}.hover\\:opacity-80:hover{opacity:.8}.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-neutral-950:focus{--tw-ring-color: hsla(150, 10%, 8%, 1)}.focus\\:ring-offset-2:focus{--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}.group.destructive .group-\\[\\.destructive\\]\\:border-neutral-100\\/40{border-color:#cfd3d266}.group.destructive .group-\\[\\.destructive\\]\\:hover\\:border-red-500\\/30:hover{border-color:#ef44444d}.group.destructive .group-\\[\\.destructive\\]\\:hover\\:bg-red-500:hover{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.group.destructive .group-\\[\\.destructive\\]\\:hover\\:text-neutral-50:hover{color:#f1f3f2}.group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity))}.data-\\[disabled\\=true\\]\\:pointer-events-none[data-disabled=true],.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-\\[swipe\\=cancel\\]\\:translate-x-0[data-swipe=cancel]{--tw-translate-x: 0px;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-\\[swipe\\=end\\]\\:translate-x-\\[var\\(--radix-toast-swipe-end-x\\)\\][data-swipe=end]{--tw-translate-x: var(--radix-toast-swipe-end-x);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-\\[swipe\\=move\\]\\:translate-x-\\[var\\(--radix-toast-swipe-move-x\\)\\][data-swipe=move]{--tw-translate-x: var(--radix-toast-swipe-move-x);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-\\[selected\\=\\'true\\'\\]\\:bg-neutral-100[data-selected=true],.data-\\[state\\=open\\]\\:bg-neutral-100[data-state=open]{background-color:#cfd3d2}.data-\\[selected\\=true\\]\\:text-neutral-900[data-selected=true]{color:#1c211f}.data-\\[state\\=open\\]\\:text-neutral-500[data-state=open]{color:#5b6b63}.data-\\[disabled\\=true\\]\\:opacity-50[data-disabled=true],.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[swipe\\=move\\]\\:transition-none[data-swipe=move]{transition-property:none}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed],.data-\\[swipe\\=end\\]\\:animate-out[data-swipe=end]{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\\=closed\\]\\:fade-out-80[data-state=closed]{--tw-exit-opacity: .8}.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-bottom-full[data-state=closed]{--tw-exit-translate-y: 100%}.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-bottom-full[data-state=open]{--tw-enter-translate-y: 100%}.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%}.dark\\:border-neutral-800:is(.dark *){border-color:#262c29}.dark\\:bg-neutral-800:is(.dark *){background-color:#262c29}.dark\\:bg-neutral-950:is(.dark *){background-color:#121614}.dark\\:text-neutral-400:is(.dark *){color:#7c8882}.dark\\:text-neutral-50:is(.dark *){color:#f1f3f2}.dark\\:ring-offset-neutral-950:is(.dark *){--tw-ring-offset-color: hsla(150, 10%, 8%, 1)}.dark\\:placeholder\\:text-neutral-400:is(.dark *)::placeholder{color:#7c8882}.dark\\:hover\\:bg-neutral-800:hover:is(.dark *){background-color:#262c29}.dark\\:hover\\:text-neutral-50:hover:is(.dark *){color:#f1f3f2}.dark\\:focus\\:ring-neutral-300:focus:is(.dark *){--tw-ring-color: hsla(150, 5%, 64%, 1)}.group.destructive .dark\\:group-\\[\\.destructive\\]\\:border-neutral-800\\/40:is(.dark *){border-color:#262c2966}.group.destructive .dark\\:group-\\[\\.destructive\\]\\:hover\\:border-red-900\\/30:hover:is(.dark *){border-color:#7f1d1d4d}.group.destructive .dark\\:group-\\[\\.destructive\\]\\:hover\\:bg-red-900:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(127 29 29 / var(--tw-bg-opacity))}.group.destructive .dark\\:group-\\[\\.destructive\\]\\:hover\\:text-neutral-50:hover:is(.dark *){color:#f1f3f2}.group.destructive .dark\\:group-\\[\\.destructive\\]\\:focus\\:ring-red-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(127 29 29 / var(--tw-ring-opacity))}.dark\\:data-\\[selected\\=\\'true\\'\\]\\:bg-neutral-800[data-selected=true]:is(.dark *){background-color:#262c29}.dark\\:data-\\[state\\=open\\]\\:bg-neutral-800[data-state=open]:is(.dark *){background-color:#262c29}.dark\\:data-\\[selected\\=true\\]\\:text-neutral-50[data-selected=true]:is(.dark *){color:#f1f3f2}.dark\\:data-\\[state\\=open\\]\\:text-neutral-400[data-state=open]:is(.dark *){color:#7c8882}@media (min-width: 640px){.sm\\:w-fit{width:fit-content}.sm\\:min-w-\\[300px\\]{min-width:300px}.sm\\:max-w-\\[420px\\]{max-width:420px}.sm\\:flex-row{flex-direction:row}.sm\\:justify-end{justify-content:flex-end}.sm\\:gap-2\\.5{gap:.625rem}.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\\:text-left{text-align:left}}@media (min-width: 768px){.md\\:inline{display:inline}.md\\:gap-1\\.5{gap:.375rem}}.\\[\\&\\>span\\]\\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:py-1\\.5 [cmdk-group-heading]{padding-top:.375rem;padding-bottom:.375rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:font-medium [cmdk-group-heading]{font-weight:500}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-neutral-500 [cmdk-group-heading]{color:#5b6b63}.dark\\:\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-neutral-400 [cmdk-group-heading]:is(.dark *){color:#7c8882}.\\[\\&_\\[cmdk-group\\]\\:not\\(\\[hidden\\]\\)_\\~\\[cmdk-group\\]\\]\\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\\[\\&_\\[cmdk-group\\]\\]\\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\\[\\&_\\[cmdk-input\\]\\]\\:h-12 [cmdk-input]{height:3rem}.\\[\\&_\\[cmdk-item\\]\\]\\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-item\\]\\]\\:py-3 [cmdk-item]{padding-top:.75rem;padding-bottom:.75rem}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:h-5 [cmdk-item] svg{height:1.25rem}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:w-5 [cmdk-item] svg{width:1.25rem}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-6 svg{width:1.5rem;height:1.5rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}`)),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./chunks.cjs"),Z=require("react"),Kn=require("react-dom");function ra(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=ra(Z),Ze=ra(Kn);var me=function(){return me=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},me.apply(this,arguments)};function jt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}function rf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var of=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,sf=rf(function(e){return of.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),se="-ms-",Yt="-moz-",ee="-webkit-",oa="comm",Xn="rule",Mo="decl",af="@import",sa="@keyframes",cf="@layer",ia=Math.abs,Lo=String.fromCharCode,Jr=Object.assign;function lf(e,t){return ue(e,0)^45?(((t<<2^ue(e,0))<<2^ue(e,1))<<2^ue(e,2))<<2^ue(e,3):0}function aa(e){return e.trim()}function Me(e,t){return(e=t.exec(e))?e[0]:e}function q(e,t,n){return e.replace(t,n)}function Cn(e,t,n){return e.indexOf(t,n)}function ue(e,t){return e.charCodeAt(t)|0}function Pt(e,t,n){return e.slice(t,n)}function Ae(e){return e.length}function ca(e){return e.length}function zt(e,t){return t.push(e),e}function uf(e,t){return e.map(t).join("")}function Fs(e,t){return e.filter(function(n){return!Me(n,t)})}var Gn=1,Tt=1,la=0,we=0,le=0,Mt="";function qn(e,t,n,r,o,s,a,c){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Gn,column:Tt,length:a,return:"",siblings:c}}function We(e,t){return Jr(qn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function pt(e){for(;e.root;)e=We(e.root,{children:[e]});zt(e,e.siblings)}function df(){return le}function ff(){return le=we>0?ue(Mt,--we):0,Tt--,le===10&&(Tt=1,Gn--),le}function Re(){return le=we<la?ue(Mt,we++):0,Tt++,le===10&&(Tt=1,Gn++),le}function rt(){return ue(Mt,we)}function Sn(){return we}function Zn(e,t){return Pt(Mt,e,t)}function eo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function pf(e){return Gn=Tt=1,la=Ae(Mt=e),we=0,[]}function mf(e){return Mt="",e}function Cr(e){return aa(Zn(we-1,to(e===91?e+2:e===40?e+1:e)))}function hf(e){for(;(le=rt())&&le<33;)Re();return eo(e)>2||eo(le)>3?"":" "}function vf(e,t){for(;--t&&Re()&&!(le<48||le>102||le>57&&le<65||le>70&&le<97););return Zn(e,Sn()+(t<6&&rt()==32&&Re()==32))}function to(e){for(;Re();)switch(le){case e:return we;case 34:case 39:e!==34&&e!==39&&to(le);break;case 40:e===41&&to(e);break;case 92:Re();break}return we}function gf(e,t){for(;Re()&&e+le!==57;)if(e+le===84&&rt()===47)break;return"/*"+Zn(t,we-1)+"*"+Lo(e===47?e:Re())}function xf(e){for(;!eo(rt());)Re();return Zn(e,we)}function yf(e){return mf(jn("",null,null,null,[""],e=pf(e),0,[0],e))}function jn(e,t,n,r,o,s,a,c,d){for(var u=0,p=0,m=a,g=0,h=0,w=0,f=1,v=1,x=1,y=0,E="",R=o,C=s,S=r,b=E;v;)switch(w=y,y=Re()){case 40:if(w!=108&&ue(b,m-1)==58){Cn(b+=q(Cr(y),"&","&\f"),"&\f",ia(u?c[u-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:b+=Cr(y);break;case 9:case 10:case 13:case 32:b+=hf(w);break;case 92:b+=vf(Sn()-1,7);continue;case 47:switch(rt()){case 42:case 47:zt(Ef(gf(Re(),Sn()),t,n,d),d);break;default:b+="/"}break;case 123*f:c[u++]=Ae(b)*x;case 125*f:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+p:x==-1&&(b=q(b,/\f/g,"")),h>0&&Ae(b)-m&&zt(h>32?Bs(b+";",r,n,m-1,d):Bs(q(b," ","")+";",r,n,m-2,d),d);break;case 59:b+=";";default:if(zt(S=Ws(b,t,n,u,p,o,c,E,R=[],C=[],m,s),s),y===123)if(p===0)jn(b,t,S,S,R,s,m,c,C);else switch(g===99&&ue(b,3)===110?100:g){case 100:case 108:case 109:case 115:jn(e,S,S,r&&zt(Ws(e,S,S,0,0,o,c,E,o,R=[],m,C),C),o,C,m,c,r?R:C);break;default:jn(b,S,S,S,[""],C,0,c,C)}}u=p=h=0,f=x=1,E=b="",m=a;break;case 58:m=1+Ae(b),h=w;default:if(f<1){if(y==123)--f;else if(y==125&&f++==0&&ff()==125)continue}switch(b+=Lo(y),y*f){case 38:x=p>0?1:(b+="\f",-1);break;case 44:c[u++]=(Ae(b)-1)*x,x=1;break;case 64:rt()===45&&(b+=Cr(Re())),g=rt(),p=m=Ae(E=b+=xf(Sn())),y++;break;case 45:w===45&&Ae(b)==2&&(f=0)}}return s}function Ws(e,t,n,r,o,s,a,c,d,u,p,m){for(var g=o-1,h=o===0?s:[""],w=ca(h),f=0,v=0,x=0;f<r;++f)for(var y=0,E=Pt(e,g+1,g=ia(v=a[f])),R=e;y<w;++y)(R=aa(v>0?h[y]+" "+E:q(E,/&\f/g,h[y])))&&(d[x++]=R);return qn(e,t,n,o===0?Xn:c,d,u,p,m)}function Ef(e,t,n,r){return qn(e,t,n,oa,Lo(df()),Pt(e,2,-2),0,r)}function Bs(e,t,n,r,o){return qn(e,t,n,Mo,Pt(e,0,r),Pt(e,r+1,-1),r,o)}function ua(e,t,n){switch(lf(e,t)){case 5103:return ee+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ee+e+e;case 4789:return Yt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ee+e+Yt+e+se+e+e;case 5936:switch(ue(e,t+11)){case 114:return ee+e+se+q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+se+q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+se+q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ee+e+se+e+e;case 6165:return ee+e+se+"flex-"+e+e;case 5187:return ee+e+q(e,/(\w+).+(:[^]+)/,ee+"box-$1$2"+se+"flex-$1$2")+e;case 5443:return ee+e+se+"flex-item-"+q(e,/flex-|-self/g,"")+(Me(e,/flex-|baseline/)?"":se+"grid-row-"+q(e,/flex-|-self/g,""))+e;case 4675:return ee+e+se+"flex-line-pack"+q(e,/align-content|flex-|-self/g,"")+e;case 5548:return ee+e+se+q(e,"shrink","negative")+e;case 5292:return ee+e+se+q(e,"basis","preferred-size")+e;case 6060:return ee+"box-"+q(e,"-grow","")+ee+e+se+q(e,"grow","positive")+e;case 4554:return ee+q(e,/([^-])(transform)/g,"$1"+ee+"$2")+e;case 6187:return q(q(q(e,/(zoom-|grab)/,ee+"$1"),/(image-set)/,ee+"$1"),e,"")+e;case 5495:case 3959:return q(e,/(image-set\([^]*)/,ee+"$1$`$1");case 4968:return q(q(e,/(.+:)(flex-)?(.*)/,ee+"box-pack:$3"+se+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ee+e+e;case 4200:if(!Me(e,/flex-|baseline/))return se+"grid-column-align"+Pt(e,t)+e;break;case 2592:case 3360:return se+q(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,Me(r.props,/grid-\w+-end/)})?~Cn(e+(n=n[t].value),"span",0)?e:se+q(e,"-start","")+e+se+"grid-row-span:"+(~Cn(n,"span",0)?Me(n,/\d+/):+Me(n,/\d+/)-+Me(e,/\d+/))+";":se+q(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Me(r.props,/grid-\w+-start/)})?e:se+q(q(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return q(e,/(.+)-inline(.+)/,ee+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ae(e)-1-t>6)switch(ue(e,t+1)){case 109:if(ue(e,t+4)!==45)break;case 102:return q(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+Yt+(ue(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Cn(e,"stretch",0)?ua(q(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return q(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,s,a,c,d,u){return se+o+":"+s+u+(a?se+o+"-span:"+(c?d:+d-+s)+u:"")+e});case 4949:if(ue(e,t+6)===121)return q(e,":",":"+ee)+e;break;case 6444:switch(ue(e,ue(e,14)===45?18:11)){case 120:return q(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ee+(ue(e,14)===45?"inline-":"")+"box$3$1"+ee+"$2$3$1"+se+"$2box$3")+e;case 100:return q(e,":",":"+se)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return q(e,"scroll-","scroll-snap-")+e}return e}function In(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function wf(e,t,n,r){switch(e.type){case cf:if(e.children.length)break;case af:case Mo:return e.return=e.return||e.value;case oa:return"";case sa:return e.return=e.value+"{"+In(e.children,r)+"}";case Xn:if(!Ae(e.value=e.props.join(",")))return""}return Ae(n=In(e.children,r))?e.return=e.value+"{"+n+"}":""}function bf(e){var t=ca(e);return function(n,r,o,s){for(var a="",c=0;c<t;c++)a+=e[c](n,r,o,s)||"";return a}}function Rf(e){return function(t){t.root||(t=t.return)&&e(t)}}function Cf(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Mo:e.return=ua(e.value,e.length,n);return;case sa:return In([We(e,{value:q(e.value,"@","@"+ee)})],r);case Xn:if(e.length)return uf(n=e.props,function(o){switch(Me(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":pt(We(e,{props:[q(o,/:(read-\w+)/,":"+Yt+"$1")]})),pt(We(e,{props:[o]})),Jr(e,{props:Fs(n,r)});break;case"::placeholder":pt(We(e,{props:[q(o,/:(plac\w+)/,":"+ee+"input-$1")]})),pt(We(e,{props:[q(o,/:(plac\w+)/,":"+Yt+"$1")]})),pt(We(e,{props:[q(o,/:(plac\w+)/,se+"input-$1")]})),pt(We(e,{props:[o]})),Jr(e,{props:Fs(n,r)});break}return""})}}var Sf={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},st=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",da="active",fa="data-styled-version",Qn="6.1.13",_o=`/*!sc*/
3
- `,Mn=typeof window<"u"&&"HTMLElement"in window,jf=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),Hs=/invalid hook call/i,an=new Set,Pf=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./chunks.cjs"),Z=require("react"),Kn=require("react-dom");function ra(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=ra(Z),Ze=ra(Kn);var me=function(){return me=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},me.apply(this,arguments)};function jt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}function nf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var rf=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,of=nf(function(e){return rf.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),se="-ms-",Yt="-moz-",ee="-webkit-",oa="comm",Xn="rule",Mo="decl",sf="@import",sa="@keyframes",af="@layer",ia=Math.abs,Lo=String.fromCharCode,Jr=Object.assign;function cf(e,t){return ue(e,0)^45?(((t<<2^ue(e,0))<<2^ue(e,1))<<2^ue(e,2))<<2^ue(e,3):0}function aa(e){return e.trim()}function Me(e,t){return(e=t.exec(e))?e[0]:e}function q(e,t,n){return e.replace(t,n)}function Cn(e,t,n){return e.indexOf(t,n)}function ue(e,t){return e.charCodeAt(t)|0}function Pt(e,t,n){return e.slice(t,n)}function Ae(e){return e.length}function ca(e){return e.length}function zt(e,t){return t.push(e),e}function lf(e,t){return e.map(t).join("")}function Fs(e,t){return e.filter(function(n){return!Me(n,t)})}var Gn=1,Tt=1,la=0,we=0,le=0,Mt="";function qn(e,t,n,r,o,s,a,c){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Gn,column:Tt,length:a,return:"",siblings:c}}function We(e,t){return Jr(qn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function pt(e){for(;e.root;)e=We(e.root,{children:[e]});zt(e,e.siblings)}function uf(){return le}function df(){return le=we>0?ue(Mt,--we):0,Tt--,le===10&&(Tt=1,Gn--),le}function Re(){return le=we<la?ue(Mt,we++):0,Tt++,le===10&&(Tt=1,Gn++),le}function rt(){return ue(Mt,we)}function Sn(){return we}function Zn(e,t){return Pt(Mt,e,t)}function eo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ff(e){return Gn=Tt=1,la=Ae(Mt=e),we=0,[]}function pf(e){return Mt="",e}function Cr(e){return aa(Zn(we-1,to(e===91?e+2:e===40?e+1:e)))}function mf(e){for(;(le=rt())&&le<33;)Re();return eo(e)>2||eo(le)>3?"":" "}function hf(e,t){for(;--t&&Re()&&!(le<48||le>102||le>57&&le<65||le>70&&le<97););return Zn(e,Sn()+(t<6&&rt()==32&&Re()==32))}function to(e){for(;Re();)switch(le){case e:return we;case 34:case 39:e!==34&&e!==39&&to(le);break;case 40:e===41&&to(e);break;case 92:Re();break}return we}function vf(e,t){for(;Re()&&e+le!==57;)if(e+le===84&&rt()===47)break;return"/*"+Zn(t,we-1)+"*"+Lo(e===47?e:Re())}function gf(e){for(;!eo(rt());)Re();return Zn(e,we)}function xf(e){return pf(jn("",null,null,null,[""],e=ff(e),0,[0],e))}function jn(e,t,n,r,o,s,a,c,d){for(var u=0,p=0,m=a,g=0,h=0,E=0,f=1,v=1,y=1,x=0,b="",R=o,C=s,S=r,w=b;v;)switch(E=x,x=Re()){case 40:if(E!=108&&ue(w,m-1)==58){Cn(w+=q(Cr(x),"&","&\f"),"&\f",ia(u?c[u-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:w+=Cr(x);break;case 9:case 10:case 13:case 32:w+=mf(E);break;case 92:w+=hf(Sn()-1,7);continue;case 47:switch(rt()){case 42:case 47:zt(yf(vf(Re(),Sn()),t,n,d),d);break;default:w+="/"}break;case 123*f:c[u++]=Ae(w)*y;case 125*f:case 59:case 0:switch(x){case 0:case 125:v=0;case 59+p:y==-1&&(w=q(w,/\f/g,"")),h>0&&Ae(w)-m&&zt(h>32?Bs(w+";",r,n,m-1,d):Bs(q(w," ","")+";",r,n,m-2,d),d);break;case 59:w+=";";default:if(zt(S=Ws(w,t,n,u,p,o,c,b,R=[],C=[],m,s),s),x===123)if(p===0)jn(w,t,S,S,R,s,m,c,C);else switch(g===99&&ue(w,3)===110?100:g){case 100:case 108:case 109:case 115:jn(e,S,S,r&&zt(Ws(e,S,S,0,0,o,c,b,o,R=[],m,C),C),o,C,m,c,r?R:C);break;default:jn(w,S,S,S,[""],C,0,c,C)}}u=p=h=0,f=y=1,b=w="",m=a;break;case 58:m=1+Ae(w),h=E;default:if(f<1){if(x==123)--f;else if(x==125&&f++==0&&df()==125)continue}switch(w+=Lo(x),x*f){case 38:y=p>0?1:(w+="\f",-1);break;case 44:c[u++]=(Ae(w)-1)*y,y=1;break;case 64:rt()===45&&(w+=Cr(Re())),g=rt(),p=m=Ae(b=w+=gf(Sn())),x++;break;case 45:E===45&&Ae(w)==2&&(f=0)}}return s}function Ws(e,t,n,r,o,s,a,c,d,u,p,m){for(var g=o-1,h=o===0?s:[""],E=ca(h),f=0,v=0,y=0;f<r;++f)for(var x=0,b=Pt(e,g+1,g=ia(v=a[f])),R=e;x<E;++x)(R=aa(v>0?h[x]+" "+b:q(b,/&\f/g,h[x])))&&(d[y++]=R);return qn(e,t,n,o===0?Xn:c,d,u,p,m)}function yf(e,t,n,r){return qn(e,t,n,oa,Lo(uf()),Pt(e,2,-2),0,r)}function Bs(e,t,n,r,o){return qn(e,t,n,Mo,Pt(e,0,r),Pt(e,r+1,-1),r,o)}function ua(e,t,n){switch(cf(e,t)){case 5103:return ee+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ee+e+e;case 4789:return Yt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ee+e+Yt+e+se+e+e;case 5936:switch(ue(e,t+11)){case 114:return ee+e+se+q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+se+q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+se+q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ee+e+se+e+e;case 6165:return ee+e+se+"flex-"+e+e;case 5187:return ee+e+q(e,/(\w+).+(:[^]+)/,ee+"box-$1$2"+se+"flex-$1$2")+e;case 5443:return ee+e+se+"flex-item-"+q(e,/flex-|-self/g,"")+(Me(e,/flex-|baseline/)?"":se+"grid-row-"+q(e,/flex-|-self/g,""))+e;case 4675:return ee+e+se+"flex-line-pack"+q(e,/align-content|flex-|-self/g,"")+e;case 5548:return ee+e+se+q(e,"shrink","negative")+e;case 5292:return ee+e+se+q(e,"basis","preferred-size")+e;case 6060:return ee+"box-"+q(e,"-grow","")+ee+e+se+q(e,"grow","positive")+e;case 4554:return ee+q(e,/([^-])(transform)/g,"$1"+ee+"$2")+e;case 6187:return q(q(q(e,/(zoom-|grab)/,ee+"$1"),/(image-set)/,ee+"$1"),e,"")+e;case 5495:case 3959:return q(e,/(image-set\([^]*)/,ee+"$1$`$1");case 4968:return q(q(e,/(.+:)(flex-)?(.*)/,ee+"box-pack:$3"+se+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ee+e+e;case 4200:if(!Me(e,/flex-|baseline/))return se+"grid-column-align"+Pt(e,t)+e;break;case 2592:case 3360:return se+q(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,Me(r.props,/grid-\w+-end/)})?~Cn(e+(n=n[t].value),"span",0)?e:se+q(e,"-start","")+e+se+"grid-row-span:"+(~Cn(n,"span",0)?Me(n,/\d+/):+Me(n,/\d+/)-+Me(e,/\d+/))+";":se+q(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Me(r.props,/grid-\w+-start/)})?e:se+q(q(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return q(e,/(.+)-inline(.+)/,ee+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ae(e)-1-t>6)switch(ue(e,t+1)){case 109:if(ue(e,t+4)!==45)break;case 102:return q(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+Yt+(ue(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Cn(e,"stretch",0)?ua(q(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return q(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,s,a,c,d,u){return se+o+":"+s+u+(a?se+o+"-span:"+(c?d:+d-+s)+u:"")+e});case 4949:if(ue(e,t+6)===121)return q(e,":",":"+ee)+e;break;case 6444:switch(ue(e,ue(e,14)===45?18:11)){case 120:return q(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ee+(ue(e,14)===45?"inline-":"")+"box$3$1"+ee+"$2$3$1"+se+"$2box$3")+e;case 100:return q(e,":",":"+se)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return q(e,"scroll-","scroll-snap-")+e}return e}function In(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ef(e,t,n,r){switch(e.type){case af:if(e.children.length)break;case sf:case Mo:return e.return=e.return||e.value;case oa:return"";case sa:return e.return=e.value+"{"+In(e.children,r)+"}";case Xn:if(!Ae(e.value=e.props.join(",")))return""}return Ae(n=In(e.children,r))?e.return=e.value+"{"+n+"}":""}function wf(e){var t=ca(e);return function(n,r,o,s){for(var a="",c=0;c<t;c++)a+=e[c](n,r,o,s)||"";return a}}function bf(e){return function(t){t.root||(t=t.return)&&e(t)}}function Rf(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Mo:e.return=ua(e.value,e.length,n);return;case sa:return In([We(e,{value:q(e.value,"@","@"+ee)})],r);case Xn:if(e.length)return lf(n=e.props,function(o){switch(Me(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":pt(We(e,{props:[q(o,/:(read-\w+)/,":"+Yt+"$1")]})),pt(We(e,{props:[o]})),Jr(e,{props:Fs(n,r)});break;case"::placeholder":pt(We(e,{props:[q(o,/:(plac\w+)/,":"+ee+"input-$1")]})),pt(We(e,{props:[q(o,/:(plac\w+)/,":"+Yt+"$1")]})),pt(We(e,{props:[q(o,/:(plac\w+)/,se+"input-$1")]})),pt(We(e,{props:[o]})),Jr(e,{props:Fs(n,r)});break}return""})}}var Cf={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},st=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",da="active",fa="data-styled-version",Qn="6.1.13",_o=`/*!sc*/
3
+ `,Mn=typeof window<"u"&&"HTMLElement"in window,Sf=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),Hs=/invalid hook call/i,an=new Set,jf=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
4
4
  `)+`You may see this warning because you've called styled inside another component.
5
- To resolve this only create new StyledComponents outside of any render method and function component.`,o=console.error;try{var s=!0;console.error=function(a){for(var c=[],d=1;d<arguments.length;d++)c[d-1]=arguments[d];Hs.test(a)?(s=!1,an.delete(r)):o.apply(void 0,jt([a],c,!1))},Z.useRef(),s&&!an.has(r)&&(console.warn(r),an.add(r))}catch(a){Hs.test(a.message)&&an.delete(r)}finally{console.error=o}}},Jn=Object.freeze([]),At=Object.freeze({});function Tf(e,t,n){return n===void 0&&(n=At),e.theme!==n.theme&&e.theme||t||n.theme}var no=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Af=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Nf=/(^-|-$)/g;function Vs(e){return e.replace(Af,"-").replace(Nf,"")}var $f=/(a)(d)/gi,cn=52,zs=function(e){return String.fromCharCode(e+(e>25?39:97))};function ro(e){var t,n="";for(t=Math.abs(e);t>cn;t=t/cn|0)n=zs(t%cn)+n;return(zs(t%cn)+n).replace($f,"$1-$2")}var Sr,pa=5381,tt=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ma=function(e){return tt(pa,e)};function Of(e){return ro(ma(e)>>>0)}function ha(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function jr(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var va=typeof Symbol=="function"&&Symbol.for,ga=va?Symbol.for("react.memo"):60115,Df=va?Symbol.for("react.forward_ref"):60112,kf={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},If={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},xa={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Mf=((Sr={})[Df]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Sr[ga]=xa,Sr);function Us(e){return("type"in(t=e)&&t.type.$$typeof)===ga?xa:"$$typeof"in e?Mf[e.$$typeof]:kf;var t}var Lf=Object.defineProperty,_f=Object.getOwnPropertyNames,Ys=Object.getOwnPropertySymbols,Ff=Object.getOwnPropertyDescriptor,Wf=Object.getPrototypeOf,Ks=Object.prototype;function ya(e,t,n){if(typeof t!="string"){if(Ks){var r=Wf(t);r&&r!==Ks&&ya(e,r,n)}var o=_f(t);Ys&&(o=o.concat(Ys(t)));for(var s=Us(e),a=Us(t),c=0;c<o.length;++c){var d=o[c];if(!(d in If||n&&n[d]||a&&d in a||s&&d in s)){var u=Ff(t,d);try{Lf(e,d,u)}catch{}}}}return e}function Nt(e){return typeof e=="function"}function Fo(e){return typeof e=="object"&&"styledComponentId"in e}function nt(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Xs(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function $t(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function oo(e,t,n){if(n===void 0&&(n=!1),!n&&!$t(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=oo(e[r],t[r]);else if($t(t))for(var r in t)e[r]=oo(e[r],t[r]);return e}function Wo(e,t){Object.defineProperty(e,"toString",{value:t})}var Bf=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
5
+ To resolve this only create new StyledComponents outside of any render method and function component.`,o=console.error;try{var s=!0;console.error=function(a){for(var c=[],d=1;d<arguments.length;d++)c[d-1]=arguments[d];Hs.test(a)?(s=!1,an.delete(r)):o.apply(void 0,jt([a],c,!1))},Z.useRef(),s&&!an.has(r)&&(console.warn(r),an.add(r))}catch(a){Hs.test(a.message)&&an.delete(r)}finally{console.error=o}}},Jn=Object.freeze([]),At=Object.freeze({});function Pf(e,t,n){return n===void 0&&(n=At),e.theme!==n.theme&&e.theme||t||n.theme}var no=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Tf=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Af=/(^-|-$)/g;function Vs(e){return e.replace(Tf,"-").replace(Af,"")}var Nf=/(a)(d)/gi,cn=52,zs=function(e){return String.fromCharCode(e+(e>25?39:97))};function ro(e){var t,n="";for(t=Math.abs(e);t>cn;t=t/cn|0)n=zs(t%cn)+n;return(zs(t%cn)+n).replace(Nf,"$1-$2")}var Sr,pa=5381,tt=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ma=function(e){return tt(pa,e)};function $f(e){return ro(ma(e)>>>0)}function ha(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function jr(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var va=typeof Symbol=="function"&&Symbol.for,ga=va?Symbol.for("react.memo"):60115,Of=va?Symbol.for("react.forward_ref"):60112,Df={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},kf={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},xa={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},If=((Sr={})[Of]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Sr[ga]=xa,Sr);function Us(e){return("type"in(t=e)&&t.type.$$typeof)===ga?xa:"$$typeof"in e?If[e.$$typeof]:Df;var t}var Mf=Object.defineProperty,Lf=Object.getOwnPropertyNames,Ys=Object.getOwnPropertySymbols,_f=Object.getOwnPropertyDescriptor,Ff=Object.getPrototypeOf,Ks=Object.prototype;function ya(e,t,n){if(typeof t!="string"){if(Ks){var r=Ff(t);r&&r!==Ks&&ya(e,r,n)}var o=Lf(t);Ys&&(o=o.concat(Ys(t)));for(var s=Us(e),a=Us(t),c=0;c<o.length;++c){var d=o[c];if(!(d in kf||n&&n[d]||a&&d in a||s&&d in s)){var u=_f(t,d);try{Mf(e,d,u)}catch{}}}}return e}function Nt(e){return typeof e=="function"}function Fo(e){return typeof e=="object"&&"styledComponentId"in e}function nt(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Xs(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function $t(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function oo(e,t,n){if(n===void 0&&(n=!1),!n&&!$t(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=oo(e[r],t[r]);else if($t(t))for(var r in t)e[r]=oo(e[r],t[r]);return e}function Wo(e,t){Object.defineProperty(e,"toString",{value:t})}var Wf=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
6
6
 
7
7
  `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
8
8
 
@@ -43,7 +43,7 @@ as for instance in your render method then you may be running into this limitati
43
43
 
44
44
  `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
45
45
  Has styled-components' style tag been unmounted or altered by another script?
46
- `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Hf(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(a){n=n.replace(/%[a-z]/,a)}),n}function Lt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Hf.apply(void 0,jt([Bf[e]],t,!1)).trim())}var Vf=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,s=o;t>=s;)if((s<<=1)<0)throw Lt(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var a=o;a<s;a++)this.groupSizes[a]=0}for(var c=this.indexOfGroup(t+1),d=(a=0,n.length);a<d;a++)this.tag.insertRule(c,n[a])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var s=r;s<o;s++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),s=o+r,a=o;a<s;a++)n+="".concat(this.tag.getRule(a)).concat(_o);return n},e}(),zf=1<<30,Pn=new Map,Ln=new Map,Tn=1,ln=function(e){if(Pn.has(e))return Pn.get(e);for(;Ln.has(Tn);)Tn++;var t=Tn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>zf))throw Lt(16,"".concat(t));return Pn.set(e,t),Ln.set(t,e),t},Uf=function(e,t){Tn=t+1,Pn.set(e,t),Ln.set(t,e)},Yf="style[".concat(st,"][").concat(fa,'="').concat(Qn,'"]'),Kf=new RegExp("^".concat(st,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Xf=function(e,t,n){for(var r,o=n.split(","),s=0,a=o.length;s<a;s++)(r=o[s])&&e.registerName(t,r)},Gf=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(_o),o=[],s=0,a=r.length;s<a;s++){var c=r[s].trim();if(c){var d=c.match(Kf);if(d){var u=0|parseInt(d[1],10),p=d[2];u!==0&&(Uf(p,u),Xf(e,p,d[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(c)}}},Gs=function(e){for(var t=document.querySelectorAll(Yf),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(st)!==da&&(Gf(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function qf(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Ea=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(c){var d=Array.from(c.querySelectorAll("style[".concat(st,"]")));return d[d.length-1]}(n),s=o!==void 0?o.nextSibling:null;r.setAttribute(st,da),r.setAttribute(fa,Qn);var a=qf();return a&&r.setAttribute("nonce",a),n.insertBefore(r,s),r},Zf=function(){function e(t){this.element=Ea(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,s=r.length;o<s;o++){var a=r[o];if(a.ownerNode===n)return a}throw Lt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),Qf=function(){function e(t){this.element=Ea(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),Jf=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),qs=Mn,ep={isServer:!Mn,useCSSOMInjection:!jf},wa=function(){function e(t,n,r){t===void 0&&(t=At),n===void 0&&(n={});var o=this;this.options=me(me({},ep),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Mn&&qs&&(qs=!1,Gs(this)),Wo(this,function(){return function(s){for(var a=s.getTag(),c=a.length,d="",u=function(m){var g=function(x){return Ln.get(x)}(m);if(g===void 0)return"continue";var h=s.names.get(g),w=a.getGroup(m);if(h===void 0||!h.size||w.length===0)return"continue";var f="".concat(st,".g").concat(m,'[id="').concat(g,'"]'),v="";h!==void 0&&h.forEach(function(x){x.length>0&&(v+="".concat(x,","))}),d+="".concat(w).concat(f,'{content:"').concat(v,'"}').concat(_o)},p=0;p<c;p++)u(p);return d}(o)})}return e.registerId=function(t){return ln(t)},e.prototype.rehydrate=function(){!this.server&&Mn&&Gs(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(me(me({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new Jf(o):r?new Zf(o):new Qf(o)}(this.options),new Vf(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(ln(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(ln(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(ln(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),tp=/&/g,np=/^\s*\/\/.*$/gm;function ba(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=ba(n.children,t)),n})}function rp(e){var t,n,r,o=At,s=o.options,a=s===void 0?At:s,c=o.plugins,d=c===void 0?Jn:c,u=function(g,h,w){return w.startsWith(n)&&w.endsWith(n)&&w.replaceAll(n,"").length>0?".".concat(t):g},p=d.slice();p.push(function(g){g.type===Xn&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(tp,n).replace(r,u))}),a.prefix&&p.push(Cf),p.push(wf);var m=function(g,h,w,f){h===void 0&&(h=""),w===void 0&&(w=""),f===void 0&&(f="&"),t=f,n=h,r=new RegExp("\\".concat(n,"\\b"),"g");var v=g.replace(np,""),x=yf(w||h?"".concat(w," ").concat(h," { ").concat(v," }"):v);a.namespace&&(x=ba(x,a.namespace));var y=[];return In(x,bf(p.concat(Rf(function(E){return y.push(E)})))),y};return m.hash=d.length?d.reduce(function(g,h){return h.name||Lt(15),tt(g,h.name)},pa).toString():"",m}var op=new wa,so=rp(),Ra=Z.createContext({shouldForwardProp:void 0,styleSheet:op,stylis:so});Ra.Consumer;Z.createContext(void 0);function Zs(){return Z.useContext(Ra)}var Qs=function(){function e(t,n){var r=this;this.inject=function(o,s){s===void 0&&(s=so);var a=r.name+s.hash;o.hasNameForId(r.id,a)||o.insertRules(r.id,a,s(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Wo(this,function(){throw Lt(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=so),this.name+t.hash},e}(),sp=function(e){return e>="A"&&e<="Z"};function Js(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;sp(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ca=function(e){return e==null||e===!1||e===""},Sa=function(e){var t,n,r=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!Ca(s)&&(Array.isArray(s)&&s.isCss||Nt(s)?r.push("".concat(Js(o),":"),s,";"):$t(s)?r.push.apply(r,jt(jt(["".concat(o," {")],Sa(s),!1),["}"],!1)):r.push("".concat(Js(o),": ").concat((t=o,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Sf||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ot(e,t,n,r){if(Ca(e))return[];if(Fo(e))return[".".concat(e.styledComponentId)];if(Nt(e)){if(!Nt(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Qs||$t(o)||o===null||console.error("".concat(ha(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),ot(o,t,n,r)}var s;return e instanceof Qs?n?(e.inject(n,r),[e.getName(r)]):[e]:$t(e)?Sa(e):Array.isArray(e)?Array.prototype.concat.apply(Jn,e.map(function(a){return ot(a,t,n,r)})):[e.toString()]}function ip(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Nt(n)&&!Fo(n))return!1}return!0}var ap=ma(Qn),cp=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&ip(t),this.componentId=n,this.baseHash=tt(ap,n),this.baseStyle=r,wa.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=nt(o,this.staticRulesId);else{var s=Xs(ot(this.rules,t,n,r)),a=ro(tt(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,a)){var c=r(s,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,c)}o=nt(o,a),this.staticRulesId=a}else{for(var d=tt(this.baseHash,r.hash),u="",p=0;p<this.rules.length;p++){var m=this.rules[p];if(typeof m=="string")u+=m,process.env.NODE_ENV!=="production"&&(d=tt(d,m));else if(m){var g=Xs(ot(m,t,n,r));d=tt(d,g+p),u+=g}}if(u){var h=ro(d>>>0);n.hasNameForId(this.componentId,h)||n.insertRules(this.componentId,h,r(u,".".concat(h),void 0,this.componentId)),o=nt(o,h)}}return o},e}(),ja=Z.createContext(void 0);ja.Consumer;var Pr={},ei=new Set;function lp(e,t,n){var r=Fo(e),o=e,s=!jr(e),a=t.attrs,c=a===void 0?Jn:a,d=t.componentId,u=d===void 0?function(R,C){var S=typeof R!="string"?"sc":Vs(R);Pr[S]=(Pr[S]||0)+1;var b="".concat(S,"-").concat(Of(Qn+S+Pr[S]));return C?"".concat(C,"-").concat(b):b}(t.displayName,t.parentComponentId):d,p=t.displayName,m=p===void 0?function(R){return jr(R)?"styled.".concat(R):"Styled(".concat(ha(R),")")}(e):p,g=t.displayName&&t.componentId?"".concat(Vs(t.displayName),"-").concat(t.componentId):t.componentId||u,h=r&&o.attrs?o.attrs.concat(c).filter(Boolean):c,w=t.shouldForwardProp;if(r&&o.shouldForwardProp){var f=o.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;w=function(R,C){return f(R,C)&&v(R,C)}}else w=f}var x=new cp(n,g,r?o.componentStyle:void 0);function y(R,C){return function(S,b,P){var N=S.attrs,k=S.componentStyle,U=S.defaultProps,Y=S.foldedComponentIds,W=S.styledComponentId,T=S.target,B=Z.useContext(ja),M=Zs(),L=S.shouldForwardProp||M.shouldForwardProp;process.env.NODE_ENV!=="production"&&Z.useDebugValue(W);var $=Tf(b,B,U)||At,H=function(O,z,A){for(var F,V=me(me({},z),{className:void 0,theme:A}),G=0;G<O.length;G+=1){var Q=Nt(F=O[G])?F(V):F;for(var K in Q)V[K]=K==="className"?nt(V[K],Q[K]):K==="style"?me(me({},V[K]),Q[K]):Q[K]}return z.className&&(V.className=nt(V.className,z.className)),V}(N,b,$),te=H.as||T,J={};for(var j in H)H[j]===void 0||j[0]==="$"||j==="as"||j==="theme"&&H.theme===$||(j==="forwardedAs"?J.as=H.forwardedAs:L&&!L(j,te)||(J[j]=H[j],L||process.env.NODE_ENV!=="development"||sf(j)||ei.has(j)||!no.has(te)||(ei.add(j),console.warn('styled-components: it looks like an unknown prop "'.concat(j,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var D=function(O,z){var A=Zs(),F=O.generateAndInjectStyles(z,A.styleSheet,A.stylis);return process.env.NODE_ENV!=="production"&&Z.useDebugValue(F),F}(k,H);process.env.NODE_ENV!=="production"&&S.warnTooManyClasses&&S.warnTooManyClasses(D);var _=nt(Y,W);return D&&(_+=" "+D),H.className&&(_+=" "+H.className),J[jr(te)&&!no.has(te)?"class":"className"]=_,J.ref=P,Z.createElement(te,J)}(E,R,C)}y.displayName=m;var E=Z.forwardRef(y);return E.attrs=h,E.componentStyle=x,E.displayName=m,E.shouldForwardProp=w,E.foldedComponentIds=r?nt(o.foldedComponentIds,o.styledComponentId):"",E.styledComponentId=g,E.target=r?o.target:e,Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(R){this._foldedDefaultProps=r?function(C){for(var S=[],b=1;b<arguments.length;b++)S[b-1]=arguments[b];for(var P=0,N=S;P<N.length;P++)oo(C,N[P],!0);return C}({},o.defaultProps,R):R}}),process.env.NODE_ENV!=="production"&&(Pf(m,g),E.warnTooManyClasses=function(R,C){var S={},b=!1;return function(P){if(!b&&(S[P]=!0,Object.keys(S).length>=200)){var N=C?' with the id of "'.concat(C,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(R).concat(N,`.
46
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Bf(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(a){n=n.replace(/%[a-z]/,a)}),n}function Lt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Bf.apply(void 0,jt([Wf[e]],t,!1)).trim())}var Hf=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,s=o;t>=s;)if((s<<=1)<0)throw Lt(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var a=o;a<s;a++)this.groupSizes[a]=0}for(var c=this.indexOfGroup(t+1),d=(a=0,n.length);a<d;a++)this.tag.insertRule(c,n[a])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var s=r;s<o;s++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),s=o+r,a=o;a<s;a++)n+="".concat(this.tag.getRule(a)).concat(_o);return n},e}(),Vf=1<<30,Pn=new Map,Ln=new Map,Tn=1,ln=function(e){if(Pn.has(e))return Pn.get(e);for(;Ln.has(Tn);)Tn++;var t=Tn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Vf))throw Lt(16,"".concat(t));return Pn.set(e,t),Ln.set(t,e),t},zf=function(e,t){Tn=t+1,Pn.set(e,t),Ln.set(t,e)},Uf="style[".concat(st,"][").concat(fa,'="').concat(Qn,'"]'),Yf=new RegExp("^".concat(st,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Kf=function(e,t,n){for(var r,o=n.split(","),s=0,a=o.length;s<a;s++)(r=o[s])&&e.registerName(t,r)},Xf=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(_o),o=[],s=0,a=r.length;s<a;s++){var c=r[s].trim();if(c){var d=c.match(Yf);if(d){var u=0|parseInt(d[1],10),p=d[2];u!==0&&(zf(p,u),Kf(e,p,d[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(c)}}},Gs=function(e){for(var t=document.querySelectorAll(Uf),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(st)!==da&&(Xf(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Gf(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Ea=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(c){var d=Array.from(c.querySelectorAll("style[".concat(st,"]")));return d[d.length-1]}(n),s=o!==void 0?o.nextSibling:null;r.setAttribute(st,da),r.setAttribute(fa,Qn);var a=Gf();return a&&r.setAttribute("nonce",a),n.insertBefore(r,s),r},qf=function(){function e(t){this.element=Ea(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,s=r.length;o<s;o++){var a=r[o];if(a.ownerNode===n)return a}throw Lt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),Zf=function(){function e(t){this.element=Ea(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),Qf=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),qs=Mn,Jf={isServer:!Mn,useCSSOMInjection:!Sf},wa=function(){function e(t,n,r){t===void 0&&(t=At),n===void 0&&(n={});var o=this;this.options=me(me({},Jf),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Mn&&qs&&(qs=!1,Gs(this)),Wo(this,function(){return function(s){for(var a=s.getTag(),c=a.length,d="",u=function(m){var g=function(y){return Ln.get(y)}(m);if(g===void 0)return"continue";var h=s.names.get(g),E=a.getGroup(m);if(h===void 0||!h.size||E.length===0)return"continue";var f="".concat(st,".g").concat(m,'[id="').concat(g,'"]'),v="";h!==void 0&&h.forEach(function(y){y.length>0&&(v+="".concat(y,","))}),d+="".concat(E).concat(f,'{content:"').concat(v,'"}').concat(_o)},p=0;p<c;p++)u(p);return d}(o)})}return e.registerId=function(t){return ln(t)},e.prototype.rehydrate=function(){!this.server&&Mn&&Gs(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(me(me({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new Qf(o):r?new qf(o):new Zf(o)}(this.options),new Hf(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(ln(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(ln(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(ln(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ep=/&/g,tp=/^\s*\/\/.*$/gm;function ba(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=ba(n.children,t)),n})}function np(e){var t,n,r,o=At,s=o.options,a=s===void 0?At:s,c=o.plugins,d=c===void 0?Jn:c,u=function(g,h,E){return E.startsWith(n)&&E.endsWith(n)&&E.replaceAll(n,"").length>0?".".concat(t):g},p=d.slice();p.push(function(g){g.type===Xn&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(ep,n).replace(r,u))}),a.prefix&&p.push(Rf),p.push(Ef);var m=function(g,h,E,f){h===void 0&&(h=""),E===void 0&&(E=""),f===void 0&&(f="&"),t=f,n=h,r=new RegExp("\\".concat(n,"\\b"),"g");var v=g.replace(tp,""),y=xf(E||h?"".concat(E," ").concat(h," { ").concat(v," }"):v);a.namespace&&(y=ba(y,a.namespace));var x=[];return In(y,wf(p.concat(bf(function(b){return x.push(b)})))),x};return m.hash=d.length?d.reduce(function(g,h){return h.name||Lt(15),tt(g,h.name)},pa).toString():"",m}var rp=new wa,so=np(),Ra=Z.createContext({shouldForwardProp:void 0,styleSheet:rp,stylis:so});Ra.Consumer;Z.createContext(void 0);function Zs(){return Z.useContext(Ra)}var Qs=function(){function e(t,n){var r=this;this.inject=function(o,s){s===void 0&&(s=so);var a=r.name+s.hash;o.hasNameForId(r.id,a)||o.insertRules(r.id,a,s(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Wo(this,function(){throw Lt(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=so),this.name+t.hash},e}(),op=function(e){return e>="A"&&e<="Z"};function Js(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;op(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ca=function(e){return e==null||e===!1||e===""},Sa=function(e){var t,n,r=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!Ca(s)&&(Array.isArray(s)&&s.isCss||Nt(s)?r.push("".concat(Js(o),":"),s,";"):$t(s)?r.push.apply(r,jt(jt(["".concat(o," {")],Sa(s),!1),["}"],!1)):r.push("".concat(Js(o),": ").concat((t=o,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Cf||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ot(e,t,n,r){if(Ca(e))return[];if(Fo(e))return[".".concat(e.styledComponentId)];if(Nt(e)){if(!Nt(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Qs||$t(o)||o===null||console.error("".concat(ha(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),ot(o,t,n,r)}var s;return e instanceof Qs?n?(e.inject(n,r),[e.getName(r)]):[e]:$t(e)?Sa(e):Array.isArray(e)?Array.prototype.concat.apply(Jn,e.map(function(a){return ot(a,t,n,r)})):[e.toString()]}function sp(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Nt(n)&&!Fo(n))return!1}return!0}var ip=ma(Qn),ap=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&sp(t),this.componentId=n,this.baseHash=tt(ip,n),this.baseStyle=r,wa.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=nt(o,this.staticRulesId);else{var s=Xs(ot(this.rules,t,n,r)),a=ro(tt(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,a)){var c=r(s,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,c)}o=nt(o,a),this.staticRulesId=a}else{for(var d=tt(this.baseHash,r.hash),u="",p=0;p<this.rules.length;p++){var m=this.rules[p];if(typeof m=="string")u+=m,process.env.NODE_ENV!=="production"&&(d=tt(d,m));else if(m){var g=Xs(ot(m,t,n,r));d=tt(d,g+p),u+=g}}if(u){var h=ro(d>>>0);n.hasNameForId(this.componentId,h)||n.insertRules(this.componentId,h,r(u,".".concat(h),void 0,this.componentId)),o=nt(o,h)}}return o},e}(),ja=Z.createContext(void 0);ja.Consumer;var Pr={},ei=new Set;function cp(e,t,n){var r=Fo(e),o=e,s=!jr(e),a=t.attrs,c=a===void 0?Jn:a,d=t.componentId,u=d===void 0?function(R,C){var S=typeof R!="string"?"sc":Vs(R);Pr[S]=(Pr[S]||0)+1;var w="".concat(S,"-").concat($f(Qn+S+Pr[S]));return C?"".concat(C,"-").concat(w):w}(t.displayName,t.parentComponentId):d,p=t.displayName,m=p===void 0?function(R){return jr(R)?"styled.".concat(R):"Styled(".concat(ha(R),")")}(e):p,g=t.displayName&&t.componentId?"".concat(Vs(t.displayName),"-").concat(t.componentId):t.componentId||u,h=r&&o.attrs?o.attrs.concat(c).filter(Boolean):c,E=t.shouldForwardProp;if(r&&o.shouldForwardProp){var f=o.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;E=function(R,C){return f(R,C)&&v(R,C)}}else E=f}var y=new ap(n,g,r?o.componentStyle:void 0);function x(R,C){return function(S,w,P){var N=S.attrs,k=S.componentStyle,U=S.defaultProps,Y=S.foldedComponentIds,W=S.styledComponentId,T=S.target,B=Z.useContext(ja),M=Zs(),L=S.shouldForwardProp||M.shouldForwardProp;process.env.NODE_ENV!=="production"&&Z.useDebugValue(W);var $=Pf(w,B,U)||At,H=function(O,z,A){for(var F,V=me(me({},z),{className:void 0,theme:A}),G=0;G<O.length;G+=1){var Q=Nt(F=O[G])?F(V):F;for(var K in Q)V[K]=K==="className"?nt(V[K],Q[K]):K==="style"?me(me({},V[K]),Q[K]):Q[K]}return z.className&&(V.className=nt(V.className,z.className)),V}(N,w,$),te=H.as||T,J={};for(var j in H)H[j]===void 0||j[0]==="$"||j==="as"||j==="theme"&&H.theme===$||(j==="forwardedAs"?J.as=H.forwardedAs:L&&!L(j,te)||(J[j]=H[j],L||process.env.NODE_ENV!=="development"||of(j)||ei.has(j)||!no.has(te)||(ei.add(j),console.warn('styled-components: it looks like an unknown prop "'.concat(j,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var D=function(O,z){var A=Zs(),F=O.generateAndInjectStyles(z,A.styleSheet,A.stylis);return process.env.NODE_ENV!=="production"&&Z.useDebugValue(F),F}(k,H);process.env.NODE_ENV!=="production"&&S.warnTooManyClasses&&S.warnTooManyClasses(D);var _=nt(Y,W);return D&&(_+=" "+D),H.className&&(_+=" "+H.className),J[jr(te)&&!no.has(te)?"class":"className"]=_,J.ref=P,Z.createElement(te,J)}(b,R,C)}x.displayName=m;var b=Z.forwardRef(x);return b.attrs=h,b.componentStyle=y,b.displayName=m,b.shouldForwardProp=E,b.foldedComponentIds=r?nt(o.foldedComponentIds,o.styledComponentId):"",b.styledComponentId=g,b.target=r?o.target:e,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(R){this._foldedDefaultProps=r?function(C){for(var S=[],w=1;w<arguments.length;w++)S[w-1]=arguments[w];for(var P=0,N=S;P<N.length;P++)oo(C,N[P],!0);return C}({},o.defaultProps,R):R}}),process.env.NODE_ENV!=="production"&&(jf(m,g),b.warnTooManyClasses=function(R,C){var S={},w=!1;return function(P){if(!w&&(S[P]=!0,Object.keys(S).length>=200)){var N=C?' with the id of "'.concat(C,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(R).concat(N,`.
47
47
  `)+`Consider using the attrs method, together with a style object for frequently changed styles.
48
48
  Example:
49
49
  const Component = styled.div.attrs(props => ({
@@ -52,11 +52,11 @@ Example:
52
52
  },
53
53
  }))\`width: 100%;\`
54
54
 
55
- <Component />`),b=!0,S={}}}}(m,g)),Wo(E,function(){return".".concat(E.styledComponentId)}),s&&ya(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),E}function ti(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ni=function(e){return Object.assign(e,{isCss:!0})};function Pa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Nt(e)||$t(e))return ni(ot(ti(Jn,jt([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ot(r):ni(ot(ti(r,t)))}function io(e,t,n){if(n===void 0&&(n=At),!t)throw Lt(1,t);var r=function(o){for(var s=[],a=1;a<arguments.length;a++)s[a-1]=arguments[a];return e(t,n,Pa.apply(void 0,jt([o],s,!1)))};return r.attrs=function(o){return io(e,t,me(me({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return io(e,t,me(me({},n),o))},r}var Ta=function(e){return io(lp,e)},I=Ta;no.forEach(function(e){I[e]=Ta(e)});process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
55
+ <Component />`),w=!0,S={}}}}(m,g)),Wo(b,function(){return".".concat(b.styledComponentId)}),s&&ya(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function ti(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ni=function(e){return Object.assign(e,{isCss:!0})};function Pa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Nt(e)||$t(e))return ni(ot(ti(Jn,jt([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ot(r):ni(ot(ti(r,t)))}function io(e,t,n){if(n===void 0&&(n=At),!t)throw Lt(1,t);var r=function(o){for(var s=[],a=1;a<arguments.length;a++)s[a-1]=arguments[a];return e(t,n,Pa.apply(void 0,jt([o],s,!1)))};return r.attrs=function(o){return io(e,t,me(me({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return io(e,t,me(me({},n),o))},r}var Ta=function(e){return io(cp,e)},I=Ta;no.forEach(function(e){I[e]=Ta(e)});process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
56
56
  Perhaps you're looking to import 'styled-components/native'?
57
57
  Read more about this at https://www.styled-components.com/docs/basics#react-native`);var un="__sc-".concat(st,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[un]||(window[un]=0),window[un]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
58
58
 
59
- See https://s-c.sh/2BAXzed for more info.`),window[un]+=1);const up=I.svg`
59
+ See https://s-c.sh/2BAXzed for more info.`),window[un]+=1);const lp=I.svg`
60
60
  animation: spin 1s linear infinite;
61
61
 
62
62
  @keyframes spin {
@@ -68,9 +68,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[un]+=1);const up=I.svg`
68
68
  transform: rotate(360deg);
69
69
  }
70
70
  }
71
- `;function Aa({variant:e="primary",dark:t}){const n=()=>{switch(e){case"secondary":return l.colors.fg.secondary;case"error":return l.colors.fg.accent.error;default:return t?l.colors.white:l.colors.fg.primary}},r=()=>t?l.colors.neutral["0-A8"]:l.colors.neutral["800-A8"];return l.jsxRuntimeExports.jsxs(up,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"8",stroke:r(),strokeOpacity:"0.08",strokeWidth:"3"}),l.jsxRuntimeExports.jsx("path",{d:"M12 4C16.4183 4 20 7.58172 20 12C20 14.1304 19.1672 16.0663 17.8095 17.5",stroke:n(),strokeWidth:"3",strokeLinecap:"round"})]})}const en=()=>{const[e,t]=Z.useState(window.innerWidth<=768),n=Z.useRef(window.innerWidth);return Z.useEffect(()=>{const r=()=>{const o=window.innerWidth;o<=768&&n.current>768?t(!0):o>768&&n.current<=768&&t(!1),n.current=o};return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),e},dp=e=>{switch(e){case"primary":return{borderColor:`${l.colors.neutral["800-A16"]}`,backgroundColor:`${l.colors.primary[500]}`,color:`${l.colors.primary[900]}`,"&:hover":{backgroundColor:`${l.colors.primary[600]}`}};case"secondary":return{borderColor:`${l.colors.neutral["800-A16"]}`,backgroundColor:`${l.colors.primary[900]}`,color:`${l.colors.white}`,"&:hover":{backgroundColor:`${l.colors.primary[950]}`}};case"tertiary":return{borderColor:`${l.colors.neutral["800-A08"]}`,backgroundColor:`${l.colors.neutral["800-A04"]}`,color:`${l.colors.primary[900]}`,"&:hover":{backgroundColor:`${l.colors.neutral["800-A08"]}`}};case"destructive":return{borderColor:`${l.colors.palePeach}`,backgroundColor:`${l.colors.cream}`,color:`${l.colors.fg.accent.error}`,"&:hover":{backgroundColor:`${l.colors.coralTint}`}}}},fp=I.button`
71
+ `;function Aa({variant:e="primary",dark:t}){const n=()=>{switch(e){case"secondary":return l.colors.fg.secondary;case"error":return l.colors.fg.accent.error;default:return t?l.colors.white:l.colors.fg.primary}},r=()=>t?l.colors.neutral["0-A8"]:l.colors.neutral["800-A8"];return l.jsxRuntimeExports.jsxs(lp,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"8",stroke:r(),strokeOpacity:"0.08",strokeWidth:"3"}),l.jsxRuntimeExports.jsx("path",{d:"M12 4C16.4183 4 20 7.58172 20 12C20 14.1304 19.1672 16.0663 17.8095 17.5",stroke:n(),strokeWidth:"3",strokeLinecap:"round"})]})}const en=()=>{const[e,t]=Z.useState(window.innerWidth<=768),n=Z.useRef(window.innerWidth);return Z.useEffect(()=>{const r=()=>{const o=window.innerWidth;o<=768&&n.current>768?t(!0):o>768&&n.current<=768&&t(!1),n.current=o};return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),e},up=e=>{switch(e){case"primary":return{borderColor:`${l.colors.neutral["800-A16"]}`,backgroundColor:`${l.colors.primary[500]}`,color:`${l.colors.primary[900]}`,"&:hover":{backgroundColor:`${l.colors.primary[600]}`}};case"secondary":return{borderColor:`${l.colors.neutral["800-A16"]}`,backgroundColor:`${l.colors.primary[900]}`,color:`${l.colors.white}`,"&:hover":{backgroundColor:`${l.colors.primary[950]}`}};case"tertiary":return{borderColor:`${l.colors.neutral["800-A08"]}`,backgroundColor:`${l.colors.neutral["800-A04"]}`,color:`${l.colors.primary[900]}`,"&:hover":{backgroundColor:`${l.colors.neutral["800-A08"]}`}};case"destructive":return{borderColor:`${l.colors.palePeach}`,backgroundColor:`${l.colors.cream}`,color:`${l.colors.fg.accent.error}`,"&:hover":{backgroundColor:`${l.colors.coralTint}`}}}},dp=I.button`
72
72
  ${l.typography.label};
73
- ${e=>dp(e.$variant)};
73
+ ${e=>up(e.$variant)};
74
74
  align-items: center;
75
75
  border-radius: 0.75rem;
76
76
  border-width: 1px;
@@ -88,14 +88,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[un]+=1);const up=I.svg`
88
88
  &:disabled {
89
89
  opacity: 0.4;
90
90
  }
91
- `;function pp({variant:e="primary",fullWidth:t,size:n,children:r,loading:o,...s}){const a=()=>{switch(e){case"tertiary":return"secondary";case"destructive":return"error";default:return"primary"}},c=en(),d=!n&&c?"large":"medium";return l.jsxRuntimeExports.jsxs(fp,{$variant:e,$fullWidth:!!t,$size:d,...s,children:[r,o&&l.jsxRuntimeExports.jsx(Aa,{variant:a(),dark:e==="secondary"})]})}const mp=I.div`
91
+ `;function fp({variant:e="primary",fullWidth:t,size:n,children:r,loading:o,...s}){const a=()=>{switch(e){case"tertiary":return"secondary";case"destructive":return"error";default:return"primary"}},c=en(),d=!n&&c?"large":"medium";return l.jsxRuntimeExports.jsxs(dp,{$variant:e,$fullWidth:!!t,$size:d,...s,children:[r,o&&l.jsxRuntimeExports.jsx(Aa,{variant:a(),dark:e==="secondary"})]})}const pp=I.div`
92
92
  padding: 0.375rem 0.5rem;
93
93
  font-size: 0.688rem;
94
94
  color: ${e=>e.$error?l.colors.fg.accent.error:l.colors.fg.secondary};
95
95
  border-radius: 0 0 0.5rem 0.5rem;
96
96
  background-color: ${e=>e.$error?l.colors.sf.light.error:l.colors.sf.tertiary};
97
97
  margin: 0 0.625rem;
98
- `;function _n({error:e,children:t,...n}){return l.jsxRuntimeExports.jsx(mp,{$error:!!e,...n,children:t})}const hp=I.div`
98
+ `;function _n({error:e,children:t,...n}){return l.jsxRuntimeExports.jsx(pp,{$error:!!e,...n,children:t})}const mp=I.div`
99
99
  height: 3.063rem;
100
100
  border-radius: 0.75rem;
101
101
  background: ${l.colors.sf.tertiary};
@@ -114,7 +114,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[un]+=1);const up=I.svg`
114
114
  }
115
115
  }
116
116
  }
117
- `,vp=I.input`
117
+ `,hp=I.input`
118
118
  width: 100%;
119
119
  padding-top: 0.25rem;
120
120
  background: transparent;
@@ -126,12 +126,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[un]+=1);const up=I.svg`
126
126
  &::-webkit-calendar-picker-indicator {
127
127
  visibility: hidden;
128
128
  }
129
- `,gp=I.div`
129
+ `,vp=I.div`
130
130
  position: relative;
131
131
  height: 100%;
132
132
  width: 100%;
133
133
  padding: 0.875rem 0;
134
- `,xp=I.label`
134
+ `,gp=I.label`
135
135
  position: absolute;
136
136
  top: 0;
137
137
  left: 0;
@@ -145,8 +145,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[un]+=1);const up=I.svg`
145
145
  transform: translateY(-5%);
146
146
  font-size: 0.75rem;
147
147
  cursor: pointer;
148
- `;function yp({label:e,value:t,onChange:n,error:r,helperText:o,time:s,...a}){const c=Z.useRef(null),d=Z.useId(),u=()=>{if(c.current)try{c.current.showPicker(),c.current.focus()}catch{c.current.focus()}};return l.jsxRuntimeExports.jsxs("div",{children:[l.jsxRuntimeExports.jsxs(hp,{$error:!!r,onClick:u,children:[l.jsxRuntimeExports.jsx(l.Calendar,{}),l.jsxRuntimeExports.jsxs(gp,{children:[l.jsxRuntimeExports.jsx(vp,{style:{cursor:"text",width:"fit-content"},ref:c,type:s?"datetime-local":"date",id:`${d}-${e}`,required:!0,onClick:p=>p.stopPropagation(),onChange:p=>n(p.target.value),value:t,...a}),l.jsxRuntimeExports.jsx(xp,{htmlFor:`${d}-${e}`,children:e})]})]}),(r||o)&&l.jsxRuntimeExports.jsx(_n,{error:!!r,children:r||o})]})}function ze(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 Ep(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Na(...e){return t=>e.forEach(n=>Ep(n,t))}function dt(...e){return i.useCallback(Na(...e),e)}function wp(e,t){const n=i.createContext(t),r=s=>{const{children:a,...c}=s,d=i.useMemo(()=>c,Object.values(c));return l.jsxRuntimeExports.jsx(n.Provider,{value:d,children:a})};r.displayName=e+"Provider";function o(s){const a=i.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function ft(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a),d=n.length;n=[...n,a];const u=m=>{var x;const{scope:g,children:h,...w}=m,f=((x=g==null?void 0:g[e])==null?void 0:x[d])||c,v=i.useMemo(()=>w,Object.values(w));return l.jsxRuntimeExports.jsx(f.Provider,{value:v,children:h})};u.displayName=s+"Provider";function p(m,g){var f;const h=((f=g==null?void 0:g[e])==null?void 0:f[d])||c,w=i.useContext(h);if(w)return w;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[u,p]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const d=(c==null?void 0:c[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return o.scopeName=e,[r,bp(o,...t)]}function bp(...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(s){const a=r.reduce((c,{useScope:d,scopeName:u})=>{const m=d(s)[`__scope${u}`];return{...c,...m}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var ce=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},Rp=i.useId||(()=>{}),Cp=0;function xe(e){const[t,n]=i.useState(Rp());return ce(()=>{n(r=>r??String(Cp++))},[e]),t?`radix-${t}`:""}function ae(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function qt({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Sp({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:r,c=ae(n),d=i.useCallback(u=>{if(s){const m=typeof u=="function"?u(e):u;m!==e&&c(m)}else o(u)},[s,e,o,c]);return[a,d]}function Sp({defaultProp:e,onChange:t}){const n=i.useState(e),[r]=n,o=i.useRef(r),s=ae(t);return i.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}var er=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),s=o.find(Pp);if(s){const a=s.props.children,c=o.map(d=>d===s?i.Children.count(a)>1?i.Children.only(null):i.isValidElement(a)?a.props.children:null:d);return l.jsxRuntimeExports.jsx(ao,{...r,ref:t,children:i.isValidElement(a)?i.cloneElement(a,void 0,c):null})}return l.jsxRuntimeExports.jsx(ao,{...r,ref:t,children:n})});er.displayName="Slot";var ao=i.forwardRef((e,t)=>{const{children:n,...r}=e;if(i.isValidElement(n)){const o=Ap(n);return i.cloneElement(n,{...Tp(r,n.props),ref:t?Na(t,o):o})}return i.Children.count(n)>1?i.Children.only(null):null});ao.displayName="SlotClone";var jp=({children:e})=>l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e});function Pp(e){return i.isValidElement(e)&&e.type===jp}function Tp(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{s(...c),o(...c)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ap(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 Np=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Fe=Np.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:s,...a}=r,c=s?er:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsxRuntimeExports.jsx(c,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function $p(e,t){e&&Ze.flushSync(()=>e.dispatchEvent(t))}function tr(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e);i.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 Op="DismissableLayer",co="dismissableLayer.update",Dp="dismissableLayer.pointerDownOutside",kp="dismissableLayer.focusOutside",ri,$a=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Oa=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext($a),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=i.useState({}),w=dt(t,b=>m(b)),f=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(v),y=p?f.indexOf(p):-1,E=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=Lp(b=>{const P=b.target,N=[...u.branches].some(k=>k.contains(P));!R||N||(o==null||o(b),a==null||a(b),b.defaultPrevented||c==null||c())},g),S=_p(b=>{const P=b.target;[...u.branches].some(k=>k.contains(P))||(s==null||s(b),a==null||a(b),b.defaultPrevented||c==null||c())},g);return tr(b=>{y===u.layers.size-1&&(r==null||r(b),!b.defaultPrevented&&c&&(b.preventDefault(),c()))},g),i.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ri=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),oi(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=ri)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),oi())},[p,u]),i.useEffect(()=>{const b=()=>h({});return document.addEventListener(co,b),()=>document.removeEventListener(co,b)},[]),l.jsxRuntimeExports.jsx(Fe.div,{...d,ref:w,style:{pointerEvents:E?R?"auto":"none":void 0,...e.style},onFocusCapture:ze(e.onFocusCapture,S.onFocusCapture),onBlurCapture:ze(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:ze(e.onPointerDownCapture,C.onPointerDownCapture)})});Oa.displayName=Op;var Ip="DismissableLayerBranch",Mp=i.forwardRef((e,t)=>{const n=i.useContext($a),r=i.useRef(null),o=dt(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsxRuntimeExports.jsx(Fe.div,{...e,ref:o})});Mp.displayName=Ip;function Lp(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){Da(Dp,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function _p(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&Da(kp,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function oi(){const e=new CustomEvent(co);document.dispatchEvent(e)}function Da(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?$p(o,s):o.dispatchEvent(s)}var Tr="focusScope.autoFocusOnMount",Ar="focusScope.autoFocusOnUnmount",si={bubbles:!1,cancelable:!0},Fp="FocusScope",ka=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[c,d]=i.useState(null),u=ae(o),p=ae(s),m=i.useRef(null),g=dt(t,f=>d(f)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let f=function(E){if(h.paused||!c)return;const R=E.target;c.contains(R)?m.current=R:Be(m.current,{select:!0})},v=function(E){if(h.paused||!c)return;const R=E.relatedTarget;R!==null&&(c.contains(R)||Be(m.current,{select:!0}))},x=function(E){if(document.activeElement===document.body)for(const C of E)C.removedNodes.length>0&&Be(c)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const y=new MutationObserver(x);return c&&y.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),y.disconnect()}}},[r,c,h.paused]),i.useEffect(()=>{if(c){ai.add(h);const f=document.activeElement;if(!c.contains(f)){const x=new CustomEvent(Tr,si);c.addEventListener(Tr,u),c.dispatchEvent(x),x.defaultPrevented||(Wp(Up(Ia(c)),{select:!0}),document.activeElement===f&&Be(c))}return()=>{c.removeEventListener(Tr,u),setTimeout(()=>{const x=new CustomEvent(Ar,si);c.addEventListener(Ar,p),c.dispatchEvent(x),x.defaultPrevented||Be(f??document.body,{select:!0}),c.removeEventListener(Ar,p),ai.remove(h)},0)}}},[c,u,p,h]);const w=i.useCallback(f=>{if(!n&&!r||h.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,x=document.activeElement;if(v&&x){const y=f.currentTarget,[E,R]=Bp(y);E&&R?!f.shiftKey&&x===R?(f.preventDefault(),n&&Be(E,{select:!0})):f.shiftKey&&x===E&&(f.preventDefault(),n&&Be(R,{select:!0})):x===y&&f.preventDefault()}},[n,r,h.paused]);return l.jsxRuntimeExports.jsx(Fe.div,{tabIndex:-1,...a,ref:g,onKeyDown:w})});ka.displayName=Fp;function Wp(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Be(r,{select:t}),document.activeElement!==n)return}function Bp(e){const t=Ia(e),n=ii(t,e),r=ii(t.reverse(),e);return[n,r]}function Ia(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 ii(e,t){for(const n of e)if(!Hp(n,{upTo:t}))return n}function Hp(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 Vp(e){return e instanceof HTMLInputElement&&"select"in e}function Be(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Vp(e)&&t&&e.select()}}var ai=zp();function zp(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ci(e,t),e.unshift(t)},remove(t){var n;e=ci(e,t),(n=e[0])==null||n.resume()}}}function ci(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Up(e){return e.filter(t=>t.tagName!=="A")}var Yp="Portal",Ma=i.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,s]=i.useState(!1);ce(()=>s(!0),[]);const a=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return a?Kn.createPortal(l.jsxRuntimeExports.jsx(Fe.div,{...r,ref:t}),a):null});Ma.displayName=Yp;function Kp(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var nr=e=>{const{present:t,children:n}=e,r=Xp(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),s=dt(r.ref,Gp(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:s}):null};nr.displayName="Presence";function Xp(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,d]=Kp(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=dn(r.current);s.current=c==="mounted"?u:"none"},[c]),ce(()=>{const u=r.current,p=o.current;if(p!==e){const g=s.current,h=dn(u);e?d("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(p&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),ce(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,m=h=>{const f=dn(r.current).includes(h.animationName);if(h.target===t&&f&&(d("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},g=h=>{h.target===t&&(s.current=dn(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function dn(e){return(e==null?void 0:e.animationName)||"none"}function Gp(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 Nr=0;function La(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??li()),document.body.insertAdjacentElement("beforeend",e[1]??li()),Nr++,()=>{Nr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Nr--}},[])}function li(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ie=function(){return ie=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ie.apply(this,arguments)};function tn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Bo(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var An="right-scroll-bar-position",Nn="width-before-scroll-bar",qp="with-scroll-bars-hidden",Zp="--removed-body-scroll-bar-size";function $r(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Qp(e,t){var n=Z.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Jp=typeof window<"u"?i.useLayoutEffect:i.useEffect,ui=new WeakMap;function em(e,t){var n=Qp(null,function(r){return e.forEach(function(o){return $r(o,r)})});return Jp(function(){var r=ui.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(c){s.has(c)||$r(c,null)}),s.forEach(function(c){o.has(c)||$r(c,a)})}ui.set(n,e)},[e]),n}function tm(e){return e}function nm(e,t){t===void 0&&(t=tm);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(s),a=n}var d=function(){var p=a;a=[],p.forEach(s)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(p){a.push(p),u()},filter:function(p){return a=a.filter(p),n}}}};return o}function _a(e){e===void 0&&(e={});var t=nm(null);return t.options=ie({async:!0,ssr:!1},e),t}var Fa=function(e){var t=e.sideCar,n=tn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,ie({},n))};Fa.isSideCarExport=!0;function Wa(e,t){return e.useMedium(t),Fa}var Ba=_a(),Or=function(){},rr=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Or,onWheelCapture:Or,onTouchMoveCapture:Or}),o=r[0],s=r[1],a=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,p=e.enabled,m=e.shards,g=e.sideCar,h=e.noIsolation,w=e.inert,f=e.allowPinchZoom,v=e.as,x=v===void 0?"div":v,y=e.gapMode,E=tn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=g,C=em([n,t]),S=ie(ie({},E),o);return i.createElement(i.Fragment,null,p&&i.createElement(R,{sideCar:Ba,removeScrollBar:u,shards:m,noIsolation:h,inert:w,setCallbacks:s,allowPinchZoom:!!f,lockRef:n,gapMode:y}),a?i.cloneElement(i.Children.only(c),ie(ie({},S),{ref:C})):i.createElement(x,ie({},S,{className:d,ref:C}),c))});rr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};rr.classNames={fullWidth:Nn,zeroRight:An};var Ha=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function rm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ha();return t&&e.setAttribute("nonce",t),e}function om(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function sm(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var im=function(){var e=0,t=null;return{add:function(n){e==0&&(t=rm())&&(om(t,n),sm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},am=function(){var e=im();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ho=function(){var e=am(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},cm={left:0,top:0,right:0,gap:0},Dr=function(e){return parseInt(e||"",10)||0},lm=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Dr(n),Dr(r),Dr(o)]},um=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return cm;var t=lm(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])}},dm=Ho(),Rt="data-scroll-locked",fm=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
149
- .`.concat(qp,` {
148
+ `;function xp({label:e,value:t,onChange:n,error:r,helperText:o,time:s,...a}){const c=Z.useRef(null),d=Z.useId(),u=()=>{if(c.current)try{c.current.showPicker(),c.current.focus()}catch{c.current.focus()}};return l.jsxRuntimeExports.jsxs("div",{children:[l.jsxRuntimeExports.jsxs(mp,{$error:!!r,onClick:u,children:[l.jsxRuntimeExports.jsx(l.Calendar,{}),l.jsxRuntimeExports.jsxs(vp,{children:[l.jsxRuntimeExports.jsx(hp,{style:{cursor:"text",width:"fit-content"},ref:c,type:s?"datetime-local":"date",id:`${d}-${e}`,required:!0,onClick:p=>p.stopPropagation(),onChange:p=>n(p.target.value),value:t,...a}),l.jsxRuntimeExports.jsx(gp,{htmlFor:`${d}-${e}`,children:e})]})]}),(r||o)&&l.jsxRuntimeExports.jsx(_n,{error:!!r,children:r||o})]})}function ze(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 yp(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Na(...e){return t=>e.forEach(n=>yp(n,t))}function dt(...e){return i.useCallback(Na(...e),e)}function Ep(e,t){const n=i.createContext(t),r=s=>{const{children:a,...c}=s,d=i.useMemo(()=>c,Object.values(c));return l.jsxRuntimeExports.jsx(n.Provider,{value:d,children:a})};r.displayName=e+"Provider";function o(s){const a=i.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function ft(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a),d=n.length;n=[...n,a];const u=m=>{var y;const{scope:g,children:h,...E}=m,f=((y=g==null?void 0:g[e])==null?void 0:y[d])||c,v=i.useMemo(()=>E,Object.values(E));return l.jsxRuntimeExports.jsx(f.Provider,{value:v,children:h})};u.displayName=s+"Provider";function p(m,g){var f;const h=((f=g==null?void 0:g[e])==null?void 0:f[d])||c,E=i.useContext(h);if(E)return E;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[u,p]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const d=(c==null?void 0:c[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return o.scopeName=e,[r,wp(o,...t)]}function wp(...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(s){const a=r.reduce((c,{useScope:d,scopeName:u})=>{const m=d(s)[`__scope${u}`];return{...c,...m}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var ce=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},bp=i.useId||(()=>{}),Rp=0;function xe(e){const[t,n]=i.useState(bp());return ce(()=>{n(r=>r??String(Rp++))},[e]),t?`radix-${t}`:""}function ae(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function qt({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Cp({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:r,c=ae(n),d=i.useCallback(u=>{if(s){const m=typeof u=="function"?u(e):u;m!==e&&c(m)}else o(u)},[s,e,o,c]);return[a,d]}function Cp({defaultProp:e,onChange:t}){const n=i.useState(e),[r]=n,o=i.useRef(r),s=ae(t);return i.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}var er=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),s=o.find(jp);if(s){const a=s.props.children,c=o.map(d=>d===s?i.Children.count(a)>1?i.Children.only(null):i.isValidElement(a)?a.props.children:null:d);return l.jsxRuntimeExports.jsx(ao,{...r,ref:t,children:i.isValidElement(a)?i.cloneElement(a,void 0,c):null})}return l.jsxRuntimeExports.jsx(ao,{...r,ref:t,children:n})});er.displayName="Slot";var ao=i.forwardRef((e,t)=>{const{children:n,...r}=e;if(i.isValidElement(n)){const o=Tp(n);return i.cloneElement(n,{...Pp(r,n.props),ref:t?Na(t,o):o})}return i.Children.count(n)>1?i.Children.only(null):null});ao.displayName="SlotClone";var Sp=({children:e})=>l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e});function jp(e){return i.isValidElement(e)&&e.type===Sp}function Pp(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{s(...c),o(...c)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Tp(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 Ap=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Fe=Ap.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:s,...a}=r,c=s?er:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsxRuntimeExports.jsx(c,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Np(e,t){e&&Ze.flushSync(()=>e.dispatchEvent(t))}function tr(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e);i.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 $p="DismissableLayer",co="dismissableLayer.update",Op="dismissableLayer.pointerDownOutside",Dp="dismissableLayer.focusOutside",ri,$a=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Oa=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext($a),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=i.useState({}),E=dt(t,w=>m(w)),f=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=f.indexOf(v),x=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=x>=y,C=Mp(w=>{const P=w.target,N=[...u.branches].some(k=>k.contains(P));!R||N||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=Lp(w=>{const P=w.target;[...u.branches].some(k=>k.contains(P))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return tr(w=>{x===u.layers.size-1&&(r==null||r(w),!w.defaultPrevented&&c&&(w.preventDefault(),c()))},g),i.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ri=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),oi(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=ri)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),oi())},[p,u]),i.useEffect(()=>{const w=()=>h({});return document.addEventListener(co,w),()=>document.removeEventListener(co,w)},[]),l.jsxRuntimeExports.jsx(Fe.div,{...d,ref:E,style:{pointerEvents:b?R?"auto":"none":void 0,...e.style},onFocusCapture:ze(e.onFocusCapture,S.onFocusCapture),onBlurCapture:ze(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:ze(e.onPointerDownCapture,C.onPointerDownCapture)})});Oa.displayName=$p;var kp="DismissableLayerBranch",Ip=i.forwardRef((e,t)=>{const n=i.useContext($a),r=i.useRef(null),o=dt(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsxRuntimeExports.jsx(Fe.div,{...e,ref:o})});Ip.displayName=kp;function Mp(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){Da(Op,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Lp(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&Da(Dp,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function oi(){const e=new CustomEvent(co);document.dispatchEvent(e)}function Da(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Np(o,s):o.dispatchEvent(s)}var Tr="focusScope.autoFocusOnMount",Ar="focusScope.autoFocusOnUnmount",si={bubbles:!1,cancelable:!0},_p="FocusScope",ka=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[c,d]=i.useState(null),u=ae(o),p=ae(s),m=i.useRef(null),g=dt(t,f=>d(f)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let f=function(b){if(h.paused||!c)return;const R=b.target;c.contains(R)?m.current=R:Be(m.current,{select:!0})},v=function(b){if(h.paused||!c)return;const R=b.relatedTarget;R!==null&&(c.contains(R)||Be(m.current,{select:!0}))},y=function(b){if(document.activeElement===document.body)for(const C of b)C.removedNodes.length>0&&Be(c)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const x=new MutationObserver(y);return c&&x.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),x.disconnect()}}},[r,c,h.paused]),i.useEffect(()=>{if(c){ai.add(h);const f=document.activeElement;if(!c.contains(f)){const y=new CustomEvent(Tr,si);c.addEventListener(Tr,u),c.dispatchEvent(y),y.defaultPrevented||(Fp(zp(Ia(c)),{select:!0}),document.activeElement===f&&Be(c))}return()=>{c.removeEventListener(Tr,u),setTimeout(()=>{const y=new CustomEvent(Ar,si);c.addEventListener(Ar,p),c.dispatchEvent(y),y.defaultPrevented||Be(f??document.body,{select:!0}),c.removeEventListener(Ar,p),ai.remove(h)},0)}}},[c,u,p,h]);const E=i.useCallback(f=>{if(!n&&!r||h.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,y=document.activeElement;if(v&&y){const x=f.currentTarget,[b,R]=Wp(x);b&&R?!f.shiftKey&&y===R?(f.preventDefault(),n&&Be(b,{select:!0})):f.shiftKey&&y===b&&(f.preventDefault(),n&&Be(R,{select:!0})):y===x&&f.preventDefault()}},[n,r,h.paused]);return l.jsxRuntimeExports.jsx(Fe.div,{tabIndex:-1,...a,ref:g,onKeyDown:E})});ka.displayName=_p;function Fp(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Be(r,{select:t}),document.activeElement!==n)return}function Wp(e){const t=Ia(e),n=ii(t,e),r=ii(t.reverse(),e);return[n,r]}function Ia(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 ii(e,t){for(const n of e)if(!Bp(n,{upTo:t}))return n}function Bp(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 Hp(e){return e instanceof HTMLInputElement&&"select"in e}function Be(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Hp(e)&&t&&e.select()}}var ai=Vp();function Vp(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ci(e,t),e.unshift(t)},remove(t){var n;e=ci(e,t),(n=e[0])==null||n.resume()}}}function ci(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function zp(e){return e.filter(t=>t.tagName!=="A")}var Up="Portal",Ma=i.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,s]=i.useState(!1);ce(()=>s(!0),[]);const a=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return a?Kn.createPortal(l.jsxRuntimeExports.jsx(Fe.div,{...r,ref:t}),a):null});Ma.displayName=Up;function Yp(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var nr=e=>{const{present:t,children:n}=e,r=Kp(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),s=dt(r.ref,Xp(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:s}):null};nr.displayName="Presence";function Kp(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,d]=Yp(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=dn(r.current);s.current=c==="mounted"?u:"none"},[c]),ce(()=>{const u=r.current,p=o.current;if(p!==e){const g=s.current,h=dn(u);e?d("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(p&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),ce(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,m=h=>{const f=dn(r.current).includes(h.animationName);if(h.target===t&&f&&(d("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},g=h=>{h.target===t&&(s.current=dn(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function dn(e){return(e==null?void 0:e.animationName)||"none"}function Xp(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 Nr=0;function La(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??li()),document.body.insertAdjacentElement("beforeend",e[1]??li()),Nr++,()=>{Nr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Nr--}},[])}function li(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ie=function(){return ie=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ie.apply(this,arguments)};function tn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Bo(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var An="right-scroll-bar-position",Nn="width-before-scroll-bar",Gp="with-scroll-bars-hidden",qp="--removed-body-scroll-bar-size";function $r(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Zp(e,t){var n=Z.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Qp=typeof window<"u"?i.useLayoutEffect:i.useEffect,ui=new WeakMap;function Jp(e,t){var n=Zp(null,function(r){return e.forEach(function(o){return $r(o,r)})});return Qp(function(){var r=ui.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(c){s.has(c)||$r(c,null)}),s.forEach(function(c){o.has(c)||$r(c,a)})}ui.set(n,e)},[e]),n}function em(e){return e}function tm(e,t){t===void 0&&(t=em);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(s),a=n}var d=function(){var p=a;a=[],p.forEach(s)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(p){a.push(p),u()},filter:function(p){return a=a.filter(p),n}}}};return o}function _a(e){e===void 0&&(e={});var t=tm(null);return t.options=ie({async:!0,ssr:!1},e),t}var Fa=function(e){var t=e.sideCar,n=tn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,ie({},n))};Fa.isSideCarExport=!0;function Wa(e,t){return e.useMedium(t),Fa}var Ba=_a(),Or=function(){},rr=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Or,onWheelCapture:Or,onTouchMoveCapture:Or}),o=r[0],s=r[1],a=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,p=e.enabled,m=e.shards,g=e.sideCar,h=e.noIsolation,E=e.inert,f=e.allowPinchZoom,v=e.as,y=v===void 0?"div":v,x=e.gapMode,b=tn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=g,C=Jp([n,t]),S=ie(ie({},b),o);return i.createElement(i.Fragment,null,p&&i.createElement(R,{sideCar:Ba,removeScrollBar:u,shards:m,noIsolation:h,inert:E,setCallbacks:s,allowPinchZoom:!!f,lockRef:n,gapMode:x}),a?i.cloneElement(i.Children.only(c),ie(ie({},S),{ref:C})):i.createElement(y,ie({},S,{className:d,ref:C}),c))});rr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};rr.classNames={fullWidth:Nn,zeroRight:An};var Ha=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function nm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ha();return t&&e.setAttribute("nonce",t),e}function rm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function om(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var sm=function(){var e=0,t=null;return{add:function(n){e==0&&(t=nm())&&(rm(t,n),om(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},im=function(){var e=sm();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ho=function(){var e=im(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},am={left:0,top:0,right:0,gap:0},Dr=function(e){return parseInt(e||"",10)||0},cm=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Dr(n),Dr(r),Dr(o)]},lm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return am;var t=cm(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])}},um=Ho(),Rt="data-scroll-locked",dm=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
149
+ .`.concat(Gp,` {
150
150
  overflow: hidden `).concat(r,`;
151
151
  padding-right: `).concat(c,"px ").concat(r,`;
152
152
  }
@@ -180,16 +180,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[un]+=1);const up=I.svg`
180
180
  }
181
181
 
182
182
  body[`).concat(Rt,`] {
183
- `).concat(Zp,": ").concat(c,`px;
183
+ `).concat(qp,": ").concat(c,`px;
184
184
  }
185
- `)},di=function(){var e=parseInt(document.body.getAttribute(Rt)||"0",10);return isFinite(e)?e:0},pm=function(){i.useEffect(function(){return document.body.setAttribute(Rt,(di()+1).toString()),function(){var e=di()-1;e<=0?document.body.removeAttribute(Rt):document.body.setAttribute(Rt,e.toString())}},[])},mm=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;pm();var s=i.useMemo(function(){return um(o)},[o]);return i.createElement(dm,{styles:fm(s,!t,o,n?"":"!important")})},lo=!1;if(typeof window<"u")try{var fn=Object.defineProperty({},"passive",{get:function(){return lo=!0,!0}});window.addEventListener("test",fn,fn),window.removeEventListener("test",fn,fn)}catch{lo=!1}var mt=lo?{passive:!1}:!1,hm=function(e){return e.tagName==="TEXTAREA"},Va=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!hm(e)&&n[t]==="visible")},vm=function(e){return Va(e,"overflowY")},gm=function(e){return Va(e,"overflowX")},fi=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=za(e,r);if(o){var s=Ua(e,r),a=s[1],c=s[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},xm=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ym=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},za=function(e,t){return e==="v"?vm(t):gm(t)},Ua=function(e,t){return e==="v"?xm(t):ym(t)},Em=function(e,t){return e==="h"&&t==="rtl"?-1:1},wm=function(e,t,n,r,o){var s=Em(e,window.getComputedStyle(t).direction),a=s*r,c=n.target,d=t.contains(c),u=!1,p=a>0,m=0,g=0;do{var h=Ua(e,c),w=h[0],f=h[1],v=h[2],x=f-v-s*w;(w||x)&&za(e,c)&&(m+=x,g+=w),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(p&&(Math.abs(m)<1||!o)||!p&&(Math.abs(g)<1||!o))&&(u=!0),u},pn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},pi=function(e){return[e.deltaX,e.deltaY]},mi=function(e){return e&&"current"in e?e.current:e},bm=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Rm=function(e){return`
185
+ `)},di=function(){var e=parseInt(document.body.getAttribute(Rt)||"0",10);return isFinite(e)?e:0},fm=function(){i.useEffect(function(){return document.body.setAttribute(Rt,(di()+1).toString()),function(){var e=di()-1;e<=0?document.body.removeAttribute(Rt):document.body.setAttribute(Rt,e.toString())}},[])},pm=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;fm();var s=i.useMemo(function(){return lm(o)},[o]);return i.createElement(um,{styles:dm(s,!t,o,n?"":"!important")})},lo=!1;if(typeof window<"u")try{var fn=Object.defineProperty({},"passive",{get:function(){return lo=!0,!0}});window.addEventListener("test",fn,fn),window.removeEventListener("test",fn,fn)}catch{lo=!1}var mt=lo?{passive:!1}:!1,mm=function(e){return e.tagName==="TEXTAREA"},Va=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!mm(e)&&n[t]==="visible")},hm=function(e){return Va(e,"overflowY")},vm=function(e){return Va(e,"overflowX")},fi=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=za(e,r);if(o){var s=Ua(e,r),a=s[1],c=s[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},gm=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},xm=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},za=function(e,t){return e==="v"?hm(t):vm(t)},Ua=function(e,t){return e==="v"?gm(t):xm(t)},ym=function(e,t){return e==="h"&&t==="rtl"?-1:1},Em=function(e,t,n,r,o){var s=ym(e,window.getComputedStyle(t).direction),a=s*r,c=n.target,d=t.contains(c),u=!1,p=a>0,m=0,g=0;do{var h=Ua(e,c),E=h[0],f=h[1],v=h[2],y=f-v-s*E;(E||y)&&za(e,c)&&(m+=y,g+=E),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(p&&(Math.abs(m)<1||!o)||!p&&(Math.abs(g)<1||!o))&&(u=!0),u},pn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},pi=function(e){return[e.deltaX,e.deltaY]},mi=function(e){return e&&"current"in e?e.current:e},wm=function(e,t){return e[0]===t[0]&&e[1]===t[1]},bm=function(e){return`
186
186
  .block-interactivity-`.concat(e,` {pointer-events: none;}
187
187
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
188
- `)},Cm=0,ht=[];function Sm(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(Cm++)[0],s=i.useState(Ho)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=Bo([e.lockRef.current],(e.shards||[]).map(mi),!0).filter(Boolean);return f.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(f,v){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!a.current.allowPinchZoom;var x=pn(f),y=n.current,E="deltaX"in f?f.deltaX:y[0]-x[0],R="deltaY"in f?f.deltaY:y[1]-x[1],C,S=f.target,b=Math.abs(E)>Math.abs(R)?"h":"v";if("touches"in f&&b==="h"&&S.type==="range")return!1;var P=fi(b,S);if(!P)return!0;if(P?C=b:(C=b==="v"?"h":"v",P=fi(b,S)),!P)return!1;if(!r.current&&"changedTouches"in f&&(E||R)&&(r.current=C),!C)return!0;var N=r.current||C;return wm(N,v,f,N==="h"?E:R,!0)},[]),d=i.useCallback(function(f){var v=f;if(!(!ht.length||ht[ht.length-1]!==s)){var x="deltaY"in v?pi(v):pn(v),y=t.current.filter(function(C){return C.name===v.type&&(C.target===v.target||v.target===C.shadowParent)&&bm(C.delta,x)})[0];if(y&&y.should){v.cancelable&&v.preventDefault();return}if(!y){var E=(a.current.shards||[]).map(mi).filter(Boolean).filter(function(C){return C.contains(v.target)}),R=E.length>0?c(v,E[0]):!a.current.noIsolation;R&&v.cancelable&&v.preventDefault()}}},[]),u=i.useCallback(function(f,v,x,y){var E={name:f,delta:v,target:x,should:y,shadowParent:jm(x)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),p=i.useCallback(function(f){n.current=pn(f),r.current=void 0},[]),m=i.useCallback(function(f){u(f.type,pi(f),f.target,c(f,e.lockRef.current))},[]),g=i.useCallback(function(f){u(f.type,pn(f),f.target,c(f,e.lockRef.current))},[]);i.useEffect(function(){return ht.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:g}),document.addEventListener("wheel",d,mt),document.addEventListener("touchmove",d,mt),document.addEventListener("touchstart",p,mt),function(){ht=ht.filter(function(f){return f!==s}),document.removeEventListener("wheel",d,mt),document.removeEventListener("touchmove",d,mt),document.removeEventListener("touchstart",p,mt)}},[]);var h=e.removeScrollBar,w=e.inert;return i.createElement(i.Fragment,null,w?i.createElement(s,{styles:Rm(o)}):null,h?i.createElement(mm,{gapMode:e.gapMode}):null)}function jm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Pm=Wa(Ba,Sm);var Ya=i.forwardRef(function(e,t){return i.createElement(rr,ie({},e,{ref:t,sideCar:Pm}))});Ya.classNames=rr.classNames;var Tm=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},vt=new WeakMap,mn=new WeakMap,hn={},kr=0,Ka=function(e){return e&&(e.host||Ka(e.parentNode))},Am=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ka(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})},Nm=function(e,t,n,r){var o=Am(t,Array.isArray(e)?e:[e]);hn[n]||(hn[n]=new WeakMap);var s=hn[n],a=[],c=new Set,d=new Set(o),u=function(m){!m||c.has(m)||(c.add(m),u(m.parentNode))};o.forEach(u);var p=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(g){if(c.has(g))p(g);else try{var h=g.getAttribute(r),w=h!==null&&h!=="false",f=(vt.get(g)||0)+1,v=(s.get(g)||0)+1;vt.set(g,f),s.set(g,v),a.push(g),f===1&&w&&mn.set(g,!0),v===1&&g.setAttribute(n,"true"),w||g.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",g,x)}})};return p(t),c.clear(),kr++,function(){a.forEach(function(m){var g=vt.get(m)-1,h=s.get(m)-1;vt.set(m,g),s.set(m,h),g||(mn.has(m)||m.removeAttribute(r),mn.delete(m)),h||m.removeAttribute(n)}),kr--,kr||(vt=new WeakMap,vt=new WeakMap,mn=new WeakMap,hn={})}},or=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Tm(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Nm(r,o,n,"aria-hidden")):function(){return null}},Vo="Dialog",[Xa,Ob]=ft(Vo),[$m,je]=Xa(Vo),Ga=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,c=i.useRef(null),d=i.useRef(null),[u=!1,p]=qt({prop:r,defaultProp:o,onChange:s});return l.jsxRuntimeExports.jsx($m,{scope:t,triggerRef:c,contentRef:d,contentId:xe(),titleId:xe(),descriptionId:xe(),open:u,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(m=>!m),[p]),modal:a,children:n})};Ga.displayName=Vo;var qa="DialogTrigger",Om=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=je(qa,n),s=dt(t,o.triggerRef);return l.jsxRuntimeExports.jsx(Fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Xo(o.open),...r,ref:s,onClick:ze(e.onClick,o.onOpenToggle)})});Om.displayName=qa;var zo="DialogPortal",[Dm,Za]=Xa(zo,{forceMount:void 0}),Uo=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=je(zo,t);return l.jsxRuntimeExports.jsx(Dm,{scope:t,forceMount:n,children:i.Children.map(r,a=>l.jsxRuntimeExports.jsx(nr,{present:n||s.open,children:l.jsxRuntimeExports.jsx(Ma,{asChild:!0,container:o,children:a})}))})};Uo.displayName=zo;var Fn="DialogOverlay",Qa=i.forwardRef((e,t)=>{const n=Za(Fn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=je(Fn,e.__scopeDialog);return s.modal?l.jsxRuntimeExports.jsx(nr,{present:r||s.open,children:l.jsxRuntimeExports.jsx(km,{...o,ref:t})}):null});Qa.displayName=Fn;var km=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=je(Fn,n);return l.jsxRuntimeExports.jsx(Ya,{as:er,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsxRuntimeExports.jsx(Fe.div,{"data-state":Xo(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),it="DialogContent",Yo=i.forwardRef((e,t)=>{const n=Za(it,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=je(it,e.__scopeDialog);return l.jsxRuntimeExports.jsx(nr,{present:r||s.open,children:s.modal?l.jsxRuntimeExports.jsx(Im,{...o,ref:t}):l.jsxRuntimeExports.jsx(Mm,{...o,ref:t})})});Yo.displayName=it;var Im=i.forwardRef((e,t)=>{const n=je(it,e.__scopeDialog),r=i.useRef(null),o=dt(t,n.contentRef,r);return i.useEffect(()=>{const s=r.current;if(s)return or(s)},[]),l.jsxRuntimeExports.jsx(Ja,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ze(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:ze(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0;(a.button===2||c)&&s.preventDefault()}),onFocusOutside:ze(e.onFocusOutside,s=>s.preventDefault())})}),Mm=i.forwardRef((e,t)=>{const n=je(it,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return l.jsxRuntimeExports.jsx(Ja,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,c;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Ja=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,c=je(it,n),d=i.useRef(null),u=dt(t,d);return La(),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(ka,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsxRuntimeExports.jsx(Oa,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Xo(c.open),...a,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(Lm,{titleId:c.titleId}),l.jsxRuntimeExports.jsx(Fm,{contentRef:d,descriptionId:c.descriptionId})]})]})}),Ko="DialogTitle",ec=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=je(Ko,n);return l.jsxRuntimeExports.jsx(Fe.h2,{id:o.titleId,...r,ref:t})});ec.displayName=Ko;var tc="DialogDescription",nc=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=je(tc,n);return l.jsxRuntimeExports.jsx(Fe.p,{id:o.descriptionId,...r,ref:t})});nc.displayName=tc;var rc="DialogClose",oc=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=je(rc,n);return l.jsxRuntimeExports.jsx(Fe.button,{type:"button",...r,ref:t,onClick:ze(e.onClick,()=>o.onOpenChange(!1))})});oc.displayName=rc;function Xo(e){return e?"open":"closed"}var sc="DialogTitleWarning",[Db,ic]=wp(sc,{contentName:it,titleName:Ko,docsSlug:"dialog"}),Lm=({titleId:e})=>{const t=ic(sc),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
188
+ `)},Rm=0,ht=[];function Cm(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(Rm++)[0],s=i.useState(Ho)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=Bo([e.lockRef.current],(e.shards||[]).map(mi),!0).filter(Boolean);return f.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(f,v){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!a.current.allowPinchZoom;var y=pn(f),x=n.current,b="deltaX"in f?f.deltaX:x[0]-y[0],R="deltaY"in f?f.deltaY:x[1]-y[1],C,S=f.target,w=Math.abs(b)>Math.abs(R)?"h":"v";if("touches"in f&&w==="h"&&S.type==="range")return!1;var P=fi(w,S);if(!P)return!0;if(P?C=w:(C=w==="v"?"h":"v",P=fi(w,S)),!P)return!1;if(!r.current&&"changedTouches"in f&&(b||R)&&(r.current=C),!C)return!0;var N=r.current||C;return Em(N,v,f,N==="h"?b:R,!0)},[]),d=i.useCallback(function(f){var v=f;if(!(!ht.length||ht[ht.length-1]!==s)){var y="deltaY"in v?pi(v):pn(v),x=t.current.filter(function(C){return C.name===v.type&&(C.target===v.target||v.target===C.shadowParent)&&wm(C.delta,y)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}if(!x){var b=(a.current.shards||[]).map(mi).filter(Boolean).filter(function(C){return C.contains(v.target)}),R=b.length>0?c(v,b[0]):!a.current.noIsolation;R&&v.cancelable&&v.preventDefault()}}},[]),u=i.useCallback(function(f,v,y,x){var b={name:f,delta:v,target:y,should:x,shadowParent:Sm(y)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(R){return R!==b})},1)},[]),p=i.useCallback(function(f){n.current=pn(f),r.current=void 0},[]),m=i.useCallback(function(f){u(f.type,pi(f),f.target,c(f,e.lockRef.current))},[]),g=i.useCallback(function(f){u(f.type,pn(f),f.target,c(f,e.lockRef.current))},[]);i.useEffect(function(){return ht.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:g}),document.addEventListener("wheel",d,mt),document.addEventListener("touchmove",d,mt),document.addEventListener("touchstart",p,mt),function(){ht=ht.filter(function(f){return f!==s}),document.removeEventListener("wheel",d,mt),document.removeEventListener("touchmove",d,mt),document.removeEventListener("touchstart",p,mt)}},[]);var h=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(s,{styles:bm(o)}):null,h?i.createElement(pm,{gapMode:e.gapMode}):null)}function Sm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const jm=Wa(Ba,Cm);var Ya=i.forwardRef(function(e,t){return i.createElement(rr,ie({},e,{ref:t,sideCar:jm}))});Ya.classNames=rr.classNames;var Pm=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},vt=new WeakMap,mn=new WeakMap,hn={},kr=0,Ka=function(e){return e&&(e.host||Ka(e.parentNode))},Tm=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ka(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})},Am=function(e,t,n,r){var o=Tm(t,Array.isArray(e)?e:[e]);hn[n]||(hn[n]=new WeakMap);var s=hn[n],a=[],c=new Set,d=new Set(o),u=function(m){!m||c.has(m)||(c.add(m),u(m.parentNode))};o.forEach(u);var p=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(g){if(c.has(g))p(g);else try{var h=g.getAttribute(r),E=h!==null&&h!=="false",f=(vt.get(g)||0)+1,v=(s.get(g)||0)+1;vt.set(g,f),s.set(g,v),a.push(g),f===1&&E&&mn.set(g,!0),v===1&&g.setAttribute(n,"true"),E||g.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",g,y)}})};return p(t),c.clear(),kr++,function(){a.forEach(function(m){var g=vt.get(m)-1,h=s.get(m)-1;vt.set(m,g),s.set(m,h),g||(mn.has(m)||m.removeAttribute(r),mn.delete(m)),h||m.removeAttribute(n)}),kr--,kr||(vt=new WeakMap,vt=new WeakMap,mn=new WeakMap,hn={})}},or=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Pm(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Am(r,o,n,"aria-hidden")):function(){return null}},Vo="Dialog",[Xa,Nb]=ft(Vo),[Nm,je]=Xa(Vo),Ga=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,c=i.useRef(null),d=i.useRef(null),[u=!1,p]=qt({prop:r,defaultProp:o,onChange:s});return l.jsxRuntimeExports.jsx(Nm,{scope:t,triggerRef:c,contentRef:d,contentId:xe(),titleId:xe(),descriptionId:xe(),open:u,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(m=>!m),[p]),modal:a,children:n})};Ga.displayName=Vo;var qa="DialogTrigger",$m=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=je(qa,n),s=dt(t,o.triggerRef);return l.jsxRuntimeExports.jsx(Fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Xo(o.open),...r,ref:s,onClick:ze(e.onClick,o.onOpenToggle)})});$m.displayName=qa;var zo="DialogPortal",[Om,Za]=Xa(zo,{forceMount:void 0}),Uo=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=je(zo,t);return l.jsxRuntimeExports.jsx(Om,{scope:t,forceMount:n,children:i.Children.map(r,a=>l.jsxRuntimeExports.jsx(nr,{present:n||s.open,children:l.jsxRuntimeExports.jsx(Ma,{asChild:!0,container:o,children:a})}))})};Uo.displayName=zo;var Fn="DialogOverlay",Qa=i.forwardRef((e,t)=>{const n=Za(Fn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=je(Fn,e.__scopeDialog);return s.modal?l.jsxRuntimeExports.jsx(nr,{present:r||s.open,children:l.jsxRuntimeExports.jsx(Dm,{...o,ref:t})}):null});Qa.displayName=Fn;var Dm=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=je(Fn,n);return l.jsxRuntimeExports.jsx(Ya,{as:er,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsxRuntimeExports.jsx(Fe.div,{"data-state":Xo(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),it="DialogContent",Yo=i.forwardRef((e,t)=>{const n=Za(it,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=je(it,e.__scopeDialog);return l.jsxRuntimeExports.jsx(nr,{present:r||s.open,children:s.modal?l.jsxRuntimeExports.jsx(km,{...o,ref:t}):l.jsxRuntimeExports.jsx(Im,{...o,ref:t})})});Yo.displayName=it;var km=i.forwardRef((e,t)=>{const n=je(it,e.__scopeDialog),r=i.useRef(null),o=dt(t,n.contentRef,r);return i.useEffect(()=>{const s=r.current;if(s)return or(s)},[]),l.jsxRuntimeExports.jsx(Ja,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ze(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:ze(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0;(a.button===2||c)&&s.preventDefault()}),onFocusOutside:ze(e.onFocusOutside,s=>s.preventDefault())})}),Im=i.forwardRef((e,t)=>{const n=je(it,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return l.jsxRuntimeExports.jsx(Ja,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,c;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Ja=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,c=je(it,n),d=i.useRef(null),u=dt(t,d);return La(),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(ka,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsxRuntimeExports.jsx(Oa,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Xo(c.open),...a,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(Mm,{titleId:c.titleId}),l.jsxRuntimeExports.jsx(_m,{contentRef:d,descriptionId:c.descriptionId})]})]})}),Ko="DialogTitle",ec=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=je(Ko,n);return l.jsxRuntimeExports.jsx(Fe.h2,{id:o.titleId,...r,ref:t})});ec.displayName=Ko;var tc="DialogDescription",nc=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=je(tc,n);return l.jsxRuntimeExports.jsx(Fe.p,{id:o.descriptionId,...r,ref:t})});nc.displayName=tc;var rc="DialogClose",oc=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=je(rc,n);return l.jsxRuntimeExports.jsx(Fe.button,{type:"button",...r,ref:t,onClick:ze(e.onClick,()=>o.onOpenChange(!1))})});oc.displayName=rc;function Xo(e){return e?"open":"closed"}var sc="DialogTitleWarning",[$b,ic]=Ep(sc,{contentName:it,titleName:Ko,docsSlug:"dialog"}),Mm=({titleId:e})=>{const t=ic(sc),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
189
189
 
190
190
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
191
191
 
192
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},_m="DialogDescriptionWarning",Fm=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ic(_m).contentName}}.`;return i.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Wm=Ga,Bm=Uo,sr=Qa,Go=Yo,ac=ec,cc=nc,Hm=oc;const Vm=Wm,zm=Bm,lc=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(sr,{ref:n,className:l.cn("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}));lc.displayName=sr.displayName;const Um=i.forwardRef(({className:e,children:t,...n},r)=>l.jsxRuntimeExports.jsxs(zm,{children:[l.jsxRuntimeExports.jsx(lc,{}),l.jsxRuntimeExports.jsxs(Go,{ref:r,className:l.cn("fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] 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%] dark:border-neutral-800 dark:bg-neutral-950",e),...n,children:[t,l.jsxRuntimeExports.jsxs(Hm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-500 dark:ring-offset-neutral-950 dark:focus:ring-neutral-300 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-400",children:[l.jsxRuntimeExports.jsx(l.Close,{className:"h-4 w-4"}),l.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Um.displayName=Go.displayName;const uc=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ac,{ref:n,className:l.cn("text-lg font-semibold leading-none tracking-tight hidden",e),...t}));uc.displayName=ac.displayName;const dc=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(cc,{ref:n,className:l.cn("text-sm text-neutral-500 dark:text-neutral-400",e),...t}));dc.displayName=cc.displayName;function Ym({open:e,toggleDialog:t,children:n,...r}){return l.jsxRuntimeExports.jsx(Vm,{open:e,onOpenChange:t,...r,children:n})}const fc=Z.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(sr,{ref:n,className:l.cn("fixed inset-0 z-50 bg-black/30 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));fc.displayName=sr.displayName;const Km=I(Go)`
192
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Lm="DialogDescriptionWarning",_m=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ic(Lm).contentName}}.`;return i.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Fm=Ga,Wm=Uo,sr=Qa,Go=Yo,ac=ec,cc=nc,Bm=oc;const Hm=Fm,Vm=Wm,lc=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(sr,{ref:n,className:l.cn("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}));lc.displayName=sr.displayName;const zm=i.forwardRef(({className:e,children:t,...n},r)=>l.jsxRuntimeExports.jsxs(Vm,{children:[l.jsxRuntimeExports.jsx(lc,{}),l.jsxRuntimeExports.jsxs(Go,{ref:r,className:l.cn("fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] 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%] dark:border-neutral-800 dark:bg-neutral-950",e),...n,children:[t,l.jsxRuntimeExports.jsxs(Bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-500 dark:ring-offset-neutral-950 dark:focus:ring-neutral-300 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-400",children:[l.jsxRuntimeExports.jsx(l.Close,{className:"h-4 w-4"}),l.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));zm.displayName=Go.displayName;const uc=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ac,{ref:n,className:l.cn("text-lg font-semibold leading-none tracking-tight hidden",e),...t}));uc.displayName=ac.displayName;const dc=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(cc,{ref:n,className:l.cn("text-sm text-neutral-500 dark:text-neutral-400",e),...t}));dc.displayName=cc.displayName;function Um({open:e,toggleDialog:t,children:n,...r}){return l.jsxRuntimeExports.jsx(Hm,{open:e,onOpenChange:t,...r,children:n})}const fc=Z.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(sr,{ref:n,className:l.cn("fixed inset-0 z-50 bg-black/30 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));fc.displayName=sr.displayName;const Ym=I(Go)`
193
193
  width: ${({$width:e,$fullScreen:t})=>t?"100vw":e||"25.4rem"};
194
194
  height: ${({$height:e,$fullScreen:t})=>t?"100vh":e||"29.8rem"};
195
195
  border-radius: ${({$fullScreen:e})=>e?"0":"1.25rem"};
@@ -197,12 +197,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
197
197
  overflow: hidden;
198
198
  display: flex;
199
199
  flex-direction: column;
200
- `,pc=Z.forwardRef(({width:e,height:t,fullScreen:n,children:r,...o},s)=>{const a=en();return l.jsxRuntimeExports.jsxs(Uo,{children:[l.jsxRuntimeExports.jsx(fc,{}),l.jsxRuntimeExports.jsxs(Km,{$width:e,$height:t,$fullScreen:n!==void 0?n:a,ref:s,className:l.cn("fixed left-1/2 top-1/2 z-50 transform -translate-x-1/2 -translate-y-1/2"),"aria-describedby":void 0,...o,children:[l.jsxRuntimeExports.jsx(uc,{}),l.jsxRuntimeExports.jsx(dc,{}),r]})]})});pc.displayName=Yo.displayName;const Xm=I.div`
200
+ `,pc=Z.forwardRef(({width:e,height:t,fullScreen:n,children:r,...o},s)=>{const a=en();return l.jsxRuntimeExports.jsxs(Uo,{children:[l.jsxRuntimeExports.jsx(fc,{}),l.jsxRuntimeExports.jsxs(Ym,{$width:e,$height:t,$fullScreen:n!==void 0?n:a,ref:s,className:l.cn("fixed left-1/2 top-1/2 z-50 transform -translate-x-1/2 -translate-y-1/2"),"aria-describedby":void 0,...o,children:[l.jsxRuntimeExports.jsx(uc,{}),l.jsxRuntimeExports.jsx(dc,{}),r]})]})});pc.displayName=Yo.displayName;const Km=I.div`
201
201
  width: 100%;
202
202
  height: 100%;
203
203
  padding: 0 2rem 2rem 2rem;
204
204
  overflow: auto;
205
- `;function Gm({children:e,...t}){return l.jsxRuntimeExports.jsx(Xm,{...t,children:e})}const qm=I.button`
205
+ `;function Xm({children:e,...t}){return l.jsxRuntimeExports.jsx(Km,{...t,children:e})}const Gm=I.button`
206
206
  color: ${l.colors.primary[900]};
207
207
  display: flex;
208
208
  justify-content: center;
@@ -220,22 +220,22 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
220
220
  &:hover {
221
221
  background: ${l.colors.sf.tertiaryHover};
222
222
  }
223
- `,Wn=Z.forwardRef(({onClick:e,variant:t="light",children:n,...r},o)=>l.jsxRuntimeExports.jsx(qm,{onClick:e,$variant:t,ref:o,...r,children:n}));Wn.displayName="IconButton";const Zm=I.div`
223
+ `,Wn=Z.forwardRef(({onClick:e,variant:t="light",children:n,...r},o)=>l.jsxRuntimeExports.jsx(Gm,{onClick:e,$variant:t,ref:o,...r,children:n}));Wn.displayName="IconButton";const qm=I.div`
224
224
  padding: 1.25rem;
225
225
  width: 100%;
226
226
  display: flex;
227
227
  justify-content: space-between;
228
228
  align-items: center;
229
- `,Qm=I.h2`
229
+ `,Zm=I.h2`
230
230
  ${l.typography.label}
231
231
  color: ${l.colors.fg.primary};
232
232
  font-size: 0.9375rem;
233
- `;function Jm({onGoBack:e,onClose:t,title:n,...r}){const o=s=>s?"visible":"hidden";return l.jsxRuntimeExports.jsxs(Zm,{...r,children:[l.jsxRuntimeExports.jsx(Wn,{onClick:e,style:{visibility:o(!!e)},children:l.jsxRuntimeExports.jsx(l.Chevron,{direction:"left"})}),n&&l.jsxRuntimeExports.jsx(Qm,{children:n}),l.jsxRuntimeExports.jsx(Wn,{onClick:t,style:{visibility:o(!!t)},children:l.jsxRuntimeExports.jsx(l.Close,{})})]})}const eh=I.div`
233
+ `;function Qm({onGoBack:e,onClose:t,title:n,...r}){const o=s=>s?"visible":"hidden";return l.jsxRuntimeExports.jsxs(qm,{...r,children:[l.jsxRuntimeExports.jsx(Wn,{onClick:e,style:{visibility:o(!!e)},children:l.jsxRuntimeExports.jsx(l.Chevron,{direction:"left"})}),n&&l.jsxRuntimeExports.jsx(Zm,{children:n}),l.jsxRuntimeExports.jsx(Wn,{onClick:t,style:{visibility:o(!!t)},children:l.jsxRuntimeExports.jsx(l.Close,{})})]})}const Jm=I.div`
234
234
  height: 0.063rem;
235
235
  width: 100%;
236
236
  background-color: ${l.colors.border.default};
237
237
  margin: 0.75rem 0;
238
- `;function th({...e}){return l.jsxRuntimeExports.jsx(eh,{...e})}const nh=I.div`
238
+ `;function eh({...e}){return l.jsxRuntimeExports.jsx(Jm,{...e})}const th=I.div`
239
239
  display: flex;
240
240
  padding: 0.69rem 0.5rem;
241
241
  gap: 0.25rem;
@@ -243,7 +243,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
243
243
  justify-content: center;
244
244
  border-radius: 0.75rem;
245
245
  background: ${l.colors.utility.opacity};
246
- `,rh=I.div`
246
+ `,nh=I.div`
247
247
  position: relative;
248
248
  width: 0.375rem;
249
249
  height: 0.375rem;
@@ -292,19 +292,19 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
292
292
  background-color: rgba(125, 137, 131, 0.2);
293
293
  }
294
294
  }
295
- `;function oh(){return l.jsxRuntimeExports.jsx(nh,{children:l.jsxRuntimeExports.jsx(rh,{})})}const sh=I.div`
295
+ `;function rh(){return l.jsxRuntimeExports.jsx(th,{children:l.jsxRuntimeExports.jsx(nh,{})})}const oh=I.div`
296
296
  display: flex;
297
297
  gap: ${({$isMobile:e})=>e?"0.25rem":"0.38rem"};
298
298
  border-radius: 1rem;
299
299
  width: ${({$variant:e})=>e==="ai"?"100%":"fit-content"};
300
300
  max-width: ${({$variant:e})=>e==="ai"?"100%":"80%"};
301
- background: ${({$variant:e})=>e==="ai"?l.colors.bg.base:"hsla(120, 26%, 91%, 1)"};
302
- border: ${({$isMobile:e})=>e?"none":`1px solid ${l.colors.utility.opacity}`};
301
+ background: ${({$variant:e})=>e==="ai"?"transparent":"hsla(120, 26%, 91%, 1)"};
302
+ border: ${({$variant:e})=>e==="ai"?"none":`1px solid ${l.colors.utility.opacity}`};
303
303
  padding: ${({$variant:e,$isMobile:t})=>e==="ai"?t?"0.5rem 0":"1rem 0.75rem":"0.62rem 0.75rem"};
304
- `,ih=I.div`
304
+ `,sh=I.div`
305
305
  width: 1.75rem;
306
306
  height: 1.75rem;
307
- `,ah=I.div`
307
+ `,ih=I.div`
308
308
  ${l.typography.body};
309
309
  font-size: 0.938rem;
310
310
  font-weight: ${({$variant:e})=>e==="ai"?"400":"500"};
@@ -321,7 +321,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
321
321
  p {
322
322
  margin-bottom: 0.5rem;
323
323
  }
324
- `;function ch({loading:e=!1,variant:t,showAvatar:n=!1,children:r,...o}){const s=en();return l.jsxRuntimeExports.jsxs(sh,{$variant:t,$isMobile:s,...o,children:[t==="ai"&&(n||!s||e)&&l.jsxRuntimeExports.jsx(ih,{children:l.jsxRuntimeExports.jsx(l.LogoOutlined,{size:"small"})}),e?l.jsxRuntimeExports.jsx(oh,{}):l.jsxRuntimeExports.jsx(ah,{$variant:t,$isMobile:s,children:r})]})}const lh=I.button`
324
+ `;function ah({loading:e=!1,variant:t,showAvatar:n=!1,children:r,...o}){const s=en();return l.jsxRuntimeExports.jsxs(oh,{$variant:t,$isMobile:s,...o,children:[t==="ai"&&(n||e)&&l.jsxRuntimeExports.jsx(sh,{children:l.jsxRuntimeExports.jsx(l.LogoOutlined,{size:"small"})}),e?l.jsxRuntimeExports.jsx(rh,{}):l.jsxRuntimeExports.jsx(ih,{$variant:t,$isMobile:s,children:r})]})}const ch=I.button`
325
325
  display: flex;
326
326
  text-align: left;
327
327
  gap: 0.375rem;
@@ -334,7 +334,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
334
334
  border: 1px solid ${l.colors.utility.opacity};
335
335
  white-space: pre-line;
336
336
  width: fit-content;
337
- `;function uh({onClick:e,children:t,...n}){return l.jsxRuntimeExports.jsx(lh,{onClick:e,...n,children:t})}const dh=I.div`
337
+ `;function lh({onClick:e,children:t,...n}){return l.jsxRuntimeExports.jsx(ch,{onClick:e,...n,children:t})}const uh=I.div`
338
338
  container-type: inline-size;
339
339
  width: 100%;
340
340
  height: calc(297mm * var(--dynamic-scale, 1));
@@ -378,7 +378,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
378
378
  --dynamic-scale: 1;
379
379
  }
380
380
  }
381
- `,fh=I.div`
381
+ `,dh=I.div`
382
382
  background-color: ${l.colors.white};
383
383
  font-family: 'Inter', sans-serif;
384
384
  font-size: 10pt;
@@ -390,14 +390,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
390
390
  width: 210mm;
391
391
  transform-origin: top left;
392
392
  transform: scale(var(--dynamic-scale));
393
- `,ph=I.p`
393
+ `,fh=I.p`
394
394
  font-size: 9pt;
395
395
  height: 8mm;
396
396
  line-height: 1.22;
397
397
  position: absolute;
398
398
  top: 45mm;
399
399
  width: 100mm;
400
- `,mh=I.address`
400
+ `,ph=I.address`
401
401
  font-size: 9pt;
402
402
  font-style: normal;
403
403
  height: 32mm;
@@ -405,13 +405,13 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
405
405
  position: absolute;
406
406
  top: 72mm;
407
407
  width: 85mm;
408
- `,hh=I.address`
408
+ `,mh=I.address`
409
409
  font-style: normal;
410
410
  text-align: right;
411
411
  line-height: 1.22;
412
412
  width: 50%;
413
413
  margin-left: auto;
414
- `,vh=I.div`
414
+ `,hh=I.div`
415
415
  font-style: normal;
416
416
  text-align: right;
417
417
 
@@ -430,13 +430,13 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
430
430
  > *:nth-child(4) {
431
431
  bottom: 163.983333331mm;
432
432
  }
433
- `,gh=I.p`
433
+ `,vh=I.p`
434
434
  height: 42.9166666667mm;
435
435
  line-height: 1.22;
436
436
  position: absolute;
437
437
  right: 15mm;
438
438
  width: 95.25mm;
439
- `,xh=I.p`
439
+ `,gh=I.p`
440
440
  font-style: normal;
441
441
  text-align: right;
442
442
  height: 42.9166666667mm;
@@ -445,16 +445,16 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
445
445
  right: 15mm;
446
446
  width: 95.25mm;
447
447
  bottom: 153.872222mm;
448
- `,yh=I.div`
448
+ `,xh=I.div`
449
449
  font-size: 10pt;
450
450
  font-style: normal;
451
451
  position: absolute;
452
452
  top: 105mm;
453
453
  width: 175mm;
454
- `,Eh=I.h1`
454
+ `,yh=I.h1`
455
455
  font-size: 10pt;
456
456
  font-weight: 700;
457
- `,wh=I.div`
457
+ `,Eh=I.div`
458
458
  line-height: 1.3;
459
459
 
460
460
  & + & {
@@ -464,8 +464,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
464
464
  `,Ir=I.p`
465
465
  margin-bottom: 5.2916666667mm;
466
466
  margin-top: 5.2916666667mm;
467
- `;function bh({children:e}){return l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e||"Date"})}function Rh({children:e}){return l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e||"Sehr geehrte Damen und Herren"})}function Ch({children:e}){return l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e||"Mit freundlichen Grüßen"})}function Sh({address:e,children:t}){return!t&&!e?null:l.jsxRuntimeExports.jsx(ph,{children:t||e})}function jh({address:e,children:t}){return l.jsxRuntimeExports.jsx(mh,{children:t||l.jsxRuntimeExports.jsx("span",{dangerouslySetInnerHTML:{__html:e||""}})})}function Ph({address:e,children:t}){return l.jsxRuntimeExports.jsx(hh,{children:t||l.jsxRuntimeExports.jsx("span",{dangerouslySetInnerHTML:{__html:e||""}})})}function Th({identificationFields:e=[],children:t}){return!t&&(!e||e.length===0)?null:l.jsxRuntimeExports.jsx(vh,{children:t||l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e.map((n,r)=>l.jsxRuntimeExports.jsxs(gh,{children:[n.label,l.jsxRuntimeExports.jsx("br",{}),l.jsxRuntimeExports.jsx("b",{children:n.value})]},r))})})}function Ah({date:e,children:t}){return!t&&!e?null:l.jsxRuntimeExports.jsx(xh,{children:t||l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(bh,{}),": ",e]})})}function Nh({letterSubject:e,letterText:t,userFullName:n,children:r}){return l.jsxRuntimeExports.jsx(yh,{children:r||l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(Eh,{children:e}),l.jsxRuntimeExports.jsxs(Ir,{children:[l.jsxRuntimeExports.jsx(Rh,{}),","]}),l.jsxRuntimeExports.jsx(wh,{children:l.jsxRuntimeExports.jsx("div",{dangerouslySetInnerHTML:{__html:(t==null?void 0:t.replace(/\n/g,"<br>"))||""}})}),l.jsxRuntimeExports.jsx(Ir,{children:l.jsxRuntimeExports.jsx(Ch,{})}),l.jsxRuntimeExports.jsx(Ir,{children:n})]})})}function $h({senderAddressSlim:e,vendorAddress:t,senderAddress:n,identificationFields:r=[],date:o,letterSubject:s,letterText:a,userFullName:c,children:d,style:u}){return l.jsxRuntimeExports.jsx(dh,{style:u,children:l.jsxRuntimeExports.jsx(fh,{children:d||l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(Sh,{address:e}),l.jsxRuntimeExports.jsx(jh,{address:t}),l.jsxRuntimeExports.jsx(Ph,{address:n}),l.jsxRuntimeExports.jsx(Th,{identificationFields:r}),l.jsxRuntimeExports.jsx(Ah,{date:o}),l.jsxRuntimeExports.jsx(Nh,{letterSubject:s,letterText:a,userFullName:c})]})})})}function hi(e,[t,n]){return Math.min(n,Math.max(t,e))}function X(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 vi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ue(...e){return t=>{let n=!1;const r=e.map(o=>{const s=vi(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():vi(e[o],null)}}}}function ne(...e){return i.useCallback(Ue(...e),e)}var Zt=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),s=o.find(Dh);if(s){const a=s.props.children,c=o.map(d=>d===s?i.Children.count(a)>1?i.Children.only(null):i.isValidElement(a)?a.props.children:null:d);return l.jsxRuntimeExports.jsx(uo,{...r,ref:t,children:i.isValidElement(a)?i.cloneElement(a,void 0,c):null})}return l.jsxRuntimeExports.jsx(uo,{...r,ref:t,children:n})});Zt.displayName="Slot";var uo=i.forwardRef((e,t)=>{const{children:n,...r}=e;if(i.isValidElement(n)){const o=Ih(n);return i.cloneElement(n,{...kh(r,n.props),ref:t?Ue(t,o):o})}return i.Children.count(n)>1?i.Children.only(null):null});uo.displayName="SlotClone";var Oh=({children:e})=>l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e});function Dh(e){return i.isValidElement(e)&&e.type===Oh}function kh(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{s(...c),o(...c)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ih(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 mc(e){const t=e+"CollectionProvider",[n,r]=ft(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:w,children:f}=h,v=Z.useRef(null),x=Z.useRef(new Map).current;return l.jsxRuntimeExports.jsx(o,{scope:w,itemMap:x,collectionRef:v,children:f})};a.displayName=t;const c=e+"CollectionSlot",d=Z.forwardRef((h,w)=>{const{scope:f,children:v}=h,x=s(c,f),y=ne(w,x.collectionRef);return l.jsxRuntimeExports.jsx(Zt,{ref:y,children:v})});d.displayName=c;const u=e+"CollectionItemSlot",p="data-radix-collection-item",m=Z.forwardRef((h,w)=>{const{scope:f,children:v,...x}=h,y=Z.useRef(null),E=ne(w,y),R=s(u,f);return Z.useEffect(()=>(R.itemMap.set(y,{ref:y,...x}),()=>void R.itemMap.delete(y))),l.jsxRuntimeExports.jsx(Zt,{[p]:"",ref:E,children:v})});m.displayName=u;function g(h){const w=s(e+"CollectionConsumer",h);return Z.useCallback(()=>{const v=w.collectionRef.current;if(!v)return[];const x=Array.from(v.querySelectorAll(`[${p}]`));return Array.from(w.itemMap.values()).sort((R,C)=>x.indexOf(R.ref.current)-x.indexOf(C.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:a,Slot:d,ItemSlot:m},g,r]}var Mh=i.createContext(void 0);function Lh(e){const t=i.useContext(Mh);return e||t||"ltr"}var _h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],re=_h.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:s,...a}=r,c=s?Zt:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsxRuntimeExports.jsx(c,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function qo(e,t){e&&Ze.flushSync(()=>e.dispatchEvent(t))}var Fh="DismissableLayer",fo="dismissableLayer.update",Wh="dismissableLayer.pointerDownOutside",Bh="dismissableLayer.focusOutside",gi,hc=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vc=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(hc),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=i.useState({}),w=ne(t,b=>m(b)),f=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(v),y=p?f.indexOf(p):-1,E=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=zh(b=>{const P=b.target,N=[...u.branches].some(k=>k.contains(P));!R||N||(o==null||o(b),a==null||a(b),b.defaultPrevented||c==null||c())},g),S=Uh(b=>{const P=b.target;[...u.branches].some(k=>k.contains(P))||(s==null||s(b),a==null||a(b),b.defaultPrevented||c==null||c())},g);return tr(b=>{y===u.layers.size-1&&(r==null||r(b),!b.defaultPrevented&&c&&(b.preventDefault(),c()))},g),i.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(gi=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),xi(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=gi)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),xi())},[p,u]),i.useEffect(()=>{const b=()=>h({});return document.addEventListener(fo,b),()=>document.removeEventListener(fo,b)},[]),l.jsxRuntimeExports.jsx(re.div,{...d,ref:w,style:{pointerEvents:E?R?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,S.onFocusCapture),onBlurCapture:X(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,C.onPointerDownCapture)})});vc.displayName=Fh;var Hh="DismissableLayerBranch",Vh=i.forwardRef((e,t)=>{const n=i.useContext(hc),r=i.useRef(null),o=ne(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsxRuntimeExports.jsx(re.div,{...e,ref:o})});Vh.displayName=Hh;function zh(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){gc(Wh,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Uh(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&gc(Bh,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function xi(){const e=new CustomEvent(fo);document.dispatchEvent(e)}function gc(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?qo(o,s):o.dispatchEvent(s)}var Mr="focusScope.autoFocusOnMount",Lr="focusScope.autoFocusOnUnmount",yi={bubbles:!1,cancelable:!0},Yh="FocusScope",xc=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[c,d]=i.useState(null),u=ae(o),p=ae(s),m=i.useRef(null),g=ne(t,f=>d(f)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let f=function(E){if(h.paused||!c)return;const R=E.target;c.contains(R)?m.current=R:He(m.current,{select:!0})},v=function(E){if(h.paused||!c)return;const R=E.relatedTarget;R!==null&&(c.contains(R)||He(m.current,{select:!0}))},x=function(E){if(document.activeElement===document.body)for(const C of E)C.removedNodes.length>0&&He(c)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const y=new MutationObserver(x);return c&&y.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),y.disconnect()}}},[r,c,h.paused]),i.useEffect(()=>{if(c){wi.add(h);const f=document.activeElement;if(!c.contains(f)){const x=new CustomEvent(Mr,yi);c.addEventListener(Mr,u),c.dispatchEvent(x),x.defaultPrevented||(Kh(Qh(yc(c)),{select:!0}),document.activeElement===f&&He(c))}return()=>{c.removeEventListener(Mr,u),setTimeout(()=>{const x=new CustomEvent(Lr,yi);c.addEventListener(Lr,p),c.dispatchEvent(x),x.defaultPrevented||He(f??document.body,{select:!0}),c.removeEventListener(Lr,p),wi.remove(h)},0)}}},[c,u,p,h]);const w=i.useCallback(f=>{if(!n&&!r||h.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,x=document.activeElement;if(v&&x){const y=f.currentTarget,[E,R]=Xh(y);E&&R?!f.shiftKey&&x===R?(f.preventDefault(),n&&He(E,{select:!0})):f.shiftKey&&x===E&&(f.preventDefault(),n&&He(R,{select:!0})):x===y&&f.preventDefault()}},[n,r,h.paused]);return l.jsxRuntimeExports.jsx(re.div,{tabIndex:-1,...a,ref:g,onKeyDown:w})});xc.displayName=Yh;function Kh(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(He(r,{select:t}),document.activeElement!==n)return}function Xh(e){const t=yc(e),n=Ei(t,e),r=Ei(t.reverse(),e);return[n,r]}function yc(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 Ei(e,t){for(const n of e)if(!Gh(n,{upTo:t}))return n}function Gh(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 qh(e){return e instanceof HTMLInputElement&&"select"in e}function He(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&qh(e)&&t&&e.select()}}var wi=Zh();function Zh(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=bi(e,t),e.unshift(t)},remove(t){var n;e=bi(e,t),(n=e[0])==null||n.resume()}}}function bi(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Qh(e){return e.filter(t=>t.tagName!=="A")}const Jh=["top","right","bottom","left"],Ye=Math.min,ge=Math.max,Bn=Math.round,vn=Math.floor,Ne=e=>({x:e,y:e}),ev={left:"right",right:"left",bottom:"top",top:"bottom"},tv={start:"end",end:"start"};function po(e,t,n){return ge(e,Ye(t,n))}function Le(e,t){return typeof e=="function"?e(t):e}function _e(e){return e.split("-")[0]}function _t(e){return e.split("-")[1]}function Zo(e){return e==="x"?"y":"x"}function Qo(e){return e==="y"?"height":"width"}function Ke(e){return["top","bottom"].includes(_e(e))?"y":"x"}function Jo(e){return Zo(Ke(e))}function nv(e,t,n){n===void 0&&(n=!1);const r=_t(e),o=Jo(e),s=Qo(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Hn(a)),[a,Hn(a)]}function rv(e){const t=Hn(e);return[mo(e),t,mo(t)]}function mo(e){return e.replace(/start|end/g,t=>tv[t])}function ov(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:a;default:return[]}}function sv(e,t,n,r){const o=_t(e);let s=ov(_e(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(mo)))),s}function Hn(e){return e.replace(/left|right|bottom|top/g,t=>ev[t])}function iv(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ec(e){return typeof e!="number"?iv(e):{top:e,right:e,bottom:e,left:e}}function Vn(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 Ri(e,t,n){let{reference:r,floating:o}=e;const s=Ke(t),a=Jo(t),c=Qo(a),d=_e(t),u=s==="y",p=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,g=r[c]/2-o[c]/2;let h;switch(d){case"top":h={x:p,y:r.y-o.height};break;case"bottom":h={x:p,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:m};break;case"left":h={x:r.x-o.width,y:m};break;default:h={x:r.x,y:r.y}}switch(_t(t)){case"start":h[a]-=g*(n&&u?-1:1);break;case"end":h[a]+=g*(n&&u?-1:1);break}return h}const av=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,c=s.filter(Boolean),d=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:m}=Ri(u,r,d),g=r,h={},w=0;for(let f=0;f<c.length;f++){const{name:v,fn:x}=c[f],{x:y,y:E,data:R,reset:C}=await x({x:p,y:m,initialPlacement:r,placement:g,strategy:o,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});p=y??p,m=E??m,h={...h,[v]:{...h[v],...R}},C&&w<=50&&(w++,typeof C=="object"&&(C.placement&&(g=C.placement),C.rects&&(u=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:p,y:m}=Ri(u,g,d)),f=-1)}return{x:p,y:m,placement:g,strategy:o,middlewareData:h}};async function Qt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:c,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:g=!1,padding:h=0}=Le(t,e),w=Ec(h),v=c[g?m==="floating"?"reference":"floating":m],x=Vn(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:p,strategy:d})),y=m==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),R=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},C=Vn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:E,strategy:d}):y);return{top:(x.top-C.top+w.top)/R.y,bottom:(C.bottom-x.bottom+w.bottom)/R.y,left:(x.left-C.left+w.left)/R.x,right:(C.right-x.right+w.right)/R.x}}const cv=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:c,middlewareData:d}=t,{element:u,padding:p=0}=Le(e,t)||{};if(u==null)return{};const m=Ec(p),g={x:n,y:r},h=Jo(o),w=Qo(h),f=await a.getDimensions(u),v=h==="y",x=v?"top":"left",y=v?"bottom":"right",E=v?"clientHeight":"clientWidth",R=s.reference[w]+s.reference[h]-g[h]-s.floating[w],C=g[h]-s.reference[h],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let b=S?S[E]:0;(!b||!await(a.isElement==null?void 0:a.isElement(S)))&&(b=c.floating[E]||s.floating[w]);const P=R/2-C/2,N=b/2-f[w]/2-1,k=Ye(m[x],N),U=Ye(m[y],N),Y=k,W=b-f[w]-U,T=b/2-f[w]/2+P,B=po(Y,T,W),M=!d.arrow&&_t(o)!=null&&T!==B&&s.reference[w]/2-(T<Y?k:U)-f[w]/2<0,L=M?T<Y?T-Y:T-W:0;return{[h]:g[h]+L,data:{[h]:B,centerOffset:T-B-L,...M&&{alignmentOffset:L}},reset:M}}}),lv=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:c,platform:d,elements:u}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:f=!0,...v}=Le(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=_e(o),y=Ke(c),E=_e(c)===c,R=await(d.isRTL==null?void 0:d.isRTL(u.floating)),C=g||(E||!f?[Hn(c)]:rv(c)),S=w!=="none";!g&&S&&C.push(...sv(c,f,w,R));const b=[c,...C],P=await Qt(t,v),N=[];let k=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&N.push(P[x]),m){const T=nv(o,a,R);N.push(P[T[0]],P[T[1]])}if(k=[...k,{placement:o,overflows:N}],!N.every(T=>T<=0)){var U,Y;const T=(((U=s.flip)==null?void 0:U.index)||0)+1,B=b[T];if(B)return{data:{index:T,overflows:k},reset:{placement:B}};let M=(Y=k.filter(L=>L.overflows[0]<=0).sort((L,$)=>L.overflows[1]-$.overflows[1])[0])==null?void 0:Y.placement;if(!M)switch(h){case"bestFit":{var W;const L=(W=k.filter($=>{if(S){const H=Ke($.placement);return H===y||H==="y"}return!0}).map($=>[$.placement,$.overflows.filter(H=>H>0).reduce((H,te)=>H+te,0)]).sort(($,H)=>$[1]-H[1])[0])==null?void 0:W[0];L&&(M=L);break}case"initialPlacement":M=c;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Ci(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Si(e){return Jh.some(t=>e[t]>=0)}const uv=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Le(e,t);switch(r){case"referenceHidden":{const s=await Qt(t,{...o,elementContext:"reference"}),a=Ci(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Si(a)}}}case"escaped":{const s=await Qt(t,{...o,altBoundary:!0}),a=Ci(s,n.floating);return{data:{escapedOffsets:a,escaped:Si(a)}}}default:return{}}}}};async function dv(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=_e(n),c=_t(n),d=Ke(n)==="y",u=["left","top"].includes(a)?-1:1,p=s&&d?-1:1,m=Le(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:w}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof w=="number"&&(h=c==="end"?w*-1:w),d?{x:h*p,y:g*u}:{x:g*u,y:h*p}}const fv=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:c}=t,d=await dv(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:s+d.y,data:{...d,placement:a}}}}},pv=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:v=>{let{x,y}=v;return{x,y}}},...d}=Le(e,t),u={x:n,y:r},p=await Qt(t,d),m=Ke(_e(o)),g=Zo(m);let h=u[g],w=u[m];if(s){const v=g==="y"?"top":"left",x=g==="y"?"bottom":"right",y=h+p[v],E=h-p[x];h=po(y,h,E)}if(a){const v=m==="y"?"top":"left",x=m==="y"?"bottom":"right",y=w+p[v],E=w-p[x];w=po(y,w,E)}const f=c.fn({...t,[g]:h,[m]:w});return{...f,data:{x:f.x-n,y:f.y-r,enabled:{[g]:s,[m]:a}}}}}},mv=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:d=!0,crossAxis:u=!0}=Le(e,t),p={x:n,y:r},m=Ke(o),g=Zo(m);let h=p[g],w=p[m];const f=Le(c,t),v=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(d){const E=g==="y"?"height":"width",R=s.reference[g]-s.floating[E]+v.mainAxis,C=s.reference[g]+s.reference[E]-v.mainAxis;h<R?h=R:h>C&&(h=C)}if(u){var x,y;const E=g==="y"?"width":"height",R=["top","left"].includes(_e(o)),C=s.reference[m]-s.floating[E]+(R&&((x=a.offset)==null?void 0:x[m])||0)+(R?0:v.crossAxis),S=s.reference[m]+s.reference[E]+(R?0:((y=a.offset)==null?void 0:y[m])||0)-(R?v.crossAxis:0);w<C?w=C:w>S&&(w=S)}return{[g]:h,[m]:w}}}},hv=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:c}=t,{apply:d=()=>{},...u}=Le(e,t),p=await Qt(t,u),m=_e(o),g=_t(o),h=Ke(o)==="y",{width:w,height:f}=s.floating;let v,x;m==="top"||m==="bottom"?(v=m,x=g===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(x=m,v=g==="end"?"top":"bottom");const y=f-p.top-p.bottom,E=w-p.left-p.right,R=Ye(f-p[v],y),C=Ye(w-p[x],E),S=!t.middlewareData.shift;let b=R,P=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(b=y),S&&!g){const k=ge(p.left,0),U=ge(p.right,0),Y=ge(p.top,0),W=ge(p.bottom,0);h?P=w-2*(k!==0||U!==0?k+U:ge(p.left,p.right)):b=f-2*(Y!==0||W!==0?Y+W:ge(p.top,p.bottom))}await d({...t,availableWidth:P,availableHeight:b});const N=await a.getDimensions(c.floating);return w!==N.width||f!==N.height?{reset:{rects:!0}}:{}}}};function ir(){return typeof window<"u"}function Ft(e){return wc(e)?(e.nodeName||"").toLowerCase():"#document"}function ye(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Oe(e){var t;return(t=(wc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wc(e){return ir()?e instanceof Node||e instanceof ye(e).Node:!1}function Ce(e){return ir()?e instanceof Element||e instanceof ye(e).Element:!1}function $e(e){return ir()?e instanceof HTMLElement||e instanceof ye(e).HTMLElement:!1}function ji(e){return!ir()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ye(e).ShadowRoot}function nn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Se(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function vv(e){return["table","td","th"].includes(Ft(e))}function ar(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function es(e){const t=ts(),n=Ce(e)?Se(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function gv(e){let t=Xe(e);for(;$e(t)&&!Ot(t);){if(es(t))return t;if(ar(t))return null;t=Xe(t)}return null}function ts(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ot(e){return["html","body","#document"].includes(Ft(e))}function Se(e){return ye(e).getComputedStyle(e)}function cr(e){return Ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xe(e){if(Ft(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ji(e)&&e.host||Oe(e);return ji(t)?t.host:t}function bc(e){const t=Xe(e);return Ot(t)?e.ownerDocument?e.ownerDocument.body:e.body:$e(t)&&nn(t)?t:bc(t)}function Jt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=bc(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=ye(o);if(s){const c=ho(a);return t.concat(a,a.visualViewport||[],nn(o)?o:[],c&&n?Jt(c):[])}return t.concat(o,Jt(o,[],n))}function ho(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Rc(e){const t=Se(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=$e(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=Bn(n)!==s||Bn(r)!==a;return c&&(n=s,r=a),{width:n,height:r,$:c}}function ns(e){return Ce(e)?e:e.contextElement}function Ct(e){const t=ns(e);if(!$e(t))return Ne(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Rc(t);let a=(s?Bn(n.width):n.width)/r,c=(s?Bn(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const xv=Ne(0);function Cc(e){const t=ye(e);return!ts()||!t.visualViewport?xv:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yv(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ye(e)?!1:t}function at(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=ns(e);let a=Ne(1);t&&(r?Ce(r)&&(a=Ct(r)):a=Ct(e));const c=yv(s,n,r)?Cc(s):Ne(0);let d=(o.left+c.x)/a.x,u=(o.top+c.y)/a.y,p=o.width/a.x,m=o.height/a.y;if(s){const g=ye(s),h=r&&Ce(r)?ye(r):r;let w=g,f=ho(w);for(;f&&r&&h!==w;){const v=Ct(f),x=f.getBoundingClientRect(),y=Se(f),E=x.left+(f.clientLeft+parseFloat(y.paddingLeft))*v.x,R=x.top+(f.clientTop+parseFloat(y.paddingTop))*v.y;d*=v.x,u*=v.y,p*=v.x,m*=v.y,d+=E,u+=R,w=ye(f),f=ho(w)}}return Vn({width:p,height:m,x:d,y:u})}function rs(e,t){const n=cr(e).scrollLeft;return t?t.left+n:at(Oe(e)).left+n}function Sc(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:rs(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function Ev(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=Oe(r),c=t?ar(t.floating):!1;if(r===a||c&&s)return n;let d={scrollLeft:0,scrollTop:0},u=Ne(1);const p=Ne(0),m=$e(r);if((m||!m&&!s)&&((Ft(r)!=="body"||nn(a))&&(d=cr(r)),$e(r))){const h=at(r);u=Ct(r),p.x=h.x+r.clientLeft,p.y=h.y+r.clientTop}const g=a&&!m&&!s?Sc(a,d,!0):Ne(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+p.x+g.x,y:n.y*u.y-d.scrollTop*u.y+p.y+g.y}}function wv(e){return Array.from(e.getClientRects())}function bv(e){const t=Oe(e),n=cr(e),r=e.ownerDocument.body,o=ge(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ge(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+rs(e);const c=-n.scrollTop;return Se(r).direction==="rtl"&&(a+=ge(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:c}}function Rv(e,t){const n=ye(e),r=Oe(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,c=0,d=0;if(o){s=o.width,a=o.height;const u=ts();(!u||u&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:s,height:a,x:c,y:d}}function Cv(e,t){const n=at(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=$e(e)?Ct(e):Ne(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,d=o*s.x,u=r*s.y;return{width:a,height:c,x:d,y:u}}function Pi(e,t,n){let r;if(t==="viewport")r=Rv(e,n);else if(t==="document")r=bv(Oe(e));else if(Ce(t))r=Cv(t,n);else{const o=Cc(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Vn(r)}function jc(e,t){const n=Xe(e);return n===t||!Ce(n)||Ot(n)?!1:Se(n).position==="fixed"||jc(n,t)}function Sv(e,t){const n=t.get(e);if(n)return n;let r=Jt(e,[],!1).filter(c=>Ce(c)&&Ft(c)!=="body"),o=null;const s=Se(e).position==="fixed";let a=s?Xe(e):e;for(;Ce(a)&&!Ot(a);){const c=Se(a),d=es(a);!d&&c.position==="fixed"&&(o=null),(s?!d&&!o:!d&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||nn(a)&&!d&&jc(e,a))?r=r.filter(p=>p!==a):o=c,a=Xe(a)}return t.set(e,r),r}function jv(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?ar(t)?[]:Sv(t,this._c):[].concat(n),r],c=a[0],d=a.reduce((u,p)=>{const m=Pi(t,p,o);return u.top=ge(m.top,u.top),u.right=Ye(m.right,u.right),u.bottom=Ye(m.bottom,u.bottom),u.left=ge(m.left,u.left),u},Pi(t,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Pv(e){const{width:t,height:n}=Rc(e);return{width:t,height:n}}function Tv(e,t,n){const r=$e(t),o=Oe(t),s=n==="fixed",a=at(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const d=Ne(0);if(r||!r&&!s)if((Ft(t)!=="body"||nn(o))&&(c=cr(t)),r){const g=at(t,!0,s,t);d.x=g.x+t.clientLeft,d.y=g.y+t.clientTop}else o&&(d.x=rs(o));const u=o&&!r&&!s?Sc(o,c):Ne(0),p=a.left+c.scrollLeft-d.x-u.x,m=a.top+c.scrollTop-d.y-u.y;return{x:p,y:m,width:a.width,height:a.height}}function _r(e){return Se(e).position==="static"}function Ti(e,t){if(!$e(e)||Se(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Oe(e)===n&&(n=n.ownerDocument.body),n}function Pc(e,t){const n=ye(e);if(ar(e))return n;if(!$e(e)){let o=Xe(e);for(;o&&!Ot(o);){if(Ce(o)&&!_r(o))return o;o=Xe(o)}return n}let r=Ti(e,t);for(;r&&vv(r)&&_r(r);)r=Ti(r,t);return r&&Ot(r)&&_r(r)&&!es(r)?n:r||gv(e)||n}const Av=async function(e){const t=this.getOffsetParent||Pc,n=this.getDimensions,r=await n(e.floating);return{reference:Tv(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Nv(e){return Se(e).direction==="rtl"}const $v={convertOffsetParentRelativeRectToViewportRelativeRect:Ev,getDocumentElement:Oe,getClippingRect:jv,getOffsetParent:Pc,getElementRects:Av,getClientRects:wv,getDimensions:Pv,getScale:Ct,isElement:Ce,isRTL:Nv};function Tc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ov(e,t){let n=null,r;const o=Oe(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),s();const u=e.getBoundingClientRect(),{left:p,top:m,width:g,height:h}=u;if(c||t(),!g||!h)return;const w=vn(m),f=vn(o.clientWidth-(p+g)),v=vn(o.clientHeight-(m+h)),x=vn(p),E={rootMargin:-w+"px "+-f+"px "+-v+"px "+-x+"px",threshold:ge(0,Ye(1,d))||1};let R=!0;function C(S){const b=S[0].intersectionRatio;if(b!==d){if(!R)return a();b?a(!1,b):r=setTimeout(()=>{a(!1,1e-7)},1e3)}b===1&&!Tc(u,e.getBoundingClientRect())&&a(),R=!1}try{n=new IntersectionObserver(C,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,E)}n.observe(e)}return a(!0),s}function os(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,u=ns(e),p=o||s?[...u?Jt(u):[],...Jt(t)]:[];p.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const m=u&&c?Ov(u,n):null;let g=-1,h=null;a&&(h=new ResizeObserver(x=>{let[y]=x;y&&y.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var E;(E=h)==null||E.observe(t)})),n()}),u&&!d&&h.observe(u),h.observe(t));let w,f=d?at(e):null;d&&v();function v(){const x=at(e);f&&!Tc(f,x)&&n(),f=x,w=requestAnimationFrame(v)}return n(),()=>{var x;p.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),m==null||m(),(x=h)==null||x.disconnect(),h=null,d&&cancelAnimationFrame(w)}}const Dv=fv,kv=pv,Iv=lv,Mv=hv,Lv=uv,Ai=cv,_v=mv,Fv=(e,t,n)=>{const r=new Map,o={platform:$v,...n},s={...o.platform,_c:r};return av(e,t,{...o,platform:s})};var $n=typeof document<"u"?Z.useLayoutEffect:Z.useEffect;function zn(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(!zn(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 s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!zn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Ac(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ni(e,t){const n=Ac(e);return Math.round(t*n)/n}function Fr(e){const t=i.useRef(e);return $n(()=>{t.current=e}),t}function ss(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:d,open:u}=e,[p,m]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,h]=i.useState(r);zn(g,r)||h(r);const[w,f]=i.useState(null),[v,x]=i.useState(null),y=i.useCallback($=>{$!==S.current&&(S.current=$,f($))},[]),E=i.useCallback($=>{$!==b.current&&(b.current=$,x($))},[]),R=s||w,C=a||v,S=i.useRef(null),b=i.useRef(null),P=i.useRef(p),N=d!=null,k=Fr(d),U=Fr(o),Y=Fr(u),W=i.useCallback(()=>{if(!S.current||!b.current)return;const $={placement:t,strategy:n,middleware:g};U.current&&($.platform=U.current),Fv(S.current,b.current,$).then(H=>{const te={...H,isPositioned:Y.current!==!1};T.current&&!zn(P.current,te)&&(P.current=te,Ze.flushSync(()=>{m(te)}))})},[g,t,n,U,Y]);$n(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,m($=>({...$,isPositioned:!1})))},[u]);const T=i.useRef(!1);$n(()=>(T.current=!0,()=>{T.current=!1}),[]),$n(()=>{if(R&&(S.current=R),C&&(b.current=C),R&&C){if(k.current)return k.current(R,C,W);W()}},[R,C,W,k,N]);const B=i.useMemo(()=>({reference:S,floating:b,setReference:y,setFloating:E}),[y,E]),M=i.useMemo(()=>({reference:R,floating:C}),[R,C]),L=i.useMemo(()=>{const $={position:n,left:0,top:0};if(!M.floating)return $;const H=Ni(M.floating,p.x),te=Ni(M.floating,p.y);return c?{...$,transform:"translate("+H+"px, "+te+"px)",...Ac(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:te}},[n,c,M.floating,p.x,p.y]);return i.useMemo(()=>({...p,update:W,refs:B,elements:M,floatingStyles:L}),[p,W,B,M,L])}const Wv=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?Ai({element:r.current,padding:o}).fn(n):{}:r?Ai({element:r,padding:o}).fn(n):{}}}},is=(e,t)=>({...Dv(e),options:[e,t]}),as=(e,t)=>({...kv(e),options:[e,t]}),cs=(e,t)=>({..._v(e),options:[e,t]}),ls=(e,t)=>({...Iv(e),options:[e,t]}),us=(e,t)=>({...Mv(e),options:[e,t]}),ds=(e,t)=>({...Lv(e),options:[e,t]}),fs=(e,t)=>({...Wv(e),options:[e,t]});var Bv="Arrow",Nc=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsxRuntimeExports.jsx(re.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});Nc.displayName=Bv;var Hv=Nc;function $c(e){const[t,n]=i.useState(void 0);return ce(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,c;if("borderBoxSize"in s){const d=s.borderBoxSize,u=Array.isArray(d)?d[0]:d;a=u.inlineSize,c=u.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ps="Popper",[Oc,Dc]=ft(ps),[Vv,kc]=Oc(ps),Ic=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return l.jsxRuntimeExports.jsx(Vv,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ic.displayName=ps;var Mc="PopperAnchor",Lc=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=kc(Mc,n),a=i.useRef(null),c=ne(t,a);return i.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:l.jsxRuntimeExports.jsx(re.div,{...o,ref:c})});Lc.displayName=Mc;var ms="PopperContent",[zv,Uv]=Oc(ms),_c=i.forwardRef((e,t)=>{var A,F,V,G,Q,K;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:w,...f}=e,v=kc(ms,n),[x,y]=i.useState(null),E=ne(t,oe=>y(oe)),[R,C]=i.useState(null),S=$c(R),b=(S==null?void 0:S.width)??0,P=(S==null?void 0:S.height)??0,N=r+(s!=="center"?"-"+s:""),k=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},U=Array.isArray(u)?u:[u],Y=U.length>0,W={padding:k,boundary:U.filter(Kv),altBoundary:Y},{refs:T,floatingStyles:B,placement:M,isPositioned:L,middlewareData:$}=ss({strategy:"fixed",placement:N,whileElementsMounted:(...oe)=>os(...oe,{animationFrame:h==="always"}),elements:{reference:v.anchor},middleware:[is({mainAxis:o+P,alignmentAxis:a}),d&&as({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?cs():void 0,...W}),d&&ls({...W}),us({...W,apply:({elements:oe,rects:de,availableWidth:De,availableHeight:ke})=>{const{width:Ie,height:Ht}=de.reference,pe=oe.floating.style;pe.setProperty("--radix-popper-available-width",`${De}px`),pe.setProperty("--radix-popper-available-height",`${ke}px`),pe.setProperty("--radix-popper-anchor-width",`${Ie}px`),pe.setProperty("--radix-popper-anchor-height",`${Ht}px`)}}),R&&fs({element:R,padding:c}),Xv({arrowWidth:b,arrowHeight:P}),g&&ds({strategy:"referenceHidden",...W})]}),[H,te]=Bc(M),J=ae(w);ce(()=>{L&&(J==null||J())},[L,J]);const j=(A=$.arrow)==null?void 0:A.x,D=(F=$.arrow)==null?void 0:F.y,_=((V=$.arrow)==null?void 0:V.centerOffset)!==0,[O,z]=i.useState();return ce(()=>{x&&z(window.getComputedStyle(x).zIndex)},[x]),l.jsxRuntimeExports.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:L?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(G=$.transformOrigin)==null?void 0:G.x,(Q=$.transformOrigin)==null?void 0:Q.y].join(" "),...((K=$.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsxRuntimeExports.jsx(zv,{scope:n,placedSide:H,onArrowChange:C,arrowX:j,arrowY:D,shouldHideArrow:_,children:l.jsxRuntimeExports.jsx(re.div,{"data-side":H,"data-align":te,...f,ref:E,style:{...f.style,animation:L?void 0:"none"}})})})});_c.displayName=ms;var Fc="PopperArrow",Yv={top:"bottom",right:"left",bottom:"top",left:"right"},Wc=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Uv(Fc,r),a=Yv[s.placedSide];return l.jsxRuntimeExports.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsxRuntimeExports.jsx(Hv,{...o,ref:n,style:{...o.style,display:"block"}})})});Wc.displayName=Fc;function Kv(e){return e!==null}var Xv=e=>({name:"transformOrigin",options:e,fn(t){var v,x,y;const{placement:n,rects:r,middlewareData:o}=t,a=((v=o.arrow)==null?void 0:v.centerOffset)!==0,c=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,p]=Bc(n),m={start:"0%",center:"50%",end:"100%"}[p],g=(((x=o.arrow)==null?void 0:x.x)??0)+c/2,h=(((y=o.arrow)==null?void 0:y.y)??0)+d/2;let w="",f="";return u==="bottom"?(w=a?m:`${g}px`,f=`${-d}px`):u==="top"?(w=a?m:`${g}px`,f=`${r.floating.height+d}px`):u==="right"?(w=`${-d}px`,f=a?m:`${h}px`):u==="left"&&(w=`${r.floating.width+d}px`,f=a?m:`${h}px`),{data:{x:w,y:f}}}});function Bc(e){const[t,n="center"]=e.split("-");return[t,n]}var Gv=Ic,qv=Lc,Zv=_c,Qv=Wc,Jv="Portal",hs=i.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,s]=i.useState(!1);ce(()=>s(!0),[]);const a=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return a?Kn.createPortal(l.jsxRuntimeExports.jsx(re.div,{...r,ref:t}),a):null});hs.displayName=Jv;function eg(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var tg="VisuallyHidden",lr=i.forwardRef((e,t)=>l.jsxRuntimeExports.jsx(re.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}}));lr.displayName=tg;var Kt="right-scroll-bar-position",Xt="width-before-scroll-bar",ng="with-scroll-bars-hidden",rg="--removed-body-scroll-bar-size";function Wr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function og(e,t){var n=Z.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var sg=typeof window<"u"?i.useLayoutEffect:i.useEffect,$i=new WeakMap;function Hc(e,t){var n=og(null,function(r){return e.forEach(function(o){return Wr(o,r)})});return sg(function(){var r=$i.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(c){s.has(c)||Wr(c,null)}),s.forEach(function(c){o.has(c)||Wr(c,a)})}$i.set(n,e)},[e]),n}var Vc=_a(),Br=function(){},ur=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Br,onWheelCapture:Br,onTouchMoveCapture:Br}),o=r[0],s=r[1],a=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,p=e.enabled,m=e.shards,g=e.sideCar,h=e.noIsolation,w=e.inert,f=e.allowPinchZoom,v=e.as,x=v===void 0?"div":v,y=e.gapMode,E=tn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=g,C=Hc([n,t]),S=ie(ie({},E),o);return i.createElement(i.Fragment,null,p&&i.createElement(R,{sideCar:Vc,removeScrollBar:u,shards:m,noIsolation:h,inert:w,setCallbacks:s,allowPinchZoom:!!f,lockRef:n,gapMode:y}),a?i.cloneElement(i.Children.only(c),ie(ie({},S),{ref:C})):i.createElement(x,ie({},S,{className:d,ref:C}),c))});ur.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ur.classNames={fullWidth:Xt,zeroRight:Kt};function ig(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ha();return t&&e.setAttribute("nonce",t),e}function ag(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function cg(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var lg=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ig())&&(ag(t,n),cg(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ug=function(){var e=lg();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},zc=function(){var e=ug(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},dg={left:0,top:0,right:0,gap:0},Hr=function(e){return parseInt(e||"",10)||0},fg=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Hr(n),Hr(r),Hr(o)]},pg=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return dg;var t=fg(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])}},mg=zc(),St="data-scroll-locked",hg=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
468
- .`.concat(ng,` {
467
+ `;function wh({children:e}){return l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e||"Date"})}function bh({children:e}){return l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e||"Sehr geehrte Damen und Herren"})}function Rh({children:e}){return l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e||"Mit freundlichen Grüßen"})}function Ch({address:e,children:t}){return!t&&!e?null:l.jsxRuntimeExports.jsx(fh,{children:t||e})}function Sh({address:e,children:t}){return l.jsxRuntimeExports.jsx(ph,{children:t||l.jsxRuntimeExports.jsx("span",{dangerouslySetInnerHTML:{__html:e||""}})})}function jh({address:e,children:t}){return l.jsxRuntimeExports.jsx(mh,{children:t||l.jsxRuntimeExports.jsx("span",{dangerouslySetInnerHTML:{__html:e||""}})})}function Ph({identificationFields:e=[],children:t}){return!t&&(!e||e.length===0)?null:l.jsxRuntimeExports.jsx(hh,{children:t||l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e.map((n,r)=>l.jsxRuntimeExports.jsxs(vh,{children:[n.label,l.jsxRuntimeExports.jsx("br",{}),l.jsxRuntimeExports.jsx("b",{children:n.value})]},r))})})}function Th({date:e,children:t}){return!t&&!e?null:l.jsxRuntimeExports.jsx(gh,{children:t||l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(wh,{}),": ",e]})})}function Ah({letterSubject:e,letterText:t,userFullName:n,children:r}){return l.jsxRuntimeExports.jsx(xh,{children:r||l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(yh,{children:e}),l.jsxRuntimeExports.jsxs(Ir,{children:[l.jsxRuntimeExports.jsx(bh,{}),","]}),l.jsxRuntimeExports.jsx(Eh,{children:l.jsxRuntimeExports.jsx("div",{dangerouslySetInnerHTML:{__html:(t==null?void 0:t.replace(/\n/g,"<br>"))||""}})}),l.jsxRuntimeExports.jsx(Ir,{children:l.jsxRuntimeExports.jsx(Rh,{})}),l.jsxRuntimeExports.jsx(Ir,{children:n})]})})}function Nh({senderAddressSlim:e,vendorAddress:t,senderAddress:n,identificationFields:r=[],date:o,letterSubject:s,letterText:a,userFullName:c,children:d,style:u}){return l.jsxRuntimeExports.jsx(uh,{style:u,children:l.jsxRuntimeExports.jsx(dh,{children:d||l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(Ch,{address:e}),l.jsxRuntimeExports.jsx(Sh,{address:t}),l.jsxRuntimeExports.jsx(jh,{address:n}),l.jsxRuntimeExports.jsx(Ph,{identificationFields:r}),l.jsxRuntimeExports.jsx(Th,{date:o}),l.jsxRuntimeExports.jsx(Ah,{letterSubject:s,letterText:a,userFullName:c})]})})})}function hi(e,[t,n]){return Math.min(n,Math.max(t,e))}function X(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 vi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ue(...e){return t=>{let n=!1;const r=e.map(o=>{const s=vi(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():vi(e[o],null)}}}}function ne(...e){return i.useCallback(Ue(...e),e)}var Zt=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),s=o.find(Oh);if(s){const a=s.props.children,c=o.map(d=>d===s?i.Children.count(a)>1?i.Children.only(null):i.isValidElement(a)?a.props.children:null:d);return l.jsxRuntimeExports.jsx(uo,{...r,ref:t,children:i.isValidElement(a)?i.cloneElement(a,void 0,c):null})}return l.jsxRuntimeExports.jsx(uo,{...r,ref:t,children:n})});Zt.displayName="Slot";var uo=i.forwardRef((e,t)=>{const{children:n,...r}=e;if(i.isValidElement(n)){const o=kh(n);return i.cloneElement(n,{...Dh(r,n.props),ref:t?Ue(t,o):o})}return i.Children.count(n)>1?i.Children.only(null):null});uo.displayName="SlotClone";var $h=({children:e})=>l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e});function Oh(e){return i.isValidElement(e)&&e.type===$h}function Dh(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{s(...c),o(...c)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function kh(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 mc(e){const t=e+"CollectionProvider",[n,r]=ft(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:E,children:f}=h,v=Z.useRef(null),y=Z.useRef(new Map).current;return l.jsxRuntimeExports.jsx(o,{scope:E,itemMap:y,collectionRef:v,children:f})};a.displayName=t;const c=e+"CollectionSlot",d=Z.forwardRef((h,E)=>{const{scope:f,children:v}=h,y=s(c,f),x=ne(E,y.collectionRef);return l.jsxRuntimeExports.jsx(Zt,{ref:x,children:v})});d.displayName=c;const u=e+"CollectionItemSlot",p="data-radix-collection-item",m=Z.forwardRef((h,E)=>{const{scope:f,children:v,...y}=h,x=Z.useRef(null),b=ne(E,x),R=s(u,f);return Z.useEffect(()=>(R.itemMap.set(x,{ref:x,...y}),()=>void R.itemMap.delete(x))),l.jsxRuntimeExports.jsx(Zt,{[p]:"",ref:b,children:v})});m.displayName=u;function g(h){const E=s(e+"CollectionConsumer",h);return Z.useCallback(()=>{const v=E.collectionRef.current;if(!v)return[];const y=Array.from(v.querySelectorAll(`[${p}]`));return Array.from(E.itemMap.values()).sort((R,C)=>y.indexOf(R.ref.current)-y.indexOf(C.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:a,Slot:d,ItemSlot:m},g,r]}var Ih=i.createContext(void 0);function Mh(e){const t=i.useContext(Ih);return e||t||"ltr"}var Lh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],re=Lh.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:s,...a}=r,c=s?Zt:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsxRuntimeExports.jsx(c,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function qo(e,t){e&&Ze.flushSync(()=>e.dispatchEvent(t))}var _h="DismissableLayer",fo="dismissableLayer.update",Fh="dismissableLayer.pointerDownOutside",Wh="dismissableLayer.focusOutside",gi,hc=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vc=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(hc),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=i.useState({}),E=ne(t,w=>m(w)),f=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=f.indexOf(v),x=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=x>=y,C=Vh(w=>{const P=w.target,N=[...u.branches].some(k=>k.contains(P));!R||N||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=zh(w=>{const P=w.target;[...u.branches].some(k=>k.contains(P))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return tr(w=>{x===u.layers.size-1&&(r==null||r(w),!w.defaultPrevented&&c&&(w.preventDefault(),c()))},g),i.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(gi=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),xi(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=gi)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),xi())},[p,u]),i.useEffect(()=>{const w=()=>h({});return document.addEventListener(fo,w),()=>document.removeEventListener(fo,w)},[]),l.jsxRuntimeExports.jsx(re.div,{...d,ref:E,style:{pointerEvents:b?R?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,S.onFocusCapture),onBlurCapture:X(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,C.onPointerDownCapture)})});vc.displayName=_h;var Bh="DismissableLayerBranch",Hh=i.forwardRef((e,t)=>{const n=i.useContext(hc),r=i.useRef(null),o=ne(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsxRuntimeExports.jsx(re.div,{...e,ref:o})});Hh.displayName=Bh;function Vh(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){gc(Fh,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function zh(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&gc(Wh,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function xi(){const e=new CustomEvent(fo);document.dispatchEvent(e)}function gc(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?qo(o,s):o.dispatchEvent(s)}var Mr="focusScope.autoFocusOnMount",Lr="focusScope.autoFocusOnUnmount",yi={bubbles:!1,cancelable:!0},Uh="FocusScope",xc=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[c,d]=i.useState(null),u=ae(o),p=ae(s),m=i.useRef(null),g=ne(t,f=>d(f)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let f=function(b){if(h.paused||!c)return;const R=b.target;c.contains(R)?m.current=R:He(m.current,{select:!0})},v=function(b){if(h.paused||!c)return;const R=b.relatedTarget;R!==null&&(c.contains(R)||He(m.current,{select:!0}))},y=function(b){if(document.activeElement===document.body)for(const C of b)C.removedNodes.length>0&&He(c)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const x=new MutationObserver(y);return c&&x.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),x.disconnect()}}},[r,c,h.paused]),i.useEffect(()=>{if(c){wi.add(h);const f=document.activeElement;if(!c.contains(f)){const y=new CustomEvent(Mr,yi);c.addEventListener(Mr,u),c.dispatchEvent(y),y.defaultPrevented||(Yh(Zh(yc(c)),{select:!0}),document.activeElement===f&&He(c))}return()=>{c.removeEventListener(Mr,u),setTimeout(()=>{const y=new CustomEvent(Lr,yi);c.addEventListener(Lr,p),c.dispatchEvent(y),y.defaultPrevented||He(f??document.body,{select:!0}),c.removeEventListener(Lr,p),wi.remove(h)},0)}}},[c,u,p,h]);const E=i.useCallback(f=>{if(!n&&!r||h.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,y=document.activeElement;if(v&&y){const x=f.currentTarget,[b,R]=Kh(x);b&&R?!f.shiftKey&&y===R?(f.preventDefault(),n&&He(b,{select:!0})):f.shiftKey&&y===b&&(f.preventDefault(),n&&He(R,{select:!0})):y===x&&f.preventDefault()}},[n,r,h.paused]);return l.jsxRuntimeExports.jsx(re.div,{tabIndex:-1,...a,ref:g,onKeyDown:E})});xc.displayName=Uh;function Yh(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(He(r,{select:t}),document.activeElement!==n)return}function Kh(e){const t=yc(e),n=Ei(t,e),r=Ei(t.reverse(),e);return[n,r]}function yc(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 Ei(e,t){for(const n of e)if(!Xh(n,{upTo:t}))return n}function Xh(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 Gh(e){return e instanceof HTMLInputElement&&"select"in e}function He(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Gh(e)&&t&&e.select()}}var wi=qh();function qh(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=bi(e,t),e.unshift(t)},remove(t){var n;e=bi(e,t),(n=e[0])==null||n.resume()}}}function bi(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Zh(e){return e.filter(t=>t.tagName!=="A")}const Qh=["top","right","bottom","left"],Ye=Math.min,ge=Math.max,Bn=Math.round,vn=Math.floor,Ne=e=>({x:e,y:e}),Jh={left:"right",right:"left",bottom:"top",top:"bottom"},ev={start:"end",end:"start"};function po(e,t,n){return ge(e,Ye(t,n))}function Le(e,t){return typeof e=="function"?e(t):e}function _e(e){return e.split("-")[0]}function _t(e){return e.split("-")[1]}function Zo(e){return e==="x"?"y":"x"}function Qo(e){return e==="y"?"height":"width"}function Ke(e){return["top","bottom"].includes(_e(e))?"y":"x"}function Jo(e){return Zo(Ke(e))}function tv(e,t,n){n===void 0&&(n=!1);const r=_t(e),o=Jo(e),s=Qo(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Hn(a)),[a,Hn(a)]}function nv(e){const t=Hn(e);return[mo(e),t,mo(t)]}function mo(e){return e.replace(/start|end/g,t=>ev[t])}function rv(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:a;default:return[]}}function ov(e,t,n,r){const o=_t(e);let s=rv(_e(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(mo)))),s}function Hn(e){return e.replace(/left|right|bottom|top/g,t=>Jh[t])}function sv(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ec(e){return typeof e!="number"?sv(e):{top:e,right:e,bottom:e,left:e}}function Vn(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 Ri(e,t,n){let{reference:r,floating:o}=e;const s=Ke(t),a=Jo(t),c=Qo(a),d=_e(t),u=s==="y",p=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,g=r[c]/2-o[c]/2;let h;switch(d){case"top":h={x:p,y:r.y-o.height};break;case"bottom":h={x:p,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:m};break;case"left":h={x:r.x-o.width,y:m};break;default:h={x:r.x,y:r.y}}switch(_t(t)){case"start":h[a]-=g*(n&&u?-1:1);break;case"end":h[a]+=g*(n&&u?-1:1);break}return h}const iv=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,c=s.filter(Boolean),d=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:m}=Ri(u,r,d),g=r,h={},E=0;for(let f=0;f<c.length;f++){const{name:v,fn:y}=c[f],{x,y:b,data:R,reset:C}=await y({x:p,y:m,initialPlacement:r,placement:g,strategy:o,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});p=x??p,m=b??m,h={...h,[v]:{...h[v],...R}},C&&E<=50&&(E++,typeof C=="object"&&(C.placement&&(g=C.placement),C.rects&&(u=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:p,y:m}=Ri(u,g,d)),f=-1)}return{x:p,y:m,placement:g,strategy:o,middlewareData:h}};async function Qt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:c,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:g=!1,padding:h=0}=Le(t,e),E=Ec(h),v=c[g?m==="floating"?"reference":"floating":m],y=Vn(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:p,strategy:d})),x=m==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),R=await(s.isElement==null?void 0:s.isElement(b))?await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1}:{x:1,y:1},C=Vn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:b,strategy:d}):x);return{top:(y.top-C.top+E.top)/R.y,bottom:(C.bottom-y.bottom+E.bottom)/R.y,left:(y.left-C.left+E.left)/R.x,right:(C.right-y.right+E.right)/R.x}}const av=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:c,middlewareData:d}=t,{element:u,padding:p=0}=Le(e,t)||{};if(u==null)return{};const m=Ec(p),g={x:n,y:r},h=Jo(o),E=Qo(h),f=await a.getDimensions(u),v=h==="y",y=v?"top":"left",x=v?"bottom":"right",b=v?"clientHeight":"clientWidth",R=s.reference[E]+s.reference[h]-g[h]-s.floating[E],C=g[h]-s.reference[h],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let w=S?S[b]:0;(!w||!await(a.isElement==null?void 0:a.isElement(S)))&&(w=c.floating[b]||s.floating[E]);const P=R/2-C/2,N=w/2-f[E]/2-1,k=Ye(m[y],N),U=Ye(m[x],N),Y=k,W=w-f[E]-U,T=w/2-f[E]/2+P,B=po(Y,T,W),M=!d.arrow&&_t(o)!=null&&T!==B&&s.reference[E]/2-(T<Y?k:U)-f[E]/2<0,L=M?T<Y?T-Y:T-W:0;return{[h]:g[h]+L,data:{[h]:B,centerOffset:T-B-L,...M&&{alignmentOffset:L}},reset:M}}}),cv=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:c,platform:d,elements:u}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:f=!0,...v}=Le(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=_e(o),x=Ke(c),b=_e(c)===c,R=await(d.isRTL==null?void 0:d.isRTL(u.floating)),C=g||(b||!f?[Hn(c)]:nv(c)),S=E!=="none";!g&&S&&C.push(...ov(c,f,E,R));const w=[c,...C],P=await Qt(t,v),N=[];let k=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&N.push(P[y]),m){const T=tv(o,a,R);N.push(P[T[0]],P[T[1]])}if(k=[...k,{placement:o,overflows:N}],!N.every(T=>T<=0)){var U,Y;const T=(((U=s.flip)==null?void 0:U.index)||0)+1,B=w[T];if(B)return{data:{index:T,overflows:k},reset:{placement:B}};let M=(Y=k.filter(L=>L.overflows[0]<=0).sort((L,$)=>L.overflows[1]-$.overflows[1])[0])==null?void 0:Y.placement;if(!M)switch(h){case"bestFit":{var W;const L=(W=k.filter($=>{if(S){const H=Ke($.placement);return H===x||H==="y"}return!0}).map($=>[$.placement,$.overflows.filter(H=>H>0).reduce((H,te)=>H+te,0)]).sort(($,H)=>$[1]-H[1])[0])==null?void 0:W[0];L&&(M=L);break}case"initialPlacement":M=c;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Ci(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Si(e){return Qh.some(t=>e[t]>=0)}const lv=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Le(e,t);switch(r){case"referenceHidden":{const s=await Qt(t,{...o,elementContext:"reference"}),a=Ci(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Si(a)}}}case"escaped":{const s=await Qt(t,{...o,altBoundary:!0}),a=Ci(s,n.floating);return{data:{escapedOffsets:a,escaped:Si(a)}}}default:return{}}}}};async function uv(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=_e(n),c=_t(n),d=Ke(n)==="y",u=["left","top"].includes(a)?-1:1,p=s&&d?-1:1,m=Le(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:E}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof E=="number"&&(h=c==="end"?E*-1:E),d?{x:h*p,y:g*u}:{x:g*u,y:h*p}}const dv=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:c}=t,d=await uv(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:s+d.y,data:{...d,placement:a}}}}},fv=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:v=>{let{x:y,y:x}=v;return{x:y,y:x}}},...d}=Le(e,t),u={x:n,y:r},p=await Qt(t,d),m=Ke(_e(o)),g=Zo(m);let h=u[g],E=u[m];if(s){const v=g==="y"?"top":"left",y=g==="y"?"bottom":"right",x=h+p[v],b=h-p[y];h=po(x,h,b)}if(a){const v=m==="y"?"top":"left",y=m==="y"?"bottom":"right",x=E+p[v],b=E-p[y];E=po(x,E,b)}const f=c.fn({...t,[g]:h,[m]:E});return{...f,data:{x:f.x-n,y:f.y-r,enabled:{[g]:s,[m]:a}}}}}},pv=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:d=!0,crossAxis:u=!0}=Le(e,t),p={x:n,y:r},m=Ke(o),g=Zo(m);let h=p[g],E=p[m];const f=Le(c,t),v=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(d){const b=g==="y"?"height":"width",R=s.reference[g]-s.floating[b]+v.mainAxis,C=s.reference[g]+s.reference[b]-v.mainAxis;h<R?h=R:h>C&&(h=C)}if(u){var y,x;const b=g==="y"?"width":"height",R=["top","left"].includes(_e(o)),C=s.reference[m]-s.floating[b]+(R&&((y=a.offset)==null?void 0:y[m])||0)+(R?0:v.crossAxis),S=s.reference[m]+s.reference[b]+(R?0:((x=a.offset)==null?void 0:x[m])||0)-(R?v.crossAxis:0);E<C?E=C:E>S&&(E=S)}return{[g]:h,[m]:E}}}},mv=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:c}=t,{apply:d=()=>{},...u}=Le(e,t),p=await Qt(t,u),m=_e(o),g=_t(o),h=Ke(o)==="y",{width:E,height:f}=s.floating;let v,y;m==="top"||m==="bottom"?(v=m,y=g===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(y=m,v=g==="end"?"top":"bottom");const x=f-p.top-p.bottom,b=E-p.left-p.right,R=Ye(f-p[v],x),C=Ye(E-p[y],b),S=!t.middlewareData.shift;let w=R,P=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(w=x),S&&!g){const k=ge(p.left,0),U=ge(p.right,0),Y=ge(p.top,0),W=ge(p.bottom,0);h?P=E-2*(k!==0||U!==0?k+U:ge(p.left,p.right)):w=f-2*(Y!==0||W!==0?Y+W:ge(p.top,p.bottom))}await d({...t,availableWidth:P,availableHeight:w});const N=await a.getDimensions(c.floating);return E!==N.width||f!==N.height?{reset:{rects:!0}}:{}}}};function ir(){return typeof window<"u"}function Ft(e){return wc(e)?(e.nodeName||"").toLowerCase():"#document"}function ye(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Oe(e){var t;return(t=(wc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wc(e){return ir()?e instanceof Node||e instanceof ye(e).Node:!1}function Ce(e){return ir()?e instanceof Element||e instanceof ye(e).Element:!1}function $e(e){return ir()?e instanceof HTMLElement||e instanceof ye(e).HTMLElement:!1}function ji(e){return!ir()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ye(e).ShadowRoot}function nn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Se(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function hv(e){return["table","td","th"].includes(Ft(e))}function ar(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function es(e){const t=ts(),n=Ce(e)?Se(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function vv(e){let t=Xe(e);for(;$e(t)&&!Ot(t);){if(es(t))return t;if(ar(t))return null;t=Xe(t)}return null}function ts(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ot(e){return["html","body","#document"].includes(Ft(e))}function Se(e){return ye(e).getComputedStyle(e)}function cr(e){return Ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xe(e){if(Ft(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ji(e)&&e.host||Oe(e);return ji(t)?t.host:t}function bc(e){const t=Xe(e);return Ot(t)?e.ownerDocument?e.ownerDocument.body:e.body:$e(t)&&nn(t)?t:bc(t)}function Jt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=bc(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=ye(o);if(s){const c=ho(a);return t.concat(a,a.visualViewport||[],nn(o)?o:[],c&&n?Jt(c):[])}return t.concat(o,Jt(o,[],n))}function ho(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Rc(e){const t=Se(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=$e(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=Bn(n)!==s||Bn(r)!==a;return c&&(n=s,r=a),{width:n,height:r,$:c}}function ns(e){return Ce(e)?e:e.contextElement}function Ct(e){const t=ns(e);if(!$e(t))return Ne(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Rc(t);let a=(s?Bn(n.width):n.width)/r,c=(s?Bn(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const gv=Ne(0);function Cc(e){const t=ye(e);return!ts()||!t.visualViewport?gv:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xv(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ye(e)?!1:t}function at(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=ns(e);let a=Ne(1);t&&(r?Ce(r)&&(a=Ct(r)):a=Ct(e));const c=xv(s,n,r)?Cc(s):Ne(0);let d=(o.left+c.x)/a.x,u=(o.top+c.y)/a.y,p=o.width/a.x,m=o.height/a.y;if(s){const g=ye(s),h=r&&Ce(r)?ye(r):r;let E=g,f=ho(E);for(;f&&r&&h!==E;){const v=Ct(f),y=f.getBoundingClientRect(),x=Se(f),b=y.left+(f.clientLeft+parseFloat(x.paddingLeft))*v.x,R=y.top+(f.clientTop+parseFloat(x.paddingTop))*v.y;d*=v.x,u*=v.y,p*=v.x,m*=v.y,d+=b,u+=R,E=ye(f),f=ho(E)}}return Vn({width:p,height:m,x:d,y:u})}function rs(e,t){const n=cr(e).scrollLeft;return t?t.left+n:at(Oe(e)).left+n}function Sc(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:rs(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function yv(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=Oe(r),c=t?ar(t.floating):!1;if(r===a||c&&s)return n;let d={scrollLeft:0,scrollTop:0},u=Ne(1);const p=Ne(0),m=$e(r);if((m||!m&&!s)&&((Ft(r)!=="body"||nn(a))&&(d=cr(r)),$e(r))){const h=at(r);u=Ct(r),p.x=h.x+r.clientLeft,p.y=h.y+r.clientTop}const g=a&&!m&&!s?Sc(a,d,!0):Ne(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+p.x+g.x,y:n.y*u.y-d.scrollTop*u.y+p.y+g.y}}function Ev(e){return Array.from(e.getClientRects())}function wv(e){const t=Oe(e),n=cr(e),r=e.ownerDocument.body,o=ge(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ge(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+rs(e);const c=-n.scrollTop;return Se(r).direction==="rtl"&&(a+=ge(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:c}}function bv(e,t){const n=ye(e),r=Oe(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,c=0,d=0;if(o){s=o.width,a=o.height;const u=ts();(!u||u&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:s,height:a,x:c,y:d}}function Rv(e,t){const n=at(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=$e(e)?Ct(e):Ne(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,d=o*s.x,u=r*s.y;return{width:a,height:c,x:d,y:u}}function Pi(e,t,n){let r;if(t==="viewport")r=bv(e,n);else if(t==="document")r=wv(Oe(e));else if(Ce(t))r=Rv(t,n);else{const o=Cc(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Vn(r)}function jc(e,t){const n=Xe(e);return n===t||!Ce(n)||Ot(n)?!1:Se(n).position==="fixed"||jc(n,t)}function Cv(e,t){const n=t.get(e);if(n)return n;let r=Jt(e,[],!1).filter(c=>Ce(c)&&Ft(c)!=="body"),o=null;const s=Se(e).position==="fixed";let a=s?Xe(e):e;for(;Ce(a)&&!Ot(a);){const c=Se(a),d=es(a);!d&&c.position==="fixed"&&(o=null),(s?!d&&!o:!d&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||nn(a)&&!d&&jc(e,a))?r=r.filter(p=>p!==a):o=c,a=Xe(a)}return t.set(e,r),r}function Sv(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?ar(t)?[]:Cv(t,this._c):[].concat(n),r],c=a[0],d=a.reduce((u,p)=>{const m=Pi(t,p,o);return u.top=ge(m.top,u.top),u.right=Ye(m.right,u.right),u.bottom=Ye(m.bottom,u.bottom),u.left=ge(m.left,u.left),u},Pi(t,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function jv(e){const{width:t,height:n}=Rc(e);return{width:t,height:n}}function Pv(e,t,n){const r=$e(t),o=Oe(t),s=n==="fixed",a=at(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const d=Ne(0);if(r||!r&&!s)if((Ft(t)!=="body"||nn(o))&&(c=cr(t)),r){const g=at(t,!0,s,t);d.x=g.x+t.clientLeft,d.y=g.y+t.clientTop}else o&&(d.x=rs(o));const u=o&&!r&&!s?Sc(o,c):Ne(0),p=a.left+c.scrollLeft-d.x-u.x,m=a.top+c.scrollTop-d.y-u.y;return{x:p,y:m,width:a.width,height:a.height}}function _r(e){return Se(e).position==="static"}function Ti(e,t){if(!$e(e)||Se(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Oe(e)===n&&(n=n.ownerDocument.body),n}function Pc(e,t){const n=ye(e);if(ar(e))return n;if(!$e(e)){let o=Xe(e);for(;o&&!Ot(o);){if(Ce(o)&&!_r(o))return o;o=Xe(o)}return n}let r=Ti(e,t);for(;r&&hv(r)&&_r(r);)r=Ti(r,t);return r&&Ot(r)&&_r(r)&&!es(r)?n:r||vv(e)||n}const Tv=async function(e){const t=this.getOffsetParent||Pc,n=this.getDimensions,r=await n(e.floating);return{reference:Pv(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Av(e){return Se(e).direction==="rtl"}const Nv={convertOffsetParentRelativeRectToViewportRelativeRect:yv,getDocumentElement:Oe,getClippingRect:Sv,getOffsetParent:Pc,getElementRects:Tv,getClientRects:Ev,getDimensions:jv,getScale:Ct,isElement:Ce,isRTL:Av};function Tc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $v(e,t){let n=null,r;const o=Oe(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),s();const u=e.getBoundingClientRect(),{left:p,top:m,width:g,height:h}=u;if(c||t(),!g||!h)return;const E=vn(m),f=vn(o.clientWidth-(p+g)),v=vn(o.clientHeight-(m+h)),y=vn(p),b={rootMargin:-E+"px "+-f+"px "+-v+"px "+-y+"px",threshold:ge(0,Ye(1,d))||1};let R=!0;function C(S){const w=S[0].intersectionRatio;if(w!==d){if(!R)return a();w?a(!1,w):r=setTimeout(()=>{a(!1,1e-7)},1e3)}w===1&&!Tc(u,e.getBoundingClientRect())&&a(),R=!1}try{n=new IntersectionObserver(C,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,b)}n.observe(e)}return a(!0),s}function os(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,u=ns(e),p=o||s?[...u?Jt(u):[],...Jt(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const m=u&&c?$v(u,n):null;let g=-1,h=null;a&&(h=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var b;(b=h)==null||b.observe(t)})),n()}),u&&!d&&h.observe(u),h.observe(t));let E,f=d?at(e):null;d&&v();function v(){const y=at(e);f&&!Tc(f,y)&&n(),f=y,E=requestAnimationFrame(v)}return n(),()=>{var y;p.forEach(x=>{o&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),m==null||m(),(y=h)==null||y.disconnect(),h=null,d&&cancelAnimationFrame(E)}}const Ov=dv,Dv=fv,kv=cv,Iv=mv,Mv=lv,Ai=av,Lv=pv,_v=(e,t,n)=>{const r=new Map,o={platform:Nv,...n},s={...o.platform,_c:r};return iv(e,t,{...o,platform:s})};var $n=typeof document<"u"?Z.useLayoutEffect:Z.useEffect;function zn(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(!zn(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 s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!zn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Ac(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ni(e,t){const n=Ac(e);return Math.round(t*n)/n}function Fr(e){const t=i.useRef(e);return $n(()=>{t.current=e}),t}function ss(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:d,open:u}=e,[p,m]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,h]=i.useState(r);zn(g,r)||h(r);const[E,f]=i.useState(null),[v,y]=i.useState(null),x=i.useCallback($=>{$!==S.current&&(S.current=$,f($))},[]),b=i.useCallback($=>{$!==w.current&&(w.current=$,y($))},[]),R=s||E,C=a||v,S=i.useRef(null),w=i.useRef(null),P=i.useRef(p),N=d!=null,k=Fr(d),U=Fr(o),Y=Fr(u),W=i.useCallback(()=>{if(!S.current||!w.current)return;const $={placement:t,strategy:n,middleware:g};U.current&&($.platform=U.current),_v(S.current,w.current,$).then(H=>{const te={...H,isPositioned:Y.current!==!1};T.current&&!zn(P.current,te)&&(P.current=te,Ze.flushSync(()=>{m(te)}))})},[g,t,n,U,Y]);$n(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,m($=>({...$,isPositioned:!1})))},[u]);const T=i.useRef(!1);$n(()=>(T.current=!0,()=>{T.current=!1}),[]),$n(()=>{if(R&&(S.current=R),C&&(w.current=C),R&&C){if(k.current)return k.current(R,C,W);W()}},[R,C,W,k,N]);const B=i.useMemo(()=>({reference:S,floating:w,setReference:x,setFloating:b}),[x,b]),M=i.useMemo(()=>({reference:R,floating:C}),[R,C]),L=i.useMemo(()=>{const $={position:n,left:0,top:0};if(!M.floating)return $;const H=Ni(M.floating,p.x),te=Ni(M.floating,p.y);return c?{...$,transform:"translate("+H+"px, "+te+"px)",...Ac(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:te}},[n,c,M.floating,p.x,p.y]);return i.useMemo(()=>({...p,update:W,refs:B,elements:M,floatingStyles:L}),[p,W,B,M,L])}const Fv=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?Ai({element:r.current,padding:o}).fn(n):{}:r?Ai({element:r,padding:o}).fn(n):{}}}},is=(e,t)=>({...Ov(e),options:[e,t]}),as=(e,t)=>({...Dv(e),options:[e,t]}),cs=(e,t)=>({...Lv(e),options:[e,t]}),ls=(e,t)=>({...kv(e),options:[e,t]}),us=(e,t)=>({...Iv(e),options:[e,t]}),ds=(e,t)=>({...Mv(e),options:[e,t]}),fs=(e,t)=>({...Fv(e),options:[e,t]});var Wv="Arrow",Nc=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsxRuntimeExports.jsx(re.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});Nc.displayName=Wv;var Bv=Nc;function $c(e){const[t,n]=i.useState(void 0);return ce(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,c;if("borderBoxSize"in s){const d=s.borderBoxSize,u=Array.isArray(d)?d[0]:d;a=u.inlineSize,c=u.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ps="Popper",[Oc,Dc]=ft(ps),[Hv,kc]=Oc(ps),Ic=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return l.jsxRuntimeExports.jsx(Hv,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ic.displayName=ps;var Mc="PopperAnchor",Lc=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=kc(Mc,n),a=i.useRef(null),c=ne(t,a);return i.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:l.jsxRuntimeExports.jsx(re.div,{...o,ref:c})});Lc.displayName=Mc;var ms="PopperContent",[Vv,zv]=Oc(ms),_c=i.forwardRef((e,t)=>{var A,F,V,G,Q,K;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:E,...f}=e,v=kc(ms,n),[y,x]=i.useState(null),b=ne(t,oe=>x(oe)),[R,C]=i.useState(null),S=$c(R),w=(S==null?void 0:S.width)??0,P=(S==null?void 0:S.height)??0,N=r+(s!=="center"?"-"+s:""),k=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},U=Array.isArray(u)?u:[u],Y=U.length>0,W={padding:k,boundary:U.filter(Yv),altBoundary:Y},{refs:T,floatingStyles:B,placement:M,isPositioned:L,middlewareData:$}=ss({strategy:"fixed",placement:N,whileElementsMounted:(...oe)=>os(...oe,{animationFrame:h==="always"}),elements:{reference:v.anchor},middleware:[is({mainAxis:o+P,alignmentAxis:a}),d&&as({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?cs():void 0,...W}),d&&ls({...W}),us({...W,apply:({elements:oe,rects:de,availableWidth:De,availableHeight:ke})=>{const{width:Ie,height:Ht}=de.reference,pe=oe.floating.style;pe.setProperty("--radix-popper-available-width",`${De}px`),pe.setProperty("--radix-popper-available-height",`${ke}px`),pe.setProperty("--radix-popper-anchor-width",`${Ie}px`),pe.setProperty("--radix-popper-anchor-height",`${Ht}px`)}}),R&&fs({element:R,padding:c}),Kv({arrowWidth:w,arrowHeight:P}),g&&ds({strategy:"referenceHidden",...W})]}),[H,te]=Bc(M),J=ae(E);ce(()=>{L&&(J==null||J())},[L,J]);const j=(A=$.arrow)==null?void 0:A.x,D=(F=$.arrow)==null?void 0:F.y,_=((V=$.arrow)==null?void 0:V.centerOffset)!==0,[O,z]=i.useState();return ce(()=>{y&&z(window.getComputedStyle(y).zIndex)},[y]),l.jsxRuntimeExports.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:L?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(G=$.transformOrigin)==null?void 0:G.x,(Q=$.transformOrigin)==null?void 0:Q.y].join(" "),...((K=$.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsxRuntimeExports.jsx(Vv,{scope:n,placedSide:H,onArrowChange:C,arrowX:j,arrowY:D,shouldHideArrow:_,children:l.jsxRuntimeExports.jsx(re.div,{"data-side":H,"data-align":te,...f,ref:b,style:{...f.style,animation:L?void 0:"none"}})})})});_c.displayName=ms;var Fc="PopperArrow",Uv={top:"bottom",right:"left",bottom:"top",left:"right"},Wc=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=zv(Fc,r),a=Uv[s.placedSide];return l.jsxRuntimeExports.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsxRuntimeExports.jsx(Bv,{...o,ref:n,style:{...o.style,display:"block"}})})});Wc.displayName=Fc;function Yv(e){return e!==null}var Kv=e=>({name:"transformOrigin",options:e,fn(t){var v,y,x;const{placement:n,rects:r,middlewareData:o}=t,a=((v=o.arrow)==null?void 0:v.centerOffset)!==0,c=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,p]=Bc(n),m={start:"0%",center:"50%",end:"100%"}[p],g=(((y=o.arrow)==null?void 0:y.x)??0)+c/2,h=(((x=o.arrow)==null?void 0:x.y)??0)+d/2;let E="",f="";return u==="bottom"?(E=a?m:`${g}px`,f=`${-d}px`):u==="top"?(E=a?m:`${g}px`,f=`${r.floating.height+d}px`):u==="right"?(E=`${-d}px`,f=a?m:`${h}px`):u==="left"&&(E=`${r.floating.width+d}px`,f=a?m:`${h}px`),{data:{x:E,y:f}}}});function Bc(e){const[t,n="center"]=e.split("-");return[t,n]}var Xv=Ic,Gv=Lc,qv=_c,Zv=Wc,Qv="Portal",hs=i.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,s]=i.useState(!1);ce(()=>s(!0),[]);const a=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return a?Kn.createPortal(l.jsxRuntimeExports.jsx(re.div,{...r,ref:t}),a):null});hs.displayName=Qv;function Jv(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var eg="VisuallyHidden",lr=i.forwardRef((e,t)=>l.jsxRuntimeExports.jsx(re.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}}));lr.displayName=eg;var Kt="right-scroll-bar-position",Xt="width-before-scroll-bar",tg="with-scroll-bars-hidden",ng="--removed-body-scroll-bar-size";function Wr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function rg(e,t){var n=Z.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var og=typeof window<"u"?i.useLayoutEffect:i.useEffect,$i=new WeakMap;function Hc(e,t){var n=rg(null,function(r){return e.forEach(function(o){return Wr(o,r)})});return og(function(){var r=$i.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(c){s.has(c)||Wr(c,null)}),s.forEach(function(c){o.has(c)||Wr(c,a)})}$i.set(n,e)},[e]),n}var Vc=_a(),Br=function(){},ur=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Br,onWheelCapture:Br,onTouchMoveCapture:Br}),o=r[0],s=r[1],a=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,p=e.enabled,m=e.shards,g=e.sideCar,h=e.noIsolation,E=e.inert,f=e.allowPinchZoom,v=e.as,y=v===void 0?"div":v,x=e.gapMode,b=tn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=g,C=Hc([n,t]),S=ie(ie({},b),o);return i.createElement(i.Fragment,null,p&&i.createElement(R,{sideCar:Vc,removeScrollBar:u,shards:m,noIsolation:h,inert:E,setCallbacks:s,allowPinchZoom:!!f,lockRef:n,gapMode:x}),a?i.cloneElement(i.Children.only(c),ie(ie({},S),{ref:C})):i.createElement(y,ie({},S,{className:d,ref:C}),c))});ur.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ur.classNames={fullWidth:Xt,zeroRight:Kt};function sg(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ha();return t&&e.setAttribute("nonce",t),e}function ig(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ag(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var cg=function(){var e=0,t=null;return{add:function(n){e==0&&(t=sg())&&(ig(t,n),ag(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},lg=function(){var e=cg();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},zc=function(){var e=lg(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ug={left:0,top:0,right:0,gap:0},Hr=function(e){return parseInt(e||"",10)||0},dg=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Hr(n),Hr(r),Hr(o)]},fg=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ug;var t=dg(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])}},pg=zc(),St="data-scroll-locked",mg=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
468
+ .`.concat(tg,` {
469
469
  overflow: hidden `).concat(r,`;
470
470
  padding-right: `).concat(c,"px ").concat(r,`;
471
471
  }
@@ -499,12 +499,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
499
499
  }
500
500
 
501
501
  body[`).concat(St,`] {
502
- `).concat(rg,": ").concat(c,`px;
502
+ `).concat(ng,": ").concat(c,`px;
503
503
  }
504
- `)},Oi=function(){var e=parseInt(document.body.getAttribute(St)||"0",10);return isFinite(e)?e:0},vg=function(){i.useEffect(function(){return document.body.setAttribute(St,(Oi()+1).toString()),function(){var e=Oi()-1;e<=0?document.body.removeAttribute(St):document.body.setAttribute(St,e.toString())}},[])},Uc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;vg();var s=i.useMemo(function(){return pg(o)},[o]);return i.createElement(mg,{styles:hg(s,!t,o,n?"":"!important")})},vo=!1;if(typeof window<"u")try{var gn=Object.defineProperty({},"passive",{get:function(){return vo=!0,!0}});window.addEventListener("test",gn,gn),window.removeEventListener("test",gn,gn)}catch{vo=!1}var gt=vo?{passive:!1}:!1,gg=function(e){return e.tagName==="TEXTAREA"},Yc=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!gg(e)&&n[t]==="visible")},xg=function(e){return Yc(e,"overflowY")},yg=function(e){return Yc(e,"overflowX")},Di=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Kc(e,r);if(o){var s=Xc(e,r),a=s[1],c=s[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Eg=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},wg=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Kc=function(e,t){return e==="v"?xg(t):yg(t)},Xc=function(e,t){return e==="v"?Eg(t):wg(t)},bg=function(e,t){return e==="h"&&t==="rtl"?-1:1},Rg=function(e,t,n,r,o){var s=bg(e,window.getComputedStyle(t).direction),a=s*r,c=n.target,d=t.contains(c),u=!1,p=a>0,m=0,g=0;do{var h=Xc(e,c),w=h[0],f=h[1],v=h[2],x=f-v-s*w;(w||x)&&Kc(e,c)&&(m+=x,g+=w),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(p&&(Math.abs(m)<1||!o)||!p&&(Math.abs(g)<1||!o))&&(u=!0),u},xn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ki=function(e){return[e.deltaX,e.deltaY]},Ii=function(e){return e&&"current"in e?e.current:e},Cg=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Sg=function(e){return`
504
+ `)},Oi=function(){var e=parseInt(document.body.getAttribute(St)||"0",10);return isFinite(e)?e:0},hg=function(){i.useEffect(function(){return document.body.setAttribute(St,(Oi()+1).toString()),function(){var e=Oi()-1;e<=0?document.body.removeAttribute(St):document.body.setAttribute(St,e.toString())}},[])},Uc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;hg();var s=i.useMemo(function(){return fg(o)},[o]);return i.createElement(pg,{styles:mg(s,!t,o,n?"":"!important")})},vo=!1;if(typeof window<"u")try{var gn=Object.defineProperty({},"passive",{get:function(){return vo=!0,!0}});window.addEventListener("test",gn,gn),window.removeEventListener("test",gn,gn)}catch{vo=!1}var gt=vo?{passive:!1}:!1,vg=function(e){return e.tagName==="TEXTAREA"},Yc=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!vg(e)&&n[t]==="visible")},gg=function(e){return Yc(e,"overflowY")},xg=function(e){return Yc(e,"overflowX")},Di=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Kc(e,r);if(o){var s=Xc(e,r),a=s[1],c=s[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},yg=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Eg=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Kc=function(e,t){return e==="v"?gg(t):xg(t)},Xc=function(e,t){return e==="v"?yg(t):Eg(t)},wg=function(e,t){return e==="h"&&t==="rtl"?-1:1},bg=function(e,t,n,r,o){var s=wg(e,window.getComputedStyle(t).direction),a=s*r,c=n.target,d=t.contains(c),u=!1,p=a>0,m=0,g=0;do{var h=Xc(e,c),E=h[0],f=h[1],v=h[2],y=f-v-s*E;(E||y)&&Kc(e,c)&&(m+=y,g+=E),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(p&&(Math.abs(m)<1||!o)||!p&&(Math.abs(g)<1||!o))&&(u=!0),u},xn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ki=function(e){return[e.deltaX,e.deltaY]},Ii=function(e){return e&&"current"in e?e.current:e},Rg=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Cg=function(e){return`
505
505
  .block-interactivity-`.concat(e,` {pointer-events: none;}
506
506
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
507
- `)},jg=0,xt=[];function Pg(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(jg++)[0],s=i.useState(Ho)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=Bo([e.lockRef.current],(e.shards||[]).map(Ii),!0).filter(Boolean);return f.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(f,v){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!a.current.allowPinchZoom;var x=xn(f),y=n.current,E="deltaX"in f?f.deltaX:y[0]-x[0],R="deltaY"in f?f.deltaY:y[1]-x[1],C,S=f.target,b=Math.abs(E)>Math.abs(R)?"h":"v";if("touches"in f&&b==="h"&&S.type==="range")return!1;var P=Di(b,S);if(!P)return!0;if(P?C=b:(C=b==="v"?"h":"v",P=Di(b,S)),!P)return!1;if(!r.current&&"changedTouches"in f&&(E||R)&&(r.current=C),!C)return!0;var N=r.current||C;return Rg(N,v,f,N==="h"?E:R,!0)},[]),d=i.useCallback(function(f){var v=f;if(!(!xt.length||xt[xt.length-1]!==s)){var x="deltaY"in v?ki(v):xn(v),y=t.current.filter(function(C){return C.name===v.type&&(C.target===v.target||v.target===C.shadowParent)&&Cg(C.delta,x)})[0];if(y&&y.should){v.cancelable&&v.preventDefault();return}if(!y){var E=(a.current.shards||[]).map(Ii).filter(Boolean).filter(function(C){return C.contains(v.target)}),R=E.length>0?c(v,E[0]):!a.current.noIsolation;R&&v.cancelable&&v.preventDefault()}}},[]),u=i.useCallback(function(f,v,x,y){var E={name:f,delta:v,target:x,should:y,shadowParent:Tg(x)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),p=i.useCallback(function(f){n.current=xn(f),r.current=void 0},[]),m=i.useCallback(function(f){u(f.type,ki(f),f.target,c(f,e.lockRef.current))},[]),g=i.useCallback(function(f){u(f.type,xn(f),f.target,c(f,e.lockRef.current))},[]);i.useEffect(function(){return xt.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:g}),document.addEventListener("wheel",d,gt),document.addEventListener("touchmove",d,gt),document.addEventListener("touchstart",p,gt),function(){xt=xt.filter(function(f){return f!==s}),document.removeEventListener("wheel",d,gt),document.removeEventListener("touchmove",d,gt),document.removeEventListener("touchstart",p,gt)}},[]);var h=e.removeScrollBar,w=e.inert;return i.createElement(i.Fragment,null,w?i.createElement(s,{styles:Sg(o)}):null,h?i.createElement(Uc,{gapMode:e.gapMode}):null)}function Tg(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ag=Wa(Vc,Pg);var Gc=i.forwardRef(function(e,t){return i.createElement(ur,ie({},e,{ref:t,sideCar:Ag}))});Gc.classNames=ur.classNames;var Ng=[" ","Enter","ArrowUp","ArrowDown"],$g=[" ","Enter"],rn="Select",[dr,fr,Og]=mc(rn),[Wt,kb]=ft(rn,[Og,Dc]),pr=Dc(),[Dg,Qe]=Wt(rn),[kg,Ig]=Wt(rn),qc=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:a,defaultValue:c,onValueChange:d,dir:u,name:p,autoComplete:m,disabled:g,required:h,form:w}=e,f=pr(t),[v,x]=i.useState(null),[y,E]=i.useState(null),[R,C]=i.useState(!1),S=Lh(u),[b=!1,P]=qt({prop:r,defaultProp:o,onChange:s}),[N,k]=qt({prop:a,defaultProp:c,onChange:d}),U=i.useRef(null),Y=v?w||!!v.closest("form"):!0,[W,T]=i.useState(new Set),B=Array.from(W).map(M=>M.props.value).join(";");return l.jsxRuntimeExports.jsx(Gv,{...f,children:l.jsxRuntimeExports.jsxs(Dg,{required:h,scope:t,trigger:v,onTriggerChange:x,valueNode:y,onValueNodeChange:E,valueNodeHasChildren:R,onValueNodeHasChildrenChange:C,contentId:xe(),value:N,onValueChange:k,open:b,onOpenChange:P,dir:S,triggerPointerDownPosRef:U,disabled:g,children:[l.jsxRuntimeExports.jsx(dr.Provider,{scope:t,children:l.jsxRuntimeExports.jsx(kg,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(M=>{T(L=>new Set(L).add(M))},[]),onNativeOptionRemove:i.useCallback(M=>{T(L=>{const $=new Set(L);return $.delete(M),$})},[]),children:n})}),Y?l.jsxRuntimeExports.jsxs(wl,{"aria-hidden":!0,required:h,tabIndex:-1,name:p,autoComplete:m,value:N,onChange:M=>k(M.target.value),disabled:g,form:w,children:[N===void 0?l.jsxRuntimeExports.jsx("option",{value:""}):null,Array.from(W)]},B):null]})})};qc.displayName=rn;var Zc="SelectTrigger",Qc=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=pr(n),a=Qe(Zc,n),c=a.disabled||r,d=ne(t,a.onTriggerChange),u=fr(n),p=i.useRef("touch"),[m,g,h]=bl(f=>{const v=u().filter(E=>!E.disabled),x=v.find(E=>E.value===a.value),y=Rl(v,f,x);y!==void 0&&a.onValueChange(y.value)}),w=f=>{c||(a.onOpenChange(!0),h()),f&&(a.triggerPointerDownPosRef.current={x:Math.round(f.pageX),y:Math.round(f.pageY)})};return l.jsxRuntimeExports.jsx(qv,{asChild:!0,...s,children:l.jsxRuntimeExports.jsx(re.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":El(a.value)?"":void 0,...o,ref:d,onClick:X(o.onClick,f=>{f.currentTarget.focus(),p.current!=="mouse"&&w(f)}),onPointerDown:X(o.onPointerDown,f=>{p.current=f.pointerType;const v=f.target;v.hasPointerCapture(f.pointerId)&&v.releasePointerCapture(f.pointerId),f.button===0&&f.ctrlKey===!1&&f.pointerType==="mouse"&&(w(f),f.preventDefault())}),onKeyDown:X(o.onKeyDown,f=>{const v=m.current!=="";!(f.ctrlKey||f.altKey||f.metaKey)&&f.key.length===1&&g(f.key),!(v&&f.key===" ")&&Ng.includes(f.key)&&(w(),f.preventDefault())})})})});Qc.displayName=Zc;var Jc="SelectValue",el=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...c}=e,d=Qe(Jc,n),{onValueNodeHasChildrenChange:u}=d,p=s!==void 0,m=ne(t,d.onValueNodeChange);return ce(()=>{u(p)},[u,p]),l.jsxRuntimeExports.jsx(re.span,{...c,ref:m,style:{pointerEvents:"none"},children:El(d.value)?l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:a}):s})});el.displayName=Jc;var Mg="SelectIcon",tl=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return l.jsxRuntimeExports.jsx(re.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});tl.displayName=Mg;var Lg="SelectPortal",nl=e=>l.jsxRuntimeExports.jsx(hs,{asChild:!0,...e});nl.displayName=Lg;var ct="SelectContent",rl=i.forwardRef((e,t)=>{const n=Qe(ct,e.__scopeSelect),[r,o]=i.useState();if(ce(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Ze.createPortal(l.jsxRuntimeExports.jsx(ol,{scope:e.__scopeSelect,children:l.jsxRuntimeExports.jsx(dr.Slot,{scope:e.__scopeSelect,children:l.jsxRuntimeExports.jsx("div",{children:e.children})})}),s):null}return l.jsxRuntimeExports.jsx(sl,{...e,ref:t})});rl.displayName=ct;var be=10,[ol,Je]=Wt(ct),_g="SelectContentImpl",sl=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:c,sideOffset:d,align:u,alignOffset:p,arrowPadding:m,collisionBoundary:g,collisionPadding:h,sticky:w,hideWhenDetached:f,avoidCollisions:v,...x}=e,y=Qe(ct,n),[E,R]=i.useState(null),[C,S]=i.useState(null),b=ne(t,A=>R(A)),[P,N]=i.useState(null),[k,U]=i.useState(null),Y=fr(n),[W,T]=i.useState(!1),B=i.useRef(!1);i.useEffect(()=>{if(E)return or(E)},[E]),La();const M=i.useCallback(A=>{const[F,...V]=Y().map(K=>K.ref.current),[G]=V.slice(-1),Q=document.activeElement;for(const K of A)if(K===Q||(K==null||K.scrollIntoView({block:"nearest"}),K===F&&C&&(C.scrollTop=0),K===G&&C&&(C.scrollTop=C.scrollHeight),K==null||K.focus(),document.activeElement!==Q))return},[Y,C]),L=i.useCallback(()=>M([P,E]),[M,P,E]);i.useEffect(()=>{W&&L()},[W,L]);const{onOpenChange:$,triggerPointerDownPosRef:H}=y;i.useEffect(()=>{if(E){let A={x:0,y:0};const F=G=>{var Q,K;A={x:Math.abs(Math.round(G.pageX)-(((Q=H.current)==null?void 0:Q.x)??0)),y:Math.abs(Math.round(G.pageY)-(((K=H.current)==null?void 0:K.y)??0))}},V=G=>{A.x<=10&&A.y<=10?G.preventDefault():E.contains(G.target)||$(!1),document.removeEventListener("pointermove",F),H.current=null};return H.current!==null&&(document.addEventListener("pointermove",F),document.addEventListener("pointerup",V,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",F),document.removeEventListener("pointerup",V,{capture:!0})}}},[E,$,H]),i.useEffect(()=>{const A=()=>$(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[$]);const[te,J]=bl(A=>{const F=Y().filter(Q=>!Q.disabled),V=F.find(Q=>Q.ref.current===document.activeElement),G=Rl(F,A,V);G&&setTimeout(()=>G.ref.current.focus())}),j=i.useCallback((A,F,V)=>{const G=!B.current&&!V;(y.value!==void 0&&y.value===F||G)&&(N(A),G&&(B.current=!0))},[y.value]),D=i.useCallback(()=>E==null?void 0:E.focus(),[E]),_=i.useCallback((A,F,V)=>{const G=!B.current&&!V;(y.value!==void 0&&y.value===F||G)&&U(A)},[y.value]),O=r==="popper"?go:il,z=O===go?{side:c,sideOffset:d,align:u,alignOffset:p,arrowPadding:m,collisionBoundary:g,collisionPadding:h,sticky:w,hideWhenDetached:f,avoidCollisions:v}:{};return l.jsxRuntimeExports.jsx(ol,{scope:n,content:E,viewport:C,onViewportChange:S,itemRefCallback:j,selectedItem:P,onItemLeave:D,itemTextRefCallback:_,focusSelectedItem:L,selectedItemText:k,position:r,isPositioned:W,searchRef:te,children:l.jsxRuntimeExports.jsx(Gc,{as:Zt,allowPinchZoom:!0,children:l.jsxRuntimeExports.jsx(xc,{asChild:!0,trapped:y.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:X(o,A=>{var F;(F=y.trigger)==null||F.focus({preventScroll:!0}),A.preventDefault()}),children:l.jsxRuntimeExports.jsx(vc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:A=>A.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:l.jsxRuntimeExports.jsx(O,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:A=>A.preventDefault(),...x,...z,onPlaced:()=>T(!0),ref:b,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:X(x.onKeyDown,A=>{const F=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!F&&A.key.length===1&&J(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let G=Y().filter(Q=>!Q.disabled).map(Q=>Q.ref.current);if(["ArrowUp","End"].includes(A.key)&&(G=G.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const Q=A.target,K=G.indexOf(Q);G=G.slice(K+1)}setTimeout(()=>M(G)),A.preventDefault()}})})})})})})});sl.displayName=_g;var Fg="SelectItemAlignedPosition",il=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Qe(ct,n),a=Je(ct,n),[c,d]=i.useState(null),[u,p]=i.useState(null),m=ne(t,b=>p(b)),g=fr(n),h=i.useRef(!1),w=i.useRef(!0),{viewport:f,selectedItem:v,selectedItemText:x,focusSelectedItem:y}=a,E=i.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&u&&f&&v&&x){const b=s.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),N=s.valueNode.getBoundingClientRect(),k=x.getBoundingClientRect();if(s.dir!=="rtl"){const Q=k.left-P.left,K=N.left-Q,oe=b.left-K,de=b.width+oe,De=Math.max(de,P.width),ke=window.innerWidth-be,Ie=hi(K,[be,Math.max(be,ke-De)]);c.style.minWidth=de+"px",c.style.left=Ie+"px"}else{const Q=P.right-k.right,K=window.innerWidth-N.right-Q,oe=window.innerWidth-b.right-K,de=b.width+oe,De=Math.max(de,P.width),ke=window.innerWidth-be,Ie=hi(K,[be,Math.max(be,ke-De)]);c.style.minWidth=de+"px",c.style.right=Ie+"px"}const U=g(),Y=window.innerHeight-be*2,W=f.scrollHeight,T=window.getComputedStyle(u),B=parseInt(T.borderTopWidth,10),M=parseInt(T.paddingTop,10),L=parseInt(T.borderBottomWidth,10),$=parseInt(T.paddingBottom,10),H=B+M+W+$+L,te=Math.min(v.offsetHeight*5,H),J=window.getComputedStyle(f),j=parseInt(J.paddingTop,10),D=parseInt(J.paddingBottom,10),_=b.top+b.height/2-be,O=Y-_,z=v.offsetHeight/2,A=v.offsetTop+z,F=B+M+A,V=H-F;if(F<=_){const Q=U.length>0&&v===U[U.length-1].ref.current;c.style.bottom="0px";const K=u.clientHeight-f.offsetTop-f.offsetHeight,oe=Math.max(O,z+(Q?D:0)+K+L),de=F+oe;c.style.height=de+"px"}else{const Q=U.length>0&&v===U[0].ref.current;c.style.top="0px";const oe=Math.max(_,B+f.offsetTop+(Q?j:0)+z)+V;c.style.height=oe+"px",f.scrollTop=F-_+f.offsetTop}c.style.margin=`${be}px 0`,c.style.minHeight=te+"px",c.style.maxHeight=Y+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[g,s.trigger,s.valueNode,c,u,f,v,x,s.dir,r]);ce(()=>E(),[E]);const[R,C]=i.useState();ce(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]);const S=i.useCallback(b=>{b&&w.current===!0&&(E(),y==null||y(),w.current=!1)},[E,y]);return l.jsxRuntimeExports.jsx(Bg,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:h,onScrollButtonChange:S,children:l.jsxRuntimeExports.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:l.jsxRuntimeExports.jsx(re.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});il.displayName=Fg;var Wg="SelectPopperPosition",go=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=be,...s}=e,a=pr(n);return l.jsxRuntimeExports.jsx(Zv,{...a,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.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)"}})});go.displayName=Wg;var[Bg,vs]=Wt(ct,{}),xo="SelectViewport",al=i.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Je(xo,n),a=vs(xo,n),c=ne(t,s.onViewportChange),d=i.useRef(0);return l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.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}),l.jsxRuntimeExports.jsx(dr.Slot,{scope:n,children:l.jsxRuntimeExports.jsx(re.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:X(o.onScroll,u=>{const p=u.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:g}=a;if(g!=null&&g.current&&m){const h=Math.abs(d.current-p.scrollTop);if(h>0){const w=window.innerHeight-be*2,f=parseFloat(m.style.minHeight),v=parseFloat(m.style.height),x=Math.max(f,v);if(x<w){const y=x+h,E=Math.min(w,y),R=y-E;m.style.height=E+"px",m.style.bottom==="0px"&&(p.scrollTop=R>0?R:0,m.style.justifyContent="flex-end")}}}d.current=p.scrollTop})})})]})});al.displayName=xo;var cl="SelectGroup",[Hg,Vg]=Wt(cl),zg=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=xe();return l.jsxRuntimeExports.jsx(Hg,{scope:n,id:o,children:l.jsxRuntimeExports.jsx(re.div,{role:"group","aria-labelledby":o,...r,ref:t})})});zg.displayName=cl;var ll="SelectLabel",ul=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Vg(ll,n);return l.jsxRuntimeExports.jsx(re.div,{id:o.id,...r,ref:t})});ul.displayName=ll;var Un="SelectItem",[Ug,dl]=Wt(Un),fl=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...a}=e,c=Qe(Un,n),d=Je(Un,n),u=c.value===r,[p,m]=i.useState(s??""),[g,h]=i.useState(!1),w=ne(t,y=>{var E;return(E=d.itemRefCallback)==null?void 0:E.call(d,y,r,o)}),f=xe(),v=i.useRef("touch"),x=()=>{o||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return l.jsxRuntimeExports.jsx(Ug,{scope:n,value:r,disabled:o,textId:f,isSelected:u,onItemTextChange:i.useCallback(y=>{m(E=>E||((y==null?void 0:y.textContent)??"").trim())},[]),children:l.jsxRuntimeExports.jsx(dr.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:l.jsxRuntimeExports.jsx(re.div,{role:"option","aria-labelledby":f,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:w,onFocus:X(a.onFocus,()=>h(!0)),onBlur:X(a.onBlur,()=>h(!1)),onClick:X(a.onClick,()=>{v.current!=="mouse"&&x()}),onPointerUp:X(a.onPointerUp,()=>{v.current==="mouse"&&x()}),onPointerDown:X(a.onPointerDown,y=>{v.current=y.pointerType}),onPointerMove:X(a.onPointerMove,y=>{var E;v.current=y.pointerType,o?(E=d.onItemLeave)==null||E.call(d):v.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:X(a.onPointerLeave,y=>{var E;y.currentTarget===document.activeElement&&((E=d.onItemLeave)==null||E.call(d))}),onKeyDown:X(a.onKeyDown,y=>{var R;((R=d.searchRef)==null?void 0:R.current)!==""&&y.key===" "||($g.includes(y.key)&&x(),y.key===" "&&y.preventDefault())})})})})});fl.displayName=Un;var Ut="SelectItemText",pl=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,a=Qe(Ut,n),c=Je(Ut,n),d=dl(Ut,n),u=Ig(Ut,n),[p,m]=i.useState(null),g=ne(t,x=>m(x),d.onItemTextChange,x=>{var y;return(y=c.itemTextRefCallback)==null?void 0:y.call(c,x,d.value,d.disabled)}),h=p==null?void 0:p.textContent,w=i.useMemo(()=>l.jsxRuntimeExports.jsx("option",{value:d.value,disabled:d.disabled,children:h},d.value),[d.disabled,d.value,h]),{onNativeOptionAdd:f,onNativeOptionRemove:v}=u;return ce(()=>(f(w),()=>v(w)),[f,v,w]),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(re.span,{id:d.textId,...s,ref:g}),d.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Ze.createPortal(s.children,a.valueNode):null]})});pl.displayName=Ut;var ml="SelectItemIndicator",hl=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return dl(ml,n).isSelected?l.jsxRuntimeExports.jsx(re.span,{"aria-hidden":!0,...r,ref:t}):null});hl.displayName=ml;var yo="SelectScrollUpButton",vl=i.forwardRef((e,t)=>{const n=Je(yo,e.__scopeSelect),r=vs(yo,e.__scopeSelect),[o,s]=i.useState(!1),a=ne(t,r.onScrollButtonChange);return ce(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollTop>0;s(u)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?l.jsxRuntimeExports.jsx(xl,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop-d.offsetHeight)}}):null});vl.displayName=yo;var Eo="SelectScrollDownButton",gl=i.forwardRef((e,t)=>{const n=Je(Eo,e.__scopeSelect),r=vs(Eo,e.__scopeSelect),[o,s]=i.useState(!1),a=ne(t,r.onScrollButtonChange);return ce(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollHeight-d.clientHeight,p=Math.ceil(d.scrollTop)<u;s(p)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?l.jsxRuntimeExports.jsx(xl,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop+d.offsetHeight)}}):null});gl.displayName=Eo;var xl=i.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Je("SelectScrollButton",n),a=i.useRef(null),c=fr(n),d=i.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return i.useEffect(()=>()=>d(),[d]),ce(()=>{var p;const u=c().find(m=>m.ref.current===document.activeElement);(p=u==null?void 0:u.ref.current)==null||p.scrollIntoView({block:"nearest"})},[c]),l.jsxRuntimeExports.jsx(re.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:X(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:X(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:X(o.onPointerLeave,()=>{d()})})}),Yg="SelectSeparator",yl=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return l.jsxRuntimeExports.jsx(re.div,{"aria-hidden":!0,...r,ref:t})});yl.displayName=Yg;var wo="SelectArrow",Kg=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=pr(n),s=Qe(wo,n),a=Je(wo,n);return s.open&&a.position==="popper"?l.jsxRuntimeExports.jsx(Qv,{...o,...r,ref:t}):null});Kg.displayName=wo;function El(e){return e===""||e===void 0}var wl=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=i.useRef(null),s=ne(t,o),a=eg(n);return i.useEffect(()=>{const c=o.current,d=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(d,"value").set;if(a!==n&&p){const m=new Event("change",{bubbles:!0});p.call(c,n),c.dispatchEvent(m)}},[a,n]),l.jsxRuntimeExports.jsx(lr,{asChild:!0,children:l.jsxRuntimeExports.jsx("select",{...r,ref:s,defaultValue:n})})});wl.displayName="BubbleSelect";function bl(e){const t=ae(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(a=>{const c=n.current+a;t(c),function d(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>d(""),1e3))}(c)},[t]),s=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function Rl(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=Xg(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==n));const d=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function Xg(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Gg=qc,Cl=Qc,qg=el,Zg=tl,Qg=nl,Sl=rl,Jg=al,jl=ul,Pl=fl,ex=pl,tx=hl,Tl=vl,Al=gl,Nl=yl;const $l=Gg,Ol=qg,gs=i.forwardRef(({className:e,children:t,...n},r)=>l.jsxRuntimeExports.jsxs(Cl,{ref:r,className:l.cn("flex h-10 items-center justify-between placeholder:text-neutral-100 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,l.jsxRuntimeExports.jsx(Zg,{asChild:!0,children:l.jsxRuntimeExports.jsx(l.Chevron,{direction:"down",className:"h-4 w-4"})})]}));gs.displayName=Cl.displayName;const Dl=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(Tl,{ref:n,className:l.cn("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsxRuntimeExports.jsx(l.Chevron,{direction:"up",className:"h-4 w-4"})}));Dl.displayName=Tl.displayName;const kl=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(Al,{ref:n,className:l.cn("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsxRuntimeExports.jsx(l.Chevron,{direction:"down",className:"h-4 w-4"})}));kl.displayName=Al.displayName;const Il=i.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>l.jsxRuntimeExports.jsx(Qg,{children:l.jsxRuntimeExports.jsxs(Sl,{ref:o,className:l.cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white text-neutral-950 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 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",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:[l.jsxRuntimeExports.jsx(Dl,{}),l.jsxRuntimeExports.jsx(Jg,{className:l.cn(n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),l.jsxRuntimeExports.jsx(kl,{})]})}));Il.displayName=Sl.displayName;const nx=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(jl,{ref:n,className:l.cn("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));nx.displayName=jl.displayName;const Ml=i.forwardRef(({className:e,children:t,...n},r)=>l.jsxRuntimeExports.jsxs(Pl,{ref:r,className:l.cn("relative flex w-full cursor-default select-none items-center outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[l.jsxRuntimeExports.jsx("span",{className:"absolute right-6 flex h-3.5 w-3.5 items-center justify-center",children:l.jsxRuntimeExports.jsx(tx,{children:l.jsxRuntimeExports.jsx(l.Check,{color:l.colors.primary[900]})})}),l.jsxRuntimeExports.jsx(ex,{children:t})]}));Ml.displayName=Pl.displayName;const rx=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(Nl,{ref:n,className:l.cn("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800",e),...t}));rx.displayName=Nl.displayName;const ox=I(Ol)``,Ll=I.label`
507
+ `)},Sg=0,xt=[];function jg(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(Sg++)[0],s=i.useState(Ho)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=Bo([e.lockRef.current],(e.shards||[]).map(Ii),!0).filter(Boolean);return f.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(f,v){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!a.current.allowPinchZoom;var y=xn(f),x=n.current,b="deltaX"in f?f.deltaX:x[0]-y[0],R="deltaY"in f?f.deltaY:x[1]-y[1],C,S=f.target,w=Math.abs(b)>Math.abs(R)?"h":"v";if("touches"in f&&w==="h"&&S.type==="range")return!1;var P=Di(w,S);if(!P)return!0;if(P?C=w:(C=w==="v"?"h":"v",P=Di(w,S)),!P)return!1;if(!r.current&&"changedTouches"in f&&(b||R)&&(r.current=C),!C)return!0;var N=r.current||C;return bg(N,v,f,N==="h"?b:R,!0)},[]),d=i.useCallback(function(f){var v=f;if(!(!xt.length||xt[xt.length-1]!==s)){var y="deltaY"in v?ki(v):xn(v),x=t.current.filter(function(C){return C.name===v.type&&(C.target===v.target||v.target===C.shadowParent)&&Rg(C.delta,y)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}if(!x){var b=(a.current.shards||[]).map(Ii).filter(Boolean).filter(function(C){return C.contains(v.target)}),R=b.length>0?c(v,b[0]):!a.current.noIsolation;R&&v.cancelable&&v.preventDefault()}}},[]),u=i.useCallback(function(f,v,y,x){var b={name:f,delta:v,target:y,should:x,shadowParent:Pg(y)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(R){return R!==b})},1)},[]),p=i.useCallback(function(f){n.current=xn(f),r.current=void 0},[]),m=i.useCallback(function(f){u(f.type,ki(f),f.target,c(f,e.lockRef.current))},[]),g=i.useCallback(function(f){u(f.type,xn(f),f.target,c(f,e.lockRef.current))},[]);i.useEffect(function(){return xt.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:g}),document.addEventListener("wheel",d,gt),document.addEventListener("touchmove",d,gt),document.addEventListener("touchstart",p,gt),function(){xt=xt.filter(function(f){return f!==s}),document.removeEventListener("wheel",d,gt),document.removeEventListener("touchmove",d,gt),document.removeEventListener("touchstart",p,gt)}},[]);var h=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(s,{styles:Cg(o)}):null,h?i.createElement(Uc,{gapMode:e.gapMode}):null)}function Pg(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Tg=Wa(Vc,jg);var Gc=i.forwardRef(function(e,t){return i.createElement(ur,ie({},e,{ref:t,sideCar:Tg}))});Gc.classNames=ur.classNames;var Ag=[" ","Enter","ArrowUp","ArrowDown"],Ng=[" ","Enter"],rn="Select",[dr,fr,$g]=mc(rn),[Wt,Ob]=ft(rn,[$g,Dc]),pr=Dc(),[Og,Qe]=Wt(rn),[Dg,kg]=Wt(rn),qc=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:a,defaultValue:c,onValueChange:d,dir:u,name:p,autoComplete:m,disabled:g,required:h,form:E}=e,f=pr(t),[v,y]=i.useState(null),[x,b]=i.useState(null),[R,C]=i.useState(!1),S=Mh(u),[w=!1,P]=qt({prop:r,defaultProp:o,onChange:s}),[N,k]=qt({prop:a,defaultProp:c,onChange:d}),U=i.useRef(null),Y=v?E||!!v.closest("form"):!0,[W,T]=i.useState(new Set),B=Array.from(W).map(M=>M.props.value).join(";");return l.jsxRuntimeExports.jsx(Xv,{...f,children:l.jsxRuntimeExports.jsxs(Og,{required:h,scope:t,trigger:v,onTriggerChange:y,valueNode:x,onValueNodeChange:b,valueNodeHasChildren:R,onValueNodeHasChildrenChange:C,contentId:xe(),value:N,onValueChange:k,open:w,onOpenChange:P,dir:S,triggerPointerDownPosRef:U,disabled:g,children:[l.jsxRuntimeExports.jsx(dr.Provider,{scope:t,children:l.jsxRuntimeExports.jsx(Dg,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(M=>{T(L=>new Set(L).add(M))},[]),onNativeOptionRemove:i.useCallback(M=>{T(L=>{const $=new Set(L);return $.delete(M),$})},[]),children:n})}),Y?l.jsxRuntimeExports.jsxs(wl,{"aria-hidden":!0,required:h,tabIndex:-1,name:p,autoComplete:m,value:N,onChange:M=>k(M.target.value),disabled:g,form:E,children:[N===void 0?l.jsxRuntimeExports.jsx("option",{value:""}):null,Array.from(W)]},B):null]})})};qc.displayName=rn;var Zc="SelectTrigger",Qc=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=pr(n),a=Qe(Zc,n),c=a.disabled||r,d=ne(t,a.onTriggerChange),u=fr(n),p=i.useRef("touch"),[m,g,h]=bl(f=>{const v=u().filter(b=>!b.disabled),y=v.find(b=>b.value===a.value),x=Rl(v,f,y);x!==void 0&&a.onValueChange(x.value)}),E=f=>{c||(a.onOpenChange(!0),h()),f&&(a.triggerPointerDownPosRef.current={x:Math.round(f.pageX),y:Math.round(f.pageY)})};return l.jsxRuntimeExports.jsx(Gv,{asChild:!0,...s,children:l.jsxRuntimeExports.jsx(re.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":El(a.value)?"":void 0,...o,ref:d,onClick:X(o.onClick,f=>{f.currentTarget.focus(),p.current!=="mouse"&&E(f)}),onPointerDown:X(o.onPointerDown,f=>{p.current=f.pointerType;const v=f.target;v.hasPointerCapture(f.pointerId)&&v.releasePointerCapture(f.pointerId),f.button===0&&f.ctrlKey===!1&&f.pointerType==="mouse"&&(E(f),f.preventDefault())}),onKeyDown:X(o.onKeyDown,f=>{const v=m.current!=="";!(f.ctrlKey||f.altKey||f.metaKey)&&f.key.length===1&&g(f.key),!(v&&f.key===" ")&&Ag.includes(f.key)&&(E(),f.preventDefault())})})})});Qc.displayName=Zc;var Jc="SelectValue",el=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...c}=e,d=Qe(Jc,n),{onValueNodeHasChildrenChange:u}=d,p=s!==void 0,m=ne(t,d.onValueNodeChange);return ce(()=>{u(p)},[u,p]),l.jsxRuntimeExports.jsx(re.span,{...c,ref:m,style:{pointerEvents:"none"},children:El(d.value)?l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:a}):s})});el.displayName=Jc;var Ig="SelectIcon",tl=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return l.jsxRuntimeExports.jsx(re.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});tl.displayName=Ig;var Mg="SelectPortal",nl=e=>l.jsxRuntimeExports.jsx(hs,{asChild:!0,...e});nl.displayName=Mg;var ct="SelectContent",rl=i.forwardRef((e,t)=>{const n=Qe(ct,e.__scopeSelect),[r,o]=i.useState();if(ce(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Ze.createPortal(l.jsxRuntimeExports.jsx(ol,{scope:e.__scopeSelect,children:l.jsxRuntimeExports.jsx(dr.Slot,{scope:e.__scopeSelect,children:l.jsxRuntimeExports.jsx("div",{children:e.children})})}),s):null}return l.jsxRuntimeExports.jsx(sl,{...e,ref:t})});rl.displayName=ct;var be=10,[ol,Je]=Wt(ct),Lg="SelectContentImpl",sl=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:c,sideOffset:d,align:u,alignOffset:p,arrowPadding:m,collisionBoundary:g,collisionPadding:h,sticky:E,hideWhenDetached:f,avoidCollisions:v,...y}=e,x=Qe(ct,n),[b,R]=i.useState(null),[C,S]=i.useState(null),w=ne(t,A=>R(A)),[P,N]=i.useState(null),[k,U]=i.useState(null),Y=fr(n),[W,T]=i.useState(!1),B=i.useRef(!1);i.useEffect(()=>{if(b)return or(b)},[b]),La();const M=i.useCallback(A=>{const[F,...V]=Y().map(K=>K.ref.current),[G]=V.slice(-1),Q=document.activeElement;for(const K of A)if(K===Q||(K==null||K.scrollIntoView({block:"nearest"}),K===F&&C&&(C.scrollTop=0),K===G&&C&&(C.scrollTop=C.scrollHeight),K==null||K.focus(),document.activeElement!==Q))return},[Y,C]),L=i.useCallback(()=>M([P,b]),[M,P,b]);i.useEffect(()=>{W&&L()},[W,L]);const{onOpenChange:$,triggerPointerDownPosRef:H}=x;i.useEffect(()=>{if(b){let A={x:0,y:0};const F=G=>{var Q,K;A={x:Math.abs(Math.round(G.pageX)-(((Q=H.current)==null?void 0:Q.x)??0)),y:Math.abs(Math.round(G.pageY)-(((K=H.current)==null?void 0:K.y)??0))}},V=G=>{A.x<=10&&A.y<=10?G.preventDefault():b.contains(G.target)||$(!1),document.removeEventListener("pointermove",F),H.current=null};return H.current!==null&&(document.addEventListener("pointermove",F),document.addEventListener("pointerup",V,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",F),document.removeEventListener("pointerup",V,{capture:!0})}}},[b,$,H]),i.useEffect(()=>{const A=()=>$(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[$]);const[te,J]=bl(A=>{const F=Y().filter(Q=>!Q.disabled),V=F.find(Q=>Q.ref.current===document.activeElement),G=Rl(F,A,V);G&&setTimeout(()=>G.ref.current.focus())}),j=i.useCallback((A,F,V)=>{const G=!B.current&&!V;(x.value!==void 0&&x.value===F||G)&&(N(A),G&&(B.current=!0))},[x.value]),D=i.useCallback(()=>b==null?void 0:b.focus(),[b]),_=i.useCallback((A,F,V)=>{const G=!B.current&&!V;(x.value!==void 0&&x.value===F||G)&&U(A)},[x.value]),O=r==="popper"?go:il,z=O===go?{side:c,sideOffset:d,align:u,alignOffset:p,arrowPadding:m,collisionBoundary:g,collisionPadding:h,sticky:E,hideWhenDetached:f,avoidCollisions:v}:{};return l.jsxRuntimeExports.jsx(ol,{scope:n,content:b,viewport:C,onViewportChange:S,itemRefCallback:j,selectedItem:P,onItemLeave:D,itemTextRefCallback:_,focusSelectedItem:L,selectedItemText:k,position:r,isPositioned:W,searchRef:te,children:l.jsxRuntimeExports.jsx(Gc,{as:Zt,allowPinchZoom:!0,children:l.jsxRuntimeExports.jsx(xc,{asChild:!0,trapped:x.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:X(o,A=>{var F;(F=x.trigger)==null||F.focus({preventScroll:!0}),A.preventDefault()}),children:l.jsxRuntimeExports.jsx(vc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:A=>A.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:l.jsxRuntimeExports.jsx(O,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:A=>A.preventDefault(),...y,...z,onPlaced:()=>T(!0),ref:w,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:X(y.onKeyDown,A=>{const F=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!F&&A.key.length===1&&J(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let G=Y().filter(Q=>!Q.disabled).map(Q=>Q.ref.current);if(["ArrowUp","End"].includes(A.key)&&(G=G.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const Q=A.target,K=G.indexOf(Q);G=G.slice(K+1)}setTimeout(()=>M(G)),A.preventDefault()}})})})})})})});sl.displayName=Lg;var _g="SelectItemAlignedPosition",il=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Qe(ct,n),a=Je(ct,n),[c,d]=i.useState(null),[u,p]=i.useState(null),m=ne(t,w=>p(w)),g=fr(n),h=i.useRef(!1),E=i.useRef(!0),{viewport:f,selectedItem:v,selectedItemText:y,focusSelectedItem:x}=a,b=i.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&u&&f&&v&&y){const w=s.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),N=s.valueNode.getBoundingClientRect(),k=y.getBoundingClientRect();if(s.dir!=="rtl"){const Q=k.left-P.left,K=N.left-Q,oe=w.left-K,de=w.width+oe,De=Math.max(de,P.width),ke=window.innerWidth-be,Ie=hi(K,[be,Math.max(be,ke-De)]);c.style.minWidth=de+"px",c.style.left=Ie+"px"}else{const Q=P.right-k.right,K=window.innerWidth-N.right-Q,oe=window.innerWidth-w.right-K,de=w.width+oe,De=Math.max(de,P.width),ke=window.innerWidth-be,Ie=hi(K,[be,Math.max(be,ke-De)]);c.style.minWidth=de+"px",c.style.right=Ie+"px"}const U=g(),Y=window.innerHeight-be*2,W=f.scrollHeight,T=window.getComputedStyle(u),B=parseInt(T.borderTopWidth,10),M=parseInt(T.paddingTop,10),L=parseInt(T.borderBottomWidth,10),$=parseInt(T.paddingBottom,10),H=B+M+W+$+L,te=Math.min(v.offsetHeight*5,H),J=window.getComputedStyle(f),j=parseInt(J.paddingTop,10),D=parseInt(J.paddingBottom,10),_=w.top+w.height/2-be,O=Y-_,z=v.offsetHeight/2,A=v.offsetTop+z,F=B+M+A,V=H-F;if(F<=_){const Q=U.length>0&&v===U[U.length-1].ref.current;c.style.bottom="0px";const K=u.clientHeight-f.offsetTop-f.offsetHeight,oe=Math.max(O,z+(Q?D:0)+K+L),de=F+oe;c.style.height=de+"px"}else{const Q=U.length>0&&v===U[0].ref.current;c.style.top="0px";const oe=Math.max(_,B+f.offsetTop+(Q?j:0)+z)+V;c.style.height=oe+"px",f.scrollTop=F-_+f.offsetTop}c.style.margin=`${be}px 0`,c.style.minHeight=te+"px",c.style.maxHeight=Y+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[g,s.trigger,s.valueNode,c,u,f,v,y,s.dir,r]);ce(()=>b(),[b]);const[R,C]=i.useState();ce(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]);const S=i.useCallback(w=>{w&&E.current===!0&&(b(),x==null||x(),E.current=!1)},[b,x]);return l.jsxRuntimeExports.jsx(Wg,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:h,onScrollButtonChange:S,children:l.jsxRuntimeExports.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:l.jsxRuntimeExports.jsx(re.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});il.displayName=_g;var Fg="SelectPopperPosition",go=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=be,...s}=e,a=pr(n);return l.jsxRuntimeExports.jsx(qv,{...a,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.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)"}})});go.displayName=Fg;var[Wg,vs]=Wt(ct,{}),xo="SelectViewport",al=i.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Je(xo,n),a=vs(xo,n),c=ne(t,s.onViewportChange),d=i.useRef(0);return l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.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}),l.jsxRuntimeExports.jsx(dr.Slot,{scope:n,children:l.jsxRuntimeExports.jsx(re.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:X(o.onScroll,u=>{const p=u.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:g}=a;if(g!=null&&g.current&&m){const h=Math.abs(d.current-p.scrollTop);if(h>0){const E=window.innerHeight-be*2,f=parseFloat(m.style.minHeight),v=parseFloat(m.style.height),y=Math.max(f,v);if(y<E){const x=y+h,b=Math.min(E,x),R=x-b;m.style.height=b+"px",m.style.bottom==="0px"&&(p.scrollTop=R>0?R:0,m.style.justifyContent="flex-end")}}}d.current=p.scrollTop})})})]})});al.displayName=xo;var cl="SelectGroup",[Bg,Hg]=Wt(cl),Vg=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=xe();return l.jsxRuntimeExports.jsx(Bg,{scope:n,id:o,children:l.jsxRuntimeExports.jsx(re.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Vg.displayName=cl;var ll="SelectLabel",ul=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Hg(ll,n);return l.jsxRuntimeExports.jsx(re.div,{id:o.id,...r,ref:t})});ul.displayName=ll;var Un="SelectItem",[zg,dl]=Wt(Un),fl=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...a}=e,c=Qe(Un,n),d=Je(Un,n),u=c.value===r,[p,m]=i.useState(s??""),[g,h]=i.useState(!1),E=ne(t,x=>{var b;return(b=d.itemRefCallback)==null?void 0:b.call(d,x,r,o)}),f=xe(),v=i.useRef("touch"),y=()=>{o||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return l.jsxRuntimeExports.jsx(zg,{scope:n,value:r,disabled:o,textId:f,isSelected:u,onItemTextChange:i.useCallback(x=>{m(b=>b||((x==null?void 0:x.textContent)??"").trim())},[]),children:l.jsxRuntimeExports.jsx(dr.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:l.jsxRuntimeExports.jsx(re.div,{role:"option","aria-labelledby":f,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:E,onFocus:X(a.onFocus,()=>h(!0)),onBlur:X(a.onBlur,()=>h(!1)),onClick:X(a.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:X(a.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:X(a.onPointerDown,x=>{v.current=x.pointerType}),onPointerMove:X(a.onPointerMove,x=>{var b;v.current=x.pointerType,o?(b=d.onItemLeave)==null||b.call(d):v.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:X(a.onPointerLeave,x=>{var b;x.currentTarget===document.activeElement&&((b=d.onItemLeave)==null||b.call(d))}),onKeyDown:X(a.onKeyDown,x=>{var R;((R=d.searchRef)==null?void 0:R.current)!==""&&x.key===" "||(Ng.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});fl.displayName=Un;var Ut="SelectItemText",pl=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,a=Qe(Ut,n),c=Je(Ut,n),d=dl(Ut,n),u=kg(Ut,n),[p,m]=i.useState(null),g=ne(t,y=>m(y),d.onItemTextChange,y=>{var x;return(x=c.itemTextRefCallback)==null?void 0:x.call(c,y,d.value,d.disabled)}),h=p==null?void 0:p.textContent,E=i.useMemo(()=>l.jsxRuntimeExports.jsx("option",{value:d.value,disabled:d.disabled,children:h},d.value),[d.disabled,d.value,h]),{onNativeOptionAdd:f,onNativeOptionRemove:v}=u;return ce(()=>(f(E),()=>v(E)),[f,v,E]),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(re.span,{id:d.textId,...s,ref:g}),d.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Ze.createPortal(s.children,a.valueNode):null]})});pl.displayName=Ut;var ml="SelectItemIndicator",hl=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return dl(ml,n).isSelected?l.jsxRuntimeExports.jsx(re.span,{"aria-hidden":!0,...r,ref:t}):null});hl.displayName=ml;var yo="SelectScrollUpButton",vl=i.forwardRef((e,t)=>{const n=Je(yo,e.__scopeSelect),r=vs(yo,e.__scopeSelect),[o,s]=i.useState(!1),a=ne(t,r.onScrollButtonChange);return ce(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollTop>0;s(u)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?l.jsxRuntimeExports.jsx(xl,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop-d.offsetHeight)}}):null});vl.displayName=yo;var Eo="SelectScrollDownButton",gl=i.forwardRef((e,t)=>{const n=Je(Eo,e.__scopeSelect),r=vs(Eo,e.__scopeSelect),[o,s]=i.useState(!1),a=ne(t,r.onScrollButtonChange);return ce(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollHeight-d.clientHeight,p=Math.ceil(d.scrollTop)<u;s(p)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?l.jsxRuntimeExports.jsx(xl,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop+d.offsetHeight)}}):null});gl.displayName=Eo;var xl=i.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Je("SelectScrollButton",n),a=i.useRef(null),c=fr(n),d=i.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return i.useEffect(()=>()=>d(),[d]),ce(()=>{var p;const u=c().find(m=>m.ref.current===document.activeElement);(p=u==null?void 0:u.ref.current)==null||p.scrollIntoView({block:"nearest"})},[c]),l.jsxRuntimeExports.jsx(re.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:X(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:X(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:X(o.onPointerLeave,()=>{d()})})}),Ug="SelectSeparator",yl=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return l.jsxRuntimeExports.jsx(re.div,{"aria-hidden":!0,...r,ref:t})});yl.displayName=Ug;var wo="SelectArrow",Yg=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=pr(n),s=Qe(wo,n),a=Je(wo,n);return s.open&&a.position==="popper"?l.jsxRuntimeExports.jsx(Zv,{...o,...r,ref:t}):null});Yg.displayName=wo;function El(e){return e===""||e===void 0}var wl=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=i.useRef(null),s=ne(t,o),a=Jv(n);return i.useEffect(()=>{const c=o.current,d=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(d,"value").set;if(a!==n&&p){const m=new Event("change",{bubbles:!0});p.call(c,n),c.dispatchEvent(m)}},[a,n]),l.jsxRuntimeExports.jsx(lr,{asChild:!0,children:l.jsxRuntimeExports.jsx("select",{...r,ref:s,defaultValue:n})})});wl.displayName="BubbleSelect";function bl(e){const t=ae(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(a=>{const c=n.current+a;t(c),function d(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>d(""),1e3))}(c)},[t]),s=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function Rl(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=Kg(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==n));const d=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function Kg(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Xg=qc,Cl=Qc,Gg=el,qg=tl,Zg=nl,Sl=rl,Qg=al,jl=ul,Pl=fl,Jg=pl,ex=hl,Tl=vl,Al=gl,Nl=yl;const $l=Xg,Ol=Gg,gs=i.forwardRef(({className:e,children:t,...n},r)=>l.jsxRuntimeExports.jsxs(Cl,{ref:r,className:l.cn("flex h-10 items-center justify-between placeholder:text-neutral-100 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,l.jsxRuntimeExports.jsx(qg,{asChild:!0,children:l.jsxRuntimeExports.jsx(l.Chevron,{direction:"down",className:"h-4 w-4"})})]}));gs.displayName=Cl.displayName;const Dl=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(Tl,{ref:n,className:l.cn("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsxRuntimeExports.jsx(l.Chevron,{direction:"up",className:"h-4 w-4"})}));Dl.displayName=Tl.displayName;const kl=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(Al,{ref:n,className:l.cn("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsxRuntimeExports.jsx(l.Chevron,{direction:"down",className:"h-4 w-4"})}));kl.displayName=Al.displayName;const Il=i.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>l.jsxRuntimeExports.jsx(Zg,{children:l.jsxRuntimeExports.jsxs(Sl,{ref:o,className:l.cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white text-neutral-950 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 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",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:[l.jsxRuntimeExports.jsx(Dl,{}),l.jsxRuntimeExports.jsx(Qg,{className:l.cn(n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),l.jsxRuntimeExports.jsx(kl,{})]})}));Il.displayName=Sl.displayName;const tx=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(jl,{ref:n,className:l.cn("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));tx.displayName=jl.displayName;const Ml=i.forwardRef(({className:e,children:t,...n},r)=>l.jsxRuntimeExports.jsxs(Pl,{ref:r,className:l.cn("relative flex w-full cursor-default select-none items-center outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[l.jsxRuntimeExports.jsx("span",{className:"absolute right-6 flex h-3.5 w-3.5 items-center justify-center",children:l.jsxRuntimeExports.jsx(ex,{children:l.jsxRuntimeExports.jsx(l.Check,{color:l.colors.primary[900]})})}),l.jsxRuntimeExports.jsx(Jg,{children:t})]}));Ml.displayName=Pl.displayName;const nx=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(Nl,{ref:n,className:l.cn("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800",e),...t}));nx.displayName=Nl.displayName;const rx=I(Ol)``,Ll=I.label`
508
508
  position: absolute;
509
509
  top: 0;
510
510
  left: 0;
@@ -516,7 +516,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
516
516
  transition: 200ms all;
517
517
  display: flex;
518
518
  align-items: center;
519
- `,sx=I(gs)`
519
+ `,ox=I(gs)`
520
520
  width: 100%;
521
521
  position: relative;
522
522
  height: 3rem;
@@ -563,19 +563,19 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
563
563
  background: ${l.colors.neutral[50]};
564
564
  cursor: pointer;
565
565
  }
566
- `;function ix({label:e,options:t,onChange:n,value:r}){return Z.useEffect(()=>{t.length===1&&!r&&n(t[0].value)},[t,r]),l.jsxRuntimeExports.jsxs($l,{value:r,onValueChange:o=>n(o),children:[l.jsxRuntimeExports.jsxs(sx,{children:[l.jsxRuntimeExports.jsx(Ll,{children:e}),l.jsxRuntimeExports.jsx(ox,{})]}),l.jsxRuntimeExports.jsx(_l,{children:t.map(o=>l.jsxRuntimeExports.jsx(Fl,{$selected:r===o.value,value:o.value,children:o.text},o.value))})]})}function ax({height:e,width:t,...n}){return l.jsxRuntimeExports.jsx("div",{className:l.cn("animate-pulse bg-neutral-100"),style:{height:e,width:t},...n})}const cx=({height:e,width:t})=>l.jsxRuntimeExports.jsx(ax,{height:e,width:t}),lx=I(gs)`
566
+ `;function sx({label:e,options:t,onChange:n,value:r}){return Z.useEffect(()=>{t.length===1&&!r&&n(t[0].value)},[t,r]),l.jsxRuntimeExports.jsxs($l,{value:r,onValueChange:o=>n(o),children:[l.jsxRuntimeExports.jsxs(ox,{children:[l.jsxRuntimeExports.jsx(Ll,{children:e}),l.jsxRuntimeExports.jsx(rx,{})]}),l.jsxRuntimeExports.jsx(_l,{children:t.map(o=>l.jsxRuntimeExports.jsx(Fl,{$selected:r===o.value,value:o.value,children:o.text},o.value))})]})}function ix({height:e,width:t,...n}){return l.jsxRuntimeExports.jsx("div",{className:l.cn("animate-pulse bg-neutral-100"),style:{height:e,width:t},...n})}const ax=({height:e,width:t})=>l.jsxRuntimeExports.jsx(ix,{height:e,width:t}),cx=I(gs)`
567
567
  & span {
568
568
  color: ${l.colors.fg.primary};
569
569
  margin: 0;
570
570
  margin-right: 0.25rem;
571
571
  }
572
- `,ux=I.div`
572
+ `,lx=I.div`
573
573
  height: 1.313rem;
574
574
  width: 0.063rem;
575
575
  background: ${l.colors.border.default};
576
- `;function dx({value:e,onChange:t,children:n}){const[r,o]=Z.useState(e);Z.useEffect(()=>{o(e)},[e]);const s=a=>{o(a),t&&t(a)};return l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsxs($l,{value:r,onValueChange:s,children:[l.jsxRuntimeExports.jsx(lx,{children:l.jsxRuntimeExports.jsx(Ol,{children:r})}),l.jsxRuntimeExports.jsx(_l,{children:n})]}),l.jsxRuntimeExports.jsx(ux,{})]})}const fx=I.div`
576
+ `;function ux({value:e,onChange:t,children:n}){const[r,o]=Z.useState(e);Z.useEffect(()=>{o(e)},[e]);const s=a=>{o(a),t&&t(a)};return l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsxs($l,{value:r,onValueChange:s,children:[l.jsxRuntimeExports.jsx(cx,{children:l.jsxRuntimeExports.jsx(Ol,{children:r})}),l.jsxRuntimeExports.jsx(_l,{children:n})]}),l.jsxRuntimeExports.jsx(lx,{})]})}const dx=I.div`
577
577
  z-index: 1;
578
- `,px=I.div`
578
+ `,fx=I.div`
579
579
  position: absolute;
580
580
  display: flex;
581
581
  padding: 0.5rem 0.75rem;
@@ -590,7 +590,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
590
590
  color: ${l.colors.white};
591
591
  ${l.typography.body}
592
592
  font-size: 0.813rem;
593
- `;function mx({children:e}){const[t,n]=Z.useState(!1);return l.jsxRuntimeExports.jsxs(fx,{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:[t&&l.jsxRuntimeExports.jsx(px,{children:e}),l.jsxRuntimeExports.jsx(l.Info,{})]})}const Wl=Pa`
593
+ `;function px({children:e}){const[t,n]=Z.useState(!1);return l.jsxRuntimeExports.jsxs(dx,{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:[t&&l.jsxRuntimeExports.jsx(fx,{children:e}),l.jsxRuntimeExports.jsx(l.Info,{})]})}const Wl=Pa`
594
594
  height: 50%;
595
595
  transform: translateY(-5%);
596
596
  font-size: 0.75rem;
@@ -642,7 +642,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
642
642
  &::-webkit-inner-spin-button {
643
643
  -webkit-appearance: none;
644
644
  }
645
- `;function hx({label:e,value:t,type:n,currency:r,onChange:o,onBlur:s,tooltipText:a,error:c,helperText:d,...u}){const p=r?"number":n||"text",m=Z.useId();return l.jsxRuntimeExports.jsxs("div",{children:[l.jsxRuntimeExports.jsxs(Bl,{$error:!!c,children:[r&&l.jsxRuntimeExports.jsx(dx,{value:"€",children:l.jsxRuntimeExports.jsx(Fl,{value:"€",children:"EUR (€)"})}),l.jsxRuntimeExports.jsxs(Hl,{children:[l.jsxRuntimeExports.jsx(Vl,{type:p,id:`${m}-${e}`,onChange:g=>o(g.target.value),onBlur:s,value:t,...u}),l.jsxRuntimeExports.jsx(xs,{htmlFor:`${m}-${e}`,$hasValue:!!t,children:e})]}),a&&l.jsxRuntimeExports.jsx(mx,{children:a})]}),(c||d)&&l.jsxRuntimeExports.jsx(_n,{error:!!c,children:c||d})]})}const vx=I.div`
645
+ `;function mx({label:e,value:t,type:n,currency:r,onChange:o,onBlur:s,tooltipText:a,error:c,helperText:d,...u}){const p=r?"number":n||"text",m=Z.useId();return l.jsxRuntimeExports.jsxs("div",{children:[l.jsxRuntimeExports.jsxs(Bl,{$error:!!c,children:[r&&l.jsxRuntimeExports.jsx(ux,{value:"€",children:l.jsxRuntimeExports.jsx(Fl,{value:"€",children:"EUR (€)"})}),l.jsxRuntimeExports.jsxs(Hl,{children:[l.jsxRuntimeExports.jsx(Vl,{type:p,id:`${m}-${e}`,onChange:g=>o(g.target.value),onBlur:s,value:t,...u}),l.jsxRuntimeExports.jsx(xs,{htmlFor:`${m}-${e}`,$hasValue:!!t,children:e})]}),a&&l.jsxRuntimeExports.jsx(px,{children:a})]}),(c||d)&&l.jsxRuntimeExports.jsx(_n,{error:!!c,children:c||d})]})}const hx=I.div`
646
646
  margin: 0 auto;
647
647
  vertical-align: middle;
648
648
  position: relative;
@@ -689,7 +689,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
689
689
  transform: translate(-50%, -50%) scale(0);
690
690
  }
691
691
  }
692
- `;function zl({size:e="4rem",color:t=l.colors.fg.primary}){return l.jsxRuntimeExports.jsx(vx,{$size:e,$color:t})}const gx=1,xx=1e6;let Vr=0;function yx(){return Vr=(Vr+1)%Number.MAX_SAFE_INTEGER,Vr.toString()}const zr=new Map,Mi=e=>{if(zr.has(e))return;const t=setTimeout(()=>{zr.delete(e),Gt({type:"REMOVE_TOAST",toastId:e})},xx);zr.set(e,t)},Ex=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,gx)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Mi(n):e.toasts.forEach(r=>{Mi(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},On=[];let Dn={toasts:[]};function Gt(e){Dn=Ex(Dn,e),On.forEach(t=>{t(Dn)})}function wx({...e}){const t=yx(),n=o=>Gt({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Gt({type:"DISMISS_TOAST",toastId:t});return Gt({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function Ul(){const[e,t]=i.useState(Dn);return i.useEffect(()=>(On.push(t),()=>{const n=On.indexOf(t);n>-1&&On.splice(n,1)}),[e]),{...e,toast:wx,dismiss:n=>Gt({type:"DISMISS_TOAST",toastId:n})}}function bx(){return l.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:l.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM9 7.58579L7.58579 9L10.5858 12L7.58579 15L9 16.4142L12 13.4142L15 16.4142L16.4142 15L13.4142 12L16.4142 9L15 7.58579L12 10.5858L9 7.58579Z",fill:"#FE4C00"})})}function Rx(){return l.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:l.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM10 10H13V17H11V12H10V10ZM11 9V7H13V9H11Z",fill:"#9DA7A2"})})}function Cx(){return l.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:l.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 21.9996C17.5228 21.9996 22 17.5225 22 11.9996C22 6.47679 17.5228 1.99963 12 1.99963C6.47715 1.99963 2 6.47679 2 11.9996C2 17.5225 6.47715 21.9996 12 21.9996ZM10.5744 16.4881L16.4073 9.35888L14.8594 8.09241L10.4259 13.5112L8.50015 11.5854L7.08594 12.9996L10.5744 16.4881Z",fill:"#3B872C"})})}function Sx(){return l.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:l.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.7367 4.53861C12.9689 3.19498 11.0315 3.19498 10.2637 4.53861L1.71007 19.5075C0.948179 20.8408 1.91091 22.4998 3.44656 22.4998H20.5538C22.0895 22.4998 23.0522 20.8408 22.2903 19.5075L13.7367 4.53861ZM11 9.49997H13V15.5H11V9.49997ZM11 17.5H13V19.5H11V17.5Z",fill:"#FEA900"})})}var jx="DismissableLayer",bo="dismissableLayer.update",Px="dismissableLayer.pointerDownOutside",Tx="dismissableLayer.focusOutside",Li,Yl=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Kl=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(Yl),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=i.useState({}),w=ne(t,b=>m(b)),f=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(v),y=p?f.indexOf(p):-1,E=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=Nx(b=>{const P=b.target,N=[...u.branches].some(k=>k.contains(P));!R||N||(o==null||o(b),a==null||a(b),b.defaultPrevented||c==null||c())},g),S=$x(b=>{const P=b.target;[...u.branches].some(k=>k.contains(P))||(s==null||s(b),a==null||a(b),b.defaultPrevented||c==null||c())},g);return tr(b=>{y===u.layers.size-1&&(r==null||r(b),!b.defaultPrevented&&c&&(b.preventDefault(),c()))},g),i.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Li=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),_i(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Li)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),_i())},[p,u]),i.useEffect(()=>{const b=()=>h({});return document.addEventListener(bo,b),()=>document.removeEventListener(bo,b)},[]),l.jsxRuntimeExports.jsx(re.div,{...d,ref:w,style:{pointerEvents:E?R?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,S.onFocusCapture),onBlurCapture:X(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,C.onPointerDownCapture)})});Kl.displayName=jx;var Ax="DismissableLayerBranch",Xl=i.forwardRef((e,t)=>{const n=i.useContext(Yl),r=i.useRef(null),o=ne(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsxRuntimeExports.jsx(re.div,{...e,ref:o})});Xl.displayName=Ax;function Nx(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){Gl(Px,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function $x(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&Gl(Tx,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function _i(){const e=new CustomEvent(bo);document.dispatchEvent(e)}function Gl(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?qo(o,s):o.dispatchEvent(s)}var Ox=Kl,Dx=Xl;function kx(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var ys=e=>{const{present:t,children:n}=e,r=Ix(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),s=ne(r.ref,Mx(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:s}):null};ys.displayName="Presence";function Ix(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,d]=kx(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=yn(r.current);s.current=c==="mounted"?u:"none"},[c]),ce(()=>{const u=r.current,p=o.current;if(p!==e){const g=s.current,h=yn(u);e?d("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(p&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),ce(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,m=h=>{const f=yn(r.current).includes(h.animationName);if(h.target===t&&f&&(d("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},g=h=>{h.target===t&&(s.current=yn(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function yn(e){return(e==null?void 0:e.animationName)||"none"}function Mx(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 Es="ToastProvider",[ws,Lx,_x]=mc("Toast"),[ql,Ib]=ft("Toast",[_x]),[Fx,mr]=ql(Es),Zl=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:a}=e,[c,d]=i.useState(null),[u,p]=i.useState(0),m=i.useRef(!1),g=i.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Es}\`. Expected non-empty \`string\`.`),l.jsxRuntimeExports.jsx(ws.Provider,{scope:t,children:l.jsxRuntimeExports.jsx(Fx,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:u,viewport:c,onViewportChange:d,onToastAdd:i.useCallback(()=>p(h=>h+1),[]),onToastRemove:i.useCallback(()=>p(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:g,children:a})})};Zl.displayName=Es;var Ql="ToastViewport",Wx=["F8"],Ro="toast.viewportPause",Co="toast.viewportResume",Jl=i.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Wx,label:o="Notifications ({hotkey})",...s}=e,a=mr(Ql,n),c=Lx(n),d=i.useRef(null),u=i.useRef(null),p=i.useRef(null),m=i.useRef(null),g=ne(t,m,a.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=a.toastCount>0;i.useEffect(()=>{const v=x=>{var E;r.length!==0&&r.every(R=>x[R]||x.code===R)&&((E=m.current)==null||E.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),i.useEffect(()=>{const v=d.current,x=m.current;if(w&&v&&x){const y=()=>{if(!a.isClosePausedRef.current){const S=new CustomEvent(Ro);x.dispatchEvent(S),a.isClosePausedRef.current=!0}},E=()=>{if(a.isClosePausedRef.current){const S=new CustomEvent(Co);x.dispatchEvent(S),a.isClosePausedRef.current=!1}},R=S=>{!v.contains(S.relatedTarget)&&E()},C=()=>{v.contains(document.activeElement)||E()};return v.addEventListener("focusin",y),v.addEventListener("focusout",R),v.addEventListener("pointermove",y),v.addEventListener("pointerleave",C),window.addEventListener("blur",y),window.addEventListener("focus",E),()=>{v.removeEventListener("focusin",y),v.removeEventListener("focusout",R),v.removeEventListener("pointermove",y),v.removeEventListener("pointerleave",C),window.removeEventListener("blur",y),window.removeEventListener("focus",E)}}},[w,a.isClosePausedRef]);const f=i.useCallback(({tabbingDirection:v})=>{const y=c().map(E=>{const R=E.ref.current,C=[R,...Jx(R)];return v==="forwards"?C:C.reverse()});return(v==="forwards"?y.reverse():y).flat()},[c]);return i.useEffect(()=>{const v=m.current;if(v){const x=y=>{var C,S,b;const E=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!E){const P=document.activeElement,N=y.shiftKey;if(y.target===v&&N){(C=u.current)==null||C.focus();return}const Y=f({tabbingDirection:N?"backwards":"forwards"}),W=Y.findIndex(T=>T===P);Ur(Y.slice(W+1))?y.preventDefault():N?(S=u.current)==null||S.focus():(b=p.current)==null||b.focus()}};return v.addEventListener("keydown",x),()=>v.removeEventListener("keydown",x)}},[c,f]),l.jsxRuntimeExports.jsxs(Dx,{ref:d,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&l.jsxRuntimeExports.jsx(So,{ref:u,onFocusFromOutsideViewport:()=>{const v=f({tabbingDirection:"forwards"});Ur(v)}}),l.jsxRuntimeExports.jsx(ws.Slot,{scope:n,children:l.jsxRuntimeExports.jsx(re.ol,{tabIndex:-1,...s,ref:g})}),w&&l.jsxRuntimeExports.jsx(So,{ref:p,onFocusFromOutsideViewport:()=>{const v=f({tabbingDirection:"backwards"});Ur(v)}})]})});Jl.displayName=Ql;var eu="ToastFocusProxy",So=i.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=mr(eu,n);return l.jsxRuntimeExports.jsx(lr,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:a=>{var u;const c=a.relatedTarget;!((u=s.viewport)!=null&&u.contains(c))&&r()}})});So.displayName=eu;var hr="Toast",Bx="toast.swipeStart",Hx="toast.swipeMove",Vx="toast.swipeCancel",zx="toast.swipeEnd",tu=i.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...a}=e,[c=!0,d]=qt({prop:r,defaultProp:o,onChange:s});return l.jsxRuntimeExports.jsx(ys,{present:n||c,children:l.jsxRuntimeExports.jsx(Kx,{open:c,...a,ref:t,onClose:()=>d(!1),onPause:ae(e.onPause),onResume:ae(e.onResume),onSwipeStart:X(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:X(e.onSwipeMove,u=>{const{x:p,y:m}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${p}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${m}px`)}),onSwipeCancel:X(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:X(e.onSwipeEnd,u=>{const{x:p,y:m}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${p}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${m}px`),d(!1)})})})});tu.displayName=hr;var[Ux,Yx]=ql(hr,{onClose(){}}),Kx=i.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:a,onEscapeKeyDown:c,onPause:d,onResume:u,onSwipeStart:p,onSwipeMove:m,onSwipeCancel:g,onSwipeEnd:h,...w}=e,f=mr(hr,n),[v,x]=i.useState(null),y=ne(t,T=>x(T)),E=i.useRef(null),R=i.useRef(null),C=o||f.duration,S=i.useRef(0),b=i.useRef(C),P=i.useRef(0),{onToastAdd:N,onToastRemove:k}=f,U=ae(()=>{var B;(v==null?void 0:v.contains(document.activeElement))&&((B=f.viewport)==null||B.focus()),a()}),Y=i.useCallback(T=>{!T||T===1/0||(window.clearTimeout(P.current),S.current=new Date().getTime(),P.current=window.setTimeout(U,T))},[U]);i.useEffect(()=>{const T=f.viewport;if(T){const B=()=>{Y(b.current),u==null||u()},M=()=>{const L=new Date().getTime()-S.current;b.current=b.current-L,window.clearTimeout(P.current),d==null||d()};return T.addEventListener(Ro,M),T.addEventListener(Co,B),()=>{T.removeEventListener(Ro,M),T.removeEventListener(Co,B)}}},[f.viewport,C,d,u,Y]),i.useEffect(()=>{s&&!f.isClosePausedRef.current&&Y(C)},[s,C,f.isClosePausedRef,Y]),i.useEffect(()=>(N(),()=>k()),[N,k]);const W=i.useMemo(()=>v?cu(v):null,[v]);return f.viewport?l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[W&&l.jsxRuntimeExports.jsx(Xx,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:W}),l.jsxRuntimeExports.jsx(Ux,{scope:n,onClose:U,children:Ze.createPortal(l.jsxRuntimeExports.jsx(ws.ItemSlot,{scope:n,children:l.jsxRuntimeExports.jsx(Ox,{asChild:!0,onEscapeKeyDown:X(c,()=>{f.isFocusedToastEscapeKeyDownRef.current||U(),f.isFocusedToastEscapeKeyDownRef.current=!1}),children:l.jsxRuntimeExports.jsx(re.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":f.swipeDirection,...w,ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:X(e.onKeyDown,T=>{T.key==="Escape"&&(c==null||c(T.nativeEvent),T.nativeEvent.defaultPrevented||(f.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:X(e.onPointerDown,T=>{T.button===0&&(E.current={x:T.clientX,y:T.clientY})}),onPointerMove:X(e.onPointerMove,T=>{if(!E.current)return;const B=T.clientX-E.current.x,M=T.clientY-E.current.y,L=!!R.current,$=["left","right"].includes(f.swipeDirection),H=["left","up"].includes(f.swipeDirection)?Math.min:Math.max,te=$?H(0,B):0,J=$?0:H(0,M),j=T.pointerType==="touch"?10:2,D={x:te,y:J},_={originalEvent:T,delta:D};L?(R.current=D,En(Hx,m,_,{discrete:!1})):Fi(D,f.swipeDirection,j)?(R.current=D,En(Bx,p,_,{discrete:!1}),T.target.setPointerCapture(T.pointerId)):(Math.abs(B)>j||Math.abs(M)>j)&&(E.current=null)}),onPointerUp:X(e.onPointerUp,T=>{const B=R.current,M=T.target;if(M.hasPointerCapture(T.pointerId)&&M.releasePointerCapture(T.pointerId),R.current=null,E.current=null,B){const L=T.currentTarget,$={originalEvent:T,delta:B};Fi(B,f.swipeDirection,f.swipeThreshold)?En(zx,h,$,{discrete:!0}):En(Vx,g,$,{discrete:!0}),L.addEventListener("click",H=>H.preventDefault(),{once:!0})}})})})}),f.viewport)})]}):null}),Xx=e=>{const{__scopeToast:t,children:n,...r}=e,o=mr(hr,t),[s,a]=i.useState(!1),[c,d]=i.useState(!1);return Zx(()=>a(!0)),i.useEffect(()=>{const u=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(u)},[]),c?null:l.jsxRuntimeExports.jsx(hs,{asChild:!0,children:l.jsxRuntimeExports.jsx(lr,{...r,children:s&&l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[o.label," ",n]})})})},Gx="ToastTitle",nu=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsxRuntimeExports.jsx(re.div,{...r,ref:t})});nu.displayName=Gx;var qx="ToastDescription",ru=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsxRuntimeExports.jsx(re.div,{...r,ref:t})});ru.displayName=qx;var ou="ToastAction",su=i.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?l.jsxRuntimeExports.jsx(au,{altText:n,asChild:!0,children:l.jsxRuntimeExports.jsx(bs,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${ou}\`. Expected non-empty \`string\`.`),null)});su.displayName=ou;var iu="ToastClose",bs=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=Yx(iu,n);return l.jsxRuntimeExports.jsx(au,{asChild:!0,children:l.jsxRuntimeExports.jsx(re.button,{type:"button",...r,ref:t,onClick:X(e.onClick,o.onClose)})})});bs.displayName=iu;var au=i.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return l.jsxRuntimeExports.jsx(re.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function cu(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Qx(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const a=r.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...cu(r))}}),t}function En(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?qo(o,s):o.dispatchEvent(s)}var Fi=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function Zx(e=()=>{}){const t=ae(e);ce(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Qx(e){return e.nodeType===e.ELEMENT_NODE}function Jx(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 Ur(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var ey=Zl,lu=Jl,uu=tu,du=nu,fu=ru,pu=su,mu=bs;function hu(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=hu(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ty(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=hu(e))&&(r&&(r+=" "),r+=t);return r}const ny=ty,ry=(e,t)=>n=>ny(e,n==null?void 0:n.class,n==null?void 0:n.className),oy=ey,vu=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(lu,{ref:n,className:l.cn("fixed bottom-0 right-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:w-fit sm:min-w-[300px] sm:max-w-[420px]",e),...t}));vu.displayName=lu.displayName;const sy=ry("group pointer-events-auto relative flex w-full items-center overflow-hidden pr-8 transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-bottom-full data-[state=open]:slide-in-from-bottom-full"),gu=i.forwardRef(({className:e,testId:t,...n},r)=>l.jsxRuntimeExports.jsx(uu,{"data-testid":t,ref:r,className:l.cn(sy(),e),...n}));gu.displayName=uu.displayName;const iy=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(pu,{ref:n,className:l.cn("inline-flex h-8 shrink-0 items-center justify-center rounded-md border border-neutral-200 bg-transparent px-3 text-sm font-medium ring-offset-white transition-colors hover:bg-neutral-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-neutral-100/40 group-[.destructive]:hover:border-red-500/30 group-[.destructive]:hover:bg-red-500 group-[.destructive]:hover:text-neutral-50 group-[.destructive]:focus:ring-red-500 dark:border-neutral-800 dark:ring-offset-neutral-950 dark:hover:bg-neutral-800 dark:focus:ring-neutral-300 dark:group-[.destructive]:border-neutral-800/40 dark:group-[.destructive]:hover:border-red-900/30 dark:group-[.destructive]:hover:bg-red-900 dark:group-[.destructive]:hover:text-neutral-50 dark:group-[.destructive]:focus:ring-red-900",e),...t}));iy.displayName=pu.displayName;const xu=i.forwardRef(({color:e,...t},n)=>l.jsxRuntimeExports.jsx(mu,{ref:n,"toast-close":"",...t,children:l.jsxRuntimeExports.jsx(l.Close,{color:e,className:"h-4 w-4"})}));xu.displayName=mu.displayName;const yu=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(du,{ref:n,className:l.cn("text-sm font-semibold",e),...t}));yu.displayName=du.displayName;const Eu=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(fu,{ref:n,className:l.cn("text-sm opacity-90",e),...t}));Eu.displayName=fu.displayName;const jo={success:{background:l.colors.sf.light.action,color:l.colors.fg.accent.action},error:{background:l.colors.sf.light.error,color:l.colors.fg.accent.error},info:{background:l.colors.sf.light.tertiary,color:l.colors.fg.base},warning:{background:l.colors.sf.light.warning,color:l.colors.fg.accent.warning}},ay=I(gu)`
692
+ `;function zl({size:e="4rem",color:t=l.colors.fg.primary}){return l.jsxRuntimeExports.jsx(hx,{$size:e,$color:t})}const vx=1,gx=1e6;let Vr=0;function xx(){return Vr=(Vr+1)%Number.MAX_SAFE_INTEGER,Vr.toString()}const zr=new Map,Mi=e=>{if(zr.has(e))return;const t=setTimeout(()=>{zr.delete(e),Gt({type:"REMOVE_TOAST",toastId:e})},gx);zr.set(e,t)},yx=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,vx)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Mi(n):e.toasts.forEach(r=>{Mi(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},On=[];let Dn={toasts:[]};function Gt(e){Dn=yx(Dn,e),On.forEach(t=>{t(Dn)})}function Ex({...e}){const t=xx(),n=o=>Gt({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Gt({type:"DISMISS_TOAST",toastId:t});return Gt({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function Ul(){const[e,t]=i.useState(Dn);return i.useEffect(()=>(On.push(t),()=>{const n=On.indexOf(t);n>-1&&On.splice(n,1)}),[e]),{...e,toast:Ex,dismiss:n=>Gt({type:"DISMISS_TOAST",toastId:n})}}function wx(){return l.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:l.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM9 7.58579L7.58579 9L10.5858 12L7.58579 15L9 16.4142L12 13.4142L15 16.4142L16.4142 15L13.4142 12L16.4142 9L15 7.58579L12 10.5858L9 7.58579Z",fill:"#FE4C00"})})}function bx(){return l.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:l.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM10 10H13V17H11V12H10V10ZM11 9V7H13V9H11Z",fill:"#9DA7A2"})})}function Rx(){return l.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:l.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 21.9996C17.5228 21.9996 22 17.5225 22 11.9996C22 6.47679 17.5228 1.99963 12 1.99963C6.47715 1.99963 2 6.47679 2 11.9996C2 17.5225 6.47715 21.9996 12 21.9996ZM10.5744 16.4881L16.4073 9.35888L14.8594 8.09241L10.4259 13.5112L8.50015 11.5854L7.08594 12.9996L10.5744 16.4881Z",fill:"#3B872C"})})}function Cx(){return l.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:l.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.7367 4.53861C12.9689 3.19498 11.0315 3.19498 10.2637 4.53861L1.71007 19.5075C0.948179 20.8408 1.91091 22.4998 3.44656 22.4998H20.5538C22.0895 22.4998 23.0522 20.8408 22.2903 19.5075L13.7367 4.53861ZM11 9.49997H13V15.5H11V9.49997ZM11 17.5H13V19.5H11V17.5Z",fill:"#FEA900"})})}var Sx="DismissableLayer",bo="dismissableLayer.update",jx="dismissableLayer.pointerDownOutside",Px="dismissableLayer.focusOutside",Li,Yl=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Kl=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(Yl),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=i.useState({}),E=ne(t,w=>m(w)),f=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=f.indexOf(v),x=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=x>=y,C=Ax(w=>{const P=w.target,N=[...u.branches].some(k=>k.contains(P));!R||N||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=Nx(w=>{const P=w.target;[...u.branches].some(k=>k.contains(P))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return tr(w=>{x===u.layers.size-1&&(r==null||r(w),!w.defaultPrevented&&c&&(w.preventDefault(),c()))},g),i.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Li=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),_i(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Li)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),_i())},[p,u]),i.useEffect(()=>{const w=()=>h({});return document.addEventListener(bo,w),()=>document.removeEventListener(bo,w)},[]),l.jsxRuntimeExports.jsx(re.div,{...d,ref:E,style:{pointerEvents:b?R?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,S.onFocusCapture),onBlurCapture:X(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,C.onPointerDownCapture)})});Kl.displayName=Sx;var Tx="DismissableLayerBranch",Xl=i.forwardRef((e,t)=>{const n=i.useContext(Yl),r=i.useRef(null),o=ne(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsxRuntimeExports.jsx(re.div,{...e,ref:o})});Xl.displayName=Tx;function Ax(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){Gl(jx,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Nx(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&Gl(Px,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function _i(){const e=new CustomEvent(bo);document.dispatchEvent(e)}function Gl(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?qo(o,s):o.dispatchEvent(s)}var $x=Kl,Ox=Xl;function Dx(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var ys=e=>{const{present:t,children:n}=e,r=kx(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),s=ne(r.ref,Ix(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:s}):null};ys.displayName="Presence";function kx(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,d]=Dx(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=yn(r.current);s.current=c==="mounted"?u:"none"},[c]),ce(()=>{const u=r.current,p=o.current;if(p!==e){const g=s.current,h=yn(u);e?d("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(p&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),ce(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,m=h=>{const f=yn(r.current).includes(h.animationName);if(h.target===t&&f&&(d("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},g=h=>{h.target===t&&(s.current=yn(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function yn(e){return(e==null?void 0:e.animationName)||"none"}function Ix(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 Es="ToastProvider",[ws,Mx,Lx]=mc("Toast"),[ql,Db]=ft("Toast",[Lx]),[_x,mr]=ql(Es),Zl=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:a}=e,[c,d]=i.useState(null),[u,p]=i.useState(0),m=i.useRef(!1),g=i.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Es}\`. Expected non-empty \`string\`.`),l.jsxRuntimeExports.jsx(ws.Provider,{scope:t,children:l.jsxRuntimeExports.jsx(_x,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:u,viewport:c,onViewportChange:d,onToastAdd:i.useCallback(()=>p(h=>h+1),[]),onToastRemove:i.useCallback(()=>p(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:g,children:a})})};Zl.displayName=Es;var Ql="ToastViewport",Fx=["F8"],Ro="toast.viewportPause",Co="toast.viewportResume",Jl=i.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Fx,label:o="Notifications ({hotkey})",...s}=e,a=mr(Ql,n),c=Mx(n),d=i.useRef(null),u=i.useRef(null),p=i.useRef(null),m=i.useRef(null),g=ne(t,m,a.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=a.toastCount>0;i.useEffect(()=>{const v=y=>{var b;r.length!==0&&r.every(R=>y[R]||y.code===R)&&((b=m.current)==null||b.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),i.useEffect(()=>{const v=d.current,y=m.current;if(E&&v&&y){const x=()=>{if(!a.isClosePausedRef.current){const S=new CustomEvent(Ro);y.dispatchEvent(S),a.isClosePausedRef.current=!0}},b=()=>{if(a.isClosePausedRef.current){const S=new CustomEvent(Co);y.dispatchEvent(S),a.isClosePausedRef.current=!1}},R=S=>{!v.contains(S.relatedTarget)&&b()},C=()=>{v.contains(document.activeElement)||b()};return v.addEventListener("focusin",x),v.addEventListener("focusout",R),v.addEventListener("pointermove",x),v.addEventListener("pointerleave",C),window.addEventListener("blur",x),window.addEventListener("focus",b),()=>{v.removeEventListener("focusin",x),v.removeEventListener("focusout",R),v.removeEventListener("pointermove",x),v.removeEventListener("pointerleave",C),window.removeEventListener("blur",x),window.removeEventListener("focus",b)}}},[E,a.isClosePausedRef]);const f=i.useCallback(({tabbingDirection:v})=>{const x=c().map(b=>{const R=b.ref.current,C=[R,...Qx(R)];return v==="forwards"?C:C.reverse()});return(v==="forwards"?x.reverse():x).flat()},[c]);return i.useEffect(()=>{const v=m.current;if(v){const y=x=>{var C,S,w;const b=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!b){const P=document.activeElement,N=x.shiftKey;if(x.target===v&&N){(C=u.current)==null||C.focus();return}const Y=f({tabbingDirection:N?"backwards":"forwards"}),W=Y.findIndex(T=>T===P);Ur(Y.slice(W+1))?x.preventDefault():N?(S=u.current)==null||S.focus():(w=p.current)==null||w.focus()}};return v.addEventListener("keydown",y),()=>v.removeEventListener("keydown",y)}},[c,f]),l.jsxRuntimeExports.jsxs(Ox,{ref:d,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:E?void 0:"none"},children:[E&&l.jsxRuntimeExports.jsx(So,{ref:u,onFocusFromOutsideViewport:()=>{const v=f({tabbingDirection:"forwards"});Ur(v)}}),l.jsxRuntimeExports.jsx(ws.Slot,{scope:n,children:l.jsxRuntimeExports.jsx(re.ol,{tabIndex:-1,...s,ref:g})}),E&&l.jsxRuntimeExports.jsx(So,{ref:p,onFocusFromOutsideViewport:()=>{const v=f({tabbingDirection:"backwards"});Ur(v)}})]})});Jl.displayName=Ql;var eu="ToastFocusProxy",So=i.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=mr(eu,n);return l.jsxRuntimeExports.jsx(lr,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:a=>{var u;const c=a.relatedTarget;!((u=s.viewport)!=null&&u.contains(c))&&r()}})});So.displayName=eu;var hr="Toast",Wx="toast.swipeStart",Bx="toast.swipeMove",Hx="toast.swipeCancel",Vx="toast.swipeEnd",tu=i.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...a}=e,[c=!0,d]=qt({prop:r,defaultProp:o,onChange:s});return l.jsxRuntimeExports.jsx(ys,{present:n||c,children:l.jsxRuntimeExports.jsx(Yx,{open:c,...a,ref:t,onClose:()=>d(!1),onPause:ae(e.onPause),onResume:ae(e.onResume),onSwipeStart:X(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:X(e.onSwipeMove,u=>{const{x:p,y:m}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${p}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${m}px`)}),onSwipeCancel:X(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:X(e.onSwipeEnd,u=>{const{x:p,y:m}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${p}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${m}px`),d(!1)})})})});tu.displayName=hr;var[zx,Ux]=ql(hr,{onClose(){}}),Yx=i.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:a,onEscapeKeyDown:c,onPause:d,onResume:u,onSwipeStart:p,onSwipeMove:m,onSwipeCancel:g,onSwipeEnd:h,...E}=e,f=mr(hr,n),[v,y]=i.useState(null),x=ne(t,T=>y(T)),b=i.useRef(null),R=i.useRef(null),C=o||f.duration,S=i.useRef(0),w=i.useRef(C),P=i.useRef(0),{onToastAdd:N,onToastRemove:k}=f,U=ae(()=>{var B;(v==null?void 0:v.contains(document.activeElement))&&((B=f.viewport)==null||B.focus()),a()}),Y=i.useCallback(T=>{!T||T===1/0||(window.clearTimeout(P.current),S.current=new Date().getTime(),P.current=window.setTimeout(U,T))},[U]);i.useEffect(()=>{const T=f.viewport;if(T){const B=()=>{Y(w.current),u==null||u()},M=()=>{const L=new Date().getTime()-S.current;w.current=w.current-L,window.clearTimeout(P.current),d==null||d()};return T.addEventListener(Ro,M),T.addEventListener(Co,B),()=>{T.removeEventListener(Ro,M),T.removeEventListener(Co,B)}}},[f.viewport,C,d,u,Y]),i.useEffect(()=>{s&&!f.isClosePausedRef.current&&Y(C)},[s,C,f.isClosePausedRef,Y]),i.useEffect(()=>(N(),()=>k()),[N,k]);const W=i.useMemo(()=>v?cu(v):null,[v]);return f.viewport?l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[W&&l.jsxRuntimeExports.jsx(Kx,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:W}),l.jsxRuntimeExports.jsx(zx,{scope:n,onClose:U,children:Ze.createPortal(l.jsxRuntimeExports.jsx(ws.ItemSlot,{scope:n,children:l.jsxRuntimeExports.jsx($x,{asChild:!0,onEscapeKeyDown:X(c,()=>{f.isFocusedToastEscapeKeyDownRef.current||U(),f.isFocusedToastEscapeKeyDownRef.current=!1}),children:l.jsxRuntimeExports.jsx(re.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":f.swipeDirection,...E,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:X(e.onKeyDown,T=>{T.key==="Escape"&&(c==null||c(T.nativeEvent),T.nativeEvent.defaultPrevented||(f.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:X(e.onPointerDown,T=>{T.button===0&&(b.current={x:T.clientX,y:T.clientY})}),onPointerMove:X(e.onPointerMove,T=>{if(!b.current)return;const B=T.clientX-b.current.x,M=T.clientY-b.current.y,L=!!R.current,$=["left","right"].includes(f.swipeDirection),H=["left","up"].includes(f.swipeDirection)?Math.min:Math.max,te=$?H(0,B):0,J=$?0:H(0,M),j=T.pointerType==="touch"?10:2,D={x:te,y:J},_={originalEvent:T,delta:D};L?(R.current=D,En(Bx,m,_,{discrete:!1})):Fi(D,f.swipeDirection,j)?(R.current=D,En(Wx,p,_,{discrete:!1}),T.target.setPointerCapture(T.pointerId)):(Math.abs(B)>j||Math.abs(M)>j)&&(b.current=null)}),onPointerUp:X(e.onPointerUp,T=>{const B=R.current,M=T.target;if(M.hasPointerCapture(T.pointerId)&&M.releasePointerCapture(T.pointerId),R.current=null,b.current=null,B){const L=T.currentTarget,$={originalEvent:T,delta:B};Fi(B,f.swipeDirection,f.swipeThreshold)?En(Vx,h,$,{discrete:!0}):En(Hx,g,$,{discrete:!0}),L.addEventListener("click",H=>H.preventDefault(),{once:!0})}})})})}),f.viewport)})]}):null}),Kx=e=>{const{__scopeToast:t,children:n,...r}=e,o=mr(hr,t),[s,a]=i.useState(!1),[c,d]=i.useState(!1);return qx(()=>a(!0)),i.useEffect(()=>{const u=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(u)},[]),c?null:l.jsxRuntimeExports.jsx(hs,{asChild:!0,children:l.jsxRuntimeExports.jsx(lr,{...r,children:s&&l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[o.label," ",n]})})})},Xx="ToastTitle",nu=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsxRuntimeExports.jsx(re.div,{...r,ref:t})});nu.displayName=Xx;var Gx="ToastDescription",ru=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsxRuntimeExports.jsx(re.div,{...r,ref:t})});ru.displayName=Gx;var ou="ToastAction",su=i.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?l.jsxRuntimeExports.jsx(au,{altText:n,asChild:!0,children:l.jsxRuntimeExports.jsx(bs,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${ou}\`. Expected non-empty \`string\`.`),null)});su.displayName=ou;var iu="ToastClose",bs=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=Ux(iu,n);return l.jsxRuntimeExports.jsx(au,{asChild:!0,children:l.jsxRuntimeExports.jsx(re.button,{type:"button",...r,ref:t,onClick:X(e.onClick,o.onClose)})})});bs.displayName=iu;var au=i.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return l.jsxRuntimeExports.jsx(re.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function cu(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Zx(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const a=r.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...cu(r))}}),t}function En(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?qo(o,s):o.dispatchEvent(s)}var Fi=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function qx(e=()=>{}){const t=ae(e);ce(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Zx(e){return e.nodeType===e.ELEMENT_NODE}function Qx(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 Ur(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Jx=Zl,lu=Jl,uu=tu,du=nu,fu=ru,pu=su,mu=bs;function hu(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=hu(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ey(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=hu(e))&&(r&&(r+=" "),r+=t);return r}const ty=ey,ny=(e,t)=>n=>ty(e,n==null?void 0:n.class,n==null?void 0:n.className),ry=Jx,vu=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(lu,{ref:n,className:l.cn("fixed bottom-0 right-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:w-fit sm:min-w-[300px] sm:max-w-[420px]",e),...t}));vu.displayName=lu.displayName;const oy=ny("group pointer-events-auto relative flex w-full items-center overflow-hidden pr-8 transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-bottom-full data-[state=open]:slide-in-from-bottom-full"),gu=i.forwardRef(({className:e,testId:t,...n},r)=>l.jsxRuntimeExports.jsx(uu,{"data-testid":t,ref:r,className:l.cn(oy(),e),...n}));gu.displayName=uu.displayName;const sy=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(pu,{ref:n,className:l.cn("inline-flex h-8 shrink-0 items-center justify-center rounded-md border border-neutral-200 bg-transparent px-3 text-sm font-medium ring-offset-white transition-colors hover:bg-neutral-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-neutral-100/40 group-[.destructive]:hover:border-red-500/30 group-[.destructive]:hover:bg-red-500 group-[.destructive]:hover:text-neutral-50 group-[.destructive]:focus:ring-red-500 dark:border-neutral-800 dark:ring-offset-neutral-950 dark:hover:bg-neutral-800 dark:focus:ring-neutral-300 dark:group-[.destructive]:border-neutral-800/40 dark:group-[.destructive]:hover:border-red-900/30 dark:group-[.destructive]:hover:bg-red-900 dark:group-[.destructive]:hover:text-neutral-50 dark:group-[.destructive]:focus:ring-red-900",e),...t}));sy.displayName=pu.displayName;const xu=i.forwardRef(({color:e,...t},n)=>l.jsxRuntimeExports.jsx(mu,{ref:n,"toast-close":"",...t,children:l.jsxRuntimeExports.jsx(l.Close,{color:e,className:"h-4 w-4"})}));xu.displayName=mu.displayName;const yu=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(du,{ref:n,className:l.cn("text-sm font-semibold",e),...t}));yu.displayName=du.displayName;const Eu=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(fu,{ref:n,className:l.cn("text-sm opacity-90",e),...t}));Eu.displayName=fu.displayName;const jo={success:{background:l.colors.sf.light.action,color:l.colors.fg.accent.action},error:{background:l.colors.sf.light.error,color:l.colors.fg.accent.error},info:{background:l.colors.sf.light.tertiary,color:l.colors.fg.base},warning:{background:l.colors.sf.light.warning,color:l.colors.fg.accent.warning}},iy=I(gu)`
693
693
  border-radius: 1rem;
694
694
  padding: 0.75rem;
695
695
  border: none;
@@ -698,30 +698,30 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
698
698
  background: ${({$variant:e})=>jo[e].background};
699
699
  color: ${({$variant:e})=>jo[e].color};
700
700
  gap: 0.5rem;
701
- `,cy=I.div`
701
+ `,ay=I.div`
702
702
  display: flex;
703
703
  flex-direction: column;
704
704
  width: 100%;
705
- `,ly=I.div`
705
+ `,cy=I.div`
706
706
  width: 1.5rem;
707
707
  height: 1.5rem;
708
- `,uy=I(yu)`
708
+ `,ly=I(yu)`
709
709
  ${l.typography.label}
710
- `,dy=I(Eu)`
710
+ `,uy=I(Eu)`
711
711
  ${l.typography.body}
712
- `,fy=({variant:e})=>{switch(e){case"success":return l.jsxRuntimeExports.jsx(Cx,{});case"error":return l.jsxRuntimeExports.jsx(bx,{});case"warning":return l.jsxRuntimeExports.jsx(Sx,{});default:return l.jsxRuntimeExports.jsx(Rx,{})}};function py(){const{toasts:e}=Ul();return l.jsxRuntimeExports.jsxs(oy,{children:[e.map(function({id:t,title:n,description:r,testId:o,variant:s="info",...a}){return l.jsxRuntimeExports.jsxs(ay,{$variant:s,testId:o,...a,children:[l.jsxRuntimeExports.jsx(ly,{children:l.jsxRuntimeExports.jsx(fy,{variant:s})}),l.jsxRuntimeExports.jsxs(cy,{children:[n&&l.jsxRuntimeExports.jsx(uy,{children:n}),r&&l.jsxRuntimeExports.jsx(dy,{children:r})]}),l.jsxRuntimeExports.jsx(xu,{color:jo[s].color})]},t)}),l.jsxRuntimeExports.jsx(vu,{})]})}const wu=i.forwardRef(({...e},t)=>l.jsxRuntimeExports.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));wu.displayName="Breadcrumb";const bu=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx("ol",{ref:n,className:l.cn("flex flex-wrap items-center gap-1.5 break-words text-sm text-neutral-500 sm:gap-2.5 dark:text-neutral-400",e),...t}));bu.displayName="BreadcrumbList";const Ru=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx("li",{ref:n,className:l.cn("inline-flex items-center gap-1.5",e),...t}));Ru.displayName="BreadcrumbItem";const my=i.forwardRef(({asChild:e,className:t,...n},r)=>{const o=e?er:"a";return l.jsxRuntimeExports.jsx(o,{ref:r,className:l.cn("transition-colors hover:text-neutral-950 dark:hover:text-neutral-50",t),...n})});my.displayName="BreadcrumbLink";const hy=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:l.cn("font-normal text-neutral-950 dark:text-neutral-50",e),...t}));hy.displayName="BreadcrumbPage";const Cu=({children:e,className:t,...n})=>l.jsxRuntimeExports.jsx("li",{role:"presentation","aria-hidden":"true",className:l.cn("flex items-center",t),...n,children:e??l.jsxRuntimeExports.jsx("div",{className:"w-3.5 h-3.5 border-r-2 border-t-2 border-neutral-400 transform rotate-45"})});Cu.displayName="BreadcrumbSeparator";const Su={...l.typography.label,fontSize:"0.8125rem",letterSpacing:"-0.26px"},Wi={color:l.colors.white,...Su},vy={backgroundColor:l.colors.neutral["800-A08"],color:l.colors.neutral[300],...Su},gy=({children:e,isActive:t,isCompleted:n,isCompletedAndActive:r,className:o,onClick:s,isHovered:a,hoverIcon:c})=>r?l.jsxRuntimeExports.jsx("div",{className:l.cn("w-5 h-5 rounded-full flex items-center justify-center transition-colors bg-primary-700","cursor-pointer hover:opacity-80",o),style:Wi,onClick:s,children:e}):n?l.jsxRuntimeExports.jsx("div",{className:l.cn("w-5 h-5 rounded-full flex items-center justify-center transition-colors",s&&"cursor-pointer hover:opacity-80",o),style:{backgroundColor:l.colors.primary["600-A08"]},onClick:s,children:a&&c?c:l.jsxRuntimeExports.jsx(l.Check,{color:l.colors.primary[700],size:16})}):t?l.jsxRuntimeExports.jsx("div",{className:l.cn("w-5 h-5 rounded-full flex items-center justify-center transition-colors bg-primary-700",o),style:Wi,children:e}):l.jsxRuntimeExports.jsx("div",{className:l.cn("w-5 h-5 rounded-full flex items-center justify-center transition-colors",o),style:vy,children:e}),xy=()=>l.jsxRuntimeExports.jsx(Cu,{children:l.jsxRuntimeExports.jsx("div",{className:"w-2 h-2 border-r-2 border-t-2 border-neutral-300 transform rotate-45"})}),yy=e=>{if(!e)return null;const t=l.Icons[e];return t?l.jsxRuntimeExports.jsx(t,{color:l.colors.primary[700],size:16}):null};function Ey({steps:e,currentStep:t=1,onStepClick:n,hoverIcons:r,completedStep:o}){const[s,a]=Z.useState(null),c=t>e.length,d=o??t,u=en(),p=m=>{const g=m===t&&m<d,h=c||m<=d&&m!==t;return{isActive:!c&&m===t,isCompleted:h,isCompletedAndActive:g}};return l.jsxRuntimeExports.jsx("div",{className:"flex items-center py-4",children:l.jsxRuntimeExports.jsx(wu,{children:l.jsxRuntimeExports.jsx(bu,{className:"gap-2.5",children:e.map((m,g)=>{const h=g+1,{isActive:w,isCompleted:f,isCompletedAndActive:v}=p(h),x=g===e.length-1,y=!w,R=h===t+1&&!c,C=(f||v)&&n,S=r==null?void 0:r[g],b=S?yy(S):void 0;return l.jsxRuntimeExports.jsxs(Z.Fragment,{children:[l.jsxRuntimeExports.jsxs(Ru,{className:l.cn("gap-0",y&&"md:gap-1.5",R&&"gap-1.5"),onMouseEnter:()=>C&&a(h),onMouseLeave:()=>a(null),children:[l.jsxRuntimeExports.jsx(gy,{isActive:w,isCompleted:f,isCompletedAndActive:v,onClick:C?()=>n(h):void 0,isHovered:s===h,hoverIcon:b,children:h}),y&&!u&&l.jsxRuntimeExports.jsx("span",{className:l.cn("whitespace-nowrap transition-colors",R?"inline":"hidden md:inline",f?"text-primary-700":"text-neutral-300",C&&"cursor-pointer hover:opacity-80"),style:{...l.typography.label,fontSize:"0.8125rem",letterSpacing:"-0.26px"},onClick:C?()=>n(h):void 0,children:m})]}),!x&&l.jsxRuntimeExports.jsx(xy,{})]},h)})})})})}var ju=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),s=o.find(wy);if(s){const a=s.props.children,c=o.map(d=>d===s?i.Children.count(a)>1?i.Children.only(null):i.isValidElement(a)?a.props.children:null:d);return l.jsxRuntimeExports.jsx(Po,{...r,ref:t,children:i.isValidElement(a)?i.cloneElement(a,void 0,c):null})}return l.jsxRuntimeExports.jsx(Po,{...r,ref:t,children:n})});ju.displayName="Slot";var Po=i.forwardRef((e,t)=>{const{children:n,...r}=e;if(i.isValidElement(n)){const o=Ry(n),s=by(r,n.props);return n.type!==i.Fragment&&(s.ref=t?Ue(t,o):o),i.cloneElement(n,s)}return i.Children.count(n)>1?i.Children.only(null):null});Po.displayName="SlotClone";var Pu=({children:e})=>l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e});function wy(e){return i.isValidElement(e)&&e.type===Pu}function by(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{s(...c),o(...c)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ry(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 Cy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],fe=Cy.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:s,...a}=r,c=s?ju:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsxRuntimeExports.jsx(c,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Sy(e,t){e&&Ze.flushSync(()=>e.dispatchEvent(t))}var jy="DismissableLayer",To="dismissableLayer.update",Py="dismissableLayer.pointerDownOutside",Ty="dismissableLayer.focusOutside",Bi,Tu=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Au=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(Tu),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=i.useState({}),w=ne(t,b=>m(b)),f=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(v),y=p?f.indexOf(p):-1,E=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=$y(b=>{const P=b.target,N=[...u.branches].some(k=>k.contains(P));!R||N||(o==null||o(b),a==null||a(b),b.defaultPrevented||c==null||c())},g),S=Oy(b=>{const P=b.target;[...u.branches].some(k=>k.contains(P))||(s==null||s(b),a==null||a(b),b.defaultPrevented||c==null||c())},g);return tr(b=>{y===u.layers.size-1&&(r==null||r(b),!b.defaultPrevented&&c&&(b.preventDefault(),c()))},g),i.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Bi=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),Hi(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Bi)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),Hi())},[p,u]),i.useEffect(()=>{const b=()=>h({});return document.addEventListener(To,b),()=>document.removeEventListener(To,b)},[]),l.jsxRuntimeExports.jsx(fe.div,{...d,ref:w,style:{pointerEvents:E?R?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,S.onFocusCapture),onBlurCapture:X(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,C.onPointerDownCapture)})});Au.displayName=jy;var Ay="DismissableLayerBranch",Ny=i.forwardRef((e,t)=>{const n=i.useContext(Tu),r=i.useRef(null),o=ne(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsxRuntimeExports.jsx(fe.div,{...e,ref:o})});Ny.displayName=Ay;function $y(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){Nu(Py,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Oy(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&Nu(Ty,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Hi(){const e=new CustomEvent(To);document.dispatchEvent(e)}function Nu(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Sy(o,s):o.dispatchEvent(s)}var Dy="Arrow",$u=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsxRuntimeExports.jsx(fe.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});$u.displayName=Dy;var ky=$u,Rs="Popper",[Ou,Du]=ft(Rs),[Iy,ku]=Ou(Rs),Iu=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return l.jsxRuntimeExports.jsx(Iy,{scope:t,anchor:r,onAnchorChange:o,children:n})};Iu.displayName=Rs;var Mu="PopperAnchor",Lu=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=ku(Mu,n),a=i.useRef(null),c=ne(t,a);return i.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:l.jsxRuntimeExports.jsx(fe.div,{...o,ref:c})});Lu.displayName=Mu;var Cs="PopperContent",[My,Ly]=Ou(Cs),_u=i.forwardRef((e,t)=>{var A,F,V,G,Q,K;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:w,...f}=e,v=ku(Cs,n),[x,y]=i.useState(null),E=ne(t,oe=>y(oe)),[R,C]=i.useState(null),S=$c(R),b=(S==null?void 0:S.width)??0,P=(S==null?void 0:S.height)??0,N=r+(s!=="center"?"-"+s:""),k=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},U=Array.isArray(u)?u:[u],Y=U.length>0,W={padding:k,boundary:U.filter(Fy),altBoundary:Y},{refs:T,floatingStyles:B,placement:M,isPositioned:L,middlewareData:$}=ss({strategy:"fixed",placement:N,whileElementsMounted:(...oe)=>os(...oe,{animationFrame:h==="always"}),elements:{reference:v.anchor},middleware:[is({mainAxis:o+P,alignmentAxis:a}),d&&as({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?cs():void 0,...W}),d&&ls({...W}),us({...W,apply:({elements:oe,rects:de,availableWidth:De,availableHeight:ke})=>{const{width:Ie,height:Ht}=de.reference,pe=oe.floating.style;pe.setProperty("--radix-popper-available-width",`${De}px`),pe.setProperty("--radix-popper-available-height",`${ke}px`),pe.setProperty("--radix-popper-anchor-width",`${Ie}px`),pe.setProperty("--radix-popper-anchor-height",`${Ht}px`)}}),R&&fs({element:R,padding:c}),Wy({arrowWidth:b,arrowHeight:P}),g&&ds({strategy:"referenceHidden",...W})]}),[H,te]=Bu(M),J=ae(w);ce(()=>{L&&(J==null||J())},[L,J]);const j=(A=$.arrow)==null?void 0:A.x,D=(F=$.arrow)==null?void 0:F.y,_=((V=$.arrow)==null?void 0:V.centerOffset)!==0,[O,z]=i.useState();return ce(()=>{x&&z(window.getComputedStyle(x).zIndex)},[x]),l.jsxRuntimeExports.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:L?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(G=$.transformOrigin)==null?void 0:G.x,(Q=$.transformOrigin)==null?void 0:Q.y].join(" "),...((K=$.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsxRuntimeExports.jsx(My,{scope:n,placedSide:H,onArrowChange:C,arrowX:j,arrowY:D,shouldHideArrow:_,children:l.jsxRuntimeExports.jsx(fe.div,{"data-side":H,"data-align":te,...f,ref:E,style:{...f.style,animation:L?void 0:"none"}})})})});_u.displayName=Cs;var Fu="PopperArrow",_y={top:"bottom",right:"left",bottom:"top",left:"right"},Wu=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Ly(Fu,r),a=_y[s.placedSide];return l.jsxRuntimeExports.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsxRuntimeExports.jsx(ky,{...o,ref:n,style:{...o.style,display:"block"}})})});Wu.displayName=Fu;function Fy(e){return e!==null}var Wy=e=>({name:"transformOrigin",options:e,fn(t){var v,x,y;const{placement:n,rects:r,middlewareData:o}=t,a=((v=o.arrow)==null?void 0:v.centerOffset)!==0,c=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,p]=Bu(n),m={start:"0%",center:"50%",end:"100%"}[p],g=(((x=o.arrow)==null?void 0:x.x)??0)+c/2,h=(((y=o.arrow)==null?void 0:y.y)??0)+d/2;let w="",f="";return u==="bottom"?(w=a?m:`${g}px`,f=`${-d}px`):u==="top"?(w=a?m:`${g}px`,f=`${r.floating.height+d}px`):u==="right"?(w=`${-d}px`,f=a?m:`${h}px`):u==="left"&&(w=`${r.floating.width+d}px`,f=a?m:`${h}px`),{data:{x:w,y:f}}}});function Bu(e){const[t,n="center"]=e.split("-");return[t,n]}var By=Iu,Hy=Lu,Vy=_u,zy=Wu,Uy="VisuallyHidden",Hu=i.forwardRef((e,t)=>l.jsxRuntimeExports.jsx(fe.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}}));Hu.displayName=Uy;var Yy=Hu,[vr,Mb]=ft("Tooltip",[Du]),gr=Du(),Vu="TooltipProvider",Ky=700,Ao="tooltip.open",[Xy,Ss]=vr(Vu),zu=e=>{const{__scopeTooltip:t,delayDuration:n=Ky,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,[a,c]=i.useState(!0),d=i.useRef(!1),u=i.useRef(0);return i.useEffect(()=>{const p=u.current;return()=>window.clearTimeout(p)},[]),l.jsxRuntimeExports.jsx(Xy,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(u.current),c(!1)},[]),onClose:i.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>c(!0),r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:i.useCallback(p=>{d.current=p},[]),disableHoverableContent:o,children:s})};zu.displayName=Vu;var xr="Tooltip",[Gy,yr]=vr(xr),Uu=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,d=Ss(xr,e.__scopeTooltip),u=gr(t),[p,m]=i.useState(null),g=xe(),h=i.useRef(0),w=a??d.disableHoverableContent,f=c??d.delayDuration,v=i.useRef(!1),[x=!1,y]=qt({prop:r,defaultProp:o,onChange:b=>{b?(d.onOpen(),document.dispatchEvent(new CustomEvent(Ao))):d.onClose(),s==null||s(b)}}),E=i.useMemo(()=>x?v.current?"delayed-open":"instant-open":"closed",[x]),R=i.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,y(!0)},[y]),C=i.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y(!1)},[y]),S=i.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,y(!0),h.current=0},f)},[f,y]);return i.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),l.jsxRuntimeExports.jsx(By,{...u,children:l.jsxRuntimeExports.jsx(Gy,{scope:t,contentId:g,open:x,stateAttribute:E,trigger:p,onTriggerChange:m,onTriggerEnter:i.useCallback(()=>{d.isOpenDelayed?S():R()},[d.isOpenDelayed,S,R]),onTriggerLeave:i.useCallback(()=>{w?C():(window.clearTimeout(h.current),h.current=0)},[C,w]),onOpen:R,onClose:C,disableHoverableContent:w,children:n})})};Uu.displayName=xr;var No="TooltipTrigger",Yu=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=yr(No,n),s=Ss(No,n),a=gr(n),c=i.useRef(null),d=ne(t,c,o.onTriggerChange),u=i.useRef(!1),p=i.useRef(!1),m=i.useCallback(()=>u.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),l.jsxRuntimeExports.jsx(Hy,{asChild:!0,...a,children:l.jsxRuntimeExports.jsx(fe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:d,onPointerMove:X(e.onPointerMove,g=>{g.pointerType!=="touch"&&!p.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:X(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:X(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:X(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:X(e.onBlur,o.onClose),onClick:X(e.onClick,o.onClose)})})});Yu.displayName=No;var qy="TooltipPortal",[Lb,Zy]=vr(qy,{forceMount:void 0}),Dt="TooltipContent",Ku=i.forwardRef((e,t)=>{const n=Zy(Dt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=yr(Dt,e.__scopeTooltip);return l.jsxRuntimeExports.jsx(ys,{present:r||a.open,children:a.disableHoverableContent?l.jsxRuntimeExports.jsx(Xu,{side:o,...s,ref:t}):l.jsxRuntimeExports.jsx(Qy,{side:o,...s,ref:t})})}),Qy=i.forwardRef((e,t)=>{const n=yr(Dt,e.__scopeTooltip),r=Ss(Dt,e.__scopeTooltip),o=i.useRef(null),s=ne(t,o),[a,c]=i.useState(null),{trigger:d,onClose:u}=n,p=o.current,{onPointerInTransitChange:m}=r,g=i.useCallback(()=>{c(null),m(!1)},[m]),h=i.useCallback((w,f)=>{const v=w.currentTarget,x={x:w.clientX,y:w.clientY},y=nE(x,v.getBoundingClientRect()),E=rE(x,y),R=oE(f.getBoundingClientRect()),C=iE([...E,...R]);c(C),m(!0)},[m]);return i.useEffect(()=>()=>g(),[g]),i.useEffect(()=>{if(d&&p){const w=v=>h(v,p),f=v=>h(v,d);return d.addEventListener("pointerleave",w),p.addEventListener("pointerleave",f),()=>{d.removeEventListener("pointerleave",w),p.removeEventListener("pointerleave",f)}}},[d,p,h,g]),i.useEffect(()=>{if(a){const w=f=>{const v=f.target,x={x:f.clientX,y:f.clientY},y=(d==null?void 0:d.contains(v))||(p==null?void 0:p.contains(v)),E=!sE(x,a);y?g():E&&(g(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[d,p,a,u,g]),l.jsxRuntimeExports.jsx(Xu,{...e,ref:s})}),[Jy,eE]=vr(xr,{isInside:!1}),Xu=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=e,d=yr(Dt,n),u=gr(n),{onClose:p}=d;return i.useEffect(()=>(document.addEventListener(Ao,p),()=>document.removeEventListener(Ao,p)),[p]),i.useEffect(()=>{if(d.trigger){const m=g=>{const h=g.target;h!=null&&h.contains(d.trigger)&&p()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[d.trigger,p]),l.jsxRuntimeExports.jsx(Au,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:m=>m.preventDefault(),onDismiss:p,children:l.jsxRuntimeExports.jsxs(Vy,{"data-state":d.stateAttribute,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsxRuntimeExports.jsx(Pu,{children:r}),l.jsxRuntimeExports.jsx(Jy,{scope:n,isInside:!0,children:l.jsxRuntimeExports.jsx(Yy,{id:d.contentId,role:"tooltip",children:o||r})})]})})});Ku.displayName=Dt;var Gu="TooltipArrow",tE=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=gr(n);return eE(Gu,n).isInside?null:l.jsxRuntimeExports.jsx(zy,{...o,...r,ref:t})});tE.displayName=Gu;function nE(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function rE(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function oE(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function sE(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s].x,d=t[s].y,u=t[a].x,p=t[a].y;d>r!=p>r&&n<(u-c)*(r-d)/(p-d)+c&&(o=!o)}return o}function iE(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),aE(t)}function aE(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var cE=zu,lE=Uu,uE=Yu,qu=Ku;const dE=cE,fE=lE,pE=uE,Zu=i.forwardRef(({className:e,sideOffset:t=4,...n},r)=>{const o={...l.typography.body,background:l.colors.primary[900],borderRadius:".5rem",color:l.colors.white,fontSize:".8125rem",padding:".5rem .75rem",whiteSpace:"normal",width:"19.375rem"};return l.jsxRuntimeExports.jsx(qu,{ref:r,sideOffset:t,className:l.cn("z-50 overflow-hidden rounded-md border border-neutral-200 bg-white px-3 py-1.5 text-sm text-neutral-950 shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),style:o,...n})});Zu.displayName=qu.displayName;function Ee(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 Vi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qu(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Vi(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Vi(e[o],null)}}}}function Pe(...e){return i.useCallback(Qu(...e),e)}function mE(e,t){const n=i.createContext(t),r=s=>{const{children:a,...c}=s,d=i.useMemo(()=>c,Object.values(c));return l.jsxRuntimeExports.jsx(n.Provider,{value:d,children:a})};r.displayName=e+"Provider";function o(s){const a=i.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function js(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a),d=n.length;n=[...n,a];const u=m=>{var x;const{scope:g,children:h,...w}=m,f=((x=g==null?void 0:g[e])==null?void 0:x[d])||c,v=i.useMemo(()=>w,Object.values(w));return l.jsxRuntimeExports.jsx(f.Provider,{value:v,children:h})};u.displayName=s+"Provider";function p(m,g){var f;const h=((f=g==null?void 0:g[e])==null?void 0:f[d])||c,w=i.useContext(h);if(w)return w;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[u,p]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const d=(c==null?void 0:c[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return o.scopeName=e,[r,hE(o,...t)]}function hE(...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(s){const a=r.reduce((c,{useScope:d,scopeName:u})=>{const m=d(s)[`__scope${u}`];return{...c,...m}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Ps(e){const t=vE(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),d=c.find(xE);if(d){const u=d.props.children,p=c.map(m=>m===d?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:m);return l.jsxRuntimeExports.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,p):null})}return l.jsxRuntimeExports.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function vE(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=EE(o),c=yE(s,o.props);return o.type!==i.Fragment&&(c.ref=r?Qu(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gE=Symbol("radix.slottable");function xE(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gE}function yE(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const d=s(...c);return o(...c),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function EE(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 wE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],he=wE.reduce((e,t)=>{const n=Ps(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,d=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsxRuntimeExports.jsx(d,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function bE(e,t){e&&Ze.flushSync(()=>e.dispatchEvent(t))}function kt(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function RE(e,t=globalThis==null?void 0:globalThis.document){const n=kt(e);i.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 CE="DismissableLayer",$o="dismissableLayer.update",SE="dismissableLayer.pointerDownOutside",jE="dismissableLayer.focusOutside",zi,Ju=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ts=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(Ju),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=i.useState({}),w=Pe(t,b=>m(b)),f=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(v),y=p?f.indexOf(p):-1,E=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=AE(b=>{const P=b.target,N=[...u.branches].some(k=>k.contains(P));!R||N||(o==null||o(b),a==null||a(b),b.defaultPrevented||c==null||c())},g),S=NE(b=>{const P=b.target;[...u.branches].some(k=>k.contains(P))||(s==null||s(b),a==null||a(b),b.defaultPrevented||c==null||c())},g);return RE(b=>{y===u.layers.size-1&&(r==null||r(b),!b.defaultPrevented&&c&&(b.preventDefault(),c()))},g),i.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(zi=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),Ui(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=zi)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),Ui())},[p,u]),i.useEffect(()=>{const b=()=>h({});return document.addEventListener($o,b),()=>document.removeEventListener($o,b)},[]),l.jsxRuntimeExports.jsx(he.div,{...d,ref:w,style:{pointerEvents:E?R?"auto":"none":void 0,...e.style},onFocusCapture:Ee(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Ee(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Ee(e.onPointerDownCapture,C.onPointerDownCapture)})});Ts.displayName=CE;var PE="DismissableLayerBranch",TE=i.forwardRef((e,t)=>{const n=i.useContext(Ju),r=i.useRef(null),o=Pe(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsxRuntimeExports.jsx(he.div,{...e,ref:o})});TE.displayName=PE;function AE(e,t=globalThis==null?void 0:globalThis.document){const n=kt(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){ed(SE,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function NE(e,t=globalThis==null?void 0:globalThis.document){const n=kt(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&ed(jE,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ui(){const e=new CustomEvent($o);document.dispatchEvent(e)}function ed(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?bE(o,s):o.dispatchEvent(s)}var Yr=0;function td(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Yi()),document.body.insertAdjacentElement("beforeend",e[1]??Yi()),Yr++,()=>{Yr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Yr--}},[])}function Yi(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Kr="focusScope.autoFocusOnMount",Xr="focusScope.autoFocusOnUnmount",Ki={bubbles:!1,cancelable:!0},$E="FocusScope",As=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[c,d]=i.useState(null),u=kt(o),p=kt(s),m=i.useRef(null),g=Pe(t,f=>d(f)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let f=function(E){if(h.paused||!c)return;const R=E.target;c.contains(R)?m.current=R:Ve(m.current,{select:!0})},v=function(E){if(h.paused||!c)return;const R=E.relatedTarget;R!==null&&(c.contains(R)||Ve(m.current,{select:!0}))},x=function(E){if(document.activeElement===document.body)for(const C of E)C.removedNodes.length>0&&Ve(c)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const y=new MutationObserver(x);return c&&y.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),y.disconnect()}}},[r,c,h.paused]),i.useEffect(()=>{if(c){Gi.add(h);const f=document.activeElement;if(!c.contains(f)){const x=new CustomEvent(Kr,Ki);c.addEventListener(Kr,u),c.dispatchEvent(x),x.defaultPrevented||(OE(LE(nd(c)),{select:!0}),document.activeElement===f&&Ve(c))}return()=>{c.removeEventListener(Kr,u),setTimeout(()=>{const x=new CustomEvent(Xr,Ki);c.addEventListener(Xr,p),c.dispatchEvent(x),x.defaultPrevented||Ve(f??document.body,{select:!0}),c.removeEventListener(Xr,p),Gi.remove(h)},0)}}},[c,u,p,h]);const w=i.useCallback(f=>{if(!n&&!r||h.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,x=document.activeElement;if(v&&x){const y=f.currentTarget,[E,R]=DE(y);E&&R?!f.shiftKey&&x===R?(f.preventDefault(),n&&Ve(E,{select:!0})):f.shiftKey&&x===E&&(f.preventDefault(),n&&Ve(R,{select:!0})):x===y&&f.preventDefault()}},[n,r,h.paused]);return l.jsxRuntimeExports.jsx(he.div,{tabIndex:-1,...a,ref:g,onKeyDown:w})});As.displayName=$E;function OE(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ve(r,{select:t}),document.activeElement!==n)return}function DE(e){const t=nd(e),n=Xi(t,e),r=Xi(t.reverse(),e);return[n,r]}function nd(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 Xi(e,t){for(const n of e)if(!kE(n,{upTo:t}))return n}function kE(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 IE(e){return e instanceof HTMLInputElement&&"select"in e}function Ve(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&IE(e)&&t&&e.select()}}var Gi=ME();function ME(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=qi(e,t),e.unshift(t)},remove(t){var n;e=qi(e,t),(n=e[0])==null||n.resume()}}}function qi(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function LE(e){return e.filter(t=>t.tagName!=="A")}var Ge=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},_E=i[" useId ".trim().toString()]||(()=>{}),FE=0;function kn(e){const[t,n]=i.useState(_E());return Ge(()=>{e||n(r=>r??String(FE++))},[e]),e||(t?`radix-${t}`:"")}var WE="Arrow",rd=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsxRuntimeExports.jsx(he.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});rd.displayName=WE;var BE=rd;function HE(e){const[t,n]=i.useState(void 0);return Ge(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,c;if("borderBoxSize"in s){const d=s.borderBoxSize,u=Array.isArray(d)?d[0]:d;a=u.inlineSize,c=u.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ns="Popper",[od,sd]=js(Ns),[VE,id]=od(Ns),ad=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return l.jsxRuntimeExports.jsx(VE,{scope:t,anchor:r,onAnchorChange:o,children:n})};ad.displayName=Ns;var cd="PopperAnchor",ld=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=id(cd,n),a=i.useRef(null),c=Pe(t,a);return i.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:l.jsxRuntimeExports.jsx(he.div,{...o,ref:c})});ld.displayName=cd;var $s="PopperContent",[zE,UE]=od($s),ud=i.forwardRef((e,t)=>{var A,F,V,G,Q,K;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:w,...f}=e,v=id($s,n),[x,y]=i.useState(null),E=Pe(t,oe=>y(oe)),[R,C]=i.useState(null),S=HE(R),b=(S==null?void 0:S.width)??0,P=(S==null?void 0:S.height)??0,N=r+(s!=="center"?"-"+s:""),k=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},U=Array.isArray(u)?u:[u],Y=U.length>0,W={padding:k,boundary:U.filter(KE),altBoundary:Y},{refs:T,floatingStyles:B,placement:M,isPositioned:L,middlewareData:$}=ss({strategy:"fixed",placement:N,whileElementsMounted:(...oe)=>os(...oe,{animationFrame:h==="always"}),elements:{reference:v.anchor},middleware:[is({mainAxis:o+P,alignmentAxis:a}),d&&as({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?cs():void 0,...W}),d&&ls({...W}),us({...W,apply:({elements:oe,rects:de,availableWidth:De,availableHeight:ke})=>{const{width:Ie,height:Ht}=de.reference,pe=oe.floating.style;pe.setProperty("--radix-popper-available-width",`${De}px`),pe.setProperty("--radix-popper-available-height",`${ke}px`),pe.setProperty("--radix-popper-anchor-width",`${Ie}px`),pe.setProperty("--radix-popper-anchor-height",`${Ht}px`)}}),R&&fs({element:R,padding:c}),XE({arrowWidth:b,arrowHeight:P}),g&&ds({strategy:"referenceHidden",...W})]}),[H,te]=pd(M),J=kt(w);Ge(()=>{L&&(J==null||J())},[L,J]);const j=(A=$.arrow)==null?void 0:A.x,D=(F=$.arrow)==null?void 0:F.y,_=((V=$.arrow)==null?void 0:V.centerOffset)!==0,[O,z]=i.useState();return Ge(()=>{x&&z(window.getComputedStyle(x).zIndex)},[x]),l.jsxRuntimeExports.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:L?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(G=$.transformOrigin)==null?void 0:G.x,(Q=$.transformOrigin)==null?void 0:Q.y].join(" "),...((K=$.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsxRuntimeExports.jsx(zE,{scope:n,placedSide:H,onArrowChange:C,arrowX:j,arrowY:D,shouldHideArrow:_,children:l.jsxRuntimeExports.jsx(he.div,{"data-side":H,"data-align":te,...f,ref:E,style:{...f.style,animation:L?void 0:"none"}})})})});ud.displayName=$s;var dd="PopperArrow",YE={top:"bottom",right:"left",bottom:"top",left:"right"},fd=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=UE(dd,r),a=YE[s.placedSide];return l.jsxRuntimeExports.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsxRuntimeExports.jsx(BE,{...o,ref:n,style:{...o.style,display:"block"}})})});fd.displayName=dd;function KE(e){return e!==null}var XE=e=>({name:"transformOrigin",options:e,fn(t){var v,x,y;const{placement:n,rects:r,middlewareData:o}=t,a=((v=o.arrow)==null?void 0:v.centerOffset)!==0,c=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,p]=pd(n),m={start:"0%",center:"50%",end:"100%"}[p],g=(((x=o.arrow)==null?void 0:x.x)??0)+c/2,h=(((y=o.arrow)==null?void 0:y.y)??0)+d/2;let w="",f="";return u==="bottom"?(w=a?m:`${g}px`,f=`${-d}px`):u==="top"?(w=a?m:`${g}px`,f=`${r.floating.height+d}px`):u==="right"?(w=`${-d}px`,f=a?m:`${h}px`):u==="left"&&(w=`${r.floating.width+d}px`,f=a?m:`${h}px`),{data:{x:w,y:f}}}});function pd(e){const[t,n="center"]=e.split("-");return[t,n]}var GE=ad,md=ld,qE=ud,ZE=fd,QE="Portal",Os=i.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,s]=i.useState(!1);Ge(()=>s(!0),[]);const a=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return a?Kn.createPortal(l.jsxRuntimeExports.jsx(he.div,{...r,ref:t}),a):null});Os.displayName=QE;function JE(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var Bt=e=>{const{present:t,children:n}=e,r=ew(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),s=Pe(r.ref,tw(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:s}):null};Bt.displayName="Presence";function ew(e){const[t,n]=i.useState(),r=i.useRef(null),o=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,d]=JE(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=wn(r.current);s.current=c==="mounted"?u:"none"},[c]),Ge(()=>{const u=r.current,p=o.current;if(p!==e){const g=s.current,h=wn(u);e?d("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(p&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),Ge(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,m=h=>{const f=wn(r.current).includes(h.animationName);if(h.target===t&&f&&(d("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},g=h=>{h.target===t&&(s.current=wn(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function wn(e){return(e==null?void 0:e.animationName)||"none"}function tw(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 nw=i[" useInsertionEffect ".trim().toString()]||Ge;function hd({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=rw({defaultProp:t,onChange:n}),c=e!==void 0,d=c?e:o;{const p=i.useRef(e!==void 0);i.useEffect(()=>{const m=p.current;m!==c&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=c},[c,r])}const u=i.useCallback(p=>{var m;if(c){const g=ow(p)?p(e):p;g!==e&&((m=a.current)==null||m.call(a,g))}else s(p)},[c,e,s,a]);return[d,u]}function rw({defaultProp:e,onChange:t}){const[n,r]=i.useState(e),o=i.useRef(n),s=i.useRef(t);return nw(()=>{s.current=t},[t]),i.useEffect(()=>{var a;o.current!==n&&((a=s.current)==null||a.call(s,n),o.current=n)},[n,o]),[n,r,s]}function ow(e){return typeof e=="function"}function sw(e){return e}function iw(e,t){t===void 0&&(t=sw);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(s),a=n}var d=function(){var p=a;a=[],p.forEach(s)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(p){a.push(p),u()},filter:function(p){return a=a.filter(p),n}}}};return o}function aw(e){e===void 0&&(e={});var t=iw(null);return t.options=ie({async:!0,ssr:!1},e),t}var vd=function(e){var t=e.sideCar,n=tn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,ie({},n))};vd.isSideCarExport=!0;function cw(e,t){return e.useMedium(t),vd}var gd=aw(),Gr=function(){},Er=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Gr,onWheelCapture:Gr,onTouchMoveCapture:Gr}),o=r[0],s=r[1],a=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,p=e.enabled,m=e.shards,g=e.sideCar,h=e.noRelative,w=e.noIsolation,f=e.inert,v=e.allowPinchZoom,x=e.as,y=x===void 0?"div":x,E=e.gapMode,R=tn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=g,S=Hc([n,t]),b=ie(ie({},R),o);return i.createElement(i.Fragment,null,p&&i.createElement(C,{sideCar:gd,removeScrollBar:u,shards:m,noRelative:h,noIsolation:w,inert:f,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:E}),a?i.cloneElement(i.Children.only(c),ie(ie({},b),{ref:S})):i.createElement(y,ie({},b,{className:d,ref:S}),c))});Er.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Er.classNames={fullWidth:Xt,zeroRight:Kt};var Oo=!1;if(typeof window<"u")try{var bn=Object.defineProperty({},"passive",{get:function(){return Oo=!0,!0}});window.addEventListener("test",bn,bn),window.removeEventListener("test",bn,bn)}catch{Oo=!1}var yt=Oo?{passive:!1}:!1,lw=function(e){return e.tagName==="TEXTAREA"},xd=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!lw(e)&&n[t]==="visible")},uw=function(e){return xd(e,"overflowY")},dw=function(e){return xd(e,"overflowX")},Zi=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=yd(e,r);if(o){var s=Ed(e,r),a=s[1],c=s[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},fw=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},pw=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},yd=function(e,t){return e==="v"?uw(t):dw(t)},Ed=function(e,t){return e==="v"?fw(t):pw(t)},mw=function(e,t){return e==="h"&&t==="rtl"?-1:1},hw=function(e,t,n,r,o){var s=mw(e,window.getComputedStyle(t).direction),a=s*r,c=n.target,d=t.contains(c),u=!1,p=a>0,m=0,g=0;do{if(!c)break;var h=Ed(e,c),w=h[0],f=h[1],v=h[2],x=f-v-s*w;(w||x)&&yd(e,c)&&(m+=x,g+=w);var y=c.parentNode;c=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(p&&(Math.abs(m)<1||!o)||!p&&(Math.abs(g)<1||!o))&&(u=!0),u},Rn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Qi=function(e){return[e.deltaX,e.deltaY]},Ji=function(e){return e&&"current"in e?e.current:e},vw=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gw=function(e){return`
712
+ `,dy=({variant:e})=>{switch(e){case"success":return l.jsxRuntimeExports.jsx(Rx,{});case"error":return l.jsxRuntimeExports.jsx(wx,{});case"warning":return l.jsxRuntimeExports.jsx(Cx,{});default:return l.jsxRuntimeExports.jsx(bx,{})}};function fy(){const{toasts:e}=Ul();return l.jsxRuntimeExports.jsxs(ry,{children:[e.map(function({id:t,title:n,description:r,testId:o,variant:s="info",...a}){return l.jsxRuntimeExports.jsxs(iy,{$variant:s,testId:o,...a,children:[l.jsxRuntimeExports.jsx(cy,{children:l.jsxRuntimeExports.jsx(dy,{variant:s})}),l.jsxRuntimeExports.jsxs(ay,{children:[n&&l.jsxRuntimeExports.jsx(ly,{children:n}),r&&l.jsxRuntimeExports.jsx(uy,{children:r})]}),l.jsxRuntimeExports.jsx(xu,{color:jo[s].color})]},t)}),l.jsxRuntimeExports.jsx(vu,{})]})}const wu=i.forwardRef(({...e},t)=>l.jsxRuntimeExports.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));wu.displayName="Breadcrumb";const bu=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx("ol",{ref:n,className:l.cn("flex flex-wrap items-center gap-1.5 break-words text-sm text-neutral-500 sm:gap-2.5 dark:text-neutral-400",e),...t}));bu.displayName="BreadcrumbList";const Ru=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx("li",{ref:n,className:l.cn("inline-flex items-center gap-1.5",e),...t}));Ru.displayName="BreadcrumbItem";const py=i.forwardRef(({asChild:e,className:t,...n},r)=>{const o=e?er:"a";return l.jsxRuntimeExports.jsx(o,{ref:r,className:l.cn("transition-colors hover:text-neutral-950 dark:hover:text-neutral-50",t),...n})});py.displayName="BreadcrumbLink";const my=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:l.cn("font-normal text-neutral-950 dark:text-neutral-50",e),...t}));my.displayName="BreadcrumbPage";const Cu=({children:e,className:t,...n})=>l.jsxRuntimeExports.jsx("li",{role:"presentation","aria-hidden":"true",className:l.cn("flex items-center",t),...n,children:e??l.jsxRuntimeExports.jsx("div",{className:"w-3.5 h-3.5 border-r-2 border-t-2 border-neutral-400 transform rotate-45"})});Cu.displayName="BreadcrumbSeparator";const Su={...l.typography.label,fontSize:"0.8125rem",letterSpacing:"-0.26px"},Wi={color:l.colors.white,...Su},hy={backgroundColor:l.colors.neutral["800-A08"],color:l.colors.neutral[300],...Su},vy=({children:e,isActive:t,isCompleted:n,isCompletedAndActive:r,className:o,onClick:s,isHovered:a,hoverIcon:c})=>r?l.jsxRuntimeExports.jsx("div",{className:l.cn("w-5 h-5 rounded-full flex items-center justify-center transition-colors bg-primary-700","cursor-pointer hover:opacity-80",o),style:Wi,onClick:s,children:e}):n?l.jsxRuntimeExports.jsx("div",{className:l.cn("w-5 h-5 rounded-full flex items-center justify-center transition-colors",s&&"cursor-pointer hover:opacity-80",o),style:{backgroundColor:l.colors.primary["600-A08"]},onClick:s,children:a&&c?c:l.jsxRuntimeExports.jsx(l.Check,{color:l.colors.primary[700],size:16})}):t?l.jsxRuntimeExports.jsx("div",{className:l.cn("w-5 h-5 rounded-full flex items-center justify-center transition-colors bg-primary-700",o),style:Wi,children:e}):l.jsxRuntimeExports.jsx("div",{className:l.cn("w-5 h-5 rounded-full flex items-center justify-center transition-colors",o),style:hy,children:e}),gy=()=>l.jsxRuntimeExports.jsx(Cu,{children:l.jsxRuntimeExports.jsx("div",{className:"w-2 h-2 border-r-2 border-t-2 border-neutral-300 transform rotate-45"})}),xy=e=>{if(!e)return null;const t=l.Icons[e];return t?l.jsxRuntimeExports.jsx(t,{color:l.colors.primary[700],size:16}):null};function yy({steps:e,currentStep:t=1,onStepClick:n,hoverIcons:r,completedStep:o}){const[s,a]=Z.useState(null),c=t>e.length,d=o??t,u=en(),p=m=>{const g=m===t&&m<d,h=c||m<=d&&m!==t;return{isActive:!c&&m===t,isCompleted:h,isCompletedAndActive:g}};return l.jsxRuntimeExports.jsx("div",{className:"flex items-center py-4",children:l.jsxRuntimeExports.jsx(wu,{children:l.jsxRuntimeExports.jsx(bu,{className:"gap-2.5",children:e.map((m,g)=>{const h=g+1,{isActive:E,isCompleted:f,isCompletedAndActive:v}=p(h),y=g===e.length-1,x=!E,R=h===t+1&&!c,C=(f||v)&&n,S=r==null?void 0:r[g],w=S?xy(S):void 0;return l.jsxRuntimeExports.jsxs(Z.Fragment,{children:[l.jsxRuntimeExports.jsxs(Ru,{className:l.cn("gap-0",x&&"md:gap-1.5",R&&"gap-1.5"),onMouseEnter:()=>C&&a(h),onMouseLeave:()=>a(null),children:[l.jsxRuntimeExports.jsx(vy,{isActive:E,isCompleted:f,isCompletedAndActive:v,onClick:C?()=>n(h):void 0,isHovered:s===h,hoverIcon:w,children:h}),x&&!u&&l.jsxRuntimeExports.jsx("span",{className:l.cn("whitespace-nowrap transition-colors",R?"inline":"hidden md:inline",f?"text-primary-700":"text-neutral-300",C&&"cursor-pointer hover:opacity-80"),style:{...l.typography.label,fontSize:"0.8125rem",letterSpacing:"-0.26px"},onClick:C?()=>n(h):void 0,children:m})]}),!y&&l.jsxRuntimeExports.jsx(gy,{})]},h)})})})})}var ju=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),s=o.find(Ey);if(s){const a=s.props.children,c=o.map(d=>d===s?i.Children.count(a)>1?i.Children.only(null):i.isValidElement(a)?a.props.children:null:d);return l.jsxRuntimeExports.jsx(Po,{...r,ref:t,children:i.isValidElement(a)?i.cloneElement(a,void 0,c):null})}return l.jsxRuntimeExports.jsx(Po,{...r,ref:t,children:n})});ju.displayName="Slot";var Po=i.forwardRef((e,t)=>{const{children:n,...r}=e;if(i.isValidElement(n)){const o=by(n),s=wy(r,n.props);return n.type!==i.Fragment&&(s.ref=t?Ue(t,o):o),i.cloneElement(n,s)}return i.Children.count(n)>1?i.Children.only(null):null});Po.displayName="SlotClone";var Pu=({children:e})=>l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e});function Ey(e){return i.isValidElement(e)&&e.type===Pu}function wy(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{s(...c),o(...c)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function by(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 Ry=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],fe=Ry.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:s,...a}=r,c=s?ju:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsxRuntimeExports.jsx(c,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Cy(e,t){e&&Ze.flushSync(()=>e.dispatchEvent(t))}var Sy="DismissableLayer",To="dismissableLayer.update",jy="dismissableLayer.pointerDownOutside",Py="dismissableLayer.focusOutside",Bi,Tu=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Au=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(Tu),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=i.useState({}),E=ne(t,w=>m(w)),f=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=f.indexOf(v),x=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=x>=y,C=Ny(w=>{const P=w.target,N=[...u.branches].some(k=>k.contains(P));!R||N||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=$y(w=>{const P=w.target;[...u.branches].some(k=>k.contains(P))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return tr(w=>{x===u.layers.size-1&&(r==null||r(w),!w.defaultPrevented&&c&&(w.preventDefault(),c()))},g),i.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Bi=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),Hi(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Bi)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),Hi())},[p,u]),i.useEffect(()=>{const w=()=>h({});return document.addEventListener(To,w),()=>document.removeEventListener(To,w)},[]),l.jsxRuntimeExports.jsx(fe.div,{...d,ref:E,style:{pointerEvents:b?R?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,S.onFocusCapture),onBlurCapture:X(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,C.onPointerDownCapture)})});Au.displayName=Sy;var Ty="DismissableLayerBranch",Ay=i.forwardRef((e,t)=>{const n=i.useContext(Tu),r=i.useRef(null),o=ne(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsxRuntimeExports.jsx(fe.div,{...e,ref:o})});Ay.displayName=Ty;function Ny(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){Nu(jy,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function $y(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&Nu(Py,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Hi(){const e=new CustomEvent(To);document.dispatchEvent(e)}function Nu(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Cy(o,s):o.dispatchEvent(s)}var Oy="Arrow",$u=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsxRuntimeExports.jsx(fe.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});$u.displayName=Oy;var Dy=$u,Rs="Popper",[Ou,Du]=ft(Rs),[ky,ku]=Ou(Rs),Iu=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return l.jsxRuntimeExports.jsx(ky,{scope:t,anchor:r,onAnchorChange:o,children:n})};Iu.displayName=Rs;var Mu="PopperAnchor",Lu=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=ku(Mu,n),a=i.useRef(null),c=ne(t,a);return i.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:l.jsxRuntimeExports.jsx(fe.div,{...o,ref:c})});Lu.displayName=Mu;var Cs="PopperContent",[Iy,My]=Ou(Cs),_u=i.forwardRef((e,t)=>{var A,F,V,G,Q,K;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:E,...f}=e,v=ku(Cs,n),[y,x]=i.useState(null),b=ne(t,oe=>x(oe)),[R,C]=i.useState(null),S=$c(R),w=(S==null?void 0:S.width)??0,P=(S==null?void 0:S.height)??0,N=r+(s!=="center"?"-"+s:""),k=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},U=Array.isArray(u)?u:[u],Y=U.length>0,W={padding:k,boundary:U.filter(_y),altBoundary:Y},{refs:T,floatingStyles:B,placement:M,isPositioned:L,middlewareData:$}=ss({strategy:"fixed",placement:N,whileElementsMounted:(...oe)=>os(...oe,{animationFrame:h==="always"}),elements:{reference:v.anchor},middleware:[is({mainAxis:o+P,alignmentAxis:a}),d&&as({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?cs():void 0,...W}),d&&ls({...W}),us({...W,apply:({elements:oe,rects:de,availableWidth:De,availableHeight:ke})=>{const{width:Ie,height:Ht}=de.reference,pe=oe.floating.style;pe.setProperty("--radix-popper-available-width",`${De}px`),pe.setProperty("--radix-popper-available-height",`${ke}px`),pe.setProperty("--radix-popper-anchor-width",`${Ie}px`),pe.setProperty("--radix-popper-anchor-height",`${Ht}px`)}}),R&&fs({element:R,padding:c}),Fy({arrowWidth:w,arrowHeight:P}),g&&ds({strategy:"referenceHidden",...W})]}),[H,te]=Bu(M),J=ae(E);ce(()=>{L&&(J==null||J())},[L,J]);const j=(A=$.arrow)==null?void 0:A.x,D=(F=$.arrow)==null?void 0:F.y,_=((V=$.arrow)==null?void 0:V.centerOffset)!==0,[O,z]=i.useState();return ce(()=>{y&&z(window.getComputedStyle(y).zIndex)},[y]),l.jsxRuntimeExports.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:L?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(G=$.transformOrigin)==null?void 0:G.x,(Q=$.transformOrigin)==null?void 0:Q.y].join(" "),...((K=$.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsxRuntimeExports.jsx(Iy,{scope:n,placedSide:H,onArrowChange:C,arrowX:j,arrowY:D,shouldHideArrow:_,children:l.jsxRuntimeExports.jsx(fe.div,{"data-side":H,"data-align":te,...f,ref:b,style:{...f.style,animation:L?void 0:"none"}})})})});_u.displayName=Cs;var Fu="PopperArrow",Ly={top:"bottom",right:"left",bottom:"top",left:"right"},Wu=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=My(Fu,r),a=Ly[s.placedSide];return l.jsxRuntimeExports.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsxRuntimeExports.jsx(Dy,{...o,ref:n,style:{...o.style,display:"block"}})})});Wu.displayName=Fu;function _y(e){return e!==null}var Fy=e=>({name:"transformOrigin",options:e,fn(t){var v,y,x;const{placement:n,rects:r,middlewareData:o}=t,a=((v=o.arrow)==null?void 0:v.centerOffset)!==0,c=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,p]=Bu(n),m={start:"0%",center:"50%",end:"100%"}[p],g=(((y=o.arrow)==null?void 0:y.x)??0)+c/2,h=(((x=o.arrow)==null?void 0:x.y)??0)+d/2;let E="",f="";return u==="bottom"?(E=a?m:`${g}px`,f=`${-d}px`):u==="top"?(E=a?m:`${g}px`,f=`${r.floating.height+d}px`):u==="right"?(E=`${-d}px`,f=a?m:`${h}px`):u==="left"&&(E=`${r.floating.width+d}px`,f=a?m:`${h}px`),{data:{x:E,y:f}}}});function Bu(e){const[t,n="center"]=e.split("-");return[t,n]}var Wy=Iu,By=Lu,Hy=_u,Vy=Wu,zy="VisuallyHidden",Hu=i.forwardRef((e,t)=>l.jsxRuntimeExports.jsx(fe.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}}));Hu.displayName=zy;var Uy=Hu,[vr,kb]=ft("Tooltip",[Du]),gr=Du(),Vu="TooltipProvider",Yy=700,Ao="tooltip.open",[Ky,Ss]=vr(Vu),zu=e=>{const{__scopeTooltip:t,delayDuration:n=Yy,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,[a,c]=i.useState(!0),d=i.useRef(!1),u=i.useRef(0);return i.useEffect(()=>{const p=u.current;return()=>window.clearTimeout(p)},[]),l.jsxRuntimeExports.jsx(Ky,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(u.current),c(!1)},[]),onClose:i.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>c(!0),r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:i.useCallback(p=>{d.current=p},[]),disableHoverableContent:o,children:s})};zu.displayName=Vu;var xr="Tooltip",[Xy,yr]=vr(xr),Uu=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,d=Ss(xr,e.__scopeTooltip),u=gr(t),[p,m]=i.useState(null),g=xe(),h=i.useRef(0),E=a??d.disableHoverableContent,f=c??d.delayDuration,v=i.useRef(!1),[y=!1,x]=qt({prop:r,defaultProp:o,onChange:w=>{w?(d.onOpen(),document.dispatchEvent(new CustomEvent(Ao))):d.onClose(),s==null||s(w)}}),b=i.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),R=i.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,x(!0)},[x]),C=i.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),S=i.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,x(!0),h.current=0},f)},[f,x]);return i.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),l.jsxRuntimeExports.jsx(Wy,{...u,children:l.jsxRuntimeExports.jsx(Xy,{scope:t,contentId:g,open:y,stateAttribute:b,trigger:p,onTriggerChange:m,onTriggerEnter:i.useCallback(()=>{d.isOpenDelayed?S():R()},[d.isOpenDelayed,S,R]),onTriggerLeave:i.useCallback(()=>{E?C():(window.clearTimeout(h.current),h.current=0)},[C,E]),onOpen:R,onClose:C,disableHoverableContent:E,children:n})})};Uu.displayName=xr;var No="TooltipTrigger",Yu=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=yr(No,n),s=Ss(No,n),a=gr(n),c=i.useRef(null),d=ne(t,c,o.onTriggerChange),u=i.useRef(!1),p=i.useRef(!1),m=i.useCallback(()=>u.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),l.jsxRuntimeExports.jsx(By,{asChild:!0,...a,children:l.jsxRuntimeExports.jsx(fe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:d,onPointerMove:X(e.onPointerMove,g=>{g.pointerType!=="touch"&&!p.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:X(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:X(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:X(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:X(e.onBlur,o.onClose),onClick:X(e.onClick,o.onClose)})})});Yu.displayName=No;var Gy="TooltipPortal",[Ib,qy]=vr(Gy,{forceMount:void 0}),Dt="TooltipContent",Ku=i.forwardRef((e,t)=>{const n=qy(Dt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=yr(Dt,e.__scopeTooltip);return l.jsxRuntimeExports.jsx(ys,{present:r||a.open,children:a.disableHoverableContent?l.jsxRuntimeExports.jsx(Xu,{side:o,...s,ref:t}):l.jsxRuntimeExports.jsx(Zy,{side:o,...s,ref:t})})}),Zy=i.forwardRef((e,t)=>{const n=yr(Dt,e.__scopeTooltip),r=Ss(Dt,e.__scopeTooltip),o=i.useRef(null),s=ne(t,o),[a,c]=i.useState(null),{trigger:d,onClose:u}=n,p=o.current,{onPointerInTransitChange:m}=r,g=i.useCallback(()=>{c(null),m(!1)},[m]),h=i.useCallback((E,f)=>{const v=E.currentTarget,y={x:E.clientX,y:E.clientY},x=tE(y,v.getBoundingClientRect()),b=nE(y,x),R=rE(f.getBoundingClientRect()),C=sE([...b,...R]);c(C),m(!0)},[m]);return i.useEffect(()=>()=>g(),[g]),i.useEffect(()=>{if(d&&p){const E=v=>h(v,p),f=v=>h(v,d);return d.addEventListener("pointerleave",E),p.addEventListener("pointerleave",f),()=>{d.removeEventListener("pointerleave",E),p.removeEventListener("pointerleave",f)}}},[d,p,h,g]),i.useEffect(()=>{if(a){const E=f=>{const v=f.target,y={x:f.clientX,y:f.clientY},x=(d==null?void 0:d.contains(v))||(p==null?void 0:p.contains(v)),b=!oE(y,a);x?g():b&&(g(),u())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[d,p,a,u,g]),l.jsxRuntimeExports.jsx(Xu,{...e,ref:s})}),[Qy,Jy]=vr(xr,{isInside:!1}),Xu=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=e,d=yr(Dt,n),u=gr(n),{onClose:p}=d;return i.useEffect(()=>(document.addEventListener(Ao,p),()=>document.removeEventListener(Ao,p)),[p]),i.useEffect(()=>{if(d.trigger){const m=g=>{const h=g.target;h!=null&&h.contains(d.trigger)&&p()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[d.trigger,p]),l.jsxRuntimeExports.jsx(Au,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:m=>m.preventDefault(),onDismiss:p,children:l.jsxRuntimeExports.jsxs(Hy,{"data-state":d.stateAttribute,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsxRuntimeExports.jsx(Pu,{children:r}),l.jsxRuntimeExports.jsx(Qy,{scope:n,isInside:!0,children:l.jsxRuntimeExports.jsx(Uy,{id:d.contentId,role:"tooltip",children:o||r})})]})})});Ku.displayName=Dt;var Gu="TooltipArrow",eE=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=gr(n);return Jy(Gu,n).isInside?null:l.jsxRuntimeExports.jsx(Vy,{...o,...r,ref:t})});eE.displayName=Gu;function tE(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function nE(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function rE(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function oE(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s].x,d=t[s].y,u=t[a].x,p=t[a].y;d>r!=p>r&&n<(u-c)*(r-d)/(p-d)+c&&(o=!o)}return o}function sE(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),iE(t)}function iE(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var aE=zu,cE=Uu,lE=Yu,qu=Ku;const uE=aE,dE=cE,fE=lE,Zu=i.forwardRef(({className:e,sideOffset:t=4,...n},r)=>{const o={...l.typography.body,background:l.colors.primary[900],borderRadius:".5rem",color:l.colors.white,fontSize:".8125rem",padding:".5rem .75rem",whiteSpace:"normal",width:"19.375rem"};return l.jsxRuntimeExports.jsx(qu,{ref:r,sideOffset:t,className:l.cn("z-50 overflow-hidden rounded-md border border-neutral-200 bg-white px-3 py-1.5 text-sm text-neutral-950 shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),style:o,...n})});Zu.displayName=qu.displayName;function Ee(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 Vi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qu(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Vi(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Vi(e[o],null)}}}}function Pe(...e){return i.useCallback(Qu(...e),e)}function pE(e,t){const n=i.createContext(t),r=s=>{const{children:a,...c}=s,d=i.useMemo(()=>c,Object.values(c));return l.jsxRuntimeExports.jsx(n.Provider,{value:d,children:a})};r.displayName=e+"Provider";function o(s){const a=i.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function js(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a),d=n.length;n=[...n,a];const u=m=>{var y;const{scope:g,children:h,...E}=m,f=((y=g==null?void 0:g[e])==null?void 0:y[d])||c,v=i.useMemo(()=>E,Object.values(E));return l.jsxRuntimeExports.jsx(f.Provider,{value:v,children:h})};u.displayName=s+"Provider";function p(m,g){var f;const h=((f=g==null?void 0:g[e])==null?void 0:f[d])||c,E=i.useContext(h);if(E)return E;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[u,p]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const d=(c==null?void 0:c[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return o.scopeName=e,[r,mE(o,...t)]}function mE(...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(s){const a=r.reduce((c,{useScope:d,scopeName:u})=>{const m=d(s)[`__scope${u}`];return{...c,...m}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Ps(e){const t=hE(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),d=c.find(gE);if(d){const u=d.props.children,p=c.map(m=>m===d?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:m);return l.jsxRuntimeExports.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,p):null})}return l.jsxRuntimeExports.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function hE(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=yE(o),c=xE(s,o.props);return o.type!==i.Fragment&&(c.ref=r?Qu(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var vE=Symbol("radix.slottable");function gE(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===vE}function xE(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const d=s(...c);return o(...c),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function yE(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 EE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],he=EE.reduce((e,t)=>{const n=Ps(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,d=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsxRuntimeExports.jsx(d,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function wE(e,t){e&&Ze.flushSync(()=>e.dispatchEvent(t))}function kt(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function bE(e,t=globalThis==null?void 0:globalThis.document){const n=kt(e);i.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 RE="DismissableLayer",$o="dismissableLayer.update",CE="dismissableLayer.pointerDownOutside",SE="dismissableLayer.focusOutside",zi,Ju=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ts=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(Ju),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=i.useState({}),E=Pe(t,w=>m(w)),f=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=f.indexOf(v),x=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=x>=y,C=TE(w=>{const P=w.target,N=[...u.branches].some(k=>k.contains(P));!R||N||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=AE(w=>{const P=w.target;[...u.branches].some(k=>k.contains(P))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return bE(w=>{x===u.layers.size-1&&(r==null||r(w),!w.defaultPrevented&&c&&(w.preventDefault(),c()))},g),i.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(zi=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),Ui(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=zi)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),Ui())},[p,u]),i.useEffect(()=>{const w=()=>h({});return document.addEventListener($o,w),()=>document.removeEventListener($o,w)},[]),l.jsxRuntimeExports.jsx(he.div,{...d,ref:E,style:{pointerEvents:b?R?"auto":"none":void 0,...e.style},onFocusCapture:Ee(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Ee(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Ee(e.onPointerDownCapture,C.onPointerDownCapture)})});Ts.displayName=RE;var jE="DismissableLayerBranch",PE=i.forwardRef((e,t)=>{const n=i.useContext(Ju),r=i.useRef(null),o=Pe(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsxRuntimeExports.jsx(he.div,{...e,ref:o})});PE.displayName=jE;function TE(e,t=globalThis==null?void 0:globalThis.document){const n=kt(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){ed(CE,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function AE(e,t=globalThis==null?void 0:globalThis.document){const n=kt(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&ed(SE,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ui(){const e=new CustomEvent($o);document.dispatchEvent(e)}function ed(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?wE(o,s):o.dispatchEvent(s)}var Yr=0;function td(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Yi()),document.body.insertAdjacentElement("beforeend",e[1]??Yi()),Yr++,()=>{Yr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Yr--}},[])}function Yi(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Kr="focusScope.autoFocusOnMount",Xr="focusScope.autoFocusOnUnmount",Ki={bubbles:!1,cancelable:!0},NE="FocusScope",As=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[c,d]=i.useState(null),u=kt(o),p=kt(s),m=i.useRef(null),g=Pe(t,f=>d(f)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let f=function(b){if(h.paused||!c)return;const R=b.target;c.contains(R)?m.current=R:Ve(m.current,{select:!0})},v=function(b){if(h.paused||!c)return;const R=b.relatedTarget;R!==null&&(c.contains(R)||Ve(m.current,{select:!0}))},y=function(b){if(document.activeElement===document.body)for(const C of b)C.removedNodes.length>0&&Ve(c)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const x=new MutationObserver(y);return c&&x.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),x.disconnect()}}},[r,c,h.paused]),i.useEffect(()=>{if(c){Gi.add(h);const f=document.activeElement;if(!c.contains(f)){const y=new CustomEvent(Kr,Ki);c.addEventListener(Kr,u),c.dispatchEvent(y),y.defaultPrevented||($E(ME(nd(c)),{select:!0}),document.activeElement===f&&Ve(c))}return()=>{c.removeEventListener(Kr,u),setTimeout(()=>{const y=new CustomEvent(Xr,Ki);c.addEventListener(Xr,p),c.dispatchEvent(y),y.defaultPrevented||Ve(f??document.body,{select:!0}),c.removeEventListener(Xr,p),Gi.remove(h)},0)}}},[c,u,p,h]);const E=i.useCallback(f=>{if(!n&&!r||h.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,y=document.activeElement;if(v&&y){const x=f.currentTarget,[b,R]=OE(x);b&&R?!f.shiftKey&&y===R?(f.preventDefault(),n&&Ve(b,{select:!0})):f.shiftKey&&y===b&&(f.preventDefault(),n&&Ve(R,{select:!0})):y===x&&f.preventDefault()}},[n,r,h.paused]);return l.jsxRuntimeExports.jsx(he.div,{tabIndex:-1,...a,ref:g,onKeyDown:E})});As.displayName=NE;function $E(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ve(r,{select:t}),document.activeElement!==n)return}function OE(e){const t=nd(e),n=Xi(t,e),r=Xi(t.reverse(),e);return[n,r]}function nd(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 Xi(e,t){for(const n of e)if(!DE(n,{upTo:t}))return n}function DE(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 kE(e){return e instanceof HTMLInputElement&&"select"in e}function Ve(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&kE(e)&&t&&e.select()}}var Gi=IE();function IE(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=qi(e,t),e.unshift(t)},remove(t){var n;e=qi(e,t),(n=e[0])==null||n.resume()}}}function qi(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ME(e){return e.filter(t=>t.tagName!=="A")}var Ge=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},LE=i[" useId ".trim().toString()]||(()=>{}),_E=0;function kn(e){const[t,n]=i.useState(LE());return Ge(()=>{e||n(r=>r??String(_E++))},[e]),e||(t?`radix-${t}`:"")}var FE="Arrow",rd=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsxRuntimeExports.jsx(he.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});rd.displayName=FE;var WE=rd;function BE(e){const[t,n]=i.useState(void 0);return Ge(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,c;if("borderBoxSize"in s){const d=s.borderBoxSize,u=Array.isArray(d)?d[0]:d;a=u.inlineSize,c=u.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ns="Popper",[od,sd]=js(Ns),[HE,id]=od(Ns),ad=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return l.jsxRuntimeExports.jsx(HE,{scope:t,anchor:r,onAnchorChange:o,children:n})};ad.displayName=Ns;var cd="PopperAnchor",ld=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=id(cd,n),a=i.useRef(null),c=Pe(t,a);return i.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:l.jsxRuntimeExports.jsx(he.div,{...o,ref:c})});ld.displayName=cd;var $s="PopperContent",[VE,zE]=od($s),ud=i.forwardRef((e,t)=>{var A,F,V,G,Q,K;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:E,...f}=e,v=id($s,n),[y,x]=i.useState(null),b=Pe(t,oe=>x(oe)),[R,C]=i.useState(null),S=BE(R),w=(S==null?void 0:S.width)??0,P=(S==null?void 0:S.height)??0,N=r+(s!=="center"?"-"+s:""),k=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},U=Array.isArray(u)?u:[u],Y=U.length>0,W={padding:k,boundary:U.filter(YE),altBoundary:Y},{refs:T,floatingStyles:B,placement:M,isPositioned:L,middlewareData:$}=ss({strategy:"fixed",placement:N,whileElementsMounted:(...oe)=>os(...oe,{animationFrame:h==="always"}),elements:{reference:v.anchor},middleware:[is({mainAxis:o+P,alignmentAxis:a}),d&&as({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?cs():void 0,...W}),d&&ls({...W}),us({...W,apply:({elements:oe,rects:de,availableWidth:De,availableHeight:ke})=>{const{width:Ie,height:Ht}=de.reference,pe=oe.floating.style;pe.setProperty("--radix-popper-available-width",`${De}px`),pe.setProperty("--radix-popper-available-height",`${ke}px`),pe.setProperty("--radix-popper-anchor-width",`${Ie}px`),pe.setProperty("--radix-popper-anchor-height",`${Ht}px`)}}),R&&fs({element:R,padding:c}),KE({arrowWidth:w,arrowHeight:P}),g&&ds({strategy:"referenceHidden",...W})]}),[H,te]=pd(M),J=kt(E);Ge(()=>{L&&(J==null||J())},[L,J]);const j=(A=$.arrow)==null?void 0:A.x,D=(F=$.arrow)==null?void 0:F.y,_=((V=$.arrow)==null?void 0:V.centerOffset)!==0,[O,z]=i.useState();return Ge(()=>{y&&z(window.getComputedStyle(y).zIndex)},[y]),l.jsxRuntimeExports.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:L?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(G=$.transformOrigin)==null?void 0:G.x,(Q=$.transformOrigin)==null?void 0:Q.y].join(" "),...((K=$.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsxRuntimeExports.jsx(VE,{scope:n,placedSide:H,onArrowChange:C,arrowX:j,arrowY:D,shouldHideArrow:_,children:l.jsxRuntimeExports.jsx(he.div,{"data-side":H,"data-align":te,...f,ref:b,style:{...f.style,animation:L?void 0:"none"}})})})});ud.displayName=$s;var dd="PopperArrow",UE={top:"bottom",right:"left",bottom:"top",left:"right"},fd=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=zE(dd,r),a=UE[s.placedSide];return l.jsxRuntimeExports.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsxRuntimeExports.jsx(WE,{...o,ref:n,style:{...o.style,display:"block"}})})});fd.displayName=dd;function YE(e){return e!==null}var KE=e=>({name:"transformOrigin",options:e,fn(t){var v,y,x;const{placement:n,rects:r,middlewareData:o}=t,a=((v=o.arrow)==null?void 0:v.centerOffset)!==0,c=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,p]=pd(n),m={start:"0%",center:"50%",end:"100%"}[p],g=(((y=o.arrow)==null?void 0:y.x)??0)+c/2,h=(((x=o.arrow)==null?void 0:x.y)??0)+d/2;let E="",f="";return u==="bottom"?(E=a?m:`${g}px`,f=`${-d}px`):u==="top"?(E=a?m:`${g}px`,f=`${r.floating.height+d}px`):u==="right"?(E=`${-d}px`,f=a?m:`${h}px`):u==="left"&&(E=`${r.floating.width+d}px`,f=a?m:`${h}px`),{data:{x:E,y:f}}}});function pd(e){const[t,n="center"]=e.split("-");return[t,n]}var XE=ad,md=ld,GE=ud,qE=fd,ZE="Portal",Os=i.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,s]=i.useState(!1);Ge(()=>s(!0),[]);const a=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return a?Kn.createPortal(l.jsxRuntimeExports.jsx(he.div,{...r,ref:t}),a):null});Os.displayName=ZE;function QE(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var Bt=e=>{const{present:t,children:n}=e,r=JE(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),s=Pe(r.ref,ew(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:s}):null};Bt.displayName="Presence";function JE(e){const[t,n]=i.useState(),r=i.useRef(null),o=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,d]=QE(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=wn(r.current);s.current=c==="mounted"?u:"none"},[c]),Ge(()=>{const u=r.current,p=o.current;if(p!==e){const g=s.current,h=wn(u);e?d("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(p&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),Ge(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,m=h=>{const f=wn(r.current).includes(h.animationName);if(h.target===t&&f&&(d("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},g=h=>{h.target===t&&(s.current=wn(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function wn(e){return(e==null?void 0:e.animationName)||"none"}function ew(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 tw=i[" useInsertionEffect ".trim().toString()]||Ge;function hd({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=nw({defaultProp:t,onChange:n}),c=e!==void 0,d=c?e:o;{const p=i.useRef(e!==void 0);i.useEffect(()=>{const m=p.current;m!==c&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=c},[c,r])}const u=i.useCallback(p=>{var m;if(c){const g=rw(p)?p(e):p;g!==e&&((m=a.current)==null||m.call(a,g))}else s(p)},[c,e,s,a]);return[d,u]}function nw({defaultProp:e,onChange:t}){const[n,r]=i.useState(e),o=i.useRef(n),s=i.useRef(t);return tw(()=>{s.current=t},[t]),i.useEffect(()=>{var a;o.current!==n&&((a=s.current)==null||a.call(s,n),o.current=n)},[n,o]),[n,r,s]}function rw(e){return typeof e=="function"}function ow(e){return e}function sw(e,t){t===void 0&&(t=ow);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(s),a=n}var d=function(){var p=a;a=[],p.forEach(s)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(p){a.push(p),u()},filter:function(p){return a=a.filter(p),n}}}};return o}function iw(e){e===void 0&&(e={});var t=sw(null);return t.options=ie({async:!0,ssr:!1},e),t}var vd=function(e){var t=e.sideCar,n=tn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,ie({},n))};vd.isSideCarExport=!0;function aw(e,t){return e.useMedium(t),vd}var gd=iw(),Gr=function(){},Er=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Gr,onWheelCapture:Gr,onTouchMoveCapture:Gr}),o=r[0],s=r[1],a=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,p=e.enabled,m=e.shards,g=e.sideCar,h=e.noRelative,E=e.noIsolation,f=e.inert,v=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,b=e.gapMode,R=tn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=g,S=Hc([n,t]),w=ie(ie({},R),o);return i.createElement(i.Fragment,null,p&&i.createElement(C,{sideCar:gd,removeScrollBar:u,shards:m,noRelative:h,noIsolation:E,inert:f,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:b}),a?i.cloneElement(i.Children.only(c),ie(ie({},w),{ref:S})):i.createElement(x,ie({},w,{className:d,ref:S}),c))});Er.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Er.classNames={fullWidth:Xt,zeroRight:Kt};var Oo=!1;if(typeof window<"u")try{var bn=Object.defineProperty({},"passive",{get:function(){return Oo=!0,!0}});window.addEventListener("test",bn,bn),window.removeEventListener("test",bn,bn)}catch{Oo=!1}var yt=Oo?{passive:!1}:!1,cw=function(e){return e.tagName==="TEXTAREA"},xd=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!cw(e)&&n[t]==="visible")},lw=function(e){return xd(e,"overflowY")},uw=function(e){return xd(e,"overflowX")},Zi=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=yd(e,r);if(o){var s=Ed(e,r),a=s[1],c=s[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},dw=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},fw=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},yd=function(e,t){return e==="v"?lw(t):uw(t)},Ed=function(e,t){return e==="v"?dw(t):fw(t)},pw=function(e,t){return e==="h"&&t==="rtl"?-1:1},mw=function(e,t,n,r,o){var s=pw(e,window.getComputedStyle(t).direction),a=s*r,c=n.target,d=t.contains(c),u=!1,p=a>0,m=0,g=0;do{if(!c)break;var h=Ed(e,c),E=h[0],f=h[1],v=h[2],y=f-v-s*E;(E||y)&&yd(e,c)&&(m+=y,g+=E);var x=c.parentNode;c=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(p&&(Math.abs(m)<1||!o)||!p&&(Math.abs(g)<1||!o))&&(u=!0),u},Rn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Qi=function(e){return[e.deltaX,e.deltaY]},Ji=function(e){return e&&"current"in e?e.current:e},hw=function(e,t){return e[0]===t[0]&&e[1]===t[1]},vw=function(e){return`
713
713
  .block-interactivity-`.concat(e,` {pointer-events: none;}
714
714
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
715
- `)},xw=0,Et=[];function yw(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(xw++)[0],s=i.useState(zc)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=Bo([e.lockRef.current],(e.shards||[]).map(Ji),!0).filter(Boolean);return f.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(f,v){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!a.current.allowPinchZoom;var x=Rn(f),y=n.current,E="deltaX"in f?f.deltaX:y[0]-x[0],R="deltaY"in f?f.deltaY:y[1]-x[1],C,S=f.target,b=Math.abs(E)>Math.abs(R)?"h":"v";if("touches"in f&&b==="h"&&S.type==="range")return!1;var P=Zi(b,S);if(!P)return!0;if(P?C=b:(C=b==="v"?"h":"v",P=Zi(b,S)),!P)return!1;if(!r.current&&"changedTouches"in f&&(E||R)&&(r.current=C),!C)return!0;var N=r.current||C;return hw(N,v,f,N==="h"?E:R,!0)},[]),d=i.useCallback(function(f){var v=f;if(!(!Et.length||Et[Et.length-1]!==s)){var x="deltaY"in v?Qi(v):Rn(v),y=t.current.filter(function(C){return C.name===v.type&&(C.target===v.target||v.target===C.shadowParent)&&vw(C.delta,x)})[0];if(y&&y.should){v.cancelable&&v.preventDefault();return}if(!y){var E=(a.current.shards||[]).map(Ji).filter(Boolean).filter(function(C){return C.contains(v.target)}),R=E.length>0?c(v,E[0]):!a.current.noIsolation;R&&v.cancelable&&v.preventDefault()}}},[]),u=i.useCallback(function(f,v,x,y){var E={name:f,delta:v,target:x,should:y,shadowParent:Ew(x)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),p=i.useCallback(function(f){n.current=Rn(f),r.current=void 0},[]),m=i.useCallback(function(f){u(f.type,Qi(f),f.target,c(f,e.lockRef.current))},[]),g=i.useCallback(function(f){u(f.type,Rn(f),f.target,c(f,e.lockRef.current))},[]);i.useEffect(function(){return Et.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:g}),document.addEventListener("wheel",d,yt),document.addEventListener("touchmove",d,yt),document.addEventListener("touchstart",p,yt),function(){Et=Et.filter(function(f){return f!==s}),document.removeEventListener("wheel",d,yt),document.removeEventListener("touchmove",d,yt),document.removeEventListener("touchstart",p,yt)}},[]);var h=e.removeScrollBar,w=e.inert;return i.createElement(i.Fragment,null,w?i.createElement(s,{styles:gw(o)}):null,h?i.createElement(Uc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ew(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ww=cw(gd,yw);var Ds=i.forwardRef(function(e,t){return i.createElement(Er,ie({},e,{ref:t,sideCar:ww}))});Ds.classNames=Er.classNames;var wr="Popover",[wd,_b]=js(wr,[sd]),on=sd(),[bw,et]=wd(wr),bd=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,c=on(t),d=i.useRef(null),[u,p]=i.useState(!1),[m,g]=hd({prop:r,defaultProp:o??!1,onChange:s,caller:wr});return l.jsxRuntimeExports.jsx(GE,{...c,children:l.jsxRuntimeExports.jsx(bw,{scope:t,contentId:kn(),triggerRef:d,open:m,onOpenChange:g,onOpenToggle:i.useCallback(()=>g(h=>!h),[g]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>p(!0),[]),onCustomAnchorRemove:i.useCallback(()=>p(!1),[]),modal:a,children:n})})};bd.displayName=wr;var Rd="PopoverAnchor",Rw=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(Rd,n),s=on(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:c}=o;return i.useEffect(()=>(a(),()=>c()),[a,c]),l.jsxRuntimeExports.jsx(md,{...s,...r,ref:t})});Rw.displayName=Rd;var Cd="PopoverTrigger",Sd=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(Cd,n),s=on(n),a=Pe(t,o.triggerRef),c=l.jsxRuntimeExports.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Nd(o.open),...r,ref:a,onClick:Ee(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:l.jsxRuntimeExports.jsx(md,{asChild:!0,...s,children:c})});Sd.displayName=Cd;var ks="PopoverPortal",[Cw,Sw]=wd(ks,{forceMount:void 0}),jd=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=et(ks,t);return l.jsxRuntimeExports.jsx(Cw,{scope:t,forceMount:n,children:l.jsxRuntimeExports.jsx(Bt,{present:n||s.open,children:l.jsxRuntimeExports.jsx(Os,{asChild:!0,container:o,children:r})})})};jd.displayName=ks;var It="PopoverContent",Pd=i.forwardRef((e,t)=>{const n=Sw(It,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=et(It,e.__scopePopover);return l.jsxRuntimeExports.jsx(Bt,{present:r||s.open,children:s.modal?l.jsxRuntimeExports.jsx(Pw,{...o,ref:t}):l.jsxRuntimeExports.jsx(Tw,{...o,ref:t})})});Pd.displayName=It;var jw=Ps("PopoverContent.RemoveScroll"),Pw=i.forwardRef((e,t)=>{const n=et(It,e.__scopePopover),r=i.useRef(null),o=Pe(t,r),s=i.useRef(!1);return i.useEffect(()=>{const a=r.current;if(a)return or(a)},[]),l.jsxRuntimeExports.jsx(Ds,{as:jw,allowPinchZoom:!0,children:l.jsxRuntimeExports.jsx(Td,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,a=>{var c;a.preventDefault(),s.current||(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0,u=c.button===2||d;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:Ee(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),Tw=i.forwardRef((e,t)=>{const n=et(It,e.__scopePopover),r=i.useRef(!1),o=i.useRef(!1);return l.jsxRuntimeExports.jsx(Td,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,c;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Td=i.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:p,...m}=e,g=et(It,n),h=on(n);return td(),l.jsxRuntimeExports.jsx(As,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsxRuntimeExports.jsx(Ts,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:p,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:l.jsxRuntimeExports.jsx(qE,{"data-state":Nd(g.open),role:"dialog",id:g.contentId,...h,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Ad="PopoverClose",Aw=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(Ad,n);return l.jsxRuntimeExports.jsx(he.button,{type:"button",...r,ref:t,onClick:Ee(e.onClick,()=>o.onOpenChange(!1))})});Aw.displayName=Ad;var Nw="PopoverArrow",$w=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=on(n);return l.jsxRuntimeExports.jsx(ZE,{...o,...r,ref:t})});$w.displayName=Nw;function Nd(e){return e?"open":"closed"}var Ow=bd,Dw=jd,$d=Pd,ea=1,kw=.9,Iw=.8,Mw=.17,qr=.1,Zr=.999,Lw=.9999,_w=.99,Fw=/[\\\/_+.#"@\[\(\{&]/,Ww=/[\\\/_+.#"@\[\(\{&]/g,Bw=/[\s-]/,Od=/[\s-]/g;function Do(e,t,n,r,o,s,a){if(s===t.length)return o===e.length?ea:_w;var c=`${o},${s}`;if(a[c]!==void 0)return a[c];for(var d=r.charAt(s),u=n.indexOf(d,o),p=0,m,g,h,w;u>=0;)m=Do(e,t,n,r,u+1,s+1,a),m>p&&(u===o?m*=ea:Fw.test(e.charAt(u-1))?(m*=Iw,h=e.slice(o,u-1).match(Ww),h&&o>0&&(m*=Math.pow(Zr,h.length))):Bw.test(e.charAt(u-1))?(m*=kw,w=e.slice(o,u-1).match(Od),w&&o>0&&(m*=Math.pow(Zr,w.length))):(m*=Mw,o>0&&(m*=Math.pow(Zr,u-o))),e.charAt(u)!==t.charAt(s)&&(m*=Lw)),(m<qr&&n.charAt(u-1)===r.charAt(s+1)||r.charAt(s+1)===r.charAt(s)&&n.charAt(u-1)!==r.charAt(s))&&(g=Do(e,t,n,r,u+1,s+2,a),g*qr>m&&(m=g*qr)),m>p&&(p=m),u=n.indexOf(d,u+1);return a[c]=p,p}function ta(e){return e.toLowerCase().replace(Od," ")}function Hw(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Do(e,t,ta(e),ta(t),0,0,{})}var br="Dialog",[Dd,Fb]=js(br),[Vw,Te]=Dd(br),kd=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,c=i.useRef(null),d=i.useRef(null),[u,p]=hd({prop:r,defaultProp:o??!1,onChange:s,caller:br});return l.jsxRuntimeExports.jsx(Vw,{scope:t,triggerRef:c,contentRef:d,contentId:kn(),titleId:kn(),descriptionId:kn(),open:u,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(m=>!m),[p]),modal:a,children:n})};kd.displayName=br;var Id="DialogTrigger",zw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Id,n),s=Pe(t,o.triggerRef);return l.jsxRuntimeExports.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ls(o.open),...r,ref:s,onClick:Ee(e.onClick,o.onOpenToggle)})});zw.displayName=Id;var Is="DialogPortal",[Uw,Md]=Dd(Is,{forceMount:void 0}),Ld=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Te(Is,t);return l.jsxRuntimeExports.jsx(Uw,{scope:t,forceMount:n,children:i.Children.map(r,a=>l.jsxRuntimeExports.jsx(Bt,{present:n||s.open,children:l.jsxRuntimeExports.jsx(Os,{asChild:!0,container:o,children:a})}))})};Ld.displayName=Is;var Yn="DialogOverlay",_d=i.forwardRef((e,t)=>{const n=Md(Yn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Te(Yn,e.__scopeDialog);return s.modal?l.jsxRuntimeExports.jsx(Bt,{present:r||s.open,children:l.jsxRuntimeExports.jsx(Kw,{...o,ref:t})}):null});_d.displayName=Yn;var Yw=Ps("DialogOverlay.RemoveScroll"),Kw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Yn,n);return l.jsxRuntimeExports.jsx(Ds,{as:Yw,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsxRuntimeExports.jsx(he.div,{"data-state":Ls(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),lt="DialogContent",Fd=i.forwardRef((e,t)=>{const n=Md(lt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Te(lt,e.__scopeDialog);return l.jsxRuntimeExports.jsx(Bt,{present:r||s.open,children:s.modal?l.jsxRuntimeExports.jsx(Xw,{...o,ref:t}):l.jsxRuntimeExports.jsx(Gw,{...o,ref:t})})});Fd.displayName=lt;var Xw=i.forwardRef((e,t)=>{const n=Te(lt,e.__scopeDialog),r=i.useRef(null),o=Pe(t,n.contentRef,r);return i.useEffect(()=>{const s=r.current;if(s)return or(s)},[]),l.jsxRuntimeExports.jsx(Wd,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0;(a.button===2||c)&&s.preventDefault()}),onFocusOutside:Ee(e.onFocusOutside,s=>s.preventDefault())})}),Gw=i.forwardRef((e,t)=>{const n=Te(lt,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return l.jsxRuntimeExports.jsx(Wd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,c;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Wd=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,c=Te(lt,n),d=i.useRef(null),u=Pe(t,d);return td(),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(As,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsxRuntimeExports.jsx(Ts,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Ls(c.open),...a,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(Jw,{titleId:c.titleId}),l.jsxRuntimeExports.jsx(tb,{contentRef:d,descriptionId:c.descriptionId})]})]})}),Ms="DialogTitle",qw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Ms,n);return l.jsxRuntimeExports.jsx(he.h2,{id:o.titleId,...r,ref:t})});qw.displayName=Ms;var Bd="DialogDescription",Zw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Bd,n);return l.jsxRuntimeExports.jsx(he.p,{id:o.descriptionId,...r,ref:t})});Zw.displayName=Bd;var Hd="DialogClose",Qw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Hd,n);return l.jsxRuntimeExports.jsx(he.button,{type:"button",...r,ref:t,onClick:Ee(e.onClick,()=>o.onOpenChange(!1))})});Qw.displayName=Hd;function Ls(e){return e?"open":"closed"}var Vd="DialogTitleWarning",[Wb,zd]=mE(Vd,{contentName:lt,titleName:Ms,docsSlug:"dialog"}),Jw=({titleId:e})=>{const t=zd(Vd),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
715
+ `)},gw=0,Et=[];function xw(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(gw++)[0],s=i.useState(zc)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=Bo([e.lockRef.current],(e.shards||[]).map(Ji),!0).filter(Boolean);return f.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(f,v){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!a.current.allowPinchZoom;var y=Rn(f),x=n.current,b="deltaX"in f?f.deltaX:x[0]-y[0],R="deltaY"in f?f.deltaY:x[1]-y[1],C,S=f.target,w=Math.abs(b)>Math.abs(R)?"h":"v";if("touches"in f&&w==="h"&&S.type==="range")return!1;var P=Zi(w,S);if(!P)return!0;if(P?C=w:(C=w==="v"?"h":"v",P=Zi(w,S)),!P)return!1;if(!r.current&&"changedTouches"in f&&(b||R)&&(r.current=C),!C)return!0;var N=r.current||C;return mw(N,v,f,N==="h"?b:R,!0)},[]),d=i.useCallback(function(f){var v=f;if(!(!Et.length||Et[Et.length-1]!==s)){var y="deltaY"in v?Qi(v):Rn(v),x=t.current.filter(function(C){return C.name===v.type&&(C.target===v.target||v.target===C.shadowParent)&&hw(C.delta,y)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}if(!x){var b=(a.current.shards||[]).map(Ji).filter(Boolean).filter(function(C){return C.contains(v.target)}),R=b.length>0?c(v,b[0]):!a.current.noIsolation;R&&v.cancelable&&v.preventDefault()}}},[]),u=i.useCallback(function(f,v,y,x){var b={name:f,delta:v,target:y,should:x,shadowParent:yw(y)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(R){return R!==b})},1)},[]),p=i.useCallback(function(f){n.current=Rn(f),r.current=void 0},[]),m=i.useCallback(function(f){u(f.type,Qi(f),f.target,c(f,e.lockRef.current))},[]),g=i.useCallback(function(f){u(f.type,Rn(f),f.target,c(f,e.lockRef.current))},[]);i.useEffect(function(){return Et.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:g}),document.addEventListener("wheel",d,yt),document.addEventListener("touchmove",d,yt),document.addEventListener("touchstart",p,yt),function(){Et=Et.filter(function(f){return f!==s}),document.removeEventListener("wheel",d,yt),document.removeEventListener("touchmove",d,yt),document.removeEventListener("touchstart",p,yt)}},[]);var h=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(s,{styles:vw(o)}):null,h?i.createElement(Uc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function yw(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ew=aw(gd,xw);var Ds=i.forwardRef(function(e,t){return i.createElement(Er,ie({},e,{ref:t,sideCar:Ew}))});Ds.classNames=Er.classNames;var wr="Popover",[wd,Mb]=js(wr,[sd]),on=sd(),[ww,et]=wd(wr),bd=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,c=on(t),d=i.useRef(null),[u,p]=i.useState(!1),[m,g]=hd({prop:r,defaultProp:o??!1,onChange:s,caller:wr});return l.jsxRuntimeExports.jsx(XE,{...c,children:l.jsxRuntimeExports.jsx(ww,{scope:t,contentId:kn(),triggerRef:d,open:m,onOpenChange:g,onOpenToggle:i.useCallback(()=>g(h=>!h),[g]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>p(!0),[]),onCustomAnchorRemove:i.useCallback(()=>p(!1),[]),modal:a,children:n})})};bd.displayName=wr;var Rd="PopoverAnchor",bw=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(Rd,n),s=on(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:c}=o;return i.useEffect(()=>(a(),()=>c()),[a,c]),l.jsxRuntimeExports.jsx(md,{...s,...r,ref:t})});bw.displayName=Rd;var Cd="PopoverTrigger",Sd=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(Cd,n),s=on(n),a=Pe(t,o.triggerRef),c=l.jsxRuntimeExports.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Nd(o.open),...r,ref:a,onClick:Ee(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:l.jsxRuntimeExports.jsx(md,{asChild:!0,...s,children:c})});Sd.displayName=Cd;var ks="PopoverPortal",[Rw,Cw]=wd(ks,{forceMount:void 0}),jd=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=et(ks,t);return l.jsxRuntimeExports.jsx(Rw,{scope:t,forceMount:n,children:l.jsxRuntimeExports.jsx(Bt,{present:n||s.open,children:l.jsxRuntimeExports.jsx(Os,{asChild:!0,container:o,children:r})})})};jd.displayName=ks;var It="PopoverContent",Pd=i.forwardRef((e,t)=>{const n=Cw(It,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=et(It,e.__scopePopover);return l.jsxRuntimeExports.jsx(Bt,{present:r||s.open,children:s.modal?l.jsxRuntimeExports.jsx(jw,{...o,ref:t}):l.jsxRuntimeExports.jsx(Pw,{...o,ref:t})})});Pd.displayName=It;var Sw=Ps("PopoverContent.RemoveScroll"),jw=i.forwardRef((e,t)=>{const n=et(It,e.__scopePopover),r=i.useRef(null),o=Pe(t,r),s=i.useRef(!1);return i.useEffect(()=>{const a=r.current;if(a)return or(a)},[]),l.jsxRuntimeExports.jsx(Ds,{as:Sw,allowPinchZoom:!0,children:l.jsxRuntimeExports.jsx(Td,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,a=>{var c;a.preventDefault(),s.current||(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0,u=c.button===2||d;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:Ee(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),Pw=i.forwardRef((e,t)=>{const n=et(It,e.__scopePopover),r=i.useRef(!1),o=i.useRef(!1);return l.jsxRuntimeExports.jsx(Td,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,c;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Td=i.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:p,...m}=e,g=et(It,n),h=on(n);return td(),l.jsxRuntimeExports.jsx(As,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsxRuntimeExports.jsx(Ts,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:p,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:l.jsxRuntimeExports.jsx(GE,{"data-state":Nd(g.open),role:"dialog",id:g.contentId,...h,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Ad="PopoverClose",Tw=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(Ad,n);return l.jsxRuntimeExports.jsx(he.button,{type:"button",...r,ref:t,onClick:Ee(e.onClick,()=>o.onOpenChange(!1))})});Tw.displayName=Ad;var Aw="PopoverArrow",Nw=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=on(n);return l.jsxRuntimeExports.jsx(qE,{...o,...r,ref:t})});Nw.displayName=Aw;function Nd(e){return e?"open":"closed"}var $w=bd,Ow=jd,$d=Pd,ea=1,Dw=.9,kw=.8,Iw=.17,qr=.1,Zr=.999,Mw=.9999,Lw=.99,_w=/[\\\/_+.#"@\[\(\{&]/,Fw=/[\\\/_+.#"@\[\(\{&]/g,Ww=/[\s-]/,Od=/[\s-]/g;function Do(e,t,n,r,o,s,a){if(s===t.length)return o===e.length?ea:Lw;var c=`${o},${s}`;if(a[c]!==void 0)return a[c];for(var d=r.charAt(s),u=n.indexOf(d,o),p=0,m,g,h,E;u>=0;)m=Do(e,t,n,r,u+1,s+1,a),m>p&&(u===o?m*=ea:_w.test(e.charAt(u-1))?(m*=kw,h=e.slice(o,u-1).match(Fw),h&&o>0&&(m*=Math.pow(Zr,h.length))):Ww.test(e.charAt(u-1))?(m*=Dw,E=e.slice(o,u-1).match(Od),E&&o>0&&(m*=Math.pow(Zr,E.length))):(m*=Iw,o>0&&(m*=Math.pow(Zr,u-o))),e.charAt(u)!==t.charAt(s)&&(m*=Mw)),(m<qr&&n.charAt(u-1)===r.charAt(s+1)||r.charAt(s+1)===r.charAt(s)&&n.charAt(u-1)!==r.charAt(s))&&(g=Do(e,t,n,r,u+1,s+2,a),g*qr>m&&(m=g*qr)),m>p&&(p=m),u=n.indexOf(d,u+1);return a[c]=p,p}function ta(e){return e.toLowerCase().replace(Od," ")}function Bw(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Do(e,t,ta(e),ta(t),0,0,{})}var br="Dialog",[Dd,Lb]=js(br),[Hw,Te]=Dd(br),kd=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,c=i.useRef(null),d=i.useRef(null),[u,p]=hd({prop:r,defaultProp:o??!1,onChange:s,caller:br});return l.jsxRuntimeExports.jsx(Hw,{scope:t,triggerRef:c,contentRef:d,contentId:kn(),titleId:kn(),descriptionId:kn(),open:u,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(m=>!m),[p]),modal:a,children:n})};kd.displayName=br;var Id="DialogTrigger",Vw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Id,n),s=Pe(t,o.triggerRef);return l.jsxRuntimeExports.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ls(o.open),...r,ref:s,onClick:Ee(e.onClick,o.onOpenToggle)})});Vw.displayName=Id;var Is="DialogPortal",[zw,Md]=Dd(Is,{forceMount:void 0}),Ld=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Te(Is,t);return l.jsxRuntimeExports.jsx(zw,{scope:t,forceMount:n,children:i.Children.map(r,a=>l.jsxRuntimeExports.jsx(Bt,{present:n||s.open,children:l.jsxRuntimeExports.jsx(Os,{asChild:!0,container:o,children:a})}))})};Ld.displayName=Is;var Yn="DialogOverlay",_d=i.forwardRef((e,t)=>{const n=Md(Yn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Te(Yn,e.__scopeDialog);return s.modal?l.jsxRuntimeExports.jsx(Bt,{present:r||s.open,children:l.jsxRuntimeExports.jsx(Yw,{...o,ref:t})}):null});_d.displayName=Yn;var Uw=Ps("DialogOverlay.RemoveScroll"),Yw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Yn,n);return l.jsxRuntimeExports.jsx(Ds,{as:Uw,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsxRuntimeExports.jsx(he.div,{"data-state":Ls(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),lt="DialogContent",Fd=i.forwardRef((e,t)=>{const n=Md(lt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Te(lt,e.__scopeDialog);return l.jsxRuntimeExports.jsx(Bt,{present:r||s.open,children:s.modal?l.jsxRuntimeExports.jsx(Kw,{...o,ref:t}):l.jsxRuntimeExports.jsx(Xw,{...o,ref:t})})});Fd.displayName=lt;var Kw=i.forwardRef((e,t)=>{const n=Te(lt,e.__scopeDialog),r=i.useRef(null),o=Pe(t,n.contentRef,r);return i.useEffect(()=>{const s=r.current;if(s)return or(s)},[]),l.jsxRuntimeExports.jsx(Wd,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0;(a.button===2||c)&&s.preventDefault()}),onFocusOutside:Ee(e.onFocusOutside,s=>s.preventDefault())})}),Xw=i.forwardRef((e,t)=>{const n=Te(lt,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return l.jsxRuntimeExports.jsx(Wd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,c;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Wd=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,c=Te(lt,n),d=i.useRef(null),u=Pe(t,d);return td(),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(As,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsxRuntimeExports.jsx(Ts,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Ls(c.open),...a,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(Qw,{titleId:c.titleId}),l.jsxRuntimeExports.jsx(eb,{contentRef:d,descriptionId:c.descriptionId})]})]})}),Ms="DialogTitle",Gw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Ms,n);return l.jsxRuntimeExports.jsx(he.h2,{id:o.titleId,...r,ref:t})});Gw.displayName=Ms;var Bd="DialogDescription",qw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Bd,n);return l.jsxRuntimeExports.jsx(he.p,{id:o.descriptionId,...r,ref:t})});qw.displayName=Bd;var Hd="DialogClose",Zw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Hd,n);return l.jsxRuntimeExports.jsx(he.button,{type:"button",...r,ref:t,onClick:Ee(e.onClick,()=>o.onOpenChange(!1))})});Zw.displayName=Hd;function Ls(e){return e?"open":"closed"}var Vd="DialogTitleWarning",[_b,zd]=pE(Vd,{contentName:lt,titleName:Ms,docsSlug:"dialog"}),Qw=({titleId:e})=>{const t=zd(Vd),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
716
716
 
717
717
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
718
718
 
719
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},eb="DialogDescriptionWarning",tb=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${zd(eb).contentName}}.`;return i.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},nb=kd,rb=Ld,ob=_d,sb=Fd,Vt='[cmdk-group=""]',Qr='[cmdk-group-items=""]',ib='[cmdk-group-heading=""]',Ud='[cmdk-item=""]',na=`${Ud}:not([aria-disabled="true"])`,ko="cmdk-item-select",wt="data-value",ab=(e,t,n)=>Hw(e,t,n),Yd=i.createContext(void 0),sn=()=>i.useContext(Yd),Kd=i.createContext(void 0),_s=()=>i.useContext(Kd),Xd=i.createContext(void 0),Gd=i.forwardRef((e,t)=>{let n=bt(()=>{var j,D;return{search:"",value:(D=(j=e.value)!=null?j:e.defaultValue)!=null?D:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=bt(()=>new Set),o=bt(()=>new Map),s=bt(()=>new Map),a=bt(()=>new Set),c=qd(e),{label:d,children:u,value:p,onValueChange:m,filter:g,shouldFilter:h,loop:w,disablePointerSelection:f=!1,vimBindings:v=!0,...x}=e,y=xe(),E=xe(),R=xe(),C=i.useRef(null),S=xb();ut(()=>{if(p!==void 0){let j=p.trim();n.current.value=j,b.emit()}},[p]),ut(()=>{S(6,W)},[]);let b=i.useMemo(()=>({subscribe:j=>(a.current.add(j),()=>a.current.delete(j)),snapshot:()=>n.current,setState:(j,D,_)=>{var O,z,A,F;if(!Object.is(n.current[j],D)){if(n.current[j]=D,j==="search")Y(),k(),S(1,U);else if(j==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let V=document.getElementById(R);V?V.focus():(O=document.getElementById(y))==null||O.focus()}if(S(7,()=>{var V;n.current.selectedItemId=(V=T())==null?void 0:V.id,b.emit()}),_||S(5,W),((z=c.current)==null?void 0:z.value)!==void 0){let V=D??"";(F=(A=c.current).onValueChange)==null||F.call(A,V);return}}b.emit()}},emit:()=>{a.current.forEach(j=>j())}}),[]),P=i.useMemo(()=>({value:(j,D,_)=>{var O;D!==((O=s.current.get(j))==null?void 0:O.value)&&(s.current.set(j,{value:D,keywords:_}),n.current.filtered.items.set(j,N(D,_)),S(2,()=>{k(),b.emit()}))},item:(j,D)=>(r.current.add(j),D&&(o.current.has(D)?o.current.get(D).add(j):o.current.set(D,new Set([j]))),S(3,()=>{Y(),k(),n.current.value||U(),b.emit()}),()=>{s.current.delete(j),r.current.delete(j),n.current.filtered.items.delete(j);let _=T();S(4,()=>{Y(),(_==null?void 0:_.getAttribute("id"))===j&&U(),b.emit()})}),group:j=>(o.current.has(j)||o.current.set(j,new Set),()=>{s.current.delete(j),o.current.delete(j)}),filter:()=>c.current.shouldFilter,label:d||e["aria-label"],getDisablePointerSelection:()=>c.current.disablePointerSelection,listId:y,inputId:R,labelId:E,listInnerRef:C}),[]);function N(j,D){var _,O;let z=(O=(_=c.current)==null?void 0:_.filter)!=null?O:ab;return j?z(j,n.current.search,D):0}function k(){if(!n.current.search||c.current.shouldFilter===!1)return;let j=n.current.filtered.items,D=[];n.current.filtered.groups.forEach(O=>{let z=o.current.get(O),A=0;z.forEach(F=>{let V=j.get(F);A=Math.max(V,A)}),D.push([O,A])});let _=C.current;B().sort((O,z)=>{var A,F;let V=O.getAttribute("id"),G=z.getAttribute("id");return((A=j.get(G))!=null?A:0)-((F=j.get(V))!=null?F:0)}).forEach(O=>{let z=O.closest(Qr);z?z.appendChild(O.parentElement===z?O:O.closest(`${Qr} > *`)):_.appendChild(O.parentElement===_?O:O.closest(`${Qr} > *`))}),D.sort((O,z)=>z[1]-O[1]).forEach(O=>{var z;let A=(z=C.current)==null?void 0:z.querySelector(`${Vt}[${wt}="${encodeURIComponent(O[0])}"]`);A==null||A.parentElement.appendChild(A)})}function U(){let j=B().find(_=>_.getAttribute("aria-disabled")!=="true"),D=j==null?void 0:j.getAttribute(wt);b.setState("value",D||void 0)}function Y(){var j,D,_,O;if(!n.current.search||c.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let z=0;for(let A of r.current){let F=(D=(j=s.current.get(A))==null?void 0:j.value)!=null?D:"",V=(O=(_=s.current.get(A))==null?void 0:_.keywords)!=null?O:[],G=N(F,V);n.current.filtered.items.set(A,G),G>0&&z++}for(let[A,F]of o.current)for(let V of F)if(n.current.filtered.items.get(V)>0){n.current.filtered.groups.add(A);break}n.current.filtered.count=z}function W(){var j,D,_;let O=T();O&&(((j=O.parentElement)==null?void 0:j.firstChild)===O&&((_=(D=O.closest(Vt))==null?void 0:D.querySelector(ib))==null||_.scrollIntoView({block:"nearest"})),O.scrollIntoView({block:"nearest"}))}function T(){var j;return(j=C.current)==null?void 0:j.querySelector(`${Ud}[aria-selected="true"]`)}function B(){var j;return Array.from(((j=C.current)==null?void 0:j.querySelectorAll(na))||[])}function M(j){let D=B()[j];D&&b.setState("value",D.getAttribute(wt))}function L(j){var D;let _=T(),O=B(),z=O.findIndex(F=>F===_),A=O[z+j];(D=c.current)!=null&&D.loop&&(A=z+j<0?O[O.length-1]:z+j===O.length?O[0]:O[z+j]),A&&b.setState("value",A.getAttribute(wt))}function $(j){let D=T(),_=D==null?void 0:D.closest(Vt),O;for(;_&&!O;)_=j>0?vb(_,Vt):gb(_,Vt),O=_==null?void 0:_.querySelector(na);O?b.setState("value",O.getAttribute(wt)):L(j)}let H=()=>M(B().length-1),te=j=>{j.preventDefault(),j.metaKey?H():j.altKey?$(1):L(1)},J=j=>{j.preventDefault(),j.metaKey?M(0):j.altKey?$(-1):L(-1)};return i.createElement(fe.div,{ref:t,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:j=>{var D;(D=x.onKeyDown)==null||D.call(x,j);let _=j.nativeEvent.isComposing||j.keyCode===229;if(!(j.defaultPrevented||_))switch(j.key){case"n":case"j":{v&&j.ctrlKey&&te(j);break}case"ArrowDown":{te(j);break}case"p":case"k":{v&&j.ctrlKey&&J(j);break}case"ArrowUp":{J(j);break}case"Home":{j.preventDefault(),M(0);break}case"End":{j.preventDefault(),H();break}case"Enter":{j.preventDefault();let O=T();if(O){let z=new Event(ko);O.dispatchEvent(z)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:P.inputId,id:P.labelId,style:Eb},d),Rr(e,j=>i.createElement(Kd.Provider,{value:b},i.createElement(Yd.Provider,{value:P},j))))}),cb=i.forwardRef((e,t)=>{var n,r;let o=xe(),s=i.useRef(null),a=i.useContext(Xd),c=sn(),d=qd(e),u=(r=(n=d.current)==null?void 0:n.forceMount)!=null?r:a==null?void 0:a.forceMount;ut(()=>{if(!u)return c.item(o,a==null?void 0:a.id)},[u]);let p=Zd(o,s,[e.value,e.children,s],e.keywords),m=_s(),g=qe(S=>S.value&&S.value===p.current),h=qe(S=>u||c.filter()===!1?!0:S.search?S.filtered.items.get(o)>0:!0);i.useEffect(()=>{let S=s.current;if(!(!S||e.disabled))return S.addEventListener(ko,w),()=>S.removeEventListener(ko,w)},[h,e.onSelect,e.disabled]);function w(){var S,b;f(),(b=(S=d.current).onSelect)==null||b.call(S,p.current)}function f(){m.setState("value",p.current,!0)}if(!h)return null;let{disabled:v,value:x,onSelect:y,forceMount:E,keywords:R,...C}=e;return i.createElement(fe.div,{ref:Ue(s,t),...C,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!g,"data-disabled":!!v,"data-selected":!!g,onPointerMove:v||c.getDisablePointerSelection()?void 0:f,onClick:v?void 0:w},e.children)}),lb=i.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...s}=e,a=xe(),c=i.useRef(null),d=i.useRef(null),u=xe(),p=sn(),m=qe(h=>o||p.filter()===!1?!0:h.search?h.filtered.groups.has(a):!0);ut(()=>p.group(a),[]),Zd(a,c,[e.value,e.heading,d]);let g=i.useMemo(()=>({id:a,forceMount:o}),[o]);return i.createElement(fe.div,{ref:Ue(c,t),...s,"cmdk-group":"",role:"presentation",hidden:m?void 0:!0},n&&i.createElement("div",{ref:d,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),Rr(e,h=>i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},i.createElement(Xd.Provider,{value:g},h))))}),ub=i.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=i.useRef(null),s=qe(a=>!a.search);return!n&&!s?null:i.createElement(fe.div,{ref:Ue(o,t),...r,"cmdk-separator":"",role:"separator"})}),db=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,s=_s(),a=qe(u=>u.search),c=qe(u=>u.selectedItemId),d=sn();return i.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),i.createElement(fe.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":d.listId,"aria-labelledby":d.labelId,"aria-activedescendant":c,id:d.inputId,type:"text",value:o?e.value:a,onChange:u=>{o||s.setState("search",u.target.value),n==null||n(u.target.value)}})}),fb=i.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,s=i.useRef(null),a=i.useRef(null),c=qe(u=>u.selectedItemId),d=sn();return i.useEffect(()=>{if(a.current&&s.current){let u=a.current,p=s.current,m,g=new ResizeObserver(()=>{m=requestAnimationFrame(()=>{let h=u.offsetHeight;p.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return g.observe(u),()=>{cancelAnimationFrame(m),g.unobserve(u)}}},[]),i.createElement(fe.div,{ref:Ue(s,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":c,"aria-label":r,id:d.listId},Rr(e,u=>i.createElement("div",{ref:Ue(a,d.listInnerRef),"cmdk-list-sizer":""},u)))}),pb=i.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:s,container:a,...c}=e;return i.createElement(nb,{open:n,onOpenChange:r},i.createElement(rb,{container:a},i.createElement(ob,{"cmdk-overlay":"",className:o}),i.createElement(sb,{"aria-label":e.label,"cmdk-dialog":"",className:s},i.createElement(Gd,{ref:t,...c}))))}),mb=i.forwardRef((e,t)=>qe(n=>n.filtered.count===0)?i.createElement(fe.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),hb=i.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...s}=e;return i.createElement(fe.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Rr(e,a=>i.createElement("div",{"aria-hidden":!0},a)))}),ve=Object.assign(Gd,{List:fb,Item:cb,Input:db,Group:lb,Separator:ub,Dialog:pb,Empty:mb,Loading:hb});function vb(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function gb(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function qd(e){let t=i.useRef(e);return ut(()=>{t.current=e}),t}var ut=typeof window>"u"?i.useEffect:i.useLayoutEffect;function bt(e){let t=i.useRef();return t.current===void 0&&(t.current=e()),t}function qe(e){let t=_s(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function Zd(e,t,n,r=[]){let o=i.useRef(),s=sn();return ut(()=>{var a;let c=(()=>{var u;for(let p of n){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(u=p.current.textContent)==null?void 0:u.trim():o.current}})(),d=r.map(u=>u.trim());s.value(e,c,d),(a=t.current)==null||a.setAttribute(wt,c),o.current=c}),o}var xb=()=>{let[e,t]=i.useState(),n=bt(()=>new Map);return ut(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function yb(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Rr({asChild:e,children:t},n){return e&&i.isValidElement(t)?i.cloneElement(yb(t),{ref:t.ref},n(t.props.children)):n(t)}var Eb={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Qd=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ve,{ref:n,className:l.cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-white text-neutral-950 dark:bg-neutral-950 dark:text-neutral-50",e),...t}));Qd.displayName=ve.displayName;const wb=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:l.jsxRuntimeExports.jsx(ve.Input,{ref:n,className:l.cn("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-neutral-500 disabled:cursor-not-allowed disabled:opacity-50 dark:placeholder:text-neutral-400",e),...t})}));wb.displayName=ve.Input.displayName;const Io=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ve.List,{ref:n,className:l.cn("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Io.displayName=ve.List.displayName;const bb=i.forwardRef((e,t)=>l.jsxRuntimeExports.jsx(ve.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));bb.displayName=ve.Empty.displayName;const Jd=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ve.Group,{ref:n,className:l.cn("overflow-hidden p-1 text-neutral-950 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-neutral-500 dark:text-neutral-50 dark:[&_[cmdk-group-heading]]:text-neutral-400",e),...t}));Jd.displayName=ve.Group.displayName;const Rb=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ve.Separator,{ref:n,className:l.cn("-mx-1 h-px bg-neutral-200 dark:bg-neutral-800",e),...t}));Rb.displayName=ve.Separator.displayName;const ef=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ve.Item,{ref:n,className:l.cn("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-neutral-100 data-[selected=true]:text-neutral-900 data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-6 [&_svg]:shrink-0 dark:data-[selected='true']:bg-neutral-800 dark:data-[selected=true]:text-neutral-50",e),...t}));ef.displayName=ve.Item.displayName;const Cb=Ow,tf=i.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>l.jsxRuntimeExports.jsx(Dw,{children:l.jsxRuntimeExports.jsx($d,{ref:o,align:t,sideOffset:n,className:l.cn("z-50 w-72 rounded-md border border-neutral-200 bg-white p-4 text-neutral-950 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 origin-[--radix-popover-content-transform-origin] dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...r})}));tf.displayName=$d.displayName;const Sb=I(tf)`
719
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Jw="DialogDescriptionWarning",eb=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${zd(Jw).contentName}}.`;return i.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},tb=kd,nb=Ld,rb=_d,ob=Fd,Vt='[cmdk-group=""]',Qr='[cmdk-group-items=""]',sb='[cmdk-group-heading=""]',Ud='[cmdk-item=""]',na=`${Ud}:not([aria-disabled="true"])`,ko="cmdk-item-select",wt="data-value",ib=(e,t,n)=>Bw(e,t,n),Yd=i.createContext(void 0),sn=()=>i.useContext(Yd),Kd=i.createContext(void 0),_s=()=>i.useContext(Kd),Xd=i.createContext(void 0),Gd=i.forwardRef((e,t)=>{let n=bt(()=>{var j,D;return{search:"",value:(D=(j=e.value)!=null?j:e.defaultValue)!=null?D:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=bt(()=>new Set),o=bt(()=>new Map),s=bt(()=>new Map),a=bt(()=>new Set),c=qd(e),{label:d,children:u,value:p,onValueChange:m,filter:g,shouldFilter:h,loop:E,disablePointerSelection:f=!1,vimBindings:v=!0,...y}=e,x=xe(),b=xe(),R=xe(),C=i.useRef(null),S=gb();ut(()=>{if(p!==void 0){let j=p.trim();n.current.value=j,w.emit()}},[p]),ut(()=>{S(6,W)},[]);let w=i.useMemo(()=>({subscribe:j=>(a.current.add(j),()=>a.current.delete(j)),snapshot:()=>n.current,setState:(j,D,_)=>{var O,z,A,F;if(!Object.is(n.current[j],D)){if(n.current[j]=D,j==="search")Y(),k(),S(1,U);else if(j==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let V=document.getElementById(R);V?V.focus():(O=document.getElementById(x))==null||O.focus()}if(S(7,()=>{var V;n.current.selectedItemId=(V=T())==null?void 0:V.id,w.emit()}),_||S(5,W),((z=c.current)==null?void 0:z.value)!==void 0){let V=D??"";(F=(A=c.current).onValueChange)==null||F.call(A,V);return}}w.emit()}},emit:()=>{a.current.forEach(j=>j())}}),[]),P=i.useMemo(()=>({value:(j,D,_)=>{var O;D!==((O=s.current.get(j))==null?void 0:O.value)&&(s.current.set(j,{value:D,keywords:_}),n.current.filtered.items.set(j,N(D,_)),S(2,()=>{k(),w.emit()}))},item:(j,D)=>(r.current.add(j),D&&(o.current.has(D)?o.current.get(D).add(j):o.current.set(D,new Set([j]))),S(3,()=>{Y(),k(),n.current.value||U(),w.emit()}),()=>{s.current.delete(j),r.current.delete(j),n.current.filtered.items.delete(j);let _=T();S(4,()=>{Y(),(_==null?void 0:_.getAttribute("id"))===j&&U(),w.emit()})}),group:j=>(o.current.has(j)||o.current.set(j,new Set),()=>{s.current.delete(j),o.current.delete(j)}),filter:()=>c.current.shouldFilter,label:d||e["aria-label"],getDisablePointerSelection:()=>c.current.disablePointerSelection,listId:x,inputId:R,labelId:b,listInnerRef:C}),[]);function N(j,D){var _,O;let z=(O=(_=c.current)==null?void 0:_.filter)!=null?O:ib;return j?z(j,n.current.search,D):0}function k(){if(!n.current.search||c.current.shouldFilter===!1)return;let j=n.current.filtered.items,D=[];n.current.filtered.groups.forEach(O=>{let z=o.current.get(O),A=0;z.forEach(F=>{let V=j.get(F);A=Math.max(V,A)}),D.push([O,A])});let _=C.current;B().sort((O,z)=>{var A,F;let V=O.getAttribute("id"),G=z.getAttribute("id");return((A=j.get(G))!=null?A:0)-((F=j.get(V))!=null?F:0)}).forEach(O=>{let z=O.closest(Qr);z?z.appendChild(O.parentElement===z?O:O.closest(`${Qr} > *`)):_.appendChild(O.parentElement===_?O:O.closest(`${Qr} > *`))}),D.sort((O,z)=>z[1]-O[1]).forEach(O=>{var z;let A=(z=C.current)==null?void 0:z.querySelector(`${Vt}[${wt}="${encodeURIComponent(O[0])}"]`);A==null||A.parentElement.appendChild(A)})}function U(){let j=B().find(_=>_.getAttribute("aria-disabled")!=="true"),D=j==null?void 0:j.getAttribute(wt);w.setState("value",D||void 0)}function Y(){var j,D,_,O;if(!n.current.search||c.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let z=0;for(let A of r.current){let F=(D=(j=s.current.get(A))==null?void 0:j.value)!=null?D:"",V=(O=(_=s.current.get(A))==null?void 0:_.keywords)!=null?O:[],G=N(F,V);n.current.filtered.items.set(A,G),G>0&&z++}for(let[A,F]of o.current)for(let V of F)if(n.current.filtered.items.get(V)>0){n.current.filtered.groups.add(A);break}n.current.filtered.count=z}function W(){var j,D,_;let O=T();O&&(((j=O.parentElement)==null?void 0:j.firstChild)===O&&((_=(D=O.closest(Vt))==null?void 0:D.querySelector(sb))==null||_.scrollIntoView({block:"nearest"})),O.scrollIntoView({block:"nearest"}))}function T(){var j;return(j=C.current)==null?void 0:j.querySelector(`${Ud}[aria-selected="true"]`)}function B(){var j;return Array.from(((j=C.current)==null?void 0:j.querySelectorAll(na))||[])}function M(j){let D=B()[j];D&&w.setState("value",D.getAttribute(wt))}function L(j){var D;let _=T(),O=B(),z=O.findIndex(F=>F===_),A=O[z+j];(D=c.current)!=null&&D.loop&&(A=z+j<0?O[O.length-1]:z+j===O.length?O[0]:O[z+j]),A&&w.setState("value",A.getAttribute(wt))}function $(j){let D=T(),_=D==null?void 0:D.closest(Vt),O;for(;_&&!O;)_=j>0?hb(_,Vt):vb(_,Vt),O=_==null?void 0:_.querySelector(na);O?w.setState("value",O.getAttribute(wt)):L(j)}let H=()=>M(B().length-1),te=j=>{j.preventDefault(),j.metaKey?H():j.altKey?$(1):L(1)},J=j=>{j.preventDefault(),j.metaKey?M(0):j.altKey?$(-1):L(-1)};return i.createElement(fe.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:j=>{var D;(D=y.onKeyDown)==null||D.call(y,j);let _=j.nativeEvent.isComposing||j.keyCode===229;if(!(j.defaultPrevented||_))switch(j.key){case"n":case"j":{v&&j.ctrlKey&&te(j);break}case"ArrowDown":{te(j);break}case"p":case"k":{v&&j.ctrlKey&&J(j);break}case"ArrowUp":{J(j);break}case"Home":{j.preventDefault(),M(0);break}case"End":{j.preventDefault(),H();break}case"Enter":{j.preventDefault();let O=T();if(O){let z=new Event(ko);O.dispatchEvent(z)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:P.inputId,id:P.labelId,style:yb},d),Rr(e,j=>i.createElement(Kd.Provider,{value:w},i.createElement(Yd.Provider,{value:P},j))))}),ab=i.forwardRef((e,t)=>{var n,r;let o=xe(),s=i.useRef(null),a=i.useContext(Xd),c=sn(),d=qd(e),u=(r=(n=d.current)==null?void 0:n.forceMount)!=null?r:a==null?void 0:a.forceMount;ut(()=>{if(!u)return c.item(o,a==null?void 0:a.id)},[u]);let p=Zd(o,s,[e.value,e.children,s],e.keywords),m=_s(),g=qe(S=>S.value&&S.value===p.current),h=qe(S=>u||c.filter()===!1?!0:S.search?S.filtered.items.get(o)>0:!0);i.useEffect(()=>{let S=s.current;if(!(!S||e.disabled))return S.addEventListener(ko,E),()=>S.removeEventListener(ko,E)},[h,e.onSelect,e.disabled]);function E(){var S,w;f(),(w=(S=d.current).onSelect)==null||w.call(S,p.current)}function f(){m.setState("value",p.current,!0)}if(!h)return null;let{disabled:v,value:y,onSelect:x,forceMount:b,keywords:R,...C}=e;return i.createElement(fe.div,{ref:Ue(s,t),...C,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!g,"data-disabled":!!v,"data-selected":!!g,onPointerMove:v||c.getDisablePointerSelection()?void 0:f,onClick:v?void 0:E},e.children)}),cb=i.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...s}=e,a=xe(),c=i.useRef(null),d=i.useRef(null),u=xe(),p=sn(),m=qe(h=>o||p.filter()===!1?!0:h.search?h.filtered.groups.has(a):!0);ut(()=>p.group(a),[]),Zd(a,c,[e.value,e.heading,d]);let g=i.useMemo(()=>({id:a,forceMount:o}),[o]);return i.createElement(fe.div,{ref:Ue(c,t),...s,"cmdk-group":"",role:"presentation",hidden:m?void 0:!0},n&&i.createElement("div",{ref:d,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),Rr(e,h=>i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},i.createElement(Xd.Provider,{value:g},h))))}),lb=i.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=i.useRef(null),s=qe(a=>!a.search);return!n&&!s?null:i.createElement(fe.div,{ref:Ue(o,t),...r,"cmdk-separator":"",role:"separator"})}),ub=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,s=_s(),a=qe(u=>u.search),c=qe(u=>u.selectedItemId),d=sn();return i.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),i.createElement(fe.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":d.listId,"aria-labelledby":d.labelId,"aria-activedescendant":c,id:d.inputId,type:"text",value:o?e.value:a,onChange:u=>{o||s.setState("search",u.target.value),n==null||n(u.target.value)}})}),db=i.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,s=i.useRef(null),a=i.useRef(null),c=qe(u=>u.selectedItemId),d=sn();return i.useEffect(()=>{if(a.current&&s.current){let u=a.current,p=s.current,m,g=new ResizeObserver(()=>{m=requestAnimationFrame(()=>{let h=u.offsetHeight;p.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return g.observe(u),()=>{cancelAnimationFrame(m),g.unobserve(u)}}},[]),i.createElement(fe.div,{ref:Ue(s,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":c,"aria-label":r,id:d.listId},Rr(e,u=>i.createElement("div",{ref:Ue(a,d.listInnerRef),"cmdk-list-sizer":""},u)))}),fb=i.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:s,container:a,...c}=e;return i.createElement(tb,{open:n,onOpenChange:r},i.createElement(nb,{container:a},i.createElement(rb,{"cmdk-overlay":"",className:o}),i.createElement(ob,{"aria-label":e.label,"cmdk-dialog":"",className:s},i.createElement(Gd,{ref:t,...c}))))}),pb=i.forwardRef((e,t)=>qe(n=>n.filtered.count===0)?i.createElement(fe.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),mb=i.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...s}=e;return i.createElement(fe.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Rr(e,a=>i.createElement("div",{"aria-hidden":!0},a)))}),ve=Object.assign(Gd,{List:db,Item:ab,Input:ub,Group:cb,Separator:lb,Dialog:fb,Empty:pb,Loading:mb});function hb(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function vb(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function qd(e){let t=i.useRef(e);return ut(()=>{t.current=e}),t}var ut=typeof window>"u"?i.useEffect:i.useLayoutEffect;function bt(e){let t=i.useRef();return t.current===void 0&&(t.current=e()),t}function qe(e){let t=_s(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function Zd(e,t,n,r=[]){let o=i.useRef(),s=sn();return ut(()=>{var a;let c=(()=>{var u;for(let p of n){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(u=p.current.textContent)==null?void 0:u.trim():o.current}})(),d=r.map(u=>u.trim());s.value(e,c,d),(a=t.current)==null||a.setAttribute(wt,c),o.current=c}),o}var gb=()=>{let[e,t]=i.useState(),n=bt(()=>new Map);return ut(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function xb(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Rr({asChild:e,children:t},n){return e&&i.isValidElement(t)?i.cloneElement(xb(t),{ref:t.ref},n(t.props.children)):n(t)}var yb={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Qd=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ve,{ref:n,className:l.cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-white text-neutral-950 dark:bg-neutral-950 dark:text-neutral-50",e),...t}));Qd.displayName=ve.displayName;const Eb=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:l.jsxRuntimeExports.jsx(ve.Input,{ref:n,className:l.cn("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-neutral-500 disabled:cursor-not-allowed disabled:opacity-50 dark:placeholder:text-neutral-400",e),...t})}));Eb.displayName=ve.Input.displayName;const Io=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ve.List,{ref:n,className:l.cn("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Io.displayName=ve.List.displayName;const wb=i.forwardRef((e,t)=>l.jsxRuntimeExports.jsx(ve.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));wb.displayName=ve.Empty.displayName;const Jd=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ve.Group,{ref:n,className:l.cn("overflow-hidden p-1 text-neutral-950 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-neutral-500 dark:text-neutral-50 dark:[&_[cmdk-group-heading]]:text-neutral-400",e),...t}));Jd.displayName=ve.Group.displayName;const bb=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ve.Separator,{ref:n,className:l.cn("-mx-1 h-px bg-neutral-200 dark:bg-neutral-800",e),...t}));bb.displayName=ve.Separator.displayName;const ef=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ve.Item,{ref:n,className:l.cn("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-neutral-100 data-[selected=true]:text-neutral-900 data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-6 [&_svg]:shrink-0 dark:data-[selected='true']:bg-neutral-800 dark:data-[selected=true]:text-neutral-50",e),...t}));ef.displayName=ve.Item.displayName;const Rb=$w,tf=i.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>l.jsxRuntimeExports.jsx(Ow,{children:l.jsxRuntimeExports.jsx($d,{ref:o,align:t,sideOffset:n,className:l.cn("z-50 w-72 rounded-md border border-neutral-200 bg-white p-4 text-neutral-950 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 origin-[--radix-popover-content-transform-origin] dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...r})}));tf.displayName=$d.displayName;const Cb=I(tf)`
720
720
  width: var(--radix-popover-trigger-width);
721
721
  padding: 0;
722
- `,jb=I(Qd)`
722
+ `,Sb=I(Qd)`
723
723
  border-radius: 0.75rem;
724
- `,nf=I(ef)`
724
+ `,jb=I(ef)`
725
725
  height: 3.125rem;
726
726
  border-radius: 0.75rem;
727
727
  ${l.typography.label}
@@ -739,13 +739,6 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
739
739
  display: flex;
740
740
  justify-content: space-between;
741
741
  width: 100%;
742
- `,Tb=I.span`
743
- font-size: 0.938rem;
744
- ${l.typography.body}
745
- color: ${l.colors.fg.accent.action};
746
- &:hover {
747
- background: ${l.colors.primary[25]};
748
- }
749
- `,Ab=I.div`
742
+ `,Tb=I.div`
750
743
  padding: 2rem;
751
- `,Nb=({handleManualOverride:e})=>l.jsxRuntimeExports.jsx(nf,{onMouseDown:t=>t.preventDefault(),onSelect:e,children:l.jsxRuntimeExports.jsx(Tb,{children:"+ Anbieter manuell eingeben"})});function $b({selectedValue:e,setSelectedValue:t,value:n,onChange:r,options:o,isLoading:s,isError:a,manualOverrideComponent:c,label:d="Empfänger",errorText:u="Es ist ein Fehler aufgetreten",emptyText:p="Ende der Suchergebnisse.",...m}){const g=Z.useId(),[h,w]=Z.useState(!1),[f,v]=Z.useState(null),x=E=>{var R;t(E),r(((R=o==null?void 0:o.find(C=>C.value===E))==null?void 0:R.value)??""),w(!1)},y=f==="top"?{borderRadius:"0.5rem 0.5rem 0 0"}:{};return l.jsxRuntimeExports.jsx(Cb,{open:h,onOpenChange:w,modal:!0,children:l.jsxRuntimeExports.jsxs(jb,{shouldFilter:!1,children:[l.jsxRuntimeExports.jsx(Sd,{asChild:!0,children:l.jsxRuntimeExports.jsx(Bl,{$error:a,children:l.jsxRuntimeExports.jsxs(Hl,{children:[l.jsxRuntimeExports.jsx(Vl,{...m,type:"text",id:`${g}-${d}`,value:n,onKeyDown:E=>{E.key==="Backspace"&&t(""),w(E.key!=="Escape")},onChange:E=>r(E.target.value),autoComplete:"off",required:!0}),l.jsxRuntimeExports.jsx(xs,{htmlFor:`${g}-${d}`,$hasValue:!!n,children:d})]})})}),!h&&l.jsxRuntimeExports.jsx(Io,{"aria-hidden":"true",className:"hidden"}),l.jsxRuntimeExports.jsx(Sb,{ref:E=>{if(E){const R=E.getAttribute("data-side");R!==f&&v(R)}},asChild:!0,onOpenAutoFocus:E=>E.preventDefault(),onInteractOutside:E=>{E.target instanceof Element&&E.target.hasAttribute("cmdk-input")&&E.preventDefault()},children:n?l.jsxRuntimeExports.jsx(Io,{children:l.jsxRuntimeExports.jsxs(Jd,{children:[f==="bottom"&&c,o&&o.length>0&&!s?o.map(E=>l.jsxRuntimeExports.jsx(nf,{$isSelected:E.value===e,value:E.value,onMouseDown:R=>R.preventDefault(),onSelect:x,children:l.jsxRuntimeExports.jsxs(Pb,{children:[E.label,E.value===e&&l.jsxRuntimeExports.jsx(l.Check,{})]})},E.value)):null,s?l.jsxRuntimeExports.jsx(Ab,{children:l.jsxRuntimeExports.jsx(zl,{size:"1rem",color:l.colors.fg.accent.action})}):a?l.jsxRuntimeExports.jsx(_n,{style:y,error:a,children:u}):(o==null?void 0:o.length)===0?l.jsxRuntimeExports.jsx(_n,{style:y,children:p}):null,f==="top"&&c]})}):null})]})})}exports.colors=l.colors;exports.typography=l.typography;exports.Autocomplete=$b;exports.Button=pp;exports.DatePicker=yp;exports.Dialog=Ym;exports.DialogContent=pc;exports.DialogDetails=Gm;exports.DialogHeader=Jm;exports.Divider=th;exports.IconButton=Wn;exports.Input=hx;exports.Letter=$h;exports.Loading=zl;exports.ManualOverrideButton=Nb;exports.Message=ch;exports.MessageOption=uh;exports.Select=ix;exports.Skeleton=cx;exports.Spinner=Aa;exports.StatusIndicator=Ey;exports.Toaster=py;exports.Tooltip=fE;exports.TooltipContent=Zu;exports.TooltipProvider=dE;exports.TooltipTrigger=pE;exports.useIsMobile=en;exports.useToast=Ul;
744
+ `;function Ab({selectedValue:e,setSelectedValue:t,value:n,onChange:r,options:o,isLoading:s,isError:a,label:c="Empfänger",errorText:d="Es ist ein Fehler aufgetreten",emptyText:u="Ende der Suchergebnisse.",...p}){const m=Z.useId(),[g,h]=Z.useState(!1),[E,f]=Z.useState(null),v=x=>{var b;t(x),r(((b=o==null?void 0:o.find(R=>R.value===x))==null?void 0:b.value)??""),h(!1)},y=E==="top"?{borderRadius:"0.5rem 0.5rem 0 0"}:{};return l.jsxRuntimeExports.jsx(Rb,{open:g,onOpenChange:h,modal:!0,children:l.jsxRuntimeExports.jsxs(Sb,{shouldFilter:!1,children:[l.jsxRuntimeExports.jsx(Sd,{asChild:!0,children:l.jsxRuntimeExports.jsx(Bl,{$error:a,children:l.jsxRuntimeExports.jsxs(Hl,{children:[l.jsxRuntimeExports.jsx(Vl,{...p,type:"text",id:`${m}-${c}`,value:n,onKeyDown:x=>{x.key==="Backspace"&&t(""),h(x.key!=="Escape")},onChange:x=>r(x.target.value),autoComplete:"off",required:!0}),l.jsxRuntimeExports.jsx(xs,{htmlFor:`${m}-${c}`,$hasValue:!!n,children:c})]})})}),!g&&l.jsxRuntimeExports.jsx(Io,{"aria-hidden":"true",className:"hidden"}),l.jsxRuntimeExports.jsx(Cb,{ref:x=>{if(x){const b=x.getAttribute("data-side");b!==E&&f(b)}},asChild:!0,onOpenAutoFocus:x=>x.preventDefault(),onInteractOutside:x=>{x.target instanceof Element&&x.target.hasAttribute("cmdk-input")&&x.preventDefault()},children:n?l.jsxRuntimeExports.jsx(Io,{children:l.jsxRuntimeExports.jsxs(Jd,{children:[o&&o.length>0&&!s?o.map(x=>l.jsxRuntimeExports.jsx(jb,{$isSelected:x.value===e,value:x.value,onMouseDown:b=>b.preventDefault(),onSelect:v,children:l.jsxRuntimeExports.jsxs(Pb,{children:[x.label,x.value===e&&l.jsxRuntimeExports.jsx(l.Check,{})]})},x.value)):null,s?l.jsxRuntimeExports.jsx(Tb,{children:l.jsxRuntimeExports.jsx(zl,{size:"1rem",color:l.colors.fg.accent.action})}):a?l.jsxRuntimeExports.jsx(_n,{style:y,error:a,children:d}):(o==null?void 0:o.length)===0?l.jsxRuntimeExports.jsx(_n,{style:y,children:u}):null]})}):null})]})})}exports.colors=l.colors;exports.typography=l.typography;exports.Autocomplete=Ab;exports.Button=fp;exports.DatePicker=xp;exports.Dialog=Um;exports.DialogContent=pc;exports.DialogDetails=Xm;exports.DialogHeader=Qm;exports.Divider=eh;exports.IconButton=Wn;exports.Input=mx;exports.Letter=Nh;exports.Loading=zl;exports.Message=ah;exports.MessageOption=lh;exports.Select=sx;exports.Skeleton=ax;exports.Spinner=Aa;exports.StatusIndicator=yy;exports.Toaster=fy;exports.Tooltip=dE;exports.TooltipContent=Zu;exports.TooltipProvider=uE;exports.TooltipTrigger=fE;exports.useIsMobile=en;exports.useToast=Ul;