(function(_r){typeof define=="function"&&define.amd?define(_r):_r()})(function(){"use strict";var _r=document.createElement("style");_r.textContent=`@import"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 0, 0%, 29%;--card: 0 0% 100%;--card-foreground: 0 0% 3.9%;--popover: 0 0% 100%;--popover-foreground: 0 0% 3.9%;--primary: 0 0% 9%;--primary-foreground: 0 0% 98%;--secondary: 0 0% 96.1%;--secondary-foreground: 0 0% 9%;--muted: 0 0% 96.1%;--muted-foreground: 0 0% 45.1%;--accent: 0 0% 96.1%;--accent-foreground: 0 0% 9%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 0 0% 89.8%;--input: 0 0% 89.8%;--ring: 0 0% 3.9%;--radius: .5rem}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.pointer-events-auto{pointer-events:auto}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.left-2{left:.5rem}.right-\\[8px\\]{right:8px}.top-0{top:0}.top-\\[8px\\]{top:8px}.z-50{z-index:50}.z-\\[100\\]{z-index:100}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-\\[24px\\]{margin-bottom:24px}.mb-\\[8px\\]{margin-bottom:8px}.ml-\\[8px\\]{margin-left:8px}.ml-auto{margin-left:auto}.mr-\\[8px\\]{margin-right:8px}.mt-\\[8px\\]{margin-top:8px}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[12px\\]{height:12px}.h-\\[16px\\]{height:16px}.h-\\[320px\\]{height:320px}.h-\\[34px\\]{height:34px}.h-\\[40px\\]{height:40px}.h-\\[48px\\]{height:48px}.h-\\[600px\\]{height:600px}.h-\\[80px\\]{height:80px}.h-full{height:100%}.h-px{height:1px}.max-h-\\[600px\\]{max-height:600px}.max-h-full{max-height:100%}.max-h-screen{max-height:100vh}.min-h-\\[600px\\]{min-height:600px}.min-h-\\[80px\\]{min-height:80px}.w-1\\/4{width:25%}.w-2{width:.5rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-3\\/4{width:75%}.w-4{width:1rem}.w-\\[16px\\]{width:16px}.w-\\[300px\\]{width:300px}.w-\\[34px\\]{width:34px}.w-\\[48px\\]{width:48px}.w-\\[80\\%\\]{width:80%}.w-\\[80px\\]{width:80px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-\\[212px\\]{min-width:212px}.min-w-\\[8rem\\]{min-width:8rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.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 spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-\\[8px\\]{gap:8px}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-nowrap{text-wrap:nowrap}.rounded{border-radius:.25rem}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[8px\\]{border-radius:8px}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-e-\\[8px\\]{border-start-end-radius:8px;border-end-end-radius:8px}.rounded-s-\\[8px\\]{border-start-start-radius:8px;border-end-start-radius:8px}.border{border-width:1px}.border-\\[0\\.5px\\]{border-width:.5px}.border-\\[1px\\]{border-width:1px}.border-\\[2px\\]{border-width:2px}.border-b{border-bottom-width:1px}.border-l-\\[8px\\]{border-left-width:8px}.border-t{border-top-width:1px}.border-\\[\\#1C7ED6\\]{--tw-border-opacity: 1;border-color:rgb(28 126 214 / var(--tw-border-opacity))}.border-\\[\\#CED4DA\\]{--tw-border-opacity: 1;border-color:rgb(206 212 218 / var(--tw-border-opacity))}.border-\\[\\#fab005\\]{--tw-border-opacity: 1;border-color:rgb(250 176 5 / var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.border-input{border-color:hsl(var(--input))}.border-transparent{border-color:transparent}.border-l-\\[\\#C92A2A\\]{--tw-border-opacity: 1;border-left-color:rgb(201 42 42 / var(--tw-border-opacity))}.bg-\\[\\#845EF7\\]{--tw-bg-opacity: 1;background-color:rgb(132 94 247 / var(--tw-bg-opacity))}.bg-\\[\\#D0EBFF\\]{--tw-bg-opacity: 1;background-color:rgb(208 235 255 / var(--tw-bg-opacity))}.bg-\\[\\#F1F3F5\\]{--tw-bg-opacity: 1;background-color:rgb(241 243 245 / var(--tw-bg-opacity))}.bg-\\[\\#FFE3E3\\]{--tw-bg-opacity: 1;background-color:rgb(255 227 227 / var(--tw-bg-opacity))}.bg-\\[\\#ffe066\\]{--tw-bg-opacity: 1;background-color:rgb(255 224 102 / var(--tw-bg-opacity))}.bg-background{background-color:hsl(var(--background))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.fill-current{fill:currentColor}.p-1{padding:.25rem}.p-4{padding:1rem}.p-\\[16px\\]{padding:16px}.p-\\[24px\\]{padding:24px}.p-\\[8px\\]{padding:8px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\\[12px\\]{padding-left:12px;padding-right:12px}.px-\\[16px\\]{padding-left:16px;padding-right:16px}.px-\\[8px\\]{padding-left:8px;padding-right:8px}.py-0{padding-top:0;padding-bottom:0}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-\\[6px\\]{padding-top:6px;padding-bottom:6px}.py-\\[8px\\]{padding-top:8px;padding-bottom:8px}.pl-8{padding-left:2rem}.pl-\\[10\\%\\]{padding-left:10%}.pr-2{padding-right:.5rem}.pr-\\[32px\\]{padding-right:32px}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\\[12px\\]{font-size:12px}.text-\\[14px\\]{font-size:14px}.text-\\[16px\\]{font-size:16px}.text-\\[20px\\]{font-size:20px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-\\[400\\]{font-weight:400}.font-\\[600\\]{font-weight:600}.font-\\[700\\],.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.leading-\\[20px\\]{line-height:20px}.tracking-widest{letter-spacing:.1em}.text-\\[\\#212529\\]{--tw-text-opacity: 1;color:rgb(33 37 41 / var(--tw-text-opacity))}.text-\\[\\#343A40\\]{--tw-text-opacity: 1;color:rgb(52 58 64 / var(--tw-text-opacity))}.text-\\[\\#495057\\]{--tw-text-opacity: 1;color:rgb(73 80 87 / var(--tw-text-opacity))}.text-\\[\\#4A4A4A\\]{--tw-text-opacity: 1;color:rgb(74 74 74 / var(--tw-text-opacity))}.text-\\[\\#6C757D\\]{--tw-text-opacity: 1;color:rgb(108 117 125 / var(--tw-text-opacity))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\\/50{color:hsl(var(--foreground) / .5)}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-60{opacity:.6}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.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)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-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}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@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))}}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.material-symbols-outlined{font-variation-settings:"FILL" 0,"wght" 400,"GRAD" 0,"opsz" 24}.icon{font-family:Material Symbols Outlined;font-weight:400}img{display:inline-block}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.placeholder\\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\\:bg-\\[\\#F1F3F5\\]:hover{--tw-bg-opacity: 1;background-color:rgb(241 243 245 / var(--tw-bg-opacity))}.hover\\:bg-\\[\\#fab005\\]:hover{--tw-bg-opacity: 1;background-color:rgb(250 176 5 / var(--tw-bg-opacity))}.hover\\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:bg-destructive\\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\\:bg-primary\\/80:hover{background-color:hsl(var(--primary) / .8)}.hover\\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\\:bg-secondary\\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:text-foreground:hover{color:hsl(var(--foreground))}.hover\\:underline:hover{text-decoration-line:underline}.focus\\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\\:opacity-100:focus{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-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-\\[\\#7048E8\\]:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgb(112 72 232 / var(--tw-ring-opacity))}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\\:ring-offset-0:focus-visible{--tw-ring-offset-width: 0px}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.active\\:scale-\\[0\\.98\\]:active{--tw-scale-x: .98;--tw-scale-y: .98;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))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}.group.destructive .group-\\[\\.destructive\\]\\:border-muted\\/40{border-color:hsl(var(--muted) / .4)}.group.destructive .group-\\[\\.destructive\\]\\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.group.destructive .group-\\[\\.destructive\\]\\:hover\\:border-destructive\\/30:hover{border-color:hsl(var(--destructive) / .3)}.group.destructive .group-\\[\\.destructive\\]\\:hover\\:bg-destructive:hover{background-color:hsl(var(--destructive))}.group.destructive .group-\\[\\.destructive\\]\\:hover\\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.group.destructive .group-\\[\\.destructive\\]\\:hover\\:text-red-50:hover{--tw-text-opacity: 1;color:rgb(254 242 242 / var(--tw-text-opacity))}.group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-destructive:focus{--tw-ring-color: hsl(var(--destructive))}.group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity))}.group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-offset-red-600:focus{--tw-ring-offset-color: #dc2626}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.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-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.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-right-full[data-state=closed]{--tw-exit-translate-x: 100%}.data-\\[state\\=open\\]\\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y: -100%}@media (min-width: 640px){.sm\\:bottom-0{bottom:0}.sm\\:right-0{right:0}.sm\\:top-auto{top:auto}.sm\\:flex-col{flex-direction:column}.data-\\[state\\=open\\]\\:sm\\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y: 100%}}@media (min-width: 768px){.md\\:max-w-\\[420px\\]{max-width:420px}}
`,document.head.appendChild(_r);function qh(r,i){for(var a=0;a<i.length;a++){const l=i[a];if(typeof l!="string"&&!Array.isArray(l)){for(const c in l)if(c!=="default"&&!(c in r)){const d=Object.getOwnPropertyDescriptor(l,c);d&&Object.defineProperty(r,c,d.get?d:{enumerable:!0,get:()=>l[c]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}function Mu(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var jo={},_u={exports:{}},nt={},ju={exports:{}},we={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Iu;function eg(){if(Iu)return we;Iu=1;var r=Symbol.for("react.element"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),m=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),y=Symbol.iterator;function S(T){return T===null||typeof T!="object"?null:(T=y&&T[y]||T["@@iterator"],typeof T=="function"?T:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,x={};function k(T,L,ue){this.props=T,this.context=L,this.refs=x,this.updater=ue||E}k.prototype.isReactComponent={},k.prototype.setState=function(T,L){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,L,"setState")},k.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function M(){}M.prototype=k.prototype;function I(T,L,ue){this.props=T,this.context=L,this.refs=x,this.updater=ue||E}var F=I.prototype=new M;F.constructor=I,N(F,k.prototype),F.isPureReactComponent=!0;var z=Array.isArray,U=Object.prototype.hasOwnProperty,$={current:null},W={key:!0,ref:!0,__self:!0,__source:!0};function J(T,L,ue){var fe,ye={},ve=null,pe=null;if(L!=null)for(fe in L.ref!==void 0&&(pe=L.ref),L.key!==void 0&&(ve=""+L.key),L)U.call(L,fe)&&!W.hasOwnProperty(fe)&&(ye[fe]=L[fe]);var xe=arguments.length-2;if(xe===1)ye.children=ue;else if(1<xe){for(var Re=Array(xe),qe=0;qe<xe;qe++)Re[qe]=arguments[qe+2];ye.children=Re}if(T&&T.defaultProps)for(fe in xe=T.defaultProps,xe)ye[fe]===void 0&&(ye[fe]=xe[fe]);return{$$typeof:r,type:T,key:ve,ref:pe,props:ye,_owner:$.current}}function ie(T,L){return{$$typeof:r,type:T.type,key:L,ref:T.ref,props:T.props,_owner:T._owner}}function ae(T){return typeof T=="object"&&T!==null&&T.$$typeof===r}function ce(T){var L={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(ue){return L[ue]})}var ee=/\/+/g;function ge(T,L){return typeof T=="object"&&T!==null&&T.key!=null?ce(""+T.key):L.toString(36)}function X(T,L,ue,fe,ye){var ve=typeof T;(ve==="undefined"||ve==="boolean")&&(T=null);var pe=!1;if(T===null)pe=!0;else switch(ve){case"string":case"number":pe=!0;break;case"object":switch(T.$$typeof){case r:case i:pe=!0}}if(pe)return pe=T,ye=ye(pe),T=fe===""?"."+ge(pe,0):fe,z(ye)?(ue="",T!=null&&(ue=T.replace(ee,"$&/")+"/"),X(ye,L,ue,"",function(qe){return qe})):ye!=null&&(ae(ye)&&(ye=ie(ye,ue+(!ye.key||pe&&pe.key===ye.key?"":(""+ye.key).replace(ee,"$&/")+"/")+T)),L.push(ye)),1;if(pe=0,fe=fe===""?".":fe+":",z(T))for(var xe=0;xe<T.length;xe++){ve=T[xe];var Re=fe+ge(ve,xe);pe+=X(ve,L,ue,Re,ye)}else if(Re=S(T),typeof Re=="function")for(T=Re.call(T),xe=0;!(ve=T.next()).done;)ve=ve.value,Re=fe+ge(ve,xe++),pe+=X(ve,L,ue,Re,ye);else if(ve==="object")throw L=String(T),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.");return pe}function Z(T,L,ue){if(T==null)return T;var fe=[],ye=0;return X(T,fe,"","",function(ve){return L.call(ue,ve,ye++)}),fe}function Y(T){if(T._status===-1){var L=T._result;L=L(),L.then(function(ue){(T._status===0||T._status===-1)&&(T._status=1,T._result=ue)},function(ue){(T._status===0||T._status===-1)&&(T._status=2,T._result=ue)}),T._status===-1&&(T._status=0,T._result=L)}if(T._status===1)return T._result.default;throw T._result}var G={current:null},D={transition:null},O={ReactCurrentDispatcher:G,ReactCurrentBatchConfig:D,ReactCurrentOwner:$};function Q(){throw Error("act(...) is not supported in production builds of React.")}return we.Children={map:Z,forEach:function(T,L,ue){Z(T,function(){L.apply(this,arguments)},ue)},count:function(T){var L=0;return Z(T,function(){L++}),L},toArray:function(T){return Z(T,function(L){return L})||[]},only:function(T){if(!ae(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},we.Component=k,we.Fragment=a,we.Profiler=c,we.PureComponent=I,we.StrictMode=l,we.Suspense=w,we.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,we.act=Q,we.cloneElement=function(T,L,ue){if(T==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+T+".");var fe=N({},T.props),ye=T.key,ve=T.ref,pe=T._owner;if(L!=null){if(L.ref!==void 0&&(ve=L.ref,pe=$.current),L.key!==void 0&&(ye=""+L.key),T.type&&T.type.defaultProps)var xe=T.type.defaultProps;for(Re in L)U.call(L,Re)&&!W.hasOwnProperty(Re)&&(fe[Re]=L[Re]===void 0&&xe!==void 0?xe[Re]:L[Re])}var Re=arguments.length-2;if(Re===1)fe.children=ue;else if(1<Re){xe=Array(Re);for(var qe=0;qe<Re;qe++)xe[qe]=arguments[qe+2];fe.children=xe}return{$$typeof:r,type:T.type,key:ye,ref:ve,props:fe,_owner:pe}},we.createContext=function(T){return T={$$typeof:m,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},T.Provider={$$typeof:d,_context:T},T.Consumer=T},we.createElement=J,we.createFactory=function(T){var L=J.bind(null,T);return L.type=T,L},we.createRef=function(){return{current:null}},we.forwardRef=function(T){return{$$typeof:p,render:T}},we.isValidElement=ae,we.lazy=function(T){return{$$typeof:C,_payload:{_status:-1,_result:T},_init:Y}},we.memo=function(T,L){return{$$typeof:v,type:T,compare:L===void 0?null:L}},we.startTransition=function(T){var L=D.transition;D.transition={};try{T()}finally{D.transition=L}},we.unstable_act=Q,we.useCallback=function(T,L){return G.current.useCallback(T,L)},we.useContext=function(T){return G.current.useContext(T)},we.useDebugValue=function(){},we.useDeferredValue=function(T){return G.current.useDeferredValue(T)},we.useEffect=function(T,L){return G.current.useEffect(T,L)},we.useId=function(){return G.current.useId()},we.useImperativeHandle=function(T,L,ue){return G.current.useImperativeHandle(T,L,ue)},we.useInsertionEffect=function(T,L){return G.current.useInsertionEffect(T,L)},we.useLayoutEffect=function(T,L){return G.current.useLayoutEffect(T,L)},we.useMemo=function(T,L){return G.current.useMemo(T,L)},we.useReducer=function(T,L,ue){return G.current.useReducer(T,L,ue)},we.useRef=function(T){return G.current.useRef(T)},we.useState=function(T){return G.current.useState(T)},we.useSyncExternalStore=function(T,L,ue){return G.current.useSyncExternalStore(T,L,ue)},we.useTransition=function(){return G.current.useTransition()},we.version="18.3.1",we}ju.exports=eg();var h=ju.exports;const Mt=Mu(h),tg=qh({__proto__:null,default:Mt},[h]);var Aa={exports:{}},Ma={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ou;function ng(){return Ou||(Ou=1,function(r){function i(D,O){var Q=D.length;D.push(O);e:for(;0<Q;){var T=Q-1>>>1,L=D[T];if(0<c(L,O))D[T]=O,D[Q]=L,Q=T;else break e}}function a(D){return D.length===0?null:D[0]}function l(D){if(D.length===0)return null;var O=D[0],Q=D.pop();if(Q!==O){D[0]=Q;e:for(var T=0,L=D.length,ue=L>>>1;T<ue;){var fe=2*(T+1)-1,ye=D[fe],ve=fe+1,pe=D[ve];if(0>c(ye,Q))ve<L&&0>c(pe,ye)?(D[T]=pe,D[ve]=Q,T=ve):(D[T]=ye,D[fe]=Q,T=fe);else if(ve<L&&0>c(pe,Q))D[T]=pe,D[ve]=Q,T=ve;else break e}}return O}function c(D,O){var Q=D.sortIndex-O.sortIndex;return Q!==0?Q:D.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;r.unstable_now=function(){return d.now()}}else{var m=Date,p=m.now();r.unstable_now=function(){return m.now()-p}}var w=[],v=[],C=1,y=null,S=3,E=!1,N=!1,x=!1,k=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function F(D){for(var O=a(v);O!==null;){if(O.callback===null)l(v);else if(O.startTime<=D)l(v),O.sortIndex=O.expirationTime,i(w,O);else break;O=a(v)}}function z(D){if(x=!1,F(D),!N)if(a(w)!==null)N=!0,Y(U);else{var O=a(v);O!==null&&G(z,O.startTime-D)}}function U(D,O){N=!1,x&&(x=!1,M(J),J=-1),E=!0;var Q=S;try{for(F(O),y=a(w);y!==null&&(!(y.expirationTime>O)||D&&!ce());){var T=y.callback;if(typeof T=="function"){y.callback=null,S=y.priorityLevel;var L=T(y.expirationTime<=O);O=r.unstable_now(),typeof L=="function"?y.callback=L:y===a(w)&&l(w),F(O)}else l(w);y=a(w)}if(y!==null)var ue=!0;else{var fe=a(v);fe!==null&&G(z,fe.startTime-O),ue=!1}return ue}finally{y=null,S=Q,E=!1}}var $=!1,W=null,J=-1,ie=5,ae=-1;function ce(){return!(r.unstable_now()-ae<ie)}function ee(){if(W!==null){var D=r.unstable_now();ae=D;var O=!0;try{O=W(!0,D)}finally{O?ge():($=!1,W=null)}}else $=!1}var ge;if(typeof I=="function")ge=function(){I(ee)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,Z=X.port2;X.port1.onmessage=ee,ge=function(){Z.postMessage(null)}}else ge=function(){k(ee,0)};function Y(D){W=D,$||($=!0,ge())}function G(D,O){J=k(function(){D(r.unstable_now())},O)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(D){D.callback=null},r.unstable_continueExecution=function(){N||E||(N=!0,Y(U))},r.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ie=0<D?Math.floor(1e3/D):5},r.unstable_getCurrentPriorityLevel=function(){return S},r.unstable_getFirstCallbackNode=function(){return a(w)},r.unstable_next=function(D){switch(S){case 1:case 2:case 3:var O=3;break;default:O=S}var Q=S;S=O;try{return D()}finally{S=Q}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(D,O){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var Q=S;S=D;try{return O()}finally{S=Q}},r.unstable_scheduleCallback=function(D,O,Q){var T=r.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?T+Q:T):Q=T,D){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=Q+L,D={id:C++,callback:O,priorityLevel:D,startTime:Q,expirationTime:L,sortIndex:-1},Q>T?(D.sortIndex=Q,i(v,D),a(w)===null&&D===a(v)&&(x?(M(J),J=-1):x=!0,G(z,Q-T))):(D.sortIndex=L,i(w,D),N||E||(N=!0,Y(U))),D},r.unstable_shouldYield=ce,r.unstable_wrapCallback=function(D){var O=S;return function(){var Q=S;S=O;try{return D.apply(this,arguments)}finally{S=Q}}}}(Ma)),Ma}var Du;function rg(){return Du||(Du=1,Aa.exports=ng()),Aa.exports}/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Fu;function og(){if(Fu)return nt;Fu=1;var r=h,i=rg();function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,c={};function d(e,t){m(e,t),m(e+"Capture",t)}function m(e,t){for(c[e]=t,e=0;e<t.length;e++)l.add(t[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),w=Object.prototype.hasOwnProperty,v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,C={},y={};function S(e){return w.call(y,e)?!0:w.call(C,e)?!1:v.test(e)?y[e]=!0:(C[e]=!0,!1)}function E(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function N(e,t,n,o){if(t===null||typeof t>"u"||E(e,t,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function x(e,t,n,o,s,u,f){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=f}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){k[e]=new x(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];k[t]=new x(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){k[e]=new x(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){k[e]=new x(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){k[e]=new x(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){k[e]=new x(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){k[e]=new x(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){k[e]=new x(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){k[e]=new x(e,5,!1,e.toLowerCase(),null,!1,!1)});var M=/[\-:]([a-z])/g;function I(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(M,I);k[t]=new x(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(M,I);k[t]=new x(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(M,I);k[t]=new x(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){k[e]=new x(e,1,!1,e.toLowerCase(),null,!1,!1)}),k.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){k[e]=new x(e,1,!1,e.toLowerCase(),null,!0,!0)});function F(e,t,n,o){var s=k.hasOwnProperty(t)?k[t]:null;(s!==null?s.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(N(t,n,s,o)&&(n=null),o||s===null?S(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,o=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}var z=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,U=Symbol.for("react.element"),$=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),ie=Symbol.for("react.profiler"),ae=Symbol.for("react.provider"),ce=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),ge=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),G=Symbol.for("react.offscreen"),D=Symbol.iterator;function O(e){return e===null||typeof e!="object"?null:(e=D&&e[D]||e["@@iterator"],typeof e=="function"?e:null)}var Q=Object.assign,T;function L(e){if(T===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);T=t&&t[1]||""}return`
`+T+e}var ue=!1;function fe(e,t){if(!e||ue)return"";ue=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(j){var o=j}Reflect.construct(e,[],t)}else{try{t.call()}catch(j){o=j}e.call(t.prototype)}else{try{throw Error()}catch(j){o=j}e()}}catch(j){if(j&&o&&typeof j.stack=="string"){for(var s=j.stack.split(`
`),u=o.stack.split(`
`),f=s.length-1,b=u.length-1;1<=f&&0<=b&&s[f]!==u[b];)b--;for(;1<=f&&0<=b;f--,b--)if(s[f]!==u[b]){if(f!==1||b!==1)do if(f--,b--,0>b||s[f]!==u[b]){var R=`
`+s[f].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),R}while(1<=f&&0<=b);break}}}finally{ue=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?L(e):""}function ye(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=fe(e.type,!1),e;case 11:return e=fe(e.type.render,!1),e;case 1:return e=fe(e.type,!0),e;default:return""}}function ve(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case W:return"Fragment";case $:return"Portal";case ie:return"Profiler";case J:return"StrictMode";case ge:return"Suspense";case X:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ce:return(e.displayName||"Context")+".Consumer";case ae:return(e._context.displayName||"Context")+".Provider";case ee:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return t=e.displayName||null,t!==null?t:ve(e.type)||"Memo";case Y:t=e._payload,e=e._init;try{return ve(e(t))}catch{}}return null}function pe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(t);case 8:return t===J?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function xe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Re(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qe(e){var t=Re(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(f){o=""+f,u.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(f){o=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ar(e){e._valueTracker||(e._valueTracker=qe(e))}function bi(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=Re(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function Yt(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ls(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ap(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=xe(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function sp(e,t){t=t.checked,t!=null&&F(e,"checked",t,!1)}function zs(e,t){sp(e,t);var n=xe(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Us(e,t.type,n):t.hasOwnProperty("defaultValue")&&Us(e,t.type,xe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function lp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Us(e,t,n){(t!=="number"||Yt(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Gr=Array.isArray;function sr(e,t,n,o){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&o&&(e[n].defaultSelected=!0)}else{for(n=""+xe(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,o&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Bs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(a(91));return Q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function up(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(a(92));if(Gr(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:xe(n)}}function cp(e,t){var n=xe(t.value),o=xe(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),o!=null&&(e.defaultValue=""+o)}function dp(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function fp(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Vs(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?fp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ci,pp=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,o,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ci=Ci||document.createElement("div"),Ci.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ci.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Yr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},f1=["Webkit","ms","Moz","O"];Object.keys(Qr).forEach(function(e){f1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qr[t]=Qr[e]})});function mp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qr.hasOwnProperty(e)&&Qr[e]?(""+t).trim():t+"px"}function hp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,s=mp(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,s):e[n]=s}}var p1=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ws(e,t){if(t){if(p1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(a(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(a(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(t.style!=null&&typeof t.style!="object")throw Error(a(62))}}function Hs(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $s=null;function Ks(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gs=null,lr=null,ur=null;function gp(e){if(e=wo(e)){if(typeof Gs!="function")throw Error(a(280));var t=e.stateNode;t&&(t=$i(t),Gs(e.stateNode,e.type,t))}}function vp(e){lr?ur?ur.push(e):ur=[e]:lr=e}function wp(){if(lr){var e=lr,t=ur;if(ur=lr=null,gp(e),t)for(e=0;e<t.length;e++)gp(t[e])}}function yp(e,t){return e(t)}function xp(){}var Ys=!1;function bp(e,t,n){if(Ys)return e(t,n);Ys=!0;try{return yp(e,t,n)}finally{Ys=!1,(lr!==null||ur!==null)&&(xp(),wp())}}function Xr(e,t){var n=e.stateNode;if(n===null)return null;var o=$i(n);if(o===null)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(a(231,t,typeof n));return n}var Qs=!1;if(p)try{var Jr={};Object.defineProperty(Jr,"passive",{get:function(){Qs=!0}}),window.addEventListener("test",Jr,Jr),window.removeEventListener("test",Jr,Jr)}catch{Qs=!1}function m1(e,t,n,o,s,u,f,b,R){var j=Array.prototype.slice.call(arguments,3);try{t.apply(n,j)}catch(V){this.onError(V)}}var Zr=!1,Si=null,Ei=!1,Xs=null,h1={onError:function(e){Zr=!0,Si=e}};function g1(e,t,n,o,s,u,f,b,R){Zr=!1,Si=null,m1.apply(h1,arguments)}function v1(e,t,n,o,s,u,f,b,R){if(g1.apply(this,arguments),Zr){if(Zr){var j=Si;Zr=!1,Si=null}else throw Error(a(198));Ei||(Ei=!0,Xs=j)}}function Dn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Cp(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Sp(e){if(Dn(e)!==e)throw Error(a(188))}function w1(e){var t=e.alternate;if(!t){if(t=Dn(e),t===null)throw Error(a(188));return t!==e?null:e}for(var n=e,o=t;;){var s=n.return;if(s===null)break;var u=s.alternate;if(u===null){if(o=s.return,o!==null){n=o;continue}break}if(s.child===u.child){for(u=s.child;u;){if(u===n)return Sp(s),e;if(u===o)return Sp(s),t;u=u.sibling}throw Error(a(188))}if(n.return!==o.return)n=s,o=u;else{for(var f=!1,b=s.child;b;){if(b===n){f=!0,n=s,o=u;break}if(b===o){f=!0,o=s,n=u;break}b=b.sibling}if(!f){for(b=u.child;b;){if(b===n){f=!0,n=u,o=s;break}if(b===o){f=!0,o=u,n=s;break}b=b.sibling}if(!f)throw Error(a(189))}}if(n.alternate!==o)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function Ep(e){return e=w1(e),e!==null?kp(e):null}function kp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=kp(e);if(t!==null)return t;e=e.sibling}return null}var Rp=i.unstable_scheduleCallback,Np=i.unstable_cancelCallback,y1=i.unstable_shouldYield,x1=i.unstable_requestPaint,Oe=i.unstable_now,b1=i.unstable_getCurrentPriorityLevel,Js=i.unstable_ImmediatePriority,Pp=i.unstable_UserBlockingPriority,ki=i.unstable_NormalPriority,C1=i.unstable_LowPriority,Tp=i.unstable_IdlePriority,Ri=null,Ft=null;function S1(e){if(Ft&&typeof Ft.onCommitFiberRoot=="function")try{Ft.onCommitFiberRoot(Ri,e,void 0,(e.current.flags&128)===128)}catch{}}var Et=Math.clz32?Math.clz32:R1,E1=Math.log,k1=Math.LN2;function R1(e){return e>>>=0,e===0?32:31-(E1(e)/k1|0)|0}var Ni=64,Pi=4194304;function qr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ti(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,s=e.suspendedLanes,u=e.pingedLanes,f=n&268435455;if(f!==0){var b=f&~s;b!==0?o=qr(b):(u&=f,u!==0&&(o=qr(u)))}else f=n&~s,f!==0?o=qr(f):u!==0&&(o=qr(u));if(o===0)return 0;if(t!==0&&t!==o&&!(t&s)&&(s=o&-o,u=t&-t,s>=u||s===16&&(u&4194240)!==0))return t;if(o&4&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)n=31-Et(t),s=1<<n,o|=e[n],t&=~s;return o}function N1(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function P1(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,s=e.expirationTimes,u=e.pendingLanes;0<u;){var f=31-Et(u),b=1<<f,R=s[f];R===-1?(!(b&n)||b&o)&&(s[f]=N1(b,t)):R<=t&&(e.expiredLanes|=b),u&=~b}}function Zs(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ap(){var e=Ni;return Ni<<=1,!(Ni&4194240)&&(Ni=64),e}function qs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function eo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Et(t),e[t]=n}function T1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-Et(n),u=1<<s;t[s]=0,o[s]=-1,e[s]=-1,n&=~u}}function el(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var o=31-Et(n),s=1<<o;s&t|e[o]&t&&(e[o]|=t),n&=~s}}var ke=0;function Mp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var _p,tl,jp,Ip,Op,nl=!1,Ai=[],dn=null,fn=null,pn=null,to=new Map,no=new Map,mn=[],A1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Dp(e,t){switch(e){case"focusin":case"focusout":dn=null;break;case"dragenter":case"dragleave":fn=null;break;case"mouseover":case"mouseout":pn=null;break;case"pointerover":case"pointerout":to.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":no.delete(t.pointerId)}}function ro(e,t,n,o,s,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:o,nativeEvent:u,targetContainers:[s]},t!==null&&(t=wo(t),t!==null&&tl(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function M1(e,t,n,o,s){switch(t){case"focusin":return dn=ro(dn,e,t,n,o,s),!0;case"dragenter":return fn=ro(fn,e,t,n,o,s),!0;case"mouseover":return pn=ro(pn,e,t,n,o,s),!0;case"pointerover":var u=s.pointerId;return to.set(u,ro(to.get(u)||null,e,t,n,o,s)),!0;case"gotpointercapture":return u=s.pointerId,no.set(u,ro(no.get(u)||null,e,t,n,o,s)),!0}return!1}function Fp(e){var t=Fn(e.target);if(t!==null){var n=Dn(t);if(n!==null){if(t=n.tag,t===13){if(t=Cp(n),t!==null){e.blockedOn=t,Op(e.priority,function(){jp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Mi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ol(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var o=new n.constructor(n.type,n);$s=o,n.target.dispatchEvent(o),$s=null}else return t=wo(n),t!==null&&tl(t),e.blockedOn=n,!1;t.shift()}return!0}function Lp(e,t,n){Mi(e)&&n.delete(t)}function _1(){nl=!1,dn!==null&&Mi(dn)&&(dn=null),fn!==null&&Mi(fn)&&(fn=null),pn!==null&&Mi(pn)&&(pn=null),to.forEach(Lp),no.forEach(Lp)}function oo(e,t){e.blockedOn===t&&(e.blockedOn=null,nl||(nl=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,_1)))}function io(e){function t(s){return oo(s,e)}if(0<Ai.length){oo(Ai[0],e);for(var n=1;n<Ai.length;n++){var o=Ai[n];o.blockedOn===e&&(o.blockedOn=null)}}for(dn!==null&&oo(dn,e),fn!==null&&oo(fn,e),pn!==null&&oo(pn,e),to.forEach(t),no.forEach(t),n=0;n<mn.length;n++)o=mn[n],o.blockedOn===e&&(o.blockedOn=null);for(;0<mn.length&&(n=mn[0],n.blockedOn===null);)Fp(n),n.blockedOn===null&&mn.shift()}var cr=z.ReactCurrentBatchConfig,_i=!0;function j1(e,t,n,o){var s=ke,u=cr.transition;cr.transition=null;try{ke=1,rl(e,t,n,o)}finally{ke=s,cr.transition=u}}function I1(e,t,n,o){var s=ke,u=cr.transition;cr.transition=null;try{ke=4,rl(e,t,n,o)}finally{ke=s,cr.transition=u}}function rl(e,t,n,o){if(_i){var s=ol(e,t,n,o);if(s===null)bl(e,t,o,ji,n),Dp(e,o);else if(M1(s,e,t,n,o))o.stopPropagation();else if(Dp(e,o),t&4&&-1<A1.indexOf(e)){for(;s!==null;){var u=wo(s);if(u!==null&&_p(u),u=ol(e,t,n,o),u===null&&bl(e,t,o,ji,n),u===s)break;s=u}s!==null&&o.stopPropagation()}else bl(e,t,o,null,n)}}var ji=null;function ol(e,t,n,o){if(ji=null,e=Ks(o),e=Fn(e),e!==null)if(t=Dn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Cp(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ji=e,null}function zp(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(b1()){case Js:return 1;case Pp:return 4;case ki:case C1:return 16;case Tp:return 536870912;default:return 16}default:return 16}}var hn=null,il=null,Ii=null;function Up(){if(Ii)return Ii;var e,t=il,n=t.length,o,s="value"in hn?hn.value:hn.textContent,u=s.length;for(e=0;e<n&&t[e]===s[e];e++);var f=n-e;for(o=1;o<=f&&t[n-o]===s[u-o];o++);return Ii=s.slice(e,1<o?1-o:void 0)}function Oi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Di(){return!0}function Bp(){return!1}function dt(e){function t(n,o,s,u,f){this._reactName=n,this._targetInst=s,this.type=o,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(n=e[b],this[b]=n?n(u):u[b]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Di:Bp,this.isPropagationStopped=Bp,this}return Q(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Di)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Di)},persist:function(){},isPersistent:Di}),t}var dr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},al=dt(dr),ao=Q({},dr,{view:0,detail:0}),O1=dt(ao),sl,ll,so,Fi=Q({},ao,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cl,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==so&&(so&&e.type==="mousemove"?(sl=e.screenX-so.screenX,ll=e.screenY-so.screenY):ll=sl=0,so=e),sl)},movementY:function(e){return"movementY"in e?e.movementY:ll}}),Vp=dt(Fi),D1=Q({},Fi,{dataTransfer:0}),F1=dt(D1),L1=Q({},ao,{relatedTarget:0}),ul=dt(L1),z1=Q({},dr,{animationName:0,elapsedTime:0,pseudoElement:0}),U1=dt(z1),B1=Q({},dr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),V1=dt(B1),W1=Q({},dr,{data:0}),Wp=dt(W1),H1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},K1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function G1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=K1[e])?!!t[e]:!1}function cl(){return G1}var Y1=Q({},ao,{key:function(e){if(e.key){var t=H1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Oi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cl,charCode:function(e){return e.type==="keypress"?Oi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Oi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Q1=dt(Y1),X1=Q({},Fi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hp=dt(X1),J1=Q({},ao,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cl}),Z1=dt(J1),q1=Q({},dr,{propertyName:0,elapsedTime:0,pseudoElement:0}),eb=dt(q1),tb=Q({},Fi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),nb=dt(tb),rb=[9,13,27,32],dl=p&&"CompositionEvent"in window,lo=null;p&&"documentMode"in document&&(lo=document.documentMode);var ob=p&&"TextEvent"in window&&!lo,$p=p&&(!dl||lo&&8<lo&&11>=lo),Kp=" ",Gp=!1;function Yp(e,t){switch(e){case"keyup":return rb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fr=!1;function ib(e,t){switch(e){case"compositionend":return Qp(t);case"keypress":return t.which!==32?null:(Gp=!0,Kp);case"textInput":return e=t.data,e===Kp&&Gp?null:e;default:return null}}function ab(e,t){if(fr)return e==="compositionend"||!dl&&Yp(e,t)?(e=Up(),Ii=il=hn=null,fr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return $p&&t.locale!=="ko"?null:t.data;default:return null}}var sb={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Xp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sb[e.type]:t==="textarea"}function Jp(e,t,n,o){vp(o),t=Vi(t,"onChange"),0<t.length&&(n=new al("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var uo=null,co=null;function lb(e){hm(e,0)}function Li(e){var t=vr(e);if(bi(t))return e}function ub(e,t){if(e==="change")return t}var Zp=!1;if(p){var fl;if(p){var pl="oninput"in document;if(!pl){var qp=document.createElement("div");qp.setAttribute("oninput","return;"),pl=typeof qp.oninput=="function"}fl=pl}else fl=!1;Zp=fl&&(!document.documentMode||9<document.documentMode)}function em(){uo&&(uo.detachEvent("onpropertychange",tm),co=uo=null)}function tm(e){if(e.propertyName==="value"&&Li(co)){var t=[];Jp(t,co,e,Ks(e)),bp(lb,t)}}function cb(e,t,n){e==="focusin"?(em(),uo=t,co=n,uo.attachEvent("onpropertychange",tm)):e==="focusout"&&em()}function db(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Li(co)}function fb(e,t){if(e==="click")return Li(t)}function pb(e,t){if(e==="input"||e==="change")return Li(t)}function mb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kt=typeof Object.is=="function"?Object.is:mb;function fo(e,t){if(kt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++){var s=n[o];if(!w.call(t,s)||!kt(e[s],t[s]))return!1}return!0}function nm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rm(e,t){var n=nm(e);e=0;for(var o;n;){if(n.nodeType===3){if(o=e+n.textContent.length,e<=t&&o>=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=nm(n)}}function om(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?om(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function im(){for(var e=window,t=Yt();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Yt(e.document)}return t}function ml(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function hb(e){var t=im(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&om(n.ownerDocument.documentElement,n)){if(o!==null&&ml(n)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,u=Math.min(o.start,s);o=o.end===void 0?u:Math.min(o.end,s),!e.extend&&u>o&&(s=o,o=u,u=s),s=rm(n,u);var f=rm(n,o);s&&f&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==f.node||e.focusOffset!==f.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),u>o?(e.addRange(t),e.extend(f.node,f.offset)):(t.setEnd(f.node,f.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gb=p&&"documentMode"in document&&11>=document.documentMode,pr=null,hl=null,po=null,gl=!1;function am(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gl||pr==null||pr!==Yt(o)||(o=pr,"selectionStart"in o&&ml(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),po&&fo(po,o)||(po=o,o=Vi(hl,"onSelect"),0<o.length&&(t=new al("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=pr)))}function zi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var mr={animationend:zi("Animation","AnimationEnd"),animationiteration:zi("Animation","AnimationIteration"),animationstart:zi("Animation","AnimationStart"),transitionend:zi("Transition","TransitionEnd")},vl={},sm={};p&&(sm=document.createElement("div").style,"AnimationEvent"in window||(delete mr.animationend.animation,delete mr.animationiteration.animation,delete mr.animationstart.animation),"TransitionEvent"in window||delete mr.transitionend.transition);function Ui(e){if(vl[e])return vl[e];if(!mr[e])return e;var t=mr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in sm)return vl[e]=t[n];return e}var lm=Ui("animationend"),um=Ui("animationiteration"),cm=Ui("animationstart"),dm=Ui("transitionend"),fm=new Map,pm="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function gn(e,t){fm.set(e,t),d(t,[e])}for(var wl=0;wl<pm.length;wl++){var yl=pm[wl],vb=yl.toLowerCase(),wb=yl[0].toUpperCase()+yl.slice(1);gn(vb,"on"+wb)}gn(lm,"onAnimationEnd"),gn(um,"onAnimationIteration"),gn(cm,"onAnimationStart"),gn("dblclick","onDoubleClick"),gn("focusin","onFocus"),gn("focusout","onBlur"),gn(dm,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),yb=new Set("cancel close invalid load scroll toggle".split(" ").concat(mo));function mm(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,v1(o,t,void 0,e),e.currentTarget=null}function hm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var o=e[n],s=o.event;o=o.listeners;e:{var u=void 0;if(t)for(var f=o.length-1;0<=f;f--){var b=o[f],R=b.instance,j=b.currentTarget;if(b=b.listener,R!==u&&s.isPropagationStopped())break e;mm(s,b,j),u=R}else for(f=0;f<o.length;f++){if(b=o[f],R=b.instance,j=b.currentTarget,b=b.listener,R!==u&&s.isPropagationStopped())break e;mm(s,b,j),u=R}}}if(Ei)throw e=Xs,Ei=!1,Xs=null,e}function Te(e,t){var n=t[Nl];n===void 0&&(n=t[Nl]=new Set);var o=e+"__bubble";n.has(o)||(gm(t,e,2,!1),n.add(o))}function xl(e,t,n){var o=0;t&&(o|=4),gm(n,e,o,t)}var Bi="_reactListening"+Math.random().toString(36).slice(2);function ho(e){if(!e[Bi]){e[Bi]=!0,l.forEach(function(n){n!=="selectionchange"&&(yb.has(n)||xl(n,!1,e),xl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Bi]||(t[Bi]=!0,xl("selectionchange",!1,t))}}function gm(e,t,n,o){switch(zp(t)){case 1:var s=j1;break;case 4:s=I1;break;default:s=rl}n=s.bind(null,t,n,e),s=void 0,!Qs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),o?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function bl(e,t,n,o,s){var u=o;if(!(t&1)&&!(t&2)&&o!==null)e:for(;;){if(o===null)return;var f=o.tag;if(f===3||f===4){var b=o.stateNode.containerInfo;if(b===s||b.nodeType===8&&b.parentNode===s)break;if(f===4)for(f=o.return;f!==null;){var R=f.tag;if((R===3||R===4)&&(R=f.stateNode.containerInfo,R===s||R.nodeType===8&&R.parentNode===s))return;f=f.return}for(;b!==null;){if(f=Fn(b),f===null)return;if(R=f.tag,R===5||R===6){o=u=f;continue e}b=b.parentNode}}o=o.return}bp(function(){var j=u,V=Ks(n),H=[];e:{var B=fm.get(e);if(B!==void 0){var q=al,ne=e;switch(e){case"keypress":if(Oi(n)===0)break e;case"keydown":case"keyup":q=Q1;break;case"focusin":ne="focus",q=ul;break;case"focusout":ne="blur",q=ul;break;case"beforeblur":case"afterblur":q=ul;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=Vp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=F1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=Z1;break;case lm:case um:case cm:q=U1;break;case dm:q=eb;break;case"scroll":q=O1;break;case"wheel":q=nb;break;case"copy":case"cut":case"paste":q=V1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=Hp}var re=(t&4)!==0,De=!re&&e==="scroll",A=re?B!==null?B+"Capture":null:B;re=[];for(var P=j,_;P!==null;){_=P;var K=_.stateNode;if(_.tag===5&&K!==null&&(_=K,A!==null&&(K=Xr(P,A),K!=null&&re.push(go(P,K,_)))),De)break;P=P.return}0<re.length&&(B=new q(B,ne,null,n,V),H.push({event:B,listeners:re}))}}if(!(t&7)){e:{if(B=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",B&&n!==$s&&(ne=n.relatedTarget||n.fromElement)&&(Fn(ne)||ne[Qt]))break e;if((q||B)&&(B=V.window===V?V:(B=V.ownerDocument)?B.defaultView||B.parentWindow:window,q?(ne=n.relatedTarget||n.toElement,q=j,ne=ne?Fn(ne):null,ne!==null&&(De=Dn(ne),ne!==De||ne.tag!==5&&ne.tag!==6)&&(ne=null)):(q=null,ne=j),q!==ne)){if(re=Vp,K="onMouseLeave",A="onMouseEnter",P="mouse",(e==="pointerout"||e==="pointerover")&&(re=Hp,K="onPointerLeave",A="onPointerEnter",P="pointer"),De=q==null?B:vr(q),_=ne==null?B:vr(ne),B=new re(K,P+"leave",q,n,V),B.target=De,B.relatedTarget=_,K=null,Fn(V)===j&&(re=new re(A,P+"enter",ne,n,V),re.target=_,re.relatedTarget=De,K=re),De=K,q&&ne)t:{for(re=q,A=ne,P=0,_=re;_;_=hr(_))P++;for(_=0,K=A;K;K=hr(K))_++;for(;0<P-_;)re=hr(re),P--;for(;0<_-P;)A=hr(A),_--;for(;P--;){if(re===A||A!==null&&re===A.alternate)break t;re=hr(re),A=hr(A)}re=null}else re=null;q!==null&&vm(H,B,q,re,!1),ne!==null&&De!==null&&vm(H,De,ne,re,!0)}}e:{if(B=j?vr(j):window,q=B.nodeName&&B.nodeName.toLowerCase(),q==="select"||q==="input"&&B.type==="file")var oe=ub;else if(Xp(B))if(Zp)oe=pb;else{oe=db;var se=cb}else(q=B.nodeName)&&q.toLowerCase()==="input"&&(B.type==="checkbox"||B.type==="radio")&&(oe=fb);if(oe&&(oe=oe(e,j))){Jp(H,oe,n,V);break e}se&&se(e,B,j),e==="focusout"&&(se=B._wrapperState)&&se.controlled&&B.type==="number"&&Us(B,"number",B.value)}switch(se=j?vr(j):window,e){case"focusin":(Xp(se)||se.contentEditable==="true")&&(pr=se,hl=j,po=null);break;case"focusout":po=hl=pr=null;break;case"mousedown":gl=!0;break;case"contextmenu":case"mouseup":case"dragend":gl=!1,am(H,n,V);break;case"selectionchange":if(gb)break;case"keydown":case"keyup":am(H,n,V)}var le;if(dl)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else fr?Yp(e,n)&&(de="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(de="onCompositionStart");de&&($p&&n.locale!=="ko"&&(fr||de!=="onCompositionStart"?de==="onCompositionEnd"&&fr&&(le=Up()):(hn=V,il="value"in hn?hn.value:hn.textContent,fr=!0)),se=Vi(j,de),0<se.length&&(de=new Wp(de,e,null,n,V),H.push({event:de,listeners:se}),le?de.data=le:(le=Qp(n),le!==null&&(de.data=le)))),(le=ob?ib(e,n):ab(e,n))&&(j=Vi(j,"onBeforeInput"),0<j.length&&(V=new Wp("onBeforeInput","beforeinput",null,n,V),H.push({event:V,listeners:j}),V.data=le))}hm(H,t)})}function go(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vi(e,t){for(var n=t+"Capture",o=[];e!==null;){var s=e,u=s.stateNode;s.tag===5&&u!==null&&(s=u,u=Xr(e,n),u!=null&&o.unshift(go(e,u,s)),u=Xr(e,t),u!=null&&o.push(go(e,u,s))),e=e.return}return o}function hr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function vm(e,t,n,o,s){for(var u=t._reactName,f=[];n!==null&&n!==o;){var b=n,R=b.alternate,j=b.stateNode;if(R!==null&&R===o)break;b.tag===5&&j!==null&&(b=j,s?(R=Xr(n,u),R!=null&&f.unshift(go(n,R,b))):s||(R=Xr(n,u),R!=null&&f.push(go(n,R,b)))),n=n.return}f.length!==0&&e.push({event:t,listeners:f})}var xb=/\r\n?/g,bb=/\u0000|\uFFFD/g;function wm(e){return(typeof e=="string"?e:""+e).replace(xb,`
`).replace(bb,"")}function Wi(e,t,n){if(t=wm(t),wm(e)!==t&&n)throw Error(a(425))}function Hi(){}var Cl=null,Sl=null;function El(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var kl=typeof setTimeout=="function"?setTimeout:void 0,Cb=typeof clearTimeout=="function"?clearTimeout:void 0,ym=typeof Promise=="function"?Promise:void 0,Sb=typeof queueMicrotask=="function"?queueMicrotask:typeof ym<"u"?function(e){return ym.resolve(null).then(e).catch(Eb)}:kl;function Eb(e){setTimeout(function(){throw e})}function Rl(e,t){var n=t,o=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(o===0){e.removeChild(s),io(t);return}o--}else n!=="$"&&n!=="$?"&&n!=="$!"||o++;n=s}while(n);io(t)}function vn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function xm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var gr=Math.random().toString(36).slice(2),Lt="__reactFiber$"+gr,vo="__reactProps$"+gr,Qt="__reactContainer$"+gr,Nl="__reactEvents$"+gr,kb="__reactListeners$"+gr,Rb="__reactHandles$"+gr;function Fn(e){var t=e[Lt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Qt]||n[Lt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xm(e);e!==null;){if(n=e[Lt])return n;e=xm(e)}return t}e=n,n=e.parentNode}return null}function wo(e){return e=e[Lt]||e[Qt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function vr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(a(33))}function $i(e){return e[vo]||null}var Pl=[],wr=-1;function wn(e){return{current:e}}function Ae(e){0>wr||(e.current=Pl[wr],Pl[wr]=null,wr--)}function Ne(e,t){wr++,Pl[wr]=e.current,e.current=t}var yn={},Ye=wn(yn),rt=wn(!1),Ln=yn;function yr(e,t){var n=e.type.contextTypes;if(!n)return yn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var s={},u;for(u in n)s[u]=t[u];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function ot(e){return e=e.childContextTypes,e!=null}function Ki(){Ae(rt),Ae(Ye)}function bm(e,t,n){if(Ye.current!==yn)throw Error(a(168));Ne(Ye,t),Ne(rt,n)}function Cm(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var s in o)if(!(s in t))throw Error(a(108,pe(e)||"Unknown",s));return Q({},n,o)}function Gi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yn,Ln=Ye.current,Ne(Ye,e),Ne(rt,rt.current),!0}function Sm(e,t,n){var o=e.stateNode;if(!o)throw Error(a(169));n?(e=Cm(e,t,Ln),o.__reactInternalMemoizedMergedChildContext=e,Ae(rt),Ae(Ye),Ne(Ye,e)):Ae(rt),Ne(rt,n)}var Xt=null,Yi=!1,Tl=!1;function Em(e){Xt===null?Xt=[e]:Xt.push(e)}function Nb(e){Yi=!0,Em(e)}function xn(){if(!Tl&&Xt!==null){Tl=!0;var e=0,t=ke;try{var n=Xt;for(ke=1;e<n.length;e++){var o=n[e];do o=o(!0);while(o!==null)}Xt=null,Yi=!1}catch(s){throw Xt!==null&&(Xt=Xt.slice(e+1)),Rp(Js,xn),s}finally{ke=t,Tl=!1}}return null}var xr=[],br=0,Qi=null,Xi=0,gt=[],vt=0,zn=null,Jt=1,Zt="";function Un(e,t){xr[br++]=Xi,xr[br++]=Qi,Qi=e,Xi=t}function km(e,t,n){gt[vt++]=Jt,gt[vt++]=Zt,gt[vt++]=zn,zn=e;var o=Jt;e=Zt;var s=32-Et(o)-1;o&=~(1<<s),n+=1;var u=32-Et(t)+s;if(30<u){var f=s-s%5;u=(o&(1<<f)-1).toString(32),o>>=f,s-=f,Jt=1<<32-Et(t)+s|n<<s|o,Zt=u+e}else Jt=1<<u|n<<s|o,Zt=e}function Al(e){e.return!==null&&(Un(e,1),km(e,1,0))}function Ml(e){for(;e===Qi;)Qi=xr[--br],xr[br]=null,Xi=xr[--br],xr[br]=null;for(;e===zn;)zn=gt[--vt],gt[vt]=null,Zt=gt[--vt],gt[vt]=null,Jt=gt[--vt],gt[vt]=null}var ft=null,pt=null,Me=!1,Rt=null;function Rm(e,t){var n=bt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Nm(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ft=e,pt=vn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ft=e,pt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=zn!==null?{id:Jt,overflow:Zt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=bt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ft=e,pt=null,!0):!1;default:return!1}}function _l(e){return(e.mode&1)!==0&&(e.flags&128)===0}function jl(e){if(Me){var t=pt;if(t){var n=t;if(!Nm(e,t)){if(_l(e))throw Error(a(418));t=vn(n.nextSibling);var o=ft;t&&Nm(e,t)?Rm(o,n):(e.flags=e.flags&-4097|2,Me=!1,ft=e)}}else{if(_l(e))throw Error(a(418));e.flags=e.flags&-4097|2,Me=!1,ft=e}}}function Pm(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ft=e}function Ji(e){if(e!==ft)return!1;if(!Me)return Pm(e),Me=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!El(e.type,e.memoizedProps)),t&&(t=pt)){if(_l(e))throw Tm(),Error(a(418));for(;t;)Rm(e,t),t=vn(t.nextSibling)}if(Pm(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){pt=vn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}pt=null}}else pt=ft?vn(e.stateNode.nextSibling):null;return!0}function Tm(){for(var e=pt;e;)e=vn(e.nextSibling)}function Cr(){pt=ft=null,Me=!1}function Il(e){Rt===null?Rt=[e]:Rt.push(e)}var Pb=z.ReactCurrentBatchConfig;function yo(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(a(309));var o=n.stateNode}if(!o)throw Error(a(147,e));var s=o,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(f){var b=s.refs;f===null?delete b[u]:b[u]=f},t._stringRef=u,t)}if(typeof e!="string")throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Zi(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Am(e){var t=e._init;return t(e._payload)}function Mm(e){function t(A,P){if(e){var _=A.deletions;_===null?(A.deletions=[P],A.flags|=16):_.push(P)}}function n(A,P){if(!e)return null;for(;P!==null;)t(A,P),P=P.sibling;return null}function o(A,P){for(A=new Map;P!==null;)P.key!==null?A.set(P.key,P):A.set(P.index,P),P=P.sibling;return A}function s(A,P){return A=Pn(A,P),A.index=0,A.sibling=null,A}function u(A,P,_){return A.index=_,e?(_=A.alternate,_!==null?(_=_.index,_<P?(A.flags|=2,P):_):(A.flags|=2,P)):(A.flags|=1048576,P)}function f(A){return e&&A.alternate===null&&(A.flags|=2),A}function b(A,P,_,K){return P===null||P.tag!==6?(P=ku(_,A.mode,K),P.return=A,P):(P=s(P,_),P.return=A,P)}function R(A,P,_,K){var oe=_.type;return oe===W?V(A,P,_.props.children,K,_.key):P!==null&&(P.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===Y&&Am(oe)===P.type)?(K=s(P,_.props),K.ref=yo(A,P,_),K.return=A,K):(K=Ca(_.type,_.key,_.props,null,A.mode,K),K.ref=yo(A,P,_),K.return=A,K)}function j(A,P,_,K){return P===null||P.tag!==4||P.stateNode.containerInfo!==_.containerInfo||P.stateNode.implementation!==_.implementation?(P=Ru(_,A.mode,K),P.return=A,P):(P=s(P,_.children||[]),P.return=A,P)}function V(A,P,_,K,oe){return P===null||P.tag!==7?(P=Yn(_,A.mode,K,oe),P.return=A,P):(P=s(P,_),P.return=A,P)}function H(A,P,_){if(typeof P=="string"&&P!==""||typeof P=="number")return P=ku(""+P,A.mode,_),P.return=A,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case U:return _=Ca(P.type,P.key,P.props,null,A.mode,_),_.ref=yo(A,null,P),_.return=A,_;case $:return P=Ru(P,A.mode,_),P.return=A,P;case Y:var K=P._init;return H(A,K(P._payload),_)}if(Gr(P)||O(P))return P=Yn(P,A.mode,_,null),P.return=A,P;Zi(A,P)}return null}function B(A,P,_,K){var oe=P!==null?P.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return oe!==null?null:b(A,P,""+_,K);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case U:return _.key===oe?R(A,P,_,K):null;case $:return _.key===oe?j(A,P,_,K):null;case Y:return oe=_._init,B(A,P,oe(_._payload),K)}if(Gr(_)||O(_))return oe!==null?null:V(A,P,_,K,null);Zi(A,_)}return null}function q(A,P,_,K,oe){if(typeof K=="string"&&K!==""||typeof K=="number")return A=A.get(_)||null,b(P,A,""+K,oe);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case U:return A=A.get(K.key===null?_:K.key)||null,R(P,A,K,oe);case $:return A=A.get(K.key===null?_:K.key)||null,j(P,A,K,oe);case Y:var se=K._init;return q(A,P,_,se(K._payload),oe)}if(Gr(K)||O(K))return A=A.get(_)||null,V(P,A,K,oe,null);Zi(P,K)}return null}function ne(A,P,_,K){for(var oe=null,se=null,le=P,de=P=0,We=null;le!==null&&de<_.length;de++){le.index>de?(We=le,le=null):We=le.sibling;var Ce=B(A,le,_[de],K);if(Ce===null){le===null&&(le=We);break}e&&le&&Ce.alternate===null&&t(A,le),P=u(Ce,P,de),se===null?oe=Ce:se.sibling=Ce,se=Ce,le=We}if(de===_.length)return n(A,le),Me&&Un(A,de),oe;if(le===null){for(;de<_.length;de++)le=H(A,_[de],K),le!==null&&(P=u(le,P,de),se===null?oe=le:se.sibling=le,se=le);return Me&&Un(A,de),oe}for(le=o(A,le);de<_.length;de++)We=q(le,A,de,_[de],K),We!==null&&(e&&We.alternate!==null&&le.delete(We.key===null?de:We.key),P=u(We,P,de),se===null?oe=We:se.sibling=We,se=We);return e&&le.forEach(function(Tn){return t(A,Tn)}),Me&&Un(A,de),oe}function re(A,P,_,K){var oe=O(_);if(typeof oe!="function")throw Error(a(150));if(_=oe.call(_),_==null)throw Error(a(151));for(var se=oe=null,le=P,de=P=0,We=null,Ce=_.next();le!==null&&!Ce.done;de++,Ce=_.next()){le.index>de?(We=le,le=null):We=le.sibling;var Tn=B(A,le,Ce.value,K);if(Tn===null){le===null&&(le=We);break}e&&le&&Tn.alternate===null&&t(A,le),P=u(Tn,P,de),se===null?oe=Tn:se.sibling=Tn,se=Tn,le=We}if(Ce.done)return n(A,le),Me&&Un(A,de),oe;if(le===null){for(;!Ce.done;de++,Ce=_.next())Ce=H(A,Ce.value,K),Ce!==null&&(P=u(Ce,P,de),se===null?oe=Ce:se.sibling=Ce,se=Ce);return Me&&Un(A,de),oe}for(le=o(A,le);!Ce.done;de++,Ce=_.next())Ce=q(le,A,de,Ce.value,K),Ce!==null&&(e&&Ce.alternate!==null&&le.delete(Ce.key===null?de:Ce.key),P=u(Ce,P,de),se===null?oe=Ce:se.sibling=Ce,se=Ce);return e&&le.forEach(function(s2){return t(A,s2)}),Me&&Un(A,de),oe}function De(A,P,_,K){if(typeof _=="object"&&_!==null&&_.type===W&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case U:e:{for(var oe=_.key,se=P;se!==null;){if(se.key===oe){if(oe=_.type,oe===W){if(se.tag===7){n(A,se.sibling),P=s(se,_.props.children),P.return=A,A=P;break e}}else if(se.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===Y&&Am(oe)===se.type){n(A,se.sibling),P=s(se,_.props),P.ref=yo(A,se,_),P.return=A,A=P;break e}n(A,se);break}else t(A,se);se=se.sibling}_.type===W?(P=Yn(_.props.children,A.mode,K,_.key),P.return=A,A=P):(K=Ca(_.type,_.key,_.props,null,A.mode,K),K.ref=yo(A,P,_),K.return=A,A=K)}return f(A);case $:e:{for(se=_.key;P!==null;){if(P.key===se)if(P.tag===4&&P.stateNode.containerInfo===_.containerInfo&&P.stateNode.implementation===_.implementation){n(A,P.sibling),P=s(P,_.children||[]),P.return=A,A=P;break e}else{n(A,P);break}else t(A,P);P=P.sibling}P=Ru(_,A.mode,K),P.return=A,A=P}return f(A);case Y:return se=_._init,De(A,P,se(_._payload),K)}if(Gr(_))return ne(A,P,_,K);if(O(_))return re(A,P,_,K);Zi(A,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,P!==null&&P.tag===6?(n(A,P.sibling),P=s(P,_),P.return=A,A=P):(n(A,P),P=ku(_,A.mode,K),P.return=A,A=P),f(A)):n(A,P)}return De}var Sr=Mm(!0),_m=Mm(!1),qi=wn(null),ea=null,Er=null,Ol=null;function Dl(){Ol=Er=ea=null}function Fl(e){var t=qi.current;Ae(qi),e._currentValue=t}function Ll(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function kr(e,t){ea=e,Ol=Er=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(it=!0),e.firstContext=null)}function wt(e){var t=e._currentValue;if(Ol!==e)if(e={context:e,memoizedValue:t,next:null},Er===null){if(ea===null)throw Error(a(308));Er=e,ea.dependencies={lanes:0,firstContext:e}}else Er=Er.next=e;return t}var Bn=null;function zl(e){Bn===null?Bn=[e]:Bn.push(e)}function jm(e,t,n,o){var s=t.interleaved;return s===null?(n.next=n,zl(t)):(n.next=s.next,s.next=n),t.interleaved=n,qt(e,o)}function qt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var bn=!1;function Ul(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Im(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function en(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Cn(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,be&2){var s=o.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),o.pending=t,qt(e,n)}return s=o.interleaved,s===null?(t.next=t,zl(o)):(t.next=s.next,s.next=t),o.interleaved=t,qt(e,n)}function ta(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,el(e,n)}}function Om(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var s=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var f={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?s=u=f:u=u.next=f,n=n.next}while(n!==null);u===null?s=u=t:u=u.next=t}else s=u=t;n={baseState:o.baseState,firstBaseUpdate:s,lastBaseUpdate:u,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function na(e,t,n,o){var s=e.updateQueue;bn=!1;var u=s.firstBaseUpdate,f=s.lastBaseUpdate,b=s.shared.pending;if(b!==null){s.shared.pending=null;var R=b,j=R.next;R.next=null,f===null?u=j:f.next=j,f=R;var V=e.alternate;V!==null&&(V=V.updateQueue,b=V.lastBaseUpdate,b!==f&&(b===null?V.firstBaseUpdate=j:b.next=j,V.lastBaseUpdate=R))}if(u!==null){var H=s.baseState;f=0,V=j=R=null,b=u;do{var B=b.lane,q=b.eventTime;if((o&B)===B){V!==null&&(V=V.next={eventTime:q,lane:0,tag:b.tag,payload:b.payload,callback:b.callback,next:null});e:{var ne=e,re=b;switch(B=t,q=n,re.tag){case 1:if(ne=re.payload,typeof ne=="function"){H=ne.call(q,H,B);break e}H=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=re.payload,B=typeof ne=="function"?ne.call(q,H,B):ne,B==null)break e;H=Q({},H,B);break e;case 2:bn=!0}}b.callback!==null&&b.lane!==0&&(e.flags|=64,B=s.effects,B===null?s.effects=[b]:B.push(b))}else q={eventTime:q,lane:B,tag:b.tag,payload:b.payload,callback:b.callback,next:null},V===null?(j=V=q,R=H):V=V.next=q,f|=B;if(b=b.next,b===null){if(b=s.shared.pending,b===null)break;B=b,b=B.next,B.next=null,s.lastBaseUpdate=B,s.shared.pending=null}}while(!0);if(V===null&&(R=H),s.baseState=R,s.firstBaseUpdate=j,s.lastBaseUpdate=V,t=s.shared.interleaved,t!==null){s=t;do f|=s.lane,s=s.next;while(s!==t)}else u===null&&(s.shared.lanes=0);Hn|=f,e.lanes=f,e.memoizedState=H}}function Dm(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],s=o.callback;if(s!==null){if(o.callback=null,o=n,typeof s!="function")throw Error(a(191,s));s.call(o)}}}var xo={},zt=wn(xo),bo=wn(xo),Co=wn(xo);function Vn(e){if(e===xo)throw Error(a(174));return e}function Bl(e,t){switch(Ne(Co,t),Ne(bo,e),Ne(zt,xo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Vs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Vs(t,e)}Ae(zt),Ne(zt,t)}function Rr(){Ae(zt),Ae(bo),Ae(Co)}function Fm(e){Vn(Co.current);var t=Vn(zt.current),n=Vs(t,e.type);t!==n&&(Ne(bo,e),Ne(zt,n))}function Vl(e){bo.current===e&&(Ae(zt),Ae(bo))}var _e=wn(0);function ra(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Wl=[];function Hl(){for(var e=0;e<Wl.length;e++)Wl[e]._workInProgressVersionPrimary=null;Wl.length=0}var oa=z.ReactCurrentDispatcher,$l=z.ReactCurrentBatchConfig,Wn=0,je=null,ze=null,Be=null,ia=!1,So=!1,Eo=0,Tb=0;function Qe(){throw Error(a(321))}function Kl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!kt(e[n],t[n]))return!1;return!0}function Gl(e,t,n,o,s,u){if(Wn=u,je=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=e===null||e.memoizedState===null?jb:Ib,e=n(o,s),So){u=0;do{if(So=!1,Eo=0,25<=u)throw Error(a(301));u+=1,Be=ze=null,t.updateQueue=null,oa.current=Ob,e=n(o,s)}while(So)}if(oa.current=la,t=ze!==null&&ze.next!==null,Wn=0,Be=ze=je=null,ia=!1,t)throw Error(a(300));return e}function Yl(){var e=Eo!==0;return Eo=0,e}function Ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Be===null?je.memoizedState=Be=e:Be=Be.next=e,Be}function yt(){if(ze===null){var e=je.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=Be===null?je.memoizedState:Be.next;if(t!==null)Be=t,ze=e;else{if(e===null)throw Error(a(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Be===null?je.memoizedState=Be=e:Be=Be.next=e}return Be}function ko(e,t){return typeof t=="function"?t(e):t}function Ql(e){var t=yt(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var o=ze,s=o.baseQueue,u=n.pending;if(u!==null){if(s!==null){var f=s.next;s.next=u.next,u.next=f}o.baseQueue=s=u,n.pending=null}if(s!==null){u=s.next,o=o.baseState;var b=f=null,R=null,j=u;do{var V=j.lane;if((Wn&V)===V)R!==null&&(R=R.next={lane:0,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),o=j.hasEagerState?j.eagerState:e(o,j.action);else{var H={lane:V,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null};R===null?(b=R=H,f=o):R=R.next=H,je.lanes|=V,Hn|=V}j=j.next}while(j!==null&&j!==u);R===null?f=o:R.next=b,kt(o,t.memoizedState)||(it=!0),t.memoizedState=o,t.baseState=f,t.baseQueue=R,n.lastRenderedState=o}if(e=n.interleaved,e!==null){s=e;do u=s.lane,je.lanes|=u,Hn|=u,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Xl(e){var t=yt(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var o=n.dispatch,s=n.pending,u=t.memoizedState;if(s!==null){n.pending=null;var f=s=s.next;do u=e(u,f.action),f=f.next;while(f!==s);kt(u,t.memoizedState)||(it=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,o]}function Lm(){}function zm(e,t){var n=je,o=yt(),s=t(),u=!kt(o.memoizedState,s);if(u&&(o.memoizedState=s,it=!0),o=o.queue,Jl(Vm.bind(null,n,o,e),[e]),o.getSnapshot!==t||u||Be!==null&&Be.memoizedState.tag&1){if(n.flags|=2048,Ro(9,Bm.bind(null,n,o,s,t),void 0,null),Ve===null)throw Error(a(349));Wn&30||Um(n,t,s)}return s}function Um(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=je.updateQueue,t===null?(t={lastEffect:null,stores:null},je.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Bm(e,t,n,o){t.value=n,t.getSnapshot=o,Wm(t)&&Hm(e)}function Vm(e,t,n){return n(function(){Wm(t)&&Hm(e)})}function Wm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!kt(e,n)}catch{return!0}}function Hm(e){var t=qt(e,1);t!==null&&At(t,e,1,-1)}function $m(e){var t=Ut();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:e},t.queue=e,e=e.dispatch=_b.bind(null,je,e),[t.memoizedState,e]}function Ro(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},t=je.updateQueue,t===null?(t={lastEffect:null,stores:null},je.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e)),e}function Km(){return yt().memoizedState}function aa(e,t,n,o){var s=Ut();je.flags|=e,s.memoizedState=Ro(1|t,n,void 0,o===void 0?null:o)}function sa(e,t,n,o){var s=yt();o=o===void 0?null:o;var u=void 0;if(ze!==null){var f=ze.memoizedState;if(u=f.destroy,o!==null&&Kl(o,f.deps)){s.memoizedState=Ro(t,n,u,o);return}}je.flags|=e,s.memoizedState=Ro(1|t,n,u,o)}function Gm(e,t){return aa(8390656,8,e,t)}function Jl(e,t){return sa(2048,8,e,t)}function Ym(e,t){return sa(4,2,e,t)}function Qm(e,t){return sa(4,4,e,t)}function Xm(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Jm(e,t,n){return n=n!=null?n.concat([e]):null,sa(4,4,Xm.bind(null,t,e),n)}function Zl(){}function Zm(e,t){var n=yt();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&Kl(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function qm(e,t){var n=yt();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&Kl(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function eh(e,t,n){return Wn&21?(kt(n,t)||(n=Ap(),je.lanes|=n,Hn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,it=!0),e.memoizedState=n)}function Ab(e,t){var n=ke;ke=n!==0&&4>n?n:4,e(!0);var o=$l.transition;$l.transition={};try{e(!1),t()}finally{ke=n,$l.transition=o}}function th(){return yt().memoizedState}function Mb(e,t,n){var o=Rn(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},nh(e))rh(t,n);else if(n=jm(e,t,n,o),n!==null){var s=tt();At(n,e,o,s),oh(n,t,o)}}function _b(e,t,n){var o=Rn(e),s={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(nh(e))rh(t,s);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var f=t.lastRenderedState,b=u(f,n);if(s.hasEagerState=!0,s.eagerState=b,kt(b,f)){var R=t.interleaved;R===null?(s.next=s,zl(t)):(s.next=R.next,R.next=s),t.interleaved=s;return}}catch{}finally{}n=jm(e,t,s,o),n!==null&&(s=tt(),At(n,e,o,s),oh(n,t,o))}}function nh(e){var t=e.alternate;return e===je||t!==null&&t===je}function rh(e,t){So=ia=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function oh(e,t,n){if(n&4194240){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,el(e,n)}}var la={readContext:wt,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useInsertionEffect:Qe,useLayoutEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useMutableSource:Qe,useSyncExternalStore:Qe,useId:Qe,unstable_isNewReconciler:!1},jb={readContext:wt,useCallback:function(e,t){return Ut().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:Gm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,aa(4194308,4,Xm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return aa(4194308,4,e,t)},useInsertionEffect:function(e,t){return aa(4,2,e,t)},useMemo:function(e,t){var n=Ut();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=Ut();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=Mb.bind(null,je,e),[o.memoizedState,e]},useRef:function(e){var t=Ut();return e={current:e},t.memoizedState=e},useState:$m,useDebugValue:Zl,useDeferredValue:function(e){return Ut().memoizedState=e},useTransition:function(){var e=$m(!1),t=e[0];return e=Ab.bind(null,e[1]),Ut().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=je,s=Ut();if(Me){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Ve===null)throw Error(a(349));Wn&30||Um(o,t,n)}s.memoizedState=n;var u={value:n,getSnapshot:t};return s.queue=u,Gm(Vm.bind(null,o,u,e),[e]),o.flags|=2048,Ro(9,Bm.bind(null,o,u,n,t),void 0,null),n},useId:function(){var e=Ut(),t=Ve.identifierPrefix;if(Me){var n=Zt,o=Jt;n=(o&~(1<<32-Et(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=Eo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Tb++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ib={readContext:wt,useCallback:Zm,useContext:wt,useEffect:Jl,useImperativeHandle:Jm,useInsertionEffect:Ym,useLayoutEffect:Qm,useMemo:qm,useReducer:Ql,useRef:Km,useState:function(){return Ql(ko)},useDebugValue:Zl,useDeferredValue:function(e){var t=yt();return eh(t,ze.memoizedState,e)},useTransition:function(){var e=Ql(ko)[0],t=yt().memoizedState;return[e,t]},useMutableSource:Lm,useSyncExternalStore:zm,useId:th,unstable_isNewReconciler:!1},Ob={readContext:wt,useCallback:Zm,useContext:wt,useEffect:Jl,useImperativeHandle:Jm,useInsertionEffect:Ym,useLayoutEffect:Qm,useMemo:qm,useReducer:Xl,useRef:Km,useState:function(){return Xl(ko)},useDebugValue:Zl,useDeferredValue:function(e){var t=yt();return ze===null?t.memoizedState=e:eh(t,ze.memoizedState,e)},useTransition:function(){var e=Xl(ko)[0],t=yt().memoizedState;return[e,t]},useMutableSource:Lm,useSyncExternalStore:zm,useId:th,unstable_isNewReconciler:!1};function Nt(e,t){if(e&&e.defaultProps){t=Q({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ql(e,t,n,o){t=e.memoizedState,n=n(o,t),n=n==null?t:Q({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ua={isMounted:function(e){return(e=e._reactInternals)?Dn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=tt(),s=Rn(e),u=en(o,s);u.payload=t,n!=null&&(u.callback=n),t=Cn(e,u,s),t!==null&&(At(t,e,s,o),ta(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=tt(),s=Rn(e),u=en(o,s);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Cn(e,u,s),t!==null&&(At(t,e,s,o),ta(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tt(),o=Rn(e),s=en(n,o);s.tag=2,t!=null&&(s.callback=t),t=Cn(e,s,o),t!==null&&(At(t,e,o,n),ta(t,e,o))}};function ih(e,t,n,o,s,u,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,u,f):t.prototype&&t.prototype.isPureReactComponent?!fo(n,o)||!fo(s,u):!0}function ah(e,t,n){var o=!1,s=yn,u=t.contextType;return typeof u=="object"&&u!==null?u=wt(u):(s=ot(t)?Ln:Ye.current,o=t.contextTypes,u=(o=o!=null)?yr(e,s):yn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ua,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=u),t}function sh(e,t,n,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&ua.enqueueReplaceState(t,t.state,null)}function eu(e,t,n,o){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},Ul(e);var u=t.contextType;typeof u=="object"&&u!==null?s.context=wt(u):(u=ot(t)?Ln:Ye.current,s.context=yr(e,u)),s.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(ql(e,t,u,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&ua.enqueueReplaceState(s,s.state,null),na(e,n,s,o),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Nr(e,t){try{var n="",o=t;do n+=ye(o),o=o.return;while(o);var s=n}catch(u){s=`
Error generating stack: `+u.message+`
`+u.stack}return{value:e,source:t,stack:s,digest:null}}function tu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function nu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Db=typeof WeakMap=="function"?WeakMap:Map;function lh(e,t,n){n=en(-1,n),n.tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){ga||(ga=!0,vu=o),nu(e,t)},n}function uh(e,t,n){n=en(-1,n),n.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var s=t.value;n.payload=function(){return o(s)},n.callback=function(){nu(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){nu(e,t),typeof o!="function"&&(En===null?En=new Set([this]):En.add(this));var f=t.stack;this.componentDidCatch(t.value,{componentStack:f!==null?f:""})}),n}function ch(e,t,n){var o=e.pingCache;if(o===null){o=e.pingCache=new Db;var s=new Set;o.set(t,s)}else s=o.get(t),s===void 0&&(s=new Set,o.set(t,s));s.has(n)||(s.add(n),e=Xb.bind(null,e,t,n),t.then(e,e))}function dh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function fh(e,t,n,o,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=en(-1,1),t.tag=2,Cn(n,t,1))),n.lanes|=1),e)}var Fb=z.ReactCurrentOwner,it=!1;function et(e,t,n,o){t.child=e===null?_m(t,null,n,o):Sr(t,e.child,n,o)}function ph(e,t,n,o,s){n=n.render;var u=t.ref;return kr(t,s),o=Gl(e,t,n,o,u,s),n=Yl(),e!==null&&!it?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,tn(e,t,s)):(Me&&n&&Al(t),t.flags|=1,et(e,t,o,s),t.child)}function mh(e,t,n,o,s){if(e===null){var u=n.type;return typeof u=="function"&&!Eu(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,hh(e,t,u,o,s)):(e=Ca(n.type,null,o,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!(e.lanes&s)){var f=u.memoizedProps;if(n=n.compare,n=n!==null?n:fo,n(f,o)&&e.ref===t.ref)return tn(e,t,s)}return t.flags|=1,e=Pn(u,o),e.ref=t.ref,e.return=t,t.child=e}function hh(e,t,n,o,s){if(e!==null){var u=e.memoizedProps;if(fo(u,o)&&e.ref===t.ref)if(it=!1,t.pendingProps=o=u,(e.lanes&s)!==0)e.flags&131072&&(it=!0);else return t.lanes=e.lanes,tn(e,t,s)}return ru(e,t,n,o,s)}function gh(e,t,n){var o=t.pendingProps,s=o.children,u=e!==null?e.memoizedState:null;if(o.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ne(Tr,mt),mt|=n;else{if(!(n&1073741824))return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ne(Tr,mt),mt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=u!==null?u.baseLanes:n,Ne(Tr,mt),mt|=o}else u!==null?(o=u.baseLanes|n,t.memoizedState=null):o=n,Ne(Tr,mt),mt|=o;return et(e,t,s,n),t.child}function vh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ru(e,t,n,o,s){var u=ot(n)?Ln:Ye.current;return u=yr(t,u),kr(t,s),n=Gl(e,t,n,o,u,s),o=Yl(),e!==null&&!it?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,tn(e,t,s)):(Me&&o&&Al(t),t.flags|=1,et(e,t,n,s),t.child)}function wh(e,t,n,o,s){if(ot(n)){var u=!0;Gi(t)}else u=!1;if(kr(t,s),t.stateNode===null)da(e,t),ah(t,n,o),eu(t,n,o,s),o=!0;else if(e===null){var f=t.stateNode,b=t.memoizedProps;f.props=b;var R=f.context,j=n.contextType;typeof j=="object"&&j!==null?j=wt(j):(j=ot(n)?Ln:Ye.current,j=yr(t,j));var V=n.getDerivedStateFromProps,H=typeof V=="function"||typeof f.getSnapshotBeforeUpdate=="function";H||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b!==o||R!==j)&&sh(t,f,o,j),bn=!1;var B=t.memoizedState;f.state=B,na(t,o,f,s),R=t.memoizedState,b!==o||B!==R||rt.current||bn?(typeof V=="function"&&(ql(t,n,V,o),R=t.memoizedState),(b=bn||ih(t,n,b,o,B,R,j))?(H||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=R),f.props=o,f.state=R,f.context=j,o=b):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{f=t.stateNode,Im(e,t),b=t.memoizedProps,j=t.type===t.elementType?b:Nt(t.type,b),f.props=j,H=t.pendingProps,B=f.context,R=n.contextType,typeof R=="object"&&R!==null?R=wt(R):(R=ot(n)?Ln:Ye.current,R=yr(t,R));var q=n.getDerivedStateFromProps;(V=typeof q=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b!==H||B!==R)&&sh(t,f,o,R),bn=!1,B=t.memoizedState,f.state=B,na(t,o,f,s);var ne=t.memoizedState;b!==H||B!==ne||rt.current||bn?(typeof q=="function"&&(ql(t,n,q,o),ne=t.memoizedState),(j=bn||ih(t,n,j,o,B,ne,R)||!1)?(V||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(o,ne,R),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(o,ne,R)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=ne),f.props=o,f.state=ne,f.context=R,o=j):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),o=!1)}return ou(e,t,n,o,u,s)}function ou(e,t,n,o,s,u){vh(e,t);var f=(t.flags&128)!==0;if(!o&&!f)return s&&Sm(t,n,!1),tn(e,t,u);o=t.stateNode,Fb.current=t;var b=f&&typeof n.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&f?(t.child=Sr(t,e.child,null,u),t.child=Sr(t,null,b,u)):et(e,t,b,u),t.memoizedState=o.state,s&&Sm(t,n,!0),t.child}function yh(e){var t=e.stateNode;t.pendingContext?bm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bm(e,t.context,!1),Bl(e,t.containerInfo)}function xh(e,t,n,o,s){return Cr(),Il(s),t.flags|=256,et(e,t,n,o),t.child}var iu={dehydrated:null,treeContext:null,retryLane:0};function au(e){return{baseLanes:e,cachePool:null,transitions:null}}function bh(e,t,n){var o=t.pendingProps,s=_e.current,u=!1,f=(t.flags&128)!==0,b;if((b=f)||(b=e!==null&&e.memoizedState===null?!1:(s&2)!==0),b?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),Ne(_e,s&1),e===null)return jl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(f=o.children,e=o.fallback,u?(o=t.mode,u=t.child,f={mode:"hidden",children:f},!(o&1)&&u!==null?(u.childLanes=0,u.pendingProps=f):u=Sa(f,o,0,null),e=Yn(e,o,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=au(n),t.memoizedState=iu,e):su(t,f));if(s=e.memoizedState,s!==null&&(b=s.dehydrated,b!==null))return Lb(e,t,f,o,b,s,n);if(u){u=o.fallback,f=t.mode,s=e.child,b=s.sibling;var R={mode:"hidden",children:o.children};return!(f&1)&&t.child!==s?(o=t.child,o.childLanes=0,o.pendingProps=R,t.deletions=null):(o=Pn(s,R),o.subtreeFlags=s.subtreeFlags&14680064),b!==null?u=Pn(b,u):(u=Yn(u,f,n,null),u.flags|=2),u.return=t,o.return=t,o.sibling=u,t.child=o,o=u,u=t.child,f=e.child.memoizedState,f=f===null?au(n):{baseLanes:f.baseLanes|n,cachePool:null,transitions:f.transitions},u.memoizedState=f,u.childLanes=e.childLanes&~n,t.memoizedState=iu,o}return u=e.child,e=u.sibling,o=Pn(u,{mode:"visible",children:o.children}),!(t.mode&1)&&(o.lanes=n),o.return=t,o.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function su(e,t){return t=Sa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ca(e,t,n,o){return o!==null&&Il(o),Sr(t,e.child,null,n),e=su(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lb(e,t,n,o,s,u,f){if(n)return t.flags&256?(t.flags&=-257,o=tu(Error(a(422))),ca(e,t,f,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=o.fallback,s=t.mode,o=Sa({mode:"visible",children:o.children},s,0,null),u=Yn(u,s,f,null),u.flags|=2,o.return=t,u.return=t,o.sibling=u,t.child=o,t.mode&1&&Sr(t,e.child,null,f),t.child.memoizedState=au(f),t.memoizedState=iu,u);if(!(t.mode&1))return ca(e,t,f,null);if(s.data==="$!"){if(o=s.nextSibling&&s.nextSibling.dataset,o)var b=o.dgst;return o=b,u=Error(a(419)),o=tu(u,o,void 0),ca(e,t,f,o)}if(b=(f&e.childLanes)!==0,it||b){if(o=Ve,o!==null){switch(f&-f){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(o.suspendedLanes|f)?0:s,s!==0&&s!==u.retryLane&&(u.retryLane=s,qt(e,s),At(o,e,s,-1))}return Su(),o=tu(Error(a(421))),ca(e,t,f,o)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=Jb.bind(null,e),s._reactRetry=t,null):(e=u.treeContext,pt=vn(s.nextSibling),ft=t,Me=!0,Rt=null,e!==null&&(gt[vt++]=Jt,gt[vt++]=Zt,gt[vt++]=zn,Jt=e.id,Zt=e.overflow,zn=t),t=su(t,o.children),t.flags|=4096,t)}function Ch(e,t,n){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Ll(e.return,t,n)}function lu(e,t,n,o,s){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:s}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=o,u.tail=n,u.tailMode=s)}function Sh(e,t,n){var o=t.pendingProps,s=o.revealOrder,u=o.tail;if(et(e,t,o.children,n),o=_e.current,o&2)o=o&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ch(e,n,t);else if(e.tag===19)Ch(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(Ne(_e,o),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&ra(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),lu(t,!1,s,n,u);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&ra(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}lu(t,!0,n,null,u);break;case"together":lu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function da(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Hn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,n=Pn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Pn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function zb(e,t,n){switch(t.tag){case 3:yh(t),Cr();break;case 5:Fm(t);break;case 1:ot(t.type)&&Gi(t);break;case 4:Bl(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,s=t.memoizedProps.value;Ne(qi,o._currentValue),o._currentValue=s;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(Ne(_e,_e.current&1),t.flags|=128,null):n&t.child.childLanes?bh(e,t,n):(Ne(_e,_e.current&1),e=tn(e,t,n),e!==null?e.sibling:null);Ne(_e,_e.current&1);break;case 19:if(o=(n&t.childLanes)!==0,e.flags&128){if(o)return Sh(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Ne(_e,_e.current),o)break;return null;case 22:case 23:return t.lanes=0,gh(e,t,n)}return tn(e,t,n)}var Eh,uu,kh,Rh;Eh=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},uu=function(){},kh=function(e,t,n,o){var s=e.memoizedProps;if(s!==o){e=t.stateNode,Vn(zt.current);var u=null;switch(n){case"input":s=Ls(e,s),o=Ls(e,o),u=[];break;case"select":s=Q({},s,{value:void 0}),o=Q({},o,{value:void 0}),u=[];break;case"textarea":s=Bs(e,s),o=Bs(e,o),u=[];break;default:typeof s.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=Hi)}Ws(n,o);var f;n=null;for(j in s)if(!o.hasOwnProperty(j)&&s.hasOwnProperty(j)&&s[j]!=null)if(j==="style"){var b=s[j];for(f in b)b.hasOwnProperty(f)&&(n||(n={}),n[f]="")}else j!=="dangerouslySetInnerHTML"&&j!=="children"&&j!=="suppressContentEditableWarning"&&j!=="suppressHydrationWarning"&&j!=="autoFocus"&&(c.hasOwnProperty(j)?u||(u=[]):(u=u||[]).push(j,null));for(j in o){var R=o[j];if(b=s?.[j],o.hasOwnProperty(j)&&R!==b&&(R!=null||b!=null))if(j==="style")if(b){for(f in b)!b.hasOwnProperty(f)||R&&R.hasOwnProperty(f)||(n||(n={}),n[f]="");for(f in R)R.hasOwnProperty(f)&&b[f]!==R[f]&&(n||(n={}),n[f]=R[f])}else n||(u||(u=[]),u.push(j,n)),n=R;else j==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,b=b?b.__html:void 0,R!=null&&b!==R&&(u=u||[]).push(j,R)):j==="children"?typeof R!="string"&&typeof R!="number"||(u=u||[]).push(j,""+R):j!=="suppressContentEditableWarning"&&j!=="suppressHydrationWarning"&&(c.hasOwnProperty(j)?(R!=null&&j==="onScroll"&&Te("scroll",e),u||b===R||(u=[])):(u=u||[]).push(j,R))}n&&(u=u||[]).push("style",n);var j=u;(t.updateQueue=j)&&(t.flags|=4)}},Rh=function(e,t,n,o){n!==o&&(t.flags|=4)};function No(e,t){if(!Me)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,o=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,o|=s.subtreeFlags&14680064,o|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,o|=s.subtreeFlags,o|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=o,e.childLanes=n,t}function Ub(e,t,n){var o=t.pendingProps;switch(Ml(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return ot(t.type)&&Ki(),Xe(t),null;case 3:return o=t.stateNode,Rr(),Ae(rt),Ae(Ye),Hl(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Ji(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Rt!==null&&(xu(Rt),Rt=null))),uu(e,t),Xe(t),null;case 5:Vl(t);var s=Vn(Co.current);if(n=t.type,e!==null&&t.stateNode!=null)kh(e,t,n,o,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(a(166));return Xe(t),null}if(e=Vn(zt.current),Ji(t)){o=t.stateNode,n=t.type;var u=t.memoizedProps;switch(o[Lt]=t,o[vo]=u,e=(t.mode&1)!==0,n){case"dialog":Te("cancel",o),Te("close",o);break;case"iframe":case"object":case"embed":Te("load",o);break;case"video":case"audio":for(s=0;s<mo.length;s++)Te(mo[s],o);break;case"source":Te("error",o);break;case"img":case"image":case"link":Te("error",o),Te("load",o);break;case"details":Te("toggle",o);break;case"input":ap(o,u),Te("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!u.multiple},Te("invalid",o);break;case"textarea":up(o,u),Te("invalid",o)}Ws(n,u),s=null;for(var f in u)if(u.hasOwnProperty(f)){var b=u[f];f==="children"?typeof b=="string"?o.textContent!==b&&(u.suppressHydrationWarning!==!0&&Wi(o.textContent,b,e),s=["children",b]):typeof b=="number"&&o.textContent!==""+b&&(u.suppressHydrationWarning!==!0&&Wi(o.textContent,b,e),s=["children",""+b]):c.hasOwnProperty(f)&&b!=null&&f==="onScroll"&&Te("scroll",o)}switch(n){case"input":ar(o),lp(o,u,!0);break;case"textarea":ar(o),dp(o);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(o.onclick=Hi)}o=s,t.updateQueue=o,o!==null&&(t.flags|=4)}else{f=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=fp(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=f.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=f.createElement(n,{is:o.is}):(e=f.createElement(n),n==="select"&&(f=e,o.multiple?f.multiple=!0:o.size&&(f.size=o.size))):e=f.createElementNS(e,n),e[Lt]=t,e[vo]=o,Eh(e,t,!1,!1),t.stateNode=e;e:{switch(f=Hs(n,o),n){case"dialog":Te("cancel",e),Te("close",e),s=o;break;case"iframe":case"object":case"embed":Te("load",e),s=o;break;case"video":case"audio":for(s=0;s<mo.length;s++)Te(mo[s],e);s=o;break;case"source":Te("error",e),s=o;break;case"img":case"image":case"link":Te("error",e),Te("load",e),s=o;break;case"details":Te("toggle",e),s=o;break;case"input":ap(e,o),s=Ls(e,o),Te("invalid",e);break;case"option":s=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},s=Q({},o,{value:void 0}),Te("invalid",e);break;case"textarea":up(e,o),s=Bs(e,o),Te("invalid",e);break;default:s=o}Ws(n,s),b=s;for(u in b)if(b.hasOwnProperty(u)){var R=b[u];u==="style"?hp(e,R):u==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,R!=null&&pp(e,R)):u==="children"?typeof R=="string"?(n!=="textarea"||R!=="")&&Yr(e,R):typeof R=="number"&&Yr(e,""+R):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(c.hasOwnProperty(u)?R!=null&&u==="onScroll"&&Te("scroll",e):R!=null&&F(e,u,R,f))}switch(n){case"input":ar(e),lp(e,o,!1);break;case"textarea":ar(e),dp(e);break;case"option":o.value!=null&&e.setAttribute("value",""+xe(o.value));break;case"select":e.multiple=!!o.multiple,u=o.value,u!=null?sr(e,!!o.multiple,u,!1):o.defaultValue!=null&&sr(e,!!o.multiple,o.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Hi)}switch(n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Xe(t),null;case 6:if(e&&t.stateNode!=null)Rh(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(a(166));if(n=Vn(Co.current),Vn(zt.current),Ji(t)){if(o=t.stateNode,n=t.memoizedProps,o[Lt]=t,(u=o.nodeValue!==n)&&(e=ft,e!==null))switch(e.tag){case 3:Wi(o.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Wi(o.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[Lt]=t,t.stateNode=o}return Xe(t),null;case 13:if(Ae(_e),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Me&&pt!==null&&t.mode&1&&!(t.flags&128))Tm(),Cr(),t.flags|=98560,u=!1;else if(u=Ji(t),o!==null&&o.dehydrated!==null){if(e===null){if(!u)throw Error(a(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(a(317));u[Lt]=t}else Cr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Xe(t),u=!1}else Rt!==null&&(xu(Rt),Rt=null),u=!0;if(!u)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,t.mode&1&&(e===null||_e.current&1?Ue===0&&(Ue=3):Su())),t.updateQueue!==null&&(t.flags|=4),Xe(t),null);case 4:return Rr(),uu(e,t),e===null&&ho(t.stateNode.containerInfo),Xe(t),null;case 10:return Fl(t.type._context),Xe(t),null;case 17:return ot(t.type)&&Ki(),Xe(t),null;case 19:if(Ae(_e),u=t.memoizedState,u===null)return Xe(t),null;if(o=(t.flags&128)!==0,f=u.rendering,f===null)if(o)No(u,!1);else{if(Ue!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(f=ra(e),f!==null){for(t.flags|=128,No(u,!1),o=f.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=n,n=t.child;n!==null;)u=n,e=o,u.flags&=14680066,f=u.alternate,f===null?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=f.childLanes,u.lanes=f.lanes,u.child=f.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=f.memoizedProps,u.memoizedState=f.memoizedState,u.updateQueue=f.updateQueue,u.type=f.type,e=f.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ne(_e,_e.current&1|2),t.child}e=e.sibling}u.tail!==null&&Oe()>Ar&&(t.flags|=128,o=!0,No(u,!1),t.lanes=4194304)}else{if(!o)if(e=ra(f),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),No(u,!0),u.tail===null&&u.tailMode==="hidden"&&!f.alternate&&!Me)return Xe(t),null}else 2*Oe()-u.renderingStartTime>Ar&&n!==1073741824&&(t.flags|=128,o=!0,No(u,!1),t.lanes=4194304);u.isBackwards?(f.sibling=t.child,t.child=f):(n=u.last,n!==null?n.sibling=f:t.child=f,u.last=f)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Oe(),t.sibling=null,n=_e.current,Ne(_e,o?n&1|2:n&1),t):(Xe(t),null);case 22:case 23:return Cu(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?mt&1073741824&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),null;case 24:return null;case 25:return null}throw Error(a(156,t.tag))}function Bb(e,t){switch(Ml(t),t.tag){case 1:return ot(t.type)&&Ki(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rr(),Ae(rt),Ae(Ye),Hl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Vl(t),null;case 13:if(Ae(_e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Cr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(_e),null;case 4:return Rr(),null;case 10:return Fl(t.type._context),null;case 22:case 23:return Cu(),null;case 24:return null;default:return null}}var fa=!1,Je=!1,Vb=typeof WeakSet=="function"?WeakSet:Set,te=null;function Pr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){Ie(e,t,o)}else n.current=null}function cu(e,t,n){try{n()}catch(o){Ie(e,t,o)}}var Nh=!1;function Wb(e,t){if(Cl=_i,e=im(),ml(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var s=o.anchorOffset,u=o.focusNode;o=o.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var f=0,b=-1,R=-1,j=0,V=0,H=e,B=null;t:for(;;){for(var q;H!==n||s!==0&&H.nodeType!==3||(b=f+s),H!==u||o!==0&&H.nodeType!==3||(R=f+o),H.nodeType===3&&(f+=H.nodeValue.length),(q=H.firstChild)!==null;)B=H,H=q;for(;;){if(H===e)break t;if(B===n&&++j===s&&(b=f),B===u&&++V===o&&(R=f),(q=H.nextSibling)!==null)break;H=B,B=H.parentNode}H=q}n=b===-1||R===-1?null:{start:b,end:R}}else n=null}n=n||{start:0,end:0}}else n=null;for(Sl={focusedElem:e,selectionRange:n},_i=!1,te=t;te!==null;)if(t=te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,te=e;else for(;te!==null;){t=te;try{var ne=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ne!==null){var re=ne.memoizedProps,De=ne.memoizedState,A=t.stateNode,P=A.getSnapshotBeforeUpdate(t.elementType===t.type?re:Nt(t.type,re),De);A.__reactInternalSnapshotBeforeUpdate=P}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(K){Ie(t,t.return,K)}if(e=t.sibling,e!==null){e.return=t.return,te=e;break}te=t.return}return ne=Nh,Nh=!1,ne}function Po(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var s=o=o.next;do{if((s.tag&e)===e){var u=s.destroy;s.destroy=void 0,u!==void 0&&cu(t,n,u)}s=s.next}while(s!==o)}}function pa(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function du(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ph(e){var t=e.alternate;t!==null&&(e.alternate=null,Ph(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Lt],delete t[vo],delete t[Nl],delete t[kb],delete t[Rb])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Th(e){return e.tag===5||e.tag===3||e.tag===4}function Ah(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Th(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function fu(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Hi));else if(o!==4&&(e=e.child,e!==null))for(fu(e,t,n),e=e.sibling;e!==null;)fu(e,t,n),e=e.sibling}function pu(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(pu(e,t,n),e=e.sibling;e!==null;)pu(e,t,n),e=e.sibling}var $e=null,Pt=!1;function Sn(e,t,n){for(n=n.child;n!==null;)Mh(e,t,n),n=n.sibling}function Mh(e,t,n){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(Ri,n)}catch{}switch(n.tag){case 5:Je||Pr(n,t);case 6:var o=$e,s=Pt;$e=null,Sn(e,t,n),$e=o,Pt=s,$e!==null&&(Pt?(e=$e,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):$e.removeChild(n.stateNode));break;case 18:$e!==null&&(Pt?(e=$e,n=n.stateNode,e.nodeType===8?Rl(e.parentNode,n):e.nodeType===1&&Rl(e,n),io(e)):Rl($e,n.stateNode));break;case 4:o=$e,s=Pt,$e=n.stateNode.containerInfo,Pt=!0,Sn(e,t,n),$e=o,Pt=s;break;case 0:case 11:case 14:case 15:if(!Je&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){s=o=o.next;do{var u=s,f=u.destroy;u=u.tag,f!==void 0&&(u&2||u&4)&&cu(n,t,f),s=s.next}while(s!==o)}Sn(e,t,n);break;case 1:if(!Je&&(Pr(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(b){Ie(n,t,b)}Sn(e,t,n);break;case 21:Sn(e,t,n);break;case 22:n.mode&1?(Je=(o=Je)||n.memoizedState!==null,Sn(e,t,n),Je=o):Sn(e,t,n);break;default:Sn(e,t,n)}}function _h(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Vb),t.forEach(function(o){var s=Zb.bind(null,e,o);n.has(o)||(n.add(o),o.then(s,s))})}}function Tt(e,t){var n=t.deletions;if(n!==null)for(var o=0;o<n.length;o++){var s=n[o];try{var u=e,f=t,b=f;e:for(;b!==null;){switch(b.tag){case 5:$e=b.stateNode,Pt=!1;break e;case 3:$e=b.stateNode.containerInfo,Pt=!0;break e;case 4:$e=b.stateNode.containerInfo,Pt=!0;break e}b=b.return}if($e===null)throw Error(a(160));Mh(u,f,s),$e=null,Pt=!1;var R=s.alternate;R!==null&&(R.return=null),s.return=null}catch(j){Ie(s,t,j)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)jh(t,e),t=t.sibling}function jh(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Tt(t,e),Bt(e),o&4){try{Po(3,e,e.return),pa(3,e)}catch(re){Ie(e,e.return,re)}try{Po(5,e,e.return)}catch(re){Ie(e,e.return,re)}}break;case 1:Tt(t,e),Bt(e),o&512&&n!==null&&Pr(n,n.return);break;case 5:if(Tt(t,e),Bt(e),o&512&&n!==null&&Pr(n,n.return),e.flags&32){var s=e.stateNode;try{Yr(s,"")}catch(re){Ie(e,e.return,re)}}if(o&4&&(s=e.stateNode,s!=null)){var u=e.memoizedProps,f=n!==null?n.memoizedProps:u,b=e.type,R=e.updateQueue;if(e.updateQueue=null,R!==null)try{b==="input"&&u.type==="radio"&&u.name!=null&&sp(s,u),Hs(b,f);var j=Hs(b,u);for(f=0;f<R.length;f+=2){var V=R[f],H=R[f+1];V==="style"?hp(s,H):V==="dangerouslySetInnerHTML"?pp(s,H):V==="children"?Yr(s,H):F(s,V,H,j)}switch(b){case"input":zs(s,u);break;case"textarea":cp(s,u);break;case"select":var B=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!u.multiple;var q=u.value;q!=null?sr(s,!!u.multiple,q,!1):B!==!!u.multiple&&(u.defaultValue!=null?sr(s,!!u.multiple,u.defaultValue,!0):sr(s,!!u.multiple,u.multiple?[]:"",!1))}s[vo]=u}catch(re){Ie(e,e.return,re)}}break;case 6:if(Tt(t,e),Bt(e),o&4){if(e.stateNode===null)throw Error(a(162));s=e.stateNode,u=e.memoizedProps;try{s.nodeValue=u}catch(re){Ie(e,e.return,re)}}break;case 3:if(Tt(t,e),Bt(e),o&4&&n!==null&&n.memoizedState.isDehydrated)try{io(t.containerInfo)}catch(re){Ie(e,e.return,re)}break;case 4:Tt(t,e),Bt(e);break;case 13:Tt(t,e),Bt(e),s=e.child,s.flags&8192&&(u=s.memoizedState!==null,s.stateNode.isHidden=u,!u||s.alternate!==null&&s.alternate.memoizedState!==null||(gu=Oe())),o&4&&_h(e);break;case 22:if(V=n!==null&&n.memoizedState!==null,e.mode&1?(Je=(j=Je)||V,Tt(t,e),Je=j):Tt(t,e),Bt(e),o&8192){if(j=e.memoizedState!==null,(e.stateNode.isHidden=j)&&!V&&e.mode&1)for(te=e,V=e.child;V!==null;){for(H=te=V;te!==null;){switch(B=te,q=B.child,B.tag){case 0:case 11:case 14:case 15:Po(4,B,B.return);break;case 1:Pr(B,B.return);var ne=B.stateNode;if(typeof ne.componentWillUnmount=="function"){o=B,n=B.return;try{t=o,ne.props=t.memoizedProps,ne.state=t.memoizedState,ne.componentWillUnmount()}catch(re){Ie(o,n,re)}}break;case 5:Pr(B,B.return);break;case 22:if(B.memoizedState!==null){Dh(H);continue}}q!==null?(q.return=B,te=q):Dh(H)}V=V.sibling}e:for(V=null,H=e;;){if(H.tag===5){if(V===null){V=H;try{s=H.stateNode,j?(u=s.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(b=H.stateNode,R=H.memoizedProps.style,f=R!=null&&R.hasOwnProperty("display")?R.display:null,b.style.display=mp("display",f))}catch(re){Ie(e,e.return,re)}}}else if(H.tag===6){if(V===null)try{H.stateNode.nodeValue=j?"":H.memoizedProps}catch(re){Ie(e,e.return,re)}}else if((H.tag!==22&&H.tag!==23||H.memoizedState===null||H===e)&&H.child!==null){H.child.return=H,H=H.child;continue}if(H===e)break e;for(;H.sibling===null;){if(H.return===null||H.return===e)break e;V===H&&(V=null),H=H.return}V===H&&(V=null),H.sibling.return=H.return,H=H.sibling}}break;case 19:Tt(t,e),Bt(e),o&4&&_h(e);break;case 21:break;default:Tt(t,e),Bt(e)}}function Bt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Th(n)){var o=n;break e}n=n.return}throw Error(a(160))}switch(o.tag){case 5:var s=o.stateNode;o.flags&32&&(Yr(s,""),o.flags&=-33);var u=Ah(e);pu(e,u,s);break;case 3:case 4:var f=o.stateNode.containerInfo,b=Ah(e);fu(e,b,f);break;default:throw Error(a(161))}}catch(R){Ie(e,e.return,R)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hb(e,t,n){te=e,Ih(e)}function Ih(e,t,n){for(var o=(e.mode&1)!==0;te!==null;){var s=te,u=s.child;if(s.tag===22&&o){var f=s.memoizedState!==null||fa;if(!f){var b=s.alternate,R=b!==null&&b.memoizedState!==null||Je;b=fa;var j=Je;if(fa=f,(Je=R)&&!j)for(te=s;te!==null;)f=te,R=f.child,f.tag===22&&f.memoizedState!==null?Fh(s):R!==null?(R.return=f,te=R):Fh(s);for(;u!==null;)te=u,Ih(u),u=u.sibling;te=s,fa=b,Je=j}Oh(e)}else s.subtreeFlags&8772&&u!==null?(u.return=s,te=u):Oh(e)}}function Oh(e){for(;te!==null;){var t=te;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Je||pa(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!Je)if(n===null)o.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:Nt(t.type,n.memoizedProps);o.componentDidUpdate(s,n.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&Dm(t,u,o);break;case 3:var f=t.updateQueue;if(f!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Dm(t,f,n)}break;case 5:var b=t.stateNode;if(n===null&&t.flags&4){n=b;var R=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":R.autoFocus&&n.focus();break;case"img":R.src&&(n.src=R.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var j=t.alternate;if(j!==null){var V=j.memoizedState;if(V!==null){var H=V.dehydrated;H!==null&&io(H)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(a(163))}Je||t.flags&512&&du(t)}catch(B){Ie(t,t.return,B)}}if(t===e){te=null;break}if(n=t.sibling,n!==null){n.return=t.return,te=n;break}te=t.return}}function Dh(e){for(;te!==null;){var t=te;if(t===e){te=null;break}var n=t.sibling;if(n!==null){n.return=t.return,te=n;break}te=t.return}}function Fh(e){for(;te!==null;){var t=te;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{pa(4,t)}catch(R){Ie(t,n,R)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var s=t.return;try{o.componentDidMount()}catch(R){Ie(t,s,R)}}var u=t.return;try{du(t)}catch(R){Ie(t,u,R)}break;case 5:var f=t.return;try{du(t)}catch(R){Ie(t,f,R)}}}catch(R){Ie(t,t.return,R)}if(t===e){te=null;break}var b=t.sibling;if(b!==null){b.return=t.return,te=b;break}te=t.return}}var $b=Math.ceil,ma=z.ReactCurrentDispatcher,mu=z.ReactCurrentOwner,xt=z.ReactCurrentBatchConfig,be=0,Ve=null,Fe=null,Ke=0,mt=0,Tr=wn(0),Ue=0,To=null,Hn=0,ha=0,hu=0,Ao=null,at=null,gu=0,Ar=1/0,nn=null,ga=!1,vu=null,En=null,va=!1,kn=null,wa=0,Mo=0,wu=null,ya=-1,xa=0;function tt(){return be&6?Oe():ya!==-1?ya:ya=Oe()}function Rn(e){return e.mode&1?be&2&&Ke!==0?Ke&-Ke:Pb.transition!==null?(xa===0&&(xa=Ap()),xa):(e=ke,e!==0||(e=window.event,e=e===void 0?16:zp(e.type)),e):1}function At(e,t,n,o){if(50<Mo)throw Mo=0,wu=null,Error(a(185));eo(e,n,o),(!(be&2)||e!==Ve)&&(e===Ve&&(!(be&2)&&(ha|=n),Ue===4&&Nn(e,Ke)),st(e,o),n===1&&be===0&&!(t.mode&1)&&(Ar=Oe()+500,Yi&&xn()))}function st(e,t){var n=e.callbackNode;P1(e,t);var o=Ti(e,e===Ve?Ke:0);if(o===0)n!==null&&Np(n),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(n!=null&&Np(n),t===1)e.tag===0?Nb(zh.bind(null,e)):Em(zh.bind(null,e)),Sb(function(){!(be&6)&&xn()}),n=null;else{switch(Mp(o)){case 1:n=Js;break;case 4:n=Pp;break;case 16:n=ki;break;case 536870912:n=Tp;break;default:n=ki}n=Gh(n,Lh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Lh(e,t){if(ya=-1,xa=0,be&6)throw Error(a(327));var n=e.callbackNode;if(Mr()&&e.callbackNode!==n)return null;var o=Ti(e,e===Ve?Ke:0);if(o===0)return null;if(o&30||o&e.expiredLanes||t)t=ba(e,o);else{t=o;var s=be;be|=2;var u=Bh();(Ve!==e||Ke!==t)&&(nn=null,Ar=Oe()+500,Kn(e,t));do try{Yb();break}catch(b){Uh(e,b)}while(!0);Dl(),ma.current=u,be=s,Fe!==null?t=0:(Ve=null,Ke=0,t=Ue)}if(t!==0){if(t===2&&(s=Zs(e),s!==0&&(o=s,t=yu(e,s))),t===1)throw n=To,Kn(e,0),Nn(e,o),st(e,Oe()),n;if(t===6)Nn(e,o);else{if(s=e.current.alternate,!(o&30)&&!Kb(s)&&(t=ba(e,o),t===2&&(u=Zs(e),u!==0&&(o=u,t=yu(e,u))),t===1))throw n=To,Kn(e,0),Nn(e,o),st(e,Oe()),n;switch(e.finishedWork=s,e.finishedLanes=o,t){case 0:case 1:throw Error(a(345));case 2:Gn(e,at,nn);break;case 3:if(Nn(e,o),(o&130023424)===o&&(t=gu+500-Oe(),10<t)){if(Ti(e,0)!==0)break;if(s=e.suspendedLanes,(s&o)!==o){tt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=kl(Gn.bind(null,e,at,nn),t);break}Gn(e,at,nn);break;case 4:if(Nn(e,o),(o&4194240)===o)break;for(t=e.eventTimes,s=-1;0<o;){var f=31-Et(o);u=1<<f,f=t[f],f>s&&(s=f),o&=~u}if(o=s,o=Oe()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*$b(o/1960))-o,10<o){e.timeoutHandle=kl(Gn.bind(null,e,at,nn),o);break}Gn(e,at,nn);break;case 5:Gn(e,at,nn);break;default:throw Error(a(329))}}}return st(e,Oe()),e.callbackNode===n?Lh.bind(null,e):null}function yu(e,t){var n=Ao;return e.current.memoizedState.isDehydrated&&(Kn(e,t).flags|=256),e=ba(e,t),e!==2&&(t=at,at=n,t!==null&&xu(t)),e}function xu(e){at===null?at=e:at.push.apply(at,e)}function Kb(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var o=0;o<n.length;o++){var s=n[o],u=s.getSnapshot;s=s.value;try{if(!kt(u(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Nn(e,t){for(t&=~hu,t&=~ha,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Et(t),o=1<<n;e[n]=-1,t&=~o}}function zh(e){if(be&6)throw Error(a(327));Mr();var t=Ti(e,0);if(!(t&1))return st(e,Oe()),null;var n=ba(e,t);if(e.tag!==0&&n===2){var o=Zs(e);o!==0&&(t=o,n=yu(e,o))}if(n===1)throw n=To,Kn(e,0),Nn(e,t),st(e,Oe()),n;if(n===6)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Gn(e,at,nn),st(e,Oe()),null}function bu(e,t){var n=be;be|=1;try{return e(t)}finally{be=n,be===0&&(Ar=Oe()+500,Yi&&xn())}}function $n(e){kn!==null&&kn.tag===0&&!(be&6)&&Mr();var t=be;be|=1;var n=xt.transition,o=ke;try{if(xt.transition=null,ke=1,e)return e()}finally{ke=o,xt.transition=n,be=t,!(be&6)&&xn()}}function Cu(){mt=Tr.current,Ae(Tr)}function Kn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Cb(n)),Fe!==null)for(n=Fe.return;n!==null;){var o=n;switch(Ml(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&Ki();break;case 3:Rr(),Ae(rt),Ae(Ye),Hl();break;case 5:Vl(o);break;case 4:Rr();break;case 13:Ae(_e);break;case 19:Ae(_e);break;case 10:Fl(o.type._context);break;case 22:case 23:Cu()}n=n.return}if(Ve=e,Fe=e=Pn(e.current,null),Ke=mt=t,Ue=0,To=null,hu=ha=Hn=0,at=Ao=null,Bn!==null){for(t=0;t<Bn.length;t++)if(n=Bn[t],o=n.interleaved,o!==null){n.interleaved=null;var s=o.next,u=n.pending;if(u!==null){var f=u.next;u.next=s,o.next=f}n.pending=o}Bn=null}return e}function Uh(e,t){do{var n=Fe;try{if(Dl(),oa.current=la,ia){for(var o=je.memoizedState;o!==null;){var s=o.queue;s!==null&&(s.pending=null),o=o.next}ia=!1}if(Wn=0,Be=ze=je=null,So=!1,Eo=0,mu.current=null,n===null||n.return===null){Ue=1,To=t,Fe=null;break}e:{var u=e,f=n.return,b=n,R=t;if(t=Ke,b.flags|=32768,R!==null&&typeof R=="object"&&typeof R.then=="function"){var j=R,V=b,H=V.tag;if(!(V.mode&1)&&(H===0||H===11||H===15)){var B=V.alternate;B?(V.updateQueue=B.updateQueue,V.memoizedState=B.memoizedState,V.lanes=B.lanes):(V.updateQueue=null,V.memoizedState=null)}var q=dh(f);if(q!==null){q.flags&=-257,fh(q,f,b,u,t),q.mode&1&&ch(u,j,t),t=q,R=j;var ne=t.updateQueue;if(ne===null){var re=new Set;re.add(R),t.updateQueue=re}else ne.add(R);break e}else{if(!(t&1)){ch(u,j,t),Su();break e}R=Error(a(426))}}else if(Me&&b.mode&1){var De=dh(f);if(De!==null){!(De.flags&65536)&&(De.flags|=256),fh(De,f,b,u,t),Il(Nr(R,b));break e}}u=R=Nr(R,b),Ue!==4&&(Ue=2),Ao===null?Ao=[u]:Ao.push(u),u=f;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var A=lh(u,R,t);Om(u,A);break e;case 1:b=R;var P=u.type,_=u.stateNode;if(!(u.flags&128)&&(typeof P.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(En===null||!En.has(_)))){u.flags|=65536,t&=-t,u.lanes|=t;var K=uh(u,b,t);Om(u,K);break e}}u=u.return}while(u!==null)}Wh(n)}catch(oe){t=oe,Fe===n&&n!==null&&(Fe=n=n.return);continue}break}while(!0)}function Bh(){var e=ma.current;return ma.current=la,e===null?la:e}function Su(){(Ue===0||Ue===3||Ue===2)&&(Ue=4),Ve===null||!(Hn&268435455)&&!(ha&268435455)||Nn(Ve,Ke)}function ba(e,t){var n=be;be|=2;var o=Bh();(Ve!==e||Ke!==t)&&(nn=null,Kn(e,t));do try{Gb();break}catch(s){Uh(e,s)}while(!0);if(Dl(),be=n,ma.current=o,Fe!==null)throw Error(a(261));return Ve=null,Ke=0,Ue}function Gb(){for(;Fe!==null;)Vh(Fe)}function Yb(){for(;Fe!==null&&!y1();)Vh(Fe)}function Vh(e){var t=Kh(e.alternate,e,mt);e.memoizedProps=e.pendingProps,t===null?Wh(e):Fe=t,mu.current=null}function Wh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Bb(n,t),n!==null){n.flags&=32767,Fe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ue=6,Fe=null;return}}else if(n=Ub(n,t,mt),n!==null){Fe=n;return}if(t=t.sibling,t!==null){Fe=t;return}Fe=t=e}while(t!==null);Ue===0&&(Ue=5)}function Gn(e,t,n){var o=ke,s=xt.transition;try{xt.transition=null,ke=1,Qb(e,t,n,o)}finally{xt.transition=s,ke=o}return null}function Qb(e,t,n,o){do Mr();while(kn!==null);if(be&6)throw Error(a(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(T1(e,u),e===Ve&&(Fe=Ve=null,Ke=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||va||(va=!0,Gh(ki,function(){return Mr(),null})),u=(n.flags&15990)!==0,n.subtreeFlags&15990||u){u=xt.transition,xt.transition=null;var f=ke;ke=1;var b=be;be|=4,mu.current=null,Wb(e,n),jh(n,e),hb(Sl),_i=!!Cl,Sl=Cl=null,e.current=n,Hb(n),x1(),be=b,ke=f,xt.transition=u}else e.current=n;if(va&&(va=!1,kn=e,wa=s),u=e.pendingLanes,u===0&&(En=null),S1(n.stateNode),st(e,Oe()),t!==null)for(o=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],o(s.value,{componentStack:s.stack,digest:s.digest});if(ga)throw ga=!1,e=vu,vu=null,e;return wa&1&&e.tag!==0&&Mr(),u=e.pendingLanes,u&1?e===wu?Mo++:(Mo=0,wu=e):Mo=0,xn(),null}function Mr(){if(kn!==null){var e=Mp(wa),t=xt.transition,n=ke;try{if(xt.transition=null,ke=16>e?16:e,kn===null)var o=!1;else{if(e=kn,kn=null,wa=0,be&6)throw Error(a(331));var s=be;for(be|=4,te=e.current;te!==null;){var u=te,f=u.child;if(te.flags&16){var b=u.deletions;if(b!==null){for(var R=0;R<b.length;R++){var j=b[R];for(te=j;te!==null;){var V=te;switch(V.tag){case 0:case 11:case 15:Po(8,V,u)}var H=V.child;if(H!==null)H.return=V,te=H;else for(;te!==null;){V=te;var B=V.sibling,q=V.return;if(Ph(V),V===j){te=null;break}if(B!==null){B.return=q,te=B;break}te=q}}}var ne=u.alternate;if(ne!==null){var re=ne.child;if(re!==null){ne.child=null;do{var De=re.sibling;re.sibling=null,re=De}while(re!==null)}}te=u}}if(u.subtreeFlags&2064&&f!==null)f.return=u,te=f;else e:for(;te!==null;){if(u=te,u.flags&2048)switch(u.tag){case 0:case 11:case 15:Po(9,u,u.return)}var A=u.sibling;if(A!==null){A.return=u.return,te=A;break e}te=u.return}}var P=e.current;for(te=P;te!==null;){f=te;var _=f.child;if(f.subtreeFlags&2064&&_!==null)_.return=f,te=_;else e:for(f=P;te!==null;){if(b=te,b.flags&2048)try{switch(b.tag){case 0:case 11:case 15:pa(9,b)}}catch(oe){Ie(b,b.return,oe)}if(b===f){te=null;break e}var K=b.sibling;if(K!==null){K.return=b.return,te=K;break e}te=b.return}}if(be=s,xn(),Ft&&typeof Ft.onPostCommitFiberRoot=="function")try{Ft.onPostCommitFiberRoot(Ri,e)}catch{}o=!0}return o}finally{ke=n,xt.transition=t}}return!1}function Hh(e,t,n){t=Nr(n,t),t=lh(e,t,1),e=Cn(e,t,1),t=tt(),e!==null&&(eo(e,1,t),st(e,t))}function Ie(e,t,n){if(e.tag===3)Hh(e,e,n);else for(;t!==null;){if(t.tag===3){Hh(t,e,n);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(En===null||!En.has(o))){e=Nr(n,e),e=uh(t,e,1),t=Cn(t,e,1),e=tt(),t!==null&&(eo(t,1,e),st(t,e));break}}t=t.return}}function Xb(e,t,n){var o=e.pingCache;o!==null&&o.delete(t),t=tt(),e.pingedLanes|=e.suspendedLanes&n,Ve===e&&(Ke&n)===n&&(Ue===4||Ue===3&&(Ke&130023424)===Ke&&500>Oe()-gu?Kn(e,0):hu|=n),st(e,t)}function $h(e,t){t===0&&(e.mode&1?(t=Pi,Pi<<=1,!(Pi&130023424)&&(Pi=4194304)):t=1);var n=tt();e=qt(e,t),e!==null&&(eo(e,t,n),st(e,n))}function Jb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$h(e,n)}function Zb(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(a(314))}o!==null&&o.delete(t),$h(e,n)}var Kh;Kh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||rt.current)it=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return it=!1,zb(e,t,n);it=!!(e.flags&131072)}else it=!1,Me&&t.flags&1048576&&km(t,Xi,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;da(e,t),e=t.pendingProps;var s=yr(t,Ye.current);kr(t,n),s=Gl(null,t,o,e,s,n);var u=Yl();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ot(o)?(u=!0,Gi(t)):u=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Ul(t),s.updater=ua,t.stateNode=s,s._reactInternals=t,eu(t,o,e,n),t=ou(null,t,o,!0,u,n)):(t.tag=0,Me&&u&&Al(t),et(null,t,s,n),t=t.child),t;case 16:o=t.elementType;e:{switch(da(e,t),e=t.pendingProps,s=o._init,o=s(o._payload),t.type=o,s=t.tag=e2(o),e=Nt(o,e),s){case 0:t=ru(null,t,o,e,n);break e;case 1:t=wh(null,t,o,e,n);break e;case 11:t=ph(null,t,o,e,n);break e;case 14:t=mh(null,t,o,Nt(o.type,e),n);break e}throw Error(a(306,o,""))}return t;case 0:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Nt(o,s),ru(e,t,o,s,n);case 1:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Nt(o,s),wh(e,t,o,s,n);case 3:e:{if(yh(t),e===null)throw Error(a(387));o=t.pendingProps,u=t.memoizedState,s=u.element,Im(e,t),na(t,o,null,n);var f=t.memoizedState;if(o=f.element,u.isDehydrated)if(u={element:o,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){s=Nr(Error(a(423)),t),t=xh(e,t,o,n,s);break e}else if(o!==s){s=Nr(Error(a(424)),t),t=xh(e,t,o,n,s);break e}else for(pt=vn(t.stateNode.containerInfo.firstChild),ft=t,Me=!0,Rt=null,n=_m(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Cr(),o===s){t=tn(e,t,n);break e}et(e,t,o,n)}t=t.child}return t;case 5:return Fm(t),e===null&&jl(t),o=t.type,s=t.pendingProps,u=e!==null?e.memoizedProps:null,f=s.children,El(o,s)?f=null:u!==null&&El(o,u)&&(t.flags|=32),vh(e,t),et(e,t,f,n),t.child;case 6:return e===null&&jl(t),null;case 13:return bh(e,t,n);case 4:return Bl(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Sr(t,null,o,n):et(e,t,o,n),t.child;case 11:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Nt(o,s),ph(e,t,o,s,n);case 7:return et(e,t,t.pendingProps,n),t.child;case 8:return et(e,t,t.pendingProps.children,n),t.child;case 12:return et(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,s=t.pendingProps,u=t.memoizedProps,f=s.value,Ne(qi,o._currentValue),o._currentValue=f,u!==null)if(kt(u.value,f)){if(u.children===s.children&&!rt.current){t=tn(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var b=u.dependencies;if(b!==null){f=u.child;for(var R=b.firstContext;R!==null;){if(R.context===o){if(u.tag===1){R=en(-1,n&-n),R.tag=2;var j=u.updateQueue;if(j!==null){j=j.shared;var V=j.pending;V===null?R.next=R:(R.next=V.next,V.next=R),j.pending=R}}u.lanes|=n,R=u.alternate,R!==null&&(R.lanes|=n),Ll(u.return,n,t),b.lanes|=n;break}R=R.next}}else if(u.tag===10)f=u.type===t.type?null:u.child;else if(u.tag===18){if(f=u.return,f===null)throw Error(a(341));f.lanes|=n,b=f.alternate,b!==null&&(b.lanes|=n),Ll(f,n,t),f=u.sibling}else f=u.child;if(f!==null)f.return=u;else for(f=u;f!==null;){if(f===t){f=null;break}if(u=f.sibling,u!==null){u.return=f.return,f=u;break}f=f.return}u=f}et(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,o=t.pendingProps.children,kr(t,n),s=wt(s),o=o(s),t.flags|=1,et(e,t,o,n),t.child;case 14:return o=t.type,s=Nt(o,t.pendingProps),s=Nt(o.type,s),mh(e,t,o,s,n);case 15:return hh(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Nt(o,s),da(e,t),t.tag=1,ot(o)?(e=!0,Gi(t)):e=!1,kr(t,n),ah(t,o,s),eu(t,o,s,n),ou(null,t,o,!0,e,n);case 19:return Sh(e,t,n);case 22:return gh(e,t,n)}throw Error(a(156,t.tag))};function Gh(e,t){return Rp(e,t)}function qb(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,n,o){return new qb(e,t,n,o)}function Eu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function e2(e){if(typeof e=="function")return Eu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ee)return 11;if(e===Z)return 14}return 2}function Pn(e,t){var n=e.alternate;return n===null?(n=bt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ca(e,t,n,o,s,u){var f=2;if(o=e,typeof e=="function")Eu(e)&&(f=1);else if(typeof e=="string")f=5;else e:switch(e){case W:return Yn(n.children,s,u,t);case J:f=8,s|=8;break;case ie:return e=bt(12,n,t,s|2),e.elementType=ie,e.lanes=u,e;case ge:return e=bt(13,n,t,s),e.elementType=ge,e.lanes=u,e;case X:return e=bt(19,n,t,s),e.elementType=X,e.lanes=u,e;case G:return Sa(n,s,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ae:f=10;break e;case ce:f=9;break e;case ee:f=11;break e;case Z:f=14;break e;case Y:f=16,o=null;break e}throw Error(a(130,e==null?e:typeof e,""))}return t=bt(f,n,t,s),t.elementType=e,t.type=o,t.lanes=u,t}function Yn(e,t,n,o){return e=bt(7,e,o,t),e.lanes=n,e}function Sa(e,t,n,o){return e=bt(22,e,o,t),e.elementType=G,e.lanes=n,e.stateNode={isHidden:!1},e}function ku(e,t,n){return e=bt(6,e,null,t),e.lanes=n,e}function Ru(e,t,n){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function t2(e,t,n,o,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qs(0),this.expirationTimes=qs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qs(0),this.identifierPrefix=o,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Nu(e,t,n,o,s,u,f,b,R){return e=new t2(e,t,n,b,R),t===1?(t=1,u===!0&&(t|=8)):t=0,u=bt(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ul(u),e}function n2(e,t,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$,key:o==null?null:""+o,children:e,containerInfo:t,implementation:n}}function Yh(e){if(!e)return yn;e=e._reactInternals;e:{if(Dn(e)!==e||e.tag!==1)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ot(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(a(171))}if(e.tag===1){var n=e.type;if(ot(n))return Cm(e,n,t)}return t}function Qh(e,t,n,o,s,u,f,b,R){return e=Nu(n,o,!0,e,s,u,f,b,R),e.context=Yh(null),n=e.current,o=tt(),s=Rn(n),u=en(o,s),u.callback=t??null,Cn(n,u,s),e.current.lanes=s,eo(e,s,o),st(e,o),e}function Ea(e,t,n,o){var s=t.current,u=tt(),f=Rn(s);return n=Yh(n),t.context===null?t.context=n:t.pendingContext=n,t=en(u,f),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=Cn(s,t,f),e!==null&&(At(e,s,f,u),ta(e,s,f)),f}function ka(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Xh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Pu(e,t){Xh(e,t),(e=e.alternate)&&Xh(e,t)}function r2(){return null}var Jh=typeof reportError=="function"?reportError:function(e){console.error(e)};function Tu(e){this._internalRoot=e}Ra.prototype.render=Tu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));Ea(e,t,null,null)},Ra.prototype.unmount=Tu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$n(function(){Ea(null,e,null,null)}),t[Qt]=null}};function Ra(e){this._internalRoot=e}Ra.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ip();e={blockedOn:null,target:e,priority:t};for(var n=0;n<mn.length&&t!==0&&t<mn[n].priority;n++);mn.splice(n,0,e),n===0&&Fp(e)}};function Au(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Na(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Zh(){}function o2(e,t,n,o,s){if(s){if(typeof o=="function"){var u=o;o=function(){var j=ka(f);u.call(j)}}var f=Qh(t,o,e,0,null,!1,!1,"",Zh);return e._reactRootContainer=f,e[Qt]=f.current,ho(e.nodeType===8?e.parentNode:e),$n(),f}for(;s=e.lastChild;)e.removeChild(s);if(typeof o=="function"){var b=o;o=function(){var j=ka(R);b.call(j)}}var R=Nu(e,0,!1,null,null,!1,!1,"",Zh);return e._reactRootContainer=R,e[Qt]=R.current,ho(e.nodeType===8?e.parentNode:e),$n(function(){Ea(t,R,n,o)}),R}function Pa(e,t,n,o,s){var u=n._reactRootContainer;if(u){var f=u;if(typeof s=="function"){var b=s;s=function(){var R=ka(f);b.call(R)}}Ea(t,f,e,s)}else f=o2(n,t,e,s,o);return ka(f)}_p=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=qr(t.pendingLanes);n!==0&&(el(t,n|1),st(t,Oe()),!(be&6)&&(Ar=Oe()+500,xn()))}break;case 13:$n(function(){var o=qt(e,1);if(o!==null){var s=tt();At(o,e,1,s)}}),Pu(e,1)}},tl=function(e){if(e.tag===13){var t=qt(e,134217728);if(t!==null){var n=tt();At(t,e,134217728,n)}Pu(e,134217728)}},jp=function(e){if(e.tag===13){var t=Rn(e),n=qt(e,t);if(n!==null){var o=tt();At(n,e,t,o)}Pu(e,t)}},Ip=function(){return ke},Op=function(e,t){var n=ke;try{return ke=e,t()}finally{ke=n}},Gs=function(e,t,n){switch(t){case"input":if(zs(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var s=$i(o);if(!s)throw Error(a(90));bi(o),zs(o,s)}}}break;case"textarea":cp(e,n);break;case"select":t=n.value,t!=null&&sr(e,!!n.multiple,t,!1)}},yp=bu,xp=$n;var i2={usingClientEntryPoint:!1,Events:[wo,vr,$i,vp,wp,bu]},_o={findFiberByHostInstance:Fn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},a2={bundleType:_o.bundleType,version:_o.version,rendererPackageName:_o.rendererPackageName,rendererConfig:_o.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:z.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ep(e),e===null?null:e.stateNode},findFiberByHostInstance:_o.findFiberByHostInstance||r2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ta=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ta.isDisabled&&Ta.supportsFiber)try{Ri=Ta.inject(a2),Ft=Ta}catch{}}return nt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=i2,nt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Au(t))throw Error(a(200));return n2(e,t,null,n)},nt.createRoot=function(e,t){if(!Au(e))throw Error(a(299));var n=!1,o="",s=Jh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Nu(e,1,!1,null,null,n,!1,o,s),e[Qt]=t.current,ho(e.nodeType===8?e.parentNode:e),new Tu(t)},nt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=Ep(t),e=e===null?null:e.stateNode,e},nt.flushSync=function(e){return $n(e)},nt.hydrate=function(e,t,n){if(!Na(t))throw Error(a(200));return Pa(null,e,t,!0,n)},nt.hydrateRoot=function(e,t,n){if(!Au(e))throw Error(a(405));var o=n!=null&&n.hydratedSources||null,s=!1,u="",f=Jh;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(f=n.onRecoverableError)),t=Qh(t,null,e,1,n??null,s,!1,u,f),e[Qt]=t.current,ho(e),o)for(e=0;e<o.length;e++)n=o[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Ra(t)},nt.render=function(e,t,n){if(!Na(t))throw Error(a(200));return Pa(null,e,t,!1,n)},nt.unmountComponentAtNode=function(e){if(!Na(e))throw Error(a(40));return e._reactRootContainer?($n(function(){Pa(null,null,e,!1,function(){e._reactRootContainer=null,e[Qt]=null})}),!0):!1},nt.unstable_batchedUpdates=bu,nt.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!Na(n))throw Error(a(200));if(e==null||e._reactInternals===void 0)throw Error(a(38));return Pa(e,t,n,!1,o)},nt.version="18.3.1-next-f1338f8080-20240426",nt}function Lu(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lu)}catch(r){console.error(r)}}Lu(),_u.exports=og();var Qn=_u.exports;const ig=Mu(Qn);var zu=Qn;jo.createRoot=zu.createRoot,jo.hydrateRoot=zu.hydrateRoot;var ag=Object.defineProperty,sg=(r,i,a)=>i in r?ag(r,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[i]=a,Io=(r,i,a)=>(sg(r,typeof i!="symbol"?i+"":i,a),a);const lg={stringify:r=>r,parse:r=>r},ug={stringify:r=>`${r}`,parse:r=>parseFloat(r)},cg={stringify:r=>r?"true":"false",parse:r=>/^[ty1-9]/i.test(r)},dg={stringify:r=>r.name,parse:(r,i,a)=>{const l=(()=>{if(typeof window<"u"&&r in window)return window[r];if(typeof global<"u"&&r in global)return global[r]})();return typeof l=="function"?l.bind(a):void 0}},fg={stringify:r=>JSON.stringify(r),parse:r=>JSON.parse(r)},_a={string:lg,number:ug,boolean:cg,function:dg,json:fg};function pg(r){return r.replace(/([a-z0-9])([A-Z])/g,(i,a,l)=>`${a}-${l.toLowerCase()}`)}const Oo=Symbol.for("r2wc.render"),Do=Symbol.for("r2wc.connected"),An=Symbol.for("r2wc.context"),rn=Symbol.for("r2wc.props");function mg(r,i,a){var l,c,d;i.props||(i.props=r.propTypes?Object.keys(r.propTypes):[]);const m=Array.isArray(i.props)?i.props.slice():Object.keys(i.props),p={},w={},v={};for(const y of m){p[y]=Array.isArray(i.props)?"string":i.props[y];const S=pg(y);w[y]=S,v[S]=y}class C extends HTMLElement{constructor(){super(),Io(this,l,!0),Io(this,c),Io(this,d,{}),Io(this,"container"),i.shadow?this.container=this.attachShadow({mode:i.shadow}):this.container=this,this[rn].container=this.container;for(const S of m){const E=w[S],N=this.getAttribute(E),x=p[S],k=x?_a[x]:null;k!=null&&k.parse&&N&&(this[rn][S]=k.parse(N,E,this))}}static get observedAttributes(){return Object.keys(v)}connectedCallback(){this[Do]=!0,this[Oo]()}disconnectedCallback(){this[Do]=!1,this[An]&&a.unmount(this[An]),delete this[An]}attributeChangedCallback(S,E,N){const x=v[S],k=p[x],M=k?_a[k]:null;x in p&&M!=null&&M.parse&&N&&(this[rn][x]=M.parse(N,S,this),this[Oo]())}[(l=Do,c=An,d=rn,Oo)](){this[Do]&&(this[An]?a.update(this[An],this[rn]):this[An]=a.mount(this.container,r,this[rn]))}}for(const y of m){const S=w[y],E=p[y];Object.defineProperty(C.prototype,y,{enumerable:!0,configurable:!0,get(){return this[rn][y]},set(N){this[rn][y]=N;const x=E?_a[E]:null;if(x!=null&&x.stringify){const k=x.stringify(N,S,this);this.getAttribute(S)!==k&&this.setAttribute(S,k)}else this[Oo]()}})}return C}function Uu(r,i,a,l={}){function c(p,w,v){const C=i.createElement(w,v);if("createRoot"in a){const y=a.createRoot(p);return y.render(C),{container:p,root:y,ReactComponent:w}}if("render"in a)return a.render(C,p),{container:p,ReactComponent:w};throw new Error("Invalid ReactDOM instance provided.")}function d({container:p,root:w,ReactComponent:v},C){const y=i.createElement(v,C);if(w){w.render(y);return}if("render"in a){a.render(y,p);return}}function m({container:p,root:w}){if(w){w.unmount();return}if("unmountComponentAtNode"in a){a.unmountComponentAtNode(p);return}}return mg(r,l,{mount:c,unmount:m,update:d})}var Bu={exports:{}},jr={};/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Vu;function hg(){if(Vu)return jr;Vu=1;var r=h,i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function m(p,w,v){var C,y={},S=null,E=null;v!==void 0&&(S=""+v),w.key!==void 0&&(S=""+w.key),w.ref!==void 0&&(E=w.ref);for(C in w)l.call(w,C)&&!d.hasOwnProperty(C)&&(y[C]=w[C]);if(p&&p.defaultProps)for(C in w=p.defaultProps,w)y[C]===void 0&&(y[C]=w[C]);return{$$typeof:i,type:p,key:S,ref:E,props:y,_owner:c.current}}return jr.Fragment=a,jr.jsx=m,jr.jsxs=m,jr}Bu.exports=hg();var g=Bu.exports,lt=(r=>(r.BUILDER="builder",r.PROVIDER="provider",r.CONTRATISTA="contratista",r.CONSTRUCTOR="constructor",r))(lt||{});const ja=r=>({_id:r._id,content:r.content,parent:r.parent,url:r.url,children:[],documentName:r.documentName,author:r.author,isOwner:r.owner,date:r.date,isEvent:r.isEvent,isDeleted:r.isDeleted}),Vt=h.createContext(null),Wu=({children:r,options:i})=>{const a=localStorage.getItem("user_token"),l=JSON.parse(localStorage.getItem("user")||"{}"),[c,d]=h.useState(new Date().toISOString()),[m,p]=h.useState([]),[w,v]=h.useState(null),[C,y]=h.useState(null),[S,E]=h.useState(0),[N,x]=h.useState([]),[k,M]=h.useState(l.profile?.role===lt.CONTRATISTA?l.profile._id:""),[I,F]=h.useState(!1),z=async(Z,Y,G=!0,D)=>{F(!0);const O={...Y,parent:D,isPinned:G,tender:Z,description:Y.description};return await(await fetch(`${i.url_api}/private/commentary-v2/create`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify(O)})).json()},U=async()=>{F(!0);const Z=await fetch(`${i.url_api}/private/commentary-v2/getByTender?tenderId=${i.tender_id}&profile=${i.profile}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`}}),{closeDate:Y,pinnedMessages:G}=await Z.json();F(!1),d(Y),p(ge(G))},$=async(Z,Y=!0)=>{if(F(!0),await z(i.tender_id,Z,Y,Z.parent))U(),ae();else throw new Error("Error al guardar el mensaje")},W=async Z=>{if(await(await fetch(`${i.url_api}/private/commentary-v2/delete`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify({id:Z})})).json())U();else throw new Error("Error al eliminar el mensaje")},J=async Z=>{if(await(await fetch(`${i.url_api}/private/commentary-v2/update`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify(Z)})).json())U();else throw new Error("Error al editar el mensaje")},ie=async Z=>{const Y=`${i.url_api}/private/commentary-v2/download?id=${Z}`,G=await fetch(Y,{method:"GET",headers:{Authorization:`Bearer ${a}`}}),{data:D,fileName:O}=await G.json();return{data:D,fileName:O}},ae=async()=>{F(!0);try{const Y=await(await fetch(`${i.url_api}/private/commentary-v2/getChatByTender?tenderId=${i.tender_id}&profile=${i.profile}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`}})).json();if(!Y.conversationList||Y.contactList.length===0)return;x(Y.contactList),y(Y.conversationList),E(Y.contactList.filter(G=>G.hasNewMessages).length),F(!1),k&&v(G=>({...G,parentConversation:Y.conversationList[k].parentMessage,conversationList:X(Y.conversationList[k].messages)}))}catch(Z){console.error("fetchConversation",Z)}},ce=async Z=>{try{if(!await(await fetch(`${i.url_api}/private/commentary-v2/readChatByTender`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify({parentMessageId:Z,tenderId:i.tender_id})})).json())throw new Error("Error al leer la conversación");x(D=>D.map(O=>(O.parentMessage===Z&&(O.hasNewMessages=!1),O))),E(D=>D-1<0?0:D-1)}catch(Y){console.error("readConversation",Y)}},ee=async Z=>{if(M(Z),!C){console.error("Conversation list not found");return}const Y=C[Z],G=N.find(D=>D._id===Z);if(!G){console.error("Contact not found:",Z);return}if(!Y){console.error("Conversation not found:",Z);return}v(D=>({...D,parentConversation:Y.parentMessage,conversationList:X(Y.messages)})),G.hasNewMessages&&ce(G.parentMessage)},ge=Z=>{const Y=Z.filter(D=>!D.parent).map(ja);return Z.filter(D=>D.parent).map(ja).sort((D,O)=>new Date(D.date).getTime()-new Date(O.date).getTime()).forEach(D=>{const O=Y.find(Q=>Q._id===D.parent);O&&(O.children||(O.children=[]),O.children.push(D))}),Y},X=Z=>Z.sort((Y,G)=>new Date(Y.date).getTime()-new Date(G.date).getTime()).map(ja);return g.jsx(Vt.Provider,{value:{author:{_id:l._id,avatar:l.profile?.image,name:l.username,role:l.profile?.role,profileId:l.profile?._id},tender:i.tender_id,project:i.project,centerEnabledDate:c,isLoading:I,messages:m,conversation:w,contactList:N,conversationSelected:k,countNewMessages:S,getMessages:U,addMessage:$,deleteMessage:W,editMessage:J,downloadFile:ie,getConversation:ee,fetchConversation:ae,readConversation:ce},children:r})},Hu='@import"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 0, 0%, 29%;--card: 0 0% 100%;--card-foreground: 0 0% 3.9%;--popover: 0 0% 100%;--popover-foreground: 0 0% 3.9%;--primary: 0 0% 9%;--primary-foreground: 0 0% 98%;--secondary: 0 0% 96.1%;--secondary-foreground: 0 0% 9%;--muted: 0 0% 96.1%;--muted-foreground: 0 0% 45.1%;--accent: 0 0% 96.1%;--accent-foreground: 0 0% 9%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 0 0% 89.8%;--input: 0 0% 89.8%;--ring: 0 0% 3.9%;--radius: .5rem}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.pointer-events-auto{pointer-events:auto}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.left-2{left:.5rem}.right-\\[8px\\]{right:8px}.top-0{top:0}.top-\\[8px\\]{top:8px}.z-50{z-index:50}.z-\\[100\\]{z-index:100}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-\\[24px\\]{margin-bottom:24px}.mb-\\[8px\\]{margin-bottom:8px}.ml-\\[8px\\]{margin-left:8px}.ml-auto{margin-left:auto}.mr-\\[8px\\]{margin-right:8px}.mt-\\[8px\\]{margin-top:8px}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[12px\\]{height:12px}.h-\\[16px\\]{height:16px}.h-\\[320px\\]{height:320px}.h-\\[34px\\]{height:34px}.h-\\[40px\\]{height:40px}.h-\\[48px\\]{height:48px}.h-\\[600px\\]{height:600px}.h-\\[80px\\]{height:80px}.h-full{height:100%}.h-px{height:1px}.max-h-\\[600px\\]{max-height:600px}.max-h-full{max-height:100%}.max-h-screen{max-height:100vh}.min-h-\\[600px\\]{min-height:600px}.min-h-\\[80px\\]{min-height:80px}.w-1\\/4{width:25%}.w-2{width:.5rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-3\\/4{width:75%}.w-4{width:1rem}.w-\\[16px\\]{width:16px}.w-\\[300px\\]{width:300px}.w-\\[34px\\]{width:34px}.w-\\[48px\\]{width:48px}.w-\\[80\\%\\]{width:80%}.w-\\[80px\\]{width:80px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-\\[212px\\]{min-width:212px}.min-w-\\[8rem\\]{min-width:8rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.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 spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-\\[8px\\]{gap:8px}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-nowrap{text-wrap:nowrap}.rounded{border-radius:.25rem}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[8px\\]{border-radius:8px}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-e-\\[8px\\]{border-start-end-radius:8px;border-end-end-radius:8px}.rounded-s-\\[8px\\]{border-start-start-radius:8px;border-end-start-radius:8px}.border{border-width:1px}.border-\\[0\\.5px\\]{border-width:.5px}.border-\\[1px\\]{border-width:1px}.border-\\[2px\\]{border-width:2px}.border-b{border-bottom-width:1px}.border-l-\\[8px\\]{border-left-width:8px}.border-t{border-top-width:1px}.border-\\[\\#1C7ED6\\]{--tw-border-opacity: 1;border-color:rgb(28 126 214 / var(--tw-border-opacity))}.border-\\[\\#CED4DA\\]{--tw-border-opacity: 1;border-color:rgb(206 212 218 / var(--tw-border-opacity))}.border-\\[\\#fab005\\]{--tw-border-opacity: 1;border-color:rgb(250 176 5 / var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.border-input{border-color:hsl(var(--input))}.border-transparent{border-color:transparent}.border-l-\\[\\#C92A2A\\]{--tw-border-opacity: 1;border-left-color:rgb(201 42 42 / var(--tw-border-opacity))}.bg-\\[\\#845EF7\\]{--tw-bg-opacity: 1;background-color:rgb(132 94 247 / var(--tw-bg-opacity))}.bg-\\[\\#D0EBFF\\]{--tw-bg-opacity: 1;background-color:rgb(208 235 255 / var(--tw-bg-opacity))}.bg-\\[\\#F1F3F5\\]{--tw-bg-opacity: 1;background-color:rgb(241 243 245 / var(--tw-bg-opacity))}.bg-\\[\\#FFE3E3\\]{--tw-bg-opacity: 1;background-color:rgb(255 227 227 / var(--tw-bg-opacity))}.bg-\\[\\#ffe066\\]{--tw-bg-opacity: 1;background-color:rgb(255 224 102 / var(--tw-bg-opacity))}.bg-background{background-color:hsl(var(--background))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.fill-current{fill:currentColor}.p-1{padding:.25rem}.p-4{padding:1rem}.p-\\[16px\\]{padding:16px}.p-\\[24px\\]{padding:24px}.p-\\[8px\\]{padding:8px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\\[12px\\]{padding-left:12px;padding-right:12px}.px-\\[16px\\]{padding-left:16px;padding-right:16px}.px-\\[8px\\]{padding-left:8px;padding-right:8px}.py-0{padding-top:0;padding-bottom:0}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-\\[6px\\]{padding-top:6px;padding-bottom:6px}.py-\\[8px\\]{padding-top:8px;padding-bottom:8px}.pl-8{padding-left:2rem}.pl-\\[10\\%\\]{padding-left:10%}.pr-2{padding-right:.5rem}.pr-\\[32px\\]{padding-right:32px}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\\[12px\\]{font-size:12px}.text-\\[14px\\]{font-size:14px}.text-\\[16px\\]{font-size:16px}.text-\\[20px\\]{font-size:20px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-\\[400\\]{font-weight:400}.font-\\[600\\]{font-weight:600}.font-\\[700\\],.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.leading-\\[20px\\]{line-height:20px}.tracking-widest{letter-spacing:.1em}.text-\\[\\#212529\\]{--tw-text-opacity: 1;color:rgb(33 37 41 / var(--tw-text-opacity))}.text-\\[\\#343A40\\]{--tw-text-opacity: 1;color:rgb(52 58 64 / var(--tw-text-opacity))}.text-\\[\\#495057\\]{--tw-text-opacity: 1;color:rgb(73 80 87 / var(--tw-text-opacity))}.text-\\[\\#4A4A4A\\]{--tw-text-opacity: 1;color:rgb(74 74 74 / var(--tw-text-opacity))}.text-\\[\\#6C757D\\]{--tw-text-opacity: 1;color:rgb(108 117 125 / var(--tw-text-opacity))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\\/50{color:hsl(var(--foreground) / .5)}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-60{opacity:.6}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.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)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-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}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@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))}}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.material-symbols-outlined{font-variation-settings:"FILL" 0,"wght" 400,"GRAD" 0,"opsz" 24}.icon{font-family:Material Symbols Outlined;font-weight:400}img{display:inline-block}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.placeholder\\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\\:bg-\\[\\#F1F3F5\\]:hover{--tw-bg-opacity: 1;background-color:rgb(241 243 245 / var(--tw-bg-opacity))}.hover\\:bg-\\[\\#fab005\\]:hover{--tw-bg-opacity: 1;background-color:rgb(250 176 5 / var(--tw-bg-opacity))}.hover\\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:bg-destructive\\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\\:bg-primary\\/80:hover{background-color:hsl(var(--primary) / .8)}.hover\\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\\:bg-secondary\\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:text-foreground:hover{color:hsl(var(--foreground))}.hover\\:underline:hover{text-decoration-line:underline}.focus\\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\\:opacity-100:focus{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-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-\\[\\#7048E8\\]:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgb(112 72 232 / var(--tw-ring-opacity))}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\\:ring-offset-0:focus-visible{--tw-ring-offset-width: 0px}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.active\\:scale-\\[0\\.98\\]:active{--tw-scale-x: .98;--tw-scale-y: .98;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))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}.group.destructive .group-\\[\\.destructive\\]\\:border-muted\\/40{border-color:hsl(var(--muted) / .4)}.group.destructive .group-\\[\\.destructive\\]\\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.group.destructive .group-\\[\\.destructive\\]\\:hover\\:border-destructive\\/30:hover{border-color:hsl(var(--destructive) / .3)}.group.destructive .group-\\[\\.destructive\\]\\:hover\\:bg-destructive:hover{background-color:hsl(var(--destructive))}.group.destructive .group-\\[\\.destructive\\]\\:hover\\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.group.destructive .group-\\[\\.destructive\\]\\:hover\\:text-red-50:hover{--tw-text-opacity: 1;color:rgb(254 242 242 / var(--tw-text-opacity))}.group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-destructive:focus{--tw-ring-color: hsl(var(--destructive))}.group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity))}.group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-offset-red-600:focus{--tw-ring-offset-color: #dc2626}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.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-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.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-right-full[data-state=closed]{--tw-exit-translate-x: 100%}.data-\\[state\\=open\\]\\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y: -100%}@media (min-width: 640px){.sm\\:bottom-0{bottom:0}.sm\\:right-0{right:0}.sm\\:top-auto{top:auto}.sm\\:flex-col{flex-direction:column}.data-\\[state\\=open\\]\\:sm\\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y: 100%}}@media (min-width: 768px){.md\\:max-w-\\[420px\\]{max-width:420px}}';function Wt(r,i=[]){let a=[];function l(d,m){const p=h.createContext(m),w=a.length;a=[...a,m];function v(y){const{scope:S,children:E,...N}=y,x=S?.[r][w]||p,k=h.useMemo(()=>N,Object.values(N));return g.jsx(x.Provider,{value:k,children:E})}function C(y,S){const E=S?.[r][w]||p,N=h.useContext(E);if(N)return N;if(m!==void 0)return m;throw new Error(`\`${y}\` must be used within \`${d}\``)}return v.displayName=d+"Provider",[v,C]}const c=()=>{const d=a.map(m=>h.createContext(m));return function(p){const w=p?.[r]||d;return h.useMemo(()=>({[`__scope${r}`]:{...p,[r]:w}}),[p,w])}};return c.scopeName=r,[l,gg(c,...i)]}function gg(...r){const i=r[0];if(r.length===1)return i;const a=()=>{const l=r.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(d){const m=l.reduce((p,{useScope:w,scopeName:v})=>{const y=w(d)[`__scope${v}`];return{...p,...y}},{});return h.useMemo(()=>({[`__scope${i.scopeName}`]:m}),[m])}};return a.scopeName=i.scopeName,a}function Ge(r){const i=h.useRef(r);return h.useEffect(()=>{i.current=r}),h.useMemo(()=>(...a)=>i.current?.(...a),[])}var Ct=globalThis?.document?h.useLayoutEffect:()=>{};function vg(r,i){typeof r=="function"?r(i):r!=null&&(r.current=i)}function Fo(...r){return i=>r.forEach(a=>vg(a,i))}function He(...r){return h.useCallback(Fo(...r),r)}var Xn=h.forwardRef((r,i)=>{const{children:a,...l}=r,c=h.Children.toArray(a),d=c.find(yg);if(d){const m=d.props.children,p=c.map(w=>w===d?h.Children.count(m)>1?h.Children.only(null):h.isValidElement(m)?m.props.children:null:w);return g.jsx(Ia,{...l,ref:i,children:h.isValidElement(m)?h.cloneElement(m,void 0,p):null})}return g.jsx(Ia,{...l,ref:i,children:a})});Xn.displayName="Slot";var Ia=h.forwardRef((r,i)=>{const{children:a,...l}=r;if(h.isValidElement(a)){const c=bg(a);return h.cloneElement(a,{...xg(l,a.props),ref:i?Fo(i,c):c})}return h.Children.count(a)>1?h.Children.only(null):null});Ia.displayName="SlotClone";var wg=({children:r})=>g.jsx(g.Fragment,{children:r});function yg(r){return h.isValidElement(r)&&r.type===wg}function xg(r,i){const a={...i};for(const l in i){const c=r[l],d=i[l];/^on[A-Z]/.test(l)?c&&d?a[l]=(...p)=>{d(...p),c(...p)}:c&&(a[l]=c):l==="style"?a[l]={...c,...d}:l==="className"&&(a[l]=[c,d].filter(Boolean).join(" "))}return{...r,...a}}function bg(r){let i=Object.getOwnPropertyDescriptor(r.props,"ref")?.get,a=i&&"isReactWarning"in i&&i.isReactWarning;return a?r.ref:(i=Object.getOwnPropertyDescriptor(r,"ref")?.get,a=i&&"isReactWarning"in i&&i.isReactWarning,a?r.props.ref:r.props.ref||r.ref)}var Cg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Se=Cg.reduce((r,i)=>{const a=h.forwardRef((l,c)=>{const{asChild:d,...m}=l,p=d?Xn:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(p,{...m,ref:c})});return a.displayName=`Primitive.${i}`,{...r,[i]:a}},{});function Oa(r,i){r&&Qn.flushSync(()=>r.dispatchEvent(i))}var Da="Avatar",[Sg,l2]=Wt(Da),[Eg,$u]=Sg(Da),Ku=h.forwardRef((r,i)=>{const{__scopeAvatar:a,...l}=r,[c,d]=h.useState("idle");return g.jsx(Eg,{scope:a,imageLoadingStatus:c,onImageLoadingStatusChange:d,children:g.jsx(Se.span,{...l,ref:i})})});Ku.displayName=Da;var Gu="AvatarImage",Yu=h.forwardRef((r,i)=>{const{__scopeAvatar:a,src:l,onLoadingStatusChange:c=()=>{},...d}=r,m=$u(Gu,a),p=kg(l),w=Ge(v=>{c(v),m.onImageLoadingStatusChange(v)});return Ct(()=>{p!=="idle"&&w(p)},[p,w]),p==="loaded"?g.jsx(Se.img,{...d,ref:i,src:l}):null});Yu.displayName=Gu;var Qu="AvatarFallback",Xu=h.forwardRef((r,i)=>{const{__scopeAvatar:a,delayMs:l,...c}=r,d=$u(Qu,a),[m,p]=h.useState(l===void 0);return h.useEffect(()=>{if(l!==void 0){const w=window.setTimeout(()=>p(!0),l);return()=>window.clearTimeout(w)}},[l]),m&&d.imageLoadingStatus!=="loaded"?g.jsx(Se.span,{...c,ref:i}):null});Xu.displayName=Qu;function kg(r){const[i,a]=h.useState("idle");return Ct(()=>{if(!r){a("error");return}let l=!0;const c=new window.Image,d=m=>()=>{l&&a(m)};return a("loading"),c.onload=d("loaded"),c.onerror=d("error"),c.src=r,()=>{l=!1}},[r]),i}var Ju=Ku,Zu=Yu,qu=Xu;function ec(r){var i,a,l="";if(typeof r=="string"||typeof r=="number")l+=r;else if(typeof r=="object")if(Array.isArray(r)){var c=r.length;for(i=0;i<c;i++)r[i]&&(a=ec(r[i]))&&(l&&(l+=" "),l+=a)}else for(a in r)r[a]&&(l&&(l+=" "),l+=a);return l}function Rg(){for(var r,i,a=0,l="",c=arguments.length;a<c;a++)(r=arguments[a])&&(i=ec(r))&&(l&&(l+=" "),l+=i);return l}const Fa="-";function Ng(r){const i=Tg(r),{conflictingClassGroups:a,conflictingClassGroupModifiers:l}=r;function c(m){const p=m.split(Fa);return p[0]===""&&p.length!==1&&p.shift(),tc(p,i)||Pg(m)}function d(m,p){const w=a[m]||[];return p&&l[m]?[...w,...l[m]]:w}return{getClassGroupId:c,getConflictingClassGroupIds:d}}function tc(r,i){if(r.length===0)return i.classGroupId;const a=r[0],l=i.nextPart.get(a),c=l?tc(r.slice(1),l):void 0;if(c)return c;if(i.validators.length===0)return;const d=r.join(Fa);return i.validators.find(({validator:m})=>m(d))?.classGroupId}const nc=/^\[(.+)\]$/;function Pg(r){if(nc.test(r)){const i=nc.exec(r)[1],a=i?.substring(0,i.indexOf(":"));if(a)return"arbitrary.."+a}}function Tg(r){const{theme:i,prefix:a}=r,l={nextPart:new Map,validators:[]};return Mg(Object.entries(r.classGroups),a).forEach(([d,m])=>{La(m,l,d,i)}),l}function La(r,i,a,l){r.forEach(c=>{if(typeof c=="string"){const d=c===""?i:rc(i,c);d.classGroupId=a;return}if(typeof c=="function"){if(Ag(c)){La(c(l),i,a,l);return}i.validators.push({validator:c,classGroupId:a});return}Object.entries(c).forEach(([d,m])=>{La(m,rc(i,d),a,l)})})}function rc(r,i){let a=r;return i.split(Fa).forEach(l=>{a.nextPart.has(l)||a.nextPart.set(l,{nextPart:new Map,validators:[]}),a=a.nextPart.get(l)}),a}function Ag(r){return r.isThemeGetter}function Mg(r,i){return i?r.map(([a,l])=>{const c=l.map(d=>typeof d=="string"?i+d:typeof d=="object"?Object.fromEntries(Object.entries(d).map(([m,p])=>[i+m,p])):d);return[a,c]}):r}function _g(r){if(r<1)return{get:()=>{},set:()=>{}};let i=0,a=new Map,l=new Map;function c(d,m){a.set(d,m),i++,i>r&&(i=0,l=a,a=new Map)}return{get(d){let m=a.get(d);if(m!==void 0)return m;if((m=l.get(d))!==void 0)return c(d,m),m},set(d,m){a.has(d)?a.set(d,m):c(d,m)}}}const oc="!";function jg(r){const i=r.separator,a=i.length===1,l=i[0],c=i.length;return function(m){const p=[];let w=0,v=0,C;for(let x=0;x<m.length;x++){let k=m[x];if(w===0){if(k===l&&(a||m.slice(x,x+c)===i)){p.push(m.slice(v,x)),v=x+c;continue}if(k==="/"){C=x;continue}}k==="["?w++:k==="]"&&w--}const y=p.length===0?m:m.substring(v),S=y.startsWith(oc),E=S?y.substring(1):y,N=C&&C>v?C-v:void 0;return{modifiers:p,hasImportantModifier:S,baseClassName:E,maybePostfixModifierPosition:N}}}function Ig(r){if(r.length<=1)return r;const i=[];let a=[];return r.forEach(l=>{l[0]==="["?(i.push(...a.sort(),l),a=[]):a.push(l)}),i.push(...a.sort()),i}function Og(r){return{cache:_g(r.cacheSize),splitModifiers:jg(r),...Ng(r)}}const Dg=/\s+/;function Fg(r,i){const{splitModifiers:a,getClassGroupId:l,getConflictingClassGroupIds:c}=i,d=new Set;return r.trim().split(Dg).map(m=>{const{modifiers:p,hasImportantModifier:w,baseClassName:v,maybePostfixModifierPosition:C}=a(m);let y=l(C?v.substring(0,C):v),S=!!C;if(!y){if(!C)return{isTailwindClass:!1,originalClassName:m};if(y=l(v),!y)return{isTailwindClass:!1,originalClassName:m};S=!1}const E=Ig(p).join(":");return{isTailwindClass:!0,modifierId:w?E+oc:E,classGroupId:y,originalClassName:m,hasPostfixModifier:S}}).reverse().filter(m=>{if(!m.isTailwindClass)return!0;const{modifierId:p,classGroupId:w,hasPostfixModifier:v}=m,C=p+w;return d.has(C)?!1:(d.add(C),c(w,v).forEach(y=>d.add(p+y)),!0)}).reverse().map(m=>m.originalClassName).join(" ")}function Lg(){let r=0,i,a,l="";for(;r<arguments.length;)(i=arguments[r++])&&(a=ic(i))&&(l&&(l+=" "),l+=a);return l}function ic(r){if(typeof r=="string")return r;let i,a="";for(let l=0;l<r.length;l++)r[l]&&(i=ic(r[l]))&&(a&&(a+=" "),a+=i);return a}function zg(r,...i){let a,l,c,d=m;function m(w){const v=i.reduce((C,y)=>y(C),r());return a=Og(v),l=a.cache.get,c=a.cache.set,d=p,p(w)}function p(w){const v=l(w);if(v)return v;const C=Fg(w,a);return c(w,C),C}return function(){return d(Lg.apply(null,arguments))}}function Pe(r){const i=a=>a[r]||[];return i.isThemeGetter=!0,i}const ac=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ug=/^\d+\/\d+$/,Bg=new Set(["px","full","screen"]),Vg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Wg=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Hg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$g=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Kg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Ht(r){return Mn(r)||Bg.has(r)||Ug.test(r)}function on(r){return Jn(r,"length",ev)}function Mn(r){return!!r&&!Number.isNaN(Number(r))}function Lo(r){return Jn(r,"number",Mn)}function Ir(r){return!!r&&Number.isInteger(Number(r))}function Gg(r){return r.endsWith("%")&&Mn(r.slice(0,-1))}function he(r){return ac.test(r)}function an(r){return Vg.test(r)}const Yg=new Set(["length","size","percentage"]);function Qg(r){return Jn(r,Yg,sc)}function Xg(r){return Jn(r,"position",sc)}const Jg=new Set(["image","url"]);function Zg(r){return Jn(r,Jg,nv)}function qg(r){return Jn(r,"",tv)}function Or(){return!0}function Jn(r,i,a){const l=ac.exec(r);return l?l[1]?typeof i=="string"?l[1]===i:i.has(l[1]):a(l[2]):!1}function ev(r){return Wg.test(r)&&!Hg.test(r)}function sc(){return!1}function tv(r){return $g.test(r)}function nv(r){return Kg.test(r)}function rv(){const r=Pe("colors"),i=Pe("spacing"),a=Pe("blur"),l=Pe("brightness"),c=Pe("borderColor"),d=Pe("borderRadius"),m=Pe("borderSpacing"),p=Pe("borderWidth"),w=Pe("contrast"),v=Pe("grayscale"),C=Pe("hueRotate"),y=Pe("invert"),S=Pe("gap"),E=Pe("gradientColorStops"),N=Pe("gradientColorStopPositions"),x=Pe("inset"),k=Pe("margin"),M=Pe("opacity"),I=Pe("padding"),F=Pe("saturate"),z=Pe("scale"),U=Pe("sepia"),$=Pe("skew"),W=Pe("space"),J=Pe("translate"),ie=()=>["auto","contain","none"],ae=()=>["auto","hidden","clip","visible","scroll"],ce=()=>["auto",he,i],ee=()=>[he,i],ge=()=>["",Ht,on],X=()=>["auto",Mn,he],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",he],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>[Mn,Lo],L=()=>[Mn,he];return{cacheSize:500,separator:":",theme:{colors:[Or],spacing:[Ht,on],blur:["none","",an,he],brightness:T(),borderColor:[r],borderRadius:["none","","full",an,he],borderSpacing:ee(),borderWidth:ge(),contrast:T(),grayscale:O(),hueRotate:L(),invert:O(),gap:ee(),gradientColorStops:[r],gradientColorStopPositions:[Gg,on],inset:ce(),margin:ce(),opacity:T(),padding:ee(),saturate:T(),scale:T(),sepia:O(),skew:L(),space:ee(),translate:ee()},classGroups:{aspect:[{aspect:["auto","square","video",he]}],container:["container"],columns:[{columns:[an]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Z(),he]}],overflow:[{overflow:ae()}],"overflow-x":[{"overflow-x":ae()}],"overflow-y":[{"overflow-y":ae()}],overscroll:[{overscroll:ie()}],"overscroll-x":[{"overscroll-x":ie()}],"overscroll-y":[{"overscroll-y":ie()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ir,he]}],basis:[{basis:ce()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",he]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",Ir,he]}],"grid-cols":[{"grid-cols":[Or]}],"col-start-end":[{col:["auto",{span:["full",Ir,he]},he]}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":[Or]}],"row-start-end":[{row:["auto",{span:[Ir,he]},he]}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",he]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",he]}],gap:[{gap:[S]}],"gap-x":[{"gap-x":[S]}],"gap-y":[{"gap-y":[S]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[I]}],px:[{px:[I]}],py:[{py:[I]}],ps:[{ps:[I]}],pe:[{pe:[I]}],pt:[{pt:[I]}],pr:[{pr:[I]}],pb:[{pb:[I]}],pl:[{pl:[I]}],m:[{m:[k]}],mx:[{mx:[k]}],my:[{my:[k]}],ms:[{ms:[k]}],me:[{me:[k]}],mt:[{mt:[k]}],mr:[{mr:[k]}],mb:[{mb:[k]}],ml:[{ml:[k]}],"space-x":[{"space-x":[W]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[W]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",he,i]}],"min-w":[{"min-w":[he,i,"min","max","fit"]}],"max-w":[{"max-w":[he,i,"none","full","min","max","fit","prose",{screen:[an]},an]}],h:[{h:[he,i,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[he,i,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[he,i,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[he,i,"auto","min","max","fit"]}],"font-size":[{text:["base",an,on]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Lo]}],"font-family":[{font:[Or]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",he]}],"line-clamp":[{"line-clamp":["none",Mn,Lo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ht,he]}],"list-image":[{"list-image":["none",he]}],"list-style-type":[{list:["none","disc","decimal",he]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ht,on]}],"underline-offset":[{"underline-offset":["auto",Ht,he]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ee()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",he]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),Xg]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Qg]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Zg]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[E]}],"gradient-via":[{via:[E]}],"gradient-to":[{to:[E]}],rounded:[{rounded:[d]}],"rounded-s":[{"rounded-s":[d]}],"rounded-e":[{"rounded-e":[d]}],"rounded-t":[{"rounded-t":[d]}],"rounded-r":[{"rounded-r":[d]}],"rounded-b":[{"rounded-b":[d]}],"rounded-l":[{"rounded-l":[d]}],"rounded-ss":[{"rounded-ss":[d]}],"rounded-se":[{"rounded-se":[d]}],"rounded-ee":[{"rounded-ee":[d]}],"rounded-es":[{"rounded-es":[d]}],"rounded-tl":[{"rounded-tl":[d]}],"rounded-tr":[{"rounded-tr":[d]}],"rounded-br":[{"rounded-br":[d]}],"rounded-bl":[{"rounded-bl":[d]}],"border-w":[{border:[p]}],"border-w-x":[{"border-x":[p]}],"border-w-y":[{"border-y":[p]}],"border-w-s":[{"border-s":[p]}],"border-w-e":[{"border-e":[p]}],"border-w-t":[{"border-t":[p]}],"border-w-r":[{"border-r":[p]}],"border-w-b":[{"border-b":[p]}],"border-w-l":[{"border-l":[p]}],"border-opacity":[{"border-opacity":[M]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[p]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[p]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[M]}],"divide-style":[{divide:Y()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-t":[{"border-t":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-l":[{"border-l":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[Ht,he]}],"outline-w":[{outline:[Ht,on]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:ge()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[Ht,on]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",an,qg]}],"shadow-color":[{shadow:[Or]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":[...G(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[l]}],contrast:[{contrast:[w]}],"drop-shadow":[{"drop-shadow":["","none",an,he]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[C]}],invert:[{invert:[y]}],saturate:[{saturate:[F]}],sepia:[{sepia:[U]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[l]}],"backdrop-contrast":[{"backdrop-contrast":[w]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[F]}],"backdrop-sepia":[{"backdrop-sepia":[U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[m]}],"border-spacing-x":[{"border-spacing-x":[m]}],"border-spacing-y":[{"border-spacing-y":[m]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",he]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",he]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",he]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[Ir,he]}],"translate-x":[{"translate-x":[J]}],"translate-y":[{"translate-y":[J]}],"skew-x":[{"skew-x":[$]}],"skew-y":[{"skew-y":[$]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",he]}],accent:[{accent:["auto",r]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",he]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ee()}],"scroll-mx":[{"scroll-mx":ee()}],"scroll-my":[{"scroll-my":ee()}],"scroll-ms":[{"scroll-ms":ee()}],"scroll-me":[{"scroll-me":ee()}],"scroll-mt":[{"scroll-mt":ee()}],"scroll-mr":[{"scroll-mr":ee()}],"scroll-mb":[{"scroll-mb":ee()}],"scroll-ml":[{"scroll-ml":ee()}],"scroll-p":[{"scroll-p":ee()}],"scroll-px":[{"scroll-px":ee()}],"scroll-py":[{"scroll-py":ee()}],"scroll-ps":[{"scroll-ps":ee()}],"scroll-pe":[{"scroll-pe":ee()}],"scroll-pt":[{"scroll-pt":ee()}],"scroll-pr":[{"scroll-pr":ee()}],"scroll-pb":[{"scroll-pb":ee()}],"scroll-pl":[{"scroll-pl":ee()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",he]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[Ht,on,Lo]}],stroke:[{stroke:[r,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const ov=zg(rv);function Ee(...r){return ov(Rg(r))}const zo=r=>r.split(" ").map(i=>i[0]).join(""),Uo=r=>{const i={month:"short",day:"numeric"};return new Date(r).toLocaleDateString("es-ES",i)},Bo=r=>{const i={hour:"numeric",minute:"numeric",hour12:!0};return new Date(r).toLocaleTimeString("en-US",i)},Vo=h.forwardRef(({className:r,...i},a)=>g.jsx(Ju,{ref:a,className:Ee("relative flex h-[48px] w-[48px] shrink-0 overflow-hidden rounded-[4px]",r),...i}));Vo.displayName=Ju.displayName;const Wo=h.forwardRef(({className:r,...i},a)=>g.jsx(Zu,{ref:a,className:Ee("aspect-square h-full w-full",r),...i}));Wo.displayName=Zu.displayName;const Dr=h.forwardRef(({className:r,...i},a)=>g.jsx(qu,{ref:a,className:Ee("flex h-full w-full items-center justify-center rounded-[4px] bg-red-200 border-[0.5px] text-red-600 font-bold border-gray-400",r),...i}));Dr.displayName=qu.displayName;function lc(r){var i,a,l="";if(typeof r=="string"||typeof r=="number")l+=r;else if(typeof r=="object")if(Array.isArray(r))for(i=0;i<r.length;i++)r[i]&&(a=lc(r[i]))&&(l&&(l+=" "),l+=a);else for(i in r)r[i]&&(l&&(l+=" "),l+=i);return l}function iv(){for(var r,i,a=0,l="";a<arguments.length;)(r=arguments[a++])&&(i=lc(r))&&(l&&(l+=" "),l+=i);return l}const uc=r=>typeof r=="boolean"?"".concat(r):r===0?"0":r,cc=iv,za=(r,i)=>a=>{var l;if(i?.variants==null)return cc(r,a?.class,a?.className);const{variants:c,defaultVariants:d}=i,m=Object.keys(c).map(v=>{const C=a?.[v],y=d?.[v];if(C===null)return null;const S=uc(C)||uc(y);return c[v][S]}),p=a&&Object.entries(a).reduce((v,C)=>{let[y,S]=C;return S===void 0||(v[y]=S),v},{}),w=i==null||(l=i.compoundVariants)===null||l===void 0?void 0:l.reduce((v,C)=>{let{class:y,className:S,...E}=C;return Object.entries(E).every(N=>{let[x,k]=N;return Array.isArray(k)?k.includes({...d,...p}[x]):{...d,...p}[x]===k})?[...v,y,S]:v},[]);return cc(r,m,w,a?.class,a?.className)},av=za("inline-flex items-center w-fit justify-center gap-[8px] whitespace-nowrap rounded-[4px] text-[16px] font-[700] border-[1px] ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none ease-in-out active:scale-[0.98] disabled:opacity-50",{variants:{variant:{default:"bg-[#ffe066] hover:bg-[#fab005] border-[#fab005]",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-[34px] w-[34px] rounded-[8px]"}},defaultVariants:{variant:"default",size:"default"}}),_t=h.forwardRef(({className:r,variant:i,size:a,asChild:l=!1,...c},d)=>{const m=l?Xn:"button";return g.jsx(m,{className:Ee(av({variant:i,size:a,className:r})),ref:d,...c})});_t.displayName="Button";const dc=h.forwardRef(({className:r,type:i,...a},l)=>g.jsx("input",{type:i,className:Ee("flex h-[40px] w-full rounded-[4px] border border-input bg-background px-[16px] py-[8px] text-[16px] ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",r),ref:l,...a}));dc.displayName="Input";const Le=({icon:r,className:i})=>g.jsx(g.Fragment,{children:g.jsx("div",{className:Ee("icon",i),children:r})}),sv=za("inline-flex items-center rounded-full border px-2.5 py-0.5 text-[14px] font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",accents:"border-transparent bg-[#845EF7] text-white",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Ua({className:r,variant:i,...a}){return g.jsx("div",{className:Ee(sv({variant:i}),r),...a})}var Ba="Progress",Va=100,[lv,u2]=Wt(Ba),[uv,cv]=lv(Ba),fc=h.forwardRef((r,i)=>{const{__scopeProgress:a,value:l=null,max:c,getValueLabel:d=dv,...m}=r;(c||c===0)&&!gc(c)&&console.error(fv(`${c}`,"Progress"));const p=gc(c)?c:Va;l!==null&&!vc(l,p)&&console.error(pv(`${l}`,"Progress"));const w=vc(l,p)?l:null,v=Ho(w)?d(w,p):void 0;return g.jsx(uv,{scope:a,value:w,max:p,children:g.jsx(Se.div,{"aria-valuemax":p,"aria-valuemin":0,"aria-valuenow":Ho(w)?w:void 0,"aria-valuetext":v,role:"progressbar","data-state":hc(w,p),"data-value":w??void 0,"data-max":p,...m,ref:i})})});fc.displayName=Ba;var pc="ProgressIndicator",mc=h.forwardRef((r,i)=>{const{__scopeProgress:a,...l}=r,c=cv(pc,a);return g.jsx(Se.div,{"data-state":hc(c.value,c.max),"data-value":c.value??void 0,"data-max":c.max,...l,ref:i})});mc.displayName=pc;function dv(r,i){return`${Math.round(r/i*100)}%`}function hc(r,i){return r==null?"indeterminate":r===i?"complete":"loading"}function Ho(r){return typeof r=="number"}function gc(r){return Ho(r)&&!isNaN(r)&&r>0}function vc(r,i){return Ho(r)&&!isNaN(r)&&r<=i&&r>=0}function fv(r,i){return`Invalid prop \`max\` of value \`${r}\` supplied to \`${i}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Va}\`.`}function pv(r,i){return`Invalid prop \`value\` of value \`${r}\` supplied to \`${i}\`. The \`value\` prop must be:
  - a positive number
  - less than the value passed to \`max\` (or ${Va} if no \`max\` prop is set)
  - \`null\` or \`undefined\` if the progress is indeterminate.

Defaulting to \`null\`.`}var wc=fc,mv=mc;const yc=h.forwardRef(({className:r,value:i,...a},l)=>g.jsx(wc,{ref:l,className:Ee("relative h-[12px] w-full overflow-hidden rounded-full bg-secondary",r),...a,children:g.jsx(mv,{className:"h-full w-full flex-1 bg-[#ffe066] transition-all",style:{transform:`translateX(-${100-(i||0)}%)`}})}));yc.displayName=wc.displayName;const hv=({onRecord:r})=>{const[i,a]=h.useState(""),[l,c]=h.useState(!1),[d,m]=h.useState(0),p=h.useRef(null),w=h.useRef(null),v=h.useRef([]),C=45;h.useEffect(()=>{let x;return l?x=setInterval(()=>{m(k=>{const M=k+1;return M>=C?(S(),clearInterval(x),C):M})},1e3):m(0),()=>clearInterval(x)},[l]);const y=async()=>{try{const x=await navigator.mediaDevices.getUserMedia({audio:!0});p.current=x,w.current=new MediaRecorder(x),w.current.ondataavailable=k=>{k.data.size>0&&v.current.push(k.data)},w.current.onstop=()=>{const k=new Blob(v.current,{type:"audio/webm"}),M=URL.createObjectURL(k);a(M),r(k),v.current=[]},w.current.start(),c(!0)}catch(x){console.error("Error accessing the microphone: ",x)}},S=()=>{w.current&&w.current.state==="recording"&&(w.current.stop(),c(!1)),p.current&&p.current.getTracks().forEach(x=>x.stop())},E=()=>{m(0),c(!1),r("clear"),a("")},N=()=>{w.current&&w.current.state==="recording"&&(w.current.stop(),c(!1)),p.current&&p.current.getTracks().forEach(x=>x.stop()),r(null),a("")};return g.jsxs("div",{className:"flex w-full gap-[8px] items-center",children:[i&&g.jsx("audio",{className:"w-full",controls:!0,src:i}),!i&&g.jsxs("div",{className:"flex flex-col flex-1  gap-[8px] ",children:[g.jsxs("p",{children:["El tiempo de grabación tiene un limite máximo de 45 segundos... ",g.jsxs("span",{children:[d,"s / ",C,"s"]})]}),g.jsx(yc,{value:d,max:C,className:"w-full"})]}),g.jsxs("div",{className:"flex gap-[8px]",children:[!l&&!i&&g.jsx(_t,{type:"button",variant:"outline",size:"icon",onClick:y,children:g.jsx(Le,{icon:"play_circle",className:"text-[20px]"})}),l&&!i&&g.jsx(_t,{type:"button",variant:"outline",size:"icon",onClick:S,children:g.jsx(Le,{icon:"stop_circle",className:"text-[20px]"})}),!l&&i&&g.jsx(_t,{type:"button",variant:"outline",size:"icon",onClick:E,children:g.jsx(Le,{icon:"ink_eraser",className:"text-[20px]"})}),g.jsx(_t,{type:"button",variant:"outline",size:"icon",onClick:N,children:g.jsx(Le,{icon:"close",className:"text-[20px]"})})]})]})},xc=h.forwardRef(({className:r,...i},a)=>g.jsx("textarea",{className:Ee("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-[16px] ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#7048E8] focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50",r),ref:a,...i}));xc.displayName="Textarea";const gv=1,vv=1e6;let Wa=0;function wv(){return Wa=(Wa+1)%Number.MAX_SAFE_INTEGER,Wa.toString()}const Ha=new Map,bc=r=>{if(Ha.has(r))return;const i=setTimeout(()=>{Ha.delete(r),Fr({type:"REMOVE_TOAST",toastId:r})},vv);Ha.set(r,i)},yv=(r,i)=>{switch(i.type){case"ADD_TOAST":return{...r,toasts:[i.toast,...r.toasts].slice(0,gv)};case"UPDATE_TOAST":return{...r,toasts:r.toasts.map(a=>a.id===i.toast.id?{...a,...i.toast}:a)};case"DISMISS_TOAST":{const{toastId:a}=i;return a?bc(a):r.toasts.forEach(l=>{bc(l.id)}),{...r,toasts:r.toasts.map(l=>l.id===a||a===void 0?{...l,open:!1}:l)}}case"REMOVE_TOAST":return i.toastId===void 0?{...r,toasts:[]}:{...r,toasts:r.toasts.filter(a=>a.id!==i.toastId)}}},$o=[];let Ko={toasts:[]};function Fr(r){Ko=yv(Ko,r),$o.forEach(i=>{i(Ko)})}function xv({...r}){const i=wv(),a=c=>Fr({type:"UPDATE_TOAST",toast:{...c,id:i}}),l=()=>Fr({type:"DISMISS_TOAST",toastId:i});return Fr({type:"ADD_TOAST",toast:{...r,id:i,open:!0,onOpenChange:c=>{c||l()}}}),{id:i,dismiss:l,update:a}}function Cc(){const[r,i]=h.useState(Ko);return h.useEffect(()=>($o.push(i),()=>{const a=$o.indexOf(i);a>-1&&$o.splice(a,1)}),[r]),{...r,toast:xv,dismiss:a=>Fr({type:"DISMISS_TOAST",toastId:a})}}const $a=12,Lr=({className:r,parentMessageId:i,isPinned:a,hidden:l})=>{const c=h.useRef(null),{addMessage:d,author:m,isLoading:p}=h.useContext(Vt),{toast:w}=Cc(),[v,C]=h.useState(!1),[y,S]=h.useState({description:"",documents:[],url:"",parent:i||""});h.useEffect(()=>{S({...y,parent:i||""})},[]);const E=$=>{S({...y,description:$.target.value})},N=async $=>{$.preventDefault();const W={description:y.description};y.url&&(W.url=y.url),i&&(W.parent=i),y.documents&&y.documents.length>0&&(W.document=await U(y.documents[0]),W.documentName=y.documents[0].name),d(W,a),z(),C(!1)},x=()=>{c.current&&c.current.click()},k=$=>{const W=$.target.files;if(!W)return;const J=Array.from(W),ie=J.filter(ae=>ae.size>$a*1e6);if(ie.length>0){const ae=ie.reduce((ce,ee)=>(ce+=`${ee.name}, `,ce),"");console.error(`El archivo '${ae}' no puede superar ${$a}MB`),w({title:"Error",description:`El archivo '${ae}' no puede superar ${$a}MB`,variant:"negative"});return}S({...y,documents:J})},M=$=>{if(!y.documents)return;const W=y.documents.filter((J,ie)=>ie!==$);S({...y,documents:W})},I=()=>{C(!v)},F=async $=>{if($==="clear"){z();return}if($===null){I(),z();return}const W=await U($);S({description:"Nota de voz",documents:[],url:W,parent:i||""})},z=()=>{S({description:"",documents:[],url:"",parent:i||""}),c.current&&c.current.value&&(c.current.value="")},U=$=>new Promise(W=>{const J=new FileReader;J.readAsDataURL($),J.onloadend=function(){const ie=J.result;W(ie)}});if(!l)return g.jsxs("form",{className:Ee("flex border  bg-white p-[16px] rounded-[8px] gap-[8px] flex-col",r),onSubmit:N,children:[g.jsxs("div",{className:"flex gap-[8px] items-center ",children:[g.jsxs(Vo,{children:[g.jsx(Wo,{src:m.avatar,alt:m.name}),g.jsx(Dr,{children:zo(m.name)})]}),v?g.jsx(hv,{onRecord:F}):g.jsx(xc,{placeholder:"Escribe un mensaje",value:y.description,onInput:E,className:"resize-none"}),g.jsxs("div",{className:"actions flex gap-2 items-center",children:[!v&&g.jsxs(g.Fragment,{children:[g.jsx("input",{type:"file",id:"file",style:{display:"none"},ref:c,onChange:k}),g.jsx(_t,{type:"button",variant:"outline",size:"icon",onClick:x,children:g.jsx(Le,{icon:"upload_file",className:"text-[20px]"})}),g.jsx(_t,{type:"button",variant:"outline",size:"icon",onClick:I,children:g.jsx(Le,{icon:"mic",className:"text-[20px]"})})]}),g.jsxs(_t,{type:"submit",size:"icon",disabled:!y.description||p,children:[p&&g.jsx(Le,{icon:"sync",className:"animate-spin text-[20px]"}),!p&&g.jsx(Le,{icon:"send",className:"text-[20px]"})]})]})]}),y.documents&&y.documents.length>0&&g.jsx("div",{children:y.documents.map(($,W)=>g.jsxs(Ua,{variant:"secondary",className:"cursor-pointer",onClick:()=>M(W),children:[$.name," ",g.jsx(Le,{icon:"close",className:"ml-[8px] text-[14px] font-bold"})]},W))})]})};function me(r,i,{checkForDefaultPrevented:a=!0}={}){return function(c){if(r?.(c),a===!1||!c.defaultPrevented)return i?.(c)}}function Go({prop:r,defaultProp:i,onChange:a=()=>{}}){const[l,c]=bv({defaultProp:i,onChange:a}),d=r!==void 0,m=d?r:l,p=Ge(a),w=h.useCallback(v=>{if(d){const y=typeof v=="function"?v(r):v;y!==r&&p(y)}else c(v)},[d,r,c,p]);return[m,w]}function bv({defaultProp:r,onChange:i}){const a=h.useState(r),[l]=a,c=h.useRef(l),d=Ge(i);return h.useEffect(()=>{c.current!==l&&(d(l),c.current=l)},[l,c,d]),a}function Ka(r){const i=r+"CollectionProvider",[a,l]=Wt(i),[c,d]=a(i,{collectionRef:{current:null},itemMap:new Map}),m=E=>{const{scope:N,children:x}=E,k=Mt.useRef(null),M=Mt.useRef(new Map).current;return g.jsx(c,{scope:N,itemMap:M,collectionRef:k,children:x})};m.displayName=i;const p=r+"CollectionSlot",w=Mt.forwardRef((E,N)=>{const{scope:x,children:k}=E,M=d(p,x),I=He(N,M.collectionRef);return g.jsx(Xn,{ref:I,children:k})});w.displayName=p;const v=r+"CollectionItemSlot",C="data-radix-collection-item",y=Mt.forwardRef((E,N)=>{const{scope:x,children:k,...M}=E,I=Mt.useRef(null),F=He(N,I),z=d(v,x);return Mt.useEffect(()=>(z.itemMap.set(I,{ref:I,...M}),()=>void z.itemMap.delete(I))),g.jsx(Xn,{[C]:"",ref:F,children:k})});y.displayName=v;function S(E){const N=d(r+"CollectionConsumer",E);return Mt.useCallback(()=>{const k=N.collectionRef.current;if(!k)return[];const M=Array.from(k.querySelectorAll(`[${C}]`));return Array.from(N.itemMap.values()).sort((z,U)=>M.indexOf(z.ref.current)-M.indexOf(U.ref.current))},[N.collectionRef,N.itemMap])}return[{Provider:m,Slot:w,ItemSlot:y},S,l]}var Cv=h.createContext(void 0);function Sc(r){const i=h.useContext(Cv);return r||i||"ltr"}function Sv(r,i=globalThis?.document){const a=Ge(r);h.useEffect(()=>{const l=c=>{c.key==="Escape"&&a(c)};return i.addEventListener("keydown",l,{capture:!0}),()=>i.removeEventListener("keydown",l,{capture:!0})},[a,i])}var Ev="DismissableLayer",Ga="dismissableLayer.update",kv="dismissableLayer.pointerDownOutside",Rv="dismissableLayer.focusOutside",Ec,kc=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ya=h.forwardRef((r,i)=>{const{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:m,onDismiss:p,...w}=r,v=h.useContext(kc),[C,y]=h.useState(null),S=C?.ownerDocument??globalThis?.document,[,E]=h.useState({}),N=He(i,W=>y(W)),x=Array.from(v.layers),[k]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),M=x.indexOf(k),I=C?x.indexOf(C):-1,F=v.layersWithOutsidePointerEventsDisabled.size>0,z=I>=M,U=Pv(W=>{const J=W.target,ie=[...v.branches].some(ae=>ae.contains(J));!z||ie||(c?.(W),m?.(W),W.defaultPrevented||p?.())},S),$=Tv(W=>{const J=W.target;[...v.branches].some(ae=>ae.contains(J))||(d?.(W),m?.(W),W.defaultPrevented||p?.())},S);return Sv(W=>{I===v.layers.size-1&&(l?.(W),!W.defaultPrevented&&p&&(W.preventDefault(),p()))},S),h.useEffect(()=>{if(C)return a&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(Ec=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(C)),v.layers.add(C),Nc(),()=>{a&&v.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=Ec)}},[C,S,a,v]),h.useEffect(()=>()=>{C&&(v.layers.delete(C),v.layersWithOutsidePointerEventsDisabled.delete(C),Nc())},[C,v]),h.useEffect(()=>{const W=()=>E({});return document.addEventListener(Ga,W),()=>document.removeEventListener(Ga,W)},[]),g.jsx(Se.div,{...w,ref:N,style:{pointerEvents:F?z?"auto":"none":void 0,...r.style},onFocusCapture:me(r.onFocusCapture,$.onFocusCapture),onBlurCapture:me(r.onBlurCapture,$.onBlurCapture),onPointerDownCapture:me(r.onPointerDownCapture,U.onPointerDownCapture)})});Ya.displayName=Ev;var Nv="DismissableLayerBranch",Rc=h.forwardRef((r,i)=>{const a=h.useContext(kc),l=h.useRef(null),c=He(i,l);return h.useEffect(()=>{const d=l.current;if(d)return a.branches.add(d),()=>{a.branches.delete(d)}},[a.branches]),g.jsx(Se.div,{...r,ref:c})});Rc.displayName=Nv;function Pv(r,i=globalThis?.document){const a=Ge(r),l=h.useRef(!1),c=h.useRef(()=>{});return h.useEffect(()=>{const d=p=>{if(p.target&&!l.current){let w=function(){Pc(kv,a,v,{discrete:!0})};const v={originalEvent:p};p.pointerType==="touch"?(i.removeEventListener("click",c.current),c.current=w,i.addEventListener("click",c.current,{once:!0})):w()}else i.removeEventListener("click",c.current);l.current=!1},m=window.setTimeout(()=>{i.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(m),i.removeEventListener("pointerdown",d),i.removeEventListener("click",c.current)}},[i,a]),{onPointerDownCapture:()=>l.current=!0}}function Tv(r,i=globalThis?.document){const a=Ge(r),l=h.useRef(!1);return h.useEffect(()=>{const c=d=>{d.target&&!l.current&&Pc(Rv,a,{originalEvent:d},{discrete:!1})};return i.addEventListener("focusin",c),()=>i.removeEventListener("focusin",c)},[i,a]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function Nc(){const r=new CustomEvent(Ga);document.dispatchEvent(r)}function Pc(r,i,a,{discrete:l}){const c=a.originalEvent.target,d=new CustomEvent(r,{bubbles:!1,cancelable:!0,detail:a});i&&c.addEventListener(r,i,{once:!0}),l?Oa(c,d):c.dispatchEvent(d)}var Av=Ya,Mv=Rc,Qa=0;function _v(){h.useEffect(()=>{const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",r[0]??Tc()),document.body.insertAdjacentElement("beforeend",r[1]??Tc()),Qa++,()=>{Qa===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),Qa--}},[])}function Tc(){const r=document.createElement("span");return r.setAttribute("data-radix-focus-guard",""),r.tabIndex=0,r.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",r}var Xa="focusScope.autoFocusOnMount",Ja="focusScope.autoFocusOnUnmount",Ac={bubbles:!1,cancelable:!0},jv="FocusScope",Mc=h.forwardRef((r,i)=>{const{loop:a=!1,trapped:l=!1,onMountAutoFocus:c,onUnmountAutoFocus:d,...m}=r,[p,w]=h.useState(null),v=Ge(c),C=Ge(d),y=h.useRef(null),S=He(i,x=>w(x)),E=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(l){let x=function(F){if(E.paused||!p)return;const z=F.target;p.contains(z)?y.current=z:sn(y.current,{select:!0})},k=function(F){if(E.paused||!p)return;const z=F.relatedTarget;z!==null&&(p.contains(z)||sn(y.current,{select:!0}))},M=function(F){if(document.activeElement===document.body)for(const U of F)U.removedNodes.length>0&&sn(p)};document.addEventListener("focusin",x),document.addEventListener("focusout",k);const I=new MutationObserver(M);return p&&I.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",k),I.disconnect()}}},[l,p,E.paused]),h.useEffect(()=>{if(p){Ic.add(E);const x=document.activeElement;if(!p.contains(x)){const M=new CustomEvent(Xa,Ac);p.addEventListener(Xa,v),p.dispatchEvent(M),M.defaultPrevented||(Iv(zv(_c(p)),{select:!0}),document.activeElement===x&&sn(p))}return()=>{p.removeEventListener(Xa,v),setTimeout(()=>{const M=new CustomEvent(Ja,Ac);p.addEventListener(Ja,C),p.dispatchEvent(M),M.defaultPrevented||sn(x??document.body,{select:!0}),p.removeEventListener(Ja,C),Ic.remove(E)},0)}}},[p,v,C,E]);const N=h.useCallback(x=>{if(!a&&!l||E.paused)return;const k=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,M=document.activeElement;if(k&&M){const I=x.currentTarget,[F,z]=Ov(I);F&&z?!x.shiftKey&&M===z?(x.preventDefault(),a&&sn(F,{select:!0})):x.shiftKey&&M===F&&(x.preventDefault(),a&&sn(z,{select:!0})):M===I&&x.preventDefault()}},[a,l,E.paused]);return g.jsx(Se.div,{tabIndex:-1,...m,ref:S,onKeyDown:N})});Mc.displayName=jv;function Iv(r,{select:i=!1}={}){const a=document.activeElement;for(const l of r)if(sn(l,{select:i}),document.activeElement!==a)return}function Ov(r){const i=_c(r),a=jc(i,r),l=jc(i.reverse(),r);return[a,l]}function _c(r){const i=[],a=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const c=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||c?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)i.push(a.currentNode);return i}function jc(r,i){for(const a of r)if(!Dv(a,{upTo:i}))return a}function Dv(r,{upTo:i}){if(getComputedStyle(r).visibility==="hidden")return!0;for(;r;){if(i!==void 0&&r===i)return!1;if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}function Fv(r){return r instanceof HTMLInputElement&&"select"in r}function sn(r,{select:i=!1}={}){if(r&&r.focus){const a=document.activeElement;r.focus({preventScroll:!0}),r!==a&&Fv(r)&&i&&r.select()}}var Ic=Lv();function Lv(){let r=[];return{add(i){const a=r[0];i!==a&&a?.pause(),r=Oc(r,i),r.unshift(i)},remove(i){r=Oc(r,i),r[0]?.resume()}}}function Oc(r,i){const a=[...r],l=a.indexOf(i);return l!==-1&&a.splice(l,1),a}function zv(r){return r.filter(i=>i.tagName!=="A")}var Uv=tg.useId||(()=>{}),Bv=0;function Yo(r){const[i,a]=h.useState(Uv());return Ct(()=>{a(l=>l??String(Bv++))},[r]),i?`radix-${i}`:""}const Vv=["top","right","bottom","left"],jt=Math.min,ut=Math.max,Qo=Math.round,Xo=Math.floor,ln=r=>({x:r,y:r}),Wv={left:"right",right:"left",bottom:"top",top:"bottom"},Hv={start:"end",end:"start"};function Za(r,i,a){return ut(r,jt(i,a))}function $t(r,i){return typeof r=="function"?r(i):r}function Kt(r){return r.split("-")[0]}function Zn(r){return r.split("-")[1]}function qa(r){return r==="x"?"y":"x"}function es(r){return r==="y"?"height":"width"}function un(r){return["top","bottom"].includes(Kt(r))?"y":"x"}function ts(r){return qa(un(r))}function $v(r,i,a){a===void 0&&(a=!1);const l=Zn(r),c=ts(r),d=es(c);let m=c==="x"?l===(a?"end":"start")?"right":"left":l==="start"?"bottom":"top";return i.reference[d]>i.floating[d]&&(m=Jo(m)),[m,Jo(m)]}function Kv(r){const i=Jo(r);return[ns(r),i,ns(i)]}function ns(r){return r.replace(/start|end/g,i=>Hv[i])}function Gv(r,i,a){const l=["left","right"],c=["right","left"],d=["top","bottom"],m=["bottom","top"];switch(r){case"top":case"bottom":return a?i?c:l:i?l:c;case"left":case"right":return i?d:m;default:return[]}}function Yv(r,i,a,l){const c=Zn(r);let d=Gv(Kt(r),a==="start",l);return c&&(d=d.map(m=>m+"-"+c),i&&(d=d.concat(d.map(ns)))),d}function Jo(r){return r.replace(/left|right|bottom|top/g,i=>Wv[i])}function Qv(r){return{top:0,right:0,bottom:0,left:0,...r}}function Dc(r){return typeof r!="number"?Qv(r):{top:r,right:r,bottom:r,left:r}}function Zo(r){const{x:i,y:a,width:l,height:c}=r;return{width:l,height:c,top:a,left:i,right:i+l,bottom:a+c,x:i,y:a}}function Fc(r,i,a){let{reference:l,floating:c}=r;const d=un(i),m=ts(i),p=es(m),w=Kt(i),v=d==="y",C=l.x+l.width/2-c.width/2,y=l.y+l.height/2-c.height/2,S=l[p]/2-c[p]/2;let E;switch(w){case"top":E={x:C,y:l.y-c.height};break;case"bottom":E={x:C,y:l.y+l.height};break;case"right":E={x:l.x+l.width,y};break;case"left":E={x:l.x-c.width,y};break;default:E={x:l.x,y:l.y}}switch(Zn(i)){case"start":E[m]-=S*(a&&v?-1:1);break;case"end":E[m]+=S*(a&&v?-1:1);break}return E}const Xv=async(r,i,a)=>{const{placement:l="bottom",strategy:c="absolute",middleware:d=[],platform:m}=a,p=d.filter(Boolean),w=await(m.isRTL==null?void 0:m.isRTL(i));let v=await m.getElementRects({reference:r,floating:i,strategy:c}),{x:C,y}=Fc(v,l,w),S=l,E={},N=0;for(let x=0;x<p.length;x++){const{name:k,fn:M}=p[x],{x:I,y:F,data:z,reset:U}=await M({x:C,y,initialPlacement:l,placement:S,strategy:c,middlewareData:E,rects:v,platform:m,elements:{reference:r,floating:i}});C=I??C,y=F??y,E={...E,[k]:{...E[k],...z}},U&&N<=50&&(N++,typeof U=="object"&&(U.placement&&(S=U.placement),U.rects&&(v=U.rects===!0?await m.getElementRects({reference:r,floating:i,strategy:c}):U.rects),{x:C,y}=Fc(v,S,w)),x=-1)}return{x:C,y,placement:S,strategy:c,middlewareData:E}};async function zr(r,i){var a;i===void 0&&(i={});const{x:l,y:c,platform:d,rects:m,elements:p,strategy:w}=r,{boundary:v="clippingAncestors",rootBoundary:C="viewport",elementContext:y="floating",altBoundary:S=!1,padding:E=0}=$t(i,r),N=Dc(E),k=p[S?y==="floating"?"reference":"floating":y],M=Zo(await d.getClippingRect({element:(a=await(d.isElement==null?void 0:d.isElement(k)))==null||a?k:k.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(p.floating)),boundary:v,rootBoundary:C,strategy:w})),I=y==="floating"?{x:l,y:c,width:m.floating.width,height:m.floating.height}:m.reference,F=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p.floating)),z=await(d.isElement==null?void 0:d.isElement(F))?await(d.getScale==null?void 0:d.getScale(F))||{x:1,y:1}:{x:1,y:1},U=Zo(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:I,offsetParent:F,strategy:w}):I);return{top:(M.top-U.top+N.top)/z.y,bottom:(U.bottom-M.bottom+N.bottom)/z.y,left:(M.left-U.left+N.left)/z.x,right:(U.right-M.right+N.right)/z.x}}const Jv=r=>({name:"arrow",options:r,async fn(i){const{x:a,y:l,placement:c,rects:d,platform:m,elements:p,middlewareData:w}=i,{element:v,padding:C=0}=$t(r,i)||{};if(v==null)return{};const y=Dc(C),S={x:a,y:l},E=ts(c),N=es(E),x=await m.getDimensions(v),k=E==="y",M=k?"top":"left",I=k?"bottom":"right",F=k?"clientHeight":"clientWidth",z=d.reference[N]+d.reference[E]-S[E]-d.floating[N],U=S[E]-d.reference[E],$=await(m.getOffsetParent==null?void 0:m.getOffsetParent(v));let W=$?$[F]:0;(!W||!await(m.isElement==null?void 0:m.isElement($)))&&(W=p.floating[F]||d.floating[N]);const J=z/2-U/2,ie=W/2-x[N]/2-1,ae=jt(y[M],ie),ce=jt(y[I],ie),ee=ae,ge=W-x[N]-ce,X=W/2-x[N]/2+J,Z=Za(ee,X,ge),Y=!w.arrow&&Zn(c)!=null&&X!==Z&&d.reference[N]/2-(X<ee?ae:ce)-x[N]/2<0,G=Y?X<ee?X-ee:X-ge:0;return{[E]:S[E]+G,data:{[E]:Z,centerOffset:X-Z-G,...Y&&{alignmentOffset:G}},reset:Y}}}),Zv=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(i){var a,l;const{placement:c,middlewareData:d,rects:m,initialPlacement:p,platform:w,elements:v}=i,{mainAxis:C=!0,crossAxis:y=!0,fallbackPlacements:S,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:x=!0,...k}=$t(r,i);if((a=d.arrow)!=null&&a.alignmentOffset)return{};const M=Kt(c),I=un(p),F=Kt(p)===p,z=await(w.isRTL==null?void 0:w.isRTL(v.floating)),U=S||(F||!x?[Jo(p)]:Kv(p)),$=N!=="none";!S&&$&&U.push(...Yv(p,x,N,z));const W=[p,...U],J=await zr(i,k),ie=[];let ae=((l=d.flip)==null?void 0:l.overflows)||[];if(C&&ie.push(J[M]),y){const X=$v(c,m,z);ie.push(J[X[0]],J[X[1]])}if(ae=[...ae,{placement:c,overflows:ie}],!ie.every(X=>X<=0)){var ce,ee;const X=(((ce=d.flip)==null?void 0:ce.index)||0)+1,Z=W[X];if(Z)return{data:{index:X,overflows:ae},reset:{placement:Z}};let Y=(ee=ae.filter(G=>G.overflows[0]<=0).sort((G,D)=>G.overflows[1]-D.overflows[1])[0])==null?void 0:ee.placement;if(!Y)switch(E){case"bestFit":{var ge;const G=(ge=ae.filter(D=>{if($){const O=un(D.placement);return O===I||O==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(O=>O>0).reduce((O,Q)=>O+Q,0)]).sort((D,O)=>D[1]-O[1])[0])==null?void 0:ge[0];G&&(Y=G);break}case"initialPlacement":Y=p;break}if(c!==Y)return{reset:{placement:Y}}}return{}}}};function Lc(r,i){return{top:r.top-i.height,right:r.right-i.width,bottom:r.bottom-i.height,left:r.left-i.width}}function zc(r){return Vv.some(i=>r[i]>=0)}const qv=function(r){return r===void 0&&(r={}),{name:"hide",options:r,async fn(i){const{rects:a}=i,{strategy:l="referenceHidden",...c}=$t(r,i);switch(l){case"referenceHidden":{const d=await zr(i,{...c,elementContext:"reference"}),m=Lc(d,a.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:zc(m)}}}case"escaped":{const d=await zr(i,{...c,altBoundary:!0}),m=Lc(d,a.floating);return{data:{escapedOffsets:m,escaped:zc(m)}}}default:return{}}}}};async function e0(r,i){const{placement:a,platform:l,elements:c}=r,d=await(l.isRTL==null?void 0:l.isRTL(c.floating)),m=Kt(a),p=Zn(a),w=un(a)==="y",v=["left","top"].includes(m)?-1:1,C=d&&w?-1:1,y=$t(i,r);let{mainAxis:S,crossAxis:E,alignmentAxis:N}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return p&&typeof N=="number"&&(E=p==="end"?N*-1:N),w?{x:E*C,y:S*v}:{x:S*v,y:E*C}}const t0=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(i){var a,l;const{x:c,y:d,placement:m,middlewareData:p}=i,w=await e0(i,r);return m===((a=p.offset)==null?void 0:a.placement)&&(l=p.arrow)!=null&&l.alignmentOffset?{}:{x:c+w.x,y:d+w.y,data:{...w,placement:m}}}}},n0=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(i){const{x:a,y:l,placement:c}=i,{mainAxis:d=!0,crossAxis:m=!1,limiter:p={fn:k=>{let{x:M,y:I}=k;return{x:M,y:I}}},...w}=$t(r,i),v={x:a,y:l},C=await zr(i,w),y=un(Kt(c)),S=qa(y);let E=v[S],N=v[y];if(d){const k=S==="y"?"top":"left",M=S==="y"?"bottom":"right",I=E+C[k],F=E-C[M];E=Za(I,E,F)}if(m){const k=y==="y"?"top":"left",M=y==="y"?"bottom":"right",I=N+C[k],F=N-C[M];N=Za(I,N,F)}const x=p.fn({...i,[S]:E,[y]:N});return{...x,data:{x:x.x-a,y:x.y-l}}}}},r0=function(r){return r===void 0&&(r={}),{options:r,fn(i){const{x:a,y:l,placement:c,rects:d,middlewareData:m}=i,{offset:p=0,mainAxis:w=!0,crossAxis:v=!0}=$t(r,i),C={x:a,y:l},y=un(c),S=qa(y);let E=C[S],N=C[y];const x=$t(p,i),k=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(w){const F=S==="y"?"height":"width",z=d.reference[S]-d.floating[F]+k.mainAxis,U=d.reference[S]+d.reference[F]-k.mainAxis;E<z?E=z:E>U&&(E=U)}if(v){var M,I;const F=S==="y"?"width":"height",z=["top","left"].includes(Kt(c)),U=d.reference[y]-d.floating[F]+(z&&((M=m.offset)==null?void 0:M[y])||0)+(z?0:k.crossAxis),$=d.reference[y]+d.reference[F]+(z?0:((I=m.offset)==null?void 0:I[y])||0)-(z?k.crossAxis:0);N<U?N=U:N>$&&(N=$)}return{[S]:E,[y]:N}}}},o0=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(i){const{placement:a,rects:l,platform:c,elements:d}=i,{apply:m=()=>{},...p}=$t(r,i),w=await zr(i,p),v=Kt(a),C=Zn(a),y=un(a)==="y",{width:S,height:E}=l.floating;let N,x;v==="top"||v==="bottom"?(N=v,x=C===(await(c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(x=v,N=C==="end"?"top":"bottom");const k=E-w.top-w.bottom,M=S-w.left-w.right,I=jt(E-w[N],k),F=jt(S-w[x],M),z=!i.middlewareData.shift;let U=I,$=F;if(y?$=C||z?jt(F,M):M:U=C||z?jt(I,k):k,z&&!C){const J=ut(w.left,0),ie=ut(w.right,0),ae=ut(w.top,0),ce=ut(w.bottom,0);y?$=S-2*(J!==0||ie!==0?J+ie:ut(w.left,w.right)):U=E-2*(ae!==0||ce!==0?ae+ce:ut(w.top,w.bottom))}await m({...i,availableWidth:$,availableHeight:U});const W=await c.getDimensions(d.floating);return S!==W.width||E!==W.height?{reset:{rects:!0}}:{}}}};function qn(r){return Uc(r)?(r.nodeName||"").toLowerCase():"#document"}function ct(r){var i;return(r==null||(i=r.ownerDocument)==null?void 0:i.defaultView)||window}function Gt(r){var i;return(i=(Uc(r)?r.ownerDocument:r.document)||window.document)==null?void 0:i.documentElement}function Uc(r){return r instanceof Node||r instanceof ct(r).Node}function It(r){return r instanceof Element||r instanceof ct(r).Element}function Ot(r){return r instanceof HTMLElement||r instanceof ct(r).HTMLElement}function Bc(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof ct(r).ShadowRoot}function Ur(r){const{overflow:i,overflowX:a,overflowY:l,display:c}=St(r);return/auto|scroll|overlay|hidden|clip/.test(i+l+a)&&!["inline","contents"].includes(c)}function i0(r){return["table","td","th"].includes(qn(r))}function qo(r){return[":popover-open",":modal"].some(i=>{try{return r.matches(i)}catch{return!1}})}function rs(r){const i=os(),a=St(r);return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!i&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!i&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(l=>(a.willChange||"").includes(l))||["paint","layout","strict","content"].some(l=>(a.contain||"").includes(l))}function a0(r){let i=cn(r);for(;Ot(i)&&!er(i);){if(qo(i))return null;if(rs(i))return i;i=cn(i)}return null}function os(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function er(r){return["html","body","#document"].includes(qn(r))}function St(r){return ct(r).getComputedStyle(r)}function ei(r){return It(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function cn(r){if(qn(r)==="html")return r;const i=r.assignedSlot||r.parentNode||Bc(r)&&r.host||Gt(r);return Bc(i)?i.host:i}function Vc(r){const i=cn(r);return er(i)?r.ownerDocument?r.ownerDocument.body:r.body:Ot(i)&&Ur(i)?i:Vc(i)}function Br(r,i,a){var l;i===void 0&&(i=[]),a===void 0&&(a=!0);const c=Vc(r),d=c===((l=r.ownerDocument)==null?void 0:l.body),m=ct(c);return d?i.concat(m,m.visualViewport||[],Ur(c)?c:[],m.frameElement&&a?Br(m.frameElement):[]):i.concat(c,Br(c,[],a))}function Wc(r){const i=St(r);let a=parseFloat(i.width)||0,l=parseFloat(i.height)||0;const c=Ot(r),d=c?r.offsetWidth:a,m=c?r.offsetHeight:l,p=Qo(a)!==d||Qo(l)!==m;return p&&(a=d,l=m),{width:a,height:l,$:p}}function is(r){return It(r)?r:r.contextElement}function tr(r){const i=is(r);if(!Ot(i))return ln(1);const a=i.getBoundingClientRect(),{width:l,height:c,$:d}=Wc(i);let m=(d?Qo(a.width):a.width)/l,p=(d?Qo(a.height):a.height)/c;return(!m||!Number.isFinite(m))&&(m=1),(!p||!Number.isFinite(p))&&(p=1),{x:m,y:p}}const s0=ln(0);function Hc(r){const i=ct(r);return!os()||!i.visualViewport?s0:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function l0(r,i,a){return i===void 0&&(i=!1),!a||i&&a!==ct(r)?!1:i}function _n(r,i,a,l){i===void 0&&(i=!1),a===void 0&&(a=!1);const c=r.getBoundingClientRect(),d=is(r);let m=ln(1);i&&(l?It(l)&&(m=tr(l)):m=tr(r));const p=l0(d,a,l)?Hc(d):ln(0);let w=(c.left+p.x)/m.x,v=(c.top+p.y)/m.y,C=c.width/m.x,y=c.height/m.y;if(d){const S=ct(d),E=l&&It(l)?ct(l):l;let N=S,x=N.frameElement;for(;x&&l&&E!==N;){const k=tr(x),M=x.getBoundingClientRect(),I=St(x),F=M.left+(x.clientLeft+parseFloat(I.paddingLeft))*k.x,z=M.top+(x.clientTop+parseFloat(I.paddingTop))*k.y;w*=k.x,v*=k.y,C*=k.x,y*=k.y,w+=F,v+=z,N=ct(x),x=N.frameElement}}return Zo({width:C,height:y,x:w,y:v})}function u0(r){let{elements:i,rect:a,offsetParent:l,strategy:c}=r;const d=c==="fixed",m=Gt(l),p=i?qo(i.floating):!1;if(l===m||p&&d)return a;let w={scrollLeft:0,scrollTop:0},v=ln(1);const C=ln(0),y=Ot(l);if((y||!y&&!d)&&((qn(l)!=="body"||Ur(m))&&(w=ei(l)),Ot(l))){const S=_n(l);v=tr(l),C.x=S.x+l.clientLeft,C.y=S.y+l.clientTop}return{width:a.width*v.x,height:a.height*v.y,x:a.x*v.x-w.scrollLeft*v.x+C.x,y:a.y*v.y-w.scrollTop*v.y+C.y}}function c0(r){return Array.from(r.getClientRects())}function $c(r){return _n(Gt(r)).left+ei(r).scrollLeft}function d0(r){const i=Gt(r),a=ei(r),l=r.ownerDocument.body,c=ut(i.scrollWidth,i.clientWidth,l.scrollWidth,l.clientWidth),d=ut(i.scrollHeight,i.clientHeight,l.scrollHeight,l.clientHeight);let m=-a.scrollLeft+$c(r);const p=-a.scrollTop;return St(l).direction==="rtl"&&(m+=ut(i.clientWidth,l.clientWidth)-c),{width:c,height:d,x:m,y:p}}function f0(r,i){const a=ct(r),l=Gt(r),c=a.visualViewport;let d=l.clientWidth,m=l.clientHeight,p=0,w=0;if(c){d=c.width,m=c.height;const v=os();(!v||v&&i==="fixed")&&(p=c.offsetLeft,w=c.offsetTop)}return{width:d,height:m,x:p,y:w}}function p0(r,i){const a=_n(r,!0,i==="fixed"),l=a.top+r.clientTop,c=a.left+r.clientLeft,d=Ot(r)?tr(r):ln(1),m=r.clientWidth*d.x,p=r.clientHeight*d.y,w=c*d.x,v=l*d.y;return{width:m,height:p,x:w,y:v}}function Kc(r,i,a){let l;if(i==="viewport")l=f0(r,a);else if(i==="document")l=d0(Gt(r));else if(It(i))l=p0(i,a);else{const c=Hc(r);l={...i,x:i.x-c.x,y:i.y-c.y}}return Zo(l)}function Gc(r,i){const a=cn(r);return a===i||!It(a)||er(a)?!1:St(a).position==="fixed"||Gc(a,i)}function m0(r,i){const a=i.get(r);if(a)return a;let l=Br(r,[],!1).filter(p=>It(p)&&qn(p)!=="body"),c=null;const d=St(r).position==="fixed";let m=d?cn(r):r;for(;It(m)&&!er(m);){const p=St(m),w=rs(m);!w&&p.position==="fixed"&&(c=null),(d?!w&&!c:!w&&p.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||Ur(m)&&!w&&Gc(r,m))?l=l.filter(C=>C!==m):c=p,m=cn(m)}return i.set(r,l),l}function h0(r){let{element:i,boundary:a,rootBoundary:l,strategy:c}=r;const m=[...a==="clippingAncestors"?qo(i)?[]:m0(i,this._c):[].concat(a),l],p=m[0],w=m.reduce((v,C)=>{const y=Kc(i,C,c);return v.top=ut(y.top,v.top),v.right=jt(y.right,v.right),v.bottom=jt(y.bottom,v.bottom),v.left=ut(y.left,v.left),v},Kc(i,p,c));return{width:w.right-w.left,height:w.bottom-w.top,x:w.left,y:w.top}}function g0(r){const{width:i,height:a}=Wc(r);return{width:i,height:a}}function v0(r,i,a){const l=Ot(i),c=Gt(i),d=a==="fixed",m=_n(r,!0,d,i);let p={scrollLeft:0,scrollTop:0};const w=ln(0);if(l||!l&&!d)if((qn(i)!=="body"||Ur(c))&&(p=ei(i)),l){const y=_n(i,!0,d,i);w.x=y.x+i.clientLeft,w.y=y.y+i.clientTop}else c&&(w.x=$c(c));const v=m.left+p.scrollLeft-w.x,C=m.top+p.scrollTop-w.y;return{x:v,y:C,width:m.width,height:m.height}}function as(r){return St(r).position==="static"}function Yc(r,i){return!Ot(r)||St(r).position==="fixed"?null:i?i(r):r.offsetParent}function Qc(r,i){const a=ct(r);if(qo(r))return a;if(!Ot(r)){let c=cn(r);for(;c&&!er(c);){if(It(c)&&!as(c))return c;c=cn(c)}return a}let l=Yc(r,i);for(;l&&i0(l)&&as(l);)l=Yc(l,i);return l&&er(l)&&as(l)&&!rs(l)?a:l||a0(r)||a}const w0=async function(r){const i=this.getOffsetParent||Qc,a=this.getDimensions,l=await a(r.floating);return{reference:v0(r.reference,await i(r.floating),r.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function y0(r){return St(r).direction==="rtl"}const x0={convertOffsetParentRelativeRectToViewportRelativeRect:u0,getDocumentElement:Gt,getClippingRect:h0,getOffsetParent:Qc,getElementRects:w0,getClientRects:c0,getDimensions:g0,getScale:tr,isElement:It,isRTL:y0};function b0(r,i){let a=null,l;const c=Gt(r);function d(){var p;clearTimeout(l),(p=a)==null||p.disconnect(),a=null}function m(p,w){p===void 0&&(p=!1),w===void 0&&(w=1),d();const{left:v,top:C,width:y,height:S}=r.getBoundingClientRect();if(p||i(),!y||!S)return;const E=Xo(C),N=Xo(c.clientWidth-(v+y)),x=Xo(c.clientHeight-(C+S)),k=Xo(v),I={rootMargin:-E+"px "+-N+"px "+-x+"px "+-k+"px",threshold:ut(0,jt(1,w))||1};let F=!0;function z(U){const $=U[0].intersectionRatio;if($!==w){if(!F)return m();$?m(!1,$):l=setTimeout(()=>{m(!1,1e-7)},1e3)}F=!1}try{a=new IntersectionObserver(z,{...I,root:c.ownerDocument})}catch{a=new IntersectionObserver(z,I)}a.observe(r)}return m(!0),d}function C0(r,i,a,l){l===void 0&&(l={});const{ancestorScroll:c=!0,ancestorResize:d=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:w=!1}=l,v=is(r),C=c||d?[...v?Br(v):[],...Br(i)]:[];C.forEach(M=>{c&&M.addEventListener("scroll",a,{passive:!0}),d&&M.addEventListener("resize",a)});const y=v&&p?b0(v,a):null;let S=-1,E=null;m&&(E=new ResizeObserver(M=>{let[I]=M;I&&I.target===v&&E&&(E.unobserve(i),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var F;(F=E)==null||F.observe(i)})),a()}),v&&!w&&E.observe(v),E.observe(i));let N,x=w?_n(r):null;w&&k();function k(){const M=_n(r);x&&(M.x!==x.x||M.y!==x.y||M.width!==x.width||M.height!==x.height)&&a(),x=M,N=requestAnimationFrame(k)}return a(),()=>{var M;C.forEach(I=>{c&&I.removeEventListener("scroll",a),d&&I.removeEventListener("resize",a)}),y?.(),(M=E)==null||M.disconnect(),E=null,w&&cancelAnimationFrame(N)}}const S0=t0,E0=n0,k0=Zv,R0=o0,N0=qv,Xc=Jv,P0=r0,T0=(r,i,a)=>{const l=new Map,c={platform:x0,...a},d={...c.platform,_c:l};return Xv(r,i,{...c,platform:d})};var ti=typeof document<"u"?h.useLayoutEffect:h.useEffect;function ni(r,i){if(r===i)return!0;if(typeof r!=typeof i)return!1;if(typeof r=="function"&&r.toString()===i.toString())return!0;let a,l,c;if(r&&i&&typeof r=="object"){if(Array.isArray(r)){if(a=r.length,a!==i.length)return!1;for(l=a;l--!==0;)if(!ni(r[l],i[l]))return!1;return!0}if(c=Object.keys(r),a=c.length,a!==Object.keys(i).length)return!1;for(l=a;l--!==0;)if(!{}.hasOwnProperty.call(i,c[l]))return!1;for(l=a;l--!==0;){const d=c[l];if(!(d==="_owner"&&r.$$typeof)&&!ni(r[d],i[d]))return!1}return!0}return r!==r&&i!==i}function Jc(r){return typeof window>"u"?1:(r.ownerDocument.defaultView||window).devicePixelRatio||1}function Zc(r,i){const a=Jc(r);return Math.round(i*a)/a}function qc(r){const i=h.useRef(r);return ti(()=>{i.current=r}),i}function A0(r){r===void 0&&(r={});const{placement:i="bottom",strategy:a="absolute",middleware:l=[],platform:c,elements:{reference:d,floating:m}={},transform:p=!0,whileElementsMounted:w,open:v}=r,[C,y]=h.useState({x:0,y:0,strategy:a,placement:i,middlewareData:{},isPositioned:!1}),[S,E]=h.useState(l);ni(S,l)||E(l);const[N,x]=h.useState(null),[k,M]=h.useState(null),I=h.useCallback(G=>{G!==$.current&&($.current=G,x(G))},[]),F=h.useCallback(G=>{G!==W.current&&(W.current=G,M(G))},[]),z=d||N,U=m||k,$=h.useRef(null),W=h.useRef(null),J=h.useRef(C),ie=w!=null,ae=qc(w),ce=qc(c),ee=h.useCallback(()=>{if(!$.current||!W.current)return;const G={placement:i,strategy:a,middleware:S};ce.current&&(G.platform=ce.current),T0($.current,W.current,G).then(D=>{const O={...D,isPositioned:!0};ge.current&&!ni(J.current,O)&&(J.current=O,Qn.flushSync(()=>{y(O)}))})},[S,i,a,ce]);ti(()=>{v===!1&&J.current.isPositioned&&(J.current.isPositioned=!1,y(G=>({...G,isPositioned:!1})))},[v]);const ge=h.useRef(!1);ti(()=>(ge.current=!0,()=>{ge.current=!1}),[]),ti(()=>{if(z&&($.current=z),U&&(W.current=U),z&&U){if(ae.current)return ae.current(z,U,ee);ee()}},[z,U,ee,ae,ie]);const X=h.useMemo(()=>({reference:$,floating:W,setReference:I,setFloating:F}),[I,F]),Z=h.useMemo(()=>({reference:z,floating:U}),[z,U]),Y=h.useMemo(()=>{const G={position:a,left:0,top:0};if(!Z.floating)return G;const D=Zc(Z.floating,C.x),O=Zc(Z.floating,C.y);return p?{...G,transform:"translate("+D+"px, "+O+"px)",...Jc(Z.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:D,top:O}},[a,p,Z.floating,C.x,C.y]);return h.useMemo(()=>({...C,update:ee,refs:X,elements:Z,floatingStyles:Y}),[C,ee,X,Z,Y])}const M0=r=>{function i(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:r,fn(a){const{element:l,padding:c}=typeof r=="function"?r(a):r;return l&&i(l)?l.current!=null?Xc({element:l.current,padding:c}).fn(a):{}:l?Xc({element:l,padding:c}).fn(a):{}}}},_0=(r,i)=>({...S0(r),options:[r,i]}),j0=(r,i)=>({...E0(r),options:[r,i]}),I0=(r,i)=>({...P0(r),options:[r,i]}),O0=(r,i)=>({...k0(r),options:[r,i]}),D0=(r,i)=>({...R0(r),options:[r,i]}),F0=(r,i)=>({...N0(r),options:[r,i]}),L0=(r,i)=>({...M0(r),options:[r,i]});var z0="Arrow",ed=h.forwardRef((r,i)=>{const{children:a,width:l=10,height:c=5,...d}=r;return g.jsx(Se.svg,{...d,ref:i,width:l,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:r.asChild?a:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});ed.displayName=z0;var U0=ed;function B0(r){const[i,a]=h.useState(void 0);return Ct(()=>{if(r){a({width:r.offsetWidth,height:r.offsetHeight});const l=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const d=c[0];let m,p;if("borderBoxSize"in d){const w=d.borderBoxSize,v=Array.isArray(w)?w[0]:w;m=v.inlineSize,p=v.blockSize}else m=r.offsetWidth,p=r.offsetHeight;a({width:m,height:p})});return l.observe(r,{box:"border-box"}),()=>l.unobserve(r)}else a(void 0)},[r]),i}var ss="Popper",[td,nd]=Wt(ss),[V0,rd]=td(ss),od=r=>{const{__scopePopper:i,children:a}=r,[l,c]=h.useState(null);return g.jsx(V0,{scope:i,anchor:l,onAnchorChange:c,children:a})};od.displayName=ss;var id="PopperAnchor",ad=h.forwardRef((r,i)=>{const{__scopePopper:a,virtualRef:l,...c}=r,d=rd(id,a),m=h.useRef(null),p=He(i,m);return h.useEffect(()=>{d.onAnchorChange(l?.current||m.current)}),l?null:g.jsx(Se.div,{...c,ref:p})});ad.displayName=id;var ls="PopperContent",[W0,H0]=td(ls),sd=h.forwardRef((r,i)=>{const{__scopePopper:a,side:l="bottom",sideOffset:c=0,align:d="center",alignOffset:m=0,arrowPadding:p=0,avoidCollisions:w=!0,collisionBoundary:v=[],collisionPadding:C=0,sticky:y="partial",hideWhenDetached:S=!1,updatePositionStrategy:E="optimized",onPlaced:N,...x}=r,k=rd(ls,a),[M,I]=h.useState(null),F=He(i,pe=>I(pe)),[z,U]=h.useState(null),$=B0(z),W=$?.width??0,J=$?.height??0,ie=l+(d!=="center"?"-"+d:""),ae=typeof C=="number"?C:{top:0,right:0,bottom:0,left:0,...C},ce=Array.isArray(v)?v:[v],ee=ce.length>0,ge={padding:ae,boundary:ce.filter(K0),altBoundary:ee},{refs:X,floatingStyles:Z,placement:Y,isPositioned:G,middlewareData:D}=A0({strategy:"fixed",placement:ie,whileElementsMounted:(...pe)=>C0(...pe,{animationFrame:E==="always"}),elements:{reference:k.anchor},middleware:[_0({mainAxis:c+J,alignmentAxis:m}),w&&j0({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?I0():void 0,...ge}),w&&O0({...ge}),D0({...ge,apply:({elements:pe,rects:xe,availableWidth:Re,availableHeight:qe})=>{const{width:ar,height:bi}=xe.reference,Yt=pe.floating.style;Yt.setProperty("--radix-popper-available-width",`${Re}px`),Yt.setProperty("--radix-popper-available-height",`${qe}px`),Yt.setProperty("--radix-popper-anchor-width",`${ar}px`),Yt.setProperty("--radix-popper-anchor-height",`${bi}px`)}}),z&&L0({element:z,padding:p}),G0({arrowWidth:W,arrowHeight:J}),S&&F0({strategy:"referenceHidden",...ge})]}),[O,Q]=cd(Y),T=Ge(N);Ct(()=>{G&&T?.()},[G,T]);const L=D.arrow?.x,ue=D.arrow?.y,fe=D.arrow?.centerOffset!==0,[ye,ve]=h.useState();return Ct(()=>{M&&ve(window.getComputedStyle(M).zIndex)},[M]),g.jsx("div",{ref:X.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:G?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ye,"--radix-popper-transform-origin":[D.transformOrigin?.x,D.transformOrigin?.y].join(" "),...D.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:r.dir,children:g.jsx(W0,{scope:a,placedSide:O,onArrowChange:U,arrowX:L,arrowY:ue,shouldHideArrow:fe,children:g.jsx(Se.div,{"data-side":O,"data-align":Q,...x,ref:F,style:{...x.style,animation:G?void 0:"none"}})})})});sd.displayName=ls;var ld="PopperArrow",$0={top:"bottom",right:"left",bottom:"top",left:"right"},ud=h.forwardRef(function(i,a){const{__scopePopper:l,...c}=i,d=H0(ld,l),m=$0[d.placedSide];return g.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[m]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[d.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[d.placedSide],visibility:d.shouldHideArrow?"hidden":void 0},children:g.jsx(U0,{...c,ref:a,style:{...c.style,display:"block"}})})});ud.displayName=ld;function K0(r){return r!==null}var G0=r=>({name:"transformOrigin",options:r,fn(i){const{placement:a,rects:l,middlewareData:c}=i,m=c.arrow?.centerOffset!==0,p=m?0:r.arrowWidth,w=m?0:r.arrowHeight,[v,C]=cd(a),y={start:"0%",center:"50%",end:"100%"}[C],S=(c.arrow?.x??0)+p/2,E=(c.arrow?.y??0)+w/2;let N="",x="";return v==="bottom"?(N=m?y:`${S}px`,x=`${-w}px`):v==="top"?(N=m?y:`${S}px`,x=`${l.floating.height+w}px`):v==="right"?(N=`${-w}px`,x=m?y:`${E}px`):v==="left"&&(N=`${l.floating.width+w}px`,x=m?y:`${E}px`),{data:{x:N,y:x}}}});function cd(r){const[i,a="center"]=r.split("-");return[i,a]}var Y0=od,Q0=ad,X0=sd,J0=ud,Z0="Portal",us=h.forwardRef((r,i)=>{const{container:a,...l}=r,[c,d]=h.useState(!1);Ct(()=>d(!0),[]);const m=a||c&&globalThis?.document?.body;return m?ig.createPortal(g.jsx(Se.div,{...l,ref:i}),m):null});us.displayName=Z0;function q0(r,i){return h.useReducer((a,l)=>i[a][l]??a,r)}var jn=r=>{const{present:i,children:a}=r,l=ew(i),c=typeof a=="function"?a({present:l.isPresent}):h.Children.only(a),d=He(l.ref,tw(c));return typeof a=="function"||l.isPresent?h.cloneElement(c,{ref:d}):null};jn.displayName="Presence";function ew(r){const[i,a]=h.useState(),l=h.useRef({}),c=h.useRef(r),d=h.useRef("none"),m=r?"mounted":"unmounted",[p,w]=q0(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const v=ri(l.current);d.current=p==="mounted"?v:"none"},[p]),Ct(()=>{const v=l.current,C=c.current;if(C!==r){const S=d.current,E=ri(v);r?w("MOUNT"):E==="none"||v?.display==="none"?w("UNMOUNT"):w(C&&S!==E?"ANIMATION_OUT":"UNMOUNT"),c.current=r}},[r,w]),Ct(()=>{if(i){const v=y=>{const E=ri(l.current).includes(y.animationName);y.target===i&&E&&Qn.flushSync(()=>w("ANIMATION_END"))},C=y=>{y.target===i&&(d.current=ri(l.current))};return i.addEventListener("animationstart",C),i.addEventListener("animationcancel",v),i.addEventListener("animationend",v),()=>{i.removeEventListener("animationstart",C),i.removeEventListener("animationcancel",v),i.removeEventListener("animationend",v)}}else w("ANIMATION_END")},[i,w]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:h.useCallback(v=>{v&&(l.current=getComputedStyle(v)),a(v)},[])}}function ri(r){return r?.animationName||"none"}function tw(r){let i=Object.getOwnPropertyDescriptor(r.props,"ref")?.get,a=i&&"isReactWarning"in i&&i.isReactWarning;return a?r.ref:(i=Object.getOwnPropertyDescriptor(r,"ref")?.get,a=i&&"isReactWarning"in i&&i.isReactWarning,a?r.props.ref:r.props.ref||r.ref)}var cs="rovingFocusGroup.onEntryFocus",nw={bubbles:!1,cancelable:!0},oi="RovingFocusGroup",[ds,dd,rw]=Ka(oi),[ow,fd]=Wt(oi,[rw]),[iw,aw]=ow(oi),pd=h.forwardRef((r,i)=>g.jsx(ds.Provider,{scope:r.__scopeRovingFocusGroup,children:g.jsx(ds.Slot,{scope:r.__scopeRovingFocusGroup,children:g.jsx(sw,{...r,ref:i})})}));pd.displayName=oi;var sw=h.forwardRef((r,i)=>{const{__scopeRovingFocusGroup:a,orientation:l,loop:c=!1,dir:d,currentTabStopId:m,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:w,onEntryFocus:v,preventScrollOnEntryFocus:C=!1,...y}=r,S=h.useRef(null),E=He(i,S),N=Sc(d),[x=null,k]=Go({prop:m,defaultProp:p,onChange:w}),[M,I]=h.useState(!1),F=Ge(v),z=dd(a),U=h.useRef(!1),[$,W]=h.useState(0);return h.useEffect(()=>{const J=S.current;if(J)return J.addEventListener(cs,F),()=>J.removeEventListener(cs,F)},[F]),g.jsx(iw,{scope:a,orientation:l,dir:N,loop:c,currentTabStopId:x,onItemFocus:h.useCallback(J=>k(J),[k]),onItemShiftTab:h.useCallback(()=>I(!0),[]),onFocusableItemAdd:h.useCallback(()=>W(J=>J+1),[]),onFocusableItemRemove:h.useCallback(()=>W(J=>J-1),[]),children:g.jsx(Se.div,{tabIndex:M||$===0?-1:0,"data-orientation":l,...y,ref:E,style:{outline:"none",...r.style},onMouseDown:me(r.onMouseDown,()=>{U.current=!0}),onFocus:me(r.onFocus,J=>{const ie=!U.current;if(J.target===J.currentTarget&&ie&&!M){const ae=new CustomEvent(cs,nw);if(J.currentTarget.dispatchEvent(ae),!ae.defaultPrevented){const ce=z().filter(Y=>Y.focusable),ee=ce.find(Y=>Y.active),ge=ce.find(Y=>Y.id===x),Z=[ee,ge,...ce].filter(Boolean).map(Y=>Y.ref.current);gd(Z,C)}}U.current=!1}),onBlur:me(r.onBlur,()=>I(!1))})})}),md="RovingFocusGroupItem",hd=h.forwardRef((r,i)=>{const{__scopeRovingFocusGroup:a,focusable:l=!0,active:c=!1,tabStopId:d,...m}=r,p=Yo(),w=d||p,v=aw(md,a),C=v.currentTabStopId===w,y=dd(a),{onFocusableItemAdd:S,onFocusableItemRemove:E}=v;return h.useEffect(()=>{if(l)return S(),()=>E()},[l,S,E]),g.jsx(ds.ItemSlot,{scope:a,id:w,focusable:l,active:c,children:g.jsx(Se.span,{tabIndex:C?0:-1,"data-orientation":v.orientation,...m,ref:i,onMouseDown:me(r.onMouseDown,N=>{l?v.onItemFocus(w):N.preventDefault()}),onFocus:me(r.onFocus,()=>v.onItemFocus(w)),onKeyDown:me(r.onKeyDown,N=>{if(N.key==="Tab"&&N.shiftKey){v.onItemShiftTab();return}if(N.target!==N.currentTarget)return;const x=cw(N,v.orientation,v.dir);if(x!==void 0){if(N.metaKey||N.ctrlKey||N.altKey||N.shiftKey)return;N.preventDefault();let M=y().filter(I=>I.focusable).map(I=>I.ref.current);if(x==="last")M.reverse();else if(x==="prev"||x==="next"){x==="prev"&&M.reverse();const I=M.indexOf(N.currentTarget);M=v.loop?dw(M,I+1):M.slice(I+1)}setTimeout(()=>gd(M))}})})})});hd.displayName=md;var lw={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function uw(r,i){return i!=="rtl"?r:r==="ArrowLeft"?"ArrowRight":r==="ArrowRight"?"ArrowLeft":r}function cw(r,i,a){const l=uw(r.key,a);if(!(i==="vertical"&&["ArrowLeft","ArrowRight"].includes(l))&&!(i==="horizontal"&&["ArrowUp","ArrowDown"].includes(l)))return lw[l]}function gd(r,i=!1){const a=document.activeElement;for(const l of r)if(l===a||(l.focus({preventScroll:i}),document.activeElement!==a))return}function dw(r,i){return r.map((a,l)=>r[(i+l)%r.length])}var fw=pd,pw=hd,mw=function(r){if(typeof document>"u")return null;var i=Array.isArray(r)?r[0]:r;return i.ownerDocument.body},nr=new WeakMap,ii=new WeakMap,ai={},fs=0,vd=function(r){return r&&(r.host||vd(r.parentNode))},hw=function(r,i){return i.map(function(a){if(r.contains(a))return a;var l=vd(a);return l&&r.contains(l)?l:(console.error("aria-hidden",a,"in not contained inside",r,". Doing nothing"),null)}).filter(function(a){return!!a})},gw=function(r,i,a,l){var c=hw(i,Array.isArray(r)?r:[r]);ai[a]||(ai[a]=new WeakMap);var d=ai[a],m=[],p=new Set,w=new Set(c),v=function(y){!y||p.has(y)||(p.add(y),v(y.parentNode))};c.forEach(v);var C=function(y){!y||w.has(y)||Array.prototype.forEach.call(y.children,function(S){if(p.has(S))C(S);else try{var E=S.getAttribute(l),N=E!==null&&E!=="false",x=(nr.get(S)||0)+1,k=(d.get(S)||0)+1;nr.set(S,x),d.set(S,k),m.push(S),x===1&&N&&ii.set(S,!0),k===1&&S.setAttribute(a,"true"),N||S.setAttribute(l,"true")}catch(M){console.error("aria-hidden: cannot operate on ",S,M)}})};return C(i),p.clear(),fs++,function(){m.forEach(function(y){var S=nr.get(y)-1,E=d.get(y)-1;nr.set(y,S),d.set(y,E),S||(ii.has(y)||y.removeAttribute(l),ii.delete(y)),E||y.removeAttribute(a)}),fs--,fs||(nr=new WeakMap,nr=new WeakMap,ii=new WeakMap,ai={})}},vw=function(r,i,a){a===void 0&&(a="data-aria-hidden");var l=Array.from(Array.isArray(r)?r:[r]),c=mw(r);return c?(l.push.apply(l,Array.from(c.querySelectorAll("[aria-live]"))),gw(l,c,a,"aria-hidden")):function(){return null}},Dt=function(){return Dt=Object.assign||function(i){for(var a,l=1,c=arguments.length;l<c;l++){a=arguments[l];for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(i[d]=a[d])}return i},Dt.apply(this,arguments)};function wd(r,i){var a={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&i.indexOf(l)<0&&(a[l]=r[l]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,l=Object.getOwnPropertySymbols(r);c<l.length;c++)i.indexOf(l[c])<0&&Object.prototype.propertyIsEnumerable.call(r,l[c])&&(a[l[c]]=r[l[c]]);return a}function ww(r,i,a){if(a||arguments.length===2)for(var l=0,c=i.length,d;l<c;l++)(d||!(l in i))&&(d||(d=Array.prototype.slice.call(i,0,l)),d[l]=i[l]);return r.concat(d||Array.prototype.slice.call(i))}typeof SuppressedError=="function"&&SuppressedError;var si="right-scroll-bar-position",li="width-before-scroll-bar",yw="with-scroll-bars-hidden",xw="--removed-body-scroll-bar-size";function ps(r,i){return typeof r=="function"?r(i):r&&(r.current=i),r}function bw(r,i){var a=h.useState(function(){return{value:r,callback:i,facade:{get current(){return a.value},set current(l){var c=a.value;c!==l&&(a.value=l,a.callback(l,c))}}}})[0];return a.callback=i,a.facade}var Cw=typeof window<"u"?h.useLayoutEffect:h.useEffect,yd=new WeakMap;function Sw(r,i){var a=bw(null,function(l){return r.forEach(function(c){return ps(c,l)})});return Cw(function(){var l=yd.get(a);if(l){var c=new Set(l),d=new Set(r),m=a.current;c.forEach(function(p){d.has(p)||ps(p,null)}),d.forEach(function(p){c.has(p)||ps(p,m)})}yd.set(a,r)},[r]),a}function Ew(r){return r}function kw(r,i){i===void 0&&(i=Ew);var a=[],l=!1,c={read:function(){if(l)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:r},useMedium:function(d){var m=i(d,l);return a.push(m),function(){a=a.filter(function(p){return p!==m})}},assignSyncMedium:function(d){for(l=!0;a.length;){var m=a;a=[],m.forEach(d)}a={push:function(p){return d(p)},filter:function(){return a}}},assignMedium:function(d){l=!0;var m=[];if(a.length){var p=a;a=[],p.forEach(d),m=a}var w=function(){var C=m;m=[],C.forEach(d)},v=function(){return Promise.resolve().then(w)};v(),a={push:function(C){m.push(C),v()},filter:function(C){return m=m.filter(C),a}}}};return c}function Rw(r){r===void 0&&(r={});var i=kw(null);return i.options=Dt({async:!0,ssr:!1},r),i}var xd=function(r){var i=r.sideCar,a=wd(r,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var l=i.read();if(!l)throw new Error("Sidecar medium not found");return h.createElement(l,Dt({},a))};xd.isSideCarExport=!0;function Nw(r,i){return r.useMedium(i),xd}var bd=Rw(),ms=function(){},ui=h.forwardRef(function(r,i){var a=h.useRef(null),l=h.useState({onScrollCapture:ms,onWheelCapture:ms,onTouchMoveCapture:ms}),c=l[0],d=l[1],m=r.forwardProps,p=r.children,w=r.className,v=r.removeScrollBar,C=r.enabled,y=r.shards,S=r.sideCar,E=r.noIsolation,N=r.inert,x=r.allowPinchZoom,k=r.as,M=k===void 0?"div":k,I=r.gapMode,F=wd(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),z=S,U=Sw([a,i]),$=Dt(Dt({},F),c);return h.createElement(h.Fragment,null,C&&h.createElement(z,{sideCar:bd,removeScrollBar:v,shards:y,noIsolation:E,inert:N,setCallbacks:d,allowPinchZoom:!!x,lockRef:a,gapMode:I}),m?h.cloneElement(h.Children.only(p),Dt(Dt({},$),{ref:U})):h.createElement(M,Dt({},$,{className:w,ref:U}),p))});ui.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ui.classNames={fullWidth:li,zeroRight:si};var Pw=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Tw(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var i=Pw();return i&&r.setAttribute("nonce",i),r}function Aw(r,i){r.styleSheet?r.styleSheet.cssText=i:r.appendChild(document.createTextNode(i))}function Mw(r){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(r)}var _w=function(){var r=0,i=null;return{add:function(a){r==0&&(i=Tw())&&(Aw(i,a),Mw(i)),r++},remove:function(){r--,!r&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},jw=function(){var r=_w();return function(i,a){h.useEffect(function(){return r.add(i),function(){r.remove()}},[i&&a])}},Cd=function(){var r=jw(),i=function(a){var l=a.styles,c=a.dynamic;return r(l,c),null};return i},Iw={left:0,top:0,right:0,gap:0},hs=function(r){return parseInt(r||"",10)||0},Ow=function(r){var i=window.getComputedStyle(document.body),a=i[r==="padding"?"paddingLeft":"marginLeft"],l=i[r==="padding"?"paddingTop":"marginTop"],c=i[r==="padding"?"paddingRight":"marginRight"];return[hs(a),hs(l),hs(c)]},Dw=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return Iw;var i=Ow(r),a=document.documentElement.clientWidth,l=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,l-a+i[2]-i[0])}},Fw=Cd(),rr="data-scroll-locked",Lw=function(r,i,a,l){var c=r.left,d=r.top,m=r.right,p=r.gap;return a===void 0&&(a="margin"),`
  .`.concat(yw,` {
   overflow: hidden `).concat(l,`;
   padding-right: `).concat(p,"px ").concat(l,`;
  }
  body[`).concat(rr,`] {
    overflow: hidden `).concat(l,`;
    overscroll-behavior: contain;
    `).concat([i&&"position: relative ".concat(l,";"),a==="margin"&&`
    padding-left: `.concat(c,`px;
    padding-top: `).concat(d,`px;
    padding-right: `).concat(m,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(p,"px ").concat(l,`;
    `),a==="padding"&&"padding-right: ".concat(p,"px ").concat(l,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(si,` {
    right: `).concat(p,"px ").concat(l,`;
  }
  
  .`).concat(li,` {
    margin-right: `).concat(p,"px ").concat(l,`;
  }
  
  .`).concat(si," .").concat(si,` {
    right: 0 `).concat(l,`;
  }
  
  .`).concat(li," .").concat(li,` {
    margin-right: 0 `).concat(l,`;
  }
  
  body[`).concat(rr,`] {
    `).concat(xw,": ").concat(p,`px;
  }
`)},Sd=function(){var r=parseInt(document.body.getAttribute(rr)||"0",10);return isFinite(r)?r:0},zw=function(){h.useEffect(function(){return document.body.setAttribute(rr,(Sd()+1).toString()),function(){var r=Sd()-1;r<=0?document.body.removeAttribute(rr):document.body.setAttribute(rr,r.toString())}},[])},Uw=function(r){var i=r.noRelative,a=r.noImportant,l=r.gapMode,c=l===void 0?"margin":l;zw();var d=h.useMemo(function(){return Dw(c)},[c]);return h.createElement(Fw,{styles:Lw(d,!i,c,a?"":"!important")})},gs=!1;if(typeof window<"u")try{var ci=Object.defineProperty({},"passive",{get:function(){return gs=!0,!0}});window.addEventListener("test",ci,ci),window.removeEventListener("test",ci,ci)}catch{gs=!1}var or=gs?{passive:!1}:!1,Bw=function(r){return r.tagName==="TEXTAREA"},Ed=function(r,i){var a=window.getComputedStyle(r);return a[i]!=="hidden"&&!(a.overflowY===a.overflowX&&!Bw(r)&&a[i]==="visible")},Vw=function(r){return Ed(r,"overflowY")},Ww=function(r){return Ed(r,"overflowX")},kd=function(r,i){var a=i.ownerDocument,l=i;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var c=Rd(r,l);if(c){var d=Nd(r,l),m=d[1],p=d[2];if(m>p)return!0}l=l.parentNode}while(l&&l!==a.body);return!1},Hw=function(r){var i=r.scrollTop,a=r.scrollHeight,l=r.clientHeight;return[i,a,l]},$w=function(r){var i=r.scrollLeft,a=r.scrollWidth,l=r.clientWidth;return[i,a,l]},Rd=function(r,i){return r==="v"?Vw(i):Ww(i)},Nd=function(r,i){return r==="v"?Hw(i):$w(i)},Kw=function(r,i){return r==="h"&&i==="rtl"?-1:1},Gw=function(r,i,a,l,c){var d=Kw(r,window.getComputedStyle(i).direction),m=d*l,p=a.target,w=i.contains(p),v=!1,C=m>0,y=0,S=0;do{var E=Nd(r,p),N=E[0],x=E[1],k=E[2],M=x-k-d*N;(N||M)&&Rd(r,p)&&(y+=M,S+=N),p instanceof ShadowRoot?p=p.host:p=p.parentNode}while(!w&&p!==document.body||w&&(i.contains(p)||i===p));return(C&&(Math.abs(y)<1||!c)||!C&&(Math.abs(S)<1||!c))&&(v=!0),v},di=function(r){return"changedTouches"in r?[r.changedTouches[0].clientX,r.changedTouches[0].clientY]:[0,0]},Pd=function(r){return[r.deltaX,r.deltaY]},Td=function(r){return r&&"current"in r?r.current:r},Yw=function(r,i){return r[0]===i[0]&&r[1]===i[1]},Qw=function(r){return`
  .block-interactivity-`.concat(r,` {pointer-events: none;}
  .allow-interactivity-`).concat(r,` {pointer-events: all;}
`)},Xw=0,ir=[];function Jw(r){var i=h.useRef([]),a=h.useRef([0,0]),l=h.useRef(),c=h.useState(Xw++)[0],d=h.useState(Cd)[0],m=h.useRef(r);h.useEffect(function(){m.current=r},[r]),h.useEffect(function(){if(r.inert){document.body.classList.add("block-interactivity-".concat(c));var x=ww([r.lockRef.current],(r.shards||[]).map(Td),!0).filter(Boolean);return x.forEach(function(k){return k.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),x.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(c))})}}},[r.inert,r.lockRef.current,r.shards]);var p=h.useCallback(function(x,k){if("touches"in x&&x.touches.length===2)return!m.current.allowPinchZoom;var M=di(x),I=a.current,F="deltaX"in x?x.deltaX:I[0]-M[0],z="deltaY"in x?x.deltaY:I[1]-M[1],U,$=x.target,W=Math.abs(F)>Math.abs(z)?"h":"v";if("touches"in x&&W==="h"&&$.type==="range")return!1;var J=kd(W,$);if(!J)return!0;if(J?U=W:(U=W==="v"?"h":"v",J=kd(W,$)),!J)return!1;if(!l.current&&"changedTouches"in x&&(F||z)&&(l.current=U),!U)return!0;var ie=l.current||U;return Gw(ie,k,x,ie==="h"?F:z,!0)},[]),w=h.useCallback(function(x){var k=x;if(!(!ir.length||ir[ir.length-1]!==d)){var M="deltaY"in k?Pd(k):di(k),I=i.current.filter(function(U){return U.name===k.type&&(U.target===k.target||k.target===U.shadowParent)&&Yw(U.delta,M)})[0];if(I&&I.should){k.cancelable&&k.preventDefault();return}if(!I){var F=(m.current.shards||[]).map(Td).filter(Boolean).filter(function(U){return U.contains(k.target)}),z=F.length>0?p(k,F[0]):!m.current.noIsolation;z&&k.cancelable&&k.preventDefault()}}},[]),v=h.useCallback(function(x,k,M,I){var F={name:x,delta:k,target:M,should:I,shadowParent:Zw(M)};i.current.push(F),setTimeout(function(){i.current=i.current.filter(function(z){return z!==F})},1)},[]),C=h.useCallback(function(x){a.current=di(x),l.current=void 0},[]),y=h.useCallback(function(x){v(x.type,Pd(x),x.target,p(x,r.lockRef.current))},[]),S=h.useCallback(function(x){v(x.type,di(x),x.target,p(x,r.lockRef.current))},[]);h.useEffect(function(){return ir.push(d),r.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:S}),document.addEventListener("wheel",w,or),document.addEventListener("touchmove",w,or),document.addEventListener("touchstart",C,or),function(){ir=ir.filter(function(x){return x!==d}),document.removeEventListener("wheel",w,or),document.removeEventListener("touchmove",w,or),document.removeEventListener("touchstart",C,or)}},[]);var E=r.removeScrollBar,N=r.inert;return h.createElement(h.Fragment,null,N?h.createElement(d,{styles:Qw(c)}):null,E?h.createElement(Uw,{gapMode:r.gapMode}):null)}function Zw(r){for(var i=null;r!==null;)r instanceof ShadowRoot&&(i=r.host,r=r.host),r=r.parentNode;return i}const qw=Nw(bd,Jw);var Ad=h.forwardRef(function(r,i){return h.createElement(ui,Dt({},r,{ref:i,sideCar:qw}))});Ad.classNames=ui.classNames;var vs=["Enter"," "],ey=["ArrowDown","PageUp","Home"],Md=["ArrowUp","PageDown","End"],ty=[...ey,...Md],ny={ltr:[...vs,"ArrowRight"],rtl:[...vs,"ArrowLeft"]},ry={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Vr="Menu",[Wr,oy,iy]=Ka(Vr),[In,_d]=Wt(Vr,[iy,nd,fd]),fi=nd(),jd=fd(),[ay,On]=In(Vr),[sy,Hr]=In(Vr),Id=r=>{const{__scopeMenu:i,open:a=!1,children:l,dir:c,onOpenChange:d,modal:m=!0}=r,p=fi(i),[w,v]=h.useState(null),C=h.useRef(!1),y=Ge(d),S=Sc(c);return h.useEffect(()=>{const E=()=>{C.current=!0,document.addEventListener("pointerdown",N,{capture:!0,once:!0}),document.addEventListener("pointermove",N,{capture:!0,once:!0})},N=()=>C.current=!1;return document.addEventListener("keydown",E,{capture:!0}),()=>{document.removeEventListener("keydown",E,{capture:!0}),document.removeEventListener("pointerdown",N,{capture:!0}),document.removeEventListener("pointermove",N,{capture:!0})}},[]),g.jsx(Y0,{...p,children:g.jsx(ay,{scope:i,open:a,onOpenChange:y,content:w,onContentChange:v,children:g.jsx(sy,{scope:i,onClose:h.useCallback(()=>y(!1),[y]),isUsingKeyboardRef:C,dir:S,modal:m,children:l})})})};Id.displayName=Vr;var ly="MenuAnchor",ws=h.forwardRef((r,i)=>{const{__scopeMenu:a,...l}=r,c=fi(a);return g.jsx(Q0,{...c,...l,ref:i})});ws.displayName=ly;var ys="MenuPortal",[uy,Od]=In(ys,{forceMount:void 0}),Dd=r=>{const{__scopeMenu:i,forceMount:a,children:l,container:c}=r,d=On(ys,i);return g.jsx(uy,{scope:i,forceMount:a,children:g.jsx(jn,{present:a||d.open,children:g.jsx(us,{asChild:!0,container:c,children:l})})})};Dd.displayName=ys;var ht="MenuContent",[cy,xs]=In(ht),Fd=h.forwardRef((r,i)=>{const a=Od(ht,r.__scopeMenu),{forceMount:l=a.forceMount,...c}=r,d=On(ht,r.__scopeMenu),m=Hr(ht,r.__scopeMenu);return g.jsx(Wr.Provider,{scope:r.__scopeMenu,children:g.jsx(jn,{present:l||d.open,children:g.jsx(Wr.Slot,{scope:r.__scopeMenu,children:m.modal?g.jsx(dy,{...c,ref:i}):g.jsx(fy,{...c,ref:i})})})})}),dy=h.forwardRef((r,i)=>{const a=On(ht,r.__scopeMenu),l=h.useRef(null),c=He(i,l);return h.useEffect(()=>{const d=l.current;if(d)return vw(d)},[]),g.jsx(bs,{...r,ref:c,trapFocus:a.open,disableOutsidePointerEvents:a.open,disableOutsideScroll:!0,onFocusOutside:me(r.onFocusOutside,d=>d.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>a.onOpenChange(!1)})}),fy=h.forwardRef((r,i)=>{const a=On(ht,r.__scopeMenu);return g.jsx(bs,{...r,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>a.onOpenChange(!1)})}),bs=h.forwardRef((r,i)=>{const{__scopeMenu:a,loop:l=!1,trapFocus:c,onOpenAutoFocus:d,onCloseAutoFocus:m,disableOutsidePointerEvents:p,onEntryFocus:w,onEscapeKeyDown:v,onPointerDownOutside:C,onFocusOutside:y,onInteractOutside:S,onDismiss:E,disableOutsideScroll:N,...x}=r,k=On(ht,a),M=Hr(ht,a),I=fi(a),F=jd(a),z=oy(a),[U,$]=h.useState(null),W=h.useRef(null),J=He(i,W,k.onContentChange),ie=h.useRef(0),ae=h.useRef(""),ce=h.useRef(0),ee=h.useRef(null),ge=h.useRef("right"),X=h.useRef(0),Z=N?Ad:h.Fragment,Y=N?{as:Xn,allowPinchZoom:!0}:void 0,G=O=>{const Q=ae.current+O,T=z().filter(pe=>!pe.disabled),L=document.activeElement,ue=T.find(pe=>pe.ref.current===L)?.textValue,fe=T.map(pe=>pe.textValue),ye=Ey(fe,Q,ue),ve=T.find(pe=>pe.textValue===ye)?.ref.current;(function pe(xe){ae.current=xe,window.clearTimeout(ie.current),xe!==""&&(ie.current=window.setTimeout(()=>pe(""),1e3))})(Q),ve&&setTimeout(()=>ve.focus())};h.useEffect(()=>()=>window.clearTimeout(ie.current),[]),_v();const D=h.useCallback(O=>ge.current===ee.current?.side&&Ry(O,ee.current?.area),[]);return g.jsx(cy,{scope:a,searchRef:ae,onItemEnter:h.useCallback(O=>{D(O)&&O.preventDefault()},[D]),onItemLeave:h.useCallback(O=>{D(O)||(W.current?.focus(),$(null))},[D]),onTriggerLeave:h.useCallback(O=>{D(O)&&O.preventDefault()},[D]),pointerGraceTimerRef:ce,onPointerGraceIntentChange:h.useCallback(O=>{ee.current=O},[]),children:g.jsx(Z,{...Y,children:g.jsx(Mc,{asChild:!0,trapped:c,onMountAutoFocus:me(d,O=>{O.preventDefault(),W.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:m,children:g.jsx(Ya,{asChild:!0,disableOutsidePointerEvents:p,onEscapeKeyDown:v,onPointerDownOutside:C,onFocusOutside:y,onInteractOutside:S,onDismiss:E,children:g.jsx(fw,{asChild:!0,...F,dir:M.dir,orientation:"vertical",loop:l,currentTabStopId:U,onCurrentTabStopIdChange:$,onEntryFocus:me(w,O=>{M.isUsingKeyboardRef.current||O.preventDefault()}),preventScrollOnEntryFocus:!0,children:g.jsx(X0,{role:"menu","aria-orientation":"vertical","data-state":ef(k.open),"data-radix-menu-content":"",dir:M.dir,...I,...x,ref:J,style:{outline:"none",...x.style},onKeyDown:me(x.onKeyDown,O=>{const T=O.target.closest("[data-radix-menu-content]")===O.currentTarget,L=O.ctrlKey||O.altKey||O.metaKey,ue=O.key.length===1;T&&(O.key==="Tab"&&O.preventDefault(),!L&&ue&&G(O.key));const fe=W.current;if(O.target!==fe||!ty.includes(O.key))return;O.preventDefault();const ve=z().filter(pe=>!pe.disabled).map(pe=>pe.ref.current);Md.includes(O.key)&&ve.reverse(),Cy(ve)}),onBlur:me(r.onBlur,O=>{O.currentTarget.contains(O.target)||(window.clearTimeout(ie.current),ae.current="")}),onPointerMove:me(r.onPointerMove,Kr(O=>{const Q=O.target,T=X.current!==O.clientX;if(O.currentTarget.contains(Q)&&T){const L=O.clientX>X.current?"right":"left";ge.current=L,X.current=O.clientX}}))})})})})})})});Fd.displayName=ht;var py="MenuGroup",Cs=h.forwardRef((r,i)=>{const{__scopeMenu:a,...l}=r;return g.jsx(Se.div,{role:"group",...l,ref:i})});Cs.displayName=py;var my="MenuLabel",Ld=h.forwardRef((r,i)=>{const{__scopeMenu:a,...l}=r;return g.jsx(Se.div,{...l,ref:i})});Ld.displayName=my;var pi="MenuItem",zd="menu.itemSelect",mi=h.forwardRef((r,i)=>{const{disabled:a=!1,onSelect:l,...c}=r,d=h.useRef(null),m=Hr(pi,r.__scopeMenu),p=xs(pi,r.__scopeMenu),w=He(i,d),v=h.useRef(!1),C=()=>{const y=d.current;if(!a&&y){const S=new CustomEvent(zd,{bubbles:!0,cancelable:!0});y.addEventListener(zd,E=>l?.(E),{once:!0}),Oa(y,S),S.defaultPrevented?v.current=!1:m.onClose()}};return g.jsx(Ud,{...c,ref:w,disabled:a,onClick:me(r.onClick,C),onPointerDown:y=>{r.onPointerDown?.(y),v.current=!0},onPointerUp:me(r.onPointerUp,y=>{v.current||y.currentTarget?.click()}),onKeyDown:me(r.onKeyDown,y=>{const S=p.searchRef.current!=="";a||S&&y.key===" "||vs.includes(y.key)&&(y.currentTarget.click(),y.preventDefault())})})});mi.displayName=pi;var Ud=h.forwardRef((r,i)=>{const{__scopeMenu:a,disabled:l=!1,textValue:c,...d}=r,m=xs(pi,a),p=jd(a),w=h.useRef(null),v=He(i,w),[C,y]=h.useState(!1),[S,E]=h.useState("");return h.useEffect(()=>{const N=w.current;N&&E((N.textContent??"").trim())},[d.children]),g.jsx(Wr.ItemSlot,{scope:a,disabled:l,textValue:c??S,children:g.jsx(pw,{asChild:!0,...p,focusable:!l,children:g.jsx(Se.div,{role:"menuitem","data-highlighted":C?"":void 0,"aria-disabled":l||void 0,"data-disabled":l?"":void 0,...d,ref:v,onPointerMove:me(r.onPointerMove,Kr(N=>{l?m.onItemLeave(N):(m.onItemEnter(N),N.defaultPrevented||N.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:me(r.onPointerLeave,Kr(N=>m.onItemLeave(N))),onFocus:me(r.onFocus,()=>y(!0)),onBlur:me(r.onBlur,()=>y(!1))})})})}),hy="MenuCheckboxItem",Bd=h.forwardRef((r,i)=>{const{checked:a=!1,onCheckedChange:l,...c}=r;return g.jsx(Kd,{scope:r.__scopeMenu,checked:a,children:g.jsx(mi,{role:"menuitemcheckbox","aria-checked":hi(a)?"mixed":a,...c,ref:i,"data-state":Es(a),onSelect:me(c.onSelect,()=>l?.(hi(a)?!0:!a),{checkForDefaultPrevented:!1})})})});Bd.displayName=hy;var Vd="MenuRadioGroup",[gy,vy]=In(Vd,{value:void 0,onValueChange:()=>{}}),Wd=h.forwardRef((r,i)=>{const{value:a,onValueChange:l,...c}=r,d=Ge(l);return g.jsx(gy,{scope:r.__scopeMenu,value:a,onValueChange:d,children:g.jsx(Cs,{...c,ref:i})})});Wd.displayName=Vd;var Hd="MenuRadioItem",$d=h.forwardRef((r,i)=>{const{value:a,...l}=r,c=vy(Hd,r.__scopeMenu),d=a===c.value;return g.jsx(Kd,{scope:r.__scopeMenu,checked:d,children:g.jsx(mi,{role:"menuitemradio","aria-checked":d,...l,ref:i,"data-state":Es(d),onSelect:me(l.onSelect,()=>c.onValueChange?.(a),{checkForDefaultPrevented:!1})})})});$d.displayName=Hd;var Ss="MenuItemIndicator",[Kd,wy]=In(Ss,{checked:!1}),Gd=h.forwardRef((r,i)=>{const{__scopeMenu:a,forceMount:l,...c}=r,d=wy(Ss,a);return g.jsx(jn,{present:l||hi(d.checked)||d.checked===!0,children:g.jsx(Se.span,{...c,ref:i,"data-state":Es(d.checked)})})});Gd.displayName=Ss;var yy="MenuSeparator",Yd=h.forwardRef((r,i)=>{const{__scopeMenu:a,...l}=r;return g.jsx(Se.div,{role:"separator","aria-orientation":"horizontal",...l,ref:i})});Yd.displayName=yy;var xy="MenuArrow",Qd=h.forwardRef((r,i)=>{const{__scopeMenu:a,...l}=r,c=fi(a);return g.jsx(J0,{...c,...l,ref:i})});Qd.displayName=xy;var by="MenuSub",[c2,Xd]=In(by),$r="MenuSubTrigger",Jd=h.forwardRef((r,i)=>{const a=On($r,r.__scopeMenu),l=Hr($r,r.__scopeMenu),c=Xd($r,r.__scopeMenu),d=xs($r,r.__scopeMenu),m=h.useRef(null),{pointerGraceTimerRef:p,onPointerGraceIntentChange:w}=d,v={__scopeMenu:r.__scopeMenu},C=h.useCallback(()=>{m.current&&window.clearTimeout(m.current),m.current=null},[]);return h.useEffect(()=>C,[C]),h.useEffect(()=>{const y=p.current;return()=>{window.clearTimeout(y),w(null)}},[p,w]),g.jsx(ws,{asChild:!0,...v,children:g.jsx(Ud,{id:c.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":c.contentId,"data-state":ef(a.open),...r,ref:Fo(i,c.onTriggerChange),onClick:y=>{r.onClick?.(y),!(r.disabled||y.defaultPrevented)&&(y.currentTarget.focus(),a.open||a.onOpenChange(!0))},onPointerMove:me(r.onPointerMove,Kr(y=>{d.onItemEnter(y),!y.defaultPrevented&&!r.disabled&&!a.open&&!m.current&&(d.onPointerGraceIntentChange(null),m.current=window.setTimeout(()=>{a.onOpenChange(!0),C()},100))})),onPointerLeave:me(r.onPointerLeave,Kr(y=>{C();const S=a.content?.getBoundingClientRect();if(S){const E=a.content?.dataset.side,N=E==="right",x=N?-5:5,k=S[N?"left":"right"],M=S[N?"right":"left"];d.onPointerGraceIntentChange({area:[{x:y.clientX+x,y:y.clientY},{x:k,y:S.top},{x:M,y:S.top},{x:M,y:S.bottom},{x:k,y:S.bottom}],side:E}),window.clearTimeout(p.current),p.current=window.setTimeout(()=>d.onPointerGraceIntentChange(null),300)}else{if(d.onTriggerLeave(y),y.defaultPrevented)return;d.onPointerGraceIntentChange(null)}})),onKeyDown:me(r.onKeyDown,y=>{const S=d.searchRef.current!=="";r.disabled||S&&y.key===" "||ny[l.dir].includes(y.key)&&(a.onOpenChange(!0),a.content?.focus(),y.preventDefault())})})})});Jd.displayName=$r;var Zd="MenuSubContent",qd=h.forwardRef((r,i)=>{const a=Od(ht,r.__scopeMenu),{forceMount:l=a.forceMount,...c}=r,d=On(ht,r.__scopeMenu),m=Hr(ht,r.__scopeMenu),p=Xd(Zd,r.__scopeMenu),w=h.useRef(null),v=He(i,w);return g.jsx(Wr.Provider,{scope:r.__scopeMenu,children:g.jsx(jn,{present:l||d.open,children:g.jsx(Wr.Slot,{scope:r.__scopeMenu,children:g.jsx(bs,{id:p.contentId,"aria-labelledby":p.triggerId,...c,ref:v,align:"start",side:m.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:C=>{m.isUsingKeyboardRef.current&&w.current?.focus(),C.preventDefault()},onCloseAutoFocus:C=>C.preventDefault(),onFocusOutside:me(r.onFocusOutside,C=>{C.target!==p.trigger&&d.onOpenChange(!1)}),onEscapeKeyDown:me(r.onEscapeKeyDown,C=>{m.onClose(),C.preventDefault()}),onKeyDown:me(r.onKeyDown,C=>{const y=C.currentTarget.contains(C.target),S=ry[m.dir].includes(C.key);y&&S&&(d.onOpenChange(!1),p.trigger?.focus(),C.preventDefault())})})})})})});qd.displayName=Zd;function ef(r){return r?"open":"closed"}function hi(r){return r==="indeterminate"}function Es(r){return hi(r)?"indeterminate":r?"checked":"unchecked"}function Cy(r){const i=document.activeElement;for(const a of r)if(a===i||(a.focus(),document.activeElement!==i))return}function Sy(r,i){return r.map((a,l)=>r[(i+l)%r.length])}function Ey(r,i,a){const c=i.length>1&&Array.from(i).every(v=>v===i[0])?i[0]:i,d=a?r.indexOf(a):-1;let m=Sy(r,Math.max(d,0));c.length===1&&(m=m.filter(v=>v!==a));const w=m.find(v=>v.toLowerCase().startsWith(c.toLowerCase()));return w!==a?w:void 0}function ky(r,i){const{x:a,y:l}=r;let c=!1;for(let d=0,m=i.length-1;d<i.length;m=d++){const p=i[d].x,w=i[d].y,v=i[m].x,C=i[m].y;w>l!=C>l&&a<(v-p)*(l-w)/(C-w)+p&&(c=!c)}return c}function Ry(r,i){if(!i)return!1;const a={x:r.clientX,y:r.clientY};return ky(a,i)}function Kr(r){return i=>i.pointerType==="mouse"?r(i):void 0}var Ny=Id,Py=ws,Ty=Dd,Ay=Fd,My=Cs,_y=Ld,jy=mi,Iy=Bd,Oy=Wd,Dy=$d,Fy=Gd,Ly=Yd,zy=Qd,Uy=Jd,By=qd,ks="DropdownMenu",[Vy,d2]=Wt(ks,[_d]),Ze=_d(),[Wy,tf]=Vy(ks),nf=r=>{const{__scopeDropdownMenu:i,children:a,dir:l,open:c,defaultOpen:d,onOpenChange:m,modal:p=!0}=r,w=Ze(i),v=h.useRef(null),[C=!1,y]=Go({prop:c,defaultProp:d,onChange:m});return g.jsx(Wy,{scope:i,triggerId:Yo(),triggerRef:v,contentId:Yo(),open:C,onOpenChange:y,onOpenToggle:h.useCallback(()=>y(S=>!S),[y]),modal:p,children:g.jsx(Ny,{...w,open:C,onOpenChange:y,dir:l,modal:p,children:a})})};nf.displayName=ks;var rf="DropdownMenuTrigger",of=h.forwardRef((r,i)=>{const{__scopeDropdownMenu:a,disabled:l=!1,...c}=r,d=tf(rf,a),m=Ze(a);return g.jsx(Py,{asChild:!0,...m,children:g.jsx(Se.button,{type:"button",id:d.triggerId,"aria-haspopup":"menu","aria-expanded":d.open,"aria-controls":d.open?d.contentId:void 0,"data-state":d.open?"open":"closed","data-disabled":l?"":void 0,disabled:l,...c,ref:Fo(i,d.triggerRef),onPointerDown:me(r.onPointerDown,p=>{!l&&p.button===0&&p.ctrlKey===!1&&(d.onOpenToggle(),d.open||p.preventDefault())}),onKeyDown:me(r.onKeyDown,p=>{l||(["Enter"," "].includes(p.key)&&d.onOpenToggle(),p.key==="ArrowDown"&&d.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(p.key)&&p.preventDefault())})})})});of.displayName=rf;var Hy="DropdownMenuPortal",af=r=>{const{__scopeDropdownMenu:i,...a}=r,l=Ze(i);return g.jsx(Ty,{...l,...a})};af.displayName=Hy;var sf="DropdownMenuContent",lf=h.forwardRef((r,i)=>{const{__scopeDropdownMenu:a,...l}=r,c=tf(sf,a),d=Ze(a),m=h.useRef(!1);return g.jsx(Ay,{id:c.contentId,"aria-labelledby":c.triggerId,...d,...l,ref:i,onCloseAutoFocus:me(r.onCloseAutoFocus,p=>{m.current||c.triggerRef.current?.focus(),m.current=!1,p.preventDefault()}),onInteractOutside:me(r.onInteractOutside,p=>{const w=p.detail.originalEvent,v=w.button===0&&w.ctrlKey===!0,C=w.button===2||v;(!c.modal||C)&&(m.current=!0)}),style:{...r.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});lf.displayName=sf;var $y="DropdownMenuGroup",Ky=h.forwardRef((r,i)=>{const{__scopeDropdownMenu:a,...l}=r,c=Ze(a);return g.jsx(My,{...c,...l,ref:i})});Ky.displayName=$y;var Gy="DropdownMenuLabel",uf=h.forwardRef((r,i)=>{const{__scopeDropdownMenu:a,...l}=r,c=Ze(a);return g.jsx(_y,{...c,...l,ref:i})});uf.displayName=Gy;var Yy="DropdownMenuItem",cf=h.forwardRef((r,i)=>{const{__scopeDropdownMenu:a,...l}=r,c=Ze(a);return g.jsx(jy,{...c,...l,ref:i})});cf.displayName=Yy;var Qy="DropdownMenuCheckboxItem",df=h.forwardRef((r,i)=>{const{__scopeDropdownMenu:a,...l}=r,c=Ze(a);return g.jsx(Iy,{...c,...l,ref:i})});df.displayName=Qy;var Xy="DropdownMenuRadioGroup",Jy=h.forwardRef((r,i)=>{const{__scopeDropdownMenu:a,...l}=r,c=Ze(a);return g.jsx(Oy,{...c,...l,ref:i})});Jy.displayName=Xy;var Zy="DropdownMenuRadioItem",ff=h.forwardRef((r,i)=>{const{__scopeDropdownMenu:a,...l}=r,c=Ze(a);return g.jsx(Dy,{...c,...l,ref:i})});ff.displayName=Zy;var qy="DropdownMenuItemIndicator",pf=h.forwardRef((r,i)=>{const{__scopeDropdownMenu:a,...l}=r,c=Ze(a);return g.jsx(Fy,{...c,...l,ref:i})});pf.displayName=qy;var ex="DropdownMenuSeparator",mf=h.forwardRef((r,i)=>{const{__scopeDropdownMenu:a,...l}=r,c=Ze(a);return g.jsx(Ly,{...c,...l,ref:i})});mf.displayName=ex;var tx="DropdownMenuArrow",nx=h.forwardRef((r,i)=>{const{__scopeDropdownMenu:a,...l}=r,c=Ze(a);return g.jsx(zy,{...c,...l,ref:i})});nx.displayName=tx;var rx="DropdownMenuSubTrigger",hf=h.forwardRef((r,i)=>{const{__scopeDropdownMenu:a,...l}=r,c=Ze(a);return g.jsx(Uy,{...c,...l,ref:i})});hf.displayName=rx;var ox="DropdownMenuSubContent",gf=h.forwardRef((r,i)=>{const{__scopeDropdownMenu:a,...l}=r,c=Ze(a);return g.jsx(By,{...c,...l,ref:i,style:{...r.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});gf.displayName=ox;var ix=nf,ax=of,sx=af,vf=lf,wf=uf,yf=cf,xf=df,bf=ff,Cf=pf,Sf=mf,Ef=hf,kf=gf;/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lx=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Rf=(...r)=>r.filter((i,a,l)=>!!i&&l.indexOf(i)===a).join(" ");/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var ux={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cx=h.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:c="",children:d,iconNode:m,...p},w)=>h.createElement("svg",{ref:w,...ux,width:i,height:i,stroke:r,strokeWidth:l?Number(a)*24/Number(i):a,className:Rf("lucide",c),...p},[...m.map(([v,C])=>h.createElement(v,C)),...Array.isArray(d)?d:[d]]));/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gi=(r,i)=>{const a=h.forwardRef(({className:l,...c},d)=>h.createElement(cx,{ref:d,iconNode:i,className:Rf(`lucide-${lx(r)}`,l),...c}));return a.displayName=`${r}`,a};/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dx=gi("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fx=gi("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const px=gi("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mx=gi("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),hx=ix,gx=ax,vx=h.forwardRef(({className:r,inset:i,children:a,...l},c)=>g.jsxs(Ef,{ref:c,className:Ee("flex cursor-default select-none items-center rounded-[8px] px-[8px] py-[6px] text-[14px] outline-none focus:bg-accent data-[state=open]:bg-accent",i&&"pl-8",r),...l,children:[a,g.jsx(fx,{className:"ml-auto h-4 w-4"})]}));vx.displayName=Ef.displayName;const wx=h.forwardRef(({className:r,...i},a)=>g.jsx(kf,{ref:a,className:Ee("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",r),...i}));wx.displayName=kf.displayName;const Nf=h.forwardRef(({className:r,sideOffset:i=4,...a},l)=>g.jsx(sx,{children:g.jsx(vf,{ref:l,sideOffset:i,className:Ee("z-50 min-w-[212px] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...a})}));Nf.displayName=vf.displayName;const vi=h.forwardRef(({className:r,inset:i,...a},l)=>g.jsx(yf,{ref:l,className:Ee("relative flex cursor-default select-none items-center rounded-sm p-[8px] text-[14px] outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",i&&"pl-8",r),...a}));vi.displayName=yf.displayName;const yx=h.forwardRef(({className:r,children:i,checked:a,...l},c)=>g.jsxs(xf,{ref:c,className:Ee("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),checked:a,...l,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(Cf,{children:g.jsx(dx,{className:"h-4 w-4"})})}),i]}));yx.displayName=xf.displayName;const xx=h.forwardRef(({className:r,children:i,...a},l)=>g.jsxs(bf,{ref:l,className:Ee("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...a,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(Cf,{children:g.jsx(px,{className:"h-2 w-2 fill-current"})})}),i]}));xx.displayName=bf.displayName;const bx=h.forwardRef(({className:r,inset:i,...a},l)=>g.jsx(wf,{ref:l,className:Ee("px-2 py-1.5 text-sm font-semibold",i&&"pl-8",r),...a}));bx.displayName=wf.displayName;const Cx=h.forwardRef(({className:r,...i},a)=>g.jsx(Sf,{ref:a,className:Ee("-mx-1 my-1 h-px bg-muted",r),...i}));Cx.displayName=Sf.displayName;const Pf=({message:r,className:i,hideActions:a,onResponse:l})=>{const{downloadFile:c,editMessage:d,deleteMessage:m,author:p}=h.useContext(Vt),[w,v]=h.useState(!1),[C,y]=h.useState(!1),[S,E]=h.useState(r.content),[N,x]=h.useState(null),k=h.useRef(null),M=!!r.url,I=async()=>{z()&&F()},F=async()=>{v(!0);const ie=await c(r._id);x(ie),v(!1)},z=()=>p.role===lt.CONSTRUCTOR?!0:p.role===lt.CONTRATISTA?r.isOwner||r.author.role===lt.CONSTRUCTOR:!1;h.useEffect(()=>{N?.data&&N.fileName&&k.current&&k.current.click()},[N]);const U=()=>{y(!0)},$=()=>{d({...r,content:S}),y(!1)},W=()=>{m(r._id)},J=ie=>{E(ie.target.value)};return g.jsxs("div",{className:Ee("flex gap-[8px] border p-[16px] border-[#CED4DA] rounded-[8px] bg-white items-start",i),children:[g.jsx(Vo,{children:r.author.role===p.role&&!r.isOwner?g.jsx(Dr,{children:zo("Proveedor")}):g.jsxs(g.Fragment,{children:[g.jsx(Wo,{src:r.author.avatar,alt:r.author.name}),g.jsx(Dr,{children:zo(r.author.name)})]})}),g.jsxs("div",{className:"w-full",children:[g.jsxs("div",{className:"flex items-center gap-[8px]",children:[r.author.role===p.role&&!r.isOwner?g.jsx("p",{className:"font-[600]",children:"Proveedor"}):g.jsx("p",{className:"font-[600]",children:r.author.name}),g.jsxs("p",{className:"text-[12px] text-[#6C757D]",children:["Publicado el ",Uo(r.date),", ",Bo(r.date)]})]}),M&&g.jsx("audio",{className:"w-full",src:r.url,controls:!0}),!M&&!C&&g.jsx("p",{children:r.content}),C&&g.jsxs("div",{className:"flex gap-[8px] items-center",children:[g.jsx(dc,{value:S,onInput:J}),g.jsx(_t,{size:"icon",type:"button",onClick:$,children:g.jsx(Le,{className:"text-[20px]",icon:"save"})})]}),g.jsxs("div",{children:[r.documentName&&!w&&g.jsxs("div",{className:"flex items-center gap-[8px] mt-[8px] text-[#6C757D] cursor-pointer",onClick:I,children:[g.jsx(Le,{icon:"attach_file"}),g.jsx("p",{children:z()?r.documentName:"Documento adjunto"})]}),N?.data&&N.fileName&&g.jsx("a",{href:N.data,download:N.fileName,ref:k,style:{display:"none"},children:"Descargar Archivo"}),w&&g.jsx("p",{children:"Descargando archivo..."})]})]}),!a&&!C&&g.jsxs(hx,{children:[g.jsx(gx,{children:g.jsx(_t,{variant:"ghost",size:"icon",children:g.jsx(Le,{icon:"more_vert",className:"text-[20px]"})})}),g.jsxs(Nf,{children:[g.jsxs(vi,{onClick:l,children:[g.jsx(Le,{icon:"forum",className:"mr-[8px]"}),"Responder"]}),r.isOwner&&g.jsxs(vi,{onClick:U,children:[g.jsx(Le,{icon:"edit_square",className:"mr-[8px]"}),"Editar"]}),r.isOwner&&g.jsxs(vi,{onClick:W,children:[g.jsx(Le,{icon:"delete",className:"mr-[8px]"}),"Eliminar"]})]})]})]})},Sx="data:image/svg+xml,%3csvg%20width='80'%20height='80'%20viewBox='0%200%2080%2080'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.82343%2070.0269C8.32726%2070.523%207.47889%2070.1716%207.47889%2069.4699V11.666C7.47889%2010.5622%207.88304%209.59836%208.74094%208.74046C9.59885%207.88255%2010.5627%207.4784%2011.6665%207.4784H68.3332C69.437%207.4784%2070.4008%207.88255%2071.2587%208.74046C72.1166%209.59836%2072.5208%2010.5622%2072.5208%2011.666V54.9993C72.5208%2056.1031%2072.1166%2057.067%2071.2587%2057.9249C70.4008%2058.7828%2069.437%2059.187%2068.3332%2059.187H20.6626C20.0228%2059.187%2019.4092%2059.4411%2018.9568%2059.8935L19.5312%2060.468L18.9568%2059.8935L8.82343%2070.0269ZM39.9982%2050.2284C40.9815%2050.2284%2041.8445%2049.8871%2042.532%2049.2011C43.2199%2048.5146%2043.5622%2047.6516%2043.5622%2046.6677C43.5622%2045.6843%2043.2209%2044.8213%2042.5349%2044.1338C41.8484%2043.4459%2040.9854%2043.1036%2040.0015%2043.1036C39.0182%2043.1036%2038.1552%2043.4449%2037.4677%2044.131C36.7797%2044.8175%2036.4375%2045.6804%2036.4375%2046.6643C36.4375%2047.6477%2036.7788%2048.5107%2037.4648%2049.1982C38.1513%2049.8861%2039.0143%2050.2284%2039.9982%2050.2284ZM36.6875%2035.9827C36.6875%2037.315%2037.7675%2038.3951%2039.0998%2038.3951H40.8998C42.2322%2038.3951%2043.3122%2037.315%2043.3122%2035.9827V18.266C43.3122%2016.9337%2042.2322%2015.8536%2040.8998%2015.8536H39.0998C37.7675%2015.8536%2036.6875%2016.9337%2036.6875%2018.266V35.9827Z'%20fill='url(%23paint0_linear_268_1660)'%20stroke='%23CED4DA'%20stroke-width='1.62476'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_268_1660'%20x1='39.9998'%20y1='6.66602'%20x2='41.6617'%20y2='113.127'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F1F3F5'/%3e%3cstop%20offset='1'%20stop-color='%23ADB5BD'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";var Rs="Collapsible",[Ex,f2]=Wt(Rs),[kx,Ns]=Ex(Rs),Tf=h.forwardRef((r,i)=>{const{__scopeCollapsible:a,open:l,defaultOpen:c,disabled:d,onOpenChange:m,...p}=r,[w=!1,v]=Go({prop:l,defaultProp:c,onChange:m});return g.jsx(kx,{scope:a,disabled:d,contentId:Yo(),open:w,onOpenToggle:h.useCallback(()=>v(C=>!C),[v]),children:g.jsx(Se.div,{"data-state":Ts(w),"data-disabled":d?"":void 0,...p,ref:i})})});Tf.displayName=Rs;var Af="CollapsibleTrigger",Mf=h.forwardRef((r,i)=>{const{__scopeCollapsible:a,...l}=r,c=Ns(Af,a);return g.jsx(Se.button,{type:"button","aria-controls":c.contentId,"aria-expanded":c.open||!1,"data-state":Ts(c.open),"data-disabled":c.disabled?"":void 0,disabled:c.disabled,...l,ref:i,onClick:me(r.onClick,c.onOpenToggle)})});Mf.displayName=Af;var Ps="CollapsibleContent",_f=h.forwardRef((r,i)=>{const{forceMount:a,...l}=r,c=Ns(Ps,r.__scopeCollapsible);return g.jsx(jn,{present:a||c.open,children:({present:d})=>g.jsx(Rx,{...l,ref:i,present:d})})});_f.displayName=Ps;var Rx=h.forwardRef((r,i)=>{const{__scopeCollapsible:a,present:l,children:c,...d}=r,m=Ns(Ps,a),[p,w]=h.useState(l),v=h.useRef(null),C=He(i,v),y=h.useRef(0),S=y.current,E=h.useRef(0),N=E.current,x=m.open||p,k=h.useRef(x),M=h.useRef();return h.useEffect(()=>{const I=requestAnimationFrame(()=>k.current=!1);return()=>cancelAnimationFrame(I)},[]),Ct(()=>{const I=v.current;if(I){M.current=M.current||{transitionDuration:I.style.transitionDuration,animationName:I.style.animationName},I.style.transitionDuration="0s",I.style.animationName="none";const F=I.getBoundingClientRect();y.current=F.height,E.current=F.width,k.current||(I.style.transitionDuration=M.current.transitionDuration,I.style.animationName=M.current.animationName),w(l)}},[m.open,l]),g.jsx(Se.div,{"data-state":Ts(m.open),"data-disabled":m.disabled?"":void 0,id:m.contentId,hidden:!x,...d,ref:C,style:{"--radix-collapsible-content-height":S?`${S}px`:void 0,"--radix-collapsible-content-width":N?`${N}px`:void 0,...r.style},children:x&&c})});function Ts(r){return r?"open":"closed"}var Nx=Tf;const Px=Nx,Tx=Mf,Ax=_f,jf=({message:r,date:i})=>g.jsxs("div",{className:"w-full flex justify-center items-center text-[#4A4A4A] text-[12px]  font-[600]",children:[g.jsx("div",{className:"border-t border border-[#CED4DA] flex-grow rounded-[8px]"}),g.jsxs("div",{className:"flex flex-col bg-transparent items-center px-[16px]",children:[g.jsx("p",{children:r}),g.jsxs("small",{children:[Uo(i),", ",Bo(i)]})]}),g.jsx("div",{className:"border-t border border-[#CED4DA] flex-grow rounded-[8px]"})]}),Mx=()=>{const{author:r,messages:i,getMessages:a,isLoading:l,centerEnabledDate:c}=h.useContext(Vt),[d,m]=h.useState(""),[p,w]=h.useState("");h.useEffect(()=>{a()},[]);const v=E=>E.children&&E.children.length>0,C=E=>{m(E)},y=(E,N)=>{w(E?N:"")},S=h.useMemo(()=>{const E=new Date;return new Date(c)<E&&r.role===lt.CONTRATISTA},[c,r.role]);return i.length===0?g.jsxs(g.Fragment,{children:[g.jsx(Lr,{className:"mb-[24px]",hidden:S}),_x()]}):g.jsxs(g.Fragment,{children:[g.jsx(Lr,{className:"mb-[24px]",hidden:S}),g.jsxs("div",{className:"flex flex-col gap-[8px] border h-[600px] border-[#CED4DA] bg-[#F1F3F5] p-[16px] rounded-[8px] overflow-auto font-normal",children:[l&&g.jsx("div",{className:"w-full flex items-center justify-center text-[#495057] gap-[8px]",children:g.jsx(Le,{icon:"sync",className:"animate-spin text-[20px] mb-[8px]"})}),i.map(E=>g.jsxs(g.Fragment,{children:[g.jsx(Pf,{message:E,hideActions:v(E)||S,onResponse:()=>C(E._id)},E._id),E.children&&E.children?.length>0&&g.jsxs(Px,{onOpenChange:N=>y(N,E._id),open:p===E._id,children:[g.jsx(Ax,{children:g.jsxs("div",{className:"w-full flex flex-col gap-[8px] border self-end pl-[10%] rounded-[8px]",children:[g.jsx("div",{className:" flex flex-col gap-[8px]",children:E.children&&E.children.length>0&&E.children.map((N,x)=>g.jsx(Pf,{message:N,hideActions:x!==E.children.length-1||S,onResponse:()=>C(E._id)},N._id))}),d===E._id&&g.jsx(Lr,{parentMessageId:E._id},"formMessage_"+E._id)]},"childMessages_"+E._id)},`CollapsibleContent_${E._id}`),g.jsx(Tx,{className:"w-full ",children:g.jsxs("div",{className:"flex items-center justify-center text-[14px] text-[#495057] gap-[8px]",children:[g.jsx("hr",{className:"flex-grow border-[2px] border-[#CED4DA] rounded-[8px]"}),g.jsxs("div",{className:"flex item-center gap-[8px]",children:[g.jsx(Le,{icon:p===E._id?"keyboard_arrow_up":"keyboard_arrow_down"})," ",p===E._id?"Cerrar":"Expandir"," hilo (",E.children?.length||0,")"]}),g.jsx("hr",{className:"flex-grow border-[2px] border-[#CED4DA] rounded-[8px]"})]})})]},`Collapsible_${E._id}`),E.children.length===0&&d===E._id&&g.jsx("div",{className:"w-full flex flex-col gap-[8px] border self-end pl-[10%] py-[8px]",children:g.jsx(Lr,{parentMessageId:E._id},"formMessage_"+E._id)})]})),S&&jx(c,r.role)]})]})};function _x(){return g.jsxs("div",{className:"flex flex-col items-center gap-[8px] border h-[320px] border-[#CED4DA] bg-[#F1F3F5] p-[16px] rounded-[8px] justify-center text-center font-normal",children:[g.jsx("div",{children:g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",children:[g.jsx("path",{d:"M8.8249 70.0249C8.32873 70.5211 7.48035 70.1697 7.48035 69.468V11.6641C7.48035 10.5603 7.8845 9.59641 8.74241 8.7385C9.60032 7.8806 10.5642 7.47644 11.668 7.47644H68.3346C69.4384 7.47644 70.4023 7.8806 71.2602 8.7385C72.1181 9.59641 72.5222 10.5603 72.5222 11.6641V54.9974C72.5222 56.1012 72.1181 57.0651 71.2602 57.923C70.4023 58.7809 69.4384 59.185 68.3346 59.185H20.664C20.0242 59.185 19.4106 59.4392 18.9582 59.8916L19.5327 60.466L18.9582 59.8916L8.8249 70.0249ZM39.9996 50.2264C40.983 50.2264 41.846 49.8852 42.5335 49.1991C43.2214 48.5126 43.5637 47.6496 43.5637 46.6657C43.5637 45.6824 43.2224 44.8194 42.5364 44.1319C41.8499 43.444 40.9869 43.1017 40.003 43.1017C39.0196 43.1017 38.1566 43.443 37.4691 44.129C36.7812 44.8155 36.4389 45.6785 36.4389 46.6624C36.4389 47.6457 36.7802 48.5087 37.4663 49.1962C38.1527 49.8842 39.0157 50.2264 39.9996 50.2264ZM36.6889 35.9807C36.6889 37.3131 37.769 38.3931 39.1013 38.3931H40.9013C42.2336 38.3931 43.3137 37.3131 43.3137 35.9807V18.2641C43.3137 16.9317 42.2336 15.8517 40.9013 15.8517H39.1013C37.769 15.8517 36.6889 16.9317 36.6889 18.2641V35.9807Z",fill:"url(#paint0_linear_1426_7833)",stroke:"#CED4DA",strokeWidth:"1.62476"}),g.jsx("defs",{children:g.jsxs("linearGradient",{id:"paint0_linear_1426_7833",x1:"40.0013",y1:"6.66406",x2:"41.6632",y2:"113.125",gradientUnits:"userSpaceOnUse",children:[g.jsx("stop",{stopColor:"#F1F3F5"}),g.jsx("stop",{offset:"1",stopColor:"#ADB5BD"})]})})]})}),g.jsxs("div",{className:"w-[300px] text-[#212529] text-[14px]",children:[g.jsxs("p",{className:"mb-[24px]",children:["No hay mensajes masivos ",g.jsx("br",{}),"para esta licitación."]}),g.jsx("p",{children:"Puedes enviar un mensaje masivo desde la caja de texto en el borde superior."})]})]})}function jx(r,i){return g.jsxs(g.Fragment,{children:[g.jsx(jf,{message:"El centro de contacto se ha finalizado",date:r}),g.jsx("div",{className:"w-full flex items-center justify-center text-[#495057] gap-[8px]",children:i===lt.CONTRATISTA?g.jsxs("div",{className:"flex flex-col items-center gap-[8px]",children:[g.jsx("img",{src:Sx,alt:"Contact Center Cerrado",className:"w-[80px] h-[80px]"}),g.jsx("p",{className:"text-[14px] font-[400]",children:"No puedes realizar más preguntas"})]}):g.jsx("p",{className:"text-[14px] font-[400]",children:"Los proveedores no pueden hacer mas preguntas"})})]})}var Ix="VisuallyHidden",As=h.forwardRef((r,i)=>g.jsx(Se.span,{...r,ref:i,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",...r.style}}));As.displayName=Ix;var Ms="ToastProvider",[_s,Ox,Dx]=Ka("Toast"),[If,p2]=Wt("Toast",[Dx]),[Fx,wi]=If(Ms),Of=r=>{const{__scopeToast:i,label:a="Notification",duration:l=5e3,swipeDirection:c="right",swipeThreshold:d=50,children:m}=r,[p,w]=h.useState(null),[v,C]=h.useState(0),y=h.useRef(!1),S=h.useRef(!1);return a.trim()||console.error(`Invalid prop \`label\` supplied to \`${Ms}\`. Expected non-empty \`string\`.`),g.jsx(_s.Provider,{scope:i,children:g.jsx(Fx,{scope:i,label:a,duration:l,swipeDirection:c,swipeThreshold:d,toastCount:v,viewport:p,onViewportChange:w,onToastAdd:h.useCallback(()=>C(E=>E+1),[]),onToastRemove:h.useCallback(()=>C(E=>E-1),[]),isFocusedToastEscapeKeyDownRef:y,isClosePausedRef:S,children:m})})};Of.displayName=Ms;var Df="ToastViewport",Lx=["F8"],js="toast.viewportPause",Is="toast.viewportResume",Ff=h.forwardRef((r,i)=>{const{__scopeToast:a,hotkey:l=Lx,label:c="Notifications ({hotkey})",...d}=r,m=wi(Df,a),p=Ox(a),w=h.useRef(null),v=h.useRef(null),C=h.useRef(null),y=h.useRef(null),S=He(i,y,m.onViewportChange),E=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=m.toastCount>0;h.useEffect(()=>{const k=M=>{l.every(F=>M[F]||M.code===F)&&y.current?.focus()};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[l]),h.useEffect(()=>{const k=w.current,M=y.current;if(N&&k&&M){const I=()=>{if(!m.isClosePausedRef.current){const $=new CustomEvent(js);M.dispatchEvent($),m.isClosePausedRef.current=!0}},F=()=>{if(m.isClosePausedRef.current){const $=new CustomEvent(Is);M.dispatchEvent($),m.isClosePausedRef.current=!1}},z=$=>{!k.contains($.relatedTarget)&&F()},U=()=>{k.contains(document.activeElement)||F()};return k.addEventListener("focusin",I),k.addEventListener("focusout",z),k.addEventListener("pointermove",I),k.addEventListener("pointerleave",U),window.addEventListener("blur",I),window.addEventListener("focus",F),()=>{k.removeEventListener("focusin",I),k.removeEventListener("focusout",z),k.removeEventListener("pointermove",I),k.removeEventListener("pointerleave",U),window.removeEventListener("blur",I),window.removeEventListener("focus",F)}}},[N,m.isClosePausedRef]);const x=h.useCallback(({tabbingDirection:k})=>{const I=p().map(F=>{const z=F.ref.current,U=[z,...Jx(z)];return k==="forwards"?U:U.reverse()});return(k==="forwards"?I.reverse():I).flat()},[p]);return h.useEffect(()=>{const k=y.current;if(k){const M=I=>{const F=I.altKey||I.ctrlKey||I.metaKey;if(I.key==="Tab"&&!F){const U=document.activeElement,$=I.shiftKey;if(I.target===k&&$){v.current?.focus();return}const ie=x({tabbingDirection:$?"backwards":"forwards"}),ae=ie.findIndex(ce=>ce===U);Fs(ie.slice(ae+1))?I.preventDefault():$?v.current?.focus():C.current?.focus()}};return k.addEventListener("keydown",M),()=>k.removeEventListener("keydown",M)}},[p,x]),g.jsxs(Mv,{ref:w,role:"region","aria-label":c.replace("{hotkey}",E),tabIndex:-1,style:{pointerEvents:N?void 0:"none"},children:[N&&g.jsx(Os,{ref:v,onFocusFromOutsideViewport:()=>{const k=x({tabbingDirection:"forwards"});Fs(k)}}),g.jsx(_s.Slot,{scope:a,children:g.jsx(Se.ol,{tabIndex:-1,...d,ref:S})}),N&&g.jsx(Os,{ref:C,onFocusFromOutsideViewport:()=>{const k=x({tabbingDirection:"backwards"});Fs(k)}})]})});Ff.displayName=Df;var Lf="ToastFocusProxy",Os=h.forwardRef((r,i)=>{const{__scopeToast:a,onFocusFromOutsideViewport:l,...c}=r,d=wi(Lf,a);return g.jsx(As,{"aria-hidden":!0,tabIndex:0,...c,ref:i,style:{position:"fixed"},onFocus:m=>{const p=m.relatedTarget;!d.viewport?.contains(p)&&l()}})});Os.displayName=Lf;var yi="Toast",zx="toast.swipeStart",Ux="toast.swipeMove",Bx="toast.swipeCancel",Vx="toast.swipeEnd",zf=h.forwardRef((r,i)=>{const{forceMount:a,open:l,defaultOpen:c,onOpenChange:d,...m}=r,[p=!0,w]=Go({prop:l,defaultProp:c,onChange:d});return g.jsx(jn,{present:a||p,children:g.jsx($x,{open:p,...m,ref:i,onClose:()=>w(!1),onPause:Ge(r.onPause),onResume:Ge(r.onResume),onSwipeStart:me(r.onSwipeStart,v=>{v.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:me(r.onSwipeMove,v=>{const{x:C,y}=v.detail.delta;v.currentTarget.setAttribute("data-swipe","move"),v.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${C}px`),v.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}),onSwipeCancel:me(r.onSwipeCancel,v=>{v.currentTarget.setAttribute("data-swipe","cancel"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),v.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:me(r.onSwipeEnd,v=>{const{x:C,y}=v.detail.delta;v.currentTarget.setAttribute("data-swipe","end"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),v.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${C}px`),v.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),w(!1)})})})});zf.displayName=yi;var[Wx,Hx]=If(yi,{onClose(){}}),$x=h.forwardRef((r,i)=>{const{__scopeToast:a,type:l="foreground",duration:c,open:d,onClose:m,onEscapeKeyDown:p,onPause:w,onResume:v,onSwipeStart:C,onSwipeMove:y,onSwipeCancel:S,onSwipeEnd:E,...N}=r,x=wi(yi,a),[k,M]=h.useState(null),I=He(i,X=>M(X)),F=h.useRef(null),z=h.useRef(null),U=c||x.duration,$=h.useRef(0),W=h.useRef(U),J=h.useRef(0),{onToastAdd:ie,onToastRemove:ae}=x,ce=Ge(()=>{k?.contains(document.activeElement)&&x.viewport?.focus(),m()}),ee=h.useCallback(X=>{!X||X===1/0||(window.clearTimeout(J.current),$.current=new Date().getTime(),J.current=window.setTimeout(ce,X))},[ce]);h.useEffect(()=>{const X=x.viewport;if(X){const Z=()=>{ee(W.current),v?.()},Y=()=>{const G=new Date().getTime()-$.current;W.current=W.current-G,window.clearTimeout(J.current),w?.()};return X.addEventListener(js,Y),X.addEventListener(Is,Z),()=>{X.removeEventListener(js,Y),X.removeEventListener(Is,Z)}}},[x.viewport,U,w,v,ee]),h.useEffect(()=>{d&&!x.isClosePausedRef.current&&ee(U)},[d,U,x.isClosePausedRef,ee]),h.useEffect(()=>(ie(),()=>ae()),[ie,ae]);const ge=h.useMemo(()=>k?Kf(k):null,[k]);return x.viewport?g.jsxs(g.Fragment,{children:[ge&&g.jsx(Kx,{__scopeToast:a,role:"status","aria-live":l==="foreground"?"assertive":"polite","aria-atomic":!0,children:ge}),g.jsx(Wx,{scope:a,onClose:ce,children:Qn.createPortal(g.jsx(_s.ItemSlot,{scope:a,children:g.jsx(Av,{asChild:!0,onEscapeKeyDown:me(p,()=>{x.isFocusedToastEscapeKeyDownRef.current||ce(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:g.jsx(Se.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":d?"open":"closed","data-swipe-direction":x.swipeDirection,...N,ref:I,style:{userSelect:"none",touchAction:"none",...r.style},onKeyDown:me(r.onKeyDown,X=>{X.key==="Escape"&&(p?.(X.nativeEvent),X.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,ce()))}),onPointerDown:me(r.onPointerDown,X=>{X.button===0&&(F.current={x:X.clientX,y:X.clientY})}),onPointerMove:me(r.onPointerMove,X=>{if(!F.current)return;const Z=X.clientX-F.current.x,Y=X.clientY-F.current.y,G=!!z.current,D=["left","right"].includes(x.swipeDirection),O=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,Q=D?O(0,Z):0,T=D?0:O(0,Y),L=X.pointerType==="touch"?10:2,ue={x:Q,y:T},fe={originalEvent:X,delta:ue};G?(z.current=ue,xi(Ux,y,fe,{discrete:!1})):Gf(ue,x.swipeDirection,L)?(z.current=ue,xi(zx,C,fe,{discrete:!1}),X.target.setPointerCapture(X.pointerId)):(Math.abs(Z)>L||Math.abs(Y)>L)&&(F.current=null)}),onPointerUp:me(r.onPointerUp,X=>{const Z=z.current,Y=X.target;if(Y.hasPointerCapture(X.pointerId)&&Y.releasePointerCapture(X.pointerId),z.current=null,F.current=null,Z){const G=X.currentTarget,D={originalEvent:X,delta:Z};Gf(Z,x.swipeDirection,x.swipeThreshold)?xi(Vx,E,D,{discrete:!0}):xi(Bx,S,D,{discrete:!0}),G.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),Kx=r=>{const{__scopeToast:i,children:a,...l}=r,c=wi(yi,i),[d,m]=h.useState(!1),[p,w]=h.useState(!1);return Qx(()=>m(!0)),h.useEffect(()=>{const v=window.setTimeout(()=>w(!0),1e3);return()=>window.clearTimeout(v)},[]),p?null:g.jsx(us,{asChild:!0,children:g.jsx(As,{...l,children:d&&g.jsxs(g.Fragment,{children:[c.label," ",a]})})})},Gx="ToastTitle",Uf=h.forwardRef((r,i)=>{const{__scopeToast:a,...l}=r;return g.jsx(Se.div,{...l,ref:i})});Uf.displayName=Gx;var Yx="ToastDescription",Bf=h.forwardRef((r,i)=>{const{__scopeToast:a,...l}=r;return g.jsx(Se.div,{...l,ref:i})});Bf.displayName=Yx;var Vf="ToastAction",Wf=h.forwardRef((r,i)=>{const{altText:a,...l}=r;return a.trim()?g.jsx($f,{altText:a,asChild:!0,children:g.jsx(Ds,{...l,ref:i})}):(console.error(`Invalid prop \`altText\` supplied to \`${Vf}\`. Expected non-empty \`string\`.`),null)});Wf.displayName=Vf;var Hf="ToastClose",Ds=h.forwardRef((r,i)=>{const{__scopeToast:a,...l}=r,c=Hx(Hf,a);return g.jsx($f,{asChild:!0,children:g.jsx(Se.button,{type:"button",...l,ref:i,onClick:me(r.onClick,c.onClose)})})});Ds.displayName=Hf;var $f=h.forwardRef((r,i)=>{const{__scopeToast:a,altText:l,...c}=r;return g.jsx(Se.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":l||void 0,...c,ref:i})});function Kf(r){const i=[];return Array.from(r.childNodes).forEach(l=>{if(l.nodeType===l.TEXT_NODE&&l.textContent&&i.push(l.textContent),Xx(l)){const c=l.ariaHidden||l.hidden||l.style.display==="none",d=l.dataset.radixToastAnnounceExclude==="";if(!c)if(d){const m=l.dataset.radixToastAnnounceAlt;m&&i.push(m)}else i.push(...Kf(l))}}),i}function xi(r,i,a,{discrete:l}){const c=a.originalEvent.currentTarget,d=new CustomEvent(r,{bubbles:!0,cancelable:!0,detail:a});i&&c.addEventListener(r,i,{once:!0}),l?Oa(c,d):c.dispatchEvent(d)}var Gf=(r,i,a=0)=>{const l=Math.abs(r.x),c=Math.abs(r.y),d=l>c;return i==="left"||i==="right"?d&&l>a:!d&&c>a};function Qx(r=()=>{}){const i=Ge(r);Ct(()=>{let a=0,l=0;return a=window.requestAnimationFrame(()=>l=window.requestAnimationFrame(i)),()=>{window.cancelAnimationFrame(a),window.cancelAnimationFrame(l)}},[i])}function Xx(r){return r.nodeType===r.ELEMENT_NODE}function Jx(r){const i=[],a=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const c=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||c?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)i.push(a.currentNode);return i}function Fs(r){const i=document.activeElement;return r.some(a=>a===i?!0:(a.focus(),document.activeElement!==i))}var Zx=Of,Yf=Ff,Qf=zf,Xf=Uf,Jf=Bf,Zf=Wf,qf=Ds;const qx=Zx,ep=h.forwardRef(({className:r,...i},a)=>g.jsx(Yf,{ref:a,className:Ee("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-[16px] sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",r),...i}));ep.displayName=Yf.displayName;const e1=za("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-[24px] pr-[32px] shadow-lg 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-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",negative:"destructive bg-[#FFE3E3] group border-l-[8px] border-l-[#C92A2A] "}},defaultVariants:{variant:"default"}}),tp=h.forwardRef(({className:r,variant:i,...a},l)=>g.jsx(Qf,{ref:l,className:Ee(e1({variant:i}),r),...a}));tp.displayName=Qf.displayName;const t1=h.forwardRef(({className:r,...i},a)=>g.jsx(Zf,{ref:a,className:Ee("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-[12px] text-[14px] font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",r),...i}));t1.displayName=Zf.displayName;const np=h.forwardRef(({className:r,...i},a)=>g.jsx(qf,{ref:a,className:Ee("absolute right-[8px] top-[8px] rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",r),"toast-close":"",...i,children:g.jsx(mx,{className:"h-[16px] w-[16px]"})}));np.displayName=qf.displayName;const rp=h.forwardRef(({className:r,...i},a)=>g.jsx(Xf,{ref:a,className:Ee("text-[16px] text-[#212529] font-semibold",r),...i}));rp.displayName=Xf.displayName;const op=h.forwardRef(({className:r,...i},a)=>g.jsx(Jf,{ref:a,className:Ee("text-[14px] text-[#343A40] ",r),...i}));op.displayName=Jf.displayName;function ip(){const{toasts:r}=Cc();return g.jsxs(qx,{children:[r.map(function({id:i,title:a,description:l,action:c,...d}){return g.jsxs(tp,{...d,children:[g.jsxs("div",{className:"grid gap-1",children:[a&&g.jsx(rp,{children:a}),l&&g.jsx(op,{children:l})]}),c,g.jsx(np,{})]},i)}),g.jsx(ep,{})]})}const n1=()=>{const{author:r,centerEnabledDate:i}=h.useContext(Vt),a=h.useMemo(()=>r.role===lt.CONSTRUCTOR?"Aclara dudas técnicas, horarios, fechas, o simplemente desea suerte a todos los proveedores interesados en esta licitación. Ten presente que una vez finalice el plazo, los proveedores no podrán publicar ni responder ningún mensaje, pero tu seguirás pudiendo publicar.":"Aclara dudas técnicas, horarios, fechas, o simplemente desea suerte a todos los proveedores interesados en esta licitación. Ten presente que una vez finalice el plazo no podrás publicar ni responder ningún mensaje.",[r.role]);return g.jsxs(g.Fragment,{children:[g.jsxs("h2",{className:"text-[20px] font-[600] mb-[8px] flex items-center gap-[8px]",children:["Centro de contacto ",g.jsxs(Ua,{variant:"outline",className:"border-[#1C7ED6] bg-[#D0EBFF] rounded-[4px] text-[14px] leading-[20px]",children:["Finaliza ",Uo(i),", ",Bo(i)]})]}),g.jsx("p",{className:"mb-[24px] text-[16px]",children:a})]})},r1=({url_api:r,profile:i,tender_id:a,project:l})=>g.jsxs(Wu,{options:{url_api:r,profile:i,tender_id:a,project:l},children:[g.jsx("style",{children:Hu}),g.jsx(n1,{}),g.jsx(Mx,{}),g.jsx(ip,{})]}),o1=()=>{const{countNewMessages:r,contactList:i,getConversation:a,conversationSelected:l}=h.useContext(Vt);return g.jsxs("div",{className:"w-1/4 border rounded-s-[8px] bg-white flex flex-col overflow-auto text-[#212529]",children:[g.jsxs("header",{className:"flex justify-between p-[16px] border-b text-[16px] font-[600]",children:[g.jsx("h4",{children:"Nuevos mensajes"}),g.jsx("span",{children:r})]}),g.jsx("div",{className:"max-h-full overflow-auto",children:i.map(c=>g.jsxs("div",{className:Ee("flex items-center gap-[8px] p-[16px] border-b transition hover:bg-[#F1F3F5] cursor-pointer",l===c._id&&"bg-[#F1F3F5]"),onClick:()=>a(c._id),children:[g.jsxs(Vo,{children:[g.jsx(Wo,{src:c.image,alt:c.name}),g.jsx(Dr,{children:zo(c.name)})]}),g.jsx("h5",{className:"text-[16px] font-[600] flex-1 text-ellipsis text-nowrap overflow-hidden",title:c.name,children:c.name}),c.hasNewMessages&&g.jsx(Ua,{variant:"accents",children:"Nuevo mensaje"})]},c._id))})]})},i1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAYAAACLz2ctAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABpaSURBVHgB7V2Jdtw2si1IXuJ4iR1nnLw35/3/j82bmWTieJF3SV3TXADUCrJJtKiWcc+RmgSBAghcVBVAEAzvLj4iNDRshDNoaNgQjYANm6IRsGFTNAI2bIpGwIZN0QjYsCkaARs2RSNgw6ZoBGzYFI2ADZuiEbBhUzQCNmyKRsCGTdEI2LAp7kEF7HY7eP/hE3z7dglX19fQUB9nZ2dw7945PHr4EB7/+APcFawm4MdPX+CP13/tSdiWFd4E3sGHnoh///WX/W8V/bEpVpngi73W+/d/Xjfy3TCurq7h/3//c/97BaeOsHRF9Ne9uf3Hv/5gYY8fPYIHD06/V95GdJ3846fPzMXpNOH//c+r3jyfKhaz5fe95os4CwF+ffVy7588IDEC7IMBUfM77C9Y4SeB4abcy92VAMsR01M58fjli2fw5t1F/9eh04Td8csXP8GpYlHX6Uzv5VXuiS+ePxPk6yoNYTc2FKaw8Xcm+bBwTmV24qy4SK7TMHXduobGOREm5efrPM94v8MfGL85ryi/uxZiOiB57n+fP3sCPz19nGR3g79uEHiqWKQBv377lo67UVmsEItX6PzmM64vqILJx6jkQa9FiQwcSO8hly308QJNTzLFMU5kEppyAkAhr3hJ10ehNlDmE+8LxeXQk3DvOvVnHfk+f/l2siPjRRqQDjrO935I7OHQNyyAqWfG8HzdiANZznBMZQnEeCEIeSOGjHqi8fCYnKRRTPHIFcT1Q43tofGZGk1hcUom4vp704AlINq6jpqRA6SVL5f8MZFf1LXRvLGwKM459suDZlwr7RA2897HggVWbphUvKeI9QRUJqIMVqlGuJ0H5Aahx6XpHyuDURaSQjBfjaRBkaYERUsjb+1W0NSkQCEXEscbRqbFY/y7gSoa0FRCpBFopbu+IGsZTtPoryGpfESDlbRxUDRU79BH3y77eLIYxfOYPpXV6TYuI0MuN4tEaiXV0760Yy9IWhu9DE4XFU0wOqdyysUxbqivR8rsiNmMvmGImahGyRo5EBlAQoewIK5xKTY4EaRJ9RUmChMcTTcviy0Hc58R1+8CqhEQZ1/BiXixccRVrdCYnySRGpw2XhzUhExMpnOlcovRybwlsrLadzD3WiJdQO1m5JtQAtATeIJYTUAE0piWonM8+76hAdyKNOrdtnYT6fMJ5kwxasIcIemoyFba4LgDV+8EIh+CUQKvi1D52W1getAdsDUfkCP6Z4H4X6who82SvhDAnAYyMfFEwi6n5XfFMvCyoLgyhEmTS/wzYUbTdUDQQ4gg5KFRC/resia+I+oPqplgPmNP/Z0wahoeFlMN/x0lyc6ln3Qw+QxwJT1lVi3PjvqbaMhGMyVGJ9ZQmuZYzEp3R1CBgKjIY/s7RoqxAeg4Ap10GIQTNLchPEZT2ZYg3ksm85D9AWGiHEh+6SwBloTAnSJfh2ommPzwS6FwsRQ+FQ/LUZOCQaFoOPddCYOyyaYyGCoraXT0+sQ4jZRMdRCWIReGjojTbJFlhg1Tf8qoMw8I8yo3wpt+oPDSTCGANeEBbi4yD56GGmAtKZbJdBFIXBS/7JhyGscOi1DuIXdICx5l8Z4komwYq0E8GVQOUFuvE6TpFaWO0vwxlzMMnICfl0DlIDoEPRBpbpwQMgvV8e4S+6DGNAzm0WACrayCDzY7DyuBlOn5WJRg6XkYTKlGryBcDhh5kCCaLMjfWEc4xsCcKqgsu6ciQYTdDVR6FCc0CRKrQtqcno9nbFlUNmPZkMZRdIwff5jJRxkne2x0SKnDNJgvBjM1Dua0sdxUf5suAUqDT8XNC7sLqOQDRkccGXVAU0eAa07qF3I/zJolQ/OYh0SNEgBnNqHtHsxT28qvi9pNq7QhNh1p05l8Lzs2Mr8bhKxCwKHuxoYLnm1LdlkFUaC0VX08dMXxRpEyBZnchjXmUaQcOSdHotGyJO1Pzw1exjiUe3LkTosCAMqa3AXUM8HpePhllUR6N2sElFptCFONgEIUDdPKr1BQIQMiEVD7cTPlWmWR5UZDjBUmz/W86lB7pVs8NVQzwcUwtK+V0lGi8uvCx2OpSraLppMpvccPljxLRc+Bo0KZyKgyh19lDYjavCskPN5yrBgUpsLoJFg+ZVMvQQtW2pH6UFS0UFGqlMn+RRIauskw6+p+vWfTqgwGoqYUq7ipN0OtQjPBFH2bORUfr1tp7BPSu1GFKZ8dbFcw+mWlR6eam9ME6dNZ7mIAwMKynEN1JUlqn4flFPz85Su8fvOuf697KR798BCePv4Rnj75EdZiPQGDU7krKn5MXgxTeghFGPpySuEdspnOdxCngyyeobUiO+VS8tl4HrwEAF7XGZaHHY5uJ4V//v4nrEVH4u7v2+Xl6neSq62GMXTQgeQr6ilybsedzqvUHWyPktp3FBpZu4romGHbVKtaYoOgPD+qdR0u1oBv33+AmujkdW/kvXr5ApaikgmOBzEI2SriVF2Fjm3rEBTh43mg6/AghdGRtp2DPYQIxOjbNNUh5ih9zhIxtIgO2hMp3cvCpWj0ddoH9+/vTeij8Wy+rbq+2sHFp89wPW4R0m1S8PD+A/jp2WNYgmrLseQtJPKlgd387Tg8HYJCthc2R7ZlzuXxHDm1cVPblpyfn/UkPBj7JN3+P6/fXiQS/vXufU/mJXvUVNvVxvW1olmZUammES6Ym+M3UwlJ9fvXEcFe4EeupZH3qPF6/46EIRrx6wBHeUj+xgvsGknQl+X8/Bx+fv40tU3cH3IJqrwT4ocSn0j55iQg+k9Rl9K5MOV7UZnC5xJmWJpqmNAuJdefxokaH8JMzYu+juUaz5FFbxHma/s5UNZmyrqM7tb5Xts9eHAfvn4dtmn5tnBUXe+tOETDfORjNU0nKjFfR3ZdrbQRxyxPci2Rz7lu3oMsTyFOLOqSV1OYvAMTK79zQ5xVmJGsYoLpBKpnMqfq2WuIqQaaSrdUW8z2BY9EBEsnHmNFDK2n9Aeyn5M4UFcDH3FvmBUyAIwHKHmJVDmtHc9dkS06jZzTG97kRCgMkRmsQUQKm0gv0x6bhFJxSEthkRAYGdeXpepiBFmBsWFpI6d29BopyrTymXnD7jJ/ozzxPNrSYdU0JBtbcN/svI0OmBsPzDIpbb3Wrs+AWqV+5Pw8VBiEENIIIvJVMhPkKg0O6JziimkKrzxjgB0+hZVk2arh54D0Sz5mhHo4zjshlSu1SJyjYHwYJyq+z58chHHklIoUyGAqGBJJOB2UqXeB44SxY7JXPApWQKb1pfXKfgefbAjVFHTVvWHSNIZoADa9MV6jDSJHyGJVUg5LQoALR3GdNByXhUYiQ2D/mCNqRDbxQgpgaOLeVQzxgBWkl6D2mCH1BVx8SdNXaXwEKA3U5lyrgYo+oPG8tAcNz41DNQkqeYHIjWHgZG5cZ8XQPdhOpAtUnqMzeoyKt9zPOrqmD7xb0Qv8hQYrbT0ftY4GLBZINIindQoNd3ieRE8RjROMOCVrlreFc2xhEoRKphWbP3+edZez4x0MBN75k6JH1Ux0yx9+sB5VFiPEpw1D5eu97lilI6rwRVWM6C5kopaWmmWqdSPzWNiYJsmN6YoDpJgfERoLEQJjJF8D49BfOIu8+2SZdShATQV1HYjrsWLQNwcVd8caDuJv3tV0gFRYmnzBF64cPMi5ie7JLW2QBcwvp4OjQTGbbSJWgF9nO+6DoSlQp3N1G++t+oLrEqyF42IUrcz6MlRcD8iPZa/x7yM2BOnlsnEQxcgL5wgGq5HmPZabIMkBvh2/K0sHBtWQvqWoC6OmZR9X4YFFCbAWladhpqsLVWxO3himTDoia8RSrm4pRCWmuIL7fOzK06qMwMmc/CbOcysnRuY8qygL3XxXUhN5WZg4WjnAw3mU9V2j6ltxiRxWucaGnWSKmMWIj7CiXDTSOMbDLSxacY1KNgnmZWQpcjc+NdWBR5B7BDN/kjJ6beMjyS8VBqhaCKoiYjp9uBT1VkSTnu7FS/Udp20M3c+exWKQCcH8BoLHYg9qBO34Zg6zCT1yGjraJg2nHjkqkUiuhaTpaU+IJjmI+KtgTT4L+fToWNvC1dueDbNnI5fHs/1WMKvvYEqKqWKceOM5jCKIFP6OKzQbh1kpz+nOjaIMaF7DYrohbQB7OxCdJlmXAKuBdIQ4FCTLH8/pcXKLKnOw2rNgOQmNU3FgupGtNCwhsUpxZYsZn89gpLjFgWjQeRnssZWyjGZYhxh2sFZZ6fq5UH2SMN0xCDVQdYfUfEptB+hjCsNpd+PJvIhqYFv4OoWMc1vZxFGhogAYZHIdD2Vyu+D24ywolBSIFRFj6IosoJtBDSXVujzI/CvjCK9lxnMQvlshKRtlUImWP+bsaor2B1+QpUXnNx8HkYfXKLLxvPvz+9NEgwpX5RiNDyiUBQnPys+qK6jWESouRrBLZE+blBpYy+S6iTS80HxLTDyIvpNMsyOT5T0jh2GyHHwrMQjl5UCSDmQnAhJYEajdKAVphSqU4Tjfiks+FzE/tHID1XRopqXHSUnKNCV/aM5guRTuyJ1HOq5QJpPk3sWDapNMIk5zAZgvwqvOh0F3nJWoNxFNrWVPPhgHBWM5EdhxJJTs/KwR0A4HMBo52HHoiclJlJL6HuJI4RKsb6DwVAf0ECPatIzl6CTmpy10mVggOXPCSbejxoi42jQMr6M8JTP8Zn9OumNT2txvPvm2nLhuDE1lg6KXeKaqRCVHlE+qcjcPot6VVkGtIStonqQIgJt7vrJHaLuZbschOMqK6L6Yrs9T6NFKrZFwIMkB9MhS+CfUzPNrMyrQGhwfWPHezCDLA43rc3piBQ4gUQBquRUYfBcKo0If6HGUaZjZkfnoQv9OJFdyRDzavmlBjZOcig+kI7CnYAth3o4ZwB2SIBQjuj10CTCbVFJR+RMUNGYY/1vWYx2qfKZhijMRKg76v2nEq1bByAbAMX4o5q8bUp+xc9RpC3dCruhR/fzG4jWpPYxkB+sAtaUwV3uFWJ5YiSt7JEGVzYkA9GRF/E/7C84emhIusmeVYt4t5CtTc2px6w+UdoXKGdVdEPmqW0PfpBYn4ad6KS2TSBK8fNeCVQF9+9AhI0DhwuGoa4KFv4RuRPAbcrwmR8iR5oFcyxdnVISxPtEeeaN9SwDFR2qWC5DiICitKuHdRu6IUB0oj9OoeGaVwnrU3aQcZYMFX5NILoprgc375XhWnhRzXAEnqRnOji2CHNhQXvlwUgJXqXX4yHRsCvOXY2RfMMZai/pbc9Djmd3WbBDUMfpbTqrEqqTg6l4ZD0B7gHY8Ly8rngPSg9S0Iwi16rY9+r1uKZhaRuaKWNSMtVWi6KGo96GaucXRjg2oWucdcjwOyUfLF2lYVJfocTPHn6Ap1TMI07SeQ3vm3hmdyztN6XFeV5gLFC1mWSsUv0M8SAPPGqhCwJ1a1Aj+edr3D1LPNwdVyF3K/F5SyQ4Kmy3kTVWbLCuVapmbQxoDnbRTZbDKUgNBODTILEsOl3d+69YDSsheqnhlLk1CV9ZUnDmYqzWyHgssxPO5/Okhj7I5Iao86BnV6AB6L446OpAvGubafiiGtRd3LF8dVN2ciPlqRky34GxIGhHENTorG4x0fP6MbclBs0nTJVlsqllE0RgAap8QUpZET3OwpTdqT9nEwgC9HX8XhvT5slFeZ3FofvfvncOhyI5IPo+FUVux0XjUklRQh1U/VBMrKap0rXmwLIeAzeyhiGA+AxY5OXWkkiK/wDcKivsHEg0sSD0kdTQ4W2mCKn9eJr9uUMijH5npNgbvPhxzMFJfFtviHUKqsF4T1tkhFXglkbZaJdPabZWGdJdDhUpg+TKe26Q51B1Y4z5IfNmT7+rqOp0v/TxCxKqy3QoNeCR0FXO5r+huB/aaDXjKuLrmdXFvb3p//ukZLALamvemPhMRUY+A9GEriJ1SAZgPY4FuKt718K6nN+L56Mj391//Buvgk++miFj9e8HRsbL2wituYUH8m2+XV9Dg49HDh/Dqlxc9CWtisS+4AnUGIVbwghvoiCfJ11V27Yo+VXQDjsc//rBs0CHAlUKeaJEbLR1bEx5hl/zpwRG9nRhVku/sLMBvf3tZpbIbLKA57cPJFiasFqxGlXnAtM9wnr8YrqXeJedYApu66QYbknz/u/dvHj5Y8C2zhoqYYFiFCYiqX0qyjs2bINcvO81HphUa+W4OsmXMJ0ZkDl497KmgAivMAy7vBpdXjXxbIbl5iPkP4qKJ4Xy0Y2wSHuL1StOv1T7Xyh4CW485x2uxN3Xku2zk2wyRXBR6U1HDkmm3cRXqfC1TPfoQz0/JtW5/lka+7UGfXk1BmeZeydRhYLXvBVOgWG6V0ci3JXb9t4hHsOenw19wjhGdNBVQ9UM19CQtWCHBV418m4J+0zfQZUFDgBhIppg8HkENDlb6TIMRLOaTusdrl9eNfFvhzdsL1fnZJJnRiHKlu3Ltb8M84IBSSUJ/41cryff5y1e2CqRhPi4+furrL6LTfl0bpHWRQbzWKl16EOdBhSzGegISU2u9lH21knyd2f7n73+y3tuwHB3ZHnSPNinfpPajo46pdyxWooIJxjRJyTYpCh15dqs131/vLhr5KiGRbxxh5Kai+zVyaxy3ZKP7IuY061FxORY/rUG+DhcfPqXj2otPvxd0tXZ+dgahM7vG4FBtFhqdQyDaMVB5EztRHICj7JB6fb3rF09G1Bpw3Lt3BmfOKunV1UEqfTJ8DGNbxIX4420fMpFHxNyboZP+1m8pDdjxlB8Ycly6cyx9z2UtqkxE3wT5OgQ9rZjKYFa6frmt3Ehe46AdhroF7c3S0TmOeUHhugc5H5f9IP8+6WIRNCKql12Ge4yf4MgWeEhzK0xwmrDc42q36wkYUXuqRSkQLMXq2cAj4lhiFPFgDI8PcArkzKnEZuWYv6MxZ/PyPsf02uO8PbNTOad6mySndzOyDryXq0jZWNoKDKyyPVuHY5NvzA2y8i81GI0l43npEGZwhl3PO6SiGT6FvGIciex5uZvlH6F8OdLHtAa2bzpNzdD+3GtJMOMvRRUf8GbIB0QFzmswWoFSI7mbo8sGY/mKBKXpCw9TcbxpDxHu7b4PIQDfGpmDhiWxqF1VRGTTfTJuJf7V8QF3N0E+miFFySLFikOfU4rT1NQaCjLQAEmKorkdZRQ4G4QMjxz56YWWAWpFi0gsDuOiYbodkbVL6pCG25QaWERA+o4GncS8icdrfTVR5eNYhYC2p0MrOlYk6hxYDAbitwFyXZyigN6gfCjv2MDUdyRpUdCR7dOAIMJzPrqUZR2FLF6+Z6bexiB+Lzgzh/lYRMBnTx7Dh/3jnZteWLDb33K3fEe9KD7+8g//kYtBnjtqgYR5jYo7ZGYu9wggo3JyDXRecVtc03eV6s1yFeIVpi5FrzTDQecnj5GX39zxFWDsQOtJuFgDdmT76+37/lFb/4L082dHf3stMCbFwNxzzQZJdpY0xKJaK9hapA1mG6cULnw6ridhumz0fetAR992woCVpowLrsMaLPYBO7J176beJJC8cpcbDJMPhzzy+AvFBjoEcysdnRC2wab4UKIioqIyjzFM/eyyXBafuhEyrZaV72/+E44qpIZbvDXHFNA9t5syw6p0Py1N5zWO9OV8eKVGJ4YkTgyTj8xiZ6PmEtU0KDfx8dyxIDJHacp7RbCDtTg9AsphIRimKxjxaGMJX4ZhjJOULRJ54FEibp8GQjaYukkeBUYCUpR0jsJyk3O0ukroLzA+imzz5urEUoj8GaQpr2BROpweAdn+JUPQQBa6r90YFcCdhnAh4lNyyy/Bs2KB3SZoiGVpAFS5U1r05ZTkelvterJLYSUZNXCUd0Jqol84OQLJ64PDOenAqLfFXNtJlcEsCFySFbohHr1Q/PmS7GskHVp5jX+pYrEQrw5uvQZ8eP8BfP46rObt6yXZMumPUHMqh5jcOefHjs1M6cR1AM9FzAf0jUBrh9Vor9V1ehf5vVy7aAEmNwBgt8Ef+A0/nFy5aEOZcvFyPOZZV+DhrdeAL54/Tcfd/e52mGbp0x+OYUj8GuTXIQazuMg7+xhnmOfj15HIY7KB6IYok+WZz0nR0v3EVqb3RO83liWeZ7djfutbTzXMeEZ8a86V9rW1uPUE7DYn6nbIiuhJaFSKPJfjM/vRkn1Md/2njS8Jx64bLYyFX9aJnLKhURbPL/TyKgMLMf3aks/V1+AkBiG/vfoZ/vGvP9iTlykSzg2bU/1TaQ7SLs6vPAY4vCye7GECHHkAcineRusU0hwT6Ytx6zVgh25fvO7JC9WEDfMxaM7AA2QcQ4XLVyB0nPU2+CQI2KF//PfbL/Dq5YtGxIU49OtuU35mjYd8JzcP+PTJj/1fwzS6Dd7fvv8Ab95dpLD88WlDEYqAPOlNXmIfEwY5w74QJ6MBGw5H57p0i0Q6q8ERyGwB+euZBRAHJ3zF93g+xqvxbL0vIzTceXQWQ5GQffSR4BBifQ/TMA114JNQj6TlH3jH38s0TEMdRN/5j9dvcmDY6yDcpUUPGnwVECNrCKuVYNOA3xksTRgCpYF6og7HRCPgdwiThGcdFfgrDZ4ppr9r0Qj4naJIQjIgJoNi9sy8FhoBv2NYJOymbiB9chfFozfCxEosbAT8zuGTMJrkCDlibvOADZVQ1oRxChrNKZm1aARs6OGRMI2QvVHJSjQCNiSUSeiNh9ehEbCBwSXh/i9TUO0/sRiNgA0KNgnP4ax/agJVzXAjYIMJk4Tn58PgpCIaARtceCQMZ3oRw1I0AjYUYZHw/PxetS8WNAI2TMIk4b06JGwEbJgFexVNJuDZ+TIqNQI2zIa5qHXE86dPYAnagtSGg9CRsNuvp/v65tfLy/4NxW73iqWbk4Z3Fx9rrq5paDgIzQQ3bIpGwIZN0QjYsCkaARs2RSNgw6ZoBGzYFI2ADZuiEbBhUzQCNmyKRsCGTdEI2LApGgEbNkUjYMOmaARs2BSNgA2b4r9JSdFWSgXJOAAAAABJRU5ErkJggg==",a1=({message:r,className:i})=>{const{downloadFile:a}=h.useContext(Vt),[l,c]=h.useState(!1),[d,m]=h.useState(null),p=h.useRef(null),w=!!r.url,v=async()=>{c(!0);const C=await a(r._id);m(C),c(!1)};return h.useEffect(()=>{d?.data&&d.fileName&&p.current&&p.current.click()},[d]),g.jsxs("div",{className:Ee("flex flex-col gap-[8px] p-[16px] border bg-white rounded-[8px]",i),children:[g.jsxs("div",{children:[g.jsx("h3",{className:"text-[20px] font-[700]",children:r.author.name}),g.jsxs("p",{className:"text-[14px] text-[#6C757D]",children:["Publicado el ",Uo(r.date),", ",Bo(r.date)]})]}),w&&g.jsx("audio",{className:"w-full",src:r.url,controls:!0}),!w&&g.jsx("p",{children:r.content}),r.documentName&&!l&&g.jsxs("div",{className:"flex items-center gap-[8px] mt-[8px] text-[#6C757D] cursor-pointer",onClick:v,children:[g.jsx(Le,{icon:"attach_file"}),g.jsx("p",{children:r.documentName})]}),l&&g.jsxs("div",{className:"flex items-center gap-[8px] mt-[8px] text-[#6C757D]",children:[g.jsx(Le,{icon:"refresh",className:"animate-spin"}),"Descargando Archivo..."]}),d?.data&&d.fileName&&g.jsx("a",{href:d.data,download:d.fileName,ref:p,style:{display:"none"},children:"Descargar Archivo"})]})},s1=({className:r})=>{const{conversation:i,author:a,getConversation:l,fetchConversation:c}=h.useContext(Vt),d=h.useRef(null),m=()=>{const{offsetHeight:p,scrollHeight:w,scrollTop:v}=d.current;w>=v+p+100&&d.current?.scrollTo(0,w)};return h.useEffect(()=>{c(),a.role===lt.CONTRATISTA&&i&&l(a.profileId)},[]),h.useEffect(()=>{d.current&&m()},[i]),i?g.jsxs("div",{className:Ee("w-3/4 border flex flex-col bg-[#F1F3F5] p-[8px] rounded-e-[8px]",r),children:[g.jsx("div",{ref:d,className:"h-full flex flex-col gap-[8px] overflow-auto mb-[8px]",children:i&&i.conversationList.map(p=>p.isEvent?g.jsx(jf,{message:p.content,date:p.date},p._id):g.jsx(a1,{message:p,className:p.isOwner?"w-[80%] self-end":"w-[80%] self-start"},p._id))}),g.jsx(Lr,{parentMessageId:i?.parentConversation,isPinned:!1})]}):g.jsx("div",{className:Ee("w-3/4 border flex flex-col bg-[#F1F3F5] rounded-e-[8px]",r),children:g.jsxs("div",{className:"flex flex-col gap-[8px] items-center justify-center h-full",children:[g.jsx("img",{src:i1,alt:"empty chat",className:"w-[80px] h-[80px]"}),g.jsx("p",{className:"text-[14px] font-[400]",children:a.role===lt.CONTRATISTA?"No hay mensajes directos para esta licitación.":"Selecciona una conversación"})]})})},l1=()=>{const{author:r}=h.useContext(Vt);return g.jsxs(g.Fragment,{children:[g.jsx("h2",{className:"text-[20px] font-[600] mb-[8px]",children:"Mensajes directos"}),g.jsx("p",{className:"mb-[24px] text-[16px]",children:r.role===lt.CONSTRUCTOR?"Puedes comunicarte directamente con los proveedores que ya han presentado una propuesta para esta licitación.":"Puedes comunicarte directamente con el constructor una vez hayas enviado una propuesta para esta licitación."})]})},u1=({url_api:r,profile:i,tender_id:a,project:l,className:c})=>g.jsxs(Wu,{options:{url_api:r,profile:i,tender_id:a,project:l},children:[g.jsx("style",{children:Hu}),g.jsxs("div",{className:Ee(c),children:[g.jsx(l1,{}),g.jsxs("div",{className:"flex rounded gap-[8px] min-h-[600px] max-h-[600px] h-full",children:[i===lt.BUILDER&&g.jsx(o1,{}),g.jsx(s1,{className:i===lt.PROVIDER?"w-full":""})]})]}),g.jsx(ip,{})]}),c1=Uu(r1,Mt,jo,{props:["url_api","profile","tender_id","project"]}),d1=Uu(u1,Mt,jo,{props:["url_api","profile","tender_id","project"]});customElements.define("lc-contact-center",c1),customElements.define("lc-chat-center",d1)});
