rechtspilot-ui 1.1.5 → 1.1.6
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 +164 -67
- package/dist/index.d.ts +23 -0
- package/dist/index.es.js +2578 -2413
- package/package.json +1 -1
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}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-8{height:2rem}.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-3\\.5{width:.875rem}.w-4{width:1rem}.w-72{width:18rem}.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))}.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}.select-none{-webkit-user-select:none;user-select:none}.resize{resize:both}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.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}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-neutral-200{border-color:#bfc5c2}.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-800{background-color:#262c29}.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-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-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-500{color:#5b6b63}.text-neutral-950{color:#121614}.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\\:opacity-100:hover{opacity:1}.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\\: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\\: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}}.\\[\\&\\>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"),Q=require("react"),Yn=require("react-dom");function ta(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=ta(Q),Ze=ta(Yn);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 Pt(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 Gd(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var qd=/^((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)-.*))$/,Zd=Gd(function(e){return qd.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),se="-ms-",Yt="-moz-",ee="-webkit-",na="comm",Kn="rule",Do="decl",Qd="@import",ra="@keyframes",Jd="@layer",oa=Math.abs,Io=String.fromCharCode,qr=Object.assign;function ef(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 sa(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 Rn(e,t,n){return e.indexOf(t,n)}function ue(e,t){return e.charCodeAt(t)|0}function jt(e,t,n){return e.slice(t,n)}function Ae(e){return e.length}function ia(e){return e.length}function Ut(e,t){return t.push(e),e}function tf(e,t){return e.map(t).join("")}function Ls(e,t){return e.filter(function(n){return!Me(n,t)})}var Xn=1,Tt=1,aa=0,we=0,le=0,Mt="";function Gn(e,t,n,r,o,s,a,c){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Xn,column:Tt,length:a,return:"",siblings:c}}function We(e,t){return qr(Gn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function pt(e){for(;e.root;)e=We(e.root,{children:[e]});Ut(e,e.siblings)}function nf(){return le}function rf(){return le=we>0?ue(Mt,--we):0,Tt--,le===10&&(Tt=1,Xn--),le}function Re(){return le=we<aa?ue(Mt,we++):0,Tt++,le===10&&(Tt=1,Xn++),le}function rt(){return ue(Mt,we)}function Cn(){return we}function qn(e,t){return jt(Mt,e,t)}function Zr(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 of(e){return Xn=Tt=1,aa=Ae(Mt=e),we=0,[]}function sf(e){return Mt="",e}function br(e){return sa(qn(we-1,Qr(e===91?e+2:e===40?e+1:e)))}function af(e){for(;(le=rt())&&le<33;)Re();return Zr(e)>2||Zr(le)>3?"":" "}function cf(e,t){for(;--t&&Re()&&!(le<48||le>102||le>57&&le<65||le>70&&le<97););return qn(e,Cn()+(t<6&&rt()==32&&Re()==32))}function Qr(e){for(;Re();)switch(le){case e:return we;case 34:case 39:e!==34&&e!==39&&Qr(le);break;case 40:e===41&&Qr(e);break;case 92:Re();break}return we}function lf(e,t){for(;Re()&&e+le!==57;)if(e+le===84&&rt()===47)break;return"/*"+qn(t,we-1)+"*"+Io(e===47?e:Re())}function uf(e){for(;!Zr(rt());)Re();return qn(e,we)}function df(e){return sf(Sn("",null,null,null,[""],e=of(e),0,[0],e))}function Sn(e,t,n,r,o,s,a,c,d){for(var u=0,p=0,m=a,g=0,v=0,E=0,f=1,h=1,x=1,y=0,b="",R=o,C=s,S=r,w=b;h;)switch(E=y,y=Re()){case 40:if(E!=108&&ue(w,m-1)==58){Rn(w+=q(br(y),"&","&\f"),"&\f",oa(u?c[u-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:w+=br(y);break;case 9:case 10:case 13:case 32:w+=af(E);break;case 92:w+=cf(Cn()-1,7);continue;case 47:switch(rt()){case 42:case 47:Ut(ff(lf(Re(),Cn()),t,n,d),d);break;default:w+="/"}break;case 123*f:c[u++]=Ae(w)*x;case 125*f:case 59:case 0:switch(y){case 0:case 125:h=0;case 59+p:x==-1&&(w=q(w,/\f/g,"")),v>0&&Ae(w)-m&&Ut(v>32?Ws(w+";",r,n,m-1,d):Ws(q(w," ","")+";",r,n,m-2,d),d);break;case 59:w+=";";default:if(Ut(S=Fs(w,t,n,u,p,o,c,b,R=[],C=[],m,s),s),y===123)if(p===0)Sn(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:Sn(e,S,S,r&&Ut(Fs(e,S,S,0,0,o,c,b,o,R=[],m,C),C),o,C,m,c,r?R:C);break;default:Sn(w,S,S,S,[""],C,0,c,C)}}u=p=v=0,f=x=1,b=w="",m=a;break;case 58:m=1+Ae(w),v=E;default:if(f<1){if(y==123)--f;else if(y==125&&f++==0&&rf()==125)continue}switch(w+=Io(y),y*f){case 38:x=p>0?1:(w+="\f",-1);break;case 44:c[u++]=(Ae(w)-1)*x,x=1;break;case 64:rt()===45&&(w+=br(Re())),g=rt(),p=m=Ae(b=w+=uf(Cn())),y++;break;case 45:E===45&&Ae(w)==2&&(f=0)}}return s}function Fs(e,t,n,r,o,s,a,c,d,u,p,m){for(var g=o-1,v=o===0?s:[""],E=ia(v),f=0,h=0,x=0;f<r;++f)for(var y=0,b=jt(e,g+1,g=oa(h=a[f])),R=e;y<E;++y)(R=sa(h>0?v[y]+" "+b:q(b,/&\f/g,v[y])))&&(d[x++]=R);return Gn(e,t,n,o===0?Kn:c,d,u,p,m)}function ff(e,t,n,r){return Gn(e,t,n,na,Io(nf()),jt(e,2,-2),0,r)}function Ws(e,t,n,r,o){return Gn(e,t,n,Do,jt(e,0,r),jt(e,r+1,-1),r,o)}function ca(e,t,n){switch(ef(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"+jt(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/)})?~Rn(e+(n=n[t].value),"span",0)?e:se+q(e,"-start","")+e+se+"grid-row-span:"+(~Rn(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~Rn(e,"stretch",0)?ca(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 pf(e,t,n,r){switch(e.type){case Jd:if(e.children.length)break;case Qd:case Do:return e.return=e.return||e.value;case na:return"";case ra:return e.return=e.value+"{"+In(e.children,r)+"}";case Kn:if(!Ae(e.value=e.props.join(",")))return""}return Ae(n=In(e.children,r))?e.return=e.value+"{"+n+"}":""}function mf(e){var t=ia(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 hf(e){return function(t){t.root||(t=t.return)&&e(t)}}function vf(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Do:e.return=ca(e.value,e.length,n);return;case ra:return In([We(e,{value:q(e.value,"@","@"+ee)})],r);case Kn:if(e.length)return tf(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]})),qr(e,{props:Ls(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]})),qr(e,{props:Ls(n,r)});break}return""})}}var gf={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",la="active",ua="data-styled-version",Zn="6.1.13",ko=`/*!sc*/
|
|
3
|
-
`,kn=typeof window<"u"&&"HTMLElement"in window,
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./chunks.cjs"),Q=require("react"),Yn=require("react-dom");function na(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=na(Q),Ze=na(Yn);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 Pt(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 qd(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Zd=/^((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)-.*))$/,Qd=qd(function(e){return Zd.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),se="-ms-",Yt="-moz-",ee="-webkit-",ra="comm",Kn="rule",Io="decl",Jd="@import",oa="@keyframes",ef="@layer",sa=Math.abs,ko=String.fromCharCode,Zr=Object.assign;function tf(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 ia(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 Rn(e,t,n){return e.indexOf(t,n)}function ue(e,t){return e.charCodeAt(t)|0}function jt(e,t,n){return e.slice(t,n)}function Ae(e){return e.length}function aa(e){return e.length}function Ut(e,t){return t.push(e),e}function nf(e,t){return e.map(t).join("")}function Fs(e,t){return e.filter(function(n){return!Me(n,t)})}var Xn=1,Tt=1,ca=0,we=0,le=0,Mt="";function Gn(e,t,n,r,o,s,a,c){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Xn,column:Tt,length:a,return:"",siblings:c}}function We(e,t){return Zr(Gn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function pt(e){for(;e.root;)e=We(e.root,{children:[e]});Ut(e,e.siblings)}function rf(){return le}function of(){return le=we>0?ue(Mt,--we):0,Tt--,le===10&&(Tt=1,Xn--),le}function Re(){return le=we<ca?ue(Mt,we++):0,Tt++,le===10&&(Tt=1,Xn++),le}function rt(){return ue(Mt,we)}function Cn(){return we}function qn(e,t){return jt(Mt,e,t)}function Qr(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 sf(e){return Xn=Tt=1,ca=Ae(Mt=e),we=0,[]}function af(e){return Mt="",e}function br(e){return ia(qn(we-1,Jr(e===91?e+2:e===40?e+1:e)))}function cf(e){for(;(le=rt())&&le<33;)Re();return Qr(e)>2||Qr(le)>3?"":" "}function lf(e,t){for(;--t&&Re()&&!(le<48||le>102||le>57&&le<65||le>70&&le<97););return qn(e,Cn()+(t<6&&rt()==32&&Re()==32))}function Jr(e){for(;Re();)switch(le){case e:return we;case 34:case 39:e!==34&&e!==39&&Jr(le);break;case 40:e===41&&Jr(e);break;case 92:Re();break}return we}function uf(e,t){for(;Re()&&e+le!==57;)if(e+le===84&&rt()===47)break;return"/*"+qn(t,we-1)+"*"+ko(e===47?e:Re())}function df(e){for(;!Qr(rt());)Re();return qn(e,we)}function ff(e){return af(Sn("",null,null,null,[""],e=sf(e),0,[0],e))}function Sn(e,t,n,r,o,s,a,c,d){for(var u=0,p=0,m=a,g=0,v=0,E=0,f=1,h=1,x=1,y=0,b="",R=o,C=s,S=r,w=b;h;)switch(E=y,y=Re()){case 40:if(E!=108&&ue(w,m-1)==58){Rn(w+=q(br(y),"&","&\f"),"&\f",sa(u?c[u-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:w+=br(y);break;case 9:case 10:case 13:case 32:w+=cf(E);break;case 92:w+=lf(Cn()-1,7);continue;case 47:switch(rt()){case 42:case 47:Ut(pf(uf(Re(),Cn()),t,n,d),d);break;default:w+="/"}break;case 123*f:c[u++]=Ae(w)*x;case 125*f:case 59:case 0:switch(y){case 0:case 125:h=0;case 59+p:x==-1&&(w=q(w,/\f/g,"")),v>0&&Ae(w)-m&&Ut(v>32?Bs(w+";",r,n,m-1,d):Bs(q(w," ","")+";",r,n,m-2,d),d);break;case 59:w+=";";default:if(Ut(S=Ws(w,t,n,u,p,o,c,b,R=[],C=[],m,s),s),y===123)if(p===0)Sn(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:Sn(e,S,S,r&&Ut(Ws(e,S,S,0,0,o,c,b,o,R=[],m,C),C),o,C,m,c,r?R:C);break;default:Sn(w,S,S,S,[""],C,0,c,C)}}u=p=v=0,f=x=1,b=w="",m=a;break;case 58:m=1+Ae(w),v=E;default:if(f<1){if(y==123)--f;else if(y==125&&f++==0&&of()==125)continue}switch(w+=ko(y),y*f){case 38:x=p>0?1:(w+="\f",-1);break;case 44:c[u++]=(Ae(w)-1)*x,x=1;break;case 64:rt()===45&&(w+=br(Re())),g=rt(),p=m=Ae(b=w+=df(Cn())),y++;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,v=o===0?s:[""],E=aa(v),f=0,h=0,x=0;f<r;++f)for(var y=0,b=jt(e,g+1,g=sa(h=a[f])),R=e;y<E;++y)(R=ia(h>0?v[y]+" "+b:q(b,/&\f/g,v[y])))&&(d[x++]=R);return Gn(e,t,n,o===0?Kn:c,d,u,p,m)}function pf(e,t,n,r){return Gn(e,t,n,ra,ko(rf()),jt(e,2,-2),0,r)}function Bs(e,t,n,r,o){return Gn(e,t,n,Io,jt(e,0,r),jt(e,r+1,-1),r,o)}function la(e,t,n){switch(tf(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"+jt(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/)})?~Rn(e+(n=n[t].value),"span",0)?e:se+q(e,"-start","")+e+se+"grid-row-span:"+(~Rn(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~Rn(e,"stretch",0)?la(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 mf(e,t,n,r){switch(e.type){case ef:if(e.children.length)break;case Jd:case Io:return e.return=e.return||e.value;case ra:return"";case oa:return e.return=e.value+"{"+In(e.children,r)+"}";case Kn:if(!Ae(e.value=e.props.join(",")))return""}return Ae(n=In(e.children,r))?e.return=e.value+"{"+n+"}":""}function hf(e){var t=aa(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 vf(e){return function(t){t.root||(t=t.return)&&e(t)}}function gf(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Io:e.return=la(e.value,e.length,n);return;case oa:return In([We(e,{value:q(e.value,"@","@"+ee)})],r);case Kn:if(e.length)return nf(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]})),Zr(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]})),Zr(e,{props:Fs(n,r)});break}return""})}}var xf={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",ua="active",da="data-styled-version",Zn="6.1.13",Mo=`/*!sc*/
|
|
3
|
+
`,kn=typeof window<"u"&&"HTMLElement"in window,yf=!!(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"),Vs=/invalid hook call/i,sn=new Set,Ef=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];
|
|
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];Vs.test(a)?(s=!1,sn.delete(r)):o.apply(void 0,Pt([a],c,!1))},Q.useRef(),s&&!sn.has(r)&&(console.warn(r),sn.add(r))}catch(a){Vs.test(a.message)&&sn.delete(r)}finally{console.error=o}}},Qn=Object.freeze([]),At=Object.freeze({});function wf(e,t,n){return n===void 0&&(n=At),e.theme!==n.theme&&e.theme||t||n.theme}var eo=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"]),bf=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Rf=/(^-|-$)/g;function Hs(e){return e.replace(bf,"-").replace(Rf,"")}var Cf=/(a)(d)/gi,an=52,Us=function(e){return String.fromCharCode(e+(e>25?39:97))};function to(e){var t,n="";for(t=Math.abs(e);t>an;t=t/an|0)n=Us(t%an)+n;return(Us(t%an)+n).replace(Cf,"$1-$2")}var Rr,fa=5381,tt=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},pa=function(e){return tt(fa,e)};function Sf(e){return to(pa(e)>>>0)}function ma(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Cr(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var ha=typeof Symbol=="function"&&Symbol.for,va=ha?Symbol.for("react.memo"):60115,Pf=ha?Symbol.for("react.forward_ref"):60112,jf={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Tf={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ga={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Af=((Rr={})[Pf]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Rr[va]=ga,Rr);function zs(e){return("type"in(t=e)&&t.type.$$typeof)===va?ga:"$$typeof"in e?Af[e.$$typeof]:jf;var t}var $f=Object.defineProperty,Nf=Object.getOwnPropertyNames,Ys=Object.getOwnPropertySymbols,Of=Object.getOwnPropertyDescriptor,Df=Object.getPrototypeOf,Ks=Object.prototype;function xa(e,t,n){if(typeof t!="string"){if(Ks){var r=Df(t);r&&r!==Ks&&xa(e,r,n)}var o=Nf(t);Ys&&(o=o.concat(Ys(t)));for(var s=zs(e),a=zs(t),c=0;c<o.length;++c){var d=o[c];if(!(d in Tf||n&&n[d]||a&&d in a||s&&d in s)){var u=Of(t,d);try{$f(e,d,u)}catch{}}}}return e}function $t(e){return typeof e=="function"}function _o(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 Nt(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function no(e,t,n){if(n===void 0&&(n=!1),!n&&!Nt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=no(e[r],t[r]);else if(Nt(t))for(var r in t)e[r]=no(e[r],t[r]);return e}function Lo(e,t){Object.defineProperty(e,"toString",{value:t})}var If=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 If(){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 _t(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(If.apply(void 0,Pt([Df[e]],t,!1)).trim())}var kf=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 _t(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(ko);return n},e}(),Mf=1<<30,Pn=new Map,Mn=new Map,jn=1,cn=function(e){if(Pn.has(e))return Pn.get(e);for(;Mn.has(jn);)jn++;var t=jn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Mf))throw _t(16,"".concat(t));return Pn.set(e,t),Mn.set(t,e),t},_f=function(e,t){jn=t+1,Pn.set(e,t),Mn.set(t,e)},Lf="style[".concat(st,"][").concat(ua,'="').concat(Zn,'"]'),Ff=new RegExp("^".concat(st,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Wf=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)},Bf=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(ko),o=[],s=0,a=r.length;s<a;s++){var c=r[s].trim();if(c){var d=c.match(Ff);if(d){var u=0|parseInt(d[1],10),p=d[2];u!==0&&(_f(p,u),Wf(e,p,d[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(c)}}},Xs=function(e){for(var t=document.querySelectorAll(Lf),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(st)!==la&&(Bf(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Vf(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var xa=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,la),r.setAttribute(ua,Zn);var a=Vf();return a&&r.setAttribute("nonce",a),n.insertBefore(r,s),r},Hf=function(){function e(t){this.element=xa(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 _t(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}(),Uf=function(){function e(t){this.element=xa(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}(),zf=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}(),Gs=kn,Yf={isServer:!kn,useCSSOMInjection:!xf},ya=function(){function e(t,n,r){t===void 0&&(t=At),n===void 0&&(n={});var o=this;this.options=me(me({},Yf),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&kn&&Gs&&(Gs=!1,Xs(this)),_o(this,function(){return function(s){for(var a=s.getTag(),c=a.length,d="",u=function(m){var g=function(x){return Mn.get(x)}(m);if(g===void 0)return"continue";var v=s.names.get(g),E=a.getGroup(m);if(v===void 0||!v.size||E.length===0)return"continue";var f="".concat(st,".g").concat(m,'[id="').concat(g,'"]'),h="";v!==void 0&&v.forEach(function(x){x.length>0&&(h+="".concat(x,","))}),d+="".concat(E).concat(f,'{content:"').concat(h,'"}').concat(ko)},p=0;p<c;p++)u(p);return d}(o)})}return e.registerId=function(t){return cn(t)},e.prototype.rehydrate=function(){!this.server&&kn&&Xs(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 zf(o):r?new Hf(o):new Uf(o)}(this.options),new kf(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(cn(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(cn(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(cn(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Kf=/&/g,Xf=/^\s*\/\/.*$/gm;function Ea(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=Ea(n.children,t)),n})}function Gf(e){var t,n,r,o=At,s=o.options,a=s===void 0?At:s,c=o.plugins,d=c===void 0?Qn:c,u=function(g,v,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===Kn&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(Kf,n).replace(r,u))}),a.prefix&&p.push(vf),p.push(pf);var m=function(g,v,E,f){v===void 0&&(v=""),E===void 0&&(E=""),f===void 0&&(f="&"),t=f,n=v,r=new RegExp("\\".concat(n,"\\b"),"g");var h=g.replace(Xf,""),x=df(E||v?"".concat(E," ").concat(v," { ").concat(h," }"):h);a.namespace&&(x=Ea(x,a.namespace));var y=[];return In(x,mf(p.concat(hf(function(b){return y.push(b)})))),y};return m.hash=d.length?d.reduce(function(g,v){return v.name||_t(15),tt(g,v.name)},da).toString():"",m}var qf=new ya,no=Gf(),wa=Q.createContext({shouldForwardProp:void 0,styleSheet:qf,stylis:no});wa.Consumer;Q.createContext(void 0);function qs(){return Q.useContext(wa)}var Zs=function(){function e(t,n){var r=this;this.inject=function(o,s){s===void 0&&(s=no);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,_o(this,function(){throw _t(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=no),this.name+t.hash},e}(),Zf=function(e){return e>="A"&&e<="Z"};function Qs(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Zf(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var ba=function(e){return e==null||e===!1||e===""},Ra=function(e){var t,n,r=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!ba(s)&&(Array.isArray(s)&&s.isCss||$t(s)?r.push("".concat(Qs(o),":"),s,";"):Nt(s)?r.push.apply(r,Pt(Pt(["".concat(o," {")],Ra(s),!1),["}"],!1)):r.push("".concat(Qs(o),": ").concat((t=o,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in gf||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ot(e,t,n,r){if(ba(e))return[];if(Mo(e))return[".".concat(e.styledComponentId)];if($t(e)){if(!$t(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 Zs||Nt(o)||o===null||console.error("".concat(pa(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 Zs?n?(e.inject(n,r),[e.getName(r)]):[e]:Nt(e)?Ra(e):Array.isArray(e)?Array.prototype.concat.apply(Qn,e.map(function(a){return ot(a,t,n,r)})):[e.toString()]}function Qf(e){for(var t=0;t<e.length;t+=1){var n=e[t];if($t(n)&&!Mo(n))return!1}return!0}var Jf=fa(Zn),ep=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Qf(t),this.componentId=n,this.baseHash=tt(Jf,n),this.baseStyle=r,ya.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=Ks(ot(this.rules,t,n,r)),a=eo(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=Ks(ot(m,t,n,r));d=tt(d,g+p),u+=g}}if(u){var v=eo(d>>>0);n.hasNameForId(this.componentId,v)||n.insertRules(this.componentId,v,r(u,".".concat(v),void 0,this.componentId)),o=nt(o,v)}}return o},e}(),Ca=Q.createContext(void 0);Ca.Consumer;var Sr={},Js=new Set;function tp(e,t,n){var r=Mo(e),o=e,s=!Cr(e),a=t.attrs,c=a===void 0?Qn:a,d=t.componentId,u=d===void 0?function(R,C){var S=typeof R!="string"?"sc":Vs(R);Sr[S]=(Sr[S]||0)+1;var w="".concat(S,"-").concat(Cf(Zn+S+Sr[S]));return C?"".concat(C,"-").concat(w):w}(t.displayName,t.parentComponentId):d,p=t.displayName,m=p===void 0?function(R){return Cr(R)?"styled.".concat(R):"Styled(".concat(pa(R),")")}(e):p,g=t.displayName&&t.componentId?"".concat(Vs(t.displayName),"-").concat(t.componentId):t.componentId||u,v=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 h=t.shouldForwardProp;E=function(R,C){return f(R,C)&&h(R,C)}}else E=f}var x=new ep(n,g,r?o.componentStyle:void 0);function y(R,C){return function(S,w,j){var $=S.attrs,I=S.componentStyle,U=S.defaultProps,Y=S.foldedComponentIds,F=S.styledComponentId,T=S.target,W=Q.useContext(Ca),k=qs(),M=S.shouldForwardProp||k.shouldForwardProp;process.env.NODE_ENV!=="production"&&Q.useDebugValue(F);var N=Ef(w,W,U)||At,B=function(O,H,A){for(var L,V=me(me({},H),{className:void 0,theme:A}),G=0;G<O.length;G+=1){var Z=$t(L=O[G])?L(V):L;for(var K in Z)V[K]=K==="className"?nt(V[K],Z[K]):K==="style"?me(me({},V[K]),Z[K]):Z[K]}return H.className&&(V.className=nt(V.className,H.className)),V}($,w,N),te=B.as||T,J={};for(var P in B)B[P]===void 0||P[0]==="$"||P==="as"||P==="theme"&&B.theme===N||(P==="forwardedAs"?J.as=B.forwardedAs:M&&!M(P,te)||(J[P]=B[P],M||process.env.NODE_ENV!=="development"||Zd(P)||Js.has(P)||!Jr.has(te)||(Js.add(P),console.warn('styled-components: it looks like an unknown prop "'.concat(P,'" 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,H){var A=qs(),L=O.generateAndInjectStyles(H,A.styleSheet,A.stylis);return process.env.NODE_ENV!=="production"&&Q.useDebugValue(L),L}(I,B);process.env.NODE_ENV!=="production"&&S.warnTooManyClasses&&S.warnTooManyClasses(D);var _=nt(Y,F);return D&&(_+=" "+D),B.className&&(_+=" "+B.className),J[Cr(te)&&!Jr.has(te)?"class":"className"]=_,J.ref=j,Q.createElement(te,J)}(b,R,C)}y.displayName=m;var b=Q.forwardRef(y);return b.attrs=v,b.componentStyle=x,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 j=0,$=S;j<$.length;j++)to(C,$[j],!0);return C}({},o.defaultProps,R):R}}),process.env.NODE_ENV!=="production"&&(yf(m,g),b.warnTooManyClasses=function(R,C){var S={},w=!1;return function(j){if(!w&&(S[j]=!0,Object.keys(S).length>=200)){var $=C?' with the id of "'.concat(C,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(R).concat($,`.
|
|
46
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function kf(){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 _t(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(kf.apply(void 0,Pt([If[e]],t,!1)).trim())}var Mf=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 _t(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(Mo);return n},e}(),_f=1<<30,Pn=new Map,Mn=new Map,jn=1,cn=function(e){if(Pn.has(e))return Pn.get(e);for(;Mn.has(jn);)jn++;var t=jn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>_f))throw _t(16,"".concat(t));return Pn.set(e,t),Mn.set(t,e),t},Lf=function(e,t){jn=t+1,Pn.set(e,t),Mn.set(t,e)},Ff="style[".concat(st,"][").concat(da,'="').concat(Zn,'"]'),Wf=new RegExp("^".concat(st,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Bf=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)},Vf=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Mo),o=[],s=0,a=r.length;s<a;s++){var c=r[s].trim();if(c){var d=c.match(Wf);if(d){var u=0|parseInt(d[1],10),p=d[2];u!==0&&(Lf(p,u),Bf(e,p,d[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(c)}}},Gs=function(e){for(var t=document.querySelectorAll(Ff),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(st)!==ua&&(Vf(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Hf(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var ya=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,ua),r.setAttribute(da,Zn);var a=Hf();return a&&r.setAttribute("nonce",a),n.insertBefore(r,s),r},Uf=function(){function e(t){this.element=ya(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 _t(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=ya(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}(),Yf=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=kn,Kf={isServer:!kn,useCSSOMInjection:!yf},Ea=function(){function e(t,n,r){t===void 0&&(t=At),n===void 0&&(n={});var o=this;this.options=me(me({},Kf),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&kn&&qs&&(qs=!1,Gs(this)),Lo(this,function(){return function(s){for(var a=s.getTag(),c=a.length,d="",u=function(m){var g=function(x){return Mn.get(x)}(m);if(g===void 0)return"continue";var v=s.names.get(g),E=a.getGroup(m);if(v===void 0||!v.size||E.length===0)return"continue";var f="".concat(st,".g").concat(m,'[id="').concat(g,'"]'),h="";v!==void 0&&v.forEach(function(x){x.length>0&&(h+="".concat(x,","))}),d+="".concat(E).concat(f,'{content:"').concat(h,'"}').concat(Mo)},p=0;p<c;p++)u(p);return d}(o)})}return e.registerId=function(t){return cn(t)},e.prototype.rehydrate=function(){!this.server&&kn&&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 Yf(o):r?new Uf(o):new zf(o)}(this.options),new Mf(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(cn(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(cn(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(cn(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Xf=/&/g,Gf=/^\s*\/\/.*$/gm;function wa(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=wa(n.children,t)),n})}function qf(e){var t,n,r,o=At,s=o.options,a=s===void 0?At:s,c=o.plugins,d=c===void 0?Qn:c,u=function(g,v,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===Kn&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(Xf,n).replace(r,u))}),a.prefix&&p.push(gf),p.push(mf);var m=function(g,v,E,f){v===void 0&&(v=""),E===void 0&&(E=""),f===void 0&&(f="&"),t=f,n=v,r=new RegExp("\\".concat(n,"\\b"),"g");var h=g.replace(Gf,""),x=ff(E||v?"".concat(E," ").concat(v," { ").concat(h," }"):h);a.namespace&&(x=wa(x,a.namespace));var y=[];return In(x,hf(p.concat(vf(function(b){return y.push(b)})))),y};return m.hash=d.length?d.reduce(function(g,v){return v.name||_t(15),tt(g,v.name)},fa).toString():"",m}var Zf=new Ea,ro=qf(),ba=Q.createContext({shouldForwardProp:void 0,styleSheet:Zf,stylis:ro});ba.Consumer;Q.createContext(void 0);function Zs(){return Q.useContext(ba)}var Qs=function(){function e(t,n){var r=this;this.inject=function(o,s){s===void 0&&(s=ro);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,Lo(this,function(){throw _t(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ro),this.name+t.hash},e}(),Qf=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;Qf(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ra=function(e){return e==null||e===!1||e===""},Ca=function(e){var t,n,r=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!Ra(s)&&(Array.isArray(s)&&s.isCss||$t(s)?r.push("".concat(Js(o),":"),s,";"):Nt(s)?r.push.apply(r,Pt(Pt(["".concat(o," {")],Ca(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 xf||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ot(e,t,n,r){if(Ra(e))return[];if(_o(e))return[".".concat(e.styledComponentId)];if($t(e)){if(!$t(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||Nt(o)||o===null||console.error("".concat(ma(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]:Nt(e)?Ca(e):Array.isArray(e)?Array.prototype.concat.apply(Qn,e.map(function(a){return ot(a,t,n,r)})):[e.toString()]}function Jf(e){for(var t=0;t<e.length;t+=1){var n=e[t];if($t(n)&&!_o(n))return!1}return!0}var ep=pa(Zn),tp=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Jf(t),this.componentId=n,this.baseHash=tt(ep,n),this.baseStyle=r,Ea.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=to(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 v=to(d>>>0);n.hasNameForId(this.componentId,v)||n.insertRules(this.componentId,v,r(u,".".concat(v),void 0,this.componentId)),o=nt(o,v)}}return o},e}(),Sa=Q.createContext(void 0);Sa.Consumer;var Sr={},ei=new Set;function np(e,t,n){var r=_o(e),o=e,s=!Cr(e),a=t.attrs,c=a===void 0?Qn:a,d=t.componentId,u=d===void 0?function(R,C){var S=typeof R!="string"?"sc":Hs(R);Sr[S]=(Sr[S]||0)+1;var w="".concat(S,"-").concat(Sf(Zn+S+Sr[S]));return C?"".concat(C,"-").concat(w):w}(t.displayName,t.parentComponentId):d,p=t.displayName,m=p===void 0?function(R){return Cr(R)?"styled.".concat(R):"Styled(".concat(ma(R),")")}(e):p,g=t.displayName&&t.componentId?"".concat(Hs(t.displayName),"-").concat(t.componentId):t.componentId||u,v=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 h=t.shouldForwardProp;E=function(R,C){return f(R,C)&&h(R,C)}}else E=f}var x=new tp(n,g,r?o.componentStyle:void 0);function y(R,C){return function(S,w,j){var $=S.attrs,I=S.componentStyle,z=S.defaultProps,Y=S.foldedComponentIds,W=S.styledComponentId,T=S.target,B=Q.useContext(Sa),M=Zs(),_=S.shouldForwardProp||M.shouldForwardProp;process.env.NODE_ENV!=="production"&&Q.useDebugValue(W);var N=wf(w,B,z)||At,V=function(O,U,A){for(var F,H=me(me({},U),{className:void 0,theme:A}),G=0;G<O.length;G+=1){var Z=$t(F=O[G])?F(H):F;for(var K in Z)H[K]=K==="className"?nt(H[K],Z[K]):K==="style"?me(me({},H[K]),Z[K]):Z[K]}return U.className&&(H.className=nt(H.className,U.className)),H}($,w,N),te=V.as||T,J={};for(var P in V)V[P]===void 0||P[0]==="$"||P==="as"||P==="theme"&&V.theme===N||(P==="forwardedAs"?J.as=V.forwardedAs:_&&!_(P,te)||(J[P]=V[P],_||process.env.NODE_ENV!=="development"||Qd(P)||ei.has(P)||!eo.has(te)||(ei.add(P),console.warn('styled-components: it looks like an unknown prop "'.concat(P,'" 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,U){var A=Zs(),F=O.generateAndInjectStyles(U,A.styleSheet,A.stylis);return process.env.NODE_ENV!=="production"&&Q.useDebugValue(F),F}(I,V);process.env.NODE_ENV!=="production"&&S.warnTooManyClasses&&S.warnTooManyClasses(D);var L=nt(Y,W);return D&&(L+=" "+D),V.className&&(L+=" "+V.className),J[Cr(te)&&!eo.has(te)?"class":"className"]=L,J.ref=j,Q.createElement(te,J)}(b,R,C)}y.displayName=m;var b=Q.forwardRef(y);return b.attrs=v,b.componentStyle=x,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 j=0,$=S;j<$.length;j++)no(C,$[j],!0);return C}({},o.defaultProps,R):R}}),process.env.NODE_ENV!=="production"&&(Ef(m,g),b.warnTooManyClasses=function(R,C){var S={},w=!1;return function(j){if(!w&&(S[j]=!0,Object.keys(S).length>=200)){var $=C?' with the id of "'.concat(C,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(R).concat($,`.
|
|
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 />`),w=!0,S={}}}}(m,g)),
|
|
55
|
+
<Component />`),w=!0,S={}}}}(m,g)),Lo(b,function(){return".".concat(b.styledComponentId)}),s&&xa(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($t(e)||Nt(e))return ni(ot(ti(Qn,Pt([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 oo(e,t,n){if(n===void 0&&(n=At),!t)throw _t(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,Pt([o],s,!1)))};return r.attrs=function(o){return oo(e,t,me(me({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return oo(e,t,me(me({},n),o))},r}var ja=function(e){return oo(np,e)},k=ja;eo.forEach(function(e){k[e]=ja(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 ln="__sc-".concat(st,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[ln]||(window[ln]=0),window[ln]===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[ln]+=1);const
|
|
59
|
+
See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);const rp=k.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[ln]+=1);const np=z.svg`
|
|
|
68
68
|
transform: rotate(360deg);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
`;function
|
|
71
|
+
`;function Ta({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(rp,{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 op=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}`}}}},sp=k.button`
|
|
72
72
|
${l.typography.label};
|
|
73
|
-
${e=>
|
|
73
|
+
${e=>op(e.$variant)};
|
|
74
74
|
align-items: center;
|
|
75
75
|
border-radius: 0.75rem;
|
|
76
76
|
border: 1px solid transparent;
|
|
@@ -87,14 +87,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);const np=z.svg`
|
|
|
87
87
|
&:disabled {
|
|
88
88
|
opacity: 0.4;
|
|
89
89
|
}
|
|
90
|
-
`;function
|
|
90
|
+
`;function ip({variant:e="primary",fullWidth:t,children:n,loading:r,...o}){const s=()=>{switch(e){case"tertiary":return"secondary";case"destructive":return"error";default:return"primary"}};return l.jsxRuntimeExports.jsxs(sp,{$variant:e,$fullWidth:!!t,...o,children:[n,r&&l.jsxRuntimeExports.jsx(Ta,{variant:s(),dark:e==="secondary"})]})}const ap=k.div`
|
|
91
91
|
padding: 0.375rem 0.5rem;
|
|
92
92
|
font-size: 0.688rem;
|
|
93
93
|
color: ${e=>e.$error?l.colors.fg.accent.error:l.colors.fg.secondary};
|
|
94
94
|
border-radius: 0 0 0.5rem 0.5rem;
|
|
95
95
|
background-color: ${e=>e.$error?l.colors.sf.light.error:l.colors.sf.tertiary};
|
|
96
96
|
margin: 0 0.625rem;
|
|
97
|
-
`;function _n({error:e,children:t,...n}){return l.jsxRuntimeExports.jsx(
|
|
97
|
+
`;function _n({error:e,children:t,...n}){return l.jsxRuntimeExports.jsx(ap,{$error:!!e,...n,children:t})}const cp=k.div`
|
|
98
98
|
height: 3.063rem;
|
|
99
99
|
border-radius: 0.75rem;
|
|
100
100
|
background: ${l.colors.sf.tertiary};
|
|
@@ -113,7 +113,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);const np=z.svg`
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
`,
|
|
116
|
+
`,lp=k.input`
|
|
117
117
|
width: 100%;
|
|
118
118
|
padding-top: 0.25rem;
|
|
119
119
|
background: transparent;
|
|
@@ -125,12 +125,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);const np=z.svg`
|
|
|
125
125
|
&::-webkit-calendar-picker-indicator {
|
|
126
126
|
visibility: hidden;
|
|
127
127
|
}
|
|
128
|
-
`,
|
|
128
|
+
`,up=k.div`
|
|
129
129
|
position: relative;
|
|
130
130
|
height: 100%;
|
|
131
131
|
width: 100%;
|
|
132
132
|
padding: 0.875rem 0;
|
|
133
|
-
`,
|
|
133
|
+
`,dp=k.label`
|
|
134
134
|
position: absolute;
|
|
135
135
|
top: 0;
|
|
136
136
|
left: 0;
|
|
@@ -144,8 +144,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);const np=z.svg`
|
|
|
144
144
|
transform: translateY(-5%);
|
|
145
145
|
font-size: 0.75rem;
|
|
146
146
|
cursor: pointer;
|
|
147
|
-
`;function dp({label:e,value:t,onChange:n,error:r,helperText:o,time:s,...a}){const c=Q.useRef(null),d=Q.useId(),u=()=>{if(c.current)try{c.current.showPicker(),c.current.focus()}catch{c.current.focus()}};return l.jsxRuntimeExports.jsxs(ap,{$error:!!r,onClick:u,children:[l.jsxRuntimeExports.jsx(l.Calendar,{}),l.jsxRuntimeExports.jsxs(lp,{children:[l.jsxRuntimeExports.jsx(cp,{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(up,{htmlFor:`${d}-${e}`,children:e})]}),(r||o)&&l.jsxRuntimeExports.jsx(_n,{error:!!r,children:r||o})]})}function Ue(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 fp(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ta(...e){return t=>e.forEach(n=>fp(n,t))}function dt(...e){return i.useCallback(Ta(...e),e)}function pp(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:v,...E}=m,f=((x=g==null?void 0:g[e])==null?void 0:x[d])||c,h=i.useMemo(()=>E,Object.values(E));return l.jsxRuntimeExports.jsx(f.Provider,{value:h,children:v})};u.displayName=s+"Provider";function p(m,g){var f;const v=((f=g==null?void 0:g[e])==null?void 0:f[d])||c,E=i.useContext(v);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,mp(o,...t)]}function mp(...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:()=>{},hp=i.useId||(()=>{}),vp=0;function xe(e){const[t,n]=i.useState(hp());return ce(()=>{n(r=>r??String(vp++))},[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]=gp({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 gp({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 Lo=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),s=o.find(yp);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(oo,{...r,ref:t,children:i.isValidElement(a)?i.cloneElement(a,void 0,c):null})}return l.jsxRuntimeExports.jsx(oo,{...r,ref:t,children:n})});Lo.displayName="Slot";var oo=i.forwardRef((e,t)=>{const{children:n,...r}=e;if(i.isValidElement(n)){const o=wp(n);return i.cloneElement(n,{...Ep(r,n.props),ref:t?Ta(t,o):o})}return i.Children.count(n)>1?i.Children.only(null):null});oo.displayName="SlotClone";var xp=({children:e})=>l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e});function yp(e){return i.isValidElement(e)&&e.type===xp}function Ep(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 wp(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 bp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Fe=bp.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:s,...a}=r,c=s?Lo: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 Rp(e,t){e&&Ze.flushSync(()=>e.dispatchEvent(t))}function Jn(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 Cp="DismissableLayer",so="dismissableLayer.update",Sp="dismissableLayer.pointerDownOutside",Pp="dismissableLayer.focusOutside",ni,Aa=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$a=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(Aa),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),E=dt(t,w=>m(w)),f=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(h),y=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=Ap(w=>{const j=w.target,$=[...u.branches].some(I=>I.contains(j));!R||$||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=$p(w=>{const j=w.target;[...u.branches].some(I=>I.contains(j))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return Jn(w=>{y===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&&(ni=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),ri(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=ni)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),ri())},[p,u]),i.useEffect(()=>{const w=()=>v({});return document.addEventListener(so,w),()=>document.removeEventListener(so,w)},[]),l.jsxRuntimeExports.jsx(Fe.div,{...d,ref:E,style:{pointerEvents:b?R?"auto":"none":void 0,...e.style},onFocusCapture:Ue(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Ue(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Ue(e.onPointerDownCapture,C.onPointerDownCapture)})});$a.displayName=Cp;var jp="DismissableLayerBranch",Tp=i.forwardRef((e,t)=>{const n=i.useContext(Aa),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})});Tp.displayName=jp;function Ap(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(){Na(Sp,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&&Na(Pp,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 ri(){const e=new CustomEvent(so);document.dispatchEvent(e)}function Na(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?Rp(o,s):o.dispatchEvent(s)}var Pr="focusScope.autoFocusOnMount",jr="focusScope.autoFocusOnUnmount",oi={bubbles:!1,cancelable:!0},Np="FocusScope",Oa=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)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let f=function(b){if(v.paused||!c)return;const R=b.target;c.contains(R)?m.current=R:Be(m.current,{select:!0})},h=function(b){if(v.paused||!c)return;const R=b.relatedTarget;R!==null&&(c.contains(R)||Be(m.current,{select:!0}))},x=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",h);const y=new MutationObserver(x);return c&&y.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",h),y.disconnect()}}},[r,c,v.paused]),i.useEffect(()=>{if(c){ii.add(v);const f=document.activeElement;if(!c.contains(f)){const x=new CustomEvent(Pr,oi);c.addEventListener(Pr,u),c.dispatchEvent(x),x.defaultPrevented||(Op(_p(Da(c)),{select:!0}),document.activeElement===f&&Be(c))}return()=>{c.removeEventListener(Pr,u),setTimeout(()=>{const x=new CustomEvent(jr,oi);c.addEventListener(jr,p),c.dispatchEvent(x),x.defaultPrevented||Be(f??document.body,{select:!0}),c.removeEventListener(jr,p),ii.remove(v)},0)}}},[c,u,p,v]);const E=i.useCallback(f=>{if(!n&&!r||v.paused)return;const h=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,x=document.activeElement;if(h&&x){const y=f.currentTarget,[b,R]=Dp(y);b&&R?!f.shiftKey&&x===R?(f.preventDefault(),n&&Be(b,{select:!0})):f.shiftKey&&x===b&&(f.preventDefault(),n&&Be(R,{select:!0})):x===y&&f.preventDefault()}},[n,r,v.paused]);return l.jsxRuntimeExports.jsx(Fe.div,{tabIndex:-1,...a,ref:g,onKeyDown:E})});Oa.displayName=Np;function Op(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Be(r,{select:t}),document.activeElement!==n)return}function Dp(e){const t=Da(e),n=si(t,e),r=si(t.reverse(),e);return[n,r]}function Da(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 si(e,t){for(const n of e)if(!Ip(n,{upTo:t}))return n}function Ip(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 kp(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&&kp(e)&&t&&e.select()}}var ii=Mp();function Mp(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ai(e,t),e.unshift(t)},remove(t){var n;e=ai(e,t),(n=e[0])==null||n.resume()}}}function ai(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function _p(e){return e.filter(t=>t.tagName!=="A")}var Lp="Portal",Ia=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?Yn.createPortal(l.jsxRuntimeExports.jsx(Fe.div,{...r,ref:t}),a):null});Ia.displayName=Lp;function Fp(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var er=e=>{const{present:t,children:n}=e,r=Wp(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),s=dt(r.ref,Bp(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:s}):null};er.displayName="Presence";function Wp(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,d]=Fp(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=un(r.current);s.current=c==="mounted"?u:"none"},[c]),ce(()=>{const u=r.current,p=o.current;if(p!==e){const g=s.current,v=un(u);e?d("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(p&&g!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),ce(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,m=v=>{const f=un(r.current).includes(v.animationName);if(v.target===t&&f&&(d("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},g=v=>{v.target===t&&(s.current=un(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 un(e){return(e==null?void 0:e.animationName)||"none"}function Bp(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 Tr=0;function ka(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ci()),document.body.insertAdjacentElement("beforeend",e[1]??ci()),Tr++,()=>{Tr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Tr--}},[])}function ci(){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 en(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 Fo(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 Tn="right-scroll-bar-position",An="width-before-scroll-bar",Vp="with-scroll-bars-hidden",Hp="--removed-body-scroll-bar-size";function Ar(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Up(e,t){var n=Q.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 zp=typeof window<"u"?i.useLayoutEffect:i.useEffect,li=new WeakMap;function Yp(e,t){var n=Up(null,function(r){return e.forEach(function(o){return Ar(o,r)})});return zp(function(){var r=li.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(c){s.has(c)||Ar(c,null)}),s.forEach(function(c){o.has(c)||Ar(c,a)})}li.set(n,e)},[e]),n}function Kp(e){return e}function Xp(e,t){t===void 0&&(t=Kp);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 Ma(e){e===void 0&&(e={});var t=Xp(null);return t.options=ie({async:!0,ssr:!1},e),t}var _a=function(e){var t=e.sideCar,n=en(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))};_a.isSideCarExport=!0;function La(e,t){return e.useMedium(t),_a}var Fa=Ma(),$r=function(){},tr=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:$r,onWheelCapture:$r,onTouchMoveCapture:$r}),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,v=e.noIsolation,E=e.inert,f=e.allowPinchZoom,h=e.as,x=h===void 0?"div":h,y=e.gapMode,b=en(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=g,C=Yp([n,t]),S=ie(ie({},b),o);return i.createElement(i.Fragment,null,p&&i.createElement(R,{sideCar:Fa,removeScrollBar:u,shards:m,noIsolation:v,inert:E,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))});tr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};tr.classNames={fullWidth:An,zeroRight:Tn};var Wa=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Gp(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Wa();return t&&e.setAttribute("nonce",t),e}function qp(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Zp(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Qp=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Gp())&&(qp(t,n),Zp(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Jp=function(){var e=Qp();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Wo=function(){var e=Jp(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},em={left:0,top:0,right:0,gap:0},Nr=function(e){return parseInt(e||"",10)||0},tm=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[Nr(n),Nr(r),Nr(o)]},nm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return em;var t=tm(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])}},rm=Wo(),Rt="data-scroll-locked",om=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
148
|
-
.`.concat(
|
|
147
|
+
`;function fp({label:e,value:t,onChange:n,error:r,helperText:o,time:s,...a}){const c=Q.useRef(null),d=Q.useId(),u=()=>{if(c.current)try{c.current.showPicker(),c.current.focus()}catch{c.current.focus()}};return l.jsxRuntimeExports.jsxs(cp,{$error:!!r,onClick:u,children:[l.jsxRuntimeExports.jsx(l.Calendar,{}),l.jsxRuntimeExports.jsxs(up,{children:[l.jsxRuntimeExports.jsx(lp,{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(dp,{htmlFor:`${d}-${e}`,children:e})]}),(r||o)&&l.jsxRuntimeExports.jsx(_n,{error:!!r,children:r||o})]})}function Ue(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 pp(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Aa(...e){return t=>e.forEach(n=>pp(n,t))}function dt(...e){return i.useCallback(Aa(...e),e)}function mp(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:v,...E}=m,f=((x=g==null?void 0:g[e])==null?void 0:x[d])||c,h=i.useMemo(()=>E,Object.values(E));return l.jsxRuntimeExports.jsx(f.Provider,{value:h,children:v})};u.displayName=s+"Provider";function p(m,g){var f;const v=((f=g==null?void 0:g[e])==null?void 0:f[d])||c,E=i.useContext(v);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,hp(o,...t)]}function hp(...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:()=>{},vp=i.useId||(()=>{}),gp=0;function xe(e){const[t,n]=i.useState(vp());return ce(()=>{n(r=>r??String(gp++))},[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]=xp({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 xp({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 Fo=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),s=o.find(Ep);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(so,{...r,ref:t,children:i.isValidElement(a)?i.cloneElement(a,void 0,c):null})}return l.jsxRuntimeExports.jsx(so,{...r,ref:t,children:n})});Fo.displayName="Slot";var so=i.forwardRef((e,t)=>{const{children:n,...r}=e;if(i.isValidElement(n)){const o=bp(n);return i.cloneElement(n,{...wp(r,n.props),ref:t?Aa(t,o):o})}return i.Children.count(n)>1?i.Children.only(null):null});so.displayName="SlotClone";var yp=({children:e})=>l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e});function Ep(e){return i.isValidElement(e)&&e.type===yp}function wp(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 bp(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 Rp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Fe=Rp.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:s,...a}=r,c=s?Fo: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 Cp(e,t){e&&Ze.flushSync(()=>e.dispatchEvent(t))}function Jn(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 Sp="DismissableLayer",io="dismissableLayer.update",Pp="dismissableLayer.pointerDownOutside",jp="dismissableLayer.focusOutside",ri,$a=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Na=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),[,v]=i.useState({}),E=dt(t,w=>m(w)),f=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(h),y=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=$p(w=>{const j=w.target,$=[...u.branches].some(I=>I.contains(j));!R||$||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=Np(w=>{const j=w.target;[...u.branches].some(I=>I.contains(j))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return Jn(w=>{y===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=()=>v({});return document.addEventListener(io,w),()=>document.removeEventListener(io,w)},[]),l.jsxRuntimeExports.jsx(Fe.div,{...d,ref:E,style:{pointerEvents:b?R?"auto":"none":void 0,...e.style},onFocusCapture:Ue(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Ue(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Ue(e.onPointerDownCapture,C.onPointerDownCapture)})});Na.displayName=Sp;var Tp="DismissableLayerBranch",Ap=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})});Ap.displayName=Tp;function $p(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(){Oa(Pp,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 Np(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&&Oa(jp,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(io);document.dispatchEvent(e)}function Oa(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?Cp(o,s):o.dispatchEvent(s)}var Pr="focusScope.autoFocusOnMount",jr="focusScope.autoFocusOnUnmount",si={bubbles:!1,cancelable:!0},Op="FocusScope",Da=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)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let f=function(b){if(v.paused||!c)return;const R=b.target;c.contains(R)?m.current=R:Be(m.current,{select:!0})},h=function(b){if(v.paused||!c)return;const R=b.relatedTarget;R!==null&&(c.contains(R)||Be(m.current,{select:!0}))},x=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",h);const y=new MutationObserver(x);return c&&y.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",h),y.disconnect()}}},[r,c,v.paused]),i.useEffect(()=>{if(c){ai.add(v);const f=document.activeElement;if(!c.contains(f)){const x=new CustomEvent(Pr,si);c.addEventListener(Pr,u),c.dispatchEvent(x),x.defaultPrevented||(Dp(Lp(Ia(c)),{select:!0}),document.activeElement===f&&Be(c))}return()=>{c.removeEventListener(Pr,u),setTimeout(()=>{const x=new CustomEvent(jr,si);c.addEventListener(jr,p),c.dispatchEvent(x),x.defaultPrevented||Be(f??document.body,{select:!0}),c.removeEventListener(jr,p),ai.remove(v)},0)}}},[c,u,p,v]);const E=i.useCallback(f=>{if(!n&&!r||v.paused)return;const h=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,x=document.activeElement;if(h&&x){const y=f.currentTarget,[b,R]=Ip(y);b&&R?!f.shiftKey&&x===R?(f.preventDefault(),n&&Be(b,{select:!0})):f.shiftKey&&x===b&&(f.preventDefault(),n&&Be(R,{select:!0})):x===y&&f.preventDefault()}},[n,r,v.paused]);return l.jsxRuntimeExports.jsx(Fe.div,{tabIndex:-1,...a,ref:g,onKeyDown:E})});Da.displayName=Op;function Dp(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Be(r,{select:t}),document.activeElement!==n)return}function Ip(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(!kp(n,{upTo:t}))return n}function kp(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 Mp(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&&Mp(e)&&t&&e.select()}}var ai=_p();function _p(){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 Lp(e){return e.filter(t=>t.tagName!=="A")}var Fp="Portal",ka=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?Yn.createPortal(l.jsxRuntimeExports.jsx(Fe.div,{...r,ref:t}),a):null});ka.displayName=Fp;function Wp(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var er=e=>{const{present:t,children:n}=e,r=Bp(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),s=dt(r.ref,Vp(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:s}):null};er.displayName="Presence";function Bp(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,d]=Wp(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=un(r.current);s.current=c==="mounted"?u:"none"},[c]),ce(()=>{const u=r.current,p=o.current;if(p!==e){const g=s.current,v=un(u);e?d("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(p&&g!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),ce(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,m=v=>{const f=un(r.current).includes(v.animationName);if(v.target===t&&f&&(d("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},g=v=>{v.target===t&&(s.current=un(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 un(e){return(e==null?void 0:e.animationName)||"none"}function Vp(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 Tr=0;function Ma(){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()),Tr++,()=>{Tr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Tr--}},[])}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 en(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 Wo(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 Tn="right-scroll-bar-position",An="width-before-scroll-bar",Hp="with-scroll-bars-hidden",Up="--removed-body-scroll-bar-size";function Ar(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function zp(e,t){var n=Q.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 Yp=typeof window<"u"?i.useLayoutEffect:i.useEffect,ui=new WeakMap;function Kp(e,t){var n=zp(null,function(r){return e.forEach(function(o){return Ar(o,r)})});return Yp(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)||Ar(c,null)}),s.forEach(function(c){o.has(c)||Ar(c,a)})}ui.set(n,e)},[e]),n}function Xp(e){return e}function Gp(e,t){t===void 0&&(t=Xp);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=Gp(null);return t.options=ie({async:!0,ssr:!1},e),t}var La=function(e){var t=e.sideCar,n=en(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))};La.isSideCarExport=!0;function Fa(e,t){return e.useMedium(t),La}var Wa=_a(),$r=function(){},tr=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:$r,onWheelCapture:$r,onTouchMoveCapture:$r}),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,v=e.noIsolation,E=e.inert,f=e.allowPinchZoom,h=e.as,x=h===void 0?"div":h,y=e.gapMode,b=en(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=g,C=Kp([n,t]),S=ie(ie({},b),o);return i.createElement(i.Fragment,null,p&&i.createElement(R,{sideCar:Wa,removeScrollBar:u,shards:m,noIsolation:v,inert:E,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))});tr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};tr.classNames={fullWidth:An,zeroRight:Tn};var Ba=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function qp(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ba();return t&&e.setAttribute("nonce",t),e}function Zp(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Qp(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Jp=function(){var e=0,t=null;return{add:function(n){e==0&&(t=qp())&&(Zp(t,n),Qp(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},em=function(){var e=Jp();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Bo=function(){var e=em(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},tm={left:0,top:0,right:0,gap:0},Nr=function(e){return parseInt(e||"",10)||0},nm=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[Nr(n),Nr(r),Nr(o)]},rm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tm;var t=nm(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])}},om=Bo(),Rt="data-scroll-locked",sm=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
148
|
+
.`.concat(Hp,` {
|
|
149
149
|
overflow: hidden `).concat(r,`;
|
|
150
150
|
padding-right: `).concat(c,"px ").concat(r,`;
|
|
151
151
|
}
|
|
@@ -179,16 +179,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);const np=z.svg`
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
body[`).concat(Rt,`] {
|
|
182
|
-
`).concat(
|
|
182
|
+
`).concat(Up,": ").concat(c,`px;
|
|
183
183
|
}
|
|
184
|
-
`)},
|
|
184
|
+
`)},di=function(){var e=parseInt(document.body.getAttribute(Rt)||"0",10);return isFinite(e)?e:0},im=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())}},[])},am=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;im();var s=i.useMemo(function(){return rm(o)},[o]);return i.createElement(om,{styles:sm(s,!t,o,n?"":"!important")})},ao=!1;if(typeof window<"u")try{var dn=Object.defineProperty({},"passive",{get:function(){return ao=!0,!0}});window.addEventListener("test",dn,dn),window.removeEventListener("test",dn,dn)}catch{ao=!1}var mt=ao?{passive:!1}:!1,cm=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&&!cm(e)&&n[t]==="visible")},lm=function(e){return Va(e,"overflowY")},um=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=Ha(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},dm=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},fm=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ha=function(e,t){return e==="v"?lm(t):um(t)},Ua=function(e,t){return e==="v"?dm(t):fm(t)},pm=function(e,t){return e==="h"&&t==="rtl"?-1:1},mm=function(e,t,n,r,o){var s=pm(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 v=Ua(e,c),E=v[0],f=v[1],h=v[2],x=f-h-s*E;(E||x)&&Ha(e,c)&&(m+=x,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},fn=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},hm=function(e,t){return e[0]===t[0]&&e[1]===t[1]},vm=function(e){return`
|
|
185
185
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
186
186
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
187
|
-
`)},
|
|
187
|
+
`)},gm=0,ht=[];function xm(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(gm++)[0],s=i.useState(Bo)[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=Wo([e.lockRef.current],(e.shards||[]).map(mi),!0).filter(Boolean);return f.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(f,h){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!a.current.allowPinchZoom;var x=fn(f),y=n.current,b="deltaX"in f?f.deltaX:y[0]-x[0],R="deltaY"in f?f.deltaY:y[1]-x[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 j=fi(w,S);if(!j)return!0;if(j?C=w:(C=w==="v"?"h":"v",j=fi(w,S)),!j)return!1;if(!r.current&&"changedTouches"in f&&(b||R)&&(r.current=C),!C)return!0;var $=r.current||C;return mm($,h,f,$==="h"?b:R,!0)},[]),d=i.useCallback(function(f){var h=f;if(!(!ht.length||ht[ht.length-1]!==s)){var x="deltaY"in h?pi(h):fn(h),y=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&hm(C.delta,x)})[0];if(y&&y.should){h.cancelable&&h.preventDefault();return}if(!y){var b=(a.current.shards||[]).map(mi).filter(Boolean).filter(function(C){return C.contains(h.target)}),R=b.length>0?c(h,b[0]):!a.current.noIsolation;R&&h.cancelable&&h.preventDefault()}}},[]),u=i.useCallback(function(f,h,x,y){var b={name:f,delta:h,target:x,should:y,shadowParent:ym(x)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(R){return R!==b})},1)},[]),p=i.useCallback(function(f){n.current=fn(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,fn(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 v=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(s,{styles:vm(o)}):null,v?i.createElement(am,{gapMode:e.gapMode}):null)}function ym(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Em=Fa(Wa,xm);var za=i.forwardRef(function(e,t){return i.createElement(tr,ie({},e,{ref:t,sideCar:Em}))});za.classNames=tr.classNames;var wm=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},vt=new WeakMap,pn=new WeakMap,mn={},Or=0,Ya=function(e){return e&&(e.host||Ya(e.parentNode))},bm=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ya(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})},Rm=function(e,t,n,r){var o=bm(t,Array.isArray(e)?e:[e]);mn[n]||(mn[n]=new WeakMap);var s=mn[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 v=g.getAttribute(r),E=v!==null&&v!=="false",f=(vt.get(g)||0)+1,h=(s.get(g)||0)+1;vt.set(g,f),s.set(g,h),a.push(g),f===1&&E&&pn.set(g,!0),h===1&&g.setAttribute(n,"true"),E||g.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",g,x)}})};return p(t),c.clear(),Or++,function(){a.forEach(function(m){var g=vt.get(m)-1,v=s.get(m)-1;vt.set(m,g),s.set(m,v),g||(pn.has(m)||m.removeAttribute(r),pn.delete(m)),v||m.removeAttribute(n)}),Or--,Or||(vt=new WeakMap,vt=new WeakMap,pn=new WeakMap,mn={})}},nr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=wm(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Rm(r,o,n,"aria-hidden")):function(){return null}},Vo="Dialog",[Ka,vb]=ft(Vo),[Cm,Pe]=Ka(Vo),Xa=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(Cm,{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})};Xa.displayName=Vo;var Ga="DialogTrigger",Sm=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Pe(Ga,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":Ko(o.open),...r,ref:s,onClick:Ue(e.onClick,o.onOpenToggle)})});Sm.displayName=Ga;var Ho="DialogPortal",[Pm,qa]=Ka(Ho,{forceMount:void 0}),Uo=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Pe(Ho,t);return l.jsxRuntimeExports.jsx(Pm,{scope:t,forceMount:n,children:i.Children.map(r,a=>l.jsxRuntimeExports.jsx(er,{present:n||s.open,children:l.jsxRuntimeExports.jsx(ka,{asChild:!0,container:o,children:a})}))})};Uo.displayName=Ho;var Ln="DialogOverlay",Za=i.forwardRef((e,t)=>{const n=qa(Ln,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Pe(Ln,e.__scopeDialog);return s.modal?l.jsxRuntimeExports.jsx(er,{present:r||s.open,children:l.jsxRuntimeExports.jsx(jm,{...o,ref:t})}):null});Za.displayName=Ln;var jm=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Pe(Ln,n);return l.jsxRuntimeExports.jsx(za,{as:Fo,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsxRuntimeExports.jsx(Fe.div,{"data-state":Ko(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),it="DialogContent",zo=i.forwardRef((e,t)=>{const n=qa(it,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Pe(it,e.__scopeDialog);return l.jsxRuntimeExports.jsx(er,{present:r||s.open,children:s.modal?l.jsxRuntimeExports.jsx(Tm,{...o,ref:t}):l.jsxRuntimeExports.jsx(Am,{...o,ref:t})})});zo.displayName=it;var Tm=i.forwardRef((e,t)=>{const n=Pe(it,e.__scopeDialog),r=i.useRef(null),o=dt(t,n.contentRef,r);return i.useEffect(()=>{const s=r.current;if(s)return nr(s)},[]),l.jsxRuntimeExports.jsx(Qa,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ue(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Ue(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0;(a.button===2||c)&&s.preventDefault()}),onFocusOutside:Ue(e.onFocusOutside,s=>s.preventDefault())})}),Am=i.forwardRef((e,t)=>{const n=Pe(it,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return l.jsxRuntimeExports.jsx(Qa,{...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()}})}),Qa=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,c=Pe(it,n),d=i.useRef(null),u=dt(t,d);return Ma(),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(Da,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsxRuntimeExports.jsx(Na,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Ko(c.open),...a,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx($m,{titleId:c.titleId}),l.jsxRuntimeExports.jsx(Om,{contentRef:d,descriptionId:c.descriptionId})]})]})}),Yo="DialogTitle",Ja=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Pe(Yo,n);return l.jsxRuntimeExports.jsx(Fe.h2,{id:o.titleId,...r,ref:t})});Ja.displayName=Yo;var ec="DialogDescription",tc=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Pe(ec,n);return l.jsxRuntimeExports.jsx(Fe.p,{id:o.descriptionId,...r,ref:t})});tc.displayName=ec;var nc="DialogClose",rc=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Pe(nc,n);return l.jsxRuntimeExports.jsx(Fe.button,{type:"button",...r,ref:t,onClick:Ue(e.onClick,()=>o.onOpenChange(!1))})});rc.displayName=nc;function Ko(e){return e?"open":"closed"}var oc="DialogTitleWarning",[gb,sc]=mp(oc,{contentName:it,titleName:Yo,docsSlug:"dialog"}),$m=({titleId:e})=>{const t=sc(oc),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
188
188
|
|
|
189
189
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
190
190
|
|
|
191
|
-
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}
|
|
191
|
+
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},Nm="DialogDescriptionWarning",Om=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${sc(Nm).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},Dm=Xa,Im=Uo,rr=Za,Xo=zo,ic=Ja,ac=tc,km=rc;const Mm=Dm,_m=Im,cc=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(rr,{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}));cc.displayName=rr.displayName;const Lm=i.forwardRef(({className:e,children:t,...n},r)=>l.jsxRuntimeExports.jsxs(_m,{children:[l.jsxRuntimeExports.jsx(cc,{}),l.jsxRuntimeExports.jsxs(Xo,{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(km,{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"})]})]})]}));Lm.displayName=Xo.displayName;const lc=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ic,{ref:n,className:l.cn("text-lg font-semibold leading-none tracking-tight hidden",e),...t}));lc.displayName=ic.displayName;const Fm=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(ac,{ref:n,className:l.cn("text-sm text-neutral-500 dark:text-neutral-400",e),...t}));Fm.displayName=ac.displayName;function Wm({open:e,toggleDialog:t,children:n,...r}){return l.jsxRuntimeExports.jsx(Mm,{open:e,onOpenChange:t,...r,children:n})}const Go=()=>{const[e,t]=Q.useState(window.innerWidth<=768),n=Q.useRef(window.innerWidth);return Q.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},uc=Q.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(rr,{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}));uc.displayName=rr.displayName;const Bm=k(Xo)`
|
|
192
192
|
width: ${({$width:e,$fullScreen:t})=>t?"100vw":e||"25.4rem"};
|
|
193
193
|
height: ${({$height:e,$fullScreen:t})=>t?"100vh":e||"29.8rem"};
|
|
194
194
|
border-radius: ${({$fullScreen:e})=>e?"0":"1.5rem"};
|
|
@@ -196,12 +196,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
196
196
|
overflow: hidden;
|
|
197
197
|
display: flex;
|
|
198
198
|
flex-direction: column;
|
|
199
|
-
`,
|
|
199
|
+
`,dc=Q.forwardRef(({width:e,height:t,fullScreen:n,children:r,...o},s)=>{const a=Go();return l.jsxRuntimeExports.jsxs(Uo,{children:[l.jsxRuntimeExports.jsx(uc,{}),l.jsxRuntimeExports.jsxs(Bm,{$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"),...o,children:[l.jsxRuntimeExports.jsx(lc,{})," ",r]})]})});dc.displayName=zo.displayName;const Vm=k.div`
|
|
200
200
|
width: 100%;
|
|
201
201
|
height: 100%;
|
|
202
202
|
padding: 0 2.5rem 2.5rem 2.5rem;
|
|
203
203
|
overflow: auto;
|
|
204
|
-
`;function
|
|
204
|
+
`;function Hm({children:e,...t}){return l.jsxRuntimeExports.jsx(Vm,{...t,children:e})}const Um=k.button`
|
|
205
205
|
color: ${l.colors.primary[900]};
|
|
206
206
|
display: flex;
|
|
207
207
|
justify-content: center;
|
|
@@ -219,17 +219,17 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
219
219
|
&:hover {
|
|
220
220
|
background: ${l.colors.sf.tertiaryHover};
|
|
221
221
|
}
|
|
222
|
-
`,Fn=Q.forwardRef(({onClick:e,variant:t="light",children:n,...r},o)=>l.jsxRuntimeExports.jsx(
|
|
222
|
+
`,Fn=Q.forwardRef(({onClick:e,variant:t="light",children:n,...r},o)=>l.jsxRuntimeExports.jsx(Um,{onClick:e,$variant:t,ref:o,...r,children:n}));Fn.displayName="IconButton";const zm=k.div`
|
|
223
223
|
padding: 1.25rem;
|
|
224
224
|
width: 100%;
|
|
225
225
|
display: flex;
|
|
226
226
|
justify-content: space-between;
|
|
227
|
-
`;function
|
|
227
|
+
`;function Ym({onGoBack:e,onClose:t,...n}){const r=o=>o?"visible":"hidden";return l.jsxRuntimeExports.jsxs(zm,{...n,children:[l.jsxRuntimeExports.jsx(Fn,{onClick:e,style:{visibility:r(!!e)},children:l.jsxRuntimeExports.jsx(l.Chevron,{direction:"left"})}),l.jsxRuntimeExports.jsx(Fn,{onClick:t,style:{visibility:r(!!t)},children:l.jsxRuntimeExports.jsx(l.Close,{})})]})}const Km=k.div`
|
|
228
228
|
height: 0.063rem;
|
|
229
229
|
width: 100%;
|
|
230
230
|
background-color: ${l.colors.border.default};
|
|
231
231
|
margin: 0.75rem 0;
|
|
232
|
-
`;function
|
|
232
|
+
`;function Xm({...e}){return l.jsxRuntimeExports.jsx(Km,{...e})}const Gm=k.div`
|
|
233
233
|
display: flex;
|
|
234
234
|
padding: 0.69rem 0.5rem;
|
|
235
235
|
gap: 0.25rem;
|
|
@@ -237,7 +237,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
237
237
|
justify-content: center;
|
|
238
238
|
border-radius: 0.75rem;
|
|
239
239
|
background: rgba(0, 0, 0, 0.04);
|
|
240
|
-
`,
|
|
240
|
+
`,qm=k.div`
|
|
241
241
|
position: relative;
|
|
242
242
|
width: 0.375rem;
|
|
243
243
|
height: 0.375rem;
|
|
@@ -286,7 +286,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
286
286
|
background-color: rgba(125, 137, 131, 0.2);
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
|
-
`;function
|
|
289
|
+
`;function Zm(){return l.jsxRuntimeExports.jsx(Gm,{children:l.jsxRuntimeExports.jsx(qm,{})})}const Qm=k.div`
|
|
290
290
|
display: flex;
|
|
291
291
|
gap: ${({$isMobile:e})=>e?"0.25rem":"0.38rem"};
|
|
292
292
|
border-radius: 1rem;
|
|
@@ -295,10 +295,10 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
295
295
|
background: ${({$variant:e})=>e==="ai"?l.colors.bg.base:"hsla(120, 26%, 91%, 1)"};
|
|
296
296
|
border: ${({$isMobile:e})=>e?"none":"1px solid rgba(0, 0, 0, 0.04)"};
|
|
297
297
|
padding: ${({$variant:e,$isMobile:t})=>e==="ai"?t?"0.5rem 0":"1rem 0.75rem":"0.62rem 0.75rem"};
|
|
298
|
-
`,
|
|
298
|
+
`,Jm=k.div`
|
|
299
299
|
width: 1.75rem;
|
|
300
300
|
height: 1.75rem;
|
|
301
|
-
`,
|
|
301
|
+
`,eh=k.div`
|
|
302
302
|
${l.typography.body};
|
|
303
303
|
font-size: 0.938rem;
|
|
304
304
|
font-weight: ${({$variant:e})=>e==="ai"?"400":"500"};
|
|
@@ -315,7 +315,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
315
315
|
p {
|
|
316
316
|
margin-bottom: 0.5rem;
|
|
317
317
|
}
|
|
318
|
-
`;function
|
|
318
|
+
`;function th({loading:e=!1,variant:t,showAvatar:n=!1,children:r,...o}){const s=Go();return l.jsxRuntimeExports.jsxs(Qm,{$variant:t,$isMobile:s,...o,children:[t==="ai"&&(n||!s||e)&&l.jsxRuntimeExports.jsx(Jm,{children:l.jsxRuntimeExports.jsx(l.LogoOutlined,{size:"small"})}),e?l.jsxRuntimeExports.jsx(Zm,{}):l.jsxRuntimeExports.jsx(eh,{$variant:t,$isMobile:s,children:r})]})}const nh=k.button`
|
|
319
319
|
display: flex;
|
|
320
320
|
text-align: left;
|
|
321
321
|
gap: 0.375rem;
|
|
@@ -328,8 +328,105 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
328
328
|
border: 1px solid rgba(0, 0, 0, 0.04);
|
|
329
329
|
white-space: pre-line;
|
|
330
330
|
width: fit-content;
|
|
331
|
-
`;function nh({onClick:e,children:t,...n}){return l.jsxRuntimeExports.jsx(th,{onClick:e,...n,children:t})}function mi(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 hi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ze(...e){return t=>{let n=!1;const r=e.map(o=>{const s=hi(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():hi(e[o],null)}}}}function ne(...e){return i.useCallback(ze(...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(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})});Zt.displayName="Slot";var ao=i.forwardRef((e,t)=>{const{children:n,...r}=e;if(i.isValidElement(n)){const o=ih(n);return i.cloneElement(n,{...sh(r,n.props),ref:t?ze(t,o):o})}return i.Children.count(n)>1?i.Children.only(null):null});ao.displayName="SlotClone";var rh=({children:e})=>l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e});function oh(e){return i.isValidElement(e)&&e.type===rh}function sh(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 dc(e){const t=e+"CollectionProvider",[n,r]=ft(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=v=>{const{scope:E,children:f}=v,h=Q.useRef(null),x=Q.useRef(new Map).current;return l.jsxRuntimeExports.jsx(o,{scope:E,itemMap:x,collectionRef:h,children:f})};a.displayName=t;const c=e+"CollectionSlot",d=Q.forwardRef((v,E)=>{const{scope:f,children:h}=v,x=s(c,f),y=ne(E,x.collectionRef);return l.jsxRuntimeExports.jsx(Zt,{ref:y,children:h})});d.displayName=c;const u=e+"CollectionItemSlot",p="data-radix-collection-item",m=Q.forwardRef((v,E)=>{const{scope:f,children:h,...x}=v,y=Q.useRef(null),b=ne(E,y),R=s(u,f);return Q.useEffect(()=>(R.itemMap.set(y,{ref:y,...x}),()=>void R.itemMap.delete(y))),l.jsxRuntimeExports.jsx(Zt,{[p]:"",ref:b,children:h})});m.displayName=u;function g(v){const E=s(e+"CollectionConsumer",v);return Q.useCallback(()=>{const h=E.collectionRef.current;if(!h)return[];const x=Array.from(h.querySelectorAll(`[${p}]`));return Array.from(E.itemMap.values()).sort((R,C)=>x.indexOf(R.ref.current)-x.indexOf(C.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:a,Slot:d,ItemSlot:m},g,r]}var ah=i.createContext(void 0);function ch(e){const t=i.useContext(ah);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 Go(e,t){e&&Ze.flushSync(()=>e.dispatchEvent(t))}var uh="DismissableLayer",co="dismissableLayer.update",dh="dismissableLayer.pointerDownOutside",fh="dismissableLayer.focusOutside",vi,fc=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pc=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(fc),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),E=ne(t,w=>m(w)),f=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(h),y=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=hh(w=>{const j=w.target,$=[...u.branches].some(I=>I.contains(j));!R||$||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=vh(w=>{const j=w.target;[...u.branches].some(I=>I.contains(j))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return Jn(w=>{y===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&&(vi=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),gi(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=vi)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),gi())},[p,u]),i.useEffect(()=>{const w=()=>v({});return document.addEventListener(co,w),()=>document.removeEventListener(co,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)})});pc.displayName=uh;var ph="DismissableLayerBranch",mh=i.forwardRef((e,t)=>{const n=i.useContext(fc),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})});mh.displayName=ph;function hh(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(){mc(dh,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 vh(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&&mc(fh,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 gi(){const e=new CustomEvent(co);document.dispatchEvent(e)}function mc(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?Go(o,s):o.dispatchEvent(s)}var Dr="focusScope.autoFocusOnMount",Ir="focusScope.autoFocusOnUnmount",xi={bubbles:!1,cancelable:!0},gh="FocusScope",hc=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)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let f=function(b){if(v.paused||!c)return;const R=b.target;c.contains(R)?m.current=R:Ve(m.current,{select:!0})},h=function(b){if(v.paused||!c)return;const R=b.relatedTarget;R!==null&&(c.contains(R)||Ve(m.current,{select:!0}))},x=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",h);const y=new MutationObserver(x);return c&&y.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",h),y.disconnect()}}},[r,c,v.paused]),i.useEffect(()=>{if(c){Ei.add(v);const f=document.activeElement;if(!c.contains(f)){const x=new CustomEvent(Dr,xi);c.addEventListener(Dr,u),c.dispatchEvent(x),x.defaultPrevented||(xh(Rh(vc(c)),{select:!0}),document.activeElement===f&&Ve(c))}return()=>{c.removeEventListener(Dr,u),setTimeout(()=>{const x=new CustomEvent(Ir,xi);c.addEventListener(Ir,p),c.dispatchEvent(x),x.defaultPrevented||Ve(f??document.body,{select:!0}),c.removeEventListener(Ir,p),Ei.remove(v)},0)}}},[c,u,p,v]);const E=i.useCallback(f=>{if(!n&&!r||v.paused)return;const h=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,x=document.activeElement;if(h&&x){const y=f.currentTarget,[b,R]=yh(y);b&&R?!f.shiftKey&&x===R?(f.preventDefault(),n&&Ve(b,{select:!0})):f.shiftKey&&x===b&&(f.preventDefault(),n&&Ve(R,{select:!0})):x===y&&f.preventDefault()}},[n,r,v.paused]);return l.jsxRuntimeExports.jsx(re.div,{tabIndex:-1,...a,ref:g,onKeyDown:E})});hc.displayName=gh;function xh(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ve(r,{select:t}),document.activeElement!==n)return}function yh(e){const t=vc(e),n=yi(t,e),r=yi(t.reverse(),e);return[n,r]}function vc(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 yi(e,t){for(const n of e)if(!Eh(n,{upTo:t}))return n}function Eh(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 wh(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&&wh(e)&&t&&e.select()}}var Ei=bh();function bh(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=wi(e,t),e.unshift(t)},remove(t){var n;e=wi(e,t),(n=e[0])==null||n.resume()}}}function wi(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Rh(e){return e.filter(t=>t.tagName!=="A")}const Ch=["top","right","bottom","left"],Ye=Math.min,ge=Math.max,Wn=Math.round,hn=Math.floor,$e=e=>({x:e,y:e}),Sh={left:"right",right:"left",bottom:"top",top:"bottom"},Ph={start:"end",end:"start"};function lo(e,t,n){return ge(e,Ye(t,n))}function _e(e,t){return typeof e=="function"?e(t):e}function Le(e){return e.split("-")[0]}function Lt(e){return e.split("-")[1]}function qo(e){return e==="x"?"y":"x"}function Zo(e){return e==="y"?"height":"width"}function Ke(e){return["top","bottom"].includes(Le(e))?"y":"x"}function Qo(e){return qo(Ke(e))}function jh(e,t,n){n===void 0&&(n=!1);const r=Lt(e),o=Qo(e),s=Zo(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Bn(a)),[a,Bn(a)]}function Th(e){const t=Bn(e);return[uo(e),t,uo(t)]}function uo(e){return e.replace(/start|end/g,t=>Ph[t])}function Ah(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 $h(e,t,n,r){const o=Lt(e);let s=Ah(Le(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(uo)))),s}function Bn(e){return e.replace(/left|right|bottom|top/g,t=>Sh[t])}function Nh(e){return{top:0,right:0,bottom:0,left:0,...e}}function gc(e){return typeof e!="number"?Nh(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 bi(e,t,n){let{reference:r,floating:o}=e;const s=Ke(t),a=Qo(t),c=Zo(a),d=Le(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 v;switch(d){case"top":v={x:p,y:r.y-o.height};break;case"bottom":v={x:p,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:m};break;case"left":v={x:r.x-o.width,y:m};break;default:v={x:r.x,y:r.y}}switch(Lt(t)){case"start":v[a]-=g*(n&&u?-1:1);break;case"end":v[a]+=g*(n&&u?-1:1);break}return v}const Oh=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}=bi(u,r,d),g=r,v={},E=0;for(let f=0;f<c.length;f++){const{name:h,fn:x}=c[f],{x:y,y:b,data:R,reset:C}=await x({x:p,y:m,initialPlacement:r,placement:g,strategy:o,middlewareData:v,rects:u,platform:a,elements:{reference:e,floating:t}});p=y??p,m=b??m,v={...v,[h]:{...v[h],...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}=bi(u,g,d)),f=-1)}return{x:p,y:m,placement:g,strategy:o,middlewareData:v}};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:v=0}=_e(t,e),E=gc(v),h=c[g?m==="floating"?"reference":"floating":m],x=Vn(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(h)))==null||n?h:h.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,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:y,offsetParent:b,strategy:d}):y);return{top:(x.top-C.top+E.top)/R.y,bottom:(C.bottom-x.bottom+E.bottom)/R.y,left:(x.left-C.left+E.left)/R.x,right:(C.right-x.right+E.right)/R.x}}const Dh=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}=_e(e,t)||{};if(u==null)return{};const m=gc(p),g={x:n,y:r},v=Qo(o),E=Zo(v),f=await a.getDimensions(u),h=v==="y",x=h?"top":"left",y=h?"bottom":"right",b=h?"clientHeight":"clientWidth",R=s.reference[E]+s.reference[v]-g[v]-s.floating[E],C=g[v]-s.reference[v],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 j=R/2-C/2,$=w/2-f[E]/2-1,I=Ye(m[x],$),U=Ye(m[y],$),Y=I,F=w-f[E]-U,T=w/2-f[E]/2+j,W=lo(Y,T,F),k=!d.arrow&&Lt(o)!=null&&T!==W&&s.reference[E]/2-(T<Y?I:U)-f[E]/2<0,M=k?T<Y?T-Y:T-F:0;return{[v]:g[v]+M,data:{[v]:W,centerOffset:T-W-M,...k&&{alignmentOffset:M}},reset:k}}}),Ih=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:v="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:f=!0,...h}=_e(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=Le(o),y=Ke(c),b=Le(c)===c,R=await(d.isRTL==null?void 0:d.isRTL(u.floating)),C=g||(b||!f?[Bn(c)]:Th(c)),S=E!=="none";!g&&S&&C.push(...$h(c,f,E,R));const w=[c,...C],j=await Qt(t,h),$=[];let I=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&$.push(j[x]),m){const T=jh(o,a,R);$.push(j[T[0]],j[T[1]])}if(I=[...I,{placement:o,overflows:$}],!$.every(T=>T<=0)){var U,Y;const T=(((U=s.flip)==null?void 0:U.index)||0)+1,W=w[T];if(W)return{data:{index:T,overflows:I},reset:{placement:W}};let k=(Y=I.filter(M=>M.overflows[0]<=0).sort((M,N)=>M.overflows[1]-N.overflows[1])[0])==null?void 0:Y.placement;if(!k)switch(v){case"bestFit":{var F;const M=(F=I.filter(N=>{if(S){const B=Ke(N.placement);return B===y||B==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(B=>B>0).reduce((B,te)=>B+te,0)]).sort((N,B)=>N[1]-B[1])[0])==null?void 0:F[0];M&&(k=M);break}case"initialPlacement":k=c;break}if(o!==k)return{reset:{placement:k}}}return{}}}};function Ri(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ci(e){return Ch.some(t=>e[t]>=0)}const kh=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=_e(e,t);switch(r){case"referenceHidden":{const s=await Qt(t,{...o,elementContext:"reference"}),a=Ri(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ci(a)}}}case"escaped":{const s=await Qt(t,{...o,altBoundary:!0}),a=Ri(s,n.floating);return{data:{escapedOffsets:a,escaped:Ci(a)}}}default:return{}}}}};async function Mh(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Le(n),c=Lt(n),d=Ke(n)==="y",u=["left","top"].includes(a)?-1:1,p=s&&d?-1:1,m=_e(t,e);let{mainAxis:g,crossAxis:v,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"&&(v=c==="end"?E*-1:E),d?{x:v*p,y:g*u}:{x:g*u,y:v*p}}const _h=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 Mh(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}}}}},Lh=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:h=>{let{x,y}=h;return{x,y}}},...d}=_e(e,t),u={x:n,y:r},p=await Qt(t,d),m=Ke(Le(o)),g=qo(m);let v=u[g],E=u[m];if(s){const h=g==="y"?"top":"left",x=g==="y"?"bottom":"right",y=v+p[h],b=v-p[x];v=lo(y,v,b)}if(a){const h=m==="y"?"top":"left",x=m==="y"?"bottom":"right",y=E+p[h],b=E-p[x];E=lo(y,E,b)}const f=c.fn({...t,[g]:v,[m]:E});return{...f,data:{x:f.x-n,y:f.y-r,enabled:{[g]:s,[m]:a}}}}}},Fh=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}=_e(e,t),p={x:n,y:r},m=Ke(o),g=qo(m);let v=p[g],E=p[m];const f=_e(c,t),h=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]+h.mainAxis,C=s.reference[g]+s.reference[b]-h.mainAxis;v<R?v=R:v>C&&(v=C)}if(u){var x,y;const b=g==="y"?"width":"height",R=["top","left"].includes(Le(o)),C=s.reference[m]-s.floating[b]+(R&&((x=a.offset)==null?void 0:x[m])||0)+(R?0:h.crossAxis),S=s.reference[m]+s.reference[b]+(R?0:((y=a.offset)==null?void 0:y[m])||0)-(R?h.crossAxis:0);E<C?E=C:E>S&&(E=S)}return{[g]:v,[m]:E}}}},Wh=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}=_e(e,t),p=await Qt(t,u),m=Le(o),g=Lt(o),v=Ke(o)==="y",{width:E,height:f}=s.floating;let h,x;m==="top"||m==="bottom"?(h=m,x=g===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(x=m,h=g==="end"?"top":"bottom");const y=f-p.top-p.bottom,b=E-p.left-p.right,R=Ye(f-p[h],y),C=Ye(E-p[x],b),S=!t.middlewareData.shift;let w=R,j=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(w=y),S&&!g){const I=ge(p.left,0),U=ge(p.right,0),Y=ge(p.top,0),F=ge(p.bottom,0);v?j=E-2*(I!==0||U!==0?I+U:ge(p.left,p.right)):w=f-2*(Y!==0||F!==0?Y+F:ge(p.top,p.bottom))}await d({...t,availableWidth:j,availableHeight:w});const $=await a.getDimensions(c.floating);return E!==$.width||f!==$.height?{reset:{rects:!0}}:{}}}};function or(){return typeof window<"u"}function Ft(e){return xc(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=(xc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xc(e){return or()?e instanceof Node||e instanceof ye(e).Node:!1}function Ce(e){return or()?e instanceof Element||e instanceof ye(e).Element:!1}function Ne(e){return or()?e instanceof HTMLElement||e instanceof ye(e).HTMLElement:!1}function Si(e){return!or()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ye(e).ShadowRoot}function tn(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 Bh(e){return["table","td","th"].includes(Ft(e))}function sr(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Jo(e){const t=es(),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 Vh(e){let t=Xe(e);for(;Ne(t)&&!Ot(t);){if(Jo(t))return t;if(sr(t))return null;t=Xe(t)}return null}function es(){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 ir(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||Si(e)&&e.host||Oe(e);return Si(t)?t.host:t}function yc(e){const t=Xe(e);return Ot(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ne(t)&&tn(t)?t:yc(t)}function Jt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=yc(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=ye(o);if(s){const c=fo(a);return t.concat(a,a.visualViewport||[],tn(o)?o:[],c&&n?Jt(c):[])}return t.concat(o,Jt(o,[],n))}function fo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ec(e){const t=Se(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ne(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=Wn(n)!==s||Wn(r)!==a;return c&&(n=s,r=a),{width:n,height:r,$:c}}function ts(e){return Ce(e)?e:e.contextElement}function Ct(e){const t=ts(e);if(!Ne(t))return $e(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Ec(t);let a=(s?Wn(n.width):n.width)/r,c=(s?Wn(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const Hh=$e(0);function wc(e){const t=ye(e);return!es()||!t.visualViewport?Hh:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Uh(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=ts(e);let a=$e(1);t&&(r?Ce(r)&&(a=Ct(r)):a=Ct(e));const c=Uh(s,n,r)?wc(s):$e(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),v=r&&Ce(r)?ye(r):r;let E=g,f=fo(E);for(;f&&r&&v!==E;){const h=Ct(f),x=f.getBoundingClientRect(),y=Se(f),b=x.left+(f.clientLeft+parseFloat(y.paddingLeft))*h.x,R=x.top+(f.clientTop+parseFloat(y.paddingTop))*h.y;d*=h.x,u*=h.y,p*=h.x,m*=h.y,d+=b,u+=R,E=ye(f),f=fo(E)}}return Vn({width:p,height:m,x:d,y:u})}function ns(e,t){const n=ir(e).scrollLeft;return t?t.left+n:at(Oe(e)).left+n}function bc(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ns(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function zh(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=Oe(r),c=t?sr(t.floating):!1;if(r===a||c&&s)return n;let d={scrollLeft:0,scrollTop:0},u=$e(1);const p=$e(0),m=Ne(r);if((m||!m&&!s)&&((Ft(r)!=="body"||tn(a))&&(d=ir(r)),Ne(r))){const v=at(r);u=Ct(r),p.x=v.x+r.clientLeft,p.y=v.y+r.clientTop}const g=a&&!m&&!s?bc(a,d,!0):$e(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 Yh(e){return Array.from(e.getClientRects())}function Kh(e){const t=Oe(e),n=ir(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+ns(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 Xh(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=es();(!u||u&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:s,height:a,x:c,y:d}}function Gh(e,t){const n=at(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Ne(e)?Ct(e):$e(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=Xh(e,n);else if(t==="document")r=Kh(Oe(e));else if(Ce(t))r=Gh(t,n);else{const o=wc(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Vn(r)}function Rc(e,t){const n=Xe(e);return n===t||!Ce(n)||Ot(n)?!1:Se(n).position==="fixed"||Rc(n,t)}function qh(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=Jo(a);!d&&c.position==="fixed"&&(o=null),(s?!d&&!o:!d&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||tn(a)&&!d&&Rc(e,a))?r=r.filter(p=>p!==a):o=c,a=Xe(a)}return t.set(e,r),r}function Zh(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?sr(t)?[]:qh(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 Qh(e){const{width:t,height:n}=Ec(e);return{width:t,height:n}}function Jh(e,t,n){const r=Ne(t),o=Oe(t),s=n==="fixed",a=at(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const d=$e(0);if(r||!r&&!s)if((Ft(t)!=="body"||tn(o))&&(c=ir(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=ns(o));const u=o&&!r&&!s?bc(o,c):$e(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 kr(e){return Se(e).position==="static"}function ji(e,t){if(!Ne(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 Cc(e,t){const n=ye(e);if(sr(e))return n;if(!Ne(e)){let o=Xe(e);for(;o&&!Ot(o);){if(Ce(o)&&!kr(o))return o;o=Xe(o)}return n}let r=ji(e,t);for(;r&&Bh(r)&&kr(r);)r=ji(r,t);return r&&Ot(r)&&kr(r)&&!Jo(r)?n:r||Vh(e)||n}const ev=async function(e){const t=this.getOffsetParent||Cc,n=this.getDimensions,r=await n(e.floating);return{reference:Jh(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function tv(e){return Se(e).direction==="rtl"}const nv={convertOffsetParentRelativeRectToViewportRelativeRect:zh,getDocumentElement:Oe,getClippingRect:Zh,getOffsetParent:Cc,getElementRects:ev,getClientRects:Yh,getDimensions:Qh,getScale:Ct,isElement:Ce,isRTL:tv};function Sc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rv(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:v}=u;if(c||t(),!g||!v)return;const E=hn(m),f=hn(o.clientWidth-(p+g)),h=hn(o.clientHeight-(m+v)),x=hn(p),b={rootMargin:-E+"px "+-f+"px "+-h+"px "+-x+"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&&!Sc(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 rs(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=ts(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?rv(u,n):null;let g=-1,v=null;a&&(v=new ResizeObserver(x=>{let[y]=x;y&&y.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var b;(b=v)==null||b.observe(t)})),n()}),u&&!d&&v.observe(u),v.observe(t));let E,f=d?at(e):null;d&&h();function h(){const x=at(e);f&&!Sc(f,x)&&n(),f=x,E=requestAnimationFrame(h)}return n(),()=>{var x;p.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),m==null||m(),(x=v)==null||x.disconnect(),v=null,d&&cancelAnimationFrame(E)}}const ov=_h,sv=Lh,iv=Ih,av=Wh,cv=kh,Ti=Dh,lv=Fh,uv=(e,t,n)=>{const r=new Map,o={platform:nv,...n},s={...o.platform,_c:r};return Oh(e,t,{...o,platform:s})};var $n=typeof document<"u"?Q.useLayoutEffect:Q.useEffect;function Hn(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(!Hn(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)&&!Hn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Pc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ai(e,t){const n=Pc(e);return Math.round(t*n)/n}function Mr(e){const t=i.useRef(e);return $n(()=>{t.current=e}),t}function os(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,v]=i.useState(r);Hn(g,r)||v(r);const[E,f]=i.useState(null),[h,x]=i.useState(null),y=i.useCallback(N=>{N!==S.current&&(S.current=N,f(N))},[]),b=i.useCallback(N=>{N!==w.current&&(w.current=N,x(N))},[]),R=s||E,C=a||h,S=i.useRef(null),w=i.useRef(null),j=i.useRef(p),$=d!=null,I=Mr(d),U=Mr(o),Y=Mr(u),F=i.useCallback(()=>{if(!S.current||!w.current)return;const N={placement:t,strategy:n,middleware:g};U.current&&(N.platform=U.current),uv(S.current,w.current,N).then(B=>{const te={...B,isPositioned:Y.current!==!1};T.current&&!Hn(j.current,te)&&(j.current=te,Ze.flushSync(()=>{m(te)}))})},[g,t,n,U,Y]);$n(()=>{u===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,m(N=>({...N,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(I.current)return I.current(R,C,F);F()}},[R,C,F,I,$]);const W=i.useMemo(()=>({reference:S,floating:w,setReference:y,setFloating:b}),[y,b]),k=i.useMemo(()=>({reference:R,floating:C}),[R,C]),M=i.useMemo(()=>{const N={position:n,left:0,top:0};if(!k.floating)return N;const B=Ai(k.floating,p.x),te=Ai(k.floating,p.y);return c?{...N,transform:"translate("+B+"px, "+te+"px)",...Pc(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:te}},[n,c,k.floating,p.x,p.y]);return i.useMemo(()=>({...p,update:F,refs:W,elements:k,floatingStyles:M}),[p,F,W,k,M])}const dv=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?Ti({element:r.current,padding:o}).fn(n):{}:r?Ti({element:r,padding:o}).fn(n):{}}}},ss=(e,t)=>({...ov(e),options:[e,t]}),is=(e,t)=>({...sv(e),options:[e,t]}),as=(e,t)=>({...lv(e),options:[e,t]}),cs=(e,t)=>({...iv(e),options:[e,t]}),ls=(e,t)=>({...av(e),options:[e,t]}),us=(e,t)=>({...cv(e),options:[e,t]}),ds=(e,t)=>({...dv(e),options:[e,t]});var fv="Arrow",jc=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"})})});jc.displayName=fv;var pv=jc;function Tc(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 fs="Popper",[Ac,$c]=ft(fs),[mv,Nc]=Ac(fs),Oc=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return l.jsxRuntimeExports.jsx(mv,{scope:t,anchor:r,onAnchorChange:o,children:n})};Oc.displayName=fs;var Dc="PopperAnchor",Ic=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Nc(Dc,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})});Ic.displayName=Dc;var ps="PopperContent",[hv,vv]=Ac(ps),kc=i.forwardRef((e,t)=>{var A,L,V,G,Z,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:v="optimized",onPlaced:E,...f}=e,h=Nc(ps,n),[x,y]=i.useState(null),b=ne(t,oe=>y(oe)),[R,C]=i.useState(null),S=Tc(R),w=(S==null?void 0:S.width)??0,j=(S==null?void 0:S.height)??0,$=r+(s!=="center"?"-"+s:""),I=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},U=Array.isArray(u)?u:[u],Y=U.length>0,F={padding:I,boundary:U.filter(xv),altBoundary:Y},{refs:T,floatingStyles:W,placement:k,isPositioned:M,middlewareData:N}=os({strategy:"fixed",placement:$,whileElementsMounted:(...oe)=>rs(...oe,{animationFrame:v==="always"}),elements:{reference:h.anchor},middleware:[ss({mainAxis:o+j,alignmentAxis:a}),d&&is({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?as():void 0,...F}),d&&cs({...F}),ls({...F,apply:({elements:oe,rects:de,availableWidth:De,availableHeight:Ie})=>{const{width:ke,height:Vt}=de.reference,pe=oe.floating.style;pe.setProperty("--radix-popper-available-width",`${De}px`),pe.setProperty("--radix-popper-available-height",`${Ie}px`),pe.setProperty("--radix-popper-anchor-width",`${ke}px`),pe.setProperty("--radix-popper-anchor-height",`${Vt}px`)}}),R&&ds({element:R,padding:c}),yv({arrowWidth:w,arrowHeight:j}),g&&us({strategy:"referenceHidden",...F})]}),[B,te]=Lc(k),J=ae(E);ce(()=>{M&&(J==null||J())},[M,J]);const P=(A=N.arrow)==null?void 0:A.x,D=(L=N.arrow)==null?void 0:L.y,_=((V=N.arrow)==null?void 0:V.centerOffset)!==0,[O,H]=i.useState();return ce(()=>{x&&H(window.getComputedStyle(x).zIndex)},[x]),l.jsxRuntimeExports.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:M?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(G=N.transformOrigin)==null?void 0:G.x,(Z=N.transformOrigin)==null?void 0:Z.y].join(" "),...((K=N.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsxRuntimeExports.jsx(hv,{scope:n,placedSide:B,onArrowChange:C,arrowX:P,arrowY:D,shouldHideArrow:_,children:l.jsxRuntimeExports.jsx(re.div,{"data-side":B,"data-align":te,...f,ref:b,style:{...f.style,animation:M?void 0:"none"}})})})});kc.displayName=ps;var Mc="PopperArrow",gv={top:"bottom",right:"left",bottom:"top",left:"right"},_c=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=vv(Mc,r),a=gv[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(pv,{...o,ref:n,style:{...o.style,display:"block"}})})});_c.displayName=Mc;function xv(e){return e!==null}var yv=e=>({name:"transformOrigin",options:e,fn(t){var h,x,y;const{placement:n,rects:r,middlewareData:o}=t,a=((h=o.arrow)==null?void 0:h.centerOffset)!==0,c=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,p]=Lc(n),m={start:"0%",center:"50%",end:"100%"}[p],g=(((x=o.arrow)==null?void 0:x.x)??0)+c/2,v=(((y=o.arrow)==null?void 0:y.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:`${v}px`):u==="left"&&(E=`${r.floating.width+d}px`,f=a?m:`${v}px`),{data:{x:E,y:f}}}});function Lc(e){const[t,n="center"]=e.split("-");return[t,n]}var Ev=Oc,wv=Ic,bv=kc,Rv=_c,Cv="Portal",ms=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?Yn.createPortal(l.jsxRuntimeExports.jsx(re.div,{...r,ref:t}),a):null});ms.displayName=Cv;function Sv(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 Pv="VisuallyHidden",ar=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}}));ar.displayName=Pv;var Kt="right-scroll-bar-position",Xt="width-before-scroll-bar",jv="with-scroll-bars-hidden",Tv="--removed-body-scroll-bar-size";function _r(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Av(e,t){var n=Q.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 $v=typeof window<"u"?i.useLayoutEffect:i.useEffect,$i=new WeakMap;function Fc(e,t){var n=Av(null,function(r){return e.forEach(function(o){return _r(o,r)})});return $v(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)||_r(c,null)}),s.forEach(function(c){o.has(c)||_r(c,a)})}$i.set(n,e)},[e]),n}var Wc=Ma(),Lr=function(){},cr=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Lr,onWheelCapture:Lr,onTouchMoveCapture:Lr}),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,v=e.noIsolation,E=e.inert,f=e.allowPinchZoom,h=e.as,x=h===void 0?"div":h,y=e.gapMode,b=en(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=g,C=Fc([n,t]),S=ie(ie({},b),o);return i.createElement(i.Fragment,null,p&&i.createElement(R,{sideCar:Wc,removeScrollBar:u,shards:m,noIsolation:v,inert:E,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))});cr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};cr.classNames={fullWidth:Xt,zeroRight:Kt};function Nv(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Wa();return t&&e.setAttribute("nonce",t),e}function Ov(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Dv(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Iv=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Nv())&&(Ov(t,n),Dv(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},kv=function(){var e=Iv();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Bc=function(){var e=kv(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Mv={left:0,top:0,right:0,gap:0},Fr=function(e){return parseInt(e||"",10)||0},_v=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[Fr(n),Fr(r),Fr(o)]},Lv=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Mv;var t=_v(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])}},Fv=Bc(),St="data-scroll-locked",Wv=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
332
|
-
|
|
331
|
+
`;function rh({onClick:e,children:t,...n}){return l.jsxRuntimeExports.jsx(nh,{onClick:e,...n,children:t})}const oh=k.div`
|
|
332
|
+
container-type: inline-size;
|
|
333
|
+
`,sh=k.div`
|
|
334
|
+
background-color: ${l.colors.white};
|
|
335
|
+
font-family: 'Inter', sans-serif;
|
|
336
|
+
font-size: 10pt;
|
|
337
|
+
font-style: normal;
|
|
338
|
+
height: 297mm;
|
|
339
|
+
left: 0;
|
|
340
|
+
margin: 0 auto;
|
|
341
|
+
padding: 20mm 15mm 2mm;
|
|
342
|
+
position: absolute;
|
|
343
|
+
top: 0;
|
|
344
|
+
width: 210mm;
|
|
345
|
+
transform: scale(0.4035);
|
|
346
|
+
|
|
347
|
+
@container (min-width: 30rem) {
|
|
348
|
+
transform: scale(0.6058);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
@container (min-width: 48rem) {
|
|
352
|
+
transform: none;
|
|
353
|
+
}
|
|
354
|
+
`,ih=k.p`
|
|
355
|
+
font-size: 9pt;
|
|
356
|
+
height: 8mm;
|
|
357
|
+
line-height: 1.22;
|
|
358
|
+
position: absolute;
|
|
359
|
+
top: 45mm;
|
|
360
|
+
width: 100mm;
|
|
361
|
+
`,ah=k.address`
|
|
362
|
+
font-size: 9pt;
|
|
363
|
+
font-style: normal;
|
|
364
|
+
height: 32mm;
|
|
365
|
+
line-height: 1.22;
|
|
366
|
+
position: absolute;
|
|
367
|
+
top: 72mm;
|
|
368
|
+
width: 85mm;
|
|
369
|
+
`,ch=k.address`
|
|
370
|
+
font-style: normal;
|
|
371
|
+
text-align: right;
|
|
372
|
+
line-height: 1.22;
|
|
373
|
+
width: 50%;
|
|
374
|
+
margin-left: auto;
|
|
375
|
+
`,lh=k.div`
|
|
376
|
+
font-style: normal;
|
|
377
|
+
text-align: right;
|
|
378
|
+
|
|
379
|
+
> *:nth-child(1) {
|
|
380
|
+
bottom: 195.7333333333mm;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
> *:nth-child(2) {
|
|
384
|
+
bottom: 185.149999999mm;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
> *:nth-child(3) {
|
|
388
|
+
bottom: 174.566666665mm;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
> *:nth-child(4) {
|
|
392
|
+
bottom: 163.983333331mm;
|
|
393
|
+
}
|
|
394
|
+
`,uh=k.p`
|
|
395
|
+
height: 42.9166666667mm;
|
|
396
|
+
line-height: 1.22;
|
|
397
|
+
position: absolute;
|
|
398
|
+
right: 15mm;
|
|
399
|
+
width: 95.25mm;
|
|
400
|
+
`,dh=k.p`
|
|
401
|
+
font-style: normal;
|
|
402
|
+
text-align: right;
|
|
403
|
+
height: 42.9166666667mm;
|
|
404
|
+
line-height: 1.22;
|
|
405
|
+
position: absolute;
|
|
406
|
+
right: 15mm;
|
|
407
|
+
width: 95.25mm;
|
|
408
|
+
bottom: 153.872222mm;
|
|
409
|
+
`,fh=k.div`
|
|
410
|
+
font-size: 10pt;
|
|
411
|
+
font-style: normal;
|
|
412
|
+
position: absolute;
|
|
413
|
+
top: 105mm;
|
|
414
|
+
width: 175mm;
|
|
415
|
+
`,ph=k.h1`
|
|
416
|
+
font-size: 10pt;
|
|
417
|
+
font-weight: 700;
|
|
418
|
+
`,mh=k.div`
|
|
419
|
+
line-height: 1.3;
|
|
420
|
+
|
|
421
|
+
& + & {
|
|
422
|
+
margin-bottom: 4mm;
|
|
423
|
+
margin-top: 4mm;
|
|
424
|
+
}
|
|
425
|
+
`,Dr=k.p`
|
|
426
|
+
margin-bottom: 5.2916666667mm;
|
|
427
|
+
margin-top: 5.2916666667mm;
|
|
428
|
+
`;function hh({children:e}){return l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e||"Date"})}function vh({children:e}){return l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e||"Sehr geehrte Damen und Herren"})}function gh({children:e}){return l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e||"Mit freundlichen Grüßen"})}function xh({address:e,children:t}){return l.jsxRuntimeExports.jsx(ih,{children:t||e})}function yh({address:e,children:t}){return l.jsxRuntimeExports.jsx(ah,{children:t||l.jsxRuntimeExports.jsx("span",{dangerouslySetInnerHTML:{__html:e||""}})})}function Eh({address:e,children:t}){return l.jsxRuntimeExports.jsx(ch,{children:t||l.jsxRuntimeExports.jsx("span",{dangerouslySetInnerHTML:{__html:e||""}})})}function wh({identificationFields:e=[],children:t}){return l.jsxRuntimeExports.jsx(lh,{children:t||l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e.map((n,r)=>l.jsxRuntimeExports.jsxs(uh,{children:[n.label,l.jsxRuntimeExports.jsx("br",{}),l.jsxRuntimeExports.jsx("b",{children:n.value})]},r))})})}function bh({date:e,children:t}){return l.jsxRuntimeExports.jsx(dh,{children:t||l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(hh,{}),": ",e]})})}function Rh({letterSubject:e,letterText:t,userFullName:n,children:r}){return l.jsxRuntimeExports.jsx(fh,{children:r||l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(ph,{children:e}),l.jsxRuntimeExports.jsxs(Dr,{children:[l.jsxRuntimeExports.jsx(vh,{}),","]}),l.jsxRuntimeExports.jsx(mh,{children:l.jsxRuntimeExports.jsx("div",{dangerouslySetInnerHTML:{__html:(t==null?void 0:t.replace(/\n/g,"<br>"))||""}})}),l.jsxRuntimeExports.jsx(Dr,{children:l.jsxRuntimeExports.jsx(gh,{})}),l.jsxRuntimeExports.jsx(Dr,{children:n})]})})}function Ch({senderAddressSlim:e,vendorAddress:t,senderAddress:n,identificationFields:r=[],date:o,letterSubject:s,letterText:a,userFullName:c,children:d,style:u,className:p}){return l.jsxRuntimeExports.jsx(oh,{style:u,className:p,children:l.jsxRuntimeExports.jsx(sh,{children:d||l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(xh,{address:e}),l.jsxRuntimeExports.jsx(yh,{address:t}),l.jsxRuntimeExports.jsx(Eh,{address:n}),l.jsxRuntimeExports.jsx(wh,{identificationFields:r}),l.jsxRuntimeExports.jsx(bh,{date:o}),l.jsxRuntimeExports.jsx(Rh,{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 ze(...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(ze(...e),e)}var Zt=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),s=o.find(Ph);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(co,{...r,ref:t,children:i.isValidElement(a)?i.cloneElement(a,void 0,c):null})}return l.jsxRuntimeExports.jsx(co,{...r,ref:t,children:n})});Zt.displayName="Slot";var co=i.forwardRef((e,t)=>{const{children:n,...r}=e;if(i.isValidElement(n)){const o=Th(n);return i.cloneElement(n,{...jh(r,n.props),ref:t?ze(t,o):o})}return i.Children.count(n)>1?i.Children.only(null):null});co.displayName="SlotClone";var Sh=({children:e})=>l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e});function Ph(e){return i.isValidElement(e)&&e.type===Sh}function jh(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 Th(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 fc(e){const t=e+"CollectionProvider",[n,r]=ft(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=v=>{const{scope:E,children:f}=v,h=Q.useRef(null),x=Q.useRef(new Map).current;return l.jsxRuntimeExports.jsx(o,{scope:E,itemMap:x,collectionRef:h,children:f})};a.displayName=t;const c=e+"CollectionSlot",d=Q.forwardRef((v,E)=>{const{scope:f,children:h}=v,x=s(c,f),y=ne(E,x.collectionRef);return l.jsxRuntimeExports.jsx(Zt,{ref:y,children:h})});d.displayName=c;const u=e+"CollectionItemSlot",p="data-radix-collection-item",m=Q.forwardRef((v,E)=>{const{scope:f,children:h,...x}=v,y=Q.useRef(null),b=ne(E,y),R=s(u,f);return Q.useEffect(()=>(R.itemMap.set(y,{ref:y,...x}),()=>void R.itemMap.delete(y))),l.jsxRuntimeExports.jsx(Zt,{[p]:"",ref:b,children:h})});m.displayName=u;function g(v){const E=s(e+"CollectionConsumer",v);return Q.useCallback(()=>{const h=E.collectionRef.current;if(!h)return[];const x=Array.from(h.querySelectorAll(`[${p}]`));return Array.from(E.itemMap.values()).sort((R,C)=>x.indexOf(R.ref.current)-x.indexOf(C.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:a,Slot:d,ItemSlot:m},g,r]}var Ah=i.createContext(void 0);function $h(e){const t=i.useContext(Ah);return e||t||"ltr"}var Nh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],re=Nh.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 Oh="DismissableLayer",lo="dismissableLayer.update",Dh="dismissableLayer.pointerDownOutside",Ih="dismissableLayer.focusOutside",gi,pc=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mc=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(pc),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),E=ne(t,w=>m(w)),f=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(h),y=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=_h(w=>{const j=w.target,$=[...u.branches].some(I=>I.contains(j));!R||$||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=Lh(w=>{const j=w.target;[...u.branches].some(I=>I.contains(j))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return Jn(w=>{y===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=()=>v({});return document.addEventListener(lo,w),()=>document.removeEventListener(lo,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)})});mc.displayName=Oh;var kh="DismissableLayerBranch",Mh=i.forwardRef((e,t)=>{const n=i.useContext(pc),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})});Mh.displayName=kh;function _h(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(){hc(Dh,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 Lh(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&&hc(Ih,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(lo);document.dispatchEvent(e)}function hc(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 Ir="focusScope.autoFocusOnMount",kr="focusScope.autoFocusOnUnmount",yi={bubbles:!1,cancelable:!0},Fh="FocusScope",vc=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)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let f=function(b){if(v.paused||!c)return;const R=b.target;c.contains(R)?m.current=R:Ve(m.current,{select:!0})},h=function(b){if(v.paused||!c)return;const R=b.relatedTarget;R!==null&&(c.contains(R)||Ve(m.current,{select:!0}))},x=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",h);const y=new MutationObserver(x);return c&&y.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",h),y.disconnect()}}},[r,c,v.paused]),i.useEffect(()=>{if(c){wi.add(v);const f=document.activeElement;if(!c.contains(f)){const x=new CustomEvent(Ir,yi);c.addEventListener(Ir,u),c.dispatchEvent(x),x.defaultPrevented||(Wh(zh(gc(c)),{select:!0}),document.activeElement===f&&Ve(c))}return()=>{c.removeEventListener(Ir,u),setTimeout(()=>{const x=new CustomEvent(kr,yi);c.addEventListener(kr,p),c.dispatchEvent(x),x.defaultPrevented||Ve(f??document.body,{select:!0}),c.removeEventListener(kr,p),wi.remove(v)},0)}}},[c,u,p,v]);const E=i.useCallback(f=>{if(!n&&!r||v.paused)return;const h=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,x=document.activeElement;if(h&&x){const y=f.currentTarget,[b,R]=Bh(y);b&&R?!f.shiftKey&&x===R?(f.preventDefault(),n&&Ve(b,{select:!0})):f.shiftKey&&x===b&&(f.preventDefault(),n&&Ve(R,{select:!0})):x===y&&f.preventDefault()}},[n,r,v.paused]);return l.jsxRuntimeExports.jsx(re.div,{tabIndex:-1,...a,ref:g,onKeyDown:E})});vc.displayName=Fh;function Wh(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ve(r,{select:t}),document.activeElement!==n)return}function Bh(e){const t=gc(e),n=Ei(t,e),r=Ei(t.reverse(),e);return[n,r]}function gc(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(!Vh(n,{upTo:t}))return n}function Vh(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 Hh(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&&Hh(e)&&t&&e.select()}}var wi=Uh();function Uh(){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 Yh=["top","right","bottom","left"],Ye=Math.min,ge=Math.max,Wn=Math.round,hn=Math.floor,$e=e=>({x:e,y:e}),Kh={left:"right",right:"left",bottom:"top",top:"bottom"},Xh={start:"end",end:"start"};function uo(e,t,n){return ge(e,Ye(t,n))}function _e(e,t){return typeof e=="function"?e(t):e}function Le(e){return e.split("-")[0]}function Lt(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(Le(e))?"y":"x"}function Jo(e){return Zo(Ke(e))}function Gh(e,t,n){n===void 0&&(n=!1);const r=Lt(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=Bn(a)),[a,Bn(a)]}function qh(e){const t=Bn(e);return[fo(e),t,fo(t)]}function fo(e){return e.replace(/start|end/g,t=>Xh[t])}function Zh(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 Qh(e,t,n,r){const o=Lt(e);let s=Zh(Le(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(fo)))),s}function Bn(e){return e.replace(/left|right|bottom|top/g,t=>Kh[t])}function Jh(e){return{top:0,right:0,bottom:0,left:0,...e}}function xc(e){return typeof e!="number"?Jh(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=Le(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 v;switch(d){case"top":v={x:p,y:r.y-o.height};break;case"bottom":v={x:p,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:m};break;case"left":v={x:r.x-o.width,y:m};break;default:v={x:r.x,y:r.y}}switch(Lt(t)){case"start":v[a]-=g*(n&&u?-1:1);break;case"end":v[a]+=g*(n&&u?-1:1);break}return v}const ev=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,v={},E=0;for(let f=0;f<c.length;f++){const{name:h,fn:x}=c[f],{x:y,y:b,data:R,reset:C}=await x({x:p,y:m,initialPlacement:r,placement:g,strategy:o,middlewareData:v,rects:u,platform:a,elements:{reference:e,floating:t}});p=y??p,m=b??m,v={...v,[h]:{...v[h],...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:v}};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:v=0}=_e(t,e),E=xc(v),h=c[g?m==="floating"?"reference":"floating":m],x=Vn(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(h)))==null||n?h:h.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,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:y,offsetParent:b,strategy:d}):y);return{top:(x.top-C.top+E.top)/R.y,bottom:(C.bottom-x.bottom+E.bottom)/R.y,left:(x.left-C.left+E.left)/R.x,right:(C.right-x.right+E.right)/R.x}}const tv=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}=_e(e,t)||{};if(u==null)return{};const m=xc(p),g={x:n,y:r},v=Jo(o),E=Qo(v),f=await a.getDimensions(u),h=v==="y",x=h?"top":"left",y=h?"bottom":"right",b=h?"clientHeight":"clientWidth",R=s.reference[E]+s.reference[v]-g[v]-s.floating[E],C=g[v]-s.reference[v],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 j=R/2-C/2,$=w/2-f[E]/2-1,I=Ye(m[x],$),z=Ye(m[y],$),Y=I,W=w-f[E]-z,T=w/2-f[E]/2+j,B=uo(Y,T,W),M=!d.arrow&&Lt(o)!=null&&T!==B&&s.reference[E]/2-(T<Y?I:z)-f[E]/2<0,_=M?T<Y?T-Y:T-W:0;return{[v]:g[v]+_,data:{[v]:B,centerOffset:T-B-_,...M&&{alignmentOffset:_}},reset:M}}}),nv=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:v="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:f=!0,...h}=_e(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=Le(o),y=Ke(c),b=Le(c)===c,R=await(d.isRTL==null?void 0:d.isRTL(u.floating)),C=g||(b||!f?[Bn(c)]:qh(c)),S=E!=="none";!g&&S&&C.push(...Qh(c,f,E,R));const w=[c,...C],j=await Qt(t,h),$=[];let I=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&$.push(j[x]),m){const T=Gh(o,a,R);$.push(j[T[0]],j[T[1]])}if(I=[...I,{placement:o,overflows:$}],!$.every(T=>T<=0)){var z,Y;const T=(((z=s.flip)==null?void 0:z.index)||0)+1,B=w[T];if(B)return{data:{index:T,overflows:I},reset:{placement:B}};let M=(Y=I.filter(_=>_.overflows[0]<=0).sort((_,N)=>_.overflows[1]-N.overflows[1])[0])==null?void 0:Y.placement;if(!M)switch(v){case"bestFit":{var W;const _=(W=I.filter(N=>{if(S){const V=Ke(N.placement);return V===y||V==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(V=>V>0).reduce((V,te)=>V+te,0)]).sort((N,V)=>N[1]-V[1])[0])==null?void 0:W[0];_&&(M=_);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 Yh.some(t=>e[t]>=0)}const rv=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=_e(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 ov(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Le(n),c=Lt(n),d=Ke(n)==="y",u=["left","top"].includes(a)?-1:1,p=s&&d?-1:1,m=_e(t,e);let{mainAxis:g,crossAxis:v,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"&&(v=c==="end"?E*-1:E),d?{x:v*p,y:g*u}:{x:g*u,y:v*p}}const sv=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 ov(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}}}}},iv=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:h=>{let{x,y}=h;return{x,y}}},...d}=_e(e,t),u={x:n,y:r},p=await Qt(t,d),m=Ke(Le(o)),g=Zo(m);let v=u[g],E=u[m];if(s){const h=g==="y"?"top":"left",x=g==="y"?"bottom":"right",y=v+p[h],b=v-p[x];v=uo(y,v,b)}if(a){const h=m==="y"?"top":"left",x=m==="y"?"bottom":"right",y=E+p[h],b=E-p[x];E=uo(y,E,b)}const f=c.fn({...t,[g]:v,[m]:E});return{...f,data:{x:f.x-n,y:f.y-r,enabled:{[g]:s,[m]:a}}}}}},av=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}=_e(e,t),p={x:n,y:r},m=Ke(o),g=Zo(m);let v=p[g],E=p[m];const f=_e(c,t),h=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]+h.mainAxis,C=s.reference[g]+s.reference[b]-h.mainAxis;v<R?v=R:v>C&&(v=C)}if(u){var x,y;const b=g==="y"?"width":"height",R=["top","left"].includes(Le(o)),C=s.reference[m]-s.floating[b]+(R&&((x=a.offset)==null?void 0:x[m])||0)+(R?0:h.crossAxis),S=s.reference[m]+s.reference[b]+(R?0:((y=a.offset)==null?void 0:y[m])||0)-(R?h.crossAxis:0);E<C?E=C:E>S&&(E=S)}return{[g]:v,[m]:E}}}},cv=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}=_e(e,t),p=await Qt(t,u),m=Le(o),g=Lt(o),v=Ke(o)==="y",{width:E,height:f}=s.floating;let h,x;m==="top"||m==="bottom"?(h=m,x=g===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(x=m,h=g==="end"?"top":"bottom");const y=f-p.top-p.bottom,b=E-p.left-p.right,R=Ye(f-p[h],y),C=Ye(E-p[x],b),S=!t.middlewareData.shift;let w=R,j=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(w=y),S&&!g){const I=ge(p.left,0),z=ge(p.right,0),Y=ge(p.top,0),W=ge(p.bottom,0);v?j=E-2*(I!==0||z!==0?I+z:ge(p.left,p.right)):w=f-2*(Y!==0||W!==0?Y+W:ge(p.top,p.bottom))}await d({...t,availableWidth:j,availableHeight:w});const $=await a.getDimensions(c.floating);return E!==$.width||f!==$.height?{reset:{rects:!0}}:{}}}};function or(){return typeof window<"u"}function Ft(e){return yc(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=(yc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function yc(e){return or()?e instanceof Node||e instanceof ye(e).Node:!1}function Ce(e){return or()?e instanceof Element||e instanceof ye(e).Element:!1}function Ne(e){return or()?e instanceof HTMLElement||e instanceof ye(e).HTMLElement:!1}function Pi(e){return!or()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ye(e).ShadowRoot}function tn(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 lv(e){return["table","td","th"].includes(Ft(e))}function sr(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 uv(e){let t=Xe(e);for(;Ne(t)&&!Ot(t);){if(es(t))return t;if(sr(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 ir(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||Pi(e)&&e.host||Oe(e);return Pi(t)?t.host:t}function Ec(e){const t=Xe(e);return Ot(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ne(t)&&tn(t)?t:Ec(t)}function Jt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ec(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=ye(o);if(s){const c=po(a);return t.concat(a,a.visualViewport||[],tn(o)?o:[],c&&n?Jt(c):[])}return t.concat(o,Jt(o,[],n))}function po(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wc(e){const t=Se(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ne(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=Wn(n)!==s||Wn(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(!Ne(t))return $e(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=wc(t);let a=(s?Wn(n.width):n.width)/r,c=(s?Wn(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const dv=$e(0);function bc(e){const t=ye(e);return!ts()||!t.visualViewport?dv:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function fv(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=$e(1);t&&(r?Ce(r)&&(a=Ct(r)):a=Ct(e));const c=fv(s,n,r)?bc(s):$e(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),v=r&&Ce(r)?ye(r):r;let E=g,f=po(E);for(;f&&r&&v!==E;){const h=Ct(f),x=f.getBoundingClientRect(),y=Se(f),b=x.left+(f.clientLeft+parseFloat(y.paddingLeft))*h.x,R=x.top+(f.clientTop+parseFloat(y.paddingTop))*h.y;d*=h.x,u*=h.y,p*=h.x,m*=h.y,d+=b,u+=R,E=ye(f),f=po(E)}}return Vn({width:p,height:m,x:d,y:u})}function rs(e,t){const n=ir(e).scrollLeft;return t?t.left+n:at(Oe(e)).left+n}function Rc(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 pv(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=Oe(r),c=t?sr(t.floating):!1;if(r===a||c&&s)return n;let d={scrollLeft:0,scrollTop:0},u=$e(1);const p=$e(0),m=Ne(r);if((m||!m&&!s)&&((Ft(r)!=="body"||tn(a))&&(d=ir(r)),Ne(r))){const v=at(r);u=Ct(r),p.x=v.x+r.clientLeft,p.y=v.y+r.clientTop}const g=a&&!m&&!s?Rc(a,d,!0):$e(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 mv(e){return Array.from(e.getClientRects())}function hv(e){const t=Oe(e),n=ir(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 vv(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 gv(e,t){const n=at(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Ne(e)?Ct(e):$e(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 ji(e,t,n){let r;if(t==="viewport")r=vv(e,n);else if(t==="document")r=hv(Oe(e));else if(Ce(t))r=gv(t,n);else{const o=bc(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Vn(r)}function Cc(e,t){const n=Xe(e);return n===t||!Ce(n)||Ot(n)?!1:Se(n).position==="fixed"||Cc(n,t)}function xv(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)||tn(a)&&!d&&Cc(e,a))?r=r.filter(p=>p!==a):o=c,a=Xe(a)}return t.set(e,r),r}function yv(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?sr(t)?[]:xv(t,this._c):[].concat(n),r],c=a[0],d=a.reduce((u,p)=>{const m=ji(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},ji(t,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Ev(e){const{width:t,height:n}=wc(e);return{width:t,height:n}}function wv(e,t,n){const r=Ne(t),o=Oe(t),s=n==="fixed",a=at(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const d=$e(0);if(r||!r&&!s)if((Ft(t)!=="body"||tn(o))&&(c=ir(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?Rc(o,c):$e(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 Mr(e){return Se(e).position==="static"}function Ti(e,t){if(!Ne(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 Sc(e,t){const n=ye(e);if(sr(e))return n;if(!Ne(e)){let o=Xe(e);for(;o&&!Ot(o);){if(Ce(o)&&!Mr(o))return o;o=Xe(o)}return n}let r=Ti(e,t);for(;r&&lv(r)&&Mr(r);)r=Ti(r,t);return r&&Ot(r)&&Mr(r)&&!es(r)?n:r||uv(e)||n}const bv=async function(e){const t=this.getOffsetParent||Sc,n=this.getDimensions,r=await n(e.floating);return{reference:wv(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Rv(e){return Se(e).direction==="rtl"}const Cv={convertOffsetParentRelativeRectToViewportRelativeRect:pv,getDocumentElement:Oe,getClippingRect:yv,getOffsetParent:Sc,getElementRects:bv,getClientRects:mv,getDimensions:Ev,getScale:Ct,isElement:Ce,isRTL:Rv};function Pc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Sv(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:v}=u;if(c||t(),!g||!v)return;const E=hn(m),f=hn(o.clientWidth-(p+g)),h=hn(o.clientHeight-(m+v)),x=hn(p),b={rootMargin:-E+"px "+-f+"px "+-h+"px "+-x+"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&&!Pc(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(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const m=u&&c?Sv(u,n):null;let g=-1,v=null;a&&(v=new ResizeObserver(x=>{let[y]=x;y&&y.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var b;(b=v)==null||b.observe(t)})),n()}),u&&!d&&v.observe(u),v.observe(t));let E,f=d?at(e):null;d&&h();function h(){const x=at(e);f&&!Pc(f,x)&&n(),f=x,E=requestAnimationFrame(h)}return n(),()=>{var x;p.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),m==null||m(),(x=v)==null||x.disconnect(),v=null,d&&cancelAnimationFrame(E)}}const Pv=sv,jv=iv,Tv=nv,Av=cv,$v=rv,Ai=tv,Nv=av,Ov=(e,t,n)=>{const r=new Map,o={platform:Cv,...n},s={...o.platform,_c:r};return ev(e,t,{...o,platform:s})};var $n=typeof document<"u"?Q.useLayoutEffect:Q.useEffect;function Hn(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(!Hn(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)&&!Hn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function jc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $i(e,t){const n=jc(e);return Math.round(t*n)/n}function _r(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,v]=i.useState(r);Hn(g,r)||v(r);const[E,f]=i.useState(null),[h,x]=i.useState(null),y=i.useCallback(N=>{N!==S.current&&(S.current=N,f(N))},[]),b=i.useCallback(N=>{N!==w.current&&(w.current=N,x(N))},[]),R=s||E,C=a||h,S=i.useRef(null),w=i.useRef(null),j=i.useRef(p),$=d!=null,I=_r(d),z=_r(o),Y=_r(u),W=i.useCallback(()=>{if(!S.current||!w.current)return;const N={placement:t,strategy:n,middleware:g};z.current&&(N.platform=z.current),Ov(S.current,w.current,N).then(V=>{const te={...V,isPositioned:Y.current!==!1};T.current&&!Hn(j.current,te)&&(j.current=te,Ze.flushSync(()=>{m(te)}))})},[g,t,n,z,Y]);$n(()=>{u===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,m(N=>({...N,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(I.current)return I.current(R,C,W);W()}},[R,C,W,I,$]);const B=i.useMemo(()=>({reference:S,floating:w,setReference:y,setFloating:b}),[y,b]),M=i.useMemo(()=>({reference:R,floating:C}),[R,C]),_=i.useMemo(()=>{const N={position:n,left:0,top:0};if(!M.floating)return N;const V=$i(M.floating,p.x),te=$i(M.floating,p.y);return c?{...N,transform:"translate("+V+"px, "+te+"px)",...jc(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:V,top:te}},[n,c,M.floating,p.x,p.y]);return i.useMemo(()=>({...p,update:W,refs:B,elements:M,floatingStyles:_}),[p,W,B,M,_])}const Dv=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)=>({...Pv(e),options:[e,t]}),as=(e,t)=>({...jv(e),options:[e,t]}),cs=(e,t)=>({...Nv(e),options:[e,t]}),ls=(e,t)=>({...Tv(e),options:[e,t]}),us=(e,t)=>({...Av(e),options:[e,t]}),ds=(e,t)=>({...$v(e),options:[e,t]}),fs=(e,t)=>({...Dv(e),options:[e,t]});var Iv="Arrow",Tc=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"})})});Tc.displayName=Iv;var kv=Tc;function Ac(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",[$c,Nc]=ft(ps),[Mv,Oc]=$c(ps),Dc=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return l.jsxRuntimeExports.jsx(Mv,{scope:t,anchor:r,onAnchorChange:o,children:n})};Dc.displayName=ps;var Ic="PopperAnchor",kc=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Oc(Ic,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})});kc.displayName=Ic;var ms="PopperContent",[_v,Lv]=$c(ms),Mc=i.forwardRef((e,t)=>{var A,F,H,G,Z,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:v="optimized",onPlaced:E,...f}=e,h=Oc(ms,n),[x,y]=i.useState(null),b=ne(t,oe=>y(oe)),[R,C]=i.useState(null),S=Ac(R),w=(S==null?void 0:S.width)??0,j=(S==null?void 0:S.height)??0,$=r+(s!=="center"?"-"+s:""),I=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},z=Array.isArray(u)?u:[u],Y=z.length>0,W={padding:I,boundary:z.filter(Wv),altBoundary:Y},{refs:T,floatingStyles:B,placement:M,isPositioned:_,middlewareData:N}=ss({strategy:"fixed",placement:$,whileElementsMounted:(...oe)=>os(...oe,{animationFrame:v==="always"}),elements:{reference:h.anchor},middleware:[is({mainAxis:o+j,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:Ie})=>{const{width:ke,height:Vt}=de.reference,pe=oe.floating.style;pe.setProperty("--radix-popper-available-width",`${De}px`),pe.setProperty("--radix-popper-available-height",`${Ie}px`),pe.setProperty("--radix-popper-anchor-width",`${ke}px`),pe.setProperty("--radix-popper-anchor-height",`${Vt}px`)}}),R&&fs({element:R,padding:c}),Bv({arrowWidth:w,arrowHeight:j}),g&&ds({strategy:"referenceHidden",...W})]}),[V,te]=Fc(M),J=ae(E);ce(()=>{_&&(J==null||J())},[_,J]);const P=(A=N.arrow)==null?void 0:A.x,D=(F=N.arrow)==null?void 0:F.y,L=((H=N.arrow)==null?void 0:H.centerOffset)!==0,[O,U]=i.useState();return ce(()=>{x&&U(window.getComputedStyle(x).zIndex)},[x]),l.jsxRuntimeExports.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:_?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(G=N.transformOrigin)==null?void 0:G.x,(Z=N.transformOrigin)==null?void 0:Z.y].join(" "),...((K=N.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsxRuntimeExports.jsx(_v,{scope:n,placedSide:V,onArrowChange:C,arrowX:P,arrowY:D,shouldHideArrow:L,children:l.jsxRuntimeExports.jsx(re.div,{"data-side":V,"data-align":te,...f,ref:b,style:{...f.style,animation:_?void 0:"none"}})})})});Mc.displayName=ms;var _c="PopperArrow",Fv={top:"bottom",right:"left",bottom:"top",left:"right"},Lc=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Lv(_c,r),a=Fv[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(kv,{...o,ref:n,style:{...o.style,display:"block"}})})});Lc.displayName=_c;function Wv(e){return e!==null}var Bv=e=>({name:"transformOrigin",options:e,fn(t){var h,x,y;const{placement:n,rects:r,middlewareData:o}=t,a=((h=o.arrow)==null?void 0:h.centerOffset)!==0,c=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,p]=Fc(n),m={start:"0%",center:"50%",end:"100%"}[p],g=(((x=o.arrow)==null?void 0:x.x)??0)+c/2,v=(((y=o.arrow)==null?void 0:y.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:`${v}px`):u==="left"&&(E=`${r.floating.width+d}px`,f=a?m:`${v}px`),{data:{x:E,y:f}}}});function Fc(e){const[t,n="center"]=e.split("-");return[t,n]}var Vv=Dc,Hv=kc,Uv=Mc,zv=Lc,Yv="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?Yn.createPortal(l.jsxRuntimeExports.jsx(re.div,{...r,ref:t}),a):null});hs.displayName=Yv;function Kv(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 Xv="VisuallyHidden",ar=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}}));ar.displayName=Xv;var Kt="right-scroll-bar-position",Xt="width-before-scroll-bar",Gv="with-scroll-bars-hidden",qv="--removed-body-scroll-bar-size";function Lr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Zv(e,t){var n=Q.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 Qv=typeof window<"u"?i.useLayoutEffect:i.useEffect,Ni=new WeakMap;function Wc(e,t){var n=Zv(null,function(r){return e.forEach(function(o){return Lr(o,r)})});return Qv(function(){var r=Ni.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(c){s.has(c)||Lr(c,null)}),s.forEach(function(c){o.has(c)||Lr(c,a)})}Ni.set(n,e)},[e]),n}var Bc=_a(),Fr=function(){},cr=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Fr,onWheelCapture:Fr,onTouchMoveCapture:Fr}),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,v=e.noIsolation,E=e.inert,f=e.allowPinchZoom,h=e.as,x=h===void 0?"div":h,y=e.gapMode,b=en(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=g,C=Wc([n,t]),S=ie(ie({},b),o);return i.createElement(i.Fragment,null,p&&i.createElement(R,{sideCar:Bc,removeScrollBar:u,shards:m,noIsolation:v,inert:E,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))});cr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};cr.classNames={fullWidth:Xt,zeroRight:Kt};function Jv(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ba();return t&&e.setAttribute("nonce",t),e}function eg(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function tg(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ng=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Jv())&&(eg(t,n),tg(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rg=function(){var e=ng();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Vc=function(){var e=rg(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},og={left:0,top:0,right:0,gap:0},Wr=function(e){return parseInt(e||"",10)||0},sg=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[Wr(n),Wr(r),Wr(o)]},ig=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return og;var t=sg(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])}},ag=Vc(),St="data-scroll-locked",cg=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
429
|
+
.`.concat(Gv,` {
|
|
333
430
|
overflow: hidden `).concat(r,`;
|
|
334
431
|
padding-right: `).concat(c,"px ").concat(r,`;
|
|
335
432
|
}
|
|
@@ -363,12 +460,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
363
460
|
}
|
|
364
461
|
|
|
365
462
|
body[`).concat(St,`] {
|
|
366
|
-
`).concat(
|
|
463
|
+
`).concat(qv,": ").concat(c,`px;
|
|
367
464
|
}
|
|
368
|
-
`)},
|
|
465
|
+
`)},Oi=function(){var e=parseInt(document.body.getAttribute(St)||"0",10);return isFinite(e)?e:0},lg=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())}},[])},Hc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;lg();var s=i.useMemo(function(){return ig(o)},[o]);return i.createElement(ag,{styles:cg(s,!t,o,n?"":"!important")})},mo=!1;if(typeof window<"u")try{var vn=Object.defineProperty({},"passive",{get:function(){return mo=!0,!0}});window.addEventListener("test",vn,vn),window.removeEventListener("test",vn,vn)}catch{mo=!1}var gt=mo?{passive:!1}:!1,ug=function(e){return e.tagName==="TEXTAREA"},Uc=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ug(e)&&n[t]==="visible")},dg=function(e){return Uc(e,"overflowY")},fg=function(e){return Uc(e,"overflowX")},Di=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=zc(e,r);if(o){var s=Yc(e,r),a=s[1],c=s[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},pg=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},mg=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},zc=function(e,t){return e==="v"?dg(t):fg(t)},Yc=function(e,t){return e==="v"?pg(t):mg(t)},hg=function(e,t){return e==="h"&&t==="rtl"?-1:1},vg=function(e,t,n,r,o){var s=hg(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 v=Yc(e,c),E=v[0],f=v[1],h=v[2],x=f-h-s*E;(E||x)&&zc(e,c)&&(m+=x,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},gn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ii=function(e){return[e.deltaX,e.deltaY]},ki=function(e){return e&&"current"in e?e.current:e},gg=function(e,t){return e[0]===t[0]&&e[1]===t[1]},xg=function(e){return`
|
|
369
466
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
370
467
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
371
|
-
`)},Zv=0,xt=[];function Qv(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(Zv++)[0],s=i.useState(Wo)[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=Fo([e.lockRef.current],(e.shards||[]).map(Ii),!0).filter(Boolean);return f.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(f,h){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!a.current.allowPinchZoom;var x=gn(f),y=n.current,b="deltaX"in f?f.deltaX:y[0]-x[0],R="deltaY"in f?f.deltaY:y[1]-x[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 j=Oi(w,S);if(!j)return!0;if(j?C=w:(C=w==="v"?"h":"v",j=Oi(w,S)),!j)return!1;if(!r.current&&"changedTouches"in f&&(b||R)&&(r.current=C),!C)return!0;var $=r.current||C;return Xv($,h,f,$==="h"?b:R,!0)},[]),d=i.useCallback(function(f){var h=f;if(!(!xt.length||xt[xt.length-1]!==s)){var x="deltaY"in h?Di(h):gn(h),y=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&Gv(C.delta,x)})[0];if(y&&y.should){h.cancelable&&h.preventDefault();return}if(!y){var b=(a.current.shards||[]).map(Ii).filter(Boolean).filter(function(C){return C.contains(h.target)}),R=b.length>0?c(h,b[0]):!a.current.noIsolation;R&&h.cancelable&&h.preventDefault()}}},[]),u=i.useCallback(function(f,h,x,y){var b={name:f,delta:h,target:x,should:y,shadowParent:Jv(x)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(R){return R!==b})},1)},[]),p=i.useCallback(function(f){n.current=gn(f),r.current=void 0},[]),m=i.useCallback(function(f){u(f.type,Di(f),f.target,c(f,e.lockRef.current))},[]),g=i.useCallback(function(f){u(f.type,gn(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 v=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(s,{styles:qv(o)}):null,v?i.createElement(Vc,{gapMode:e.gapMode}):null)}function Jv(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const eg=La(Wc,Qv);var Yc=i.forwardRef(function(e,t){return i.createElement(cr,ie({},e,{ref:t,sideCar:eg}))});Yc.classNames=cr.classNames;var tg=[" ","Enter","ArrowUp","ArrowDown"],ng=[" ","Enter"],nn="Select",[lr,ur,rg]=dc(nn),[Wt,qw]=ft(nn,[rg,$c]),dr=$c(),[og,Qe]=Wt(nn),[sg,ig]=Wt(nn),Kc=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:v,form:E}=e,f=dr(t),[h,x]=i.useState(null),[y,b]=i.useState(null),[R,C]=i.useState(!1),S=ch(u),[w=!1,j]=qt({prop:r,defaultProp:o,onChange:s}),[$,I]=qt({prop:a,defaultProp:c,onChange:d}),U=i.useRef(null),Y=h?E||!!h.closest("form"):!0,[F,T]=i.useState(new Set),W=Array.from(F).map(k=>k.props.value).join(";");return l.jsxRuntimeExports.jsx(Ev,{...f,children:l.jsxRuntimeExports.jsxs(og,{required:v,scope:t,trigger:h,onTriggerChange:x,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:R,onValueNodeHasChildrenChange:C,contentId:xe(),value:$,onValueChange:I,open:w,onOpenChange:j,dir:S,triggerPointerDownPosRef:U,disabled:g,children:[l.jsxRuntimeExports.jsx(lr.Provider,{scope:t,children:l.jsxRuntimeExports.jsx(sg,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(k=>{T(M=>new Set(M).add(k))},[]),onNativeOptionRemove:i.useCallback(k=>{T(M=>{const N=new Set(M);return N.delete(k),N})},[]),children:n})}),Y?l.jsxRuntimeExports.jsxs(xl,{"aria-hidden":!0,required:v,tabIndex:-1,name:p,autoComplete:m,value:$,onChange:k=>I(k.target.value),disabled:g,form:E,children:[$===void 0?l.jsxRuntimeExports.jsx("option",{value:""}):null,Array.from(F)]},W):null]})})};Kc.displayName=nn;var Xc="SelectTrigger",Gc=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=dr(n),a=Qe(Xc,n),c=a.disabled||r,d=ne(t,a.onTriggerChange),u=ur(n),p=i.useRef("touch"),[m,g,v]=yl(f=>{const h=u().filter(b=>!b.disabled),x=h.find(b=>b.value===a.value),y=El(h,f,x);y!==void 0&&a.onValueChange(y.value)}),E=f=>{c||(a.onOpenChange(!0),v()),f&&(a.triggerPointerDownPosRef.current={x:Math.round(f.pageX),y:Math.round(f.pageY)})};return l.jsxRuntimeExports.jsx(wv,{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":gl(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 h=f.target;h.hasPointerCapture(f.pointerId)&&h.releasePointerCapture(f.pointerId),f.button===0&&f.ctrlKey===!1&&f.pointerType==="mouse"&&(E(f),f.preventDefault())}),onKeyDown:X(o.onKeyDown,f=>{const h=m.current!=="";!(f.ctrlKey||f.altKey||f.metaKey)&&f.key.length===1&&g(f.key),!(h&&f.key===" ")&&tg.includes(f.key)&&(E(),f.preventDefault())})})})});Gc.displayName=Xc;var qc="SelectValue",Zc=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...c}=e,d=Qe(qc,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:gl(d.value)?l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:a}):s})});Zc.displayName=qc;var ag="SelectIcon",Qc=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||"▼"})});Qc.displayName=ag;var cg="SelectPortal",Jc=e=>l.jsxRuntimeExports.jsx(ms,{asChild:!0,...e});Jc.displayName=cg;var ct="SelectContent",el=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(tl,{scope:e.__scopeSelect,children:l.jsxRuntimeExports.jsx(lr.Slot,{scope:e.__scopeSelect,children:l.jsxRuntimeExports.jsx("div",{children:e.children})})}),s):null}return l.jsxRuntimeExports.jsx(nl,{...e,ref:t})});el.displayName=ct;var be=10,[tl,Je]=Wt(ct),lg="SelectContentImpl",nl=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:v,sticky:E,hideWhenDetached:f,avoidCollisions:h,...x}=e,y=Qe(ct,n),[b,R]=i.useState(null),[C,S]=i.useState(null),w=ne(t,A=>R(A)),[j,$]=i.useState(null),[I,U]=i.useState(null),Y=ur(n),[F,T]=i.useState(!1),W=i.useRef(!1);i.useEffect(()=>{if(b)return nr(b)},[b]),ka();const k=i.useCallback(A=>{const[L,...V]=Y().map(K=>K.ref.current),[G]=V.slice(-1),Z=document.activeElement;for(const K of A)if(K===Z||(K==null||K.scrollIntoView({block:"nearest"}),K===L&&C&&(C.scrollTop=0),K===G&&C&&(C.scrollTop=C.scrollHeight),K==null||K.focus(),document.activeElement!==Z))return},[Y,C]),M=i.useCallback(()=>k([j,b]),[k,j,b]);i.useEffect(()=>{F&&M()},[F,M]);const{onOpenChange:N,triggerPointerDownPosRef:B}=y;i.useEffect(()=>{if(b){let A={x:0,y:0};const L=G=>{var Z,K;A={x:Math.abs(Math.round(G.pageX)-(((Z=B.current)==null?void 0:Z.x)??0)),y:Math.abs(Math.round(G.pageY)-(((K=B.current)==null?void 0:K.y)??0))}},V=G=>{A.x<=10&&A.y<=10?G.preventDefault():b.contains(G.target)||N(!1),document.removeEventListener("pointermove",L),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",L),document.addEventListener("pointerup",V,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",L),document.removeEventListener("pointerup",V,{capture:!0})}}},[b,N,B]),i.useEffect(()=>{const A=()=>N(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[N]);const[te,J]=yl(A=>{const L=Y().filter(Z=>!Z.disabled),V=L.find(Z=>Z.ref.current===document.activeElement),G=El(L,A,V);G&&setTimeout(()=>G.ref.current.focus())}),P=i.useCallback((A,L,V)=>{const G=!W.current&&!V;(y.value!==void 0&&y.value===L||G)&&($(A),G&&(W.current=!0))},[y.value]),D=i.useCallback(()=>b==null?void 0:b.focus(),[b]),_=i.useCallback((A,L,V)=>{const G=!W.current&&!V;(y.value!==void 0&&y.value===L||G)&&U(A)},[y.value]),O=r==="popper"?mo:rl,H=O===mo?{side:c,sideOffset:d,align:u,alignOffset:p,arrowPadding:m,collisionBoundary:g,collisionPadding:v,sticky:E,hideWhenDetached:f,avoidCollisions:h}:{};return l.jsxRuntimeExports.jsx(tl,{scope:n,content:b,viewport:C,onViewportChange:S,itemRefCallback:P,selectedItem:j,onItemLeave:D,itemTextRefCallback:_,focusSelectedItem:M,selectedItemText:I,position:r,isPositioned:F,searchRef:te,children:l.jsxRuntimeExports.jsx(Yc,{as:Zt,allowPinchZoom:!0,children:l.jsxRuntimeExports.jsx(hc,{asChild:!0,trapped:y.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:X(o,A=>{var L;(L=y.trigger)==null||L.focus({preventScroll:!0}),A.preventDefault()}),children:l.jsxRuntimeExports.jsx(pc,{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,...H,onPlaced:()=>T(!0),ref:w,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:X(x.onKeyDown,A=>{const L=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!L&&A.key.length===1&&J(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let G=Y().filter(Z=>!Z.disabled).map(Z=>Z.ref.current);if(["ArrowUp","End"].includes(A.key)&&(G=G.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const Z=A.target,K=G.indexOf(Z);G=G.slice(K+1)}setTimeout(()=>k(G)),A.preventDefault()}})})})})})})});nl.displayName=lg;var ug="SelectItemAlignedPosition",rl=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=ur(n),v=i.useRef(!1),E=i.useRef(!0),{viewport:f,selectedItem:h,selectedItemText:x,focusSelectedItem:y}=a,b=i.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&u&&f&&h&&x){const w=s.trigger.getBoundingClientRect(),j=u.getBoundingClientRect(),$=s.valueNode.getBoundingClientRect(),I=x.getBoundingClientRect();if(s.dir!=="rtl"){const Z=I.left-j.left,K=$.left-Z,oe=w.left-K,de=w.width+oe,De=Math.max(de,j.width),Ie=window.innerWidth-be,ke=mi(K,[be,Math.max(be,Ie-De)]);c.style.minWidth=de+"px",c.style.left=ke+"px"}else{const Z=j.right-I.right,K=window.innerWidth-$.right-Z,oe=window.innerWidth-w.right-K,de=w.width+oe,De=Math.max(de,j.width),Ie=window.innerWidth-be,ke=mi(K,[be,Math.max(be,Ie-De)]);c.style.minWidth=de+"px",c.style.right=ke+"px"}const U=g(),Y=window.innerHeight-be*2,F=f.scrollHeight,T=window.getComputedStyle(u),W=parseInt(T.borderTopWidth,10),k=parseInt(T.paddingTop,10),M=parseInt(T.borderBottomWidth,10),N=parseInt(T.paddingBottom,10),B=W+k+F+N+M,te=Math.min(h.offsetHeight*5,B),J=window.getComputedStyle(f),P=parseInt(J.paddingTop,10),D=parseInt(J.paddingBottom,10),_=w.top+w.height/2-be,O=Y-_,H=h.offsetHeight/2,A=h.offsetTop+H,L=W+k+A,V=B-L;if(L<=_){const Z=U.length>0&&h===U[U.length-1].ref.current;c.style.bottom="0px";const K=u.clientHeight-f.offsetTop-f.offsetHeight,oe=Math.max(O,H+(Z?D:0)+K+M),de=L+oe;c.style.height=de+"px"}else{const Z=U.length>0&&h===U[0].ref.current;c.style.top="0px";const oe=Math.max(_,W+f.offsetTop+(Z?P:0)+H)+V;c.style.height=oe+"px",f.scrollTop=L-_+f.offsetTop}c.style.margin=`${be}px 0`,c.style.minHeight=te+"px",c.style.maxHeight=Y+"px",r==null||r(),requestAnimationFrame(()=>v.current=!0)}},[g,s.trigger,s.valueNode,c,u,f,h,x,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(),y==null||y(),E.current=!1)},[b,y]);return l.jsxRuntimeExports.jsx(fg,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:v,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}})})})});rl.displayName=ug;var dg="SelectPopperPosition",mo=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=be,...s}=e,a=dr(n);return l.jsxRuntimeExports.jsx(bv,{...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)"}})});mo.displayName=dg;var[fg,hs]=Wt(ct,{}),ho="SelectViewport",ol=i.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Je(ho,n),a=hs(ho,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(lr.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 v=Math.abs(d.current-p.scrollTop);if(v>0){const E=window.innerHeight-be*2,f=parseFloat(m.style.minHeight),h=parseFloat(m.style.height),x=Math.max(f,h);if(x<E){const y=x+v,b=Math.min(E,y),R=y-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})})})]})});ol.displayName=ho;var sl="SelectGroup",[pg,mg]=Wt(sl),hg=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=xe();return l.jsxRuntimeExports.jsx(pg,{scope:n,id:o,children:l.jsxRuntimeExports.jsx(re.div,{role:"group","aria-labelledby":o,...r,ref:t})})});hg.displayName=sl;var il="SelectLabel",al=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=mg(il,n);return l.jsxRuntimeExports.jsx(re.div,{id:o.id,...r,ref:t})});al.displayName=il;var Un="SelectItem",[vg,cl]=Wt(Un),ll=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,v]=i.useState(!1),E=ne(t,y=>{var b;return(b=d.itemRefCallback)==null?void 0:b.call(d,y,r,o)}),f=xe(),h=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(vg,{scope:n,value:r,disabled:o,textId:f,isSelected:u,onItemTextChange:i.useCallback(y=>{m(b=>b||((y==null?void 0:y.textContent)??"").trim())},[]),children:l.jsxRuntimeExports.jsx(lr.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,()=>v(!0)),onBlur:X(a.onBlur,()=>v(!1)),onClick:X(a.onClick,()=>{h.current!=="mouse"&&x()}),onPointerUp:X(a.onPointerUp,()=>{h.current==="mouse"&&x()}),onPointerDown:X(a.onPointerDown,y=>{h.current=y.pointerType}),onPointerMove:X(a.onPointerMove,y=>{var b;h.current=y.pointerType,o?(b=d.onItemLeave)==null||b.call(d):h.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:X(a.onPointerLeave,y=>{var b;y.currentTarget===document.activeElement&&((b=d.onItemLeave)==null||b.call(d))}),onKeyDown:X(a.onKeyDown,y=>{var R;((R=d.searchRef)==null?void 0:R.current)!==""&&y.key===" "||(ng.includes(y.key)&&x(),y.key===" "&&y.preventDefault())})})})})});ll.displayName=Un;var zt="SelectItemText",ul=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,a=Qe(zt,n),c=Je(zt,n),d=cl(zt,n),u=ig(zt,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)}),v=p==null?void 0:p.textContent,E=i.useMemo(()=>l.jsxRuntimeExports.jsx("option",{value:d.value,disabled:d.disabled,children:v},d.value),[d.disabled,d.value,v]),{onNativeOptionAdd:f,onNativeOptionRemove:h}=u;return ce(()=>(f(E),()=>h(E)),[f,h,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]})});ul.displayName=zt;var dl="SelectItemIndicator",fl=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return cl(dl,n).isSelected?l.jsxRuntimeExports.jsx(re.span,{"aria-hidden":!0,...r,ref:t}):null});fl.displayName=dl;var vo="SelectScrollUpButton",pl=i.forwardRef((e,t)=>{const n=Je(vo,e.__scopeSelect),r=hs(vo,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(hl,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop-d.offsetHeight)}}):null});pl.displayName=vo;var go="SelectScrollDownButton",ml=i.forwardRef((e,t)=>{const n=Je(go,e.__scopeSelect),r=hs(go,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(hl,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop+d.offsetHeight)}}):null});ml.displayName=go;var hl=i.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Je("SelectScrollButton",n),a=i.useRef(null),c=ur(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()})})}),gg="SelectSeparator",vl=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return l.jsxRuntimeExports.jsx(re.div,{"aria-hidden":!0,...r,ref:t})});vl.displayName=gg;var xo="SelectArrow",xg=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=dr(n),s=Qe(xo,n),a=Je(xo,n);return s.open&&a.position==="popper"?l.jsxRuntimeExports.jsx(Rv,{...o,...r,ref:t}):null});xg.displayName=xo;function gl(e){return e===""||e===void 0}var xl=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=i.useRef(null),s=ne(t,o),a=Sv(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(ar,{asChild:!0,children:l.jsxRuntimeExports.jsx("select",{...r,ref:s,defaultValue:n})})});xl.displayName="BubbleSelect";function yl(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 El(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=yg(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 yg(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Eg=Kc,wl=Gc,wg=Zc,bg=Qc,Rg=Jc,bl=el,Cg=ol,Rl=al,Cl=ll,Sg=ul,Pg=fl,Sl=pl,Pl=ml,jl=vl;const Tl=Eg,Al=wg,vs=i.forwardRef(({className:e,children:t,...n},r)=>l.jsxRuntimeExports.jsxs(wl,{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(bg,{asChild:!0,children:l.jsxRuntimeExports.jsx(l.Chevron,{direction:"down",className:"h-4 w-4"})})]}));vs.displayName=wl.displayName;const $l=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(Sl,{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"})}));$l.displayName=Sl.displayName;const Nl=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(Pl,{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"})}));Nl.displayName=Pl.displayName;const Ol=i.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>l.jsxRuntimeExports.jsx(Rg,{children:l.jsxRuntimeExports.jsxs(bl,{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($l,{}),l.jsxRuntimeExports.jsx(Cg,{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(Nl,{})]})}));Ol.displayName=bl.displayName;const jg=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(Rl,{ref:n,className:l.cn("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));jg.displayName=Rl.displayName;const Dl=i.forwardRef(({className:e,children:t,...n},r)=>l.jsxRuntimeExports.jsxs(Cl,{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(Pg,{children:l.jsxRuntimeExports.jsx(l.Check,{color:l.colors.primary[900]})})}),l.jsxRuntimeExports.jsx(Sg,{children:t})]}));Dl.displayName=Cl.displayName;const Tg=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(jl,{ref:n,className:l.cn("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800",e),...t}));Tg.displayName=jl.displayName;const Ag=z(Al)``,Il=z.label`
|
|
468
|
+
`)},yg=0,xt=[];function Eg(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(yg++)[0],s=i.useState(Bo)[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=Wo([e.lockRef.current],(e.shards||[]).map(ki),!0).filter(Boolean);return f.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(f,h){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!a.current.allowPinchZoom;var x=gn(f),y=n.current,b="deltaX"in f?f.deltaX:y[0]-x[0],R="deltaY"in f?f.deltaY:y[1]-x[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 j=Di(w,S);if(!j)return!0;if(j?C=w:(C=w==="v"?"h":"v",j=Di(w,S)),!j)return!1;if(!r.current&&"changedTouches"in f&&(b||R)&&(r.current=C),!C)return!0;var $=r.current||C;return vg($,h,f,$==="h"?b:R,!0)},[]),d=i.useCallback(function(f){var h=f;if(!(!xt.length||xt[xt.length-1]!==s)){var x="deltaY"in h?Ii(h):gn(h),y=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&gg(C.delta,x)})[0];if(y&&y.should){h.cancelable&&h.preventDefault();return}if(!y){var b=(a.current.shards||[]).map(ki).filter(Boolean).filter(function(C){return C.contains(h.target)}),R=b.length>0?c(h,b[0]):!a.current.noIsolation;R&&h.cancelable&&h.preventDefault()}}},[]),u=i.useCallback(function(f,h,x,y){var b={name:f,delta:h,target:x,should:y,shadowParent:wg(x)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(R){return R!==b})},1)},[]),p=i.useCallback(function(f){n.current=gn(f),r.current=void 0},[]),m=i.useCallback(function(f){u(f.type,Ii(f),f.target,c(f,e.lockRef.current))},[]),g=i.useCallback(function(f){u(f.type,gn(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 v=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(s,{styles:xg(o)}):null,v?i.createElement(Hc,{gapMode:e.gapMode}):null)}function wg(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const bg=Fa(Bc,Eg);var Kc=i.forwardRef(function(e,t){return i.createElement(cr,ie({},e,{ref:t,sideCar:bg}))});Kc.classNames=cr.classNames;var Rg=[" ","Enter","ArrowUp","ArrowDown"],Cg=[" ","Enter"],nn="Select",[lr,ur,Sg]=fc(nn),[Wt,xb]=ft(nn,[Sg,Nc]),dr=Nc(),[Pg,Qe]=Wt(nn),[jg,Tg]=Wt(nn),Xc=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:v,form:E}=e,f=dr(t),[h,x]=i.useState(null),[y,b]=i.useState(null),[R,C]=i.useState(!1),S=$h(u),[w=!1,j]=qt({prop:r,defaultProp:o,onChange:s}),[$,I]=qt({prop:a,defaultProp:c,onChange:d}),z=i.useRef(null),Y=h?E||!!h.closest("form"):!0,[W,T]=i.useState(new Set),B=Array.from(W).map(M=>M.props.value).join(";");return l.jsxRuntimeExports.jsx(Vv,{...f,children:l.jsxRuntimeExports.jsxs(Pg,{required:v,scope:t,trigger:h,onTriggerChange:x,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:R,onValueNodeHasChildrenChange:C,contentId:xe(),value:$,onValueChange:I,open:w,onOpenChange:j,dir:S,triggerPointerDownPosRef:z,disabled:g,children:[l.jsxRuntimeExports.jsx(lr.Provider,{scope:t,children:l.jsxRuntimeExports.jsx(jg,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(M=>{T(_=>new Set(_).add(M))},[]),onNativeOptionRemove:i.useCallback(M=>{T(_=>{const N=new Set(_);return N.delete(M),N})},[]),children:n})}),Y?l.jsxRuntimeExports.jsxs(yl,{"aria-hidden":!0,required:v,tabIndex:-1,name:p,autoComplete:m,value:$,onChange:M=>I(M.target.value),disabled:g,form:E,children:[$===void 0?l.jsxRuntimeExports.jsx("option",{value:""}):null,Array.from(W)]},B):null]})})};Xc.displayName=nn;var Gc="SelectTrigger",qc=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=dr(n),a=Qe(Gc,n),c=a.disabled||r,d=ne(t,a.onTriggerChange),u=ur(n),p=i.useRef("touch"),[m,g,v]=El(f=>{const h=u().filter(b=>!b.disabled),x=h.find(b=>b.value===a.value),y=wl(h,f,x);y!==void 0&&a.onValueChange(y.value)}),E=f=>{c||(a.onOpenChange(!0),v()),f&&(a.triggerPointerDownPosRef.current={x:Math.round(f.pageX),y:Math.round(f.pageY)})};return l.jsxRuntimeExports.jsx(Hv,{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":xl(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 h=f.target;h.hasPointerCapture(f.pointerId)&&h.releasePointerCapture(f.pointerId),f.button===0&&f.ctrlKey===!1&&f.pointerType==="mouse"&&(E(f),f.preventDefault())}),onKeyDown:X(o.onKeyDown,f=>{const h=m.current!=="";!(f.ctrlKey||f.altKey||f.metaKey)&&f.key.length===1&&g(f.key),!(h&&f.key===" ")&&Rg.includes(f.key)&&(E(),f.preventDefault())})})})});qc.displayName=Gc;var Zc="SelectValue",Qc=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...c}=e,d=Qe(Zc,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:xl(d.value)?l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:a}):s})});Qc.displayName=Zc;var Ag="SelectIcon",Jc=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||"▼"})});Jc.displayName=Ag;var $g="SelectPortal",el=e=>l.jsxRuntimeExports.jsx(hs,{asChild:!0,...e});el.displayName=$g;var ct="SelectContent",tl=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(nl,{scope:e.__scopeSelect,children:l.jsxRuntimeExports.jsx(lr.Slot,{scope:e.__scopeSelect,children:l.jsxRuntimeExports.jsx("div",{children:e.children})})}),s):null}return l.jsxRuntimeExports.jsx(rl,{...e,ref:t})});tl.displayName=ct;var be=10,[nl,Je]=Wt(ct),Ng="SelectContentImpl",rl=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:v,sticky:E,hideWhenDetached:f,avoidCollisions:h,...x}=e,y=Qe(ct,n),[b,R]=i.useState(null),[C,S]=i.useState(null),w=ne(t,A=>R(A)),[j,$]=i.useState(null),[I,z]=i.useState(null),Y=ur(n),[W,T]=i.useState(!1),B=i.useRef(!1);i.useEffect(()=>{if(b)return nr(b)},[b]),Ma();const M=i.useCallback(A=>{const[F,...H]=Y().map(K=>K.ref.current),[G]=H.slice(-1),Z=document.activeElement;for(const K of A)if(K===Z||(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!==Z))return},[Y,C]),_=i.useCallback(()=>M([j,b]),[M,j,b]);i.useEffect(()=>{W&&_()},[W,_]);const{onOpenChange:N,triggerPointerDownPosRef:V}=y;i.useEffect(()=>{if(b){let A={x:0,y:0};const F=G=>{var Z,K;A={x:Math.abs(Math.round(G.pageX)-(((Z=V.current)==null?void 0:Z.x)??0)),y:Math.abs(Math.round(G.pageY)-(((K=V.current)==null?void 0:K.y)??0))}},H=G=>{A.x<=10&&A.y<=10?G.preventDefault():b.contains(G.target)||N(!1),document.removeEventListener("pointermove",F),V.current=null};return V.current!==null&&(document.addEventListener("pointermove",F),document.addEventListener("pointerup",H,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",F),document.removeEventListener("pointerup",H,{capture:!0})}}},[b,N,V]),i.useEffect(()=>{const A=()=>N(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[N]);const[te,J]=El(A=>{const F=Y().filter(Z=>!Z.disabled),H=F.find(Z=>Z.ref.current===document.activeElement),G=wl(F,A,H);G&&setTimeout(()=>G.ref.current.focus())}),P=i.useCallback((A,F,H)=>{const G=!B.current&&!H;(y.value!==void 0&&y.value===F||G)&&($(A),G&&(B.current=!0))},[y.value]),D=i.useCallback(()=>b==null?void 0:b.focus(),[b]),L=i.useCallback((A,F,H)=>{const G=!B.current&&!H;(y.value!==void 0&&y.value===F||G)&&z(A)},[y.value]),O=r==="popper"?ho:ol,U=O===ho?{side:c,sideOffset:d,align:u,alignOffset:p,arrowPadding:m,collisionBoundary:g,collisionPadding:v,sticky:E,hideWhenDetached:f,avoidCollisions:h}:{};return l.jsxRuntimeExports.jsx(nl,{scope:n,content:b,viewport:C,onViewportChange:S,itemRefCallback:P,selectedItem:j,onItemLeave:D,itemTextRefCallback:L,focusSelectedItem:_,selectedItemText:I,position:r,isPositioned:W,searchRef:te,children:l.jsxRuntimeExports.jsx(Kc,{as:Zt,allowPinchZoom:!0,children:l.jsxRuntimeExports.jsx(vc,{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(mc,{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,...U,onPlaced:()=>T(!0),ref:w,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(Z=>!Z.disabled).map(Z=>Z.ref.current);if(["ArrowUp","End"].includes(A.key)&&(G=G.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const Z=A.target,K=G.indexOf(Z);G=G.slice(K+1)}setTimeout(()=>M(G)),A.preventDefault()}})})})})})})});rl.displayName=Ng;var Og="SelectItemAlignedPosition",ol=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=ur(n),v=i.useRef(!1),E=i.useRef(!0),{viewport:f,selectedItem:h,selectedItemText:x,focusSelectedItem:y}=a,b=i.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&u&&f&&h&&x){const w=s.trigger.getBoundingClientRect(),j=u.getBoundingClientRect(),$=s.valueNode.getBoundingClientRect(),I=x.getBoundingClientRect();if(s.dir!=="rtl"){const Z=I.left-j.left,K=$.left-Z,oe=w.left-K,de=w.width+oe,De=Math.max(de,j.width),Ie=window.innerWidth-be,ke=hi(K,[be,Math.max(be,Ie-De)]);c.style.minWidth=de+"px",c.style.left=ke+"px"}else{const Z=j.right-I.right,K=window.innerWidth-$.right-Z,oe=window.innerWidth-w.right-K,de=w.width+oe,De=Math.max(de,j.width),Ie=window.innerWidth-be,ke=hi(K,[be,Math.max(be,Ie-De)]);c.style.minWidth=de+"px",c.style.right=ke+"px"}const z=g(),Y=window.innerHeight-be*2,W=f.scrollHeight,T=window.getComputedStyle(u),B=parseInt(T.borderTopWidth,10),M=parseInt(T.paddingTop,10),_=parseInt(T.borderBottomWidth,10),N=parseInt(T.paddingBottom,10),V=B+M+W+N+_,te=Math.min(h.offsetHeight*5,V),J=window.getComputedStyle(f),P=parseInt(J.paddingTop,10),D=parseInt(J.paddingBottom,10),L=w.top+w.height/2-be,O=Y-L,U=h.offsetHeight/2,A=h.offsetTop+U,F=B+M+A,H=V-F;if(F<=L){const Z=z.length>0&&h===z[z.length-1].ref.current;c.style.bottom="0px";const K=u.clientHeight-f.offsetTop-f.offsetHeight,oe=Math.max(O,U+(Z?D:0)+K+_),de=F+oe;c.style.height=de+"px"}else{const Z=z.length>0&&h===z[0].ref.current;c.style.top="0px";const oe=Math.max(L,B+f.offsetTop+(Z?P:0)+U)+H;c.style.height=oe+"px",f.scrollTop=F-L+f.offsetTop}c.style.margin=`${be}px 0`,c.style.minHeight=te+"px",c.style.maxHeight=Y+"px",r==null||r(),requestAnimationFrame(()=>v.current=!0)}},[g,s.trigger,s.valueNode,c,u,f,h,x,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(),y==null||y(),E.current=!1)},[b,y]);return l.jsxRuntimeExports.jsx(Ig,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:v,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}})})})});ol.displayName=Og;var Dg="SelectPopperPosition",ho=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=be,...s}=e,a=dr(n);return l.jsxRuntimeExports.jsx(Uv,{...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)"}})});ho.displayName=Dg;var[Ig,vs]=Wt(ct,{}),vo="SelectViewport",sl=i.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Je(vo,n),a=vs(vo,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(lr.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 v=Math.abs(d.current-p.scrollTop);if(v>0){const E=window.innerHeight-be*2,f=parseFloat(m.style.minHeight),h=parseFloat(m.style.height),x=Math.max(f,h);if(x<E){const y=x+v,b=Math.min(E,y),R=y-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})})})]})});sl.displayName=vo;var il="SelectGroup",[kg,Mg]=Wt(il),_g=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=xe();return l.jsxRuntimeExports.jsx(kg,{scope:n,id:o,children:l.jsxRuntimeExports.jsx(re.div,{role:"group","aria-labelledby":o,...r,ref:t})})});_g.displayName=il;var al="SelectLabel",cl=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Mg(al,n);return l.jsxRuntimeExports.jsx(re.div,{id:o.id,...r,ref:t})});cl.displayName=al;var Un="SelectItem",[Lg,ll]=Wt(Un),ul=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,v]=i.useState(!1),E=ne(t,y=>{var b;return(b=d.itemRefCallback)==null?void 0:b.call(d,y,r,o)}),f=xe(),h=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(Lg,{scope:n,value:r,disabled:o,textId:f,isSelected:u,onItemTextChange:i.useCallback(y=>{m(b=>b||((y==null?void 0:y.textContent)??"").trim())},[]),children:l.jsxRuntimeExports.jsx(lr.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,()=>v(!0)),onBlur:X(a.onBlur,()=>v(!1)),onClick:X(a.onClick,()=>{h.current!=="mouse"&&x()}),onPointerUp:X(a.onPointerUp,()=>{h.current==="mouse"&&x()}),onPointerDown:X(a.onPointerDown,y=>{h.current=y.pointerType}),onPointerMove:X(a.onPointerMove,y=>{var b;h.current=y.pointerType,o?(b=d.onItemLeave)==null||b.call(d):h.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:X(a.onPointerLeave,y=>{var b;y.currentTarget===document.activeElement&&((b=d.onItemLeave)==null||b.call(d))}),onKeyDown:X(a.onKeyDown,y=>{var R;((R=d.searchRef)==null?void 0:R.current)!==""&&y.key===" "||(Cg.includes(y.key)&&x(),y.key===" "&&y.preventDefault())})})})})});ul.displayName=Un;var zt="SelectItemText",dl=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,a=Qe(zt,n),c=Je(zt,n),d=ll(zt,n),u=Tg(zt,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)}),v=p==null?void 0:p.textContent,E=i.useMemo(()=>l.jsxRuntimeExports.jsx("option",{value:d.value,disabled:d.disabled,children:v},d.value),[d.disabled,d.value,v]),{onNativeOptionAdd:f,onNativeOptionRemove:h}=u;return ce(()=>(f(E),()=>h(E)),[f,h,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]})});dl.displayName=zt;var fl="SelectItemIndicator",pl=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return ll(fl,n).isSelected?l.jsxRuntimeExports.jsx(re.span,{"aria-hidden":!0,...r,ref:t}):null});pl.displayName=fl;var go="SelectScrollUpButton",ml=i.forwardRef((e,t)=>{const n=Je(go,e.__scopeSelect),r=vs(go,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(vl,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop-d.offsetHeight)}}):null});ml.displayName=go;var xo="SelectScrollDownButton",hl=i.forwardRef((e,t)=>{const n=Je(xo,e.__scopeSelect),r=vs(xo,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(vl,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop+d.offsetHeight)}}):null});hl.displayName=xo;var vl=i.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Je("SelectScrollButton",n),a=i.useRef(null),c=ur(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()})})}),Fg="SelectSeparator",gl=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return l.jsxRuntimeExports.jsx(re.div,{"aria-hidden":!0,...r,ref:t})});gl.displayName=Fg;var yo="SelectArrow",Wg=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=dr(n),s=Qe(yo,n),a=Je(yo,n);return s.open&&a.position==="popper"?l.jsxRuntimeExports.jsx(zv,{...o,...r,ref:t}):null});Wg.displayName=yo;function xl(e){return e===""||e===void 0}var yl=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=i.useRef(null),s=ne(t,o),a=Kv(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(ar,{asChild:!0,children:l.jsxRuntimeExports.jsx("select",{...r,ref:s,defaultValue:n})})});yl.displayName="BubbleSelect";function El(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 wl(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=Bg(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 Bg(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Vg=Xc,bl=qc,Hg=Qc,Ug=Jc,zg=el,Rl=tl,Yg=sl,Cl=cl,Sl=ul,Kg=dl,Xg=pl,Pl=ml,jl=hl,Tl=gl;const Al=Vg,$l=Hg,gs=i.forwardRef(({className:e,children:t,...n},r)=>l.jsxRuntimeExports.jsxs(bl,{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(Ug,{asChild:!0,children:l.jsxRuntimeExports.jsx(l.Chevron,{direction:"down",className:"h-4 w-4"})})]}));gs.displayName=bl.displayName;const Nl=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(Pl,{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"})}));Nl.displayName=Pl.displayName;const Ol=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(jl,{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"})}));Ol.displayName=jl.displayName;const Dl=i.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>l.jsxRuntimeExports.jsx(zg,{children:l.jsxRuntimeExports.jsxs(Rl,{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(Nl,{}),l.jsxRuntimeExports.jsx(Yg,{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(Ol,{})]})}));Dl.displayName=Rl.displayName;const Gg=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(Cl,{ref:n,className:l.cn("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Gg.displayName=Cl.displayName;const Il=i.forwardRef(({className:e,children:t,...n},r)=>l.jsxRuntimeExports.jsxs(Sl,{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(Xg,{children:l.jsxRuntimeExports.jsx(l.Check,{color:l.colors.primary[900]})})}),l.jsxRuntimeExports.jsx(Kg,{children:t})]}));Il.displayName=Sl.displayName;const qg=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(Tl,{ref:n,className:l.cn("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800",e),...t}));qg.displayName=Tl.displayName;const Zg=k($l)``,kl=k.label`
|
|
372
469
|
position: absolute;
|
|
373
470
|
top: 0;
|
|
374
471
|
left: 0;
|
|
@@ -380,7 +477,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
380
477
|
transition: 200ms all;
|
|
381
478
|
display: flex;
|
|
382
479
|
align-items: center;
|
|
383
|
-
|
|
480
|
+
`,Qg=k(gs)`
|
|
384
481
|
width: 100%;
|
|
385
482
|
position: relative;
|
|
386
483
|
height: 3rem;
|
|
@@ -398,7 +495,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
398
495
|
color: ${l.colors.fg.tertiary};
|
|
399
496
|
margin: 0;
|
|
400
497
|
}
|
|
401
|
-
${
|
|
498
|
+
${kl} {
|
|
402
499
|
height: 100%;
|
|
403
500
|
font-size: 0.938rem;
|
|
404
501
|
color: ${l.colors.fg.tertiary};
|
|
@@ -410,14 +507,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
410
507
|
color: ${l.colors.fg.primary};
|
|
411
508
|
margin-top: 0.875rem;
|
|
412
509
|
}
|
|
413
|
-
`,
|
|
510
|
+
`,Ml=k(Dl)`
|
|
414
511
|
padding: 0.375rem 0;
|
|
415
512
|
border-radius: 0.75rem;
|
|
416
513
|
border: 1px solid ${l.colors.border.default};
|
|
417
514
|
background: rgba(255, 255, 255, 0.6);
|
|
418
515
|
box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.08);
|
|
419
516
|
backdrop-filter: blur(1rem);
|
|
420
|
-
`,
|
|
517
|
+
`,_l=k(Il)`
|
|
421
518
|
padding: 0.875rem 1rem;
|
|
422
519
|
${l.typography.label}
|
|
423
520
|
color: ${l.colors.fg.primary};
|
|
@@ -427,19 +524,19 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
427
524
|
background: ${l.colors.neutral[50]};
|
|
428
525
|
cursor: pointer;
|
|
429
526
|
}
|
|
430
|
-
`;function
|
|
527
|
+
`;function Jg({label:e,options:t,onChange:n,value:r}){return Q.useEffect(()=>{t.length===1&&!r&&n(t[0].value)},[t,r]),l.jsxRuntimeExports.jsxs(Al,{value:r,onValueChange:o=>n(o),children:[l.jsxRuntimeExports.jsxs(Qg,{children:[l.jsxRuntimeExports.jsx(kl,{children:e}),l.jsxRuntimeExports.jsx(Zg,{})]}),l.jsxRuntimeExports.jsx(Ml,{children:t.map(o=>l.jsxRuntimeExports.jsx(_l,{$selected:r===o.value,value:o.value,children:o.text},o.value))})]})}const ex=k(gs)`
|
|
431
528
|
& span {
|
|
432
529
|
color: ${l.colors.fg.primary};
|
|
433
530
|
margin: 0;
|
|
434
531
|
margin-right: 0.25rem;
|
|
435
532
|
}
|
|
436
|
-
`,
|
|
533
|
+
`,tx=k.div`
|
|
437
534
|
height: 1.313rem;
|
|
438
535
|
width: 0.063rem;
|
|
439
536
|
background: ${l.colors.border.default};
|
|
440
|
-
`;function
|
|
537
|
+
`;function nx({value:e,onChange:t,children:n}){const[r,o]=Q.useState(e);Q.useEffect(()=>{o(e)},[e]);const s=a=>{o(a),t&&t(a)};return l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsxs(Al,{value:r,onValueChange:s,children:[l.jsxRuntimeExports.jsx(ex,{children:l.jsxRuntimeExports.jsx($l,{children:r})}),l.jsxRuntimeExports.jsx(Ml,{children:n})]}),l.jsxRuntimeExports.jsx(tx,{})]})}const rx=k.div`
|
|
441
538
|
z-index: 1;
|
|
442
|
-
`,
|
|
539
|
+
`,ox=k.div`
|
|
443
540
|
position: absolute;
|
|
444
541
|
display: flex;
|
|
445
542
|
padding: 0.5rem 0.75rem;
|
|
@@ -454,12 +551,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
454
551
|
color: ${l.colors.white};
|
|
455
552
|
${l.typography.body}
|
|
456
553
|
font-size: 0.813rem;
|
|
457
|
-
`;function
|
|
554
|
+
`;function sx({children:e}){const[t,n]=Q.useState(!1);return l.jsxRuntimeExports.jsxs(rx,{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:[t&&l.jsxRuntimeExports.jsx(ox,{children:e}),l.jsxRuntimeExports.jsx(l.Info,{})]})}const Ll=Pa`
|
|
458
555
|
height: 50%;
|
|
459
556
|
transform: translateY(-5%);
|
|
460
557
|
font-size: 0.75rem;
|
|
461
558
|
color: ${l.colors.fg.secondary};
|
|
462
|
-
`,
|
|
559
|
+
`,Fl=k.div`
|
|
463
560
|
height: 3.063rem;
|
|
464
561
|
padding: 0 0.75rem;
|
|
465
562
|
border-radius: 0.75rem;
|
|
@@ -471,12 +568,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
471
568
|
&:focus-within {
|
|
472
569
|
border: 2px solid ${e=>e.$error?l.colors.fg.accent.error:l.colors.fg.base};
|
|
473
570
|
}
|
|
474
|
-
`,
|
|
571
|
+
`,Wl=k.div`
|
|
475
572
|
position: relative;
|
|
476
573
|
padding: 0.875rem 0;
|
|
477
574
|
width: 100%;
|
|
478
575
|
height: 100%;
|
|
479
|
-
`,
|
|
576
|
+
`,xs=k.label`
|
|
480
577
|
position: absolute;
|
|
481
578
|
top: 0;
|
|
482
579
|
left: 0;
|
|
@@ -488,8 +585,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
488
585
|
${l.typography.label}
|
|
489
586
|
color: ${l.colors.fg.tertiary};
|
|
490
587
|
font-size: 0.938rem;
|
|
491
|
-
${({$hasValue:e})=>e&&
|
|
492
|
-
`,
|
|
588
|
+
${({$hasValue:e})=>e&&Ll}
|
|
589
|
+
`,Bl=k.input`
|
|
493
590
|
width: 100%;
|
|
494
591
|
padding-top: 0.25rem;
|
|
495
592
|
background: transparent;
|
|
@@ -499,14 +596,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
499
596
|
&:focus {
|
|
500
597
|
outline: none;
|
|
501
598
|
}
|
|
502
|
-
&:focus + ${
|
|
503
|
-
${
|
|
599
|
+
&:focus + ${xs} {
|
|
600
|
+
${Ll}
|
|
504
601
|
}
|
|
505
602
|
&::-webkit-outer-spin-button,
|
|
506
603
|
&::-webkit-inner-spin-button {
|
|
507
604
|
-webkit-appearance: none;
|
|
508
605
|
}
|
|
509
|
-
`;function
|
|
606
|
+
`;function ix({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=Q.useId();return l.jsxRuntimeExports.jsxs("div",{children:[l.jsxRuntimeExports.jsxs(Fl,{$error:!!c,children:[r&&l.jsxRuntimeExports.jsx(nx,{value:"€",children:l.jsxRuntimeExports.jsx(_l,{value:"€",children:"EUR (€)"})}),l.jsxRuntimeExports.jsxs(Wl,{children:[l.jsxRuntimeExports.jsx(Bl,{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(sx,{children:a})]}),(c||d)&&l.jsxRuntimeExports.jsx(_n,{error:!!c,children:c||d})]})}const ax=k.div`
|
|
510
607
|
margin: 0 auto;
|
|
511
608
|
vertical-align: middle;
|
|
512
609
|
position: relative;
|
|
@@ -553,39 +650,39 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
553
650
|
transform: translate(-50%, -50%) scale(0);
|
|
554
651
|
}
|
|
555
652
|
}
|
|
556
|
-
`;function Bl({size:e="4rem",color:t=l.colors.fg.primary}){return l.jsxRuntimeExports.jsx(Fg,{$size:e,$color:t})}const Wg=1,Bg=1e6;let Wr=0;function Vg(){return Wr=(Wr+1)%Number.MAX_SAFE_INTEGER,Wr.toString()}const Br=new Map,ki=e=>{if(Br.has(e))return;const t=setTimeout(()=>{Br.delete(e),Gt({type:"REMOVE_TOAST",toastId:e})},Bg);Br.set(e,t)},Hg=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Wg)};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?ki(n):e.toasts.forEach(r=>{ki(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)}}},Nn=[];let On={toasts:[]};function Gt(e){On=Hg(On,e),Nn.forEach(t=>{t(On)})}function Ug({...e}){const t=Vg(),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 Vl(){const[e,t]=i.useState(On);return i.useEffect(()=>(Nn.push(t),()=>{const n=Nn.indexOf(t);n>-1&&Nn.splice(n,1)}),[e]),{...e,toast:Ug,dismiss:n=>Gt({type:"DISMISS_TOAST",toastId:n})}}function zg(){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 Yg(){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 Kg(){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 Xg(){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 Gg="DismissableLayer",yo="dismissableLayer.update",qg="dismissableLayer.pointerDownOutside",Zg="dismissableLayer.focusOutside",Mi,Hl=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ul=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(Hl),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),E=ne(t,w=>m(w)),f=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(h),y=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=Jg(w=>{const j=w.target,$=[...u.branches].some(I=>I.contains(j));!R||$||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=ex(w=>{const j=w.target;[...u.branches].some(I=>I.contains(j))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return Jn(w=>{y===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&&(Mi=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=Mi)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),_i())},[p,u]),i.useEffect(()=>{const w=()=>v({});return document.addEventListener(yo,w),()=>document.removeEventListener(yo,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)})});Ul.displayName=Gg;var Qg="DismissableLayerBranch",zl=i.forwardRef((e,t)=>{const n=i.useContext(Hl),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})});zl.displayName=Qg;function Jg(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(){Yl(qg,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 ex(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&&Yl(Zg,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(yo);document.dispatchEvent(e)}function Yl(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?Go(o,s):o.dispatchEvent(s)}var tx=Ul,nx=zl;function rx(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var xs=e=>{const{present:t,children:n}=e,r=ox(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),s=ne(r.ref,sx(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:s}):null};xs.displayName="Presence";function ox(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,d]=rx(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=xn(r.current);s.current=c==="mounted"?u:"none"},[c]),ce(()=>{const u=r.current,p=o.current;if(p!==e){const g=s.current,v=xn(u);e?d("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(p&&g!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),ce(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,m=v=>{const f=xn(r.current).includes(v.animationName);if(v.target===t&&f&&(d("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},g=v=>{v.target===t&&(s.current=xn(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 xn(e){return(e==null?void 0:e.animationName)||"none"}function sx(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 ys="ToastProvider",[Es,ix,ax]=dc("Toast"),[Kl,Zw]=ft("Toast",[ax]),[cx,fr]=Kl(ys),Xl=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 \`${ys}\`. Expected non-empty \`string\`.`),l.jsxRuntimeExports.jsx(Es.Provider,{scope:t,children:l.jsxRuntimeExports.jsx(cx,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:u,viewport:c,onViewportChange:d,onToastAdd:i.useCallback(()=>p(v=>v+1),[]),onToastRemove:i.useCallback(()=>p(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:g,children:a})})};Xl.displayName=ys;var Gl="ToastViewport",lx=["F8"],Eo="toast.viewportPause",wo="toast.viewportResume",ql=i.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=lx,label:o="Notifications ({hotkey})",...s}=e,a=fr(Gl,n),c=ix(n),d=i.useRef(null),u=i.useRef(null),p=i.useRef(null),m=i.useRef(null),g=ne(t,m,a.onViewportChange),v=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=a.toastCount>0;i.useEffect(()=>{const h=x=>{var b;r.length!==0&&r.every(R=>x[R]||x.code===R)&&((b=m.current)==null||b.focus())};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[r]),i.useEffect(()=>{const h=d.current,x=m.current;if(E&&h&&x){const y=()=>{if(!a.isClosePausedRef.current){const S=new CustomEvent(Eo);x.dispatchEvent(S),a.isClosePausedRef.current=!0}},b=()=>{if(a.isClosePausedRef.current){const S=new CustomEvent(wo);x.dispatchEvent(S),a.isClosePausedRef.current=!1}},R=S=>{!h.contains(S.relatedTarget)&&b()},C=()=>{h.contains(document.activeElement)||b()};return h.addEventListener("focusin",y),h.addEventListener("focusout",R),h.addEventListener("pointermove",y),h.addEventListener("pointerleave",C),window.addEventListener("blur",y),window.addEventListener("focus",b),()=>{h.removeEventListener("focusin",y),h.removeEventListener("focusout",R),h.removeEventListener("pointermove",y),h.removeEventListener("pointerleave",C),window.removeEventListener("blur",y),window.removeEventListener("focus",b)}}},[E,a.isClosePausedRef]);const f=i.useCallback(({tabbingDirection:h})=>{const y=c().map(b=>{const R=b.ref.current,C=[R,...bx(R)];return h==="forwards"?C:C.reverse()});return(h==="forwards"?y.reverse():y).flat()},[c]);return i.useEffect(()=>{const h=m.current;if(h){const x=y=>{var C,S,w;const b=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!b){const j=document.activeElement,$=y.shiftKey;if(y.target===h&&$){(C=u.current)==null||C.focus();return}const Y=f({tabbingDirection:$?"backwards":"forwards"}),F=Y.findIndex(T=>T===j);Vr(Y.slice(F+1))?y.preventDefault():$?(S=u.current)==null||S.focus():(w=p.current)==null||w.focus()}};return h.addEventListener("keydown",x),()=>h.removeEventListener("keydown",x)}},[c,f]),l.jsxRuntimeExports.jsxs(nx,{ref:d,role:"region","aria-label":o.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:E?void 0:"none"},children:[E&&l.jsxRuntimeExports.jsx(bo,{ref:u,onFocusFromOutsideViewport:()=>{const h=f({tabbingDirection:"forwards"});Vr(h)}}),l.jsxRuntimeExports.jsx(Es.Slot,{scope:n,children:l.jsxRuntimeExports.jsx(re.ol,{tabIndex:-1,...s,ref:g})}),E&&l.jsxRuntimeExports.jsx(bo,{ref:p,onFocusFromOutsideViewport:()=>{const h=f({tabbingDirection:"backwards"});Vr(h)}})]})});ql.displayName=Gl;var Zl="ToastFocusProxy",bo=i.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=fr(Zl,n);return l.jsxRuntimeExports.jsx(ar,{"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()}})});bo.displayName=Zl;var pr="Toast",ux="toast.swipeStart",dx="toast.swipeMove",fx="toast.swipeCancel",px="toast.swipeEnd",Ql=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(xs,{present:n||c,children:l.jsxRuntimeExports.jsx(vx,{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)})})})});Ql.displayName=pr;var[mx,hx]=Kl(pr,{onClose(){}}),vx=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:v,...E}=e,f=fr(pr,n),[h,x]=i.useState(null),y=ne(t,T=>x(T)),b=i.useRef(null),R=i.useRef(null),C=o||f.duration,S=i.useRef(0),w=i.useRef(C),j=i.useRef(0),{onToastAdd:$,onToastRemove:I}=f,U=ae(()=>{var W;(h==null?void 0:h.contains(document.activeElement))&&((W=f.viewport)==null||W.focus()),a()}),Y=i.useCallback(T=>{!T||T===1/0||(window.clearTimeout(j.current),S.current=new Date().getTime(),j.current=window.setTimeout(U,T))},[U]);i.useEffect(()=>{const T=f.viewport;if(T){const W=()=>{Y(w.current),u==null||u()},k=()=>{const M=new Date().getTime()-S.current;w.current=w.current-M,window.clearTimeout(j.current),d==null||d()};return T.addEventListener(Eo,k),T.addEventListener(wo,W),()=>{T.removeEventListener(Eo,k),T.removeEventListener(wo,W)}}},[f.viewport,C,d,u,Y]),i.useEffect(()=>{s&&!f.isClosePausedRef.current&&Y(C)},[s,C,f.isClosePausedRef,Y]),i.useEffect(()=>($(),()=>I()),[$,I]);const F=i.useMemo(()=>h?su(h):null,[h]);return f.viewport?l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[F&&l.jsxRuntimeExports.jsx(gx,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:F}),l.jsxRuntimeExports.jsx(mx,{scope:n,onClose:U,children:Ze.createPortal(l.jsxRuntimeExports.jsx(Es.ItemSlot,{scope:n,children:l.jsxRuntimeExports.jsx(tx,{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: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&&(b.current={x:T.clientX,y:T.clientY})}),onPointerMove:X(e.onPointerMove,T=>{if(!b.current)return;const W=T.clientX-b.current.x,k=T.clientY-b.current.y,M=!!R.current,N=["left","right"].includes(f.swipeDirection),B=["left","up"].includes(f.swipeDirection)?Math.min:Math.max,te=N?B(0,W):0,J=N?0:B(0,k),P=T.pointerType==="touch"?10:2,D={x:te,y:J},_={originalEvent:T,delta:D};M?(R.current=D,yn(dx,m,_,{discrete:!1})):Li(D,f.swipeDirection,P)?(R.current=D,yn(ux,p,_,{discrete:!1}),T.target.setPointerCapture(T.pointerId)):(Math.abs(W)>P||Math.abs(k)>P)&&(b.current=null)}),onPointerUp:X(e.onPointerUp,T=>{const W=R.current,k=T.target;if(k.hasPointerCapture(T.pointerId)&&k.releasePointerCapture(T.pointerId),R.current=null,b.current=null,W){const M=T.currentTarget,N={originalEvent:T,delta:W};Li(W,f.swipeDirection,f.swipeThreshold)?yn(px,v,N,{discrete:!0}):yn(fx,g,N,{discrete:!0}),M.addEventListener("click",B=>B.preventDefault(),{once:!0})}})})})}),f.viewport)})]}):null}),gx=e=>{const{__scopeToast:t,children:n,...r}=e,o=fr(pr,t),[s,a]=i.useState(!1),[c,d]=i.useState(!1);return Ex(()=>a(!0)),i.useEffect(()=>{const u=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(u)},[]),c?null:l.jsxRuntimeExports.jsx(ms,{asChild:!0,children:l.jsxRuntimeExports.jsx(ar,{...r,children:s&&l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[o.label," ",n]})})})},xx="ToastTitle",Jl=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsxRuntimeExports.jsx(re.div,{...r,ref:t})});Jl.displayName=xx;var yx="ToastDescription",eu=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsxRuntimeExports.jsx(re.div,{...r,ref:t})});eu.displayName=yx;var tu="ToastAction",nu=i.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?l.jsxRuntimeExports.jsx(ou,{altText:n,asChild:!0,children:l.jsxRuntimeExports.jsx(ws,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${tu}\`. Expected non-empty \`string\`.`),null)});nu.displayName=tu;var ru="ToastClose",ws=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=hx(ru,n);return l.jsxRuntimeExports.jsx(ou,{asChild:!0,children:l.jsxRuntimeExports.jsx(re.button,{type:"button",...r,ref:t,onClick:X(e.onClick,o.onClose)})})});ws.displayName=ru;var ou=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 su(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),wx(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(...su(r))}}),t}function yn(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?Go(o,s):o.dispatchEvent(s)}var Li=(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 Ex(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 wx(e){return e.nodeType===e.ELEMENT_NODE}function bx(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 Vr(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Rx=Xl,iu=ql,au=Ql,cu=Jl,lu=eu,uu=nu,du=ws;function fu(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=fu(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Cx(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=fu(e))&&(r&&(r+=" "),r+=t);return r}const Sx=Cx,Px=(e,t)=>n=>Sx(e,n==null?void 0:n.class,n==null?void 0:n.className),jx=Rx,pu=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(iu,{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}));pu.displayName=iu.displayName;const Tx=Px("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"),mu=i.forwardRef(({className:e,testId:t,...n},r)=>l.jsxRuntimeExports.jsx(au,{"data-testid":t,ref:r,className:l.cn(Tx(),e),...n}));mu.displayName=au.displayName;const Ax=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(uu,{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}));Ax.displayName=uu.displayName;const hu=i.forwardRef(({color:e,...t},n)=>l.jsxRuntimeExports.jsx(du,{ref:n,"toast-close":"",...t,children:l.jsxRuntimeExports.jsx(l.Close,{color:e,className:"h-4 w-4"})}));hu.displayName=du.displayName;const vu=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(cu,{ref:n,className:l.cn("text-sm font-semibold",e),...t}));vu.displayName=cu.displayName;const gu=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(lu,{ref:n,className:l.cn("text-sm opacity-90",e),...t}));gu.displayName=lu.displayName;const Ro={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}},$x=z(mu)`
|
|
653
|
+
`;function Vl({size:e="4rem",color:t=l.colors.fg.primary}){return l.jsxRuntimeExports.jsx(ax,{$size:e,$color:t})}const cx=1,lx=1e6;let Br=0;function ux(){return Br=(Br+1)%Number.MAX_SAFE_INTEGER,Br.toString()}const Vr=new Map,Mi=e=>{if(Vr.has(e))return;const t=setTimeout(()=>{Vr.delete(e),Gt({type:"REMOVE_TOAST",toastId:e})},lx);Vr.set(e,t)},dx=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,cx)};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)}}},Nn=[];let On={toasts:[]};function Gt(e){On=dx(On,e),Nn.forEach(t=>{t(On)})}function fx({...e}){const t=ux(),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 Hl(){const[e,t]=i.useState(On);return i.useEffect(()=>(Nn.push(t),()=>{const n=Nn.indexOf(t);n>-1&&Nn.splice(n,1)}),[e]),{...e,toast:fx,dismiss:n=>Gt({type:"DISMISS_TOAST",toastId:n})}}function px(){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 mx(){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 hx(){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 vx(){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 gx="DismissableLayer",Eo="dismissableLayer.update",xx="dismissableLayer.pointerDownOutside",yx="dismissableLayer.focusOutside",_i,Ul=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zl=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(Ul),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),E=ne(t,w=>m(w)),f=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(h),y=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=wx(w=>{const j=w.target,$=[...u.branches].some(I=>I.contains(j));!R||$||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=bx(w=>{const j=w.target;[...u.branches].some(I=>I.contains(j))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return Jn(w=>{y===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&&(_i=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),Li(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=_i)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),Li())},[p,u]),i.useEffect(()=>{const w=()=>v({});return document.addEventListener(Eo,w),()=>document.removeEventListener(Eo,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)})});zl.displayName=gx;var Ex="DismissableLayerBranch",Yl=i.forwardRef((e,t)=>{const n=i.useContext(Ul),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})});Yl.displayName=Ex;function wx(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(){Kl(xx,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 bx(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&&Kl(yx,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 Li(){const e=new CustomEvent(Eo);document.dispatchEvent(e)}function Kl(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 Rx=zl,Cx=Yl;function Sx(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var ys=e=>{const{present:t,children:n}=e,r=Px(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),s=ne(r.ref,jx(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:s}):null};ys.displayName="Presence";function Px(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,d]=Sx(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=xn(r.current);s.current=c==="mounted"?u:"none"},[c]),ce(()=>{const u=r.current,p=o.current;if(p!==e){const g=s.current,v=xn(u);e?d("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(p&&g!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),ce(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,m=v=>{const f=xn(r.current).includes(v.animationName);if(v.target===t&&f&&(d("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},g=v=>{v.target===t&&(s.current=xn(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 xn(e){return(e==null?void 0:e.animationName)||"none"}function jx(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,Tx,Ax]=fc("Toast"),[Xl,yb]=ft("Toast",[Ax]),[$x,fr]=Xl(Es),Gl=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(v=>v+1),[]),onToastRemove:i.useCallback(()=>p(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:g,children:a})})};Gl.displayName=Es;var ql="ToastViewport",Nx=["F8"],wo="toast.viewportPause",bo="toast.viewportResume",Zl=i.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Nx,label:o="Notifications ({hotkey})",...s}=e,a=fr(ql,n),c=Tx(n),d=i.useRef(null),u=i.useRef(null),p=i.useRef(null),m=i.useRef(null),g=ne(t,m,a.onViewportChange),v=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=a.toastCount>0;i.useEffect(()=>{const h=x=>{var b;r.length!==0&&r.every(R=>x[R]||x.code===R)&&((b=m.current)==null||b.focus())};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[r]),i.useEffect(()=>{const h=d.current,x=m.current;if(E&&h&&x){const y=()=>{if(!a.isClosePausedRef.current){const S=new CustomEvent(wo);x.dispatchEvent(S),a.isClosePausedRef.current=!0}},b=()=>{if(a.isClosePausedRef.current){const S=new CustomEvent(bo);x.dispatchEvent(S),a.isClosePausedRef.current=!1}},R=S=>{!h.contains(S.relatedTarget)&&b()},C=()=>{h.contains(document.activeElement)||b()};return h.addEventListener("focusin",y),h.addEventListener("focusout",R),h.addEventListener("pointermove",y),h.addEventListener("pointerleave",C),window.addEventListener("blur",y),window.addEventListener("focus",b),()=>{h.removeEventListener("focusin",y),h.removeEventListener("focusout",R),h.removeEventListener("pointermove",y),h.removeEventListener("pointerleave",C),window.removeEventListener("blur",y),window.removeEventListener("focus",b)}}},[E,a.isClosePausedRef]);const f=i.useCallback(({tabbingDirection:h})=>{const y=c().map(b=>{const R=b.ref.current,C=[R,...Ux(R)];return h==="forwards"?C:C.reverse()});return(h==="forwards"?y.reverse():y).flat()},[c]);return i.useEffect(()=>{const h=m.current;if(h){const x=y=>{var C,S,w;const b=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!b){const j=document.activeElement,$=y.shiftKey;if(y.target===h&&$){(C=u.current)==null||C.focus();return}const Y=f({tabbingDirection:$?"backwards":"forwards"}),W=Y.findIndex(T=>T===j);Hr(Y.slice(W+1))?y.preventDefault():$?(S=u.current)==null||S.focus():(w=p.current)==null||w.focus()}};return h.addEventListener("keydown",x),()=>h.removeEventListener("keydown",x)}},[c,f]),l.jsxRuntimeExports.jsxs(Cx,{ref:d,role:"region","aria-label":o.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:E?void 0:"none"},children:[E&&l.jsxRuntimeExports.jsx(Ro,{ref:u,onFocusFromOutsideViewport:()=>{const h=f({tabbingDirection:"forwards"});Hr(h)}}),l.jsxRuntimeExports.jsx(ws.Slot,{scope:n,children:l.jsxRuntimeExports.jsx(re.ol,{tabIndex:-1,...s,ref:g})}),E&&l.jsxRuntimeExports.jsx(Ro,{ref:p,onFocusFromOutsideViewport:()=>{const h=f({tabbingDirection:"backwards"});Hr(h)}})]})});Zl.displayName=ql;var Ql="ToastFocusProxy",Ro=i.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=fr(Ql,n);return l.jsxRuntimeExports.jsx(ar,{"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()}})});Ro.displayName=Ql;var pr="Toast",Ox="toast.swipeStart",Dx="toast.swipeMove",Ix="toast.swipeCancel",kx="toast.swipeEnd",Jl=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(Lx,{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)})})})});Jl.displayName=pr;var[Mx,_x]=Xl(pr,{onClose(){}}),Lx=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:v,...E}=e,f=fr(pr,n),[h,x]=i.useState(null),y=ne(t,T=>x(T)),b=i.useRef(null),R=i.useRef(null),C=o||f.duration,S=i.useRef(0),w=i.useRef(C),j=i.useRef(0),{onToastAdd:$,onToastRemove:I}=f,z=ae(()=>{var B;(h==null?void 0:h.contains(document.activeElement))&&((B=f.viewport)==null||B.focus()),a()}),Y=i.useCallback(T=>{!T||T===1/0||(window.clearTimeout(j.current),S.current=new Date().getTime(),j.current=window.setTimeout(z,T))},[z]);i.useEffect(()=>{const T=f.viewport;if(T){const B=()=>{Y(w.current),u==null||u()},M=()=>{const _=new Date().getTime()-S.current;w.current=w.current-_,window.clearTimeout(j.current),d==null||d()};return T.addEventListener(wo,M),T.addEventListener(bo,B),()=>{T.removeEventListener(wo,M),T.removeEventListener(bo,B)}}},[f.viewport,C,d,u,Y]),i.useEffect(()=>{s&&!f.isClosePausedRef.current&&Y(C)},[s,C,f.isClosePausedRef,Y]),i.useEffect(()=>($(),()=>I()),[$,I]);const W=i.useMemo(()=>h?iu(h):null,[h]);return f.viewport?l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[W&&l.jsxRuntimeExports.jsx(Fx,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:W}),l.jsxRuntimeExports.jsx(Mx,{scope:n,onClose:z,children:Ze.createPortal(l.jsxRuntimeExports.jsx(ws.ItemSlot,{scope:n,children:l.jsxRuntimeExports.jsx(Rx,{asChild:!0,onEscapeKeyDown:X(c,()=>{f.isFocusedToastEscapeKeyDownRef.current||z(),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: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,z()))}),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,_=!!R.current,N=["left","right"].includes(f.swipeDirection),V=["left","up"].includes(f.swipeDirection)?Math.min:Math.max,te=N?V(0,B):0,J=N?0:V(0,M),P=T.pointerType==="touch"?10:2,D={x:te,y:J},L={originalEvent:T,delta:D};_?(R.current=D,yn(Dx,m,L,{discrete:!1})):Fi(D,f.swipeDirection,P)?(R.current=D,yn(Ox,p,L,{discrete:!1}),T.target.setPointerCapture(T.pointerId)):(Math.abs(B)>P||Math.abs(M)>P)&&(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 _=T.currentTarget,N={originalEvent:T,delta:B};Fi(B,f.swipeDirection,f.swipeThreshold)?yn(kx,v,N,{discrete:!0}):yn(Ix,g,N,{discrete:!0}),_.addEventListener("click",V=>V.preventDefault(),{once:!0})}})})})}),f.viewport)})]}):null}),Fx=e=>{const{__scopeToast:t,children:n,...r}=e,o=fr(pr,t),[s,a]=i.useState(!1),[c,d]=i.useState(!1);return Vx(()=>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(ar,{...r,children:s&&l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[o.label," ",n]})})})},Wx="ToastTitle",eu=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsxRuntimeExports.jsx(re.div,{...r,ref:t})});eu.displayName=Wx;var Bx="ToastDescription",tu=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsxRuntimeExports.jsx(re.div,{...r,ref:t})});tu.displayName=Bx;var nu="ToastAction",ru=i.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?l.jsxRuntimeExports.jsx(su,{altText:n,asChild:!0,children:l.jsxRuntimeExports.jsx(bs,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${nu}\`. Expected non-empty \`string\`.`),null)});ru.displayName=nu;var ou="ToastClose",bs=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=_x(ou,n);return l.jsxRuntimeExports.jsx(su,{asChild:!0,children:l.jsxRuntimeExports.jsx(re.button,{type:"button",...r,ref:t,onClick:X(e.onClick,o.onClose)})})});bs.displayName=ou;var su=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 iu(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Hx(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(...iu(r))}}),t}function yn(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 Vx(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 Hx(e){return e.nodeType===e.ELEMENT_NODE}function Ux(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 Hr(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var zx=Gl,au=Zl,cu=Jl,lu=eu,uu=tu,du=ru,fu=bs;function pu(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=pu(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Yx(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=pu(e))&&(r&&(r+=" "),r+=t);return r}const Kx=Yx,Xx=(e,t)=>n=>Kx(e,n==null?void 0:n.class,n==null?void 0:n.className),Gx=zx,mu=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(au,{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}));mu.displayName=au.displayName;const qx=Xx("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"),hu=i.forwardRef(({className:e,testId:t,...n},r)=>l.jsxRuntimeExports.jsx(cu,{"data-testid":t,ref:r,className:l.cn(qx(),e),...n}));hu.displayName=cu.displayName;const Zx=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(du,{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}));Zx.displayName=du.displayName;const vu=i.forwardRef(({color:e,...t},n)=>l.jsxRuntimeExports.jsx(fu,{ref:n,"toast-close":"",...t,children:l.jsxRuntimeExports.jsx(l.Close,{color:e,className:"h-4 w-4"})}));vu.displayName=fu.displayName;const gu=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(lu,{ref:n,className:l.cn("text-sm font-semibold",e),...t}));gu.displayName=lu.displayName;const xu=i.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(uu,{ref:n,className:l.cn("text-sm opacity-90",e),...t}));xu.displayName=uu.displayName;const Co={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}},Qx=k(hu)`
|
|
557
654
|
border-radius: 1rem;
|
|
558
655
|
padding: 0.75rem;
|
|
559
656
|
border: none;
|
|
560
657
|
box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.04);
|
|
561
658
|
font-size: 0.813rem;
|
|
562
|
-
background: ${({$variant:e})=>
|
|
563
|
-
color: ${({$variant:e})=>
|
|
659
|
+
background: ${({$variant:e})=>Co[e].background};
|
|
660
|
+
color: ${({$variant:e})=>Co[e].color};
|
|
564
661
|
gap: 0.5rem;
|
|
565
|
-
`,
|
|
662
|
+
`,Jx=k.div`
|
|
566
663
|
display: flex;
|
|
567
664
|
flex-direction: column;
|
|
568
665
|
width: 100%;
|
|
569
|
-
`,
|
|
666
|
+
`,ey=k.div`
|
|
570
667
|
width: 1.5rem;
|
|
571
668
|
height: 1.5rem;
|
|
572
|
-
`,
|
|
669
|
+
`,ty=k(gu)`
|
|
573
670
|
${l.typography.label}
|
|
574
|
-
`,
|
|
671
|
+
`,ny=k(xu)`
|
|
575
672
|
${l.typography.body}
|
|
576
|
-
`,kx=({variant:e})=>{switch(e){case"success":return l.jsxRuntimeExports.jsx(Kg,{});case"error":return l.jsxRuntimeExports.jsx(zg,{});case"warning":return l.jsxRuntimeExports.jsx(Xg,{});default:return l.jsxRuntimeExports.jsx(Yg,{})}};function Mx(){const{toasts:e}=Vl();return l.jsxRuntimeExports.jsxs(jx,{children:[e.map(function({id:t,title:n,description:r,testId:o,variant:s="info",...a}){return l.jsxRuntimeExports.jsxs($x,{$variant:s,testId:o,...a,children:[l.jsxRuntimeExports.jsx(Ox,{children:l.jsxRuntimeExports.jsx(kx,{variant:s})}),l.jsxRuntimeExports.jsxs(Nx,{children:[n&&l.jsxRuntimeExports.jsx(Dx,{children:n}),r&&l.jsxRuntimeExports.jsx(Ix,{children:r})]}),l.jsxRuntimeExports.jsx(hu,{color:Ro[s].color})]},t)}),l.jsxRuntimeExports.jsx(pu,{})]})}var xu=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),s=o.find(_x);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(Co,{...r,ref:t,children:i.isValidElement(a)?i.cloneElement(a,void 0,c):null})}return l.jsxRuntimeExports.jsx(Co,{...r,ref:t,children:n})});xu.displayName="Slot";var Co=i.forwardRef((e,t)=>{const{children:n,...r}=e;if(i.isValidElement(n)){const o=Fx(n),s=Lx(r,n.props);return n.type!==i.Fragment&&(s.ref=t?ze(t,o):o),i.cloneElement(n,s)}return i.Children.count(n)>1?i.Children.only(null):null});Co.displayName="SlotClone";var yu=({children:e})=>l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e});function _x(e){return i.isValidElement(e)&&e.type===yu}function Lx(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 Fx(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 Wx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],fe=Wx.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:s,...a}=r,c=s?xu: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 Bx(e,t){e&&Ze.flushSync(()=>e.dispatchEvent(t))}var Vx="DismissableLayer",So="dismissableLayer.update",Hx="dismissableLayer.pointerDownOutside",Ux="dismissableLayer.focusOutside",Fi,Eu=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wu=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(Eu),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),E=ne(t,w=>m(w)),f=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(h),y=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=Kx(w=>{const j=w.target,$=[...u.branches].some(I=>I.contains(j));!R||$||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=Xx(w=>{const j=w.target;[...u.branches].some(I=>I.contains(j))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return Jn(w=>{y===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&&(Fi=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),Wi(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Fi)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),Wi())},[p,u]),i.useEffect(()=>{const w=()=>v({});return document.addEventListener(So,w),()=>document.removeEventListener(So,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)})});wu.displayName=Vx;var zx="DismissableLayerBranch",Yx=i.forwardRef((e,t)=>{const n=i.useContext(Eu),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})});Yx.displayName=zx;function Kx(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(){bu(Hx,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 Xx(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&&bu(Ux,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 Wi(){const e=new CustomEvent(So);document.dispatchEvent(e)}function bu(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?Bx(o,s):o.dispatchEvent(s)}var Gx="Arrow",Ru=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"})})});Ru.displayName=Gx;var qx=Ru,bs="Popper",[Cu,Su]=ft(bs),[Zx,Pu]=Cu(bs),ju=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return l.jsxRuntimeExports.jsx(Zx,{scope:t,anchor:r,onAnchorChange:o,children:n})};ju.displayName=bs;var Tu="PopperAnchor",Au=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Pu(Tu,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})});Au.displayName=Tu;var Rs="PopperContent",[Qx,Jx]=Cu(Rs),$u=i.forwardRef((e,t)=>{var A,L,V,G,Z,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:v="optimized",onPlaced:E,...f}=e,h=Pu(Rs,n),[x,y]=i.useState(null),b=ne(t,oe=>y(oe)),[R,C]=i.useState(null),S=Tc(R),w=(S==null?void 0:S.width)??0,j=(S==null?void 0:S.height)??0,$=r+(s!=="center"?"-"+s:""),I=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},U=Array.isArray(u)?u:[u],Y=U.length>0,F={padding:I,boundary:U.filter(ty),altBoundary:Y},{refs:T,floatingStyles:W,placement:k,isPositioned:M,middlewareData:N}=os({strategy:"fixed",placement:$,whileElementsMounted:(...oe)=>rs(...oe,{animationFrame:v==="always"}),elements:{reference:h.anchor},middleware:[ss({mainAxis:o+j,alignmentAxis:a}),d&&is({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?as():void 0,...F}),d&&cs({...F}),ls({...F,apply:({elements:oe,rects:de,availableWidth:De,availableHeight:Ie})=>{const{width:ke,height:Vt}=de.reference,pe=oe.floating.style;pe.setProperty("--radix-popper-available-width",`${De}px`),pe.setProperty("--radix-popper-available-height",`${Ie}px`),pe.setProperty("--radix-popper-anchor-width",`${ke}px`),pe.setProperty("--radix-popper-anchor-height",`${Vt}px`)}}),R&&ds({element:R,padding:c}),ny({arrowWidth:w,arrowHeight:j}),g&&us({strategy:"referenceHidden",...F})]}),[B,te]=Du(k),J=ae(E);ce(()=>{M&&(J==null||J())},[M,J]);const P=(A=N.arrow)==null?void 0:A.x,D=(L=N.arrow)==null?void 0:L.y,_=((V=N.arrow)==null?void 0:V.centerOffset)!==0,[O,H]=i.useState();return ce(()=>{x&&H(window.getComputedStyle(x).zIndex)},[x]),l.jsxRuntimeExports.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:M?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(G=N.transformOrigin)==null?void 0:G.x,(Z=N.transformOrigin)==null?void 0:Z.y].join(" "),...((K=N.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsxRuntimeExports.jsx(Qx,{scope:n,placedSide:B,onArrowChange:C,arrowX:P,arrowY:D,shouldHideArrow:_,children:l.jsxRuntimeExports.jsx(fe.div,{"data-side":B,"data-align":te,...f,ref:b,style:{...f.style,animation:M?void 0:"none"}})})})});$u.displayName=Rs;var Nu="PopperArrow",ey={top:"bottom",right:"left",bottom:"top",left:"right"},Ou=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Jx(Nu,r),a=ey[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(qx,{...o,ref:n,style:{...o.style,display:"block"}})})});Ou.displayName=Nu;function ty(e){return e!==null}var ny=e=>({name:"transformOrigin",options:e,fn(t){var h,x,y;const{placement:n,rects:r,middlewareData:o}=t,a=((h=o.arrow)==null?void 0:h.centerOffset)!==0,c=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,p]=Du(n),m={start:"0%",center:"50%",end:"100%"}[p],g=(((x=o.arrow)==null?void 0:x.x)??0)+c/2,v=(((y=o.arrow)==null?void 0:y.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:`${v}px`):u==="left"&&(E=`${r.floating.width+d}px`,f=a?m:`${v}px`),{data:{x:E,y:f}}}});function Du(e){const[t,n="center"]=e.split("-");return[t,n]}var ry=ju,oy=Au,sy=$u,iy=Ou,ay="VisuallyHidden",Iu=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}}));Iu.displayName=ay;var cy=Iu,[mr,Qw]=ft("Tooltip",[Su]),hr=Su(),ku="TooltipProvider",ly=700,Po="tooltip.open",[uy,Cs]=mr(ku),Mu=e=>{const{__scopeTooltip:t,delayDuration:n=ly,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(uy,{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})};Mu.displayName=ku;var vr="Tooltip",[dy,gr]=mr(vr),_u=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,d=Cs(vr,e.__scopeTooltip),u=hr(t),[p,m]=i.useState(null),g=xe(),v=i.useRef(0),E=a??d.disableHoverableContent,f=c??d.delayDuration,h=i.useRef(!1),[x=!1,y]=qt({prop:r,defaultProp:o,onChange:w=>{w?(d.onOpen(),document.dispatchEvent(new CustomEvent(Po))):d.onClose(),s==null||s(w)}}),b=i.useMemo(()=>x?h.current?"delayed-open":"instant-open":"closed",[x]),R=i.useCallback(()=>{window.clearTimeout(v.current),v.current=0,h.current=!1,y(!0)},[y]),C=i.useCallback(()=>{window.clearTimeout(v.current),v.current=0,y(!1)},[y]),S=i.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{h.current=!0,y(!0),v.current=0},f)},[f,y]);return i.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),l.jsxRuntimeExports.jsx(ry,{...u,children:l.jsxRuntimeExports.jsx(dy,{scope:t,contentId:g,open:x,stateAttribute:b,trigger:p,onTriggerChange:m,onTriggerEnter:i.useCallback(()=>{d.isOpenDelayed?S():R()},[d.isOpenDelayed,S,R]),onTriggerLeave:i.useCallback(()=>{E?C():(window.clearTimeout(v.current),v.current=0)},[C,E]),onOpen:R,onClose:C,disableHoverableContent:E,children:n})})};_u.displayName=vr;var jo="TooltipTrigger",Lu=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=gr(jo,n),s=Cs(jo,n),a=hr(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(oy,{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)})})});Lu.displayName=jo;var fy="TooltipPortal",[Jw,py]=mr(fy,{forceMount:void 0}),Dt="TooltipContent",Fu=i.forwardRef((e,t)=>{const n=py(Dt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=gr(Dt,e.__scopeTooltip);return l.jsxRuntimeExports.jsx(xs,{present:r||a.open,children:a.disableHoverableContent?l.jsxRuntimeExports.jsx(Wu,{side:o,...s,ref:t}):l.jsxRuntimeExports.jsx(my,{side:o,...s,ref:t})})}),my=i.forwardRef((e,t)=>{const n=gr(Dt,e.__scopeTooltip),r=Cs(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]),v=i.useCallback((E,f)=>{const h=E.currentTarget,x={x:E.clientX,y:E.clientY},y=xy(x,h.getBoundingClientRect()),b=yy(x,y),R=Ey(f.getBoundingClientRect()),C=by([...b,...R]);c(C),m(!0)},[m]);return i.useEffect(()=>()=>g(),[g]),i.useEffect(()=>{if(d&&p){const E=h=>v(h,p),f=h=>v(h,d);return d.addEventListener("pointerleave",E),p.addEventListener("pointerleave",f),()=>{d.removeEventListener("pointerleave",E),p.removeEventListener("pointerleave",f)}}},[d,p,v,g]),i.useEffect(()=>{if(a){const E=f=>{const h=f.target,x={x:f.clientX,y:f.clientY},y=(d==null?void 0:d.contains(h))||(p==null?void 0:p.contains(h)),b=!wy(x,a);y?g():b&&(g(),u())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[d,p,a,u,g]),l.jsxRuntimeExports.jsx(Wu,{...e,ref:s})}),[hy,vy]=mr(vr,{isInside:!1}),Wu=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=e,d=gr(Dt,n),u=hr(n),{onClose:p}=d;return i.useEffect(()=>(document.addEventListener(Po,p),()=>document.removeEventListener(Po,p)),[p]),i.useEffect(()=>{if(d.trigger){const m=g=>{const v=g.target;v!=null&&v.contains(d.trigger)&&p()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[d.trigger,p]),l.jsxRuntimeExports.jsx(wu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:m=>m.preventDefault(),onDismiss:p,children:l.jsxRuntimeExports.jsxs(sy,{"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(yu,{children:r}),l.jsxRuntimeExports.jsx(hy,{scope:n,isInside:!0,children:l.jsxRuntimeExports.jsx(cy,{id:d.contentId,role:"tooltip",children:o||r})})]})})});Fu.displayName=Dt;var Bu="TooltipArrow",gy=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=hr(n);return vy(Bu,n).isInside?null:l.jsxRuntimeExports.jsx(iy,{...o,...r,ref:t})});gy.displayName=Bu;function xy(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 yy(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 Ey(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 wy(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 by(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),Ry(t)}function Ry(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 Cy=Mu,Sy=_u,Py=Lu,Vu=Fu;const jy=Cy,Ty=Sy,Ay=Py,Hu=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(Vu,{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})});Hu.displayName=Vu.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 Bi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Uu(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Bi(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():Bi(e[o],null)}}}}function je(...e){return i.useCallback(Uu(...e),e)}function $y(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 Ss(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:v,...E}=m,f=((x=g==null?void 0:g[e])==null?void 0:x[d])||c,h=i.useMemo(()=>E,Object.values(E));return l.jsxRuntimeExports.jsx(f.Provider,{value:h,children:v})};u.displayName=s+"Provider";function p(m,g){var f;const v=((f=g==null?void 0:g[e])==null?void 0:f[d])||c,E=i.useContext(v);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,Ny(o,...t)]}function Ny(...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=Oy(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),d=c.find(Iy);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 Oy(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=My(o),c=ky(s,o.props);return o.type!==i.Fragment&&(c.ref=r?Uu(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 Dy=Symbol("radix.slottable");function Iy(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Dy}function ky(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 My(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 _y=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],he=_y.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 Ly(e,t){e&&Ze.flushSync(()=>e.dispatchEvent(t))}function It(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 Fy(e,t=globalThis==null?void 0:globalThis.document){const n=It(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 Wy="DismissableLayer",To="dismissableLayer.update",By="dismissableLayer.pointerDownOutside",Vy="dismissableLayer.focusOutside",Vi,zu=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),js=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(zu),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),E=je(t,w=>m(w)),f=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(h),y=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=zy(w=>{const j=w.target,$=[...u.branches].some(I=>I.contains(j));!R||$||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=Yy(w=>{const j=w.target;[...u.branches].some(I=>I.contains(j))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return Fy(w=>{y===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&&(Vi=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=Vi)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),Hi())},[p,u]),i.useEffect(()=>{const w=()=>v({});return document.addEventListener(To,w),()=>document.removeEventListener(To,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)})});js.displayName=Wy;var Hy="DismissableLayerBranch",Uy=i.forwardRef((e,t)=>{const n=i.useContext(zu),r=i.useRef(null),o=je(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})});Uy.displayName=Hy;function zy(e,t=globalThis==null?void 0:globalThis.document){const n=It(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){Yu(By,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 Yy(e,t=globalThis==null?void 0:globalThis.document){const n=It(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&Yu(Vy,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 Yu(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?Ly(o,s):o.dispatchEvent(s)}var Hr=0;function Ku(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ui()),document.body.insertAdjacentElement("beforeend",e[1]??Ui()),Hr++,()=>{Hr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Hr--}},[])}function Ui(){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 Ur="focusScope.autoFocusOnMount",zr="focusScope.autoFocusOnUnmount",zi={bubbles:!1,cancelable:!0},Ky="FocusScope",Ts=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[c,d]=i.useState(null),u=It(o),p=It(s),m=i.useRef(null),g=je(t,f=>d(f)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let f=function(b){if(v.paused||!c)return;const R=b.target;c.contains(R)?m.current=R:He(m.current,{select:!0})},h=function(b){if(v.paused||!c)return;const R=b.relatedTarget;R!==null&&(c.contains(R)||He(m.current,{select:!0}))},x=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",h);const y=new MutationObserver(x);return c&&y.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",h),y.disconnect()}}},[r,c,v.paused]),i.useEffect(()=>{if(c){Ki.add(v);const f=document.activeElement;if(!c.contains(f)){const x=new CustomEvent(Ur,zi);c.addEventListener(Ur,u),c.dispatchEvent(x),x.defaultPrevented||(Xy(Jy(Xu(c)),{select:!0}),document.activeElement===f&&He(c))}return()=>{c.removeEventListener(Ur,u),setTimeout(()=>{const x=new CustomEvent(zr,zi);c.addEventListener(zr,p),c.dispatchEvent(x),x.defaultPrevented||He(f??document.body,{select:!0}),c.removeEventListener(zr,p),Ki.remove(v)},0)}}},[c,u,p,v]);const E=i.useCallback(f=>{if(!n&&!r||v.paused)return;const h=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,x=document.activeElement;if(h&&x){const y=f.currentTarget,[b,R]=Gy(y);b&&R?!f.shiftKey&&x===R?(f.preventDefault(),n&&He(b,{select:!0})):f.shiftKey&&x===b&&(f.preventDefault(),n&&He(R,{select:!0})):x===y&&f.preventDefault()}},[n,r,v.paused]);return l.jsxRuntimeExports.jsx(he.div,{tabIndex:-1,...a,ref:g,onKeyDown:E})});Ts.displayName=Ky;function Xy(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(He(r,{select:t}),document.activeElement!==n)return}function Gy(e){const t=Xu(e),n=Yi(t,e),r=Yi(t.reverse(),e);return[n,r]}function Xu(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 Yi(e,t){for(const n of e)if(!qy(n,{upTo:t}))return n}function qy(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 Zy(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&&Zy(e)&&t&&e.select()}}var Ki=Qy();function Qy(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Xi(e,t),e.unshift(t)},remove(t){var n;e=Xi(e,t),(n=e[0])==null||n.resume()}}}function Xi(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Jy(e){return e.filter(t=>t.tagName!=="A")}var Ge=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},eE=i[" useId ".trim().toString()]||(()=>{}),tE=0;function Dn(e){const[t,n]=i.useState(eE());return Ge(()=>{e||n(r=>r??String(tE++))},[e]),e||(t?`radix-${t}`:"")}var nE="Arrow",Gu=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"})})});Gu.displayName=nE;var rE=Gu;function oE(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 As="Popper",[qu,Zu]=Ss(As),[sE,Qu]=qu(As),Ju=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return l.jsxRuntimeExports.jsx(sE,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ju.displayName=As;var ed="PopperAnchor",td=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Qu(ed,n),a=i.useRef(null),c=je(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})});td.displayName=ed;var $s="PopperContent",[iE,aE]=qu($s),nd=i.forwardRef((e,t)=>{var A,L,V,G,Z,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:v="optimized",onPlaced:E,...f}=e,h=Qu($s,n),[x,y]=i.useState(null),b=je(t,oe=>y(oe)),[R,C]=i.useState(null),S=oE(R),w=(S==null?void 0:S.width)??0,j=(S==null?void 0:S.height)??0,$=r+(s!=="center"?"-"+s:""),I=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},U=Array.isArray(u)?u:[u],Y=U.length>0,F={padding:I,boundary:U.filter(lE),altBoundary:Y},{refs:T,floatingStyles:W,placement:k,isPositioned:M,middlewareData:N}=os({strategy:"fixed",placement:$,whileElementsMounted:(...oe)=>rs(...oe,{animationFrame:v==="always"}),elements:{reference:h.anchor},middleware:[ss({mainAxis:o+j,alignmentAxis:a}),d&&is({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?as():void 0,...F}),d&&cs({...F}),ls({...F,apply:({elements:oe,rects:de,availableWidth:De,availableHeight:Ie})=>{const{width:ke,height:Vt}=de.reference,pe=oe.floating.style;pe.setProperty("--radix-popper-available-width",`${De}px`),pe.setProperty("--radix-popper-available-height",`${Ie}px`),pe.setProperty("--radix-popper-anchor-width",`${ke}px`),pe.setProperty("--radix-popper-anchor-height",`${Vt}px`)}}),R&&ds({element:R,padding:c}),uE({arrowWidth:w,arrowHeight:j}),g&&us({strategy:"referenceHidden",...F})]}),[B,te]=sd(k),J=It(E);Ge(()=>{M&&(J==null||J())},[M,J]);const P=(A=N.arrow)==null?void 0:A.x,D=(L=N.arrow)==null?void 0:L.y,_=((V=N.arrow)==null?void 0:V.centerOffset)!==0,[O,H]=i.useState();return Ge(()=>{x&&H(window.getComputedStyle(x).zIndex)},[x]),l.jsxRuntimeExports.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:M?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(G=N.transformOrigin)==null?void 0:G.x,(Z=N.transformOrigin)==null?void 0:Z.y].join(" "),...((K=N.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsxRuntimeExports.jsx(iE,{scope:n,placedSide:B,onArrowChange:C,arrowX:P,arrowY:D,shouldHideArrow:_,children:l.jsxRuntimeExports.jsx(he.div,{"data-side":B,"data-align":te,...f,ref:b,style:{...f.style,animation:M?void 0:"none"}})})})});nd.displayName=$s;var rd="PopperArrow",cE={top:"bottom",right:"left",bottom:"top",left:"right"},od=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=aE(rd,r),a=cE[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(rE,{...o,ref:n,style:{...o.style,display:"block"}})})});od.displayName=rd;function lE(e){return e!==null}var uE=e=>({name:"transformOrigin",options:e,fn(t){var h,x,y;const{placement:n,rects:r,middlewareData:o}=t,a=((h=o.arrow)==null?void 0:h.centerOffset)!==0,c=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,p]=sd(n),m={start:"0%",center:"50%",end:"100%"}[p],g=(((x=o.arrow)==null?void 0:x.x)??0)+c/2,v=(((y=o.arrow)==null?void 0:y.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:`${v}px`):u==="left"&&(E=`${r.floating.width+d}px`,f=a?m:`${v}px`),{data:{x:E,y:f}}}});function sd(e){const[t,n="center"]=e.split("-");return[t,n]}var dE=Ju,id=td,fE=nd,pE=od,mE="Portal",Ns=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?Yn.createPortal(l.jsxRuntimeExports.jsx(he.div,{...r,ref:t}),a):null});Ns.displayName=mE;function hE(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var Bt=e=>{const{present:t,children:n}=e,r=vE(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),s=je(r.ref,gE(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:s}):null};Bt.displayName="Presence";function vE(e){const[t,n]=i.useState(),r=i.useRef(null),o=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,d]=hE(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=En(r.current);s.current=c==="mounted"?u:"none"},[c]),Ge(()=>{const u=r.current,p=o.current;if(p!==e){const g=s.current,v=En(u);e?d("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(p&&g!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),Ge(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,m=v=>{const f=En(r.current).includes(v.animationName);if(v.target===t&&f&&(d("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},g=v=>{v.target===t&&(s.current=En(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 En(e){return(e==null?void 0:e.animationName)||"none"}function gE(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 xE=i[" useInsertionEffect ".trim().toString()]||Ge;function ad({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=yE({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=EE(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 yE({defaultProp:e,onChange:t}){const[n,r]=i.useState(e),o=i.useRef(n),s=i.useRef(t);return xE(()=>{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 EE(e){return typeof e=="function"}function wE(e){return e}function bE(e,t){t===void 0&&(t=wE);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 RE(e){e===void 0&&(e={});var t=bE(null);return t.options=ie({async:!0,ssr:!1},e),t}var cd=function(e){var t=e.sideCar,n=en(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))};cd.isSideCarExport=!0;function CE(e,t){return e.useMedium(t),cd}var ld=RE(),Yr=function(){},xr=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Yr,onWheelCapture:Yr,onTouchMoveCapture:Yr}),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,v=e.noRelative,E=e.noIsolation,f=e.inert,h=e.allowPinchZoom,x=e.as,y=x===void 0?"div":x,b=e.gapMode,R=en(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=g,S=Fc([n,t]),w=ie(ie({},R),o);return i.createElement(i.Fragment,null,p&&i.createElement(C,{sideCar:ld,removeScrollBar:u,shards:m,noRelative:v,noIsolation:E,inert:f,setCallbacks:s,allowPinchZoom:!!h,lockRef:n,gapMode:b}),a?i.cloneElement(i.Children.only(c),ie(ie({},w),{ref:S})):i.createElement(y,ie({},w,{className:d,ref:S}),c))});xr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xr.classNames={fullWidth:Xt,zeroRight:Kt};var Ao=!1;if(typeof window<"u")try{var wn=Object.defineProperty({},"passive",{get:function(){return Ao=!0,!0}});window.addEventListener("test",wn,wn),window.removeEventListener("test",wn,wn)}catch{Ao=!1}var yt=Ao?{passive:!1}:!1,SE=function(e){return e.tagName==="TEXTAREA"},ud=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!SE(e)&&n[t]==="visible")},PE=function(e){return ud(e,"overflowY")},jE=function(e){return ud(e,"overflowX")},Gi=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=dd(e,r);if(o){var s=fd(e,r),a=s[1],c=s[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},TE=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},AE=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},dd=function(e,t){return e==="v"?PE(t):jE(t)},fd=function(e,t){return e==="v"?TE(t):AE(t)},$E=function(e,t){return e==="h"&&t==="rtl"?-1:1},NE=function(e,t,n,r,o){var s=$E(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 v=fd(e,c),E=v[0],f=v[1],h=v[2],x=f-h-s*E;(E||x)&&dd(e,c)&&(m+=x,g+=E);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},bn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qi=function(e){return[e.deltaX,e.deltaY]},Zi=function(e){return e&&"current"in e?e.current:e},OE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},DE=function(e){return`
|
|
673
|
+
`,ry=({variant:e})=>{switch(e){case"success":return l.jsxRuntimeExports.jsx(hx,{});case"error":return l.jsxRuntimeExports.jsx(px,{});case"warning":return l.jsxRuntimeExports.jsx(vx,{});default:return l.jsxRuntimeExports.jsx(mx,{})}};function oy(){const{toasts:e}=Hl();return l.jsxRuntimeExports.jsxs(Gx,{children:[e.map(function({id:t,title:n,description:r,testId:o,variant:s="info",...a}){return l.jsxRuntimeExports.jsxs(Qx,{$variant:s,testId:o,...a,children:[l.jsxRuntimeExports.jsx(ey,{children:l.jsxRuntimeExports.jsx(ry,{variant:s})}),l.jsxRuntimeExports.jsxs(Jx,{children:[n&&l.jsxRuntimeExports.jsx(ty,{children:n}),r&&l.jsxRuntimeExports.jsx(ny,{children:r})]}),l.jsxRuntimeExports.jsx(vu,{color:Co[s].color})]},t)}),l.jsxRuntimeExports.jsx(mu,{})]})}var yu=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),s=o.find(sy);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(So,{...r,ref:t,children:i.isValidElement(a)?i.cloneElement(a,void 0,c):null})}return l.jsxRuntimeExports.jsx(So,{...r,ref:t,children:n})});yu.displayName="Slot";var So=i.forwardRef((e,t)=>{const{children:n,...r}=e;if(i.isValidElement(n)){const o=ay(n),s=iy(r,n.props);return n.type!==i.Fragment&&(s.ref=t?ze(t,o):o),i.cloneElement(n,s)}return i.Children.count(n)>1?i.Children.only(null):null});So.displayName="SlotClone";var Eu=({children:e})=>l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e});function sy(e){return i.isValidElement(e)&&e.type===Eu}function iy(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 ay(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?yu: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 ly(e,t){e&&Ze.flushSync(()=>e.dispatchEvent(t))}var uy="DismissableLayer",Po="dismissableLayer.update",dy="dismissableLayer.pointerDownOutside",fy="dismissableLayer.focusOutside",Wi,wu=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bu=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=i.useContext(wu),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),E=ne(t,w=>m(w)),f=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(h),y=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=hy(w=>{const j=w.target,$=[...u.branches].some(I=>I.contains(j));!R||$||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=vy(w=>{const j=w.target;[...u.branches].some(I=>I.contains(j))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return Jn(w=>{y===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&&(Wi=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),Bi(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Wi)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),Bi())},[p,u]),i.useEffect(()=>{const w=()=>v({});return document.addEventListener(Po,w),()=>document.removeEventListener(Po,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)})});bu.displayName=uy;var py="DismissableLayerBranch",my=i.forwardRef((e,t)=>{const n=i.useContext(wu),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})});my.displayName=py;function hy(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(){Ru(dy,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 vy(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&&Ru(fy,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 Bi(){const e=new CustomEvent(Po);document.dispatchEvent(e)}function Ru(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?ly(o,s):o.dispatchEvent(s)}var gy="Arrow",Cu=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"})})});Cu.displayName=gy;var xy=Cu,Rs="Popper",[Su,Pu]=ft(Rs),[yy,ju]=Su(Rs),Tu=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return l.jsxRuntimeExports.jsx(yy,{scope:t,anchor:r,onAnchorChange:o,children:n})};Tu.displayName=Rs;var Au="PopperAnchor",$u=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=ju(Au,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})});$u.displayName=Au;var Cs="PopperContent",[Ey,wy]=Su(Cs),Nu=i.forwardRef((e,t)=>{var A,F,H,G,Z,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:v="optimized",onPlaced:E,...f}=e,h=ju(Cs,n),[x,y]=i.useState(null),b=ne(t,oe=>y(oe)),[R,C]=i.useState(null),S=Ac(R),w=(S==null?void 0:S.width)??0,j=(S==null?void 0:S.height)??0,$=r+(s!=="center"?"-"+s:""),I=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},z=Array.isArray(u)?u:[u],Y=z.length>0,W={padding:I,boundary:z.filter(Ry),altBoundary:Y},{refs:T,floatingStyles:B,placement:M,isPositioned:_,middlewareData:N}=ss({strategy:"fixed",placement:$,whileElementsMounted:(...oe)=>os(...oe,{animationFrame:v==="always"}),elements:{reference:h.anchor},middleware:[is({mainAxis:o+j,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:Ie})=>{const{width:ke,height:Vt}=de.reference,pe=oe.floating.style;pe.setProperty("--radix-popper-available-width",`${De}px`),pe.setProperty("--radix-popper-available-height",`${Ie}px`),pe.setProperty("--radix-popper-anchor-width",`${ke}px`),pe.setProperty("--radix-popper-anchor-height",`${Vt}px`)}}),R&&fs({element:R,padding:c}),Cy({arrowWidth:w,arrowHeight:j}),g&&ds({strategy:"referenceHidden",...W})]}),[V,te]=Iu(M),J=ae(E);ce(()=>{_&&(J==null||J())},[_,J]);const P=(A=N.arrow)==null?void 0:A.x,D=(F=N.arrow)==null?void 0:F.y,L=((H=N.arrow)==null?void 0:H.centerOffset)!==0,[O,U]=i.useState();return ce(()=>{x&&U(window.getComputedStyle(x).zIndex)},[x]),l.jsxRuntimeExports.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:_?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(G=N.transformOrigin)==null?void 0:G.x,(Z=N.transformOrigin)==null?void 0:Z.y].join(" "),...((K=N.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsxRuntimeExports.jsx(Ey,{scope:n,placedSide:V,onArrowChange:C,arrowX:P,arrowY:D,shouldHideArrow:L,children:l.jsxRuntimeExports.jsx(fe.div,{"data-side":V,"data-align":te,...f,ref:b,style:{...f.style,animation:_?void 0:"none"}})})})});Nu.displayName=Cs;var Ou="PopperArrow",by={top:"bottom",right:"left",bottom:"top",left:"right"},Du=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=wy(Ou,r),a=by[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(xy,{...o,ref:n,style:{...o.style,display:"block"}})})});Du.displayName=Ou;function Ry(e){return e!==null}var Cy=e=>({name:"transformOrigin",options:e,fn(t){var h,x,y;const{placement:n,rects:r,middlewareData:o}=t,a=((h=o.arrow)==null?void 0:h.centerOffset)!==0,c=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,p]=Iu(n),m={start:"0%",center:"50%",end:"100%"}[p],g=(((x=o.arrow)==null?void 0:x.x)??0)+c/2,v=(((y=o.arrow)==null?void 0:y.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:`${v}px`):u==="left"&&(E=`${r.floating.width+d}px`,f=a?m:`${v}px`),{data:{x:E,y:f}}}});function Iu(e){const[t,n="center"]=e.split("-");return[t,n]}var Sy=Tu,Py=$u,jy=Nu,Ty=Du,Ay="VisuallyHidden",ku=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}}));ku.displayName=Ay;var $y=ku,[mr,Eb]=ft("Tooltip",[Pu]),hr=Pu(),Mu="TooltipProvider",Ny=700,jo="tooltip.open",[Oy,Ss]=mr(Mu),_u=e=>{const{__scopeTooltip:t,delayDuration:n=Ny,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(Oy,{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})};_u.displayName=Mu;var vr="Tooltip",[Dy,gr]=mr(vr),Lu=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,d=Ss(vr,e.__scopeTooltip),u=hr(t),[p,m]=i.useState(null),g=xe(),v=i.useRef(0),E=a??d.disableHoverableContent,f=c??d.delayDuration,h=i.useRef(!1),[x=!1,y]=qt({prop:r,defaultProp:o,onChange:w=>{w?(d.onOpen(),document.dispatchEvent(new CustomEvent(jo))):d.onClose(),s==null||s(w)}}),b=i.useMemo(()=>x?h.current?"delayed-open":"instant-open":"closed",[x]),R=i.useCallback(()=>{window.clearTimeout(v.current),v.current=0,h.current=!1,y(!0)},[y]),C=i.useCallback(()=>{window.clearTimeout(v.current),v.current=0,y(!1)},[y]),S=i.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{h.current=!0,y(!0),v.current=0},f)},[f,y]);return i.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),l.jsxRuntimeExports.jsx(Sy,{...u,children:l.jsxRuntimeExports.jsx(Dy,{scope:t,contentId:g,open:x,stateAttribute:b,trigger:p,onTriggerChange:m,onTriggerEnter:i.useCallback(()=>{d.isOpenDelayed?S():R()},[d.isOpenDelayed,S,R]),onTriggerLeave:i.useCallback(()=>{E?C():(window.clearTimeout(v.current),v.current=0)},[C,E]),onOpen:R,onClose:C,disableHoverableContent:E,children:n})})};Lu.displayName=vr;var To="TooltipTrigger",Fu=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=gr(To,n),s=Ss(To,n),a=hr(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(Py,{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)})})});Fu.displayName=To;var Iy="TooltipPortal",[wb,ky]=mr(Iy,{forceMount:void 0}),Dt="TooltipContent",Wu=i.forwardRef((e,t)=>{const n=ky(Dt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=gr(Dt,e.__scopeTooltip);return l.jsxRuntimeExports.jsx(ys,{present:r||a.open,children:a.disableHoverableContent?l.jsxRuntimeExports.jsx(Bu,{side:o,...s,ref:t}):l.jsxRuntimeExports.jsx(My,{side:o,...s,ref:t})})}),My=i.forwardRef((e,t)=>{const n=gr(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]),v=i.useCallback((E,f)=>{const h=E.currentTarget,x={x:E.clientX,y:E.clientY},y=Wy(x,h.getBoundingClientRect()),b=By(x,y),R=Vy(f.getBoundingClientRect()),C=Uy([...b,...R]);c(C),m(!0)},[m]);return i.useEffect(()=>()=>g(),[g]),i.useEffect(()=>{if(d&&p){const E=h=>v(h,p),f=h=>v(h,d);return d.addEventListener("pointerleave",E),p.addEventListener("pointerleave",f),()=>{d.removeEventListener("pointerleave",E),p.removeEventListener("pointerleave",f)}}},[d,p,v,g]),i.useEffect(()=>{if(a){const E=f=>{const h=f.target,x={x:f.clientX,y:f.clientY},y=(d==null?void 0:d.contains(h))||(p==null?void 0:p.contains(h)),b=!Hy(x,a);y?g():b&&(g(),u())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[d,p,a,u,g]),l.jsxRuntimeExports.jsx(Bu,{...e,ref:s})}),[_y,Ly]=mr(vr,{isInside:!1}),Bu=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=e,d=gr(Dt,n),u=hr(n),{onClose:p}=d;return i.useEffect(()=>(document.addEventListener(jo,p),()=>document.removeEventListener(jo,p)),[p]),i.useEffect(()=>{if(d.trigger){const m=g=>{const v=g.target;v!=null&&v.contains(d.trigger)&&p()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[d.trigger,p]),l.jsxRuntimeExports.jsx(bu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:m=>m.preventDefault(),onDismiss:p,children:l.jsxRuntimeExports.jsxs(jy,{"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(Eu,{children:r}),l.jsxRuntimeExports.jsx(_y,{scope:n,isInside:!0,children:l.jsxRuntimeExports.jsx($y,{id:d.contentId,role:"tooltip",children:o||r})})]})})});Wu.displayName=Dt;var Vu="TooltipArrow",Fy=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=hr(n);return Ly(Vu,n).isInside?null:l.jsxRuntimeExports.jsx(Ty,{...o,...r,ref:t})});Fy.displayName=Vu;function Wy(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 By(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 Vy(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 Hy(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 Uy(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),zy(t)}function zy(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 Yy=_u,Ky=Lu,Xy=Fu,Hu=Wu;const Gy=Yy,qy=Ky,Zy=Xy,Uu=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(Hu,{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})});Uu.displayName=Hu.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 zu(...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 je(...e){return i.useCallback(zu(...e),e)}function Qy(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 Ps(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:v,...E}=m,f=((x=g==null?void 0:g[e])==null?void 0:x[d])||c,h=i.useMemo(()=>E,Object.values(E));return l.jsxRuntimeExports.jsx(f.Provider,{value:h,children:v})};u.displayName=s+"Provider";function p(m,g){var f;const v=((f=g==null?void 0:g[e])==null?void 0:f[d])||c,E=i.useContext(v);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,Jy(o,...t)]}function Jy(...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 js(e){const t=eE(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),d=c.find(nE);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 eE(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=oE(o),c=rE(s,o.props);return o.type!==i.Fragment&&(c.ref=r?zu(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 tE=Symbol("radix.slottable");function nE(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===tE}function rE(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 oE(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 sE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],he=sE.reduce((e,t)=>{const n=js(`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 iE(e,t){e&&Ze.flushSync(()=>e.dispatchEvent(t))}function It(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 aE(e,t=globalThis==null?void 0:globalThis.document){const n=It(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",Ao="dismissableLayer.update",lE="dismissableLayer.pointerDownOutside",uE="dismissableLayer.focusOutside",Hi,Yu=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(Yu),[p,m]=i.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),E=je(t,w=>m(w)),f=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(h),y=p?f.indexOf(p):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,R=y>=x,C=pE(w=>{const j=w.target,$=[...u.branches].some(I=>I.contains(j));!R||$||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},g),S=mE(w=>{const j=w.target;[...u.branches].some(I=>I.contains(j))||(s==null||s(w),a==null||a(w),w.defaultPrevented||c==null||c())},g);return aE(w=>{y===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&&(Hi=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=Hi)}},[p,g,n,u]),i.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),Ui())},[p,u]),i.useEffect(()=>{const w=()=>v({});return document.addEventListener(Ao,w),()=>document.removeEventListener(Ao,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=cE;var dE="DismissableLayerBranch",fE=i.forwardRef((e,t)=>{const n=i.useContext(Yu),r=i.useRef(null),o=je(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})});fE.displayName=dE;function pE(e,t=globalThis==null?void 0:globalThis.document){const n=It(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){Ku(lE,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 mE(e,t=globalThis==null?void 0:globalThis.document){const n=It(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&Ku(uE,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(Ao);document.dispatchEvent(e)}function Ku(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?iE(o,s):o.dispatchEvent(s)}var Ur=0;function Xu(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??zi()),document.body.insertAdjacentElement("beforeend",e[1]??zi()),Ur++,()=>{Ur===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ur--}},[])}function zi(){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 zr="focusScope.autoFocusOnMount",Yr="focusScope.autoFocusOnUnmount",Yi={bubbles:!1,cancelable:!0},hE="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=It(o),p=It(s),m=i.useRef(null),g=je(t,f=>d(f)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let f=function(b){if(v.paused||!c)return;const R=b.target;c.contains(R)?m.current=R:He(m.current,{select:!0})},h=function(b){if(v.paused||!c)return;const R=b.relatedTarget;R!==null&&(c.contains(R)||He(m.current,{select:!0}))},x=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",h);const y=new MutationObserver(x);return c&&y.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",h),y.disconnect()}}},[r,c,v.paused]),i.useEffect(()=>{if(c){Xi.add(v);const f=document.activeElement;if(!c.contains(f)){const x=new CustomEvent(zr,Yi);c.addEventListener(zr,u),c.dispatchEvent(x),x.defaultPrevented||(vE(wE(Gu(c)),{select:!0}),document.activeElement===f&&He(c))}return()=>{c.removeEventListener(zr,u),setTimeout(()=>{const x=new CustomEvent(Yr,Yi);c.addEventListener(Yr,p),c.dispatchEvent(x),x.defaultPrevented||He(f??document.body,{select:!0}),c.removeEventListener(Yr,p),Xi.remove(v)},0)}}},[c,u,p,v]);const E=i.useCallback(f=>{if(!n&&!r||v.paused)return;const h=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,x=document.activeElement;if(h&&x){const y=f.currentTarget,[b,R]=gE(y);b&&R?!f.shiftKey&&x===R?(f.preventDefault(),n&&He(b,{select:!0})):f.shiftKey&&x===b&&(f.preventDefault(),n&&He(R,{select:!0})):x===y&&f.preventDefault()}},[n,r,v.paused]);return l.jsxRuntimeExports.jsx(he.div,{tabIndex:-1,...a,ref:g,onKeyDown:E})});As.displayName=hE;function vE(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(He(r,{select:t}),document.activeElement!==n)return}function gE(e){const t=Gu(e),n=Ki(t,e),r=Ki(t.reverse(),e);return[n,r]}function Gu(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 Ki(e,t){for(const n of e)if(!xE(n,{upTo:t}))return n}function xE(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 yE(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&&yE(e)&&t&&e.select()}}var Xi=EE();function EE(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Gi(e,t),e.unshift(t)},remove(t){var n;e=Gi(e,t),(n=e[0])==null||n.resume()}}}function Gi(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function wE(e){return e.filter(t=>t.tagName!=="A")}var Ge=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},bE=i[" useId ".trim().toString()]||(()=>{}),RE=0;function Dn(e){const[t,n]=i.useState(bE());return Ge(()=>{e||n(r=>r??String(RE++))},[e]),e||(t?`radix-${t}`:"")}var CE="Arrow",qu=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"})})});qu.displayName=CE;var SE=qu;function PE(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 $s="Popper",[Zu,Qu]=Ps($s),[jE,Ju]=Zu($s),ed=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return l.jsxRuntimeExports.jsx(jE,{scope:t,anchor:r,onAnchorChange:o,children:n})};ed.displayName=$s;var td="PopperAnchor",nd=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Ju(td,n),a=i.useRef(null),c=je(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})});nd.displayName=td;var Ns="PopperContent",[TE,AE]=Zu(Ns),rd=i.forwardRef((e,t)=>{var A,F,H,G,Z,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:v="optimized",onPlaced:E,...f}=e,h=Ju(Ns,n),[x,y]=i.useState(null),b=je(t,oe=>y(oe)),[R,C]=i.useState(null),S=PE(R),w=(S==null?void 0:S.width)??0,j=(S==null?void 0:S.height)??0,$=r+(s!=="center"?"-"+s:""),I=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},z=Array.isArray(u)?u:[u],Y=z.length>0,W={padding:I,boundary:z.filter(NE),altBoundary:Y},{refs:T,floatingStyles:B,placement:M,isPositioned:_,middlewareData:N}=ss({strategy:"fixed",placement:$,whileElementsMounted:(...oe)=>os(...oe,{animationFrame:v==="always"}),elements:{reference:h.anchor},middleware:[is({mainAxis:o+j,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:Ie})=>{const{width:ke,height:Vt}=de.reference,pe=oe.floating.style;pe.setProperty("--radix-popper-available-width",`${De}px`),pe.setProperty("--radix-popper-available-height",`${Ie}px`),pe.setProperty("--radix-popper-anchor-width",`${ke}px`),pe.setProperty("--radix-popper-anchor-height",`${Vt}px`)}}),R&&fs({element:R,padding:c}),OE({arrowWidth:w,arrowHeight:j}),g&&ds({strategy:"referenceHidden",...W})]}),[V,te]=id(M),J=It(E);Ge(()=>{_&&(J==null||J())},[_,J]);const P=(A=N.arrow)==null?void 0:A.x,D=(F=N.arrow)==null?void 0:F.y,L=((H=N.arrow)==null?void 0:H.centerOffset)!==0,[O,U]=i.useState();return Ge(()=>{x&&U(window.getComputedStyle(x).zIndex)},[x]),l.jsxRuntimeExports.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:_?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(G=N.transformOrigin)==null?void 0:G.x,(Z=N.transformOrigin)==null?void 0:Z.y].join(" "),...((K=N.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsxRuntimeExports.jsx(TE,{scope:n,placedSide:V,onArrowChange:C,arrowX:P,arrowY:D,shouldHideArrow:L,children:l.jsxRuntimeExports.jsx(he.div,{"data-side":V,"data-align":te,...f,ref:b,style:{...f.style,animation:_?void 0:"none"}})})})});rd.displayName=Ns;var od="PopperArrow",$E={top:"bottom",right:"left",bottom:"top",left:"right"},sd=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=AE(od,r),a=$E[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(SE,{...o,ref:n,style:{...o.style,display:"block"}})})});sd.displayName=od;function NE(e){return e!==null}var OE=e=>({name:"transformOrigin",options:e,fn(t){var h,x,y;const{placement:n,rects:r,middlewareData:o}=t,a=((h=o.arrow)==null?void 0:h.centerOffset)!==0,c=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,p]=id(n),m={start:"0%",center:"50%",end:"100%"}[p],g=(((x=o.arrow)==null?void 0:x.x)??0)+c/2,v=(((y=o.arrow)==null?void 0:y.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:`${v}px`):u==="left"&&(E=`${r.floating.width+d}px`,f=a?m:`${v}px`),{data:{x:E,y:f}}}});function id(e){const[t,n="center"]=e.split("-");return[t,n]}var DE=ed,ad=nd,IE=rd,kE=sd,ME="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?Yn.createPortal(l.jsxRuntimeExports.jsx(he.div,{...r,ref:t}),a):null});Os.displayName=ME;function _E(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var Bt=e=>{const{present:t,children:n}=e,r=LE(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),s=je(r.ref,FE(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:s}):null};Bt.displayName="Presence";function LE(e){const[t,n]=i.useState(),r=i.useRef(null),o=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,d]=_E(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=En(r.current);s.current=c==="mounted"?u:"none"},[c]),Ge(()=>{const u=r.current,p=o.current;if(p!==e){const g=s.current,v=En(u);e?d("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(p&&g!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),Ge(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,m=v=>{const f=En(r.current).includes(v.animationName);if(v.target===t&&f&&(d("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},g=v=>{v.target===t&&(s.current=En(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 En(e){return(e==null?void 0:e.animationName)||"none"}function FE(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=i[" useInsertionEffect ".trim().toString()]||Ge;function cd({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=BE({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=VE(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 BE({defaultProp:e,onChange:t}){const[n,r]=i.useState(e),o=i.useRef(n),s=i.useRef(t);return WE(()=>{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 VE(e){return typeof e=="function"}function HE(e){return e}function UE(e,t){t===void 0&&(t=HE);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 zE(e){e===void 0&&(e={});var t=UE(null);return t.options=ie({async:!0,ssr:!1},e),t}var ld=function(e){var t=e.sideCar,n=en(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))};ld.isSideCarExport=!0;function YE(e,t){return e.useMedium(t),ld}var ud=zE(),Kr=function(){},xr=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Kr,onWheelCapture:Kr,onTouchMoveCapture:Kr}),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,v=e.noRelative,E=e.noIsolation,f=e.inert,h=e.allowPinchZoom,x=e.as,y=x===void 0?"div":x,b=e.gapMode,R=en(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=g,S=Wc([n,t]),w=ie(ie({},R),o);return i.createElement(i.Fragment,null,p&&i.createElement(C,{sideCar:ud,removeScrollBar:u,shards:m,noRelative:v,noIsolation:E,inert:f,setCallbacks:s,allowPinchZoom:!!h,lockRef:n,gapMode:b}),a?i.cloneElement(i.Children.only(c),ie(ie({},w),{ref:S})):i.createElement(y,ie({},w,{className:d,ref:S}),c))});xr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xr.classNames={fullWidth:Xt,zeroRight:Kt};var $o=!1;if(typeof window<"u")try{var wn=Object.defineProperty({},"passive",{get:function(){return $o=!0,!0}});window.addEventListener("test",wn,wn),window.removeEventListener("test",wn,wn)}catch{$o=!1}var yt=$o?{passive:!1}:!1,KE=function(e){return e.tagName==="TEXTAREA"},dd=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!KE(e)&&n[t]==="visible")},XE=function(e){return dd(e,"overflowY")},GE=function(e){return dd(e,"overflowX")},qi=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=fd(e,r);if(o){var s=pd(e,r),a=s[1],c=s[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},qE=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ZE=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},fd=function(e,t){return e==="v"?XE(t):GE(t)},pd=function(e,t){return e==="v"?qE(t):ZE(t)},QE=function(e,t){return e==="h"&&t==="rtl"?-1:1},JE=function(e,t,n,r,o){var s=QE(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 v=pd(e,c),E=v[0],f=v[1],h=v[2],x=f-h-s*E;(E||x)&&fd(e,c)&&(m+=x,g+=E);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},bn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Zi=function(e){return[e.deltaX,e.deltaY]},Qi=function(e){return e&&"current"in e?e.current:e},ew=function(e,t){return e[0]===t[0]&&e[1]===t[1]},tw=function(e){return`
|
|
577
674
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
578
675
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
579
|
-
`)},IE=0,Et=[];function kE(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(IE++)[0],s=i.useState(Bc)[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=Fo([e.lockRef.current],(e.shards||[]).map(Zi),!0).filter(Boolean);return f.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(f,h){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!a.current.allowPinchZoom;var x=bn(f),y=n.current,b="deltaX"in f?f.deltaX:y[0]-x[0],R="deltaY"in f?f.deltaY:y[1]-x[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 j=Gi(w,S);if(!j)return!0;if(j?C=w:(C=w==="v"?"h":"v",j=Gi(w,S)),!j)return!1;if(!r.current&&"changedTouches"in f&&(b||R)&&(r.current=C),!C)return!0;var $=r.current||C;return NE($,h,f,$==="h"?b:R,!0)},[]),d=i.useCallback(function(f){var h=f;if(!(!Et.length||Et[Et.length-1]!==s)){var x="deltaY"in h?qi(h):bn(h),y=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&OE(C.delta,x)})[0];if(y&&y.should){h.cancelable&&h.preventDefault();return}if(!y){var b=(a.current.shards||[]).map(Zi).filter(Boolean).filter(function(C){return C.contains(h.target)}),R=b.length>0?c(h,b[0]):!a.current.noIsolation;R&&h.cancelable&&h.preventDefault()}}},[]),u=i.useCallback(function(f,h,x,y){var b={name:f,delta:h,target:x,should:y,shadowParent:ME(x)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(R){return R!==b})},1)},[]),p=i.useCallback(function(f){n.current=bn(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,bn(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 v=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(s,{styles:DE(o)}):null,v?i.createElement(Vc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ME(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _E=CE(ld,kE);var Os=i.forwardRef(function(e,t){return i.createElement(xr,ie({},e,{ref:t,sideCar:_E}))});Os.classNames=xr.classNames;var yr="Popover",[pd,eb]=Ss(yr,[Zu]),rn=Zu(),[LE,et]=pd(yr),md=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,c=rn(t),d=i.useRef(null),[u,p]=i.useState(!1),[m,g]=ad({prop:r,defaultProp:o??!1,onChange:s,caller:yr});return l.jsxRuntimeExports.jsx(dE,{...c,children:l.jsxRuntimeExports.jsx(LE,{scope:t,contentId:Dn(),triggerRef:d,open:m,onOpenChange:g,onOpenToggle:i.useCallback(()=>g(v=>!v),[g]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>p(!0),[]),onCustomAnchorRemove:i.useCallback(()=>p(!1),[]),modal:a,children:n})})};md.displayName=yr;var hd="PopoverAnchor",FE=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(hd,n),s=rn(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:c}=o;return i.useEffect(()=>(a(),()=>c()),[a,c]),l.jsxRuntimeExports.jsx(id,{...s,...r,ref:t})});FE.displayName=hd;var vd="PopoverTrigger",gd=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(vd,n),s=rn(n),a=je(t,o.triggerRef),c=l.jsxRuntimeExports.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":bd(o.open),...r,ref:a,onClick:Ee(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:l.jsxRuntimeExports.jsx(id,{asChild:!0,...s,children:c})});gd.displayName=vd;var Ds="PopoverPortal",[WE,BE]=pd(Ds,{forceMount:void 0}),xd=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=et(Ds,t);return l.jsxRuntimeExports.jsx(WE,{scope:t,forceMount:n,children:l.jsxRuntimeExports.jsx(Bt,{present:n||s.open,children:l.jsxRuntimeExports.jsx(Ns,{asChild:!0,container:o,children:r})})})};xd.displayName=Ds;var kt="PopoverContent",yd=i.forwardRef((e,t)=>{const n=BE(kt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=et(kt,e.__scopePopover);return l.jsxRuntimeExports.jsx(Bt,{present:r||s.open,children:s.modal?l.jsxRuntimeExports.jsx(HE,{...o,ref:t}):l.jsxRuntimeExports.jsx(UE,{...o,ref:t})})});yd.displayName=kt;var VE=Ps("PopoverContent.RemoveScroll"),HE=i.forwardRef((e,t)=>{const n=et(kt,e.__scopePopover),r=i.useRef(null),o=je(t,r),s=i.useRef(!1);return i.useEffect(()=>{const a=r.current;if(a)return nr(a)},[]),l.jsxRuntimeExports.jsx(Os,{as:VE,allowPinchZoom:!0,children:l.jsxRuntimeExports.jsx(Ed,{...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})})})}),UE=i.forwardRef((e,t)=>{const n=et(kt,e.__scopePopover),r=i.useRef(!1),o=i.useRef(!1);return l.jsxRuntimeExports.jsx(Ed,{...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()}})}),Ed=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(kt,n),v=rn(n);return Ku(),l.jsxRuntimeExports.jsx(Ts,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsxRuntimeExports.jsx(js,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:p,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:l.jsxRuntimeExports.jsx(fE,{"data-state":bd(g.open),role:"dialog",id:g.contentId,...v,...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)"}})})})}),wd="PopoverClose",zE=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(wd,n);return l.jsxRuntimeExports.jsx(he.button,{type:"button",...r,ref:t,onClick:Ee(e.onClick,()=>o.onOpenChange(!1))})});zE.displayName=wd;var YE="PopoverArrow",KE=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=rn(n);return l.jsxRuntimeExports.jsx(pE,{...o,...r,ref:t})});KE.displayName=YE;function bd(e){return e?"open":"closed"}var XE=md,GE=xd,Rd=yd,Qi=1,qE=.9,ZE=.8,QE=.17,Kr=.1,Xr=.999,JE=.9999,ew=.99,tw=/[\\\/_+.#"@\[\(\{&]/,nw=/[\\\/_+.#"@\[\(\{&]/g,rw=/[\s-]/,Cd=/[\s-]/g;function $o(e,t,n,r,o,s,a){if(s===t.length)return o===e.length?Qi:ew;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,v,E;u>=0;)m=$o(e,t,n,r,u+1,s+1,a),m>p&&(u===o?m*=Qi:tw.test(e.charAt(u-1))?(m*=ZE,v=e.slice(o,u-1).match(nw),v&&o>0&&(m*=Math.pow(Xr,v.length))):rw.test(e.charAt(u-1))?(m*=qE,E=e.slice(o,u-1).match(Cd),E&&o>0&&(m*=Math.pow(Xr,E.length))):(m*=QE,o>0&&(m*=Math.pow(Xr,u-o))),e.charAt(u)!==t.charAt(s)&&(m*=JE)),(m<Kr&&n.charAt(u-1)===r.charAt(s+1)||r.charAt(s+1)===r.charAt(s)&&n.charAt(u-1)!==r.charAt(s))&&(g=$o(e,t,n,r,u+1,s+2,a),g*Kr>m&&(m=g*Kr)),m>p&&(p=m),u=n.indexOf(d,u+1);return a[c]=p,p}function Ji(e){return e.toLowerCase().replace(Cd," ")}function ow(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,$o(e,t,Ji(e),Ji(t),0,0,{})}var Er="Dialog",[Sd,tb]=Ss(Er),[sw,Te]=Sd(Er),Pd=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]=ad({prop:r,defaultProp:o??!1,onChange:s,caller:Er});return l.jsxRuntimeExports.jsx(sw,{scope:t,triggerRef:c,contentRef:d,contentId:Dn(),titleId:Dn(),descriptionId:Dn(),open:u,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(m=>!m),[p]),modal:a,children:n})};Pd.displayName=Er;var jd="DialogTrigger",iw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(jd,n),s=je(t,o.triggerRef);return l.jsxRuntimeExports.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ms(o.open),...r,ref:s,onClick:Ee(e.onClick,o.onOpenToggle)})});iw.displayName=jd;var Is="DialogPortal",[aw,Td]=Sd(Is,{forceMount:void 0}),Ad=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Te(Is,t);return l.jsxRuntimeExports.jsx(aw,{scope:t,forceMount:n,children:i.Children.map(r,a=>l.jsxRuntimeExports.jsx(Bt,{present:n||s.open,children:l.jsxRuntimeExports.jsx(Ns,{asChild:!0,container:o,children:a})}))})};Ad.displayName=Is;var zn="DialogOverlay",$d=i.forwardRef((e,t)=>{const n=Td(zn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Te(zn,e.__scopeDialog);return s.modal?l.jsxRuntimeExports.jsx(Bt,{present:r||s.open,children:l.jsxRuntimeExports.jsx(lw,{...o,ref:t})}):null});$d.displayName=zn;var cw=Ps("DialogOverlay.RemoveScroll"),lw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(zn,n);return l.jsxRuntimeExports.jsx(Os,{as:cw,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsxRuntimeExports.jsx(he.div,{"data-state":Ms(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),lt="DialogContent",Nd=i.forwardRef((e,t)=>{const n=Td(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(uw,{...o,ref:t}):l.jsxRuntimeExports.jsx(dw,{...o,ref:t})})});Nd.displayName=lt;var uw=i.forwardRef((e,t)=>{const n=Te(lt,e.__scopeDialog),r=i.useRef(null),o=je(t,n.contentRef,r);return i.useEffect(()=>{const s=r.current;if(s)return nr(s)},[]),l.jsxRuntimeExports.jsx(Od,{...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())})}),dw=i.forwardRef((e,t)=>{const n=Te(lt,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return l.jsxRuntimeExports.jsx(Od,{...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()}})}),Od=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,c=Te(lt,n),d=i.useRef(null),u=je(t,d);return Ku(),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(Ts,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsxRuntimeExports.jsx(js,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Ms(c.open),...a,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(hw,{titleId:c.titleId}),l.jsxRuntimeExports.jsx(gw,{contentRef:d,descriptionId:c.descriptionId})]})]})}),ks="DialogTitle",fw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(ks,n);return l.jsxRuntimeExports.jsx(he.h2,{id:o.titleId,...r,ref:t})});fw.displayName=ks;var Dd="DialogDescription",pw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Dd,n);return l.jsxRuntimeExports.jsx(he.p,{id:o.descriptionId,...r,ref:t})});pw.displayName=Dd;var Id="DialogClose",mw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Id,n);return l.jsxRuntimeExports.jsx(he.button,{type:"button",...r,ref:t,onClick:Ee(e.onClick,()=>o.onOpenChange(!1))})});mw.displayName=Id;function Ms(e){return e?"open":"closed"}var kd="DialogTitleWarning",[nb,Md]=$y(kd,{contentName:lt,titleName:ks,docsSlug:"dialog"}),hw=({titleId:e})=>{const t=Md(kd),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
676
|
+
`)},nw=0,Et=[];function rw(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(nw++)[0],s=i.useState(Vc)[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=Wo([e.lockRef.current],(e.shards||[]).map(Qi),!0).filter(Boolean);return f.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(f,h){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!a.current.allowPinchZoom;var x=bn(f),y=n.current,b="deltaX"in f?f.deltaX:y[0]-x[0],R="deltaY"in f?f.deltaY:y[1]-x[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 j=qi(w,S);if(!j)return!0;if(j?C=w:(C=w==="v"?"h":"v",j=qi(w,S)),!j)return!1;if(!r.current&&"changedTouches"in f&&(b||R)&&(r.current=C),!C)return!0;var $=r.current||C;return JE($,h,f,$==="h"?b:R,!0)},[]),d=i.useCallback(function(f){var h=f;if(!(!Et.length||Et[Et.length-1]!==s)){var x="deltaY"in h?Zi(h):bn(h),y=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&ew(C.delta,x)})[0];if(y&&y.should){h.cancelable&&h.preventDefault();return}if(!y){var b=(a.current.shards||[]).map(Qi).filter(Boolean).filter(function(C){return C.contains(h.target)}),R=b.length>0?c(h,b[0]):!a.current.noIsolation;R&&h.cancelable&&h.preventDefault()}}},[]),u=i.useCallback(function(f,h,x,y){var b={name:f,delta:h,target:x,should:y,shadowParent:ow(x)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(R){return R!==b})},1)},[]),p=i.useCallback(function(f){n.current=bn(f),r.current=void 0},[]),m=i.useCallback(function(f){u(f.type,Zi(f),f.target,c(f,e.lockRef.current))},[]),g=i.useCallback(function(f){u(f.type,bn(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 v=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(s,{styles:tw(o)}):null,v?i.createElement(Hc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ow(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const sw=YE(ud,rw);var Ds=i.forwardRef(function(e,t){return i.createElement(xr,ie({},e,{ref:t,sideCar:sw}))});Ds.classNames=xr.classNames;var yr="Popover",[md,bb]=Ps(yr,[Qu]),rn=Qu(),[iw,et]=md(yr),hd=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,c=rn(t),d=i.useRef(null),[u,p]=i.useState(!1),[m,g]=cd({prop:r,defaultProp:o??!1,onChange:s,caller:yr});return l.jsxRuntimeExports.jsx(DE,{...c,children:l.jsxRuntimeExports.jsx(iw,{scope:t,contentId:Dn(),triggerRef:d,open:m,onOpenChange:g,onOpenToggle:i.useCallback(()=>g(v=>!v),[g]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>p(!0),[]),onCustomAnchorRemove:i.useCallback(()=>p(!1),[]),modal:a,children:n})})};hd.displayName=yr;var vd="PopoverAnchor",aw=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(vd,n),s=rn(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:c}=o;return i.useEffect(()=>(a(),()=>c()),[a,c]),l.jsxRuntimeExports.jsx(ad,{...s,...r,ref:t})});aw.displayName=vd;var gd="PopoverTrigger",xd=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(gd,n),s=rn(n),a=je(t,o.triggerRef),c=l.jsxRuntimeExports.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Rd(o.open),...r,ref:a,onClick:Ee(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:l.jsxRuntimeExports.jsx(ad,{asChild:!0,...s,children:c})});xd.displayName=gd;var Is="PopoverPortal",[cw,lw]=md(Is,{forceMount:void 0}),yd=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=et(Is,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})})})};yd.displayName=Is;var kt="PopoverContent",Ed=i.forwardRef((e,t)=>{const n=lw(kt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=et(kt,e.__scopePopover);return l.jsxRuntimeExports.jsx(Bt,{present:r||s.open,children:s.modal?l.jsxRuntimeExports.jsx(dw,{...o,ref:t}):l.jsxRuntimeExports.jsx(fw,{...o,ref:t})})});Ed.displayName=kt;var uw=js("PopoverContent.RemoveScroll"),dw=i.forwardRef((e,t)=>{const n=et(kt,e.__scopePopover),r=i.useRef(null),o=je(t,r),s=i.useRef(!1);return i.useEffect(()=>{const a=r.current;if(a)return nr(a)},[]),l.jsxRuntimeExports.jsx(Ds,{as:uw,allowPinchZoom:!0,children:l.jsxRuntimeExports.jsx(wd,{...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})})})}),fw=i.forwardRef((e,t)=>{const n=et(kt,e.__scopePopover),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{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:p,...m}=e,g=et(kt,n),v=rn(n);return Xu(),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(IE,{"data-state":Rd(g.open),role:"dialog",id:g.contentId,...v,...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)"}})})})}),bd="PopoverClose",pw=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(bd,n);return l.jsxRuntimeExports.jsx(he.button,{type:"button",...r,ref:t,onClick:Ee(e.onClick,()=>o.onOpenChange(!1))})});pw.displayName=bd;var mw="PopoverArrow",hw=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=rn(n);return l.jsxRuntimeExports.jsx(kE,{...o,...r,ref:t})});hw.displayName=mw;function Rd(e){return e?"open":"closed"}var vw=hd,gw=yd,Cd=Ed,Ji=1,xw=.9,yw=.8,Ew=.17,Xr=.1,Gr=.999,ww=.9999,bw=.99,Rw=/[\\\/_+.#"@\[\(\{&]/,Cw=/[\\\/_+.#"@\[\(\{&]/g,Sw=/[\s-]/,Sd=/[\s-]/g;function No(e,t,n,r,o,s,a){if(s===t.length)return o===e.length?Ji:bw;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,v,E;u>=0;)m=No(e,t,n,r,u+1,s+1,a),m>p&&(u===o?m*=Ji:Rw.test(e.charAt(u-1))?(m*=yw,v=e.slice(o,u-1).match(Cw),v&&o>0&&(m*=Math.pow(Gr,v.length))):Sw.test(e.charAt(u-1))?(m*=xw,E=e.slice(o,u-1).match(Sd),E&&o>0&&(m*=Math.pow(Gr,E.length))):(m*=Ew,o>0&&(m*=Math.pow(Gr,u-o))),e.charAt(u)!==t.charAt(s)&&(m*=ww)),(m<Xr&&n.charAt(u-1)===r.charAt(s+1)||r.charAt(s+1)===r.charAt(s)&&n.charAt(u-1)!==r.charAt(s))&&(g=No(e,t,n,r,u+1,s+2,a),g*Xr>m&&(m=g*Xr)),m>p&&(p=m),u=n.indexOf(d,u+1);return a[c]=p,p}function ea(e){return e.toLowerCase().replace(Sd," ")}function Pw(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,No(e,t,ea(e),ea(t),0,0,{})}var Er="Dialog",[Pd,Rb]=Ps(Er),[jw,Te]=Pd(Er),jd=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]=cd({prop:r,defaultProp:o??!1,onChange:s,caller:Er});return l.jsxRuntimeExports.jsx(jw,{scope:t,triggerRef:c,contentRef:d,contentId:Dn(),titleId:Dn(),descriptionId:Dn(),open:u,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(m=>!m),[p]),modal:a,children:n})};jd.displayName=Er;var Td="DialogTrigger",Tw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Td,n),s=je(t,o.triggerRef);return l.jsxRuntimeExports.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":_s(o.open),...r,ref:s,onClick:Ee(e.onClick,o.onOpenToggle)})});Tw.displayName=Td;var ks="DialogPortal",[Aw,Ad]=Pd(ks,{forceMount:void 0}),$d=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Te(ks,t);return l.jsxRuntimeExports.jsx(Aw,{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})}))})};$d.displayName=ks;var zn="DialogOverlay",Nd=i.forwardRef((e,t)=>{const n=Ad(zn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Te(zn,e.__scopeDialog);return s.modal?l.jsxRuntimeExports.jsx(Bt,{present:r||s.open,children:l.jsxRuntimeExports.jsx(Nw,{...o,ref:t})}):null});Nd.displayName=zn;var $w=js("DialogOverlay.RemoveScroll"),Nw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(zn,n);return l.jsxRuntimeExports.jsx(Ds,{as:$w,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsxRuntimeExports.jsx(he.div,{"data-state":_s(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),lt="DialogContent",Od=i.forwardRef((e,t)=>{const n=Ad(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(Ow,{...o,ref:t}):l.jsxRuntimeExports.jsx(Dw,{...o,ref:t})})});Od.displayName=lt;var Ow=i.forwardRef((e,t)=>{const n=Te(lt,e.__scopeDialog),r=i.useRef(null),o=je(t,n.contentRef,r);return i.useEffect(()=>{const s=r.current;if(s)return nr(s)},[]),l.jsxRuntimeExports.jsx(Dd,{...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())})}),Dw=i.forwardRef((e,t)=>{const n=Te(lt,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return l.jsxRuntimeExports.jsx(Dd,{...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()}})}),Dd=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,c=Te(lt,n),d=i.useRef(null),u=je(t,d);return Xu(),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":_s(c.open),...a,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(_w,{titleId:c.titleId}),l.jsxRuntimeExports.jsx(Fw,{contentRef:d,descriptionId:c.descriptionId})]})]})}),Ms="DialogTitle",Iw=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})});Iw.displayName=Ms;var Id="DialogDescription",kw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(Id,n);return l.jsxRuntimeExports.jsx(he.p,{id:o.descriptionId,...r,ref:t})});kw.displayName=Id;var kd="DialogClose",Mw=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Te(kd,n);return l.jsxRuntimeExports.jsx(he.button,{type:"button",...r,ref:t,onClick:Ee(e.onClick,()=>o.onOpenChange(!1))})});Mw.displayName=kd;function _s(e){return e?"open":"closed"}var Md="DialogTitleWarning",[Cb,_d]=Qy(Md,{contentName:lt,titleName:Ms,docsSlug:"dialog"}),_w=({titleId:e})=>{const t=_d(Md),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
580
677
|
|
|
581
678
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
582
679
|
|
|
583
|
-
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},vw="DialogDescriptionWarning",gw=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Md(vw).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},xw=Pd,yw=Ad,Ew=$d,ww=Nd,Ht='[cmdk-group=""]',Gr='[cmdk-group-items=""]',bw='[cmdk-group-heading=""]',_d='[cmdk-item=""]',ea=`${_d}:not([aria-disabled="true"])`,No="cmdk-item-select",wt="data-value",Rw=(e,t,n)=>ow(e,t,n),Ld=i.createContext(void 0),on=()=>i.useContext(Ld),Fd=i.createContext(void 0),_s=()=>i.useContext(Fd),Wd=i.createContext(void 0),Bd=i.forwardRef((e,t)=>{let n=bt(()=>{var P,D;return{search:"",value:(D=(P=e.value)!=null?P: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=Vd(e),{label:d,children:u,value:p,onValueChange:m,filter:g,shouldFilter:v,loop:E,disablePointerSelection:f=!1,vimBindings:h=!0,...x}=e,y=xe(),b=xe(),R=xe(),C=i.useRef(null),S=Iw();ut(()=>{if(p!==void 0){let P=p.trim();n.current.value=P,w.emit()}},[p]),ut(()=>{S(6,F)},[]);let w=i.useMemo(()=>({subscribe:P=>(a.current.add(P),()=>a.current.delete(P)),snapshot:()=>n.current,setState:(P,D,_)=>{var O,H,A,L;if(!Object.is(n.current[P],D)){if(n.current[P]=D,P==="search")Y(),I(),S(1,U);else if(P==="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,w.emit()}),_||S(5,F),((H=c.current)==null?void 0:H.value)!==void 0){let V=D??"";(L=(A=c.current).onValueChange)==null||L.call(A,V);return}}w.emit()}},emit:()=>{a.current.forEach(P=>P())}}),[]),j=i.useMemo(()=>({value:(P,D,_)=>{var O;D!==((O=s.current.get(P))==null?void 0:O.value)&&(s.current.set(P,{value:D,keywords:_}),n.current.filtered.items.set(P,$(D,_)),S(2,()=>{I(),w.emit()}))},item:(P,D)=>(r.current.add(P),D&&(o.current.has(D)?o.current.get(D).add(P):o.current.set(D,new Set([P]))),S(3,()=>{Y(),I(),n.current.value||U(),w.emit()}),()=>{s.current.delete(P),r.current.delete(P),n.current.filtered.items.delete(P);let _=T();S(4,()=>{Y(),(_==null?void 0:_.getAttribute("id"))===P&&U(),w.emit()})}),group:P=>(o.current.has(P)||o.current.set(P,new Set),()=>{s.current.delete(P),o.current.delete(P)}),filter:()=>c.current.shouldFilter,label:d||e["aria-label"],getDisablePointerSelection:()=>c.current.disablePointerSelection,listId:y,inputId:R,labelId:b,listInnerRef:C}),[]);function $(P,D){var _,O;let H=(O=(_=c.current)==null?void 0:_.filter)!=null?O:Rw;return P?H(P,n.current.search,D):0}function I(){if(!n.current.search||c.current.shouldFilter===!1)return;let P=n.current.filtered.items,D=[];n.current.filtered.groups.forEach(O=>{let H=o.current.get(O),A=0;H.forEach(L=>{let V=P.get(L);A=Math.max(V,A)}),D.push([O,A])});let _=C.current;W().sort((O,H)=>{var A,L;let V=O.getAttribute("id"),G=H.getAttribute("id");return((A=P.get(G))!=null?A:0)-((L=P.get(V))!=null?L:0)}).forEach(O=>{let H=O.closest(Gr);H?H.appendChild(O.parentElement===H?O:O.closest(`${Gr} > *`)):_.appendChild(O.parentElement===_?O:O.closest(`${Gr} > *`))}),D.sort((O,H)=>H[1]-O[1]).forEach(O=>{var H;let A=(H=C.current)==null?void 0:H.querySelector(`${Ht}[${wt}="${encodeURIComponent(O[0])}"]`);A==null||A.parentElement.appendChild(A)})}function U(){let P=W().find(_=>_.getAttribute("aria-disabled")!=="true"),D=P==null?void 0:P.getAttribute(wt);w.setState("value",D||void 0)}function Y(){var P,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 H=0;for(let A of r.current){let L=(D=(P=s.current.get(A))==null?void 0:P.value)!=null?D:"",V=(O=(_=s.current.get(A))==null?void 0:_.keywords)!=null?O:[],G=$(L,V);n.current.filtered.items.set(A,G),G>0&&H++}for(let[A,L]of o.current)for(let V of L)if(n.current.filtered.items.get(V)>0){n.current.filtered.groups.add(A);break}n.current.filtered.count=H}function F(){var P,D,_;let O=T();O&&(((P=O.parentElement)==null?void 0:P.firstChild)===O&&((_=(D=O.closest(Ht))==null?void 0:D.querySelector(bw))==null||_.scrollIntoView({block:"nearest"})),O.scrollIntoView({block:"nearest"}))}function T(){var P;return(P=C.current)==null?void 0:P.querySelector(`${_d}[aria-selected="true"]`)}function W(){var P;return Array.from(((P=C.current)==null?void 0:P.querySelectorAll(ea))||[])}function k(P){let D=W()[P];D&&w.setState("value",D.getAttribute(wt))}function M(P){var D;let _=T(),O=W(),H=O.findIndex(L=>L===_),A=O[H+P];(D=c.current)!=null&&D.loop&&(A=H+P<0?O[O.length-1]:H+P===O.length?O[0]:O[H+P]),A&&w.setState("value",A.getAttribute(wt))}function N(P){let D=T(),_=D==null?void 0:D.closest(Ht),O;for(;_&&!O;)_=P>0?Ow(_,Ht):Dw(_,Ht),O=_==null?void 0:_.querySelector(ea);O?w.setState("value",O.getAttribute(wt)):M(P)}let B=()=>k(W().length-1),te=P=>{P.preventDefault(),P.metaKey?B():P.altKey?N(1):M(1)},J=P=>{P.preventDefault(),P.metaKey?k(0):P.altKey?N(-1):M(-1)};return i.createElement(fe.div,{ref:t,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:P=>{var D;(D=x.onKeyDown)==null||D.call(x,P);let _=P.nativeEvent.isComposing||P.keyCode===229;if(!(P.defaultPrevented||_))switch(P.key){case"n":case"j":{h&&P.ctrlKey&&te(P);break}case"ArrowDown":{te(P);break}case"p":case"k":{h&&P.ctrlKey&&J(P);break}case"ArrowUp":{J(P);break}case"Home":{P.preventDefault(),k(0);break}case"End":{P.preventDefault(),B();break}case"Enter":{P.preventDefault();let O=T();if(O){let H=new Event(No);O.dispatchEvent(H)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:j.inputId,id:j.labelId,style:Mw},d),wr(e,P=>i.createElement(Fd.Provider,{value:w},i.createElement(Ld.Provider,{value:j},P))))}),Cw=i.forwardRef((e,t)=>{var n,r;let o=xe(),s=i.useRef(null),a=i.useContext(Wd),c=on(),d=Vd(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=Hd(o,s,[e.value,e.children,s],e.keywords),m=_s(),g=qe(S=>S.value&&S.value===p.current),v=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(No,E),()=>S.removeEventListener(No,E)},[v,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(!v)return null;let{disabled:h,value:x,onSelect:y,forceMount:b,keywords:R,...C}=e;return i.createElement(fe.div,{ref:ze(s,t),...C,id:o,"cmdk-item":"",role:"option","aria-disabled":!!h,"aria-selected":!!g,"data-disabled":!!h,"data-selected":!!g,onPointerMove:h||c.getDisablePointerSelection()?void 0:f,onClick:h?void 0:E},e.children)}),Sw=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=on(),m=qe(v=>o||p.filter()===!1?!0:v.search?v.filtered.groups.has(a):!0);ut(()=>p.group(a),[]),Hd(a,c,[e.value,e.heading,d]);let g=i.useMemo(()=>({id:a,forceMount:o}),[o]);return i.createElement(fe.div,{ref:ze(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),wr(e,v=>i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},i.createElement(Wd.Provider,{value:g},v))))}),Pw=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:ze(o,t),...r,"cmdk-separator":"",role:"separator"})}),jw=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=on();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)}})}),Tw=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=on();return i.useEffect(()=>{if(a.current&&s.current){let u=a.current,p=s.current,m,g=new ResizeObserver(()=>{m=requestAnimationFrame(()=>{let v=u.offsetHeight;p.style.setProperty("--cmdk-list-height",v.toFixed(1)+"px")})});return g.observe(u),()=>{cancelAnimationFrame(m),g.unobserve(u)}}},[]),i.createElement(fe.div,{ref:ze(s,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":c,"aria-label":r,id:d.listId},wr(e,u=>i.createElement("div",{ref:ze(a,d.listInnerRef),"cmdk-list-sizer":""},u)))}),Aw=i.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:s,container:a,...c}=e;return i.createElement(xw,{open:n,onOpenChange:r},i.createElement(yw,{container:a},i.createElement(Ew,{"cmdk-overlay":"",className:o}),i.createElement(ww,{"aria-label":e.label,"cmdk-dialog":"",className:s},i.createElement(Bd,{ref:t,...c}))))}),$w=i.forwardRef((e,t)=>qe(n=>n.filtered.count===0)?i.createElement(fe.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Nw=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},wr(e,a=>i.createElement("div",{"aria-hidden":!0},a)))}),ve=Object.assign(Bd,{List:Tw,Item:Cw,Input:jw,Group:Sw,Separator:Pw,Dialog:Aw,Empty:$w,Loading:Nw});function Ow(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Dw(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Vd(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 Hd(e,t,n,r=[]){let o=i.useRef(),s=on();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 Iw=()=>{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 kw(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function wr({asChild:e,children:t},n){return e&&i.isValidElement(t)?i.cloneElement(kw(t),{ref:t.ref},n(t.props.children)):n(t)}var Mw={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Ud=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}));Ud.displayName=ve.displayName;const _w=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})}));_w.displayName=ve.Input.displayName;const Oo=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}));Oo.displayName=ve.List.displayName;const Lw=i.forwardRef((e,t)=>l.jsxRuntimeExports.jsx(ve.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Lw.displayName=ve.Empty.displayName;const zd=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}));zd.displayName=ve.Group.displayName;const Fw=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}));Fw.displayName=ve.Separator.displayName;const Yd=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}));Yd.displayName=ve.Item.displayName;const Ww=XE,Kd=i.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>l.jsxRuntimeExports.jsx(GE,{children:l.jsxRuntimeExports.jsx(Rd,{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})}));Kd.displayName=Rd.displayName;const Bw=z(Kd)`
|
|
680
|
+
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},Lw="DialogDescriptionWarning",Fw=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${_d(Lw).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},Ww=jd,Bw=$d,Vw=Nd,Hw=Od,Ht='[cmdk-group=""]',qr='[cmdk-group-items=""]',Uw='[cmdk-group-heading=""]',Ld='[cmdk-item=""]',ta=`${Ld}:not([aria-disabled="true"])`,Oo="cmdk-item-select",wt="data-value",zw=(e,t,n)=>Pw(e,t,n),Fd=i.createContext(void 0),on=()=>i.useContext(Fd),Wd=i.createContext(void 0),Ls=()=>i.useContext(Wd),Bd=i.createContext(void 0),Vd=i.forwardRef((e,t)=>{let n=bt(()=>{var P,D;return{search:"",value:(D=(P=e.value)!=null?P: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=Hd(e),{label:d,children:u,value:p,onValueChange:m,filter:g,shouldFilter:v,loop:E,disablePointerSelection:f=!1,vimBindings:h=!0,...x}=e,y=xe(),b=xe(),R=xe(),C=i.useRef(null),S=nb();ut(()=>{if(p!==void 0){let P=p.trim();n.current.value=P,w.emit()}},[p]),ut(()=>{S(6,W)},[]);let w=i.useMemo(()=>({subscribe:P=>(a.current.add(P),()=>a.current.delete(P)),snapshot:()=>n.current,setState:(P,D,L)=>{var O,U,A,F;if(!Object.is(n.current[P],D)){if(n.current[P]=D,P==="search")Y(),I(),S(1,z);else if(P==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let H=document.getElementById(R);H?H.focus():(O=document.getElementById(y))==null||O.focus()}if(S(7,()=>{var H;n.current.selectedItemId=(H=T())==null?void 0:H.id,w.emit()}),L||S(5,W),((U=c.current)==null?void 0:U.value)!==void 0){let H=D??"";(F=(A=c.current).onValueChange)==null||F.call(A,H);return}}w.emit()}},emit:()=>{a.current.forEach(P=>P())}}),[]),j=i.useMemo(()=>({value:(P,D,L)=>{var O;D!==((O=s.current.get(P))==null?void 0:O.value)&&(s.current.set(P,{value:D,keywords:L}),n.current.filtered.items.set(P,$(D,L)),S(2,()=>{I(),w.emit()}))},item:(P,D)=>(r.current.add(P),D&&(o.current.has(D)?o.current.get(D).add(P):o.current.set(D,new Set([P]))),S(3,()=>{Y(),I(),n.current.value||z(),w.emit()}),()=>{s.current.delete(P),r.current.delete(P),n.current.filtered.items.delete(P);let L=T();S(4,()=>{Y(),(L==null?void 0:L.getAttribute("id"))===P&&z(),w.emit()})}),group:P=>(o.current.has(P)||o.current.set(P,new Set),()=>{s.current.delete(P),o.current.delete(P)}),filter:()=>c.current.shouldFilter,label:d||e["aria-label"],getDisablePointerSelection:()=>c.current.disablePointerSelection,listId:y,inputId:R,labelId:b,listInnerRef:C}),[]);function $(P,D){var L,O;let U=(O=(L=c.current)==null?void 0:L.filter)!=null?O:zw;return P?U(P,n.current.search,D):0}function I(){if(!n.current.search||c.current.shouldFilter===!1)return;let P=n.current.filtered.items,D=[];n.current.filtered.groups.forEach(O=>{let U=o.current.get(O),A=0;U.forEach(F=>{let H=P.get(F);A=Math.max(H,A)}),D.push([O,A])});let L=C.current;B().sort((O,U)=>{var A,F;let H=O.getAttribute("id"),G=U.getAttribute("id");return((A=P.get(G))!=null?A:0)-((F=P.get(H))!=null?F:0)}).forEach(O=>{let U=O.closest(qr);U?U.appendChild(O.parentElement===U?O:O.closest(`${qr} > *`)):L.appendChild(O.parentElement===L?O:O.closest(`${qr} > *`))}),D.sort((O,U)=>U[1]-O[1]).forEach(O=>{var U;let A=(U=C.current)==null?void 0:U.querySelector(`${Ht}[${wt}="${encodeURIComponent(O[0])}"]`);A==null||A.parentElement.appendChild(A)})}function z(){let P=B().find(L=>L.getAttribute("aria-disabled")!=="true"),D=P==null?void 0:P.getAttribute(wt);w.setState("value",D||void 0)}function Y(){var P,D,L,O;if(!n.current.search||c.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let U=0;for(let A of r.current){let F=(D=(P=s.current.get(A))==null?void 0:P.value)!=null?D:"",H=(O=(L=s.current.get(A))==null?void 0:L.keywords)!=null?O:[],G=$(F,H);n.current.filtered.items.set(A,G),G>0&&U++}for(let[A,F]of o.current)for(let H of F)if(n.current.filtered.items.get(H)>0){n.current.filtered.groups.add(A);break}n.current.filtered.count=U}function W(){var P,D,L;let O=T();O&&(((P=O.parentElement)==null?void 0:P.firstChild)===O&&((L=(D=O.closest(Ht))==null?void 0:D.querySelector(Uw))==null||L.scrollIntoView({block:"nearest"})),O.scrollIntoView({block:"nearest"}))}function T(){var P;return(P=C.current)==null?void 0:P.querySelector(`${Ld}[aria-selected="true"]`)}function B(){var P;return Array.from(((P=C.current)==null?void 0:P.querySelectorAll(ta))||[])}function M(P){let D=B()[P];D&&w.setState("value",D.getAttribute(wt))}function _(P){var D;let L=T(),O=B(),U=O.findIndex(F=>F===L),A=O[U+P];(D=c.current)!=null&&D.loop&&(A=U+P<0?O[O.length-1]:U+P===O.length?O[0]:O[U+P]),A&&w.setState("value",A.getAttribute(wt))}function N(P){let D=T(),L=D==null?void 0:D.closest(Ht),O;for(;L&&!O;)L=P>0?eb(L,Ht):tb(L,Ht),O=L==null?void 0:L.querySelector(ta);O?w.setState("value",O.getAttribute(wt)):_(P)}let V=()=>M(B().length-1),te=P=>{P.preventDefault(),P.metaKey?V():P.altKey?N(1):_(1)},J=P=>{P.preventDefault(),P.metaKey?M(0):P.altKey?N(-1):_(-1)};return i.createElement(fe.div,{ref:t,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:P=>{var D;(D=x.onKeyDown)==null||D.call(x,P);let L=P.nativeEvent.isComposing||P.keyCode===229;if(!(P.defaultPrevented||L))switch(P.key){case"n":case"j":{h&&P.ctrlKey&&te(P);break}case"ArrowDown":{te(P);break}case"p":case"k":{h&&P.ctrlKey&&J(P);break}case"ArrowUp":{J(P);break}case"Home":{P.preventDefault(),M(0);break}case"End":{P.preventDefault(),V();break}case"Enter":{P.preventDefault();let O=T();if(O){let U=new Event(Oo);O.dispatchEvent(U)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:j.inputId,id:j.labelId,style:ob},d),wr(e,P=>i.createElement(Wd.Provider,{value:w},i.createElement(Fd.Provider,{value:j},P))))}),Yw=i.forwardRef((e,t)=>{var n,r;let o=xe(),s=i.useRef(null),a=i.useContext(Bd),c=on(),d=Hd(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=Ud(o,s,[e.value,e.children,s],e.keywords),m=Ls(),g=qe(S=>S.value&&S.value===p.current),v=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(Oo,E),()=>S.removeEventListener(Oo,E)},[v,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(!v)return null;let{disabled:h,value:x,onSelect:y,forceMount:b,keywords:R,...C}=e;return i.createElement(fe.div,{ref:ze(s,t),...C,id:o,"cmdk-item":"",role:"option","aria-disabled":!!h,"aria-selected":!!g,"data-disabled":!!h,"data-selected":!!g,onPointerMove:h||c.getDisablePointerSelection()?void 0:f,onClick:h?void 0:E},e.children)}),Kw=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=on(),m=qe(v=>o||p.filter()===!1?!0:v.search?v.filtered.groups.has(a):!0);ut(()=>p.group(a),[]),Ud(a,c,[e.value,e.heading,d]);let g=i.useMemo(()=>({id:a,forceMount:o}),[o]);return i.createElement(fe.div,{ref:ze(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),wr(e,v=>i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},i.createElement(Bd.Provider,{value:g},v))))}),Xw=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:ze(o,t),...r,"cmdk-separator":"",role:"separator"})}),Gw=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,s=Ls(),a=qe(u=>u.search),c=qe(u=>u.selectedItemId),d=on();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)}})}),qw=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=on();return i.useEffect(()=>{if(a.current&&s.current){let u=a.current,p=s.current,m,g=new ResizeObserver(()=>{m=requestAnimationFrame(()=>{let v=u.offsetHeight;p.style.setProperty("--cmdk-list-height",v.toFixed(1)+"px")})});return g.observe(u),()=>{cancelAnimationFrame(m),g.unobserve(u)}}},[]),i.createElement(fe.div,{ref:ze(s,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":c,"aria-label":r,id:d.listId},wr(e,u=>i.createElement("div",{ref:ze(a,d.listInnerRef),"cmdk-list-sizer":""},u)))}),Zw=i.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:s,container:a,...c}=e;return i.createElement(Ww,{open:n,onOpenChange:r},i.createElement(Bw,{container:a},i.createElement(Vw,{"cmdk-overlay":"",className:o}),i.createElement(Hw,{"aria-label":e.label,"cmdk-dialog":"",className:s},i.createElement(Vd,{ref:t,...c}))))}),Qw=i.forwardRef((e,t)=>qe(n=>n.filtered.count===0)?i.createElement(fe.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Jw=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},wr(e,a=>i.createElement("div",{"aria-hidden":!0},a)))}),ve=Object.assign(Vd,{List:qw,Item:Yw,Input:Gw,Group:Kw,Separator:Xw,Dialog:Zw,Empty:Qw,Loading:Jw});function eb(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function tb(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Hd(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=Ls(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function Ud(e,t,n,r=[]){let o=i.useRef(),s=on();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 nb=()=>{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 rb(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function wr({asChild:e,children:t},n){return e&&i.isValidElement(t)?i.cloneElement(rb(t),{ref:t.ref},n(t.props.children)):n(t)}var ob={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const zd=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}));zd.displayName=ve.displayName;const sb=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})}));sb.displayName=ve.Input.displayName;const Do=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}));Do.displayName=ve.List.displayName;const ib=i.forwardRef((e,t)=>l.jsxRuntimeExports.jsx(ve.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));ib.displayName=ve.Empty.displayName;const Yd=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}));Yd.displayName=ve.Group.displayName;const ab=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}));ab.displayName=ve.Separator.displayName;const Kd=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}));Kd.displayName=ve.Item.displayName;const cb=vw,Xd=i.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>l.jsxRuntimeExports.jsx(gw,{children:l.jsxRuntimeExports.jsx(Cd,{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})}));Xd.displayName=Cd.displayName;const lb=k(Xd)`
|
|
584
681
|
width: var(--radix-popover-trigger-width);
|
|
585
682
|
padding: 0;
|
|
586
|
-
`,
|
|
683
|
+
`,ub=k(zd)`
|
|
587
684
|
border-radius: 0.75rem;
|
|
588
|
-
`,
|
|
685
|
+
`,Gd=k(Kd)`
|
|
589
686
|
height: 3.125rem;
|
|
590
687
|
border-radius: 0.75rem;
|
|
591
688
|
${l.typography.label}
|
|
@@ -599,17 +696,17 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
599
696
|
background: ${l.colors.primary[25]};
|
|
600
697
|
color: ${({$isSelected:e})=>e?l.colors.fg.accent.action:l.colors.fg.base};
|
|
601
698
|
}
|
|
602
|
-
`,
|
|
699
|
+
`,db=k.div`
|
|
603
700
|
display: flex;
|
|
604
701
|
justify-content: space-between;
|
|
605
702
|
width: 100%;
|
|
606
|
-
`,
|
|
703
|
+
`,fb=k.span`
|
|
607
704
|
font-size: 0.938rem;
|
|
608
705
|
${l.typography.body}
|
|
609
706
|
color: ${l.colors.fg.accent.action};
|
|
610
707
|
&:hover {
|
|
611
708
|
background: ${l.colors.primary[25]};
|
|
612
709
|
}
|
|
613
|
-
`,
|
|
710
|
+
`,pb=k.div`
|
|
614
711
|
padding: 2rem;
|
|
615
|
-
`,
|
|
712
|
+
`,mb=({handleManualOverride:e})=>l.jsxRuntimeExports.jsx(Gd,{onMouseDown:t=>t.preventDefault(),onSelect:e,children:l.jsxRuntimeExports.jsx(fb,{children:"+ Anbieter manuell eingeben"})});function hb({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=Q.useId(),[v,E]=Q.useState(!1),f=h=>{var x;t(h),r(((x=o==null?void 0:o.find(y=>y.value===h))==null?void 0:x.value)??""),E(!1)};return l.jsxRuntimeExports.jsx(cb,{open:v,onOpenChange:E,modal:!0,children:l.jsxRuntimeExports.jsxs(ub,{shouldFilter:!1,children:[l.jsxRuntimeExports.jsx(xd,{asChild:!0,children:l.jsxRuntimeExports.jsx(Fl,{$error:a,children:l.jsxRuntimeExports.jsxs(Wl,{children:[l.jsxRuntimeExports.jsx(Bl,{...m,type:"text",id:`${g}-${d}`,value:n,onKeyDown:h=>{h.key==="Backspace"&&t(""),E(h.key!=="Escape")},onChange:h=>r(h.target.value),required:!0}),l.jsxRuntimeExports.jsx(xs,{htmlFor:`${g}-${d}`,$hasValue:!!n,children:d})]})})}),!v&&l.jsxRuntimeExports.jsx(Do,{"aria-hidden":"true",className:"hidden"}),l.jsxRuntimeExports.jsx(lb,{asChild:!0,onOpenAutoFocus:h=>h.preventDefault(),onInteractOutside:h=>{h.target instanceof Element&&h.target.hasAttribute("cmdk-input")&&h.preventDefault()},children:n?l.jsxRuntimeExports.jsx(Do,{children:l.jsxRuntimeExports.jsxs(Yd,{children:[c,o&&o.length>0&&!s?o.map(h=>l.jsxRuntimeExports.jsx(Gd,{$isSelected:h.value===e,value:h.value,onMouseDown:x=>x.preventDefault(),onSelect:f,children:l.jsxRuntimeExports.jsxs(db,{children:[h.label,h.value===e&&l.jsxRuntimeExports.jsx(l.Check,{})]})},h.value)):null,s?l.jsxRuntimeExports.jsx(pb,{children:l.jsxRuntimeExports.jsx(Vl,{size:"1rem",color:l.colors.fg.accent.action})}):a?l.jsxRuntimeExports.jsx(_n,{error:a,children:u}):(o==null?void 0:o.length)===0?l.jsxRuntimeExports.jsx(_n,{children:p}):null]})}):null})]})})}exports.colors=l.colors;exports.typography=l.typography;exports.Autocomplete=hb;exports.Button=ip;exports.DatePicker=fp;exports.Dialog=Wm;exports.DialogContent=dc;exports.DialogDetails=Hm;exports.DialogHeader=Ym;exports.Divider=Xm;exports.IconButton=Fn;exports.Input=ix;exports.Letter=Ch;exports.Loading=Vl;exports.ManualOverrideButton=mb;exports.Message=th;exports.MessageOption=rh;exports.Select=Jg;exports.Spinner=Ta;exports.Toaster=oy;exports.Tooltip=qy;exports.TooltipContent=Uu;exports.TooltipProvider=Gy;exports.TooltipTrigger=Zy;exports.useIsMobile=Go;exports.useToast=Hl;
|